/* SwiftGate — лендинг. Тёмная тема, стекло, свечение; движение - только transform/opacity. */
@font-face { font-family: "Unbounded"; src: url(/static/fonts/unbounded-cyrillic.woff2) format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; src: url(/static/fonts/unbounded-latin.woff2) format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20BD, U+2212; }
@font-face { font-family: "Inter"; src: url(/static/fonts/inter-cyrillic.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; src: url(/static/fonts/inter-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20BD, U+2212, U+2190-21FF; }
@font-face { font-family: "JB"; src: url(/static/fonts/jetbrainsmono-latin.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "JB"; src: url(/static/fonts/jetbrainsmono-cyrillic.woff2) format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0400-045F; }

:root {
  --bg: #04050d; --bg2: #080b1c; --card: rgba(255,255,255,.045); --card2: rgba(255,255,255,.07);
  --line: rgba(255,255,255,.09); --line2: rgba(255,255,255,.16);
  --ink: #eef1ff; --muted: #a3abcf; --dim: #737ba3;
  --blue: #5b7fff; --violet: #9a63ff; --cyan: #2ee6ff; --green: #36f5a1; --pink: #ff5fa2; --amber: #ffb547; --red: #ff5a6e;
  --grad: linear-gradient(100deg, #7aa2ff 0%, #b27bff 45%, #ff7ac6 100%);
  --r: 24px; --r-lg: 32px;
  --ease: cubic-bezier(.22,1,.36,1);
  --spring: linear(0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.723 12.9%, 0.938 16.7%, 1.017 19.4%, 1.067, 1.089 25.3%, 1.085 28.4%, 1.049 34.4%, 1.019 41%, 0.999 50%, 0.995 59.5%, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Unbounded", "Inter", system-ui, sans-serif;
  --mono: "JB", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
html.rm { scroll-behavior: auto; }
body { font: 400 17px/1.6 var(--font); color: var(--ink); background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
/* clip режет вылезание так же, но не делает body контейнером прокрутки - с hidden
   в части мобильных браузеров (WebView, старый Safari) перестаёт работать sticky */
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 10px; }
::selection { background: rgba(154,99,255,.45); }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; position: relative; }
.wrap.narrow { width: min(820px, 100% - 40px); }
section { position: relative; padding: 130px 0; }
/* Всё ниже первого экрана браузер не раскладывает и не рисует, пока блок далеко от экрана: кадр при прокрутке короче.
   auto в contain-intrinsic-size запоминает настоящую высоту после первого показа - полоса прокрутки не прыгает. */
section:not(.hero):not(#brands) { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.grad { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: gradShift 8s ease-in-out infinite alternate; }
/* блок вне экрана (JS ставит .is-off): его бесконечные анимации стоят и не пересчитываются каждый кадр */
.is-off, .is-off *, .is-off *::before, .is-off *::after { animation-play-state: paused !important; }
@keyframes gradShift { to { background-position: 100% 0; } }

/* ---------- фон ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
/* Без filter: blur - размытие движущихся кругов пересчитывалось каждый кадр и роняло прокрутку
   (замер: телефон 11 -> 25 к/с, ПК 5 -> 51 к/с). Та же мягкость - многоступенчатым градиентом. */
.aurora { position: absolute; inset: -20%; opacity: .75; }
.aurora i { position: absolute; border-radius: 50%; animation: drift 26s ease-in-out infinite alternate; will-change: transform; }
.aurora i:nth-child(1) { width: 70vmax; height: 70vmax; left: -15%; top: -25%; background: radial-gradient(circle, rgba(78,98,255,.5) 0%, rgba(78,98,255,.28) 28%, rgba(78,98,255,.1) 50%, transparent 70%); }
.aurora i:nth-child(2) { width: 60vmax; height: 60vmax; right: -20%; top: 0; background: radial-gradient(circle, rgba(160,78,255,.42) 0%, rgba(160,78,255,.22) 30%, rgba(160,78,255,.08) 52%, transparent 70%); animation-duration: 32s; animation-delay: -8s; }
.aurora i:nth-child(3) { width: 55vmax; height: 55vmax; left: 15%; bottom: -30%; background: radial-gradient(circle, rgba(24,205,255,.26) 0%, rgba(24,205,255,.13) 32%, rgba(24,205,255,.04) 54%, transparent 70%); animation-duration: 38s; animation-delay: -14s; }
.aurora i:nth-child(4) { width: 40vmax; height: 40vmax; right: 5%; bottom: -5%; background: radial-gradient(circle, rgba(255,86,176,.2) 0%, rgba(255,86,176,.1) 32%, rgba(255,86,176,.03) 54%, transparent 70%); animation-duration: 29s; animation-delay: -5s; }
@keyframes drift { 0% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(6vw,4vh,0) scale(1.15); } 100% { transform: translate3d(-4vw,-3vh,0) scale(.95); } }
#stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.grain { position: absolute; inset: -50%; opacity: .06; 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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-5%,4%)} 40%{transform:translate(4%,-6%)} 60%{transform:translate(-3%,-2%)} 80%{transform:translate(6%,5%)} 100%{transform:translate(0,0)} }
.cursor-glow { position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(120,110,255,.13), transparent 60%); opacity: 0; transition: opacity .4s; will-change: transform; }
.progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); z-index: 60; }

/* ---------- заставка ---------- */
.curtain { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg); pointer-events: none; }
html:not(.js) .curtain, html.rm .curtain { display: none; }
@media (max-width: 760px) { .curtain { display: none; } }     /* на телефоне без заставки (landing.js intro) */
.curtain-mark { display: flex; align-items: center; gap: 16px; font: 800 30px var(--display); letter-spacing: -.02em; }
.curtain-mark img { border-radius: 20px; box-shadow: 0 0 60px rgba(120,110,255,.6); }

/* ---------- навигация ---------- */
.nav { position: fixed; z-index: 50; top: 14px; left: 50%; width: min(1200px, 100% - 24px); transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 10px 10px 18px; border-radius: 22px;
  background: rgba(8,10,24,.55); border: 1px solid var(--line); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: transform .5s var(--ease), background .3s; }
.nav.hide { transform: translate(-50%, -130%); }
.logo { display: flex; align-items: center; gap: 10px; font: 700 17px var(--display); letter-spacing: -.02em; }
.logo img { border-radius: 10px; }
.links { position: relative; display: flex; gap: 4px; }
.links a { position: relative; z-index: 1; padding: 9px 14px; border-radius: 12px; font-size: 15px; color: var(--muted); transition: color .25s; }
.links a:hover, .links a.on { color: var(--ink); }
.nav-pill { position: absolute; left: 0; top: 0; height: 100%; width: 0; border-radius: 12px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  opacity: 0; transition: transform .6s var(--spring), width .6s var(--spring), opacity .3s; pointer-events: none; }
.nav-pill.on { opacity: 1; }
.nav-cta { display: flex; gap: 8px; }
.nav-cta .short { display: none; }

/* ---------- кнопки ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 16px; font-weight: 700; font-size: 16px; white-space: nowrap; isolation: isolate; overflow: hidden;
  transition: transform .5s var(--spring), box-shadow .3s, background .3s, border-color .3s; will-change: transform; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 15px; border-radius: 13px; }
.btn-lg { min-height: 60px; padding: 0 30px; font-size: 17px; border-radius: 18px; }
.btn-xl { min-height: 70px; padding: 0 40px; font-size: 19px; border-radius: 22px; }
.btn-block { width: 100%; }
.btn-primary { color: #fff; background: linear-gradient(120deg, #4f6bff, #8a5cff 55%, #c05cff); box-shadow: 0 10px 40px -10px rgba(120,90,255,.8), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-primary:hover { box-shadow: 0 16px 60px -10px rgba(140,100,255,1), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-ghost { color: var(--ink); background: rgba(255,255,255,.05); border: 1px solid var(--line2); }
.btn-ghost:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.28); }
.btn:active { transform: scale(.97); }
.shine::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%); transform: translateX(-120%); animation: shine 3.6s var(--ease) infinite; }
@keyframes shine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.magnetic span, .magnetic svg { transition: transform .5s var(--spring); }
.btn:not(.magnetic) svg { transition: transform .5s var(--spring); }
@media (hover: hover) {
  .btn:not(.magnetic):hover svg { transform: translateX(3px); }
  .btn:not(.magnetic):hover svg:first-child:not(:last-child) { transform: scale(1.14) rotate(-8deg); }
}

/* ---------- заголовки разделов ---------- */
.head { text-align: center; max-width: 920px; margin: 0 auto 64px; }
.head.left { text-align: left; margin-left: 0; }
.kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font: 600 13px var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: #c6b8ff; background: rgba(154,99,255,.1); border: 1px solid rgba(154,99,255,.28); margin-bottom: 22px; }
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.kicker-red { color: #ffb0bb; background: rgba(255,90,110,.1); border-color: rgba(255,90,110,.3); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.03em; line-height: 1.05; font-weight: 800; text-wrap: balance; }
p, .sub, .lead { text-wrap: pretty; }
h2 { font-size: clamp(32px, 4.4vw, 58px); }
h3 { font-size: 21px; letter-spacing: -.02em; line-height: 1.2; font-weight: 700; }
.sub { margin-top: 22px; font-size: 19px; color: var(--muted); max-width: 640px; }
.head:not(.left) .sub { margin-inline: auto; }
.note { margin-top: 30px; color: var(--dim); font-size: 15px; max-width: 760px; }
.note.center { text-align: center; margin-inline: auto; }
.ref-teaser { display: flex; gap: 14px; align-items: center; max-width: 760px; margin: 22px auto 0; padding: 16px 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.ref-teaser .ref-ico { font-size: 28px; flex: none; }
.ref-teaser b { color: var(--ink); }
.ref-teaser a { color: #c6b8ff; text-decoration: underline; text-underline-offset: 3px; }
.muted { color: var(--muted); } .small { font-size: 14px; }

/* разбивка на слова для появления */
.w-mask { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .02em .14em; margin: -.08em -.02em -.14em; }
.w-in { display: inline-block; will-change: transform; }
html.js:not(.rm) [data-split] .w-in { transform: translateY(110%) rotate(6deg); }
html.js:not(.rm) [data-reveal], html.js:not(.rm) [data-hero] { opacity: 0; transform: translateY(40px); }
/* подзаголовок первого экрана - главный элемент для LCP: только сдвиг, без прозрачности,
   иначе браузер засчитывал его лишь после анимации (3.2 с на телефоне) */
html.js:not(.rm) .lead[data-hero] { opacity: 1; }

/* ---------- первый экран ---------- */
.hero { min-height: 100svh; padding: 140px 0 90px; display: flex; align-items: center; overflow: hidden; }
.hero-grid { position: absolute; left: -50%; right: -50%; bottom: -10%; height: 55%; overflow: hidden;
  transform: perspective(600px) rotateX(62deg); transform-origin: 50% 0; mask-image: linear-gradient(to top, #000 10%, transparent 85%); -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%); }
/* линии сетки - на слое выше на один шаг; слой плывёт вниз на шаг и начинает заново: без перерисовки, только transform */
.hero-grid::before { content: ""; position: absolute; left: 0; right: 0; top: -70px; bottom: 0; will-change: transform; background:
  linear-gradient(rgba(120,130,255,.22) 1px, transparent 1px) 0 0 / 70px 70px,
  linear-gradient(90deg, rgba(120,130,255,.22) 1px, transparent 1px) 0 0 / 70px 70px;
  animation: gridMove 3s linear infinite; }
@keyframes gridMove { to { transform: translate3d(0, 70px, 0); } }
html.rm .hero-grid::before { animation: none; }
.hero-in { display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; font-size: 14px; color: var(--muted);
  background: rgba(255,255,255,.05); border: 1px solid var(--line2); backdrop-filter: blur(10px); margin-bottom: 28px; }
.pill b { color: var(--ink); font-weight: 600; }
.pill .sep { width: 1px; height: 14px; background: var(--line2); }
.dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--green); animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
.hero-title { font-size: clamp(44px, 7.4vw, 100px); line-height: .98; letter-spacing: -.045em; }
.hero-title .line { display: block; }
.lead { margin-top: 28px; font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 30px; list-style: none; color: var(--muted); font-size: 15px; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--green); }

/* сцена с телефоном */
.hero-stage { position: relative; height: 680px; display: grid; place-items: center; perspective: 1400px; }
.orbit { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.orbit i { position: absolute; border-radius: 50%; border: 1px solid rgba(140,130,255,.18); }
.orbit i:nth-child(1) { width: 440px; height: 440px; animation: spin 40s linear infinite; border-top-color: rgba(140,130,255,.7); }
.orbit i:nth-child(2) { width: 580px; height: 580px; animation: spin 60s linear infinite reverse; border-left-color: rgba(46,230,255,.55); }
.orbit i:nth-child(3) { width: 720px; height: 720px; animation: spin 90s linear infinite; border-bottom-color: rgba(255,95,162,.4); }
@keyframes spin { to { transform: rotate(360deg); } }
.phone { position: relative; width: 300px; height: 620px; transform-style: preserve-3d; transform: rotateY(var(--ry, -14deg)) rotateX(var(--rx, 6deg)) translateY(var(--ty, 0)); transition: transform .9s var(--ease); will-change: transform; }
.phone-frame { position: absolute; inset: 0; border-radius: 54px; padding: 11px;
  background: linear-gradient(145deg, #5a5f73, #1b1d27 30%, #2c2f3d 60%, #6d7287);
  box-shadow: 0 0 0 1.5px #0b0c12 inset, 0 2px 1px rgba(255,255,255,.25) inset, 0 60px 120px -30px rgba(80,70,255,.55), 0 40px 80px -20px rgba(0,0,0,.9), -30px 30px 90px -40px rgba(46,230,255,.35); }
.phone-frame::before { content: ""; position: absolute; right: -3px; top: 150px; width: 4px; height: 80px; border-radius: 2px; background: #3a3d4c; }
.phone-frame::after { content: ""; position: absolute; left: -3px; top: 120px; width: 4px; height: 50px; border-radius: 2px; background: #3a3d4c; box-shadow: 0 70px 0 #3a3d4c; }
.phone-screen { position: relative; height: 100%; border-radius: 44px; overflow: hidden; padding: 16px 18px;
  background: radial-gradient(120% 70% at 50% 0%, #1b1f4a 0%, #0b0d1f 60%, #07081a 100%); }
.phone-glare { position: absolute; inset: 11px; border-radius: 44px; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.14) 0%, transparent 28%, transparent 70%, rgba(255,255,255,.05) 100%); }
.island { position: absolute; left: 50%; top: 11px; width: 96px; height: 28px; margin-left: -48px; border-radius: 20px; background: #000; z-index: 3; }
.status-bar { display: flex; justify-content: space-between; align-items: center; height: 26px; padding: 0 12px; font: 600 13px var(--font); }
.sb-r { display: flex; gap: 3px; align-items: flex-end; }
.sb-r i { width: 3px; background: #fff; border-radius: 1px; } .sb-r i:nth-child(1){height:5px} .sb-r i:nth-child(2){height:8px} .sb-r i:nth-child(3){height:11px}
.sb-r b { width: 22px; height: 11px; margin-left: 6px; border-radius: 3px; border: 1.5px solid rgba(255,255,255,.8); position: relative; }
.sb-r b::after { content: ""; position: absolute; inset: 1.5px; right: 5px; background: #fff; border-radius: 1px; }
.app-head { display: flex; align-items: center; gap: 8px; margin: 22px 4px 0; font: 700 15px var(--display); }
.app-head img { border-radius: 8px; }
.chip-auto { margin-left: auto; font: 600 11px var(--font); color: #cfd6ff; padding: 5px 9px; border-radius: 999px; background: rgba(120,130,255,.18); border: 1px solid rgba(140,150,255,.3); }
.power { position: relative; display: grid; place-items: center; width: 160px; height: 160px; margin: 38px auto 0; border-radius: 50%; }
.power .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(140,150,255,.25); }
.power .r2 { inset: -16px; border-color: rgba(140,150,255,.14); }
.power .r3 { inset: -32px; border-color: rgba(140,150,255,.07); }
.power-core { position: relative; display: grid; place-items: center; width: 118px; height: 118px; border-radius: 50%; color: #aab4ff;
  background: radial-gradient(circle at 35% 30%, #2d335e, #151836 70%); box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 20px 40px -10px rgba(0,0,0,.8); transition: color .5s, box-shadow .6s, background .6s; }
.power-core svg { width: 46px; height: 46px; }
.power.connecting .ring { animation: ringPulse 1.1s ease-out infinite; }
.power.connecting .r2 { animation-delay: .2s; } .power.connecting .r3 { animation-delay: .4s; }
@keyframes ringPulse { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.15); opacity: 0; } }
.power.on .power-core { color: #fff; background: radial-gradient(circle at 35% 30%, #58ffc0, #12b77a 70%); box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset, 0 0 60px rgba(54,245,161,.65), 0 0 120px rgba(54,245,161,.3); }
.power.on .ring { border-color: rgba(54,245,161,.35); animation: breathe 3s ease-in-out infinite; }
.power.on .r2 { border-color: rgba(54,245,161,.2); animation-delay: .5s; } .power.on .r3 { border-color: rgba(54,245,161,.1); animation-delay: 1s; }
@keyframes breathe { 50% { transform: scale(1.06); } }
.state { text-align: center; margin-top: 30px; }
.state b { display: block; font: 700 21px var(--display); letter-spacing: -.02em; transition: color .4s; }
.state span { font-size: 13px; color: var(--muted); }
.state.on b { color: var(--green); }
.app-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 20px; }
.app-metrics div { text-align: center; padding: 10px 4px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.06); }
.app-metrics b { display: grid; place-items: center; height: 22px; font: 700 17px var(--mono); }
.app-metrics b svg { width: 17px; height: 17px; color: var(--green); }
.app-metrics span { font-size: 10.5px; color: var(--dim); }
.routes { margin-top: 12px; display: grid; gap: 6px; height: 118px; overflow: hidden; mask-image: linear-gradient(#000 70%, transparent); -webkit-mask-image: linear-gradient(#000 70%, transparent); }
.route-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 11px; font: 500 12px var(--mono); background: rgba(255,255,255,.04); }
.route-row em { font: 600 10.5px var(--font); font-style: normal; padding: 3px 7px; border-radius: 7px; }
.route-row em.v { color: #c9b6ff; background: rgba(154,99,255,.2); }
.route-row em.d { color: #8fffd0; background: rgba(54,245,161,.15); }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 18px; background: rgba(14,16,36,.66);
  border: 1px solid var(--line2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); white-space: nowrap; will-change: transform; }
.float-card b { display: block; font-size: 14.5px; } .float-card span { font-size: 12.5px; color: var(--muted); }
.fc1 { left: -9%; top: 25%; } .fc2 { right: -8%; top: 60%; } .fc3 { left: -2%; bottom: 10%; }
.ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; flex: none; }
.ic svg { width: 20px; height: 20px; }
.ic-violet { color: #d3c2ff; background: linear-gradient(135deg, rgba(154,99,255,.35), rgba(154,99,255,.12)); box-shadow: 0 0 24px rgba(154,99,255,.25); }
.ic-green { color: #a8ffd9; background: linear-gradient(135deg, rgba(54,245,161,.3), rgba(54,245,161,.1)); box-shadow: 0 0 24px rgba(54,245,161,.2); }
.ic-blue { color: #bccbff; background: linear-gradient(135deg, rgba(91,127,255,.38), rgba(91,127,255,.12)); box-shadow: 0 0 24px rgba(91,127,255,.25); }
.ic-pink { color: #ffc2dc; background: linear-gradient(135deg, rgba(255,95,162,.32), rgba(255,95,162,.1)); box-shadow: 0 0 24px rgba(255,95,162,.2); }
.ic-amber { color: #ffe0ad; background: linear-gradient(135deg, rgba(255,181,71,.32), rgba(255,181,71,.1)); box-shadow: 0 0 24px rgba(255,181,71,.2); }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; border: 2px solid var(--line2); }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ink); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- ленты сервисов ---------- */
.brands { padding: 30px 0 60px; overflow: hidden; }
.marquee { position: relative; overflow: hidden; padding: 8px 0; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.mq-track { display: flex; gap: 14px; width: max-content; will-change: transform; }
.tag { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 16px; font: 600 18px var(--display); letter-spacing: -.01em; white-space: nowrap;
  background: rgba(255,255,255,.035); border: 1px solid var(--line); }
.tag::before { content: ""; width: 9px; height: 9px; border-radius: 50%; }
.tag.vpn::before { background: var(--violet); box-shadow: 0 0 12px var(--violet); }
.tag.ru::before { background: var(--green); box-shadow: 0 0 12px var(--green); }
.brands-note { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; margin-top: 22px; color: var(--muted); font-size: 15px; }
.lg { width: 10px; height: 10px; border-radius: 50%; margin-left: 10px; }
.lg.vpn { background: var(--violet); } .lg.ru { background: var(--green); }

/* ---------- умный режим ---------- */
.smart-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: start; }
.smart-pin { position: -webkit-sticky; position: sticky; top: 110px; }
.smart-visual { position: relative; aspect-ratio: 560 / 560; border-radius: var(--r-lg); padding: 20px; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); border: 1px solid var(--line); overflow: hidden; }
.smart-visual::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 45% 50%, rgba(120,110,255,.18), transparent 70%); }
.flow { position: relative; width: 100%; height: auto; overflow: visible; }
.lane { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 3; stroke-linecap: round; transition: stroke .5s, opacity .5s; }
.tunnel { fill: none; stroke: url(#gVpn); stroke-width: 18; stroke-linecap: round; opacity: .12; transition: opacity .5s; }
.node circle, .node rect { fill: rgba(16,18,40,.9); stroke: rgba(255,255,255,.16); stroke-width: 1.5; transition: stroke .5s, fill .5s; }
.node text { fill: var(--ink); font: 700 14px var(--display); text-anchor: middle; }
.node .t2 { fill: var(--muted); font: 500 12px var(--font); }
.n-core circle:first-child { fill: url(#gVpn); stroke: none; filter: url(#glow); }
.n-core text { font-size: 15px; }
.core-ring { fill: none !important; stroke: rgba(154,99,255,.5) !important; stroke-dasharray: 6 10; animation: spin 12s linear infinite; transform-origin: 250px 260px; }
.pk { filter: url(#glow); }
.flow[data-focus="vpn"] .lane-vpn, .flow[data-focus="all"] .lane-vpn { stroke: url(#gVpn); }
.flow[data-focus="vpn"] .tunnel, .flow[data-focus="all"] .tunnel { opacity: .35; }
.flow[data-focus="vpn"] .n-vpn rect, .flow[data-focus="all"] .n-vpn rect { stroke: var(--violet); fill: rgba(60,30,120,.6); }
.flow[data-focus="ru"] .lane-ru, .flow[data-focus="all"] .lane-ru { stroke: url(#gRu); }
.flow[data-focus="ru"] .n-ru rect, .flow[data-focus="all"] .n-ru rect { stroke: var(--green); fill: rgba(10,70,50,.6); }
.flow[data-focus="in"] .lane-in, .flow[data-focus="all"] .lane-in { stroke: #8aa0ff; }
.flow[data-focus="in"] .n-you circle { stroke: #8aa0ff; }
/* центр - полями, не transform: подпись «подпрыгивает» через scale, и Motion затирал translateX(-50%) - она уезжала вправо */
.flow-label { position: absolute; left: 0; right: 0; bottom: 22px; width: max-content; max-width: calc(100% - 20px); margin-inline: auto; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 14px;
  background: rgba(10,12,30,.8); border: 1px solid var(--line2); font: 600 14px var(--mono); white-space: nowrap; }
.fl-arrow { color: var(--dim); }
.fl-dest { padding: 3px 10px; border-radius: 8px; font: 700 12px var(--font); }
.fl-dest.vpn { color: #d9caff; background: rgba(154,99,255,.25); } .fl-dest.ru { color: #9dffd6; background: rgba(54,245,161,.18); }
.smart-steps { list-style: none; display: grid; gap: 18px; padding: 8vh 0 20vh; }
.sstep { display: flex; gap: 20px; padding: 28px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(255,255,255,.025); opacity: .72; transform: scale(.97); transition: opacity .6s var(--ease), transform .6s var(--ease), border-color .6s, background .6s; min-height: 34vh; align-items: center; }
.sstep.on { opacity: 1; transform: scale(1); border-color: rgba(154,99,255,.4); background: linear-gradient(135deg, rgba(120,90,255,.12), rgba(255,255,255,.02)); }
.sstep .n { font: 700 15px var(--mono); color: #b9a6ff; padding-top: 3px; }
.smart-dots { display: none; }
.smart-dots button { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; }
.smart-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.25); transition: width .35s var(--ease), background .35s; }
.smart-dots button[aria-current="true"]::before { width: 22px; border-radius: 4px; background: #9a63ff; }
.sstep p { margin-top: 8px; color: var(--muted); }

/* ---------- до / после ---------- */
.cmp { position: relative; height: 520px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); --pos: 50%; user-select: none; touch-action: pan-y; cursor: ew-resize; }
.cmp-side { position: absolute; inset: 0; display: grid; place-items: center; }
.cmp-bad { background: radial-gradient(70% 70% at 30% 50%, rgba(255,70,90,.18), transparent 70%), #0a0b16; }
.cmp-good { background: radial-gradient(70% 70% at 70% 50%, rgba(54,245,161,.16), transparent 70%), #07121a; clip-path: inset(0 0 0 var(--pos)); }
.cmp-bad .mini-phone { transform: translateX(-24%); } .cmp-good .mini-phone { transform: translateX(24%); }
.mini-phone { width: 250px; height: 430px; border-radius: 40px; padding: 10px; background: linear-gradient(145deg, #4b4f61, #16171f 40%, #3a3d4c); box-shadow: 0 40px 80px -30px rgba(0,0,0,.9); }
.mini-phone > * { background: #0d0f1f; }
.mp-bar { display: flex; justify-content: space-between; align-items: center; padding: 18px 18px 10px; border-radius: 31px 31px 0 0; font: 600 13px var(--font); color: var(--muted); }
.bad-dot, .good-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red); } .good-dot { background: var(--green); box-shadow: 0 0 12px var(--green); }
.mp-body { height: calc(100% - 50px); border-radius: 0 0 31px 31px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 24px; }
.mp-icon { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; font: 800 34px var(--display); }
.mp-icon.bad { color: #fff; background: radial-gradient(circle at 35% 30%, #ff8a98, #d42a45); box-shadow: 0 0 40px rgba(255,90,110,.5); }
.mp-icon.good { color: #fff; background: radial-gradient(circle at 35% 30%, #74ffc8, #12b77a); box-shadow: 0 0 40px rgba(54,245,161,.5); }
.mp-icon svg { width: 36px; height: 36px; }
.mp-body b { font: 700 19px var(--display); } .mp-body p { font-size: 14px; color: var(--muted); }
.mp-btn { margin-top: 8px; padding: 10px 20px; border-radius: 12px; font-weight: 700; font-size: 14px; color: #ffb0bb; background: rgba(255,90,110,.15); }
.mp-btn.good { color: #062b1c; background: var(--green); }
.cmp-tag { position: absolute; bottom: 22px; left: 22px; padding: 8px 14px; border-radius: 12px; font: 600 13px var(--mono); color: #ffb0bb; background: rgba(255,90,110,.15); border: 1px solid rgba(255,90,110,.3); }
.cmp-tag.good { left: auto; right: 22px; color: #9dffd6; background: rgba(54,245,161,.12); border-color: rgba(54,245,161,.3); }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 24px rgba(255,255,255,.7); }
.cmp-handle span { position: absolute; top: 50%; left: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; display: grid; place-items: center; border-radius: 50%; color: #0b0d1f; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.cmp-handle svg { width: 26px; height: 26px; }
/* таблица «обычный VPN / SwiftGate» под ползунком; на телефоне каждая строка - карточка */
.vs { width: 100%; max-width: 900px; margin: 34px auto 0; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 1.45; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--card); }
.vs th, .vs td { padding: 14px 18px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.vs thead th, .vs thead td { border-top: 0; font-weight: 600; }
.vs thead th:nth-child(2) { color: var(--dim); }
.vs thead th:last-child { color: var(--ink); }
.vs tbody th { font-weight: 600; color: var(--ink); width: 22%; }
.vs tbody td { color: var(--dim); }
.vs tbody td:last-child { color: var(--ink); background: rgba(91,127,255,.07); }
.vs tbody td:last-child::before { content: "✓ "; color: var(--green); font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 760px) {
  .vs, .vs tbody, .vs tr, .vs th, .vs td { display: block; width: auto; }
  .vs { border: 0; background: none; border-radius: 0; overflow: visible; }
  .vs thead { display: none; }
  .vs tbody tr { margin-top: 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); overflow: hidden; }
  .vs tbody th { width: auto; border-top: 0; padding: 12px 16px 4px; }
  .vs tbody td { border-top: 0; padding: 4px 16px 10px; }
  .vs tbody td:first-of-type::before { content: "Обычный VPN: "; color: var(--dim); }
  .vs tbody td:last-child { padding: 10px 16px 12px; border-top: 1px solid var(--line); }
  .vs tbody td:last-child::before { content: "✓ SwiftGate: "; }
}

/* ---------- глобус ---------- */
.world { overflow-x: clip; }
.world-in { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.globe-box { position: relative; aspect-ratio: 1; }
#globe { position: relative; z-index: 1; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
#globe:active { cursor: grabbing; }
.globe-halo { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(90,110,255,.35), rgba(120,80,255,.12) 45%, transparent 70%); filter: blur(20px); }
.nodes { display: grid; gap: 10px; margin-top: 8px; }
.node-row { display: grid; grid-template-columns: 34px 1fr auto 70px; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.035); border: 1px solid var(--line); transition: transform .4s var(--spring), border-color .3s, background .3s; }
.node-row:hover { transform: translateX(6px); border-color: rgba(154,99,255,.4); background: rgba(154,99,255,.07); }
.node-row .fl { font-size: 24px; line-height: 1; }
.node-row b { font-weight: 600; font-size: 16px; }
.node-row .pg { font: 600 14px var(--mono); color: var(--green); }
.node-row.off .pg { color: var(--dim); }
.node-row .bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.node-row .bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--green), var(--cyan)); transform-origin: 0 50%; transform: scaleX(var(--q, 0)); transition: transform 1.2s var(--ease); }
.node-row.sk { height: 56px; background: linear-gradient(90deg, rgba(255,255,255,.03), rgba(255,255,255,.07), rgba(255,255,255,.03)); background-size: 200% 100%; animation: sk 1.4s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.world-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.world-stats div { padding: 18px; border-radius: 18px; background: rgba(255,255,255,.035); border: 1px solid var(--line); }
.world-stats b { display: block; font: 800 34px var(--display); letter-spacing: -.03em; }
.world-stats span { font-size: 13px; color: var(--muted); }

/* ---------- бенто ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { position: relative; padding: 28px; border-radius: var(--r); background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02)); border: 1px solid var(--line); overflow: hidden; min-height: 290px;
  transform-style: preserve-3d; transition: transform .6s var(--spring), border-color .4s; }
.card:hover { border-color: rgba(154,99,255,.35); }
.c-wide { grid-column: span 2; }
.card-glow { 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(140,120,255,.18), transparent 45%); }
.card:hover .card-glow { opacity: 1; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(180,150,255,.9), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.card:hover::before { opacity: 1; }
.card-top { display: flex; align-items: center; gap: 14px; }
.card p { margin-top: 14px; color: var(--muted); max-width: 520px; }
.cipher { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; font: 600 15px var(--mono); }
.cipher span:not(.cipher-arrow) { padding: 12px 16px; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid var(--line); }
.cipher .enc { color: #c9b6ff; border-color: rgba(154,99,255,.35); }
.cipher-arrow { color: var(--violet); font-size: 22px; }
.gauge { width: 200px; margin: 18px auto 0; overflow: visible; }
.g-bg { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 12; stroke-linecap: round; }
.g-fg { fill: none; stroke: url(#gVpn); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
#gaugeNeedle { stroke: #fff; stroke-width: 4; stroke-linecap: round; transform-origin: 100px 110px; transform: rotate(-90deg); }
.gauge circle { fill: #fff; }
.devs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.devs span { padding: 8px 14px; border-radius: 11px; font: 600 13px var(--mono); background: rgba(54,245,161,.08); border: 1px solid rgba(54,245,161,.2); color: #b6ffe0; }
.logs { display: grid; gap: 8px; margin-top: 22px; font: 500 13px var(--mono); }
.logs i { font-style: normal; padding: 8px 12px; border-radius: 10px; background: rgba(0,0,0,.3); color: var(--muted); position: relative; overflow: hidden; }
.logs i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0d0f20 50%, transparent); transform: translateX(-101%); }
.card.inview .logs i::after { animation: wipe 3.2s var(--ease) infinite; }
.card.inview .logs i:nth-child(2)::after { animation-delay: .25s; } .card.inview .logs i:nth-child(3)::after { animation-delay: .5s; }
@keyframes wipe { 0%, 15% { transform: translateX(-101%); } 45%, 80% { transform: translateX(0); } 100% { transform: translateX(101%); } }
.token { margin-top: 28px; }
.token span { display: inline-block; padding: 14px 18px; border-radius: 14px; font: 700 17px var(--mono); color: #ffe0ad; background: rgba(255,181,71,.08); border: 1px dashed rgba(255,181,71,.4); }
.chat { display: grid; gap: 8px; margin-top: 22px; max-width: 520px; }
.msg { max-width: 80%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; }
.msg.me { justify-self: end; background: linear-gradient(120deg, #4f6bff, #8a5cff); border-bottom-right-radius: 4px; }
.msg.them { justify-self: start; background: rgba(255,255,255,.08); border-bottom-left-radius: 4px; }
.typing { justify-self: start; display: flex; gap: 4px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.08); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite; }
.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: .4; } 30% { transform: translateY(-5px); opacity: 1; } }

/* ---------- цифры ---------- */
.numbers { padding: 60px 0; }
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.nums div { padding: 30px 24px; border-radius: var(--r); text-align: center; background: linear-gradient(180deg, rgba(255,255,255,.05), transparent); border: 1px solid var(--line); }
.nums b { display: block; font: 800 clamp(44px, 5vw, 68px) var(--display); letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nums span { color: var(--muted); font-size: 15px; }

/* ---------- тарифы ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 24px 24px; border-radius: var(--r); background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015)); border: 1px solid var(--line); transition: transform .6s var(--spring), border-color .4s, box-shadow .4s; }
.plan:hover { border-color: rgba(154,99,255,.4); box-shadow: 0 30px 80px -40px rgba(120,90,255,.7); }
.plan::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(190,160,255,.95), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
@media (hover: hover) { .plan:hover::before { opacity: 1; } }
.plan h3 { font-size: 19px; color: var(--muted); }
.price { margin-top: 14px; }
.amount { font: 800 48px var(--display); letter-spacing: -.04em; }
.pm { margin-top: 4px; font-size: 14px; color: var(--muted); min-height: 44px; }
.pm s { color: var(--dim); }
.plan ul { list-style: none; display: grid; gap: 10px; margin: 18px 0 26px; font-size: 15px; }
.plan li { display: flex; align-items: center; gap: 10px; }
.plan li svg { width: 18px; height: 18px; color: var(--green); flex: none; }
.plan .btn { margin-top: auto; }
.plan-alt { display: block; margin-top: 4px; padding: 11px 0; text-align: center; font-size: 14px; color: var(--muted); transition: color .2s; }
.plan-alt:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.plan-badge { position: absolute; top: -14px; left: 22px; padding: 6px 12px; border-radius: 10px; font: 700 12.5px var(--font); color: #fff; background: linear-gradient(120deg, #ff5fa2, #ff8a5c); box-shadow: 0 8px 24px -8px rgba(255,95,162,.8); }
.plan-badge.hot { background: linear-gradient(120deg, #ff8a3d, #ffb547); color: #2a1500; }
.plan.promo { border: 1px solid transparent; background: linear-gradient(#0b0d20, #0b0d20) padding-box, conic-gradient(from var(--ang, 0deg), #5b7fff, #9a63ff, #ff5fa2, #ffb547, #36f5a1, #5b7fff) border-box; animation: angle 5s linear infinite; }
.plan.promo .amount { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes angle { to { --ang: 360deg; } }

/* ---------- шаги ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps-line { position: absolute; left: 16%; right: 16%; top: 36px; height: 2px; background: rgba(255,255,255,.08); }
.steps-line i { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 16px rgba(154,99,255,.8); }
.step { position: relative; text-align: center; padding: 0 12px; }
.step-n { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 22px; font: 800 28px var(--display); background: #0b0d20; border: 1px solid var(--line2); position: relative; z-index: 1; transition: box-shadow .5s, border-color .5s; }
.step.lit .step-n { border-color: rgba(154,99,255,.6); box-shadow: 0 0 40px rgba(154,99,255,.45); }
.step p { margin-top: 10px; color: var(--muted); }

/* ---------- прокси ---------- */
.proxy-in { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.proxy-card { position: relative; padding: 34px; border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid var(--line2); overflow: hidden; }
.proxy-card h3 { margin-top: 22px; font-size: 24px; }
.proxy-card > .muted { margin: 10px 0 22px; }
.proxy-card .btn + .btn { margin-top: 10px; }
.proxy-card.busy .btn { opacity: .6; pointer-events: none; }
.px-icon { position: relative; display: grid; place-items: center; width: 70px; height: 70px; border-radius: 22px; color: #fff; background: linear-gradient(135deg, #3aa8ff, #5b7fff); box-shadow: 0 0 40px rgba(58,168,255,.5); }
.px-icon svg { width: 34px; height: 34px; }
.px-wave { position: absolute; inset: 0; border-radius: 22px; border: 2px solid rgba(58,168,255,.6); animation: pxw 2.4s var(--ease) infinite; }
.px-wave.w2 { animation-delay: 1.2s; }
@keyframes pxw { from { transform: scale(1); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.ok-line { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; color: #b6ffe0; }
.ok-line svg { width: 22px; height: 22px; flex: none; color: var(--green); }
.err-line { margin-bottom: 14px; color: #ffb0bb; }
#pxIdleText:empty { display: none; }
#pxIdleText { margin-bottom: 12px; }
.proxy-card .foot { margin-top: 20px; }
.proxy-card .foot a { color: #c6b8ff; text-decoration: underline; text-underline-offset: 3px; }
.burst { position: absolute; width: 8px; height: 8px; border-radius: 50%; pointer-events: none; background: var(--c, var(--green)); animation: burst 1s var(--ease) forwards; }
@keyframes burst { from { transform: translate(0,0) scale(1); opacity: 1; } to { transform: translate(var(--bx), var(--by)) scale(0); opacity: 0; } }

/* ---------- FAQ ---------- */
.qa { display: grid; gap: 12px; }
.qa details { border-radius: 20px; background: rgba(255,255,255,.035); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.qa details:not(.js)[open], .qa details.is-open { border-color: rgba(154,99,255,.35); background: rgba(154,99,255,.06); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 24px; cursor: pointer; font-weight: 600; font-size: 17.5px;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { position: relative; width: 28px; height: 28px; flex: none; border-radius: 9px; background: rgba(255,255,255,.07); transition: transform .5s var(--spring), background .3s; }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 8px; right: 8px; top: 13px; height: 2px; border-radius: 1px; background: var(--ink); }
.qa summary i::after { transform: rotate(90deg); transition: transform .4s var(--ease); }
.qa details:not(.js)[open] summary i, .qa details.is-open summary i { transform: rotate(180deg); background: rgba(154,99,255,.3); }
.qa details:not(.js)[open] summary i::after, .qa details.is-open summary i::after { transform: rotate(0); }
.ans { color: var(--muted); }
.ans-in { padding: 0 24px 22px; }
/* С JS <details> всегда открыт, ответ сворачивает строка грида 0fr <-> 1fr. Это CSS-переход:
   частые нажатия просто разворачивают его с текущего места - без очереди анимаций и зависаний */
.qa details.js .ans { display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden;
  transition: grid-template-rows .36s var(--ease), opacity .22s ease, visibility 0s linear .36s; }
.qa details.js.is-open .ans { grid-template-rows: 1fr; opacity: 1; visibility: visible;
  transition: grid-template-rows .36s var(--ease), opacity .3s ease .04s, visibility 0s; }
.qa details.js .ans-in { min-height: 0; overflow: hidden; padding: 0; }
.qa details.js .ans-in > * { padding: 0 24px 22px; }
html.rm .qa details.js .ans, html.rm .qa summary i, html.rm .qa summary i::after { transition: none; }
.ans a { color: #c6b8ff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- финал ---------- */
.final { padding: 180px 0; overflow: hidden; text-align: center; }
.final-in { position: relative; z-index: 1; }
.final h2 { font-size: clamp(38px, 6.4vw, 84px); max-width: 900px; margin: 0 auto; }
.final .sub { margin: 24px auto 40px; }
.portal { position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; margin: -450px 0 0 -450px; pointer-events: none; }
.portal i { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent, rgba(91,127,255,.5), transparent 30%, rgba(154,99,255,.5), transparent 60%, rgba(255,95,162,.35), transparent 90%);
  -webkit-mask: radial-gradient(circle, transparent 54%, #000 55%, #000 56%, transparent 57%); mask: radial-gradient(circle, transparent 54%, #000 55%, #000 56%, transparent 57%); animation: spin 14s linear infinite; }
.portal i:nth-child(2) { inset: 12%; animation-duration: 10s; animation-direction: reverse; }
.portal i:nth-child(3) { inset: 24%; animation-duration: 7s; }
#portalDust { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- подвал ---------- */
.foot-main { position: relative; border-top: 1px solid var(--line); padding: 60px 0 110px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.4)); }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot-brand p { margin-top: 14px; color: var(--muted); max-width: 380px; font-size: 15px; }
.foot-col { display: grid; gap: 10px; align-content: start; font-size: 15px; }
.foot-col b { font: 600 12.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.foot-col a { color: var(--muted); transition: color .2s; } .foot-col a:hover { color: var(--ink); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 40px; color: var(--dim); font-size: 14px; }

/* ---------- липкая кнопка на телефоне ---------- */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; display: none; transform: translateY(150%); transition: transform .6s var(--spring); }
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .btn { min-height: 56px; box-shadow: 0 16px 50px -10px rgba(120,90,255,.9); }

/* ---------- адаптив ---------- */
@media (max-width: 1080px) {
  .links { display: none; }
  .hero-in { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .lead { margin-inline: auto; } .hero-cta, .trust { justify-content: center; }
  .hero-stage { height: 640px; margin-top: 10px; }
  .world-in, .proxy-in { grid-template-columns: 1fr; }
  /* не grid: в CSS Grid область «прилипания» sticky-элемента ограничена его
     собственной строкой, а не всей высотой .smart-in - схема отлипала и
     уезжала вместе с текстом вместо того чтобы стоять, пока читаются шаги */
  .smart-in { display: block; }
  /* схема - обычный блок: на телефонах и планшетах (особенно в WebView Telegram на iPhone)
     прилипание уезжало. Шаги - лента под схемой, листается свайпом, схема стоит на месте */
  .smart-pin { position: static; margin-bottom: 14px; }
  .smart-steps { display: flex; gap: 12px; padding: 4px 0 2px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .smart-steps::-webkit-scrollbar { display: none; }
  .sstep { flex: 0 0 100%; scroll-snap-align: center; min-height: 0; transform: none; opacity: .55; }
  .sstep.on { transform: none; }
  .smart-dots { display: flex; justify-content: center; gap: 4px; margin-top: 10px; }
  .globe-box { max-width: 560px; width: 100%; margin: 0 auto; }
  .plans { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .head.left { text-align: center; margin-inline: auto; } .head.left .sub { margin-inline: auto; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  /* перелив градиента перерисовывает текст каждый кадр - на телефоне градиент стоит */
  .grad { animation: none; background-size: 100% 100%; }
  section { padding: 90px 0; }
  .wrap { width: calc(100% - 32px); }
  .nav { padding: 8px 8px 8px 14px; top: 10px; }
  .nav-cta .btn-ghost span { display: none; } .nav-cta .btn-ghost { padding: 0 12px; }
  .hero { padding-top: 110px; }
  .hero-stage { height: 560px; transform: scale(.86); margin: -30px 0 -40px; }
  .orbit i:nth-child(3) { display: none; }
  .fc1 { left: -3%; top: 12%; } .fc2 { right: -2%; top: 62%; } .fc3 { left: -2%; bottom: 6%; }
  .nav-cta .btn-primary .long { display: none; } .nav-cta .btn-primary .short { display: inline; }
  .logo b { font-size: 16px; }
  .float-card { padding: 10px 12px 10px 10px; } .float-card .ic { width: 34px; height: 34px; }
  .btn-lg { min-height: 56px; padding: 0 22px; }
  .hero-cta { width: 100%; } .hero-cta .btn { flex: 1 1 100%; }
  .tag { padding: 11px 18px; font-size: 15px; }
  .smart-visual { padding: 10px; background: rgba(8,10,24,.92); }
  .sstep { padding: 22px; }
  .flow-label { bottom: 10px; font-size: 12px; padding: 7px 12px; }
  .cmp { height: 460px; }
  .mini-phone { width: 190px; height: 360px; border-radius: 32px; } .mp-bar { border-radius: 23px 23px 0 0; } .mp-body { border-radius: 0 0 23px 23px; padding: 16px; }
  .cmp-bad .mini-phone { transform: translateX(-30%) scale(.9); } .cmp-good .mini-phone { transform: translateX(30%) scale(.9); }
  .mp-body b { font-size: 16px; } .mp-body p { font-size: 12.5px; }
  .bento { grid-template-columns: 1fr; } .c-wide { grid-column: auto; } .card { min-height: 0; }
  .nums { grid-template-columns: repeat(2, 1fr); gap: 12px; } .nums div { padding: 22px 12px; }
  /* тарифы - горизонтальная карусель с прилипанием: 4 высокие карточки подряд - это пять экранов прокрутки */
  .plans { display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
    margin: 0 -16px; padding: 22px 16px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .plans::-webkit-scrollbar { display: none; }
  .plan { flex: 0 0 min(82%, 320px); scroll-snap-align: center; transition: transform .5s var(--spring), opacity .5s var(--ease), border-color .4s, box-shadow .4s; }
  html.js:not(.rm) .plans .plan.revealed { opacity: 1; transform: none; }
  .plans.carousel .plan:not(.is-active), html.js .plans.carousel .plan.revealed:not(.is-active) { transform: scale(.94); opacity: .62; }
  .plan-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
  .plan-dots button { width: 8px; height: 8px; padding: 0; border-radius: 99px; background: rgba(255,255,255,.22); transition: width .5s var(--spring), background .3s; }
  .plan-dots button.on { width: 26px; background: var(--grad); }
  .plan-dots button::after { content: ""; display: block; margin: -18px -10px; height: 44px; }
  .steps { grid-template-columns: 1fr; gap: 34px; } .steps-line { left: 35px; right: auto; top: 36px; bottom: 36px; width: 2px; height: auto; } .steps-line i { transform-origin: 50% 0; transform: scaleY(0); }
  .step { text-align: left; padding: 6px 0 0 94px; min-height: 72px; } .step-n { position: absolute; left: 0; top: 0; margin: 0; }
  .proxy-card { padding: 24px; }
  .world-stats b { font-size: 26px; } .world-stats div { padding: 14px; }
  .node-row { grid-template-columns: 28px 1fr 54px; } .node-row .bar { display: none; }
  .foot-in { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; }
  .sticky-cta { display: block; }
  .portal { width: 640px; height: 640px; margin: -320px 0 0 -320px; }
  .cursor-glow { display: none; }
}
@media (hover: none) { .cursor-glow { display: none; } }
@media (min-width: 761px) { .plan-dots { display: none; } }
@media (max-width: 380px) {
  .float-card { padding: 8px 10px 8px 8px; gap: 9px; } .float-card b { font-size: 13px; } .float-card span { font-size: 11.5px; }
  .hero-title { font-size: 40px; }
}
html.rm *, html.rm *::before, html.rm *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }

/* ---- «кто пришёл»: тексты и кнопки главной по состоянию посетителя ---- */
[hidden] { display: none !important; }
.hero-alt { margin-top: 14px; font-size: 14.5px; color: var(--muted); }
.hero-alt a { color: #c6b8ff; text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.hero-alt a:hover { color: var(--ink); }
#heroMember { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px; background: rgba(54,245,161,.08); border: 1px solid rgba(54,245,161,.25); color: #b6ffe0; }
.final-alt { margin-top: 18px; font-size: 15px; }
.final-alt a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.final-alt a:hover { color: var(--ink); }
[data-cta] span { display: inline-block; }
[data-cta].cta-swap span { animation: ctaIn .45s var(--ease) both; }
@keyframes ctaIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) { .hero-alt { text-align: center; } #heroMember { justify-content: center; } }

/* ---- доступность и типографика (аудит по Web Interface Guidelines) ---- */
.skip { position: fixed; left: 12px; top: -64px; z-index: 200; padding: 12px 18px; border-radius: 12px; background: #fff; color: #05070f; font-weight: 700; transition: top .2s var(--ease); }
.skip:focus { top: 12px; }
main:focus { outline: none; }
section[id] { scroll-margin-top: 92px; }
h1, h2, h3 { text-wrap: balance; }
p, li, .lead, .sub { text-wrap: pretty; }
.amount, .pm, .pg, .world-stats b, .nums b, .app-metrics b, .hero-metrics b, [data-count] { font-variant-numeric: tabular-nums; }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

/* ---- первый экран под невысокие окна: кнопка «3 дня бесплатно» должна быть видна без прокрутки ---- */
@media (min-width: 1081px) and (max-height: 860px) {
  .hero { padding: 100px 0 52px; }
  .hero-title { font-size: clamp(44px, min(7.4vw, 10.4vh), 100px); }
  .pill { margin-bottom: 18px; }
  .lead { margin-top: 20px; }
  .hero-cta { margin-top: 28px; }
  .trust { margin-top: 22px; }
  .hero-stage { height: min(680px, calc(100svh - 140px)); }
  .phone { transform-origin: 50% 50%; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .hero { padding-top: 92px; }
  .hero-title { font-size: clamp(34px, 10.6vw, 44px); }
  .pill { margin-bottom: 16px; }
  .lead { margin-top: 16px; font-size: 16px; }
  .hero-cta { margin-top: 22px; }
}
/* ---- зоны нажатия: ссылки в подвале и «или в Telegram» - не меньше ~36 px ---- */
.foot-col { gap: 0; }
.foot-col a { padding: 9px 0; }
.final-alt a, .hero-alt a { display: inline-block; padding: 8px 2px; }
.plan-alt { padding: 9px 0; }

.pill { white-space: nowrap; max-width: 100%; }
@media (max-width: 400px) { .pill { font-size: 13px; padding: 7px 12px 7px 10px; gap: 8px; } .pill .sep, .pill .pill-x { display: none; } }

/* шапка на очень узких экранах (iPhone SE 1-го поколения, 320 px): без текста логотипа всё влезает */
@media (max-width: 350px) { .logo b { display: none; } .nav { padding: 8px 8px 8px 12px; gap: 8px; } .nav-cta { gap: 6px; } }

/* самое длинное слово заголовка («переключатель») при 32 px шире экрана 320 px и растягивало страницу - на телефоне это «отдаляло» весь сайт */
@media (max-width: 420px) { h2 { font-size: clamp(23px, 7.3vw, 32px); overflow-wrap: break-word; } }

/* длинная подпись кнопки тарифа («Оплатить на сайте · 50 ₽») на самых узких экранах переносится, а не растягивает карточку */
.plan .btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: 12px; }

/* колонки сетки не должны упираться в длину содержимого («Россия · белые списки» растягивала страницу на 280-300 px) */
.world-in > *, .proxy-in > *, .smart-in > *, .hero-in > * { min-width: 0; }
.node-row { grid-template-columns: 34px minmax(0, 1fr) auto 64px; }
.node-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.world-stats > * { min-width: 0; }
.world-stats span { overflow-wrap: anywhere; }
@media (max-width: 400px) { .world-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .world-stats div { padding: 12px 8px; } .world-stats span { font-size: 11.5px; } .world-stats b { font-size: 24px; } }
@media (max-width: 330px) { .world-stats { grid-template-columns: 1fr; } }

/* плавный переход между страницами сайта (главная <-> кабинет): кроссфейд без мигания; браузеры без поддержки его просто пропускают */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .32s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

.plans { perspective: 1400px; }
.hero-copy { will-change: transform, opacity; }

/* ---------- свет за курсором, рамка лучшего тарифа, глубина при прокрутке (27.09) ---------- */
/* мягкое пятно света идёт за курсором по всей странице: только мышь, только transform */
.cursor-light { position: absolute; left: 0; top: 0; width: 720px; height: 720px; margin: -360px 0 0 -360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(138,110,255,.16), rgba(96,120,255,.06) 38%, transparent 66%);
  opacity: 0; transition: opacity 1s cubic-bezier(.32,.72,0,1); will-change: transform; }
.cursor-light.on { opacity: 1; }

/* лучший тариф: по рамке бежит свет */
@property --ring { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.plan.best::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ring), transparent 0 58%, rgba(138,92,255,.9) 72%, rgba(24,205,255,.95) 81%, rgba(255,95,162,.85) 89%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: planRing 6s linear infinite; }
@keyframes planRing { to { --ring: 360deg; } }

/* заголовки секций плывут чуть медленнее страницы, карточки «подъезжают» из глубины.
   translate/scale - отдельные свойства, с transform от появления и наклона не спорят */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .head { animation: headDrift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    @keyframes headDrift { from { translate: 0 56px; } to { translate: 0 -56px; } }
    .bento .card, .plans .plan, .steps .step { animation: cardDepth linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
    @keyframes cardDepth { from { scale: .9; } to { scale: 1; } }
  }
}
@media (max-width: 760px) {
  /* на телефоне карусель тарифов сама масштабирует карточки */
  .plans .plan { animation: none; }
  .head { animation-range: cover 10% cover 90%; }
}
html.rm .plan.best::after, html.rm .head, html.rm .bento .card, html.rm .steps .step { animation: none; }
@media (prefers-reduced-motion: reduce) { .plan.best::after { animation: none; } }
