:root {
  --bg: #f4f5f8; --card: #ffffff; --text: #0e1116; --hint: #6b7280; --sep: rgba(14, 17, 22, .08);
  --chip: #eceef2; --field: #eff1f5; --accent: #1a6ff5; --accent-press: #155fd6; --accent-soft: rgba(26, 111, 245, .1);
  --on-accent: #fff; --dark: #14171d; --on-dark: #fff; --danger: #e5484d; --ok: #1fa35b;
  --hero: linear-gradient(120deg, #f5f3f0 0%, #e8e5e0 55%, #dcd8d2 100%);
  --mono-bg: #00005b; --mono-fg: #9999ff;
  --shadow: 0 1px 2px rgba(14, 17, 22, .04), 0 6px 20px rgba(14, 17, 22, .05);
  --r: 18px; --r-sm: 12px;
  --nav-h: 64px;
  --safe-b: max(env(safe-area-inset-bottom), var(--tg-safe-area-inset-bottom, 0px));
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}
[data-theme="dark"] {
  --bg: #0d0f13; --card: #181b21; --text: #f1f2f4; --hint: #8c929c; --sep: rgba(255, 255, 255, .08);
  --chip: #22262d; --field: #22262d; --accent: #3d8bff; --accent-press: #2f78e6; --accent-soft: rgba(61, 139, 255, .16);
  --dark: #f1f2f4; --on-dark: #0d0f13;
  --hero: linear-gradient(120deg, #22252b 0%, #1a1c21 60%, #15171b 100%);
  --mono-bg: #1b1b6e;
  --shadow: none;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.4 var(--font); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
input { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
svg { width: 22px; height: 22px; flex: none; }
h1, h2, h3, p { margin: 0; }
a { color: var(--accent); }

.app { max-width: 560px; margin: 0 auto; padding: 12px 16px calc(var(--nav-h) + var(--safe-b) + 24px); min-height: 100vh; }
.boot { display: grid; place-items: center; min-height: 60vh; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.muted { color: var(--hint); }
.accent { color: var(--accent); }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp4 { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
section { margin-top: 22px; }
.section-title { font-size: 21px; font-weight: 750; letter-spacing: -.02em; margin: 22px 2px 12px; }
section > .section-title { margin-top: 0; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 2px 16px; }
.page-head h1 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.note { font-size: 13px; color: var(--hint); margin: 10px 4px; }
.note.err { color: var(--danger); }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 44px; padding: 0 18px; border-radius: 14px; font-weight: 650; white-space: nowrap; transition: transform .12s, background .15s, opacity .15s; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn svg { width: 18px; height: 18px; }
.btn.sm { height: 36px; padding: 0 16px; border-radius: 12px; font-size: 14px; }
.btn.lg { height: 52px; font-size: 16px; border-radius: 16px; }
.btn.block { display: flex; width: 100%; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:active { background: var(--accent-press); }
.btn-dark { background: var(--dark); color: var(--on-dark); }
.btn-soft { background: var(--chip); color: var(--text); }
.btn-tint { background: var(--accent-soft); color: var(--accent); }
.btn-ghost { background: var(--field); color: var(--text); }
.link { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 600; font-size: 14px; }
.link svg { width: 16px; height: 16px; }
.link.danger { color: var(--danger); }
.icon-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; }
.icon-btn svg { width: 26px; height: 26px; }
.icon-btn.subtle { width: 36px; height: 36px; color: var(--hint); }
.icon-btn.subtle svg { width: 20px; height: 20px; }
.round { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #0e1116; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.round svg { width: 18px; height: 18px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--field); font-size: 13px; font-weight: 600; color: var(--text); }
.pill svg { width: 16px; height: 16px; }
.badge { position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em; backdrop-filter: blur(6px); }
.badge.save { background: var(--ok); }
.badge.big { top: 14px; left: 14px; font-size: 13px; }

/* ---------- хосты Pr / Ae ---------- */
.hosts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.host { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.mono { display: inline-grid; place-items: center; width: 26px; height: 24px; border-radius: 5px; background: var(--mono-bg); color: var(--mono-fg); font: 700 13px/1 var(--font); letter-spacing: -.02em; }
.mono.lg { width: 38px; height: 36px; font-size: 18px; border-radius: 8px; }
.p-meta .host { margin-right: 10px; }

/* ---------- магазин ---------- */
.shop-top { display: flex; gap: 10px; align-items: center; }
.search { flex: 1; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-radius: 16px; background: var(--field); color: var(--hint); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 16px; }
.search input::placeholder { color: var(--hint); }
.search input::-webkit-search-cancel-button { display: none; }
.cart-btn .count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 14px -16px 0; padding: 0 16px 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 38px; padding: 0 18px; border-radius: 999px; background: var(--chip); font-weight: 550; font-size: 15px; }
.chip.active { background: var(--accent); color: #fff; }

.hero { position: relative; margin-top: 16px; border-radius: 22px; overflow: hidden; background: var(--hero); }
.hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; min-height: 262px; padding: 22px 20px 64px; display: flex; overflow: hidden; }
.hero-copy { position: relative; z-index: 1; width: 60%; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.eyebrow { font-size: 11px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--hint); }
.hero h2 { font-size: 30px; line-height: 1.05; font-weight: 800; letter-spacing: -.03em; }
.hero p { font-size: 15px; color: var(--hint); max-width: 260px; }
.hero-cta { margin-top: 8px; height: 46px; border-radius: 14px; }
.hero-img { position: absolute; right: -18%; top: 50%; transform: translateY(-50%); width: 78%; height: 100%; object-fit: cover; object-position: 60% center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%); mask-image: linear-gradient(90deg, transparent 0, #000 30%); }
.hero-img.box { right: 0; top: 44%; width: 52%; height: auto; object-fit: contain; -webkit-mask-image: none; mask-image: none; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .18)); }
.hero p { max-width: 100%; }
.hero-ctrl { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 8px; align-items: center; z-index: 2; }
.hero-count { padding: 7px 11px; border-radius: 999px; background: rgba(255, 255, 255, .85); color: #0e1116; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-empty { grid-column: 1 / -1; }
.pcard { display: flex; flex-direction: column; padding: 8px; cursor: pointer; transition: transform .12s; }
.pcard:active { transform: scale(.985); }
.pcard-cover { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #1c1f24; }
.pcard-cover img { width: 100%; height: 100%; object-fit: cover; }
.pcard-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 4px 4px; flex: 1; }
.pcard h3 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.pcard p { font-size: 13px; color: var(--hint); line-height: 1.3; min-height: 2.6em; }
.pcard-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 4px; }
.price { font-size: 18px; font-weight: 750; letter-spacing: -.02em; display: flex; flex-direction: column; }
.price small { font-size: 11px; font-weight: 650; color: var(--ok); letter-spacing: 0; white-space: nowrap; }
.pcard .btn.sm { padding: 0 14px; }

/* ---------- товар ---------- */
.gallery { position: relative; overflow: hidden; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r); }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img { flex: 0 0 100%; aspect-ratio: 16 / 9; object-fit: cover; scroll-snap-align: start; }
.gal-ctrl { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; align-items: center; }
.p-title { font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin: 16px 2px 4px; }
.p-sub { font-size: 16px; color: var(--hint); margin: 0 2px; }
.p-meta { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 12px 2px 0; font-size: 14px; }
.buybox { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 14px; margin-top: 16px; }
.buybox-price { flex: none; min-width: 110px; font-size: 28px; font-weight: 800; letter-spacing: -.03em; display: flex; flex-direction: column; padding-left: 6px; }
.buybox-price s { font-size: 14px; font-weight: 500; color: var(--hint); letter-spacing: 0; }
.buybox-price small { font-size: 13px; font-weight: 600; color: var(--hint); letter-spacing: 0; }
.buybox-actions { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.row2 { display: flex; gap: 8px; flex-basis: 100%; }
.row2 .btn { flex: 1; min-width: 0; height: 42px; padding: 0 8px; font-size: 14px; }
.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.feat { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); font-size: 11.5px; line-height: 1.25; color: var(--hint); }
.feat svg { color: var(--accent); width: 22px; height: 22px; }
.checks { list-style: none; margin: 0; padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.checks li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.checks svg { color: var(--accent); width: 20px; height: 20px; margin-top: 0; }
.desc { font-size: 15px; line-height: 1.5; margin: 0 2px; }
.desc + .link { margin: 6px 2px 0; }
.examples { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
.example { position: relative; flex: 0 0 62%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #1c1f24; }
.example img { width: 100%; height: 100%; object-fit: cover; }
.example svg { position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; }
.example span { position: absolute; left: 10px; bottom: 8px; color: #fff; font-weight: 600; font-size: 14px; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }

/* ---------- списки ---------- */
.list { overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; min-height: 56px; }
.row + .row { border-top: 1px solid var(--sep); }
.row > svg:last-child { color: var(--hint); width: 18px; height: 18px; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-main b { font-weight: 600; font-size: 16px; }
.row-main small { color: var(--hint); font-size: 13.5px; }
.row-end { flex: none; font-weight: 650; }
.row-ic { display: grid; place-items: center; width: 30px; color: var(--accent); }
.row-ic svg { width: 26px; height: 26px; }
.row-ic.plain { color: var(--text); }
.thumb { width: 52px; height: 34px; border-radius: 7px; object-fit: cover; flex: none; }
.total-row { color: var(--hint); }

/* ---------- корзина ---------- */
.cart-list { display: flex; flex-direction: column; gap: 10px; }
.cart-row { display: flex; gap: 12px; padding: 10px; align-items: stretch; }
section .cart-row + .cart-row { margin-top: 10px; }
.cart-img { width: 104px; aspect-ratio: 16 / 11; border-radius: 12px; object-fit: cover; flex: none; background: #1c1f24; cursor: pointer; }
.cart-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cart-info b { font-size: 16px; font-weight: 700; cursor: pointer; }
.cart-info small { color: var(--hint); font-size: 13px; line-height: 1.3; }
.cart-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 6px; }
.cart-side > b { font-size: 16px; white-space: nowrap; }
.promo { display: flex; gap: 8px; padding: 8px; margin-top: 12px; }
.field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 13px; background: var(--field); color: var(--hint); }
.field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 16px; text-transform: uppercase; }
.field input::placeholder { text-transform: none; color: var(--hint); }
.promo .btn { height: 46px; }
.promo-on { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; }
.promo-on svg { color: var(--ok); }
.promo-on span { flex: 1; }
.summary { padding: 16px; margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; font-size: 15.5px; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--sep); padding-top: 12px; margin: 4px 0 6px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.sum-total b { font-size: 28px; }
.fine { display: flex; gap: 8px; justify-content: center; align-items: flex-start; text-align: center; font-size: 13px; color: var(--hint); margin-top: 4px; }
.fine svg { width: 16px; height: 16px; margin-top: 1px; }

/* ---------- оплата / статус ---------- */
#sheets { position: relative; z-index: 50; }
.sheet-wrap { position: fixed; inset: 0; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .38); opacity: 0; transition: opacity .2s; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; max-height: 88vh; overflow-y: auto; background: var(--card); border-radius: 22px 22px 0 0;
  padding: 8px 16px calc(18px + var(--safe-b)); transform: translateY(100%); transition: transform .22s ease-out; }
.sheet-wrap.open .sheet-backdrop { opacity: 1; }
.sheet-wrap.open .sheet { transform: none; }
.sheet-grip { width: 38px; height: 5px; border-radius: 3px; background: var(--sep); margin: 2px auto 12px; }
.sheet-title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 12px; }
.sheet-body .spinner { margin: 30px auto; }
.pay-items { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--field); margin-bottom: 12px; text-align: left; width: 100%; }
.pay-items .sum-total { font-size: 17px; margin: 4px 0 0; padding-top: 8px; }
.pay-items .sum-total b { font-size: 20px; }
.methods { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.method { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; border: 1.5px solid var(--sep); background: var(--card); transition: border-color .15s, transform .12s; }
.method:active { transform: scale(.985); border-color: var(--accent); }
.method:disabled { opacity: .6; }
.method-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; flex: none; }
.method-ic.stars { background: rgba(255, 176, 0, .15); color: #f5a300; }
.method-ic.rub { background: var(--accent-soft); color: var(--accent); }
.method-ic.crypto { background: rgba(38, 161, 123, .14); color: #26a17b; }
.method-sum { font-size: 16px; white-space: nowrap; }
.method-sum .spinner { width: 20px; height: 20px; border-width: 2.5px; }
.status { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 32px 20px 20px; margin-top: 30px; }
.status > svg { width: 44px; height: 44px; color: var(--hint); }
.status h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.status p { color: var(--hint); max-width: 320px; }
.status .btn { margin-top: 4px; }
.ok-ic svg { width: 64px; height: 64px; color: var(--ok); }

/* ---------- покупки ---------- */
.lib { display: flex; flex-direction: column; gap: 12px; }
.lib-item { padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.lib-item + .lib-item { margin-top: 12px; }
.lib .lib-item + .lib-item { margin-top: 0; }
.lib-top { display: flex; gap: 12px; }
.lib-top .cart-img { width: 88px; }
.lib-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.license { padding: 12px; border-radius: 14px; background: var(--field); display: flex; flex-direction: column; gap: 8px; }
.license-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 14px; }
.license-head > span { display: flex; align-items: center; gap: 6px; }
.license-head svg { width: 18px; height: 18px; }
.key { display: block; font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; padding: 10px; border-radius: 10px; background: var(--card); max-height: 74px; overflow: hidden; user-select: all; }
.devices { display: flex; flex-direction: column; gap: 6px; }
.devices > small { color: var(--hint); font-weight: 600; }
.device { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }

/* ---------- профиль ---------- */
.profile-card { display: flex; align-items: center; gap: 16px; width: 100%; padding: 16px; margin-bottom: 14px; }
.profile-card > svg { color: var(--hint); }
.avatar { width: 76px; height: 76px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden; background: #111; color: #f5b83d; font-size: 32px; font-weight: 800; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-card .name { font-size: 22px; font-weight: 750; letter-spacing: -.02em; }
.profile-card .pill { align-self: flex-start; margin-top: 8px; }
.menu .row-main b { font-size: 16.5px; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 12px; }
.tile svg { color: var(--accent); width: 30px; height: 30px; margin-bottom: 4px; }
.tile b { font-size: 14.5px; line-height: 1.2; }
.tile small { font-size: 12.5px; color: var(--hint); line-height: 1.3; }
.setting .row-end { font-weight: 500; }
.switch { appearance: none; width: 51px; height: 31px; border-radius: 16px; background: var(--chip); position: relative; transition: background .2s; flex: none; margin: 0; cursor: pointer; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .2); transition: transform .2s; }
.switch:checked { background: var(--ok); }
.switch:checked::after { transform: translateX(20px); }

.support-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 24px 18px 18px; }
.support-card > svg { width: 44px; height: 44px; color: var(--accent); }
.support-card h2 { font-size: 21px; font-weight: 800; }
.support-card p { color: var(--hint); margin-bottom: 6px; }
.faq details + details { border-top: 1px solid var(--sep); }
.faq summary { display: flex; align-items: center; gap: 12px; padding: 15px 14px; font-weight: 600; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary > svg { margin-left: auto; width: 18px; height: 18px; color: var(--hint); transition: transform .2s; }
.faq details[open] summary > svg { transform: rotate(90deg); }
.faq details > p { padding: 0 14px 16px; color: var(--hint); line-height: 1.5; }
.steps { margin: 0; padding: 0 14px 16px 36px; display: flex; flex-direction: column; gap: 8px; line-height: 1.45; }

.order { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.order + .order { margin-top: 12px; }
.order .pay-items { margin: 4px 0 0; }
.order-head { display: flex; justify-content: space-between; align-items: center; }
.status-pill { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.status-pill.paid { background: rgba(31, 163, 91, .12); color: var(--ok); }
.status-pill.refunded { background: rgba(229, 72, 77, .12); color: var(--danger); }
.mono-id { font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 36px 20px; }
.empty > svg { width: 44px; height: 44px; color: var(--hint); margin-bottom: 6px; }
.empty h3 { font-size: 18px; }
.empty p { color: var(--hint); max-width: 300px; }
.empty .btn { margin-top: 10px; }

.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--sep); border-top-color: var(--accent); animation: spin .8s linear infinite; margin: 24px auto; }
.status .spinner { margin: 0 0 4px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- нижняя навигация ---------- */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: space-around; max-width: 560px; margin: 0 auto;
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--sep); }
.nav button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; font-weight: 550; color: var(--hint); }
.nav button svg { width: 26px; height: 26px; }
.nav button.active { color: var(--accent); }

.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 14px); transform: translate(-50%, 20px); z-index: 60; max-width: calc(100% - 32px);
  padding: 11px 16px; border-radius: 14px; background: rgba(20, 23, 29, .92); color: #fff; font-size: 14px; font-weight: 550; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--danger); }

@media (max-width: 370px) {
  .feats { grid-template-columns: repeat(2, 1fr); }
  .checks { grid-template-columns: 1fr; }
  .quick { grid-template-columns: 1fr 1fr; }
  .hero h2 { font-size: 26px; }
  .buybox { flex-direction: column; align-items: stretch; }
}
@media (min-width: 561px) { .nav { border-radius: 18px 18px 0 0; } }
