/* ═══ tokens ═══════════════════════════════════════════════════════ */
:root {
  --ink: #05041a;
  --ink-2: #0a0824;
  --violet: #8b5cff;
  --magenta: #d86bff;
  --cyan: #4adcff;
  --mint: #6ff0c8;

  --txt: #eef0ff;
  --muted: rgba(238, 240, 255, .62);
  --faint: rgba(238, 240, 255, .42);
  --line: rgba(255, 255, 255, .10);
  --line-soft: rgba(255, 255, 255, .06);

  --glass: rgba(22, 20, 56, .52);
  --glass-2: rgba(28, 25, 68, .68);

  --grad: linear-gradient(102deg, var(--magenta), var(--violet) 44%, var(--cyan));
  --grad-soft: linear-gradient(140deg, rgba(216, 107, 255, .16), rgba(74, 220, 255, .12));

  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;

  --pad: clamp(18px, 4vw, 40px);
  --shadow: 0 30px 80px -30px rgba(5, 3, 25, .9);
}

/* Nunito с нашего домена: Google Fonts из РФ часто не открывается
 * и Safari тогда ~30 секунд не рисует страницу после обновления. */
@font-face {
  font-family: Nunito;
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/nunito-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Nunito;
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Nunito;
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

html {
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
  background: var(--ink);
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: none;
}
html.i18n-wait { background: #05041a; }
html.i18n-wait body { visibility: hidden; }
html.is-locked,
html.is-locked body {
  overflow: hidden;
  overscroll-behavior: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.modal,
.modal__backdrop {
  overflow: hidden;
  scrollbar-width: none;
}
.modal::-webkit-scrollbar,
.modal__backdrop::-webkit-scrollbar { display: none; }

body {
  margin: 0;
  min-height: 100%;
  max-width: 100%;
  background: transparent;
  color: var(--txt);
  font: 400 16px/1.6 Nunito, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: none;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px));
}
html.tg-bar-off body {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(120% 70% at 50% -10%, #2a2062 0%, #150f3c 42%, #07061c 78%, #05041a 100%);
}

img, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { margin: 0; font-weight: 900; letter-spacing: -.02em; line-height: 1.08; }
h1 { font-size: clamp(38px, 5.6vw, 66px); }
h2 { font-size: clamp(28px, 3.6vw, 44px); }
h3 { font-size: clamp(19px, 1.5vw, 22px); }
p { margin: 0; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; }

::selection { background: rgba(139, 92, 255, .45); }

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

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  background: var(--violet);
  z-index: 99;
}
.skip:focus {
  position: fixed;
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 12px 18px;
  clip: auto;
  overflow: visible;
}

.wrap {
  width: min(1200px, 100% - clamp(28px, 6vw, 96px));
  margin-inline: auto;
}
.wrap--narrow { width: min(820px, 100% - clamp(28px, 6vw, 96px)); }

/* ═══ background fx ════════════════════════════════════════════════ */
#stars {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  isolation: isolate;
  contain: paint;
}
.aurora span {
  position: absolute;
  width: 46vw;
  height: 46vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .34;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  animation: drift 26s ease-in-out infinite;
}
.aurora span:nth-child(1) { top: -12vw; left: -8vw;  background: #7a3cff; }
.aurora span:nth-child(2) { top: 32vw; right: -14vw; background: #1f7fd6; animation-delay: -9s; }
.aurora span:nth-child(3) { top: 96vw; left: 22vw;   background: #c14bff; animation-delay: -17s; opacity: .22; }

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(3vw, 4vw, 0); }
}

@media (max-width: 720px) {
  .aurora span {
    animation: none;
    filter: none;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    width: 78vw;
    height: 78vw;
    opacity: 1;
    background: none;
  }
  .aurora span:nth-child(1) {
    top: -28vw;
    left: -24vw;
    background: radial-gradient(circle, rgba(122, 60, 255, .28) 0%, rgba(122, 60, 255, 0) 68%);
  }
  .aurora span:nth-child(2) {
    top: 16vw;
    right: -30vw;
    background: radial-gradient(circle, rgba(31, 127, 214, .28) 0%, rgba(31, 127, 214, 0) 68%);
  }
  .aurora span:nth-child(3) {
    top: 80vw;
    left: 6vw;
    background: radial-gradient(circle, rgba(193, 75, 255, .2) 0%, rgba(193, 75, 255, 0) 68%);
  }
}

/* ═══ buttons ══════════════════════════════════════════════════════ */
.btn {
  --btn-bg: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.2, .8, .3, 1), box-shadow .25s, background .25s, opacity .2s;
  white-space: nowrap;
}
.btn[hidden] { display: none !important; }
.btn:active { transform: scale(.97); }
.btn--lg { padding: 16px 30px; font-size: 17px; }
.btn--full { width: 100%; }

.btn--primary {
  background: var(--grad);
  color: #0a0524;
  box-shadow: 0 14px 34px -12px rgba(139, 92, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn--primary:hover { box-shadow: 0 20px 44px -12px rgba(139, 92, 255, .95), inset 0 1px 0 rgba(255, 255, 255, .6); }

.btn--glass {
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px var(--line);
  backdrop-filter: blur(12px);
}
.btn--glass:hover { background: rgba(255, 255, 255, .12); }

.btn--ghost { padding: 10px 16px; color: var(--muted); }
.btn--ghost:hover { color: var(--txt); }

.link {
  border: 0;
  background: none;
  padding: 0;
  color: var(--cyan);
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(74, 220, 255, .4);
  text-underline-offset: 3px;
}

/* ═══ topbar ═══════════════════════════════════════════════════════ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 14px 0;
  background: transparent;
}
.topbar.is-stuck {
  background: rgba(7, 6, 26, .72);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 var(--line-soft), 0 18px 40px -30px #000;
}

.topbar__inner { display: flex; align-items: center; gap: 20px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 21px;
  letter-spacing: -.03em;
}
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 4px 14px rgba(139, 92, 255, .6)); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  font-size: 15px;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--txt); background: rgba(255, 255, 255, .06); }
.nav__login { display: none; }
.nav__mascot { display: none; }

.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 2px;
}
.lang button {
  padding: 7px 8px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .04em;
  cursor: pointer;
}
.lang button:hover { color: var(--txt); }
.lang button.is-on {
  color: var(--txt);
  background: rgba(255, 255, 255, .08);
}

.lang--menu {
  position: relative;
  z-index: 8;
  display: block;
}
.lang--menu .lang__now {
  min-width: 42px;
  padding: 7px 12px;
  color: var(--txt);
  background: rgba(255, 255, 255, .08);
}
.lang--menu .lang__list {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  gap: 2px;
  min-width: 100%;
  padding: 10px 6px 6px;
  margin: 0;
  border-radius: 14px;
  background: rgba(12, 10, 36, .98);
  box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -18px #000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .16s ease, visibility .16s ease;
}
.lang--menu .lang__list::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 8px;
}
.lang--menu:hover .lang__list,
.lang--menu:focus-within .lang__list,
.lang--menu.is-open .lang__list {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.footer__bottom { align-items: center; }
.footer__bottom .lang { margin-left: auto; }
.topbar__actions .lang { margin-left: 0; }
.nav > .lang { display: none; }

.topbar__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
  position: relative;
  z-index: 4;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.burger::after {
  content: "";
  position: absolute;
  inset: -10px;
}
.burger span {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--txt);
  transition: transform .25s, opacity .2s;
}
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 24px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* ═══ hero ═════════════════════════════════════════════════════════ */
.hero { padding: clamp(28px, 6vw, 72px) 0 0; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
}
.pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(111, 240, 200, .18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  50% { box-shadow: 0 0 0 8px rgba(111, 240, 200, 0); }
}

.hero h1 { margin: 20px 0 0; }
.hero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin-top: 18px;
  max-width: 30em;
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 18.5px);
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.perks {
  padding: clamp(28px, 4.4vw, 48px) 0 4px;
  text-align: center;
}
.perks .kicker { margin-bottom: 18px; }
.perks .ticks { justify-content: center; margin-top: 0; }

.ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; }
.ticks li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-size: 14.5px;
  font-weight: 700;
}
.ticks li::before {
  content: "✓";
  display: grid;
  place-items: center;
  flex: none;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(111, 240, 200, .14);
  box-shadow: inset 0 0 0 1px rgba(111, 240, 200, .42);
  color: var(--mint);
  font-size: 11px;
  font-weight: 900;
}

/* ── live app scene ── */
.hero__stage { position: relative; display: grid; justify-items: center; }

.stage-glow {
  position: absolute;
  inset: -8% -6% 6%;
  border-radius: 50%;
  background: radial-gradient(50% 45% at 50% 52%, rgba(139, 92, 255, .55), rgba(74, 220, 255, .16) 55%, transparent 72%);
  filter: blur(28px);
  z-index: 0;
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.06); opacity: .82; } }

.scene {
  position: relative;
  z-index: 1;
  container-type: inline-size;   /* подписи внутри макета живут в cqw, чтобы ужиматься вместе с ним */
  width: min(392px, 100%);
  aspect-ratio: 780 / 1220;
  border-radius: 38px;
  overflow: hidden;
  background: #0a0722 url("../media/img/card-bg.webp") center/cover;
  box-shadow:
    0 50px 110px -40px rgba(0, 0, 0, .95),
    0 0 0 1px rgba(255, 255, 255, .1),
    inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(190deg, rgba(255, 255, 255, .1), transparent 26%);
}

.scene__clip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .16s linear;
}
.scene__clip.is-on { opacity: 1; }

.scene__chrome {
  position: absolute;
  top: 3.4%;
  left: 0;
  right: 0;
  text-align: center;
  pointer-events: none;
}
.scene__title { font-weight: 900; font-size: 3.85cqw; letter-spacing: -.02em; }
.scene__sub {
  margin-top: 2px;
  color: rgba(255, 255, 255, .52);
  font-size: 2.7cqw;
  font-weight: 700;
  line-height: 1.35;
}

/* круг ровно по кнопке в клипе: центр 49.95% / 56.97%, радиус 26.15% ширины */
.scene__tap {
  position: absolute;
  left: 23.8%;
  top: calc(56.97% - 26.15% * 780 / 1220);
  width: 52.3%;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.scene__ripple {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, .5);
  opacity: 0;
}
.scene__tap:active .scene__ripple { animation: ripple .5s ease-out; }
@keyframes ripple {
  from { opacity: .7; box-shadow: 0 0 0 0 rgba(255, 255, 255, .45); }
  to   { opacity: 0;  box-shadow: 0 0 0 26px rgba(255, 255, 255, 0); }
}

.scene__foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3.4%;
  padding: 0 4cqw;
  text-align: center;
  pointer-events: none;
}
.scene__status {
  font-weight: 900;
  font-size: 4.4cqw;
  letter-spacing: -.02em;
  transition: color .3s;
}
.scene.is-on .scene__status { color: #b9f2ff; }
.scene__hint {
  margin-top: 2px;
  min-height: 4.4cqw;
  color: rgba(255, 255, 255, .5);
  font-size: 2.95cqw;
  font-weight: 700;
}

.meter { margin-top: 1cqw; display: grid; gap: 1cqw; justify-items: center; }
.meter[hidden] { display: none; }
.meter__track {
  width: 62%;
  height: 1.6cqw;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
}
.meter__fill {
  height: 100%;
  width: 4%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  box-shadow: 0 0 12px rgba(74, 220, 255, .7);
  transition: width .1s linear;
}
.meter__value {
  font-size: 2.7cqw;
  font-weight: 800;
  color: rgba(255, 255, 255, .7);
  font-variant-numeric: tabular-nums;
}

.chip {
  display: flex;
  align-items: center;
  gap: 2.6cqw;
  margin-top: 2.6cqw;
  padding: 2cqw 3cqw;
  border-radius: 4cqw;
  background: rgba(14, 12, 40, .62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px);
  text-align: left;
}
.chip__flag { font-size: 4.4cqw; line-height: 1; }
.chip__text { display: grid; line-height: 1.2; }
.chip__text b { font-size: 3.2cqw; font-weight: 800; }
.chip__text i { font-style: normal; font-size: 2.7cqw; color: rgba(255, 255, 255, .5); }
.chip__ping {
  margin-left: auto;
  font-size: 2.85cqw;
  font-weight: 800;
  color: var(--mint);
  font-variant-numeric: tabular-nums;
}

.stage-note {
  margin-top: 16px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

/* ── marquee ── */
.marquee {
  position: relative;
  margin-top: clamp(40px, 6vw, 76px);
  padding: 14px 0;
  border-block: 1px solid var(--line-soft);
  overflow: hidden;
  max-width: 100%;
  container-type: inline-size;
}
.marquee__row {
  display: flex;
  width: max-content;
  animation: slide 34s linear infinite;
}
.marquee.is-hold .marquee__row { animation-play-state: paused; }
.marquee__group {
  display: flex;
  gap: 52px;
  padding-right: 52px;
  flex: none;
  box-sizing: border-box;
  min-width: 100vw;
  min-width: 100cqi;
}
.marquee span {
  color: var(--faint);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
@keyframes slide { to { transform: translate3d(-50%, 0, 0); } }

/* ═══ buy page ═════════════════════════════════════════════════════ */
.buy { padding: clamp(28px, 6vw, 72px) 0 clamp(48px, 8vw, 96px); }
.buy .head { max-width: 620px; }
.buy h1 { font-size: clamp(28px, 3.6vw, 44px); }

/* ═══ sections ═════════════════════════════════════════════════════ */
section[id] { scroll-margin-top: 88px; }

.section { padding: clamp(56px, 7vw, 104px) 0; }
.section--tight { padding: clamp(36px, 4.4vw, 68px) 0; }

.head { max-width: 620px; margin-bottom: clamp(30px, 4vw, 54px); }
.kicker {
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.sub { margin-top: 16px; color: var(--muted); font-size: clamp(15.5px, 1.2vw, 17.5px); }

/* ── feature cards ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}
.card {
  position: relative;
  padding: clamp(22px, 2.2vw, 30px);
  border-radius: var(--r-lg);
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2, .8, .3, 1), box-shadow .3s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), var(--shadow); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card__icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 23px;
}
.card p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ── steps ── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(16px, 2vw, 26px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step { position: relative; padding-top: 8px; }
.step__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--grad);
  color: #0a0524;
  font-weight: 900;
  font-size: 18px;
  box-shadow: 0 12px 30px -12px rgba(139, 92, 255, .9);
}
.step p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ── plans ── */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(252px, 100%), 1fr));
  gap: clamp(14px, 1.6vw, 20px);
  align-items: stretch;
  width: 100%;
  min-width: 0;
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(22px, 2.2vw, 30px);
  border-radius: var(--r-lg);
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  backdrop-filter: blur(14px);
  transition: transform .3s cubic-bezier(.2, .8, .3, 1), box-shadow .3s;
}
.plan:hover { transform: translateY(-5px); }
.page-buy .plan:hover,
html.is-tg .plan:hover { transform: none; }

.plan__top { display: flex; align-items: center; justify-content: flex-start; gap: 8px; }
.plan__tag {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.plan__tag--hot {
  background: var(--grad);
  color: #0a0524;
  box-shadow: none;
}

.plan__price { display: flex; align-items: baseline; gap: 6px; font-weight: 800; }
.plan__price b { font-size: clamp(38px, 3.4vw, 46px); font-weight: 900; letter-spacing: -.04em; }
.plan__price span { color: var(--faint); font-size: 14px; font-weight: 700; }
.plan__price .plan__cur {
  color: inherit;
  font-size: clamp(22px, 2.1vw, 28px);
  font-weight: 800;
  letter-spacing: -.03em;
}
.plan__price .plan__cur--pre { margin-right: 2px; }
.plan__price .plan__cur--post { margin-left: 2px; }

.plan__list { margin: 0 0 auto; padding: 0; list-style: none; display: grid; gap: 10px; }
.plan__list li {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.45;
}
.plan__list li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--grad);
}

.plan__specs {
  display: grid;
  gap: 12px;
  margin: 0 0 auto;
}
.plan__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 10px;
  align-items: start;
}
.plan__row + .plan__row {
  grid-template-columns: 1fr;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.plan__row + .plan__row .plan__spec {
  justify-items: center;
  text-align: center;
}
.plan__spec {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.plan__spec-k {
  color: var(--faint);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
.plan__spec-v {
  color: var(--txt);
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.25;
}
.plan__spec-v--no { color: var(--faint); }
.plan__spec-v--yes { color: var(--mint); }
.plan__lite-note { display: none; }
.plan--current { box-shadow: inset 0 0 0 1.5px rgba(139, 92, 255, .55); }
.plan__now { color: var(--mint); font-size: 13.5px; font-weight: 800; text-align: center; }
.plan .btn:disabled { opacity: .55; pointer-events: none; }
.os-slash { color: var(--faint); font-style: normal; font-weight: 700; }

.plans__note {
  margin-top: 22px;
  margin-inline: auto;
  max-width: 58em;
  color: var(--faint);
  font-size: 14px;
  text-align: center;
}

.devices {
  margin-top: clamp(28px, 4vw, 40px);
  text-align: center;
}
.devices--home { margin-top: 0; }
.page-buy .devices--home { margin-bottom: clamp(28px, 4vw, 40px); }
.devices__title {
  margin: 0 0 12px;
  color: var(--txt);
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.2;
}
.devices__lead {
  max-width: 38em;
  margin: 0 auto clamp(22px, 3vw, 30px);
  color: var(--muted);
  font-size: clamp(14.5px, 1.2vw, 16.5px);
  font-weight: 700;
  line-height: 1.55;
}
.devices__lead em {
  font-style: normal;
  font-weight: 900;
  color: var(--mint);
  text-decoration: underline;
  text-decoration-thickness: 1.6px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(111, 240, 200, .85);
}
.devices__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.devices__item {
  display: grid;
  justify-items: center;
  gap: 9px;
  flex: 0 0 10%;
  min-width: 64px;
  max-width: 108px;
  padding: 10px 6px 8px;
  border-radius: 16px;
  color: var(--faint);
  transition: color .25s, background .25s, transform .25s cubic-bezier(.2, .8, .3, 1);
}
.devices__icon {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  overflow: visible;
  color: rgba(238, 240, 255, .9);
  filter: drop-shadow(0 0 10px rgba(74, 220, 255, .16));
  transition: color .25s, transform .25s cubic-bezier(.2, .8, .3, 1), filter .25s;
}
.devices__tv-mark { fill: #0D1429; }
.devices__item span {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.2;
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .devices__item:hover {
    background: rgba(255, 255, 255, .05);
    color: var(--txt);
    transform: translateY(-2px);
  }
  .devices__item:hover .devices__icon {
    color: var(--cyan);
    filter: drop-shadow(0 0 12px rgba(74, 220, 255, .4));
  }
}

/* ── split (apps) ── */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.split__art img {
  max-width: 480px;
  margin-inline: auto;
  border-radius: var(--r-lg);
  box-shadow: 0 50px 110px -44px rgba(0, 0, 0, .96), 0 0 0 1px var(--line);
}
.split__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.dl { display: grid; justify-items: start; gap: 8px; margin-top: 28px; }
.dl__note { color: var(--muted); font-size: 13.5px; font-weight: 700; }
.dl__hint { max-width: 34em; color: var(--faint); font-size: 12.5px; line-height: 1.5; }

.platforms { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.platform {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14.5px;
  font-weight: 800;
}
.platform span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .28);
}
.platform i { font-style: normal; color: var(--faint); font-size: 12px; font-weight: 700; }
.platform--live { box-shadow: inset 0 0 0 1px rgba(111, 240, 200, .45); }
.platform--live span { background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.platform--live i { color: var(--mint); }

/* ── lk block ── */
.lk {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: clamp(26px, 4vw, 56px);
  padding: clamp(26px, 3.4vw, 52px);
  border-radius: 34px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(139, 92, 255, .22), transparent 58%),
    var(--glass);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  backdrop-filter: blur(14px);
  align-items: center;
}
.lk__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.lk__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.lk__list li {
  display: grid;
  gap: 2px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.lk__list b { font-size: 15px; }
.lk__list span { color: var(--muted); font-size: 13.5px; }

/* ── faq ── */
.faq { display: grid; gap: 10px; }
.faq details {
  padding: 4px 22px;
  border-radius: var(--r-md);
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--line);
  backdrop-filter: blur(10px);
  transition: background .25s;
}
.faq details[open] { background: var(--glass-2); }
.faq summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  font-weight: 800;
  font-size: 16.5px;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  margin-left: auto;
  border-right: 2.5px solid var(--muted);
  border-bottom: 2.5px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.faq p { padding: 0 0 20px; max-width: 62em; color: var(--muted); font-size: 15px; }

/* ── final cta ── */
.final { padding: clamp(60px, 8vw, 110px) 0 clamp(70px, 9vw, 120px); text-align: center; }
.final__inner { display: grid; justify-items: center; gap: 18px; }
.final h2 { font-size: clamp(22px, 3.6vw, 44px); }
.final img { filter: drop-shadow(0 16px 40px rgba(139, 92, 255, .7)); }
.final p { color: var(--muted); max-width: 34em; }
.final .btn { margin-top: 8px; }

/* ═══ footer ════════════════════════════════════════════════════════ */
.footer { padding: clamp(40px, 5vw, 64px) 0 28px; border-top: 1px solid var(--line-soft); }
.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: clamp(28px, 4vw, 60px);
}
.footer__brand p { margin-top: 12px; color: var(--faint); font-size: 14px; max-width: 22em; }
.footer__nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; }
.footer__nav h4 { margin-bottom: 12px; font-size: 13px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.footer__nav a, .footer__nav [data-open] {
  display: block;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 14.5px;
  text-align: left;
  cursor: pointer;
  transition: color .2s;
}
.footer__nav a:hover { color: var(--txt); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  margin-top: clamp(30px, 4vw, 52px);
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  color: var(--faint);
  font-size: 13px;
}
/* Copyright-only footers (LK, legal, pay): no reserved nav block, no dock gap. */
body:not(.app-body):not(:has(.footer__inner)):has(> footer.footer) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: 0;
}
body:not(.app-body):not(:has(.footer__inner)):has(> footer.footer) > main {
  flex: 1 1 auto;
}
.footer:not(:has(.footer__inner)) {
  padding: 16px 0;
  margin-top: auto;
}
.footer:not(:has(.footer__inner)) .footer__bottom {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* ═══ modal ════════════════════════════════════════════════════════ */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; }
html.is-tg .modal {
  width: var(--app-vw, 100%);
  max-width: 100%;
  left: 0;
  right: auto;
  box-sizing: border-box;
}
html.is-tg #promoModal {
  place-items: start center;
  align-content: start;
  padding-top: 12px;
}
@media (max-width: 720px) {
  #promoModal {
    place-items: start center;
    align-content: start;
    padding-top: max(12px, env(safe-area-inset-top, 0px));
  }
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 18, .72);
  backdrop-filter: blur(10px);
  animation: fade .25s ease;
}
@keyframes fade { from { opacity: 0; } }

.modal__card {
  position: relative;
  width: min(452px, 100%);
  min-width: 0;
  max-width: 100%;
  max-height: calc(100vh - 40px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(26px, 3vw, 34px);
  border-radius: 30px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(139, 92, 255, .28), transparent 60%),
    #110f2e;
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 100px -30px #000;
  animation: pop .3s cubic-bezier(.2, .9, .3, 1);
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }

.modal__x {
  position: absolute;
  top: 14px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  color: var(--muted);
  font-size: 21px;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  z-index: 5;
  transition: background .2s, color .2s;
}
.modal__x:hover { background: rgba(255, 255, 255, .14); color: var(--txt); }

.pane {
  display: grid;
  gap: 16px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
}
.pane > *,
#loginEmailStep > *,
#loginCodeStep > *,
#loginQrStep > * {
  min-width: 0;
  max-width: 100%;
}
#paneLogin .btn--full {
  width: 100%;
  max-width: 100%;
  white-space: normal;
}
.pane[hidden] { display: none; }
.pane .kicker { margin: 0; }
.pane h3 { font-size: 25px; }
.pane .sub { margin-top: 0; }

#loginEmailStep,
#loginCodeStep,
#loginQrStep,
#bountyIntro,
#bountyForm {
  display: grid;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}
#loginEmailStep[hidden],
#loginCodeStep[hidden],
#loginQrStep[hidden],
#bountyIntro[hidden],
#bountyForm[hidden] {
  display: none;
}
.login-ok {
  margin: 0;
  color: var(--mint);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}
.login-ok[hidden] { display: none; }

.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px var(--line);
}
.login-tabs__btn {
  min-width: 0;
  border: 0;
  border-radius: 999px;
  padding: 10px 12px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.login-tabs__btn.is-on {
  background: rgba(255, 255, 255, .1);
  color: var(--txt);
}
.login-qr {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 18px;
  align-items: center;
}
.login-qr__code {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 168px;
  height: 168px;
  border-radius: 24px;
  background: #16142c;
  box-shadow: 0 18px 40px -22px #000;
}
.login-qr #loginQrGet {
  position: relative;
  z-index: 2;
  padding: 8px 14px;
  font-size: 13.5px;
}
.login-qr__code.is-ready {
  background: #fff;
  box-shadow: 0 18px 40px -22px #000;
  overflow: hidden;
}
.login-qr__code.is-ready #loginQrGet { display: none; }
.login-qr__art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.login-qr__art[hidden] { display: none; }
.login-qr__canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: #fff;
}
.login-qr__mascot-wrap {
  position: absolute;
  width: 18%;
  height: 18%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px #fff;
}
.login-qr__mascot {
  width: 86%;
  height: 86%;
  object-fit: contain;
  pointer-events: none;
}
.login-qr__side {
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 12px;
}
.login-qr__scan {
  width: 28px;
  height: 28px;
  color: var(--txt);
}
.login-qr__scan svg { width: 100%; height: 100%; }
.login-qr__hint {
  margin: 0;
  color: var(--txt);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}
.login-qr__tg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  background: #4d8dff;
  color: #fff;
  font-weight: 800;
  font-size: 14.5px;
}
.login-qr__tg-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
}
.login-qr__tg-icon svg { width: 18px; height: 18px; }
.login-qr__wait {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.login-qr__wait[hidden] { display: none; }

.login-tab-phone,
.login-qr__phone { display: none !important; }

a.login-qr__tg-mark {
  text-decoration: none;
  color: inherit;
}
.login-qr__tg-logo {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: #4d8dff;
}
.login-qr__tg-logo svg { width: 36px; height: 36px; }
.login-qr__tg-mark.is-ready .login-qr__tg-logo { display: none; }

@media (max-width: 720px) {
  .login-tab-desk { display: none; }
  .login-tab-phone { display: inline !important; }
  .login-qr__desk { display: none !important; }
  a.login-qr__tg-mark.login-qr__phone { display: grid !important; }
  p.login-qr__hint.login-qr__phone { display: block !important; }
  a.login-qr__tg.login-qr__phone { display: inline-flex !important; }
  p.login-qr__wait.login-qr__phone { display: block; }
  p.login-qr__wait.login-qr__phone[hidden] { display: none !important; }
}

@media (max-width: 520px) {
  .login-qr {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .login-qr__side { justify-items: center; }
}

.summary {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px var(--line);
}
.summary div { display: flex; align-items: baseline; gap: 8px; }
.summary b { font-size: 26px; font-weight: 900; letter-spacing: -.03em; }
.summary span { color: var(--faint); font-size: 14px; font-weight: 700; }
.summary p { color: var(--muted); font-size: 13.5px; }

.field { display: grid; gap: 7px; }
.field[hidden] { display: none; }
.field > span { font-size: 14px; font-weight: 800; }
.field input,
.field textarea {
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  border: 0;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--txt);
  font: 600 15.5px/1.4 inherit;
  transition: box-shadow .2s, background .2s;
}
.field textarea {
  min-height: 120px;
  max-height: 240px;
  resize: vertical;
}
.field__count {
  color: var(--faint);
  font-size: 12.5px;
  font-weight: 700;
  text-align: right;
}
.field__count[hidden] { display: none; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(238, 240, 255, .3); }
.field input:focus,
.field textarea:focus {
  outline: 0;
  background: rgba(255, 255, 255, .09);
  box-shadow: inset 0 0 0 1.5px var(--violet), 0 0 0 4px rgba(139, 92, 255, .18);
}
.field.is-bad input,
.field.is-bad input:focus,
.field.is-bad textarea,
.field.is-bad textarea:focus {
  outline: 2px solid #ff5c7a;
  outline-offset: -2px;
}
.field em { font-style: normal; color: var(--faint); font-size: 12.5px; line-height: 1.45; }

.check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 13px; cursor: pointer; }
.check[hidden] { display: none; }
.check > span { min-width: 0; line-height: 1.45; }
.check a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-color: rgba(74, 220, 255, .35);
  text-underline-offset: 3px;
}
.check a:hover { text-decoration-color: var(--cyan); }
.check__box {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  margin-top: 1px;
  border-radius: 6px;
  flex: none;
}
.check input { margin: 0; width: 17px; height: 17px; accent-color: var(--violet); }
.check.is-bad .check__box { box-shadow: 0 0 0 2px #ff5c7a; }
.check.is-bad input { accent-color: #ff5c7a; }

.error {
  padding: 11px 14px;
  border-radius: var(--r-sm);
  background: rgba(255, 92, 122, .12);
  box-shadow: inset 0 0 0 1px rgba(255, 92, 122, .4);
  color: #ffb3c2;
  font-size: 13.5px;
  font-weight: 700;
}
.error[hidden] { display: none; }

.modal__alt { color: var(--muted); font-size: 13.5px; text-align: center; }

.pane--done { justify-items: center; text-align: center; gap: 14px; padding: 8px 0; }
.done__mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--grad);
  color: #07061c;
  font-size: 30px;
  font-weight: 900;
  box-shadow: 0 18px 44px -14px rgba(139, 92, 255, .9);
}
.pane--done p { color: var(--muted); font-size: 15px; max-width: 30em; }

.btn.is-busy { pointer-events: none; opacity: .7; }

/* ═══ cart drawer ═══════════════════════════════════════════════════ */
.cart {
  position: fixed;
  inset: 0;
  z-index: 70;
  overflow: hidden;
}
.cart:not([hidden]) {
  touch-action: none;
}
.cart[hidden] {
  display: none !important;
  pointer-events: none;
}
.cart__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 18, .72);
  backdrop-filter: blur(10px);
  animation: fade .25s ease;
}
.cart__sheet {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  height: 100%;
  padding: 28px 24px 0;
  overscroll-behavior: contain;
  border-radius: 28px 0 0 28px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(139, 92, 255, .28), transparent 58%),
    #110f2e;
  box-shadow: -28px 0 80px -36px #000;
  animation: cart-in .32s cubic-bezier(.2, .9, .3, 1);
}
@keyframes cart-in { from { transform: translateX(28px); opacity: .4; } }
.cart__handle {
  display: none;
  flex: none;
  width: 42px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
}
.cart__sheet .modal__x { top: 14px; right: 14px; }
.cart__form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.cart__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  overscroll-behavior: none;
  touch-action: pan-y;
  min-height: 0;
  flex: 1;
  padding: 0 3px 12px;
  scrollbar-width: none;
}
.cart.is-picking .cart__body {
  overflow: visible;
}
.cart__body::-webkit-scrollbar { display: none; }
.cart__form .kicker { margin: 0; }
.cart__extra { display: grid; gap: 10px; }
.cart__extra-lead {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}
#cartExtra[hidden] { display: none; }
.cart.is-extra #cartTerms,
.cart.is-extra .cart__pick,
.cart.is-extra #cartLimits,
.cart.is-extra #cartEmailField { display: none !important; }
.cart__form[hidden] { display: none !important; }
.cart.is-picking .cart__pick {
  z-index: 12;
}
.cart.is-picking .cart__sum,
.cart.is-picking .cart__pay {
  position: relative;
  z-index: 0;
}
.cart__pick {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 0;
}
.cart__plan {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 20px;
  border-radius: 999px;
  background: rgba(139, 92, 255, .16);
  box-shadow: inset 0 0 0 1.5px rgba(139, 92, 255, .7);
  color: inherit;
  font: 800 15px/1 inherit;
  box-sizing: border-box;
}
.cart__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--txt);
  cursor: pointer;
  box-sizing: border-box;
  flex: none;
  transition: background .2s, box-shadow .2s;
}
.cart__icon[hidden] { display: none; }
.cart__icon svg { width: 18px; height: 18px; }
.cart__icon:hover { background: rgba(255, 255, 255, .12); }
.cart__icon.is-on {
  background: rgba(139, 92, 255, .16);
  box-shadow: inset 0 0 0 1.5px rgba(139, 92, 255, .7);
}
.cart__plans {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 12;
  display: grid;
  gap: 6px;
  max-height: min(42vh, 260px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  padding: 8px;
  border-radius: 16px;
  background: #141132;
  box-shadow: 0 18px 40px -18px #000, inset 0 0 0 1px var(--line);
}
.cart__plans[hidden] { display: none; }
.cart__plans button {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.cart__plans button:hover { background: rgba(255, 255, 255, .08); }
.cart__plans button.is-on {
  background: rgba(139, 92, 255, .16);
  box-shadow: inset 0 0 0 1.5px rgba(139, 92, 255, .7);
}
.cart__plans b { font-size: 15px; font-weight: 800; }
.cart__plans span { color: var(--muted); font-size: 13px; font-weight: 700; }
.cart__info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 2px 18px;
  scrollbar-width: none;
}
.cart__info[hidden] { display: none; }
.cart__info::-webkit-scrollbar { display: none; }
#cartHasSub {
  overflow: visible;
  padding: 8px 12px 36px;
}
.cart__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: start;
  margin: 6px 0 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: 800 14px/1 inherit;
  cursor: pointer;
}
.cart__back svg { width: 18px; height: 18px; }
.cart__back:hover { color: var(--txt); }
.cart__info .kicker { margin: 0; }
.cart__info h3 { font-size: 28px; }
.cart__info-specs {
  display: grid;
  gap: 12px;
}
.cart__info-specs div { display: grid; gap: 4px; }
.cart__info-specs span { color: var(--faint); font-size: 12px; font-weight: 700; }
.cart__info-specs b { font-size: 15.5px; font-weight: 800; }
.cart__info-specs b.is-no { color: var(--faint); }
.cart__info-specs b.is-yes { color: var(--mint); }
.cart__info-price { margin: 4px 0 0; font-size: 22px; font-weight: 900; }
.cart__info-note { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.cart__promo-box { position: relative; display: block; width: 100%; }
#cartPromoInput,
#lkPromoInput { width: 100%; box-sizing: border-box; text-transform: uppercase; letter-spacing: .04em; }
.cart__promo-box:has(.cart__promo-go:not([hidden])) #cartPromoInput,
.cart__promo-box:has(.cart__promo-go:not([hidden])) #lkPromoInput { padding-right: 48px; }
.cart__promo-go {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--txt);
  transform: translateY(-50%);
  cursor: pointer;
}
.cart__promo-go[hidden] { display: none; }
.cart__promo-go svg { width: 16px; height: 16px; }
.cart__promo-go-no { display: none; }
.cart__promo-go.is-miss .cart__promo-go-ok { display: none; }
.cart__promo-go.is-miss .cart__promo-go-no { display: block; }
.cart__promo-go:hover { background: rgba(255, 255, 255, .12); }
.cart__promo-lock {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}
.cart__promo-lock[hidden] { display: none; }
.cart__promo-status { margin: 0; color: var(--muted); font-size: 13.5px; }
.cart__promo-spin {
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .12);
  border-top-color: var(--muted);
  border-radius: 50%;
  animation: cart-spin .65s linear infinite;
}
.cart__promo-spin[hidden] { display: none; }
@keyframes cart-spin { to { transform: rotate(1turn); } }
.cart__promo-deal {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(111, 240, 200, .08);
  box-shadow: inset 0 0 0 1px rgba(111, 240, 200, .28);
}
.cart__promo-deal[hidden] { display: none; }
.cart__promo-deal b { font-size: 28px; font-weight: 900; letter-spacing: -.03em; }
.cart__promo-deal p { margin: 0; color: var(--muted); font-size: 14px; font-weight: 700; }
.cart__promo-gift {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(139, 92, 255, .1);
  box-shadow: inset 0 0 0 1px rgba(139, 92, 255, .32);
}
.cart__promo-gift[hidden] { display: none; }
.cart__promo-gift > p {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.45;
}
.cart__promo-gift .field { margin: 0; }
.cart__promo-tg {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
}
.cart__promo-tg p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}
.cart__crypto { gap: 12px; }
.cart__crypto-lead {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.45;
}
.cart__coins { display: grid; gap: 8px; }
.cart__coin {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px var(--line);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
}
.cart__coin:hover { background: rgba(255, 255, 255, .08); }
.cart__coin.is-row { cursor: default; }
.cart__coin img {
  width: 44px;
  height: 44px;
  display: block;
  border-radius: 50%;
}
.cart__coin b {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.cart__coin small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.cart__coin-nets { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.cart__coin-nets button {
  padding: 8px 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px var(--line);
  color: inherit;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.cart__coin-nets button:hover {
  background: rgba(139, 92, 255, .22);
  box-shadow: inset 0 0 0 1px rgba(139, 92, 255, .55);
}
#cartCryptoPick .kicker { margin: 0 0 10px; }
#cartCryptoPick h3 { margin: 0 0 10px; }
#cartCryptoPick .cart__crypto-lead { margin: 0 0 18px; }
#cartCryptoPick .cart__coins { gap: 12px; }
#cartCryptoPick .cart__coin {
  padding: 14px 16px;
  gap: 14px;
}
#cartCryptoPick .cart__coin small { margin-top: 4px; }
#cartCryptoPick .cart__coin-nets { gap: 8px; }
#cartCryptoPick .cart__coin-nets button { padding: 9px 13px; }
.cart__crypto-asset {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 800;
}
.cart__crypto-asset img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.cart__nets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cart__net {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px var(--line);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
}
.cart__net:hover { background: rgba(255, 255, 255, .08); }
.cart__net.is-on {
  background: rgba(139, 92, 255, .16);
  box-shadow: inset 0 0 0 1.5px rgba(139, 92, 255, .7);
}
.cart__net b { font-size: 14px; font-weight: 800; }
.cart__net span { color: var(--muted); font-size: 11.5px; font-weight: 700; }
.cart__crypto-sum { padding: 2px 0 4px; text-align: center; }
.cart__crypto-usdt {
  margin: 12px 0 0;
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.05;
  text-align: center;
}
.cart__crypto-rub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
}
.cart__crypto-qr {
  display: grid;
  place-items: center;
  width: 176px;
  height: 176px;
  margin: 4px auto 0;
  padding: 10px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 12px 40px rgba(139, 92, 255, .18);
}
.cart__crypto-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cart__crypto-qr img[hidden] { display: none; }
.cart__crypto-qr-wait {
  margin: 0;
  padding: 12px;
  color: #4c4868;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}
.cart__crypto-qr-wait[hidden] { display: none; }
.cart__crypto-copy {
  display: grid;
  gap: 6px;
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px var(--line);
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
}
.cart__crypto-copy em {
  color: var(--faint);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.cart__crypto-copy span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}
.cart__crypto-copy i {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}
.cart__crypto-copy:hover { background: rgba(255, 255, 255, .08); }
.cart__crypto-copy.is-off { cursor: default; }
.cart__crypto-hint {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}
.cart__crypto-wait {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(139, 92, 255, .1);
}
.cart__crypto-wait p { margin: 0; font-size: 13.5px; font-weight: 800; line-height: 1.35; }
.cart__crypto-wait.is-ok { background: rgba(111, 240, 200, .1); }
.cart__crypto-wait.is-miss { background: rgba(255, 122, 156, .1); }
.cart__crypto-by {
  margin: 16px 0 0;
  color: var(--faint);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}
.cart__crypto-by a {
  color: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
#cartCryptoPick[hidden],
#cartCryptoPay[hidden] { display: none; }
.cart__form .field { margin-top: 14px; }
@media (min-width: 721px) {
  .cart__form .field { margin-top: 32px; }
}
.cart__form .field em {
  max-width: 22em;
  margin-inline: auto;
  color: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}
.cart__limits { margin: 0; color: var(--muted); font-size: 14px; }
.cart__terms {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-top: 4px;
}
.cart__terms:has(.cart__term:nth-child(5):last-child) .cart__term:nth-child(n+4) {
  grid-column: span 3;
}
.cart__term {
  grid-column: span 2;
  padding: 8px 6px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px var(--line);
  color: inherit;
  font-size: 12.5px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
}
.cart__term:hover { background: rgba(255, 255, 255, .08); }
.cart__term.is-on {
  background: rgba(139, 92, 255, .16);
  box-shadow: inset 0 0 0 1.5px rgba(139, 92, 255, .7);
}
.cart__sum {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1;
  min-height: 88px;
}
.cart__promo-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: 700 13.5px/1.4 inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.cart__promo-link:hover { color: var(--txt); }
.cart__promo-link.is-on { color: var(--mint); text-decoration: none; }
.cart__total {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  margin: 0;
  color: var(--txt);
  font-size: clamp(40px, 6vw, 52px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  text-align: center;
}
.cart__was {
  color: var(--muted);
  font-size: .46em;
  font-weight: 800;
  letter-spacing: -.03em;
  text-decoration: line-through;
  text-decoration-thickness: .12em;
}
.cart__was[hidden] { display: none; }
.cart__now { font-weight: inherit; }
.cart__upgrade {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}
.cart__pay {
  display: grid;
  gap: 10px;
  flex: none;
  min-width: 0;
  max-width: 100%;
  padding: 14px 3px calc(18px + env(safe-area-inset-bottom, 0px));
}
.cart__pay > *,
.cart__more,
.cart__more .btn {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.cart__more {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cart__more .btn { padding: 12px 10px; font-size: 13.5px; }
.cart__note {
  margin: 0;
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
}

/* Только Android: iOS понимает -webkit-touch-callout, его не трогаем. */
@supports not (-webkit-touch-callout: none) {
  @media (max-width: 430px) {
    .cart__pay {
      justify-items: center;
      width: 100%;
      max-width: 100%;
      min-width: 0;
      gap: 8px;
      padding: 12px 0 calc(16px + env(safe-area-inset-bottom, 0px));
    }
    .cart__pay > * {
      width: 100%;
      max-width: 100%;
      min-width: 0;
      box-sizing: border-box;
    }
    .cart__pay .check {
      justify-content: center;
      text-align: center;
      font-size: 12px;
      gap: 8px;
    }
    .cart__more {
      width: 100%;
      gap: 6px;
    }
    .cart__more .btn {
      min-width: 0;
      padding: 10px 6px;
      font-size: 12.5px;
    }
    .cart__pay .btn--lg {
      padding: 13px 16px;
      font-size: 15.5px;
    }
    .cart__note {
      white-space: normal;
      font-size: 10.5px;
      padding-inline: 2px;
    }
  }
}

@media (max-width: 720px) {
  .cart__sheet {
    top: auto;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: calc(100dvh - 10px);
    max-height: calc(100dvh - 10px);
    padding-top: 10px;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -30px 80px -36px #000;
    animation: cart-up .32s cubic-bezier(.2, .9, .3, 1);
  }
  @keyframes cart-up { from { transform: translateY(40px); opacity: .4; } }
  .cart__handle { display: block; }
  body.is-cart .tg-bar { display: none; }
  body.is-cart .plans { visibility: hidden; }
  html.is-kb body.is-cart .cart__backdrop {
    background: #05041a;
  }
  html.is-kb .cart__sheet {
    top: 0;
    height: 100%;
    max-height: 100%;
  }
  html.is-tg-inapp .cart__sheet {
    height: calc(var(--app-vis, 100svh) - 10px);
    max-height: calc(var(--app-vis, 100svh) - 10px);
  }
  html.is-tg-inapp .cart__note {
    white-space: normal;
  }
}

/* ═══ toast ════════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(110px + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  transform: translateX(-50%);
  padding: 13px 22px;
  border-radius: 999px;
  background: rgba(17, 15, 46, .96);
  box-shadow: inset 0 0 0 1px var(--line), 0 20px 50px -20px #000;
  font-size: 14px;
  font-weight: 700;
  animation: pop .25s ease;
}
.toast[hidden] { display: none; }
html.tg-bar-off .toast {
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

/* ═══ telegram dock ════════════════════════════════════════════════ */
.tg-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  pointer-events: none;
  overflow: visible;
}
.tg-bar[hidden],
html.tg-bar-off .tg-bar { display: none !important; }
.tg-bar__card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 8px 14px;
  border-radius: 20px;
  pointer-events: auto;
  background:
    linear-gradient(105deg, rgba(37, 150, 230, .28), rgba(139, 92, 255, .22) 55%, rgba(74, 220, 255, .16)),
    rgba(10, 12, 36, .86);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .14),
    0 18px 40px -18px rgba(0, 0, 0, .85);
  color: var(--txt);
}
.tg-bar > * { pointer-events: auto; }
.tg-bar.is-frozen,
.tg-bar.is-frozen * { pointer-events: none; }
.tg-bar__main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
  color: inherit;
  text-decoration: none;
}
.tg-bar__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #2aa4e0;
  box-shadow: 0 8px 18px -8px #2aa4e0;
}
.tg-bar__icon svg { width: 22px; height: 22px; display: block; }
.tg-bar__copy { min-width: 0; }
.tg-bar__copy b { font-size: 14.5px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.tg-bar__actions {
  display: grid;
  justify-items: center;
  gap: 3px;
  flex: none;
  margin-left: auto;
}
.tg-bar__hide {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--faint);
  font: inherit;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.tg-bar__hide:hover { color: var(--txt); }
.tg-bar__go {
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--grad);
  color: #0a0524;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

@media (min-width: 720px) {
  .tg-bar {
    left: 50%;
    right: auto;
    width: min(520px, calc(100% - 32px));
    transform: translate3d(-50%, 0, 0);
  }
}

/* ═══ responsive ═══════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  #how .head,
  #how .step { text-align: center; }
  #how .head { margin-inline: auto; }
  #how .step__num { margin-inline: auto; }
  .lk__copy { text-align: center; }
  .lk__cta { justify-content: center; }
  .lk__list li { text-align: center; }
  .hero__stage { overflow: hidden; }

  .nav { display: none; }
  .burger { display: block; }
  .nav [data-open="download"] { display: none; }

  .nav.is-open {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: calc(var(--nav-shift, 70px) + 8px) 22px calc(18px + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
    background: #0c0a24;
    box-shadow: none;
    overflow: hidden;
  }
  .nav.is-open a { padding: 13px 8px; font-size: 22px; font-weight: 800; }
  .topbar__actions .lang--menu { display: none; }
  .nav.is-open .lang {
    display: inline-flex;
    width: auto;
    justify-content: center;
    margin: 10px auto 0;
  }
  .nav.is-open .nav__login {
    display: inline-flex;
    width: 100%;
    margin-top: 10px;
    justify-content: center;
  }
  .nav.is-open .nav__mascot {
    display: block;
    width: min(58vw, 280px);
    height: auto;
    margin: auto auto 4px;
    flex-shrink: 0;
    pointer-events: none;
    filter: drop-shadow(0 16px 36px rgba(139, 92, 255, .45));
  }
  html.is-nav {
    overflow: hidden;
    overscroll-behavior: none;
  }
  html.is-nav .topbar,
  html.is-nav .topbar.is-stuck {
    z-index: 90;
    background: #0c0a24;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  html.is-nav .tg-bar { display: none; }
  html.is-nav .brand { position: relative; z-index: 2; }
  html.is-nav .topbar__actions { position: relative; z-index: 3; }
  html.is-nav .topbar__actions > :not(.burger) { display: none; }
  html.is-nav .burger { z-index: 5; }
}

@media (hover: none) and (pointer: coarse) {
  .nav [data-open="download"] { display: none; }
}

@media (max-width: 940px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__copy { text-align: center; justify-items: center; }
  .hero .lead { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__stage { display: none; }

  .split { grid-template-columns: minmax(0, 1fr); }
  .split__art { order: -1; max-width: 520px; margin-inline: auto; }
  .lk { grid-template-columns: minmax(0, 1fr); }
  .footer__inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  .topbar__actions [data-open="login"].btn--ghost {
    padding: 9px 12px;
    font-size: 13px;
    white-space: nowrap;
  }
  .topbar__actions .btn--primary { padding: 11px 15px; font-size: 13.5px; }
  .brand span { font-size: 19px; }
  .brand img { width: 30px; height: 30px; }
  .hero__cta .btn { width: 100%; }
  .marquee__group { gap: 32px; padding-right: 32px; }

  /* галочки читаются столбиком, а не рваной центрованной строкой */
  .ticks {
    display: inline-grid;
    justify-items: start;
    gap: 10px;
    text-align: left;
  }
}

@media (max-width: 720px) {
  #how .head,
  #how .step { text-align: center; }
  #how .step__num { margin-inline: auto; }
  .lk__copy { text-align: center; }
  .lk__cta { justify-content: center; }
  .lk__list li { text-align: center; }
  #faq .head { text-align: center; margin-inline: auto; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .page-buy .plan {
    background: rgba(22, 20, 56, .92);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .plan[data-plan="trial"] .plan__specs { display: none; }
  .plan[data-plan="trial"] .plan__lite-note {
    display: block;
    margin: 0;
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
  }
  .plan__spec {
    justify-items: center;
    text-align: center;
  }
  .plan__row + .plan__row { grid-template-columns: 1fr; }
  .devices__item { flex-basis: 18%; min-width: 58px; padding: 8px 4px 6px; }
  .devices__icon { width: 30px; height: 30px; filter: none; }
  .devices__item span { font-size: 10.5px; }

  /* Тот же цвет, что давало размытие, но без пересчёта на каждом кадре. */
  body:not(.lk-body) .topbar.is-stuck {
    background: #120c36;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  body:not(.lk-body) .topbar.is-stuck::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 40px;
    background: #120c36;
    pointer-events: none;
  }
  body:not(.lk-body) .faq details {
    background: #110f30;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  body:not(.lk-body) .faq details[open] { background: #18153c; }
  body:not(.lk-body) .lk {
    background:
      radial-gradient(120% 140% at 100% 0%, rgba(139, 92, 255, .22), transparent 58%),
      #110f30;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  body:not(.lk-body) .btn--glass {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hero__stage { display: none; }
  .toast {
    left: 16px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    transform: none;
    text-align: center;
  }
  body:has(.tg-bar:not([hidden])) .toast {
    bottom: calc(94px + env(safe-area-inset-bottom, 0px));
  }
  html.tg-bar-off .toast {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .modal__card {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .modal__card::-webkit-scrollbar { display: none; width: 0; }
  .modal__x { top: 12px; right: 12px; }
  .field input,
  input[type="email"],
  input[type="text"],
  input[type="tel"],
  input[type="search"],
  input[type="number"],
  textarea {
    font-size: 16px;
  }
}

@media (max-width: 429px) {
  #loginSendLink,
  #loginSubmit { font-size: 15.5px; }
}

@media (max-width: 430px) {
  .topbar__actions .btn--primary { display: none; }
  .topbar__actions [data-open="login"].btn--ghost {
    padding: 8px 10px;
    font-size: 12.5px;
  }
  .wrap { width: calc(100% - 32px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
  .marquee__row { animation: none !important; }
}

@media (hover: none) and (pointer: coarse) {
  .field input,
  .field textarea,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="search"],
  input[type="number"],
  textarea,
  select {
    font-size: 16px;
  }
}
