/* ПЛАТИ СЕЙЧАС — графит и кислотный лайм. Без эмодзи, только линейные иконки. */
:root {
  --bg: #0c0d10;
  --bg2: #111317;
  --card: #16181d;
  --card2: #1d2027;
  --line: rgba(255, 255, 255, .07);
  --line2: rgba(255, 255, 255, .13);
  --text: #f2f3f5;
  --muted: #8b9099;
  --dim: #6b717c;          /* подписи и счётчики — контраст не ниже 4:1 */
  --acc: #d4ff3a;          /* лайм */
  --acc-ink: #0c0d10;      /* текст на лайме */
  --acc-soft: rgba(212, 255, 58, .12);
  --acc-text: var(--acc);  /* акцент как цвет текста и иконок на карточках */
  --ok: #4ade80;
  --warn: #fbbf24;
  --info: #60a5fa;
  --bad: #f87171;
  --r: 16px;
  --r2: 22px;
  --font: "Onest", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .8);
}
:root[data-theme="light"] {
  --bg: #f4f4f1;
  --bg2: #ffffff;
  --card: #ffffff;
  --card2: #f0f0ec;
  --line: rgba(12, 13, 16, .08);
  --line2: rgba(12, 13, 16, .15);
  --text: #0c0d10;
  --muted: #62666f;
  --dim: #9a9ea6;
  --acc: #c6f432;
  --acc-ink: #0c0d10;
  --acc-soft: rgba(120, 160, 0, .12);
  --acc-text: #4d7a00;     /* светлый лайм на белом не читается — тёмный лайм */
  --ok: #16a34a;
  --warn: #b45309;
  --info: #2563eb;
  --bad: #dc2626;
  --shadow: 0 16px 34px -20px rgba(12, 13, 16, .35);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 500 15px/1.45 var(--font); min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }


.view { position: relative; padding: 16px 16px calc(100px + var(--safe-b)); max-width: 560px; margin: 0 auto; }
.view > * { animation: rise .4s cubic-bezier(.2, .8, .2, 1) both; }
.view > *:nth-child(2) { animation-delay: .03s; }
.view > *:nth-child(3) { animation-delay: .06s; }
.view > *:nth-child(4) { animation-delay: .09s; }
.view > *:nth-child(5) { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* шапка */
.top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.top h1 { font: 800 17px/1.1 var(--font); margin: 0; letter-spacing: -.02em; }
.top small { color: var(--muted); font-size: 12.5px; }
.chip-bonus { margin-left: auto; display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font: 700 13.5px var(--font); }
.chip-bonus svg { color: var(--acc-text); width: 16px; height: 16px; }

/* герой */
.hero { position: relative; display: flex; align-items: center; border-radius: var(--r2); overflow: hidden; min-height: 168px; background: #0c0d10; margin-bottom: 14px; color: #fff; box-shadow: var(--shadow); }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 13, 16, .9) 0%, rgba(12, 13, 16, .55) 45%, rgba(12, 13, 16, 0) 75%); }
.hero-text { position: relative; z-index: 1; width: 62%; padding: 20px 0 20px 18px; text-align: left; }
.hero-text b { display: block; font: 800 25px/1.02 var(--font); text-shadow: 0 2px 18px rgba(0, 0, 0, .6); letter-spacing: -.035em; }
.hero-text b em { font-style: normal; color: var(--acc); }
.hero-text span { display: block; margin-top: 8px; font-size: 12.5px; color: rgba(255, 255, 255, .7); }

/* поиск, чипсы */
.search { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; height: 48px; margin-bottom: 12px; color: var(--muted); }
.search input { flex: 1; background: none; border: 0; outline: 0; height: 100%; color: var(--text); }
.search input::placeholder { color: var(--dim); }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 18px; padding: 2px 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 36px; padding: 0 15px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font: 600 13.5px var(--font); color: var(--muted); transition: .18s; }
.chip.on { background: var(--text); color: var(--bg); border-color: transparent; }

.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 4px 2px 10px; }
.section-title h2 { font: 700 15px var(--font); letter-spacing: -.01em; margin: 0; }
.section-title span { font-size: 13px; color: var(--dim); }

/* сетка игр */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.game { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r); overflow: hidden; text-align: left; background: var(--card); border: 1px solid var(--line); isolation: isolate; transition: transform .18s; }
.game:active { transform: scale(.97); }
.game img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.mono {
  position: absolute; inset: 0; z-index: -2; display: grid; place-items: center;
  background: linear-gradient(155deg, hsl(var(--h) 30% 20%), hsl(var(--h) 25% 9%));
}
.mono span { font: 800 64px/1 var(--font); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px hsl(var(--h) 70% 72% / .55); transform: translateY(-16px); }
.mono::before { content: ""; position: absolute; inset: 0; opacity: .5; background-image: radial-gradient(hsl(var(--h) 60% 70% / .18) 1px, transparent 1px); background-size: 14px 14px; }
.game::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(8, 9, 11, .92)); }
.game-info { position: absolute; left: 12px; right: 12px; bottom: 11px; color: #fff; }
.game-info b { display: block; font: 700 14.5px/1.15 var(--font); letter-spacing: -.015em; }
.game-info small { display: block; margin-top: 4px; font-size: 12px; color: rgba(255, 255, 255, .62); }
.game-info small em { font-style: normal; color: var(--acc); font-weight: 700; }
.game .tag { position: absolute; top: 10px; left: 10px; font: 600 11px var(--font); padding: 4px 8px; border-radius: 99px; background: rgba(8, 9, 11, .55); backdrop-filter: blur(8px); color: #fff; }

/* страница игры */
.cover { position: relative; display: flex; flex-direction: column; border-radius: var(--r2); overflow: hidden; margin-bottom: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cover img, .cover .mono { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 30%; }
.cover .mono span { font-size: 96px; }
.cover-text { padding: 14px 16px 16px; color: var(--text); }
.cover-text h2 { margin: 0; font: 800 24px/1.05 var(--font); letter-spacing: -.03em; }
.cover-text p { margin: 6px 0 0; font-size: 13px; line-height: 1.4; color: var(--muted); }

/* список пакетов */
.tickets { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r2); overflow: hidden; }
.ticket { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 15px 16px; border-bottom: 1px solid var(--line); transition: background .15s; }
.ticket:last-child { border-bottom: 0; }
.ticket:active { background: var(--card2); }
.t-main { flex: 1; min-width: 0; }
.t-main b { display: block; font: 650 15.5px/1.25 var(--font); font-weight: 650; }
.t-main small { display: flex; align-items: center; gap: 10px; margin-top: 3px; color: var(--muted); font-size: 12.5px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 4px; }
.pill svg { width: 13px; height: 13px; }
.pill.auto { color: var(--ok); }
.t-price { flex: none; text-align: right; }
.t-price b { display: inline-block; font: 700 15px var(--font); padding: 8px 12px; border-radius: 10px; background: var(--card2); white-space: nowrap; }
.t-price s { display: block; font-size: 11.5px; color: var(--dim); margin-top: 3px; }
.ticket:active .t-price b { background: var(--acc); color: var(--acc-ink); }
.ticket.out { opacity: .45; }
.ticket.out .t-price b { font-size: 12px; font-weight: 600; }
.badge { display: inline-block; font: 700 10.5px var(--font); text-transform: uppercase; letter-spacing: .05em; padding: 3px 7px; border-radius: 6px; background: var(--acc-soft); color: var(--acc); margin-bottom: 5px; }
:root[data-theme="light"] .badge { color: #4d6b00; }

/* шит */
.sheet-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .55); opacity: 0; pointer-events: none; transition: .25s; }
.sheet-backdrop.on { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-width: 560px; margin: 0 auto; background: var(--bg2); border-radius: 24px 24px 0 0; border-top: 1px solid var(--line2); padding: 8px 18px calc(18px + var(--safe-b)); max-height: 92vh; overflow-y: auto; transform: translateY(105%); transition: transform .35s cubic-bezier(.2, .9, .2, 1); }
.sheet.on { transform: none; }
.sheet-grip { width: 38px; height: 4px; border-radius: 9px; background: var(--line2); margin: 4px auto 16px; }
.sh-head { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.sh-icon { width: 52px; height: 52px; border-radius: 14px; flex: none; overflow: hidden; display: grid; place-items: center; background: var(--card2); color: var(--muted); font: 800 18px var(--font); letter-spacing: -.04em; }
.sh-icon img { width: 100%; height: 100%; object-fit: cover; }
.sh-icon svg { width: 24px; height: 24px; }
.sh-head h3 { margin: 0; font: 750 19px/1.15 var(--font); font-weight: 750; letter-spacing: -.025em; }
.sh-head p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 16px; }
.fact { background: var(--card); padding: 11px 12px; }
.fact small { display: block; color: var(--dim); font-size: 11.5px; font-weight: 600; }
.fact b { display: block; margin-top: 2px; font-size: 13.5px; font-weight: 650; }
.desc { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; }

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13.5px; color: var(--muted); margin: 0 2px 7px; }
.field label b { color: var(--text); font-weight: 650; }
.input { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1.5px solid var(--line2); border-radius: 14px; padding: 0 6px 0 14px; height: 52px; transition: border-color .2s, box-shadow .2s; }
.input:focus-within { border-color: var(--text); }
.input.bad { border-color: var(--bad); }
.input.ok { border-color: var(--ok); }
.input input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; font: 600 16px var(--mono); }
.input input::placeholder { color: var(--dim); font-family: var(--font); font-weight: 500; }
.input .mini { flex: none; height: 38px; padding: 0 13px; border-radius: 10px; background: var(--card2); font: 650 13px var(--font); }
.hint { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; margin: 7px 2px 0; color: var(--dim); }
.hint svg { width: 14px; height: 14px; margin-top: 2px; }
.hint.err { color: var(--bad); }
.hint.okk { color: var(--ok); }

.toggle { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); margin-bottom: 12px; text-align: left; }
.toggle > svg { color: var(--muted); }
.toggle b { font-weight: 650; }
.toggle .sw { margin-left: auto; width: 44px; height: 26px; border-radius: 99px; background: var(--card2); border: 1px solid var(--line2); position: relative; transition: .2s; flex: none; }
.toggle .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: .2s; }
.toggle.on .sw { background: var(--acc); border-color: transparent; }
.toggle.on .sw::after { left: 20px; background: var(--acc-ink); }
.toggle small { display: block; color: var(--muted); font-size: 12px; }

.summary { border-radius: 14px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); margin-bottom: 14px; }
.row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 4px 0; color: var(--muted); }
.row b { color: var(--text); font-weight: 600; text-align: right; }
.row.minus b { color: var(--ok); }
.row.total { margin-top: 6px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--text); font-weight: 650; align-items: baseline; }
.row.total b { font: 800 24px var(--font); letter-spacing: -.03em; }

.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 54px; border-radius: 15px; font: 700 15.5px var(--font); background: var(--card2); border: 1px solid var(--line2); transition: transform .12s, opacity .2s; }
.btn:active { transform: scale(.985); }
.btn.gold, .btn.primary { background: var(--acc); color: var(--acc-ink); border: 0; }
.btn.ghost { background: none; border: 1px solid var(--line2); }
.btn.danger { background: none; border: 1px solid var(--line2); color: var(--bad); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn .spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btns { display: grid; gap: 10px; }
.btns.two { grid-template-columns: 1fr 1fr; }
.legal { text-align: center; color: var(--dim); font-size: 12px; margin: 12px 0 0; }

/* оплата */
.methods { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-bottom: 14px; }
.method { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px; border-bottom: 1px solid var(--line); }
.method:last-child { border-bottom: 0; }
.method:active { background: var(--card2); }
.method .mi { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--card2); }
.method .mi svg { width: 22px; height: 22px; }
.method .mi.stars { color: var(--warn); }
.method .mi.crypto { color: var(--info); }
.method .mi.card { color: var(--ok); }
.method b { display: block; font-size: 15px; font-weight: 650; }
.method small { color: var(--muted); font-size: 12.5px; }
.method .arr { margin-left: auto; color: var(--dim); }
.copy-line { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); margin-bottom: 8px; width: 100%; text-align: left; }
.copy-line small { display: block; color: var(--dim); font-size: 11.5px; font-weight: 600; }
.copy-line b { font: 700 15px var(--mono); word-break: break-word; }
.copy-line .cp { margin-left: auto; display: flex; align-items: center; gap: 5px; color: var(--muted); font-weight: 650; font-size: 12.5px; flex: none; }
.steps { margin: 14px 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: 10px; font-size: 13.5px; color: var(--muted); padding: 5px 0; }
.steps li::before { content: counter(s); flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--card2); color: var(--text); font: 700 11.5px var(--font); }
.upload { position: relative; overflow: hidden; }
.upload input { position: absolute; inset: 0; opacity: 0; }
.timer { display: inline-flex; align-items: center; gap: 6px; font: 650 12.5px var(--font); color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); padding: 6px 10px; border-radius: 99px; }
.timer svg { width: 14px; height: 14px; }

/* заказы */
.page-title { font: 800 30px/1 var(--font); letter-spacing: -.045em; margin: 10px 2px 18px; }
.page-title span { color: var(--muted); }
.olist { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r2); overflow: hidden; }
.olist .skel { margin: 8px; }
.ocard { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.ocard:last-child { border-bottom: 0; }
.ocard:active { background: var(--card2); }
.ocard .sh-icon { width: 44px; height: 44px; border-radius: 12px; font-size: 15px; }
.ocard .o-main { flex: 1; min-width: 0; }
.ocard .o-main b { display: block; font-size: 14.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ocard .o-main small { color: var(--muted); font-size: 12px; }
.ocard .o-right { text-align: right; flex: none; }
.ocard .o-right b { display: block; font: 700 14.5px var(--font); }
.status { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font: 600 11.5px var(--font); color: var(--muted); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.s-awaiting_payment, .status.s-checking { color: var(--info); }
.status.s-paid, .status.s-processing { color: var(--info); }
.status.s-delivered { color: var(--ok); }
.status.s-cancelled { color: var(--dim); }

.track { display: flex; align-items: center; margin: 6px 0 18px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.track .st { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--dim); font-weight: 600; width: 64px; flex: none; }
.track .st i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: var(--card2); border: 1.5px solid var(--line2); font: 700 12px var(--font); }
.track .st i svg { width: 14px; height: 14px; stroke-width: 2.6; }
.track .st.done { color: var(--text); }
.track .st.done i { background: var(--acc); border-color: transparent; color: var(--acc-ink); }
.track .st.now { color: var(--text); }
.track .st.now i { border-color: var(--text); animation: pulse 1.6s infinite; }
.track .st.x i { background: var(--bad); color: #fff; border-color: transparent; }
.track .ln { flex: 1; height: 2px; background: var(--line2); margin-bottom: 20px; border-radius: 2px; }
.track .ln.done { background: var(--acc); }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px var(--line); } }
.payload { padding: 15px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--ok); margin-bottom: 14px; }
.payload small { display: block; color: var(--ok); font-weight: 700; font-size: 12px; margin-bottom: 6px; }
.payload code { font: 700 17px/1.4 var(--mono); word-break: break-all; white-space: pre-wrap; }
.payload p { margin: 0; white-space: pre-wrap; color: var(--muted); font-size: 13.5px; }
.payload.warn { border-left-color: var(--warn); }
.payload.warn small { color: var(--warn); }
.payload.info { border-left-color: var(--info); }
.payload.info small { color: var(--info); }

/* профиль */
.pcard { position: relative; overflow: hidden; border-radius: var(--r2); padding: 20px; margin-bottom: 12px; background: var(--acc); color: var(--acc-ink); }
.pcard::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; border: 28px solid rgba(12, 13, 16, .07); }
.pcard .who { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.pcard .ava { width: 48px; height: 48px; border-radius: 14px; background: var(--acc-ink); color: var(--acc); display: grid; place-items: center; font: 800 20px var(--font); }
.pcard h3 { margin: 0; font: 800 19px var(--font); letter-spacing: -.02em; }
.pcard p { margin: 2px 0 0; opacity: .65; font-size: 13px; }
.pcard .bal { position: relative; z-index: 1; margin-top: 22px; display: flex; align-items: flex-end; justify-content: space-between; }
.pcard .bal small { display: block; opacity: .6; font-size: 12.5px; font-weight: 600; }
.pcard .bal b { font: 800 36px/1 var(--font); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-bottom: 12px; }
.stat { background: var(--card); padding: 13px 10px; text-align: center; }
.stat b { display: block; font: 750 19px var(--font); font-weight: 750; letter-spacing: -.02em; }
.stat small { color: var(--muted); font-size: 12px; }
.ref { border-radius: 18px; padding: 16px; background: var(--card); border: 1px solid var(--line); margin-bottom: 18px; }
.ref h4 { margin: 0 0 4px; font: 750 16px var(--font); font-weight: 750; letter-spacing: -.015em; }
.ref p { margin: 0 0 14px; color: var(--muted); font-size: 13.5px; }
.faq { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; padding: 15px 16px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { color: var(--dim); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .a { padding: 0 16px 15px; color: var(--muted); font-size: 13.5px; }

.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty .big { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; color: var(--dim); }
.empty .big svg { width: 28px; height: 28px; }
.empty b { display: block; color: var(--text); font: 750 18px var(--font); margin-bottom: 4px; }

/* таббар */
.tabbar { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: calc(12px + var(--safe-b)); display: flex; gap: 4px; padding: 5px; border-radius: 20px; width: min(340px, calc(100% - 32px)); background: color-mix(in srgb, var(--bg2) 82%, transparent); backdrop-filter: blur(20px) saturate(1.5); border: 1px solid var(--line2); box-shadow: var(--shadow); }
.tabbar button { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; border-radius: 15px; color: var(--dim); font: 600 11px var(--font); transition: .18s; }
.tabbar svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar button.active { color: var(--acc-ink); background: var(--acc); }
.tabbar .dot { position: absolute; top: 6px; right: calc(50% - 17px); width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
body.sheet-open .tabbar { opacity: 0; pointer-events: none; }

.toast { position: fixed; z-index: 60; left: 50%; top: 14px; transform: translate(-50%, -200%); visibility: hidden; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 14px; background: var(--text); color: var(--bg); font-weight: 650; font-size: 14px; transition: transform .3s cubic-bezier(.2, .9, .2, 1); box-shadow: var(--shadow); }
.toast.on { transform: translate(-50%, 0); visibility: visible; }
.toast.err { background: var(--bad); color: #fff; }

.boot { position: fixed; inset: 0; z-index: 80; display: grid; place-content: center; justify-items: center; gap: 16px; background: var(--bg); transition: opacity .35s; color: var(--muted); }
.boot.off { opacity: 0; pointer-events: none; }
.coin { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--acc); color: var(--acc-ink); font: 800 24px var(--font); animation: bob 1.1s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-6deg); } }

.skel { border-radius: var(--r); background: linear-gradient(90deg, var(--card) 25%, var(--card2) 50%, var(--card) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.tickets + .section-title { margin-top: 22px; }

/* обложки ключей: у каждой игры своя картинка с логотипом */
.ticket.has-img { padding: 10px 14px 10px 10px; }
.t-img { width: 58px; height: 58px; flex: none; border-radius: 12px; overflow: hidden; background: var(--card2); }
.t-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-cover { margin: -4px 0 14px; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--card2); }
.sh-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- категории на главной: всё видно без прокрутки ---------- */
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.cat {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 136px;
  padding: 66px 12px 12px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line);
  text-align: left; overflow: hidden; isolation: isolate;
  animation: catIn .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 45ms);
  transition: transform .15s;
}
.cat:active { transform: scale(.97); }
.cat:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 0; padding-top: 14px; padding-right: 120px; }
.cat:last-child:nth-child(odd) .cat-fan { top: 50%; left: auto; right: 12px; width: 116px; transform: translateY(-50%); }
.cat-fan { position: absolute; top: 10px; left: 12px; right: 10px; height: 50px; z-index: -1; }
.cat-fan img {
  position: absolute; top: 0; left: calc(var(--k) * 34px); width: 48px; height: 48px; object-fit: cover;
  border-radius: 12px; border: 2px solid var(--card); box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
  transform: rotate(calc((var(--k) - 1) * 6deg)); z-index: calc(3 - var(--k));
}
.cat-info b { display: block; font: 750 15px/1.15 var(--font); letter-spacing: -.015em; }
.cat-info small { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.25; color: var(--muted); }
.cat-meta { display: inline-block; margin-top: 8px; font: 700 11.5px var(--font); color: var(--acc-ink); background: var(--acc); padding: 3px 8px; border-radius: 99px; }
.cat-meta:empty { display: none; }
@keyframes catIn { from { opacity: 0; transform: translateY(10px); } }

.trust { display: flex; gap: 8px; margin: 0 0 18px; }
.trust span { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 34px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font: 600 11.5px var(--font); color: var(--muted); }
.trust svg { width: 14px; height: 14px; color: var(--acc-text); }

.rail { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px 18px; padding: 0 16px 2px; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding-left: 16px; }
.rail::-webkit-scrollbar { display: none; }
.rail-item { flex: none; width: 112px; text-align: left; scroll-snap-align: start; }
.rail-pic { position: relative; width: 112px; height: 112px; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 22px -14px rgba(0, 0, 0, .9); }
.rail-pic img, .rail-pic .mono { width: 100%; height: 100%; object-fit: cover; display: block; }
.rail-pic::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.rail-price { position: absolute; left: 6px; bottom: 6px; padding: 3px 7px; border-radius: 8px; background: rgba(12, 13, 16, .78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font: 700 11px var(--font); color: #fff; }
.rail-item b { display: block; margin-top: 7px; font: 650 12.5px/1.2 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feat { position: relative; display: flex; align-items: center; width: 100%; min-height: 132px; margin-bottom: 12px; padding: 0; border-radius: var(--r2); overflow: hidden; text-align: left; color: #fff;
  background: linear-gradient(160deg, #ffb35c 0%, #f0699b 45%, #7b2f7f 75%, #241433 100%); box-shadow: var(--shadow); }
.feat::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30, 12, 40, .62) 0%, rgba(30, 12, 40, .2) 55%, rgba(30, 12, 40, 0) 75%); }
.feat-logo { position: absolute; right: 12px; top: 50%; width: 34%; max-width: 132px; transform: translateY(-50%) rotate(-3deg); filter: drop-shadow(0 10px 18px rgba(40, 0, 50, .55)); }
.feat-text { position: relative; z-index: 1; padding: 16px 0 16px 16px; width: 62%; }
.feat-tag { display: inline-block; padding: 3px 8px; border-radius: 7px; background: var(--acc); color: var(--acc-ink); font: 800 10.5px var(--font); letter-spacing: .06em; text-transform: uppercase; }
.feat b { display: block; margin-top: 8px; font: 800 26px/1 var(--font); letter-spacing: -.03em; text-shadow: 0 2px 14px rgba(0, 0, 0, .45); }
.feat small { display: block; margin-top: 6px; font: 600 12px var(--font); color: rgba(255, 255, 255, .85); }
.feat em { display: block; margin-top: 4px; font: 700 12.5px var(--font); font-style: normal; color: #fff; }
.again-buy { flex: none; padding: 7px 11px; border-radius: 10px; background: var(--acc); color: var(--acc-ink); font: 750 12.5px var(--font); font-style: normal; }
.rail-item small { font-size: 11.5px; color: var(--muted); }

.cat-head { padding: 6px 2px 14px; }
.cat-head small { font: 700 11px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--acc-text); }
.cat-head h1 { margin: 4px 0 4px; font: 800 26px/1.05 var(--font); letter-spacing: -.03em; }
.cat-head p { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- профиль: уровень, «купить снова», быстрые кнопки ---------- */
.pcard .lvl { margin-left: auto; align-self: flex-start; font: 800 11px var(--font); letter-spacing: .04em; text-transform: uppercase; padding: 6px 10px; border-radius: 99px; background: var(--acc-ink); color: var(--acc); }
.pcard .lvl3 { background: linear-gradient(135deg, #0c0d10, #3a2f00); color: #ffd84a; }
.lvl-bar { position: relative; z-index: 1; height: 6px; margin-top: 16px; border-radius: 99px; background: rgba(12, 13, 16, .14); overflow: hidden; }
.lvl-bar i { display: block; height: 100%; border-radius: inherit; background: var(--acc-ink); }
.pcard .lvl-next { position: relative; z-index: 1; margin-top: 8px; font-size: 12px; font-weight: 600; opacity: .7; }
.again { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px 10px 10px; margin-bottom: 12px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); text-align: left; }
.again img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: none; }
.again div { flex: 1; min-width: 0; }
.again small { display: block; font: 700 11px var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--acc-text); }
.again b { display: block; margin-top: 2px; font: 700 14.5px/1.2 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.again span { font-size: 12px; color: var(--muted); }
.again i svg { width: 18px; height: 18px; color: var(--muted); }
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.quick button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font: 600 12px var(--font); color: var(--text); }
.quick svg { width: 20px; height: 20px; color: var(--acc-text); }

/* загрузка: полоска прогресса, пока подтягиваются логотипы первого экрана */
.boot-bar { width: 160px; height: 4px; border-radius: 99px; background: var(--card2); overflow: hidden; }
.boot-bar i { display: block; width: 6%; height: 100%; border-radius: inherit; background: var(--acc); transition: width .25s; }

/* плашки ключей: платформа и регион */
.pill.ok { color: var(--ok); }
.pill.bad { color: #ff8a65; font-weight: 700; }

/* ключи — обложки горизонтальные (шапка Steam с логотипом) */
.t-img { width: 84px; height: 48px; border-radius: 10px; }
.cat-fan img { border-radius: 12px; }

/* скидка новичку */
.first { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 10px; border-radius: var(--r); background: var(--acc-soft); border: 1px solid color-mix(in srgb, var(--acc) 40%, transparent); }
.first > svg { width: 22px; height: 22px; color: var(--acc-text); flex: none; }
.first b { display: block; font: 750 14px/1.2 var(--font); }
.first small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }

/* флаги стран: сразу видно, для какого региона карта */
.flag { display: inline-block; width: 20px; height: 14px; margin-right: 7px; border-radius: 3px; object-fit: cover; vertical-align: -1px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.flag.big { width: 24px; height: 17px; margin-right: 9px; vertical-align: -2px; }
.sh-head h3 .flag { width: 22px; height: 15px; }

/* «Как активировать» */
.howto { margin: 0 0 14px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); }
.howto summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 12px 14px; font: 650 14px var(--font); cursor: pointer; }
.howto summary::-webkit-details-marker { display: none; }
.howto summary svg:first-child { color: var(--acc-text); }
.howto summary svg:last-child { margin-left: auto; color: var(--muted); transition: transform .2s; }
.howto[open] summary svg:last-child { transform: rotate(45deg); }
.howto ol { margin: 0; padding: 0 14px 14px 34px; display: grid; gap: 8px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.howto li::marker { color: var(--acc-text); font-weight: 700; }

/* ---------- логотип «Плати Сейчас»: Unbounded + живой градиент ---------- */
:root { --brand-grad: linear-gradient(100deg, #d4ff3a 0%, #6dffa8 28%, #35e0ff 55%, #9b7bff 75%, #6dffa8 88%, #d4ff3a 100%); }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark {
  position: relative; width: 42px; height: 42px; flex: none; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-grad); background-size: 300% 100%; animation: brandFlow 7s linear infinite;
  box-shadow: 0 6px 22px rgba(109, 255, 168, .28), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.brand-mark svg { width: 22px; height: 22px; fill: #0c0d10; stroke: none; transform: rotate(-6deg); }
.brand-text { min-width: 0; }
.wordmark { display: block; font: 900 20px/1.05 "Montserrat", var(--font); letter-spacing: -.02em; white-space: nowrap; }
.wordmark span { color: var(--text); }
.wordmark em {
  font-style: normal; background: var(--brand-grad); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: brandFlow 7s linear infinite;
}
.brand-text small { display: block; margin-top: 3px; color: var(--muted); font-size: 11.5px; letter-spacing: .01em; }
@keyframes brandFlow { to { background-position: 300% 0; } }
@media (prefers-reduced-motion: reduce) { .brand-mark, .wordmark em { animation: none; } }
/* экран загрузки — тот же знак */
.boot .coin { background: var(--brand-grad) !important; background-size: 300% 100% !important; animation: brandFlow 4s linear infinite; color: #0c0d10 !important; }


/* светлая тема: лаймовый градиент на белом не читается — у логотипа тёмная версия */
:root[data-theme="light"] { --brand-grad: linear-gradient(100deg, #5a9e00 0%, #0f9f6e 30%, #0a86b8 58%, #6b4dff 82%, #5a9e00 100%); }

/* кто выключил анимации в системе — без плавающих появлений */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- выбор оформления ---------- */
.themes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.theme { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--line); text-align: left; transition: border-color .15s; }
.theme.on { border-color: var(--acc-text); box-shadow: 0 0 0 3px var(--acc-soft); }
.theme b { margin-top: 8px; font: 700 13.5px var(--font); }
.theme small { font-size: 11px; line-height: 1.25; color: var(--muted); }
.sw3 { display: flex; width: 100%; height: 34px; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); }
.sw3 i { flex: 1; }
.sw3 i:nth-child(1) { background: var(--a); }
.sw3 i:nth-child(2) { background: var(--b); }
.sw3 i:nth-child(3) { background: var(--c); flex: .55; }

/* ---------- загрузка: молния «заряжается», кольца расходятся — видно, что приложение живое ---------- */
.boot { gap: 14px; }
.boot-logo { position: relative; width: 88px; height: 88px; display: grid; place-items: center; margin-bottom: 4px; }
.brand-mark.big { width: 76px; height: 76px; border-radius: 22px; animation: brandFlow 3s linear infinite, bootBob 1.6s ease-in-out infinite; box-shadow: 0 14px 40px rgba(109, 255, 168, .35); }
.brand-mark.big svg { width: 40px; height: 40px; overflow: visible; }
.brand-mark.big .bolt { fill: #0c0d10; fill-opacity: 0; stroke: #0c0d10; stroke-width: 1.6; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: boltDraw 1.6s ease-in-out infinite; }
.boot-ring { position: absolute; inset: 6px; border-radius: 24px; border: 2px solid var(--acc); opacity: 0; animation: ringOut 1.6s ease-out infinite; }
.boot-ring.r2 { animation-delay: .8s; }
.boot-word { font-size: 22px; }
.boot p { margin: 0; font-size: 13px; color: var(--muted); }
@keyframes boltDraw {
  0% { stroke-dashoffset: 1; fill-opacity: 0; }
  45% { stroke-dashoffset: 0; fill-opacity: 0; }
  60%, 85% { stroke-dashoffset: 0; fill-opacity: 1; }
  100% { stroke-dashoffset: 0; fill-opacity: 0; }
}
@keyframes ringOut { 0% { transform: scale(.9); opacity: .55; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes bootBob { 50% { transform: translateY(-4px) rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) {
  .brand-mark.big .bolt { fill-opacity: 1; stroke-dashoffset: 0; }
  .boot-ring { display: none; }
}
/* полоска ползёт, пока грузятся данные; потом её ведёт реальный прогресс картинок */
.boot-bar i { animation: bootLoad 6s cubic-bezier(.1, .7, .2, 1) forwards; }
@keyframes bootLoad { from { width: 6%; } to { width: 70%; } }

.legal-links { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; margin: 16px 0 4px; font-size: 12.5px; }
.legal-links a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* подтверждение получателя перед оплатой */
.confirm { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 18px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s; }
.confirm.on { opacity: 1; }
.confirm-card { width: 100%; max-width: 420px; padding: 22px 20px 18px; border-radius: 24px; background: var(--bg2); border: 1px solid var(--line2); box-shadow: var(--shadow); }
.confirm-card .eyebrow { font: 700 11px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--acc-text); }
.confirm-card h3 { margin: 6px 0 4px; font: 800 24px/1.15 var(--font); }
.confirm-card .summary { margin-top: 14px; }
.confirm-card .row b { overflow-wrap: anywhere; text-align: right; }
.help-box { margin: 12px 0 0; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line2); background: var(--card); }
.help-box b { font-size: 14.5px; }
.help-box p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .confirm { transition: none; } }

/* ---------- типографика: крупные плотные заголовки, «воздушные» подписи, надписи капсом с разрядкой ---------- */
body { line-height: 1.5; }
.section-title { margin: 22px 2px 12px; }
.section-title h2 { font: 800 19px/1.15 var(--font); letter-spacing: -.025em; }
.hero-text b { font-size: 27px; line-height: 1.04; letter-spacing: -.04em; }
.hero-text span { font-size: 13px; line-height: 1.4; margin-top: 10px; }
.cat-info b { font: 800 16px/1.15 var(--font); letter-spacing: -.025em; }
.cat-info small { font-size: 12px; line-height: 1.35; margin-top: 4px; }
.cat-meta { margin-top: 10px; }  /* цена — в таблетке: так она выделяется */
.game-info b { font-size: 15px; letter-spacing: -.02em; }
.cover-text { padding: 16px 18px 18px; }
.cover-text h2 { font-size: 26px; line-height: 1.06; letter-spacing: -.035em; }
.cover-text p { margin-top: 8px; font-size: 13.5px; line-height: 1.5; }
.cat-head small, .again small, .confirm-card .eyebrow { letter-spacing: .16em; }
.cat-head h1 { font-size: 28px; line-height: 1.06; letter-spacing: -.035em; margin: 6px 0; }
.cat-head p { font-size: 13.5px; line-height: 1.5; }
.desc { font-size: 14px; line-height: 1.5; }
.sh-head h3 { font-size: 20px; letter-spacing: -.03em; }
.sh-head p { font-size: 13.5px; line-height: 1.4; }
.method b { font-size: 15.5px; letter-spacing: -.01em; }
.method small { font-size: 13px; line-height: 1.35; }
.ocard .o-main b { letter-spacing: -.01em; }
.empty b { font-size: 19px; letter-spacing: -.02em; }
.faq summary { line-height: 1.35; }
.faq .a { line-height: 1.55; }
.page-title { letter-spacing: -.04em; }

/* приветствие новых покупателей */
.welcome { display: grid; gap: 0; text-align: center; padding: 6px 2px 4px; }
.wl-mark { display: grid; place-items: center; margin: 4px 0 16px; }
.welcome .eyebrow { font: 700 11px var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--acc-text); }
.welcome h2 { margin: 8px 0 8px; font: 800 26px/1.08 var(--font); letter-spacing: -.035em; text-wrap: balance; }
.welcome h2 em { font-style: normal; color: var(--acc-text); }
.wl-sub { margin: 0 auto 18px; max-width: 30ch; color: var(--muted); font-size: 14px; line-height: 1.5; }
.wl-list { display: grid; gap: 8px; margin-bottom: 18px; text-align: left; }
.wl-row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.wl-ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-text); }
.wl-ic svg { width: 22px; height: 22px; }
.wl-row b { display: block; font: 750 15.5px/1.2 var(--font); letter-spacing: -.015em; }
.wl-row small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; color: var(--muted); }

/* страница игры: надпись капсом над названием, плашки-факты, крупные пакеты, цена в выделенной плашке */
.cover-text .eyebrow { display: block; margin-bottom: 6px; font: 700 11px var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--acc-text); }
.cover-text h2 { font-size: 28px; }
.cover-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.cover-facts span { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 99px; background: var(--card2); border: 1px solid var(--line); font: 600 12px var(--font); color: var(--muted); white-space: nowrap; }
.cover-facts svg { width: 13px; height: 13px; color: var(--acc-text); }
.ticket { padding: 17px 18px; }
.t-main b { font: 750 16.5px/1.2 var(--font); letter-spacing: -.02em; }
.t-main small { margin-top: 5px; font-size: 13px; }
.t-price b { font: 800 15.5px var(--font); letter-spacing: -.01em; padding: 9px 13px; border-radius: 12px; background: var(--acc-soft); color: var(--acc-text); border: 1px solid color-mix(in srgb, var(--acc) 22%, transparent); }
.ticket.out .t-price b { background: var(--card2); color: var(--muted); border-color: transparent; }

/* экран загрузки: надпись «Вмиг …» целиком уходит вправо, новая выезжает слева; всегда по центру */
.boot-word.bw { display: grid; justify-items: center; }
.bw i { grid-area: 1 / 1; font-style: normal; white-space: nowrap; opacity: 0; transform: translateX(-.6em); }
.bw i.on { opacity: 1; transform: none; transition: opacity .45s ease .2s, transform .6s cubic-bezier(.2, .8, .2, 1) .2s; }
.bw i.off { opacity: 0; transform: translateX(.8em); transition: opacity .3s ease, transform .4s ease-in; }
@media (prefers-reduced-motion: reduce) { .bw i, .bw i.on, .bw i.off { transform: none; } }

/* лента стран (eSIM): листается вбок, прилипает к верху при прокрутке пакетов */
.sec-tabs { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; margin-bottom: 8px; padding-block: 8px; background: var(--bg); }
.sec-tabs .chip { display: inline-flex; align-items: center; gap: 7px; height: 40px; }
.sec-tabs .chip .flag { width: 20px; height: 14px; margin: 0; border-radius: 3px; object-fit: cover; }
.sec-tabs + #results .section-title:first-child { margin-top: 6px; }

/* ===== v39: цифры без «дыр», цветные статусы, выбор раздела ===== */
/* моноширинные цифры (tnum) растягивали «1 189 ₽» и номера заказов — оставляем только там, где важна колонка */
body { font-feature-settings: normal; }
.pcard .bal b { font-variant-numeric: tabular-nums; }
.cat-head small, .again small, .confirm-card .eyebrow, .welcome .eyebrow, .cover-text .eyebrow { letter-spacing: .08em; }
.ocard .o-main small { letter-spacing: 0; }
.ocard .o-right b { letter-spacing: -.01em; }

/* статусы заказов: цветная плашка — видно с первого взгляда; цвета берутся из темы (--ok/--bad/…) */
.status { gap: 5px; margin-top: 5px; padding: 3px 9px 3px 8px; border-radius: 99px; font-weight: 700; background: color-mix(in srgb, currentColor 14%, transparent); }
.status::before { width: 6px; height: 6px; }
.status.s-awaiting_payment, .status.s-checking { color: var(--info); }
.status.s-processing { color: var(--info); }
.status.s-paid, .status.s-delivered { color: var(--ok); }
.status.s-cancelled { color: var(--bad); }

/* закреплённая кнопка раздела + шторка со списком */
.sec-pick-wrap { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 6; margin: 0 -16px 6px; padding: 8px 16px; background: linear-gradient(var(--bg) 78%, transparent); }
.sec-pick { display: flex; align-items: center; gap: 10px; width: 100%; height: 48px; padding: 0 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line2); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); font: 700 15px var(--font); color: var(--text); text-align: left; }
.sec-pick:active { transform: scale(.985); }
.sec-pick .sp-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.sec-pick small { color: var(--muted); font: 600 12.5px var(--font); }
.sec-pick .sp-chev { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; background: var(--acc-soft); color: var(--acc-text); }
.sec-pick .sp-chev svg { width: 15px; height: 15px; transform: rotate(90deg); stroke-width: 2.4; }
.sp-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 12px; }
.sp-head b { font: 800 20px var(--font); letter-spacing: -.02em; }
.sp-head small { color: var(--muted); font-size: 13px; }
.sp-list { display: flex; flex-direction: column; gap: 6px; }
.sp-item { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font: 650 15px var(--font); color: var(--text); text-align: left; }
.sp-item:active { background: var(--card2); }
.sp-item .sp-name { flex: 1; min-width: 0; }
.sp-item small { color: var(--muted); font: 600 13px var(--font); padding: 2px 8px; border-radius: 99px; background: var(--card2); }
.sp-item.on { border-color: var(--acc-text); box-shadow: 0 0 0 3px var(--acc-soft); }
.sp-item i { display: grid; place-items: center; color: var(--acc-text); }
.sp-item i svg { width: 18px; height: 18px; stroke-width: 2.6; }
.sp-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--acc); flex: none; margin: 0 4px; }

/* промокод — по желанию: свёрнутая строка → поле → плашка с применённым кодом */
.promo-open { display: flex; align-items: center; gap: 10px; width: 100%; height: 48px; padding: 0 12px 0 14px; border-radius: 14px; border: 1.5px dashed var(--line2); color: var(--muted); font: 650 14.5px var(--font); text-align: left; }
.promo-open svg { width: 18px; height: 18px; flex: none; }
.promo-open span { flex: 1; }
.promo-open i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; background: var(--card2); color: var(--text); }
.promo-open i svg { width: 14px; height: 14px; stroke-width: 2.4; }
.promo-open:active { background: var(--card); }
.promo-on { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 6px 6px 14px; border-radius: 14px; background: color-mix(in srgb, var(--ok) 12%, var(--card)); border: 1.5px solid color-mix(in srgb, var(--ok) 45%, transparent); }
.promo-on > svg { width: 18px; height: 18px; color: var(--ok); stroke-width: 2.6; flex: none; }
.promo-on div { flex: 1; min-width: 0; }
.promo-on b { display: block; font: 750 15px var(--mono); letter-spacing: .02em; }
.promo-on small { color: var(--ok); font: 650 12.5px var(--font); }

/* ---------- баннер-карусель «Популярного» ---------- */
.promo { margin-bottom: 14px; }
.promo-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r2); box-shadow: var(--shadow); }
.promo-track::-webkit-scrollbar { display: none; }
.promo-slide { flex: 0 0 100%; margin: 0; border-radius: 0; box-shadow: none; scroll-snap-align: start; scroll-snap-stop: always; }
.promo-track { overscroll-behavior-x: contain; }
.promo-tile { position: absolute; right: 20px; top: 50%; width: 92px; height: 92px; border-radius: 24px; object-fit: cover; transform: translateY(-50%) rotate(-6deg); box-shadow: 0 14px 28px -10px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .18); }
.promo-dots { display: flex; justify-content: center; gap: 6px; margin-top: 9px; }
.promo-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line2); transition: width .12s, background .12s; }
.promo-dots i.on { width: 18px; background: var(--acc); }

/* ---------- избранное ---------- */
.fav-rail { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px 16px; padding: 0 16px 2px; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding-left: 16px; }
.fav-rail::-webkit-scrollbar { display: none; }
.fav { flex: none; width: 262px; display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); scroll-snap-align: start; }
.fav:only-child { width: 100%; }
.fav-top { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; }
.fav-top img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex: none; }
.fav-top div { flex: 1; min-width: 0; }
.fav-top b { display: block; font: 700 14px/1.2 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-top small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.fav-heart svg { width: 18px; height: 18px; fill: #ff5c7a; flex: none; }
.fav-id { display: flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border-radius: 10px; background: var(--card2); font: 600 12px var(--font); color: var(--muted); overflow: hidden; }
.fav-id em { font: 600 12.5px var(--mono); font-style: normal; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-pay { height: 40px; border-radius: 12px; background: var(--acc); color: var(--acc-ink); font: 800 14px var(--font); display: flex; align-items: center; justify-content: center; gap: 6px; }
.favlist { border-radius: var(--r); background: var(--card); border: 1px solid var(--line); overflow: hidden; margin-bottom: 6px; }
.fr { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 12px; border-top: 1px solid var(--line); }
.fr:first-child { border-top: 0; }
.fr-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-align: left; }
.fr-main img { width: 42px; height: 42px; border-radius: 11px; object-fit: cover; flex: none; }
.fr-main div { min-width: 0; }
.fr-main b { display: block; font: 700 14px/1.2 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-main small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-pay { flex: none; padding: 8px 11px; border-radius: 10px; background: var(--acc); color: var(--acc-ink); font: 800 13px var(--font); white-space: nowrap; }
.fr-del { flex: none; width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: var(--dim); }
.fr-del svg { width: 16px; height: 16px; }
.fav-note { margin: 0 4px 16px; font-size: 12px; color: var(--muted); }
.fav-btn { margin-left: auto; flex: none; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--card2); border: 1px solid var(--line); transition: transform .15s; }
.fav-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; }
.fav-btn.on svg { fill: #ff5c7a; stroke: #ff5c7a; }
.fav-btn:active { transform: scale(.88); }

/* смена слова в «Вмиг Pay» */
.wordmark em { display: inline-block; will-change: transform, opacity; }
.wordmark em.out { animation: wordOut .2s ease-in forwards, brandFlow 7s linear infinite; }
.wordmark em.in { animation: wordIn .32s cubic-bezier(.2, .8, .2, 1) both, brandFlow 7s linear infinite; }
@keyframes wordOut { to { transform: translateX(-14px); opacity: 0; filter: blur(3px); } }
@keyframes wordIn { from { transform: translateX(16px); opacity: 0; filter: blur(3px); } }
.top .brand-mark.flash { animation: brandFlow 7s linear infinite, markFlash .5s ease-out; }
@keyframes markFlash {
  30% { transform: scale(1.1) rotate(-4deg); box-shadow: 0 0 0 6px rgba(212, 255, 58, .22), 0 6px 26px rgba(109, 255, 168, .55), inset 0 1px 0 rgba(255, 255, 255, .5); filter: brightness(1.25); }
}
