/* Сайт и сервис лицензий ReLabs. Тема тёмная всегда (как у центра отчётов), акцент — малиновый #d6246f.
   Шрифты Commissioner и IBM Plex Mono лежат рядом (OFL, fonts.css центра): страница не зависит от Google Fonts.
   Встроенных стилей и скриптов нет — их запрещает CSP. */

:root {
  --bg: #0a0c13;
  --bg-2: #0e1119;
  --surface: #131722;
  --surface-2: #181d2a;
  --surface-3: #202636;
  --line: #262c3d;
  --line-2: #323a50;
  --ink: #eceef5;
  --ink-2: #b4b9c9;
  --ink-3: #8a90a3;
  --accent: #d6246f;
  --accent-hi: #ff6aa6;
  --accent-deep: #a8154f;
  --accent-soft: rgba(214, 36, 111, .14);
  --ok: #5ee3a1;
  --ok-soft: rgba(94, 227, 161, .12);
  --warn: #f7c65f;
  --warn-soft: rgba(247, 198, 95, .12);
  --bad: #ff8590;
  --bad-soft: rgba(255, 133, 144, .12);
  --radius: 14px;
  --radius-sm: 9px;
  --sans: "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 20px 50px -30px rgba(0, 0, 0, .9);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: var(--bg); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(214, 36, 111, .10), transparent 60%),
    radial-gradient(50rem 26rem at -10% 0%, rgba(90, 110, 255, .08), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; font-weight: 750; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.18rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
small { font-size: .875em; }
b, strong { font-weight: 650; }

a { color: var(--accent-hi); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 2px;
}

code, kbd, .mono { font-family: var(--mono); font-size: .92em; }
code { background: var(--surface-3); border: 1px solid var(--line-2); border-radius: 5px; padding: .05em .35em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ---------- шапка ---------- */
.site-head {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 12, 19, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 750; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(155deg, #ff5d9b, var(--accent) 55%, var(--accent-deep));
  color: #fff; font-size: 14px; font-weight: 800; letter-spacing: -.02em;
}
.brand .name span { color: var(--accent-hi); }
.nav { display: flex; gap: 4px; align-items: center; flex: 1; }
.nav a { color: var(--ink-2); padding: 6px 10px; border-radius: 8px; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.head-actions { display: flex; gap: 8px; align-items: center; }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 8px; color: var(--ink-2); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .menu-panel { display: grid; }
.menu-panel {
  display: none; position: absolute; right: 20px; top: 60px; min-width: 240px; gap: 2px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow);
}
.menu-panel a { color: var(--ink); padding: 8px 12px; border-radius: 8px; }
.menu-panel a:hover { background: var(--surface-2); text-decoration: none; }

@media (max-width: 960px) {
  .nav, .head-actions .optional { display: none; }
  .menu { display: block; margin-left: auto; }
  .site-head .wrap { gap: 12px; }
}

.banner { background: var(--warn-soft); color: var(--warn); border-bottom: 1px solid rgba(247, 198, 95, .25); text-align: center; padding: 6px 20px; font-size: .9rem; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--ink); font: inherit; font-weight: 600; font-size: .95rem;
  cursor: pointer; white-space: nowrap; text-decoration: none; line-height: 1.3;
}
.btn:hover { background: var(--surface-3); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #e53a82; border-color: #e53a82; }
.btn.ghost { background: transparent; }
.btn.small { padding: 6px 12px; font-size: .875rem; border-radius: 8px; }
.btn.large { padding: 14px 24px; font-size: 1.02rem; border-radius: 12px; }
.btn.danger { color: var(--bad); border-color: rgba(255, 133, 144, .35); background: transparent; }
.btn.danger:hover { background: var(--bad-soft); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- блоки ---------- */
section.block { padding: 64px 0; }
section.block.tight { padding: 36px 0; }
.kicker { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; color: var(--accent-hi); margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 46rem; }
.muted { color: var(--ink-3); }
.soft { color: var(--ink-2); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card.flat { box-shadow: none; }
.card > :last-child { margin-bottom: 0; }
.card + p, .card + .muted, .table-wrap + p { margin-top: 12px; }
.card h3 { margin-bottom: .4em; }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid.three, .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; } }

.icon {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 14px;
  background: var(--accent-soft); color: var(--accent-hi); font-weight: 800; font-family: var(--mono);
}

/* ---------- первый экран ---------- */
.hero { padding: 84px 0 56px; }
.hero h1 { max-width: 15em; }
.hero .lead { margin-bottom: 28px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: var(--ink-3); font-size: .92rem; }
.facts span::before { content: "✓"; color: var(--ok); margin-right: 6px; font-weight: 700; }

.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 12px; align-items: stretch; margin-top: 8px; }
.flow .step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.flow .step.hub { border-color: rgba(214, 36, 111, .55); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 70%); }
.flow .step b { display: block; margin-bottom: 4px; }
.flow .step small { color: var(--ink-3); }
.flow .arrow { display: grid; place-items: center; color: var(--accent-hi); font-size: 1.4rem; }
@media (max-width: 760px) { .flow { grid-template-columns: 1fr; } .flow .arrow { transform: rotate(90deg); } }

.cta-band {
  border: 1px solid rgba(214, 36, 111, .45); border-radius: 18px; padding: 36px;
  background: linear-gradient(120deg, rgba(214, 36, 111, .16), rgba(90, 110, 255, .08));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.cta-band h2 { margin: 0; }

/* ---------- тарифы ---------- */
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .prices { grid-template-columns: 1fr; } }
.price-card { display: flex; flex-direction: column; gap: 10px; }
.price-card.featured { border-color: rgba(214, 36, 111, .6); }
.price-card .tag { align-self: flex-start; }
.price { font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.price small { font-size: .95rem; font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.price-card ul { margin: 4px 0 8px; padding-left: 18px; color: var(--ink-2); }
.price-card .btn { margin-top: auto; }

.tag, .badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px;
  font-size: .78rem; font-weight: 650; border: 1px solid var(--line-2); color: var(--ink-2); background: var(--surface-2);
  white-space: nowrap;
}
.tag.accent, .badge.accent { color: var(--accent-hi); border-color: rgba(214, 36, 111, .45); background: var(--accent-soft); }
.badge.ok { color: var(--ok); border-color: rgba(94, 227, 161, .35); background: var(--ok-soft); }
.badge.warn { color: var(--warn); border-color: rgba(247, 198, 95, .35); background: var(--warn-soft); }
.badge.bad { color: var(--bad); border-color: rgba(255, 133, 144, .35); background: var(--bad-soft); }
.new { font-size: .7rem; font-weight: 750; color: var(--accent-hi); border: 1px solid rgba(214, 36, 111, .5); border-radius: 6px; padding: 0 5px; margin-left: 6px; vertical-align: 1px; white-space: nowrap; }

/* ---------- таблицы ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 650; background: var(--bg-2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.yes { color: var(--ok); }
td.no { color: var(--ink-3); }
td.num, th.num { text-align: right; white-space: nowrap; }
.compare td:first-child { font-weight: 600; color: var(--ink); }
.compare td.us { background: rgba(214, 36, 111, .06); }
.nowrap { white-space: nowrap; }

dl.props { display: grid; grid-template-columns: minmax(140px, max-content) 1fr; gap: 8px 20px; margin: 0; }
dl.props dt { color: var(--ink-3); }
dl.props dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { dl.props { grid-template-columns: 1fr; } dl.props dd { margin-bottom: 8px; } }

/* ---------- формы ---------- */
form.stack { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, .label { font-weight: 600; font-size: .92rem; }
.field .hint { font-size: .85rem; color: var(--ink-3); }
.field .error { font-size: .88rem; color: var(--bad); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 10px 12px; min-height: 44px;
}
textarea { min-height: 90px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #6f7588; }
input.code { font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }
input[aria-invalid=true], select[aria-invalid=true] { border-color: rgba(255, 133, 144, .7); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; color: var(--ink-2); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.choices { display: grid; gap: 10px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { margin-top: 4px; accent-color: var(--accent); flex: none; }
.choice .what { display: grid; gap: 2px; flex: 1; }
.choice .what small { color: var(--ink-3); }
.choice .cost { font-weight: 750; white-space: nowrap; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 650; margin-bottom: 8px; padding: 0; }

.say { border-radius: 12px; padding: 14px 16px; margin: 0 0 18px; border: 1px solid var(--line-2); background: var(--surface-2); }
.say.ok { border-color: rgba(94, 227, 161, .35); background: var(--ok-soft); }
.say.warn { border-color: rgba(247, 198, 95, .35); background: var(--warn-soft); }
.say.bad { border-color: rgba(255, 133, 144, .4); background: var(--bad-soft); }
.say > :last-child { margin-bottom: 0; }
.say b.t { display: block; margin-bottom: 4px; }

/* ---------- ключ ---------- */
.key-box { display: grid; gap: 10px; margin-bottom: 16px; }
.key {
  font-family: var(--mono); font-size: .82rem; line-height: 1.5; color: var(--ink);
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px;
  overflow-wrap: anywhere; word-break: break-all; max-height: 14em; overflow: auto; user-select: all;
}
.code-text { font-family: var(--mono); letter-spacing: .04em; white-space: nowrap; }

/* ---------- страницы с текстом ---------- */
.prose { max-width: 820px; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.page-head { padding: 52px 0 20px; }
.page-head .lead { margin-bottom: 0; }
.toc-list { columns: 2; column-gap: 32px; padding-left: 20px; }
@media (max-width: 640px) { .toc-list { columns: 1; } }
.placeholder { background: var(--warn-soft); color: var(--warn); border-radius: 4px; padding: 0 4px; }

/* ---------- подвал ---------- */
.site-foot { border-top: 1px solid var(--line); margin-top: 64px; padding: 36px 0 28px; color: var(--ink-3); font-size: .9rem; background: var(--bg-2); }
.site-foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.site-foot h4 { color: var(--ink-2); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.site-foot a { color: var(--ink-2); }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-foot .legal { margin-top: 24px; font-size: .82rem; }
@media (max-width: 800px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } }

/* ---------- инструкция (руководство 1.3) ---------- */
.guide { max-width: 860px; }
.guide .toc ol { list-style: none; padding: 0; margin: 0; }
.guide .toc li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.guide .toc li.part { border: 0; padding-top: 18px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.guide .toc a { display: grid; grid-template-columns: 34px 1fr; color: var(--ink); }
.guide .toc a:hover { text-decoration: none; color: var(--accent-hi); }
.guide .toc .n { color: var(--accent-hi); font-weight: 750; }
.guide .toc small { display: block; color: var(--ink-3); }
.guide .toc .pg { display: none; }
.guide .chapter { padding-top: 40px; margin-top: 24px; border-top: 1px solid var(--line); }
.guide .ch-head { display: grid; grid-template-columns: 56px 1fr; align-items: end; margin-bottom: 18px; }
.guide .ch-head .num { font-size: 2.2rem; font-weight: 800; color: var(--accent-hi); line-height: 1; }
.guide .ch-head h2 { margin: 0; }
.guide .ch-head .sub { grid-column: 2; color: var(--ink-3); margin-top: 4px; }
.guide h3 { margin-top: 1.8em; }
.guide .part-tag { display: inline-block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-hi); font-weight: 700; margin-bottom: 4px; }
.guide .path { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.guide .path span { background: var(--surface-3); border: 1px solid var(--line-2); border-radius: 6px; padding: 0 6px; font-weight: 600; font-size: .92em; }
.guide .path span + span::before { content: "→ "; color: var(--accent-hi); }
.guide .btn { display: inline; padding: 1px 7px; font-size: .9em; border-radius: 6px; }
.guide ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 10px 0 18px; }
.guide ol.steps > li { counter-increment: s; position: relative; padding: 0 0 12px 40px; }
.guide ol.steps > li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-hi); font-weight: 750; font-size: .85rem; }
.guide .note { border-radius: 12px; padding: 14px 16px; margin: 14px 0 18px; border: 1px solid var(--line-2); background: var(--surface); }
.guide .note b.t { display: block; margin-bottom: 4px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.guide .note.tip { background: var(--ok-soft); border-color: rgba(94, 227, 161, .3); }
.guide .note.tip b.t { color: var(--ok); }
.guide .note.warn { background: var(--warn-soft); border-color: rgba(247, 198, 95, .3); }
.guide .note.warn b.t { color: var(--warn); }
.guide .note.bad { background: var(--bad-soft); border-color: rgba(255, 133, 144, .3); }
.guide .note.bad b.t { color: var(--bad); }
.guide .note.info b.t { color: var(--ink-2); }
.guide .note p:last-child { margin: 0; }
.guide table { margin: 10px 0 18px; border: 1px solid var(--line); border-radius: 10px; display: block; overflow-x: auto; background: var(--surface); }
.guide td:first-child { font-weight: 600; }
.guide table.plain td:first-child { font-weight: 400; }
.guide .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 12px 0 20px; }
@media (max-width: 700px) { .guide .two { grid-template-columns: 1fr; } }
.guide .card.a { border-top: 3px solid var(--ink-3); }
.guide .card.b { border-top: 3px solid var(--accent); }
.guide .flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; margin: 16px 0 20px; }
.guide .flow .box { flex: 1 1 160px; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; background: var(--surface); font-size: .92rem; }
.guide .flow .box b { display: block; }
.guide .flow .box small { color: var(--ink-3); }
.guide .flow .box.hub { border-color: rgba(214, 36, 111, .55); background: var(--accent-soft); }
.guide .flow .box.st { border-style: dashed; }
.guide .flow .arr { display: flex; flex-direction: column; justify-content: center; align-items: center; font-size: .8rem; color: var(--ink-3); padding: 0 4px; }
.guide .flow .arr i { font-style: normal; color: var(--accent-hi); font-size: 1.2rem; }
.guide .phones { display: grid; gap: 14px; margin: 12px 0 18px; }
.guide a.xref { font-weight: 600; text-decoration: underline dotted; text-underline-offset: 3px; }
.guide .small { font-size: .9rem; }
.guide .end { margin-top: 36px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .9rem; }

/* ---------- кабинет и учёт ---------- */
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; margin: 36px 0 20px; }
.panel-head h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat .v { font-size: 1.9rem; font-weight: 800; line-height: 1.1; }
.stat .l { color: var(--ink-3); font-size: .88rem; }
.stat.alert { border-color: rgba(247, 198, 95, .5); }
.stat.alert .v { color: var(--warn); }
a.stat { color: var(--ink); }
a.stat:hover { text-decoration: none; border-color: var(--line-2); }

.admin-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 100vh;
  background: linear-gradient(90deg, var(--bg-2) 230px, var(--line) 230px, var(--line) 231px, transparent 231px); }
.admin-side { border-right: 1px solid var(--line); background: var(--bg-2); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .brand { padding: 4px 8px 18px; }
.admin-side nav { display: grid; gap: 2px; }
.admin-side nav a { color: var(--ink-2); padding: 8px 12px; border-radius: 8px; font-size: .93rem; display: flex; justify-content: space-between; gap: 8px; }
.admin-side nav a:hover, .admin-side nav a[aria-current="page"] { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.admin-side nav .sep { height: 1px; background: var(--line); margin: 10px 8px; }
.admin-side .who { margin-top: 18px; padding: 12px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .86rem; }
.admin-main { padding: 0 28px 48px; min-width: 0; }
.devbar { background: var(--warn-soft); color: var(--warn); padding: 8px 14px; border-radius: 10px; margin-top: 16px; }
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; background: none; }
  .admin-side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-side nav { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .admin-main { padding: 0 16px 40px; }
}
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 16px; }
.toolbar .field { min-width: 180px; }
.toolbar .grow { flex: 1; min-width: 240px; }
.inline-form { display: inline; }
details.action { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 12px; }
details.action > summary { cursor: pointer; padding: 14px 18px; font-weight: 650; list-style: none; }
details.action > summary::-webkit-details-marker { display: none; }
details.action > summary::after { content: "＋"; float: right; color: var(--ink-3); }
details.action[open] > summary::after { content: "－"; }
details.action > div { padding: 0 18px 18px; }
.section-title { margin: 32px 0 12px; font-size: 1.15rem; }

/* ---------- счёт: лист для печати ---------- */
.sheet { background: #fff; color: #111; border-radius: 6px; padding: 40px 44px; max-width: 860px; margin: 24px auto; font-size: 14px; line-height: 1.45; }
.sheet h1 { font-size: 22px; color: #111; margin: 18px 0 14px; }
.sheet table { font-size: 13px; color: #111; }
.sheet th, .sheet td { border: 1px solid #222; padding: 6px 8px; background: #fff; color: #111; text-transform: none; letter-spacing: 0; font-size: 13px; }
.sheet th { font-weight: 700; }
.sheet tr:last-child td { border-bottom: 1px solid #222; }
.sheet .bank td { vertical-align: top; }
.sheet .sum { text-align: right; margin-top: 10px; }
.sheet .sign { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 36px; }
.sheet .sign div { border-top: 1px solid #111; padding-top: 4px; font-size: 12px; }
.sheet .stub { background: #fff3c4; padding: 0 3px; }
.sheet .note { font-size: 12px; color: #444; margin-top: 18px; }
.no-print { }

@media print {
  html, body { background: #fff !important; color: #000; }
  .site-head, .site-foot, .no-print, .banner { display: none !important; }
  .sheet { margin: 0; padding: 0; max-width: none; border-radius: 0; }
}

a.choice { color: var(--ink); }
a.choice:hover { text-decoration: none; border-color: var(--line-2); background: var(--surface-2); }
a.choice[aria-current="true"] { border-color: var(--accent); background: var(--accent-soft); }
