/* =========================================================
   prism — «огонь и лёд»
   Ледяное окружение (стекло, иней, сияние) + огненные акценты действий.
   Анимации — только transform / opacity (композитинг на GPU).
   Никаких backdrop-filter над живым фоном: в Chrome он мерцает поверх WebGL.
   ========================================================= */

:root {
  --bg: #04070d;
  --surface: rgba(10, 18, 32, .78);
  --line: rgba(200, 232, 255, .08);
  --line-2: rgba(200, 232, 255, .16);
  --text: #eef6ff;
  --muted: #a3b3c8;
  --dim: #66778d;

  --frost: #e6f8ff;
  --ice: #9be7ff;
  --ice-2: #5ccfff;
  --ice-3: #6f8bff;
  --violet: #a48bff;

  --white: #f2fbff;
  --yellow: #ffd23f;
  --orange: #ff8a1f;
  --red: #ff4d3a;
  --danger: #ff6b7a;
  --ok: var(--ice);

  --ice-grad: linear-gradient(115deg, #fff, #c8f4ff 20%, var(--ice-2) 48%, var(--ice-3) 76%, var(--violet));
  --holo: linear-gradient(115deg, #e9fbff, var(--ice) 22%, var(--ice-2) 42%, var(--ice-3) 60%, var(--orange) 82%, var(--yellow));
  --fire: linear-gradient(90deg, var(--yellow), var(--orange), var(--red));


  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.3, 1.4, .6, 1);
  --t-fast: .14s;
  --t: .24s;
  --t-slow: .4s;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}
/* JS-скролл включён — нативный smooth выключаем, иначе каждый кадр scrollTo сам станет «плавным» и всё поплывёт */
html.smooth-scroll { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
button { font: inherit; }
[hidden] { display: none !important; }
::selection { background: rgba(92, 207, 255, .4); color: #fff; }

:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
  border-radius: 8px;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-inline: 24px;
}

/* ---------- Фон ---------- */
.bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;   /* «большая» высота экрана: фон не дёргается, когда прячется адресная строка */
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, rgb(5, 10, 20), rgb(2, 4, 8));
}
.bg__waves,
.bg__shade,
.bg__snow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.bg__waves { overflow: hidden; }
.bg__waves,
.bg__snow { opacity: 0; transition: opacity 1.2s var(--ease-out); }
.waves-ready .bg__waves,
.bg-live .bg__snow { opacity: 1; }

/* волна: обёртка (сдвиг за курсором из JS + лёгкое покачивание), внутри — SVG, который бесконечно едет на период */
.wave {
  position: absolute;
  will-change: transform;
  animation: wave-bob var(--bob) ease-in-out infinite alternate;
}
.wave__svg {
  display: block;
  will-change: transform;
  animation: wave-x var(--dur) linear infinite;
}
.wave--rev .wave__svg { animation-direction: reverse; }
@keyframes wave-x { to { transform: translate3d(calc(var(--p) * -1), 0, 0); } }
@keyframes wave-bob { from { translate: 0 calc(var(--amp) * -1); } to { translate: 0 var(--amp); } }
/* глубина и виньетка — статичный слой поверх волн */
.bg__shade {
  background:
    linear-gradient(180deg, transparent 35%, rgba(2, 4, 9, .45)),
    radial-gradient(ellipse at 50% 45%, transparent 45%, rgba(0, 0, 0, .35));
}

.bg__grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(200, 232, 255, .045) 1px, transparent 1.2px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 25%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 25%, transparent 75%);
}

/* ---------- Курсор ----------
   Своя ледяная стрелка через CSS cursor: её рисует сама система, поэтому задержки нет вообще
   (в том числе на MacBook со 120 Гц). Над кнопками — стрелка поярче с искрой. JS добавляет только вспышку при клике. */
@media (hover: hover) and (pointer: fine) {
  :root {
    --cur: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='.8' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='.55' stop-color='%23d4f4ff'/%3E%3Cstop offset='1' stop-color='%237fd6ff'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M5.5 4.5v21l5.6-5.2 3.9 8.7 3.7-1.6-3.8-8.5h7.6z' fill='none' stroke='%239be7ff' stroke-opacity='.35' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M5.5 4.5v21l5.6-5.2 3.9 8.7 3.7-1.6-3.8-8.5h7.6z' fill='url(%23g)' stroke='%2304121f' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E") 5 4, auto;
    --cur-hover: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='.8' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='.5' stop-color='%239be7ff'/%3E%3Cstop offset='1' stop-color='%238f9dff'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M5.5 4.5v21l5.6-5.2 3.9 8.7 3.7-1.6-3.8-8.5h7.6z' fill='none' stroke='%239be7ff' stroke-opacity='.35' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M5.5 4.5v21l5.6-5.2 3.9 8.7 3.7-1.6-3.8-8.5h7.6z' fill='url(%23g)' stroke='%2304121f' stroke-width='1.3' stroke-linejoin='round'/%3E%3Cpath d='M25 2.5c.35 2.3 1.2 3.15 3.5 3.5-2.3.35-3.15 1.2-3.5 3.5-.35-2.3-1.2-3.15-3.5-3.5 2.3-.35 3.15-1.2 3.5-3.5z' fill='%23e6f8ff' stroke='%235ccfff' stroke-width='.6'/%3E%3C/svg%3E") 5 4, pointer;
  }
  html { cursor: var(--cur); }
  :is(a, button, label, summary, select, [role="tab"], input[type="range"], input[type="radio"], input[type="checkbox"], .chip span, .method span) { cursor: var(--cur-hover) !important; }
  :is(input:not([type="range"]):not([type="radio"]):not([type="checkbox"]), textarea) { cursor: text; }
}

/* ледяная вспышка при клике */
.cursor-burst {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 70px;
  height: 70px;
  margin: -35px 0 0 -35px;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
}
.cursor-burst::before,
.cursor-burst::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}
.cursor-burst::before { border: 2px solid rgba(155, 231, 255, .8); }
.cursor-burst::after {
  background: conic-gradient(from 0deg, transparent 0 8%, rgba(230, 248, 255, .9) 8% 9%, transparent 9% 25%, rgba(230, 248, 255, .9) 25% 26%, transparent 26% 41.6%, rgba(230, 248, 255, .9) 41.6% 42.6%, transparent 42.6% 58%, rgba(230, 248, 255, .9) 58% 59%, transparent 59% 75%, rgba(230, 248, 255, .9) 75% 76%, transparent 76% 91.6%, rgba(230, 248, 255, .9) 91.6% 92.6%, transparent 92.6%);
  -webkit-mask: radial-gradient(closest-side, transparent 45%, #000 50%, transparent 100%);
          mask: radial-gradient(closest-side, transparent 45%, #000 50%, transparent 100%);
}
.cursor-burst.is-on { animation: burst .55s var(--ease-out) forwards; }
.cursor-burst.is-on::before { animation: burst-ring .55s var(--ease-out) forwards; }
.cursor-burst.is-on::after { animation: burst-rays .55s var(--ease-out) forwards; }
@keyframes burst { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes burst-ring { from { transform: scale(.2); } to { transform: scale(1); } }
@keyframes burst-rays { from { transform: scale(.3) rotate(0deg); } to { transform: scale(1.15) rotate(30deg); } }

/* ---------- Акценты ---------- */
.chrome {
  background: linear-gradient(100deg, #fff 0%, #c8f4ff 14%, var(--ice-2) 28%, #fff 40%, var(--ice-3) 54%, var(--violet) 66%, #fff 80%, var(--ice) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: chrome 1.8s var(--ease-out) .5s both;
}
@keyframes chrome { from { background-position: 100% 50%; } to { background-position: 0% 50%; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(155, 231, 255, .05);
  box-shadow: inset 0 0 0 1px rgba(155, 231, 255, .18), inset 0 1px 0 rgba(255, 255, 255, .06);
  color: #cfe9fb;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pulse-dot {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 8px var(--ice);
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ice);
  animation: ping 1.8s var(--ease-out) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }

/* ---------- Кнопки ---------- */
.btn {
  --h: 46px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: var(--text);
  font: 700 15px/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--t) var(--ease-spring), translate .3s var(--ease-out), box-shadow var(--t) var(--ease-out), background-color var(--t-fast);
}
.btn svg { width: 20px; height: 20px; transition: transform var(--t) var(--ease-spring); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.97); transition-duration: .08s; }

.btn--sm { --h: 38px; --cut: 8px; padding: 0 16px; font-size: 14px; }
.btn--block { --h: 56px; width: 100%; font-size: 16px; }

/* ---------- Хайтек-кнопки: срезанные углы, HUD-уголки, сканирующий блик ----------
   Форма рисуется псевдоэлементами с clip-path, а сама кнопка не обрезана —
   поэтому drop-shadow даёт свечение ровно по силуэту со срезами. */
.btn--primary,
.btn--ghost {
  --cut: 14px;
  --chamfer: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  overflow: visible;
  border-radius: 0;
  background: none;
}
.btn--sm.btn--ghost,
.btn--sm.btn--primary { --cut: 8px; }
.btn--primary::before,
.btn--primary::after,
.btn--ghost::before,
.btn--ghost::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: var(--chamfer);
}

/* вторичная: тёмное стекло в тонкой ледяной рамке */
.btn--ghost::before { background: rgba(155, 231, 255, .3); transition: background-color var(--t); }
.btn--ghost::after {
  inset: 1px;
  background:
    linear-gradient(rgba(155, 231, 255, .55), rgba(155, 231, 255, .55)) right 6px top 6px / 8px 1.5px no-repeat,
    linear-gradient(rgba(155, 231, 255, .55), rgba(155, 231, 255, .55)) right 6px top 6px / 1.5px 6px no-repeat,
    linear-gradient(180deg, #0e1c30, #08111f);
  transition: opacity var(--t);
}
.btn--ghost:hover::before { background: rgba(155, 231, 255, .7); }
.btn--ghost:hover { color: #fff; }

/* основная: светящийся ледяной модуль */
.btn--primary {
  color: #04121f;
  font: 700 13.5px/1 var(--font-display);
  letter-spacing: .08em;
  text-transform: uppercase;
  filter: drop-shadow(0 10px 22px rgba(92, 207, 255, .42));
  transition: transform var(--t) var(--ease-spring), translate .3s var(--ease-out), filter var(--t);
}
.btn--block.btn--primary { font-size: 14px; }
.btn--primary::before {
  background:
    /* HUD-уголки на целых углах */
    linear-gradient(#04121f, #04121f) right 8px top 8px / 14px 2px no-repeat,
    linear-gradient(#04121f, #04121f) right 8px top 8px / 2px 8px no-repeat,
    linear-gradient(#04121f, #04121f) left 8px bottom 8px / 14px 2px no-repeat,
    linear-gradient(#04121f, #04121f) left 8px bottom 8px / 2px 8px no-repeat,
    /* «технические» насечки у правого края */
    repeating-linear-gradient(-60deg, rgba(4, 18, 31, .16) 0 2px, transparent 2px 7px) right 26px center / 40px 14px no-repeat,
    /* блик по верхней кромке */
    linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 2px),
    linear-gradient(110deg, #ecfbff, #a8eaff 40%, #74d2ff 70%, #97a5ff);
}
/* сканирующая полоса: двигается только background-position небольшого слоя и лишь при наведении */
.btn--primary::after {
  background: linear-gradient(100deg, transparent 38%, rgba(255, 255, 255, .8) 50%, transparent 62%) 150% 0 / 250% 100% no-repeat;
}
.btn--primary:hover { filter: drop-shadow(0 12px 28px rgba(92, 207, 255, .75)); }
.btn--primary:hover::after { animation: scan .8s var(--ease-out); }
.btn--primary:active { filter: drop-shadow(0 6px 14px rgba(92, 207, 255, .5)); }
@keyframes scan { from { background-position: 150% 0; } to { background-position: -50% 0; } }

.btn.is-loading { pointer-events: none; }
.btn.is-loading > * { opacity: 0; }
.btn.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  bottom: auto;
  z-index: 1;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 2.5px solid rgba(4, 18, 31, .25);
  border-top-color: #04121f;
  border-radius: 50%;
  background: none;
  clip-path: none;
  transform: none;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color var(--t), border-color var(--t);
}
.header.is-scrolled {
  background: rgba(5, 9, 17, .92);
  border-color: var(--line);
}
.header__row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 19px/1 var(--font-display);
  letter-spacing: -.02em;
  text-decoration: none;
}
.logo__mark { width: 24px; height: 24px; filter: drop-shadow(0 0 6px rgba(155, 231, 255, .55)); transition: transform .5s var(--ease-spring); }
.logo:hover .logo__mark { transform: rotate(180deg) scale(1.12); }
.logo--sm { font-size: 16px; }

.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--t-fast), background-color var(--t-fast);
}
.nav a:hover { color: var(--text); background: rgba(155, 231, 255, .07); }
.nav a.is-active { color: var(--text); }
.nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--ice-grad);
  box-shadow: 0 0 8px rgba(155, 231, 255, .7);
  transform: scaleX(0);
  transition: transform var(--t) var(--ease-out);
}
.nav a.is-active::after { transform: scaleX(1); }

.burger {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  background: rgba(155, 231, 255, .06);
  box-shadow: inset 0 0 0 1px var(--line-2);
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform var(--t) var(--ease-out);
}
.burger span:first-child { transform: translateY(-4px); }
.burger span:last-child { transform: translateY(4px); }
.burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

/* ---------- Появление при загрузке ---------- */
.js .intro { animation: rise .9s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 90ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 22px, 0); } }

/* заголовок: строки выезжают из-под маски */
.hero__title .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .ln > span { display: inline-block; }
.js .hero__title .ln > span { animation: line-up 1s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 90ms + 80ms); }
@keyframes line-up { from { transform: translate3d(0, 105%, 0); } }
/* блик в заголовке — как у логотипа: мягко «дышит», вокруг ореол и горизонтальная вспышка.
   Анимируются только transform и opacity */
.title-glint {
  position: relative;
  display: inline-block;
  width: .52em;
  height: .52em;
  margin-left: .12em;
  vertical-align: .1em;
}
.title-glint svg {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 5px rgba(155, 231, 255, .9)) drop-shadow(0 0 14px rgba(92, 207, 255, .55));
  will-change: transform;
  animation: glint 3.2s ease-in-out infinite;
}
.title-glint::before {
  content: "";
  position: absolute;
  inset: -40%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(155, 231, 255, .45), rgba(92, 207, 255, .12) 50%, transparent);
  animation: glint-halo 3.2s ease-in-out infinite;
}
.title-glint::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -70%;
  right: -70%;
  height: 2px;
  margin-top: -1px;
  background: linear-gradient(90deg, transparent, rgba(230, 248, 255, .9), transparent);
  animation: glint-flare 3.2s ease-in-out infinite;
}
@keyframes glint { 0%, 100% { transform: scale(.86) rotate(0deg); } 50% { transform: scale(1.08) rotate(15deg); } }
@keyframes glint-halo { 0%, 100% { transform: scale(.8); opacity: .5; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes glint-flare { 0%, 100% { transform: scaleX(.3); opacity: .2; } 50% { transform: scaleX(1); opacity: .9; } }

/* ---------- HERO ---------- */
.hero { padding: 28px 0 40px; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 48px;
  align-items: center;
}
.hero__title {
  margin: 18px 0 14px;
  font: 700 clamp(32px, 4.6vw, 58px)/1.06 var(--font-display);
  letter-spacing: -.035em;
}
.hero__lead { max-width: 460px; color: var(--muted); font-size: 17px; }
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.hero__badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(155, 231, 255, .045);
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255, 255, 255, .05);
  font-size: 13.5px;
  font-weight: 600;
  transition: transform var(--t) var(--ease-spring), background-color var(--t-fast);
}
.hero__badges li:hover { transform: translateY(-2px); background: rgba(155, 231, 255, .09); }
.hero__badges svg { width: 14px; height: 14px; color: var(--ice); transition: transform .6s var(--ease-out); }
.hero__badges li:hover svg { transform: rotate(120deg); }
.hero__badges li:nth-child(2) svg { color: var(--ice-2); }
.hero__badges li:nth-child(3) svg { color: var(--violet); }

/* ---------- Ледяная 3D-карта ---------- */
.card-stage {
  position: relative;
  width: min(360px, 100%);
  margin-top: 36px;
  perspective: 1000px;
}
.holo-float { animation: float 6s ease-in-out infinite; }
.card-stage.is-hover .holo-float,
.card-stage.is-hover .holo-shadow { animation-play-state: paused; }

.holo {
  position: relative;
  aspect-ratio: 1.586;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(155, 231, 255, .3), transparent 55%),
    radial-gradient(100% 90% at 100% 100%, rgba(111, 139, 255, .35), transparent 55%),
    radial-gradient(60% 50% at 100% 0%, rgba(255, 138, 31, .14), transparent 70%),
    linear-gradient(135deg, #10203a, #081120 55%, #121a3a);
  box-shadow:
    inset 0 0 0 1px rgba(200, 240, 255, .22),
    inset 0 1px 0 rgba(255, 255, 255, .35),
    0 36px 70px -32px rgba(0, 0, 0, .9),
    0 0 70px -20px rgba(92, 207, 255, .55);
  transform: rotateX(6deg) rotateY(-9deg);
  will-change: transform;
}
.holo__foil {
  position: absolute;
  inset: -45%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: .32;
  will-change: transform;
}
.holo__foil::before,
.holo__foil::after { content: ""; position: absolute; inset: 0; }
.holo__foil::before {
  background: repeating-linear-gradient(115deg,
    rgba(155, 231, 255, 0) 0%,
    rgba(230, 248, 255, .95) 5%,
    rgba(155, 231, 255, .95) 10%,
    rgba(111, 139, 255, .95) 15%,
    rgba(164, 139, 255, .9) 19%,
    rgba(255, 170, 90, .7) 23%,
    rgba(155, 231, 255, 0) 32%);
}
.holo__foil::after {
  background: repeating-linear-gradient(65deg, rgba(255, 255, 255, .14) 0 1px, transparent 1px 5px);
  opacity: .6;
}
.holo__glare {
  position: absolute;
  inset: -50%;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 30%);
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity var(--t);
  will-change: transform;
}
.card-stage.is-hover .holo__glare { opacity: 1; }

.holo__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 22px;
}
.holo__top { display: flex; align-items: center; justify-content: space-between; }
.holo__brand { font: 700 13px/1 var(--font-display); }
.holo__chip {
  position: relative;
  width: 40px;
  height: 30px;
  border-radius: 7px;
  background: linear-gradient(135deg, #fff1a8, var(--orange));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), 0 0 14px rgba(255, 138, 31, .4);
}
.holo__chip::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 4px;
  border: 1px solid rgba(20, 8, 4, .35);
  background: linear-gradient(90deg, transparent 47%, rgba(20, 8, 4, .35) 47% 53%, transparent 53%);
}
.holo__amount {
  font: 700 clamp(28px, 3.2vw, 36px)/1 var(--font-display);
  letter-spacing: -.03em;
  background: linear-gradient(180deg, #fff 35%, #b5ecff);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  transform-origin: left center;
}
.holo__amount.bump { animation: bump .26s var(--ease-spring); }
@keyframes bump { 45% { transform: scale(1.06); } }
.holo__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.holo__label {
  color: rgba(220, 240, 255, .55);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.holo__login {
  min-width: 0;
  overflow: hidden;
  font: 600 14px/1.2 var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.holo__login.is-empty { color: rgba(220, 240, 255, .4); }

.holo-shadow {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -34px;
  height: 32px;
  background: radial-gradient(closest-side, rgba(92, 207, 255, .4), transparent);
  animation: shadow 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translate3d(0, -12px, 0); } }
@keyframes shadow { 50% { transform: scale(.82); opacity: .6; } }

.spark {
  position: absolute;
  z-index: 2;
  color: var(--ice);
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(155, 231, 255, .8));
  animation: twinkle 3s ease-in-out infinite;
}
.spark--1 { width: 26px; height: 26px; top: -18px; right: 6%; }
.spark--2 { width: 14px; height: 14px; bottom: 18%; left: -14px; animation-delay: -1s; }
.spark--3 { width: 18px; height: 18px; top: 34%; right: -12px; animation-delay: -2s; }
@keyframes twinkle {
  0%, 100% { transform: scale(.4) rotate(0deg); opacity: .25; }
  50% { transform: scale(1) rotate(60deg); opacity: 1; }
}

/* ---------- Форма: ледяное стекло + бегущая кромка ---------- */
.panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 1px;
  border-radius: 26px;
  padding: 1.5px;
  background: rgba(155, 231, 255, .24);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 120px -30px rgba(92, 207, 255, .55);
}
/* кромка: большой конический градиент вращается transform-ом — работает на композиторе */
.panel::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 200%;
  aspect-ratio: 1;
  background: conic-gradient(from 0deg, transparent 0 40%, rgba(155, 231, 255, .35) 55%, #fff 68%, var(--ice-2) 74%, rgba(111, 139, 255, .9) 82%, transparent 92%);
  transform: translate(-50%, -50%) rotate(0deg);
  animation: edge 9s linear infinite;
}
@keyframes edge { to { transform: translate(-50%, -50%) rotate(360deg); } }
.panel__body {
  position: relative;
  padding: 24px;
  border-radius: 24.5px;
  background:
    radial-gradient(90% 38% at 50% 0%, rgba(92, 207, 255, .2), transparent 70%),
    radial-gradient(60% 40% at 100% 100%, rgba(111, 139, 255, .14), transparent 70%),
    linear-gradient(180deg, #0d1a2f, #070d19 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}
/* световая полоса по верхней кромке */
.panel__body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14%;
  right: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 248, 255, .95), transparent);
  box-shadow: 0 0 14px 1px rgba(155, 231, 255, .65);
  pointer-events: none;
}
.panel__body > * { position: relative; }
.panel__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.panel__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(155, 231, 255, .2), rgba(111, 139, 255, .08));
  box-shadow: inset 0 0 0 1px rgba(155, 231, 255, .32), inset 0 1px 0 rgba(255, 255, 255, .15), 0 0 24px -4px rgba(92, 207, 255, .6);
}
.panel__icon svg {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 6px rgba(155, 231, 255, .85));
  animation: glint 3.2s ease-in-out infinite;
}
.panel__heading { flex: 1; min-width: 0; }
.panel__title {
  font: 700 21px/1.15 var(--font-display);
  letter-spacing: -.02em;
  background: linear-gradient(180deg, #fff 40%, #bfeeff);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.panel__sub { margin-top: 4px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(155, 231, 255, .07);
  box-shadow: inset 0 0 0 1px rgba(155, 231, 255, .2);
  color: var(--ice);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.field { min-width: 0; margin: 0 0 16px; padding: 0; border: 0; }
.field > label,
.field > legend,
.field__label label {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.field__label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field__link {
  color: var(--ice);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(155, 231, 255, .45);
}
.field__link:hover { border-bottom-style: solid; }
.optional { color: var(--dim); font-weight: 500; }

.input-wrap { position: relative; }
.input {
  width: 100%;
  height: 50px;
  padding: 0 48px 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(155, 231, 255, .035);
  color: var(--text);
  font: 600 16px var(--font);
  transition: border-color var(--t-fast), background-color var(--t-fast), box-shadow var(--t);
}
.input--sm { height: 44px; }
.input::placeholder { color: var(--dim); font-weight: 500; }
.input:hover { border-color: rgba(155, 231, 255, .28); }
.input:focus {
  outline: none;
  border-color: rgba(155, 231, 255, .85);
  background: rgba(155, 231, 255, .06);
  box-shadow: 0 0 0 4px rgba(92, 207, 255, .16), 0 0 24px -6px rgba(92, 207, 255, .55);
}
#login { font-family: var(--mono); font-size: 15.5px; }

.input-status {
  position: absolute;
  top: 50%;
  right: 15px;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  pointer-events: none;
}
.input-status svg {
  position: absolute;
  inset: 0;
  width: 20px;
  height: 20px;
  opacity: 0;
  transform: scale(.4);
  transition: opacity var(--t-fast), transform var(--t) var(--ease-spring);
}
.is-ok { color: var(--ok); }
.is-bad { color: var(--danger); }
.input-wrap.valid .is-ok,
.input-wrap.invalid .is-bad { opacity: 1; transform: scale(1); }
.input-wrap.valid .input { border-color: rgba(155, 231, 255, .55); }
.input-wrap.invalid .input { border-color: rgba(255, 107, 122, .7); }
.input-wrap.invalid .input:focus { box-shadow: 0 0 0 4px rgba(255, 107, 122, .16); }
.shake { animation: shake .3s var(--ease-out); }
@keyframes shake {
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(2px); }
}
.error { margin-top: 6px; color: var(--danger); font-size: 13px; font-weight: 600; }
.error:empty { display: none; }

.chips {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.chip { position: relative; }
.chip input,
.method input { position: absolute; opacity: 0; pointer-events: none; }
.chip span,
.method span {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(155, 231, 255, .03);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: transform var(--t) var(--ease-spring), border-color var(--t-fast), background-color var(--t-fast), box-shadow var(--t), color var(--t-fast);
}
.chip span { height: 42px; font-variant-numeric: tabular-nums; }
.chip span:hover,
.method span:hover { border-color: rgba(155, 231, 255, .32); background: rgba(155, 231, 255, .07); transform: translateY(-1px); }
.chip span:active,
.method span:active { transform: scale(.94); transition-duration: .08s; }
.chip input:checked + span,
.method input:checked + span {
  border-color: var(--ice);
  background: linear-gradient(180deg, rgba(155, 231, 255, .2), rgba(92, 207, 255, .08));
  color: #fff;
  box-shadow: inset 0 0 0 1px var(--ice), inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 22px -8px rgba(92, 207, 255, .8);
  animation: pop .22s var(--ease-spring);
}
.chip input:focus-visible + span,
.method input:focus-visible + span { outline: 2px solid var(--ice); outline-offset: 2px; }
@keyframes pop { 50% { transform: scale(1.06); } }

.amount-row { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.range {
  --p: 6%;
  flex: 1;
  min-width: 0;
  height: 6px;
  margin: 0;
  border-radius: 99px;
  background:
    linear-gradient(90deg, var(--ice), var(--ice-2), var(--ice-3)) 0 0 / var(--p) 100% no-repeat,
    rgba(155, 231, 255, .1);
  -webkit-appearance: none;
          appearance: none;
  cursor: pointer;
}
.range::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #d9f5ff 60%, #9be7ff);
  box-shadow: 0 0 0 4px rgba(92, 207, 255, .3), 0 0 18px rgba(155, 231, 255, .7), 0 4px 12px rgba(0, 0, 0, .5);
  -webkit-appearance: none;
          appearance: none;
  transition: transform var(--t-fast) var(--ease-spring);
}
.range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #d9f5ff 60%, #9be7ff);
  box-shadow: 0 0 0 4px rgba(92, 207, 255, .3), 0 0 18px rgba(155, 231, 255, .7), 0 4px 12px rgba(0, 0, 0, .5);
}
.range:hover::-webkit-slider-thumb { transform: scale(1.1); }
.range:active::-webkit-slider-thumb { transform: scale(1.22); }
.range:focus-visible { outline-offset: 8px; }

.amount-input { position: relative; flex: none; width: 120px; }
.amount-input input {
  width: 100%;
  height: 42px;
  padding: 0 32px 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(155, 231, 255, .035);
  color: var(--text);
  font: 700 15.5px var(--font);
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.amount-input input::-webkit-outer-spin-button,
.amount-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.amount-input input:focus {
  outline: none;
  border-color: rgba(155, 231, 255, .85);
  box-shadow: 0 0 0 4px rgba(92, 207, 255, .16);
}
.amount-input span {
  position: absolute;
  top: 50%;
  right: 13px;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 700;
}

.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.method { position: relative; }
.method span { gap: 8px; height: 44px; }
.method svg { width: 18px; height: 18px; color: var(--muted); transition: color var(--t-fast), transform var(--t) var(--ease-spring); }
.method input:checked + span svg { color: var(--ice); transform: scale(1.1); }

.summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 14px;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(155, 231, 255, .06), rgba(111, 139, 255, .04));
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.summary__main { display: flex; flex-direction: column; }
.summary__main span { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.summary__main b {
  font: 700 25px/1.15 var(--font-display);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  background: var(--ice-grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.summary__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: var(--dim);
  font-size: 13px;
  text-align: right;
}
.summary__side b { color: var(--muted); font-variant-numeric: tabular-nums; }
.fineprint { margin-top: 10px; color: var(--dim); font-size: 12.5px; text-align: center; }

/* ---------- Инфо-блок с вкладками ---------- */
.info { padding: 20px 0 64px; }

.tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(620px, 100%);
  margin: 0 auto 28px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(155, 231, 255, .045);
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.tabs__pill {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc((100% - 10px) / 3);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #d6f4ff);
  box-shadow: inset 0 -2px 0 rgba(0, 40, 80, .12), 0 0 22px -4px rgba(155, 231, 255, .7);
  transform: translateX(calc(var(--i, 0) * 100%));
  transition: transform .45s var(--ease-out);
}
.tabs__btn {
  position: relative;
  z-index: 1;
  height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  transition: color var(--t);
}
.tabs__btn:hover { color: var(--text); }
.tabs__btn[aria-selected="true"] { color: #061021; }
.l-short { display: none; }

.tab-panel.is-active { animation: panel-in var(--t-slow) var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translate3d(0, 10px, 0); } }

/* элементы вкладки появляются лесенкой */
.tab-panel.is-active :is(.step, .faq__item, .tl, .howto, .support) {
  animation: rise .6s var(--ease-out) both;
}
.tab-panel.is-active :is(.step, .tl):nth-child(2),
.tab-panel.is-active .faq__item:nth-child(2) { animation-delay: .06s; }
.tab-panel.is-active :is(.step, .tl):nth-child(3),
.tab-panel.is-active .faq__item:nth-child(3) { animation-delay: .12s; }
.tab-panel.is-active :is(.step, .tl):nth-child(4),
.tab-panel.is-active .faq__item:nth-child(4) { animation-delay: .18s; }
.tab-panel.is-active .tl:nth-child(5) { animation-delay: .24s; }
.tab-panel.is-active :is(.howto, .support) { animation-delay: .2s; }

/* подсветка за курсором (--mx/--my задаёт JS) */
.spot { position: relative; isolation: isolate; }
.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), rgba(155, 231, 255, .14), transparent 60%);
  opacity: 0;
  transition: opacity var(--t);
}
.spot:hover::before { opacity: 1; }

/* гайд */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(155, 231, 255, .06), rgba(155, 231, 255, .015));
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: transform var(--t) var(--ease-out), box-shadow var(--t);
}
.step:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(155, 231, 255, .3), 0 18px 40px -20px rgba(92, 207, 255, .45); }
.step__num {
  flex: none;
  font: 700 26px/1 var(--font-display);
  letter-spacing: -.04em;
  background: var(--ice-grad);
  background-size: 300% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.step:nth-child(2) .step__num { background-position: 33% 0; }
.step:nth-child(3) .step__num { background-position: 66% 0; }
.step:nth-child(4) .step__num { background-position: 100% 0; }
.step h3 { margin-bottom: 3px; font-size: 16px; }
.step p { color: var(--muted); font-size: 14px; line-height: 1.45; }

.howto {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 36px;
  align-items: center;
  padding: 26px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(155, 231, 255, .07), rgba(111, 139, 255, .05) 60%, rgba(255, 138, 31, .04));
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.howto h3 { font: 700 20px/1.2 var(--font-display); letter-spacing: -.02em; }
.howto__list { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: s; }
.howto__list li {
  position: relative;
  padding: 5px 0 5px 36px;
  color: var(--muted);
  font-size: 15px;
  counter-increment: s;
}
.howto__list li::before {
  content: counter(s);
  position: absolute;
  top: 5px;
  left: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(155, 231, 255, .09);
  box-shadow: inset 0 0 0 1px rgba(155, 231, 255, .25);
  color: var(--frost);
  font-size: 12px;
  font-weight: 800;
}
.howto__list b { color: var(--text); }
.howto__list i { font-family: var(--mono); font-style: normal; color: var(--ice); }
.note {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 138, 31, .07);
  box-shadow: inset 0 0 0 1px rgba(255, 138, 31, .2);
  color: #f6e2cf;
  font-size: 14px;
}
.note svg { flex: none; width: 13px; height: 13px; margin-top: 4px; fill: var(--orange); }

/* мок окна Steam: курсор находит логин (цикл 5 с) */
.mock {
  position: relative;
  container-type: size;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
  background: #0a1220;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 50px -28px rgba(0, 0, 0, .8);
  font-size: clamp(10px, 3.2cqw, 13.5px);
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 16%;
  padding: 0 4%;
  border-bottom: 1px solid var(--line);
  background: #0f1a2c;
}
.mock__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(200, 232, 255, .16); }
.mock__nick {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 8px;
  background: rgba(200, 232, 255, .08);
  font-weight: 700;
}
.mock__page {
  position: absolute;
  top: 25%;
  left: 5%;
  width: 52%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: page 5s infinite;
}
.mock__h { font-weight: 800; font-size: 1.15em; }
.mock__login { position: relative; display: flex; gap: 8px; padding: 7px 10px; margin: 0 -10px; border-radius: 10px; }
.mock__login > span:first-child { color: var(--muted); }
.mock__login b { font-family: var(--mono); color: var(--ice); }
.mock__login::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  border: 2px solid transparent;
  background: var(--ice-grad) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  animation: ring 5s infinite;
}
.mock__line { height: 7px; border-radius: 4px; background: rgba(200, 232, 255, .08); }
.mock__menu {
  position: absolute;
  top: 17%;
  right: 4%;
  width: 40%;
  display: flex;
  flex-direction: column;
  padding: 5px;
  border-radius: 12px;
  background: #142238;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5), inset 0 0 0 1px var(--line-2);
  transform-origin: top right;
  isolation: isolate;
  animation: menu 5s infinite;
}
.mock__menu span { padding: 5px 10px; border-radius: 8px; color: var(--muted); white-space: nowrap; }
.mock__target { position: relative; }
.mock__target::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 8px;
  background: rgba(92, 207, 255, .28);
  opacity: 0;
  animation: target 5s infinite;
}
.mock__tip {
  position: absolute;
  top: calc(100% + 8px);
  left: 6px;
  z-index: 1;
  white-space: nowrap;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ice-grad);
  color: #061021;
  font-weight: 800;
  font-size: .85em;
  opacity: 0;
  animation: tip 5s infinite;
}
.mock__cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5));
  animation: cursor 5s infinite;
}
@keyframes cursor {
  0%   { transform: translate(40cqw, 85cqh); opacity: 0; animation-timing-function: var(--ease-out); }
  5%   { transform: translate(40cqw, 85cqh); opacity: 1; animation-timing-function: var(--ease-out); }
  20%  { transform: translate(86cqw, 7cqh); animation-timing-function: ease; }
  23%  { transform: translate(86cqw, 7cqh) scale(.8); }
  26%  { transform: translate(86cqw, 7cqh); animation-timing-function: var(--ease-out); }
  40%  { transform: translate(72cqw, 34cqh); animation-timing-function: ease; }
  43%  { transform: translate(72cqw, 34cqh) scale(.8); }
  46%  { transform: translate(72cqw, 34cqh); animation-timing-function: var(--ease-out); }
  60%  { transform: translate(36cqw, 42cqh); opacity: 1; }
  92%  { transform: translate(36cqw, 42cqh); opacity: 1; }
  100% { transform: translate(36cqw, 42cqh); opacity: 0; }
}
@keyframes menu   { 0%, 23% { opacity: 0; transform: scale(.9) translateY(-6px); } 27%, 47% { opacity: 1; transform: none; } 51%, 100% { opacity: 0; transform: scale(.96); } }
@keyframes target { 0%, 37% { opacity: 0; } 40%, 50% { opacity: 1; } 54%, 100% { opacity: 0; } }
@keyframes page   { 0%, 45% { opacity: 0; transform: translateY(6px); } 52%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes ring   { 0%, 56% { opacity: 0; } 61%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes tip    { 0%, 60% { opacity: 0; transform: translateY(6px); } 65%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* FAQ — две независимые колонки */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.faq__col { display: grid; gap: 10px; }
.faq__item {
  border-radius: 16px;
  background: rgba(155, 231, 255, .035);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color var(--t-fast), box-shadow var(--t);
}
.faq__item:hover { background: rgba(155, 231, 255, .06); }
.faq__item.is-open { background: rgba(155, 231, 255, .065); box-shadow: inset 0 0 0 1px rgba(155, 231, 255, .25), 0 14px 40px -24px rgba(92, 207, 255, .5); }
.faq__item h3 { font-size: inherit; }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 18px;
  border: 0;
  border-radius: 16px;
  background: none;
  color: var(--text);
  font: 700 15.5px/1.4 var(--font);
  text-align: left;
  cursor: pointer;
}
.faq__icon {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(155, 231, 255, .08);
  transition: transform var(--t) var(--ease-spring), background-color var(--t-fast);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 2px;
  margin: -1px 0 0 -5.5px;
  border-radius: 2px;
  background: var(--text);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item.is-open .faq__icon { transform: rotate(135deg); background: rgba(92, 207, 255, .35); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t) var(--ease-out);
}
.faq__a > div { overflow: hidden; }
.faq__a p {
  padding: 0 18px 16px;
  color: var(--muted);
  font-size: 14.5px;
  opacity: 0;
  transition: opacity var(--t-fast);
}
.faq__a a { color: var(--ice); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__item.is-open .faq__a p { opacity: 1; transition-delay: .05s; }

/* не пришли деньги */
.help {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 15px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--ice), var(--ice-3), var(--orange));
  box-shadow: 0 0 10px rgba(155, 231, 255, .5);
  transform-origin: top;
}
.tab-panel.is-active .timeline::before { animation: draw .8s var(--ease-out) both; }
@keyframes draw { from { transform: scaleY(0); } }
.tl {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 16px;
}
.tl:last-child { padding-bottom: 0; }
.tl__dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0b1628;
  box-shadow: inset 0 0 0 2px rgba(155, 231, 255, .3), 0 0 14px -2px rgba(92, 207, 255, .5);
  font-weight: 800;
  font-size: 13px;
}
.tl h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 4px 0 2px;
  font-size: 16px;
}
.tl p { color: var(--muted); font-size: 14.5px; }
.badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(155, 231, 255, .12);
  color: var(--ice);
  font-size: 11.5px;
  font-weight: 700;
}

.support {
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(155, 231, 255, .07), rgba(155, 231, 255, .02));
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 70px -30px rgba(0, 0, 0, .7);
}
.support__head { display: flex; align-items: center; gap: 14px; }
.support__head h3 { font: 700 18px/1.2 var(--font-display); letter-spacing: -.02em; }
.support__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(155, 231, 255, .07);
  box-shadow: inset 0 0 0 1px rgba(155, 231, 255, .25), 0 0 20px -6px rgba(92, 207, 255, .6);
}
.support__avatar svg { width: 24px; height: 24px; animation: twinkle-soft 3s ease-in-out infinite; }
@keyframes twinkle-soft { 50% { transform: rotate(45deg) scale(.85); } }
.support__status { display: flex; align-items: center; gap: 8px; margin-top: 5px; color: var(--muted); font-size: 13px; }
.support__label { margin: 16px 0 6px; font-weight: 700; font-size: 14px; }
.support__list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; margin: 0; padding: 0; list-style: none; }
.support__list li { display: flex; align-items: center; gap: 8px; padding: 4px 0; color: var(--muted); font-size: 13.5px; }
.support__list svg { flex: none; width: 16px; height: 16px; color: var(--ice); }
.support__actions { display: grid; gap: 8px; margin-top: 16px; }
.support__actions .btn { width: 100%; }

/* ---------- Футер ---------- */
.footer { padding: 22px 0 28px; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(4, 7, 13, .6)); }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer__note { flex: 1; min-width: 240px; color: var(--dim); font-size: 13px; }
.footer__links { display: flex; gap: 20px; }
.footer__links a { color: var(--muted); font-size: 13.5px; text-decoration: none; transition: color var(--t-fast); }
.footer__links a:hover { color: var(--ice); }

/* ---------- Модалка ---------- */
.modal {
  width: min(420px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: var(--text);
}
.modal::backdrop { background: rgba(2, 5, 10, .8); }
.modal[open] { animation: modal-in .3s var(--ease-spring); }
.modal[open]::backdrop { animation: fade-in .2s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.95); } }
@keyframes fade-in { from { opacity: 0; } }
.modal__body {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(155, 231, 255, .35);
  border-radius: 24px;
  background:
    radial-gradient(100% 50% at 0% 0%, rgba(155, 231, 255, .12), transparent 60%),
    linear-gradient(180deg, #0d1829, #070d19);
  box-shadow: 0 0 60px -20px rgba(92, 207, 255, .5);
}
.modal__title { font: 700 20px/1.2 var(--font-display); letter-spacing: -.02em; }
.modal__list { margin: 16px 0 0; }
.modal__list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.modal__list dt { color: var(--muted); }
.modal__list dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
#mLogin { font-family: var(--mono); color: var(--ice); }
.modal__total { border-bottom: 0 !important; }
.modal__total dd { font: 700 20px/1.2 var(--font-display); }
.modal__warn {
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(255, 138, 31, .08);
  color: #f6e2cf;
  font-size: 13.5px;
}
.modal__actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 18px; }

/* ---------- Тост ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  max-width: calc(100% - 32px);
  padding: 13px 18px;
  border-radius: 14px;
  background: #0f1b2e;
  box-shadow: inset 0 0 0 1px rgba(155, 231, 255, .25), 0 20px 50px rgba(0, 0, 0, .6), 0 0 30px -10px rgba(92, 207, 255, .5);
  font-weight: 600;
  font-size: 14.5px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity var(--t-fast), transform var(--t) var(--ease-spring);
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Появление при скролле ---------- */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* бесконечные анимации вне экрана — на паузе (класс ставит JS) */
.is-offscreen,
.is-offscreen *,
.is-offscreen::before,
.is-offscreen *::before,
.is-offscreen *::after { animation-play-state: paused !important; }

/* ---------- Адаптив ---------- */
@media (max-width: 1020px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero__copy { text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__badges { justify-content: center; }
  .card-stage { display: none; }
  .hero__form { width: 100%; max-width: 520px; margin: 0 auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .howto { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .mock { max-width: 460px; }
  .help { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}

@media (max-width: 900px) {
  .header__cta { display: none; }
  .burger { display: block; }
  .nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 10px 16px 16px;
    background: rgba(6, 11, 20, .97);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity var(--t-fast), transform var(--t) var(--ease-out), visibility 0s var(--t);
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity var(--t-fast), transform var(--t) var(--ease-out), visibility 0s;
  }
  .nav a { padding: 12px 14px; font-size: 16px; }
  .nav a::after { display: none; }
  .header:has(.nav.is-open) { background: rgba(6, 11, 20, .97); }
  .faq { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .container { padding-inline: 16px; }
  .hero { padding: 18px 0 28px; }
  .hero__title { margin: 14px 0 10px; }
  .hero__lead { font-size: 15.5px; }
  .hero__badges { display: none; }
  .eyebrow { font-size: 11px; letter-spacing: .06em; }
  .panel__body { padding: 18px 16px; }
  .panel__head .tag { display: none; }
  .panel__title { font-size: 19px; }
  .chips { grid-template-columns: repeat(3, 1fr); }
  .amount-input { width: 108px; }
  .info { padding-bottom: 40px; }
  .l-long { display: none; }
  .l-short { display: inline; }
  .tabs__btn { font-size: 14px; padding: 0 4px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .step { padding: 14px 16px; }
  .howto { padding: 18px 16px; }
  .faq__q { padding: 15px 16px; }
  .faq__a p { padding: 0 16px 15px; }
  .support { padding: 18px 16px; }
  .support__list { grid-template-columns: minmax(0, 1fr); }
  .modal__body { padding: 20px 16px; }
  .modal__actions { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Пониженная анимация ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .panel::before { display: none; }
  .mock__menu, .mock__page, .mock__login::after, .mock__tip { opacity: 1 !important; transform: none !important; }
  .mock__cursor { display: none; }
}
