/* ============================================================
   makes. — основной сайт
   Дизайн-система: Apple-inspired, ч/б, две темы
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
input, textarea { font: inherit; color: inherit; }

/* ---------- Tokens ---------- */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", Helvetica, Arial, sans-serif;
  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 48px);

  /* spacing */
  --sec-y: clamp(88px, 12vw, 180px);

  /* type */
  --t-eyebrow: 12.5px;

  /* motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --reveal-y: 24px;
  --reveal-dur: .9s;

  /* accent (monochrome by default) */
  --accent: var(--fg);
}

/* Light theme (default) */
:root, [data-theme="light"] {
  --bg:      #ffffff;
  --bg-2:    #f5f5f7;
  --bg-3:    #ffffff;
  --fg:      #1d1d1f;
  --fg-2:    #6e6e73;
  --fg-3:    #86868b;
  --line:    rgba(0,0,0,.10);
  --line-2:  rgba(0,0,0,.16);
  --nav-bg:  rgba(255,255,255,.72);
  /* фон шапки там, где backdrop-filter отключён (мобильные) */
  --nav-bg-flat: rgba(255,255,255,.94);
  /* панель мобильного меню лежит поверх затемнения — ей нужна бо́льшая плотность,
     иначе текст читается по серому */
  --drawer-bg: rgba(255,255,255,.94);
  --card:    #ffffff;
  --card-hover: #fafafa;
  --placeholder-a: rgba(0,0,0,.045);
  --placeholder-b: rgba(0,0,0,.085);
  --shadow:  0 2px 30px rgba(0,0,0,.07);
  --shadow-lg: 0 30px 80px rgba(0,0,0,.12);
}

/* Dark theme */
[data-theme="dark"] {
  --bg:      #000000;
  --bg-2:    #0a0a0c;
  --bg-3:    #111113;
  --fg:      #f5f5f7;
  --fg-2:    #a1a1a6;
  --fg-3:    #86868b;
  --line:    rgba(255,255,255,.12);
  --line-2:  rgba(255,255,255,.20);
  --nav-bg:  rgba(10,10,12,.66);
  --nav-bg-flat: rgba(10,10,12,.92);
  --drawer-bg: rgba(10,10,12,.94);
  --card:    #08080a;
  --card-hover: #121214;
  --placeholder-a: rgba(255,255,255,.05);
  --placeholder-b: rgba(255,255,255,.10);
  --shadow:  0 2px 30px rgba(0,0,0,.5);
  --shadow-lg: 0 30px 80px rgba(0,0,0,.6);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.01em;
  transition: background .5s var(--ease), color .5s var(--ease);
  overflow-x: hidden;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

::selection { background: var(--fg); color: var(--bg); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: var(--t-eyebrow);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.section-title {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.lead {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.4;
  color: var(--fg-2);
  font-weight: 400;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}
.muted { color: var(--fg-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  height: 52px; padding: 0 28px;
  border-radius: 999px;
  font-size: 16px; font-weight: 500; letter-spacing: -0.01em;
  transition: transform .25s var(--ease), background .25s var(--ease),
              color .25s var(--ease), border-color .25s var(--ease), opacity .25s;
  white-space: nowrap;
}
.btn--primary { background: var(--fg); color: var(--bg); }
.btn--primary:hover { transform: translateY(-2px); opacity: .9; }
.btn--ghost { border: 1px solid var(--line-2); color: var(--fg); }
.btn--ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); transform: translateY(-2px); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: 56px;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .5s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__in {
  height: 100%; max-width: var(--maxw); margin: 0 auto;
  padding-inline: var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  font-size: 21px; font-weight: 600; letter-spacing: -0.03em;
  display: inline-flex; align-items: baseline;
  flex: 1 1 0;
}
.brand .dot { color: var(--fg-3); }
.nav__links { display: flex; align-items: center; justify-content: center; gap: 32px; }
.nav__links a {
  font-size: 14px; font-weight: 400; color: var(--fg-2);
  transition: color .2s var(--ease); position: relative;
}
.nav__links a:hover { color: var(--fg); }
.nav__right { display: flex; align-items: center; justify-content: flex-end; gap: 18px; flex: 1 1 0; }

/* theme toggle */
.theme-toggle {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  transition: border-color .2s, transform .3s var(--ease);
  color: var(--fg);
}
.theme-toggle:hover { border-color: var(--line-2); }
.theme-toggle:active { transform: scale(.92); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }

/* ---------- Мобильное меню: кнопка-бургер ---------- */
/* Показывается только там, где .nav__links скрыт (см. RESPONSIVE, ≤820px). */
.nav__burger { display: none; }
.nav__burger span {
  display: block; position: relative;
  width: 16px; height: 1.5px; border-radius: 2px;
  background: currentColor;
  transition: background .2s var(--ease);
}
.nav__burger span::before,
.nav__burger span::after {
  content: ""; position: absolute; left: 0;
  width: 16px; height: 1.5px; border-radius: 2px;
  background: currentColor;
  transition: transform .35s var(--ease);
}
.nav__burger span::before { top: -5px; }
.nav__burger span::after  { top: 5px; }
.nav__burger[aria-expanded="true"] span { background: transparent; }
.nav__burger[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span::after  { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Мобильное меню: выезжающая панель ---------- */
/* z-index ниже .nav (1000): шапка с бургером остаётся поверх и кликабельна. */
.nav-drawer {
  position: fixed; inset: 0; z-index: 999;
  visibility: hidden;
  transition: visibility 0s linear .4s;
}
.nav-drawer.is-open { visibility: visible; transition-delay: 0s; }

.nav-drawer__scrim {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.28);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
[data-theme="dark"] .nav-drawer__scrim { background: rgba(0,0,0,.5); }
.nav-drawer.is-open .nav-drawer__scrim { opacity: 1; }

.nav-drawer__panel {
  position: absolute; top: 56px; left: 0; right: 0;
  max-height: calc(100vh - 56px);
  max-height: calc(100svh - 56px);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 8px var(--pad) calc(28px + env(safe-area-inset-bottom, 0px));
  background: var(--drawer-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0; transform: translateY(-10px);
  transition: opacity .28s var(--ease), transform .38s var(--ease);
}
.nav-drawer.is-open .nav-drawer__panel { opacity: 1; transform: none; }

.nav-drawer__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 17px 2px;
  font-size: 20px; font-weight: 500; letter-spacing: -0.02em;
  color: var(--fg);
  border-bottom: 1px solid var(--line);
  transition: color .2s var(--ease);
}
.nav-drawer__link::after {
  content: "\2192"; color: var(--fg-3); font-size: 16px;
  transition: transform .25s var(--ease), color .2s var(--ease);
}
.nav-drawer__link:active { color: var(--fg-2); }
.nav-drawer__link:hover::after { transform: translateX(3px); color: var(--fg-2); }
.nav-drawer__cta {
  display: flex; width: 100%; justify-content: center;
  margin-top: 22px;
}
.nav-drawer__cta:hover { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .nav-drawer, .nav-drawer__scrim, .nav-drawer__panel,
  .nav__burger span, .nav__burger span::before, .nav__burger span::after {
    transition: none;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  padding-top: 56px;
  display: grid;
  position: relative;
}
.hero__variant { grid-area: 1 / 1; display: none; }
[data-hero="kinetic"]   .hero__variant--kinetic   { display: grid; }
[data-hero="oversized"] .hero__variant--oversized { display: grid; }
[data-hero="editorial"] .hero__variant--editorial { display: grid; }

/* --- Kinetic --- */
.hero__variant--kinetic { place-items: center; text-align: center; }
.hk { padding: 96px 0; }
.hk .eyebrow { margin-bottom: 28px; }
.hk__word {
  font-size: clamp(4.5rem, 17vw, 13rem);
  font-weight: 600; line-height: .9; letter-spacing: -0.05em;
}
.hk__word .dot { color: var(--fg-3); }
.hk__line {
  margin-top: 26px;
  font-size: clamp(1.4rem, 4vw, 2.6rem);
  font-weight: 500; letter-spacing: -0.03em;
  color: var(--fg-2);
  display: inline-flex; gap: .35em; align-items: baseline;
  flex-wrap: wrap; justify-content: center;
}
.rotator {
  position: relative; display: inline-grid;
  color: var(--accent); font-weight: 600;
}
.rotator__item {
  grid-area: 1 / 1;
  opacity: 0; transform: translateY(.5em);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  white-space: nowrap;
}
.rotator__item.is-active { opacity: 1; transform: translateY(0); }
.rotator__item.is-out { opacity: 0; transform: translateY(-.5em); }
.hk__cta { margin-top: 48px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --- Oversized --- */
.hero__variant--oversized { align-content: center; }
.ho { width: 100%; }
.ho__top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px; padding-bottom: clamp(20px, 5vw, 48px); flex-wrap: wrap;
}
.ho__giant {
  font-size: clamp(5rem, 27vw, 26rem);
  font-weight: 600; line-height: .82; letter-spacing: -0.055em;
  white-space: nowrap;
}
.ho__giant .dot { color: var(--fg-3); }
.ho__bottom {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; padding-top: clamp(24px, 5vw, 56px); flex-wrap: wrap;
}
.ho__tag { font-size: clamp(1.05rem, 2vw, 1.6rem); max-width: 18ch; line-height: 1.25; letter-spacing: -0.02em; }
.ho__scroll { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--fg-3); }
.ho__scroll .line { width: 46px; height: 1px; background: var(--fg-3); display: inline-block; transform-origin: left;
  animation: scrollLine 2.6s var(--ease) infinite; }
@keyframes scrollLine { 0%,100% { transform: scaleX(.4); opacity:.4 } 50% { transform: scaleX(1); opacity:1 } }

/* --- Editorial --- */
.hero__variant--editorial { align-content: center; }
.he { width: 100%; padding: 80px 0; }
.he__head {
  font-size: clamp(2.4rem, 6.4vw, 5.5rem);
  font-weight: 600; line-height: 1.0; letter-spacing: -0.035em;
  max-width: 16ch; text-wrap: balance;
}
.he__head em { font-style: normal; color: var(--fg-3); }
.he__row {
  margin-top: clamp(40px, 6vw, 72px);
  display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 72px);
  align-items: flex-end; justify-content: space-between;
}
.he__meta { display: flex; gap: clamp(28px, 5vw, 64px); flex-wrap: wrap; }
.he__meta .k { font-size: 12.5px; color: var(--fg-3); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.he__meta .v { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 500; letter-spacing: -0.02em; }
.he__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   SECTION SHELL
   ============================================================ */
.section { padding-block: var(--sec-y); position: relative; }
.section--alt { background: var(--bg-2); transition: background .5s var(--ease); }
.section__head { max-width: 760px; margin-bottom: clamp(48px, 7vw, 88px); }
.section__head .eyebrow { margin-bottom: 22px; display: block; }
.section__head .lead { margin-top: 26px; }

/* ---------- About ---------- */
.about__statement {
  font-size: clamp(1.6rem, 3.8vw, 3rem);
  font-weight: 500; line-height: 1.18; letter-spacing: -0.03em;
  max-width: 20ch; text-wrap: balance;
}
.about__grid {
  margin-top: clamp(56px, 8vw, 96px);
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  border-top: 1px solid var(--line); padding-top: clamp(40px, 5vw, 64px);
}
.stat .num { font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.stat .lbl { margin-top: 12px; color: var(--fg-2); font-size: 15px; max-width: 22ch; }

/* ---------- Services ---------- */
.svc__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.svc {
  display: grid; grid-template-columns: 56px 1fr; gap: 4px 20px;
  padding: clamp(28px, 3.6vw, 44px) 8px;
  border-bottom: 1px solid var(--line);
  transition: background .35s var(--ease), padding-left .35s var(--ease);
}
.svc:nth-child(odd) { border-right: 1px solid var(--line); padding-right: clamp(24px,3vw,40px); }
.svc:nth-child(even) { padding-left: clamp(24px,3vw,40px); }
.svc:hover { background: var(--bg-3); }
.svc__num { font-size: 13px; color: var(--fg-3); font-weight: 600; letter-spacing: .04em; padding-top: .55em; font-variant-numeric: tabular-nums; }
.svc__title { font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 600; letter-spacing: -0.025em; }
.svc__desc { grid-column: 2; color: var(--fg-2); margin-top: 10px; font-size: 16px; line-height: 1.5; max-width: 42ch; }

/* ---------- Projects ---------- */
.proj__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 2.6vw, 32px); }
.proj {
  grid-column: span 12;
  display: block; position: relative;
  border-radius: 22px; overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
@media (min-width: 760px) { .proj { grid-column: span 6; } .proj--wide { grid-column: span 12; } }
.proj:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.proj__media {
  aspect-ratio: 16 / 10; position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, var(--placeholder-a) 0 14px, var(--placeholder-b) 14px 28px);
  display: grid; place-items: center;
}
.proj--wide .proj__media { aspect-ratio: 21 / 9; }
.proj__media .ph-tag {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px; color: var(--fg-3); letter-spacing: .02em;
  background: var(--bg); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
}
.proj__body { padding: clamp(22px, 2.6vw, 32px); display: flex; flex-direction: column; gap: 12px; }
.proj__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.proj__name { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -0.03em; }
.proj__url { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; color: var(--fg-3); }
.proj__desc { color: var(--fg-2); font-size: 16.5px; line-height: 1.5; max-width: 46ch; }
.proj__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tag {
  font-size: 12.5px; color: var(--fg-2); padding: 5px 12px;
  border: 1px solid var(--line); border-radius: 999px;
}
.proj__cta { margin-top: 6px; display: inline-flex; align-items: center; gap: 7px; font-weight: 500; font-size: 15px; color: var(--fg); }
.proj__cta .arrow { transition: transform .25s var(--ease); }
.proj:hover .proj__cta .arrow { transform: translateX(4px); }
.proj__all { margin-top: clamp(40px, 5vw, 60px); display: flex; justify-content: center; }

/* ---------- Process ---------- */
.proc { border-top: 1px solid var(--line); }
.proc__row {
  display: grid; grid-template-columns: 90px 1fr; gap: 24px;
  padding: clamp(30px, 4vw, 52px) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.proc__num { font-size: clamp(1.1rem,1.6vw,1.3rem); font-weight: 600; color: var(--fg-3); font-variant-numeric: tabular-nums; padding-top: .2em; }
.proc__main { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr); gap: clamp(16px, 4vw, 56px); }
.proc__title { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -0.03em; }
.proc__desc { color: var(--fg-2); font-size: 17px; line-height: 1.55; }

/* ---------- Team ---------- */
.team__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.member__photo {
  aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--placeholder-a) 0 12px, var(--placeholder-b) 12px 24px);
  display: grid; place-items: center; border: 1px solid var(--line);
  transition: filter .4s var(--ease);
}
.member__photo .ph-tag {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px;
  color: var(--fg-3); background: var(--bg); padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line);
}
.member__name { margin-top: 18px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.member__role { color: var(--fg-2); font-size: 15px; margin-top: 4px; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 2.6vw, 32px); }
.quote {
  border: 1px solid var(--line); border-radius: 22px; padding: clamp(28px,3.4vw,44px);
  background: var(--card); display: flex; flex-direction: column; gap: 28px;
}
.quote__text { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.35; text-wrap: pretty; }
.quote__by { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.quote__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: repeating-linear-gradient(135deg, var(--placeholder-a) 0 8px, var(--placeholder-b) 8px 16px);
  border: 1px solid var(--line); flex-shrink: 0;
}
.quote__name { font-weight: 600; font-size: 15px; }
.quote__co { color: var(--fg-3); font-size: 14px; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.contact__lead .big { font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
.contact__channels { margin-top: clamp(32px, 4vw, 48px); display: flex; flex-direction: column; gap: 2px; }
.channel {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 0; border-top: 1px solid var(--line);
  transition: padding-left .3s var(--ease);
}
.channel:last-child { border-bottom: 1px solid var(--line); }
.channel:hover { padding-left: 8px; }
.channel .k { color: var(--fg-3); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.channel .v { font-size: clamp(1.05rem, 1.7vw, 1.3rem); font-weight: 500; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 8px; }
.channel:hover .v .arrow { transform: translateX(3px); }
.channel .v .arrow { transition: transform .25s var(--ease); color: var(--fg-3); }

/* form */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; color: var(--fg-3); letter-spacing: .04em; }
.field input, .field textarea {
  width: 100%; background: var(--bg-3);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; font-size: 16px; letter-spacing: -0.01em;
  transition: border-color .25s var(--ease), background .25s;
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--fg); }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-3); }
.form__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.form__note { font-size: 13px; color: var(--fg-3); max-width: 30ch; }
.form__ok { font-size: 15px; color: var(--fg); font-weight: 500; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding-block: clamp(56px, 7vw, 96px) 40px; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.footer__brand { font-size: clamp(3rem, 9vw, 7rem); font-weight: 600; letter-spacing: -0.05em; line-height: .9; }
.footer__brand .dot { color: var(--fg-3); }
.footer__cols { display: flex; gap: clamp(40px, 6vw, 80px); flex-wrap: wrap; }
.footer__col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--fg-3); margin-bottom: 16px; font-weight: 600; }
.footer__col a { display: block; color: var(--fg-2); font-size: 15px; padding: 6px 0; transition: color .2s; }
.footer__col a:hover { color: var(--fg); }
.footer__bottom {
  margin-top: clamp(48px, 6vw, 80px); padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: var(--fg-3);
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
[data-reveal] {
  opacity: 0; transform: translateY(var(--reveal-y));
  transition: opacity var(--reveal-dur) var(--ease), transform var(--reveal-dur) var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].in { opacity: 1; transform: none; }
/* Snap fallback — guarantees final state even if the transition is throttled. */
[data-reveal].is-done { opacity: 1 !important; transform: none !important; transition: none !important; }
[data-motion="minimal"] [data-reveal] { transform: translateY(10px); }
[data-motion="off"] [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
  .ho__scroll .line, .rotator__item { animation: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 820px) {
  /* Липкая шапка с backdrop-filter пересчитывает размытие фона на каждом
     кадре скролла — на мобильных GPU это заметный джанк. Меняем блюр на
     плотный фон: визуально почти то же, стоимость нулевая. */
  .nav {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--nav-bg-flat, var(--nav-bg));
  }
  .nav__links { display: none; }
  /* Вместо горизонтального меню — бургер, открывающий .nav-drawer */
  .nav__burger {
    display: grid; place-items: center;
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--line);
    color: var(--fg);
    transition: border-color .2s, transform .3s var(--ease);
  }
  .nav__burger:hover { border-color: var(--line-2); }
  .nav__burger:active { transform: scale(.92); }
  .nav__right { gap: 12px; }
  .about__grid { grid-template-columns: 1fr; gap: 36px; }
  .svc__grid { grid-template-columns: 1fr; }
  .svc:nth-child(odd) { border-right: none; padding-right: 8px; }
  .svc:nth-child(even) { padding-left: 8px; }
  .proc__main { grid-template-columns: 1fr; gap: 12px; }
  .quotes { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  /* CTA не помещается рядом с бургером — она остаётся внизу мобильного меню */
  .nav__right > .btn { display: none; }
  .btn { height: 48px; padding: 0 22px; font-size: 15px; }
  .ho__giant { font-size: clamp(4rem, 30vw, 8rem); }
  .proc__row { grid-template-columns: 56px 1fr; gap: 14px; }
}

/* ---------- Согласие на обработку ПДн в формах заявки ---------- */
.form__consent {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 20px; cursor: pointer;
  font-size: 13.5px; line-height: 1.5; color: var(--fg-3);
}
.form__consent input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  flex: 0 0 auto; width: 17px; height: 17px; margin: 1px 0 0;
  border: 1px solid var(--line-2); border-radius: 5px;
  background: transparent; cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.form__consent input[type="checkbox"]:checked {
  background: var(--fg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3l2.3 2.3 4.7-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
  border-color: var(--fg);
}
[data-theme="dark"] .form__consent input[type="checkbox"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3l2.3 2.3 4.7-5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.form__consent input[type="checkbox"]:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.form__consent a { color: var(--fg-2); text-decoration: underline; text-underline-offset: 2px; }
.form__consent a:hover { color: var(--fg); }
