/* ====================================
   TajDonat — стили сайта и мини-аппа
   Светлая лавандовая тема как в панели реселлера: белые карточки с мягкой
   рамкой, фиолетовые акценты, крупные заголовки. Есть тёмная тема.
   На широком экране — боковое меню, на телефоне и в Telegram — нижняя панель.
   ==================================== */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f5f4fb;
  --card: #ffffff;
  --card-2: #faf9fe;
  --border: #ebe8f5;
  --border-strong: #ddd8ef;
  --text: #1c1830;
  --muted: #6e6a85;
  --faint: #9c98b1;
  --primary: #6d4df2;
  --primary-2: #8a6cff;
  --primary-soft: #efebff;
  --primary-text: #5a3be0;
  --ok: #16a34a; --ok-soft: #e8f8ee;
  --bad: #e5484d; --bad-soft: #fdecee;
  --warn: #d97706; --warn-soft: #fff4e2;
  --wait: #4f46e5; --wait-soft: #eef0ff;
  --radius: 18px; --radius-md: 14px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(28,24,48,.04), 0 6px 24px rgba(76,56,180,.06);
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --sidebar-w: 270px;
  --topbar-h: 72px;
}
[data-theme="dark"] {
  --bg: #14121f; --card: #1c1a2b; --card-2: #22203394; --border: #2c2942; --border-strong: #3a3656;
  --text: #efedf8; --muted: #a29fbb; --faint: #77738f;
  --primary: #8a6cff; --primary-2: #a28bff; --primary-soft: #2a2450; --primary-text: #b9a8ff;
  --ok-soft: rgba(22,163,74,.16); --bad-soft: rgba(229,72,77,.16); --warn-soft: rgba(217,119,6,.16); --wait-soft: rgba(99,102,241,.18);
  --shadow: 0 6px 24px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body { font-size: 15px; line-height: 1.45; }
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1 { font-size: 30px; line-height: 1.15; margin: 4px 0 6px; font-weight: 800; letter-spacing: -.3px; }
h2 { font-size: 20px; margin: 0 0 12px; font-weight: 800; }
h3 { font-size: 16px; margin: 18px 0 10px; font-weight: 700; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.tiny { font-size: 12.5px; }
.pre { white-space: pre-line; }
.center { text-align: center; }
.mt { margin-top: 14px; }
.no-margin { margin: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-ok { color: var(--ok); } .text-bad { color: var(--bad); }

/* ---------- иконки (маска + currentColor) ---------- */
.icon { display: inline-block; width: 20px; height: 20px; flex-shrink: 0; background-color: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain; vertical-align: middle; }
.icon-sm { width: 16px; height: 16px; } .icon-lg { width: 28px; height: 28px; }

/* ---------- карточки и кнопки ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .9px; color: var(--primary-text); text-transform: uppercase; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 14px;
  padding: 12px 20px; font-weight: 700; font-size: 15px; cursor: pointer; transition: transform .08s, box-shadow .2s, background .2s, opacity .2s;
  background: var(--card); color: var(--text); text-align: center; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-primary { background: linear-gradient(135deg, var(--primary-2), var(--primary)); color: #fff; box-shadow: 0 8px 22px rgba(109,77,242,.32); }
.btn-primary:hover { box-shadow: 0 10px 26px rgba(109,77,242,.42); }
.btn-ghost { background: var(--card); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); }
.btn-soft { background: var(--primary-soft); color: var(--primary-text); }
.btn-dc { background: #0f9d58; color: #fff; }
.btn-tg { background: linear-gradient(135deg, #37aee2, #1e96c8); box-shadow: 0 8px 22px rgba(30,150,200,.3); color: #fff; }
.btn-block { width: 100%; margin-top: 10px; }
.btn-lg { padding: 15px 24px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: 11px; }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--border); background: var(--card); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; position: relative; }
.icon-btn .dot { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--bad); border: 2px solid var(--card); }

/* ---------- шапка ---------- */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: var(--topbar-h); padding: 0 24px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo { width: 44px; height: 44px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--primary-soft); flex-shrink: 0; }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text b { font-size: 17px; }
.brand-text small { color: var(--muted); font-size: 12.5px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--card); }
.lang-switch button { border: 0; background: transparent; padding: 10px 14px; font-weight: 800; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.lang-switch button.active { background: var(--card); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); border-radius: 12px; }
.lang-switch button:not(.active) { background: var(--card-2); }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--card); font-weight: 800; }
.chip small { color: var(--muted); font-weight: 600; }

/* ---------- раскладка ---------- */
.layout { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); gap: 24px; max-width: 1360px; margin: 0 auto; padding: 24px; }
.sidebar { position: sticky; top: calc(var(--topbar-h) + 24px); align-self: start; max-height: calc(100vh - var(--topbar-h) - 48px); overflow: auto; padding: 16px; }
.side-section { font-size: 12px; font-weight: 800; letter-spacing: .9px; color: var(--faint); text-transform: uppercase; margin: 16px 6px 8px; }
.side-section:first-child { margin-top: 4px; }
.side-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 8px; border: 1px solid var(--border); border-radius: 14px; font-weight: 600; color: var(--text); transition: border-color .15s, background .15s; }
.side-item:hover { border-color: var(--border-strong); }
.side-item .chev { margin-left: auto; color: var(--faint); font-size: 18px; }
.side-item.active { background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 45%, transparent); }
.main { min-width: 0; }
.bottom-nav { display: none; }

.hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--card) 0%, color-mix(in srgb, var(--primary-soft) 70%, var(--card)) 100%); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; }
.grid-2 > .card { margin-bottom: 0; }
.grid-2 { margin-bottom: 18px; }
.grid-2-wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* ---------- главная ---------- */
.user-line { display: flex; align-items: center; gap: 14px; }
.user-line .stars { margin-left: auto; }
.avatar { width: 52px; height: 52px; border-radius: 16px; background: var(--primary-soft); color: var(--primary-text); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; overflow: hidden; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 38px; height: 38px; border-radius: 12px; font-size: 15px; }
.avatar-lg { width: 68px; height: 68px; border-radius: 20px; font-size: 26px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.stats-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat { border: 1px solid var(--border); border-radius: 16px; padding: 14px; background: var(--card); min-width: 0; }
.stat small { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .6px; color: var(--muted); text-transform: uppercase; }
.stat b { display: block; font-size: 22px; margin: 6px 0 2px; font-weight: 800; overflow-wrap: anywhere; }
.stat span { color: var(--muted); font-size: 13px; }
.qa-list { display: flex; flex-direction: column; gap: 10px; }
.qa-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); text-align: left; cursor: pointer; width: 100%; font-size: 15px; color: var(--text); }
.qa-item:hover { border-color: var(--border-strong); }
.qa-item b { display: block; }
.qa-item small { color: var(--muted); font-size: 12.5px; }
.qa-arrow { width: 34px; height: 34px; border-radius: 11px; border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); flex-shrink: 0; }
.qa-danger b { color: var(--bad); }
.promo-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 18px; border-radius: 16px; margin-bottom: 18px;
  background: linear-gradient(120deg, #ff7a2e, #ff4f8b); color: #fff; font-weight: 700; box-shadow: 0 8px 22px rgba(255,90,80,.25); }
.promo-banner b { font-variant-numeric: tabular-nums; background: rgba(0,0,0,.18); padding: 3px 10px; border-radius: 10px; }

/* ---------- каталог ---------- */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin-bottom: 18px; }
.game-grid-sm { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-bottom: 0; }
.game-tile { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; display: flex; flex-direction: column; }
.game-tile:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.game-cover { aspect-ratio: 1 / 1; background: var(--primary-soft); overflow: hidden; }
.game-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-title { padding: 12px 14px; font-weight: 800; }
.cat-layout { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 18px; }
.cat-layout > .card { margin-bottom: 18px; }
.game-side { align-self: start; }
.game-side-cover { border-radius: 14px; overflow: hidden; aspect-ratio: 1 / 1; margin: 10px 0 14px; background: var(--primary-soft); border: 1px solid var(--border); }
.game-side-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.back-link { color: var(--primary-text); font-weight: 700; font-size: 14px; display: inline-block; margin-bottom: 6px; }
.field-label { display: block; font-size: 12px; font-weight: 800; letter-spacing: .7px; color: var(--muted); text-transform: uppercase; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--card); border-radius: 12px; padding: 9px 13px; font-weight: 700; font-size: 13.5px; cursor: pointer; color: var(--text); }
.chip-btn.active { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-text); }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { border: 1px solid var(--border); background: var(--card); border-radius: 12px; padding: 9px 15px; font-weight: 700; cursor: pointer; white-space: nowrap; color: var(--muted); font-size: 14px; }
.tab.active { background: var(--text); color: var(--card); border-color: var(--text); }
.product-list { display: flex; flex-direction: column; gap: 10px; max-height: 560px; overflow: auto; padding: 2px; }
.product-row { display: flex; align-items: center; gap: 12px; padding: 15px 16px; border: 1px solid var(--border); border-radius: 14px; cursor: pointer; background: var(--card); transition: border-color .12s, background .12s; outline: none; }
.product-row:hover, .product-row:focus-visible { border-color: var(--border-strong); }
.product-row.selected { border: 2px solid var(--primary); background: var(--primary-soft); padding: 14px 15px; }
.product-thumb { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; flex-shrink: 0; }
.product-name { font-weight: 700; flex: 1; min-width: 0; }
.product-price { display: flex; flex-direction: column; align-items: flex-end; }
.price { font-weight: 800; white-space: nowrap; }
.product-row.selected .price { color: var(--primary-text); }
.price.promo { color: #e8590c; }
.price-old { color: var(--faint); text-decoration: line-through; font-size: 12.5px; }
.check { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--border-strong); flex-shrink: 0; position: relative; }
.check.on { background: var(--primary); border-color: var(--primary); }
.check.on::after { content: ""; position: absolute; inset: 3px; background: #fff; -webkit-mask: var(--icon-check) center/contain no-repeat; mask: var(--icon-check) center/contain no-repeat; }
.stepper { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 11px; padding: 3px; background: var(--card); }
.stepper button { width: 30px; height: 30px; border-radius: 8px; border: 0; background: var(--primary-soft); color: var(--primary-text); font-weight: 800; font-size: 17px; cursor: pointer; }
.stepper b { min-width: 18px; text-align: center; }
.toggle { display: inline-flex; align-items: center; gap: 10px; border: 0; background: transparent; cursor: pointer; font-weight: 700; color: var(--muted); padding: 0; }
.toggle .toggle-knob { width: 44px; height: 26px; border-radius: 26px; background: var(--border-strong); position: relative; transition: background .2s; flex-shrink: 0; }
.toggle .toggle-knob::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.toggle.on { color: var(--primary-text); }
.toggle.on .toggle-knob { background: var(--primary); }
.toggle.on .toggle-knob::after { transform: translateX(18px); }

.kv { display: flex; flex-direction: column; gap: 10px; }
.kv-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); }
.kv-row > span { color: var(--muted); font-weight: 600; }
.kv-row > b { text-align: right; overflow-wrap: anywhere; }
.kv-row b.muted { font-weight: 600; }
.kv-input { flex-wrap: wrap; }
.kv-input .input, .kv-input .input-wrap { max-width: 340px; flex: 1 1 220px; }
.kv-highlight { border: 2px solid color-mix(in srgb, var(--primary) 55%, transparent); background: var(--primary-soft); padding: 13px 15px; }
.kv-highlight > span { color: var(--primary-text); font-weight: 800; }
.input-wrap { display: flex; gap: 8px; }
.input-wrap .input { flex: 1; }
.verify { font-weight: 700; font-size: 14px; min-height: 0; }
.verify:empty { display: none; }
.verify.ok { color: var(--ok); } .verify.bad { color: var(--bad); } .verify.warn { color: var(--warn); }
.order-card h2 { margin-bottom: 14px; }
.order-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.total { font-size: 26px; font-weight: 800; color: var(--primary-text); }

.input { width: 100%; border: 1px solid var(--border-strong); border-radius: 13px; padding: 12px 14px; font-size: 15px; font-family: inherit;
  background: var(--card); color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent); }
textarea.input { resize: vertical; min-height: 90px; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.input-suffix { position: relative; }
.input-suffix span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }

/* ---------- заказы ---------- */
.filters { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 12px; align-items: end; }
.order-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.order-tile, .tx-tile, .ticket-item { display: block; border: 1px solid var(--border); border-radius: 16px; padding: 14px; background: var(--card); transition: border-color .15s, transform .15s; min-width: 0; }
a.order-tile:hover, a.ticket-item:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.order-tile-top { display: flex; gap: 12px; align-items: center; min-width: 0; }
.order-thumb { width: 52px; height: 52px; border-radius: 13px; object-fit: cover; flex-shrink: 0; background: var(--primary-soft); }
.order-tile-main, .tx-main { min-width: 0; flex: 1; }
.order-tile-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.order-tile-row b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-tile-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.date-pill { font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--border); color: var(--muted); }
.st-ico { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.st-ok { background: var(--ok-soft); color: var(--ok); } .st-bad { background: var(--bad-soft); color: var(--bad); } .st-wait { background: var(--wait-soft); color: var(--wait); }
.pill { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 800; padding: 5px 10px; border-radius: 10px; }
.pill-ok { background: var(--ok-soft); color: var(--ok); } .pill-bad { background: var(--bad-soft); color: var(--bad); }
.pill-warn { background: var(--warn-soft); color: var(--warn); } .pill-wait { background: var(--wait-soft); color: var(--wait); }
.pill-neutral { background: var(--card-2); color: var(--muted); border: 1px solid var(--border); }
.tx-tile { display: flex; gap: 12px; align-items: flex-start; }
.tx-ico { width: 48px; height: 48px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tx-ok { background: var(--ok-soft); color: var(--ok); } .tx-bad { background: var(--bad-soft); color: var(--bad); } .tx-wait { background: var(--wait-soft); color: var(--wait); }
.order-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; }
.order-layout > .card { margin-bottom: 0; align-self: start; }
.status-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; padding: 6px 12px 6px 6px; border-radius: 14px; border: 1px solid var(--border); background: var(--card-2); }
.timeline { display: flex; flex-direction: column; gap: 10px; }
.tl-item { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; border: 1px solid var(--border); }
.tl-item b { display: block; } .tl-item small { color: var(--muted); }
.tl-ico { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); background: var(--card); }
.tl-wait { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); } .tl-wait .tl-ico { color: var(--warn); }
.tl-ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 30%, transparent); } .tl-ok .tl-ico { color: var(--ok); }
.tl-bad { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 30%, transparent); } .tl-bad .tl-ico { color: var(--bad); }
.codes { display: flex; flex-direction: column; gap: 8px; }
.code-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--border-strong); }
.code-row code { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- баланс / пополнение ---------- */
.balance-big { font-size: 34px; font-weight: 800; }
.amount-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.amount-btn { border: 1px solid var(--border); background: var(--card); border-radius: 14px; padding: 16px 10px; font-size: 18px; font-weight: 800; cursor: pointer; color: var(--text); }
.amount-btn small { font-size: 12px; color: var(--muted); font-weight: 700; }
.amount-btn.selected { border: 2px solid var(--primary); background: var(--primary-soft); color: var(--primary-text); padding: 15px 9px; }
.check-row { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; user-select: none; }
.check-row input { position: absolute; opacity: 0; pointer-events: none; }
.check-row .check-box { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--border-strong); flex-shrink: 0; position: relative; }
.check-row input:checked + .check-box { background: var(--primary); border-color: var(--primary); }
.check-row input:checked + .check-box::after { content: ""; position: absolute; inset: 3px; background: #fff; -webkit-mask: var(--icon-check) center/contain no-repeat; mask: var(--icon-check) center/contain no-repeat; }
.check-row a { color: var(--primary-text); text-decoration: underline; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.method-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.method-item { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); cursor: pointer; font-weight: 700; font-size: 15px; color: var(--text); text-align: left; }
.method-item:hover { border-color: var(--primary); }
.method-item img { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; }
.pay-box { text-align: center; padding: 18px; border-radius: 16px; background: var(--card-2); border: 1px solid var(--border); }
.pay-box .kv { text-align: left; }
.pay-amount { font-size: 30px; font-weight: 800; border: 0; background: none; color: var(--primary-text); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 2px; }
.copyable { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.upload { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px; border: 2px dashed var(--border-strong); border-radius: 16px; cursor: pointer; color: var(--muted); font-weight: 700; text-align: center; }
.upload:hover { border-color: var(--primary); color: var(--primary-text); }
.upload img { max-width: 100%; max-height: 280px; border-radius: 12px; margin-top: 8px; }
.timer-box { text-align: center; padding: 16px; margin: 12px 0; border-radius: 16px; border: 1px solid var(--border); }
.timer { font-size: 38px; font-weight: 800; font-variant-numeric: tabular-nums; }
.timer.expiring { color: var(--bad); }
.notice { padding: 13px 16px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--border); margin: 10px 0; font-weight: 600; }
.notice-ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.notice-bad { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.notice-warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.link-box { padding: 13px 16px; border-radius: 14px; border: 1px dashed var(--border-strong); font-weight: 700; overflow-wrap: anywhere; background: var(--card-2); }

/* ---------- поддержка ---------- */
.ticket-list { display: flex; flex-direction: column; gap: 10px; }
.chat { display: flex; flex-direction: column; gap: 10px; max-height: 55vh; overflow: auto; padding: 4px; margin: 6px 0 12px; }
.msg { max-width: 82%; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--border); }
.msg-me { align-self: flex-end; background: var(--primary-soft); border-color: transparent; border-bottom-right-radius: 6px; }
.msg-admin { align-self: flex-start; background: var(--card-2); border-bottom-left-radius: 6px; }
.msg-who { font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 4px; }
.msg-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.reply-form .row-actions { margin-top: 10px; }

/* ---------- отзывы / профиль ---------- */
.rating-big { font-size: 40px; font-weight: 800; display: flex; align-items: center; gap: 12px; }
.stars { color: #f5a623; letter-spacing: 1px; font-size: 18px; }
.star-input { display: flex; gap: 6px; }
.star-input button { font-size: 34px; border: 0; background: none; color: var(--border-strong); cursor: pointer; padding: 0 2px; line-height: 1; }
.star-input button.on { color: #f5a623; }
.review-list { display: flex; flex-direction: column; gap: 12px; max-height: 620px; overflow: auto; }
.review { padding: 14px; border: 1px solid var(--border); border-radius: 16px; }
.review p { margin: 10px 0 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); font-weight: 700; }

/* ---------- пустые состояния, загрузка ---------- */
.empty { text-align: center; padding: 34px 14px; color: var(--muted); grid-column: 1 / -1; }
.empty .icon { color: var(--faint); margin-bottom: 8px; }
.loading-block { display: flex; justify-content: center; padding: 60px 0; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--primary-soft); border-top-color: var(--primary); animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
.spinner-sm { width: 16px; height: 16px; border-width: 2px; border-color: rgba(255,255,255,.35); border-top-color: #fff; }
.spinner-row { display: flex; justify-content: center; margin: 14px 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- вход / гейты ---------- */
.auth-screen { position: fixed; inset: 0; overflow: auto; align-items: center; justify-content: center; padding: 24px 16px;
  background: radial-gradient(900px 500px at 50% -10%, color-mix(in srgb, var(--primary) 18%, transparent), transparent), var(--bg); }
.auth-card { width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 30px 26px; box-shadow: var(--shadow); text-align: center; margin: auto; }
.auth-card h1 { font-size: 26px; margin-top: 14px; }
.auth-logo { width: 76px; height: 76px; margin: 0 auto; border-radius: 22px; overflow: hidden; box-shadow: 0 10px 30px rgba(109,77,242,.25); }
.auth-logo img { width: 100%; height: 100%; object-fit: cover; }
.auth-brand { font-weight: 800; font-size: 18px; margin: 10px 0 12px; }
.auth-icon { width: 64px; height: 64px; margin: 0 auto; border-radius: 20px; background: var(--primary-soft); color: var(--primary-text); display: flex; align-items: center; justify-content: center; }
.auth-lang { margin: 0 auto 4px; }
.auth-card .tiny { margin-top: 14px; }
.gate-list { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 6px; text-align: left; }
.gate-link { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; font-weight: 700; }
.gate-link .chev { margin-left: auto; color: var(--faint); }

/* ---------- модальное окно и тосты ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(20,16,40,.45); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .15s; }
.modal-card { position: relative; width: 100%; max-width: 480px; max-height: 92vh; overflow: auto; background: var(--card); border-radius: 24px; padding: 26px 22px 22px; box-shadow: 0 30px 80px rgba(20,16,40,.3); animation: pop .18s ease-out; }
.modal-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.confirm-head { text-align: center; margin-bottom: 16px; }
.confirm-head h2 { margin: 10px 0 4px; }
.big-check { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto; display: flex; align-items: center; justify-content: center; color: var(--ok);
  background: var(--ok-soft); box-shadow: 0 0 0 10px color-mix(in srgb, var(--ok-soft) 50%, transparent); }
.kv-boxed .kv-row { padding: 12px 14px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.toasts { position: fixed; z-index: 200; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { padding: 13px 16px; border-radius: 14px; background: var(--text); color: var(--card); font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.2); opacity: 0; transform: translateY(8px); transition: all .25s; }
.toast.show { opacity: 1; transform: none; }
.toast-error { background: var(--bad); color: #fff; } .toast-success { background: var(--ok); color: #fff; }

/* ---------- планшет и телефон, Telegram ---------- */
@media (max-width: 1100px) {
  .grid-2, .grid-2-wide, .order-layout, .cat-layout { grid-template-columns: minmax(0, 1fr); }
  .grid-2 > .card + .card { margin-top: 0; }
  .game-side { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 14px; align-items: center; }
  .game-side .back-link { grid-column: 1 / -1; }
  .game-side-cover { margin: 0; grid-row: span 2; }
  .game-side h2 { margin: 0; }
  .game-side #region-box { grid-column: 1 / -1; margin-top: 10px; }
}
@media (max-width: 900px) {
  :root { --topbar-h: 62px; }
  .layout { grid-template-columns: minmax(0, 1fr); padding: 14px 14px calc(92px + env(safe-area-inset-bottom)); gap: 0; }
  .sidebar { display: none; }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--border);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); }
  .bn-item { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--faint); padding: 4px 0; border-radius: 12px; min-width: 0; }
  .bn-item span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bn-item.active { color: var(--primary-text); }
  .bn-item.active .icon { background-color: var(--primary); }
  .topbar { padding: 0 14px; }
  .brand-text small { display: none; }
  .topbar-actions { gap: 6px; }
  .topbar-actions .icon-btn[href] { display: none; }
  .icon-btn { width: 40px; height: 40px; border-radius: 12px; }
  .chip { padding: 8px 10px; }
  .lang-switch button { padding: 8px 10px; }
  h1 { font-size: 24px; }
  .card { padding: 18px 16px; margin-bottom: 14px; }
  .hero { padding: 18px 16px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; }
  .filters { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 10px; } .stat b { font-size: 16px; } .stat small { font-size: 10px; letter-spacing: .3px; } .stat span { font-size: 11.5px; }
  .order-grid { grid-template-columns: minmax(0, 1fr); }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .game-grid-sm { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .game-grid-sm .game-title { font-size: 13px; padding: 8px 10px; }
  .product-list { max-height: none; }
  .order-foot .btn { flex: 1; }
  .kv-input .input, .kv-input .input-wrap { max-width: none; flex-basis: 100%; }
  .modal-backdrop { align-items: flex-end; padding: 0; }
  .modal-card { max-width: none; border-radius: 24px 24px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  .toasts { bottom: calc(86px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .brand-text { display: none; }
  .amount-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
:root{
  --icon-moon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M20%2014.5A8.5%208.5%200%201%201%209.5%204a7%207%200%200%200%2010.5%2010.5z%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E");
  --icon-card: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Crect%20x%3D%223%22%20y%3D%226%22%20width%3D%2218%22%20height%3D%2213%22%20rx%3D%222.5%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.8%22/%3E%3Cline%20x1%3D%223%22%20y1%3D%2210.5%22%20x2%3D%2221%22%20y2%3D%2210.5%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.8%22/%3E%3Cline%20x1%3D%226.5%22%20y1%3D%2214.7%22%20x2%3D%2210.5%22%20y2%3D%2214.7%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22/%3E%3C/svg%3E");
  --icon-chat: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M4%205.5h16a1.5%201.5%200%200%201%201.5%201.5v8.2a1.5%201.5%200%200%201-1.5%201.5H10.2L5.5%2020.5v-4.3H4A1.5%201.5%200%200%201%202.5%2014.7V7A1.5%201.5%200%200%201%204%205.5z%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.8%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E");
  --icon-star-filled: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M12%203.2l2.7%205.6%206.1.7-4.5%204.2%201.2%206-5.5-3-5.5%203%201.2-6-4.5-4.2%206.1-.7z%22%20fill%3D%22currentColor%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E");
  --icon-star-outline: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M12%203.2l2.7%205.6%206.1.7-4.5%204.2%201.2%206-5.5-3-5.5%203%201.2-6-4.5-4.2%206.1-.7z%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.4%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E");
  --icon-lock: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Crect%20x%3D%225%22%20y%3D%2210.3%22%20width%3D%2214%22%20height%3D%229.2%22%20rx%3D%222%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.8%22/%3E%3Cpath%20d%3D%22M8%2010.3V7.6a4%204%200%200%201%208%200v2.7%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22/%3E%3C/svg%3E");
  --icon-check-circle: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%228.6%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.8%22/%3E%3Cpath%20d%3D%22M8.3%2012.3l2.5%202.5%204.9-5.4%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E");
  --icon-box: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M3.4%208l8.6-4%208.6%204-8.6%204-8.6-4z%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.7%22%20stroke-linejoin%3D%22round%22/%3E%3Cpath%20d%3D%22M3.4%208v8.2l8.6%204%208.6-4V8%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.7%22%20stroke-linejoin%3D%22round%22/%3E%3Cline%20x1%3D%2212%22%20y1%3D%2212%22%20x2%3D%2212%22%20y2%3D%2220.2%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.7%22/%3E%3C/svg%3E");
  --icon-cart: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ccircle%20cx%3D%229.2%22%20cy%3D%2220%22%20r%3D%221.3%22%20fill%3D%22currentColor%22%20stroke%3D%22none%22/%3E%3Ccircle%20cx%3D%2217.2%22%20cy%3D%2220%22%20r%3D%221.3%22%20fill%3D%22currentColor%22%20stroke%3D%22none%22/%3E%3Cpath%20d%3D%22M3.3%204h2.2l2%2012.2h11.3l2-8.4H6.2%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E");
  --icon-camera: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M4%208.4h3.1l1.4-2h6.9l1.4%202H20v10.6H4z%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.7%22%20stroke-linejoin%3D%22round%22/%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2213.6%22%20r%3D%223.3%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.7%22/%3E%3C/svg%3E");
  --icon-copy: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Crect%20x%3D%229%22%20y%3D%229%22%20width%3D%2211%22%20height%3D%2211%22%20rx%3D%222%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.7%22/%3E%3Cpath%20d%3D%22M6%2015H5a2%202%200%200%201-2-2V5a2%202%200%200%201%202-2h8a2%202%200%200%201%202%202v1%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.7%22/%3E%3C/svg%3E");
  --icon-share: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M6.5%2017.5L17.5%206.5%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22/%3E%3Cpath%20d%3D%22M9.5%206.5h8v8%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E");
  --icon-refresh: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M4.5%2012a7.5%207.5%200%200%201%2013-5.1M19.5%2012a7.5%207.5%200%200%201-13%205.1%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22/%3E%3Cpath%20d%3D%22M17.7%204.3v3.6h-3.6%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3Cpath%20d%3D%22M6.3%2019.7v-3.6h3.6%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E");
  --icon-globe: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%228.6%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.7%22/%3E%3Cline%20x1%3D%223.4%22%20y1%3D%2212%22%20x2%3D%2220.6%22%20y2%3D%2212%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.7%22/%3E%3Cpath%20d%3D%22M12%203.4c2.5%202.4%203.9%205.3%203.9%208.6s-1.4%206.2-3.9%208.6c-2.5-2.4-3.9-5.3-3.9-8.6s1.4-6.2%203.9-8.6z%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.7%22/%3E%3C/svg%3E");
  --icon-sun: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%224%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.8%22/%3E%3Cg%20stroke%3D%22currentColor%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%3E%3Cline%20x1%3D%2212%22%20y1%3D%222.5%22%20x2%3D%2212%22%20y2%3D%225%22/%3E%3Cline%20x1%3D%2212%22%20y1%3D%2219%22%20x2%3D%2212%22%20y2%3D%2221.5%22/%3E%3Cline%20x1%3D%222.5%22%20y1%3D%2212%22%20x2%3D%225%22%20y2%3D%2212%22/%3E%3Cline%20x1%3D%2219%22%20y1%3D%2212%22%20x2%3D%2221.5%22%20y2%3D%2212%22/%3E%3Cline%20x1%3D%225%22%20y1%3D%225%22%20x2%3D%226.8%22%20y2%3D%226.8%22/%3E%3Cline%20x1%3D%2217.2%22%20y1%3D%2217.2%22%20x2%3D%2219%22%20y2%3D%2219%22/%3E%3Cline%20x1%3D%2219%22%20y1%3D%225%22%20x2%3D%2217.2%22%20y2%3D%226.8%22/%3E%3Cline%20x1%3D%226.8%22%20y1%3D%2217.2%22%20x2%3D%225%22%20y2%3D%2219%22/%3E%3C/g%3E%3C/svg%3E");
  --icon-bell: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M6.2%2010.6a5.8%205.8%200%200%201%2011.6%200v3.9l1.6%202.4H4.6l1.6-2.4z%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.7%22%20stroke-linejoin%3D%22round%22/%3E%3Cpath%20d%3D%22M9.9%2019.4a2.2%202.2%200%200%200%204.2%200%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22/%3E%3C/svg%3E");
  --icon-bell-off: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M6.2%2010.6a5.8%205.8%200%200%201%2011.6%200v3.9l1.6%202.4H4.6l1.6-2.4z%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.7%22%20stroke-linejoin%3D%22round%22/%3E%3Cpath%20d%3D%22M9.9%2019.4a2.2%202.2%200%200%200%204.2%200%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22/%3E%3Cline%20x1%3D%223.5%22%20y1%3D%2220.5%22%20x2%3D%2220.5%22%20y2%3D%223.5%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22/%3E%3C/svg%3E");
  --icon-people: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%228.3%22%20r%3D%223%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.7%22/%3E%3Cpath%20d%3D%22M3.3%2019c0-3.3%202.5-5.4%205.7-5.4s5.7%202.1%205.7%205.4%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22/%3E%3Ccircle%20cx%3D%2217%22%20cy%3D%229.3%22%20r%3D%222.3%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.7%22/%3E%3Cpath%20d%3D%22M15.6%2013.5c2.5.3%204.4%202.1%204.4%205.2%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22/%3E%3C/svg%3E");
  --icon-clock: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%228.6%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.7%22/%3E%3Cpath%20d%3D%22M12%206.8v5.4l3.6%202.1%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E");
  --icon-grid: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Crect%20x%3D%224%22%20y%3D%224%22%20width%3D%226.4%22%20height%3D%226.4%22%20rx%3D%221.4%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.7%22/%3E%3Crect%20x%3D%2213.6%22%20y%3D%224%22%20width%3D%226.4%22%20height%3D%226.4%22%20rx%3D%221.4%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.7%22/%3E%3Crect%20x%3D%224%22%20y%3D%2213.6%22%20width%3D%226.4%22%20height%3D%226.4%22%20rx%3D%221.4%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.7%22/%3E%3Crect%20x%3D%2213.6%22%20y%3D%2213.6%22%20width%3D%226.4%22%20height%3D%226.4%22%20rx%3D%221.4%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.7%22/%3E%3C/svg%3E");
  --icon-person: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%228.3%22%20r%3D%223.6%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.8%22/%3E%3Cpath%20d%3D%22M4.6%2019.6c0-4.1%203.3-6.5%207.4-6.5s7.4%202.4%207.4%206.5%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22/%3E%3C/svg%3E");
  --icon-inbox-down: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M4.2%2012.2V6.6a1.4%201.4%200%200%201%201.4-1.4h12.8a1.4%201.4%200%200%201%201.4%201.4v5.6%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.7%22%20stroke-linejoin%3D%22round%22/%3E%3Cpath%20d%3D%22M4.2%2012.2l1.9%204.9h11.8l1.9-4.9%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.7%22%20stroke-linejoin%3D%22round%22/%3E%3Cpath%20d%3D%22M4.2%2012.2h4.3l1%202h5l1-2h4.3%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.7%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E");
  --icon-ticket: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M4%209.3a1.9%201.9%200%201%200%200-3.1V5a1%201%200%200%201%201-1h14a1%201%200%200%201%201%201v1.2a1.9%201.9%200%201%200%200%203.1v5a1.9%201.9%200%201%200%200%203.1V19a1%201%200%200%201-1%201H5a1%201%200%200%201-1-1v-1.6a1.9%201.9%200%201%200%200-3.1z%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.6%22%20stroke-linejoin%3D%22round%22/%3E%3Cline%20x1%3D%2214.3%22%20y1%3D%224.5%22%20x2%3D%2214.3%22%20y2%3D%2219.5%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.4%22%20stroke-dasharray%3D%222.2%202.2%22/%3E%3C/svg%3E");
  --icon-warning: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M12%203.8l9.3%2016.4H2.7z%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.7%22%20stroke-linejoin%3D%22round%22/%3E%3Cline%20x1%3D%2212%22%20y1%3D%2210%22%20x2%3D%2212%22%20y2%3D%2214.6%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22/%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2217.4%22%20r%3D%220.95%22%20fill%3D%22currentColor%22%20stroke%3D%22none%22/%3E%3C/svg%3E");
  --icon-gamepad: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Crect%20x%3D%223%22%20y%3D%228%22%20width%3D%2218%22%20height%3D%229%22%20rx%3D%224.5%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.7%22/%3E%3Cline%20x1%3D%227.4%22%20y1%3D%2210.6%22%20x2%3D%227.4%22%20y2%3D%2214.4%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22/%3E%3Cline%20x1%3D%225.5%22%20y1%3D%2212.5%22%20x2%3D%229.3%22%20y2%3D%2212.5%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22/%3E%3Ccircle%20cx%3D%2215.8%22%20cy%3D%2211.2%22%20r%3D%221%22%20fill%3D%22currentColor%22%20stroke%3D%22none%22/%3E%3Ccircle%20cx%3D%2217.8%22%20cy%3D%2213.2%22%20r%3D%221%22%20fill%3D%22currentColor%22%20stroke%3D%22none%22/%3E%3C/svg%3E");
  --icon-wallet: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Crect%20x%3D%223%22%20y%3D%226.4%22%20width%3D%2218%22%20height%3D%2212.2%22%20rx%3D%222.4%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.7%22/%3E%3Cpath%20d%3D%22M3%2010.4h18%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.7%22/%3E%3Ccircle%20cx%3D%2216.6%22%20cy%3D%2214.6%22%20r%3D%221.25%22%20fill%3D%22currentColor%22%20stroke%3D%22none%22/%3E%3C/svg%3E");
  --icon-megaphone: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M3.5%2010.5v3a1.3%201.3%200%200%200%201.3%201.3H6l1%205%201.7-.4-.9-4.6%208.7%202.6V6.2L7.7%209.2H4.8a1.3%201.3%200%200%200-1.3%201.3z%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.6%22%20stroke-linejoin%3D%22round%22/%3E%3Cpath%20d%3D%22M20.5%209.5a4%204%200%200%201%200%205%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22/%3E%3C/svg%3E");
  --icon-home: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3.5%2010.5%2012%204l8.5%206.5%22%2F%3E%3Cpath%20d%3D%22M5.5%209v10.5h13V9%22%2F%3E%3Cpath%20d%3D%22M10%2019.5v-5h4v5%22%2F%3E%3C%2Fsvg%3E");
  --icon-bag: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%208h14l-1%2012H6z%22%2F%3E%3Cpath%20d%3D%22M9%208V6.5a3%203%200%200%201%206%200V8%22%2F%3E%3C%2Fsvg%3E");
  --icon-swap: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%208h14l-3.5-3.5%22%2F%3E%3Cpath%20d%3D%22M20%2016H6l3.5%203.5%22%2F%3E%3C%2Fsvg%3E");
  --icon-headset: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2014v-2a8%208%200%200%201%2016%200v2%22%2F%3E%3Crect%20x%3D%223.5%22%20y%3D%2213%22%20width%3D%224%22%20height%3D%226%22%20rx%3D%221.5%22%2F%3E%3Crect%20x%3D%2216.5%22%20y%3D%2213%22%20width%3D%224%22%20height%3D%226%22%20rx%3D%221.5%22%2F%3E%3Cpath%20d%3D%22M18.5%2019c0%201.5-2%202.5-5%202.5%22%2F%3E%3C%2Fsvg%3E");
  --icon-logout: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14%204h4.5a1.5%201.5%200%200%201%201.5%201.5v13a1.5%201.5%200%200%201-1.5%201.5H14%22%2F%3E%3Cpath%20d%3D%22M10%2016l-4-4%204-4%22%2F%3E%3Cpath%20d%3D%22M6%2012h10%22%2F%3E%3C%2Fsvg%3E");
  --icon-telegram: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M21%204.5%203.5%2011.3c-.9.4-.9%201.5%200%201.8l4.3%201.4%201.7%205.2c.2.7%201.1.9%201.6.4l2.5-2.4%204.5%203.3c.6.4%201.4.1%201.6-.6L22.2%205.8c.2-.9-.6-1.6-1.2-1.3z%22%2F%3E%3Cpath%20d%3D%22M7.8%2014.5%2018%207.5l-7.6%208.4%22%2F%3E%3C%2Fsvg%3E");
  --icon-check: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%2012.5l4.5%204.5L19%207.5%22%2F%3E%3C%2Fsvg%3E");
  --icon-x: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%206l12%2012M18%206%206%2018%22%2F%3E%3C%2Fsvg%3E");
  --icon-doc: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M7%203.5h7l4%204V20a.5.5%200%200%201-.5.5h-10.5A.5.5%200%200%201%206.5%2020V4a.5.5%200%200%201%20.5-.5z%22%2F%3E%3Cpath%20d%3D%22M14%203.5V8h4%22%2F%3E%3Cpath%20d%3D%22M9.5%2012.5h5M9.5%2016h5%22%2F%3E%3C%2Fsvg%3E");
  --icon-phone: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%226.5%22%20y%3D%222.5%22%20width%3D%2211%22%20height%3D%2219%22%20rx%3D%222.5%22%2F%3E%3Cpath%20d%3D%22M10.5%2018.5h3%22%2F%3E%3C%2Fsvg%3E");
}
.icon-moon{-webkit-mask-image:var(--icon-moon);mask-image:var(--icon-moon)}
.icon-card{-webkit-mask-image:var(--icon-card);mask-image:var(--icon-card)}
.icon-chat{-webkit-mask-image:var(--icon-chat);mask-image:var(--icon-chat)}
.icon-star-filled{-webkit-mask-image:var(--icon-star-filled);mask-image:var(--icon-star-filled)}
.icon-star-outline{-webkit-mask-image:var(--icon-star-outline);mask-image:var(--icon-star-outline)}
.icon-lock{-webkit-mask-image:var(--icon-lock);mask-image:var(--icon-lock)}
.icon-check-circle{-webkit-mask-image:var(--icon-check-circle);mask-image:var(--icon-check-circle)}
.icon-box{-webkit-mask-image:var(--icon-box);mask-image:var(--icon-box)}
.icon-cart{-webkit-mask-image:var(--icon-cart);mask-image:var(--icon-cart)}
.icon-camera{-webkit-mask-image:var(--icon-camera);mask-image:var(--icon-camera)}
.icon-copy{-webkit-mask-image:var(--icon-copy);mask-image:var(--icon-copy)}
.icon-share{-webkit-mask-image:var(--icon-share);mask-image:var(--icon-share)}
.icon-refresh{-webkit-mask-image:var(--icon-refresh);mask-image:var(--icon-refresh)}
.icon-globe{-webkit-mask-image:var(--icon-globe);mask-image:var(--icon-globe)}
.icon-sun{-webkit-mask-image:var(--icon-sun);mask-image:var(--icon-sun)}
.icon-bell{-webkit-mask-image:var(--icon-bell);mask-image:var(--icon-bell)}
.icon-bell-off{-webkit-mask-image:var(--icon-bell-off);mask-image:var(--icon-bell-off)}
.icon-people{-webkit-mask-image:var(--icon-people);mask-image:var(--icon-people)}
.icon-clock{-webkit-mask-image:var(--icon-clock);mask-image:var(--icon-clock)}
.icon-grid{-webkit-mask-image:var(--icon-grid);mask-image:var(--icon-grid)}
.icon-person{-webkit-mask-image:var(--icon-person);mask-image:var(--icon-person)}
.icon-inbox-down{-webkit-mask-image:var(--icon-inbox-down);mask-image:var(--icon-inbox-down)}
.icon-ticket{-webkit-mask-image:var(--icon-ticket);mask-image:var(--icon-ticket)}
.icon-warning{-webkit-mask-image:var(--icon-warning);mask-image:var(--icon-warning)}
.icon-gamepad{-webkit-mask-image:var(--icon-gamepad);mask-image:var(--icon-gamepad)}
.icon-wallet{-webkit-mask-image:var(--icon-wallet);mask-image:var(--icon-wallet)}
.icon-megaphone{-webkit-mask-image:var(--icon-megaphone);mask-image:var(--icon-megaphone)}
.icon-home{-webkit-mask-image:var(--icon-home);mask-image:var(--icon-home)}
.icon-bag{-webkit-mask-image:var(--icon-bag);mask-image:var(--icon-bag)}
.icon-swap{-webkit-mask-image:var(--icon-swap);mask-image:var(--icon-swap)}
.icon-headset{-webkit-mask-image:var(--icon-headset);mask-image:var(--icon-headset)}
.icon-logout{-webkit-mask-image:var(--icon-logout);mask-image:var(--icon-logout)}
.icon-telegram{-webkit-mask-image:var(--icon-telegram);mask-image:var(--icon-telegram)}
.icon-check{-webkit-mask-image:var(--icon-check);mask-image:var(--icon-check)}
.icon-x{-webkit-mask-image:var(--icon-x);mask-image:var(--icon-x)}
.icon-doc{-webkit-mask-image:var(--icon-doc);mask-image:var(--icon-doc)}
.icon-phone{-webkit-mask-image:var(--icon-phone);mask-image:var(--icon-phone)}

/* узкий телефон: в шапке только логотип, сводка — строками «подпись — значение» */
@media (max-width: 520px) {
  .brand-text { display: none; }
  .stats { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .stat { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; }
  .stat b { font-size: 17px; margin: 0; order: 2; white-space: nowrap; }
  .stat span { display: none; }
  .stat small { font-size: 11.5px; }
}