/* ===================== Tokens ===================== */
:root {
  --bg: #05050a;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --line: rgba(255, 255, 255, 0.1);

  /* стекло */
  --glass-bg: rgba(255, 255, 255, 0.055);
  --glass-tint: rgba(18, 18, 28, 0.35);
  --glass-sheen: rgba(255, 255, 255, 0.09);
  --glass-hi: rgba(255, 255, 255, 0.35);
  --glass-edge-1: rgba(255, 255, 255, 0.55);
  --glass-edge-2: rgba(255, 255, 255, 0.06);
  --glass-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.25);
  --glass-spec: rgba(255, 255, 255, 0.16);
  --blur: 32px;
  --nav-bg: rgba(20, 20, 30, 0.45);
  --menu-bg: #17171f;
  --chip-bg: rgba(255, 255, 255, 0.08);
  --btn-glass-ring: rgba(255, 255, 255, 0.12);
  --save: #34d399;
  --hot: linear-gradient(100deg, #ff5f8f 0%, #ff9f43 100%); /* скидка */
  --hot-line: #ff5f8f;
  /* пиксельный огонёк скидки: край → сердцевина, вторая — вспышка */
  --fire-a: #ff4d7d; --fire-a2: #ff8a6b;
  --fire-b: #ff7a3d; --fire-b2: #ffa44f;
  --fire-c: #ffb02e; --fire-c2: #ffd45e;
  --fire-d: #ffe27a; --fire-d2: #fff7cf;
  --link: #6aa8ff;
  --text-halo: 0 1px 18px rgba(5, 5, 10, 0.7);

  /* акцент */
  --a1: #3a8bff;
  --a2: #7b61ff;
  --a3: #c17bff;
  --grad: linear-gradient(100deg, #5aaeff 0%, #7b61ff 50%, #d08bff 100%);
  --focus: #7fb2ff;

  /* фон-блобы */
  --blob-1: rgba(58, 110, 255, 0.55);
  --blob-2: rgba(123, 80, 255, 0.5);
  --blob-3: rgba(200, 100, 255, 0.35);
  --blob-4: rgba(30, 190, 255, 0.3);
  --blob-5: rgba(255, 110, 190, 0.22);
  --veil: rgba(5, 5, 10, 0.35);

  --r-sm: 18px;
  --r: 24px;
  --r-lg: 28px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-std: cubic-bezier(0.25, 0.1, 0.25, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --gutter: clamp(16px, 5vw, 48px);
  --nav-h: 76px;
  /* цвет верхнего края страницы: им Safari красит полосу под «островом» */
  /* «холст» под фиксированным фоном: его Safari 26 показывает под «островом» и нижней панелью */
  --canvas: #0f1830;
}

@media (prefers-color-scheme: light) {
  :root {
    --canvas: #d3ddf8;
    --bg: #f5f5f7;
    --text: #1d1d1f;
    --muted: #5c5c63;
    --line: rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.5);
    --glass-tint: rgba(255, 255, 255, 0.2);
    --glass-sheen: rgba(255, 255, 255, 0.55);
    --glass-hi: rgba(255, 255, 255, 0.9);
    --glass-edge-1: rgba(255, 255, 255, 0.95);
    --glass-edge-2: rgba(255, 255, 255, 0.25);
    --glass-shadow: 0 20px 50px rgba(40, 40, 90, 0.12), 0 2px 6px rgba(40, 40, 90, 0.06);
    --glass-spec: rgba(255, 255, 255, 0.7);
    --nav-bg: rgba(255, 255, 255, 0.55);
    --menu-bg: #fbfbfd;
    --chip-bg: rgba(0, 0, 0, 0.05);
    /* на светлом фоне глубже: текст градиентом должен читаться */
    --hot: linear-gradient(100deg, #e0245e 0%, #d9480f 100%);
    --hot-line: #e0245e;
    --fire-a: #e0245e; --fire-a2: #f2456e;
    --fire-b: #f2541b; --fire-b2: #ff7a2e;
    --fire-c: #f59f00; --fire-c2: #fcc419;
    --fire-d: #ffc53d; --fire-d2: #ffe066;
    --btn-glass-ring: rgba(0, 0, 0, 0.08);
    --save: #0b7a52;
    --link: #0a5fd6;
    --text-halo: 0 1px 16px rgba(245, 245, 247, 0.9);
    --grad: linear-gradient(100deg, #1f73ff 0%, #5b3cff 50%, #a23cff 100%);
    --focus: #0a66ff;
    --blob-1: rgba(90, 150, 255, 0.45);
    --blob-2: rgba(150, 120, 255, 0.4);
    --blob-3: rgba(220, 150, 255, 0.35);
    --blob-4: rgba(90, 210, 255, 0.3);
    --blob-5: rgba(255, 160, 210, 0.3);
    --veil: rgba(245, 245, 247, 0.2);
  }
}

/* ===================== Base ===================== */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
  background: var(--canvas);
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* фолбэк для старых Safari */
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
::selection { background: rgba(123, 97, 255, 0.45); color: #fff; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 999px;
}
.skip:focus { top: 12px; }

header, main, footer { position: relative; z-index: 1; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  color: var(--muted); margin-bottom: 14px;
}

.pulse {
  position: relative; display: inline-block; flex: 0 0 auto;
  width: 8px; height: 8px; border-radius: 50%;
  background: #34d399;
}
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: rgba(52, 211, 153, 0.55);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  70%, 100% { transform: scale(3.4); opacity: 0; }
}

/* ===================== Живой фон ===================== */
.bg {
  /* 4px от верха и низа: если фиксированный слой касается края, Safari 26 заливает
     свою панель сплошным цветом и обрезает страницу; с зазором страница уходит под стекло */
  position: fixed; inset: 4px 0; z-index: 0;
  overflow: hidden; pointer-events: none;
  /* базовый цвет — картинкой: фон body оставляем «холстом» (--canvas) для полос Safari */
  background-image: linear-gradient(var(--bg), var(--bg));
}
/* Safari 26 не рисует фиксированные слои под своими панелями — там виден холст.
   Края фона плавно сводим к цвету холста, чтобы полос не было видно */
.bg::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, var(--canvas) 0, rgba(0, 0, 0, 0) 110px,
    rgba(0, 0, 0, 0) calc(100% - 110px), var(--canvas) 100%);
}
.blob {
  position: absolute;
  width: 70vmax; height: 70vmax;
  border-radius: 50%;
  will-change: transform;
  animation: drift 32s ease-in-out infinite alternate;
}
.blob--1 { left: -25vmax; top: -30vmax; background: radial-gradient(closest-side, var(--blob-1), transparent); }
.blob--2 { right: -30vmax; top: -10vmax; background: radial-gradient(closest-side, var(--blob-2), transparent); animation-duration: 38s; animation-delay: -8s; }
.blob--3 { left: 10vmax; bottom: -40vmax; background: radial-gradient(closest-side, var(--blob-3), transparent); animation-duration: 44s; animation-delay: -16s; }
.blob--4 { right: -20vmax; bottom: -25vmax; width: 55vmax; height: 55vmax; background: radial-gradient(closest-side, var(--blob-4), transparent); animation-duration: 36s; animation-delay: -4s; }
.blob--5 { left: 30vmax; top: 20vmax; width: 45vmax; height: 45vmax; background: radial-gradient(closest-side, var(--blob-5), transparent); animation-duration: 50s; animation-delay: -22s; }
.bg__veil { position: absolute; inset: 0; background: var(--veil); }

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  33%  { transform: translate3d(8vmax, 6vmax, 0) scale(1.12); }
  66%  { transform: translate3d(-6vmax, 10vmax, 0) scale(0.94); }
  100% { transform: translate3d(4vmax, -6vmax, 0) scale(1.06); }
}

/* ===================== Liquid Glass ===================== */
.glass {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(180deg, var(--glass-sheen), transparent 42%),
    linear-gradient(var(--glass-tint), var(--glass-tint)),
    var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
  backdrop-filter: blur(var(--blur)) saturate(180%);
  border-radius: var(--r-lg);
  box-shadow:
    inset 0 1px 0 var(--glass-hi),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    var(--glass-shadow);
}
/* градиентная обводка 1px */
.glass::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, var(--glass-edge-1), var(--glass-edge-2) 32%, transparent 55%, var(--glass-edge-2) 78%, var(--glass-edge-1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
/* блик, следующий за курсором */
.glass::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), var(--glass-spec), transparent 45%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.glass.is-lit::after { opacity: 1; }
.glass > * { position: relative; z-index: 3; }

/* ===================== Buttons ===================== */
.btn {
  --tx: 0px; --ty: 0px; --s: 1;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px;
  border-radius: 999px; border: 0;
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  white-space: nowrap; cursor: pointer;
  transform: translate3d(var(--tx), var(--ty), 0) scale(var(--s));
  transition: transform 0.6s var(--spring), box-shadow 0.3s var(--ease), filter 0.3s var(--ease), background-color 0.3s;
}
.btn.is-magnet { transition: transform 0.18s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease); }
@media (hover: hover) { .btn:hover { --s: 1.03; } }
.btn:active { --s: 0.96; }
.btn--primary {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 52%),
    /* чуть глубже, чем --a1/--a2: белый текст 17–18px должен иметь контраст ≥ 4.5:1 (было 3.3–4.2) */
    linear-gradient(100deg, #246be0, #6a4ff0 60%, #8a4cf0);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 10px 30px rgba(91, 97, 255, 0.4);
}
.btn--primary:hover { filter: brightness(1.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 14px 40px rgba(91, 97, 255, 0.55); }
.btn--glass {
  color: var(--text);
  background: linear-gradient(180deg, var(--glass-sheen), transparent 60%), var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--glass-hi), inset 0 0 0 1px var(--btn-glass-ring), 0 8px 24px rgba(0, 0, 0, 0.15);
}
.btn--glass:hover { box-shadow: inset 0 1px 0 var(--glass-hi), inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 12px 30px rgba(0, 0, 0, 0.2); }
.btn--sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn--lg { min-height: 56px; padding: 0 34px; font-size: 18px; }

.link { color: var(--link); font-weight: 600; }
.link:hover { text-decoration: underline; }

/* ===================== Nav ===================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  padding: 12px var(--gutter) 0;
  pointer-events: none;
}
.nav__inner {
  pointer-events: auto;
  max-width: 980px; height: 52px; margin: 0 auto;
  padding: 0 8px 0 18px;
  display: flex; align-items: center; gap: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--glass-sheen), transparent 60%), var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.nav__logo { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; margin-right: auto; }
/* ---------- Логотип Rash: буква R + «рассыпающиеся» пиксели ---------- */
.logo { display: block; flex: 0 0 auto; overflow: visible; }
.logo__px, .logo__letter, .logo__gloss { transform-box: fill-box; transform-origin: center; }
/* порядковый номер пикселя — в CSS, а не в style="" у SVG: Safari не видит custom properties из атрибута style в SVG */
.logo__px:nth-child(1) { --i: 0; } .logo__px:nth-child(2) { --i: 1; } .logo__px:nth-child(3) { --i: 2; }
.logo__px:nth-child(4) { --i: 3; } .logo__px:nth-child(5) { --i: 4; } .logo__px:nth-child(6) { --i: 5; }
.logo__px:nth-child(7) { --i: 6; } .logo__px:nth-child(8) { --i: 7; } .logo__px:nth-child(9) { --i: 8; }
.logo__gloss { pointer-events: none; }
.nav__mark { width: 30px; height: 33px; margin: -2px 0; }
.wordmark { font-weight: 800; letter-spacing: -0.04em; font-size: 1.08em; line-height: 1; padding-right: 0.04em; }
.footer__logo { display: inline-flex; align-items: center; gap: 8px; }
.footer__mark { width: 22px; height: 24px; }
.hero__logo { width: clamp(68px, 9vw, 96px); margin: 0 auto 22px; }
.hero__mark { width: 100%; height: auto; filter: drop-shadow(0 14px 34px rgba(91, 85, 255, 0.35)); animation: rise 1s var(--ease) both; }
/* появление: пиксели «прилетают» к букве, буква проявляется */
.logo--anim .logo__px { animation: pxIn 0.9s var(--ease) calc(0.15s + var(--i) * 60ms) both, pxFloat 6s ease-in-out calc(1.4s + var(--i) * 0.45s) infinite; }
.logo--anim .logo__letter { animation: letterIn 0.9s var(--ease) both; }
.logo--anim .logo__gloss { animation: letterIn 0.9s var(--ease) both, gloss 7s ease-in-out 1.5s infinite; }
@keyframes pxIn { from { opacity: 0; transform: translate(-16px, 6px) scale(0.3); } }
@keyframes pxFloat { 0%, 100% { transform: translate(0, 0); opacity: 1; } 50% { transform: translate(-1.6px, -1.2px); opacity: 0.55; } }
@keyframes letterIn { from { opacity: 0; transform: scale(0.92); } }
@keyframes gloss { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
/* наведение на логотип в шапке: пиксели собираются к букве */
.logo__px { transition: translate 0.5s var(--ease); }
.nav__logo:hover .logo__px { translate: 2.5px 0; }
.hero-off .hero__mark .logo__px, .hero-off .hero__mark .logo__gloss { animation-play-state: paused; }
/* большой логотип в герое: пиксели по очереди тают и появляются снова — «поток данных» */
.hero__mark .logo__px { animation: pxIn 0.9s var(--ease) calc(0.15s + var(--i) * 60ms) both, pxBlink 3.6s ease-in-out calc(1.3s + var(--d, 0s)) infinite; }
.hero__mark .logo__px:nth-child(1) { --d: 0.2s; }
.hero__mark .logo__px:nth-child(2) { --d: 1.6s; }
.hero__mark .logo__px:nth-child(3) { --d: 0.7s; }
.hero__mark .logo__px:nth-child(4) { --d: 2.4s; }
.hero__mark .logo__px:nth-child(5) { --d: 1.1s; }
.hero__mark .logo__px:nth-child(6) { --d: 2.9s; }
.hero__mark .logo__px:nth-child(7) { --d: 0.4s; }
.hero__mark .logo__px:nth-child(8) { --d: 2s; }
.hero__mark .logo__px:nth-child(9) { --d: 1.4s; }
@keyframes pxBlink {
  0%, 28% { opacity: 1; transform: translate(0, 0) scale(1); }
  46% { opacity: 0; transform: translate(-7px, 1px) scale(0.35); }
  60% { opacity: 0; transform: translate(4px, 0) scale(0.35); }
  78%, 100% { opacity: 1; transform: translate(0, 0) scale(1); }
}
.nav__links { display: flex; gap: 26px; font-size: 14px; color: var(--muted); }
.nav__links a { position: relative; transition: color 0.3s var(--ease-std); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transition: transform 0.4s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__burger { display: none; }
@media (max-width: 760px) {
  .nav__links { display: none; }
  .js .nav__burger {
    position: relative; display: block; flex: 0 0 auto;
    width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%;
    background: var(--chip-bg); cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .nav__burger span {
    position: absolute; left: 12px; right: 12px; top: 50%; height: 1.75px; margin-top: -0.875px;
    border-radius: 2px; background: currentColor;
    transform: translate3d(0, -3.5px, 0);
    transition: transform 0.45s var(--ease);
  }
  .nav__burger span + span { transform: translate3d(0, 3.5px, 0); }
  .nav.is-open .nav__burger span { transform: rotate(45deg); }
  .nav.is-open .nav__burger span + span { transform: rotate(-45deg); }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; gap: 2px;
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    padding: 8px; border-radius: 26px;
    background: var(--menu-bg);
    box-shadow: inset 0 1px 0 var(--glass-hi), var(--glass-shadow);
    font-size: 17px; font-weight: 600; color: var(--text);
    animation: menuIn 0.4s var(--ease) both;
  }
  .nav.is-open .nav__links a { display: block; padding: 14px 16px; border-radius: 18px; }
  .nav.is-open .nav__links a::after { display: none; }
  .nav.is-open .nav__links a:active { background: var(--chip-bg); }
}
@keyframes menuIn { from { opacity: 0; transform: translate3d(0, -8px, 0) scale(0.98); } to { opacity: 1; transform: none; } }

/* ===================== Hero ===================== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  display: grid; place-items: center;
  padding: 56px var(--gutter) 88px;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}
.hero__content { position: relative; z-index: 2; max-width: 980px; will-change: transform, opacity; }
.hero__eyebrow {
  padding: 6px 14px; border-radius: 999px;
  background: var(--chip-bg);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 var(--glass-hi);
  color: var(--text); font-size: 14px;
  animation: rise 1s var(--ease) both;
}
/* на компьютере — список стран, на телефоне — коротко */
.hero__eyebrow-short { display: none; }
@media (max-width: 760px) {
  .hero__eyebrow-full { display: none; }
  .hero__eyebrow-short { display: inline; }
}
.hero__title {
  font-size: clamp(36px, 8.6vw, 112px);
  line-height: 1; letter-spacing: -0.05em; font-weight: 800;
  margin: 10px 0 24px;
}
.hero__title .line { display: block; animation: rise 1.2s var(--ease) both; }
.hero__title .rub { font-size: 0.85em; letter-spacing: 0; padding-right: 0.06em; }
@media (min-width: 600px) { .hero__title .line { white-space: nowrap; } }
.hero__title--caps { text-transform: uppercase; letter-spacing: -0.04em; font-size: clamp(44px, 10vw, 128px); line-height: 0.95; }
.hero__title .line:nth-child(1) { animation-delay: 0.08s; }
.hero__title .line:nth-child(2) { animation-delay: 0.2s; }
.hero__title .grad { background-size: 200% 100%; animation: rise 1.2s var(--ease) 0.08s both, shimmer 9s ease-in-out 1.4s infinite; }
.hero__sub {
  max-width: 560px; margin: 0 auto 36px;
  font-size: clamp(19px, 2.3vw, 26px); line-height: 1.35; color: var(--muted); font-weight: 500;
  letter-spacing: -0.015em;
  text-shadow: var(--text-halo); /* читаемость поверх светящегося шара */
  animation: rise 1.2s var(--ease) 0.32s both;
}
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; animation: rise 1.2s var(--ease) 0.44s both; }
.hero__note { margin-top: 18px; font-size: 14px; color: var(--muted); text-shadow: var(--text-halo); animation: rise 1.2s var(--ease) 0.52s both; }

@keyframes rise { from { opacity: 0; transform: translate3d(0, 28px, 0); } to { opacity: 1; transform: none; } }
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* статус-капсула */
.status {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 44px; padding: 10px 10px 10px 18px;
  border-radius: 999px;
  font-size: 15px; font-weight: 600;
  animation: rise 1.2s var(--ease) 0.64s both, bob 7s ease-in-out 2s infinite;
}
.fx-liquid .status {
  -webkit-backdrop-filter: url(#refract) blur(var(--blur)) saturate(180%);
  backdrop-filter: url(#refract) blur(var(--blur)) saturate(180%);
}
.status__dot { width: 9px; height: 9px; border-radius: 50%; background: #34d399; box-shadow: 0 0 12px #34d399; }
.status__sep { width: 1px; height: 18px; background: var(--line); }
.status__loc { display: inline-flex; align-items: center; color: var(--muted); font-weight: 500; }
.toggle {
  position: relative; width: 50px; height: 30px; border-radius: 999px;
  background: linear-gradient(100deg, #34c759, #30d158);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}
.toggle i {
  position: absolute; top: 2px; left: 22px; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  animation: knob 1s var(--spring) 1.2s both;
}
@keyframes knob { from { transform: translateX(-20px); } to { transform: none; } }
@keyframes bob { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -8px, 0); } }

/* орб */
.hero__visual {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  /* при прокрутке шар съезжает вниз и растёт — без маски его срезал бы край секции ровной линией */
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 97%);
  mask-image: linear-gradient(to bottom, #000 58%, transparent 97%);
}
.orb {
  --orb: min(860px, 150vw);
  position: absolute; left: 50%; top: 46%;
  width: var(--orb); height: var(--orb);
  margin: calc(var(--orb) / -2) 0 0 calc(var(--orb) / -2);
  will-change: transform;
  animation: orbIn 1.8s var(--ease) both;
}
@keyframes orbIn { from { opacity: 0; scale: 0.85; } to { opacity: 1; scale: 1; } }
.orb__liquid, .orb__ring, .orb__glow, .orb__core { position: absolute; border-radius: 50%; }
.orb__liquid { inset: 0; }
.fx-liquid .orb__liquid { filter: url(#liquid); }
.orb__glow {
  inset: 16%;
  background:
    radial-gradient(circle at 30% 30%, rgba(90, 174, 255, 0.55), transparent 55%),
    radial-gradient(circle at 70% 65%, rgba(193, 123, 255, 0.55), transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(123, 97, 255, 0.45), transparent 70%);
  animation: breathe 8s ease-in-out infinite, spin 40s linear infinite;
  opacity: 0.85;
}
.orb__core {
  inset: 34%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.45), transparent 26%),
    radial-gradient(circle at 50% 50%, rgba(140, 120, 255, 0.4), transparent 72%);
  box-shadow: inset 0 0 60px rgba(255, 255, 255, 0.08);
  animation: breathe 8s ease-in-out infinite reverse;
}
.orb__ring {
  inset: 14%;
  background: conic-gradient(from 0deg, #5aaeff, #7b61ff, #d08bff, transparent 55%, #5aaeff);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
  opacity: 0.75;
  animation: spin 20s linear infinite;
}
.orb__ring--2 { inset: 22%; opacity: 0.45; animation-duration: 28s; animation-direction: reverse; }
.orb__ring--3 { inset: 6%; opacity: 0.25; animation-duration: 46s; }
@media (prefers-color-scheme: light) {
  .orb__glow { opacity: 0.6; }
  .orb__core { background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.9), transparent 30%), radial-gradient(circle at 50% 50%, rgba(140, 120, 255, 0.3), transparent 72%); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { scale: 1; } 50% { scale: 1.08; } }

/* пауза анимаций героя вне экрана */
.hero-off .orb *, .hero-off .status, .hero-off .hero__title .grad { animation-play-state: paused; }

/* ===================== Stats ===================== */
.stats { padding: 8px 0 32px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 28px 18px; border-radius: var(--r); text-align: center; }
.stat__num {
  font-size: clamp(30px, 4.5vw, 48px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat__label { margin-top: 6px; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* ===================== Sections ===================== */
.section { padding: clamp(56px, 8vw, 108px) 0; }
.section--tight { padding-top: clamp(40px, 6vw, 80px); }
/* Переход из меню (#pricing и т.п.): к заголовку раздела, а не к началу его верхнего отступа — иначе заголовок оказывается почти посередине экрана */
.section[id] { scroll-margin-top: calc(16px - clamp(56px, 8vw, 108px)); }
.section--tight[id] { scroll-margin-top: calc(16px - clamp(40px, 6vw, 80px)); }
.section__title {
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.03; letter-spacing: -0.045em; font-weight: 800;
  margin-bottom: clamp(40px, 6vw, 72px);
}

/* ===================== Bento ===================== */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  padding: clamp(24px, 3vw, 34px);
  display: flex; flex-direction: column; gap: 10px;
  min-width: 0;
  transition: transform 0.7s var(--spring), box-shadow 0.4s var(--ease);
}
@media (hover: hover) { .card:hover { transform: translate3d(0, -4px, 0); } }
.card--wide { grid-column: span 2; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; }
.card--wide .card__body { display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.card--accent {
  background:
    radial-gradient(120% 140% at 100% 100%, rgba(123, 97, 255, 0.32), transparent 60%),
    linear-gradient(180deg, var(--glass-sheen), transparent 42%),
    var(--glass-bg);
}
.card__icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent 55%),
    linear-gradient(135deg, var(--a1), var(--a2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 20px rgba(91, 97, 255, 0.35);
  margin-bottom: 8px;
}
.card__kicker { font-size: 14px; font-weight: 600; color: var(--muted); }
.card__title { font-size: clamp(24px, 3vw, 32px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 700; }
.card--accent .card__title { font-size: clamp(34px, 5.4vw, 60px); }
.card__text { color: var(--muted); font-size: 16px; }
.card__btn { flex: 0 0 auto; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.chips li { font-size: 13px; padding: 5px 11px; border-radius: 999px; background: var(--chip-bg); color: var(--muted); }

/* флаг Нидерландов: CSS вместо эмодзи (в Windows эмодзи-флаги показываются буквами) */
.flag {
  display: inline-block; flex: 0 0 auto;
  width: 1.3em; height: 0.9em; margin-right: 0.4em; vertical-align: -0.06em;
  border-radius: 0.18em;
  background: linear-gradient(#ae1c28 0 33.4%, #fff 0 66.6%, #21468b 0);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.card__title .flag { width: 1.1em; height: 0.78em; }
.locs { display: grid; gap: 8px; margin-top: auto; padding-top: 6px; font-size: 15px; }
.locs li { display: flex; align-items: center; gap: 10px; }
.locs__on { color: var(--text); }
.locs__soon { color: var(--muted); }
.locs__soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px dashed var(--muted); }

.speed { display: flex; align-items: flex-end; gap: 6px; height: 128px; flex: 0 0 auto; }
.speed span {
  width: 10px; border-radius: 6px; height: 100%;
  background: linear-gradient(to top, var(--a1), var(--a3));
  box-shadow: 0 0 16px rgba(123, 97, 255, 0.35);
  transform-origin: bottom;
  animation: bar 1.4s var(--ease) infinite alternate;
}
.speed span:nth-child(1)  { --h: 0.3; animation-delay: 0s; }
.speed span:nth-child(2)  { --h: 0.42; animation-delay: 0.08s; }
.speed span:nth-child(3)  { --h: 0.55; animation-delay: 0.16s; }
.speed span:nth-child(4)  { --h: 0.5; animation-delay: 0.24s; }
.speed span:nth-child(5)  { --h: 0.68; animation-delay: 0.32s; }
.speed span:nth-child(6)  { --h: 0.62; animation-delay: 0.4s; }
.speed span:nth-child(7)  { --h: 0.8; animation-delay: 0.48s; }
.speed span:nth-child(8)  { --h: 0.74; animation-delay: 0.56s; }
.speed span:nth-child(9)  { --h: 0.9; animation-delay: 0.64s; }
.speed span:nth-child(10) { --h: 1; animation-delay: 0.72s; }
@keyframes bar { from { transform: scaleY(calc(var(--h) * 0.45)); } to { transform: scaleY(var(--h)); } }

.bento--four { grid-template-columns: repeat(4, 1fr); }
.bento--four .card__title { font-size: clamp(20px, 2vw, 24px); }
.card__more { margin-top: auto; font-weight: 600; }
@media (max-width: 1080px) { .bento--four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; gap: 14px; }
  .card--wide { grid-column: auto; flex-direction: column; align-items: flex-start; }
  .speed { height: 80px; }
}

/* ===================== Story (sticky) ===================== */
.story { position: relative; height: 300vh; }
.story__sticky {
  position: sticky; top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  display: flex; align-items: center;
  overflow: hidden;
}
.story__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.story .section__title { margin-bottom: 36px; }
.steps-wrap { position: relative; padding-left: 22px; }
.steps__rail {
  position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 3px;
  background: var(--line); overflow: hidden;
}
.steps__fill {
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(to bottom, var(--a1), var(--a3));
  transform-origin: top; transform: scaleY(var(--p, 0));
}
.steps { display: grid; gap: 8px; }
.step {
  position: relative;
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 18px; border-radius: var(--r-sm);
  opacity: 0.4;
  transition: opacity 0.6s var(--ease), transform 0.7s var(--spring), background-color 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.step.is-active {
  opacity: 1; transform: translate3d(6px, 0, 0);
  background: var(--glass-bg);
  box-shadow: inset 0 1px 0 var(--glass-hi), var(--glass-shadow);
}
.step__num {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
  background: var(--chip-bg);
  transition: background 0.5s var(--ease), color 0.5s;
}
.step.is-active .step__num { background: linear-gradient(135deg, var(--a1), var(--a2)); color: #fff; box-shadow: 0 6px 16px rgba(91, 97, 255, 0.4); }
.step__title { font-size: clamp(19px, 2.2vw, 24px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.step__text { margin-top: 4px; color: var(--muted); font-size: 16px; }

.story__visual { display: grid; place-items: center; }
.phone {
  height: min(620px, calc(100vh - var(--nav-h) - 72px)); aspect-ratio: 9 / 19;
  border-radius: 46px; padding: 11px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04) 40%, rgba(255, 255, 255, 0.12));
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.phone__screen {
  position: relative; height: 100%; border-radius: 36px; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #1d1f45, #07070c 70%);
  color: #f5f5f7;
}
.phone__island { position: absolute; top: 12px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 999px; background: #000; z-index: 2; }
.screen {
  position: absolute; inset: 0; padding: 52px 16px 20px;
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0; transform: translate3d(0, 24px, 0) scale(0.97);
  transition: opacity 0.6s var(--ease), transform 0.8s var(--spring);
}
.screen.is-active { opacity: 1; transform: none; }
.chat { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.bubble { max-width: 88%; padding: 10px 14px; border-radius: 18px; line-height: 1.35; }
.bubble--in { background: rgba(255, 255, 255, 0.1); align-self: flex-start; border-bottom-left-radius: 6px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.bubble--out { background: linear-gradient(135deg, var(--a1), var(--a2)); align-self: flex-end; border-bottom-right-radius: 6px; }
.bubble--link code { font-size: 12px; color: #a9c8ff; word-break: break-all; }
.chat__btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.chat__btns--one { grid-template-columns: 1fr; }
.chat__btns span { text-align: center; padding: 8px 4px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); font-size: 13px; }
.chat__btns span.on { background: rgba(123, 97, 255, 0.35); box-shadow: inset 0 0 0 1px #7b61ff; }
.power { display: grid; justify-items: center; gap: 10px; text-align: center; }
.power__btn {
  width: 120px; height: 120px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle, rgba(123, 97, 255, 0.4), rgba(58, 139, 255, 0.08) 70%);
  box-shadow: 0 0 0 1px rgba(123, 97, 255, 0.6), 0 0 60px rgba(91, 97, 255, 0.55);
  animation: breathe 3.5s ease-in-out infinite;
}
.power__btn span { width: 42px; height: 42px; border-radius: 50%; border: 4px solid #fff; border-top-color: transparent; position: relative; }
.power__btn span::after { content: ""; position: absolute; left: 50%; top: -10px; width: 4px; height: 22px; margin-left: -2px; border-radius: 2px; background: #fff; }
.power__label { margin-top: 10px; font-size: 22px; font-weight: 700; }
.power__meta { font-size: 13px; color: #a1a1a6; padding: 0 8px; }

/* невысокие окна (ноутбуки 1280×640, телефоны в альбомной ориентации): компактнее, чтобы липкий блок влезал */
@media (min-width: 821px) and (max-height: 820px) {
  .story .eyebrow { margin-bottom: 8px; }
  .story .section__title { font-size: clamp(36px, min(7vw, 9vh), 84px); margin-bottom: 22px; }
  .step { padding: 12px 16px; }
  .step__text { font-size: 15px; }
}
@media (max-width: 820px), (max-height: 599px) {
  .story { height: auto; }
  .story__sticky { position: relative; top: 0; height: auto; padding: 96px 0; overflow: visible; }
  .story__grid { grid-template-columns: 1fr; gap: 40px; }
  .steps-wrap { padding-left: 0; }
  .steps__rail { display: none; }
  .step { opacity: 1; background: var(--glass-bg); box-shadow: inset 0 1px 0 var(--glass-hi); }
  .step.is-active { transform: none; }
  .story__visual { order: 2; }
  .phone { height: auto; width: min(300px, 72vw); }
}

/* ===================== Pricing ===================== */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column; align-items: flex-start;
  width: 100%; min-width: 0;
  padding: 30px 26px 28px;
  border: 0; text-align: left; cursor: pointer;
  color: var(--text);
  transition: transform 0.7s var(--spring), box-shadow 0.5s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) { .plan:hover { transform: translate3d(0, -6px, 0); } }
.plan:active { transform: scale(0.98); }
.plan[aria-checked="true"] {
  transform: translate3d(0, -6px, 0) scale(1.02);
  box-shadow:
    inset 0 1px 0 var(--glass-hi),
    0 0 0 2px var(--a2),
    0 30px 80px rgba(91, 97, 255, 0.35);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(123, 97, 255, 0.28), transparent 70%),
    linear-gradient(180deg, var(--glass-sheen), transparent 42%),
    var(--glass-bg);
}
.plan__top { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.plan__name { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.plan__badge {
  font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px;
  background: var(--chip-bg); color: var(--text);
}
.plan[aria-checked="true"] .plan__badge { background: linear-gradient(100deg, var(--a1), var(--a2)); color: #fff; }
.plan__price {
  display: block; margin-top: 22px;
  font-size: clamp(48px, 6vw, 64px); font-weight: 800; letter-spacing: -0.045em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.plan__per { display: block; margin-top: 10px; color: var(--muted); font-size: 15px; }
.plan__foot { display: flex; width: 100%; align-items: center; justify-content: space-between; margin-top: 26px; min-height: 28px; }
.plan__save { font-size: 14px; font-weight: 600; color: var(--save); }
/* скидка: прежняя цена над новой, бейдж «−20%» */
.plan__old {
  display: block; margin-bottom: 8px;
  font-size: 22px; font-weight: 600; letter-spacing: -0.01em; color: var(--muted);
  text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--hot-line);
}
.plan__badge--sale,
.plan[aria-checked="true"] .plan__badge--sale { background: var(--hot); color: #fff; }
.price-old { color: var(--muted); text-decoration-color: var(--hot-line); text-decoration-thickness: 2px; font-weight: 500; }

.sale {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px;
  margin: 0 0 22px; padding: 16px 22px; border-radius: 24px;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(255, 95, 143, 0.26), transparent 62%),
    radial-gradient(120% 160% at 100% 100%, rgba(255, 159, 67, 0.2), transparent 62%),
    var(--glass-bg);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 0 1.5px rgba(255, 95, 143, 0.5), 0 22px 60px rgba(255, 95, 143, 0.16);
  animation: rise 0.6s var(--ease) both;
}
.sale[hidden] { display: none; }
/* пиксельный огонёк: цвет волной снизу вверх, края пламени вспыхивают, искры улетают */
/* маленький, в строку с текстом: значок, а не картинка */
.sale__fire { display: inline-block; vertical-align: -3px; margin-right: 9px; }
.fire { display: block; width: 16px; height: 22px; overflow: visible; }
.fire__px, .fire__spark { transform-box: fill-box; transform-origin: center; }
.fire__px { animation: fireWave 1.6s ease-in-out calc(var(--y) * -0.12s) infinite; }
.fire__px--a { fill: var(--fire-a); --hi: var(--fire-a2); }
.fire__px--b { fill: var(--fire-b); --hi: var(--fire-b2); }
.fire__px--c { fill: var(--fire-c); --hi: var(--fire-c2); }
.fire__px--d { fill: var(--fire-d); --hi: var(--fire-d2); }
.fire__px--lick {
  animation: fireWave 1.6s ease-in-out calc(var(--y) * -0.12s) infinite, fireLick 3.2s ease-in-out var(--d) infinite;
}
.fire__spark { fill: var(--fire-c2); opacity: 0; animation: fireSpark 2.4s ease-out calc(var(--i) * 0.8s) infinite; }
@keyframes fireWave { 50% { fill: var(--hi); } }
@keyframes fireLick {
  0%, 62%, 100% { opacity: 1; transform: translate(0, 0) scale(1); }
  71% { opacity: 0; transform: translate(0, -7px) scale(0.35); }
  77% { opacity: 0; transform: translate(0, 3px) scale(0.35); }
  86% { opacity: 1; transform: translate(0, 0) scale(1); }
}
@keyframes fireSpark {
  0% { opacity: 0; transform: translate(0, 0) scale(1); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(4px, -30px) scale(0.3); }
}
.sale__text { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.sale__text b { font-weight: 800; background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sale__timer {
  margin-left: auto; padding: 7px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap;
  background: var(--chip-bg);
}
.sale__timer:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .sale, .fire__px, .fire__spark { animation: none; } }
.plan__check {
  margin-left: auto;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1.5px var(--muted);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.6s var(--spring);
}
.plan__check::after {
  content: ""; width: 10px; height: 6px; margin-top: -3px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0); transition: transform 0.5s var(--spring);
}
.plan[aria-checked="true"] .plan__check { background: linear-gradient(135deg, var(--a1), var(--a2)); box-shadow: 0 4px 14px rgba(91, 97, 255, 0.5); transform: scale(1.08); }
.plan[aria-checked="true"] .plan__check::after { transform: rotate(-45deg) scale(1); }

.buy { margin-top: 28px; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-lg); }
.buy__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.buy__label { font-size: 14px; color: var(--muted); font-weight: 600; }
.buy__plan { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.buy__plan.is-pop { animation: pop 0.6s var(--spring); }
@keyframes pop { 0% { transform: scale(0.94); opacity: 0.4; } 100% { transform: none; opacity: 1; } }
.buy__btn { min-width: 220px; }
.buy__note { margin-top: 14px; font-size: 14.5px; line-height: 1.5; color: var(--muted); max-width: 600px; }

.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 28px; }
.flow__step {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; row-gap: 2px;
  align-items: center;
  padding: 18px 20px; border-radius: var(--r);
  overflow: visible;
}
.flow__icon {
  grid-row: span 2;
  width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent 55%), linear-gradient(135deg, var(--a1), var(--a2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.flow__t { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.flow__d { font-size: 14px; color: var(--muted); line-height: 1.35; }
/* соединительные линии с бегущей точкой */
.flow__step > .flow__link {
  position: absolute; z-index: 4; top: 50%; right: -28px;
  width: 28px; height: 2px; margin-top: -1px; border-radius: 2px;
  background: linear-gradient(90deg, var(--a1), var(--a3));
  opacity: 0.8;
}
.flow__link::after {
  content: ""; position: absolute; top: 50%; left: 0;
  width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 10px var(--a2);
  animation: travel 2.4s var(--ease) infinite;
}
@keyframes travel { 0% { transform: translate3d(-4px, 0, 0); opacity: 0; } 30%, 70% { opacity: 1; } 100% { transform: translate3d(26px, 0, 0); opacity: 0; } }
@keyframes travelY { 0% { transform: translate3d(0, -4px, 0); opacity: 0; } 30%, 70% { opacity: 1; } 100% { transform: translate3d(0, 18px, 0); opacity: 0; } }

.plans__inc {
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: center;
  margin-top: 36px; color: var(--muted); font-size: 15px;
}
.plans__inc li::before { content: "✓ "; color: var(--a2); font-weight: 700; }

/* «Позови друга» под тарифами */
.invite { margin-top: 28px; padding: clamp(18px, 2.6vw, 26px) clamp(18px, 3vw, 30px); border-radius: var(--r-lg); }
.invite[hidden] { display: none; }
.invite__row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.invite__ico {
  flex: none; width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent 55%), linear-gradient(135deg, var(--a1), var(--a2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.invite__txt { flex: 1 1 260px; min-width: 0; }
.invite__t { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.invite__d { margin-top: 2px; font-size: 15px; color: var(--muted); line-height: 1.4; }
.invite__d b { color: var(--text); font-weight: 700; }
.invite__btn { flex: none; }
.invite__form { display: grid; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--glass-edge-2, rgba(127, 127, 160, 0.2)); }
.invite__form[hidden] { display: none; }
.invite__fields { display: flex; gap: 10px; flex-wrap: wrap; }
.invite__fields .input { flex: 1 1 240px; min-width: 0; }
.invite__send { flex: none; }
.invite__ok { font-size: 15px; font-weight: 600; line-height: 1.45; }
.invite__ok[hidden], .invite .field__error[hidden] { display: none; }
.invite__hint { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.invite__hint a { color: var(--link); font-weight: 600; text-decoration: none; white-space: nowrap; }
.ref-note {
  margin: 0 0 22px; padding: 14px 20px; border-radius: 20px; font-size: 15.5px; line-height: 1.45;
  background: radial-gradient(120% 160% at 0% 0%, rgba(123, 97, 255, 0.2), transparent 62%), var(--glass-bg);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 0 1.5px rgba(123, 97, 255, 0.4);
}
.ref-note[hidden] { display: none; }
@media (max-width: 860px) {
  .invite { max-width: 480px; margin-left: auto; margin-right: auto; }
  .invite__btn, .invite__send { width: 100%; }
}

@media (max-width: 860px) {
  .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; gap: 14px; }
  .plan[aria-checked="true"],
  .js .plan.reveal.is-visible[aria-checked="true"] { transform: none; }
  .buy { max-width: 480px; margin-left: auto; margin-right: auto; }
  .buy__btn { width: 100%; }
  .flow { grid-template-columns: 1fr; gap: 22px; max-width: 480px; margin-left: auto; margin-right: auto; }
  .flow__step > .flow__link { top: auto; right: auto; left: 40px; bottom: -22px; width: 2px; height: 22px; margin: 0; background: linear-gradient(180deg, var(--a1), var(--a3)); }
  .flow__link::after { top: 0; left: 50%; margin: 0 0 0 -3px; animation-name: travelY; }
}

/* ===================== FAQ ===================== */
.faq { padding: 4px clamp(18px, 3vw, 32px); border-radius: var(--r-lg); }
.faq__item + .faq__item { border-top: 1px solid var(--line); }
.faq__h { font-size: inherit; font-weight: inherit; }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px 0; background: none; border: 0; cursor: pointer; text-align: left;
  font-size: clamp(18px, 2.4vw, 23px); font-weight: 600; letter-spacing: -0.02em;
}
.faq__icon {
  position: relative; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  background: var(--chip-bg);
  transition: transform 0.6s var(--spring), background 0.3s;
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 9px; right: 9px; top: 50%; height: 2px; margin-top: -1px;
  background: currentColor; border-radius: 2px;
}
.faq__icon::after { transform: rotate(90deg); transition: transform 0.4s var(--ease); }
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(180deg); background: linear-gradient(135deg, var(--a1), var(--a2)); color: #fff; }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: rotate(0deg); }
.faq__a { padding: 0 0 24px; color: var(--muted); font-size: 17px; max-width: 680px; }
.faq__a p + p { margin-top: 12px; }
.faq__a.is-animating { overflow: hidden; } /* высоту анимирует common.js (initFaq) */
.faq__links { display: flex; flex-wrap: wrap; gap: 8px; }
.faq__links a {
  padding: 8px 14px; border-radius: 999px; background: var(--chip-bg); color: var(--text);
  font-size: 15px; font-weight: 500; transition: background 0.3s var(--ease-std);
}
.faq__links a:hover { background: rgba(123, 97, 255, 0.25); }

/* ===================== CTA ===================== */
.cta { padding: clamp(40px, 8vw, 120px) 0 clamp(80px, 12vw, 160px); text-align: center; }
.cta__panel {
  padding: clamp(48px, 8vw, 100px) clamp(20px, 5vw, 64px);
  border-radius: 36px;
  overflow: hidden;
  background:
    radial-gradient(80% 120% at 50% 120%, rgba(123, 97, 255, 0.4), transparent 60%),
    linear-gradient(180deg, var(--glass-sheen), transparent 42%),
    var(--glass-bg);
}
.cta__title { font-size: clamp(38px, 8vw, 96px); line-height: 1.03; letter-spacing: -0.05em; font-weight: 800; }
.cta__sub { margin: 20px auto 36px; color: var(--muted); font-size: clamp(18px, 2vw, 22px); }
.cta__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===================== Footer ===================== */
.footer { border-top: 1px solid var(--line); padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--muted); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer__logo { font-weight: 700; color: var(--text); font-size: 17px; margin-right: auto; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__links a { transition: color 0.3s var(--ease-std); }
.footer__links a:hover { color: var(--text); }
.footer__copy { width: 100%; }

/* ===================== Reveal ===================== */
.js .reveal {
  opacity: 0; transform: translate3d(0, 44px, 0) scale(0.98);
  transition: opacity 1s var(--ease-std), transform 1.1s var(--ease), box-shadow 0.5s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (hover: hover) {
  .js .card.reveal.is-visible:hover { transform: translate3d(0, -4px, 0); }
  .js .plan.reveal.is-visible:hover { transform: translate3d(0, -6px, 0); }
}
@media (min-width: 861px) {
  .js .plan.reveal.is-visible[aria-checked="true"] { transform: translate3d(0, -6px, 0) scale(1.02); }
}

/* ===================== Small screens ===================== */
@media (max-width: 420px) {
  body { font-size: 16px; }
  .hero { padding-top: 40px; padding-bottom: 64px; }
  .hero__cta .btn, .cta__btns .btn { flex: 1 1 100%; }
  .nav__inner { gap: 12px; padding-left: 14px; }
  .status { gap: 10px; padding-left: 14px; font-size: 14px; }
  .plan { padding: 24px 20px; }
}
@media (max-width: 359px) {
  .nav__inner { gap: 8px; padding: 0 6px 0 12px; }
  .nav__logo { gap: 8px; font-size: 17px; }
  .nav .btn--sm { padding: 0 12px; }
}

/* ===================== Слабые устройства ===================== */
.lite { --blur: 18px; }
.lite .blob { animation-duration: 90s; }
.lite .blob--4, .lite .blob--5 { display: none; }
.lite .orb__ring--3 { display: none; }
.lite .hero__title .grad { animation: rise 1.2s var(--ease) 0.08s both; }

/* ===================== Без backdrop-filter ===================== */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  :root { --glass-bg: rgba(28, 28, 40, 0.82); --nav-bg: rgba(20, 20, 30, 0.9); }
  @media (prefers-color-scheme: light) {
    :root { --glass-bg: rgba(255, 255, 255, 0.86); --nav-bg: rgba(255, 255, 255, 0.92); }
  }
}

/* ===================== Reduced motion ===================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .pulse::after { display: none; }
  .blob { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__content, .orb { transform: none !important; }
  .hero__content { opacity: 1 !important; }
  .orb__liquid { filter: none !important; }
}

/* =====================================================================
   Общая система для всех страниц: index, order, guide, go
   ===================================================================== */

/* без JS ответы FAQ открыты (раньше — inline <noscript><style>, теперь CSP без unsafe-inline) */
html:not(.js) .faq__a[hidden] { display: block; }
html:not(.js) .faq__icon { display: none; }

/* флаги стран */
.flag--se {
  background:
    linear-gradient(90deg, transparent 0 31%, #fecc00 0 44%, transparent 0),
    linear-gradient(180deg, #006aa7 0 40%, #fecc00 0 60%, #006aa7 0);
}
.flag--fi {
  background:
    linear-gradient(90deg, transparent 0 28%, #1a4fa0 0 46%, transparent 0),
    linear-gradient(180deg, #fff 0 39%, #1a4fa0 0 61%, #fff 0);
}
.flag--cz {
  /* флаг Чехии: синий клин от древка до середины, белая и красная полосы */
  background:
    linear-gradient(to top right, #11457e 50%, transparent 0) 0 0 / 50% 51% no-repeat,
    linear-gradient(to bottom right, #11457e 50%, transparent 0) 0 100% / 50% 51% no-repeat,
    linear-gradient(180deg, #fff 0 50%, #d7141a 0);
}
.flag--us {
  /* упрощённый флаг США: синий кантон + полосы */
  background:
    linear-gradient(#24356b, #24356b) 0 0 / 44% 54% no-repeat,
    repeating-linear-gradient(180deg, #b22234 0 15.4%, #fff 0 30.8%);
}
.flag--ru { background: linear-gradient(180deg, #fff 0 33.4%, #0039a6 0 66.6%, #d52b1e 0); }
.locs__on .pulse { margin-left: 2px; }
.locs .flag { margin-right: 0; }

/* иконка в кнопке, загрузка */
.btn__ico { flex: 0 0 auto; }
.btn__spin {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45); border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}
.btn.is-loading .btn__spin { display: inline-block; }
.btn.is-loading { pointer-events: none; filter: saturate(0.85); }
.btn[disabled] { cursor: default; }
.btn.is-done { box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 0 2px var(--save), 0 8px 24px rgba(0, 0, 0, 0.15); }

/* кнопка-иконка «закрыть» */
.icon-btn {
  position: relative; flex: 0 0 auto;
  width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%;
  background: var(--chip-bg); cursor: pointer; color: var(--text);
  transition: background 0.3s var(--ease-std), transform 0.5s var(--spring);
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { background: rgba(123, 97, 255, 0.22); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn span::before, .icon-btn span::after {
  content: ""; position: absolute; left: 12px; right: 12px; top: 50%; height: 1.75px; margin-top: -0.875px;
  border-radius: 2px; background: currentColor; transform: rotate(45deg);
}
.icon-btn span::after { transform: rotate(-45deg); }
.icon-btn--sm { width: 30px; height: 30px; }
.icon-btn--sm span::before, .icon-btn--sm span::after { left: 9px; right: 9px; }

/* выбор способа в блоке покупки */
.buy__btns { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) { .buy__btns { width: 100%; flex-direction: column; } }

/* ===================== Шторка / модалка ===================== */
.sheet {
  width: min(540px, calc(100% - 32px)); max-width: none;
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  margin: auto; padding: 0; border: 0;
  background: transparent; color: var(--text);
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: none;
}
.sheet::-webkit-scrollbar { display: none; }
.sheet::backdrop {
  background: rgba(5, 5, 12, 0.5);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
}
.sheet[open] .sheet__panel { animation: sheetIn 0.55s var(--ease) both; }
.sheet[open]::backdrop { animation: fadeIn 0.4s var(--ease) both; }
@keyframes sheetIn { from { opacity: 0; transform: translate3d(0, 24px, 0) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.has-sheet, .has-sheet body { overflow: hidden; }
.sheet__panel {
  padding: clamp(22px, 4vw, 32px);
  border-radius: 32px;
  --glass-bg: var(--sheet-bg, #191922);
  --glass-tint: transparent;
}
@media (prefers-color-scheme: light) { .sheet__panel { --glass-bg: #fbfbfd; --glass-tint: transparent; } }
.sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sheet__kicker { font-size: 14px; font-weight: 600; color: var(--muted); }
.sheet__title { margin-top: 4px; font-size: clamp(24px, 5vw, 30px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
/* телефон: форма на весь экран — клавиатура iOS не сдвигает и не режет её */
@media (max-width: 560px) {
  .sheet { width: 100%; height: 100%; max-height: none; margin: 0; overflow: hidden; }
  .sheet__panel {
    height: 100%; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    border-radius: 0;
    padding-top: calc(18px + env(safe-area-inset-top));
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
  }
  .sheet[open] .sheet__panel { animation: fadeIn 0.3s var(--ease) both; }
}
@keyframes sheetUp { from { transform: translate3d(0, 100%, 0); } to { transform: none; } }

/* ===================== Формы ===================== */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field[hidden] { display: none; } /* иначе display: grid перебивает hidden — так «Продлить мой ключ» показывалась всем */
.field__label { font-size: 15px; font-weight: 600; }
.field__hint { font-size: 13px; color: var(--muted); line-height: 1.4; }
.field__error { font-size: 14px; font-weight: 600; color: var(--danger); }
.field__error button.link { padding: 0; border: 0; background: none; font: inherit; color: var(--link); text-decoration: underline; cursor: pointer; } /* «может быть, …@gmail.com?» */
.field--trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.input {
  width: 100%; min-width: 0; min-height: 54px; padding: 0 18px;
  border: 0; border-radius: 18px;
  font: inherit; font-size: 17px; color: var(--text);
  background: var(--input-bg);
  box-shadow: inset 0 0 0 1px var(--btn-glass-ring), inset 0 1px 2px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: var(--muted); opacity: 0.8; }
.input:hover { box-shadow: inset 0 0 0 1px rgba(123, 97, 255, 0.45); }
.input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--a2), 0 0 0 4px rgba(123, 97, 255, 0.18); }
.input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--danger); }
.input[readonly] { font-size: 15px; text-overflow: ellipsis; }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; line-height: 1.45; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
  position: relative; flex: 0 0 auto; width: 24px; height: 24px; margin-top: -1px; border-radius: 8px;
  background: var(--input-bg); box-shadow: inset 0 0 0 1.5px var(--muted);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.check__box::after {
  content: ""; position: absolute; left: 7px; top: 6px; width: 10px; height: 6px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0); transition: transform 0.45s var(--spring);
}
.check input:checked + .check__box { background: linear-gradient(135deg, var(--a1), var(--a2)); box-shadow: 0 4px 12px rgba(91, 97, 255, 0.4); }
.check input:checked + .check__box::after { transform: rotate(-45deg) scale(1); }
.check input:focus-visible + .check__box { outline: 3px solid var(--focus); outline-offset: 3px; }
.check input[aria-invalid="true"] + .check__box { box-shadow: inset 0 0 0 2px var(--danger); }
.check__text { color: var(--muted); }
.terms {
  margin-top: 4px; padding: 14px 16px; border-radius: 16px;
  background: var(--chip-bg); color: var(--muted); font-size: 14px; line-height: 1.5;
}
.terms ul { display: grid; gap: 6px; }
.terms li { position: relative; padding-left: 16px; }
.terms li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--a2); }
.form__alert {
  display: grid; gap: 12px; justify-items: start;
  padding: 14px 16px; border-radius: 16px;
  background: var(--warn-bg); box-shadow: inset 0 0 0 1px var(--warn-ring);
  font-size: 15px; line-height: 1.45;
}
.form__alert[hidden] { display: none; }
.form__submit { width: 100%; }
.form__foot { font-size: 13px; color: var(--muted); text-align: center; line-height: 1.45; }

/* ===================== Плашка заявки и тосты ===================== */
.order-pill {
  position: fixed; z-index: 60; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px;
  max-width: calc(100% - 32px); padding: 8px 8px 8px 16px;
  border-radius: 999px; font-size: 15px; font-weight: 600;
  transform: translate3d(-50%, 140%, 0); opacity: 0;
  transition: transform 0.7s var(--spring), opacity 0.4s var(--ease);
}
.order-pill.is-on { transform: translate3d(-50%, 0, 0); opacity: 1; }
.order-pill[hidden] { display: none; }
.order-pill__dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: #f5b83d; box-shadow: 0 0 10px #f5b83d; animation: breathe 2.4s ease-in-out infinite; }
.order-pill.is-ready .order-pill__dot { background: #34d399; box-shadow: 0 0 12px #34d399; }
.order-pill__link { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; color: inherit; text-decoration: none; }
.order-pill__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-pill__short { display: none; }
.order-pill__close {
  flex: 0 0 auto; padding: 7px 14px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--text); background: var(--chip-bg);
}
.order-pill__close:hover { background: var(--line); }
@media (max-width: 560px) {
  .order-pill__full { display: none; }
  .order-pill__short { display: inline; }
}

.toast {
  position: fixed; z-index: 90; left: 50%; top: calc(14px + env(safe-area-inset-top));
  max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 999px;
  font-size: 15px; font-weight: 600; text-align: center;
  transform: translate3d(-50%, -160%, 0); opacity: 0; pointer-events: none;
  transition: transform 0.6s var(--spring), opacity 0.3s var(--ease);
}
.toast.is-on { transform: translate3d(-50%, 0, 0); opacity: 1; }

/* ===================== Внутренние страницы ===================== */
.page { padding: clamp(24px, 5vw, 56px) 0 clamp(72px, 10vw, 120px); }
.page-head { text-align: center; margin: 0 auto clamp(28px, 5vw, 48px); max-width: 760px; }
.page__title {
  font-size: clamp(36px, 8vw, 72px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 800;
}
.page__sub { margin-top: 16px; color: var(--muted); font-size: clamp(17px, 2.2vw, 21px); line-height: 1.45; }
.panel { padding: clamp(22px, 4vw, 40px); border-radius: 32px; }
.panel + .panel { margin-top: 20px; }
.section-h { font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; margin-bottom: 18px; }
.nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.muted-s { font-size: 14px; color: var(--muted); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row--center { justify-content: center; }
.skel { border-radius: 12px; background: linear-gradient(90deg, var(--chip-bg), rgba(255, 255, 255, 0.14), var(--chip-bg)); background-size: 200% 100%; animation: skel 1.4s ease-in-out infinite; }
@keyframes skel { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ===================== Заказ ===================== */
.order { max-width: 680px; margin: 0 auto; }
.order__card { text-align: center; }
.order__title { font-size: clamp(28px, 6vw, 44px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.08; }
.order__text { margin: 14px auto 0; max-width: 500px; color: var(--muted); font-size: 17px; line-height: 1.5; }
.order__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: var(--chip-bg); font-size: 14px; color: var(--muted); }
.chip b { color: var(--text); font-weight: 600; }
.order__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.order__note { margin-top: 18px; font-size: 13px; color: var(--muted); }
.order__pay { margin: 24px auto 0; max-width: 520px; padding: 16px 18px; border-radius: 18px; background: var(--chip-bg); text-align: left; font-size: 15px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.order__pay b { display: block; margin-bottom: 4px; }

/* ожидание: пульсирующие кольца */
.waiter { position: relative; width: 132px; height: 132px; margin: 6px auto 26px; }
.waiter__core {
  position: absolute; inset: 34px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.7), transparent 40%), linear-gradient(135deg, var(--a1), var(--a3));
  box-shadow: 0 0 40px rgba(123, 97, 255, 0.6);
  animation: breathe 2.6s ease-in-out infinite;
}
.waiter__ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 55%, var(--a1), var(--a2), var(--a3));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  animation: spin 1.6s linear infinite;
}
.waiter__ring--2 { inset: 14px; opacity: 0.55; animation-duration: 2.6s; animation-direction: reverse; }
.waiter__wave { position: absolute; inset: 34px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(123, 97, 255, 0.6); animation: wave 2.6s var(--ease) infinite; }
.waiter__wave--2 { animation-delay: 1.3s; }
@keyframes wave { from { transform: scale(1); opacity: 0.9; } to { transform: scale(2.3); opacity: 0; } }
.dots::after { content: ""; display: inline-block; width: 1.2em; text-align: left; animation: dots 1.6s steps(4, end) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75%, 100% { content: "..."; } }

/* итоговые иконки */
.badge-ico {
  width: 84px; height: 84px; margin: 4px auto 22px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.45), transparent 45%), linear-gradient(135deg, #2fd28c, #18a86b);
  box-shadow: 0 16px 40px rgba(24, 168, 107, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  animation: popIn 0.8s var(--spring) both;
}
.badge-ico--bad { background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.4), transparent 45%), linear-gradient(135deg, #ff7a7a, #e0475a); box-shadow: 0 16px 40px rgba(224, 71, 90, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.badge-ico--muted { background: var(--chip-bg); color: var(--muted); box-shadow: inset 0 1px 0 var(--glass-hi); }
.badge-ico svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.7s var(--ease) 0.25s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes popIn { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }

.until { margin-top: 10px; font-size: clamp(18px, 3vw, 22px); color: var(--muted); }
.until b { color: var(--text); }

/* ссылка подписки */
.sub { margin-top: 28px; text-align: left; }
.sub__label { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.sub__row { display: flex; gap: 10px; }
.sub__row .input { flex: 1 1 auto; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
.sub__row .btn { flex: 0 0 auto; }
@media (max-width: 480px) { .sub__row { flex-direction: column; } .sub__row .btn { width: 100%; } }

.access { display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 4vw, 32px); align-items: center; margin-top: 26px; text-align: left; }
.qr {
  width: 188px; padding: 14px; border-radius: 24px; background: #fff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.qr svg { width: 100%; height: auto; }
.qr__cap { margin-top: 8px; font-size: 12px; color: #6e6e73; text-align: center; }
.qr--off { display: none; }
.apps { display: grid; gap: 10px; }
.apps__more { display: flex; flex-wrap: wrap; gap: 8px; }
.apps .btn { width: 100%; }
.app-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 6px;
  border-radius: 999px; background: var(--chip-bg); font-size: 14px; font-weight: 600;
  transition: background 0.3s var(--ease-std), transform 0.5s var(--spring);
}
.app-chip:hover { background: rgba(123, 97, 255, 0.22); }
.app-chip:active { transform: scale(0.96); }
@media (max-width: 600px) {
  .access { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .apps { width: 100%; }
  .apps__more { justify-content: center; }
}

.confetti { position: fixed; inset: 0; z-index: 80; pointer-events: none; width: 100%; height: 100%; }

.recent { margin-top: 18px; display: grid; gap: 8px; text-align: left; }
.recent a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--chip-bg); font-size: 15px; }
.recent a:hover { background: rgba(123, 97, 255, 0.18); }

/* ===================== Монограммы клиентов ===================== */
.mono {
  --h: 250;
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 15px;
  display: grid; place-items: center;
  font-size: 19px; font-weight: 800; letter-spacing: -0.04em; color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), transparent 55%),
    linear-gradient(140deg, hsl(var(--h) 85% 62%), hsl(calc(var(--h) + 40) 75% 48%));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 20px hsl(var(--h) 70% 40% / 0.35);
}
.mono--sm { width: 28px; height: 28px; border-radius: 9px; font-size: 12px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5); }

/* ===================== Гайд ===================== */
.seg-wrap { display: flex; justify-content: center; margin-bottom: clamp(28px, 5vw, 44px); }
.seg {
  display: flex; gap: 4px; padding: 5px; border-radius: 999px;
  max-width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.seg::-webkit-scrollbar { display: none; }
.seg__btn {
  position: relative; flex: 0 0 auto; min-height: 40px; padding: 0 16px;
  border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font-size: 15px; font-weight: 600; color: var(--muted); white-space: nowrap;
  scroll-snap-align: center;
  transition: color 0.3s var(--ease-std), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.seg__btn:hover { color: var(--text); }
.seg__btn[aria-selected="true"] {
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.25), transparent 55%), linear-gradient(100deg, var(--a1), var(--a2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 6px 16px rgba(91, 97, 255, 0.35);
}
.seg__btn .seg__auto { display: inline-block; margin-left: 6px; width: 6px; height: 6px; border-radius: 50%; background: #34d399; vertical-align: 2px; }

.tabpanel[hidden] { display: none; }
.tabpanel.is-in > * { animation: rise 0.7s var(--ease) both; }
.tabpanel.is-in > *:nth-child(2) { animation-delay: 0.06s; }
.tabpanel.is-in > *:nth-child(3) { animation-delay: 0.12s; }
.tabpanel.is-in > *:nth-child(4) { animation-delay: 0.18s; }

.callout {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; border-radius: 20px; margin-bottom: 20px;
  background: var(--warn-bg); box-shadow: inset 0 0 0 1px var(--warn-ring);
  font-size: 15px; line-height: 1.5;
}
.callout__ico { flex: 0 0 auto; font-size: 20px; line-height: 1.3; }
.callout a { color: var(--link); font-weight: 600; }

.clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.client { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 26px; min-width: 0; }
.client--rec { box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 0 2px rgba(123, 97, 255, 0.75), 0 24px 60px rgba(91, 97, 255, 0.28); }
.client__head { display: flex; gap: 14px; align-items: center; min-width: 0; }
.client__name { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.client__sub { font-size: 13px; color: var(--muted); }
.client__badge { display: inline-block; margin-left: 6px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #fff; vertical-align: 3px; background: linear-gradient(100deg, var(--a1), var(--a2)); }
.client__note { font-size: 14px; color: var(--muted); line-height: 1.45; }
.client__dl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.dl {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border-radius: 999px; background: var(--chip-bg); font-size: 14px; font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--btn-glass-ring);
  transition: background 0.3s var(--ease-std), transform 0.5s var(--spring);
}
.dl:hover { background: rgba(123, 97, 255, 0.22); }
.dl:active { transform: scale(0.96); }
.dl--main { color: #fff; background: linear-gradient(100deg, var(--a1), var(--a2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.dl--main:hover { background: linear-gradient(100deg, var(--a1), var(--a2)); filter: brightness(1.08); }
.dl__note { flex-basis: 100%; font-size: 12px; color: var(--muted); margin-top: -2px; }
.client__open { width: 100%; }

.gsteps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: gs; }
.gstep { padding: 20px; border-radius: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.gstep__ill { height: 120px; border-radius: 18px; display: grid; place-items: center; background: var(--chip-bg); overflow: hidden; }
.gstep__ill svg { width: 100%; height: 100%; }
.gstep__num {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 14px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--a1), var(--a2));
}
.gstep__t { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.gstep__d { font-size: 15px; color: var(--muted); line-height: 1.45; }
.gstep__d b { color: var(--text); font-weight: 600; }
/* Шаг-ссылка: нажимается вся карточка (ссылка в заголовке растянута на карточку), вид тот же */
.gstep--link { position: relative; transition: transform .25s var(--ease, ease), box-shadow .25s var(--ease, ease); }
.gstep__hit { color: inherit; text-decoration: none; }
.gstep--link > .gstep__t { position: static; z-index: auto; } /* иначе .glass > * делает заголовок опорой и слоем для ::after */
.gstep__hit::after { content: ""; position: absolute; inset: 0; border-radius: 24px; z-index: 4; }
.gstep__hit:focus-visible { outline: none; }
.gstep--link:has(.gstep__hit:focus-visible) { outline: 2px solid var(--a1); outline-offset: 3px; }
@media (hover: hover) { .gstep--link:hover { transform: translateY(-3px); } }
.gstep--link:active { transform: translateY(-1px) scale(.99); }
@media (prefers-reduced-motion: reduce) { .gstep--link, .gstep--link:hover, .gstep--link:active { transition: none; transform: none; } }
@media (max-width: 980px) { .gsteps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gsteps { grid-template-columns: 1fr; } .gstep { flex-direction: row; flex-wrap: wrap; align-items: center; } .gstep__ill { flex: 1 1 100%; height: 104px; } }

/* иллюстрации шагов (SVG, цвета из токенов) */
.ill-dev { fill: var(--ill-dev); stroke: var(--ill-line); stroke-width: 2; }
.ill-scr { fill: var(--ill-scr); }
.ill-acc { fill: url(#ill-grad); }
.ill-line { stroke: var(--ill-line); stroke-width: 2.5; stroke-linecap: round; fill: none; }
.ill-wh { fill: #fff; }
.ill-wh-s { stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.ill-muted { fill: var(--ill-line); opacity: 0.6; }
.ill-float { animation: illFloat 3.6s ease-in-out infinite; }
.ill-blink { animation: illBlink 2.4s ease-in-out infinite; }
@keyframes illFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes illBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.guide-sec { margin-top: clamp(48px, 8vw, 88px); }
.mysub { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; padding: 18px 20px; border-radius: 24px; }
.mysub__t { font-weight: 700; }
.mysub__d { font-size: 14px; color: var(--muted); }

/* ===================== Переходник /go ===================== */
.go { max-width: 560px; margin: 0 auto; text-align: center; }
.go .mono { width: 76px; height: 76px; border-radius: 22px; font-size: 28px; margin: 0 auto 20px; }
.go__spin { width: 26px; height: 26px; margin: 18px auto 0; border-radius: 50%; border: 3px solid var(--chip-bg); border-top-color: var(--a2); animation: spin 0.9s linear infinite; }
.go__fallback { margin-top: 26px; display: grid; gap: 12px; }
.go__fallback[hidden] { display: none; }
.go__fallback .btn { width: 100%; }
.go__hint { margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: var(--chip-bg); font-size: 14px; color: var(--muted); text-align: left; line-height: 1.5; }

/* ===================== Токены для новых компонентов ===================== */
:root {
  --danger: #ff6b7a;
  --input-bg: rgba(255, 255, 255, 0.06);
  --warn-bg: rgba(245, 184, 61, 0.1);
  --warn-ring: rgba(245, 184, 61, 0.28);
  --ill-dev: rgba(255, 255, 255, 0.08);
  --ill-scr: rgba(10, 10, 20, 0.55);
  --ill-line: rgba(255, 255, 255, 0.55);
}
@media (prefers-color-scheme: light) {
  :root {
    --danger: #d4243b;
    --input-bg: rgba(255, 255, 255, 0.75);
    --warn-bg: rgba(245, 170, 30, 0.12);
    --warn-ring: rgba(200, 130, 0, 0.25);
    --ill-dev: rgba(255, 255, 255, 0.9);
    --ill-scr: rgba(235, 235, 245, 0.95);
    --ill-line: rgba(60, 60, 90, 0.45);
  }
}

@media (max-width: 420px) {
  .order__actions .btn, .go__fallback .btn { width: 100%; }
  .client { padding: 18px; }
  .panel { border-radius: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .waiter__ring, .waiter__wave, .waiter__core, .dots::after, .ill-float, .ill-blink, .order-pill__dot { animation: none !important; }
  .skel { animation: none !important; }
}

/* ===================== Внутренние страницы: дополнения ===================== */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.inner main { min-height: calc(100vh - 220px); min-height: calc(100svh - 220px); }
.skel--card { height: 180px; }
.btn .mono--sm { margin-left: -12px; }
.btn--lg .mono--sm { margin-left: -18px; }
.order__extra { margin-top: 24px; text-align: left; }
.order__extra .mysub { margin-bottom: 0; }
.order__extra--top { margin: 18px 0 22px; }
.mysub--save { box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 0 2px rgba(123, 97, 255, 0.75), 0 18px 44px rgba(91, 97, 255, 0.22); }
.mysub--save .mysub__d { margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.apps__rec { font-size: 13px; color: var(--muted); margin-top: -2px; }
.apps__or { align-self: center; font-size: 13px; color: var(--muted); }
.field__opt { font-weight: 500; color: var(--muted); }
.order__text--left { margin-left: 0; text-align: left; max-width: none; }
.client__note--warn { padding: 10px 12px; border-radius: 14px; background: var(--warn-bg); box-shadow: inset 0 0 0 1px var(--warn-ring); color: var(--text); }
.guide-sec--steps { margin-top: clamp(40px, 6vw, 64px); }
.gsteps { list-style: none; padding: 0; margin: 0; }
.opts { display: grid; gap: 14px; margin-top: 22px; }
.opt { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 22px; background: var(--chip-bg); min-width: 0; }
.opt .gstep__num { flex: 0 0 auto; }
.opt > div { min-width: 0; }
.opt__t { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.opt__d { margin: 6px 0 12px; font-size: 15px; color: var(--muted); line-height: 1.5; }
.opt__d:last-child { margin-bottom: 0; }
.opt__d b { color: var(--text); font-weight: 600; }
.go__install { display: grid; gap: 10px; justify-items: center; }
.go__install[hidden] { display: none; }
.go__install .dl__note { text-align: center; }
.go__hint .link { display: inline; }
.go__hint[hidden], .mysub[hidden], .order__note[hidden] { display: none; }
.order__note { gap: 8px; }
.inner .cta { padding: 0; }
.client__name { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .order__actions .btn, .go__fallback .btn, .mysub .btn, .apps .btn, .cta__btns .btn, .opt .dl { white-space: normal; text-align: center; line-height: 1.25; }
  .mysub .row { width: 100%; }
  .mysub .btn { flex: 1 1 100%; }
  .order__title { overflow-wrap: anywhere; }
}
/* 320–359px: капсула статуса в hero была 312px при колонке 288px — распирала hero__content, и заголовок обрезался справа */
@media (max-width: 359px) {
  .status { gap: 6px; padding: 8px 8px 8px 10px; font-size: 13px; }
}


/* ---------- Тарифы на телефоне: компактные строки «1 месяц — 100 ₽ ◯» ---------- */
@media (max-width: 640px) {
  .plans { grid-template-columns: 1fr; gap: 10px; }
  .plan {
    display: grid; grid-template-columns: 1fr auto auto;
    grid-template-areas: "top price check";
    align-items: center; column-gap: 14px; row-gap: 3px;
    padding: 16px 16px 16px 20px; border-radius: 22px;
  }
  .plan__top { grid-area: top; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; }
  .plan__name { font-size: 18px; }
  .plan__badge { font-size: 11px; padding: 3px 8px; }
  .plan__price { grid-area: price; margin: 0; font-size: clamp(26px, 8vw, 30px); white-space: nowrap; }
  .plan__per { display: none; }
  .plan__foot { grid-area: check; margin: 0; min-height: 0; width: auto; }
  .plan__foot .plan__save { display: none; }
  .plan__old { margin: 0 0 2px; font-size: 14px; text-align: right; }
  .sale { padding: 14px 16px; border-radius: 20px; }
  .sale__text { font-size: 17px; }
  .sale__timer { margin-left: 0; }
  .plan[aria-checked="true"] { transform: none; box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 0 2px var(--a2), 0 14px 40px rgba(91, 97, 255, 0.28); }
}

/* ---------- Светлая тема: настоящее стекло, как в iOS ---------- */
@media (prefers-color-scheme: light) {
  :root {
    --glass-bg: rgba(255, 255, 255, 0.26);
    --glass-tint: rgba(255, 255, 255, 0.1);
    --glass-sheen: rgba(255, 255, 255, 0.7);
    --glass-hi: rgba(255, 255, 255, 1);
    --glass-edge-1: rgba(255, 255, 255, 1);
    --glass-edge-2: rgba(255, 255, 255, 0.45);
    --glass-shadow: 0 18px 50px rgba(70, 60, 160, 0.14), 0 2px 6px rgba(40, 40, 90, 0.06);
    --glass-spec: rgba(255, 255, 255, 0.85);
    --muted: #4d4d55;
    --blob-1: rgba(80, 140, 255, 0.55);
    --blob-2: rgba(140, 110, 255, 0.5);
    --blob-3: rgba(215, 140, 255, 0.42);
    --blob-4: rgba(80, 200, 255, 0.38);
    --blob-5: rgba(255, 150, 205, 0.36);
    --veil: rgba(245, 245, 247, 0.08);
    --blur: 26px;
  }
  .glass {
    -webkit-backdrop-filter: blur(var(--blur)) saturate(210%) brightness(1.04);
    backdrop-filter: blur(var(--blur)) saturate(210%) brightness(1.04);
    box-shadow:
      inset 0 1px 0 var(--glass-hi),
      inset 0 0 0 0.5px rgba(255, 255, 255, 0.6),
      inset 0 -10px 24px rgba(255, 255, 255, 0.18),
      var(--glass-shadow);
  }
  .plan[aria-checked="true"] {
    background:
      radial-gradient(120% 90% at 50% 0%, rgba(123, 97, 255, 0.22), transparent 70%),
      linear-gradient(180deg, var(--glass-sheen), transparent 42%),
      var(--glass-bg);
  }
}
.go__logo { width: 64px; height: 70px; margin: 0 auto 14px; display: block; filter: drop-shadow(0 12px 28px rgba(91, 85, 255, 0.35)); }

/* переключатель платформ прокручивается: стеклянные обводка и блик не должны уезжать вместе с кнопками */
.seg.glass::before, .seg.glass::after { display: none; }
.seg.glass { box-shadow: inset 0 0 0 1px var(--glass-edge-2), inset 0 1px 0 var(--glass-hi), var(--glass-shadow); }

/* ---------- Инструкция: приложение + три шага ---------- */
.guide-app { max-width: 560px; margin: 0 auto clamp(26px, 4vw, 40px); }
.client--solo { padding: 24px; }
.client--solo .client__dl { margin-top: 2px; }
.client--solo .client__open { width: 100%; justify-content: center; }
.client--alt { margin-top: 12px; padding: 16px 18px; gap: 10px; border-radius: 22px; }
.client--alt .client__name { font-size: 17px; }
.client--alt .client__dl { margin-top: 0; }
.client--alt .client__open { width: 100%; justify-content: center; }
.apps-more { margin-top: 12px; text-align: center; color: var(--muted); font-size: 14px; font-weight: 600; }
.apps-more summary { cursor: pointer; list-style: none; display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; }
.apps-more summary::-webkit-details-marker { display: none; }
.apps-more summary::after { content: "›"; transition: transform 0.3s var(--ease); }
.apps-more[open] summary::after { transform: rotate(90deg); }
.apps-more__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
/* /guide на компьютере: заголовок в одну строку, сначала три шага, под ними приложения в ряд — без пустоты по бокам (15.10.2026).
   На телефоне — как было: одна колонка, приложения сверху. */
@media (min-width: 821px) {
  .page-head--guide { max-width: 1080px; margin-bottom: 20px; }
  .page-head--guide .page__title { font-size: clamp(40px, 4.6vw, 60px); }
  .page-head--guide + .seg-wrap { margin-bottom: 24px; }
  .tabpanel { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
  .tabpanel .gsteps { order: -1; }
  .guide-app { max-width: none; margin: 0; display: grid; grid-template-columns: 1fr; gap: 16px; }
  .guide-app:has(.client--alt) { grid-template-columns: 1.25fr 1fr; }
  .guide-app .client--alt { margin-top: 0; }
  .guide-app .apps-more { grid-column: 1 / -1; margin-top: 0; }
  .tabpanel .gstep__ill { height: 100px; }
}
.app-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border-radius: 999px; color: var(--text); font-weight: 600; font-size: 14px; }
.gsteps--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .gsteps--3 { grid-template-columns: 1fr; } }

/* ===================== Поддержка: чат ===================== */
.chat-fab {
  position: fixed; z-index: 60;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  width: 56px; height: 56px; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  color: #fff; background: var(--grad);
  box-shadow: 0 10px 28px rgba(123, 97, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.25s var(--spring), box-shadow 0.2s;
}
.chat-fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 34px rgba(123, 97, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.chat-fab:active { transform: scale(0.96); }
.chat-fab:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.chat-fab__dot {
  position: absolute; top: 4px; right: 4px; width: 13px; height: 13px; border-radius: 50%;
  background: #ff4d6d; box-shadow: 0 0 0 2px var(--bg); transform: scale(0); transition: transform 0.25s var(--spring);
}
.chat-fab--unread .chat-fab__dot { transform: scale(1); }

.chat {
  display: flex; flex-direction: column; overflow: hidden;
  color: var(--text);
}
.chat--float {
  position: fixed; z-index: 61;
  right: max(16px, env(safe-area-inset-right)); bottom: calc(max(16px, env(safe-area-inset-bottom)) + 68px);
  width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100dvh - 120px));
  border-radius: var(--r-lg);
  background: var(--menu-bg);
  border: 1px solid var(--line);
  box-shadow: var(--glass-shadow);
  opacity: 0; transform: translateY(12px) scale(0.98); transform-origin: bottom right;
  transition: opacity 0.2s var(--ease), transform 0.25s var(--ease);
}
.chat--float.is-open { opacity: 1; transform: none; }
/* атрибут hidden должен реально убирать окно — иначе прозрачный слой перекрывает страницу */
.chat--float[hidden] { display: none !important; }
.chat--inline { height: min(620px, 72dvh); border-radius: var(--r-lg); }

.chat__head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 14px 12px 16px; border-bottom: 1px solid var(--line);
}
.chat__ava {
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: var(--grad);
}
.chat__ava svg { width: 20px; height: 20px; }
.chat__who { flex: 1; min-width: 0; }
.chat__name { margin: 0; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.chat__status { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.chat__close {
  width: 36px; height: 36px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: var(--muted); background: var(--chip-bg);
}
.chat__close:hover { color: var(--text); }

.chat__log {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  padding: 14px; display: flex; flex-direction: column; gap: 8px;
}
.msg { max-width: 82%; padding: 9px 12px 7px; border-radius: 18px; line-height: 1.4; font-size: 15px; }
.msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg__time { display: block; margin-top: 3px; font-size: 11px; opacity: 0.6; text-align: right; }
.msg--support { align-self: flex-start; background: var(--chip-bg); border-bottom-left-radius: 6px; }
.msg--me { align-self: flex-end; color: #fff; background: linear-gradient(135deg, #4f8dff, #7b61ff); border-bottom-right-radius: 6px; }
.msg--pending { opacity: 0.6; }
.msg--hello { color: var(--muted); }

.chat__form { padding: 10px 12px 12px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.chat__contact,
.chat__input {
  width: 100%; box-sizing: border-box; font: inherit; color: var(--text);
  background: var(--chip-bg); border: 1px solid var(--line); border-radius: 14px;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.chat__contact { font-size: 13.5px; padding: 9px 12px; }
.chat__row { display: flex; gap: 8px; align-items: flex-end; }
.chat__input { flex: 1; resize: none; font-size: 16px; padding: 10px 12px; line-height: 1.35; max-height: 140px; }
.chat__contact:focus, .chat__input:focus { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(127, 178, 255, 0.22); }
.chat__send {
  width: 44px; height: 44px; flex: 0 0 auto; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: var(--grad);
  transition: transform 0.2s var(--spring);
}
.chat__send:active { transform: scale(0.94); }
.chat__err { margin: 0; font-size: 13px; color: #ff6b6b; }

@media (max-width: 560px) {
  .chat--float {
    right: 0; bottom: 0; width: 100%; height: 100dvh; border-radius: 0; border: 0;
    padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom);
  }
  body:has(.chat--float.is-open) .chat-fab { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .chat--float, .chat-fab, .chat-fab__dot { transition: none; }
}

/* страница /support */
.support-page { max-width: 720px; margin: 0 auto; }
.support-page__lead { color: var(--muted); margin: 0 0 18px; }
.support-page__alt { margin-top: 14px; font-size: 14px; color: var(--muted); text-align: center; }

/* ===================== Документы: /privacy, /terms ===================== */
.legal { max-width: 760px; margin: 0 auto; }
.legal__body { padding: clamp(22px, 4vw, 40px); border-radius: var(--r-lg); font-size: 16px; line-height: 1.6; }
.legal__body h2 { margin: 28px 0 10px; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.legal__body h2:first-of-type { margin-top: 22px; }
.legal__body p { margin: 0 0 10px; color: var(--text); }
.legal__body ul { margin: 0 0 12px; padding-left: 22px; }
.legal__body li { margin: 4px 0; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 13px; }
.footer__legal a { color: var(--muted); }
.footer__legal a:hover { color: var(--text); }
/* ПК: две ровные строки — логотип и ссылки, ниже © и документы. Раньше документы стояли в одной
   строке со ссылками, но с отступом сверху (он для телефона) — и съезжали вниз */
@media (min-width: 761px) {
  .footer__inner { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px 32px; }
  .footer__logo { grid-area: 1 / 1; margin: 0; }
  .footer__links { grid-area: 1 / 2; justify-content: flex-end; }
  .footer__copy { grid-area: 2 / 1; width: auto; font-size: 13px; }
  .footer__legal { grid-area: 2 / 2; justify-content: flex-end; margin: 0; gap: 6px 24px; }
}

/* тексты про оплату: перевод (по умолчанию) или касса — по флагу online_pay из /api/plans */
.pay-online { display: none; }
html[data-pay="online"] .pay-online { display: inline; }
html[data-pay="online"] .pay-manual { display: none; }
