/* =========================================================================
   Атлас организаций ФМБА России — дизайн-система D (каркас)
   Токены — по контракту DESIGN.md. Сетка 4px. Тени только у поповеров.
   ========================================================================= */
:root{
  /* Бумага, чернила, один красный акцент. Тёплые нейтральные, тёмно-синий текст. */
  --bg:#F8F6F1; --surface:#FFFFFF; --surface-2:#F2EFE8; --surface-3:#E8E3D9;
  --line:#E5DFD4; --line-strong:#CCC4B6;
  --ink:#141C2E; --ink-2:#3B4455; --ink-3:#687080; --ink-4:#9A9FA9;
  --accent:#1B2A44; --accent-hover:#0E1930; --accent-ink:#FFFFFF; --accent-soft:#E7EAF0; --accent-line:#B7C1D2;
  --brand:#A8392B; --brand-hover:#8A2C20; --brand-soft:#F6E6E2; --brand-line:#E3B9B1;
  --brand-ink:var(--accent); --brand-red:var(--brand); --brand-wash:var(--accent-soft);
  --edu:#96600F; --edu-soft:#F5EBD8; --edu-line:#E2CCA1;
  --ok:#1F7A4D; --ok-soft:#DFF0E5; --warn:#96600F; --warn-soft:#F5EBD8; --bad:#B3261E; --bad-soft:#F8DEDB; --info:#2C4F85; --info-soft:#E3EAF5;
  --c-msch:#B4532A; --c-med:#2F6FB3; --c-sci:#7A4FA8; --c-cgie:#2E8A57; --c-terr:#4F6B78; --c-div:#8A6D3B; --c-blood:#B23A48; --c-san:#3A8C8C; --c-edu:#B86A00; --c-other:#6B7773;
  --font-ui:"Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:"JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --fs-12:13px; --fs-13:14px; --fs-14:15px; --fs-16:16px; --fs-18:18px; --fs-22:22px; --fs-28:28px; --fs-36:36px; --fs-48:48px;
  --r-xs:4px; --r-sm:6px; --r-md:8px; --r-lg:12px; --r-pill:999px;
  --shadow-pop:0 12px 32px -10px rgba(20,28,46,.22), 0 2px 6px rgba(20,28,46,.06);
  --ease:cubic-bezier(.2,.7,.2,1); --dur:160ms;
  /* layout (каркас) */
  --hdr:64px; --tabbar:0px; --gut:max(16px, env(safe-area-inset-left)); --profile-w:520px;
  --ring:0 0 0 2px var(--surface), 0 0 0 4px var(--accent);
  color-scheme:light;
}
[data-theme="dark"]{
  --bg:#0E131C; --surface:#151B27; --surface-2:#1B2331; --surface-3:#252E40;
  --line:#273041; --line-strong:#3A4660;
  --ink:#E9ECF2; --ink-2:#C4CAD5; --ink-3:#8F97A6; --ink-4:#677186;
  --accent:#DDE5F3; --accent-hover:#FFFFFF; --accent-ink:#0E131C; --accent-soft:#222C40; --accent-line:#3D4B66;
  --brand:#EC8073; --brand-hover:#F39A8F; --brand-soft:#3A201D; --brand-line:#6B332C;
  --edu:#E3AE5C; --edu-soft:#33270F; --edu-line:#5E4A1C;
  --ok:#5BC98A; --ok-soft:#12301F; --warn:#E3AE5C; --warn-soft:#33270F; --bad:#F08079; --bad-soft:#3A1715; --info:#8FB2EC; --info-soft:#17243B;
  --c-msch:#D9774D; --c-med:#6A9FDB; --c-sci:#A584CC; --c-cgie:#5DB585; --c-terr:#86A2AF; --c-div:#BC9D69; --c-blood:#DB6A77; --c-san:#62B8B8; --c-edu:#F0A64A; --c-other:#8E9A96;
  --shadow-pop:0 12px 32px -8px rgba(0,0,0,.55), 0 2px 6px rgba(0,0,0,.3);
  color-scheme:dark;
}
/* ---------- Версия для слабовидящих ---------- */
[data-a11y="on"]{ --fs-12:14px; --fs-13:15px; --fs-14:16px; --fs-16:18px; --fs-18:20px; --fs-22:26px; --fs-28:32px; --fs-36:40px; --dur:0ms; }
[data-a11y="on"][data-a11y-size="2"]{ --fs-12:16px; --fs-13:17px; --fs-14:19px; --fs-16:21px; --fs-18:23px; --fs-22:28px; --fs-28:34px; --fs-36:44px; }
[data-a11y="on"][data-a11y-size="3"]{ --fs-12:18px; --fs-13:20px; --fs-14:22px; --fs-16:24px; --fs-18:26px; --fs-22:30px; --fs-28:36px; --fs-36:48px; }
[data-a11y="on"][data-a11y-scheme="bw"]{
  --bg:#FFFFFF; --surface:#FFFFFF; --surface-2:#F2F2F2; --surface-3:#E6E6E6; --line:#000; --line-strong:#000;
  --ink:#000; --ink-2:#000; --ink-3:#1A1A1A; --ink-4:#333; --brand:#8A0000; --brand-hover:#5C0000; --brand-soft:#FBE9E9; --accent:#003F8A; --accent-hover:#002A5C; --accent-ink:#fff; --accent-soft:#E0EBFA; --accent-line:#003F8A; color-scheme:light;
}
[data-a11y="on"][data-a11y-scheme="wb"]{
  --bg:#000; --surface:#000; --surface-2:#141414; --surface-3:#222; --line:#FFF; --line-strong:#FFF;
  --ink:#FFF; --ink-2:#FFF; --ink-3:#EEE; --ink-4:#CCC; --brand:#FFE14D; --brand-hover:#FFF07F; --brand-soft:#2A2500; --accent:#FFE14D; --accent-hover:#FFF07F; --accent-ink:#000; --accent-soft:#2A2500; --accent-line:#FFE14D; color-scheme:dark;
}
[data-a11y="on"] a{ text-decoration:underline }
[data-a11y="on"] *{ letter-spacing:.01em !important }
[data-a11y="on"] .leaflet-tile-pane{ filter:grayscale(1) contrast(1.1) }

/* ---------- База ---------- */
*,*::before,*::after{ box-sizing:border-box }
html{ -webkit-text-size-adjust:100%; text-size-adjust:100% }
body{ margin:0; background:var(--bg); color:var(--ink); font:400 var(--fs-14)/1.5 var(--font-ui); -webkit-font-smoothing:antialiased; font-feature-settings:"tnum" 0; }
h1,h2,h3,h4{ margin:0; font-weight:650; letter-spacing:-.01em; line-height:1.2; color:var(--ink) }
h1{ font-size:var(--fs-28) } h2{ font-size:var(--fs-22) } h3{ font-size:var(--fs-16) } h4{ font-size:var(--fs-14) }
p{ margin:0 }
a{ color:var(--accent); text-decoration:none; text-underline-offset:3px }
a:hover{ text-decoration:underline }
button,input,select,textarea{ font:inherit; color:inherit }
button{ cursor:pointer }
:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; border-radius:var(--r-xs) }
::selection{ background:var(--accent-soft) }
.num,.tnum{ font-variant-numeric:tabular-nums }
.mono{ font-family:var(--font-mono); font-size:.92em; letter-spacing:0 }
.muted{ color:var(--ink-3) } .faint{ color:var(--ink-4) }
.caps{ font-size:var(--fs-12); font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-3) }
.sr{ position:absolute!important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap }
.skip{ position:fixed; left:12px; top:-60px; z-index:100; background:var(--accent); color:var(--accent-ink); padding:8px 12px; border-radius:var(--r-sm) }
.skip:focus{ top:12px }
.ic{ width:20px; height:20px; flex:none; display:inline-block; vertical-align:middle }
/* Двухтоновые значки: заливка тем же цветом, что и штрих, но прозрачная; точки — сплошные. */
.ic .f{ fill:currentColor; stroke:none; opacity:.16 } .ic .d{ fill:currentColor; stroke:none }
:root[data-theme="dark"] .ic .f{ opacity:.24 } @media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .ic .f{ opacity:.24 } }
.ic--16{ width:16px; height:16px } .ic--24{ width:24px; height:24px }
[data-icon]{ display:inline-flex }
[hidden]{ display:none !important }

/* ---------- Каркас ---------- */
.page{ max-width:1240px; margin:0 auto; padding:0 var(--gut) }
.hdr{ position:sticky; top:0; z-index:40; background:var(--surface); border-bottom:1px solid var(--line); padding-top:env(safe-area-inset-top) }
.hdr__in{ height:var(--hdr); display:flex; align-items:center; gap:16px; padding:0 max(16px,env(safe-area-inset-right)) 0 var(--gut); max-width:1600px; margin:0 auto }
.brand{ display:flex; align-items:center; gap:10px; color:var(--ink); text-decoration:none!important; flex:none }
.brand__logo{ height:38px; width:auto; display:block }
.brand__mark{ width:34px; height:34px; display:none }
.brand__d{ display:none!important }
:root[data-theme="dark"] .brand__l{ display:none!important }
:root[data-theme="dark"] .brand__logo.brand__d{ display:block!important }
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]) .brand__l{ display:none!important } :root:not([data-theme="light"]) .brand__logo.brand__d{ display:block!important } }
@media (prefers-color-scheme:dark) and (max-width:1360px){ :root:not([data-theme="light"]) .brand__mark.brand__d{ display:block!important } }
@media (max-width:1360px){ .brand__logo{ display:none!important } .brand__mark.brand__l{ display:block } :root[data-theme="dark"] .brand__mark.brand__l{ display:none!important } :root[data-theme="dark"] .brand__mark.brand__d{ display:block!important } }
.brand__txt{ display:flex; flex-direction:column; line-height:1.15 }
.brand__txt b{ font-size:var(--fs-14); font-weight:650; letter-spacing:-.01em }
.brand__txt span{ font-size:var(--fs-12); color:var(--ink-3) }
.nav{ display:flex; align-items:center; gap:2px; min-width:0 }
.nav__a{ position:relative; display:inline-flex; align-items:center; gap:6px; height:36px; padding:0 10px; border-radius:var(--r-sm); color:var(--ink-2); font-weight:500; text-decoration:none!important; white-space:nowrap; border:0; background:none; transition:background var(--dur) var(--ease), color var(--dur) var(--ease) }
.nav__a:hover{ background:var(--surface-2); color:var(--ink) }
.nav__a[aria-current="page"]{ color:var(--ink) }
.nav__a[aria-current="page"]::after{ content:""; position:absolute; left:10px; right:10px; bottom:-10px; height:2px; background:var(--accent); border-radius:2px }
.nav__a--edu .nav__pip{ width:6px; height:6px; border-radius:50%; background:var(--edu) }
.cmdk{ margin-left:auto; display:flex; align-items:center; gap:8px; height:36px; width:260px; padding:0 6px 0 10px; border:1px solid var(--line); border-radius:var(--r-sm); background:var(--surface-2); color:var(--ink-3); transition:border-color var(--dur) var(--ease), background var(--dur) var(--ease) }
.cmdk:hover{ border-color:var(--line-strong); background:var(--surface) }
.cmdk__ph{ flex:1; text-align:left; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.hdr__tools{ display:flex; align-items:center; gap:4px; flex:none }
.clock{ display:flex; flex-direction:column; align-items:flex-end; line-height:1.1; padding:0 8px; margin-right:4px; border-right:1px solid var(--line) }
.clock b{ font-size:var(--fs-16); font-weight:600 }
.clock span{ font-size:var(--fs-12); color:var(--ink-3) }
.hdr__m{ display:none }
.dot{ position:absolute; top:7px; right:7px; width:7px; height:7px; border-radius:50%; background:var(--bad); box-shadow:0 0 0 2px var(--surface) }
.login{ margin-left:4px }
#main{ outline:none; min-height:calc(100dvh - var(--hdr)) }
.view{ display:none } .view.is-on{ display:block; animation:fade var(--dur) var(--ease) }
@keyframes fade{ from{ opacity:0; transform:translateY(4px) } to{ opacity:1; transform:none } }
@keyframes pop{ from{ opacity:0; transform:translateY(6px) scale(.98) } to{ opacity:1; transform:none } }
@keyframes slideR{ from{ transform:translateX(24px); opacity:0 } to{ transform:none; opacity:1 } }
@keyframes slideU{ from{ transform:translateY(100%) } to{ transform:none } }
.boot__grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:12px; margin-top:40px }
.boot__grid .skeleton{ height:108px }

/* ---------- Компоненты ---------- */
.btn{ --b:var(--line-strong); display:inline-flex; align-items:center; justify-content:center; gap:8px; height:40px; padding:0 14px; border:1px solid var(--b); border-radius:var(--r-sm); background:var(--surface); color:var(--ink); font-weight:500; font-size:var(--fs-14); white-space:nowrap; text-decoration:none!important; position:relative; transition:background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform 80ms var(--ease) }
.btn:hover{ background:var(--surface-2) }
.btn:active{ transform:translateY(1px) }
.btn:disabled,.btn[aria-disabled="true"]{ opacity:.45; pointer-events:none }
.btn--primary{ --b:var(--accent); background:var(--accent); color:var(--accent-ink) }
.btn--primary:hover{ background:var(--accent-hover); --b:var(--accent-hover) }
.btn--ghost{ --b:transparent; background:transparent; color:var(--ink-2) }
.btn--ghost:hover{ background:var(--surface-2); color:var(--ink) }
.btn--sm{ height:32px; padding:0 10px; font-size:var(--fs-13); gap:6px }
.btn--sm .ic{ width:16px; height:16px }
.btn--icon{ width:40px; padding:0 } .btn--icon.btn--sm{ width:32px }
.btn--pill{ border-radius:var(--r-pill) }
.btn--edu{ --b:var(--edu-line); background:var(--edu-soft); color:var(--ink) }
.btn[aria-pressed="true"]{ background:var(--accent-soft); --b:var(--accent-line); color:var(--accent) }
.btn--icon[aria-pressed="true"]{ color:var(--accent) }
.btn .kbd{ margin-left:2px }
.chip{ display:inline-flex; align-items:center; gap:6px; height:32px; padding:0 12px; border:1px solid var(--line); border-radius:var(--r-pill); background:var(--surface); color:var(--ink-2); font-size:var(--fs-13); font-weight:500; white-space:nowrap; transition:background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease) }
.chip:hover{ border-color:var(--line-strong); color:var(--ink) }
.chip.is-active,.chip[aria-pressed="true"]{ background:var(--ink); border-color:var(--ink); color:var(--surface) }
.chip.is-active .chip__count,.chip[aria-pressed="true"] .chip__count{ color:inherit; opacity:.7 }
.chip__count{ color:var(--ink-4); font-variant-numeric:tabular-nums; font-size:var(--fs-12) }
.chip__sw{ width:8px; height:8px; border-radius:2px; flex:none }
.chip--edu .chip__sw{ border-radius:50% }
.chip--x{ background:var(--accent-soft); border-color:var(--accent-line); color:var(--accent); padding-right:6px }
.chip--x .ic{ width:16px; height:16px }
.badge{ display:inline-flex; align-items:center; gap:4px; height:22px; padding:0 8px; border-radius:var(--r-xs); background:var(--surface-2); color:var(--ink-2); font-size:var(--fs-12); font-weight:600; white-space:nowrap; line-height:1 }
.badge--ok{ background:var(--ok-soft); color:var(--ok) } .badge--warn{ background:var(--warn-soft); color:var(--warn) } .badge--bad{ background:var(--bad-soft); color:var(--bad) } .badge--info{ background:var(--info-soft); color:var(--info) } .badge--edu{ background:var(--edu-soft); color:var(--edu) }
.badge--dot::before{ content:""; width:6px; height:6px; border-radius:50%; background:currentColor }
.card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md) }
.card--pad{ padding:20px }
.stat{ display:flex; flex-direction:column; gap:4px; min-width:0 }
.stat__value{ font-size:var(--fs-28); font-weight:650; letter-spacing:-.02em; line-height:1.05; font-variant-numeric:tabular-nums; color:var(--ink) }
.stat--lg .stat__value{ font-size:var(--fs-36) }
.stat__label{ font-size:var(--fs-13); color:var(--ink-3) }
.stat__delta{ font-size:var(--fs-12); font-weight:600; font-variant-numeric:tabular-nums; color:var(--ink-3) }
.stat__delta.is-up{ color:var(--ok) } .stat__delta.is-down{ color:var(--bad) }
.stat--ok .stat__value{ color:var(--ok) } .stat--edu .stat__value{ color:var(--edu) }
.table-wrap{ overflow:auto; border:1px solid var(--line); border-radius:var(--r-md); background:var(--surface) }
.table{ width:100%; border-collapse:separate; border-spacing:0; font-size:var(--fs-14) }
.table th{ position:sticky; top:0; z-index:2; background:var(--surface); text-align:left; font-size:var(--fs-12); font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--ink-3); padding:10px 12px; border-bottom:1px solid var(--line); white-space:nowrap }
.table th.is-num,.table td.is-num{ text-align:right; font-variant-numeric:tabular-nums }
.table th button{ all:unset; cursor:pointer; display:inline-flex; align-items:center; gap:4px }
.table th button:focus-visible{ outline:2px solid var(--accent); outline-offset:2px }
.table th[aria-sort] button{ color:var(--ink) }
.table td{ padding:12px; border-bottom:1px solid var(--line); vertical-align:top }
.table tr:last-child td{ border-bottom:0 }
.table tbody tr{ transition:background var(--dur) var(--ease) }
.table tbody tr:hover{ background:var(--surface-2) }
.table tbody tr.is-sel{ background:var(--accent-soft) }
.table--compact td{ padding:6px 12px }
.table--compact .t-sub{ display:none }
.tabs{ display:flex; gap:4px; border-bottom:1px solid var(--line); overflow-x:auto; scrollbar-width:none }
.tabs::-webkit-scrollbar{ display:none }
.tab{ position:relative; height:40px; padding:0 12px; border:0; background:none; color:var(--ink-3); font-weight:500; white-space:nowrap; text-decoration:none!important; display:inline-flex; align-items:center; gap:6px }
.tab:hover{ color:var(--ink) }
.tab[aria-selected="true"],.tab.is-active{ color:var(--ink) }
.tab[aria-selected="true"]::after,.tab.is-active::after{ content:""; position:absolute; left:12px; right:12px; bottom:-1px; height:2px; background:var(--accent) }
.tab--edu[aria-selected="true"]::after,.tab--edu.is-active::after{ background:var(--edu) }
.seg{ display:inline-flex; padding:2px; gap:2px; background:var(--surface-2); border:1px solid var(--line); border-radius:var(--r-sm) }
.seg button{ display:inline-flex; align-items:center; gap:6px; height:30px; padding:0 12px; border:0; border-radius:4px; background:none; color:var(--ink-3); font-weight:500; font-size:var(--fs-13); transition:background var(--dur) var(--ease), color var(--dur) var(--ease) }
.seg button .ic{ width:16px; height:16px }
.seg button:hover{ color:var(--ink) }
.seg button[aria-pressed="true"],.seg button[aria-selected="true"],.seg button.is-active{ background:var(--surface); color:var(--ink); box-shadow:0 0 0 1px var(--line) }
.field{ display:flex; flex-direction:column; gap:6px }
.field > label,.field__label{ font-size:var(--fs-13); font-weight:500; color:var(--ink-2) }
.field__hint{ font-size:var(--fs-12); color:var(--ink-3) }
.input,.select,textarea.input{ height:40px; width:100%; padding:0 12px; border:1px solid var(--line-strong); border-radius:var(--r-sm); background:var(--surface); color:var(--ink); transition:border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease) }
textarea.input{ height:auto; min-height:96px; padding:10px 12px; resize:vertical; line-height:1.5 }
.input::placeholder{ color:var(--ink-4) }
.input:hover,.select:hover{ border-color:var(--ink-4) }
.input:focus,.select:focus{ outline:none; border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft) }
.select{ appearance:none; padding-right:32px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7773' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 10px center }
.select--sm{ height:32px; font-size:var(--fs-13); padding-left:10px }
.search{ position:relative; display:flex; align-items:center }
.search > .ic{ position:absolute; left:12px; color:var(--ink-3); pointer-events:none }
.search .input{ padding-left:40px; padding-right:40px }
.search .kbd{ position:absolute; right:10px }
.search__clr{ position:absolute; right:6px; width:28px; height:28px; display:grid; place-items:center; border:0; background:none; color:var(--ink-3); border-radius:var(--r-xs) }
.search__clr:hover{ background:var(--surface-2); color:var(--ink) }
.empty{ display:flex; flex-direction:column; align-items:flex-start; gap:8px; padding:32px 24px; border:1px dashed var(--line-strong); border-radius:var(--r-md); background:var(--surface) }
.empty__ic{ width:40px; height:40px; display:grid; place-items:center; border-radius:var(--r-sm); background:var(--surface-2); color:var(--ink-3); margin-bottom:4px }
.empty h3{ font-size:var(--fs-16) }
.empty p{ color:var(--ink-3); max-width:52ch }
.empty .btn{ margin-top:8px }
.empty--center{ align-items:center; text-align:center }
.skeleton{ display:block; border-radius:var(--r-sm); background:linear-gradient(90deg,var(--surface-2) 0%,var(--surface-3) 40%,var(--surface-2) 80%); background-size:300% 100%; animation:shim 1.4s linear infinite; min-height:12px }
@keyframes shim{ from{ background-position:100% 0 } to{ background-position:-200% 0 } }
.progress{ position:relative; height:6px; border-radius:var(--r-pill); background:var(--surface-3); overflow:hidden }
.progress > i{ position:absolute; inset:0 auto 0 0; border-radius:inherit; background:var(--accent); transition:width 300ms var(--ease) }
.progress--edu > i{ background:var(--edu) } .progress--ok > i{ background:var(--ok) } .progress--warn > i{ background:var(--warn) } .progress--bad > i{ background:var(--bad) }
.kbd{ display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px; padding:0 5px; border:1px solid var(--line-strong); border-bottom-width:2px; border-radius:4px; background:var(--surface); color:var(--ink-3); font:500 11px/1 var(--font-mono); white-space:nowrap }
.section-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:16px }
.section-head__t{ display:flex; flex-direction:column; gap:4px; min-width:0 }
.section-head__t p{ color:var(--ink-3); max-width:68ch }
.section-head__a{ display:flex; gap:8px; align-items:center; flex-wrap:wrap }
.section-head--sm h2{ font-size:var(--fs-18) }
.ring{ position:relative; display:inline-grid; place-items:center }
.ring svg{ transform:rotate(-90deg) }
.ring b{ position:absolute; font-size:var(--fs-13); font-weight:600; font-variant-numeric:tabular-nums }
.spark{ display:block; overflow:visible }
.bars{ display:flex; flex-direction:column; gap:2px }
.bars__row{ display:grid; grid-template-columns:minmax(120px,38%) 1fr 48px; align-items:center; gap:12px; padding:6px 8px; margin:0 -8px; border:0; border-radius:var(--r-xs); background:none; text-align:left; font-size:var(--fs-13); color:var(--ink-2); transition:background var(--dur) var(--ease) }
button.bars__row:hover{ background:var(--surface-2); color:var(--ink) }
.bars__row.is-active{ background:var(--accent-soft); color:var(--ink) }
.bars__l{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; display:flex; align-items:center; gap:8px }
.bars__t{ height:8px; border-radius:2px; background:var(--surface-2); overflow:hidden }
.bars__t i{ display:block; height:100%; background:var(--accent); border-radius:2px }
.bars--edu .bars__t i{ background:var(--edu) }
.bars__v{ text-align:right; font-variant-numeric:tabular-nums; font-weight:600; color:var(--ink) }
.cols{ display:flex; align-items:flex-end; gap:6px; height:160px; padding-top:20px }
.cols__c{ flex:1; display:flex; flex-direction:column; align-items:center; gap:6px; height:100%; justify-content:flex-end; border:0; background:none; padding:0; border-radius:var(--r-xs); color:var(--ink-3); font-size:var(--fs-12) }
.cols__c i{ width:100%; max-width:40px; background:var(--accent); border-radius:3px 3px 0 0; position:relative; min-height:2px; transition:background var(--dur) var(--ease) }
.cols__c i b{ position:absolute; top:-18px; left:50%; transform:translateX(-50%); font-weight:600; color:var(--ink); font-size:var(--fs-12); font-variant-numeric:tabular-nums }
.cols__c:hover i{ background:var(--accent-hover) }
.cols__c.is-active i{ background:var(--ink) }
.dl{ display:grid; grid-template-columns:minmax(120px,34%) 1fr; gap:0; margin:0 }
.dl dt{ padding:10px 0; color:var(--ink-3); font-size:var(--fs-13); border-top:1px solid var(--line) }
.dl dd{ margin:0; padding:10px 0; border-top:1px solid var(--line); min-width:0; display:flex; align-items:flex-start; gap:8px; justify-content:space-between; overflow-wrap:anywhere }
.dl dt:first-of-type,.dl dd:first-of-type{ border-top:0 }
.copy{ flex:none; width:28px; height:28px; display:grid; place-items:center; border:0; border-radius:var(--r-xs); background:none; color:var(--ink-3); opacity:.7; transition:opacity var(--dur), background var(--dur) }
.copy:hover{ opacity:1; background:var(--surface-2); color:var(--ink) }
.copy .ic{ width:16px; height:16px }
.lock{ display:flex; align-items:center; gap:12px; padding:12px 14px; border:1px solid var(--line); border-radius:var(--r-sm); background:var(--surface-2); color:var(--ink-2); font-size:var(--fs-13) }
.lock > .ic{ color:var(--ink-3) }
.lock > span{ flex:1 }
.lock-inline{ display:inline-flex; align-items:center; gap:6px; color:var(--ink-3); font-size:var(--fs-13); border:0; background:none; padding:0 }
.lock-inline .ic{ width:14px; height:14px }
.lock-inline:hover{ color:var(--accent) }
.status{ display:inline-flex; align-items:center; gap:6px; font-weight:500; font-size:var(--fs-13); white-space:nowrap }
.status::before{ content:""; width:8px; height:8px; border-radius:50%; background:currentColor; flex:none }
.status--ok{ color:var(--ok) } .status--warn{ color:var(--warn) } .status--bad{ color:var(--ink-3) } .status--bad::before{ background:var(--bad) }
.cat-ic{ width:32px; height:32px; flex:none; display:grid; place-items:center; border-radius:var(--r-sm); color:var(--c); background:color-mix(in srgb, var(--c) 13%, var(--surface)) }
.cat-ic .ic{ width:18px; height:18px }
.cat-ic--sm{ width:24px; height:24px; border-radius:var(--r-xs) } .cat-ic--sm .ic{ width:14px; height:14px }
.cat-ic--lg{ width:44px; height:44px; border-radius:var(--r-md) } .cat-ic--lg .ic{ width:24px; height:24px }
.cb{ width:18px; height:18px; margin:0; accent-color:var(--accent); cursor:pointer; flex:none }
.link{ border:0; background:none; padding:0; color:var(--accent); font-weight:500; display:inline-flex; align-items:center; gap:4px }
.link:hover{ text-decoration:underline }
.link .ic{ width:16px; height:16px }
.hr{ height:1px; background:var(--line); border:0; margin:16px 0 }
.grid{ display:grid; gap:16px }
.stack{ display:flex; flex-direction:column; gap:12px }
.row{ display:flex; align-items:center; gap:8px; flex-wrap:wrap }
.spacer{ flex:1 }

/* ---------- Поповеры, модалки, шторки, тосты ---------- */
.pop{ position:fixed; z-index:70; min-width:220px; max-width:min(360px, calc(100vw - 24px)); max-height:min(460px, 70vh); overflow:auto; padding:6px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md); box-shadow:var(--shadow-pop); animation:pop 120ms var(--ease) }
.pop__h{ padding:8px 10px 4px }
.pop__i{ display:flex; align-items:center; gap:10px; width:100%; min-height:36px; padding:6px 10px; border:0; border-radius:var(--r-xs); background:none; text-align:left; color:var(--ink); font-size:var(--fs-14) }
.pop__i:hover,.pop__i:focus-visible{ background:var(--surface-2); outline:none }
.pop__i .ic{ color:var(--ink-3); width:18px; height:18px }
.pop__i .pop__n{ margin-left:auto; color:var(--ink-4); font-variant-numeric:tabular-nums; font-size:var(--fs-12) }
.pop__i[aria-checked="true"]{ color:var(--accent); font-weight:500 }
.pop__i[aria-checked="true"]::after{ content:""; width:16px; height:16px; margin-left:4px; background:currentColor; -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat }
.pop__sep{ height:1px; background:var(--line); margin:6px 4px }
.pop .input{ margin:4px 0 6px }
.scrim{ position:fixed; inset:0; z-index:80; background:rgba(10,16,14,.42); display:grid; place-items:center; padding:16px; animation:fade 120ms var(--ease) }
[data-theme="dark"] .scrim{ background:rgba(0,0,0,.6) }
.modal{ width:min(560px,100%); max-height:min(86vh,760px); display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--shadow-pop); animation:pop var(--dur) var(--ease) }
.modal--wide{ width:min(820px,100%) }
.modal__h{ display:flex; align-items:center; gap:12px; padding:16px 16px 12px 20px }
.modal__h h2{ font-size:var(--fs-18); flex:1 }
.modal__b{ padding:0 20px 20px; overflow:auto }
.modal__f{ display:flex; gap:8px; justify-content:flex-end; padding:12px 20px; border-top:1px solid var(--line) }
.sheet{ position:fixed; z-index:81; top:0; right:0; bottom:0; width:min(440px,100%); display:flex; flex-direction:column; background:var(--surface); border-left:1px solid var(--line); box-shadow:var(--shadow-pop); animation:slideR var(--dur) var(--ease) }
.sheet__grip{ display:none }
.sheet .modal__b{ flex:1 }
.toasts{ position:fixed; z-index:90; left:50%; bottom:calc(24px + var(--tabbar) + env(safe-area-inset-bottom)); transform:translateX(-50%); display:flex; flex-direction:column; gap:8px; align-items:center; pointer-events:none }
.toast{ pointer-events:auto; display:flex; align-items:center; gap:12px; min-height:44px; padding:8px 8px 8px 16px; background:var(--ink); color:var(--surface); border-radius:var(--r-sm); box-shadow:var(--shadow-pop); font-size:var(--fs-14); animation:pop var(--dur) var(--ease); max-width:calc(100vw - 32px) }
.toast .ic{ color:var(--accent-line) }
.toast button{ border:0; background:none; color:var(--accent-line); font-weight:600; padding:6px 10px; border-radius:var(--r-xs) }
[data-theme="dark"] .toast .ic,[data-theme="dark"] .toast button{ color:var(--accent-hover) }
.toast button:hover{ background:rgba(255,255,255,.08) }

/* ---------- Командная строка ---------- */
.cmd{ position:fixed; inset:0; z-index:85; background:rgba(10,16,14,.36); display:flex; justify-content:center; align-items:flex-start; padding:12vh 16px 16px; animation:fade 100ms var(--ease) }
.cmd__box{ width:min(680px,100%); max-height:72vh; display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--shadow-pop); overflow:hidden; animation:pop 140ms var(--ease) }
.cmd__in{ display:flex; align-items:center; gap:10px; padding:0 16px; border-bottom:1px solid var(--line) }
.cmd__in .ic{ color:var(--ink-3) }
.cmd__in input{ flex:1; height:56px; border:0; background:none; outline:none; font-size:var(--fs-16) }
.cmd__list{ overflow:auto; padding:6px }
.cmd__g{ padding:10px 10px 4px }
.cmd__i{ display:flex; align-items:center; gap:12px; width:100%; min-height:44px; padding:6px 10px; border:0; border-radius:var(--r-sm); background:none; text-align:left; color:var(--ink) }
.cmd__i[aria-selected="true"]{ background:var(--surface-2) }
.cmd__i[aria-selected="true"] .cmd__go{ opacity:1 }
.cmd__ic{ width:28px; height:28px; display:grid; place-items:center; border-radius:var(--r-xs); background:var(--surface-2); color:var(--ink-2); flex:none }
.cmd__ic .ic{ width:16px; height:16px }
.cmd__i--smart .cmd__ic{ background:var(--accent-soft); color:var(--accent) }
.cmd__i--edu .cmd__ic{ background:var(--edu-soft); color:var(--edu) }
.cmd__t{ flex:1; min-width:0; display:flex; flex-direction:column }
.cmd__t b{ font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.cmd__t span{ font-size:var(--fs-12); color:var(--ink-3); overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.cmd__go{ opacity:0; color:var(--ink-3) }
.cmd__f{ display:flex; gap:16px; padding:8px 16px; border-top:1px solid var(--line); font-size:var(--fs-12); color:var(--ink-3) }
.cmd__f span{ display:inline-flex; gap:6px; align-items:center }
.cmd mark{ background:none; color:var(--accent); font-weight:600 }

/* ---------- Главная ---------- */
.home{ padding:40px 0 64px }
.hero{ display:grid; grid-template-columns:minmax(0,7fr) minmax(0,5fr); gap:40px; align-items:start; padding-bottom:40px; border-bottom:1px solid var(--line) }
.hero__k{ display:inline-flex; align-items:center; gap:8px; font-size:var(--fs-13); color:var(--ink-3) }
.hero h1{ font-size:var(--fs-36); font-weight:700; letter-spacing:-.02em; margin:12px 0 8px; line-height:1.1 }
.hero__sub{ color:var(--ink-2); font-size:var(--fs-16); max-width:56ch }
.hsearch{ position:relative; margin-top:24px }
.hsearch .input{ height:56px; font-size:var(--fs-16); padding-left:48px; padding-right:120px; border-radius:var(--r-md) }
.hsearch > .ic{ left:16px; width:22px; height:22px }
.hsearch .btn{ position:absolute; right:6px; top:6px; height:44px }
.hsearch .kbd{ right:116px }
.suggest{ position:absolute; z-index:30; left:0; right:0; top:calc(100% + 6px); background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md); box-shadow:var(--shadow-pop); padding:6px; max-height:420px; overflow:auto; animation:pop 120ms var(--ease) }
.hero__acts{ display:flex; flex-wrap:wrap; gap:8px; margin-top:16px }
.hero__facts{ display:grid; grid-template-columns:1fr 1fr; border:1px solid var(--line); border-radius:var(--r-md); background:var(--surface); overflow:hidden }
.hero__facts .stat{ padding:20px; border-right:1px solid var(--line); border-bottom:1px solid var(--line) }
.hero__facts .stat:nth-child(odd){ border-right:0 }
.hero__facts .stat:nth-last-child(-n+2){ border-bottom:0 }
.hero__facts-h{ grid-column:1/-1; display:flex; justify-content:space-between; align-items:center; padding:12px 20px; border-bottom:1px solid var(--line); background:var(--surface-2) }
.near{ margin-top:20px }
.near__list{ display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:12px }
.hblock{ padding-top:40px }
.hblock--ph{ display:grid; grid-template-columns:repeat(4,1fr); gap:12px }
.tiles{ display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px }
.tile{ display:flex; flex-direction:column; align-items:flex-start; gap:12px; padding:16px; min-height:128px; border:1px solid var(--line); border-radius:var(--r-md); background:var(--surface); text-align:left; color:var(--ink); transition:border-color var(--dur) var(--ease), background var(--dur) var(--ease) }
.tile:hover{ border-color:var(--line-strong); background:var(--surface-2) }
.tile b{ font-weight:600; line-height:1.3 }
.tile span.n{ margin-top:auto; color:var(--ink-3); font-size:var(--fs-13); font-variant-numeric:tabular-nums }
.home2{ display:grid; grid-template-columns:1fr 1fr; gap:24px }
.feed{ display:flex; flex-direction:column }
.feed__i{ display:grid; grid-template-columns:auto 1fr; gap:4px 12px; padding:12px 0; border-top:1px solid var(--line); color:var(--ink); text-decoration:none!important; text-align:left; background:none; border-left:0; border-right:0; border-bottom:0; width:100% }
.feed__i:first-child{ border-top:0 }
.feed__i:hover b{ color:var(--accent) }
.feed__d{ grid-row:span 2; width:56px; color:var(--ink-3); font-size:var(--fs-12); font-variant-numeric:tabular-nums; padding-top:2px }
.feed__i b{ font-weight:500 }
.feed__m{ font-size:var(--fs-13); color:var(--ink-3) }

/* ---------- Строка организации ---------- */
.orow{ display:grid; grid-template-columns:auto 1fr auto; align-items:start; gap:12px; padding:12px; border-radius:var(--r-sm); color:var(--ink); cursor:pointer; text-decoration:none!important; transition:background var(--dur) var(--ease); position:relative }
.orow:hover{ background:var(--surface-2) }
.orow.is-open{ background:var(--accent-soft) }
.orow.is-sel{ background:color-mix(in srgb, var(--accent-soft) 60%, var(--surface)) }
.orow__t{ min-width:0 }
.orow__t b{ display:block; font-weight:600; line-height:1.3; overflow:hidden; text-overflow:ellipsis }
.orow__s{ font-size:var(--fs-13); color:var(--ink-3); margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.orow__m{ display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; margin-top:6px; font-size:var(--fs-12); color:var(--ink-3) }
.orow__m .status{ font-size:var(--fs-12) }
.orow__a{ display:flex; gap:2px; opacity:.0; transition:opacity var(--dur) }
.orow:hover .orow__a,.orow:focus-within .orow__a{ opacity:1 }
.olist{ display:flex; flex-direction:column; gap:2px }
.olist--bordered .orow{ border-bottom:1px solid var(--line); border-radius:0 }
.more-btn{ margin:12px auto; display:flex }

/* ---------- Панель фильтров ---------- */
.fbar{ display:flex; flex-direction:column; gap:10px }
.fbar__r{ display:flex; align-items:center; gap:8px; flex-wrap:wrap }
.fbar__q{ flex:1 1 280px; min-width:200px }
.fbar__chips{ display:flex; gap:6px; overflow-x:auto; scrollbar-width:none; padding:2px; margin:-2px }
.fbar__chips::-webkit-scrollbar{ display:none }
.fbar__act{ display:flex; gap:6px; flex-wrap:wrap; align-items:center }
.fbar__count{ font-size:var(--fs-13); color:var(--ink-3) } .fbar__count b{ color:var(--ink); font-weight:600 }
.dd{ display:inline-flex; align-items:center; gap:6px; height:32px; padding:0 8px 0 12px; border:1px solid var(--line); border-radius:var(--r-sm); background:var(--surface); color:var(--ink-2); font-size:var(--fs-13); font-weight:500; white-space:nowrap }
.dd:hover{ border-color:var(--line-strong); color:var(--ink) }
.dd .ic{ width:16px; height:16px; color:var(--ink-4) }
.dd.is-set{ border-color:var(--accent-line); background:var(--accent-soft); color:var(--accent) }
.dd.is-set .ic{ color:var(--accent) }
.dd--edu.is-set{ border-color:var(--edu-line); background:var(--edu-soft); color:var(--edu) }
.dd--edu.is-set .ic{ color:var(--edu) }
.fcount{ display:inline-grid; place-items:center; min-width:18px; height:18px; padding:0 5px; border-radius:var(--r-pill); background:var(--accent); color:var(--accent-ink); font-size:13px; font-weight:600 }

/* ---------- Карта ---------- */
.mapv{ position:relative; height:calc(100dvh - var(--hdr-h, calc(var(--hdr) + 1px))); overflow:hidden }
.mapv .fbar__q{ flex-basis:160px; min-width:160px }
.fbar__fbtn-m{ display:none }
.pf__head h1:focus{ outline:none }
.mapv__map{ position:absolute; inset:0; background:var(--surface-2) }
.mapv__panel{ position:absolute; z-index:500; top:12px; left:12px; bottom:12px; width:384px; display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md); box-shadow:var(--shadow-pop); overflow:hidden; transition:transform var(--dur) var(--ease) }
.mapv__ph{ padding:12px; border-bottom:1px solid var(--line) }
.mapv__list{ flex:1; overflow:auto; padding:6px }
.mapv__foot{ display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 12px; border-top:1px solid var(--line); font-size:var(--fs-12); color:var(--ink-3) }
.mapv.is-full .mapv__panel{ transform:translateX(calc(-100% - 24px)) }
.mapv__grip{ display:none }
.tz{ position:absolute; z-index:450; top:12px; left:408px; right:64px; display:flex; align-items:center; gap:4px; padding:4px; background:color-mix(in srgb, var(--surface) 94%, transparent); border:1px solid var(--line); border-radius:var(--r-md); box-shadow:var(--shadow-pop); overflow-x:auto; scrollbar-width:none; transition:left var(--dur) var(--ease) }
.mapv.is-full .tz{ left:12px }
.tz::-webkit-scrollbar{ display:none }
.tz__b{ flex:none; display:flex; flex-direction:column; align-items:flex-start; gap:0; min-width:76px; padding:4px 10px; border:0; border-radius:var(--r-sm); background:none; text-align:left; color:var(--ink-2); line-height:1.25; transition:background var(--dur) var(--ease) }
.tz__b:hover{ background:var(--surface-2) }
.tz__b b{ font-size:var(--fs-14); font-weight:600; font-variant-numeric:tabular-nums; color:var(--ink) }
.tz__b span{ font-size:13px; color:var(--ink-3); font-variant-numeric:tabular-nums; white-space:nowrap }
.tz__b.is-active{ background:var(--ink) } .tz__b.is-active b,.tz__b.is-active span{ color:var(--surface) }
.tz__b.is-zero{ opacity:.45 }
.tz__tog{ flex:none; position:sticky; left:0; z-index:1; background:var(--surface) }
.tz.is-collapsed{ right:auto }
.tz.is-collapsed .tz__b{ display:none }
.mapctl{ position:absolute; z-index:450; right:12px; top:12px; display:flex; flex-direction:column; gap:8px }
.mapctl__g{ display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-sm); box-shadow:var(--shadow-pop); overflow:hidden }
.mapctl__g .btn{ border:0; border-radius:0; width:40px; height:40px; padding:0 }
.mapctl__g .btn + .btn{ border-top:1px solid var(--line) }
.legend{ position:absolute; z-index:450; right:64px; bottom:28px; padding:12px; width:240px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md); box-shadow:var(--shadow-pop); font-size:var(--fs-13); animation:pop 120ms var(--ease) }
.legend__i{ display:flex; align-items:center; gap:8px; padding:3px 0 }
.legend__i .num{ margin-left:auto; color:var(--ink-3) }
.mk{ width:28px; height:28px; display:grid; place-items:center; border-radius:50%; background:var(--c); color:#fff; border:2px solid var(--surface); box-shadow:0 1px 3px rgba(0,0,0,.35); transition:transform 120ms var(--ease) }
.mk .ic{ width:14px; height:14px; stroke-width:2 }
.mk.is-open{ transform:scale(1.25); box-shadow:0 0 0 3px var(--accent), 0 2px 6px rgba(0,0,0,.4) }
.mk.is-dim{ opacity:.35 }
.mcl{ width:40px; height:40px; display:grid; place-items:center; border-radius:50%; background:var(--ink); color:var(--surface); font-weight:600; font-size:var(--fs-13); font-variant-numeric:tabular-nums; box-shadow:0 0 0 4px color-mix(in srgb, var(--ink) 18%, transparent), 0 1px 4px rgba(0,0,0,.3) }
.mcl--m{ width:46px; height:46px } .mcl--l{ width:54px; height:54px; font-size:var(--fs-14) }
.leaflet-container{ font-family:var(--font-ui); background:var(--surface-2); isolation:isolate }
.mapv,.regmap,.pf__mini{ isolation:isolate }
.tiles-calm{ filter:saturate(.45) contrast(.92) brightness(1.03) }
[data-theme="dark"] .tiles-calm{ filter:invert(1) hue-rotate(180deg) brightness(.82) contrast(.88) saturate(.35) }
[data-theme="dark"] .leaflet-container{ background:#1a2120 }
.fbar [data-sort]{ max-width:172px }
.leaflet-control-attribution{ font-size:13px; background:color-mix(in srgb, var(--surface) 85%, transparent)!important; color:var(--ink-3) }
.leaflet-control-attribution a{ color:var(--ink-2) }
.leaflet-tooltip.mlabel{ background:var(--surface); color:var(--ink); border:1px solid var(--line); border-radius:var(--r-xs); box-shadow:none; font-size:13px; font-weight:500; padding:1px 5px }
.leaflet-tooltip.mlabel::before{ display:none }
.leaflet-marker-icon.mk-wrap{ background:none; border:0 }
.leaflet-div-icon{ background:none; border:0 }
.ymaps{ display:inline-flex; align-items:center; gap:6px; font-size:var(--fs-12); color:var(--ink-3) }

/* ---------- Реестр ---------- */
.reg{ padding:24px 0 96px }
.reg__top{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:16px }
.reg__top h1{ font-size:var(--fs-28) }
.reg__lay{ display:grid; grid-template-columns:220px minmax(0,1fr); gap:24px; align-items:start }
.rail{ position:sticky; top:calc(var(--hdr) + 16px); display:flex; flex-direction:column; gap:2px }
.rail__i{ display:flex; align-items:center; gap:10px; height:36px; padding:0 10px; border:0; border-radius:var(--r-sm); background:none; color:var(--ink-2); text-align:left; font-weight:500 }
.rail__i:hover{ background:var(--surface-2); color:var(--ink) }
.rail__i[aria-current="true"]{ background:var(--surface); color:var(--ink); box-shadow:0 0 0 1px var(--line) }
.rail__i .ic{ width:18px; height:18px; color:var(--ink-3) }
.rail__i .num{ margin-left:auto; color:var(--ink-4); font-size:var(--fs-12) }
.rail__h{ display:flex; align-items:center; justify-content:space-between; padding:16px 10px 6px }
.reg__body{ display:flex; flex-direction:column; gap:16px; min-width:0 }
.reg__fbar{ padding:12px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md) }
.reg .table-wrap{ max-height:calc(100dvh - var(--hdr) - 220px) }
.t-org{ display:flex; gap:10px; align-items:flex-start; min-width:280px }
.t-org b{ font-weight:600; display:block; line-height:1.3 }
.t-org b:hover{ color:var(--accent) }
.t-sub{ font-size:var(--fs-12); color:var(--ink-3); margin-top:2px }
.t-acts{ display:flex; gap:2px; justify-content:flex-end }
.selbar{ position:fixed; z-index:60; left:50%; bottom:calc(16px + var(--tabbar) + env(safe-area-inset-bottom)); transform:translateX(-50%); display:flex; align-items:center; gap:2px; padding:6px; background:var(--ink); color:var(--surface); border-radius:var(--r-md); box-shadow:var(--shadow-pop); animation:pop var(--dur) var(--ease); max-width:calc(100vw - 24px); overflow-x:auto; scrollbar-width:none }
.selbar b{ padding:0 12px 0 10px; white-space:nowrap; font-variant-numeric:tabular-nums }
.selbar .btn{ --b:transparent; background:transparent; color:inherit; height:36px }
.selbar .btn:hover{ background:rgba(255,255,255,.1) }
[data-theme="dark"] .selbar .btn:hover{ background:rgba(0,0,0,.08) }
.selbar__sep{ width:1px; height:20px; background:currentColor; opacity:.2; margin:0 4px; flex:none }
.sum{ display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:16px }
.sum__kpi{ grid-column:1/-1; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md) }
.sum__kpi .stat{ padding:20px; border-left:1px solid var(--line) }
.sum__kpi .stat:first-child{ border-left:0 }
.sum__c{ grid-column:span 6; padding:20px }
.sum__c--4{ grid-column:span 4 } .sum__c--8{ grid-column:span 8 } .sum__c--12{ grid-column:1/-1 }
.sum__c h3{ margin-bottom:4px } .sum__c > p{ color:var(--ink-3); font-size:var(--fs-13); margin-bottom:16px }
.regmap{ position:relative; height:calc(100dvh - var(--hdr) - 260px); min-height:420px; border:1px solid var(--line); border-radius:var(--r-md); overflow:hidden }

/* ---------- Профиль организации ---------- */
.profile{ position:fixed; z-index:55; top:var(--hdr-h, calc(var(--hdr) + env(safe-area-inset-top) + 1px)); right:0; bottom:0; width:var(--profile-w); max-width:100%; display:flex; flex-direction:column; background:var(--surface); border-left:1px solid var(--line); box-shadow:var(--shadow-pop); animation:slideR var(--dur) var(--ease) }
.profile.is-wide{ --profile-w:min(880px, 72vw) }
.pf__bar{ display:flex; align-items:center; gap:4px; height:52px; padding:0 8px 0 16px; border-bottom:1px solid var(--line); flex:none }
.pf__bar .pf__crumb{ flex:1; min-width:0; display:flex; align-items:center; gap:8px; font-size:var(--fs-13); color:var(--ink-3); overflow:hidden; white-space:nowrap }
.pf__bar .pf__back{ display:none }
.pf__scroll{ flex:1; overflow:auto; overscroll-behavior:contain; scroll-padding-top:56px }
.pf__head{ padding:20px 20px 16px }
.pf__kick{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:var(--fs-13); color:var(--ink-3) }
.pf__head h1{ font-size:var(--fs-22); margin:10px 0 4px; line-height:1.25 }
.pf__brief{ color:var(--ink-3); font-size:var(--fs-13) }
.pf__place{ display:flex; gap:6px; align-items:center; margin-top:8px; color:var(--ink-2) }
.pf__place .ic{ width:16px; height:16px; color:var(--ink-3) }
.pf__status{ display:flex; align-items:center; gap:8px 16px; flex-wrap:wrap; margin-top:14px; padding:10px 12px; border-radius:var(--r-sm); background:var(--surface-2) }
.pf__status .status{ font-size:var(--fs-14) }
.pf__status small{ color:var(--ink-3); font-size:var(--fs-13) }
.pf__pills{ display:flex; gap:8px; flex-wrap:wrap; margin-top:14px }
.pf__pills .btn{ border-radius:var(--r-pill); height:36px }
.pf__tabs{ position:sticky; top:0; z-index:3; background:var(--surface); padding:0 8px }
.pf__sec{ padding:20px; border-bottom:1px solid var(--line); scroll-margin-top:44px }
.pf__sec:last-child{ border-bottom:0; padding-bottom:40px }
.pf__sec > h2{ font-size:var(--fs-12); font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-3); margin-bottom:12px; display:flex; align-items:center; gap:8px }
.pf__sec--edu > h2{ color:var(--edu) }
.pf__mini{ height:200px; border-radius:var(--r-sm); overflow:hidden; border:1px solid var(--line); background:var(--surface-2) }
.pf__facts{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:var(--r-sm); overflow:hidden; margin-top:12px }
.pf__facts > div{ background:var(--surface); padding:12px }
.pf__facts .stat__value{ font-size:var(--fs-22) }
.pf__facts .stat__label{ font-size:var(--fs-12) }
.wx{ display:flex; align-items:center; gap:12px; padding:12px; border:1px solid var(--line); border-radius:var(--r-sm); margin-top:12px }
.wx__ic{ width:40px; height:40px; flex:none; display:grid; place-items:center; border-radius:var(--r-sm); background:var(--info-soft); color:var(--info) }
.wx__t{ flex:1; min-width:0 } .wx__t b{ font-size:var(--fs-18); font-variant-numeric:tabular-nums }
.wx__t div{ font-size:var(--fs-13); color:var(--ink-3) }
.hours{ width:100%; border-collapse:collapse; font-size:var(--fs-13); margin-top:12px }
.hours td{ padding:6px 0; border-top:1px solid var(--line) } .hours td:last-child{ text-align:right; font-variant-numeric:tabular-nums }
.hours tr.is-today td{ font-weight:600; color:var(--ink) }
.hours tr:first-child td{ border-top:0 }
.kids{ display:flex; flex-direction:column; gap:2px; margin:0 -12px }
.pf__mod{ min-height:60px }
.names{ display:flex; gap:6px; flex-wrap:wrap; margin-top:10px }
.pf__full{ margin-top:10px; font-size:var(--fs-13); color:var(--ink-2); line-height:1.5 }

/* ---------- Прочие разделы ---------- */
.sec{ padding:32px 0 80px }
.news{ display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:24px; align-items:start }
.news__i{ display:grid; grid-template-columns:88px 1fr; gap:4px 16px; padding:16px 0; border-top:1px solid var(--line) }
.news__i:first-child{ border-top:0 }
.news__i time{ grid-row:span 3; color:var(--ink-3); font-size:var(--fs-13); font-variant-numeric:tabular-nums; padding-top:2px }
.news__i h3{ font-size:var(--fs-16); font-weight:600 }
.news__i p{ color:var(--ink-2); font-size:var(--fs-14) }
.news__src{ display:flex; gap:8px; align-items:center; font-size:var(--fs-12); color:var(--ink-3) }
.cmp{ overflow:auto; border:1px solid var(--line); border-radius:var(--r-md); background:var(--surface) }
.cmp table{ border-collapse:collapse; min-width:100%; font-size:var(--fs-14) }
.cmp th,.cmp td{ padding:12px 16px; border-bottom:1px solid var(--line); vertical-align:top; text-align:left; min-width:220px }
.cmp th:first-child{ min-width:180px; color:var(--ink-3); font-weight:500; font-size:var(--fs-13); position:sticky; left:0; background:var(--surface) }
.cmp thead th{ background:var(--surface-2) }
.cmp tr.is-diff td{ background:color-mix(in srgb, var(--warn-soft) 50%, var(--surface)) }
.chg__g{ margin-top:24px }
.chg__i{ display:grid; grid-template-columns:110px minmax(0,1fr) auto; gap:4px 16px; align-items:start; padding:14px 0; border-top:1px solid var(--line) }
.chg__i b{ font-weight:600 }
.chg__diff{ grid-column:2/-1; display:flex; flex-wrap:wrap; gap:6px; align-items:center; font-size:var(--fs-13) }
.chg__diff del{ color:var(--bad); background:var(--bad-soft); text-decoration:line-through; padding:1px 6px; border-radius:var(--r-xs) }
.chg__diff ins{ color:var(--ok); background:var(--ok-soft); text-decoration:none; padding:1px 6px; border-radius:var(--r-xs) }
.help{ display:grid; grid-template-columns:240px minmax(0,1fr); gap:40px }
.help h2{ margin:32px 0 8px; font-size:var(--fs-18) } .help h2:first-child{ margin-top:0 }
.help p,.help li{ color:var(--ink-2); max-width:70ch } .help ul{ padding-left:20px; margin:8px 0 }
.help details{ border-top:1px solid var(--line); padding:12px 0 }
.help summary{ cursor:pointer; font-weight:500 }
.keys{ display:grid; grid-template-columns:1fr 1fr; gap:0 24px }
.keys div{ display:flex; justify-content:space-between; align-items:center; gap:12px; padding:8px 0; border-top:1px solid var(--line); font-size:var(--fs-14) }
.morev{ padding:16px 0 40px }
.morev__g{ margin-top:20px }
.morev__i{ display:flex; align-items:center; gap:12px; width:100%; min-height:52px; padding:0 4px; border:0; border-bottom:1px solid var(--line); background:none; color:var(--ink); text-align:left; text-decoration:none!important; font-size:var(--fs-16) }
.morev__i > .ic:first-child{ color:var(--ink-3) }
.morev__i > .ic:last-child{ margin-left:auto; color:var(--ink-4) }
.ph{ padding:32px 0 }
.ph__grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-top:24px }
.a11ybar{ border-top:1px solid var(--line); background:var(--surface-2) }
.a11ybar__in{ max-width:1600px; margin:0 auto; display:flex; flex-wrap:wrap; align-items:center; gap:8px 20px; padding:8px var(--gut) }
.a11ybar__g{ display:flex; align-items:center; gap:6px }
.a11ybar__g > span{ font-size:var(--fs-13); color:var(--ink-3); margin-right:4px }
.sw-bw{ background:#fff!important; color:#000!important; border-color:#000!important } .sw-wb{ background:#000!important; color:#fff!important; border-color:#fff!important }

/* Таб-бар (телефон) */
.tabbar{ display:none }

/* ---------- Печать ---------- */
#printArea{ display:none }
@media print{
  body > *:not(#printArea){ display:none!important }
  #printArea{ display:block!important }
  #printArea:not(.is-edu){ color:#000; font:12pt/1.4 var(--font-ui) }
  #printArea:not(.is-edu) table{ width:100%; border-collapse:collapse } #printArea:not(.is-edu) td,#printArea:not(.is-edu) th{ border:1px solid #999; padding:4px 6px; text-align:left; font-size:10pt }
  #printArea:not(.is-edu) h1{ font-size:18pt; margin:0 0 8pt }
}

/* ---------- Адаптив ---------- */
@media (max-width:1520px){ .cmdk__ph{ display:none } .cmdk{ width:auto } .nav__a{ padding:0 8px } }
@media (max-width:1360px) and (min-width:1024px){ .brand__txt{ display:none } .nav__a{ padding:0 7px } .hdr__in{ gap:10px } }
@media (max-width:1120px) and (min-width:1024px){ .nav__a{ padding:0 5px; font-size:14px } .hdr__tools{ gap:0 } }
@media (max-width:1360px){ .cmdk{ width:200px } .clock{ display:none } }
@media (max-width:1180px){
  .nav__a .nav__lbl-long{ display:none }
  .tiles{ grid-template-columns:repeat(3,minmax(0,1fr)) }
  .reg__lay{ grid-template-columns:minmax(0,1fr) } .rail{ display:none }
  .sum__kpi{ grid-template-columns:repeat(3,1fr) } .sum__kpi .stat:nth-child(4){ border-left:0 } .sum__kpi .stat:nth-child(n+4){ border-top:1px solid var(--line) }
  .sum__c,.sum__c--4,.sum__c--8{ grid-column:1/-1 }
  .cmdk__ph{ display:none } .cmdk{ width:auto }
}
@media (max-width:1023px){
  :root{ --hdr:52px; --tabbar:calc(60px); }
  .nav,.cmdk,.hdr__opt,.clock{ display:none }
  .hdr__m{ display:inline-flex; margin-left:auto }
  .brand__txt span{ display:none }
  .login .login__t{ display:none } .login{ width:40px; padding:0; height:40px; border-color:transparent }
  .tabbar{ display:grid; grid-template-columns:repeat(5,1fr); position:fixed; z-index:58; left:0; right:0; bottom:0; height:calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom:env(safe-area-inset-bottom); background:var(--surface); border-top:1px solid var(--line) }
  .tabbar a{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; color:var(--ink-3); font-size:var(--fs-12); font-weight:500; text-decoration:none!important; position:relative }
  .tabbar a[aria-current="page"]{ color:var(--accent) }
  .tabbar a[aria-current="page"]::before{ content:""; position:absolute; top:-1px; left:30%; right:30%; height:2px; background:var(--accent); border-radius:0 0 2px 2px }
  .tabbar a.is-edu[aria-current="page"]{ color:var(--edu) } .tabbar a.is-edu[aria-current="page"]::before{ background:var(--edu) }
  .tabbar .ic{ width:22px; height:22px }
  body{ padding-bottom:calc(var(--tabbar) + env(safe-area-inset-bottom)) }
  #main{ min-height:calc(100dvh - var(--hdr) - var(--tabbar)) }
  .profile{ --profile-w:100%; bottom:calc(var(--tabbar) + env(safe-area-inset-bottom)); border-left:0; box-shadow:none; z-index:57 }
  .profile.is-wide{ --profile-w:100% }
  .pf__bar .pf__back{ display:inline-flex } .pf__bar{ padding-left:4px } .pf__wide{ display:none!important }
  .hero{ grid-template-columns:1fr; gap:24px }
  .home2{ grid-template-columns:1fr }
  .news{ grid-template-columns:1fr }
  .help{ grid-template-columns:1fr } .help nav{ display:none }
  /* Карта: шторка */
  .mapv{ height:calc(100dvh - var(--hdr-h, calc(var(--hdr) + 1px)) - var(--tabbar) - env(safe-area-inset-bottom)) }
  .mapctl__zoom{ display:none }
  .fbar .kbd{ display:none } .search .input{ padding-right:12px }
  .mapv__map{ bottom:var(--peek,156px) }
  .mapv__panel{ top:auto; left:0; right:0; bottom:0; width:auto; height:var(--sheet-h,156px); border-radius:var(--r-lg) var(--r-lg) 0 0; border-bottom:0; transition:height 200ms var(--ease) }
  .mapv[data-sheet="half"] .mapv__panel{ --sheet-h:52% } .mapv[data-sheet="full"] .mapv__panel{ --sheet-h:calc(100% - 8px) }
  .mapv.is-full .mapv__panel{ transform:none } .mapv.is-full{ --peek:0px } .mapv.is-full .mapv__panel{ --sheet-h:44px }
  .mapv__grip{ display:flex; justify-content:center; align-items:center; height:20px; border:0; background:none; width:100%; flex:none; cursor:grab; touch-action:none }
  .mapv__grip::before{ content:""; width:40px; height:4px; border-radius:2px; background:var(--line-strong) }
  .mapv__ph{ padding:0 12px 10px }
  .tz{ left:8px; right:56px; top:8px }
  .mapctl{ right:8px; top:8px }
  .legend{ right:56px; bottom:auto; top:8px }
  .selbar b{ padding:0 8px }
  .selbar .btn span.lbl{ display:none }
}
@media (max-width:720px){
  .page{ padding:0 var(--gut) }
  .hero h1{ font-size:var(--fs-28) }
  .home{ padding-top:24px }
  .hsearch .input{ padding-right:16px } .hsearch .btn,.hsearch .kbd{ display:none }
  .near__list{ grid-template-columns:1fr }
  .tiles{ grid-template-columns:1fr 1fr; gap:8px }
  .tile{ min-height:112px; padding:12px }
  .hblock{ padding-top:32px }
  .hblock--ph,.ph__grid{ grid-template-columns:1fr 1fr }
  .reg{ padding-top:16px }
  .reg__top h1{ font-size:var(--fs-22) }
  .reg__top .seg{ width:100%; } .reg__top .seg button{ flex:1; justify-content:center; padding:0 6px }
  .sum__kpi{ grid-template-columns:1fr 1fr } .sum__kpi .stat{ border-left:0!important; border-top:1px solid var(--line) } .sum__kpi .stat:nth-child(-n+2){ border-top:0 } .sum__kpi .stat:nth-child(2n){ border-left:1px solid var(--line)!important }
  .sum__c{ padding:16px }
  .fbar__q{ flex-basis:100% }
  .fbar__dds{ display:none!important } .fbar__fbtn-m{ display:inline-flex }
  .modal{ max-height:92dvh }
  .scrim--sheet{ place-items:end stretch; padding:0 }
  .sheet{ top:auto; left:0; width:100%; max-height:88dvh; border-left:0; border-radius:var(--r-lg) var(--r-lg) 0 0; animation:slideU 200ms var(--ease); padding-bottom:env(safe-area-inset-bottom) }
  .sheet__grip{ display:block; width:40px; height:4px; border-radius:2px; background:var(--line-strong); margin:8px auto 0 }
  .cmd{ padding:8px 8px 0 } .cmd__box{ max-height:calc(100dvh - 16px) } .cmd__f{ display:none }
  .pf__facts{ grid-template-columns:1fr 1fr } .pf__facts > div:last-child{ grid-column:1/-1 }
  .dl{ grid-template-columns:1fr } .dl dt{ padding-bottom:0 } .dl dd{ border-top:0; padding-top:2px }
  .chg__i{ grid-template-columns:1fr auto } .chg__i > .muted:first-child{ grid-column:1/-1 } .chg__diff{ grid-column:1/-1 }
  .keys{ grid-template-columns:1fr }
  .news__i{ grid-template-columns:1fr } .news__i time{ grid-row:auto }
  .boot__grid{ grid-template-columns:1fr 1fr }
}
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{ animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; scroll-behavior:auto!important }
}
[data-a11y="on"] *{ animation:none!important; transition:none!important }
[data-a11y="on"] .skeleton{ background:var(--surface-3) }
@media (min-width:1024px) and (max-width:1520px){ .reg__lay{ grid-template-columns:minmax(0,1fr) } .rail{ display:none } }

/* =========================================================================
   Премиум-инфографика (этап 2): картограмма, лента времени, мозаика,
   lollipop, кольца полноты, паспорт организации
   ========================================================================= */
:root{
  --sky-night:#23423E; --sky-dusk:#8FB9B2; --sky-day:#EEF6F4; --sky-work:#CBE7E1;
  --viz-b1:color-mix(in srgb, var(--accent) 16%, var(--accent-soft)); --viz-b2:color-mix(in srgb, var(--accent) 34%, var(--accent-soft));
  --viz-b3:color-mix(in srgb, var(--accent) 56%, var(--accent-soft)); --viz-b4:color-mix(in srgb, var(--accent) 78%, var(--accent-soft)); --viz-b5:var(--accent);
}
[data-theme="dark"]{ --sky-night:#091211; --sky-dusk:#17302D; --sky-day:#1E3A36; --sky-work:#1D5048 }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){ --sky-night:#091211; --sky-dusk:#17302D; --sky-day:#1E3A36; --sky-work:#1D5048 } }

/* общие */
.viz{ position:relative }
.viz__src{ margin-top:12px; font-size:13px; color:var(--ink-4); line-height:1.4 }
.vz-dim .vm{ transition:opacity var(--dur) var(--ease), filter var(--dur) var(--ease) }
.vz-dim:has(.vm:hover) .vm:not(:hover){ opacity:.38 }
.vtip{ position:fixed; z-index:200; left:0; top:0; max-width:260px; padding:8px 10px; border-radius:var(--r-sm); background:var(--surface); color:var(--ink-2); border:1px solid var(--line); box-shadow:var(--shadow-pop); font-size:var(--fs-13); line-height:1.4; pointer-events:none; opacity:0; transition:opacity 120ms var(--ease); font-variant-numeric:tabular-nums }
.vtip.is-on{ opacity:1 }
.vtip b{ display:block; color:var(--ink); font-weight:600; margin-bottom:2px }
.vtip span{ display:block }
.vtip span:last-child:not(:first-of-type){ color:var(--ink-3); font-size:var(--fs-12); margin-top:2px }
@keyframes vzFade{ from{ opacity:0; transform:scale(.6) } to{ opacity:1; transform:none } }
@keyframes vzGrowY{ from{ transform:scaleY(0) } to{ transform:none } }
@keyframes vzGrowX{ from{ transform:scaleX(0) } to{ transform:none } }
@keyframes vzDash{ from{ stroke-dasharray:0 9999 } }
@keyframes vzPulse{ 0%{ transform:scale(.6); opacity:.55 } 100%{ transform:scale(2.2); opacity:0 } }

/* главная: hero с картограммой */
.hero{ grid-template-columns:minmax(0,6fr) minmax(0,6fr); align-items:center }
.hero__viz{ border:1px solid var(--line); border-radius:var(--r-md); background:var(--surface); padding:16px 20px 0; min-width:0 }
.hero__viz-h{ display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:12px }
.hero__viz-h h2{ font-size:var(--fs-16); font-weight:600; letter-spacing:-.01em; margin-top:4px; line-height:1.35; max-width:36ch; text-wrap:balance }
.hero__viz-h .link{ flex:none; margin-top:2px }
.hero__viz-f{ display:flex; justify-content:space-between; align-items:center; gap:8px 16px; flex-wrap:wrap; margin-top:10px; font-size:var(--fs-12) }
.hero__nums{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin:16px -20px 0; border-top:1px solid var(--line) }
.hn{ padding:14px 16px 16px 20px; display:flex; flex-direction:column; gap:2px; min-width:0; border-left:1px solid var(--line) }
.hn:first-child{ border-left:0 }
.hn b{ font-size:var(--fs-28); font-weight:650; letter-spacing:-.02em; line-height:1.1; color:var(--ink) }
.hn span{ font-size:var(--fs-12); color:var(--ink-3); line-height:1.35 }
.hn--ok b{ color:var(--ok) } .hn--edu b{ color:var(--edu) }
.hn i{ font-style:normal; font-weight:600 } .hn i.up{ color:var(--ok) } .hn i.down{ color:var(--bad) }

/* тайловая картограмма */
.tm{ display:block; width:100%; height:auto; overflow:visible }
.tm__t rect{ fill:var(--surface-2); transition:fill var(--dur) var(--ease) }
.tm__t text{ font:600 8.5px/1 var(--font-ui); letter-spacing:.02em; text-anchor:middle; fill:var(--ink-4); pointer-events:none }
.tm__t.b1 rect{ fill:var(--viz-b1) } .tm__t.b2 rect{ fill:var(--viz-b2) } .tm__t.b3 rect{ fill:var(--viz-b3) } .tm__t.b4 rect{ fill:var(--viz-b4) } .tm__t.b5 rect{ fill:var(--viz-b5) }
.tm__t.b1 text,.tm__t.b2 text{ fill:var(--ink-2) } .tm__t.b3 text,.tm__t.b4 text,.tm__t.b5 text{ fill:var(--accent-ink) }
.tm__t[role="button"]{ cursor:pointer; outline:none }
.tm__t[role="button"]:hover rect,.tm__t:focus-visible rect{ stroke:var(--ink); stroke-width:1.5 }
.tm__t.is-msk rect{ stroke:var(--ink); stroke-width:2 }
.tm__t.is-active rect{ stroke:var(--ink); stroke-width:2.5 }
.tm.is-anim .tm__t rect{ transform-box:fill-box; transform-origin:center; animation:vzFade 520ms var(--ease) both; animation-delay:var(--d) }
.tm.is-anim .tm__t text{ animation:vzFade 520ms var(--ease) both; animation-delay:calc(var(--d) + 80ms); transform-box:fill-box; transform-origin:center }
.tm__leg{ display:flex; align-items:center; gap:4px 10px; flex-wrap:wrap; font-size:13px; color:var(--ink-3); font-variant-numeric:tabular-nums }
.tm__leg > span{ margin-right:2px }
.tm__leg i{ font-style:normal; display:inline-flex; align-items:center; gap:4px }
.tm__leg s{ width:10px; height:10px; border-radius:2px; background:var(--surface-2) }
.tm__leg .b1 s{ background:var(--viz-b1) } .tm__leg .b2 s{ background:var(--viz-b2) } .tm__leg .b3 s{ background:var(--viz-b3) } .tm__leg .b4 s{ background:var(--viz-b4) } .tm__leg .b5 s{ background:var(--viz-b5) }
.sum .tm{ max-width:600px; margin:0 auto 12px }

/* лента времени */
.tl__band{ position:relative; display:flex; border-radius:var(--r-sm); overflow:hidden; min-height:112px; border:1px solid var(--line) }
.tl__z{ flex:1 1 0; min-width:0; position:relative; display:flex; flex-direction:column; align-items:center; justify-content:flex-start; gap:2px; padding:22px 4px 8px; border:0; background:none; color:var(--ink); text-align:center; border-left:1px solid color-mix(in srgb, var(--ink) 7%, transparent); cursor:pointer }
.tl__z:first-of-type{ border-left:0 }
.tl__z::before{ content:""; position:absolute; top:0; left:50%; width:1.5px; height:8px; background:currentColor; opacity:.55; transform:translateX(-50%) }
.tl__z:hover{ background:color-mix(in srgb, var(--surface) 22%, transparent) }
.tl__z.is-active{ box-shadow:inset 0 0 0 2px var(--ink) }
.tl__z.is-zero .tl__bar,.tl__z.is-zero em{ opacity:.5 }
.tl__t{ font-size:var(--fs-16); font-weight:650; font-variant-numeric:tabular-nums; letter-spacing:-.01em; line-height:1.1 }
.tl__u{ font-size:13px; opacity:.75; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100% }
.tl__bar{ flex:1; width:100%; display:flex; align-items:flex-end; justify-content:center; min-height:22px; margin-top:4px }
.tl__bar i{ display:block; width:min(28px,60%); height:calc(var(--h) * 100%); min-height:2px; background:var(--accent); border-radius:2px 2px 0 0; transform-origin:bottom }
.tl__z em{ font-style:normal; font-size:var(--fs-12); font-weight:600; font-variant-numeric:tabular-nums }
.tl__z.is-night,.tl__z.is-dusk{ color:#F1F6F5 }
.tl__z.is-night .tl__bar i,.tl__z.is-dusk .tl__bar i{ background:#9ED8CF }
[data-theme="dark"] .tl__z.is-night,[data-theme="dark"] .tl__z.is-dusk{ color:var(--ink) }
[data-theme="dark"] .tl__z .tl__bar i{ background:var(--accent) }
.tl__work{ position:absolute; z-index:1; top:0; height:4px; background:var(--accent); pointer-events:none }
.tl__work span{ position:absolute; top:5px; left:6px; font-size:12px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--accent); white-space:nowrap }
[data-theme="dark"] .tl__work span{ color:var(--accent-hover) }
.tl.is-anim .tl__bar i{ animation:vzGrowY 600ms var(--ease) both }
.tl__axis{ display:flex; justify-content:space-between; gap:12px; margin-top:8px; font-size:13px; color:var(--ink-3) }
.tl__axis > span:nth-child(2){ display:inline-flex; align-items:center; gap:4px 6px; flex-wrap:wrap; justify-content:center }
.sw{ display:inline-block; width:10px; height:10px; border-radius:2px; border:1px solid var(--line) }
.sw--night{ background:var(--sky-night) } .sw--day{ background:var(--sky-day); margin-left:6px } .sw--work{ background:var(--sky-work); margin-left:6px; box-shadow:inset 0 2px 0 var(--accent) }
.tl--c .tl__band{ min-height:72px; border:0; border-radius:var(--r-sm) }
.tl--c .tl__z{ padding:16px 2px 4px; min-width:56px }
.tl--c .tl__t{ font-size:var(--fs-14) }
.tl--c .tl__u{ font-size:12px }
.tl--c .tl__bar{ min-height:12px; margin-top:2px }
.tl--c .tl__axis{ display:none }
.tl--c .tl__work span{ display:none }
.hclock .section-head{ margin-bottom:12px }

/* карта: лента времени поверх карты */
.tz{ display:block; flex-direction:initial; padding:4px; overflow:visible }
.tz__h{ display:flex; align-items:center; gap:8px; justify-content:space-between }
.tz__tog{ position:static; background:none; min-width:0; max-width:100%; font-weight:500 }
.tz__tog span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.tz__clr{ font-size:var(--fs-13); margin-right:8px; flex:none }
.tz .tl{ margin-top:4px; overflow-x:auto; scrollbar-width:none; border-radius:var(--r-sm) }
.tz .tl::-webkit-scrollbar{ display:none }
.tz.is-collapsed{ right:auto }

/* сводка */
.sum__c--7{ grid-column:span 7 } .sum__c--5{ grid-column:span 5 }
.sum__c h3{ text-wrap:balance }
.sum__note{ grid-column:1/-1; font-size:var(--fs-12); color:var(--ink-3); margin-top:-4px }
.sum__kpi sup{ color:var(--ink-3); font-size:12px }
.mos{ display:flex; gap:3px; height:300px }
.mos__col{ display:flex; flex-direction:column; min-width:24px }
.mos__stack{ flex:1; display:flex; flex-direction:column-reverse; gap:2px; min-height:0 }
.mos__cell{ position:relative; min-height:3px; border:0; padding:0; background:var(--c); border-radius:2px; color:#fff; font-size:13px; font-weight:600; font-variant-numeric:tabular-nums; display:flex; align-items:flex-start; justify-content:flex-start; overflow:hidden; cursor:pointer }
.mos__cell span{ padding:4px 6px; line-height:1 }
[data-theme="dark"] .mos__cell{ color:#0E1312 }
.mos__cell:hover,.mos__cell:focus-visible{ filter:brightness(1.08) saturate(1.1) }
.mos__cell.is-active{ box-shadow:inset 0 0 0 2px var(--ink) }
.mos.is-anim .mos__stack{ transform-origin:bottom; animation:vzGrowY 650ms var(--ease) both }
.mos__lab{ display:flex; flex-direction:column; align-items:flex-start; gap:0; padding:8px 2px 0; border:0; background:none; text-align:left; min-width:0; overflow:hidden; border-top:2px solid transparent; margin-top:4px; cursor:pointer }
.mos__lab b{ font-size:var(--fs-12); font-weight:600; color:var(--ink-2); white-space:nowrap }
.mos__lab span{ font-size:var(--fs-12); color:var(--ink-3) }
.mos__lab:hover b,.mos__lab.is-active b{ color:var(--ink) } .mos__lab.is-active{ border-top-color:var(--ink) }
.mos__leg{ display:flex; flex-wrap:wrap; gap:4px 14px; margin-top:12px }
.mos__k{ display:inline-flex; align-items:center; gap:6px; border:0; background:none; padding:2px 0; font-size:var(--fs-12); color:var(--ink-2); cursor:pointer }
.mos__k i{ width:10px; height:10px; border-radius:2px }
.mos__k:hover,.mos__k.is-active{ color:var(--ink); text-decoration:underline; text-underline-offset:3px }
.lol{ display:flex; flex-direction:column; gap:2px }
.lol__r{ display:grid; grid-template-columns:minmax(0,150px) minmax(0,1fr) 32px; align-items:center; gap:12px; padding:5px 6px; border:0; background:none; border-radius:var(--r-xs); text-align:left; cursor:pointer; color:var(--ink-2); font-size:var(--fs-13) }
.lol__r:hover{ background:var(--surface-2) }
.lol__r.is-active{ background:var(--accent-soft); color:var(--ink) }
.lol__l{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.lol__t{ position:relative; height:14px }
.lol__t::before{ content:""; position:absolute; left:0; right:0; top:50%; height:1px; background:var(--line) }
.lol__s{ position:absolute; left:0; top:50%; height:2px; margin-top:-1px; width:var(--p); background:var(--accent-line); transform-origin:left }
.lol__d{ position:absolute; top:50%; left:var(--p); width:10px; height:10px; margin:-5px 0 0 -5px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 2px var(--surface) }
.lol__r.is-msk .lol__d{ background:var(--ink) }
.lol__r b{ text-align:right; font-weight:600; color:var(--ink) }
.lol.is-anim .lol__s{ animation:vzGrowX 600ms var(--ease) both; animation-delay:var(--d) }
.lol.is-anim .lol__d{ animation:vzFade 400ms var(--ease) both; animation-delay:calc(var(--d) + 380ms) }
.rg{ display:block; width:100%; max-width:320px; height:auto; margin:0 auto }
.rg__bg{ fill:none; stroke:var(--surface-2); stroke-linecap:round }
.rg__fg{ fill:none; stroke:var(--accent); stroke-linecap:round; transition:stroke var(--dur) var(--ease) }
.rg__fg.is-low{ stroke:var(--warn) }
.rg.is-anim .rg__fg{ animation:vzDash 900ms var(--ease) both }
.rg__t{ font:500 10.5px var(--font-ui); fill:var(--ink-2); text-anchor:end }
.rg__p{ font-weight:650; fill:var(--ink); font-variant-numeric:tabular-nums }
.rg__i{ cursor:pointer; outline:none }
.rg__i:hover .rg__bg,.rg__i:focus-visible .rg__bg{ stroke:var(--surface-3) }
.rg__i.is-active .rg__bg{ stroke:var(--warn-soft) } .rg__i.is-active .rg__t{ fill:var(--ink); font-weight:650 }

/* паспорт организации */
.pp{ display:grid; grid-template-columns:1.25fr 1fr 1fr; gap:1px; margin-top:12px; background:var(--line); border:1px solid var(--line); border-radius:var(--r-sm); overflow:hidden }
.pp__c{ position:relative; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:6px; padding:12px 10px 10px; background:var(--surface); min-width:0; border:0; font:inherit; color:inherit; text-align:center }
button.pp__c{ cursor:pointer } button.pp__c:hover{ background:var(--surface-2) }
.pp__cap{ display:flex; flex-direction:column; gap:1px; min-width:0; max-width:100%; font-size:var(--fs-12); color:var(--ink-3); line-height:1.35 }
.pp__cap b{ font-size:var(--fs-13); font-weight:600; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-variant-numeric:tabular-nums }
.pp__loc{ width:100%; max-width:180px; height:72px }
.pp__dots circle{ fill:var(--line-strong) }
.pp__line{ fill:none; stroke:var(--ink-3) }
.pp__msk{ fill:var(--surface); stroke:var(--ink-2) }
.pp__me{ fill:var(--accent); stroke:var(--surface) }
.pp__pulse{ fill:var(--accent); transform-box:fill-box; transform-origin:center; animation:vzPulse 2.4s var(--ease) infinite }
.pp__clock{ width:72px; height:72px }
.pp__ring{ stroke:var(--surface-3); stroke-width:6 }
.pp__night{ fill:none; stroke:color-mix(in srgb, var(--ink) 22%, var(--surface-3)); stroke-width:6 }
.pp__work{ fill:none; stroke:var(--accent); stroke-width:6; stroke-linecap:round }
.pp__ticks line{ stroke:var(--ink-4); stroke-width:1 } .pp__ticks line.is-major{ stroke:var(--ink-3); stroke-width:1.5 }
.pp__h{ font:500 8px var(--font-ui); fill:var(--ink-3); text-anchor:middle }
.pp__hand{ stroke:var(--ink); stroke-width:1.75; stroke-linecap:round }
.pp__hub{ fill:var(--ink) }
.pp__now{ stroke:var(--surface); stroke-width:1.5; fill:var(--ok) } .pp__now--warn{ fill:var(--warn) } .pp__now--bad{ fill:var(--bad) }
.pp__dist{ width:100%; max-width:120px; height:auto }
.pp__track{ fill:none; stroke:var(--surface-3); stroke-width:6; stroke-linecap:round }
.pp__fill{ fill:none; stroke:var(--accent); stroke-width:6; stroke-linecap:round }
.pp__tip{ fill:var(--surface); stroke:var(--accent); stroke-width:2 }
.pp__km{ position:absolute; left:0; right:0; top:44px; font-size:var(--fs-14); font-weight:650; color:var(--ink); letter-spacing:-.01em }

@media (max-width:1180px){ .sum__c--7,.sum__c--5{ grid-column:1/-1 } }
@media (max-width:1023px){
  .hero{ grid-template-columns:1fr }
  .tz .tl__z{ min-width:52px }
}
@media (max-width:720px){
  .hero__viz{ padding:14px 14px 0 }
  .hero__nums{ grid-template-columns:1fr 1fr; margin:14px -14px 0 }
  .hn{ padding:12px 14px } .hn:nth-child(3){ border-left:0 } .hn:nth-child(n+3){ border-top:1px solid var(--line) }
  .hn b{ font-size:var(--fs-22) }
  .tm__t text{ font-size:7.5px }
  .hclock .tl{ overflow-x:auto; margin:0 -16px; padding:0 16px; scrollbar-width:none }
  .hclock .tl__band{ min-width:640px }
  .sum .tl{ overflow-x:auto; scrollbar-width:none } .sum .tl__band{ min-width:640px }
  .tl__axis{ min-width:0 } .tl__axis > span:first-child,.tl__axis > span:last-child{ display:none }
  .mos{ height:240px; gap:2px } .mos__col{ min-width:18px } .mos__lab b{ font-size:12px } .mos__lab span{ font-size:12px } .mos__cell span{ padding:3px; font-size:12px }
  .lol__r{ grid-template-columns:minmax(0,120px) minmax(0,1fr) 28px; gap:8px }
  .pp{ grid-template-columns:1.2fr 1fr 1fr }
  .pp__c{ padding:10px 6px 8px }
  .pp__loc{ height:56px } .pp__clock{ width:60px; height:60px } .pp__km{ top:36px; font-size:var(--fs-13) }
  .pp__cap b{ font-size:var(--fs-12) } .pp__cap span{ font-size:13px }
}
[data-a11y="on"] .vz-dim:has(.vm:hover) .vm:not(:hover){ opacity:1 }
/* правки второго круга */
:root{ --sky-dusk:#5E8F88 }
[data-theme="dark"]{ --sky-dusk:#17302D }
.hero{ grid-template-columns:minmax(0,7fr) minmax(0,5fr); align-items:start }
.hero__viz .tm{ max-width:440px; margin:0 auto }
.tl__band{ min-height:156px } .tl__bar{ min-height:48px }
.tl--c .tl__band{ min-height:76px } .tl--c .tl__bar{ min-height:16px }
.pp__dots circle{ fill:var(--ink-4); opacity:.55 }
.pp__line{ stroke:var(--ink-2) }
.pp__kmt{ font:650 13px var(--font-ui); fill:var(--ink); text-anchor:middle; letter-spacing:-.01em; font-variant-numeric:tabular-nums }
.pp__loc{ height:80px }
@media (max-width:1023px){ .hero{ grid-template-columns:1fr } .hero__viz .tm{ max-width:none } }
@media (max-width:720px){ .pp__loc{ height:60px } .tl__band{ min-height:132px } .tl__bar{ min-height:36px } }
/* Метки применённых фильтров не вылезают за край: длинное название подборки обрезается многоточием, крестик виден всегда */
.chip--x{ max-width:100%; min-width:0 } .chip--x .chip__t{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap } .chip--x .ic{ flex:none }
[data-tokens]{ min-width:0; max-width:100%; flex-wrap:wrap }
