/* Каркас движка «10 сайтов». Только раскладка и поведение; вид — в теме (theme.css) через переменные ниже.
 * Правила из «Сборщик сайтов/ПРАВИЛА.md»: [hidden] всегда прячет (MOB-015), поля 16px (MOB-003), кнопки ≥44px (MOB-005),
 * svh вместо голого vh (MOB-002), якоря не под шапкой (MOB-014), фокус виден (PC-004), safe-area (MOB-004), строки ≤75ch (PC-001). */
:root {
  --bg: #fff; --bg-2: #f4f5f7; --card: #fff; --fg: #15171c; --muted: #5c6370; --line: #e3e6eb;
  --accent: #1f6feb; --accent-ink: #fff; --accent-2: #0b3d91; --ok: #1a9e55; --warn: #d98a00; --bad: #d23b3b;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --font-head: var(--font);
  --radius: 14px; --radius-btn: 12px; --shadow: 0 10px 30px rgba(15, 20, 30, .08);
  --wrap: 1200px; --pad: clamp(16px, 4vw, 32px); --nav-h: 64px; --sec: clamp(56px, 8vw, 110px);
  --h1: clamp(34px, 6vw, 68px); --h2: clamp(26px, 3.6vw, 44px); --h3: clamp(19px, 2vw, 23px);
}
/* В части Google-шрифтов (Unbounded и др.) неразрывный пробел и неразрывный дефис нулевой ширины → «1238 руб.».
   Эти символы рисуем системным шрифтом: семейство NbspGap стоит первым там, где base.css задаёт шрифт. */
@font-face { font-family: "NbspGap"; src: local("Helvetica Neue"), local("HelveticaNeue"), local("Arial"), local("Segoe UI"), local("Roboto"); unicode-range: U+00A0, U+2009, U+2011, U+202F; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 "NbspGap", var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, video, canvas { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, .h2, .h3 { font-family: "NbspGap", var(--font-head); line-height: 1.08; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { font-size: 16px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 2 * var(--pad), var(--wrap)); margin-inline: auto; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); } .small { font-size: 14px; }
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 62ch; }
.h2 { font-size: var(--h2); } .h3 { font-size: var(--h3); }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 20px; border-radius: var(--radius-btn);
  border: 2px solid transparent; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .15s, background .2s, box-shadow .2s, border-color .2s; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-a { background: var(--accent); color: var(--accent-ink); }
.btn-a:hover { box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 40%, transparent); transform: translateY(-1px); }
.btn-g { background: transparent; border-color: var(--line); color: var(--fg); }
.btn-g:hover { border-color: var(--fg); }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 17px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* шапка */
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; padding-top: env(safe-area-inset-top); }
.nav.scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(0, 0, 0, .05); }
.nav-in { display: flex; align-items: center; gap: 24px; min-height: var(--nav-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-family: var(--font-head); font-size: 19px; min-height: 44px; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); flex: none; }
.menu { display: flex; gap: 22px; margin-left: auto; }
.menu a { text-decoration: none; font-weight: 600; color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; }
.menu a:hover { color: var(--fg); }
.nw { white-space: nowrap; }
.nav-tel { font-weight: 800; text-decoration: none; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 760px) { .menu { display: none; } .nav-tel { margin-left: auto; font-size: 15px; } .nav-in { gap: 12px; } }

/* секции */
.b { padding-block: var(--sec); position: relative; }
.b-head { margin-bottom: clamp(24px, 4vw, 44px); max-width: 780px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: inherit; }

/* первый экран (запасной, если у темы нет своего) */
.hero { padding-block: clamp(40px, 8vw, 110px) clamp(40px, 6vw, 80px); position: relative; }
.hero h1 { font-size: var(--h1); max-width: 18ch; }
.hero-act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-inner h1 { font-size: clamp(30px, 4.6vw, 54px); max-width: 24ch; }

/* появление при прокрутке */
.raf-ok [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.raf-ok [data-reveal].in { opacity: 1; transform: none; }

/* чипы городов */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; background: var(--card); transition: border-color .2s, transform .2s; }
.chip span { font-size: 13px; color: var(--muted); }
.chip:hover { border-color: var(--accent); transform: translateY(-2px); }

/* список ПТО */
.lst-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.lst-q { flex: 1 1 260px; }
.lst-q input { width: 100%; min-height: 48px; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius-btn); background: var(--card); }
.lst-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.lst-cats button, .lst-open { min-height: 44px; min-width: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); cursor: pointer; font-weight: 600; }
.lst-cats button[aria-pressed="true"], .lst-open[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.lst-geo { margin-left: auto; }
.lst { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lst-city h3 { font-size: var(--h3); margin: 22px 0 4px; }
.lst-city h3 a { text-decoration: none; } .lst-city h3 span { color: var(--muted); font-weight: 500; font-size: .8em; }
.st { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s, transform .2s; }
.st:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); box-shadow: var(--shadow); }
.st.near { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.st-name { font-size: 18px; margin: 0 0 2px; font-family: var(--font); font-weight: 700; line-height: 1.3; }
.st-name a { text-decoration: none; } .st-name a:hover { text-decoration: underline; }
.st-city { margin: 0; color: var(--muted); font-size: 15px; }
.st-hours { margin: 6px 0 8px; font-size: 15px; }
[data-state]::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; background: var(--muted); }
[data-state="on"]::before { background: var(--ok); } [data-state="soon"]::before { background: var(--warn); } [data-state="off"]::before { background: var(--bad); }
.st-cats { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; padding: 0; margin: 0; }
.st-cats li { font-size: 13px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--bg-2); }
.st-cats li.on { background: var(--accent); color: var(--accent-ink); }
.st-side { text-align: right; display: grid; gap: 8px; justify-items: end; }
.st-price { margin: 0; line-height: 1.15; } .st-price b { font-size: 21px; display: block; } .st-price small { color: var(--muted); font-size: 13px; }
.st-dist { margin: 0; font-weight: 700; color: var(--accent); font-size: 15px; }
.st-act { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.st-closed { color: var(--bad); font-weight: 600; }
.lst-empty { padding: 20px; border: 1px dashed var(--line); border-radius: var(--radius); }
.lst-empty button { min-height: 44px; border: 0; background: none; color: var(--accent); font-weight: 700; cursor: pointer; text-decoration: underline; }
@media (max-width: 760px) {
  .st { grid-template-columns: 1fr; padding: 16px; gap: 12px; }
  .st-side { text-align: left; justify-items: start; grid-template-columns: 1fr auto; align-items: center; width: 100%; }
  .st-act { grid-column: 1 / -1; width: 100%; } .st-act .btn { flex: 1; }
  .lst-geo { margin-left: 0; width: 100%; }
  .lst-cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; padding-bottom: 2px; }
}

/* карта */
.map { position: relative; height: clamp(360px, 60svh, 620px); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
@supports not (height: 1svh) { .map { height: clamp(360px, 60vh, 620px); } }
.map-load { position: absolute; inset: 0; margin: auto; width: max-content; height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 700; cursor: pointer; }
.map.loaded .map-load { display: none; }
.map-fail { padding: 24px; }
.pop { display: grid; gap: 4px; font: 14px/1.4 var(--font); color: #15171c; }
.pop b { font-size: 15px; } .pop-a { display: flex; gap: 6px; margin-top: 6px; } .pop .btn { min-height: 40px; padding: 8px 12px; font-size: 14px; }
.pop .btn-g { color: #15171c; border-color: #ccc; }
.maplibregl-popup-close-button { width: 32px; height: 32px; font-size: 20px; }

/* шаги */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.steps li { padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.step-n { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; margin-bottom: 14px; }
.steps h3 { font-size: 19px; } .steps p { margin: 0; color: var(--muted); }

/* плитки */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.cards li { padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.cards h3 { font-size: 19px; } .cards p { margin: 0; color: var(--muted); }

/* цифры */
.stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.stats b { display: block; font-family: var(--font-head); font-size: clamp(38px, 5vw, 64px); line-height: 1; color: var(--accent); }
.stats span { color: var(--muted); }

/* цены */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tbl th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.tbl tr:last-child td { border-bottom: 0; } .tbl tr.on td { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.tbl td:last-child { font-weight: 700; white-space: nowrap; }
.calc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px 20px; align-items: end; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; }
.calc label span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.calc select, .bk select { width: 100%; min-height: 48px; padding: 10px 40px 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-btn); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23777' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center; -webkit-appearance: none; appearance: none; }
.calc-out { min-width: 0; display: grid; gap: 6px; } .calc-out b { font-family: var(--font-head); font-size: clamp(26px, 3vw, 34px); line-height: 1.1; overflow-wrap: anywhere; } .calc-out small { color: var(--muted); }
.calc-out.calc-pulse { animation: calcPop .35s ease; } @keyframes calcPop { from { transform: scale(.94); opacity: .4; } }
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; } }

/* вопросы */
.faq { display: grid; gap: 10px; max-width: 900px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { cursor: pointer; padding: 18px 54px 18px 20px; font-weight: 700; list-style: none; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 24px; transition: transform .2s; color: var(--accent); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 20px 18px; color: var(--muted); max-width: 75ch; } .faq details p { margin: 0; }

/* документы, проверка, призыв */
.docs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.docs li { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); display: grid; gap: 4px; } .docs span { color: var(--muted); }
.check { display: flex; gap: 10px; flex-wrap: wrap; max-width: 640px; }
.check label { flex: 1 1 260px; } .check input { width: 100%; min-height: 54px; padding: 12px 18px; border: 2px solid var(--line); border-radius: var(--radius-btn); background: var(--card); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.cta { padding: clamp(28px, 5vw, 60px); border-radius: calc(var(--radius) * 1.5); background: var(--fg); color: var(--bg); }
.cta p { opacity: 1; } .cta-act { display: flex; flex-wrap: wrap; gap: 12px; } .cta .btn-g { color: var(--bg); border-color: color-mix(in srgb, var(--bg) 35%, transparent); }
.txt { max-width: 75ch; } .txt p, .txt li { color: var(--muted); }

/* города */
.cities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 24px; }
.cities li { display: grid; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cities a { font-weight: 700; text-decoration: none; min-height: 28px; } .cities a:hover { color: var(--accent); } .cities span { font-size: 14px; color: var(--muted); }

/* страница ПТО */
.pto { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; margin-bottom: 24px; }
.pto-main, .pto-side, .pto-grid > div { padding: clamp(20px, 3vw, 32px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.pto-op { font-size: 14px; color: var(--muted); } .pto-now { font-weight: 700; font-size: 18px; }
.pto-act { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 24px; }
.pto-dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 0; } .pto-dl dt { color: var(--muted); } .pto-dl dd { margin: 0; }
.hours { width: 100%; border-collapse: collapse; } .hours th, .hours td { padding: 8px 0; border-bottom: 1px solid var(--line); text-align: left; } .hours td { text-align: right; }
.pto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pto-cats { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; } .pto-cats b { display: inline-block; min-width: 38px; padding: 2px 8px; border-radius: 6px; background: var(--bg-2); margin-right: 8px; text-align: center; }
.pto-cats li.on b { background: var(--accent); color: var(--accent-ink); }
.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.links h3 { font-size: 18px; } .links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.links a { display: inline-flex; min-height: 36px; align-items: center; font-weight: 600; } .links span { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .pto, .pto-grid { grid-template-columns: 1fr; } .pto-dl { grid-template-columns: 1fr; gap: 2px; } .pto-dl dd { margin-bottom: 10px; } }

/* подвал */
.foot { padding: 56px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg-2); font-size: 15px; }
.foot-top { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-start; justify-content: space-between; margin-bottom: 28px; }
.foot-top p { color: var(--muted); max-width: 60ch; margin: 0; }
.foot-cities { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 28px; }
.foot-cities b { width: 100%; margin-bottom: 6px; }
.foot-cities a { color: var(--muted); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; } .foot-cities a:hover { color: var(--fg); }
.foot-legal { color: var(--muted); font-size: 14px; } .foot-legal a { color: inherit; }
.b-legal h1, .b-404 h1 { font-size: var(--h2); }

/* окно записи */
.bk { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s; padding: 16px; }
.bk.on { visibility: visible; opacity: 1; }
.bk-bg { position: absolute; inset: 0; background: rgba(8, 10, 14, .62); }
.bk-box { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; background: var(--card); color: var(--fg); border-radius: calc(var(--radius) * 1.3); padding: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); transform: translateY(16px); transition: transform .3s; }
.bk.on .bk-box { transform: none; }
.bk-x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: var(--bg-2); border-radius: 50%; font-size: 24px; cursor: pointer; }
.bk-sub { color: var(--muted); }
.fl { display: block; border: 0; padding: 0; margin: 0 0 14px; } .fl > span, .fl legend { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; padding: 0; }
.fl input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-btn); background: var(--card); }
.fl input.bad { border-color: var(--bad); }
.fl2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bk-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.bk-days button, .bk-slots button { min-height: 48px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; font-weight: 700; display: grid; place-items: center; line-height: 1.1; padding: 4px 2px; }
.bk-days small { font-size: 12px; font-weight: 500; color: var(--muted); }
.bk-days button[disabled] { opacity: .35; cursor: not-allowed; }
.bk-days button[aria-pressed="true"], .bk-slots button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.bk-days button[aria-pressed="true"] small { color: inherit; }
.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 6px; max-height: 168px; overflow: auto; }
.hp { position: absolute; left: -9999px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 6px 0 10px; min-height: 44px; } .agree input { width: 22px; height: 22px; flex: none; }
.bk-err { color: var(--bad); min-height: 1.2em; font-size: 14px; } .bk-go { width: 100%; }
.bk-done { display: none; text-align: center; } .bk.done .bk-form { display: none; } .bk.done .bk-done { display: block; }
.bk-check { width: 72px; height: 72px; border-radius: 50%; margin: 10px auto 18px; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' stroke='%23fff' stroke-width='2.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/44px no-repeat; animation: pop .4s cubic-bezier(.2, 1.4, .4, 1); }
.bk-check.warn { background-color: var(--warn); } @keyframes pop { from { transform: scale(.4); opacity: 0; } }
html.modal-open { overflow: hidden; }
@media (max-width: 760px) {
  .bk { place-items: end center; padding: 0; }
  .bk-box { width: 100%; border-radius: 22px 22px 0 0; padding: 22px 16px calc(20px + env(safe-area-inset-bottom)); max-height: 92vh; max-height: 92dvh; transform: translateY(40px); }
  .fl2 { grid-template-columns: 1fr; gap: 0; } .bk-days { grid-template-columns: repeat(7, minmax(40px, 1fr)); }
}
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 95; background: var(--fg); color: var(--bg); padding: 12px 18px; border-radius: 12px; max-width: min(92vw, 520px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; font-size: 15px; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 760px) { body { font-size: 16px; } .b { padding-block: clamp(44px, 12vw, 64px); } }

/* тест «нужен ли ТО» */
.qz { max-width: 760px; padding: clamp(20px, 4vw, 36px); background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.3); }
.qz-n { font-size: 14px; color: var(--muted); } .qz-q { font-size: var(--h3); }
.qz-a, .qz-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.qz-hint { font-size: 14px; color: var(--muted); margin-top: 14px; }
.qz-res h3 { font-size: var(--h3); } .qz-res { animation: calcPop .35s ease; }
/* ближайшие окна */
.slots { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.slots li { padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 6px; }
.slots .sl-t { font-family: var(--font-head); font-size: 28px; line-height: 1; } .slots .sl-a { font-weight: 700; } .slots .sl-c { color: var(--muted); font-size: 14px; }
.slots .btn { justify-self: start; margin-top: 4px; }
/* А–Я и регионы */
.az-l { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.az-l a { min-width: 44px; min-height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-weight: 700; }
.az-l a:hover { background: var(--fg); color: var(--bg); }
.az { columns: 3 260px; column-gap: 28px; } .az-g { break-inside: avoid; margin-bottom: 18px; }
.az-k { font-family: var(--font-head); font-size: 30px; color: var(--accent); }
.az ul { list-style: none; padding: 0; margin: 4px 0 0; } .az li { display: grid; padding: 6px 0; border-bottom: 1px solid var(--line); }
.az li a { font-weight: 700; text-decoration: none; min-height: 28px; } .az li span { font-size: 14px; color: var(--muted); }
.regions { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.regions li { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); } .regions h3 { font-size: 18px; } .regions p { margin: 0; color: var(--muted); }

/* «Диагностическая карта сегодня!» */
.today { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 40px; align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: calc(var(--radius) * 1.5); background: var(--accent); color: var(--accent-ink); }
.today .eyebrow { color: inherit; } .today .h2 { margin-bottom: .3em; } .today p { margin: 0; max-width: 60ch; }
.today-n { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px; }
.today-n li { display: grid; gap: 6px; align-content: start; min-width: 0; padding: 16px; border-radius: var(--radius); background: color-mix(in srgb, var(--accent-ink) 12%, transparent); }
.today-n b { font-family: var(--font-head); font-size: clamp(20px, 2.2vw, 28px); line-height: 1.15; overflow-wrap: anywhere; } .today-n span { font-size: 14px; line-height: 1.35; }
.today-a { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; }
.today .btn-a { background: var(--accent-ink); color: var(--accent); } .today .btn-g { color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent-ink) 40%, transparent); }
@media (min-width: 1180px) { .today { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }

/* пометка загрузки станции (данные/загрузка.json) */
.st-load { display: inline-block; margin: 4px 0 8px; padding: 6px 10px; border-radius: 8px; font-size: 13px; font-weight: 800; letter-spacing: .03em; }
.st-load-free { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.st-load-busy { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.st-load-mid { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.st-load-phone { background: color-mix(in srgb, var(--muted) 14%, transparent); color: var(--fg); }
.st-load-closed { background: color-mix(in srgb, var(--muted) 14%, transparent); color: var(--muted); }
