:root { --radius:14px; --radius-sm:9px; font-synthesis:none; }
[data-theme=dark] { --bg:#0b0b0c; --surface:#141416; --surface2:#1b1b1e; --line:#26262a; --text:#f4f3f0; --muted:#94928c; --accent:#c9a876; --on:#17120a; --good:#5cb79f; --warn:#d9a441; --bad:#e0736d; --logo:#d9733a; --grid:#232327; --shadow:0 18px 50px rgba(0,0,0,.5); }
[data-theme=light] { --bg:#f6f4f0; --surface:#fff; --surface2:#f1eee8; --line:#e4e0d8; --text:#1b1a18; --muted:#6d6a64; --accent:#94703a; --on:#fff; --good:#1f7a64; --warn:#94670e; --bad:#b83f39; --logo:#c8622f; --grid:#eae6de; --shadow:0 18px 50px rgba(60,50,30,.14); }
* { box-sizing:border-box; }
html,body { margin:0; }
body { background:var(--bg); color:var(--text); font:14.5px/1.5 Inter,-apple-system,"Segoe UI",Roboto,sans-serif; -webkit-font-smoothing:antialiased; }
h1 { font-size:26px; line-height:1.2; letter-spacing:-.02em; margin:0; font-weight:600; }
h2 { font-size:15px; font-weight:600; margin:0; }
h3 { font-size:14px; font-weight:600; margin:0; }
p { margin:0; }
a { color:var(--accent); text-decoration:none; } a:hover { text-decoration:underline; }
.hidden { display:none !important; }
.muted { color:var(--muted); } .small { font-size:12.5px; } .num { font-variant-numeric:tabular-nums; } .mono { font-family:ui-monospace,Menlo,Consolas,monospace; font-size:12.5px; word-break:break-all; }
.error { color:var(--bad); min-height:20px; font-size:13px; }
svg.i { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.brand { font-size:24px; font-weight:650; letter-spacing:-.04em; color:var(--logo); display:flex; align-items:baseline; gap:8px; }
.brand-sub { font-size:12px; letter-spacing:0; font-weight:500; color:var(--muted); }
.brand-lg { font-size:38px; }
/* Вход */
.login { min-height:100vh; display:grid; place-items:center; padding:20px; }
.login-card { width:100%; max-width:360px; display:grid; gap:14px; }
.login-card h1 { font-size:20px; }
.login-card form { display:grid; gap:10px; }
.code { text-align:center; font-size:26px; letter-spacing:.28em; font-variant-numeric:tabular-nums; }
/* Каркас */
.shell { display:grid; grid-template-columns:232px minmax(0,1fr); min-height:100vh; }
aside { position:sticky; top:0; height:100vh; display:flex; flex-direction:column; gap:22px; padding:20px 12px; border-right:1px solid var(--line); background:var(--bg); z-index:30; }
aside .brand { padding:0 10px; }
#nav-items { display:grid; gap:2px; flex:1; align-content:start; overflow:auto; }
.nav-link, .nav-btn { display:flex; align-items:center; gap:11px; width:100%; padding:9px 10px; border:0; border-radius:var(--radius-sm); background:none; color:var(--muted); font:inherit; cursor:pointer; text-align:left; text-decoration:none; }
.nav-link:hover, .nav-btn:hover { background:var(--surface); color:var(--text); text-decoration:none; }
.nav-link.active { background:var(--surface2); color:var(--text); }
.nav-link.active svg { color:var(--accent); }
.nav-badge { margin-left:auto; min-width:20px; padding:0 6px; border-radius:10px; background:var(--bad); color:#fff; font-size:11.5px; line-height:20px; text-align:center; }
.nav-foot { display:grid; gap:2px; }
.topbar { display:none; }
.content { min-width:0; }
main { max-width:1180px; margin:0 auto; padding:30px 32px 80px; display:grid; gap:18px; }
.page-head { display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:12px; margin-bottom:4px; }
.page-head p { margin-top:4px; color:var(--muted); }
.row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.between { justify-content:space-between; }
.stack { display:grid; gap:12px; }
.grid { display:grid; gap:14px; }
.g2 { grid-template-columns:repeat(2,minmax(0,1fr)); } .g3 { grid-template-columns:repeat(3,minmax(0,1fr)); } .g4 { grid-template-columns:repeat(4,minmax(0,1fr)); }
.card { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:18px; min-width:0; }
.card-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; }
/* Показатели */
.stat { display:grid; gap:4px; text-decoration:none; color:inherit; }
a.stat:hover { border-color:var(--accent); text-decoration:none; }
.stat-label { color:var(--muted); font-size:13px; }
.stat-value { font-size:30px; line-height:1.15; font-weight:600; letter-spacing:-.025em; font-variant-numeric:tabular-nums; }
.stat-note { color:var(--muted); font-size:12.5px; }
/* Кнопки и поля */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:7px; padding:8px 14px; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--surface2); color:var(--text); font:inherit; font-weight:500; cursor:pointer; text-decoration:none; }
.btn:hover { border-color:var(--muted); text-decoration:none; }
.btn:disabled { opacity:.5; cursor:default; }
.btn.primary { background:var(--accent); border-color:var(--accent); color:var(--on); }
.btn.danger { color:var(--bad); }
.btn.small { padding:4px 10px; font-size:13px; }
.btn.wide { width:100%; }
.icon-btn { display:inline-grid; place-items:center; width:36px; height:36px; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--surface); color:var(--text); cursor:pointer; }
input,textarea,select { width:100%; padding:9px 11px; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--bg); color:var(--text); font:inherit; }
input[type=checkbox],input[type=radio] { width:auto; accent-color:var(--accent); }
input[type=range] { padding:0; accent-color:var(--accent); }
textarea { resize:vertical; min-height:84px; }
:is(input,textarea,select,button,a):focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
label.field { display:grid; gap:5px; font-size:13px; color:var(--muted); }
label.field small { font-size:12px; }
.check { display:inline-flex; align-items:center; gap:7px; color:var(--text); cursor:pointer; }
.seg { display:inline-flex; padding:3px; gap:2px; background:var(--surface2); border-radius:var(--radius-sm); flex-wrap:wrap; }
.seg button { padding:5px 11px; border:0; border-radius:7px; background:none; color:var(--muted); font:inherit; font-size:13px; cursor:pointer; }
.seg button.on { background:var(--surface); color:var(--text); box-shadow:0 0 0 1px var(--line); }
/* Таблицы */
.table-wrap { overflow-x:auto; margin:0 -18px -6px; padding:0 18px; }
table { width:100%; border-collapse:collapse; font-size:13.5px; }
th { text-align:left; font-weight:500; color:var(--muted); font-size:12.5px; padding:6px 10px 8px 0; white-space:nowrap; border-bottom:1px solid var(--line); }
td { padding:9px 10px 9px 0; border-bottom:1px solid var(--line); vertical-align:middle; }
tr:last-child td { border-bottom:0; }
td.r,th.r { text-align:right; padding-right:0; }
tr.click { cursor:pointer; } tr.click:hover td { background:var(--surface2); }
/* Состояния: значок и подпись, не только цвет */
.pill { display:inline-flex; align-items:center; gap:5px; font-size:12.5px; padding:1px 9px 1px 7px; border-radius:20px; background:var(--surface2); white-space:nowrap; }
.pill svg.i { width:13px; height:13px; stroke-width:2.2; }
.pill.good svg { color:var(--good); } .pill.warn svg { color:var(--warn); } .pill.bad svg { color:var(--bad); }
.alert { display:flex; align-items:center; gap:10px; padding:11px 14px; border:1px solid var(--bad); border-radius:var(--radius); background:var(--surface); }
.alert svg { color:var(--bad); }
.notice { display:flex; gap:10px; padding:11px 14px; border-radius:var(--radius-sm); background:var(--surface2); color:var(--muted); font-size:13px; }
.notice svg { color:var(--accent); margin-top:1px; }
.empty { padding:26px 10px; text-align:center; color:var(--muted); }
/* Графики: тонкие метки, одна серия, подпись на наведении */
.chart { position:relative; }
.chart svg { display:block; width:100%; height:auto; overflow:visible; }
.chart .gl { stroke:var(--grid); stroke-width:1; }
.chart .tick { fill:var(--muted); font-size:11px; font-variant-numeric:tabular-nums; }
.chart .bar { fill:var(--accent); }
.chart .hit { fill:transparent; }
.chart .hit:hover + .bar, .chart .bar.hl { opacity:.72; }
.chart .ln { fill:none; stroke:var(--accent); stroke-width:2; stroke-linejoin:round; stroke-linecap:round; }
.chart .ar { fill:var(--accent); opacity:.1; }
.chart .dot { fill:var(--accent); stroke:var(--surface); stroke-width:2; }
.chart .cross { stroke:var(--muted); stroke-width:1; stroke-dasharray:3 3; }
.tip { position:absolute; pointer-events:none; padding:5px 9px; border:1px solid var(--line); border-radius:8px; background:var(--surface2); box-shadow:var(--shadow); font-size:12.5px; white-space:nowrap; transform:translate(-50%,-110%); z-index:5; }
.tip b { font-weight:600; }
.hbars { display:grid; gap:9px; }
.hbar { display:grid; grid-template-columns:minmax(70px,34%) 1fr auto; align-items:center; gap:10px; font-size:13.5px; }
.hbar-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hbar-track { height:8px; border-radius:4px; background:var(--surface2); overflow:hidden; }
.hbar-fill { display:block; height:100%; border-radius:4px; background:var(--accent); }
.hbar-val { font-variant-numeric:tabular-nums; color:var(--muted); min-width:36px; text-align:right; }
.link-btn { border:0; padding:0; background:none; color:var(--muted); font:inherit; font-size:12.5px; cursor:pointer; } .link-btn:hover { color:var(--text); }
/* Чек-лист */
.steps { display:grid; }
.step { display:flex; align-items:center; gap:10px; padding:9px 0; border-bottom:1px solid var(--line); }
.step:last-child { border-bottom:0; }
.step.done .step-text { color:var(--muted); text-decoration:line-through; }
.step-text { flex:1; min-width:0; }
.progress { height:6px; border-radius:3px; background:var(--surface2); overflow:hidden; }
.progress span { display:block; height:100%; border-radius:3px; background:var(--accent); }
/* Выпуски */
.platform { display:grid; gap:10px; }
.version { font-size:24px; font-weight:600; letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.drop { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:10px 0; border-bottom:1px solid var(--line); }
.drop:last-child { border-bottom:0; }
.drop-title { flex:1; min-width:180px; }
/* Предпросмотр как в приложении */
.phone { max-width:330px; padding:14px; border:1px solid var(--line); border-radius:22px; background:#0b0b0c; color:#f4f3f0; display:grid; gap:10px; }
.phone-logo { justify-self:center; font-weight:650; font-size:18px; letter-spacing:-.04em; }
.phone-card { display:flex; gap:10px; align-items:center; padding:11px; border:1px solid #2a2a2e; border-radius:12px; background:#141416; font-size:13px; word-break:break-word; }
.phone-card svg { color:#8f8d88; } .phone-card.warn svg { color:#e0736d; }
.phone-ghost { height:42px; border-radius:12px; background:#141416; opacity:.55; }
/* Окна */
.modal-wrap { position:fixed; inset:0; display:grid; place-items:center; padding:16px; background:rgba(0,0,0,.55); z-index:60; }
.modal { width:100%; max-width:440px; max-height:90vh; overflow:auto; display:grid; gap:14px; padding:22px; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); box-shadow:var(--shadow); }
.modal.wide { max-width:640px; }
.modal h2 { font-size:17px; }
.toasts { position:fixed; right:18px; bottom:18px; display:grid; gap:8px; z-index:70; }
.toast { display:flex; gap:8px; align-items:center; max-width:360px; padding:10px 14px; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--surface2); box-shadow:var(--shadow); }
.toast.bad svg { color:var(--bad); } .toast.good svg { color:var(--good); }
.skeleton { height:110px; border-radius:var(--radius); background:var(--surface); animation:pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity:.5; } }
@media (prefers-reduced-motion:reduce) { .skeleton { animation:none; } }
.kv { display:grid; grid-template-columns:auto 1fr; gap:7px 16px; font-size:13.5px; }
.kv dt { color:var(--muted); } .kv dd { margin:0; min-width:0; word-break:break-word; }
.scrim { position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:25; }
@media (max-width:980px) { .g4 { grid-template-columns:repeat(2,minmax(0,1fr)); } .g3,.g2 { grid-template-columns:minmax(0,1fr); } }
@media (max-width:760px) {
  .shell { grid-template-columns:minmax(0,1fr); }
  aside { position:fixed; left:0; width:252px; transform:translateX(-100%); transition:transform .18s; }
  aside.open { transform:none; box-shadow:var(--shadow); }
  .topbar { display:flex; align-items:center; gap:12px; position:sticky; top:0; padding:10px 14px; background:var(--bg); border-bottom:1px solid var(--line); z-index:20; }
  main { padding:18px 14px 70px; }
  h1 { font-size:22px; }
  .card { padding:15px; }
  .table-wrap { margin:0 -15px -6px; padding:0 15px; }
  .stat-value { font-size:25px; }
  .hide-m { display:none; }
}

/* ---------- Новый вид: те же компоненты, больше воздуха и глубины ---------- */
[data-theme=dark] { --bg:#09090a; --surface:#121214; --surface2:#1a1a1d; --line:#222225; --muted:#8f8d87; --glow:rgba(201,168,118,.13); }
[data-theme=light] { --bg:#f7f6f3; --surface:#fff; --surface2:#f1efe9; --line:#e6e3dc; --glow:rgba(148,112,58,.1); }
:root { --radius:18px; --radius-sm:11px; --ease:cubic-bezier(.16,1,.3,1); }
body { background:radial-gradient(900px 500px at 88% -10%,var(--glow),transparent 70%) fixed,var(--bg); font-feature-settings:"cv11","ss01"; }
h1 { font-size:30px; font-weight:650; letter-spacing:-.03em; }
h2 { font-size:14.5px; font-weight:600; letter-spacing:-.005em; }
aside { background:color-mix(in srgb,var(--bg) 70%,transparent); backdrop-filter:blur(18px) saturate(1.4); padding:22px 12px; }
.nav-link,.nav-btn { padding:8px 11px; font-size:14px; transition:background .15s,color .15s; }
.nav-link.active { background:color-mix(in srgb,var(--accent) 14%,transparent); color:var(--text); font-weight:550; }
.nav-link svg { transition:color .15s; }
main { padding:36px 36px 90px; gap:16px; animation:page .5s var(--ease); }
@keyframes page { from { opacity:0; transform:translateY(8px); } }
.page-head { margin-bottom:10px; } .page-head p { font-size:14.5px; }
.card { background:linear-gradient(180deg,color-mix(in srgb,var(--surface) 92%,#fff 8%),var(--surface) 90px); border-color:var(--line); padding:20px; transition:border-color .2s,transform .3s var(--ease); }
[data-theme=light] .card { background:var(--surface); box-shadow:0 1px 2px rgba(0,0,0,.03); }
a.stat:hover { transform:translateY(-1px); border-color:color-mix(in srgb,var(--accent) 60%,transparent); }
.stat-value { font-size:34px; font-weight:640; letter-spacing:-.035em; margin-top:2px; }
.btn { border-radius:10px; font-weight:550; transition:transform .2s var(--ease),border-color .15s,background .15s,filter .15s; }
.btn:active { transform:scale(.98); }
.btn.primary { background:linear-gradient(180deg,#dcc192,#c4a06a); border-color:transparent; box-shadow:0 6px 22px -10px rgba(201,168,118,.7),inset 0 1px 0 rgba(255,255,255,.35); }
.btn.primary:hover { filter:brightness(1.05); }
[data-theme=light] .btn.primary { background:var(--accent); box-shadow:none; }
input,textarea,select { border-radius:10px; transition:border-color .15s,box-shadow .15s; }
input:focus,textarea:focus,select:focus { outline:0; border-color:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 18%,transparent); }
.seg { background:color-mix(in srgb,var(--surface2) 70%,transparent); border-radius:12px; } .seg button { border-radius:9px; transition:.15s; }
th { font-weight:550; }
td { transition:background .12s; } tr.click:hover td { background:color-mix(in srgb,var(--accent) 6%,transparent); }
.notice { background:color-mix(in srgb,var(--accent) 7%,transparent); border:1px solid color-mix(in srgb,var(--accent) 18%,transparent); border-radius:12px; color:var(--text); }
.modal-wrap { backdrop-filter:blur(6px); animation:fadein .15s; } @keyframes fadein { from { opacity:0; } }
.modal { border-radius:22px; animation:modal .3s var(--ease); box-shadow:0 40px 100px rgba(0,0,0,.55); padding:26px; } @keyframes modal { from { opacity:0; transform:translateY(10px) scale(.985); } }
.toast { border-radius:12px; animation:modal .3s var(--ease); }
.pill { font-weight:500; }
.login { background:radial-gradient(600px 400px at 50% 30%,var(--glow),transparent 70%); }
.login-card { max-width:380px; padding:32px; border:1px solid var(--line); border-radius:24px; background:color-mix(in srgb,var(--surface) 75%,transparent); backdrop-filter:blur(16px); animation:modal .5s var(--ease); }
.brand-lg { font-size:44px; }
/* Провайдеры */
.tabs { display:flex; gap:4px; border-bottom:1px solid var(--line); margin-top:6px; overflow-x:auto; }
.tabs button { padding:10px 13px; border:0; border-bottom:2px solid transparent; background:none; color:var(--muted); font:inherit; font-size:14px; font-weight:520; cursor:pointer; white-space:nowrap; margin-bottom:-1px; transition:color .15s; }
.tabs button:hover { color:var(--text); } .tabs button.on { color:var(--text); border-bottom-color:var(--accent); }
.tabs .count { display:inline-block; min-width:18px; margin-left:6px; padding:0 5px; border-radius:9px; background:var(--bad); color:#fff; font-size:11px; line-height:18px; text-align:center; }
.usage { display:grid; gap:4px; min-width:130px; } .usage .progress span.warn { background:var(--warn); } .usage .progress span.bad { background:var(--bad); }
.wiz-steps { display:flex; gap:6px; } .wiz-steps i { height:4px; flex:1; border-radius:3px; background:var(--surface2); transition:background .3s; } .wiz-steps i.on { background:var(--accent); }
.big-num { font-size:44px; font-weight:650; letter-spacing:-.04em; line-height:1.1; font-variant-numeric:tabular-nums; }
.review { display:grid; grid-template-columns:auto 1fr; gap:9px 18px; padding:14px 16px; border:1px solid var(--line); border-radius:14px; font-size:14px; } .review dt { color:var(--muted); } .review dd { margin:0; word-break:break-word; text-align:right; font-weight:550; }
.codeblock { padding:12px 14px; border:1px solid var(--line); border-radius:12px; background:var(--bg); font:13px/1.6 ui-monospace,Menlo,Consolas,monospace; white-space:pre-wrap; word-break:break-all; }
.msg { padding:14px; border:1px solid var(--line); border-radius:14px; display:grid; gap:6px; }
@media (max-width:760px) { main { padding:18px 14px 70px; } }
@media (prefers-reduced-motion:reduce) { main,.modal,.modal-wrap,.toast,.login-card { animation:none; } }
.row.right { justify-content:flex-end; } .mt { margin-top:14px; } .mb { margin-bottom:12px; }
.ad-mini { width:34px; height:34px; flex:none; border-radius:10px; background:var(--surface2) center/cover; display:inline-grid; place-items:center; font-weight:700; color:var(--accent,#c9a876); }
/* Функции: карточки с переключателем */
.feat-sum { display:flex; align-items:center; gap:12px; margin:-6px 0 16px; }
.feat-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:12px; }
.feat { display:flex; flex-direction:column; gap:8px; padding:14px 16px; border:1px solid var(--line); border-radius:14px; cursor:pointer; transition:border-color .2s, background .2s; }
.feat.on { border-color:color-mix(in srgb, var(--good, #10b981) 45%, transparent); background:color-mix(in srgb, var(--good, #10b981) 7%, transparent); }
.feat-top { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.feat p { margin:0; font-size:13px; color:var(--muted, #8a877f); line-height:1.45; }
.feat-foot { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:auto; }
.feat-state { font-size:12px; font-weight:650; letter-spacing:.04em; text-transform:uppercase; color:var(--muted, #8a877f); }
.feat.on .feat-state { color:var(--good, #10b981); }
.feat code { font-size:11.5px; opacity:.7; }
.feat-sw { position:relative; flex:none; width:40px; height:24px; }
.feat-sw input { position:absolute; inset:0; opacity:0; margin:0; cursor:pointer; }
.feat-sw i { position:absolute; inset:0; border-radius:12px; background:var(--line); transition:background .2s; pointer-events:none; }
.feat-sw i::after { content:""; position:absolute; top:3px; left:3px; width:18px; height:18px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.3); transition:transform .25s cubic-bezier(.16,1,.3,1); }
.feat-sw input:checked + i { background:var(--good, #10b981); }
.feat-sw input:checked + i::after { transform:translateX(16px); }
.price-prev { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.price-prev > div { padding:14px 16px; border:1px solid var(--line); border-radius:14px; display:flex; flex-direction:column; gap:4px; }
.price-prev small { color:var(--muted, #8a877f); font-size:12.5px; } .price-prev b { font-size:22px; font-variant-numeric:tabular-nums; letter-spacing:-.02em; }
/* Новый год */
.season-link { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 14px; border:1px solid var(--line); border-radius:12px; }
.season-link code { display:block; margin:3px 0; font-size:12.5px; word-break:break-all; }
.season-steps { margin:0; padding-left:20px; line-height:1.6; font-size:14px; }
.season-preview { display:flex; flex-wrap:wrap; align-items:flex-end; gap:22px; }
.season-preview figure { margin:0; text-align:center; }
.season-preview img { display:block; border-radius:18px; border:1px solid var(--line); }
.season-preview figcaption { margin-top:8px; font-size:12px; color:var(--muted, #8a877f); }
