@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded.woff2?v=156b9db347") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Rubik";
  src: url("../fonts/rubik.woff2?v=156b9db347") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --bg: #06070b;
  --surface: #0d1018;
  --surface-2: #131724;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .13);
  --text: #eef2f8;
  --muted: #8b93a8;
  --dim: #5b6377;
  --money: #2bffb0;
  --money-2: #19f0ff;
  --v1: #3be6ff;
  --v1-ink: #03161b;
  --v2: #ffc53d;
  --v2-ink: #1d1402;
  --red: #ff3b5c;
  --radius: 18px;
  --display: "Unbounded", "Rubik", system-ui, sans-serif;
  --body: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --dock-h: 88px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

/* фон — на html, не на body: у html есть свой фон (inline в <head>, от белой вспышки), и тогда
   непрозрачный фон body лёг бы поверх слоёв с z-index:-1 (.bg, шар в первом экране на телефоне) */
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: transparent;
  color: var(--text);
  font: 400 15px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; }
/* Быстрые тапы по способностям: без этого WebView (особенно Telegram на iPhone) принимает два тапа
   подряд за «двойной тап — увеличить» и второй тап съедает. manipulation оставляет прокрутку и
   увеличение двумя пальцами, убирает только двойной тап. На html — для всей страницы, на кнопках —
   для старых WebView, которые не смотрят на предков. */
html, button, a, [role="switch"], .card, .medal, .seg, .extra { touch-action: manipulation; }
a { color: inherit; }
img { display: block; max-width: 100%; }

:focus-visible { outline: 2px solid var(--v1); outline-offset: 2px; }

/* ── фон ─────────────────────────────────────────────── */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-glow { position: absolute; border-radius: 50%; }
.bg-glow--a {
  width: 900px; height: 900px; top: -520px; right: -300px;
  background: radial-gradient(closest-side, rgba(255, 59, 92, .22), rgba(255, 59, 92, 0));
}
.bg-glow--b {
  width: 1000px; height: 1000px; bottom: -560px; left: -420px;
  background: radial-gradient(closest-side, rgba(43, 255, 176, .10), rgba(43, 255, 176, 0));
}
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 20%, transparent 75%);
}

/* ── шапка ───────────────────────────────────────────── */
.top {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: flex-start; gap: 12px;
  padding: 14px 16px 0;
}
.top-actions { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand-mark { width: 38px; height: 38px; flex: none; filter: drop-shadow(0 0 10px rgba(255, 59, 92, .45)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text b { font: 700 14px/1.2 var(--display); letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text i { font-style: normal; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-link {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  height: 36px; padding: 0 14px; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
  font-weight: 500; font-size: 14px; text-decoration: none;
  transition: background .2s, border-color .2s;
}
.top-link svg { width: 18px; height: 18px; color: #5cc8ff; }

/* «‹ Магазин» — золотая обводка (концепт «Золотой сейф») */
.back-pill {
  position: relative; display: inline-flex; align-items: center; gap: 4px; flex: none;
  height: 40px; margin: 0; padding: 0 13px 0 8px; border-radius: 999px;
  border: 1px solid rgba(255, 197, 61, .55);
  background: linear-gradient(180deg, rgba(255, 207, 90, .16), rgba(255, 207, 90, .05));
  color: #ffd98a; font: 600 13px/1 var(--body); text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 236, 190, .2), 0 6px 16px -8px rgba(255, 190, 60, .55);
  -webkit-appearance: none; appearance: none;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform 120ms cubic-bezier(.2, .8, .2, 1), background-color 120ms, border-color .2s;
}
.back-pill::before { content: ""; position: absolute; inset: -3px -2px; }      /* зона тапа 46px */
.back-pill svg { width: 16px; height: 16px; flex: none; }
.back-pill:active { transform: scale(.96); background-color: rgba(255, 207, 90, .14); }
.back-pill:focus-visible { outline: 2px solid #ffcf5a; outline-offset: 2px; }
.bp-clip { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.bp-shine {
  position: absolute; top: 0; bottom: 0; left: 0; width: 60%; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent, rgba(255, 240, 200, .45), transparent);
}
.back-pill--tg { display: none; }                  /* только внутри Telegram (body.tg) */
.back-pill--site { height: 36px; padding: 0 12px 0 7px; }
.back-pill--site::before { inset: -4px -2px; }    /* зона тапа 44px */

/* ── общий каркас ────────────────────────────────────── */
.wrap {
  overflow-x: clip;                      /* крутящаяся орбита шара не раздвигает страницу вбок */
  max-width: 1080px; margin: 0 auto;
  padding: 0 16px calc(var(--dock-h) + 40px + env(safe-area-inset-bottom));
}

/* ── первый экран ────────────────────────────────────── */
.hero {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px;
  padding: 34px 0 10px;
}
.kicker {
  margin: 0 0 12px; display: inline-flex; align-items: center; gap: 8px;
  font: 600 11px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--money);
}
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--money); box-shadow: 0 0 12px var(--money); }
h1 {
  margin: 0; font: 800 clamp(30px, 7.4vw, 58px)/1.04 var(--display);
  letter-spacing: -.02em; text-wrap: balance;
}
.grad {
  background: linear-gradient(92deg, #ff4d6d 0%, #ff8a3d 50%, #ffd23d 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin: 16px 0 0; max-width: 520px; color: #b9c0d0; font-size: clamp(15px, 2.3vw, 17px); }
.rules { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; }
.rules li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 5px; border-radius: 999px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  font-size: 14px;
}
.rules b { font-weight: 600; white-space: nowrap; }
.chip {
  display: inline-grid; place-items: center; height: 26px; padding: 0 10px; border-radius: 999px;
  font: 700 11px/1 var(--display); letter-spacing: .02em;
}
.chip--v1 { background: var(--v1); color: var(--v1-ink); }
.chip--v2 { background: var(--v2); color: var(--v2-ink); }
.chip--inf { background: linear-gradient(90deg, #9a6bff, #ff4dd8); color: #fff; }
.chip--ex { background: rgba(43,255,176,.14); color: var(--money); }

/* канал отзывов о скупке — «★★★★★ 3 отзыва тех, кто уже продал»; золото как у «‹ Магазин» */
.proof {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin: 14px 0 0;
  padding: 9px 14px 9px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 207, 90, .34);
  background: linear-gradient(118deg, rgba(255, 190, 60, .12), rgba(255, 190, 60, .03));
  color: #e9dfc6; font-size: 14px; line-height: 1.25; text-decoration: none;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: border-color .15s, background-color .15s, transform .12s;
}
.proof[hidden] { display: none; }
.proof:active { transform: scale(.98); }
.proof:focus-visible { outline: 2px solid #ffcf5a; outline-offset: 3px; }
.proof-stars { display: inline-flex; gap: 1px; flex: none; color: #ffc53d; filter: drop-shadow(0 0 6px rgba(255, 197, 61, .35)); }
.proof-stars svg { width: 13px; height: 13px; fill: currentColor; }
.proof-text { min-width: 0; }
.proof b { color: #ffcf5a; font-weight: 600; white-space: nowrap; }
.proof-go { flex: none; width: 16px; height: 16px; color: #ffcf5a; }

/* скупка на паузе — плашка над первым экраном; золото того же тона, что «‹ Магазин» и отзывы */
.pause {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px;
  margin: 22px 0 -6px; padding: 18px 18px 18px 16px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255, 207, 90, .38);
  background:
    radial-gradient(260px 140px at 0% 0%, rgba(255, 190, 60, .16), transparent 70%),
    linear-gradient(118deg, #17130b 0%, #0e0c08 58%, #15110a 100%);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 232, 170, .10);
}
.pause[hidden] { display: none; }
.pause-ico {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; flex: none;
  color: #241703; background: linear-gradient(150deg, #fff0c2 0%, #ffcf5a 42%, #e5a126 100%);
  box-shadow: 0 6px 18px rgba(245, 181, 46, .35), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.pause-ico svg { width: 22px; height: 22px; fill: currentColor; }
.pause-body { min-width: 0; }
.pause-body p { margin: 0; }
.pause-kicker {
  display: inline-flex; align-items: center; gap: 7px;
  font: 600 10.5px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: #f5c451;
}
.pause-kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ffcf5a; box-shadow: 0 0 10px #ffcf5a; }
.pause-title { margin-top: 8px !important; font: 700 clamp(16px, 2.6vw, 19px)/1.2 var(--display); letter-spacing: -.01em; color: #fff5dc; }
.pause-note { margin-top: 6px !important; color: #e3d8bd; font-size: 14.5px; line-height: 1.45; }
.pause-fine { margin-top: 6px !important; color: var(--muted); font-size: 13px; line-height: 1.45; }
.pause-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none;
  min-height: 46px; padding: 0 18px; border-radius: 14px; text-decoration: none; white-space: nowrap;
  font: 700 14px/1 var(--display); color: #241703;
  background: linear-gradient(150deg, #fff0c2 0%, #ffcf5a 40%, #e5a126 100%);
  box-shadow: 0 8px 22px -8px rgba(245, 181, 46, .65), inset 0 1px 0 rgba(255, 255, 255, .7);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: transform .12s, filter .2s;
}
.pause-btn svg { width: 17px; height: 17px; }
.pause-btn:active { transform: scale(.97); }
.pause-btn:focus-visible { outline: 2px solid #ffcf5a; outline-offset: 3px; }
@media (hover: hover) { .pause-btn:hover { filter: brightness(1.06); } }
@media (max-width: 640px) {
  .pause { grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 16px 14px; margin-top: 16px; }
  .pause-ico { width: 40px; height: 40px; align-self: start; }
  .pause-ico svg { width: 18px; height: 18px; }
  .pause-btn { grid-column: 1 / -1; width: 100%; }
}
/* на паузе «Продать» в нижней панели — серая надпись «Скупка на паузе» (aria-disabled), сумма тусклее */
body.paused .sum-val { text-shadow: none; opacity: .8; }

.hero-ball { position: relative; width: 168px; height: 168px; margin-right: 12px; }
.ball {
  position: absolute; inset: 34px; border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, #fff4ef 0%, #ff7a5c 22%, #ff2f55 52%, #8e0a26 100%);
  box-shadow: 0 0 40px rgba(255, 59, 92, .65), 0 0 90px rgba(255, 59, 92, .35), inset -10px -12px 24px rgba(60, 0, 12, .55);
  animation: breathe 3.2s ease-in-out infinite;
}
.orbit { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255,255,255,.12); animation: spin 7s linear infinite; }
.orbit i {
  position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  background: var(--money); box-shadow: 0 0 14px var(--money), 0 0 30px var(--money);
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.05); box-shadow: 0 0 55px rgba(255, 59, 92, .8), 0 0 120px rgba(255, 59, 92, .4), inset -10px -12px 24px rgba(60, 0, 12, .55); } }

/* ── блоки ───────────────────────────────────────────── */
.block { margin-top: 34px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; min-height: 34px; }
h2 { margin: 0; font: 700 clamp(18px, 3.4vw, 22px)/1.2 var(--display); letter-spacing: -.01em; }
h2 small { display: block; margin-top: 5px; font: 500 12.5px/1.2 var(--body); letter-spacing: 0; color: var(--muted); }
.hint { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.hint .t1 { color: var(--v1); }
.hint .t2 { color: var(--v2); }
.ghost {
  height: 32px; padding: 0 12px; border-radius: 10px; cursor: pointer;
  background: transparent; border: 1px solid var(--line-2); color: var(--muted); font-size: 13px;
  transition: color .2s, border-color .2s;
}

/* ── сетка способностей ──────────────────────────────── */
.grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
}
.skeleton { grid-column: 1 / -1; height: 220px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface), var(--surface-2), var(--surface)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 14px 8px 8px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .25s, background .25s, box-shadow .25s, transform .15s;
  isolation: isolate;
  /* вся карточка — кнопка: клик по названию выбирает способность, а не выделяет текст */
  cursor: pointer; -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0;
  transition: opacity .25s;
}
.card[data-tier="1"] { border-color: rgba(59, 230, 255, .55); box-shadow: 0 10px 34px -14px rgba(59, 230, 255, .6); }
.card[data-tier="1"]::before { opacity: 1; background: linear-gradient(180deg, rgba(59, 230, 255, .13), rgba(59, 230, 255, 0) 70%); }
.card[data-tier="2"] { border-color: rgba(255, 197, 61, .6); box-shadow: 0 10px 34px -14px rgba(255, 197, 61, .65); }
.card[data-tier="2"]::before { opacity: 1; background: linear-gradient(180deg, rgba(255, 197, 61, .14), rgba(255, 197, 61, 0) 70%); }

.medal {
  position: relative; width: 76px; height: 76px; border-radius: 50%; padding: 0; cursor: pointer;
  display: grid; place-items: center; border: 0;
  background: radial-gradient(circle at 50% 38%, #1e2436 0%, #0a0c13 72%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.06);
  transition: box-shadow .25s, transform .2s;
}
.medal img {
  width: 84%; height: 84%; object-fit: contain; pointer-events: none;
  filter: saturate(.55) brightness(.78);
  transition: filter .25s, transform .25s;
}
.medal .ph { width: 42%; height: 42%; color: #5d6780; transition: color .25s, transform .25s; }
.card[data-tier="1"] .medal .ph { color: var(--v1); transform: scale(1.08); }
.card[data-tier="2"] .medal .ph { color: var(--v2); transform: scale(1.08); }
.card[data-tier="1"] .medal { box-shadow: inset 0 0 0 2px var(--v1), 0 0 22px rgba(59, 230, 255, .45); }
.card[data-tier="2"] .medal { box-shadow: inset 0 0 0 2px var(--v2), 0 0 24px rgba(255, 197, 61, .5); }
.card:not([data-tier="0"]) .medal img { filter: none; transform: scale(1.07); }
.medal .lvl {
  position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%) scale(.6); opacity: 0;
  height: 19px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center;
  font: 800 10px/1 var(--display); letter-spacing: .01em; white-space: nowrap;
  box-shadow: 0 0 0 3px var(--surface);
  transition: opacity .2s, transform .2s;
}
.card[data-tier="1"] .lvl { opacity: 1; transform: translateX(-50%) scale(1); background: var(--v1); color: var(--v1-ink); }
.card[data-tier="2"] .lvl { opacity: 1; transform: translateX(-50%) scale(1); background: var(--v2); color: var(--v2-ink); }

/* способность без уровней (Infinity) — свой фиолетовый цвет */
.card--one[data-tier="1"] { border-color: rgba(176, 107, 255, .6); box-shadow: 0 10px 34px -14px rgba(176, 107, 255, .7); }
.card--one[data-tier="1"]::before { background: linear-gradient(180deg, rgba(176, 107, 255, .16), rgba(176, 107, 255, 0) 70%); }
.card--one[data-tier="1"] .medal { box-shadow: inset 0 0 0 2px #b06bff, 0 0 24px rgba(176, 107, 255, .55); }
.card--one[data-tier="1"] .lvl { background: linear-gradient(90deg, #9a6bff, #ff4dd8); color: #fff; }

.name {
  margin-top: 8px; min-height: 2.5em; display: flex; align-items: center; justify-content: center;
  text-align: center; font: 600 13.5px/1.2 var(--body); letter-spacing: -.005em;
}
.ru { font-size: 12px; line-height: 1.2; color: var(--muted); margin-bottom: 8px; text-align: center; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; width: 100%; margin-top: auto; }
.seg--one { grid-template-columns: 1fr; }
.seg button {
  height: 34px; border-radius: 11px; cursor: pointer;
  background: rgba(255,255,255,.045); border: 1px solid var(--line); color: var(--muted);
  font: 700 12px/1 var(--display); letter-spacing: .02em;
  transition: background .18s, color .18s, border-color .18s, transform .1s;
}
.seg button:active { transform: scale(.96); }
.seg button[data-t="1"][aria-pressed="true"] { background: var(--v1); border-color: var(--v1); color: var(--v1-ink); }
.seg button[data-t="2"][aria-pressed="true"] { background: var(--v2); border-color: var(--v2); color: var(--v2-ink); }
.seg--one button[aria-pressed="true"] { background: linear-gradient(90deg, #9a6bff, #ff4dd8) !important; border-color: transparent !important; color: #fff !important; }
.seg small { font: 500 10px/1 var(--body); opacity: .75; margin-left: 3px; letter-spacing: 0; }

.card.pop { animation: pop .32s ease; }
@keyframes pop { 40% { transform: scale(1.035); } }

/* ── доп. параметры ──────────────────────────────────── */
.extras { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); margin-top: 14px; }
.extra {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  padding: 12px 14px 12px 12px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.extra[aria-checked="true"] {
  border-color: rgba(43, 255, 176, .5);
  background: linear-gradient(90deg, rgba(43, 255, 176, .09), var(--surface) 70%);
  box-shadow: 0 10px 34px -16px rgba(43, 255, 176, .55);
}
.extra-ic {
  flex: none; width: 54px; height: 54px; border-radius: 14px; overflow: hidden;
  display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #1e2436, #0a0c13 75%);
}
.extra-ic img { width: 92%; height: 92%; object-fit: contain; }
.extra-ic svg { width: 28px; height: 28px; color: #aab3c7; }
.extra[aria-checked="true"] .extra-ic svg { color: var(--money); }
.extra-txt { display: flex; flex-direction: column; min-width: 0; }
.extra-txt b { font-weight: 600; font-size: 15px; line-height: 1.25; }
.extra-txt span { color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.extra-price { margin-left: auto; flex: none; font: 700 13px/1 var(--display); color: var(--money); white-space: nowrap; }
.switch {
  flex: none; position: relative; width: 44px; height: 26px; border-radius: 13px;
  background: rgba(255,255,255,.1); transition: background .2s;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #cfd5e2; transition: transform .22s cubic-bezier(.3, 1.4, .5, 1), background .2s;
}
.extra[aria-checked="true"] .switch { background: var(--money); }
.extra[aria-checked="true"] .switch::after { transform: translateX(18px); background: #04150e; }

.mailnote {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 12px;
  padding: 13px 16px 13px 14px; border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(255, 197, 61, .09), var(--surface) 75%);
  border: 1px solid rgba(255, 197, 61, .32);
}
.mailnote[hidden] { display: none; }
.mailnote svg { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--v2); }
.mailnote p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.mailnote b { color: var(--text); font-weight: 600; }

/* ── как проходит ────────────────────────────────────── */
.steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: s; }
.steps li {
  counter-increment: s; position: relative;
  padding: 16px 16px 16px 60px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 3px;
}
.steps li::before {
  content: counter(s); position: absolute; left: 14px; top: 16px;
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  font: 800 14px/1 var(--display); color: #04150e;
  background: linear-gradient(135deg, var(--money), var(--money-2));
}
.steps b { font-weight: 600; }
.steps span { color: var(--muted); font-size: 14px; }
.fine { margin: 14px 2px 0; color: var(--dim); font-size: 13px; }

/* «Частые вопросы» — текст для людей и поиска; цены подставляет сборка из каталога */
.faq h3 { margin: 18px 0 6px; font: 600 15px/1.35 var(--body); color: var(--text); }
.faq h3:first-of-type { margin-top: 8px; }
.faq p { margin: 0; color: #a9b1c2; font-size: 14px; line-height: 1.6; max-width: 760px; }
.faq a, .foot a { color: #ffcf5a; text-decoration: none; border-bottom: 1px solid rgba(255, 207, 90, .35); }
/* нижняя навигация: хлебные крошки и разделы магазина */
.foot { margin: 34px 0 0; padding: 18px 2px 0; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.foot p { margin: 0; }
.foot .crumbs { margin-bottom: 10px; }
.foot .crumbs a { border-bottom: 0; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
@media (hover: hover) {
  .faq a:hover, .foot a:hover { border-bottom-color: #ffcf5a; }
}
.err { margin: 24px 0 0; padding: 14px 16px; border-radius: 14px; background: rgba(255, 59, 92, .1); border: 1px solid rgba(255, 59, 92, .35); color: #ffb3c0; }
.retry { margin-left: 8px; height: 32px; padding: 0 14px; border-radius: 10px; border: 0; cursor: pointer; background: #ffb3c0; color: #2a0f16; font-weight: 600; }
.noscript { position: fixed; inset: auto 16px 16px; padding: 14px; border-radius: 14px; background: #2a0f16; }

/* ── нижняя панель ───────────────────────────────────── */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; max-width: 100vw;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(6, 7, 11, 0), rgba(6, 7, 11, .9) 30%);
  pointer-events: none;
}
.dock-in {
  pointer-events: auto;
  max-width: 760px; margin: 0 auto; border-radius: 22px;
  background: rgba(15, 18, 27, .94); border: 1px solid var(--line-2);
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0,0,0,.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  overflow: hidden;
}
.bar { display: flex; align-items: stretch; gap: 8px; padding: 8px; }
.sum {
  flex: 1 1 auto; min-width: 0; overflow: hidden; cursor: pointer; text-align: left;
  display: flex; flex-direction: column; justify-content: center; gap: 3px;
  padding: 6px 10px; border: 0; border-radius: 14px; background: transparent;
}
.sum-lbl { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; }
.sum-lbl em { font-style: normal; color: var(--dim); }
.sum-lbl::after {
  content: ""; width: 7px; height: 7px; border-right: 1.8px solid var(--muted); border-top: 1.8px solid var(--muted);
  transform: rotate(-45deg) translate(-1px, 1px); transition: transform .2s;
}
.sum[aria-expanded="true"] .sum-lbl::after { transform: rotate(135deg) translate(-1px, 1px); }
.sum-val {
  font: 800 clamp(22px, 5.6vw, 28px)/1 var(--display); letter-spacing: -.02em; color: var(--money);
  font-variant-numeric: tabular-nums; white-space: nowrap; transition: transform .2s;
  text-shadow: 0 0 22px rgba(43, 255, 176, .35);
}
.sum-val.bump { animation: bump .35s ease; }
@keyframes bump { 35% { transform: scale(1.08); } }

.sell {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 158px; padding: 0 18px; border-radius: 15px; text-decoration: none;
  font: 700 14px/1.15 var(--display); letter-spacing: -.005em; text-align: center;
  color: #03150d; background: linear-gradient(95deg, var(--money), var(--money-2));
  box-shadow: 0 8px 26px -8px rgba(43, 255, 176, .7);
  transition: filter .2s, transform .1s, opacity .2s, box-shadow .2s;
}
.sell svg { width: 18px; height: 18px; flex: none; }
.sell:active { transform: scale(.97); }
.sell[aria-disabled="true"] {
  color: var(--dim); background: rgba(255,255,255,.06); box-shadow: none; cursor: default;
}
.sell[aria-disabled="true"] svg { display: none; }

.sheet { border-bottom: 1px solid var(--line); padding: 14px 16px 10px; max-height: min(46vh, 420px); overflow: auto; overscroll-behavior: contain; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.sheet-head b { font: 700 14px/1 var(--display); }
.x { width: 32px; height: 32px; border-radius: 10px; border: 0; background: rgba(255,255,255,.06); cursor: pointer; display: grid; place-items: center; }
.x svg { width: 18px; height: 18px; }
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.lines li:last-child { border-bottom: 0; }
.lines img { width: 26px; height: 26px; object-fit: contain; flex: none; }
.lines .dot { width: 26px; height: 26px; flex: none; display: grid; place-items: center; color: var(--money); }
.lines .dot svg { width: 18px; height: 18px; }
.lines span { flex: 1; min-width: 0; }
.lines b { font: 700 13px/1 var(--display); color: var(--money); white-space: nowrap; }
.lines .t1 { color: var(--v1); font: 700 11px/1 var(--display); margin-left: 4px; }
.lines .t2 { color: var(--v2); font: 700 11px/1 var(--display); margin-left: 4px; }
.sheet-empty { margin: 4px 0 6px; color: var(--muted); font-size: 14px; }
.sheet-mail { margin: 8px 0 4px; color: var(--v2); font-size: 13px; }

/* ── наведение (только мышь) ─────────────────────────── */
@media (hover: hover) and (pointer: fine) {
  .card:hover { border-color: var(--line-2); transform: translateY(-2px); }
  .card[data-tier="1"]:hover { border-color: var(--v1); }
  .card[data-tier="2"]:hover { border-color: var(--v2); }
  .medal:hover img { filter: none; }
  .seg button:hover { border-color: var(--line-2); color: var(--text); }
  .extra:hover { border-color: var(--line-2); }
  .extra[aria-checked="true"]:hover { border-color: var(--money); }
  .sell:not([aria-disabled="true"]):hover { filter: brightness(1.08); box-shadow: 0 10px 32px -8px rgba(43, 255, 176, .9); }
  .top-link:hover { background: rgba(255,255,255,.09); border-color: var(--line-2); }
  .back-pill:hover { background-color: rgba(255, 207, 90, .08); border-color: rgba(255, 207, 90, .85); }
  .proof:hover { border-color: rgba(255, 207, 90, .8); background-color: rgba(255, 207, 90, .06); }
  .ghost:hover { color: var(--text); border-color: var(--muted); }
}

/* ── телефоны ────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { grid-template-columns: 1fr; padding-top: 26px; }
  .hero-ball { position: absolute; top: 8px; right: -26px; width: 128px; height: 128px; margin: 0; opacity: .55; z-index: -1; }
  .ball { inset: 26px; }
  .rules li { font-size: 13px; }
  .proof { font-size: 13px; gap: 8px; padding: 8px 12px 8px 10px; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .card { padding: 12px 6px 6px; border-radius: 16px; }
  .medal { width: 62px; height: 62px; }
  .name { font-size: 12px; margin-top: 6px; }
  .ru { font-size: 11px; margin-bottom: 6px; }
  .seg { gap: 4px; }
  .seg button { height: 32px; border-radius: 10px; font-size: 11px; }
  .seg small { display: none; }
  .medal .lvl { font-size: 9px; padding: 0 6px; height: 17px; }
  .extras { grid-template-columns: 1fr; }
  .extra-ic { width: 48px; height: 48px; }
  .sell { min-width: 0; padding: 0 16px; font-size: 14px; }
  .sell-sum, .sum-lbl em { display: none; }        /* сумма и так крупно слева */
  .dock { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 420px) {
  /* на сайте в шапке три элемента: «Бот» — одной иконкой, чтобы название не резалось
     (с подписью шапке нужно ≈414 px) */
  .top-actions { gap: 6px; }
  .top-link { width: 36px; padding: 0; justify-content: center; }
  .top-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 370px) {
  /* 360 px: ужимаем «‹ Магазин» и промежутки ещё на несколько пикселей */
  .top { gap: 10px; }
  .brand { gap: 8px; }
  .top-actions { gap: 4px; }
  .back-pill--site { padding: 0 10px 0 5px; }
}
@media (max-width: 350px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── внутри Telegram ─────────────────────────────────── */
body.tg .top { padding-top: 10px; }
body.tg .top-link { display: none !important; }
body.tg .back-pill--site, body.tg .top-actions { display: none !important; }   /* вместо них — золотая слева */
body.tg .back-pill--tg { display: inline-flex; }
body.tg .hero { padding-top: 18px; }

/* ── переход магазин ↔ скупка ────────────────────────────
   Кадр подмены (последний в магазине = первый здесь): .cfx — весь экран #06070b и мяч
   64×64 по центру; базовые правила обложки — inline в <head>, чтобы работали до css.
   html.cover            — обложка стоит (ставит inline-скрипт по флагу bbs:from-shop)
   html.cover.arriving   — вход 600 мс: мяч садится в логотип, обложка тает, контент поднимается
   html.leaving          — уход 450 мс: контент гаснет, мяч в центр, кольцо схлопывается, обложка
   Только transform / opacity. */
.cfx-ring {
  width: 240px; height: 240px; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, transparent 60%, #e0a53a 70%, #fff3cf 74%, #ffcf5a 78%, rgba(255, 190, 60, 0) 96%);
}
/* свечение мяча как у логотипа шапки; в кадре подмены его нет */
.cfx-mark::before {
  content: ""; position: absolute; inset: -30%; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, rgba(255, 59, 92, .42), rgba(255, 59, 92, 0));
}
html.cover .brand-mark, html.leaving .brand-mark { opacity: 0; }

/* лесенка: задержка входа --d и ухода --dd */
.hero .kicker { --d: 120ms; --dd: 0ms; }
.hero h1 { --d: 170ms; --dd: 20ms; }
.hero .lead { --d: 200ms; --dd: 30ms; }
.hero .rules { --d: 220ms; --dd: 40ms; }
.hero .proof { --d: 235ms; --dd: 45ms; }
.wrap > .block { --d: 250ms; --dd: 60ms; }
.wrap > .block + .block { --d: 280ms; }
.dock-in { --d: 300ms; --dd: 60ms; }

/* вход (после загрузки, 600 мс) */
html.cover.arriving .cfx { animation: none; pointer-events: none; }
html.cover.arriving .cfx-bg { animation: cfx-fade-out 300ms linear 120ms both; }
html.cover.arriving .cfx-mark { animation: cfx-dock 400ms cubic-bezier(.2, .8, .2, 1) 40ms both; }
html.cover.arriving .cfx-mark::before { animation: cfx-fade-in 400ms linear 40ms both; }
html.cover.arriving .hero .kicker,
html.cover.arriving .hero h1,
html.cover.arriving .hero .lead,
html.cover.arriving .hero .rules,
html.cover.arriving .hero .proof,
html.cover.arriving .wrap > .block,
html.cover.arriving .dock-in { animation: cfx-rise 340ms cubic-bezier(.2, .8, .2, 1) var(--d, 250ms) both; }
html.cover.arriving .hero-ball { animation: cfx-appear 420ms cubic-bezier(.2, .8, .2, 1) 200ms both; }
html.cover.arriving .brand-text { animation: cfx-appear 260ms linear 300ms both; }
html.cover.arriving .back-pill--tg { animation: cfx-pill-l 280ms cubic-bezier(.2, .8, .2, 1) 160ms both; }
html.cover.arriving .top-actions { animation: cfx-pill-r 280ms cubic-bezier(.2, .8, .2, 1) 160ms both; }
html.cover.arriving .bp-shine { animation: cfx-shine 300ms cubic-bezier(.65, 0, .35, 1) 300ms both; }

/* уход в магазин (до навигации, 450 мс) */
html.leaving .cfx { visibility: visible; pointer-events: auto; }
html.leaving .cfx-bg { animation: cfx-fade-in 160ms linear 260ms both; }
html.leaving .cfx-mark { animation: cfx-undock 360ms cubic-bezier(.6, 0, .2, 1) 40ms both; }
html.leaving .cfx-mark::before { animation: cfx-fade-out 240ms linear 40ms both; }
html.leaving .cfx-ring { animation: cfx-ring 320ms cubic-bezier(.5, 0, .75, 0) 120ms both; }
html.leaving .hero .kicker,
html.leaving .hero h1,
html.leaving .hero .lead,
html.leaving .hero .rules,
html.leaving .hero .proof,
html.leaving .wrap > .block,
html.leaving .dock-in { animation: cfx-sink 200ms cubic-bezier(.4, 0, 1, 1) var(--dd, 0ms) both; }
html.leaving .hero-ball,
html.leaving .brand-text,
html.leaving .back-pill--tg,
html.leaving .top-actions { animation: cfx-sink 200ms cubic-bezier(.4, 0, 1, 1) both; }

@keyframes cfx-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes cfx-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes cfx-appear { from { opacity: 0; } }
@keyframes cfx-dock { from { transform: none; } to { transform: translate(var(--fx, 0px), var(--fy, 0px)) scale(var(--fs, 1)); } }
@keyframes cfx-undock { from { transform: translate(var(--fx, 0px), var(--fy, 0px)) scale(var(--fs, 1)); } to { transform: none; } }
@keyframes cfx-ring { 0% { transform: scale(3.2); opacity: 0; } 25% { opacity: 1; } 85% { opacity: .9; } 100% { transform: scale(.3); opacity: 0; } }
@keyframes cfx-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes cfx-sink { to { opacity: 0; transform: translateY(8px); } }
@keyframes cfx-pill-l { from { opacity: 0; transform: translateX(-10px); } }
@keyframes cfx-pill-r { from { opacity: 0; transform: translateX(10px); } }
@keyframes cfx-shine { from { transform: translateX(-120%); } to { transform: translateX(180%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
