/* ---------- Шрифты (локально, без Google) ---------- */
@font-face { font-family: "Geologica"; font-weight: 100 900; font-display: swap; src: url(../fonts/geologica-cyrillic-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Geologica"; font-weight: 100 900; font-display: swap; src: url(../fonts/geologica-latin-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+20BD,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/cormorant-garamond-cyrillic-400-italic.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/cormorant-garamond-latin-400-italic.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+20BD,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ---------- Токены ---------- */
:root {
  --bg: #0d0d0f;          /* обсидиан */
  --bg-2: #131316;        /* второй фон */
  --glass: rgba(255,255,255,.035);
  --glass-2: rgba(255,255,255,.06);
  --line: rgba(255,255,255,.085);
  --line-2: rgba(255,255,255,.14);
  --text: #f3efe8;        /* тёплый белый */
  --soft: #cfcac1;
  --muted: #8f8b84;
  --gold: #d9ba7a;        /* шампанское золото */
  --gold-2: #b6955a;
  --gold-ink: #1d1609;

  --font: "Geologica", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Cormorant", Georgia, "Times New Roman", serif;

  --r-s: 12px; --r-m: 20px; --r-l: 28px;
  --gut: 24px;
  --max: 1240px;
  --ease: cubic-bezier(.2,.7,.1,1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 330 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
/* Зерно поверх всего — едва заметное, даёт «плёночную» глубину */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .045;
  background-image: 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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
b, strong { font-weight: 500; }
:focus-visible { outline: 1.5px solid var(--gold); outline-offset: 4px; border-radius: 6px; }
::selection { background: rgba(217,186,122,.35); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--gold); color: var(--gold-ink); padding: 8px 14px; border-radius: var(--r-s); }
.skip:focus { left: 8px; }

.h2 { font-weight: 280; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -0.035em; max-width: 16ch; text-wrap: balance; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: 56px; }
.head__note { color: var(--muted); max-width: 38ch; font-size: 16px; }

/* ---------- Кнопки ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px; border: 0; cursor: pointer;
  background: linear-gradient(180deg, #e7cc93 0%, var(--gold) 55%, var(--gold-2) 100%);
  color: var(--gold-ink); font: 500 16px/1 var(--font); letter-spacing: -0.005em; text-decoration: none;
  box-shadow: 0 1px 0 rgba(255,255,255,.45) inset, 0 10px 30px -10px rgba(217,186,122,.55);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s;
}
.btn:hover { filter: brightness(1.06); box-shadow: 0 1px 0 rgba(255,255,255,.45) inset, 0 14px 36px -10px rgba(217,186,122,.7); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: var(--glass); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { background: var(--glass-2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); filter: none; }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 15px; }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

.link { align-self: flex-start; color: var(--gold); text-decoration: none; font-weight: 450; border-bottom: 1px solid rgba(217,186,122,.35); padding-bottom: 2px; }
.link:hover { border-bottom-color: var(--gold); }

/* ---------- Шапка ---------- */
.top { position: sticky; top: 0; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.top.is-scrolled { background: rgba(13,13,15,.72); backdrop-filter: saturate(150%) blur(16px); -webkit-backdrop-filter: saturate(150%) blur(16px); border-bottom-color: var(--line); }
.top__in { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 24px; height: 24px; color: var(--gold); }
.brand__name { font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }
.brand__role { color: var(--muted); font-size: 14px; padding-left: 12px; border-left: 1px solid var(--line-2); }
.nav { display: flex; gap: 28px; font-size: 15px; }
.nav a { color: var(--soft); text-decoration: none; transition: color .2s; }
.nav a:hover { color: var(--text); }

/* ---------- Первый экран ---------- */
.hero { position: relative; padding: 64px 0 120px; overflow: hidden; }
.hero__light {
  position: absolute; pointer-events: none; z-index: -1;
  width: 1100px; height: 1100px; right: -280px; top: -480px;
  background: radial-gradient(closest-side, rgba(217,186,122,.2), rgba(217,186,122,.07) 40%, rgba(217,186,122,.02) 60%, transparent 72%);
}
.hero::before { /* тонкая сетка-горизонт */
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px; z-index: -1;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}
.hero__in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: 64px; align-items: center; }
.hero__title { font-weight: 260; font-size: clamp(38px, 4.9vw, 72px); line-height: 1.04; letter-spacing: -0.042em; text-wrap: balance; }
.hero__title > span { display: block; }
.hero__lead { margin-top: 32px; font-size: clamp(18px, 1.5vw, 21px); color: var(--soft); max-width: 44ch; line-height: 1.55; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.who { display: flex; align-items: center; gap: 14px; margin-top: 40px; font-size: 14px; color: var(--muted); line-height: 1.4; }
.who b { display: block; color: var(--text); font-weight: 450; font-size: 15px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line-2), 0 0 0 4px var(--bg), 0 0 0 5px rgba(217,186,122,.35); }

/* Лента событий — живой пример системы */
.feed {
  position: relative; border-radius: var(--r-l); padding: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 100px -40px rgba(0,0,0,.8);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.feed::before { /* золотой отблеск по верхней кромке */
  content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217,186,122,.7), transparent);
}
.feed__head { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); padding: 2px 6px 16px; border-bottom: 1px solid var(--line); }
.feed__time { margin-left: auto; }
.feed__live { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(217,186,122,.5); animation: pulse 2.6s infinite; }
.feed__list { display: grid; gap: 10px; padding-top: 16px; min-height: 452px; align-content: start; }
.feed__cap { font-size: 13px; color: var(--muted); padding: 14px 6px 2px; }
.ev { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); font-size: 15px; line-height: 1.4; }
.ev b { font-weight: 450; }
.ev__src { font-size: 12px; color: var(--muted); }
.ev__txt { color: var(--soft); }
.ev--gold { box-shadow: inset 0 0 0 1px rgba(217,186,122,.22); background: linear-gradient(180deg, rgba(217,186,122,.07), rgba(217,186,122,.02)); }
.ev--gold .ev__src { color: var(--gold); }
.ev__act { justify-self: start; margin-top: 10px; font-size: 13px; font-weight: 450; color: var(--gold-ink); padding: 6px 13px; border-radius: 999px; background: var(--gold); }

/* Появление: одна сцена при загрузке */
.js .hero__title { visibility: hidden; }
.js .hero__title.split { visibility: visible; }
.js .hero__lead, .js .hero__cta, .js .who { opacity: 0; transform: translateY(10px); }
.js.is-ready .hero__lead, .js.is-ready .hero__cta, .js.is-ready .who { opacity: 1; transform: none; transition: opacity .8s .35s, transform .8s .35s var(--ease); }
.js .ev { opacity: 0; transform: translateY(16px) scale(.985); }
.js .ev.is-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s var(--ease); }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(217,186,122,.5); } 70% { box-shadow: 0 0 0 9px rgba(217,186,122,0); } 100% { box-shadow: 0 0 0 0 rgba(217,186,122,0); } }

/* ---------- Цифры ---------- */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.proof__in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 40px 28px 40px 0; display: grid; gap: 12px; align-content: start; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat__num { font-weight: 250; font-size: clamp(34px, 3.4vw, 48px); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat__num small { display: block; margin-top: 8px; font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--gold); }
.stat__label { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ---------- Где теряются клиенты ---------- */
.leaks { padding: 140px 0 120px; }
.pipe { position: relative; height: 1px; background: linear-gradient(90deg, var(--gold), rgba(217,186,122,.5) 60%, rgba(217,186,122,.12)); margin-bottom: 0; }
.pipe__in, .pipe__out { position: absolute; top: -30px; font-size: 13px; color: var(--muted); }
.pipe__in { left: 0; color: var(--gold); }
.pipe__out { right: 0; }
.leaks__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.leak { position: relative; padding: 56px 0 0; display: flex; flex-direction: column; gap: 14px; }
.leak__drip { position: absolute; left: 0; top: 0; width: 1px; height: 36px; background: linear-gradient(var(--gold), transparent); }
.leak__drip::before { content: ""; position: absolute; left: -3px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px rgba(217,186,122,.8); }
.leak__title { font-weight: 350; font-size: 26px; letter-spacing: -0.02em; line-height: 1.15; }
.leak p { color: var(--muted); max-width: 34ch; }
.leak .leak__fix { color: var(--soft); margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- Кейсы ---------- */
.cases { padding: 40px 0 120px; }
.stack { display: grid; gap: 28px; }
.case {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center;
  padding: 56px; border-radius: 32px; overflow: hidden;
  background: linear-gradient(160deg, #1a1a1e 0%, #121215 60%);
  box-shadow: inset 0 0 0 1px var(--line), 0 -20px 60px -30px rgba(0,0,0,.9);
}
.case::before { /* у каждой панели свой мягкий свет */
  content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: -320px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(217,186,122,.13), transparent 70%);
}
.case--crm::before, .case--sip::before { left: -260px; right: auto; }
.case > * { position: relative; }
.case__body { display: flex; flex-direction: column; gap: 20px; }
.case__body > p:not(.case__who):not(.result):not(.note) { color: var(--soft); }
.case__who { color: var(--gold); font-size: 14px; }
.case__title { font-weight: 300; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.12; letter-spacing: -0.03em; text-wrap: balance; }
.note { color: var(--muted); font-size: 15px; }
.result { font-weight: 350; font-size: 22px; letter-spacing: -0.015em; color: var(--gold); }

.kpi { display: grid; gap: 6px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kpi__num { font-weight: 250; font-size: clamp(40px, 4vw, 56px); line-height: 1; letter-spacing: -0.045em; }
.kpi__num small { font-size: 16px; font-weight: 400; letter-spacing: 0; color: var(--gold); margin-left: 4px; }
.kpi__label { color: var(--muted); font-size: 15px; }

.ticks { display: grid; gap: 10px; }
.ticks li { padding-left: 26px; position: relative; color: var(--soft); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 1px; background: var(--gold); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 14px; padding: 8px 14px; border-radius: 999px; color: var(--soft); box-shadow: inset 0 0 0 1px var(--line-2); }

/* Приложение: три телефона */
.phones { position: relative; height: 600px; }
.phone { position: absolute; width: 230px; aspect-ratio: 780 / 1690; border-radius: 36px; padding: 7px; background: #050506; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 50px 90px -30px rgba(0,0,0,.9); overflow: hidden; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 30px; }
.phone--a { left: 0; top: 70px; transform: rotate(-6deg); }
.phone--b { left: 50%; top: 0; transform: translateX(-50%); z-index: 2; width: 252px; }
.phone--c { right: 0; top: 70px; transform: rotate(6deg); }

/* CRM: сравнение стоимости */
.bars { border-radius: var(--r-m); padding: 32px; display: grid; gap: 26px; background: rgba(0,0,0,.25); box-shadow: inset 0 0 0 1px var(--line); }
.bars__cap { font-weight: 350; font-size: 18px; letter-spacing: -0.01em; }
.bar { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: baseline; }
.bar__label { font-size: 14px; color: var(--muted); }
.bar__val { font-weight: 400; font-variant-numeric: tabular-nums; }
.bar__track { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: rgba(255,255,255,.06); overflow: hidden; }
.bar__fill { display: block; height: 100%; width: var(--w); border-radius: 6px; background: #5d5a55; transform-origin: left; }
.bar__fill--range { background: linear-gradient(90deg, #5d5a55 0 83.3%, #3d3b38 83.3% 100%); }
.bar--own .bar__label { color: var(--text); }
.bar--own .bar__fill { background: linear-gradient(90deg, var(--gold-2), var(--gold)); box-shadow: 0 0 18px rgba(217,186,122,.5); }
.bar--own .bar__val { color: var(--gold); }
.bars__note { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }
.js .bar__fill { transform: scaleX(0); }
.js .is-seen .bar__fill { transform: none; transition: transform 1.2s var(--ease); }
.js .is-seen .bar:nth-child(3) .bar__fill { transition-delay: .12s; }
.js .is-seen .bar:nth-child(4) .bar__fill { transition-delay: .24s; }

/* Автоматизация: переписка */
.chat { justify-self: center; width: 100%; max-width: 440px; border-radius: var(--r-l); padding: 0 18px 18px; display: flex; flex-direction: column; gap: 8px; background: #f4f1eb; color: #1b1a18; box-shadow: 0 50px 100px -40px rgba(0,0,0,.9); }
.chat__head { display: flex; align-items: center; gap: 12px; margin: 0 -18px 8px; padding: 14px 18px; border-bottom: 1px solid #e3ded3; font-size: 15px; line-height: 1.25; }
.chat__head small { display: block; color: #8a8478; font-size: 13px; }
.chat__head b { font-weight: 500; }
.chat__ava { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #1b1a18; color: var(--gold); font-weight: 500; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.45; }
.msg--out { background: #fff; border-bottom-left-radius: 6px; align-self: flex-start; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.msg--in { background: #1b1a18; color: #f3efe8; border-bottom-right-radius: 6px; align-self: flex-end; }
.chat__cap { font-size: 12px; color: #8a8478; text-align: center; margin-top: 6px; }

/* СИП CRM: схема */
.flow { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 18px 40px; align-items: center; border-radius: var(--r-m); padding: 36px; background: rgba(0,0,0,.25); box-shadow: inset 0 0 0 1px var(--line); }
.flow__src { grid-row: 1 / 3; display: grid; gap: 8px; position: relative; }
.flow__src::after { /* линии от каналов к CRM */
  content: ""; position: absolute; right: -41px; top: 18px; bottom: 18px; width: 40px;
  border: 1px solid rgba(217,186,122,.45); border-left: 0; border-radius: 0 14px 14px 0;
}
.flow__src li { font-size: 14px; padding: 9px 16px; border-radius: 999px; color: var(--soft); box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap; }
.flow__hub, .flow__tg { display: grid; gap: 4px; padding: 22px; border-radius: 18px; font-size: 13px; color: var(--muted); }
.flow__hub { background: linear-gradient(180deg, rgba(217,186,122,.14), rgba(217,186,122,.04)); box-shadow: inset 0 0 0 1px rgba(217,186,122,.4); }
.flow__hub b { font-weight: 300; font-size: 30px; letter-spacing: -0.03em; color: var(--gold); line-height: 1; }
.flow__tg { box-shadow: inset 0 0 0 1px var(--line-2); }
.flow__tg b { font-weight: 450; font-size: 16px; color: var(--text); }

/* Лендинг: окно браузера */
.browser { position: relative; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 50px 100px -40px rgba(0,0,0,.9); margin: 0 24px 56px 0; }
.browser__bar { display: flex; gap: 6px; padding: 11px 13px; background: #ecebe8; border-radius: 16px 16px 0 0; }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfccc6; }
.browser > img:not(.browser__inset) { border-radius: 0 0 16px 16px; }
.browser__inset { position: absolute; width: 38%; right: -24px; bottom: -56px; border-radius: 14px; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 30px 60px -20px rgba(0,0,0,.8); }

/* ---------- Как работаю ---------- */
.process { padding: 120px 0; border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: linear-gradient(90deg, var(--gold), rgba(217,186,122,.15)); }
.step { position: relative; display: grid; gap: 12px; align-content: start; padding-right: 24px; }
.step__n { position: relative; justify-self: start; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1px rgba(217,186,122,.55); color: var(--gold); font-size: 14px; font-variant-numeric: tabular-nums; margin-bottom: 18px; }
.step h3 { font-weight: 350; font-size: 26px; letter-spacing: -0.02em; }
.step p { color: var(--muted); max-width: 32ch; }

/* ---------- Обо мне ---------- */
.about { padding: 120px 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.quote { margin-top: 40px; }
.quote p { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 2.5vw, 34px); line-height: 1.25; color: var(--soft); max-width: 26ch; }
.quote footer { display: flex; align-items: center; gap: 14px; margin-top: 28px; font-size: 14px; color: var(--muted); line-height: 1.4; }
.quote footer img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line-2); }
.quote footer b { display: block; color: var(--text); font-weight: 450; font-size: 15px; }
.bio { display: grid; }
.bio li { display: grid; gap: 6px; padding: 26px 0; border-top: 1px solid var(--line); }
.bio li:last-child { border-bottom: 1px solid var(--line); }
.bio b { font-weight: 350; font-size: 22px; letter-spacing: -0.015em; }
.bio span { color: var(--muted); }

/* ---------- Контакты ---------- */
.contact { padding: 120px 0 100px; }
.contact__panel {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start;
  padding: 64px; border-radius: 36px;
  background: radial-gradient(900px 500px at 0% 0%, rgba(217,186,122,.14), transparent 60%), linear-gradient(160deg, #1b1a1d, #111113);
  box-shadow: inset 0 0 0 1px var(--line);
}
.contact__text p { color: var(--soft); margin-top: 22px; font-size: 19px; max-width: 34ch; }
.channels { display: grid; gap: 10px; margin-top: 40px; max-width: 380px; }
.channel { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; transition: color .2s, border-color .2s; }
.channel:hover { color: var(--gold); border-bottom-color: rgba(217,186,122,.5); }
.channel__k { color: var(--muted); font-size: 14px; }
.channel span:last-child { font-size: 19px; font-weight: 350; }
.channels li[hidden] { display: none; }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 14px; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; font-weight: 350; color: var(--text);
  background: rgba(0,0,0,.3); border: 0; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line-2);
  padding: 15px 16px; transition: box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--gold); }
.field input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px #e07a6b; }
.field__err { color: #ee9a8d; font-size: 14px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--gold); flex: none; }
.check a { color: var(--soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-size: 15px; min-height: 1.4em; }
.form__status.ok { color: var(--gold); }
.form__status.err { color: #ee9a8d; }

/* ---------- Подвал ---------- */
.foot { padding: 32px 0 44px; color: var(--muted); font-size: 14px; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; border-top: 1px solid var(--line); }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }

/* ---------- Кейсы стопкой (широкие экраны) ---------- */
@media (min-width: 1081px) and (min-height: 760px) {
  .case { position: sticky; top: 100px; min-height: min(620px, calc(100vh - 140px)); }
  .stack { gap: 40px; padding-bottom: 40px; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .hero__in, .case, .about__in, .contact__panel { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .feed { max-width: 560px; }
  .proof__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .phones { height: 560px; max-width: 640px; width: 100%; margin: 0 auto; }
  .case { padding: 40px; }
  .contact__panel { padding: 48px 40px; }
}
@media (max-width: 760px) {
  :root { --gut: 18px; }
  body { font-size: 16px; }
  .brand__role { display: none; }
  .top__in { min-height: 64px; }
  .hero { padding: 32px 0 80px; }
  .hero__light { width: 700px; height: 700px; right: -320px; top: -300px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .feed__list { min-height: 0; }
  .head { margin-bottom: 40px; }
  .stat { padding: 28px 16px 28px 0; }
  .stat + .stat { padding-left: 16px; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat__num { font-size: 32px; }
  .leaks, .process, .about { padding: 96px 0; }
  .leaks__grid, .steps { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .steps { gap: 40px; }
  .steps::before { left: 23px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(var(--gold), rgba(217,186,122,.1)); }
  .step { grid-template-columns: 46px 1fr; column-gap: 20px; padding-right: 0; }
  .step__n { grid-row: 1 / 3; margin-bottom: 0; }
  .pipe__out { display: none; }
  .leak { padding-top: 48px; }
  .case { padding: 28px 20px; border-radius: 26px; gap: 36px; }
  .phones { height: 420px; }
  .phone { width: 168px; border-radius: 28px; padding: 5px; }
  .phone img { border-radius: 23px; }
  .phone--b { width: 184px; }
  .bars, .flow { padding: 22px; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow__src { grid-row: auto; display: flex; flex-wrap: wrap; }
  .flow__src::after { display: none; }
  .browser { margin: 0 10px 40px 0; }
  .browser__inset { right: -10px; bottom: -36px; width: 40%; }
  .contact { padding: 80px 0 64px; }
  .contact__panel { padding: 32px 20px; border-radius: 28px; }
  .channels { max-width: none; }
}
@media (max-width: 380px) {
  .phones { height: 370px; }
  .phone { width: 146px; }
  .phone--b { width: 160px; }
  .stat__num { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .ev, .js .hero__lead, .js .hero__cta, .js .who, .js .bar__fill { opacity: 1; transform: none; filter: none; }
}

/* =====================================================================
   Эффекты: слои, параллакс, стопка кейсов, появление, подсветка
   ===================================================================== */
[data-speed] { translate: 0 var(--py, 0px); will-change: translate; }

/* Слои первого экрана */
.hero__rings { position: absolute; z-index: -1; pointer-events: none; width: 760px; height: 760px; right: -140px; top: -120px; }
.hero__rings span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(217,186,122,.14); }
.hero__rings span:nth-child(2) { inset: 110px; border-color: rgba(217,186,122,.1); border-style: dashed; animation: spin 90s linear infinite; }
.hero__rings span:nth-child(3) { inset: 230px; border-color: rgba(255,255,255,.07); }
.hero__grid {
  position: absolute; inset: -10% 0 auto 0; height: 120%; z-index: -2; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%);
}
@keyframes spin { to { rotate: 360deg; } }

/* Наклон карточки событий за мышью */
.hero__in { perspective: 1400px; }
.tilt { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .6s var(--ease); }
.tilt .feed__list { transform: translateZ(30px); }

/* Появление при прокрутке */
.js .rv, .js .rv-group > * { opacity: 0; translate: 0 26px; }
.js .rv.in, .js .rv-group.in > * { opacity: 1; translate: 0 0; transition: opacity .9s var(--ease), translate 1s var(--ease); transition-delay: var(--d, 0s); }
.js .rv-group.in > *:nth-child(2) { --d: .08s; } .js .rv-group.in > *:nth-child(3) { --d: .16s; } .js .rv-group.in > *:nth-child(4) { --d: .24s; }
.js .rv[data-speed].in { translate: 0 var(--py, 0px); }

/* Подсветка панели за курсором */
.case::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(217,186,122,.09), transparent 60%);
}
.case:hover::after { opacity: 1; }

/* Стопка: предыдущий кейс уходит вглубь, когда на него наезжает следующий */
@media (min-width: 1081px) and (min-height: 760px) {
  .case { transform-origin: 50% 0; transform: scale(var(--s, 1)); filter: brightness(var(--b, 1)); }
  .case:nth-child(1) { top: 96px; } .case:nth-child(2) { top: 108px; } .case:nth-child(3) { top: 120px; }
  .case:nth-child(4) { top: 132px; } .case:nth-child(5) { top: 144px; }
}

@media (prefers-reduced-motion: reduce) {
  [data-speed] { translate: none !important; }
  .js .rv, .js .rv-group > * { opacity: 1; translate: none; }
  .tilt, .case { transform: none !important; filter: none !important; }
}

/* =====================================================================
   Эффекты v2: строки из-под маски, вес шрифта, анимации от прокрутки,
   золотой луч, прогресс чтения, живой чат, утечки клиентов
   ===================================================================== */
@property --beam { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* 1–2. Заголовки: строки выезжают из-под маски, шрифт «набирает вес» */
.split .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.split .line > span { display: inline-block; translate: 0 108%; font-weight: 140; }
.split.go .line > span {
  translate: 0 0; font-weight: var(--wght, 260);
  transition: translate 1.1s var(--ease), font-weight 1.6s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms + 250ms);
}
.h2.split { --wght: 280; }
.hero__title.split { --wght: 260; }

/* 5. Прогресс чтения */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 60; pointer-events: none;
  background: linear-gradient(90deg, var(--gold-2), var(--gold), #f1dcae); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* 4. Золотой луч, обегающий рамку карточки событий */
.beam::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--beam), transparent 0deg 290deg, rgba(217,186,122,.0) 300deg, rgba(241,220,174,.95) 345deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: beam 7s linear infinite;
}
@keyframes beam { to { --beam: 360deg; } }

/* 6. Живой чат: «печатает…», время и галочки */
.msg { position: relative; }
.msg__meta { display: block; margin-top: 4px; font-size: 11px; line-height: 1; text-align: right; opacity: .55; }
.msg__meta .ticks2 { margin-left: 4px; letter-spacing: -2px; color: #3f8fd6; opacity: 1; }
.msg--in .msg__meta { color: #cfcac1; }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 18px; border-bottom-left-radius: 6px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9a9488; animation: typing 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
.js .chat.live .msg { display: none; }
.js .chat.live .msg.shown { display: block; animation: msgIn .45s var(--ease) both; }
@keyframes msgIn { from { opacity: 0; translate: 0 10px; scale: .97; } to { opacity: 1; translate: 0 0; scale: 1; } }
.chat__body { display: flex; flex-direction: column; gap: 8px; min-height: 380px; }

/* 7. Утечки клиентов: точки бегут по трубе и проваливаются на трёх утечках */
.pipe { position: relative; }
.pipe__canvas { position: absolute; left: 0; top: -24px; width: 100%; height: 96px; pointer-events: none; }

/* 3. Анимации от прокрутки средствами браузера (Chrome/Edge 115+, Safari 26+); иначе — запасной вариант на JS */
@supports (animation-timeline: view()) {
  .sda .rv, .sda .rv-group > * { opacity: 1; translate: none; transition: none;
    animation: rvIn linear both; animation-timeline: view(); animation-range: entry 5% entry 75%; }
  .sda .rv-group > *:nth-child(2) { animation-range: entry 12% entry 82%; }
  .sda .rv-group > *:nth-child(3) { animation-range: entry 19% entry 89%; }
  .sda .rv-group > *:nth-child(4) { animation-range: entry 26% entry 96%; }
  .sda [data-speed] { translate: none; animation: px linear both; animation-timeline: view(); animation-range: cover; }
  .sda .progress { transform: none; animation: prog linear both; animation-timeline: scroll(root); }
}
@keyframes rvIn { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
@keyframes px { from { translate: 0 calc(var(--spd, 0) * -420px); } to { translate: 0 calc(var(--spd, 0) * 420px); } }
@keyframes prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .split .line > span { translate: none !important; font-weight: var(--wght, 260) !important; }
  .beam::after, .typing i { animation: none !important; }
  .sda .rv, .sda .rv-group > *, .sda [data-speed] { animation: none !important; }
  .js .chat.live .msg { display: block; }
  .progress { display: none; }
}
