/* Hallmark · checked: 2026-10-27 · genre: atmospheric (reference: lusion.co, chosen by the client)
 * floor: 26a, 26b, 34 are read from this external file, which the static tier does not open · waived: 19 (numeric ranges 7–14), 54 (closing kicker is the Lusion pattern), 63 (tag rows with • and arrows copied from the reference on request)
 * built: the project · redesign: rebuild · v3.0.0 */
/* Melvi. Раскладка и движение по мотивам lusion.co: светлая основа, тёмные зоны,
   хромовое 3D, строки выезжают из-под маски, буквы перекатываются при наведении.
   Заголовки Onest 500, текст Wix Madefor Display 400 (кириллический аналог Aeonik). */

/* ---------- Токены ---------- */
:root {
  --bg: #eceef2;
  --text: #0d0d10;
  --muted: rgb(13 13 16 / 0.58);
  --line: rgb(13 13 16 / 0.14);
  --card: #ffffff;
  --chip: rgb(13 13 16 / 0.06);
  --frame: #0a0a0c;
  --on-frame: #f2f2f4;
  --accent: #6d5cff;

  --font-head: "Onest", system-ui, sans-serif;
  --font: "Wix Madefor Display", "Onest", system-ui, sans-serif;
  --mono: "Wix Madefor Display", "Onest", system-ui, sans-serif;

  --gutter: clamp(16px, 2.8vw, 40px);
  --radius: 16px;
  --radius-lg: clamp(16px, 1.8vw, 26px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);

  --fs-giant: clamp(3rem, 9.6vw, 9.6rem);
  --fs-h2: clamp(2.6rem, 7.4vw, 7.4rem);
  --fs-h2-md: clamp(2.2rem, 4.6vw, 4.6rem);
  --fs-intro: clamp(1.45rem, 2.5vw, 2.3rem);
  --fs-body: clamp(1rem, 0.4vw + 0.9rem, 1.15rem);
  --fs-label: 0.8125rem;
}

/* Тёмная тема и «инверсия» для тёмных зон: в светлой теме зона тёмная, в тёмной светлая */
:root[data-theme="dark"],
:root[data-theme="light"].is-invert {
  --bg: #08080a;
  --text: #f2f2f4;
  --muted: rgb(242 242 244 / 0.6);
  --line: rgb(242 242 244 / 0.14);
  --card: #151518;
  --chip: rgb(242 242 244 / 0.08);
}
:root[data-theme="dark"].is-invert {
  --bg: #eceef2;
  --text: #0d0d10;
  --muted: rgb(13 13 16 / 0.58);
  --line: rgb(13 13 16 / 0.14);
  --card: #ffffff;
  --chip: rgb(13 13 16 / 0.06);
}

/* Тоннель и финальная сцена: тёмные в любой теме */
:root.is-dark-zone[data-theme] {
  --bg: #050507;
  --text: #f2f2f4;
  --muted: rgb(242 242 244 / 0.6);
  --line: rgb(242 242 244 / 0.14);
  --card: #151518;
  --chip: rgb(242 242 244 / 0.08);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; overflow-x: clip; font-variant-numeric: tabular-nums;
  background: var(--bg); color: var(--text);
  font: 400 var(--fs-body)/1.4 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  transition: background-color 700ms var(--ease-io), color 700ms var(--ease-io);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }

.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 999px; background: var(--text); color: var(--bg); }
.skip:focus { top: 12px; }

.label { font-size: var(--fs-label); line-height: 1.4; text-transform: uppercase; letter-spacing: 0.02em; }
.h2 { font: 500 var(--fs-h2)/0.95 var(--font-head); letter-spacing: -0.05em; }
.h2--md { font-size: var(--fs-h2-md); line-height: 1; letter-spacing: -0.045em; }

section { position: relative; padding-inline: var(--gutter); }

/* ---------- Перекат букв при наведении (как у Lusion) ---------- */
.roll { display: inline-flex; white-space: pre; vertical-align: top; }
.roll__c { position: relative; display: inline-block; overflow: hidden; line-height: inherit; }
.roll__c > span { display: block; transition: transform 600ms var(--ease); transition-delay: calc(var(--i) * 16ms); }
.roll__c > span + span { position: absolute; left: 0; top: 100%; }
:is(a, button, .svc, .founder):hover .roll__c > span,
:is(a, button):focus-visible .roll__c > span { transform: translateY(-100%); }

/* ---------- Кнопки-пилюли ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 44px; padding: 0 18px;
  border: 0; border-radius: 999px; cursor: pointer;
  font: 500 0.8125rem/1 var(--font); text-transform: uppercase; letter-spacing: 0.02em;
  transition: background-color 400ms var(--ease), color 400ms var(--ease), transform 400ms var(--ease);
}
.pill--dark { background: var(--text); color: var(--bg); }
.pill--light { background: var(--card); color: var(--text); box-shadow: 0 0 0 1px var(--line); }
.pill--big { min-height: 60px; padding: 0 28px; font-size: 0.9375rem; }
.pill__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; transition: transform 500ms var(--ease); }
.pill:hover .pill__dot { transform: scale(1.8); }
.pill:active, .round-btn:active, .chip:active, .chat__send:active { transform: scale(0.96); }
.pill:disabled, .chat__send:disabled { opacity: 0.5; cursor: not-allowed; }
.pill__dots { display: inline-grid; grid-template-columns: repeat(2, 4px); gap: 3px; }
.pill__dots b { width: 4px; height: 4px; border-radius: 50%; background: currentColor; transition: transform 500ms var(--ease); }
.pill:hover .pill__dots b:first-child { transform: translateX(7px); }
.pill:hover .pill__dots b:last-child { transform: translateX(-7px); }

.round-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.round-btn__half { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--text); background: linear-gradient(90deg, var(--text) 50%, transparent 50%); transition: transform 700ms var(--ease); }
.round-btn:hover .round-btn__half { transform: rotate(180deg); }

/* ---------- Шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px var(--gutter);
  pointer-events: none;
}
.header > * { pointer-events: auto; }
.header { transition: transform 600ms var(--ease); }
.header.is-hidden { transform: translateY(-130%); }
/* Мягкая подложка, когда шапка возвращается поверх контента */
.header::before { content: ""; position: absolute; inset: 0 0 -28px; z-index: -1; background: linear-gradient(var(--bg) 45%, transparent); opacity: 0; transition: opacity 500ms, background-color 700ms; pointer-events: none; }
.header.is-scrolled::before { opacity: 1; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); transition: color 700ms var(--ease-io); }
.brand__mark { width: 34px; height: 25px; fill: none; stroke: currentColor; stroke-width: 6.5; stroke-linecap: round; }
.brand__word { font: 500 1.5rem/1 var(--font-head); letter-spacing: -0.05em; }
.header__right { display: flex; align-items: center; gap: 8px; }
.menu-label { display: inline-grid; overflow: hidden; line-height: 1.2; }
.pill .roll__c { line-height: 1.2; }
.menu-label__a, .menu-label__b { grid-area: 1 / 1; transition: transform 600ms var(--ease); }
.menu-label__b { transform: translateY(110%); }
.is-menu-open .menu-label__a { transform: translateY(-110%); }
.is-menu-open .menu-label__b { transform: none; }

/* Меню: стопка карточек, выпадает справа сверху */
.menu {
  position: absolute; top: 76px; right: var(--gutter);
  display: grid; gap: 8px; width: min(340px, calc(100vw - 2 * var(--gutter)));
}
.menu[hidden] { display: none; }
.menu__card { border-radius: 14px; background: var(--card); color: var(--text); box-shadow: 0 0 0 1px var(--line), 0 20px 50px rgb(0 0 0 / 0.08); transform-origin: top right; }
.menu__nav { display: grid; padding: 10px 20px; }
.menu__nav a { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.02em; }
.menu__nav a.is-active::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.menu__write { padding: 20px; }
.menu__write p { font: 400 1.6rem/1.1 var(--font); letter-spacing: -0.02em; margin-bottom: 18px; }
.menu__field { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 0 16px; border-radius: 10px; background: var(--chip); font-size: 0.9375rem; }
.menu__mail { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; background: var(--text); color: var(--bg); font-size: 0.9375rem; }

/* ---------- Кресты-разметка ---------- */
.crosses { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.crosses i { position: relative; width: 11px; height: 11px; }
.crosses i::before, .crosses i::after { content: ""; position: absolute; background: var(--text); }
.crosses i::before { left: 5px; top: 0; width: 1px; height: 11px; }
.crosses i::after { top: 5px; left: 0; height: 1px; width: 11px; }
.crosses span { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- Первый экран ---------- */
.hero { display: flex; flex-direction: column; min-height: 100svh; padding-top: clamp(96px, 12vh, 128px); }
.hero__intro { max-width: 24em; margin-bottom: clamp(22px, 3vh, 36px); font: 400 var(--fs-intro)/1.15 var(--font); letter-spacing: -0.02em; }
.hero__frame {
  position: relative; flex: 1; min-height: 360px; overflow: hidden;
  border-radius: var(--radius-lg);
  background: radial-gradient(120% 90% at 65% 30%, #1d1d25 0%, #0b0b0e 55%, #060607 100%);
  color: var(--on-frame);
  isolation: isolate;
}
:root[data-theme="dark"] .hero__frame, :root[data-theme="dark"] .reel__frame { box-shadow: inset 0 0 0 1px rgb(242 242 244 / 0.1); }
.hero__frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__corner { position: absolute; bottom: 20px; z-index: 1; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.7; }
.hero__corner--l { left: 24px; }
.hero__corner--r { right: 24px; }

/* ---------- Большой заголовок и лента ---------- */
.intro { padding-top: clamp(56px, 7vw, 110px); padding-bottom: clamp(40px, 5vw, 72px); }
.ribbon { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ribbon path { fill: none; stroke: url(#ribbon-g); stroke-width: 34; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.intro__title { position: relative; max-width: 11.5em; font: 500 var(--fs-giant)/0.94 var(--font-head); letter-spacing: -0.055em; }
.intro__indent { display: inline-block; width: 1.4em; }
.intro__row { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px var(--gutter); align-items: start; margin-top: clamp(36px, 5vw, 72px); }
.intro__media { overflow: hidden; aspect-ratio: 4 / 3; max-width: 460px; border-radius: var(--radius); background: var(--frame); }
.intro__media img { width: 100%; height: 115%; object-fit: cover; object-position: left top; }
.intro__text { display: grid; justify-items: start; gap: 28px; max-width: 34em; justify-self: end; }
.intro__text p { font-size: clamp(1.05rem, 0.5vw + 0.95rem, 1.25rem); line-height: 1.38; }

/* ---------- «Шоурил» ---------- */
.reel { padding-block: clamp(20px, 3vw, 44px); }
.reel__frame {
  position: relative; display: block; overflow: hidden;
  height: min(78vh, 56vw); border-radius: var(--radius-lg);
  background: #0b0b0e; color: #fff;
  transform-origin: 50% 50%;
}
.reel__slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity 1.2s var(--ease-io), transform 6s linear; }
.reel__slides img.is-on { opacity: 1; transform: scale(1); }
.reel__frame::after { content: ""; position: absolute; inset: 0; background: rgb(6 6 8 / 0.42); }
.reel__title { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; gap: clamp(12px, 2vw, 28px); font: 400 clamp(2.6rem, 8vw, 8rem)/1 var(--font); letter-spacing: -0.03em; text-transform: uppercase; }
.reel__play { display: grid; place-items: center; width: clamp(64px, 7vw, 110px); height: clamp(40px, 4.4vw, 68px); border-radius: 999px; background: #fff; color: #0b0b0e; transition: transform 500ms var(--ease); }
.reel__play svg { width: 34%; fill: currentColor; }
.reel__frame:hover .reel__play { transform: scale(1.12); }

/* ---------- Кейсы ---------- */
.work { padding-block: clamp(48px, 6vw, 90px); }
.services { padding-block: clamp(48px, 6vw, 90px) clamp(32px, 4vw, 56px); }
.work__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(28px, 3.5vw, 48px); }
.work__head .label { max-width: 25em; }
.work__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) var(--gutter); }
.project a { display: grid; gap: 14px; }
.project__media { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--radius); background: var(--chip); transition: border-radius 600ms var(--ease); }
.project__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.1s var(--ease); }
.project a:hover .project__media { border-radius: calc(var(--radius) * 2); }
.project a:hover .project__media img { transform: scale(1.05); }
.project__tags { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); }
.project__title { display: flex; align-items: center; overflow: hidden; font: 400 clamp(1.6rem, 2.6vw, 2.6rem)/1.1 var(--font); letter-spacing: -0.03em; }
.project__arrow { display: inline-block; width: 0; opacity: 0; transform: translateX(-100%); transition: width 600ms var(--ease), opacity 400ms, transform 600ms var(--ease); }
.project a:hover .project__arrow, .project a:focus-visible .project__arrow { width: 1.2em; opacity: 1; transform: none; }
.project__media--next { display: grid; place-content: center; justify-items: center; gap: 18px; background: var(--frame); color: var(--on-frame); }
.project__next-word { font: 500 clamp(2.4rem, 5vw, 5rem)/1 var(--font-head); letter-spacing: -0.05em; }
.project__next-cta { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: #fff; color: #0b0b0e; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.02em; }

/* Обложки кейсов: цвет бренда, огромное слово, окно сайта и телефон, как у Lusion */
.cover { isolation: isolate; container-type: inline-size; }
.cover--pokeron { background: radial-gradient(90% 80% at 30% 20%, #b11d33, #6e0d1d 70%); --word: rgb(255 255 255 / 0.13); }
.cover--shizgara { background: radial-gradient(90% 80% at 70% 20%, #e3ab7a, #b9784a 75%); --word: rgb(9 7 7 / 0.16); }
.cover--goldshnur { background: radial-gradient(90% 80% at 30% 30%, #ffe27a, #f0bf2e 75%); --word: rgb(8 6 10 / 0.12); }
.cover__word { position: absolute; left: 50%; top: 50%; z-index: -1; translate: -50% -54%; font: 500 30cqi/0.8 var(--font-head); letter-spacing: -0.07em; white-space: nowrap; color: var(--word); transition: translate 1.2s var(--ease); }
.cover__desk { position: absolute; right: -7%; top: 13%; width: 64%; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 1.4cqi; box-shadow: 0 3cqi 7cqi rgb(0 0 0 / 0.35); rotate: -3deg; transition: transform 1.1s var(--ease), rotate 1.1s var(--ease); }
.project__media.cover .cover__desk img { width: 100%; height: 100%; object-fit: cover; object-position: top; transform: none; }
.cover__phone { z-index: 1; position: absolute; left: 17%; top: 20%; width: 23%; aspect-ratio: 9 / 19.2; padding: 0.7cqi; border-radius: 3.6cqi; background: #0b0b0e; box-shadow: inset 0 0 0 0.25cqi #3a3a40, 0 4cqi 8cqi rgb(0 0 0 / 0.45); rotate: 5deg; transition: transform 1.1s var(--ease), rotate 1.1s var(--ease); }
.cover__screen { display: block; height: 100%; overflow: hidden; border-radius: 3cqi; background: #000; }
.cover__scroll { display: block; transition: transform 7s cubic-bezier(0.45, 0, 0.55, 1); }
.project__media.cover .cover__scroll img { width: 100%; height: auto; object-fit: initial; transform: none; }
.project a:hover .cover__scroll { transform: translateY(calc(-100% + 40cqi)); }
.project a:hover .cover__phone { transform: translateY(-4%); rotate: 0deg; }
.project a:hover .cover__desk { transform: translateX(-3%); rotate: -1deg; }
.project a:hover .cover__word { translate: -52% -54%; }
.cover__mascot { position: absolute; left: -7%; bottom: -26%; z-index: 0; width: auto !important; height: 88% !important; object-fit: contain !important; filter: drop-shadow(0 2cqi 3cqi rgb(0 0 0 / 0.3)); animation: mascot 5s ease-in-out infinite; transform-origin: 50% 70%; }
@keyframes mascot { 0%, 100% { transform: translateY(1%) rotate(-1deg); } 50% { transform: translateY(-2%) rotate(1deg); } }
.cover__chips i { position: absolute; width: 7cqi; aspect-ratio: 1; border-radius: 50%; background: repeating-conic-gradient(#f4efe6 0deg 15deg, #c3192f 15deg 30deg); box-shadow: inset 0 0 0 1.3cqi #e9e2d6, inset 0 0 0 1.6cqi #c3192f, 0 1.5cqi 2.5cqi rgb(0 0 0 / 0.35); animation: chip 6s ease-in-out infinite; }
.cover__chips i:nth-child(1) { left: 6%; top: 12%; rotate: -20deg; }
.cover__chips i:nth-child(2) { left: 46%; bottom: 8%; width: 5cqi; animation-delay: -2s; }
.cover__chips i:nth-child(3) { right: 6%; bottom: 10%; width: 8cqi; animation-delay: -4s; z-index: 2; }
.cover__chips i:nth-child(4) { left: 8%; bottom: 14%; width: 4cqi; animation-delay: -1s; }
@keyframes chip { 50% { transform: translateY(-14%) rotate(40deg); } }

/* Кружок «Открыть» за курсором над карточками */
.cursor { position: fixed; left: 0; top: 0; z-index: 60; display: grid; place-items: center; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; background: #fff; color: #0b0b0e; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; pointer-events: none; transform: scale(0); transition: transform 450ms var(--ease); }
.cursor.is-on { transform: scale(1); }
@media (hover: none) { .cursor { display: none; } }

/* ---------- Тёмная зона: цифры ---------- */
.numbers { padding-block: clamp(60px, 7vw, 120px) clamp(80px, 10vw, 160px); overflow: hidden; }
.marquee { margin-inline: calc(-1 * var(--gutter)); white-space: nowrap; font: 500 clamp(4rem, 15vw, 15rem)/0.9 var(--font-head); letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--text) 30%, transparent); }
.marquee span { display: inline-block; }
.numbers__inner { margin-top: clamp(40px, 6vw, 90px); }
.numbers__title { max-width: 14em; font: 500 var(--fs-h2-md)/1 var(--font-head); letter-spacing: -0.045em; }
.numbers__stage { position: relative; height: clamp(190px, 22vw, 320px); margin-top: clamp(24px, 4vw, 56px); }
.numbers__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.numbers__labels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; text-align: center; color: var(--muted); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.03em; }

/* ---------- Тоннель из арок ---------- */
/* Без WebGL (или при «уменьшить движение») это обычный тёмный блок с цифрами */
.tunnel { padding-block: clamp(80px, 10vw, 160px); background: #050507; color: #f2f2f4; overflow: hidden; }
.tunnel__pin { position: relative; }
#tunnel-3d { display: none; }
.tunnel__title { text-align: center; font: 500 clamp(2.6rem, 8vw, 8.4rem)/0.92 var(--font-head); letter-spacing: -0.055em; }
.tunnel__row { display: block; }
.tw { display: inline-block; }
.tunnel__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: clamp(50px, 7vw, 100px); text-align: center; }
.tunnel__stats b { display: block; font: 500 clamp(2rem, 4vw, 4rem)/1 var(--font-head); letter-spacing: -0.04em; background: linear-gradient(180deg, #fff, #8a8a92 48%, #fff 56%, #5a5a62); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tunnel__stats span { display: block; margin-top: 10px; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.04em; color: rgb(242 242 244 / 0.7); }

.has-tunnel .tunnel { padding: 0; background: var(--tunnel-bg, #050507); }
.has-tunnel .tunnel__pin { height: 100svh; }
.has-tunnel #tunnel-3d { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.has-tunnel .tunnel__title { text-shadow: 0 8px 50px rgb(0 0 0 / 0.55); position: absolute; inset: 0; display: grid; place-content: center; pointer-events: none; opacity: 0; will-change: transform, opacity; }
.has-tunnel .tw { will-change: transform; }
.has-tunnel .tunnel__stats { position: absolute; left: 0; right: 0; bottom: 13vh; display: block; margin: 0; }
.has-tunnel .tunnel__stats li { position: absolute; left: 50%; bottom: 0; width: max-content; max-width: 90vw; opacity: 0; }
.has-tunnel .tunnel__stats b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.has-tunnel .tunnel__stats span { margin: 0; font: 500 clamp(1rem, 1.7vw, 1.6rem)/1.2 var(--font); color: #f2f2f4; text-shadow: 0 2px 24px rgb(0 0 0 / 0.8); }

/* ---------- Шоурил на WebGL ---------- */
.reel-gl { position: fixed; inset: 0; z-index: 5; width: 100vw; height: 100vh; pointer-events: none; }
.has-reel-gl .intro__media { background: transparent; }
.has-reel-gl .intro__media img, .has-reel-gl .reel__slides { visibility: hidden; }
.has-reel-gl .reel__frame { background: transparent; }
.has-reel-gl .reel__frame::after { display: none; }
.reel__title { z-index: 6; }

/* ---------- Финальная сцена ---------- */
.end__stage { position: relative; display: grid; align-content: center; justify-items: center; min-height: 100svh; margin-inline: calc(-1 * var(--gutter)); padding: clamp(60px, 8vw, 120px) var(--gutter); overflow: hidden; background: #050507; color: #f2f2f4; }
.end__stage > :not(canvas) { position: relative; z-index: 1; }
#end-3d { position: absolute; inset: 0; width: 100%; height: 100%; }
.end__stage .crosses { position: absolute; top: 24px; left: var(--gutter); right: var(--gutter); }
.end__stage .crosses i::before, .end__stage .crosses i::after { background: #f2f2f4; }
.end__stage .end__kicker { margin-top: 0; font-weight: 500; text-shadow: 0 2px 20px rgb(0 0 0 / 0.9); }
.end__stage .end__title { text-shadow: 0 10px 60px rgb(0 0 0 / 0.5); }
.end__scroll { margin-top: clamp(28px, 4vw, 48px); background: #f2f2f4; color: #0b0b0e; box-shadow: none; }

/* ---------- Услуги ---------- */
.svc-list { border-top: 1px solid var(--line); }
.svc {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 70px minmax(0, 5fr) minmax(0, 4fr) minmax(0, 2fr); gap: 16px var(--gutter); align-items: baseline;
  padding: clamp(22px, 2.6vw, 36px) 0; border-bottom: 1px solid var(--line);
}
.svc::before { content: ""; position: absolute; inset: 0 calc(-1 * var(--gutter)); z-index: -1; background: var(--card); transform: scaleY(0); transform-origin: bottom; transition: transform 600ms var(--ease); }
.svc:hover::before { transform: scaleY(1); transform-origin: top; }
.svc__n { font: 400 0.8125rem var(--mono); color: var(--muted); }
.svc__name { font: 400 clamp(1.7rem, 3.4vw, 3.4rem)/1.05 var(--font); letter-spacing: -0.035em; }
.svc__desc { color: var(--muted); font-size: 0.975rem; line-height: 1.45; }
.svc__meta { text-align: right; font-size: 0.9375rem; color: color-mix(in srgb, var(--text) 75%, transparent); }
.svc__meta b { color: var(--text); font-weight: 500; font-size: 1.125rem; }

/* Ленты: две полосы крест-накрест, бегут в разные стороны */
.tapes { position: relative; height: clamp(150px, 16vw, 220px); margin: calc(-1 * clamp(48px, 6vw, 90px)) calc(-1 * var(--gutter)) clamp(32px, 4vw, 60px); overflow: hidden; }
.tape { position: absolute; left: -6%; right: -6%; top: 50%; display: flex; overflow: hidden; white-space: nowrap; padding-block: clamp(10px, 1.2vw, 16px); font: 500 clamp(1rem, 1.6vw, 1.5rem)/1 var(--font-head); letter-spacing: -0.01em; text-transform: uppercase; }
.tape--a { background: #d9dae0; color: #0b0b0e; transform: translateY(-78%) rotate(-2.6deg); z-index: 1; }
.tape--b { background: #0b0b0e; color: #d9dae0; transform: translateY(-12%) rotate(1.8deg); }
:root[data-theme="dark"] .tape--b { box-shadow: 0 0 0 1px rgb(242 242 244 / 0.12); }
.tape__run { display: flex; flex: none; align-items: center; gap: 28px; padding-right: 28px; animation: tape-run 30s linear infinite; }
.tape--b .tape__run { animation-duration: 38s; animation-direction: reverse; }
.tape__run i { flex: none; width: 1.1em; height: 1.1em; border-radius: 50%; background: repeating-conic-gradient(#ffffff 0deg 14deg, #8a8a92 14deg 30deg); box-shadow: inset 0 0 0 0.22em #c9c9cf; }
@keyframes tape-run { to { transform: translateX(-100%); } }

/* Строки услуг: при наведении сдвигаются, за курсором едет превью */
.svc__name, .svc__n { transition: transform 700ms var(--ease), color 400ms; }
.svc:hover .svc__name { transform: translateX(clamp(8px, 1.5vw, 24px)); }
.svc:hover .svc__n { color: var(--accent); }
.svc-preview { position: fixed; left: 0; top: 0; z-index: 40; width: clamp(220px, 20vw, 300px); aspect-ratio: 4 / 5; overflow: hidden; border-radius: 18px; background: var(--frame); box-shadow: 0 30px 70px rgb(0 0 0 / 0.3); pointer-events: none; transform: scale(0) rotate(-8deg); transition: transform 600ms var(--ease); }
.svc-preview.is-on { transform: scale(1) rotate(var(--tilt, 0deg)); }
.svc-preview__track { height: 100%; transition: transform 700ms var(--ease); }
.pv { position: relative; height: 100%; display: grid; overflow: hidden; color: #f2f2f4; }
.pv img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pv--shop { grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px; align-content: center; }
.pv--shop span { display: grid; gap: 8px; padding: 10px; border-radius: 12px; background: rgb(255 255 255 / 0.06); font-size: 0.8125rem; }
.pv--shop i { aspect-ratio: 1; border-radius: 8px; background: linear-gradient(135deg, #6d5cff, #3fc8ff); }
.pv--shop span:nth-child(2) i { background: linear-gradient(135deg, #d9dae0, #6e6e76); }
.pv--shop span:nth-child(3) i { background: linear-gradient(135deg, #ff7ab6, #6d5cff); }
.pv--shop span:nth-child(4) i { background: linear-gradient(135deg, #3a3a40, #9a9aa2); }
.pv--seo { align-content: center; gap: 12px; padding: 24px; background: radial-gradient(80% 60% at 50% 100%, rgb(109 92 255 / 0.35), transparent 70%); }
.pv--seo small { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.7; }
.pv--seo b { font: 500 3rem/1 var(--font-head); letter-spacing: -0.05em; }
.pv--seo svg { width: 100%; height: 90px; }
.pv--seo path { fill: none; stroke: #b9b3ff; stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pv--chat { align-content: center; gap: 10px; padding: 18px; }
.pv--chat span { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: 0.8125rem; line-height: 1.35; }
.pv--chat .q { justify-self: end; background: #f2f2f4; color: #0b0b0e; border-bottom-right-radius: 4px; }
.pv--chat .a { justify-self: start; background: rgb(109 92 255 / 0.35); border-bottom-left-radius: 4px; }
.pv--care { align-content: center; gap: 10px; padding: 20px; }
.pv--care span { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 12px; background: rgb(255 255 255 / 0.06); font-size: 0.875rem; }
.pv--care i { width: 34px; height: 20px; border-radius: 999px; background: #6d5cff; box-shadow: inset -14px 0 0 2px #6d5cff, inset 0 0 0 2px #6d5cff; position: relative; }
.pv--care i::after { content: ""; position: absolute; right: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
@media (hover: none) { .svc-preview { display: none; } }

/* ---------- AI: фиолетовая сцена с телефоном, как обложки кейсов ---------- */
.ai { padding-block: clamp(48px, 6vw, 96px); }
.ai-stage {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: center;
  padding: clamp(20px, 2.4vw, 36px) clamp(20px, 4vw, 64px);
  border-radius: var(--radius-lg);
  background: radial-gradient(70% 90% at 50% 10%, #8a7bff 0%, #5a46f0 38%, #2a1a9e 75%, #170d5c 100%);
  color: #fff;
}
.ai-stage__word { position: absolute; left: 50%; top: 50%; z-index: -1; translate: -50% -50%; font: 500 clamp(14rem, 34vw, 34rem)/0.8 var(--font-head); letter-spacing: -0.08em; color: rgb(255 255 255 / 0.1); pointer-events: none; }
.cords { position: absolute; inset: -6%; z-index: -1; width: 112%; height: 112%; pointer-events: none; opacity: 0.7; animation: cords-drift 20s ease-in-out infinite alternate; }
.cords path { fill: none; stroke-linecap: round; stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke: rgb(255 255 255 / 0.55); stroke-dasharray: 260 1420; animation: cords-flow 12s linear infinite; }
.cords g:first-child path:nth-child(2n) { stroke: rgb(185 179 255 / 0.9); stroke-width: 2.2; animation-duration: 15s; animation-delay: -4s; }
.cords g:last-child path { stroke: rgb(255 255 255 / 0.3); stroke-dasharray: 140 900; animation-duration: 20s; animation-direction: reverse; }
@keyframes cords-flow { to { stroke-dashoffset: -1680; } }
@keyframes cords-drift { from { transform: translate3d(-2%, 0, 0) scale(1.02); } to { transform: translate3d(2%, -2%, 0) scale(1.06); } }

/* Хромовый перелив на одном слове */
.shine { background: linear-gradient(100deg, #8a8a92, #ffffff 30%, #b9b3ff 50%, #ffffff 70%, #8a8a92); background-size: 220% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: shine 5.5s linear infinite; }
:root[data-theme="dark"].is-invert .shine, :root[data-theme="light"]:not(.is-invert) .shine { background-image: linear-gradient(100deg, #2a2a30, #6d5cff 35%, #9a9aa2 55%, #2a2a30); }
@keyframes shine { to { background-position: 220% center; } }

/* Стеклянные карточки по бокам */
.ai-stage__uses { display: grid; gap: 12px; }
.ai-stage__uses li { display: grid; gap: 6px; padding: 18px 20px; border-radius: 18px; background: rgb(255 255 255 / 0.1); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ai-stage__uses b { font-weight: 500; font-size: 1.0625rem; }
.ai-stage__uses span { font-size: 0.9375rem; line-height: 1.4; color: rgb(255 255 255 / 0.75); }
.ai-stage__side { display: grid; gap: 28px; align-content: center; }
.ai-stage__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; }
.ai-stage__facts dt { font: 500 clamp(2.4rem, 4vw, 3.6rem)/1 var(--font-head); letter-spacing: -0.05em; }
.ai-stage__facts dd { margin: 6px 0 0; font-size: 0.875rem; color: rgb(255 255 255 / 0.75); }

/* Телефон с живым чатом */
.ai-phone { height: min(640px, calc(100svh - 150px)); min-height: 520px; aspect-ratio: 9 / 18.5; padding: 10px; border-radius: 48px; background: #0b0b0e; box-shadow: inset 0 0 0 2px #3a3a40, 0 40px 90px rgb(10 5 50 / 0.55); }
.chat { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 38px; background: #0f0f13; color: #f2f2f4; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 34px 18px 14px; border-bottom: 1px solid rgb(255 255 255 / 0.08); }
.chat__avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffffff, #c7c7cd 45%, #6e6e76 100%); }
.chat__avatar svg { width: 22px; fill: none; stroke: #0b0b0e; stroke-width: 6.5; stroke-linecap: round; }
.chat__who { display: grid; gap: 2px; }
.chat__who b { font-weight: 500; font-size: 0.9375rem; }
.chat__state { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; color: rgb(242 242 244 / 0.6); }
.chat__state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3ddc84; }
.chat__state.is-thinking::before { background: #ffb020; animation: blink 900ms infinite; }
.chat__log { flex: 1; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; padding: 14px 12px; overscroll-behavior: contain; scrollbar-width: none; }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 18px; font-size: 0.875rem; line-height: 1.4; }
.msg--bot { align-self: flex-start; background: rgb(255 255 255 / 0.08); border-bottom-left-radius: 6px; }
.msg--user { align-self: flex-end; background: #6d5cff; color: #fff; border-bottom-right-radius: 6px; }
.msg--typing { display: inline-flex; gap: 5px; }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.4; animation: blink 1s infinite; }
.msg--typing i:nth-child(2) { animation-delay: 150ms; }
.msg--typing i:nth-child(3) { animation-delay: 300ms; }
.stream-w { opacity: 0; transition: opacity 300ms; }
.stream-w.is-in { opacity: 1; }
@keyframes blink { 50% { opacity: 1; } }
.chat__suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 10px; }
.chat__suggest[hidden] { display: none; }
.chip { min-height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: rgb(255 255 255 / 0.08); color: #f2f2f4; font-size: 0.8125rem; cursor: pointer; transition: background-color 300ms; }
.chip:hover { background: rgb(109 92 255 / 0.5); }
.chat__form { display: flex; gap: 6px; margin: 0 10px 12px; padding: 5px; border-radius: 999px; background: rgb(255 255 255 / 0.08); }
.chat__form input { flex: 1; min-width: 0; padding: 0 12px; border: 0; background: none; color: inherit; font: inherit; font-size: 0.9375rem; }
.chat__form input::placeholder { color: rgb(242 242 244 / 0.45); }
.chat__form input:focus { outline: none; }
.chat__form:focus-within { box-shadow: 0 0 0 2px #8a7bff; }
.chat__send { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #6d5cff; color: #fff; cursor: pointer; }
.chat__send svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- О нас ---------- */
.about { padding-block: clamp(48px, 6vw, 96px) clamp(32px, 4vw, 56px); }
.about__row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 3fr); gap: 40px var(--gutter); align-items: start; margin-top: clamp(36px, 5vw, 70px); }
.about__side { position: sticky; top: 120px; display: grid; justify-items: start; gap: 28px; }
.about__lead { max-width: 24em; font-size: clamp(1.2rem, 1.2vw + 0.8rem, 1.75rem); line-height: 1.25; letter-spacing: -0.015em; }
/* Портреты основателей: пока нет фото, видна тёмная карточка с отблеском и знаком */
.founder { display: grid; gap: 14px; }
.founder--low { margin-top: clamp(40px, 9vw, 140px); }
.founder__photo {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--radius);
  background:
    radial-gradient(70% 55% at 30% 20%, rgb(109 92 255 / 0.35), transparent 70%),
    radial-gradient(60% 50% at 80% 90%, rgb(63 200 255 / 0.18), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 32'%3E%3Cpath d='M5.5 28V15.5a8 8 0 0 1 16 0V28M22.5 28V15.5a8 8 0 0 1 16 0V28' fill='none' stroke='%23ffffff' stroke-opacity='.12' stroke-width='6.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 38% no-repeat,
    var(--frame);
  transition: border-radius 600ms var(--ease);
}
.founder__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transform: scale(1.04); transition: filter 900ms var(--ease), transform 1.2s var(--ease); }
.founder:hover .founder__photo { border-radius: calc(var(--radius) * 2); }
.founder:hover .founder__photo img { filter: none; transform: scale(1); }
.founder figcaption { display: grid; gap: 6px; }
.founder figcaption b { font: 400 clamp(1.3rem, 1.8vw, 1.8rem)/1.1 var(--font); letter-spacing: -0.025em; }
.founder figcaption .label { color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gutter); margin-top: clamp(40px, 5vw, 72px); }
.steps { position: relative; }
.steps__line { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--text); transform-origin: left; }
.steps li { position: relative; display: grid; align-content: start; gap: 10px; padding-top: 26px; border-top: 1px solid var(--line); }
.steps li::before { content: ""; position: absolute; left: 0; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--text); transform: scale(0); transition: transform 500ms var(--ease); }
.steps li.is-lit::before { transform: scale(1); }
.steps li.is-lit .steps__n { color: var(--text); }
.steps__n { font: 400 0.8125rem var(--mono); color: var(--muted); }
.steps b { font-weight: 500; font-size: 1.125rem; }
.steps span:last-child { color: var(--muted); font-size: 0.95rem; }

/* ---------- Вопросы ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px var(--gutter); padding-block: clamp(40px, 5vw, 80px); }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; display: block; padding: 22px 48px 22px 0; font: 400 clamp(1.1rem, 1.3vw, 1.4rem)/1.25 var(--font); letter-spacing: -0.015em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 1.5px; background: currentColor; transition: transform 500ms var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[data-open="true"] summary::after { transform: rotate(0); }
.faq details p { max-width: 42em; padding-bottom: 24px; color: var(--muted); line-height: 1.5; }
.faq__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 500ms var(--ease); }
.faq__panel-inner { overflow: hidden; }
.faq details[data-open="true"] .faq__panel { grid-template-rows: 1fr; }

/* ---------- Финал и заявка ---------- */
.end { padding-block: 0 clamp(48px, 6vw, 90px); }
.end__kicker { margin-top: clamp(50px, 8vw, 120px); text-align: center; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.04em; }
.end__title { margin-top: 18px; text-align: center; font: 400 var(--fs-giant)/0.98 var(--font); letter-spacing: -0.04em; }
.end__title a { display: inline-grid; justify-items: center; }
.end__line { display: block; }
/* Заявка: продолжение тёмной финальной сцены, форма — карточка с заметными полями */
.end { background: #050507; color: #f2f2f4; }
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px clamp(32px, 5vw, 90px); align-items: start; padding-top: clamp(40px, 5vw, 80px); }
.contact__side { position: sticky; top: 110px; display: grid; gap: 24px; }
.contact__title { font: 500 clamp(2.6rem, 5.4vw, 5.6rem)/0.95 var(--font-head); letter-spacing: -0.05em; }
.contact__lead { max-width: 24em; font-size: clamp(1.05rem, 0.6vw + 0.9rem, 1.3rem); line-height: 1.4; color: rgb(242 242 244 / 0.72); }
.contact__direct { display: grid; margin-top: 12px; border-top: 1px solid rgb(242 242 244 / 0.14); }
.contact__direct a { display: grid; gap: 6px; padding: 20px 0; border-bottom: 1px solid rgb(242 242 244 / 0.14); }
.contact__direct .label { color: rgb(242 242 244 / 0.55); }
.contact__big { display: flex; justify-content: space-between; align-items: center; font: 400 clamp(1.5rem, 2.4vw, 2.3rem)/1.1 var(--font); letter-spacing: -0.03em; }
.contact__big i { font-style: normal; transition: transform 600ms var(--ease); }
.contact__direct a:hover .contact__big i { transform: translate(4px, -4px) rotate(45deg); }

.lead { position: relative; display: grid; gap: 22px; padding: clamp(24px, 3vw, 44px); border-radius: var(--radius-lg); background: linear-gradient(160deg, rgb(255 255 255 / 0.07), rgb(255 255 255 / 0.03)); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1), 0 40px 100px rgb(0 0 0 / 0.4); }
.lead__need { margin: 0; padding: 0; border: 0; }
.lead__need legend { margin-bottom: 12px; padding: 0; color: rgb(242 242 244 / 0.55); }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick label { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pick span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12); font-size: 0.9375rem; transition: background-color 300ms, color 300ms, box-shadow 300ms; }
.pick span::before { content: ""; width: 0; height: 8px; border-radius: 50%; background: #6d5cff; transition: width 300ms var(--ease); }
.pick label:hover span { background: rgb(255 255 255 / 0.1); }
.pick input:checked + span { background: #f2f2f4; color: #0b0b0e; box-shadow: none; }
.pick input:checked + span::before { width: 8px; }
.pick input:focus-visible + span { outline: 2px solid #8a7bff; outline-offset: 2px; }
.field { display: grid; gap: 8px; }
.field label { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.02em; color: rgb(242 242 244 / 0.55); }
.field__opt { text-transform: none; letter-spacing: 0; opacity: 0.7; }
.field input, .field textarea { width: 100%; padding: 16px 18px; border: 0; border-radius: 14px; background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1); color: #f2f2f4; font: 400 1.125rem/1.35 var(--font); resize: vertical; transition: box-shadow 300ms, background-color 300ms; }
.field input::placeholder, .field textarea::placeholder { color: rgb(242 242 244 / 0.35); }
.field input:focus, .field textarea:focus { outline: none; background: rgb(255 255 255 / 0.09); box-shadow: inset 0 0 0 1.5px #8a7bff; }
.field [aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px #e5484d; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.875rem; color: rgb(242 242 244 / 0.6); cursor: pointer; }
.consent input { appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border-radius: 6px; background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.25); cursor: pointer; transition: background-color 200ms; }
.consent input:checked { background: #6d5cff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; box-shadow: none; }
.consent input:focus-visible { outline: 2px solid #8a7bff; outline-offset: 2px; }
.consent a { text-decoration: underline; text-underline-offset: 3px; color: rgb(242 242 244 / 0.85); }
.lead__submit { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 68px; padding: 0 10px 0 28px; border: 0; border-radius: 999px; background: #f2f2f4; color: #0b0b0e; font: 500 1rem/1 var(--font); text-transform: uppercase; letter-spacing: 0.02em; cursor: pointer; transition: transform 400ms var(--ease), background-color 300ms; }
.lead__submit i { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #6d5cff; color: #fff; transition: transform 600ms var(--ease); }
.lead__submit svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lead__submit:hover i { transform: rotate(-45deg); }
.lead__submit:active { transform: scale(0.98); }
.lead button[disabled] { opacity: 0.6; cursor: progress; }
.lead__status { min-height: 1.4em; font-size: 0.9375rem; }
.lead__status.is-error { color: #ff6b6f; }
.lead__status.is-ok { color: #f2f2f4; }
.lead__status a { text-decoration: underline; }
.lead.is-sent > :not(.lead__status):not(.lead__done) { opacity: 0.25; pointer-events: none; transition: opacity 500ms; }
.lead__done { position: absolute; left: 50%; top: 40%; z-index: 1; width: 84px; height: 84px; margin-left: -42px; border-radius: 50%; background: #6d5cff; }
.lead__done svg { width: 100%; height: 100%; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 600ms 200ms var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.is-shaking { animation: shake 400ms; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ---------- Подвал ---------- */
.footer { padding: 40px var(--gutter) 0; border-top: 1px solid rgb(242 242 244 / 0.12); overflow: hidden; background: #050507; color: #f2f2f4; }
.footer .label { color: rgb(242 242 244 / 0.55) !important; }
.footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px var(--gutter); }
.footer__cols .label { display: block; margin-bottom: 12px; color: var(--muted); }
.footer__cols p { line-height: 1.6; }
.footer__word { display: block; margin-top: clamp(40px, 6vw, 80px); font: 500 clamp(6rem, 27vw, 27rem)/0.74 var(--font-head); letter-spacing: -0.075em; text-align: center; transform: translateY(6%); }

/* ---------- Состояния до анимации (только когда JS и движение включены) ---------- */
.motion [data-lines], .motion [data-reveal], .motion .hero__frame, .motion .crosses, .motion .project { visibility: hidden; }
.line-mask { overflow: clip; overflow-clip-margin: 0.12em; padding-bottom: 0.04em; margin-bottom: -0.04em; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .svc { grid-template-columns: 50px minmax(0, 1fr) minmax(0, 1fr); }
  .svc__desc { grid-column: 2 / 3; }
  .svc__meta { grid-column: 3; grid-row: 1; text-align: right; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
}
@media (max-width: 860px) {
  .intro__row, .faq, .contact { grid-template-columns: minmax(0, 1fr); }
  .contact__side { position: static; }
  .about__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about__side { grid-column: 1 / -1; position: static; }
  .ai-stage { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .ai-phone { order: -1; width: 100%; max-width: 340px; height: auto; min-height: 0; }
  .ai-stage__uses, .ai-stage__side { width: 100%; }
  .founder figcaption b { font-size: 1.05rem; }
  .intro__text { justify-self: start; }
  .work__grid { grid-template-columns: minmax(0, 1fr); }
  .numbers__labels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tunnel__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers__stage { height: 340px; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .header { padding-block: 16px; }
  .header__talk { display: none; }
  .menu { top: 68px; }
  .hero__frame { min-height: 420px; }
  .hero__corner { bottom: 14px; }
  .hero__corner--l { left: 16px; }
  .hero__corner--r { display: none; }
  .reel__title { font-size: 11vw; gap: 10px; }
  .end__title { font-size: 11vw; }
  .crosses span { font-size: 0.6875rem; }
  .reel__frame { height: 62vh; }
  .svc { grid-template-columns: 34px minmax(0, 1fr); }
  .svc__desc, .svc__meta { grid-column: 2; grid-row: auto; text-align: left; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .intro__indent { width: 0.6em; }
  .crosses i:nth-child(2), .crosses i:nth-child(4) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
  .roll__c > span { transition: none; }
}
