/* Публичные страницы Tenderpick: светлая тема «Поле», спокойный масштаб, плиточная карта регионов как главная форма. */
:root {
  --bg: #f3f7f7; --panel: #fff; --panel-2: #eef4f3; --line: #d5e1de; --text: #0f1713; --muted: #54655c;
  --brand: #1d7a70; --brand-d: #115751; --brand-soft: #dcebe8; --urgent: #b4381f; --r: 14px;
  --m: clamp(16px, 3.4vw, 56px); --ease: cubic-bezier(.16, 1, .3, 1);
  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; background: var(--bg); color: var(--text); font: 400 16px/1.5 var(--font); font-variant-numeric: tabular-nums; accent-color: var(--brand); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
h1, h2, p, ul, dl, dd { margin: 0; padding: 0; } li { list-style: none; } a { color: inherit; }
h1 { font-size: clamp(28px, 2.6vw, 40px); line-height: 1.08; letter-spacing: -.028em; font-weight: 600; text-wrap: balance; }
h2 { font-size: 20px; line-height: 1.25; letter-spacing: -.012em; font-weight: 600; text-wrap: balance; }

.top { display: flex; align-items: center; gap: 28px; padding: 18px var(--m); }
.logo { display: flex; align-items: center; gap: 10px; margin-right: auto; font-weight: 600; letter-spacing: -.01em; text-decoration: none; }
.logo svg { width: 34px; height: 24px; flex: none; }
.navlink { padding-block: 10px; color: var(--muted); font-size: 15px; text-decoration: none; transition: color .15s; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: 10px; background: var(--brand); color: #fff; font: 500 15px/1 var(--font); text-decoration: none; white-space: nowrap; transition: background .15s, transform .15s var(--ease); }
.btn:active { transform: scale(.98); } .btn .short { display: none; }
.btn.big { height: 48px; padding: 0 24px; font-size: 16px; }
.btn.ghost { background: var(--brand-soft); color: var(--brand-d); }
.foot { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 14px var(--m); font-size: 14px; color: var(--muted); }
.foot a { padding-block: 4px; text-decoration: none; } .foot span { margin-right: auto; }
@media (hover: hover) {
  .navlink:hover, .foot a:hover, .crumbs a:hover { color: var(--text); }
  .btn:hover { background: var(--brand-d); } .btn.ghost:hover { background: #cde2de; }
  .list a:hover, .rows a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
}

/* главная: слева текст и выбранный регион, справа карта; всё в один экран */
.land { display: grid; grid-template-columns: minmax(340px, 410px) 1fr; gap: clamp(20px, 2.4vw, 40px); padding: 6px var(--m) 10px; height: calc(100svh - 138px); min-height: 560px; }
.side { display: flex; flex-direction: column; gap: 12px; min-height: 0; padding-top: 8px; }
.lead { max-width: 60ch; color: var(--muted); }
.pick { display: none; }
.now b { display: block; font-size: 38px; line-height: 1.1; font-weight: 600; letter-spacing: -.03em; }
.now span { color: var(--muted); }
.list { flex: 1; min-height: 0; overflow: hidden; }
.list li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.35; animation: up .45s var(--ease) both; }
.list li:nth-child(2) { animation-delay: 50ms; } .list li:nth-child(3) { animation-delay: 100ms; } .list li:nth-child(4) { animation-delay: 150ms; }
.list a { display: block; margin-block: -3px; padding-block: 3px; text-decoration: none; }
.list span { display: block; margin-top: 2px; color: var(--muted); }
.list .none { color: var(--muted); }
.side .act { margin: 2px 0 0; }
.act-note { margin: -6px 0 0; font-size: 13px; color: var(--muted); }
.srcs { margin: 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
@keyframes up { from { opacity: 0; transform: translateY(8px); } }
.map { position: relative; container-type: size; min-height: 0; min-width: 0; display: grid; place-items: center; }
.grid { display: grid; grid-template-columns: repeat(19, 1fr); gap: 4px; width: min(100cqw, 100cqh * 19 / 12); }
.grid .t { aspect-ratio: 1; min-width: 0; padding: 0; border: 0; border-radius: 22%; background: color-mix(in oklch, var(--brand) calc(var(--v) * 72%), #e6efed); color: var(--text); font: 500 clamp(9px, .8vw, 13px)/1 var(--font); letter-spacing: -.02em; overflow: hidden; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s; animation: pop .45s var(--ease) both; animation-delay: calc(var(--i) * 4ms); }
.grid .t.dark { background: var(--brand); color: #fff; }
.grid .t[aria-pressed=true] { transform: scale(1.22); position: relative; z-index: 2; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--text); }
@media (hover: hover) { .grid .t:hover { transform: scale(1.22); position: relative; z-index: 2; box-shadow: 0 8px 18px -8px rgb(15 23 19 / .45), 0 0 0 2px #fff; } }
.legend { position: absolute; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.legend i { width: 96px; height: 10px; border-radius: 5px; background: linear-gradient(to right in oklch, #e6efed, var(--brand)); }
@media (min-width: 861px) and (max-height: 860px) { .list a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }

/* телефон и планшет: один столбец, регион выбирается списком, карта показывает его место */
@media (max-width: 860px) {
  .top { gap: 14px; padding-block: 10px; } .top .navlink[href="/faq"] { display: none; } .top .btn { height: 40px; padding: 0 12px; font-size: 14px; }
  .land { display: flex; flex-direction: column; height: auto; min-height: 0; padding-top: 8px; padding-bottom: 20px; }
  .side { display: contents; }
  .side h1 { order: 1; } .lead { order: 2; margin: -8px 0 0; } .pick { order: 3; display: block; }
  .map { order: 4; container-type: inline-size; } .now { order: 5; } .act { order: 6; } .act-note { order: 7; } .list { order: 8; flex: none; } .srcs { order: 9; }
  .pick span { display: block; margin-bottom: 4px; font-size: 14px; color: var(--muted); }
  .pick select { width: 100%; height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font: 400 16px var(--font); }
  .grid { width: 100%; gap: clamp(2px, .6vw, 4px); }
  .grid .t { font-size: 10px; }
  .grid .t[aria-pressed=true] { transform: scale(1.35); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--text); }
  .map { justify-items: stretch; }
  .legend { position: static; justify-content: flex-end; margin-top: 10px; }
  .act .btn { width: 100%; }
  .foot span { width: 100%; margin: 0; }
  .foot a { padding-block: 6px; }
}
@media (max-width: 600px) {
  .map { overflow-x: auto; padding: 8px 4px 4px; margin-inline: -4px; scrollbar-width: thin; }
  .grid { width: 620px; gap: 3px; }
  .grid .t[aria-pressed=true] { transform: scale(1.18); }
  .legend { position: sticky; left: 0; width: max-content; }
  .btn .full { display: none; } .btn .short { display: inline; }
  .top { gap: 12px; } .logo { font-size: 15px; gap: 8px; }
}
@media (max-width: 350px) { .logo span { display: none; } }

/* закупка и текстовые страницы */
.tender, .doc, .nf { width: min(100%, 980px); padding: clamp(16px, 3vw, 40px) var(--m) 64px; }
.crumbs { margin-bottom: 14px; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; } .crumbs a { display: inline-block; padding-block: 3px; text-decoration: none; }
.tender h1 { font-size: clamp(22px, 2.5vw, 34px); line-height: 1.15; letter-spacing: -.02em; overflow-wrap: anywhere; }
.tiles { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; margin: 22px 0 16px; }
.tile { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 18px 20px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.tile.accent { background: var(--brand-soft); border-color: transparent; }
.tile b { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; font-weight: 600; letter-spacing: -.02em; }
.tile .cust { font-size: 16px; line-height: 1.35; font-weight: 500; letter-spacing: 0; } .tile span { font-size: 14px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.closed { margin-bottom: 14px; padding: 12px 16px; border-radius: 10px; background: #fbf1ec; color: #7d2c18; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 28px; margin: 26px 0; }
.facts dt { font-size: 14px; color: var(--muted); } .facts dd { font-weight: 500; }
.locked { padding: 18px 20px; border-radius: var(--r); background: var(--panel-2); }
.locked h2 { margin-bottom: 6px; } .locked p { max-width: 62ch; } .locked p + p { margin-top: 14px; }
.rel { margin-top: 32px; } .rel .rows { margin-top: 8px; }
.rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 9px 0; border-top: 1px solid var(--line); }
.rows a { text-decoration: none; display: flex; gap: 8px; }
.rows .dot { display: none; } .rows .t { font: inherit; } .rows .v { flex: none; font-size: 14px; color: var(--muted); }
.doc h1 { margin-bottom: 22px; } .doc h2 { margin: 26px 0 6px; } .doc p, .doc li { max-width: 68ch; }
.doc p + p, .doc ul + p, .doc p + ul { margin-top: 12px; } .doc .plain { display: grid; gap: 6px; padding-left: 20px; } .doc .plain li { list-style: square; }
.doc .note { color: var(--muted); } .doc .act { margin-top: 28px; } .doc a:not(.btn) { color: var(--brand-d); font-weight: 500; text-underline-offset: 3px; overflow-wrap: anywhere; }
.nf h1 { margin-bottom: 10px; } .nf p { margin-bottom: 20px; color: var(--muted); }
@media (max-width: 640px) { .tiles, .facts { grid-template-columns: 1fr; } .rows li { flex-direction: column; gap: 2px; } .actions .btn, .locked .btn { width: 100%; } }
/* страницы регионов */
.more { display: block; margin-top: 2px; color: var(--brand-d); font-size: 14px; font-weight: 500; text-underline-offset: 3px; }
.reg { width: min(100%, 1180px); padding: clamp(16px, 3vw, 32px) var(--m) 64px; }
.reg h1 { margin-bottom: 18px; }
.stats { display: flex; flex-wrap: wrap; gap: 14px 44px; }
.stats b { display: block; font-size: 32px; line-height: 1.1; font-weight: 600; letter-spacing: -.025em; }
.stats span { font-size: 14px; color: var(--muted); }
.laws { margin-top: 12px; color: var(--muted); font-size: 14px; }
.reg .actions { margin-top: 18px; }
.reg-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px 56px; margin-top: 30px; }
.reg-cols h2 { margin-bottom: 8px; } .reg-cols aside h2:not(:first-child) { margin-top: 26px; }
.reg .rows a { flex: 1; min-width: 0; padding-block: 2px; } .reg .rows .v { white-space: nowrap; }
.rows.mini li { font-size: 14px; line-height: 1.35; }
.near { display: flex; flex-wrap: wrap; gap: 8px; }
.near a { display: block; padding: 7px 12px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-d); font-size: 14px; text-decoration: none; }
.all { margin-top: 18px; } .all a { color: var(--brand-d); font-weight: 500; text-underline-offset: 3px; padding-block: 4px; display: inline-block; }
.regs { columns: 2; column-gap: 56px; } .regs li { break-inside: avoid; }
@media (hover: hover) { .near a:hover { background: #cde2de; } }
@media (max-width: 860px) { .reg-cols { grid-template-columns: minmax(0, 1fr); } .top .navlink[href="/regiony"] { display: none; } .regs { columns: 1; } .reg .actions .btn { width: 100%; white-space: normal; height: auto; min-height: 48px; padding-block: 12px; text-align: center; } }
@media (max-width: 640px) { .regs li { flex-direction: row; } .stats { gap: 12px 28px; } .stats b { font-size: 26px; } }
.reg > .lead { margin-bottom: 4px; }
.topics { columns: 2; column-gap: 56px; } .topics section { break-inside: avoid; margin-bottom: 28px; } .topics h2 { margin-bottom: 10px; } .topics h2 a { text-decoration: none; }
@media (max-width: 860px) { .topics { columns: 1; } .top .navlink[href="/temy"] { display: none; } }
.foot .m { display: none; }
.more[hidden] { display: none; }
@media (max-width: 860px) { .top .navlink.d { display: none; } .foot .m { display: block; } }
@media (min-width: 1100px) { .regs, .topics { columns: 3; column-gap: 40px; } }
.reg.wide { width: 100%; }
@media (min-width: 1600px) { .regs, .topics { columns: 4; column-gap: 48px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.tender .summary { margin: 4px 0 24px; font-size: 15px; line-height: 1.55; color: var(--ink, inherit); max-width: 70ch; }
