:root {
  --bg: #060908;
  --bg-2: #0c110e;
  --card: #111613;
  --line: rgba(255, 255, 255, .09);
  --text: #eef4f0;
  --muted: #86948c;
  --lime: #c8f560;
  --green: #22d38a;
  --teal: #12b5a6;
  --grad: linear-gradient(115deg, var(--lime), var(--green) 50%, var(--teal));
  --ease: cubic-bezier(.16, 1, .3, 1);
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--green); color: #06120c; }

/* Плёночное зерно поверх всего — добавляет «фактуры» */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .055;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Кастомный курсор (только мышь) */
html.has-cursor, html.has-cursor a { cursor: none; }
.cursor { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; mix-blend-mode: difference; transition: opacity .3s; }
.cursor.is-hidden { opacity: 0; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; }
.cursor__dot { width: 6px; height: 6px; margin: -3px; background: #fff; }
.cursor__ring {
  width: 40px; height: 40px; margin: -20px; border: 1.5px solid #fff;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .3s, opacity .3s;
}
.cursor.is-link .cursor__ring { width: 64px; height: 64px; margin: -32px; background: #fff; }
.cursor.is-card .cursor__ring { width: 88px; height: 88px; margin: -44px; border-width: 1px; }
.cursor.is-btn .cursor__ring { width: 0; height: 0; margin: 0; opacity: 0; }

/* Подсветка карточек, следующая за курсором */
@property --sa { syntax: '<number>'; inherits: false; initial-value: 0; }
.stat {
  background-image: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgb(34 211 138 / calc(var(--sa) * .2)), transparent 65%);
}
.stat:hover { --sa: 1; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(96px, 14vw, 180px) 0; }

.label {
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 28px;
}
.h2 {
  font: 700 clamp(36px, 6vw, 84px)/1.02 var(--display);
  letter-spacing: -.03em;
}
.grad { font-style: normal; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(7, 7, 11, .6);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-color: var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { font: 700 24px/1 var(--display); letter-spacing: -.04em; display: flex; align-items: baseline; gap: 3px; }
.logo__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.nav { display: flex; gap: 36px; font-weight: 500; font-size: 15px; }
.nav a { position: relative; color: var(--muted); transition: color .3s; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px; background: var(--grad);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Liquid button ---------- */
.lbtn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  height: 60px; padding: 0 36px;
  font-weight: 600; font-size: 16px; color: #fff;
  transition: transform .5s var(--ease);
  will-change: transform;
}
.lbtn::before { /* мягкое свечение */
  content: ""; position: absolute; inset: 6px; z-index: -2;
  border-radius: 999px; background: var(--grad);
  filter: blur(26px); opacity: 0; transition: opacity .5s;
}
/* Запас 90px вокруг кнопки — капле есть куда тянуться за уходящим курсором (GOO_INSET в main.js) */
.lbtn__goo { position: absolute; inset: -90px; z-index: -1; filter: url(#goo); pointer-events: none; }
.lbtn__bg {
  position: absolute; inset: 90px; border-radius: 999px;
  background: #17201b; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.lbtn__bg::after {
  content: ""; position: absolute; inset: 0; background: var(--grad);
  opacity: 0; transition: opacity .45s;
}
/* Две капли следуют за курсором с разной инерцией (позиции — из main.js через `translate`),
   поэтому кнопка «тянется» в сторону движения мыши */
.lbtn__blob {
  position: absolute; left: 0; top: 0;
  width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--lime), var(--green));
  scale: 0;
  transition: scale .45s var(--ease);
}
.lbtn__blob--trail {
  width: 54px; height: 54px; margin: -27px 0 0 -27px;
  background: linear-gradient(135deg, var(--green), var(--teal));
}
.lbtn__label { position: relative; z-index: 1; pointer-events: none; transition: color .35s; }
/* .is-near (main.js) держит состояние, пока капля тянется за ушедшим курсором; :hover — запасной вариант без JS */
.lbtn:hover .lbtn__label, .lbtn.is-near .lbtn__label { color: #06120c; } /* на светло-зелёной капле белый текст не читается */
.lbtn:hover::before, .lbtn.is-near::before { opacity: .55; }
.lbtn:hover .lbtn__bg::after, .lbtn.is-near .lbtn__bg::after { opacity: 1; }
.lbtn:hover .lbtn__blob, .lbtn.is-near .lbtn__blob { scale: 1; transition: scale .55s cubic-bezier(.34, 1.56, .64, 1); }
.lbtn:hover .lbtn__blob--trail, .lbtn.is-near .lbtn__blob--trail { transition-delay: .05s; }
.js .lbtn:not(.is-near):hover .lbtn__blob { scale: 0; } /* с JS капли показывает только .is-near — иначе после «отрыва» они бы не исчезали */
.js .lbtn:not(.is-near):hover .lbtn__label { color: #fff; }
.js .lbtn:not(.is-near):hover::before { opacity: 0; }
.js .lbtn:not(.is-near):hover .lbtn__bg::after { opacity: 0; }
/* Капля тянется за курсором: её размер задаёт main.js — отклик почти мгновенный */
.lbtn.is-pulling .lbtn__blob { transition: scale .1s linear; }
/* «Отрыв»: остаток капли быстро исчезает, кнопка пружинисто возвращается на место */
.lbtn.is-snap { transition: transform .7s cubic-bezier(.34, 1.8, .5, 1); }
.lbtn.is-snap .lbtn__blob { transition: scale .18s ease-in; }

.lbtn--sm { height: 44px; padding: 0 22px; font-size: 14px; }
.lbtn--sm .lbtn__blob { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
.lbtn--sm .lbtn__blob--trail { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
.lbtn--lg { height: 76px; padding: 0 52px; font-size: 19px; }
.lbtn--lg .lbtn__blob { width: 90px; height: 90px; margin: -45px 0 0 -45px; }
.lbtn--lg .lbtn__blob--trail { width: 68px; height: 68px; margin: -34px 0 0 -34px; }

.link-arrow { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; color: var(--muted); transition: color .3s; }
.link-arrow span { transition: transform .4s var(--ease); }
.link-arrow:hover { color: var(--text); }
.link-arrow:hover span { transform: translateY(4px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden;
  background: radial-gradient(1200px 700px at 75% 50%, #0d2219 0%, var(--bg) 60%);
}
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero__gl.is-ready { opacity: 1; }
.hero__fallback {
  display: none; position: absolute; right: 5%; top: 20%; width: 45vw; aspect-ratio: 1;
  border-radius: 50%; background: var(--grad); filter: blur(80px); opacity: .5;
}
.no-webgl .hero__fallback { display: block; }
.hero__inner { position: relative; z-index: 1; padding-top: 76px; }
.hero__title {
  font: 700 clamp(44px, min(7.6vw, 11.5vh), 120px)/.98 var(--display);
  letter-spacing: -.045em; max-width: 11ch;
}
.hero__lead { max-width: 520px; margin-top: 32px; font-size: clamp(17px, 1.5vw, 20px); color: #b3c2b9; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; margin-top: 44px; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px;
  border: 1.5px solid rgba(255,255,255,.25); border-radius: 20px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--text); animation: scroll-hint 1.8s var(--ease) infinite;
}
@keyframes scroll-hint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- About ---------- */
.statement {
  font: 500 clamp(26px, 3.9vw, 56px)/1.18 var(--display);
  letter-spacing: -.025em; max-width: 1100px;
}
/* Услуги — «игральные карты» (как about-capability у lusion) */
.caps-stage { margin-top: clamp(64px, 9vw, 120px); }
.js .caps-stage { height: 260vh; } /* длина прокрутки, за которую раздаётся колода */
.js .caps-sticky { position: sticky; top: 0; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 84px 0 32px; }
.caps-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.caps-title { font: 500 clamp(22px, 2.4vw, 32px)/1.2 var(--display); letter-spacing: -.02em; max-width: 24ch; }
.caps-chips { display: flex; gap: 6px; }
.caps-chips span {
  display: grid; place-items: center; width: 28px; height: 38px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.7); font: 400 12px/1 var(--mono);
}
.caps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 22px); margin-top: clamp(32px, 4vw, 48px); perspective: 1400px; }
.cap { position: relative; aspect-ratio: 215 / 300; }
.cap__inner {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transition: translate .5s var(--ease), rotate .5s var(--ease); /* transform задаёт раздача (main.js) — без задержки */
  will-change: transform;
}
.cap:hover .cap__inner { translate: 0 -10px; rotate: -1.5deg; }
.cap:nth-child(even):hover .cap__inner { rotate: 1.5deg; }
.cap__face {
  position: absolute; inset: 0; border-radius: 14px; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.cap__front {
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  padding: clamp(14px, 1.4vw, 20px) clamp(16px, 1.8vw, 24px);
  background: #eef3ef; color: #0b120e;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.7);
}
.cap__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.cap__head h3, .cap__head p { font: 600 clamp(12px, 1.15vw, 16px)/1.15 var(--body); text-transform: uppercase; letter-spacing: .05em; }
.cap__head span { font: 400 clamp(30px, 3.2vw, 44px)/1 var(--mono); }
.cap__head--flip { transform: rotate(180deg); } /* как на игральной карте */
.cap__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(6px, .8vw, 10px); font-size: clamp(11.5px, 1vw, 14px); }
.cap__list li { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.cap__list li::after { content: ""; flex: 1; min-width: 12px; border-bottom: 1.5px dotted rgba(11, 18, 14, .35); transform: translateY(-3px); }
/* Рубашка */
.cap__back {
  transform: rotateY(180deg); display: grid; place-items: center;
  background:
    repeating-linear-gradient(45deg, rgba(200, 245, 96, .08) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(-45deg, rgba(200, 245, 96, .08) 0 1px, transparent 1px 12px),
    linear-gradient(160deg, #123222, #0a1711);
  box-shadow: inset 0 0 0 10px #0c1b13, inset 0 0 0 11px rgba(200, 245, 96, .35);
}
.cap__back span { font: 700 clamp(18px, 2vw, 26px)/1 var(--display); letter-spacing: -.04em; color: var(--lime); }

.marquee { margin-top: clamp(80px, 10vw, 140px); border-block: 1px solid var(--line); overflow: hidden; padding: 26px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee span {
  font: 500 clamp(22px, 2.6vw, 34px)/1 var(--display); letter-spacing: -.02em;
  color: rgba(255,255,255,.28); padding: 0 28px; white-space: nowrap; display: flex; align-items: center; gap: 56px;
}
.marquee span::after { content: "✦"; font-size: .6em; color: var(--green); margin-left: 28px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cases ---------- */
.cases__head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0 32px; }
.cases__head .label { margin: 0; }
.cases__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(56px, 7vw, 96px) clamp(20px, 2.5vw, 32px); margin-top: clamp(48px, 6vw, 80px); }

/* .case — сборка из «кучи»; картинка, теги, заголовок и текст — грани «листа», который гнётся при скролле (main.js) */
.case { will-change: transform; }
.js .case.is-scattered { opacity: 0; }
.case.is-assembling {
  transition: transform 1.3s cubic-bezier(.16, 1, .3, 1) var(--d, 0s), opacity .45s ease var(--d, 0s);
}

.case__visual {
  position: relative; aspect-ratio: 16 / 11; border-radius: 24px; overflow: hidden; isolation: isolate;
  background: #0f1512; border: 1px solid var(--line);
  transition: border-color .4s, box-shadow .6s var(--ease);
}
.case__visual::before {
  content: ""; position: absolute; inset: -20%; z-index: -1; opacity: .5;
  background:
    radial-gradient(45% 45% at 72% 28%, var(--c1), transparent 70%),
    radial-gradient(40% 40% at 22% 82%, var(--c2), transparent 70%);
}
.case--1 { --c1: #c8f560; --c2: #22d38a; }
.case--2 { --c1: #22d38a; --c2: #12b5a6; }
.case--3 { --c1: #12b5a6; --c2: #22d38a; }
.case--4 { --c1: #4fe0a0; --c2: #c8f560; }
.case--5 { --c1: #12b5a6; --c2: #c8f560; }
.case--6 { --c1: #c8f560; --c2: #12b5a6; }
.case:hover .case__visual { border-color: rgba(255,255,255,.22); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
/* Блик, следующий за курсором (--gx/--gy из main.js) */
.case__visual::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(60% 60% at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.16), transparent 70%);
}
.case:hover .case__visual::after { opacity: 1; }

/* Рисунок внутри карточки: `translate` — параллакс из main.js, `scale` — ховер */
.case__art { position: absolute; inset: -8% 0; padding: 17% 12%; transition: scale .9s var(--ease); }
.case:hover .case__art { scale: 1.05; }

.case__art--bars { display: flex; align-items: flex-end; gap: 4%; }
.case__art--bars i { flex: 1; border-radius: 10px 10px 3px 3px; background: linear-gradient(to top, var(--green), var(--lime)); }
.case__art--bars i:nth-child(1) { height: 30%; } .case__art--bars i:nth-child(2) { height: 48%; }
.case__art--bars i:nth-child(3) { height: 38%; } .case__art--bars i:nth-child(4) { height: 62%; }
.case__art--bars i:nth-child(5) { height: 55%; } .case__art--bars i:nth-child(6) { height: 78%; }
.case__art--bars i:nth-child(7) { height: 96%; }

.case__art--code { display: flex; flex-direction: column; justify-content: center; gap: 7%; }
.case__art--code i { height: 14px; border-radius: 7px; background: rgba(255,255,255,.16); }
.case__art--code i:nth-child(1) { width: 46%; background: var(--green); }
.case__art--code i:nth-child(2) { width: 74%; margin-left: 8%; }
.case__art--code i:nth-child(3) { width: 58%; margin-left: 8%; background: var(--teal); }
.case__art--code i:nth-child(4) { width: 66%; margin-left: 16%; }
.case__art--code i:nth-child(5) { width: 28%; background: var(--lime); }

.case__art--site { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 10px 1fr .7fr; gap: 14px; }
.case__art--site::before {
  content: ""; grid-column: 1 / -1; width: 42px;
  background: radial-gradient(circle 5px at 5px 50%, rgba(255,255,255,.45) 98%, transparent) 0 0 / 16px 10px repeat-x;
}
.case__art--site b { grid-column: 1 / -1; border-radius: 14px; background: var(--grad); }
.case__art--site i { border-radius: 12px; background: rgba(255,255,255,.12); }

.case__art--chat { display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.case__art--chat i { height: 44px; border-radius: 22px; background: rgba(255,255,255,.14); width: 58%; }
.case__art--chat i:nth-child(2) { align-self: flex-end; width: 46%; background: linear-gradient(90deg, var(--green), var(--teal)); }
.case__art--chat i:nth-child(3) { width: 70%; }

.case__art--line svg { width: 100%; height: 100%; overflow: visible; }

.case__art--dash { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: .7fr 1.5fr; gap: 14px; }
.case__art--dash i { position: relative; border-radius: 14px; background: rgba(255,255,255,.1); }
.case__art--dash i::after { content: ""; position: absolute; left: 14%; bottom: 22%; height: 7px; border-radius: 4px; background: var(--grad); }
.case__art--dash i:nth-child(1)::after { width: 56%; }
.case__art--dash i:nth-child(2)::after { width: 38%; }
.case__art--dash i:nth-child(3)::after { width: 70%; }
.case__art--dash b { /* кольцевая диаграмма */
  align-self: center; justify-self: center; height: 82%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(var(--lime) 0 42%, var(--green) 42% 74%, var(--teal) 74% 100%);
  -webkit-mask: radial-gradient(circle, transparent 46%, #000 47%); mask: radial-gradient(circle, transparent 46%, #000 47%);
}
.case__art--dash s {
  grid-column: span 2; border-radius: 14px;
  background:
    linear-gradient(to top, rgba(34,211,138,.9), rgba(34,211,138,.9)) 12% 82% / 9% 40% no-repeat,
    linear-gradient(to top, rgba(34,211,138,.9), rgba(34,211,138,.9)) 32% 82% / 9% 58% no-repeat,
    linear-gradient(to top, rgba(18,181,166,.9), rgba(18,181,166,.9)) 52% 82% / 9% 46% no-repeat,
    linear-gradient(to top, rgba(200,245,96,.9), rgba(200,245,96,.9)) 72% 82% / 9% 70% no-repeat,
    linear-gradient(to top, rgba(34,211,138,.9), rgba(34,211,138,.9)) 92% 82% / 9% 52% no-repeat,
    rgba(255,255,255,.1);
}

.case__meta { display: flex; gap: 10px; margin-top: 24px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.case__meta span + span::before { content: "•"; margin-right: 10px; }
.case h3 { font: 600 clamp(22px, 2.3vw, 32px)/1.15 var(--display); letter-spacing: -.025em; margin: 10px 0 12px; }
.case p { color: var(--muted); font-size: 16px; max-width: 46ch; }
/* Стрелка перед названием: выезжает при наведении и сдвигает текст */
.case h3::before {
  content: "→"; display: inline-block; width: 0; overflow: hidden; white-space: nowrap; vertical-align: top;
  color: var(--lime); opacity: 0; transform: translateX(-14px);
  transition: width .55s var(--ease), opacity .35s, transform .55s var(--ease);
}
.case:hover h3::before, .case:focus-visible h3::before { width: 1.25em; opacity: 1; transform: none; }

/* ---------- Speed (светлая секция для контраста) ---------- */
.speed {
  background: #eef3ef; color: #0b120e;
  border-radius: clamp(28px, 4vw, 56px);
  margin: 0 clamp(8px, 1.2vw, 16px);
}
.speed .label, .speed .stat p, .speed .step p { color: #64746b; }
/* На светлом фоне лайм почти не виден — градиент темнее */
.speed { --grad: linear-gradient(115deg, #3fae1f, #0f9f63 50%, #0b8a80); }
.speed .grad .w > span { background-image: linear-gradient(115deg, #3fae1f, #0f9f63 33%, #0b8a80 66%, #3fae1f); }
.speed .stat { background-color: #fff; border-color: rgba(11, 18, 14, .07); box-shadow: 0 20px 50px -30px rgba(20, 70, 45, .25); }
.speed .process__line { background: rgba(11, 18, 14, .1); }
.speed .step__n { border-color: #eef3ef; }
.speed .step__t { background: rgba(34, 211, 138, .12); color: #0f7a52; }
.speed__lead { max-width: 560px; color: #3f4f46; font-size: clamp(17px, 1.4vw, 19px); margin-top: 28px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: clamp(56px, 7vw, 96px); }
.stat { padding: 30px 28px; border-radius: 24px; border: 1px solid var(--line); }
.stat__num {
  font: 700 clamp(48px, 5.4vw, 76px)/1 var(--display); letter-spacing: -.05em;
  display: flex; align-items: baseline; gap: 8px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__num small { font-size: .32em; letter-spacing: -.01em; }
.stat p { color: var(--muted); font-size: 15px; margin-top: 14px; }

.process { list-style: none; padding: 0; margin: clamp(64px, 8vw, 112px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.process__line { position: absolute; left: 0; right: 0; top: 19px; height: 2px; background: var(--line); }
.process__line span { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(var(--p, 0)); }
.step { position: relative; padding-top: 52px; }
.step__n {
  position: absolute; top: 10px; left: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--grad); border: 5px solid var(--bg);
  box-shadow: 0 0 0 1.5px rgba(34, 211, 138, .5);
}
.step h3 { font: 600 20px/1.2 var(--display); letter-spacing: -.02em; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15.5px; }
.step__t { display: inline-block; margin-top: 16px; font-size: 13px; padding: 5px 12px; border-radius: 999px; background: rgba(34, 211, 138, .14); color: #a8f0c8; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; padding: clamp(120px, 16vw, 220px) 0; }
.cta__glow { position: absolute; inset: 0; pointer-events: none; }
.cta__glow i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; animation: drift 14s ease-in-out infinite alternate; }
.cta__glow i:nth-child(1) { width: 40vw; height: 40vw; left: 50%; top: 10%; background: var(--green); }
.cta__glow i:nth-child(2) { width: 30vw; height: 30vw; left: 66%; top: 40%; background: var(--lime); animation-duration: 11s; }
.cta__glow i:nth-child(3) { width: 26vw; height: 26vw; left: 40%; top: 50%; background: var(--teal); opacity: .25; animation-duration: 17s; }
@keyframes drift { to { transform: translate(-12vw, 8vh) scale(1.15); } }
.cta__inner { position: relative; }
.cta__title { font: 700 clamp(40px, 7.4vw, 112px)/1 var(--display); letter-spacing: -.045em; max-width: 14ch; }
.cta__lead { max-width: 560px; margin-top: 32px; color: #bfccc4; font-size: clamp(17px, 1.5vw, 20px); }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 48px; margin-top: 52px; }
.cta__contacts { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 18px; }
.cta__contacts a { color: #bfccc4; transition: color .3s; }
.cta__contacts a:hover { color: #fff; }

.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Кейсы в WebGL (cases.js) ---------- */
html { scrollbar-gutter: stable; } /* без скачка ширины, когда открытый кейс прячет скролл страницы */
.cases-gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.cases-gl.is-front { z-index: 120; } /* во время перехода картинка летит поверх всего */
.case { cursor: pointer; }
.case:focus-visible { outline: 2px solid var(--green); outline-offset: 8px; border-radius: 24px; }
.case.is-gl .case__inner { opacity: 0; } /* карточку целиком рисует WebGL (через линзу); DOM остаётся для раскладки, клика и доступности */

/* ---------- Детальная страница кейса ---------- */
html.detail-open { overflow: hidden; }
.detail {
  position: fixed; inset: 0; z-index: 100; overflow-y: auto; overscroll-behavior: contain;
  background-color: rgba(6, 9, 8, 0); outline: none;
  transition: background-color .7s var(--ease);
}
.detail[hidden] { display: none; }
.detail.is-open { background-color: var(--bg); }
.detail__bar {
  position: sticky; top: 0; z-index: 2; height: 76px; padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(6, 9, 8, .7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.detail__close {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 999px;
  font: 600 14px var(--body); color: var(--text); background: rgba(255,255,255,.06); border: 1px solid var(--line); cursor: pointer;
  transition: background-color .3s, border-color .3s;
}
.detail__close:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); }
.detail__tag { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.detail__hero { height: clamp(320px, 72vh, 820px); overflow: hidden; }
.detail__img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.detail.is-shown .detail__img { opacity: 1; }
.detail__body { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(64px, 8vw, 120px); }
.detail__title { font: 700 clamp(38px, 6vw, 88px)/1.02 var(--display); letter-spacing: -.04em; margin: 18px 0 24px; max-width: 18ch; }
.detail__lead { max-width: 640px; color: var(--muted-2, #b3c2b9); font-size: clamp(18px, 1.6vw, 22px); }
.detail__facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: clamp(48px, 6vw, 80px) 0 0; padding: 28px 0;
  border-block: 1px solid var(--line);
}
.detail__facts dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.detail__facts dd { margin: 8px 0 0; font-weight: 600; font-size: 18px; }
.detail__sections { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); margin-top: clamp(56px, 7vw, 96px); }
.detail__sections h2 { font: 600 clamp(24px, 2.4vw, 32px)/1.15 var(--display); letter-spacing: -.02em; margin-bottom: 16px; }
.detail__sections p { color: var(--muted); font-size: 17px; }
.detail__results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(56px, 7vw, 96px); }
.detail__results div { padding: 30px 28px; border-radius: 24px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.detail__results b {
  display: block; font: 700 clamp(40px, 4.4vw, 64px)/1 var(--display); letter-spacing: -.04em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.detail__results span { display: block; margin-top: 12px; color: var(--muted); font-size: 15px; }
.detail__next {
  display: block; width: 100%; margin-top: clamp(80px, 10vw, 140px); padding: 40px 0 0; text-align: left;
  border: 0; border-top: 1px solid var(--line); background: none; color: var(--text); cursor: pointer;
}
.detail__next span { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.detail__next strong { display: block; margin-top: 14px; font: 700 clamp(30px, 4.6vw, 64px)/1.05 var(--display); letter-spacing: -.035em; transition: color .3s; }
.detail__next strong i { display: inline-block; font-style: normal; transition: transform .5s var(--ease); }
.detail__next:hover strong { color: var(--lime); }
.detail__next:hover strong i { transform: translateX(10px); }

/* Содержимое проявляется, когда картинка долетела до шапки */
.detail__bar, .detail__body > * { opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .8s var(--ease); }
.detail.is-shown .detail__bar, .detail.is-shown .detail__body > * { opacity: 1; transform: none; }
.detail.is-shown .detail__body > :nth-child(2) { transition-delay: .06s; }
.detail.is-shown .detail__body > :nth-child(3) { transition-delay: .12s; }
.detail.is-shown .detail__body > :nth-child(4) { transition-delay: .18s; }
.detail.is-shown .detail__body > :nth-child(n+5) { transition-delay: .24s; }

@media (max-width: 760px) {
  .detail__facts, .detail__sections, .detail__results { grid-template-columns: 1fr; }
  .detail__bar { height: 64px; }
  .detail__hero { height: 70vw; } /* пропорции рисунка, без сильной обрезки по бокам */
}

/* ---------- Анимации появления ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px); filter: blur(10px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.js .stat[data-reveal].is-in { transition: opacity 1s var(--ease) var(--d), transform 1.1s var(--ease) var(--d), filter 1s var(--ease) var(--d), --sa .4s; }

.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em .02em .1em; margin: -.06em -.02em -.1em; }
.w > span { display: inline-block; }
.js [data-split] .w > span {
  transform: translateY(110%) rotate(6deg); opacity: 0; filter: blur(8px);
  transform-origin: left bottom;
  transition: transform 1.2s var(--ease), opacity 1s var(--ease), filter 1s var(--ease);
  transition-delay: calc(var(--i) * 55ms + var(--d, 0s));
}
.js [data-split].is-in .w > span { transform: none; opacity: 1; filter: none; }
.grad .w > span {
  background: linear-gradient(115deg, var(--lime), var(--green) 33%, var(--teal) 66%, var(--lime)) 0 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: grad-shift 7s linear infinite;
}
@keyframes grad-shift { to { background-position: 150% 0; } }

/* Слова, которые «проявляются» при скролле */
[data-scrub] .w > span { opacity: clamp(.16, calc(var(--p, 1) * var(--n) - var(--i) + 1), 1); transition: opacity .15s linear; }

/* ---------- Адаптив ---------- */
@media (max-width: 1000px) {
  .stats, .caps { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .process__line { display: none; }
}

@media (max-width: 899px) {
  .nav { display: none; }
  .cases__grid { grid-template-columns: 1fr; }
  .hero__gl { opacity: 0; }
  .hero__gl.is-ready { opacity: .65; }
}

@media (max-width: 640px) {
  .stats, .process { grid-template-columns: 1fr; }
  .cap__front { padding: 12px 12px; }
  .cap__head h3, .cap__head p { font-size: 10.5px; letter-spacing: .02em; }
  .cap__head span { font-size: 24px; }
  .cap__list { font-size: 11px; gap: 5px; }
  .cap__list li { white-space: normal; }
  .cap__list li::after { display: none; }
  .stat { padding: 24px; }
  .header__inner { height: 64px; }
  .hero__inner { padding-top: 64px; }
  .hero__scroll { display: none; }
  .lbtn--lg { height: 64px; padding: 0 40px; font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .caps-stage { height: auto; }
  .js .caps-sticky { position: static; min-height: 0; padding: 0; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .js [data-reveal], .js [data-split] .w > span { opacity: 1; transform: none; filter: none; transition: none; }
}
