/* Токены ИСЦ / НПА (theme.scss, globals.css). Продукты показывают только светлую тему — держим её явно.
   Экран собран по макетам v4 (docs/ui/maket-v4): минимум когнитивной нагрузки, одна сущность — один вид. */
:root {
  color-scheme: light;
  --c-text: #1b1d1f; --c-text-2: #55585c; --c-text-3: #8f9298;
  --c-bg: #f4f4f2; --c-surface: #ffffff; --c-surface-2: #f9f9f7; --c-border: #e7e6e3; --c-border-2: #efeeec; --c-header: #efeeec;
  --c-danger: #b4433a; --c-warning: #c2861f; --c-warning-t: #8f6212; --c-success: #1e8a4a; --c-unset: #c9766e; --c-accent: #1e3a5f;
  --c-logo-accent: #5a3fe0;
  --font-logo: "Unbounded", system-ui, sans-serif;
  --sans: "Golos Text", "Segoe UI", system-ui, sans-serif;
  --serif: "IBM Plex Serif", Georgia, serif;
  --r-card: 20px; --r-ctl: 10px; --page-x: 40px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--c-bg); color: var(--c-text); font: 14px/1.45 var(--sans); }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.sub { color: var(--c-text-2); }
.podsk, .t3 { color: var(--c-text-3); font-size: 12.5px; }
.label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-3); }
.lnk { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--c-text); border-bottom: 1px solid #c4c6ca; cursor: pointer; white-space: nowrap; }
.lnk:hover { border-color: var(--c-text); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot.r { background: var(--c-danger); } .dot.o { background: var(--c-warning); } .dot.g { background: var(--c-success); } .dot.m { background: #c4c6ca; }
.nr { color: var(--c-danger); } .no { color: var(--c-warning-t); } .ng { color: var(--c-success); }
.sc { display: inline-flex; gap: 10px; align-items: center; font-variant-numeric: tabular-nums; }
.sc .nr, .sc .no { display: inline-flex; align-items: center; gap: 4px; }
.sc .dot { width: 6px; height: 6px; }
.sc b { font-weight: 600; }
.nezadano { color: var(--c-unset); }
.oshibka { color: var(--c-danger); font-size: 13px; }

/* Раскладка */
.app { display: grid; grid-template-columns: 280px minmax(0,1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--c-border); overflow-y: auto;
  padding: calc(22px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 18px; }
.logo-brand { --logo-size: 24px; display: inline-flex; align-self: flex-start; font-family: var(--font-logo); font-weight: 800; font-size: var(--logo-size);
  letter-spacing: -0.03em; line-height: 1.2; padding: 0 8px; user-select: none; }
.logo-brand i { font-style: normal; color: var(--c-logo-accent); }
.novaya { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border: 1px solid var(--c-text); background: var(--c-text); color: #fff; border-radius: var(--r-ctl); font-weight: 600; }
.novaya.vtor { background: var(--c-surface); color: var(--c-text); border-color: #dcdad6; }
.gruppa { display: grid; gap: 6px; min-width: 0; }
.gruppa > .label { padding: 0 10px; }
.obekty { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ob { min-width: 0; }
.ob-t { display: flex; align-items: baseline; gap: 8px; padding: 7px 10px; border-radius: 8px; font-weight: 500; font-size: 13.5px; }
.ob-t[href]:hover { background: var(--c-surface); }
.ob-t .t1 { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-t .k { margin-left: auto; font-size: 12px; color: var(--c-text-3); }
.ob.tek { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 16px; padding: 6px 4px 6px; }
.ob.tek .ob-t { font-weight: 600; font-size: 15px; }
.nav { display: flex; flex-direction: column; margin: 4px 0 6px; padding: 6px 0 4px; border-top: 1px solid var(--c-border-2); border-bottom: 1px solid var(--c-border-2); }
.nav button { display: flex; align-items: center; height: 36px; padding: 0 10px; border: 0; background: transparent; border-radius: 8px; font-weight: 500; color: var(--c-text-2); text-align: left; }
.nav button:hover { background: var(--c-surface-2); }
.nav button[aria-current="page"] { background: var(--c-bg); color: var(--c-text); }
.nav .n { margin-left: auto; font-size: 13px; color: var(--c-text-3); font-variant-numeric: tabular-nums; }
.v { display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 14px; border-radius: 8px; font-size: 12.5px; color: var(--c-text-2); }
.v:hover { background: var(--c-surface-2); }
.v[aria-current="true"] { background: var(--c-bg); color: var(--c-text); }
.v .sc { margin-left: auto; }
.v .nomer { color: var(--c-text-3); font-size: 11.5px; }
.esh { border: 0; background: transparent; text-align: left; padding: 4px 10px 4px 14px; font-size: 12.5px; color: var(--c-text-3); }
.niz { margin-top: auto; position: relative; }
.baza { display: flex; align-items: center; gap: 8px; padding: 0 4px 0 10px; font-size: 12px; color: var(--c-text-3); }
.shesterenka { margin-left: auto; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--c-border); background: var(--c-surface); display: grid; place-items: center; color: var(--c-text-2); }
.shesterenka:hover, .shesterenka[aria-expanded="true"] { color: var(--c-text); border-color: var(--c-text); }
.shesterenka svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.menu-nastroek { position: absolute; bottom: 40px; left: 0; right: 0; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 16px; box-shadow: 0 4px 16px rgba(0,0,0,.08); padding: 12px; display: grid; gap: 8px; z-index: 12; }
.menu-nastroek[hidden] { display: none; }
.rolis { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 10px; padding: 3px; }
.rolis button { border: 0; background: transparent; padding: 6px 4px; border-radius: 7px; font-size: 12.5px; font-weight: 500; color: var(--c-text-2); }
.rolis button[aria-pressed="true"] { background: var(--c-text); color: #fff; }
.mob-bar { display: none; }
.rabochaya { min-width: 0; }
main { padding: 28px var(--page-x) 60px; max-width: 1160px; }
section.ekran[hidden] { display: none !important; }
h1 { font-size: 26px; line-height: 1.2; margin: 0; font-weight: 700; letter-spacing: -.015em; text-wrap: balance; }
h1 + .sub { margin-top: 4px; }
h2 { font-size: 17px; margin: 0; font-weight: 600; text-wrap: balance; }
h3 { margin: 0; font-size: 14.5px; font-weight: 600; }
.head { display: flex; align-items: flex-start; gap: 16px; }
.head h1 { flex: 1; }
.karta { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-card); }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border-radius: var(--r-ctl); border: 1px solid var(--c-text); background: var(--c-text); color: #fff; font-weight: 600; white-space: nowrap; }
.btn.vtor { background: var(--c-surface); color: var(--c-text); border-color: #dcdad6; }
.btn[disabled] { opacity: .5; cursor: progress; }
.btn[aria-pressed="true"]::before { content: "✓ "; }
.npa { color: inherit; text-decoration: underline; text-decoration-color: rgba(27,29,31,.3); text-underline-offset: 3px; cursor: pointer; }
.npa:hover, .npa:focus-visible { text-decoration-color: currentColor; outline: none; }
.npa.npa-z { text-decoration-style: dashed; }
.pusto { padding: 28px 18px; color: var(--c-text-2); text-align: center; margin-top: 14px; }

/* Паспорт объекта */
.pasp { margin-top: 20px; padding: 6px 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
.pasp .f { padding: 12px 20px; border-left: 1px solid var(--c-border-2); }
.pasp .f:nth-child(3n+1) { border-left: 0; }
.pasp .f:nth-child(n+4) { border-top: 1px solid var(--c-border-2); }
.pasp .l { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--c-text-3); }
.pasp .z { margin-top: 3px; font-weight: 500; line-height: 1.35; }
.pasp-esh { margin-top: 10px; font-weight: 500; }

/* Три ответа */
.tri { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.otvet { display: block; text-align: left; padding: 18px 20px; cursor: pointer; }
.otvet:hover { border-color: #cfcdc8; }
.otvet[aria-pressed="true"] { border-color: var(--c-text); box-shadow: inset 0 0 0 1px var(--c-text); }
.otvet .t { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.otvet .b { display: block; font-size: 48px; font-weight: 600; letter-spacing: -.02em; line-height: 1; margin: 12px 0 10px; font-variant-numeric: tabular-nums; }
.otvet .b small { font-size: 16px; font-weight: 500; color: var(--c-text-2); letter-spacing: 0; margin-left: 6px; }
.otvet ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--c-text-2); }
.otvet b { color: var(--c-text); font-weight: 600; font-variant-numeric: tabular-nums; display: inline-block; min-width: 22px; margin-right: 6px; }
.otvet li .lnk { border: 0; font-weight: 400; color: var(--c-text-2); white-space: normal; text-align: left; }
.otvet li .lnk:hover { color: var(--c-text); }
.otvet .ss { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; border-bottom: 1px solid #c4c6ca; }

/* Фильтры и группы */
.bar { margin-top: 28px; display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 5; padding: 10px 0; background: var(--c-bg); }
.sel { height: 38px; border: 1px solid var(--c-border); border-radius: var(--r-ctl); background: var(--c-surface); padding: 0 12px; font: inherit; font-size: 13.5px; color: var(--c-text); }
.poisk { margin-left: auto; width: 280px; height: 38px; border: 1px solid var(--c-border); border-radius: var(--r-ctl); background: var(--c-surface); padding: 0 12px; font: inherit; font-size: 13.5px; }
.gr { margin-top: 14px; overflow: hidden; }
.gh { display: flex; align-items: baseline; gap: 10px; padding: 14px 22px 12px; border-bottom: 1px solid var(--c-border-2); }
.gh .c { font-size: 13px; color: var(--c-text-3); font-variant-numeric: tabular-nums; }
.gh .h { margin-left: auto; font-size: 12.5px; color: var(--c-text-3); text-align: right; max-width: 62%; }
.row { display: grid; grid-template-columns: 14px minmax(0,1fr) 190px 16px; gap: 14px; align-items: center; padding: 11px 22px; border: 0; border-top: 1px solid var(--c-border-2); width: 100%; text-align: left; background: var(--c-surface); cursor: pointer; }
.gh + .row { border-top: 0; }
.row:hover { background: var(--c-surface-2); }
.row[aria-selected="true"] { background: var(--c-surface-2); box-shadow: inset 3px 0 0 var(--c-text); }
.row.stat { cursor: default; }
.row .d { display: block; font-weight: 500; }
.row .p { display: block; font-size: 13px; color: var(--c-text-2); margin-top: 1px; }
.row .m { font-size: 12.5px; color: var(--c-text-2); text-align: right; }
.row .ch { width: 7px; height: 7px; border-right: 1.5px solid #b9bbbf; border-top: 1.5px solid #b9bbbf; transform: rotate(45deg); }
.row .otm { display: block; font-size: 12px; color: var(--c-success); margin-top: 2px; }
.esh-row { display: block; width: 100%; text-align: left; border: 0; background: var(--c-surface); padding: 11px 22px 12px 50px; border-top: 1px solid var(--c-border-2); font-size: 13px; font-weight: 500; color: var(--c-text-2); }
.esh-row:hover { background: var(--c-surface-2); }

/* Карточка замечания */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--c-surface); border-left: 1px solid var(--c-border); box-shadow: -12px 0 40px rgba(0,0,0,.08); display: flex; flex-direction: column; z-index: 20; }
.drawer[hidden] { display: none; }
.drawer .dh { padding: calc(22px + env(safe-area-inset-top, 0px)) 26px 18px; border-bottom: 1px solid var(--c-border-2); }
.drawer .top { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--c-text-2); }
.navs { margin-left: auto; display: flex; gap: 6px; }
.x { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--c-border); background: var(--c-surface); display: grid; place-items: center; color: var(--c-text-2); font-size: 15px; }
.x[disabled] { opacity: .35; cursor: default; }
.drawer h2 { margin-top: 12px; font-size: 20px; line-height: 1.3; }
.drawer .pr { margin-top: 6px; color: var(--c-text-2); }
.drawer .db { padding: 18px 26px; overflow: auto; flex: 1; }
.blk + .blk { margin-top: 22px; }
.blk .label { margin-bottom: 8px; }
.mesto { padding: 12px 0; border-top: 1px solid var(--c-border-2); }
.mesto:first-of-type { border-top: 0; padding-top: 4px; }
.mesto .mh { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.mesto .mh b { font-weight: 600; }
.mesto .mh span { color: var(--c-text-3); }
blockquote { margin: 8px 0 0; font-family: var(--serif); font-size: 13px; line-height: 1.55; border-left: 2px solid var(--c-border); padding-left: 12px; color: var(--c-text-2); }
blockquote mark { background: #fbe9c8; color: var(--c-text); padding: 0 2px; border-radius: 3px; white-space: nowrap; }
.drawer .otm { margin-top: 16px; font-size: 12.5px; color: var(--c-success); }
.drawer .df { padding: 16px 26px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--c-border-2); display: flex; gap: 8px; flex-wrap: wrap; }
.drawer .kray { margin-left: auto; }

/* Комплект */
.tbl { margin-top: 20px; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 13.5px; }
th { text-align: left; font-size: 12px; font-weight: 500; color: var(--c-text-3); padding: 12px 18px; border-bottom: 1px solid var(--c-border); }
th.r { text-align: right; }
td { padding: 11px 18px; border-top: 1px solid var(--c-border-2); vertical-align: top; }
tr:first-child td { border-top: 0; }
td.n { font-variant-numeric: tabular-nums; color: var(--c-text-3); width: 44px; }
td.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.s2, .s2 { font-size: 12.5px; color: var(--c-text-2); white-space: nowrap; }
.st { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; }
.dva-tri { margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.sv { padding: 18px 20px; }
.sv .h { font-size: 12.5px; color: var(--c-text-3); margin: 2px 0 12px; }
.kv { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px 12px; font-size: 13px; }
.kv .k2 { color: var(--c-text-2); }
.sv .lnk { display: inline-block; margin-top: 12px; }
.kody { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 10px; font-size: 12.5px; color: var(--c-text-2); }

/* Сравнение */
.pare { margin-top: 18px; display: flex; align-items: center; gap: 10px; }
.pare[hidden] { display: none; }
.sel-l { display: inline-flex; align-items: center; gap: 8px; }
.sel-l span { font-size: 13.5px; color: var(--c-text-2); }
.pare .sel.stat { display: inline-flex; align-items: center; gap: 12px; }
.pare .sep { color: var(--c-text-3); }
.info { margin-top: 18px; padding: 14px 18px; border-radius: 12px; background: #eef0f6; font-size: 13.5px; }
.info[hidden] { display: none; }
.tabs { margin-top: 22px; display: flex; gap: 4px; border-bottom: 1px solid var(--c-border); }
.tabs:empty { display: none; }
.tabs button { padding: 10px 14px; border: 0; background: transparent; font-weight: 500; color: var(--c-text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--c-text); border-color: var(--c-text); }
.tabs button i { font-style: normal; color: var(--c-text-3); margin-left: 6px; font-variant-numeric: tabular-nums; }

/* Новая сверка */
#forma .karta { margin-top: 20px; padding: 22px 24px; }
#forma .karta + .karta { margin-top: 14px; }
.shag { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.shag .nn { width: 24px; height: 24px; border-radius: 50%; background: var(--c-text); color: #fff; font-size: 12.5px; display: inline-flex; align-items: center; justify-content: center; }
.drop { margin-top: 14px; border: 1.5px dashed #cfcdc8; border-radius: 14px; padding: 22px; display: flex; align-items: center; gap: 18px; background: #fbfbfa; cursor: pointer; transition: border-color .15s, background .15s; }
.drop.nad { border-color: var(--c-text); background: var(--c-surface-2); }
.drop b { display: block; font-weight: 600; }
.drop span { font-size: 13px; color: var(--c-text-2); }
.drop .deystviya { margin-left: auto; display: flex; gap: 8px; }
.vybor { display: grid; gap: 6px; margin-top: 12px; }
.vybor:empty { display: none; }
.vybor-s { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border: 1px solid var(--c-border); border-radius: 12px; font-size: 13px; }
.ubrat { border: 0; background: transparent; font-size: 18px; line-height: 1; color: var(--c-text-3); padding: 2px 6px; border-radius: 8px; }
.ubrat:hover { color: var(--c-text); background: var(--c-surface-2); }
.forma { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px 18px; margin-top: 16px; }
.pole { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pole.dve { grid-column: span 2; }
.pl { font-size: 12.5px; color: var(--c-text-2); font-weight: 500; }
.inp { height: 42px; border: 1px solid #dcdad6; border-radius: var(--r-ctl); background: var(--c-surface); padding: 0 13px; font: inherit; color: var(--c-text); width: 100%; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--c-border); border-radius: var(--r-ctl); background: var(--c-surface); align-self: flex-start; }
.seg button { height: 34px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; font-weight: 500; font-size: 13.5px; color: var(--c-text-2); white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--c-text); color: #fff; }
.rezhimy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.rezhim { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 3px; align-items: start; text-align: left; padding: 13px 16px 13px 14px; border: 1px solid var(--c-border); border-radius: 14px; background: var(--c-surface); transition: border-color .15s, background .15s; }
.rezhim::before { content: ""; grid-row: 1 / 3; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; border: 1.5px solid #c4c6ca; background: var(--c-surface); transition: border-color .15s, box-shadow .15s; }
.rezhim b { font-weight: 600; }
.rezhim span { font-size: 12.5px; color: var(--c-text-2); }
.rezhim:hover { border-color: #c4c6ca; }
.rezhim[aria-checked="true"] { border-color: var(--c-text); background: var(--c-surface-2); }
.rezhim[aria-checked="true"]::before { border-color: var(--c-text); box-shadow: inset 0 0 0 4px var(--c-text); }
.svody { display: grid; gap: 8px; margin-top: 12px; }
.svody[hidden] { display: none; }
.svod-varianty { display: grid; gap: 2px; max-height: 260px; overflow-y: auto; }
.svod-varianty:empty { display: none; }
.svod-var { display: grid; grid-template-columns: auto auto 1fr; gap: 8px; align-items: baseline; text-align: left; border: 1px solid var(--c-border); background: var(--c-surface); border-radius: 10px; padding: 8px 10px; }
.svod-var:hover { background: var(--c-surface-2); }
.svod-var .sub { grid-column: 1 / -1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }
.svod-var b, .svod-chip b { font-size: 11px; font-weight: 600; color: var(--c-success); }
.svod-vybrany { display: flex; flex-wrap: wrap; gap: 6px; }
.svod-vybrany:empty { display: none; }
.svod-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px 2px 10px; border-radius: 8px; border: 1px solid var(--c-text); background: var(--c-surface); font-size: 12.5px; }
.niz-formy { margin-top: 18px; display: flex; align-items: center; gap: 14px; justify-content: flex-end; }
#oshibka-formy { margin-top: 12px; }

/* Ход проверки */
.hod-karta { margin-top: 20px; }
.etapy { list-style: none; margin: 0; padding: 0; }
.etap { display: grid; grid-template-columns: 20px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--c-border-2); font-weight: 500; }
.etap:first-child { border-top: 0; }
.etap.wait { color: var(--c-text-3); }
.etap .znak { width: 12px; height: 12px; border-radius: 50%; background: #e2e1de; justify-self: center; position: relative; }
.etap.done .znak { background: var(--c-success); }
.etap.run .znak { background: var(--c-warning); }
.etap.run .znak::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--c-warning); animation: puls 1.4s ease-out infinite; }
@keyframes puls { from { transform: scale(.5); opacity: .9; } to { transform: scale(1.4); opacity: 0; } }
.etap .r2 { font-size: 12.5px; color: var(--c-text-3); font-variant-numeric: tabular-nums; }
.plitki { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; padding: 18px 20px; border-top: 1px solid var(--c-border-2); }
.plitka { border: 1px solid var(--c-border); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; min-width: 0; transition: border-color .3s; }
.plitka .tn { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.plitka .tn b { font-weight: 600; }
.pl-n { font-style: normal; font-size: 11.5px; color: var(--c-text-3); white-space: nowrap; }
.pl-f { font-size: 11px; color: var(--c-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-bar { display: flex; height: 5px; border-radius: 99px; background: var(--c-border-2); overflow: hidden; }
.pl-bar i { display: block; height: 100%; width: 0; transition: width .7s cubic-bezier(.2, .8, .2, 1); }
.pl-t, .lg-tekst { background: var(--c-text); }
.pl-s, .lg-skan { background: #c4c6ca; }
.pl-a { height: 2px; border-radius: 99px; overflow: hidden; }
.pl-a i, .lg-ssylki { display: block; height: 100%; width: 0; background: var(--c-success); transition: width .5s ease; }
.plitka.tek { border-color: var(--c-text); }
.legenda { display: flex; gap: 18px; flex-wrap: wrap; padding: 0 20px 16px; font-size: 12px; color: var(--c-text-3); }
.legenda span { display: inline-flex; align-items: center; gap: 6px; }
.legenda i { display: inline-block; width: 14px; height: 5px; border-radius: 9px; }
.legenda .lg-ssylki { width: 14px; height: 2px; }
.lenta { list-style: none; margin: 0; padding: 6px 0; }
.lenta li { display: grid; grid-template-columns: 14px minmax(0,1fr); gap: 10px; align-items: center; padding: 8px 22px; font-size: 13px; }
.lenta li.nov { animation: vezd .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes vezd { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .etap.run .znak::after, .lenta li.nov { animation: none; } .pl-bar i, .pl-a i { transition: none; } }

@media (max-width: 900px) {
  :root { --page-x: 16px; }
  .app { grid-template-columns: minmax(0,1fr); }
  .side { position: fixed; inset: 0 auto 0 0; width: min(300px, 88vw); z-index: 30; transform: translateX(-100%); transition: transform .18s ease-out; box-shadow: 0 12px 40px rgba(0,0,0,.18); background: var(--c-bg); }
  .side.open { transform: none; }
  .mob-bar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 10; background: var(--c-bg); border-bottom: 1px solid var(--c-border); padding: calc(8px + env(safe-area-inset-top, 0px)) var(--page-x) 8px; }
  .burger { border: 1px solid var(--c-border); background: var(--c-surface); border-radius: 10px; width: 36px; height: 36px; font-size: 16px; }
  .pasp, .tri, .dva-tri, .forma { grid-template-columns: minmax(0,1fr); }
  .pasp .f { border-left: 0 !important; } .pasp .f + .f { border-top: 1px solid var(--c-border-2); }
  .pole.dve { grid-column: auto; }
  .row { grid-template-columns: 14px minmax(0,1fr); }
  .row .m, .row .ch { display: none; }
  .bar { flex-wrap: wrap; } .poisk { margin-left: 0; width: 100%; }
  .head { flex-wrap: wrap; }
  .gh .h { display: none; }
  .drop { flex-wrap: wrap; } .drop .deystviya { margin-left: 0; }
}

/* ── Реестр требований — по образцу реестра документов ИСЦ (DocsPage) ── */
.razdel-nav { display: flex; align-items: center; gap: 8px; width: 100%; height: 36px; padding: 0 10px; border: 0; background: transparent; border-radius: 8px; font-weight: 500; color: var(--c-text-2); }
.razdel-nav svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.razdel-nav:hover { background: var(--c-surface-2); color: var(--c-text); }
.razdel-nav[aria-current="page"] { background: var(--c-bg); color: var(--c-text); }

/* тулбар над таблицей: поиск + сводка «N из M» + сброс */
.rt-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0 10px; }
.rt-search { width: 320px; max-width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--c-border); border-radius: var(--r-ctl); background: var(--c-surface); font: inherit; }
.rt-search:focus { outline: none; border-color: var(--c-text); }
.rt-summary { flex: 1 1 160px; min-width: 120px; font-size: 12.5px; color: var(--c-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-sbros { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--c-text); border-bottom: 1px solid #c4c6ca; }
.rt-sbros:hover { border-color: var(--c-text); }

/* фасеты-фильтры */
.rt-facets { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.segmented { display: inline-flex; background: var(--c-surface-2); border: 1px solid var(--c-border); border-radius: var(--r-ctl); padding: 3px; gap: 2px; }
.segmented button { height: 30px; padding: 0 12px; border: 0; background: transparent; border-radius: 7px; font-weight: 600; font-size: 13px; color: var(--c-text-2); }
.segmented button[aria-pressed="true"] { background: var(--c-surface); color: var(--c-text); box-shadow: 0 1px 2px rgba(0,0,0,.06); }

/* таблица — карточка с сеткой по --cols (как .table у ИСЦ) */
.rt { --cols: 58px minmax(0, 1.7fr) minmax(0, 2.2fr) 150px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 16px; overflow: clip; }
.rt-head { display: grid; grid-template-columns: var(--cols); gap: 10px; align-items: center; padding: 8px 16px; background: var(--c-surface-2); border-bottom: 1px solid var(--c-border); }
.rt-head .th { min-width: 0; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-text-3); white-space: nowrap; }
.rt-head .th.thSort { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; cursor: pointer; }
.rt-head .th.thSort:hover { color: var(--c-text); }
.rt-head .th.on { color: var(--c-text); }
.rt-head .th .arr { opacity: .5; } .rt-head .th.on .arr { opacity: 1; }
.rt-row { display: grid; grid-template-columns: var(--cols); gap: 10px; align-items: center; min-height: 40px; padding: 8px 16px; border-bottom: 1px solid var(--c-border-2); font-size: 13px; line-height: 1.35; cursor: pointer; transition: background .1s ease; }
.rt-row:hover { background: var(--c-surface-2); }
.rt-row:last-child { border-bottom: 0; }
.rt-row .td { min-width: 0; }
.rt-row .td.sec { color: var(--c-text-2); }
.rt-row .td b { font-weight: 600; } .rt-row .td .d { color: var(--c-text-3); font-size: 12px; }
.rt-pusto { padding: 44px 16px; text-align: center; color: var(--c-text-3); }
.rt-eshe { display: block; width: 100%; padding: 12px; border: 0; border-top: 1px solid var(--c-border-2); background: var(--c-surface); font: inherit; font-weight: 600; color: var(--c-text-2); }
.rt-eshe:hover { background: var(--c-surface-2); color: var(--c-text); }
.prov { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 21px; padding: 0 7px; border-radius: 6px; font-weight: 700; font-size: 12px; }
.prov.P { background: #eef3fb; color: var(--c-accent); } .prov.V { background: #eaf5ee; color: var(--c-success); }
.reshenie { font-size: 12.5px; } .reshenie.ost { color: var(--c-success); } .reshenie.pon { color: var(--c-warning-t); } .reshenie.net { color: var(--c-text-3); }

/* карточка требования в drawer */
.treb-dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; }
.treb-dl dt { color: var(--c-text-3); font-size: 12px; } .treb-dl dd { margin: 0; word-break: break-word; }

@media (max-width: 760px) { .rt { --cols: 44px minmax(0,1fr) 96px; } .rt-head .th.col-chto, .rt-row .td.col-chto { display: none; } }

/* режим реестра и «хлебная крошка» базы НПА */
.rt-rezhim { margin: 14px 0 6px; }
.rt-put { display: flex; align-items: center; gap: 8px; margin: 8px 0 2px; font-size: 13px; color: var(--c-text-2); }
.rt-put .nazad { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--c-text); border-bottom: 1px solid #c4c6ca; }
.rt-put .nazad:hover { border-color: var(--c-text); }
.rt-put b { font-weight: 600; color: var(--c-text); }
.rt-modal { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 600; background: var(--c-surface-2); color: var(--c-text-2); border: 1px solid var(--c-border); }
.rt-modal.predpisanie { background: #eef3fb; color: var(--c-accent); border-color: #d5e0f0; }
.rt-modal.zapret { background: #fbeeed; color: var(--c-danger); border-color: #f0d7d5; }
.rt-row .td .cond { color: var(--c-text-3); font-size: 12px; }
