/* ==========================================================================
   NONAME — продакшн рекламных роликов
   Концепция: сайт как фильм. Каждый раздел — «сцена», HUD камеры,
   таймкод, монтажный таймлайн, хлопушка.
   ========================================================================== */

:root {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --bg-3: #18181b;
  --text: #f2efe9;
  --muted: #9a968f;
  --dim: #5f5c57;
  --line: rgba(242, 239, 233, .12);
  --line-2: rgba(242, 239, 233, .24);
  --accent: #f0301f;          /* «REC»-красный */
  --accent-hi: #ff4636;
  --c1: #8b7bff;              /* цвета клипов, как в монтажке */
  --c2: #2fd3b0;
  --c3: #ffb23e;
  --c4: #ff5ca8;
  --c5: #4aa3ff;

  --f-display: 'Manrope', 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-body: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: 16px;
  --maxw: 1440px;
  --header-h: 64px;
  --section-y: clamp(120px, 16vw, 220px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
@media (min-width: 768px)  { :root { --gutter: 32px; --header-h: 76px; } }
@media (min-width: 1280px) { :root { --gutter: 48px; } }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  background: var(--bg);
}
:root { color-scheme: dark; } /* сайт намеренно только тёмный */
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main { overflow-x: clip; }
img, svg, video, canvas, iframe { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: calc(var(--section-y) * .5); }
/* Контур: заливка цветом фона + paint-order прячет внутренние линии вариативного шрифта */

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 300;
  background: var(--text); color: var(--bg);
  padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 12px; }

/* Плёночное зерно */
.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%;
  z-index: 100; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-3%, 2%); }
  50%  { transform: translate(2%, -3%); }
  75%  { transform: translate(-2%, -1%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Типографика ---------- */
.label {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
  font: 500 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.label__sc {
  color: var(--accent);
  padding: 5px 8px;
  border: 1px solid rgba(240, 48, 31, .45); border-radius: 4px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 22px;
  font: 500 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--accent); }
.h2 {
  font: 700 clamp(2.1rem, 5.6vw, 4.9rem)/1 var(--f-display);
  letter-spacing: -.04em;
  text-wrap: balance;
}
.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 80px); }
.section-head .label { margin-bottom: 0; }
.section-head__aside { color: var(--muted); max-width: 42ch; }
@media (min-width: 1024px) {
  .section-head { grid-template-columns: 1fr auto; align-items: end; column-gap: 64px; }
  .section-head .label { grid-column: 1 / -1; }
  .section-head__aside { justify-self: end; padding-bottom: 8px; }
}

/* ---------- Кнопки ---------- */
.btn {
  --h: 52px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: transparent; color: var(--text);
  font: 500 15px/1 var(--f-body); white-space: nowrap; text-decoration: none;
  cursor: pointer;
  transition: transform .35s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.btn .ico { transition: transform .35s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn--accent:hover { background: var(--accent-hi); border-color: var(--accent-hi); }
.btn--ghost:hover { border-color: var(--text); }
.btn--sm { --h: 42px; padding: 0 18px; font-size: 14px; }
.btn--lg { --h: 58px; padding: 0 30px; font-size: 16px; }
.btn--xl { --h: 66px; padding: 0 36px; font-size: 17px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; }

/* ---------- Шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  height: calc(var(--header-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--gutter) 0;
  display: flex; align-items: center; gap: 24px;
  border-bottom: 1px solid transparent;
  transition: background-color .35s, border-color .35s;
}
.header.is-scrolled, html.menu-open .header {
  background: rgba(10, 10, 11, .76);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: var(--line);
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  margin-right: auto;
  font: 800 19px/1 var(--f-display); letter-spacing: .01em;
  text-decoration: none;
}
.logo__no { color: var(--bg); -webkit-text-stroke: 2px var(--text); paint-order: stroke fill; }
.logo__rec {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(240, 48, 31, .55); }
  50% { opacity: .55; box-shadow: 0 0 0 6px rgba(240, 48, 31, 0); }
}
.nav { display: none; gap: 4px; }
.nav a {
  position: relative; padding: 10px 14px;
  font-size: 14px; color: var(--muted); text-decoration: none;
  transition: color .25s;
}
.nav a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.header__cta { display: none; }
.burger {
  display: grid; place-content: center; gap: 7px;
  width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; cursor: pointer;
}
.burger span { display: block; width: 24px; height: 1.5px; background: var(--text); transition: transform .45s var(--ease); }
html.menu-open .burger span:first-child { transform: translateY(4.25px) rotate(45deg); }
html.menu-open .burger span:last-child  { transform: translateY(-4.25px) rotate(-45deg); }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.progress span {
  display: block; height: 100%;
  background: var(--accent);
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}
@media (min-width: 768px)  { .header__cta { display: inline-flex; } }
@media (min-width: 1024px) { .nav { display: flex; } .burger { display: none; } }

/* ---------- Мобильное меню ---------- */
.menu {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: calc(var(--header-h) + 24px) var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background: var(--bg);
  overflow-y: auto;
  clip-path: circle(0 at calc(100% - 38px) 32px);
  visibility: hidden;
  transition: clip-path .6s var(--ease-out), visibility 0s .6s;
}
html.menu-open { overflow: hidden; }
html.menu-open .menu {
  clip-path: circle(150% at calc(100% - 38px) 32px);
  visibility: visible;
  transition: clip-path .8s var(--ease-out), visibility 0s;
}
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font: 700 clamp(2rem, 10vw, 3.4rem)/1.05 var(--f-display); letter-spacing: -.03em;
  text-decoration: none;
  opacity: 0; transform: translateY(24px);
  transition: opacity .4s, transform .5s var(--ease-out);
}
.menu__nav a span { font: 500 12px var(--f-mono); letter-spacing: .1em; color: var(--accent); }
html.menu-open .menu__nav a { opacity: 1; transform: none; transition-delay: calc(.15s + var(--i, 0) * .05s); }
.menu__contacts {
  display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px;
  font: 500 13px var(--f-mono); color: var(--muted);
}
.menu__contacts a { text-decoration: none; padding: 6px 0; }

/* ---------- HUD камеры и навигация по сценам (ПК) ---------- */
.hud, .scenes { display: none; }
/* HUD живёт в шапке: таймкод страницы + текущая сцена */
@media (min-width: 1200px) {
  .logo { margin-right: 0; }
  .hud {
    display: flex; align-items: center; gap: 10px;
    margin: 0 auto 0 28px; padding: 8px 14px;
    border: 1px solid var(--line); border-radius: 999px;
    font: 500 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
    color: var(--muted); white-space: nowrap;
    transition: opacity .4s, transform .4s var(--ease);
  }
  html.at-hero .hud { opacity: 0; transform: translateY(-6px); }
  .hud__rec { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }
  .hud__sc { color: var(--accent); }
}
/* навигация по сценам — только там, где справа есть свободное поле и она не наезжает на контент */
@media (min-width: 1280px) {
  .scenes {
    position: fixed; right: 16px; top: 50%; z-index: 40;
    transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 2px;
  }
  .scenes a {
    position: relative;
    display: flex; align-items: center; justify-content: flex-end; gap: 10px;
    height: 20px; padding-left: 8px;
    text-decoration: none;
  }
  .scenes a::after {
    content: ''; width: 12px; height: 1.5px; background: var(--dim);
    transition: width .35s var(--ease), background-color .35s;
  }
  .scenes a:hover::after { width: 20px; background: var(--text); }
  .scenes a.is-active::after { width: 28px; background: var(--accent); }
  .scenes span { display: none; }
  .scenes em {
    padding: 4px 7px; border-radius: 4px;
    background: rgba(10, 10, 11, .75);
    font: 500 10px/1 var(--f-mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase;
    white-space: nowrap;
    opacity: 0; transform: translateX(6px);
    transition: opacity .25s, transform .3s var(--ease);
  }
  .scenes a:hover em, .scenes a:focus-visible em { opacity: 1; transform: none; }
}

/* ==========================================================================
   SC 01 · HERO
   ========================================================================== */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 40px) 0 clamp(40px, 8vh, 88px);
  overflow: hidden;
}
/* на планшете и телефоне фигура стоит над текстом — оставляем ей место даже на низких экранах */
@media (max-width: 1023px) { .hero { padding-top: calc(var(--header-h) + 230px); } }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(10, 10, 11, .88) 26%, rgba(10, 10, 11, 0) 58%),
    radial-gradient(70% 45% at 50% 28%, rgba(240, 48, 31, .12), transparent 70%);
}
@media (min-width: 1024px) {
  .hero::before {
    background:
      linear-gradient(to top, var(--bg) 0%, rgba(10, 10, 11, 0) 32%),
      linear-gradient(90deg, rgba(10, 10, 11, .8) 0%, rgba(10, 10, 11, 0) 55%),
      radial-gradient(40% 55% at 72% 42%, rgba(240, 48, 31, .13), transparent 70%);
  }
}
/* Видоискатель */
.vf {
  position: absolute; inset: calc(var(--header-h) + 8px) var(--gutter) 14px; z-index: -1;
  pointer-events: none;
  font: 500 10px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.vf__c { position: absolute; width: 22px; height: 22px; border: 0 solid var(--line-2); }
.vf__c--tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.vf__c--tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.vf__c--bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.vf__c--br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.vf__tl { position: absolute; top: 12px; left: 14px; display: flex; align-items: center; gap: 12px; }
.vf__rec { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.vf__rec::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
#heroTc { font-variant-numeric: tabular-nums; }
.vf__tr { position: absolute; top: 12px; right: 14px; display: none; }
.vf__br { position: absolute; right: 14px; bottom: 12px; display: none; align-items: center; gap: 12px; }
.vf__bat { width: 22px; height: 10px; padding: 1px; border: 1px solid var(--muted); border-radius: 2px; }
.vf__bat i { display: block; width: 70%; height: 100%; background: var(--muted); }
.hero__cross {
  position: absolute; left: var(--cx, 50%); top: var(--cy, 30%); z-index: -1;
  width: 26px; height: 26px; transform: translate(-50%, -50%);
  opacity: .45; pointer-events: none;
}
.hero__cross::before, .hero__cross::after { content: ''; position: absolute; background: var(--text); }
.hero__cross::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.hero__cross::after { top: 50%; left: 0; right: 0; height: 1px; }
@media (min-width: 768px) { .vf { font-size: 11px; } .vf__tr, .vf__br { display: flex; } }

.hero__content { position: relative; }
.hero__title {
  max-width: 10.5em;
  margin-bottom: 26px;
  font: 800 clamp(2.3rem, 10vw, 5.4rem)/.98 var(--f-display);
  letter-spacing: -.045em;
}
/* «каждый кадр» в рамке автофокуса: уголки съезжаются, текст становится резким */
.focus-word { position: relative; display: inline-block; padding: 0 .16em .02em; white-space: nowrap; }
.focus-word__txt { display: inline-block; }
.fw { --b: clamp(2px, .035em, 4px); position: absolute; width: .22em; height: .22em; border: 0 solid var(--accent); }
.fw--tl { left: 0; top: .06em; border-width: var(--b) 0 0 var(--b); --dx: -1; --dy: -1; }
.fw--tr { right: 0; top: .06em; border-width: var(--b) var(--b) 0 0; --dx: 1; --dy: -1; }
.fw--bl { left: 0; bottom: -.04em; border-width: 0 0 var(--b) var(--b); --dx: -1; --dy: 1; }
.fw--br { right: 0; bottom: -.04em; border-width: 0 var(--b) var(--b) 0; --dx: 1; --dy: 1; }
.js .hero__title .fw { opacity: 0; transform: translate(calc(var(--dx) * .32em), calc(var(--dy) * .24em)); }
.js .hero__title.is-in .fw { animation: afLock 1.1s var(--ease-out) .8s forwards; }
.js .hero__title .focus-word__txt { filter: blur(.05em); opacity: .6; }
.js .hero__title.is-in .focus-word__txt { animation: afPull 1.1s ease-out .8s forwards; }
@keyframes afLock {
  0%   { opacity: 0; transform: translate(calc(var(--dx) * .32em), calc(var(--dy) * .24em)); border-color: var(--text); }
  55%  { opacity: 1; transform: translate(calc(var(--dx) * -.03em), calc(var(--dy) * -.03em)); border-color: var(--text); }
  75%  { transform: none; border-color: var(--accent); }
  100% { opacity: 1; transform: none; border-color: var(--accent); }
}
@keyframes afPull {
  60%  { filter: blur(.015em); opacity: .9; }
  100% { filter: none; opacity: 1; }
}
@media (min-width: 1024px) { .hero__title { font-size: clamp(3rem, 5.4vw, 5.4rem); } }
.hero__lead { max-width: 44ch; margin-bottom: 32px; font-size: clamp(15px, 1.25vw, 18px); color: var(--muted); }
.hero__actions { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 600px) { .hero__actions { flex-direction: row; flex-wrap: wrap; } }
.hero__scroll { display: none; }
@media (min-width: 1024px) {
  .hero__scroll {
    position: absolute; right: var(--gutter); bottom: 64px;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    writing-mode: vertical-rl;
    font: 500 10px var(--f-mono); letter-spacing: .2em; text-transform: uppercase;
    color: var(--muted); text-decoration: none;
  }
  .hero__scroll i { position: relative; width: 1px; height: 56px; overflow: hidden; background: var(--line-2); }
  .hero__scroll i::after {
    content: ''; position: absolute; left: 0; top: -40%; width: 100%; height: 40%;
    background: var(--text); animation: scrollLine 2s var(--ease) infinite;
  }
}
@keyframes scrollLine { to { top: 100%; } }

/* Бегущая строка */
.ticker { position: relative; z-index: 2; padding: 36px 0; overflow: hidden; }
.ticker__band {
  margin: 0 -4vw; padding: 16px 0;
  background: var(--accent); color: #fff;
  transform: rotate(-2.2deg);
  box-shadow: 0 20px 60px -20px rgba(240, 48, 31, .5);
}
.ticker__track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.ticker__group {
  display: flex; align-items: center; gap: 28px; padding-right: 28px;
  font: 700 clamp(20px, 2.8vw, 38px)/1 var(--f-display); letter-spacing: -.01em; text-transform: uppercase;
  white-space: nowrap;
}
.ticker__group b { font-size: .7em; font-weight: 500; opacity: .75; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   SC 02 · МАНИФЕСТ
   ========================================================================== */
.manifest__text {
  max-width: 22em;
  margin-bottom: clamp(56px, 9vw, 120px);
  font: 500 clamp(1.45rem, 3.3vw, 3rem)/1.22 var(--f-body);
  letter-spacing: -.025em;
}
.manifest__text .accent { color: var(--accent); }
.js .manifest__text .mw { opacity: .16; transition: opacity .35s; }
.js .manifest__text .mw.on { opacity: 1; }
.stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.stats li { display: flex; flex-direction: column; gap: 10px; padding: 24px 16px 24px 0; border-bottom: 1px solid var(--line); }
.stats li:nth-child(odd) { border-right: 1px solid var(--line); }
.stats li:nth-child(even) { padding-left: 16px; }
.stats b { font: 800 clamp(2.6rem, 5.6vw, 5rem)/1 var(--f-display); letter-spacing: -.05em; }
.stats span { max-width: 24ch; font-size: 14px; color: var(--muted); }
@media (min-width: 1024px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stats li { padding: 32px 28px 32px 0; border-right: 1px solid var(--line); }
  .stats li + li { padding-left: 28px; }
  .stats li:last-child { border-right: 0; }
}

/* ==========================================================================
   SC 03 · ШОУРИЛ (плёночный отсчёт)
   ========================================================================== */
.reel__frame {
  position: relative; isolation: isolate;
  display: block; width: 100%; aspect-ratio: 16 / 9;
  padding: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: clamp(14px, 2vw, 24px);
  background: #12110e;
  text-align: left; cursor: pointer;
  container-type: inline-size;
}
@media (max-width: 599px) { .reel__frame { aspect-ratio: 4 / 5; } }
.leader {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, #2b2921 0%, #14130f 72%);
  color: var(--text);
  animation: flicker 4s infinite;
}
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.leader__sweep {
  position: absolute; left: 50%; top: 50%;
  width: 160cqw; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: conic-gradient(rgba(242, 239, 233, .13) 0deg, rgba(242, 239, 233, .13) var(--a), transparent var(--a));
  animation: sweep 1s linear infinite;
}
@keyframes sweep { from { --a: 0deg; } to { --a: 360deg; } }
@keyframes flicker { 0%, 100% { opacity: 1; } 48% { opacity: .96; } 50% { opacity: .86; } 52% { opacity: .98; } }
.leader__ring {
  position: absolute; left: 50%; top: 50%;
  height: min(76%, 80cqw); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(242, 239, 233, .6); border-radius: 50%;
}
.leader__ring--in { height: min(62%, 66cqw); border-width: 1px; border-color: rgba(242, 239, 233, .32); }
.leader__cross::before, .leader__cross::after { content: ''; position: absolute; background: rgba(242, 239, 233, .2); }
.leader__cross::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.leader__cross::after { top: 50%; left: 0; right: 0; height: 1px; }
.leader__num {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -52%);
  font: 800 24cqw/1 var(--f-display);
  color: rgba(242, 239, 233, .92);
}
.reel__meta {
  position: absolute; top: 16px;
  font: 500 10px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase;
  color: rgba(242, 239, 233, .7);
}
.reel__meta--l { left: 16px; }
.reel__meta--r { right: 16px; color: var(--accent); }
.reel__play {
  position: absolute; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 22px 0 6px;
  border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 15px; font-weight: 600;
  transition: transform .4s var(--ease), background-color .3s;
}
.reel__play-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(0, 0, 0, .2); }
.reel__frame:hover .reel__play { transform: scale(1.05); background: var(--accent-hi); }
@media (min-width: 768px) {
  .reel__meta { top: 24px; font-size: 11px; }
  .reel__meta--l { left: 28px; } .reel__meta--r { right: 28px; }
  .reel__play { left: 28px; bottom: 28px; height: 60px; font-size: 16px; }
  .reel__play-ico { width: 48px; height: 48px; }
}

/* Модальное окно */
.modal {
  width: min(1040px, calc(100% - 32px)); max-height: calc(100% - 32px);
  padding: 0; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: 20px;
  background: var(--bg-2); color: var(--text);
}
.modal::backdrop { background: rgba(0, 0, 0, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open] { animation: modalIn .45s var(--ease-out); }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(10, 10, 11, .7);
  font-size: 24px; line-height: 1; cursor: pointer;
}
.modal__body--video { aspect-ratio: 16 / 9; background: #000; }
.modal__body--video iframe, .modal__body--video video { width: 100%; height: 100%; border: 0; }
.modal__ph { padding: clamp(32px, 6vw, 72px); }
.modal__ph h3 { margin-bottom: 16px; font: 700 clamp(1.8rem, 4.4vw, 3rem)/1.05 var(--f-display); letter-spacing: -.03em; }
.modal__ph p { max-width: 46ch; margin-bottom: 28px; color: var(--muted); }

/* ==========================================================================
   SC 04 · УСЛУГИ
   ========================================================================== */
.svc { border-top: 1px solid var(--line); }
.svc__row { position: relative; border-bottom: 1px solid var(--line); }
.svc__head {
  width: 100%;
  display: grid; grid-template-columns: 40px 1fr 36px; align-items: center; gap: 12px;
  padding: 22px 0;
  background: none; border: 0; text-align: left; cursor: pointer;
}
.svc__num { font: 500 12px var(--f-mono); letter-spacing: .08em; color: var(--muted); transition: color .3s; }
.svc__name { font: 700 clamp(1.5rem, 5vw, 3.8rem)/1.02 var(--f-display); letter-spacing: -.035em; transition: transform .5s var(--ease); }
.svc__icon {
  position: relative; width: 36px; height: 36px;
  border: 1px solid var(--line-2); border-radius: 50%;
  transition: transform .4s var(--ease), background-color .3s, border-color .3s;
}
.svc__icon::before, .svc__icon::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 12px; height: 1.5px; margin: -.75px 0 0 -6px;
  background: var(--text);
}
.svc__icon::after { transform: rotate(90deg); }
.svc__row.is-open .svc__icon { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); }
.svc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.svc__row.is-open .svc__body { grid-template-rows: 1fr; }
.svc__inner { min-height: 0; overflow: hidden; }
.svc__desc { max-width: 52ch; padding: 0 0 18px 52px; color: var(--muted); }
.svc__tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 22px 52px; }
.svc__tags li {
  padding: 7px 10px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font: 500 11px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
}
.svc__inner .viz { margin: 0 0 24px 52px; }
@media (min-width: 1024px) {
  .svc__row {
    display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: start;
    padding: 34px 0;
  }
  .svc__row::before {
    content: ''; position: absolute; inset: 0 calc(var(--gutter) * -1);
    background: linear-gradient(90deg, rgba(240, 48, 31, .09), rgba(240, 48, 31, 0) 70%);
    opacity: 0; transition: opacity .4s; pointer-events: none;
  }
  .svc__row:hover::before { opacity: 1; }
  .svc__head { grid-template-columns: 64px 1fr; padding: 0; cursor: default; }
  .svc__icon { display: none; }
  .svc__row:hover .svc__name { transform: translateX(14px); }
  .svc__row:hover .svc__num { color: var(--accent); }
  .svc__body { grid-template-rows: 1fr; }
  .svc__desc, .svc__tags { padding-left: 0; }
  .svc__desc { padding-top: 6px; }
  .svc__tags { padding-bottom: 0; }
  .svc__inner .viz { display: none; }
}

/* Плавающее превью услуги */
.svc-preview { position: fixed; left: 0; top: 0; z-index: 35; width: 260px; height: 182px; pointer-events: none; display: none; }
@media (min-width: 1024px) and (hover: hover) { .svc-preview { display: block; } }
.svc-preview__in {
  width: 100%; height: 100%; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: 16px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .85);
  opacity: 0; transform: scale(.6) rotate(-6deg);
  transition: opacity .3s, transform .5s var(--ease-out);
}
.svc-preview.is-on .svc-preview__in { opacity: 1; transform: scale(1) rotate(-3deg); }
.svc-preview .viz { height: 100%; border: 0; border-radius: 0; }

/* ---------- Мини-анимации услуг ---------- */
.viz {
  position: relative; height: 200px; overflow: hidden;
  border: 1px solid var(--line); border-radius: 12px;
  background: radial-gradient(120% 90% at 50% 0%, #1e1e22, #111113);
}
/* Сценарий: три листа, выбираем средний */
.viz--script .pg {
  position: absolute; left: 50%; top: 50%;
  width: 84px; height: 112px; margin: -56px 0 0 -42px; padding: 12px 10px;
  display: flex; flex-direction: column; gap: 7px;
  border-radius: 4px; background: var(--text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.viz--script .pg:nth-child(1) { transform: translateX(-64px) rotate(-10deg); }
.viz--script .pg:nth-child(2) { z-index: 2; animation: pick 3.2s var(--ease) infinite; }
.viz--script .pg:nth-child(3) { transform: translateX(64px) rotate(10deg); }
.viz--script .pg b { font: 700 11px/1 var(--f-mono); color: var(--accent); }
.viz--script .pg i { display: block; height: 5px; border-radius: 3px; background: #c4c0b8; transform-origin: left; animation: typeLine 3.2s var(--ease) infinite; }
.viz--script .pg i:nth-of-type(2) { width: 82%; animation-delay: .15s; }
.viz--script .pg i:nth-of-type(3) { width: 92%; animation-delay: .3s; }
.viz--script .pg i:nth-of-type(4) { width: 64%; animation-delay: .45s; }
.viz--script .pg i:nth-of-type(5) { width: 76%; animation-delay: .6s; }
@keyframes typeLine { 0% { transform: scaleX(0); } 30%, 100% { transform: scaleX(1); } }
@keyframes pick {
  0%, 35% { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
  55%, 85% { transform: translateY(-16px) scale(1.07); box-shadow: 0 0 0 2px var(--accent), 0 20px 40px rgba(0, 0, 0, .55); }
  100% { transform: translateY(-4px); }
}
/* CGI: глянцевая сфера над сеткой */
.viz--cgi { perspective: 600px; }
.viz--cgi .floor {
  position: absolute; left: -50%; right: -50%; top: 62%; height: 100%;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 28px 28px;
  transform: rotateX(72deg); transform-origin: 50% 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%);
  mask-image: linear-gradient(to bottom, transparent, #000 40%);
  animation: floor 2.4s linear infinite;
}
@keyframes floor { to { background-position: 0 28px; } }
.viz--cgi .orb {
  position: absolute; left: 50%; top: 44%;
  width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff 0 4%, #ffb4aa 11%, var(--accent) 36%, #5a0a04 74%, #1a0201 100%);
  box-shadow: inset -10px -14px 30px rgba(0, 0, 0, .5), 0 0 60px rgba(240, 48, 31, .35);
  animation: orb 3s ease-in-out infinite;
}
.viz--cgi .shadow {
  position: absolute; left: 50%; top: 72%;
  width: 90px; height: 16px; margin-left: -45px; border-radius: 50%;
  background: rgba(0, 0, 0, .7); filter: blur(6px);
  animation: orbShadow 3s ease-in-out infinite;
}
@keyframes orb { 50% { transform: translateY(-14px); } }
@keyframes orbShadow { 50% { transform: scale(.75); opacity: .5; } }
/* 3D: вращающийся куб */
.viz--3d {
  display: grid; place-items: center; perspective: 520px;
  background: radial-gradient(rgba(242, 239, 233, .1) 1px, transparent 1px) 0 0 / 16px 16px, radial-gradient(120% 90% at 50% 0%, #1e1e22, #111113);
}
.viz--3d .cube { position: relative; width: 78px; height: 78px; transform-style: preserve-3d; animation: spin 9s linear infinite; }
.viz--3d .cube i { position: absolute; inset: 0; border: 1.5px solid var(--c2); background: rgba(47, 211, 176, .07); box-shadow: inset 0 0 20px rgba(47, 211, 176, .15); }
.viz--3d .cube i:nth-child(1) { transform: translateZ(39px); }
.viz--3d .cube i:nth-child(2) { transform: rotateY(180deg) translateZ(39px); }
.viz--3d .cube i:nth-child(3) { transform: rotateY(90deg) translateZ(39px); }
.viz--3d .cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(39px); }
.viz--3d .cube i:nth-child(5) { transform: rotateX(90deg) translateZ(39px); }
.viz--3d .cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(39px); }
@keyframes spin { from { transform: rotateX(-22deg) rotateY(0); } to { transform: rotateX(-22deg) rotateY(360deg); } }
/* 2D: прыгающие фигуры */
.viz--2d::after { content: ''; position: absolute; left: 15%; right: 15%; bottom: 26%; height: 1px; background: var(--line-2); }
.viz--2d .sh { position: absolute; bottom: 26%; width: 36px; height: 36px; transform-origin: 50% 100%; animation: bounce .9s cubic-bezier(.5, 0, .5, 1) infinite alternate; }
.viz--2d .sh--c { left: calc(50% - 90px); border-radius: 50%; background: var(--c4); }
.viz--2d .sh--s { left: calc(50% - 18px); border-radius: 6px; background: var(--c3); animation-delay: -.3s; }
.viz--2d .sh--t { left: calc(50% + 54px); background: var(--c1); clip-path: polygon(50% 0, 100% 100%, 0 100%); animation-delay: -.6s; }
@keyframes bounce {
  0%   { transform: translateY(0) scale(1.25, .75); }
  15%  { transform: translateY(-10px) scale(.9, 1.1); }
  100% { transform: translateY(-80px) scale(1) rotate(180deg); }
}
/* Съёмка: фокусировка */
.viz--shoot .grid3 {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, transparent 33.2%, var(--line) 33.2% 33.5%, transparent 33.5% 66.5%, var(--line) 66.5% 66.8%, transparent 66.8%),
    linear-gradient(transparent 33.2%, var(--line) 33.2% 33.7%, transparent 33.7% 66.3%, var(--line) 66.3% 66.8%, transparent 66.8%);
}
.viz--shoot .subj {
  position: absolute; left: 66.6%; top: 36%;
  width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #ffd9b8, #d07a48 55%, #4a200d);
  animation: pull 3.2s ease-in-out infinite;
}
.viz--shoot .subj::after {
  content: ''; position: absolute; left: 50%; top: 112%;
  width: 116px; height: 90px; margin-left: -58px;
  border-radius: 58px 58px 0 0; background: linear-gradient(#2b3a55, #18202f);
}
@keyframes pull { 0%, 15% { filter: blur(7px); } 45%, 100% { filter: blur(0); } }
.viz--shoot .focus {
  position: absolute; left: 66.6%; top: 36%;
  width: 84px; height: 84px; margin: -42px 0 0 -42px;
  border: 1.5px solid var(--c3);
  animation: af 3.2s ease-in-out infinite;
}
@keyframes af {
  0% { transform: scale(1.6); opacity: 0; }
  15% { opacity: 1; }
  40% { transform: scale(1); border-color: var(--c3); }
  50%, 100% { transform: scale(1); border-color: #4dff9a; }
}
.viz--shoot .rec { position: absolute; left: 12px; top: 12px; display: flex; align-items: center; gap: 6px; font: 500 10px var(--f-mono); }
.viz--shoot .rec::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 1s steps(1) infinite; }
.viz--shoot .meta { position: absolute; left: 12px; bottom: 10px; font: 500 9px var(--f-mono); color: var(--muted); }
/* Монтаж: дорожки и плейхед */
.viz--edit { display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 0 14px; }
.viz--edit .trk { position: relative; height: 30px; border-radius: 5px; background: rgba(255, 255, 255, .035); }
.viz--edit .trk--a { height: 24px; }
.viz--edit .trk i {
  position: absolute; top: 3px; bottom: 3px; left: var(--x); width: var(--w);
  border: 1px solid var(--c); border-radius: 4px;
  background: color-mix(in srgb, var(--c) 55%, #111);
  animation: nudge 4s var(--ease) infinite alternate;
}
.viz--edit .trk:nth-child(2) i { animation-delay: -1.3s; }
.viz--edit .trk--a i { background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--c) 70%, #111) 0 2px, transparent 2px 4px); animation: none; }
@keyframes nudge { to { transform: translateX(6%); } }
.viz--edit .ph { position: absolute; top: 18%; bottom: 18%; left: 14px; width: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: scrub 4s linear infinite; }
.viz--edit .ph::before { content: ''; position: absolute; top: -7px; left: -4px; width: 10px; height: 8px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 50% 100%); }
@keyframes scrub { from { left: 14px; } to { left: calc(100% - 16px); } }

/* ==========================================================================
   SC 05 · ПРОЦЕСС — монтажный таймлайн
   Телефон: вертикальная лента. ПК: горизонтальный таймлайн с плейхедом.
   ========================================================================== */
.process__head { display: grid; gap: 28px; margin-bottom: 40px; }
.process__head .label { margin-bottom: 20px; }
.idea-toggle__q { margin-bottom: 12px; font: 500 12px/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.idea-toggle__ctl {
  position: relative; max-width: 440px;
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 4px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg-2);
}
.idea-toggle__pill {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 999px; background: var(--text);
  transition: transform .45s var(--ease);
}
.idea-toggle[data-v="yes"] .idea-toggle__pill { transform: translateX(100%); }
.idea-toggle__ctl button {
  position: relative; z-index: 1;
  height: 44px; padding: 0 10px;
  border: 0; border-radius: 999px; background: none;
  font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap;
  cursor: pointer; transition: color .3s;
}
.idea-toggle__ctl button[aria-pressed="true"] { color: var(--bg); }
@media (min-width: 400px) { .idea-toggle__ctl button { font-size: 14px; } }

.tl { position: relative; }
.tl__labels, .tl__ruler, .tl__audio, .tl__playhead, .tl__hint { display: none; }
.tl__track {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--gutter) 0 calc(var(--gutter) + 32px);
}
.tl__track::before, .tl__track::after {
  content: ''; position: absolute; left: calc(var(--gutter) + 9px); top: 8px; bottom: 8px;
  width: 2px; border-radius: 2px;
}
.tl__track::before { background: var(--line); }
.tl__track::after { background: var(--accent); transform-origin: top; transform: scaleY(var(--tlp, 0)); }
.tl__clip {
  --c: var(--c1);
  position: relative;
  border: 1px solid var(--line);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  border-radius: 14px;
  background: var(--bg-2);
  background: color-mix(in srgb, var(--c) 8%, var(--bg-2));
  transition: opacity .5s, transform .5s var(--ease), border-color .4s, box-shadow .4s;
}
.tl__clip::before {
  content: ''; position: absolute; left: -29px; top: 8px;
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--c); background: var(--bg);
  transition: background-color .3s, box-shadow .3s;
}
.tl__clip.is-active::before { background: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 25%, transparent); }
.tl__clip.is-active { border-color: var(--c); }
.tl__bar {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 7px 14px;
  border-radius: 13px 13px 0 0;
  background: var(--c); color: #0a0a0b;
  font: 500 11px/1.2 var(--f-mono); letter-spacing: .04em;
}
.tl__body { padding: 18px 18px 20px; }
.tl__body h3 { margin-bottom: 10px; font: 700 1.5rem/1.1 var(--f-display); letter-spacing: -.03em; }
.tl__body p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.tl__tag {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px; padding: 7px 12px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font: 500 11px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
}
.tl__tag::before { content: ''; width: 7px; height: 7px; transform: rotate(45deg); background: currentColor; }
.tl__tag--ok { color: var(--c2); border-color: rgba(47, 211, 176, .45); }
.tl__tag--loop { color: var(--c4); border-color: rgba(255, 92, 168, .45); }
.tl__tag--loop::before { content: '↺'; width: auto; height: auto; transform: none; background: none; font-size: 14px; }

/* --- Горизонтальный режим (класс ставит JS: ПК, достаточно высоты, без reduced-motion) --- */
.tl-h .process { padding: 0; height: var(--process-h, 420vh); }
.tl-h .process__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--header-h);
  overflow: hidden;
}
.tl-h .process__head { grid-template-columns: 1fr auto; align-items: end; margin-bottom: clamp(24px, 4.5vh, 48px); }
.tl-h .tl { border-block: 1px solid var(--line); background: linear-gradient(var(--bg-2), var(--bg)); }
.tl-h .tl__viewport { overflow: hidden; }
.tl-h .tl__move { width: max-content; will-change: transform; }
.tl-h .tl__ruler {
  display: block; position: relative; height: 30px;
  border-bottom: 1px solid var(--line);
  background-image:
    repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px var(--tick-l, 100px)),
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px var(--tick-s, 20px));
  background-size: 100% 100%, 100% 8px;
  background-position: 0 0, 0 100%;
  background-repeat: no-repeat;
}
.tl-h .tl__ruler span { position: absolute; top: 7px; padding-left: 5px; font: 500 10px/1 var(--f-mono); color: var(--dim); }
.tl-h .tl__track { flex-direction: row; align-items: stretch; gap: 10px; max-width: none; margin: 0; padding-block: 18px; }
.tl-h .tl__track::before, .tl-h .tl__track::after, .tl-h .tl__clip::before { display: none; }
.tl-h .tl__clip { flex: 0 0 clamp(300px, 27vw, 400px); opacity: .4; }
.tl-h .tl__clip.is-active { opacity: 1; transform: translateY(-4px); box-shadow: 0 24px 70px -30px var(--c); }
.tl-h .tl__body { min-height: clamp(180px, 25vh, 240px); }
.tl-h .tl__audio { display: block; height: 46px; border-top: 1px solid var(--line); color: rgba(47, 211, 176, .5); }
.tl-h .tl__audio svg { height: 100%; max-width: none; }
.tl-h .tl__labels {
  position: absolute; left: 0; top: 0; bottom: 0; z-index: 3;
  display: flex; flex-direction: column;
  width: 64px; padding-top: 30px;
  background: linear-gradient(90deg, var(--bg-2) 55%, transparent);
  font: 500 10px var(--f-mono); color: var(--muted);
}
.tl-h .tl__labels span { display: flex; align-items: center; padding-left: var(--gutter); }
.tl-h .tl__labels span:first-child { flex: 1; }
.tl-h .tl__labels span:last-child { height: 46px; }
.tl-h .tl__playhead {
  display: block;
  position: absolute; top: 0; bottom: 0; left: var(--ph, 30vw); z-index: 4;
  width: 1px; background: var(--accent); pointer-events: none;
  box-shadow: 0 0 14px rgba(240, 48, 31, .6);
}
.tl-h .tl__playhead::before {
  content: ''; position: absolute; top: 0; left: -7px;
  width: 15px; height: 16px; background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%);
}
.tl-h .tl__playhead span {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  padding: 5px 8px; border-radius: 4px;
  background: var(--accent); color: #fff;
  font: 500 11px/1 var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.tl-h .tl__hint {
  display: flex; align-items: center; gap: 10px;
  margin-top: 20px;
  font: 500 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.tl-h .tl__hint span { color: var(--accent); animation: nudgeDown 1.6s ease-in-out infinite; }
@keyframes nudgeDown { 50% { transform: translateY(4px); } }

/* ==========================================================================
   SC 06 · FAQ
   ========================================================================== */
.faq__grid { display: grid; gap: 40px; }
.faq__text { max-width: 34ch; margin: 20px 0 28px; color: var(--muted); }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0;
  list-style: none; cursor: pointer;
  font: 500 clamp(1.05rem, 1.6vw, 1.3rem)/1.35 var(--f-body); letter-spacing: -.01em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ''; flex: 0 0 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line-2);
  background: linear-gradient(var(--text), var(--text)) center / 12px 1.5px no-repeat, linear-gradient(var(--text), var(--text)) center / 1.5px 12px no-repeat;
  transition: transform .4s var(--ease), background-color .3s, border-color .3s;
}
.qa[open] summary::after { transform: rotate(45deg); background-color: var(--accent); border-color: var(--accent); }
.qa__a { max-width: 62ch; padding: 0 48px 24px 0; color: var(--muted); }
.qa[open] .qa__a { animation: qaIn .5s var(--ease-out); }
@keyframes qaIn { from { opacity: 0; transform: translateY(-8px); } }
@media (min-width: 1024px) {
  .faq__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 80px; }
  .faq__side { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
}

/* ==========================================================================
   SC 07 · КОНТАКТЫ
   Клиент пишет сам. Хлопушка помогает собрать первое сообщение.
   ========================================================================== */
.contact__grid { display: grid; gap: 40px; grid-template-areas: "intro" "builder" "clap" "send"; }
.contact__intro { grid-area: intro; }
.builder { grid-area: builder; min-width: 0; }
.clapper-wrap { grid-area: clap; }
.send { grid-area: send; min-width: 0; }
@media (min-width: 1024px) {
  .contact__grid {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    grid-template-areas: "intro builder" "clap builder" "clap send";
    grid-template-rows: auto 1fr auto;
    column-gap: clamp(48px, 7vw, 120px); row-gap: 40px;
  }
  .clapper-wrap { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
  .contact__intro .h2 { font-size: clamp(2.4rem, 3.9vw, 3.8rem); }
}
.contact__lead { max-width: 42ch; margin: 20px 0 28px; color: var(--muted); }
.quick { display: grid; gap: 8px; max-width: 460px; }
.quick__item {
  display: grid; grid-template-columns: 44px 1fr 20px; align-items: center; gap: 14px;
  padding: 12px 16px 12px 12px;
  border: 1px solid var(--line); border-radius: 16px;
  text-decoration: none;
  transition: border-color .25s, background-color .25s;
}
.quick__item:hover { border-color: var(--line-2); background: var(--bg-2); }
.quick__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--bg-3); }
.quick__item small { display: block; font: 500 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.quick__item b { font-weight: 500; }
.quick__item > svg { color: var(--muted); transition: transform .3s var(--ease), color .3s; }
.quick__item:hover > svg { transform: translate(3px, -3px); color: var(--text); }


.builder { padding: clamp(22px, 3.5vw, 36px); border: 1px solid var(--line); border-radius: 24px; background: var(--bg-2); }
.builder__head { margin-bottom: 28px; }
.builder__head h3 { margin-bottom: 8px; font: 700 clamp(1.3rem, 2.4vw, 1.8rem)/1.15 var(--f-display); letter-spacing: -.03em; }
.builder__head p { max-width: 48ch; color: var(--muted); }
.builder fieldset { min-width: 0; margin: 0 0 26px; padding: 0; border: 0; }
.builder fieldset:last-child { margin-bottom: 0; }
.builder legend { margin-bottom: 14px; padding: 0; font: 500 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 18px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 15px; font-weight: 500;
  user-select: none; -webkit-user-select: none;
  transition: background-color .25s, color .25s, border-color .25s, transform .2s;
}
.chip:hover span { border-color: var(--text); }
.chip:active span { transform: scale(.96); }
.chip input:checked + span { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip input:checked + span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }


.send__label { margin-bottom: 10px; font: 500 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.send__msg {
  margin-bottom: 18px; padding: 16px 18px;
  border: 1px dashed var(--line-2); border-radius: 14px;
  font: 400 14px/1.65 var(--f-mono); white-space: pre-line; overflow-wrap: anywhere;
}
/* кнопки переносятся на новую строку, если не помещаются (раньше «Скопировать» обрезалась) */
.send__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.send__btns .btn { flex: 1 1 auto; }
.send__btns .btn:first-child { flex-basis: 100%; }
.send__btns .btn svg { flex: none; }
@media (min-width: 600px) { .send__btns .btn:first-child { flex-basis: 240px; } }
.send__note { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* Хлопушка */
.clapper { max-width: 460px; margin: 0 auto; padding-top: min(100px, 22%); filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .6)); }
.clapper__sticks { position: relative; height: 64px; }
.clapper__stick {
  position: absolute; left: 0; right: 0; height: 30px;
  border: 2px solid var(--text); border-radius: 4px;
  background: repeating-linear-gradient(118deg, var(--text) 0 24px, #111 24px 48px);
}
.clapper__stick--top { top: 0; transform-origin: 8px 100%; transform: rotate(-12deg); }
.clapper__stick--bottom { top: 32px; background: repeating-linear-gradient(62deg, var(--text) 0 24px, #111 24px 48px); }
.clapper__board { padding: 4px 0; border: 2px solid var(--text); border-top: 0; border-radius: 0 0 10px 10px; background: #141416; }
.clapper__row { display: flex; flex-direction: column; gap: 5px; padding: 10px 16px; border-bottom: 1px solid rgba(242, 239, 233, .18); }
.clapper__row:last-child { border-bottom: 0; }
.clapper__row--cols { flex-direction: row; padding: 0; }
.clapper__row--cols > div { display: flex; flex: 1; flex-direction: column; gap: 5px; min-width: 0; padding: 10px 16px; border-right: 1px solid rgba(242, 239, 233, .18); }
.clapper__row--cols > div:last-child { border-right: 0; }
.clapper small { font: 500 9.5px/1 var(--f-mono); letter-spacing: .14em; color: var(--muted); }
.clapper b { min-height: 1.3em; font: 500 15px/1.3 var(--f-mono); letter-spacing: .02em; text-transform: uppercase; overflow-wrap: anywhere; }
.clapper b.flash { animation: chalk .7s; }
@keyframes chalk { 0% { color: var(--accent); } 100% { color: var(--text); } }
.clapper.is-clap .clapper__stick--top { animation: clap .55s cubic-bezier(.7, 0, .3, 1) forwards; }
.clapper.is-clap .clapper__board { animation: thud .3s .4s; }
@keyframes clap { 0% { transform: rotate(-12deg); } 45% { transform: rotate(-26deg); } 80% { transform: rotate(0); } 90% { transform: rotate(-2deg); } 100% { transform: rotate(0); } }
@keyframes thud { 50% { transform: translateY(3px); } }
.clapper-cap { margin-top: 16px; text-align: center; font: 500 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }


/* Всплывающее уведомление */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 90;
  max-width: calc(100% - 32px); padding: 12px 18px;
  border-radius: 12px; background: var(--text); color: var(--bg);
  font-size: 14px; font-weight: 500; text-align: center;
  opacity: 0; pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity .3s, transform .4s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   ФУТЕР
   ========================================================================== */
.footer { position: relative; overflow: hidden; padding-top: var(--section-y); border-top: 1px solid var(--line); }
.footer__cta { margin-bottom: clamp(64px, 10vw, 140px); }
.footer__big {
  display: inline-block;
  font: 800 clamp(2.8rem, 10vw, 9.5rem)/.95 var(--f-display); letter-spacing: -.05em;
  text-decoration: none;
}
.footer__nw { white-space: nowrap; }
.footer__accent { color: var(--accent); transition: color .3s; }
/* vertical-align: middle ставит стрелку ровно по центру строчных букв */
.footer__arrow {
  display: inline-block; width: .72em; height: .72em; margin-left: .12em;
  vertical-align: middle; transition: transform .5s var(--ease);
}
.footer__big:hover .footer__arrow { transform: translateX(.12em); }
.footer__big:hover .footer__accent { color: var(--accent-hi); }
.footer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-bottom: 56px; }
.footer__grid h4 { margin-bottom: 14px; font: 500 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.footer__grid a, .footer__grid li { display: block; padding: 4px 0; text-decoration: none; }
.footer__grid a:hover { color: var(--accent); }
.footer__col--wide { grid-column: 1 / -1; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr; } .footer__col--wide { grid-column: auto; } }
.footer__mark {
  display: flex; justify-content: center;
  margin-bottom: -.06em; padding-top: .06em;
  font: 800 19vw/.8 var(--f-display); letter-spacing: -.05em;
  /* большое имя без обводки: сплошная заливка, которая растворяется к низу */
  background: linear-gradient(180deg, rgba(242, 239, 233, .16) 0%, rgba(242, 239, 233, .03) 80%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  user-select: none; -webkit-user-select: none;
}
.footer__mark span { transition: color .8s; }
.footer__mark span:hover { color: var(--accent); transition-duration: .1s; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  padding-block: 22px calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font: 500 11px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.footer__bottom a { text-decoration: none; }

/* ---------- Нижняя панель действий (телефон) ---------- */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 52px 52px; gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(10, 10, 11, .82);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transform: translateY(110%);
  transition: transform .45s var(--ease);
}
.mbar.is-visible { transform: none; }
html.menu-open .mbar { transform: translateY(110%); }
.mbar .btn { height: 52px; }
.mbar__ico { display: grid; place-items: center; height: 52px; border: 1px solid var(--line-2); border-radius: 50%; text-decoration: none; }
@media (min-width: 768px) { .mbar { display: none; } }

/* ---------- Появление при скролле ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em 0 .16em; margin: -.06em 0 -.16em; }
.js [data-split] .w > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.js [data-split].is-in .w > span { transform: none; }

/* ---------- Уважение к reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal], .js [data-split] .w > span { opacity: 1; transform: none; }
  .js .manifest__text .mw { opacity: 1; }
}
