/* Шрифты Manrope и Unbounded (SIL OFL 1.1) раздаются локально из assets/fonts/, без запросов к Google */
/* Manrope cyrillic (локально, B2) */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(assets/fonts/manrope-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Manrope latin (локально, B2) */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(assets/fonts/manrope-latin.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+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Unbounded cyrillic (локально, B2) */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(assets/fonts/unbounded-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Unbounded latin (локально, B2) */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(assets/fonts/unbounded-latin.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+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   РЕГВЕЙ ТЕХНОЛОГИИ — лендинг. Тема: глубокий космос, хаос → порядок.
   ========================================================================== */
:root {
  --bg: #04030b;
  --bg-2: #0a0820;
  --text: #eef0ff;
  --muted: #a7abc9;
  --dim: #6f7396;

  --warm-1: #ff7a2f;
  --warm-2: #ff3d5e;
  --btn-a: 204, 74, 10;     /* фон основной кнопки, затемнён для контраста (D2); script.js меняет вместе с --accent */
  --btn-warm-2: #d41e48;
  --warm-3: #ffc069;
  --cool-1: #38d9ff;
  --cool-2: #7c5cff;
  --cool-3: #c06bff;

  --glass: rgba(16, 14, 40, 0.48);
  --glass-strong: rgba(14, 12, 36, 0.6);
  --stroke: rgba(255, 255, 255, 0.09);

  /* обновляются из JS по мере прокрутки (хаос → порядок) */
  --neb-a: 255, 90, 40;
  --neb-b: 140, 40, 200;
  --accent: 255, 122, 47;

  --radius: 22px;
  --radius-sm: 14px;
  --container: 1200px;
  --header-h: 72px;

  --font-head: "Unbounded", "Montserrat", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
main > section { scroll-margin-top: calc(var(--header-h) + 12px); }
/* при ds-on: секция = ровно экран; отступ под шапку даёт depth-scroll, не scroll-margin */
html.ds-on main > section { scroll-margin-top: 0; }
/* только горизонталь — вертикальный padding задаёт depth-scroll (под шапку) */
html.ds-on .section { padding-left: 0; padding-right: 0; }
html.ds-on .section:not(.hero)::before { display: none; }
html.ds-on .lead { padding-left: 0; padding-right: 0; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Космический фон ---------- */
.nebula {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(60vmax 45vmax at 78% 18%, rgba(var(--neb-a), .20), transparent 60%),
    radial-gradient(55vmax 50vmax at 8% 72%, rgba(var(--neb-b), .17), transparent 62%),
    radial-gradient(40vmax 30vmax at 50% 110%, rgba(var(--neb-b), .12), transparent 70%),
    linear-gradient(180deg, #05040e 0%, #070617 50%, #04030b 100%);
  transition: background .55s ease;
}
.starfield { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }

.bh-stage { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bh-inner { position: absolute; inset: 0; will-change: transform, opacity; transform-origin: 50% 50%; }
.bh-canvas { position: absolute; left: 0; top: 0; width: 600px; height: 600px; }
.debris-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Шапка ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  transition: background .35s var(--ease), border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(6, 5, 18, .62);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: rgba(255,255,255,.07);
}
.header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; }
.logo__img { width: 42px; height: 40px; flex: none; filter: drop-shadow(0 0 10px rgba(80,120,255,.45)); }
.logo__text { display: flex; flex-direction: column; line-height: 1; color: #fff; }
.logo__name { font-family: var(--font-body); font-weight: 800; font-size: 17px; letter-spacing: .3em; margin-right: -.3em; }
.logo__sub { font-family: var(--font-body); font-weight: 600; font-size: 9.5px; letter-spacing: .47em; color: #c9d0f2; margin-top: 5px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14.5px; transition: color .2s; position: relative; }
.nav a::after { content:""; position:absolute; left:0; right:0; bottom:-6px; height:2px; border-radius:2px; background: rgb(var(--accent)); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }
.header__cta { opacity: 0; transform: translateY(-8px) scale(.96); pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.header.cta-visible .header__cta { opacity: 1; transform: none; pointer-events: auto; }
.header__cta-short { display: none; }

/* ---------- Кнопки ---------- */
.btn {
  --g1: var(--warm-1); --g2: var(--warm-2);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; cursor: pointer; text-decoration: none; font-weight: 700; letter-spacing: .01em;
  border-radius: 999px; padding: 14px 24px; font-size: 15.5px; line-height: 1.2;
  color: #fff; isolation: isolate; text-shadow: 0 1px 2px rgba(10,10,40,.45);
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), filter .3s;
}
.btn--primary {
  background: linear-gradient(120deg, rgb(var(--btn-a)) 0%, var(--btn-warm-2) 55%, var(--cool-2) 130%);
  box-shadow: 0 10px 30px -8px rgba(var(--accent), .7), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn--primary::before {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; z-index: -1;
  background: linear-gradient(120deg, rgba(var(--accent), .9), rgba(var(--neb-b), .9));
  filter: blur(14px); opacity: .55; transition: opacity .3s;
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(var(--accent), .85), inset 0 1px 0 rgba(255,255,255,.4); }
.btn--primary:hover::before { opacity: .9; }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--cool-1); outline-offset: 3px; }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--lg { padding: 19px 32px; font-size: 17px; }
.btn--block { width: 100%; }
.btn__arrow { width: 20px; height: 20px; transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Типографика ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.eyebrow--warm { color: #ffad6b; border-color: rgba(255,122,47,.28); }
.eyebrow--cool { color: #7fe4ff; border-color: rgba(56,217,255,.28); }
.grad-warm { background: linear-gradient(100deg, #ffd08a 0%, #ff7a2f 40%, #ff3d5e 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-cool { background: linear-gradient(100deg, #8ff0ff 0%, #38d9ff 35%, #9a7bff 75%, #d38bff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.section { position: relative; padding: 168px 0; }
.section + .section { padding-top: 184px; }
.section__head { max-width: 820px; margin: 0 0 72px; }
.section__title {
  font-family: var(--font-head); font-weight: 700; margin: 0;
  font-size: clamp(28px, 3.6vw, 48px); line-height: 1.12; letter-spacing: -.01em;
}
/* мягкий «шов» между блоками вместо резкой стыковки */
.section:not(.hero)::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(140, 180, 255, .14), transparent);
  opacity: .85;
}

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 30px) 0 120px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; gap: 24px; }
.hero__content { position: relative; z-index: 2; max-width: 680px; }
.hero__title {
  font-family: var(--font-head); font-weight: 800; margin: 0 0 24px;
  font-size: clamp(32px, 3.75vw, 56px); line-height: 1.08; letter-spacing: -.02em;
  text-shadow: 0 2px 30px rgba(0,0,0,.6);
}
.hero__subtitle { font-size: clamp(17px, 1.45vw, 20px); color: #c9cbe4; margin: 0 0 36px; max-width: 560px; text-shadow: 0 1px 14px rgba(0,0,0,.8); }
.hero__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hero__note { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--muted); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #4dffb5; box-shadow: 0 0 0 0 rgba(77,255,181,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(77,255,181,.55); } 70% { box-shadow: 0 0 0 10px rgba(77,255,181,0); } 100% { box-shadow: 0 0 0 0 rgba(77,255,181,0); } }
.hero__visual { aspect-ratio: 1 / 1; width: 100%; }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255,255,255,.28); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: scrollHint 1.8s infinite var(--ease); }
@keyframes scrollHint { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Карточки (glassmorphism + неон) ---------- */
.card {
  --c1: 255,255,255; --c2: 255,255,255;
  position: relative; border-radius: var(--radius); padding: 28px;
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.015) 60%), var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
  border: 1px solid var(--stroke);
  box-shadow: 0 20px 50px -24px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
  isolation: isolate;
}
.card::before { /* неоновый градиентный контур */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1;
  background: linear-gradient(140deg, rgba(var(--c1), .75), rgba(var(--c2), .08) 45%, rgba(var(--c2), .55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .7; transition: opacity .45s;
}
.card:hover { transform: translateY(-6px); }
.card:hover::before { opacity: 1; }
.card--warm { --c1: 255,92,60; --c2: 255,61,94; box-shadow: 0 20px 60px -30px rgba(255,70,50,.55), 0 0 0 1px rgba(255,80,60,.05), inset 0 1px 0 rgba(255,255,255,.05); }
.card--warm:hover { box-shadow: 0 26px 70px -24px rgba(255,70,50,.7), inset 0 1px 0 rgba(255,255,255,.06); }
.card--cool { --c1: 56,217,255; --c2: 124,92,255; box-shadow: 0 20px 60px -30px rgba(70,120,255,.55), inset 0 1px 0 rgba(255,255,255,.05); }
.card--cool:hover { box-shadow: 0 26px 70px -24px rgba(70,160,255,.65), inset 0 1px 0 rgba(255,255,255,.06); }
.card__icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; }
.card__icon svg { width: 26px; height: 26px; }
.card__icon--warm { color: #ff9a6b; background: rgba(255,80,50,.12); box-shadow: 0 0 24px rgba(255,80,50,.25), inset 0 0 0 1px rgba(255,110,80,.3); }
.card__icon--cool { color: #7fe4ff; background: rgba(56,217,255,.1); box-shadow: 0 0 24px rgba(56,160,255,.25), inset 0 0 0 1px rgba(56,217,255,.3); }
.card__title { font-family: var(--font-head); font-size: 19px; font-weight: 600; margin: 0 0 10px; line-height: 1.25; }
.card__text { margin: 0; color: #c7c9e2; font-size: 16.5px; }
.card--warm .card__text { color: #eadbdc; font-size: 17.5px; font-weight: 500; }

/* ---------- Проблема ---------- */
.problem__grid {
  display: grid; gap: 22px;
  grid-template-columns: 1fr minmax(240px, 300px) 1fr;
  grid-template-areas: "a h b" "c h d";
  align-items: stretch;
}
.problem__grid > .card:nth-child(1) { grid-area: a; }
.problem__grid > .card:nth-child(2) { grid-area: b; }
.problem__grid > .mini-hole { grid-area: h; }
.problem__grid > .card:nth-child(4) { grid-area: c; }
.problem__grid > .card:nth-child(5) { grid-area: d; }

.mini-hole { position: relative; z-index: 0; align-self: center; justify-self: center; width: 100%; max-width: 300px; aspect-ratio: 1; }
.mini-hole__canvas, .mini-hole__debris { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.problem__grid > .card { z-index: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

.problem__stat {
  margin-top: 46px; display: flex; align-items: center; gap: 28px; padding: 28px 34px; border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(255,60,60,.12), rgba(255,60,60,.02) 70%); border: 1px solid rgba(255,90,70,.22);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.problem__stat-num {
  font-family: var(--font-head); font-weight: 800; font-size: clamp(46px, 6vw, 76px); line-height: 1; flex: none;
  color: #ff6a4a; text-shadow: 0 0 24px rgba(255,70,50,.7), 0 0 60px rgba(255,40,40,.4);
}
.problem__stat p { margin: 0; font-size: clamp(17px, 1.6vw, 21px); font-weight: 600; color: #f1e3e3; max-width: 760px; }

/* ---------- Решение: орбитальная система ---------- */
.solution__grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.solution__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.orbit-system { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1; margin: 0 auto; container-type: inline-size; }
.orbit-system__ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(120,190,255,.25); top: 50%; left: 50%; transform: translate(-50%,-50%); }
.orbit-system__ring::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid transparent; border-top-color: rgba(56,217,255,.6); filter: drop-shadow(0 0 6px rgba(56,217,255,.8)); animation: spin 6s linear infinite; }
.orbit-system__ring.r1 { width: 40%; height: 40%; --dur: 36s; }
.orbit-system__ring.r2 { width: 64%; height: 64%; --dur: 36s; }
.orbit-system__ring.r3 { width: 94%; height: 94%; --dur: 70s; border-color: rgba(160,120,255,.2); }
.orbit-system__track { position: absolute; inset: 0; animation: spin var(--dur) linear infinite; }
.orbit-system__ring.r3 .orbit-system__track { animation-direction: reverse; }
/* позиционирование на окружности: поворот → вынос на радиус → обратный поворот (метка всегда горизонтальна) */
.planet { position: absolute; left: 50%; top: 50%; font-weight: 700; white-space: nowrap; font-size: 12.5px;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(var(--rad)) rotate(calc(var(--a) * -1)); }
.r1 .planet { --rad: calc(-20 * 1cqw); }
.r2 .planet { --rad: calc(-32 * 1cqw); }
.r3 .planet { --rad: calc(-47 * 1cqw); }
.orbit-system__track .planet {
  padding: 6px 12px; border-radius: 999px; color: #dff7ff;
  background: rgba(10,22,48,.85); border: 1px solid rgba(56,217,255,.45);
  box-shadow: 0 0 16px rgba(56,217,255,.35), inset 0 0 10px rgba(56,217,255,.12);
}
.orbit-system__track .planet.planet--sm { font-size: 11px; padding: 4px 9px; color: #eadfff; border-color: rgba(170,120,255,.45); background: rgba(24,14,52,.85); box-shadow: 0 0 14px rgba(150,100,255,.35); }
.orbit-system__core {
  position: absolute; top: 50%; left: 50%; width: 23%; aspect-ratio: 1; transform: translate(-50%,-50%); border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #c9f6ff, #38d9ff 30%, #4a5cff 62%, #2a137a 100%);
  box-shadow: 0 0 40px rgba(56,217,255,.7), 0 0 120px rgba(124,92,255,.5), inset -8px -10px 30px rgba(20,0,80,.6);
  animation: corePulse 4s ease-in-out infinite;
}
.orbit-system__core span { font-family: var(--font-head); font-weight: 700; font-size: clamp(12px, 1.4vw, 17px); color: #fff; text-shadow: 0 1px 8px rgba(0,20,80,.8); }
@keyframes corePulse { 50% { box-shadow: 0 0 60px rgba(56,217,255,.9), 0 0 160px rgba(124,92,255,.6), inset -8px -10px 30px rgba(20,0,80,.6); } }
/* обратное вращение меток, чтобы текст не крутился вместе с орбитой */
.orbit-system__track .planet { animation: counter var(--dur) linear infinite; }
.orbit-system__ring.r3 .orbit-system__track .planet { animation-direction: reverse; }
@keyframes counter {
  from { transform: translate(-50%, -50%) rotate(var(--a)) translateY(var(--rad)) rotate(calc(var(--a) * -1)) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(var(--a)) translateY(var(--rad)) rotate(calc(var(--a) * -1)) rotate(-360deg); }
}

/* ---------- Результаты ---------- */
.results__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
  position: relative; text-align: center; padding: 40px 20px 34px; border-radius: var(--radius);
  background: radial-gradient(120% 80% at 50% 0%, rgba(56,217,255,.12), transparent 60%), var(--glass);
  border: 1px solid rgba(120,180,255,.16);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  overflow: hidden;
}
.stat::after { content: ""; position: absolute; left: 20%; right: 20%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(56,217,255,.9), transparent); }
.stat__num {
  font-family: var(--font-head); font-weight: 800; line-height: 1; white-space: nowrap;
  font-size: clamp(44px, 5vw, 72px); letter-spacing: -.02em;
  background: linear-gradient(180deg, #ffffff 0%, #9eeeff 45%, #7c8bff 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(56,217,255,.55)) drop-shadow(0 0 40px rgba(124,92,255,.35));
  font-variant-numeric: tabular-nums;
}
.stat__prefix, .stat__suffix { font-size: .62em; vertical-align: .32em; margin: 0 .04em; }
.stat__suffix--word { font-size: .36em; vertical-align: .9em; margin-left: .2em; letter-spacing: 0; }
.stat__label { margin: 16px 0 0; color: #c7cbea; font-weight: 600; font-size: 16px; }

/* ---------- Как мы работаем (орбитальная шкала) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.timeline::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 44px; height: 2px;
  background: linear-gradient(90deg, rgba(56,217,255,.1), rgba(56,217,255,.6), rgba(124,92,255,.6), rgba(192,107,255,.1));
}
.timeline::after { /* «комета», бегущая по траектории */
  content: ""; position: absolute; top: 40px; left: 6%; width: 120px; height: 10px; border-radius: 10px;
  background: linear-gradient(90deg, transparent, rgba(140,240,255,.95)); filter: blur(1px) drop-shadow(0 0 8px #38d9ff);
  animation: comet 5s linear infinite;
}
@keyframes comet { 0% { transform: translateX(-120px); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateX(calc(min(var(--container), 100vw) * .82)); opacity: 0; } }
.step { position: relative; text-align: center; padding: 0 6px; }
.step__planet {
  position: relative; width: 88px; height: 88px; margin: 0 auto 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 34% 30%, rgba(200,245,255,.95), rgba(56,217,255,.85) 28%, rgba(84,72,230,.9) 65%, rgba(30,14,90,1) 100%);
  box-shadow: 0 0 30px rgba(56,217,255,.5), 0 0 70px rgba(124,92,255,.35), inset -10px -12px 24px rgba(10,0,60,.65);
}
.step:nth-child(2) .step__planet { background: radial-gradient(circle at 34% 30%, rgba(225,220,255,.95), rgba(124,140,255,.9) 30%, rgba(100,60,230,.9) 65%, rgba(30,10,90,1) 100%); }
.step:nth-child(3) .step__planet { background: radial-gradient(circle at 34% 30%, rgba(240,220,255,.95), rgba(170,110,255,.9) 30%, rgba(120,50,220,.9) 65%, rgba(40,10,90,1) 100%); }
.step:nth-child(4) .step__planet { background: radial-gradient(circle at 34% 30%, rgba(210,255,245,.95), rgba(60,230,210,.85) 30%, rgba(40,120,220,.9) 65%, rgba(10,20,80,1) 100%); }
.step__planet::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 1px solid rgba(140,200,255,.28); }
.step__planet span { font-family: var(--font-head); font-weight: 800; font-size: 30px; color: #fff; text-shadow: 0 2px 10px rgba(10,0,60,.7); }
.step__moon { position: absolute; inset: -12px; animation: spin 7s linear infinite; }
.step__moon::after { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #dff8ff; box-shadow: 0 0 10px #38d9ff, 0 0 20px #38d9ff; }
.step:nth-child(2) .step__moon { animation-duration: 9s; animation-direction: reverse; }
.step:nth-child(3) .step__moon { animation-duration: 6s; }
.step:nth-child(4) .step__moon { animation-duration: 11s; animation-direction: reverse; }
.step__title { font-family: var(--font-head); font-weight: 600; font-size: 19px; margin: 0 0 10px; }
.step__text { margin: 0 auto; color: #c3c7e4; font-size: 16px; max-width: 260px; }

/* ---------- Форма ---------- */
.lead { padding: 168px 0 160px; overflow: clip; isolation: isolate; }
.star-system { position: absolute; left: 50%; top: 50%; width: 1300px; height: 1300px; transform: translate(-50%, -50%); pointer-events: none; opacity: .95; }
.star-system__sun { position: absolute; left: 50%; top: 50%; width: 130px; height: 130px; margin: -65px 0 0 -65px; border-radius: 50%; background: radial-gradient(circle, #fff 0%, #bdf3ff 30%, #38d9ff 55%, rgba(56,217,255,0) 72%); box-shadow: 0 0 120px 40px rgba(56,217,255,.25), 0 0 300px 120px rgba(124,92,255,.15); }
.star-system__orbit { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(140,190,255,.2); transform: translate(-50%,-50%); }
.star-system__orbit i { position: absolute; inset: 0; animation: spin var(--d) linear infinite; }
.star-system__orbit i::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--pc); box-shadow: 0 0 12px var(--pc), 0 0 26px var(--pc); }
.star-system__orbit.o1 { width: 360px; height: 360px; --d: 30s; --pc: #7fe4ff; }
.star-system__orbit.o2 { width: 620px; height: 620px; --d: 48s; --pc: #a98bff; }
.star-system__orbit.o3 { width: 900px; height: 900px; --d: 70s; --pc: #5cf0d0; }
.star-system__orbit.o4 { width: 1220px; height: 1220px; --d: 100s; --pc: #d38bff; }
.lead__panel {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 56px; border-radius: 30px;
  background: linear-gradient(150deg, rgba(255,255,255,.07), rgba(255,255,255,.01) 55%), rgba(10, 8, 28, 0.55);
  -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 40px 100px -40px rgba(0,0,0,.9), 0 0 80px -20px rgba(56,217,255,.35), inset 0 1px 0 rgba(255,255,255,.08);
  isolation: isolate;
}
.lead__panel::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: -1;
  background: conic-gradient(from var(--ang, 0deg), rgba(56,217,255,.95), rgba(124,92,255,.5), rgba(192,107,255,.95), rgba(56,217,255,.25), rgba(56,217,255,.95));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: borderSpin 8s linear infinite;
}
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes borderSpin { to { --ang: 360deg; } }
.lead__title { margin-bottom: 18px; }
.lead__text { margin: 0 0 26px; color: #cfd2ec; font-size: 18px; }
.lead__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.lead__list li { position: relative; padding-left: 34px; color: #dfe2f7; font-weight: 500; }
.lead__list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle, #dff8ff 0 22%, rgba(56,217,255,.3) 24% 100%); box-shadow: 0 0 12px rgba(56,217,255,.55); }
.lead-form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 700; color: #d9dcf4; }
.req { color: #ff8a6b; }
.field input, .select select {
  width: 100%; height: 54px; padding: 0 18px; border-radius: 14px; outline: none;
  background: rgba(6,8,24,.6); border: 1px solid rgba(140,170,255,.2); color: #fff; font-size: 16px;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field input::placeholder { color: #6f7396; }
.field input:focus, .select select:focus { border-color: rgba(56,217,255,.8); box-shadow: 0 0 0 4px rgba(56,217,255,.14), 0 0 22px rgba(56,217,255,.25); background: rgba(8,12,32,.8); }
.field.is-invalid input { border-color: rgba(255,90,90,.85); box-shadow: 0 0 0 4px rgba(255,90,90,.12); }
/* Автозаполнение браузера (почта, телефон, имя): без белой/жёлтой заливки на тёмной форме */
.field input:-webkit-autofill { -webkit-text-fill-color: #fff; caret-color: #fff; box-shadow: inset 0 0 0 1000px #0b0f26; transition: background-color 600000s 0s, border-color .25s, box-shadow .25s; }
.field input:-webkit-autofill:focus { box-shadow: inset 0 0 0 1000px #0b0f26, 0 0 0 4px rgba(56,217,255,.14); }
.field.is-invalid input:-webkit-autofill { box-shadow: inset 0 0 0 1000px #0b0f26, 0 0 0 4px rgba(255,90,90,.12); }
.field__error { min-height: 0; font-size: 13px; color: #ff9a8a; font-weight: 600; }
.field__error:empty { display: none; }
.field__error:not(:empty)::before { content: "!"; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 6px; border-radius: 50%; background: #ff9a8a; color: #12081a; font-size: 11px; font-weight: 800; line-height: 1; vertical-align: -2px; }
.form__status { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; line-height: 1.45; }
.form__status:empty, .form__status[hidden] { display: none; }
.form__status::before { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 12px; font-weight: 800; line-height: 1; }
.form__status--error { color: #ffc2b8; background: rgba(255,61,94,.12); border: 1px solid rgba(255,90,90,.45); }
.form__status--error::before { content: "!"; background: #ff9a8a; color: #12081a; }
.form__status--success { color: #c9f4ff; background: rgba(56,217,255,.1); border: 1px solid rgba(56,217,255,.45); }
.form__status--success::before { content: "✓"; background: var(--cool-1); color: #04121c; }
/* ловушка для ботов: скрыто визуально, но не display:none */
.hp-field { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; opacity: 0 !important; pointer-events: none !important; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px; }
.select select option { background: #0b0a1e; color: #fff; }
.select::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid #7fe4ff; border-bottom: 2px solid #7fe4ff; transform: rotate(45deg); pointer-events: none; }
.lead-form .btn { margin-top: 8px; --accent: 56,180,255; background: linear-gradient(120deg, #0b78b0 0%, #5a55f0 55%, #9a45e6 100%); text-shadow: 0 1px 2px rgba(10,10,40,.45); box-shadow: 0 12px 34px -10px rgba(80,140,255,.8), inset 0 1px 0 rgba(255,255,255,.35); }
.lead-form .btn::before { background: linear-gradient(120deg, rgba(56,217,255,.9), rgba(192,107,255,.9)); }
.form-note { margin: 2px 0 0; text-align: center; font-size: 13px; line-height: 1.5; color: var(--dim); }
.form-note a { color: #9fdcff; }
.lead-success { text-align: center; padding: 40px 10px; animation: popIn .6s var(--ease) both; outline: none; }
.lead-success__icon { width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #38d9ff, #7c5cff); box-shadow: 0 0 40px rgba(56,217,255,.6), 0 0 90px rgba(124,92,255,.4); }
.lead-success__icon svg { width: 40px; height: 40px; }
.lead-success__title { font-family: var(--font-head); font-weight: 700; font-size: 24px; line-height: 1.3; margin: 0 0 12px; }
.lead-success__text { color: var(--muted); margin: 0; }
@keyframes popIn { from { opacity: 0; transform: scale(.92) translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Подвал ---------- */
.footer { position: relative; padding: 40px 0; border-top: 1px solid rgba(255,255,255,.07); background: linear-gradient(180deg, rgba(4,3,12,.35), rgba(4,3,12,.9)); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px 36px; flex-wrap: wrap; }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer__links a { color: #b9c6ec; font-size: 14px; text-decoration: none; border-bottom: 1px solid rgba(159,220,255,.25); transition: color .2s, border-color .2s; }
.footer__links a:hover { color: #fff; border-color: rgba(159,220,255,.8); }
.footer__legal { display: flex; flex-direction: column; gap: 4px; max-width: 420px; text-align: right; }
.footer__brand { margin: 0; font-size: 13.5px; color: #c8d4f0; line-height: 1.4; }
.footer__brand strong { color: #fff; font-weight: 600; }
.footer__meta { margin: 0; font-size: 12.5px; color: var(--dim); line-height: 1.4; }
.footer__meta a { color: #9fdcff; text-decoration: none; border-bottom: 1px solid rgba(159,220,255,.25); }
.footer__meta a:hover { color: #fff; border-color: rgba(159,220,255,.8); }
.footer__copy { margin: 0; font-size: 13.5px; color: var(--dim); }
.results__noscript { margin: 20px 0 0; font-size: 15px; color: var(--dim); line-height: 1.5; }

/* ---------- Модальное окно (exit-intent) ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(2,1,8,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fadeIn .3s both; }
.modal__panel {
  position: relative; width: 100%; max-width: 480px; padding: 42px 36px 34px; border-radius: 26px; text-align: center;
  background: linear-gradient(150deg, rgba(255,255,255,.09), rgba(255,255,255,.02)), rgba(14,10,30,.92);
  border: 1px solid rgba(255,122,47,.45);
  box-shadow: 0 0 60px -10px rgba(255,90,40,.45), 0 40px 90px -30px rgba(0,0,0,.9);
  animation: popIn .45s var(--ease) both;
}
.modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); cursor: pointer; display: grid; place-items: center; color: #fff; }
.modal__close svg { width: 18px; height: 18px; }
.modal__close:hover { background: rgba(255,255,255,.12); }
.modal__badge { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 32px; background: radial-gradient(circle at 35% 30%, #ffd9a0, #ff7a2f 45%, #b02a5a 100%); box-shadow: 0 0 40px rgba(255,110,50,.6); }
.modal__title { font-family: var(--font-head); font-weight: 700; font-size: 22px; line-height: 1.3; margin: 0 0 24px; }
.modal__form { display: grid; gap: 12px; text-align: left; }
.modal__success { margin: 0; font-weight: 700; font-size: 18px; color: #9ff0d0; }
@keyframes fadeIn { from { opacity: 0; } }

/* ---------- Появление при прокрутке ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(1.5px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease), filter 1.2s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; filter: none; }


/* ---------- Официальный партнёр amoCRM ---------- */
.partner-sec__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); grid-template-areas: "head cert" "body cert"; column-gap: 64px; row-gap: 0; align-items: center; }
.partner-sec__head { grid-area: head; align-self: end; }
.partner-sec__body { grid-area: body; align-self: start; }
.cert { grid-area: cert; }
.partner-sec__lead { margin: 22px 0 30px; font-size: 18px; color: #d3d7f0; max-width: 560px; }
.partner-list { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 14px; }
.partner-list__item { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.035); border: 1px solid rgba(120,180,255,.14); }
.partner-list__item b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 16px; margin-bottom: 4px; color: #fff; }
.partner-list__item > span:last-child { color: #c3c8e6; font-size: 15.5px; line-height: 1.5; }
.partner-list__icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #7fe4ff; background: rgba(56,217,255,.1); box-shadow: inset 0 0 0 1px rgba(56,217,255,.3), 0 0 18px rgba(56,160,255,.2); }
.partner-list__icon svg { width: 22px; height: 22px; }
.partner-meta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.partner-meta div { padding: 10px 16px; border-radius: 12px; background: linear-gradient(90deg, rgba(56,217,255,.1), rgba(124,92,255,.08)); border: 1px solid rgba(56,217,255,.3); }
.partner-meta dt { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #8fb8e8; font-weight: 700; }
.partner-meta dd { margin: 2px 0 0; font-family: var(--font-head); font-weight: 700; font-size: 17px; color: #fff; }
.cert { position: relative; perspective: 1400px; }
.cert::before { /* ореол за рамкой */
  content: ""; position: absolute; inset: 6% 4%; border-radius: 40px; z-index: -1;
  background: radial-gradient(closest-side, rgba(56,217,255,.38), rgba(124,92,255,.22) 55%, transparent 100%);
  filter: blur(40px);
}
.cert__frame {
  position: relative; display: block; width: 100%; padding: 16px; border: 0; cursor: zoom-in; border-radius: 26px; isolation: isolate;
  background: linear-gradient(150deg, rgba(255,255,255,.12), rgba(255,255,255,.03) 50%), rgba(12,14,38,.55);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.9), 0 0 60px -12px rgba(56,217,255,.45), inset 0 1px 0 rgba(255,255,255,.12);
  transform: rotateY(-7deg) rotateX(3deg); transition: transform .7s var(--ease), box-shadow .5s var(--ease);
}
.cert__frame::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: -1;
  background: linear-gradient(140deg, rgba(120,235,255,.95), rgba(124,92,255,.35) 45%, rgba(192,107,255,.9));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.cert__frame:hover, .cert__frame:focus-visible { transform: rotateY(0) rotateX(0) translateY(-4px); box-shadow: 0 50px 100px -40px rgba(0,0,0,.9), 0 0 80px -8px rgba(56,217,255,.6), inset 0 1px 0 rgba(255,255,255,.14); }
.cert__img { width: 100%; height: auto; border-radius: 2.18% / 2.82%; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.cert__zoom {
  position: absolute; right: 30px; top: 30px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; color: #fff; background: rgba(8,12,32,.72); border: 1px solid rgba(127,228,255,.5);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 0 20px rgba(56,217,255,.35);
  transition: transform .3s var(--ease), background .3s;
}
.cert__zoom svg { width: 18px; height: 18px; }
.cert__frame:hover .cert__zoom { transform: scale(1.05); background: rgba(20,40,80,.85); }

/* ---------- Лайтбокс ---------- */
.lightbox { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 64px 24px 40px; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(2,2,10,.88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fadeIn .3s both; cursor: zoom-out; }
.lightbox__figure { position: relative; margin: 0; max-width: min(1400px, 100%); pointer-events: none; animation: popIn .4s var(--ease) both; text-align: center; }
.lightbox__img { pointer-events: auto; display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); margin: 0 auto; border-radius: 2.18% / 2.82%; box-shadow: 0 0 0 1px rgba(127,228,255,.35), 0 0 70px rgba(56,217,255,.35), 0 30px 80px rgba(0,0,0,.7); background: #0c1a2a; }
.lightbox__figure figcaption { margin-top: 14px; color: #b9c3e6; font-size: 14px; }
.lightbox__close { position: absolute; top: 16px; right: 16px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lightbox__close:hover { background: rgba(255,255,255,.18); }
.lightbox__close svg { width: 20px; height: 20px; }

/* ---------- Чекбоксы согласий ---------- */
.checks { display: grid; gap: 10px; margin-top: 4px; }
.field--check { gap: 4px; }
.check { position: relative; display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 14px; line-height: 1.45; color: #cdd2ee; font-weight: 500; }
.check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; left: 0; top: 0; cursor: pointer; }
.check__box { flex: none; width: 22px; height: 22px; margin-top: -1px; border-radius: 7px; display: grid; place-items: center; background: rgba(6,8,24,.6); border: 1.5px solid rgba(140,170,255,.35); transition: background .2s, border-color .2s, box-shadow .2s; }
.check__box svg { width: 15px; height: 15px; color: #fff; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .25s var(--ease); }
.check input:checked + .check__box { background: linear-gradient(135deg, #38d9ff, #7c5cff); border-color: transparent; box-shadow: 0 0 14px rgba(56,217,255,.5); }
.check input:checked + .check__box svg { opacity: 1; transform: none; }
.check input:focus-visible + .check__box { outline: 2px solid var(--cool-1); outline-offset: 3px; }
.check:hover .check__box { border-color: rgba(56,217,255,.7); }
.check__text a { color: #9fdcff; text-decoration: underline; text-decoration-color: rgba(159,220,255,.45); text-underline-offset: 2px; }
.check__text a:hover { color: #fff; }
.field--check.is-invalid .check__box { border-color: rgba(255,90,90,.9); box-shadow: 0 0 0 3px rgba(255,90,90,.15); }
.field--check .field__error { padding-left: 34px; }
.modal__form .check { font-size: 13px; }
.modal__panel { max-height: calc(100vh - 40px); overflow-y: auto; }

/* ---------- Юридические страницы ---------- */
.legal-page .header { background: rgba(6,5,18,.72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom-color: rgba(255,255,255,.07); }
.legal-page .header__cta { opacity: 1; transform: none; pointer-events: auto; }
.legal-page .nebula { background: radial-gradient(60vmax 45vmax at 85% 0%, rgba(56,140,255,.14), transparent 60%), radial-gradient(55vmax 50vmax at 0% 80%, rgba(124,92,255,.12), transparent 62%), linear-gradient(180deg, #05040e, #04030b); }
.legal-stars { position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .55;
  background-image: radial-gradient(1px 1px at 20% 30%, #fff, transparent 60%), radial-gradient(1px 1px at 70% 80%, #cfe0ff, transparent 60%), radial-gradient(1.5px 1.5px at 40% 60%, #fff, transparent 60%), radial-gradient(1px 1px at 85% 20%, #fff, transparent 60%), radial-gradient(1px 1px at 10% 85%, #dfe8ff, transparent 60%), radial-gradient(1.2px 1.2px at 55% 15%, #fff, transparent 60%);
  background-size: 340px 340px, 420px 420px, 520px 520px, 280px 280px, 380px 380px, 460px 460px; }
.legal { padding: calc(var(--header-h) + 56px) 0 90px; }
.legal__wrap { max-width: 880px; margin: 0 auto; }
.legal__back { display: inline-flex; align-items: center; gap: 8px; color: #9fdcff; text-decoration: none; font-weight: 600; font-size: 14.5px; margin-bottom: 22px; }
.legal__back:hover { color: #fff; }
.legal__title { font-family: var(--font-head); font-weight: 700; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.18; margin: 0 0 14px; }
.legal__meta { color: var(--muted); font-size: 14.5px; margin: 0 0 34px; }
.legal__card { padding: 44px 48px; border-radius: 24px; background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.012) 60%), rgba(12,10,32,.72); border: 1px solid rgba(140,170,255,.14); box-shadow: 0 30px 80px -40px rgba(0,0,0,.9); }
.legal__card h2 { font-family: var(--font-head); font-weight: 600; font-size: 20px; line-height: 1.3; margin: 38px 0 14px; color: #fff; }
.legal__card h2:first-child { margin-top: 0; }
.legal__card p, .legal__card li { color: #d0d4ec; font-size: 16px; line-height: 1.7; }
.legal__card p { margin: 0 0 12px; }
.legal__card ul, .legal__card ol { margin: 0 0 14px; padding-left: 22px; }
.legal__card li { margin-bottom: 6px; }
.legal__card a { color: #9fdcff; }
.legal__card li > ul { margin: 6px 0 4px; list-style: circle; }
.legal__card code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; padding: 1px 6px; border-radius: 6px; background: rgba(159,220,255,.08); border: 1px solid rgba(159,220,255,.14); color: #e6ecff; overflow-wrap: anywhere; }
.legal__card b, .legal__card strong { color: #fff; }
.legal-toc { margin: 0 0 30px; padding: 20px 24px; border-radius: 16px; background: rgba(56,217,255,.05); border: 1px solid rgba(56,217,255,.18); }
.legal-toc p { margin: 0 0 8px; font-weight: 700; color: #fff; }
.legal-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.legal-toc li { font-size: 14.5px; margin-bottom: 4px; break-inside: avoid; }
.legal-toc a { color: #b9d8ff; text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
.ph { background: rgba(255,196,0,.18); color: #ffd666; padding: 1px 6px; border-radius: 6px; border: 1px dashed rgba(255,214,102,.55); font-weight: 600; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.legal-note { padding: 16px 20px; border-radius: 14px; background: rgba(255,196,0,.07); border: 1px dashed rgba(255,214,102,.4); color: #f0e2b8 !important; font-size: 14.5px !important; margin-bottom: 28px !important; }
.req-table { width: 100%; border-collapse: collapse; margin: 6px 0 16px; font-size: 15px; }
.req-table th, .req-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.08); color: #d0d4ec; }
.req-table th { width: 38%; color: #9fb0dc; font-weight: 600; }
.legal-table-wrap { margin: 8px 0 22px; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid rgba(140,170,255,.16); border-radius: 14px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.08); color: #d0d4ec; }
.legal-table th { color: #9fb0dc; font-weight: 700; background: rgba(56,217,255,.05); white-space: nowrap; }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table--wide { min-width: 760px; }
.legal-table--wide td:first-child, .legal-table--wide th:first-child { width: 36px; color: #9fb0dc; font-weight: 700; }
.legal-table code { white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 640px) {
  .legal-table-wrap { overflow: visible; border: 0; border-radius: 0; }
  .legal-table { min-width: 0; }
  .legal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table tr { margin-bottom: 14px; padding: 6px 16px; border: 1px solid rgba(140,170,255,.16); border-radius: 14px; background: rgba(255,255,255,.02); }
  .legal-table td { padding: 8px 0; }
  .legal-table td:first-child { width: auto; }
  .legal-table td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 12.5px; font-weight: 700; color: #9fb0dc; }
}
@media (max-width: 640px) {
  .legal { padding-top: calc(var(--header-h) + 32px); }
  .legal__card { padding: 26px 20px; border-radius: 18px; }
  .legal-toc ol { columns: 1; }
  .ph { white-space: normal; }
  .req-table th, .req-table td { display: block; width: 100%; padding: 6px 0; border: 0; }
  .req-table tr { display: block; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
}

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1180px) {
  .nav { gap: 18px; }
  .nav a { font-size: 14px; }
}
@media (max-width: 1080px) {
  .nav { display: none; }
  .header__cta { opacity: 1; transform: none; pointer-events: auto; }
  .header__inner { justify-content: space-between; }
  .solution__grid { grid-template-columns: 1fr; gap: 36px; }
  .orbit-system { max-width: 420px; }
  .results__grid { grid-template-columns: repeat(2, 1fr); }
  .partner-sec__grid { grid-template-columns: 1fr; grid-template-areas: "head" "cert" "body"; row-gap: 36px; }
  .partner-sec__lead { margin-bottom: 0; }
  .cert { max-width: 640px; margin: 0 auto; width: 100%; }
  .cert__frame { transform: none; }
  .lead__panel { grid-template-columns: 1fr; gap: 36px; padding: 44px; }
}
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  body { font-size: 17.5px; }
  .section { padding: 112px 0; }
  .section + .section { padding-top: 128px; }
  .section__head { margin-bottom: 48px; }
  .section__title { font-size: clamp(30px, 6.2vw, 40px); }
  .hero { align-items: flex-start; padding-top: calc(var(--header-h) + 4px); padding-bottom: 96px; }
  .hero__grid { grid-template-columns: 1fr; gap: 0; }
  .hero__visual { order: -1; width: 100%; max-width: 520px; margin: 0 auto -8px; aspect-ratio: auto; height: min(40vh, 88vw, 400px); }
  .hero__content { text-align: left; }
  .hero__subtitle { font-size: clamp(18px, 3.6vw, 20px); }
  .scroll-hint { display: none; }
  .problem__grid { grid-template-columns: 1fr 1fr; grid-template-areas: "h h" "a b" "c d"; }
  .mini-hole { max-width: 230px; }
  .card__title { font-size: 20px; }
  .card__text { font-size: 17px; }
  .card--warm .card__text { font-size: 18px; }
  .step__title { font-size: 20px; }
  .step__text { font-size: 17px; }
  .lead__text { font-size: 19px; }
  .partner-sec__lead { font-size: 19px; }
  .partner-list__item b { font-size: 17px; }
  .partner-list__item > span:last-child { font-size: 16.5px; }
  .check { font-size: 15px; }
  .timeline { grid-template-columns: 1fr; gap: 34px; padding-left: 0; }
  .timeline::before { left: 43px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; background: linear-gradient(180deg, rgba(56,217,255,.1), rgba(56,217,255,.6), rgba(124,92,255,.6), rgba(192,107,255,.1)); }
  .timeline::after { display: none; }
  .step { display: grid; grid-template-columns: 88px 1fr; column-gap: 22px; text-align: left; align-items: start; }
  .step__planet { grid-row: 1 / span 2; margin: 0; }
  .step__title { margin-top: 14px; }
  .step__text { margin: 0; max-width: none; }
}
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .header__inner { gap: 10px; }
  .header__cta-full { display: none; }
  .header__cta-short { display: inline; }
  .btn { font-size: 16.5px; }
  .btn--lg { padding: 18px 20px; font-size: 17px; width: 100%; gap: 8px; }
  .btn--sm { font-size: 15px; }
  .hero__actions { align-items: stretch; }
  .hero__note { justify-content: center; font-size: 15.5px; }
  .hero__title { font-size: clamp(32px, 8.8vw, 42px); margin-bottom: 18px; }
  .hero__subtitle { font-size: 19px; margin-bottom: 26px; }
  .eyebrow { font-size: 13.5px; }
  .section__title { font-size: clamp(28px, 7.4vw, 36px); }
  .problem__grid { grid-template-columns: 1fr; grid-template-areas: "h" "a" "b" "c" "d"; gap: 12px; }
  .problem__stat p { font-size: 18px; line-height: 1.45; }
  .mini-hole { max-width: 180px; margin-inline: auto; }
  /* карточки: иконка слева, текст крупнее — удобнее читать с телефона */
  .card { padding: 16px 16px; }
  .problem__grid > .card {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 16px 16px;
  }
  .problem__grid > .card .card__icon { margin: 0; flex: none; width: 44px; height: 44px; border-radius: 12px; }
  .problem__grid > .card .card__icon svg { width: 22px; height: 22px; }
  .problem__grid > .card .card__text { flex: 1; font-size: 17.5px; line-height: 1.4; }
  .card--warm .card__text { font-size: 17.5px; }
  .solution__cards { grid-template-columns: 1fr; gap: 12px; }
  .solution__cards .card {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 14px;
    row-gap: 6px;
    padding: 16px 16px;
    align-items: start;
  }
  .solution__cards .card__icon { grid-row: 1 / span 2; margin: 0; width: 44px; height: 44px; border-radius: 12px; }
  .solution__cards .card__icon svg { width: 22px; height: 22px; }
  .solution__cards .card__title { font-size: 18px; margin: 0; align-self: end; }
  .solution__cards .card__text { font-size: 16.5px; line-height: 1.4; grid-column: 2; }
  .card__title { font-size: 18px; }
  .card__text { font-size: 16.5px; line-height: 1.4; }
  .problem__stat { flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 18px; }
  .orbit-system__track .planet { font-size: 12px; padding: 5px 9px; }
  .orbit-system__track .planet.planet--sm { font-size: 11px; padding: 4px 8px; }
  .results__grid { gap: 14px; }
  .stat { padding: 30px 10px 26px; }
  .stat__label { font-size: 15.5px; }
  .logo__img { width: 36px; height: 34px; }
  .logo__name { font-size: 15.5px; letter-spacing: .26em; margin-right: -.26em; }
  .logo__sub { font-size: 9px; letter-spacing: .42em; margin-top: 4px; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 22px; }
  .footer__links { flex-direction: column; gap: 12px; }
  .footer__links a { font-size: 15px; }
  .footer__legal { text-align: left; max-width: none; }
  .footer__copy { font-size: 14.5px; }
  .lead { padding: 120px 0 112px; }
  .lead__text { font-size: 18.5px; line-height: 1.45; }
  .lead__list { gap: 12px; margin-top: 4px; }
  .lead__list li { font-size: 17px; line-height: 1.4; padding-left: 36px; }
  .field label { font-size: 15.5px; }
  .field input, .select select { font-size: 17px; min-height: 52px; }
  .check { font-size: 15.5px; line-height: 1.45; gap: 12px; }
  .checks { gap: 12px; }
  .form-note { font-size: 14.5px; }
  .modal__title { font-size: 24px; }
  .modal__form .check { font-size: 14.5px; }
  .cert__frame { padding: 10px; border-radius: 18px; }
  .cert__zoom { right: 18px; top: 18px; font-size: 13.5px; padding: 7px 11px; }
  .partner-sec__lead { font-size: 18.5px; line-height: 1.45; }
  .partner-list { gap: 12px; }
  .partner-list__item { padding: 16px 16px; gap: 14px; }
  .partner-list__item b { font-size: 17px; line-height: 1.3; margin-bottom: 6px; }
  .partner-list__item > span:last-child { font-size: 16.5px; line-height: 1.45; }
  .partner-list__icon { width: 44px; height: 44px; }
  .partner-meta { flex-direction: column; }
  .partner-meta div { flex: 1 1 auto; }
  .partner-meta dd { font-size: 18px; }
  .lead__panel { padding: 28px 18px; border-radius: 24px; }
  .modal__panel { padding: 38px 22px 26px; }
  .section__head { margin-bottom: 28px; }
}
@media (max-width: 400px) {
  .hero__actions .btn__arrow { display: none; }
  .btn--lg { font-size: 16.5px; padding: 17px 14px; }
  .stat__num { font-size: 42px; }
}

/* ---------- Уважение к prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .timeline::after { display: none; }
}

/* Необязательная галочка рассылок: визуально отделена от обязательных (Программист RegWay) */
.field--optional { margin-top: 6px; padding-top: 12px; border-top: 1px dashed rgba(255,255,255,.14); }
.check__opt { color: var(--muted, rgba(255,255,255,.6)); white-space: nowrap; }

/* длинные адреса на юрстраницах переносятся на узких экранах */
.legal__card a, .legal__meta a { overflow-wrap: anywhere; }

/* === Cookie banner (metrika.js) === */
/* Баннер согласия на cookies/Яндекс.Метрику. Разметку создаёт metrika.js:
   .cookie-banner(.is-visible) > .cookie-banner__text + .cookie-banner__actions > .cookie-banner__btn(--accept|--decline).
   z-index 90: выше шапки (50), ниже exit-попапа (100) и лайтбокса (120). */
.cookie-banner {
  position: fixed; z-index: 90;
  left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
  width: min(980px, calc(100% - 32px));
  display: flex; align-items: center; gap: 16px 28px;
  padding: 18px 20px 18px 24px;
  border-radius: var(--radius-sm, 14px);
  background: rgba(12, 10, 32, 0.84);
  border: 1px solid rgba(159, 220, 255, 0.16);
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  color: var(--text, #eef0ff);
  font-family: var(--font-body, system-ui, sans-serif);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity .3s var(--ease, ease), transform .3s var(--ease, ease), visibility 0s linear .3s;
}
.cookie-banner.is-visible {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%, 0);
  transition: opacity .3s var(--ease, ease), transform .3s var(--ease, ease), visibility 0s;
}
.cookie-banner__text { flex: 1 1 auto; margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted, #a7abc9); }
.cookie-banner__text a { color: #b9c6ec; text-decoration: none; border-bottom: 1px solid rgba(159, 220, 255, .35); transition: color .2s, border-color .2s; }
.cookie-banner__text a:hover { color: #fff; border-color: rgba(159, 220, 255, .8); }
.cookie-banner__actions { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 11px 20px; border-radius: 999px;
  font: inherit; font-size: 14.5px; font-weight: 700; line-height: 1.2; letter-spacing: .01em;
  white-space: nowrap; cursor: pointer; color: #fff;
  transition: transform .25s var(--ease, ease), box-shadow .3s, background-color .2s, border-color .2s;
}
.cookie-banner__btn--accept {
  border: 0; text-shadow: 0 1px 2px rgba(10, 10, 40, .45);
  background: linear-gradient(120deg, rgb(var(--btn-a, 204, 74, 10)) 0%, var(--btn-warm-2, #d41e48) 55%, var(--cool-2, #7c5cff) 130%);
  box-shadow: 0 10px 26px -10px rgba(var(--accent, 255, 122, 47), .75), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.cookie-banner__btn--accept:hover { transform: translateY(-1px); box-shadow: 0 14px 32px -10px rgba(var(--accent, 255, 122, 47), .9), inset 0 1px 0 rgba(255, 255, 255, .4); }
.cookie-banner__btn--decline { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .22); color: var(--text, #eef0ff); }
.cookie-banner__btn--decline:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .4); }
.cookie-banner__btn:active { transform: scale(.98); }
.cookie-banner__btn:focus-visible { outline: 2px solid var(--cool-1, #38d9ff); outline-offset: 3px; }
@media (max-width: 760px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 16px 16px; width: calc(100% - 24px); bottom: max(12px, env(safe-area-inset-bottom)); }
  .cookie-banner__text { font-size: 14.5px; line-height: 1.5; }
  .cookie-banner__btn { flex: 1 1 auto; min-height: 42px; padding: 10px 14px; font-size: 15px; }
}
/* Фронтенд: пока баннер открыт, низ страницы (подвал с «Настройки cookies») не прячется под ним */
body:has(.cookie-banner.is-visible) { padding-bottom: 140px; }
.cookie-banner__text a:focus-visible { outline: 2px solid var(--cool-1, #38d9ff); outline-offset: 2px; border-radius: 3px; }
@media (max-width: 1023px) { body:has(.cookie-banner.is-visible) { padding-bottom: 210px; } }
@media (max-width: 760px) { body:has(.cookie-banner.is-visible) { padding-bottom: 240px; } }
@media (max-width: 400px) { body:has(.cookie-banner.is-visible) { padding-bottom: 300px; } }
@media (prefers-reduced-motion: reduce) {
  .cookie-banner, .cookie-banner.is-visible { transition: opacity .2s, visibility 0s; transform: translate(-50%, 0); }
  .cookie-banner__btn, .cookie-banner__btn:hover, .cookie-banner__btn:active { transform: none; }
}
