/* FreeNet — сайт и личный кабинет. Мобильная версия по умолчанию, ПК — от 900px. */
:root {
  --bg: #f4f7f5;
  --surface: #ffffff;
  --surface-2: #eef3f0;
  --line: #dfe7e2;
  --text: #0f1a14;
  --muted: #5a6b61;
  --brand: #16a34a;
  --brand-strong: #13803c;
  --brand-ink: #ffffff;
  --brand-soft: #e3f6ea;
  --brand-soft-ink: #12672f;
  --blue: #2563eb;
  --blue-soft: #e6eeff;
  --amber-soft: #fff4dc;
  --amber-ink: #8a5a00;
  --red: #dc2626;
  --red-soft: #fdeaea;
  --shadow: 0 1px 2px rgba(16, 40, 24, .05), 0 8px 24px rgba(16, 40, 24, .06);
  --radius: 20px;
  --radius-sm: 14px;
  --tap: 52px;
  --max: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b110d; --surface: #121a15; --surface-2: #18221c; --line: #24322a;
    --text: #e9f1ec; --muted: #97a89e; --brand: #22c55e; --brand-strong: #16a34a; --brand-ink: #04140a;
    --brand-soft: #123321; --brand-soft-ink: #86efac; --blue: #60a5fa; --blue-soft: #14233d;
    --amber-soft: #33270f; --amber-ink: #fcd34d; --red: #f87171; --red-soft: #3a1717;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b110d; --surface: #121a15; --surface-2: #18221c; --line: #24322a;
  --text: #e9f1ec; --muted: #97a89e; --brand: #22c55e; --brand-strong: #16a34a; --brand-ink: #04140a;
  --brand-soft: #123321; --brand-soft-ink: #86efac; --blue: #60a5fa; --blue-soft: #14233d;
  --amber-soft: #33270f; --amber-ink: #fcd34d; --red: #f87171; --red-soft: #3a1717;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--brand-soft-ink); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(34px, 8vw, 58px); font-weight: 800; }
h2 { font-size: clamp(26px, 5.4vw, 38px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.center { text-align: center; }
.hidden { display: none !important; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon.lg { width: 28px; height: 28px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 8px; }

/* ---------- кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--tap); padding: 0 22px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer;
  background: var(--surface-2); color: var(--text); transition: transform .12s, background .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 18px rgba(22, 163, 74, .28); }
.btn.primary:hover { background: var(--brand-strong); }
.btn.blue { background: var(--blue); color: #fff; }
.btn.ghost { background: transparent; border: 1.5px solid var(--line); }
.btn.danger { background: var(--red-soft); color: var(--red); }
.btn.block { width: 100%; }
.btn.sm { min-height: 42px; padding: 0 16px; font-size: 15px; }
.btn[disabled] { opacity: .55; pointer-events: none; }
a.btn { color: var(--text); }
a.btn.primary { color: var(--brand-ink); }
a.btn.blue { color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row.stack > .btn { flex: 1 1 100%; }

/* ---------- шапка */
.top {
  position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; color: var(--text) !important; text-decoration: none; letter-spacing: -.02em; }
.logo svg { width: 34px; height: 34px; }
.top nav { display: none; gap: 4px; margin-left: 12px; }
.top nav button, .top nav a { background: none; border: 0; font: inherit; font-size: 16px; color: var(--muted); padding: 8px 12px; border-radius: 10px; cursor: pointer; text-decoration: none; }
.top nav button:hover, .top nav a:hover { color: var(--text); background: var(--surface-2); }
.top .spacer { flex: 1; }
.top .btn { min-height: 44px; padding: 0 18px; font-size: 16px; }
.theme-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }

/* ---------- лендинг */
.hero { padding: 28px 0 40px; }
.hero .wrap { display: grid; gap: 32px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-soft-ink); font-weight: 700; font-size: 14px; margin-bottom: 18px; }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 25%, transparent); }
.hero p.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); max-width: 34ch; }
.hero .btn-row { margin-top: 24px; }
.hero .trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: var(--muted); font-size: 15px; }
.hero .trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero .trust .icon { width: 18px; height: 18px; color: var(--brand); }

.phone {
  width: min(300px, 78vw); aspect-ratio: 9 / 18.5; margin: 0 auto; border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #1d2a22, #0c130f); box-shadow: 0 30px 60px -20px rgba(10, 40, 20, .45), inset 0 0 0 2px #2c3b32;
  position: relative;
}
.phone .screen { height: 100%; border-radius: 34px; overflow: hidden; background: radial-gradient(120% 80% at 50% 18%, #184d2c 0%, #0b1a11 60%); display: flex; flex-direction: column; align-items: center; padding: 34px 18px 18px; color: #e8f5ec; }
.phone .notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; border-radius: 20px; background: #050806; }
.phone .ttl { font-weight: 800; font-size: 18px; margin-top: 8px; display: flex; align-items: center; gap: 8px; }
.phone .ttl svg { width: 24px; height: 24px; }
.power { margin: 30px 0 14px; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #2fe07a 0%, #16a34a 60%, #0e6f33 100%); box-shadow: 0 0 0 14px rgba(34, 197, 94, .14), 0 0 0 30px rgba(34, 197, 94, .07), 0 0 60px rgba(34, 197, 94, .5); animation: pulse 2.6s ease-in-out infinite; }
.power svg { width: 54px; height: 54px; stroke: #04140a; stroke-width: 2.6; }
@keyframes pulse { 50% { box-shadow: 0 0 0 18px rgba(34, 197, 94, .12), 0 0 0 38px rgba(34, 197, 94, .05), 0 0 70px rgba(34, 197, 94, .55); } }
@media (prefers-reduced-motion: reduce) { .power { animation: none; } html { scroll-behavior: auto; } }
.phone .state { font-weight: 800; font-size: 20px; }
.phone .sub { font-size: 13px; opacity: .7; }
.phone .rows { margin-top: auto; width: 100%; display: grid; gap: 8px; }
.phone .rows div { display: flex; justify-content: space-between; background: rgba(255, 255, 255, .06); border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.phone .rows b { color: #86efac; }

section.block { padding: 48px 0; }
section.block .head { max-width: 640px; margin-bottom: 28px; }
section.block .head p { color: var(--muted); font-size: 18px; }
.grid { display: grid; gap: 16px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.card.flat { box-shadow: none; }
.card h3 { margin-bottom: 6px; }
.card p:last-child { margin-bottom: 0; }
.feat .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-soft-ink); margin-bottom: 14px; }
.feat .ic .icon { width: 26px; height: 26px; }
.feat p { color: var(--muted); }

.steps { counter-reset: s; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step .n { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; font-size: 19px; }
.step h3 { margin: 6px 0 4px; }
.step p { color: var(--muted); margin: 0; }

.price { position: relative; display: flex; flex-direction: column; }
.price.pop { border: 2px solid var(--brand); }
.price .tag { position: absolute; top: -13px; left: 22px; background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: 13px; padding: 4px 12px; border-radius: 999px; }
.price .devs { display: flex; gap: 6px; color: var(--brand); margin-bottom: 10px; }
.price .amount { font-size: 46px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.price .amount small { font-size: 18px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price .old { color: var(--muted); text-decoration: line-through; font-weight: 600; margin-left: 8px; font-size: 20px; }
.price .then { color: var(--muted); margin: 8px 0 16px; }
.price ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.price li { display: flex; gap: 10px; align-items: flex-start; }
.price li .icon { color: var(--brand); width: 20px; height: 20px; margin-top: 3px; }
.price .btn { margin-top: auto; }
.note-ozon { display: flex; gap: 12px; align-items: center; background: var(--blue-soft); color: var(--text); border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 16px; font-size: 16px; }
.note-ozon .icon { color: var(--blue); }

.video-box { display: grid; gap: 24px; align-items: center; }
.video-frame { width: min(320px, 82vw); margin: 0 auto; border-radius: 30px; overflow: hidden; background: #000; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .45); aspect-ratio: 9 / 16; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.chapters { display: grid; gap: 10px; }
.chapter { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; font: inherit; color: var(--text); cursor: pointer; }
.chapter:hover { border-color: var(--brand); }
.chapter .t { flex: none; font-variant-numeric: tabular-nums; color: var(--brand-soft-ink); background: var(--brand-soft); border-radius: 8px; padding: 2px 8px; font-weight: 700; font-size: 14px; }
.chapter b { display: block; }
.chapter span.muted { font-size: 15px; }

.ref-band { background: linear-gradient(135deg, #14532d, #16a34a); color: #f0fdf4; border-radius: 28px; padding: 28px 22px; display: grid; gap: 18px; align-items: center; }
.ref-band h2 { color: #fff; }
.ref-band p { color: #d9f7e3; margin: 0; font-size: 18px; }
.ref-band .nums { display: flex; gap: 12px; flex-wrap: wrap; }
.ref-band .num { background: rgba(255, 255, 255, .14); border-radius: 18px; padding: 14px 18px; min-width: 130px; }
.ref-band .num b { font-size: 34px; display: block; line-height: 1.1; }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 18px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 18px 18px; color: var(--muted); }

footer.foot { padding: 40px 0 120px; border-top: 1px solid var(--line); margin-top: 24px; color: var(--muted); font-size: 15px; }
footer.foot .cols { display: grid; gap: 20px; }
footer.foot a { color: var(--muted); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; padding: 4px 0; }
footer.foot a:hover { color: var(--text); }
footer.foot .links { display: grid; gap: 4px; }

/* ---------- вход */
.auth { max-width: 520px; margin: 24px auto 120px; padding: 0 16px; }
.auth .card { padding: 24px; }
.choice { display: flex; gap: 16px; align-items: center; width: 100%; text-align: left; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px; font: inherit; color: var(--text); cursor: pointer; margin-bottom: 12px; }
.choice:hover { border-color: var(--brand); }
.choice .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.choice .ic.tg { background: #2aabee; color: #fff; }
.choice .ic.key { background: var(--surface-2); color: var(--text); }
.choice b { display: block; font-size: 18px; }
.choice .rec { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--brand-soft-ink); background: var(--brand-soft); padding: 2px 8px; border-radius: 999px; }
.choice .chev { margin-left: auto; color: var(--muted); }
.qr-box { background: #fff; border-radius: 18px; padding: 12px; width: 220px; margin: 0 auto 8px; border: 1px solid var(--line); }
.qr-box svg, .qr-box img { width: 100%; height: auto; }
.waiting { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); margin: 16px 0; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.account-num { font: 700 clamp(24px, 7vw, 32px)/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .04em; text-align: center; background: var(--surface-2); border-radius: var(--radius-sm); padding: 18px 10px; margin: 12px 0; word-spacing: .2em; user-select: all; }

.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-weight: 700; margin-bottom: 6px; }
.input { width: 100%; min-height: var(--tap); border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 18px; padding: 0 16px; }
.input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.input.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .06em; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; margin: 14px 0; }
.check input { width: 24px; height: 24px; accent-color: var(--brand); flex: none; margin: 1px 0 0; }
.back-link { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 8px 0; margin-bottom: 8px; }

/* ---------- кабинет */
.app { display: block; padding-bottom: 96px; }
.side { display: none; }
.main { padding: 16px 16px 24px; max-width: 860px; margin: 0 auto; }
.page-title { display: flex; align-items: center; gap: 12px; margin: 4px 0 18px; }
.page-title h1 { font-size: clamp(28px, 6vw, 36px); margin: 0; }
.hello { color: var(--muted); margin: -10px 0 18px; }

.status { border-radius: 24px; padding: 22px; color: #f0fdf4; background: linear-gradient(140deg, #166534 0%, #16a34a 70%, #22c55e 100%); position: relative; overflow: hidden; box-shadow: 0 16px 36px -18px rgba(22, 101, 52, .6); }
.status.off { background: linear-gradient(140deg, #3b4540, #5a6660); box-shadow: none; }
.status::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.status .lbl { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; background: rgba(255, 255, 255, .16); padding: 4px 12px; border-radius: 999px; font-size: 14px; }
.status .big { font-size: clamp(30px, 8vw, 44px); font-weight: 800; letter-spacing: -.02em; margin: 12px 0 2px; line-height: 1.1; }
.status .till { opacity: .9; }
.status .meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.status .meta div { background: rgba(255, 255, 255, .13); border-radius: 14px; padding: 10px 12px; }
.status .meta b { display: block; font-size: 19px; }
.status .meta span { font-size: 13px; opacity: .85; }
.status .btn-row { margin-top: 18px; position: relative; z-index: 1; }
.status .btn { background: #fff; color: #14532d; }
.status .btn.ghost { background: rgba(255, 255, 255, .14); color: #fff; border: 0; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.tile { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--text) !important; font-weight: 700; min-height: 110px; box-shadow: var(--shadow); }
.tile .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); }
.tile.g .ic { background: var(--brand-soft); color: var(--brand-soft-ink); }
.tile.b .ic { background: var(--blue-soft); color: var(--blue); }
.tile.a .ic { background: var(--amber-soft); color: var(--amber-ink); }
.tile small { color: var(--muted); font-weight: 500; font-size: 14px; display: block; margin-top: -6px; }

.alert { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 14px; background: var(--amber-soft); color: var(--amber-ink); }
.alert.ok { background: var(--brand-soft); color: var(--brand-soft-ink); }
.alert.info { background: var(--blue-soft); color: var(--text); }
.alert.info .icon { color: var(--blue); }
.alert p { margin: 0; }
.alert b { color: inherit; }

.section-title { font-size: 20px; font-weight: 800; margin: 26px 0 12px; }
.seg { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 16px; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font: inherit; font-weight: 700; color: var(--text); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.seg .icon { width: 20px; height: 20px; }

.app-card { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
.app-card .logo-app { width: 48px; height: 48px; border-radius: 13px; flex: none; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 20px; }
.app-card b { display: block; }
.app-card .rec { font-size: 13px; font-weight: 700; color: var(--brand-soft-ink); background: var(--brand-soft); padding: 1px 8px; border-radius: 999px; margin-left: 6px; }
.app-card .grow { flex: 1; min-width: 0; }
.app-card .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.guide { display: grid; gap: 14px; }
.guide .step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.guide .step .n { width: 38px; height: 38px; font-size: 17px; }
.guide .step .body { flex: 1; min-width: 0; }
.guide .step .btn-row { margin-top: 12px; }

.linkbox { display: flex; gap: 8px; align-items: center; background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px 8px 8px 14px; }
.linkbox code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.qr-inline { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.qr-inline .qr-box { margin: 0; width: 180px; }

.plans { display: grid; gap: 12px; }
.plan { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px; font: inherit; color: var(--text); cursor: pointer; position: relative; }
.plan[aria-pressed="true"] { border-color: var(--brand); background: color-mix(in srgb, var(--brand-soft) 55%, var(--surface)); }
.plan .radio { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; }
.plan[aria-pressed="true"] .radio { border-color: var(--brand); }
.plan[aria-pressed="true"] .radio::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--brand); }
.plan .grow { flex: 1; }
.plan b { font-size: 18px; display: block; }
.plan .p { text-align: right; }
.plan .p b { font-size: 24px; }
.plan .p s { color: var(--muted); font-size: 15px; }
.plan .chip { position: absolute; top: -11px; right: 16px; font-size: 12px; font-weight: 800; background: var(--brand); color: var(--brand-ink); padding: 2px 10px; border-radius: 999px; }

.summary span { min-width: 0; }
.summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--surface-2); margin: 16px 0; font-weight: 700; }
.summary b { font-size: 26px; white-space: nowrap; }

.pay-ozon { text-align: center; }
.pay-ozon .amount { font-size: 44px; font-weight: 800; letter-spacing: -.02em; }
.pay-ozon .code { display: inline-block; font: 700 22px ui-monospace, Menlo, Consolas, monospace; background: var(--surface-2); padding: 4px 14px; border-radius: 10px; letter-spacing: .1em; }
.ol { text-align: left; padding-left: 22px; margin: 18px 0; }
.ol li { margin-bottom: 8px; }
.upload { display: flex; align-items: center; gap: 12px; border: 2px dashed var(--line); border-radius: var(--radius-sm); padding: 16px; cursor: pointer; text-align: left; margin: 14px 0; }
.upload:hover { border-color: var(--brand); }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.dev { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
.dev .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.dev .grow { flex: 1; min-width: 0; }
.dev b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.empty { text-align: center; padding: 28px 16px; color: var(--muted); }
.empty .ic { width: 72px; height: 72px; border-radius: 24px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }

.stat2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.stat2 .card { padding: 16px; }
.stat2 b { font-size: 30px; display: block; line-height: 1.1; }

/* нижняя панель (мобильная версия) */
.tabbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; font-size: 12px; font-weight: 700; color: var(--muted) !important; text-decoration: none; border-radius: 12px; }
.tabbar a .icon { width: 24px; height: 24px; }
.tabbar a.on { color: var(--brand-soft-ink) !important; }
.tabbar a.on .icon { stroke-width: 2.4; }

/* шторка / модальное окно */
.sheet-bg { position: fixed; inset: 0; z-index: 50; background: rgba(5, 12, 8, .5); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.sheet { background: var(--surface); width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 26px 26px 0 0; padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); animation: up .25s ease-out; }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 4px auto 14px; }
.sheet h2 { font-size: 24px; }
.sheet ul { padding-left: 20px; }
.sheet li { margin-bottom: 8px; }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
@keyframes fade { from { opacity: 0; } }
.menu-list a, .menu-list button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 6px; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; font-weight: 600; color: var(--text) !important; text-decoration: none; cursor: pointer; text-align: left; }
.menu-list .icon { color: var(--muted); }

.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 12px 20px; border-radius: 16px; font-weight: 700; box-shadow: var(--shadow); animation: up .2s; width: max-content; max-width: calc(100vw - 32px); text-align: center; }
.terms-text { color: var(--text); }
.terms-text b { display: inline; }
.prose { max-width: 760px; }

/* ================= ПК-версия ================= */
@media (min-width: 700px) {
  .grid.c2 { grid-template-columns: 1fr 1fr; }
  .grid.c3 { grid-template-columns: repeat(3, 1fr); }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .stat2 { grid-template-columns: repeat(2, 1fr); }
  .auth { margin-top: 48px; }
  .sheet-bg { align-items: center; }
  .sheet { border-radius: 26px; padding: 14px 28px 28px; }
  .sheet .grab { display: none; }
  .ref-band { grid-template-columns: 1.4fr 1fr; padding: 40px; }
}
@media (min-width: 900px) {
  body { font-size: 17px; }
  .top nav { display: flex; }
  .top .wrap { height: 72px; }
  .hero { padding: 56px 0 72px; }
  .hero .wrap { grid-template-columns: 1.15fr .85fr; gap: 48px; }
  .grid.c4 { grid-template-columns: repeat(4, 1fr); }
  .video-box { grid-template-columns: 360px 1fr; gap: 56px; }
  .video-frame { width: 340px; }
  section.block { padding: 72px 0; }
  footer.foot { padding-bottom: 48px; }
  footer.foot .cols { grid-template-columns: 2fr 1fr 1fr; }
  .toast { bottom: 32px; }

  .app { display: grid; grid-template-columns: 260px 1fr; max-width: var(--max); margin: 0 auto; padding: 24px 16px 48px; gap: 32px; }
  .side { display: block; position: sticky; top: 96px; align-self: start; }
  .side a, .side button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 14px; border: 0; background: none; font: inherit; font-weight: 600; color: var(--muted) !important; text-decoration: none; cursor: pointer; margin-bottom: 2px; text-align: left; }
  .side a:hover, .side button:hover { background: var(--surface-2); color: var(--text) !important; }
  .side a.on { background: var(--surface); color: var(--text) !important; box-shadow: var(--shadow); }
  .side a.on .icon { color: var(--brand); }
  .side .who { padding: 14px; margin-bottom: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
  .side .who b { display: block; overflow: hidden; text-overflow: ellipsis; }
  .side hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
  .main { padding: 0; max-width: none; margin: 0; }
  .tabbar { display: none; }
  .plans { grid-template-columns: 1fr 1fr; }
  .pay-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: start; }
  .pay-grid .plans { grid-template-columns: 1fr; }
  .pay-grid > div:last-child { position: sticky; top: 96px; }
}
