/* ═══════════════════════ Токены ═══════════════════════ */
:root {
  --bg: #07070f;
  --bg-2: #0c0c1a;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --text: #eeedff;
  --muted: #9d9bbd;
  --dim: #6b6990;
  --violet: #7c5cff;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --green: #34d399;
  --red: #fb7185;
  --grad: linear-gradient(120deg, var(--violet), var(--cyan));
  --grad-2: linear-gradient(120deg, var(--pink), var(--violet) 50%, var(--cyan));
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-d: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-d); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
::selection { background: rgba(124, 92, 255, .45); }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 860px; }
.ic { width: 20px; height: 20px; flex: none; }
.accent { color: var(--cyan); }
.grad-text { background: var(--grad-2); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% auto; animation: gradShift 6s linear infinite; }
@keyframes gradShift { to { background-position: 200% center; } }

/* ═══════════════════════ Фон ═══════════════════════ */
#particles { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35; animation: float 22s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { width: 620px; height: 620px; background: var(--violet); top: -220px; left: -160px; }
.aurora span:nth-child(2) { width: 520px; height: 520px; background: var(--cyan); top: 30%; right: -220px; opacity: .2; animation-delay: -6s; }
.aurora span:nth-child(3) { width: 480px; height: 480px; background: var(--pink); bottom: -260px; left: 30%; opacity: .16; animation-delay: -12s; }
@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(80px, 60px) scale(1.15); }
  100% { transform: translate(-40px, 120px) scale(.95); }
}

/* ═══════════════════════ Кнопки и мелочи ═══════════════════════ */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 14px; font-weight: 700; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  overflow: hidden; isolation: isolate;
}
.btn:active { transform: scale(.97); }
.btn--lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -8px rgba(124, 92, 255, .7); }
.btn--primary::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(34, 211, 238, .6); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost { background: var(--surface-2); border: 1px solid var(--border-2); }
.btn--ghost:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.btn .ic { width: 20px; height: 20px; }
.btn [data-icon="steam-mini"] svg { width: 22px; height: 22px; }

.icon-btn {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border); transition: background .2s, transform .2s;
}
.icon-btn:hover { background: rgba(255,255,255,.1); }
.icon-btn:active { transform: scale(.94); }

.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); font-size: 14px;
}
.pill b { color: var(--text); font-weight: 700; }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 16px; border-radius: 11px; border: 1px solid var(--border-2); background: var(--surface);
  font-weight: 600; font-size: 14px; transition: all .2s var(--ease); line-height: 1.3; text-align: left;
}
.chip:hover { border-color: rgba(124, 92, 255, .6); background: rgba(124, 92, 255, .08); }
.chip.is-active { background: rgba(124, 92, 255, .18); border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124, 92, 255, .18); }
.chip small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.chip__hot { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: var(--pink); color: #fff; font-size: 10px; font-weight: 800; vertical-align: 2px; }

/* ═══════════════════════ Логотип ═══════════════════════ */
.logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-d); font-weight: 700; font-size: 20px; }
.logo__text span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo__atom { position: relative; width: 34px; height: 34px; display: inline-block; }
.logo__atom i {
  position: absolute; inset: 0; margin: auto; width: 100%; height: 38%; border-radius: 50%;
  border: 2px solid transparent; border-top-color: var(--cyan); border-bottom-color: var(--violet);
  animation: spin 3.5s linear infinite;
}
.logo__atom i:nth-child(2) { transform: rotate(60deg); animation-name: spin60; animation-duration: 4.5s; }
.logo__atom i:nth-child(3) { transform: rotate(120deg); animation-name: spin120; animation-duration: 5.5s; }
.logo__atom b { position: absolute; inset: 0; margin: auto; width: 22%; height: 22%; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin60 { from { transform: rotate(60deg); } to { transform: rotate(420deg); } }
@keyframes spin120 { from { transform: rotate(120deg); } to { transform: rotate(480deg); } }

/* ═══════════════════════ Шапка ═══════════════════════ */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(7, 7, 15, .72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-color: var(--border); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 15px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.header__actions { display: flex; gap: 10px; }
.cart-btn__count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--grad); font-size: 11px; font-weight: 800; display: grid; place-items: center;
  transform: scale(0); transition: transform .3s var(--ease);
}
.cart-btn__count.is-visible { transform: scale(1); }
.cart-btn.is-bump { animation: bump .45s var(--ease); }
@keyframes bump { 30% { transform: scale(1.18) rotate(-6deg); } 60% { transform: scale(.95) rotate(3deg); } }
.burger { display: none; }

/* ═══════════════════════ Hero ═══════════════════════ */
.hero { position: relative; padding: 56px 0 0; }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; min-height: 560px; }
.hero__title { font-size: clamp(36px, 5.4vw, 66px); margin: 24px 0 20px; font-weight: 800; }
.hero__word { display: inline-block; white-space: nowrap; }
.hero__lead { color: var(--muted); font-size: 18px; max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.stats { display: grid; grid-template-columns: repeat(4, auto); gap: 32px; margin: 48px 0 0; justify-content: start; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { color: var(--muted); font-size: 13px; }
.stats dd { margin: 0; font-family: var(--font-d); font-size: 26px; font-weight: 700; }

.hero__visual { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center; }
.orbit-system { position: absolute; inset: 0; }
.core { position: absolute; inset: 0; margin: auto; width: 26%; height: 26%; display: grid; place-items: center; }
.core__glow { position: absolute; inset: -40%; border-radius: 50%; background: radial-gradient(circle, rgba(124,92,255,.55), rgba(34,211,238,.15) 45%, transparent 70%); animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.15); opacity: .75; } }
.logo__atom--big { width: 100%; height: 100%; }
.logo__atom--big i { border-width: 3px; }
.ring { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1px dashed rgba(255,255,255,.1); }
.ring--1 { width: 52%; height: 52%; animation: spin 26s linear infinite; }
.ring--2 { width: 76%; height: 76%; animation: spin 38s linear infinite reverse; }
.ring--3 { width: 100%; height: 100%; animation: spin 52s linear infinite; }
.orbiter { position: absolute; top: 50%; left: 50%; width: 0; height: 0; }
.orbiter .brand-ico { position: absolute; width: 64px; height: 64px; margin: -32px 0 0 -32px; }
.ring--1 .orbiter .brand-ico { animation: spin 26s linear infinite reverse; }
.ring--2 .orbiter .brand-ico { animation: spin 38s linear infinite; }
.ring--3 .orbiter .brand-ico { animation: spin 52s linear infinite reverse; }

/* Плитка с иконкой бренда */
.brand-ico {
  --c1: #7c5cff; --c2: #22d3ee;
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 30%;
  background: linear-gradient(140deg, var(--c1), var(--c2)); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 12px 30px -10px var(--c1);
}
.brand-ico::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(160deg, rgba(255,255,255,.28), transparent 45%); pointer-events: none; }
.brand-ico svg { width: 58%; height: 58%; }
.brand-ico--dark { color: #15151f; }
.brand-ico--steam { --c1: #1b6fa8; --c2: #0b1d33; }

/* Бегущая строка */
.ticker {
  margin-top: 56px; border-block: 1px solid var(--border); background: rgba(255,255,255,.02); overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.tick { display: flex; align-items: center; gap: 10px; padding: 16px 28px; white-space: nowrap; font-size: 14px; border-right: 1px solid var(--border); }
.tick .brand-ico { width: 26px; height: 26px; border-radius: 8px; box-shadow: none; }
.tick b { font-weight: 700; }
.tick s { color: var(--dim); }
.tick em { font-style: normal; color: var(--green); font-weight: 700; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ═══════════════════════ Секции ═══════════════════════ */
.section { padding: 110px 0 0; }
.section__head { margin-bottom: 36px; }
.section__title { font-size: clamp(28px, 3.6vw, 44px); }
.section__sub { color: var(--muted); margin-top: 12px; max-width: 640px; font-size: 17px; }

/* Панель фильтров */
.toolbar {
  position: sticky; top: calc(var(--header-h) + 8px); z-index: 20;
  display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 10px; margin-bottom: 28px; border-radius: 18px;
  background: rgba(12, 12, 26, .78); border: 1px solid var(--border);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.tabs { position: relative; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; z-index: 1; padding: 10px 18px; border-radius: 11px; font-weight: 700; font-size: 14px; color: var(--muted); white-space: nowrap; transition: color .25s; }
.tab:hover { color: var(--text); }
.tab.is-active { color: #fff; }
.tab sup { font-size: 11px; color: var(--dim); margin-left: 4px; font-weight: 600; }
.tab.is-active sup { color: rgba(255,255,255,.7); }
.tabs__ink { position: absolute; z-index: 0; top: 0; bottom: 0; border-radius: 11px; background: var(--grad); box-shadow: 0 6px 20px -6px rgba(124,92,255,.8); transition: left .4s var(--ease), width .4s var(--ease); }
.toolbar__right { display: flex; gap: 10px; flex: 1; justify-content: flex-end; min-width: 280px; }
.search { position: relative; display: flex; align-items: center; flex: 1; max-width: 320px; }
.search .ic { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--dim); pointer-events: none; }
.search input, .select select, .field input[type="text"], .field input[type="email"], .amount input {
  width: 100%; height: 44px; padding: 0 14px 0 42px; border-radius: 12px; border: 1px solid var(--border);
  background: rgba(255,255,255,.04); outline: none; transition: border-color .2s, box-shadow .2s;
}
.search input:focus, .select select:focus, .field input:focus, .amount input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124,92,255,.2); }
.select { position: relative; }
.select select { appearance: none; padding: 0 40px 0 14px; cursor: pointer; }
.select select option { background: var(--bg-2); }
.select .ic { position: absolute; right: 12px; top: 12px; width: 18px; height: 18px; pointer-events: none; color: var(--dim); }

/* ═══════════════════════ Карточки ═══════════════════════ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius); padding: 22px;
  background: var(--surface); border: 1px solid var(--border); cursor: pointer; overflow: hidden;
  transform-style: preserve-3d; transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
  animation: cardIn .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(124,92,255,.16), transparent 45%);
}
.card::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(280px circle at var(--mx) var(--my), rgba(34,211,238,.9), rgba(124,92,255,.5) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.card:hover { box-shadow: var(--shadow); }
.card:hover::before, .card:hover::after { opacity: 1; }
.card:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card .brand-ico { transition: transform .4s var(--ease); }
.card:hover .brand-ico { transform: translateZ(30px) rotate(-6deg) scale(1.08); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.badge { padding: 4px 9px; border-radius: 8px; font-size: 11px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.badge--hot { background: rgba(244,114,182,.15); color: #ff9ccc; border-color: rgba(244,114,182,.35); }
.badge--new { background: rgba(34,211,238,.13); color: var(--cyan); border-color: rgba(34,211,238,.35); }
.badge--deal { background: rgba(52,211,153,.13); color: var(--green); border-color: rgba(52,211,153,.35); }
.card__name { font-size: 19px; margin-top: 18px; }
.card__vendor { color: var(--dim); font-size: 13px; font-weight: 600; margin-top: 4px; }
.card__tag { color: var(--muted); font-size: 14px; margin-top: 12px; flex: 1; line-height: 1.5; }
.card__plans { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.card__plans span { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 7px; background: rgba(255,255,255,.05); color: var(--muted); }
.card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.price__from { font-size: 12px; color: var(--dim); font-weight: 600; }
.price__now { font-family: var(--font-d); font-size: 22px; font-weight: 700; line-height: 1.2; }
.price__old { font-size: 13px; color: var(--dim); }
.price__old s { margin-right: 6px; }
.save { color: var(--green); font-weight: 800; font-size: 13px; }
.card__btn { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border-2); transition: all .3s var(--ease); flex: none; }
.card:hover .card__btn { background: var(--grad); border-color: transparent; transform: rotate(-45deg); }

/* Карточки игр */
.card--game { padding: 0; }
.card__cover { position: relative; aspect-ratio: 460 / 215; overflow: hidden; background: linear-gradient(135deg, var(--c1, #1b2838), var(--c2, #2a475e)); }
.card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .4s; }
.card__cover img.is-loading { opacity: 0; }
.card--game:hover .card__cover img { transform: scale(1.07); }
.card__cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(7,7,15,.85)); }
.card__cover .badges { position: absolute; top: 12px; right: 12px; z-index: 1; }
.card__cover .badge { backdrop-filter: blur(8px); background: rgba(7,7,15,.6); }
.cover-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; font-family: var(--font-d); font-weight: 800; font-size: 22px; letter-spacing: -.01em; color: rgba(255,255,255,.92); text-shadow: 0 2px 20px rgba(0,0,0,.5); }
.cover-fallback::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.18), transparent 50%), repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 2px, transparent 2px 12px); }
.card__platform { position: absolute; left: 12px; bottom: 10px; z-index: 1; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: rgba(255,255,255,.85); }
.card__platform svg { width: 16px; height: 16px; }
.card--game .card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card--game .card__name { margin-top: 0; font-size: 17px; }
.card--game .card__foot { margin-top: auto; }
.card--game .card__tag { flex: 0; margin-bottom: 4px; }

/* Карточка Steam-пополнения */
.card--topup { background: linear-gradient(150deg, rgba(27,111,168,.25), rgba(11,29,51,.4)), var(--surface); border-color: rgba(102,192,244,.25); }

.empty { text-align: center; color: var(--muted); padding: 60px 0; }

/* ═══════════════════════ Пополнение Steam ═══════════════════════ */
.topup {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 48px; border-radius: 28px; overflow: hidden;
  background: linear-gradient(140deg, rgba(27,111,168,.22), rgba(124,92,255,.1) 60%, rgba(7,7,15,.4)); border: 1px solid rgba(102,192,244,.2);
}
.topup::before { content: ''; position: absolute; width: 480px; height: 480px; top: -200px; left: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(102,192,244,.25), transparent 65%); pointer-events: none; }
.topup__badge .brand-ico { width: 72px; height: 72px; margin-bottom: 24px; animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-4deg); } }
.checklist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: center; color: var(--muted); }
.checklist .ic { color: var(--green); width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: rgba(52,211,153,.12); }
.topup__form { position: relative; display: grid; gap: 18px; padding: 28px; border-radius: 22px; background: rgba(7,7,15,.55); border: 1px solid var(--border); backdrop-filter: blur(10px); }
.field { display: grid; gap: 8px; }
.field__label { font-size: 13px; font-weight: 700; color: var(--muted); }
.field input[type="text"], .field input[type="email"] { padding-left: 14px; }
.field input.is-invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(251,113,133,.2); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.amount { position: relative; }
.amount input { padding: 0 44px 0 16px; height: 56px; font-family: var(--font-d); font-size: 22px; font-weight: 700; -moz-appearance: textfield; }
.amount input::-webkit-outer-spin-button, .amount input::-webkit-inner-spin-button { -webkit-appearance: none; }
.amount__suffix { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--dim); font-weight: 700; font-size: 18px; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--violet), var(--cyan)) 0 / var(--p, 10%) 100% no-repeat, rgba(255,255,255,.1); outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(124,92,255,.35); cursor: grab; transition: transform .2s; }
.range::-webkit-slider-thumb:active { transform: scale(1.2); }
.range::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(124,92,255,.35); cursor: grab; }
.calc { display: grid; gap: 10px; padding: 18px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px dashed var(--border-2); }
.calc__row { display: flex; justify-content: space-between; font-size: 15px; color: var(--muted); }
.calc__row b { color: var(--text); }
.calc__row--muted s { color: var(--dim); }
.calc__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 1px solid var(--border); font-weight: 700; }
.calc__total b { font-family: var(--font-d); font-size: 26px; }

/* ═══════════════════════ Сравнение ═══════════════════════ */
.compare { border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); overflow-x: auto; }
.compare__table { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare__table th, .compare__table td { padding: 16px 22px; text-align: left; }
.compare__table th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); font-weight: 700; border-bottom: 1px solid var(--border); }
.compare__table td { border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.compare__table tr:last-child td { border-bottom: 0; }
.compare__table tbody tr { transition: background .2s; cursor: pointer; }
.compare__table tbody tr:hover { background: rgba(255,255,255,.03); }
.compare__table th:nth-child(n+2), .compare__table td:nth-child(n+2) { text-align: right; }
.cmp-name { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.cmp-name small { display: block; color: var(--dim); font-weight: 600; font-size: 12px; }
.cmp-name .brand-ico { width: 34px; height: 34px; border-radius: 10px; box-shadow: none; flex: none; }
.cmp-thumb { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; flex: none; background: #1b2838; }
.cmp-market { color: var(--muted); }
.cmp-ours { font-weight: 800; }
.cmp-bar { display: inline-flex; align-items: center; gap: 10px; }
.cmp-bar i { display: block; width: 60px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.cmp-bar i::after { content: ''; display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--green), var(--cyan)); border-radius: inherit; }

/* ═══════════════════════ Шаги и преимущества ═══════════════════════ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.step__num { position: absolute; top: 16px; right: 22px; font-family: var(--font-d); font-size: 56px; font-weight: 800; color: rgba(255,255,255,.04); line-height: 1; }
.step__ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--grad); margin-bottom: 22px; box-shadow: 0 10px 30px -10px var(--violet); }
.step__ico .ic { width: 24px; height: 24px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); }
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 20px; }
.perk { display: flex; gap: 14px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.perk > span { color: var(--cyan); }
.perk .ic { width: 24px; height: 24px; }
.perk b { display: block; margin-bottom: 4px; }
.perk p { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ═══════════════════════ FAQ ═══════════════════════ */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 16px; border: 1px solid var(--border); background: var(--surface); transition: border-color .3s, background .3s; }
.faq details[open] { border-color: rgba(124,92,255,.4); background: rgba(124,92,255,.05); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .3s var(--ease); color: var(--muted); }
.faq details[open] summary .ic { transform: rotate(180deg); color: var(--cyan); }
.faq p { padding: 0 24px 22px; color: var(--muted); animation: fadeDown .35s var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } }

/* ═══════════════════════ Подвал ═══════════════════════ */
.footer { margin-top: 120px; border-top: 1px solid var(--border); background: rgba(7,7,15,.6); padding: 56px 0 28px; }
.footer__inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer__note { color: var(--dim); font-size: 13px; max-width: 460px; margin-top: 16px; }
.footer__cols { display: flex; gap: 64px; }
.footer__cols div { display: grid; gap: 10px; align-content: start; }
.footer__cols b { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); margin-bottom: 4px; }
.footer__cols a { color: var(--muted); transition: color .2s; }
.footer__cols a:hover { color: var(--text); }
.footer__bottom { margin-top: 40px; color: var(--dim); font-size: 13px; }

/* ═══════════════════════ Модалки ═══════════════════════ */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal__backdrop, .drawer__backdrop { position: absolute; inset: 0; background: rgba(3,3,10,.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__dialog {
  position: relative; width: 100%; max-width: 880px; max-height: calc(100vh - 40px); overflow-y: auto; border-radius: 26px;
  background: linear-gradient(180deg, #121226, #0b0b18); border: 1px solid var(--border-2); box-shadow: 0 40px 120px -20px rgba(0,0,0,.8);
  opacity: 0; transform: translateY(30px) scale(.96); transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.modal__dialog--sm { max-width: 480px; }
.modal.is-open .modal__dialog { opacity: 1; transform: none; }
.modal__close { position: absolute; top: 16px; right: 16px; z-index: 2; }

.pm { display: grid; grid-template-columns: 300px 1fr; }
.pm__side { position: relative; padding: 36px 28px; border-right: 1px solid var(--border); overflow: hidden; }
.pm__side::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 0%, var(--c1), transparent 70%); opacity: .3; pointer-events: none; }
.pm__side > * { position: relative; }
.pm__side .brand-ico { width: 88px; height: 88px; border-radius: 26px; }
.pm__cover { margin: -36px -28px 24px; aspect-ratio: 460 / 215; position: relative; overflow: hidden; background: linear-gradient(135deg, #1b2838, #2a475e); }
.pm__cover img { width: 100%; height: 100%; object-fit: cover; }
.pm__title { font-size: 26px; margin-top: 22px; }
.pm__vendor { color: var(--dim); font-weight: 600; font-size: 14px; margin-top: 4px; }
.pm__tag { color: var(--muted); font-size: 15px; margin-top: 14px; }
.pm__features { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; font-size: 14px; }
.pm__features li { display: flex; gap: 10px; align-items: center; }
.pm__features .ic { color: var(--green); width: 18px; height: 18px; }
.pm__main { padding: 36px 32px 32px; display: grid; gap: 24px; align-content: start; }
.pm__group h4 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.pm__note { color: var(--muted); font-size: 14px; margin-top: 12px; min-height: 22px; }
.pm__delivery { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 14px; background: rgba(34,211,238,.06); border: 1px solid rgba(34,211,238,.2); color: var(--muted); font-size: 14px; }
.pm__delivery .ic { color: var(--cyan); }
.pm__price { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--border); }
.pm__now { font-family: var(--font-d); font-size: 38px; font-weight: 800; line-height: 1; }
.pm__meta { display: flex; gap: 12px; align-items: center; margin-top: 10px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.pm__meta s { color: var(--dim); }
.pm__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.num-roll { display: inline-block; animation: roll .35s var(--ease); }
@keyframes roll { from { opacity: 0; transform: translateY(40%); filter: blur(4px); } }

/* ═══════════════════════ Корзина ═══════════════════════ */
.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column;
  background: #0d0d1d; border-left: 1px solid var(--border-2); transform: translateX(100%); transition: transform .45s var(--ease);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--border); }
.drawer__head h3 { font-size: 20px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px 24px; display: grid; gap: 12px; align-content: start; }
.drawer__foot { padding: 20px 24px 24px; border-top: 1px solid var(--border); display: grid; gap: 14px; }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.drawer__total b { font-family: var(--font-d); font-size: 26px; }
.drawer__saved { color: var(--green); font-size: 14px; font-weight: 700; }
.ci { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); animation: cardIn .4s var(--ease) both; }
.ci.is-removing { animation: ciOut .3s var(--ease) forwards; }
@keyframes ciOut { to { opacity: 0; transform: translateX(40px); } }
.ci .brand-ico { width: 44px; height: 44px; border-radius: 13px; flex: none; box-shadow: none; }
.ci__thumb { width: 72px; height: 34px; border-radius: 8px; object-fit: cover; flex: none; background: #1b2838; }
.ci__info { flex: 1; min-width: 0; }
.ci__name { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci__opt { color: var(--dim); font-size: 13px; }
.ci__price { font-weight: 800; white-space: nowrap; }
.ci .icon-btn { width: 36px; height: 36px; color: var(--dim); }
.ci .icon-btn:hover { color: var(--red); }
.cart-empty { text-align: center; padding: 60px 10px; color: var(--muted); }
.cart-empty .brand-ico { margin: 0 auto 18px; width: 64px; height: 64px; opacity: .8; }

/* ═══════════════════════ Оформление ═══════════════════════ */
.co { padding: 36px 32px 32px; display: grid; gap: 18px; }
.co h3 { font-size: 22px; }
.co__sum { display: flex; justify-content: space-between; color: var(--muted); }
.co__sum b { color: var(--text); font-family: var(--font-d); font-size: 20px; }
.pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pay label { position: relative; cursor: pointer; }
.pay input { position: absolute; opacity: 0; }
.pay span { display: grid; justify-items: center; gap: 6px; padding: 14px 8px; border-radius: 14px; border: 1px solid var(--border-2); background: var(--surface); font-size: 13px; font-weight: 700; transition: all .2s; text-align: center; }
.pay input:checked + span { border-color: var(--violet); background: rgba(124,92,255,.14); box-shadow: 0 0 0 3px rgba(124,92,255,.18); }
.pay input:focus-visible + span { outline: 2px solid var(--cyan); }
.co__hint { color: var(--dim); font-size: 13px; }
.co__done { text-align: center; padding: 48px 32px 40px; display: grid; gap: 14px; justify-items: center; }
.co__check { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: rgba(52,211,153,.15); color: var(--green); animation: pop .6s var(--ease); }
.co__check .ic { width: 42px; height: 42px; stroke-width: 2.4; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .3s var(--ease) forwards; }
@keyframes pop { 0% { transform: scale(0); } 60% { transform: scale(1.15); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.co__done p { color: var(--muted); }
.co__id { font-family: var(--font-d); font-size: 15px; padding: 8px 14px; border-radius: 10px; background: var(--surface-2); }

/* ═══════════════════════ Тосты, полёт в корзину ═══════════════════════ */
.toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 10px; justify-items: center; pointer-events: none; }
.toast { display: flex; gap: 10px; align-items: center; padding: 12px 18px; border-radius: 14px; background: rgba(20,20,40,.92); border: 1px solid var(--border-2); backdrop-filter: blur(12px); box-shadow: var(--shadow); font-weight: 600; font-size: 14px; animation: toastIn .4s var(--ease); }
.toast .ic { color: var(--green); }
.toast.is-out { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.95); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }
.flyer { position: fixed; z-index: 300; pointer-events: none; border-radius: 14px; overflow: hidden; }

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

/* ═══════════════════════ Адаптив ═══════════════════════ */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; min-height: 0; }
  .hero__visual { max-width: 420px; order: -1; }
  .stats { grid-template-columns: repeat(2, auto); gap: 20px 40px; }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .topup { grid-template-columns: 1fr; padding: 32px; gap: 32px; }
}
@media (max-width: 860px) {
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 4px; padding: 12px 16px 20px;
    background: rgba(7,7,15,.96); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .3s var(--ease);
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 12px 14px; font-size: 16px; }
  .header__actions { margin-left: auto; }
  .burger { display: grid; }
  .steps { grid-template-columns: 1fr; }
  .pm { grid-template-columns: 1fr; }
  .pm__side { border-right: 0; border-bottom: 1px solid var(--border); }
  .toolbar { position: static; }
  .toolbar__right { min-width: 0; width: 100%; }
  .search { max-width: none; }
}
@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .container { padding: 0 16px; }
  .hero { padding-top: 24px; }
  .hero__visual { max-width: 300px; }
  .orbiter .brand-ico { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
  .hero__lead { font-size: 16px; }
  .hero__cta .btn { width: 100%; }
  .stats dd { font-size: 22px; }
  .section { padding-top: 80px; }
  .grid { grid-template-columns: 1fr; }
  .perks { grid-template-columns: 1fr; }
  .topup { padding: 20px; border-radius: 22px; }
  .topup__form { padding: 18px; }
  .toolbar__right { flex-direction: column; }
  .pm__main, .co { padding: 28px 20px 24px; }
  .pm__side { padding: 28px 20px; }
  .pm__cover { margin: -28px -20px 20px; }
  .pm__now { font-size: 32px; }
  .pm__actions, .pm__actions .btn { width: 100%; }
  .modal { padding: 0; align-items: end; }
  .modal__dialog { border-radius: 24px 24px 0 0; max-height: 92vh; }
  .footer__cols { gap: 40px; }
  .compare__table th, .compare__table td { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
.tick__thumb { width: 54px; height: 25px; border-radius: 6px; object-fit: cover; background: #1b2838; }
.compare__table td:nth-child(n+2) { white-space: nowrap; }
@media (max-width: 560px) {
  .hero__title { font-size: clamp(30px, 8.6vw, 40px); }
  .pm__side { display: grid; grid-template-columns: auto 1fr; gap: 0 16px; align-items: center; padding-bottom: 22px; }
  .pm__side .brand-ico { width: 60px; height: 60px; border-radius: 18px; grid-row: span 2; }
  .pm__side .pm__title { margin-top: 0; font-size: 22px; }
  .pm__side .pm__cover, .pm__side .pm__tag, .pm__side .pm__features { grid-column: 1 / -1; }
  .pm__side .pm__features { display: none; }
  .pm__side > .badge { grid-row: span 2; align-self: center; }
}
.pm__group:empty { display: none; }

/* ═══════════════════════ Оферта и реквизиты ═══════════════════════ */
mark.todo { background: rgba(250, 204, 21, .18); color: #fde047; border: 1px dashed rgba(250, 204, 21, .6); border-radius: 6px; padding: 0 6px; font-weight: 700; }
.legal-back { margin-left: auto; height: 42px; padding: 0 18px; font-size: 14px; }
.legal { display: grid; grid-template-columns: 260px 1fr; gap: 56px; padding-top: 48px; padding-bottom: 40px; align-items: start; }
.legal__toc { position: sticky; top: calc(var(--header-h) + 24px); padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.legal__toc b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); margin-bottom: 10px; }
.legal__toc nav { display: grid; gap: 2px; }
.legal__toc a { padding: 7px 10px; border-radius: 9px; color: var(--muted); font-size: 14px; font-weight: 600; transition: background .2s, color .2s; }
.legal__toc a:hover { background: var(--surface-2); color: var(--text); }
.legal__body { max-width: 760px; }
.legal__body h1 { font-size: clamp(30px, 4vw, 44px); }
.legal__lead { color: var(--muted); font-size: 18px; margin-top: 10px; }
.legal__meta { color: var(--dim); font-size: 14px; margin-top: 8px; }
.legal__body section { margin-top: 44px; scroll-margin-top: calc(var(--header-h) + 20px); }
.legal__body h2 { font-size: 21px; margin-bottom: 16px; }
.legal__body p, .legal__body li { color: #cfcde6; line-height: 1.75; }
.legal__body p + p { margin-top: 12px; }
.legal__body b { color: var(--text); }
.legal__body ul { margin: 10px 0 0; padding-left: 22px; }
.legal__body a { color: var(--cyan); }
.requisites { margin: 0; display: grid; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.requisites div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.requisites div:last-child { border-bottom: 0; }
.requisites dt { color: var(--dim); font-weight: 600; }
.requisites dd { margin: 0; font-weight: 700; word-break: break-word; }
.legal-page .footer { margin-top: 40px; padding: 28px 0; }
.footer__legal { margin-top: 14px; color: var(--dim); font-size: 13px; }
.footer__legal span + span::before { content: ' · '; }

/* Согласие с офертой при оформлении */
.agree { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; line-height: 1.5; }
.agree input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border-radius: 7px; border: 1px solid var(--border-2); background: var(--surface); display: grid; place-items: center; cursor: pointer; transition: all .2s; }
.agree input::after { content: ''; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); margin-top: -3px; transition: transform .2s var(--ease); }
.agree input:checked { background: var(--grad); border-color: transparent; }
.agree input:checked::after { transform: rotate(-45deg) scale(1); }
.agree input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.agree input.is-invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(251,113,133,.2); animation: shake .4s; }
.agree a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

@media (max-width: 860px) {
  .legal { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .legal__toc { position: static; }
  .requisites div { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 860px) {
  .legal__toc { padding: 14px; }
  .legal__toc nav { display: flex; flex-wrap: wrap; gap: 6px; }
  .legal__toc a { padding: 5px 10px; font-size: 13px; background: var(--surface-2); }
}
[hidden] { display: none !important; }

@media (max-width: 600px) { .footer__cols { flex-wrap: wrap; max-width: 100%; } .footer__cols > div { min-width: 0; overflow-wrap: anywhere; } }
