/* ============================================
   ФОТОКУБИК.РФ — дизайн-система
   Палитра: тёплый кремовый + терракота + шалфей + песок
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  /* цвета */
  --cream: #FAF6F0;
  --cream-deep: #F1E9DD;
  --ink: #262220;
  --ink-soft: #5B5450;
  --terracotta: #D4632F;
  --terracotta-dark: #B14F22;
  --sage: #7A8B6F;
  --sage-dark: #5F6E55;
  --sand: #C9A876;
  --white: #FFFFFF;
  --line: #E4DACB;
  --shadow-color: 30, 22, 14;

  /* типографика */
  --font-display: 'Lora', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* layout */
  --max-w: 1180px;
  --radius: 18px;
  --radius-sm: 10px;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family: var(--font-display); margin:0 0 .5em; font-weight:600; line-height:1.15; }
p{ margin:0 0 1em; }
button{ font-family: inherit; cursor:pointer; }

:focus-visible{
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 4px;
}

.container{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Утилиты ---------- */
.eyebrow{
  font-family: var(--font-body);
  font-weight:700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terracotta);
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom: 14px;
}
.eyebrow::before{
  content:"";
  width:22px; height:1px;
  background: var(--terracotta);
}
.section{ padding: 88px 0; }
.section--tight{ padding: 56px 0; }
.section-head{ max-width: 640px; margin-bottom: 48px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.lede{ color: var(--ink-soft); font-size: 18px; }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding: 16px 30px;
  border-radius: 100px;
  font-weight:700;
  font-size: 15px;
  border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn--primary{
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 0 8px 20px -6px rgba(212,99,47,.55);
}
.btn--primary:hover{ background: var(--terracotta-dark); transform: translateY(-2px); box-shadow: 0 12px 24px -6px rgba(212,99,47,.6); }
.btn--ghost{
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn--ghost:hover{ background: var(--ink); color: var(--cream); }
.btn--light{
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}
.btn--light:hover{ border-color: var(--terracotta); color: var(--terracotta); }
.btn--block{ width:100%; }
.btn--sm{ padding: 11px 20px; font-size: 14px; }

.badge{
  display:inline-flex; align-items:center; gap:6px;
  background: var(--sage);
  color: var(--white);
  font-size: 12.5px; font-weight:700;
  padding: 5px 12px;
  border-radius: 100px;
}
.badge--sand{ background: var(--sand); color: var(--ink); }
.badge--outline{ background: transparent; border:1.5px solid var(--line); color: var(--ink-soft); }

.card{
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* ---------- Header ---------- */
.topbar{
  background: var(--ink);
  color: rgba(255,255,255,.78);
  font-size: 13.5px;
}
.topbar .container{
  display:flex; align-items:center; justify-content:space-between;
  padding-top:9px; padding-bottom:9px;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar a{ color: rgba(255,255,255,.92); }
.topbar a:hover{ color: var(--sand); }
.topbar__links{ display:flex; gap:20px; align-items:center; flex-wrap:wrap; }
.topbar__contacts{ display:flex; gap:18px; align-items:center; flex-wrap:wrap; }

.header{
  position: sticky; top:0; z-index: 100;
  background: rgba(250,246,240,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .container{
  display:flex; align-items:center; justify-content:space-between;
  padding-top: 16px; padding-bottom: 16px;
  gap: 24px;
}
.logo{
  display:flex; align-items:center; gap:10px;
  font-family: var(--font-display);
  font-weight:700; font-size: 23px;
  color: var(--ink);
  flex-shrink:0;
}
.logo__mark{
  width: 34px; height:34px;
  position:relative;
  flex-shrink:0;
}
.nav{ display:flex; gap: 30px; align-items:center; }
.nav a{
  font-size: 15px; font-weight:600; color: var(--ink-soft);
  position:relative; padding: 6px 0;
}
.nav a:hover{ color: var(--ink); }
.nav a::after{
  content:""; position:absolute; left:0; right:100%; bottom:0; height:2px;
  background: var(--terracotta); transition: right .2s ease;
}
.nav a:hover::after{ right:0; }
.header__actions{ display:flex; align-items:center; gap:14px; flex-shrink:0; }
.icon-btn{
  width:42px; height:42px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  border:1.5px solid var(--line);
  background: var(--white);
  position:relative;
  flex-shrink:0;
}
.icon-btn:hover{ border-color: var(--terracotta); }
.icon-btn__count{
  position:absolute; top:-4px; right:-4px;
  background: var(--terracotta); color:#fff;
  font-size:10px; font-weight:800;
  width:18px; height:18px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
}
.burger{ display:none; }
.mobile-menu{
  display:none; max-height:0; overflow:hidden;
  border-top: 1px solid var(--line);
  transition: max-height .25s ease;
}
.mobile-menu.open{ display:block; max-height:400px; }
@media (max-width: 980px){
  .mobile-menu{ display:block; }
}

/* ---------- Footer ---------- */
.footer{
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding: 64px 0 28px;
  margin-top: 80px;
}
.footer__grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer h4{ color: #fff; font-family: var(--font-body); font-size:15px; letter-spacing:.04em; text-transform:uppercase; margin-bottom:18px; }
.footer ul li{ margin-bottom: 10px; }
.footer a:hover{ color: var(--sand); }
.footer__logo{ color:#fff; font-family: var(--font-display); font-size:24px; font-weight:700; margin-bottom:14px; }
.footer__bottom{
  display:flex; justify-content:space-between; align-items:center;
  padding-top: 24px; font-size: 13px; flex-wrap:wrap; gap:12px;
}
.footer__socials{ display:flex; gap:12px; }
.footer__socials a{
  width:38px; height:38px; border-radius:50%;
  border:1px solid rgba(255,255,255,.2);
  display:flex; align-items:center; justify-content:center;
}
.footer__socials a:hover{ border-color: var(--sand); }

/* ---------- Breadcrumbs ---------- */
.crumbs{ font-size: 13.5px; color: var(--ink-soft); padding: 18px 0; }
.crumbs a:hover{ color: var(--terracotta); }
.crumbs span{ margin: 0 6px; opacity:.5; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero{
  padding: 28px 0 56px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1{ font-size: clamp(30px, 4vw, 44px); }
.page-hero p{ max-width: 640px; color: var(--ink-soft); font-size:17px; }

/* ============================================
   responsive
   ============================================ */
@media (max-width: 980px){
  .nav{ display:none; }
  .burger{
    display:flex; align-items:center; justify-content:center;
    width:42px; height:42px; border-radius:50%;
    border:1.5px solid var(--line); background:var(--white);
  }
  .footer__grid{ grid-template-columns: 1fr 1fr; }
  .topbar__links{ display:none; }
}
@media (max-width: 640px){
  .section{ padding: 56px 0; }
  .footer__grid{ grid-template-columns: 1fr; gap:28px; }
  .footer__bottom{ flex-direction:column; align-items:flex-start; }
}
