/* Радар закупок — интерфейс.
   Палитра: бумага госбланка, чернила, синяя печать; зелёный/янтарь/кирпич — уровни конкуренции. */
:root {
  --paper: #eef1f0;
  --sheet: #ffffff;
  --ink: #1c2830;
  --ink-2: #55636c;
  --ink-3: #8a979e;
  --line: #d6dddb;
  --line-2: #e7ecea;
  --stamp: #2c4c9c;
  --stamp-ink: #ffffff;
  --stamp-weak: #e5ebf7;
  --low: #2e8a57;
  --low-weak: #e0f1e7;
  --mid: #b97d12;
  --mid-weak: #f8edd5;
  --high: #b3433a;
  --high-weak: #f7e1de;
  --focus: #2c4c9c;
  --radius: 4px;
  --font: "Golos Text", "PT Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141a1e; --sheet: #1b2328; --ink: #e3e9ec; --ink-2: #a8b4ba; --ink-3: #74828a;
    --line: #2e3a41; --line-2: #263137; --stamp: #7f9ee6; --stamp-ink: #0e1420; --stamp-weak: #22304d;
    --low: #5cc08a; --low-weak: #193326; --mid: #e0a93f; --mid-weak: #3a2e14; --high: #e47c71; --high-weak: #3d2220;
    --focus: #9db5ff;
  }
}
:root[data-theme="dark"] {
  --paper: #141a1e; --sheet: #1b2328; --ink: #e3e9ec; --ink-2: #a8b4ba; --ink-3: #74828a;
  --line: #2e3a41; --line-2: #263137; --stamp: #7f9ee6; --stamp-ink: #0e1420; --stamp-weak: #22304d;
  --low: #5cc08a; --low-weak: #193326; --mid: #e0a93f; --mid-weak: #3a2e14; --high: #e47c71; --high-weak: #3d2220;
  --focus: #9db5ff;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.45 var(--font);
  font-variant-numeric: tabular-nums;
}
a { color: var(--stamp); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.01em; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.nowrap { white-space: nowrap; }
.num { text-align: right; white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- шапка */
.top {
  position: sticky; top: 0; z-index: 20; background: var(--sheet); border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 28px; padding: 0 24px; height: 56px; max-width: 1600px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; white-space: nowrap; }
.brand svg { flex: none; }
.tabs { display: flex; gap: 4px; height: 100%; }
.tab {
  border: 0; background: none; padding: 0 14px; height: 100%; cursor: pointer; color: var(--ink-2); white-space: nowrap;
  border-bottom: 3px solid transparent; font-weight: 500;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--stamp); }
.tab .count { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: var(--stamp); color: var(--stamp-ink); font-size: 12px; line-height: 18px; }
.health { margin-left: auto; display: flex; gap: 18px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.health b { color: var(--ink); font-weight: 600; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: var(--ink-3); }
.dot.ok { background: var(--low); } .dot.warn { background: var(--mid); } .dot.bad { background: var(--high); }

main { max-width: 1600px; margin: 0 auto; padding: 20px 24px 60px; }
.view[hidden] { display: none; }

/* ---------- поиск: панель фильтров + результаты */
.search-grid { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 20px; align-items: start; }
.filters {
  background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto;
}
.field { margin-bottom: 16px; }
.field > label, .field > .label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--ink-2); margin-top: 5px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.row2 > * { min-width: 0; }
input[type=date] { padding: 7px 6px; font-size: 14px; }
.field > label.check { display: inline-flex; font-weight: 400; font-size: 14px; margin-bottom: 0; }
input[type=text], input[type=date], input[type=number], input[type=password], select, textarea {
  width: 100%; border: 1px solid var(--line); background: var(--sheet); border-radius: var(--radius);
  padding: 7px 9px; min-height: 36px;
}
textarea { min-height: 120px; resize: vertical; font-size: 13px; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
.checks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--stamp); margin: 0; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 8px; }
.seg button { border: 0; background: var(--sheet); padding: 5px 10px; cursor: pointer; font-size: 13px; color: var(--ink-2); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--stamp-weak); color: var(--ink); font-weight: 600; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.quick button { border: 1px dashed var(--line); background: none; border-radius: var(--radius); padding: 2px 8px; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.quick button:hover { border-color: var(--stamp); color: var(--stamp); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line);
  background: var(--sheet); color: var(--ink); border-radius: var(--radius); padding: 7px 14px; min-height: 36px;
  cursor: pointer; font-weight: 500; white-space: nowrap;
}
.btn:hover { border-color: var(--ink-3); }
.btn.primary { background: var(--stamp); border-color: var(--stamp); color: var(--stamp-ink); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--high); }
.btn.wide { width: 100%; min-height: 42px; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.small { min-height: 30px; padding: 4px 10px; font-size: 13px; }

/* выбор регионов */
.regions { position: relative; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; min-height: 40px; border: 1px solid var(--line); border-radius: var(--radius); cursor: text; background: var(--sheet); }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--stamp-weak); border-radius: 3px; padding: 2px 4px 2px 8px; font-size: 13px; }
.chip button { border: 0; background: none; cursor: pointer; color: var(--ink-2); padding: 0 3px; font-size: 15px; line-height: 1; }
.chips input { border: 0; outline: 0; flex: 1; min-width: 80px; padding: 2px; min-height: 26px; background: none; }
.dropdown {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; background: var(--sheet);
  border: 1px solid var(--line); border-radius: var(--radius); max-height: 280px; overflow: auto;
  box-shadow: 0 8px 24px rgba(20, 30, 40, .14);
}
.dropdown .opt { display: flex; gap: 8px; align-items: center; padding: 6px 10px; cursor: pointer; font-size: 14px; }
.dropdown .opt:hover, .dropdown .opt.active { background: var(--stamp-weak); }
.dropdown .opt .code { color: var(--ink-3); font-size: 12px; margin-left: auto; }

/* результаты */
.results { min-width: 0; }
.panel { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); }
.res-head { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.res-title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.res-title h2 { font-size: 22px; }
.res-params { color: var(--ink-2); font-size: 13px; margin-top: 4px; }
.tally { display: flex; gap: 0; margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tally button {
  flex: 1; border: 0; background: var(--sheet); padding: 9px 12px; text-align: left; cursor: pointer;
  border-right: 1px solid var(--line); min-width: 0;
}
.tally button:last-child { border-right: 0; }
.tally button[aria-pressed="true"] { background: var(--stamp-weak); }
.tally .v { font-size: 22px; font-weight: 700; display: block; line-height: 1.1; }
.tally .k { font-size: 12px; color: var(--ink-2); }
.tally .low .v { color: var(--low); } .tally .rep .v { color: var(--stamp); }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 18px; border-bottom: 1px solid var(--line); background: var(--sheet); }
.toolbar input[type=text] { max-width: 260px; }
.toolbar select { width: auto; }
.toolbar .spacer { flex: 1; }

.progress { height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--stamp); width: 0; transition: width .4s; }
.progress.indet > i { width: 30%; animation: indet 1.4s infinite ease-in-out; }
@keyframes indet { 0% { margin-left: -30%; } 100% { margin-left: 100%; } }
@media (prefers-reduced-motion: reduce) { .progress.indet > i { animation: none; width: 100%; opacity: .5; } .progress > i { transition: none; } }

/* таблица закупок */
.tbl-wrap { overflow-x: auto; }
table.ledger { width: 100%; border-collapse: collapse; font-size: 14px; }
.ledger th {
  text-align: left; font-weight: 600; font-size: 12px; color: var(--ink-2); padding: 9px 10px;
  border-bottom: 1px solid var(--line); background: var(--sheet); position: sticky; top: 0; white-space: nowrap;
}
.ledger th.sortable { cursor: pointer; }
.ledger th.sortable:hover { color: var(--ink); }
.ledger th .arr { color: var(--stamp); }
.ledger td { padding: 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.ledger tr.item { cursor: pointer; }
.ledger tr.item:hover td { background: color-mix(in srgb, var(--stamp-weak) 45%, transparent); }
.ledger tr.item.open td { background: var(--stamp-weak); border-bottom-color: transparent; }
.ledger .name { font-weight: 500; max-width: 560px; }
.ledger .name a { color: var(--ink); }
.ledger .sub { font-size: 12px; color: var(--ink-2); margin-top: 3px; max-width: 560px; }
.ledger .date { font-weight: 600; }
.ledger .left { font-size: 12px; color: var(--ink-2); }
.ledger .left.soon { color: var(--high); font-weight: 600; }
.tag {
  display: inline-block; font-size: 11.5px; padding: 1px 6px; border-radius: 3px; margin: 4px 4px 0 0;
  background: var(--line-2); color: var(--ink-2); white-space: nowrap;
}
.tag.rep { background: var(--stamp); color: var(--stamp-ink); }
.tag.good { background: var(--low-weak); color: var(--low); }
.tag.warn { background: var(--mid-weak); color: var(--mid); }
.tag.bad { background: var(--high-weak); color: var(--high); }
.method { font-size: 11.5px; font-weight: 700; color: var(--ink-2); border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; margin-right: 6px; }

/* «стулья за столом»: сколько участников ждать */
.seats { display: inline-flex; gap: 3px; align-items: flex-end; height: 16px; vertical-align: -3px; margin-right: 8px; }
.seats i { width: 7px; height: 13px; border-radius: 3px 3px 1px 1px; background: var(--line); display: block; }
.seats.low i.on { background: var(--low); } .seats.mid i.on { background: var(--mid); } .seats.high i.on { background: var(--high); }
.seats i.half { background: linear-gradient(to top, currentColor 50%, var(--line) 50%); }
.seats.low { color: var(--low); } .seats.mid { color: var(--mid); } .seats.high { color: var(--high); }
.bids-v { font-weight: 650; }
.bids-r { font-size: 12px; color: var(--ink-2); }
.pct { font-weight: 600; }
.pct.good { color: var(--low); }
.conf { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.conf .dot { width: 7px; height: 7px; }

/* раскрытая строка */
tr.drawer > td { padding: 0 10px 18px; background: var(--stamp-weak); border-bottom: 1px solid var(--line); }
.drawer-in { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 22px; cursor: default; }
.drawer-in h3 { margin-bottom: 8px; }
.mini { width: 100%; border-collapse: collapse; font-size: 13px; }
.mini th { text-align: left; font-weight: 600; color: var(--ink-2); font-size: 12px; padding: 5px 6px; border-bottom: 1px solid var(--line); }
.mini td { padding: 6px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; }
.note { font-size: 13px; color: var(--ink-2); background: var(--paper); border-radius: var(--radius); padding: 10px 12px; }
.ai-box { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 14px; }
.ai-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.ai-head h3 { margin: 0; }
.ai-text { border-left: 3px solid var(--stamp); padding: 2px 0 2px 14px; margin-bottom: 8px; max-width: 90ch; font-size: 14px; }
.ai-text.good { border-left-color: var(--low); } .ai-text.warn { border-left-color: var(--mid); } .ai-text.bad { border-left-color: var(--high); }
.ai-text h4 { font-size: 14px; margin: 14px 0 4px; }
.ai-text h4:first-child { margin-top: 0; }
.ai-text p { margin: 4px 0; }
.ai-text ul { margin: 4px 0; padding-left: 20px; }
.ai-text li { margin: 2px 0; }
.ai-wait { max-width: 420px; }
.items-list { font-size: 13px; margin: 6px 0 0; padding-left: 18px; }

.empty { padding: 48px 28px; max-width: 760px; }
.empty h2 { font-size: 24px; margin-bottom: 10px; }
.empty ol { padding-left: 20px; margin: 16px 0 0; }
.empty li { margin-bottom: 12px; }
.empty li b { display: block; }
.more { padding: 14px; text-align: center; }

/* ---------- общие блоки вкладок */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.box { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 20px; }
.box h2 { margin-bottom: 4px; }
.box > .lead { color: var(--ink-2); font-size: 14px; margin: 0 0 16px; max-width: 72ch; }
.box-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.stat-line { display: flex; gap: 28px; flex-wrap: wrap; margin: 6px 0 14px; }
.stat-line div { font-size: 13px; color: var(--ink-2); }
.stat-line b { display: block; font-size: 22px; color: var(--ink); font-weight: 700; }
table.plain { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.plain th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-2); padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.plain td { padding: 7px 8px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.state { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.state.ready, .state.done, .state.ok { color: var(--low); }
.state.cooldown, .state.running, .state.queued { color: var(--mid); }
.state.dead, .state.error, .state.bad { color: var(--high); }
.state.cancelled, .state.interrupted, .state.off { color: var(--ink-3); }
.heat { border-collapse: collapse; font-size: 12px; }
.heat th { font-weight: 600; color: var(--ink-2); padding: 4px 6px; white-space: nowrap; text-align: left; }
.heat td { padding: 0; }
.heat td span { display: block; min-width: 46px; padding: 5px 6px; text-align: right; border: 1px solid var(--sheet); }
.callout { border-left: 3px solid var(--stamp); background: var(--stamp-weak); padding: 10px 14px; font-size: 13.5px; margin: 0 0 16px; border-radius: 0 var(--radius) var(--radius) 0; }
.callout.warn { border-left-color: var(--mid); background: var(--mid-weak); }
.joblog { font-size: 12.5px; background: var(--paper); border-radius: var(--radius); padding: 8px 10px; max-height: 260px; overflow: auto; margin-top: 8px; white-space: pre-wrap; }
.joblog .t { color: var(--ink-3); margin-right: 8px; }

.toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 50; background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: var(--radius); font-size: 14px; max-width: 420px; box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.toast.err { background: var(--high); color: #fff; }

@media (max-width: 1100px) {
  .search-grid { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; }
  .cols { grid-template-columns: 1fr; }
  .drawer-in { grid-template-columns: 1fr; }
  .health { display: none; }
}
@media (max-width: 700px) {
  .top { position: static; }
  .tab { padding: 0 10px; }
  .top-in { padding: 0 12px; gap: 10px; height: auto; flex-wrap: wrap; }
  .brand { height: 48px; }
  .tabs { width: 100%; overflow-x: auto; height: 44px; }
  main { padding: 14px 12px 40px; }
  .tally { flex-wrap: wrap; }
  .tally button { flex: 1 1 45%; border-bottom: 1px solid var(--line); }
  .ledger .hide-sm { display: none; }
}

.lawseg { display: flex; width: 100%; margin-bottom: 10px; }
.lawseg button { flex: 1; padding: 8px 10px; font-size: 14px; }
.live-line { color: var(--ink-2); margin-bottom: 14px; }
.live-line a { cursor: pointer; }

.tagline { margin-left: auto; color: var(--ink-2); font-size: 13px; }
.intro { max-width: 860px; margin: 8px 0 20px; }
.intro h1 { font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 8px; }
.intro p { color: var(--ink-2); margin: 0; max-width: 70ch; }
@media (max-width: 700px) { .intro h1 { font-size: 24px; } .tagline { display: none; } }

.whenseg { display: flex; width: 100%; margin: -4px 0 10px; }
.whenseg button { flex: 1; padding: 6px 10px; }

/* ---------- разделы клиентского сайта */
.topnav { display: flex; gap: 4px; }
.topnav a { color: var(--ink-2); text-decoration: none; padding: 7px 12px; border-radius: var(--radius); font-weight: 500; font-size: 14px; white-space: nowrap; }
.topnav a:hover { color: var(--ink); background: var(--line-2); }
.topnav a[aria-current="page"] { color: var(--stamp); background: var(--stamp-weak); }
@media (max-width: 700px) { .topnav { width: 100%; overflow-x: auto; padding-bottom: 8px; } .topnav a { padding: 6px 10px; font-size: 13px; } }
.pane-narrow { max-width: 860px; margin: 0 auto; padding: 8px 0 40px; }
.ph1 { font-size: 30px; line-height: 1.2; margin: 12px 0 8px; }
.lead { color: var(--ink-2); font-size: 16px; margin: 0 0 18px; max-width: 70ch; }
.neuro-form textarea, #lawQ { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sheet); color: var(--ink); resize: vertical; }
.neuro-form textarea:focus, #lawQ:focus { outline: 2px solid var(--focus); outline-offset: -1px; }
.neuro-ex { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.neuro-ex button { border: 1px dashed var(--line); background: none; color: var(--ink-2); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.neuro-ex button:hover { border-color: var(--stamp); color: var(--stamp); }
.row-end { display: flex; justify-content: flex-end; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.neuro-sum { margin: 18px 0 10px; }
.neuro-sum p { margin: 4px 0; }
.ncard { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-top: 10px; }
.ncard-h { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; }
.nnum { width: 28px; height: 28px; border-radius: 50%; background: var(--stamp-weak); color: var(--stamp); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.ncard-t { font-weight: 600; color: var(--ink); text-decoration: none; }
.ncard-t:hover { color: var(--stamp); text-decoration: underline; }
.ncard-p { text-align: right; white-space: nowrap; }
.ncard .why { margin: 10px 0 6px; padding-left: 40px; }
.ncard .small.muted { padding-left: 40px; }
@media (max-width: 600px) { .ncard-h { grid-template-columns: auto 1fr; } .ncard-p { grid-column: 2; text-align: left; } .ncard .why, .ncard .small.muted { padding-left: 0; } }
.ai-banner { background: var(--mid-weak); border: 1px solid var(--mid); color: var(--ink); border-radius: var(--radius); padding: 10px 14px; margin: 0 0 16px; font-size: 14px; }
.doctype { display: flex; flex-wrap: wrap; width: 100%; margin-bottom: 12px; }
.doctype button { flex: 1 1 auto; padding: 8px 10px; }
.file-pick { cursor: pointer; color: var(--stamp); font-size: 14px; }
.file-pick:hover span:first-of-type { text-decoration: underline; }
.law-text { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 12px 0; line-height: 1.6; }
.law-text h4 { margin: 14px 0 6px; font-size: 16px; }
.law-text p { margin: 6px 0; }
.cites { padding-left: 18px; }
.cite.ok a { color: var(--low); }
.cite.bad { color: var(--high); }

/* ---------- страницы для поисковиков */
.seo-main { max-width: 980px; margin: 0 auto; padding: 16px 20px 40px; }
.crumbs { font-size: 13px; color: var(--ink-2); margin: 4px 0 6px; }
.crumbs a { color: var(--ink-2); }
.seo-main h2 { font-size: 20px; margin: 26px 0 10px; }
.seo-main h3 { font-size: 16px; margin: 16px 0 6px; }
.seo-main p { line-height: 1.6; }
.tlist { list-style: none; padding: 0; margin: 0; }
.trow { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 8px; }
.trow > a { font-weight: 600; color: var(--ink); text-decoration: none; }
.trow > a:hover { color: var(--stamp); text-decoration: underline; }
.links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.links a { color: var(--stamp); text-decoration: none; font-size: 14px; }
.links a:hover { text-decoration: underline; }
.links.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 18px; }
.facts.big { display: grid; grid-template-columns: minmax(160px, 260px) 1fr; gap: 6px 16px; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.facts.big dt { color: var(--ink-2); }
.facts.big dd { margin: 0; font-weight: 500; }
@media (max-width: 600px) { .facts.big { grid-template-columns: 1fr; } .facts.big dd { margin-bottom: 6px; } }
.artlist { columns: 2 320px; padding-left: 18px; }
.artlist li { margin-bottom: 4px; break-inside: avoid; }
.cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 6px 0 10px; }
.seo-foot { border-top: 1px solid var(--line); background: var(--sheet); margin-top: 30px; padding: 24px 20px 10px; }
.seo-foot-in { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.seo-foot h3 { font-size: 14px; margin: 0 0 8px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .03em; }
.seo-foot .links a { font-size: 13px; }
body.seo .btn { text-decoration: none; display: inline-block; }

/* ---------- карточки закупок для клиентов: главное — шанс выиграть */
.plist { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.pc { display: grid; grid-template-columns: 190px minmax(0, 1fr) 150px; gap: 16px; align-items: start; background: var(--sheet);
  border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--radius); padding: 12px 14px; cursor: pointer; }
.pc:hover { border-color: var(--ink-3); }
.pc.open { border-color: var(--stamp); }
.pc.high { border-left-color: var(--low); }
.pc.mid { border-left-color: var(--mid); }
.pc.low { border-left-color: var(--high); }
.pc-ch b { display: block; font-size: 15px; }
.pc.high .pc-ch b { color: var(--low); }
.pc.mid .pc-ch b { color: var(--mid); }
.pc.low .pc-ch b { color: var(--high); }
.pc.none .pc-ch b { color: var(--ink-3); }
.pc-ch span { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.pc-t { font-weight: 600; color: var(--ink); text-decoration: none; }
.pc-t:hover { color: var(--stamp); text-decoration: underline; }
.pc .sub { font-size: 13px; color: var(--ink-2); margin: 3px 0 4px; }
.pc .why { margin: 4px 0; font-size: 14px; }
.pc-side { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.pc-side b { font-size: 16px; white-space: nowrap; }
.pc-side .soon { color: var(--high); }
.pc-drawer { background: var(--sheet); border: 1px solid var(--stamp); border-top: 0; margin-top: -9px; padding: 14px; border-radius: 0 0 var(--radius) var(--radius); }
.tag.hit { background: var(--stamp-weak); color: var(--stamp); }
.sortsel select { font: inherit; padding: 3px 6px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sheet); color: var(--ink); }
@media (max-width: 760px) {
  .pc { grid-template-columns: 1fr; gap: 6px; }
  .pc-side { text-align: left; flex-direction: row; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
}
.morefilters { margin: 4px 0 0; }

/* ---------- крупный переключатель закона */
.lawswitch { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 14px; max-width: 100%; border: 1px solid var(--line); border-radius: 999px; background: var(--sheet); overflow: visible; }
.lawswitch button { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); cursor: pointer; font: inherit; font-size: 14px; white-space: nowrap; transition: background .15s, color .15s; }
.lawswitch button + button { border-left: 0; }
.lawswitch button b { font-weight: 600; font-size: inherit; }
.lawswitch button span { font-size: 12px; line-height: 18px; padding: 0 7px; border-radius: 999px; background: var(--line-2); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lawswitch button span:empty { display: none; }
.lawswitch button[aria-pressed="true"] { background: var(--stamp); color: var(--stamp-ink); font-weight: 600; }
.lawswitch button[aria-pressed="true"] span { background: rgba(255,255,255,.25); color: inherit; }
.lawswitch button:not([aria-pressed="true"]):hover { background: var(--line-2); color: var(--ink); }
.lawswitch button:focus-visible { outline: 2px solid var(--stamp); outline-offset: 2px; }
@media (max-width: 600px) {
  .lawswitch { display: flex; width: 100%; }
  .lawswitch button { flex: 1; justify-content: center; padding: 7px 8px; font-size: 13px; gap: 6px; }
}
@media (max-width: 420px) { .lawswitch button span { display: none; } }
.archchk { margin: 2px 0 14px; font-size: 14px; }

/* ---------- выпадающий список регионов */
.regsel { position: relative; }
.regsel-btn { width: 100%; text-align: left; font: inherit; padding: 9px 34px 9px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sheet); color: var(--ink); cursor: pointer; position: relative; }
.regsel-btn::after { content: "▾"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-2); }
.regsel-btn[aria-expanded="true"] { border-color: var(--stamp); }
.regsel-dd { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px -10px rgba(0,0,0,.25); padding: 10px; }
.regsel-dd input[type="text"] { width: 100%; margin-bottom: 8px; }
.regsel-pre { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; border-bottom: 1px solid var(--line-2); padding-bottom: 8px; }
.regsel-pre button { text-align: left; border: 0; background: none; padding: 6px 8px; border-radius: var(--radius); font: inherit; color: var(--ink); cursor: pointer; }
.regsel-pre button:hover { background: var(--line-2); }
.regsel-pre button[aria-pressed="true"] { background: var(--stamp-weak); color: var(--stamp); font-weight: 600; }
.regsel-list { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.regsel-list .check { padding: 3px 4px; }
.regsel-foot { display: flex; justify-content: flex-end; margin-top: 8px; }
