/* LotAvto — стили сайта и кабинета. Без внешних шрифтов и библиотек. */
:root {
  --bg: #f5f6f2; --surface: #ffffff; --surface-2: #eef1eb; --text: #17201b; --muted: #5b6660; --line: #dce2db;
  --accent: #0f6b4f; --accent-h: #0b5740; --accent-ink: #ffffff; --accent-soft: #e1f0e8;
  --hot: #e0701f; --hot-soft: #fdeedf; --err: #b42318; --err-soft: #fde8e5; --info: #2f5d50; --info-soft: #e7efec;
  --code-bg: #0f1613; --code-text: #d6e5dc; --code-muted: #7f978a; --code-key: #8fd6b4; --code-str: #f3b27a;
  --radius: 12px; --radius-sm: 8px; --shadow: 0 1px 2px rgba(16, 24, 20, .05), 0 8px 24px rgba(16, 24, 20, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1311; --surface: #151c19; --surface-2: #1b2420; --text: #e5ece7; --muted: #98a59d; --line: #27322d;
    --accent: #3fbf8f; --accent-h: #57d1a3; --accent-ink: #05140e; --accent-soft: #163128;
    --hot: #f2954f; --hot-soft: #36230f; --err: #f87a6d; --err-soft: #3a1a17; --info: #9cc7b7; --info-soft: #1b2a25;
    --code-bg: #0a0f0d; --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-h); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4.2vw, 44px); letter-spacing: -.025em; }
h2 { font-size: clamp(23px, 3vw, 32px); letter-spacing: -.02em; }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
small, .muted { color: var(--muted); }
code, kbd, pre { font-family: var(--mono); font-size: .9em; }
:not(pre) > code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: .08em .35em; white-space: nowrap; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- шапка ---------- */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; color: var(--text); text-decoration: none; letter-spacing: -.02em; }
.logo:hover { color: var(--text); }
.logo svg { width: 28px; height: 28px; flex: none; }
.logo b { color: var(--accent); font-weight: 800; }
.top-nav { display: flex; gap: 4px; margin-right: auto; }
.top-nav a, .top-act a.link { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: 15px; }
.top-nav a:hover, .top-act a.link:hover, .top-nav a.on { color: var(--text); background: var(--surface-2); }
.top-act { display: flex; align-items: center; gap: 8px; }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; width: 40px; height: 38px; color: var(--text); cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; background: currentColor; margin: 4px auto; border-radius: 2px; }
@media (max-width: 860px) {
  .burger { display: block; }
  .top-nav, .top-act { display: none; }
  .top.open .top-in { flex-wrap: wrap; height: auto; padding-top: 11px; padding-bottom: 14px; }
  .top.open .top-nav, .top.open .top-act { display: flex; flex-direction: column; align-items: stretch; width: 100%; gap: 2px; }
  .top.open .top-act { flex-direction: row; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
  .top.open .top-nav a { padding: 10px 8px; font-size: 16px; }
}

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 18px; border-radius: 10px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: 600 15px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .05s; white-space: nowrap; }
.btn:hover { background: var(--accent-h); border-color: var(--accent-h); color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--line); color: var(--text); }
.btn-hot { background: var(--hot); border-color: var(--hot); color: #fff; }
.btn-hot:hover { background: color-mix(in srgb, var(--hot) 85%, #000); border-color: transparent; color: #fff; }
.btn-danger { background: transparent; color: var(--err); border-color: color-mix(in srgb, var(--err) 40%, transparent); }
.btn-danger:hover { background: var(--err-soft); color: var(--err); border-color: var(--err); }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 14px; border-radius: 8px; }
.btn-block { width: 100%; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- общие блоки ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head p { color: var(--muted); font-size: 17px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.section-alt .card { background: var(--bg); }
.grid { display: grid; gap: 16px; }
.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)); }
@media (max-width: 980px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .section { padding: 48px 0; } }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: var(--surface-2); color: var(--muted); white-space: nowrap; line-height: 1.6; }
.badge.ok { background: var(--accent-soft); color: var(--accent); }
.badge.warn { background: var(--hot-soft); color: var(--hot); }
.badge.err { background: var(--err-soft); color: var(--err); }
.badge.info { background: var(--info-soft); color: var(--info); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 56px; }
.hero-in > * { min-width: 0; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 18.5px; color: var(--muted); max-width: 560px; margin-bottom: 26px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; color: var(--muted); font-size: 14.5px; padding: 0; list-style: none; }
.hero-facts li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--hot); margin-right: 8px; vertical-align: 2px; }
@media (max-width: 920px) { .hero-in { grid-template-columns: minmax(0, 1fr); gap: 32px; } .hero { padding: 40px 0; } }

/* ---------- код ---------- */
.code { position: relative; background: var(--code-bg); border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--code-bg) 70%, var(--line)); margin: 0 0 1.2em; }
.code pre { margin: 0; padding: 18px 18px 18px; overflow-x: auto; color: var(--code-text); font-size: 13.5px; line-height: 1.6; tab-size: 4; }
.code pre[data-lang]::before { content: attr(data-lang); display: block; color: var(--code-muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.code-copy { position: absolute; top: 9px; right: 9px; background: rgba(255,255,255,.07); color: var(--code-muted); border: 1px solid rgba(255,255,255,.1); border-radius: 7px; font: 500 12px/1 var(--font); padding: 6px 9px; cursor: pointer; opacity: .85; }
.code-copy:hover { color: #fff; opacity: 1; }
.code .k { color: var(--code-key); } .code .s { color: var(--code-str); } .code .c { color: var(--code-muted); }
.term { box-shadow: var(--shadow); }
.term-bar { display: flex; gap: 6px; padding: 12px 14px 0; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2c3a33; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; }
.tabs button { background: none; border: 1px solid var(--line); color: var(--muted); padding: 6px 12px; border-radius: 8px; cursor: pointer; font: 500 14px var(--font); }
.tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.tab-panel[hidden] { display: none; }

/* ---------- базы ---------- */
.base-card { display: flex; flex-direction: column; gap: 10px; }
.base-card h3 { margin: 0; display: flex; align-items: center; gap: 10px; }
.base-card .flag { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 3px 7px; }
.base-card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.base-card .upd { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 14px; display: flex; justify-content: space-between; gap: 8px; }

/* ---------- шаги ---------- */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0; list-style: none; margin: 0; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 800; margin-bottom: 14px; }
.steps h3 { font-size: 17px; margin-bottom: 6px; }
.steps p { color: var(--muted); margin: 0; font-size: 15px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- цены ---------- */
.price-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.price-box > div { padding: 28px; }
.price-box .calc { background: var(--surface-2); border-left: 1px solid var(--line); }
.price-big { font-size: 42px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.price-big small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.checks { display: grid; gap: 8px; margin: 0 0 16px; }
.check { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; }
.check:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.check input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.check .sub { margin-left: auto; color: var(--muted); font-size: 13px; text-align: right; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); margin-bottom: 18px; }
.seg label { text-align: center; padding: 9px 6px; cursor: pointer; font-size: 14.5px; border-left: 1px solid var(--line); line-height: 1.25; }
.seg label:first-child { border-left: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--text); color: var(--bg); }
.seg label small { display: block; font-size: 12px; color: inherit; opacity: .75; }
.seg label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.total b { font-size: 30px; letter-spacing: -.02em; }
.total-note { color: var(--muted); font-size: 14px; margin-top: 4px; min-height: 1.5em; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 9px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
@media (max-width: 820px) { .price-box { grid-template-columns: 1fr; } .price-box .calc { border-left: 0; border-top: 1px solid var(--line); } .price-box > div { padding: 22px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 13px; font-size: 24px; font-weight: 400; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* ---------- формы ---------- */
.field { margin-bottom: 16px; }
.field > label, .label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
.field .hint { font-size: 13.5px; color: var(--muted); margin-top: 5px; }
.field .error, .form-error { font-size: 14px; color: var(--err); margin-top: 5px; }
.form-error { background: var(--err-soft); padding: 10px 12px; border-radius: 9px; margin: 0 0 16px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=search], select, textarea {
  width: 100%; font: 16px/1.4 var(--font); color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 44px; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 88px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.has-error input, .has-error textarea, .has-error select { border-color: var(--err); }
input.code-input { font: 600 26px/1 var(--mono); letter-spacing: .35em; text-align: center; padding: 12px; }
.inline-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.inline-check input { margin-top: 3px; accent-color: var(--accent); width: 17px; height: 17px; flex: none; }
.pw { position: relative; }
.pw input { padding-right: 84px; }
.pw button { position: absolute; right: 6px; top: 6px; bottom: 6px; border: 0; background: var(--surface-2); color: var(--muted); border-radius: 7px; padding: 0 10px; cursor: pointer; font: 500 13px var(--font); }
.lotavto-captcha:empty { display: none; }
.lotavto-captcha { margin: 0 0 14px; }

/* ---------- сообщения ---------- */
.flash { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 15px; border: 1px solid transparent; }
.flash.ok { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.flash.warn { background: var(--hot-soft); color: color-mix(in srgb, var(--hot) 80%, var(--text)); border-color: color-mix(in srgb, var(--hot) 25%, transparent); }
.flash.err { background: var(--err-soft); color: var(--err); border-color: color-mix(in srgb, var(--err) 25%, transparent); }
.note { background: var(--surface-2); border-left: 3px solid var(--hot); border-radius: 0 10px 10px 0; padding: 12px 14px; margin: 0 0 1.2em; font-size: 15px; }
.note.green { border-left-color: var(--accent); }

/* ---------- вход/регистрация ---------- */
.auth { display: grid; place-items: start center; padding: 48px 16px 64px; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 30px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 26px; margin-bottom: 6px; }
.auth-card .lead { color: var(--muted); margin-bottom: 22px; font-size: 15px; }
.auth-alt { margin-top: 18px; font-size: 14.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; }
@media (max-width: 420px) { .auth-card { padding: 22px 18px; border-radius: 14px; } .auth { padding-top: 24px; } }

/* ---------- кабинет ---------- */
.cab { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding-top: 28px; padding-bottom: 64px; }
.cab-nav { position: sticky; top: 80px; align-self: start; display: flex; flex-direction: column; gap: 2px; }
.cab-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 9px; color: var(--muted); text-decoration: none; font-weight: 500; }
.cab-nav a:hover { background: var(--surface-2); color: var(--text); }
.cab-nav a.on { background: var(--surface); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); border: 1px solid var(--line); }
.cab-nav .count { background: var(--hot); color: #fff; font-size: 12px; border-radius: 99px; padding: 0 7px; line-height: 1.6; }
.cab-nav form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.cab-nav form button { background: none; border: 0; color: var(--muted); padding: 9px 12px; cursor: pointer; font: 500 15px var(--font); }
.cab-body > h1 { font-size: 28px; margin-bottom: 20px; }
.cab-body section + section { margin-top: 28px; }
@media (max-width: 860px) {
  .cab { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 16px; }
  .cab-nav { position: static; flex-direction: row; overflow-x: auto; gap: 6px; margin: 0 -20px; padding: 0 20px 4px; scrollbar-width: none; }
  .cab-nav a { white-space: nowrap; border: 1px solid var(--line); background: var(--surface); padding: 7px 12px; font-size: 14.5px; }
  .cab-nav a.on { box-shadow: none; border-color: var(--accent); color: var(--accent); }
  .cab-nav form { margin: 0; padding: 0; border: 0; }
  .cab-nav form button { white-space: nowrap; padding: 8px 10px; font-size: 14.5px; }
}
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-h h2, .panel-h h3 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.panel-b { padding: 18px 20px; }
.panel + .panel { margin-top: 16px; }
.site-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) auto; gap: 16px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--line); }
.site-row:first-child { border-top: 0; }
.site-row .dom { font-weight: 700; font-size: 16.5px; word-break: break-all; }
.site-row .dom a { color: var(--text); text-decoration: none; }
.site-row .dom a:hover { color: var(--accent); }
.subs { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 760px) { .site-row { grid-template-columns: 1fr; gap: 10px; } }
.key-once { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.key-once .key { display: flex; gap: 8px; align-items: stretch; margin: 10px 0 6px; }
.key-once input { font: 600 15px var(--mono); background: var(--surface); }
.mono { font-family: var(--mono); font-size: .93em; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
@media (max-width: 520px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 8px; } }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.t th { text-align: left; font-weight: 600; color: var(--muted); font-size: 13px; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }
table.t td.num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.empty { text-align: center; color: var(--muted); padding: 34px 16px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat .v { font-size: 24px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .l { color: var(--muted); font-size: 13.5px; }
.meter { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.meter i.hot { background: var(--hot); }
.chart { width: 100%; height: auto; display: block; }
.chart .bar { fill: var(--accent); }
.chart .rej { fill: var(--hot); }
.chart .grid-l { stroke: var(--line); stroke-width: 1; }
.chart text { fill: var(--muted); font: 11px var(--font); }
.legend { display: flex; gap: 16px; font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--accent); }
.legend i.hot { background: var(--hot); }
.pay-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.pay-sum { position: sticky; top: 80px; }
@media (max-width: 900px) { .pay-grid { grid-template-columns: 1fr; } .pay-sum { position: static; } }
.qr-box { display: grid; place-items: center; background: #fff; border-radius: 12px; padding: 12px; width: 240px; max-width: 100%; aspect-ratio: 1; border: 1px solid var(--line); }
.qr-box svg { width: 100%; height: 100%; }
.invoice { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 820px) { .invoice { grid-template-columns: 1fr; } }
.notif { padding: 16px 20px; border-top: 1px solid var(--line); }
.notif:first-child { border-top: 0; }
.notif.unread { box-shadow: inset 3px 0 0 var(--hot); }
.notif h3 { font-size: 16px; margin: 0 0 4px; }
.notif time { color: var(--muted); font-size: 13px; }
.notif .body { margin-top: 6px; color: var(--text); font-size: 15px; white-space: pre-line; }
.copyline { display: flex; gap: 8px; }
.copyline input { font-family: var(--mono); font-size: 14px; }
.copyline .btn { flex: none; }
@media (max-width: 520px) { .copyline { flex-direction: column; } }

/* ---------- документация ---------- */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; padding-top: 28px; padding-bottom: 64px; }
.docs-nav { position: sticky; top: 76px; align-self: start; max-height: calc(100vh - 92px); overflow: auto; font-size: 14.5px; }
.docs-nav summary { display: none; }
.docs-nav h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 0 6px 10px; }
.docs-nav h4:first-of-type { margin-top: 0; }
.docs-nav a { display: block; padding: 6px 10px; border-radius: 7px; color: var(--text); text-decoration: none; }
.docs-nav a:hover { background: var(--surface-2); }
.docs-nav a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.docs-nav a code { background: none; border: 0; padding: 0; font-size: 13px; white-space: normal; }
.docs-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }
.docs-pager a { display: block; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--text); max-width: 48%; }
.docs-pager a:hover { border-color: var(--accent); }
.docs-pager small { display: block; color: var(--muted); }
.docs-pager .nx { margin-left: auto; text-align: right; }
@media (max-width: 900px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 16px; }
  .docs-nav { position: static; max-height: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 8px; }
  .docs-nav summary { display: block; cursor: pointer; padding: 10px 6px; font-weight: 600; }
  .docs-nav[open] { padding-bottom: 12px; }
}
.prose { max-width: 820px; min-width: 0; }
.prose h1 { font-size: clamp(26px, 3.4vw, 36px); }
.prose h2 { font-size: 23px; margin-top: 1.8em; }
.prose h3 { font-size: 18px; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose table.t { margin-bottom: 1.2em; }
.prose .table-wrap { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 1.2em; background: var(--surface); }
.prose .table-wrap table.t { margin: 0; }
.method { display: inline-flex; align-items: center; gap: 10px; font: 600 15px var(--mono); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-bottom: 16px; word-break: break-all; }
.method b { background: var(--accent); color: var(--accent-ink); border-radius: 6px; padding: 2px 7px; font-size: 12.5px; }
.legal .draft { background: var(--hot-soft); border: 1px dashed var(--hot); border-radius: 10px; padding: 12px 14px; margin-bottom: 20px; color: color-mix(in srgb, var(--hot) 70%, var(--text)); }

/* ---------- подвал ---------- */
.foot { border-top: 1px solid var(--line); padding: 36px 0 40px; color: var(--muted); font-size: 14.5px; background: var(--surface); }
.foot-in { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
.foot h4 { color: var(--text); font-size: 14px; margin-bottom: 10px; }
.foot a { color: var(--muted); text-decoration: none; display: block; padding: 3px 0; }
.foot a:hover { color: var(--text); }
.foot .logo { font-size: 17px; margin-bottom: 8px; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-in > :first-child { grid-column: 1 / -1; } }

.err-page { text-align: center; padding: 96px 20px; max-width: 560px; margin: 0 auto; }
.err-page .code-n { font: 800 64px/1 var(--font); color: var(--accent); letter-spacing: -.04em; margin-bottom: 12px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media (max-width: 520px) { .price-big { font-size: 34px; } .price-big small { display: block; margin-top: 4px; } .total b { font-size: 26px; } }
.cab > *, .docs > * { min-width: 0; }
