/* Н4 «по макету Gemini» (docs/DESIGN_BRIEF.md §8и, выбор пользователя 2026-09-19): Golos Text, хвойный #0f3823, карточки и таблетки.
   Основа вёрстки — Д1 (§8б–8в); правила Н4 — в конце файла и перекрывают основу. Контраст всех текстов ≥ 7 : 1 в обеих темах */
:root {
  --paper: #f9fbf8; --surface: #ffffff; --subtle: #f1f4f1; --ink: #111827; --muted: #434b57; --line: #e2e8e0; --line2: #b9c2b8; --card-line: #cfd8ce;
  --accent: #0f3823; --brand: #0f3823; --on-brand: #ffffff; --link: #0f3823; --focus: #2563eb;
  --ok: #166534; --ok-text: #14532d; --ok-bg: #dcfce7; --warn: #92400e; --warn-text: #7a3509; --warn-bg: #fef3c7; --danger: #991b1b;
  --font-display: "Golos Text", "Segoe UI", sans-serif; --font-body: "Golos Text", "Segoe UI", sans-serif;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --t-xs: 14px; --t-sm: 16px; --t-md: 18px; --t-lg: 22px; --t-xl: 28px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); font-family: var(--font-body); color: var(--ink); font-size: var(--t-md); line-height: 1.5; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3, .wm b { font-family: var(--font-display); font-weight: 700; margin: 0; }
h1 { font-size: var(--t-xl); line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; overflow-wrap: anywhere; }
h2 { font-size: var(--t-lg); line-height: 1.2; margin-top: var(--s5); }
h3 { font-size: var(--t-md); line-height: 1.3; margin-top: var(--s4); }
p { margin: var(--s2) 0; text-wrap: pretty; }
ul, ol { padding-left: 1.2em; margin: var(--s2) 0; }
li { margin: var(--s1) 0; }
.muted { color: var(--muted); }
.sm { font-size: var(--t-sm); line-height: 1.4; }
.xs { font-size: var(--t-xs); line-height: 1.3; }
.wrap { max-width: 776px; margin: 0 auto; padding: var(--s3) var(--s4) var(--s6); }

.hdr { background: var(--surface); border-bottom: 3px double var(--ink); }
.hdr-in { max-width: 1180px; margin: 0 auto; min-height: 56px; padding: var(--s2) var(--s4); display: flex; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: var(--s2); color: var(--ink); text-decoration: none; }
.brand svg { width: 32px; height: 32px; flex-shrink: 0; color: var(--accent); }
.wm { display: flex; flex-direction: column; line-height: 1.1; }
.wm b { font-size: var(--t-lg); }
.wm span { font-size: var(--t-xs); color: var(--muted); }
.hdr { position: relative; }
.menu { display: flex; flex-wrap: wrap; gap: 0 var(--s4); }
.menu a { display: inline-flex; align-items: center; min-height: 48px; color: var(--ink); font-weight: 700; font-size: var(--t-sm); }
.menu-d { display: none; }
.mnav summary { list-style: none; cursor: pointer; }
.mnav summary::-webkit-details-marker { display: none; }
.iconbtn { width: 48px; height: 48px; border: 1.5px solid var(--ink); border-radius: 3px; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.mnav[open] .menu { position: absolute; left: 0; right: 0; top: 100%; z-index: 10; flex-direction: column; padding: var(--s2) var(--s4); background: var(--surface); border-bottom: 3px double var(--ink); }
.mnav[open] .menu a { font-size: var(--t-md); border-bottom: 1px solid var(--line); }
.hbtns { display: flex; gap: var(--s2); }
.hsearch { display: none; }
@media (min-width: 900px) {
  .menu-d { display: flex; flex-basis: 100%; border-top: 1px solid var(--line); }
  .hbtns { display: none; }
  .hsearch { display: flex; flex: 1; align-items: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s3); border: 1.5px solid var(--ink); border-radius: 3px; background: var(--paper); color: var(--muted); }
  .hsearch input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: var(--t-md) var(--font-body); min-height: 44px; }
  .hsearch input:focus { outline: none; }
  .hsearch:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
}
.sform { display: flex; gap: var(--s2); margin: var(--s4) 0 var(--s2); }
.sform input { flex: 1; min-width: 0; min-height: 48px; padding: 0 var(--s3); border: 1.5px solid var(--ink); border-radius: 3px; background: var(--surface); color: var(--ink); font: var(--t-md) var(--font-body); }
input::placeholder { color: var(--muted); opacity: 1; }  /* подсказка браузера по умолчанию бледнее 4,5 : 1 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s4); border: 1.5px solid var(--ink); border-radius: 3px; background: var(--ink); color: var(--surface); font: 700 var(--t-md) var(--font-body); cursor: pointer; }
.draft-bar { background: var(--warn-bg); border-bottom: 1.5px solid var(--warn); padding: var(--s1) var(--s4); font-size: var(--t-xs); text-align: center; }

.crumbs { color: var(--muted); margin: var(--s2) 0; }
.crumbs a { color: var(--muted); }
.lead { font-size: var(--t-md); }
/* телефон: ответ («Чем обработать») раньше вводного абзаца — доза первой карточки в первом экране 375 × 812
   (DESIGN_BRIEF §8г). В разметке абзац остаётся первым; на компьютере порядок прежний */
@media (max-width: 899px) {
  .c-main { display: flex; flex-direction: column; }
  .c-main > * { order: 2; }
  .c-main > [data-pp], .c-main > .calc-m, .c-main > .after, .c-main > .sec-first { order: 0; }
  .c-main > .sec-first > h2 { margin-top: var(--s3); }
  .c-main > .lead { order: 1; }
  .c-main > [data-pp] > h2:first-child { margin-top: var(--s3); }
}

.answer { margin-top: var(--s4); }
.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: var(--s2) 0; }
.tscroll:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; font-size: var(--t-sm); }
.tbl th { font-size: var(--t-xs); font-weight: 400; color: var(--muted); text-align: left; padding: var(--s2) var(--s2) var(--s2) 0; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.tbl td { padding: var(--s3) var(--s2) var(--s3) 0; border-bottom: 1px solid var(--line); vertical-align: baseline; white-space: nowrap; }
.tbl td.wrapcell { white-space: normal; min-width: 180px; }
[hidden] { display: none !important; }
.ic { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-s { width: 16px; height: 16px; }
.badge { display: inline-flex; align-items: center; gap: var(--s1); height: 32px; padding: 0 var(--s2); border-radius: 3px; font-size: var(--t-sm); font-weight: 700; white-space: nowrap; }
.b-ok { background: var(--ok); color: var(--surface); }
.b-warn { background: var(--warn-bg); color: var(--ink); border: 1.5px solid var(--warn); }
.b-danger { background: var(--danger); color: var(--surface); }
.num { font-size: var(--t-xl); font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums lining-nums; }
.num-s { font-size: var(--t-md); line-height: 1.2; }

/* фильтр и калькулятор работают только со скриптом */
.sel { display: flex; flex-direction: column; gap: var(--s1); min-width: 0; }
.sel > span { font-size: var(--t-sm); color: var(--muted); }
.sel select { width: 100%; min-height: 48px; padding: 0 var(--s3); border: 1.5px solid var(--ink); border-radius: 3px; background: var(--surface); color: var(--ink); font: 700 var(--t-md) var(--font-body); }
.filters { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); margin: var(--s3) 0 var(--s1); }
.js .filters { display: grid; }
.cnt { display: flex; justify-content: space-between; align-items: center; gap: 0 var(--s3); flex-wrap: wrap; margin-top: var(--s2); }
.sel-in { display: none; }
.js .sel-in { display: inline-flex; }
.sel-in select { min-height: 44px; border: 0; background: transparent; color: var(--link); font: var(--t-sm) var(--font-body); text-decoration: underline; text-underline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.calc { display: none; }
.js .calc { display: block; }
.js .calc-d { display: none; }
.calc h3 { margin-top: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }

/* карточка препарата: три цифры (D1Main) */
.pcard { background: var(--surface); border-top: 2px solid var(--ink); padding: var(--s3) 0 0; margin: var(--s4) 0; display: flex; flex-direction: column; gap: var(--s2); }
.pcard p { margin: 0; }
.pc-l, .pc-r { display: flex; flex-direction: column; gap: var(--s2); }
.pc-h { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); }
.pc-h h3 { margin: 0; font-size: var(--t-lg); line-height: 1.2; }
.pc-h h3 a { color: var(--ink); }
.pc-b { display: flex; flex-wrap: wrap; gap: var(--s2); }
.nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.more { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); min-height: 48px; border-top: 1px solid var(--line); font-weight: 700; text-decoration: none; }
.rest h3 { margin-top: var(--s5); }
.nolph { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s3); border: 1.5px solid var(--danger); border-radius: 3px; background: var(--surface); margin: var(--s4) 0; }
.nolph p { margin: 0; }
.nl-h { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); }
.nl-h h3 { margin: 0; font-size: var(--t-lg); }
.box { background: var(--surface); border: 1.5px solid var(--ink); border-radius: 3px; padding: var(--s3); margin: var(--s4) 0; }
.box-warn { background: var(--warn-bg); border-color: var(--warn); }
.box-warn a { color: var(--ink); }  /* ссылка на жёлтом — цвет текста, подчёркнута */
.facts h3 { margin-top: 0; }
.causes li { margin: var(--s2) 0; }

.outline { margin-top: var(--s5); border-top: 2px solid var(--ink); padding-top: var(--s2); }
/* ── статья: вид Т2 «Статья с содержанием» (DESIGN_BRIEF §8о, 2026-09-20) ──
   Статья идёт в нижних двух пятых страницы, поэтому у неё своя шапка, содержание с якорями
   и возврат наверх, к препаратам. Типографика длинного чтения: интервал 1,65, лид крупнее. */
.text { margin-top: var(--s6); }
.t-head { display: flex; align-items: baseline; gap: var(--s2); padding-top: var(--s3); border-top: 2px solid var(--ink); }
.t-head b { font-family: var(--font-display); font-size: var(--t-lg); }
.t-head span { font-size: var(--t-xs); color: var(--muted); }
.text > p { line-height: 1.65; margin: 0 0 var(--s4); }
.text > p.lead-t { font-size: 20px; line-height: 1.55; }
.text h2 { font-size: var(--t-lg); line-height: 1.25; margin: var(--s6) 0 var(--s2); padding-top: var(--s4);
  border-top: 1px solid var(--line); scroll-margin-top: var(--s4); }
.text h3 { margin: var(--s5) 0 var(--s2); }
.text a { text-decoration: underline; text-underline-offset: 3px; }
.text ul, .text ol { padding-left: 1.2em; }
.text li { margin: var(--s1) 0; line-height: 1.6; }
.text figure, .text .ph-row { margin: var(--s3) 0 var(--s4); }
.t-toc { margin: var(--s3) 0 var(--s5); border: 1.5px solid var(--line2); border-radius: 12px; background: var(--subtle); }
.t-toc > summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px;
  padding: 0 var(--s4); font-weight: 700; cursor: pointer; list-style: none; }
.t-toc > summary::-webkit-details-marker { display: none; }
.t-toc > summary::after { content: "▾"; color: var(--muted); }
.t-toc[open] > summary::after { content: "▴"; }
.t-toc ol { margin: 0; padding: 0 var(--s4) var(--s2); list-style: none; counter-reset: toc; }
.t-toc li { counter-increment: toc; border-top: 1px solid var(--line); margin: 0; }
.t-toc a { display: flex; gap: var(--s2); align-items: center; min-height: 48px; text-decoration: none; }
.t-toc a::before { content: counter(toc); min-width: 24px; color: var(--muted); font-variant-numeric: tabular-nums; }
.t-jump { display: flex; align-items: center; gap: var(--s2); min-height: 48px; margin: var(--s3) 0;
  padding: var(--s2) var(--s4); border: 1.5px solid var(--line2); border-radius: 28px;
  background: var(--surface); font-weight: 700; text-decoration: none; }
.t-up { display: inline-flex; align-items: center; min-height: 48px; margin-top: var(--s4); font-weight: 700; }
/* вопросы и ответы: врезкой, не аккордеоном — свёрнутый ответ читатель не видит, а поиск ценит ниже */
.qa { margin: 0 0 var(--s4); padding-left: var(--s3); border-left: 3px solid var(--line2); }
.qa > b { display: block; margin-bottom: var(--s1); }
.qa > p { margin: 0; line-height: 1.65; }
.ph-text { color: var(--muted); font-style: italic; font-size: var(--t-sm); }

.lblock { border-top: 1px solid var(--line); margin-top: var(--s4); padding-top: var(--s2); }
.lblock ul { list-style: none; padding: 0; columns: 2 260px; column-gap: var(--s5); }
.lblock li { break-inside: avoid; }
.lblock a { display: inline-flex; align-items: center; min-height: 44px; }

.foot { background: var(--surface); border-top: 3px double var(--ink); margin-top: var(--s6); }
.foot h3, .foot .foot-h { margin-top: var(--s4); font-size: var(--t-md); }
.foot .links { display: flex; flex-wrap: wrap; gap: 0 var(--s4); }
.foot .links a { display: inline-flex; align-items: center; min-height: 48px; }

/* страница препарата (D1Product) */
.tag { display: inline-flex; align-items: center; height: 32px; padding: 0 var(--s2); border: 1px solid var(--line); border-radius: 3px; font-size: var(--t-sm); color: var(--muted); white-space: nowrap; }
.phead { display: flex; flex-direction: column; gap: var(--s2); margin: var(--s2) 0; }
.phead p { margin: 0; }
.regs { border-top: 1px solid var(--line); }
.reg { display: flex; flex-direction: column; gap: var(--s1); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.reg p { margin: 0; }
.reg-num { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); font-variant-numeric: tabular-nums lining-nums; }
.reg-num b { display: block; font-size: var(--t-lg); line-height: 1.15; }
.reg-num span { font-size: var(--t-sm); color: var(--muted); }
.regs-more summary { display: flex; align-items: center; min-height: 48px; font-weight: 700; color: var(--link); cursor: pointer; }
.gh { display: flex; gap: var(--s2); align-items: flex-start; }
.gh .ic { margin-top: 4px; }
.gh p { margin: 0; }
.alts { border-top: 1px solid var(--line); }
.alt { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); min-height: 64px; padding: var(--s1) 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.alt b { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.alt b.nolink { color: var(--ink); text-decoration: none; }
.dls { border-top: 1px solid var(--line); }
.dl { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); gap: var(--s2); padding: var(--s2) 0; border-bottom: 1px solid var(--line); font-size: var(--t-sm); line-height: 1.35; }
.species { list-style: none; padding: 0; }
.species li { padding: var(--s2) 0; border-bottom: 1px solid var(--line); margin: 0; }
.myth { padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.myth p { margin: var(--s1) 0; }

/* диагностика (D1Diagnosis): причины с признаком, «что делать» и фильтром по типу */
.chips { display: none; flex-wrap: wrap; gap: var(--s2); margin: var(--s3) 0; }
.js .chips { display: flex; }
.chip { min-height: 44px; padding: 0 var(--s3); border: 1.5px solid var(--ink); border-radius: 22px; background: var(--surface); color: var(--ink); font: 700 var(--t-sm) var(--font-body); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.cause-list { list-style: none; padding: 0; margin: var(--s2) 0; border-top: 1px solid var(--line); }
.cause { padding: var(--s3) 0; margin: 0; border-bottom: 1px solid var(--line); }
.cause p { margin: var(--s1) 0 0; }
.c-h { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); }
.c-h b { font-size: var(--t-md); }
.c-h .tag { flex-shrink: 0; }

/* компьютер: колонки 776 + 376 (D1MainDesk) */
@media (min-width: 1200px) {
  main.wrap, .hdr-in { max-width: 1232px; }
  .cols { display: grid; grid-template-columns: 776px 376px; gap: 48px; align-items: start; }
  .c-side { padding-top: var(--s4); }
  .c-side .lblock ul { columns: 1; }
  .filters { grid-template-columns: 240px 240px; }
  .js .calc-m { display: none; }
  .js .calc-d { display: block; }
  .pcard { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--s2) var(--s5); }
  .pc-l { padding-left: var(--s3); }
  .pc-r { padding-right: var(--s3); }
  .pc-h { flex-direction: column; gap: var(--s1); }
  .pcard .more { grid-column: 1 / -1; padding: 0 var(--s3); }
  .dl { grid-template-columns: 200px minmax(0, 1fr); gap: var(--s3); }
}

/* тёмная тема — токены макета design/concepts-structure/StyleADark.dc.html (контраст проверен scripts/d1_check.py) */
/* «Ещё для дачи» — Т4 (DESIGN_BRIEF §8г): группы по сроку до сбора, один состав — одна строка */
.rg { display: block; margin-top: var(--s3); }
.rg-h { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); padding: var(--s2) 0; border-bottom: 2px solid var(--ink); }
.rg-h b { font-family: var(--font-display); }
.rg-fold > summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: var(--s2); }
.rg-fold > summary::-webkit-details-marker { display: none; }
.more-btn { display: flex; align-items: center; min-height: 48px; padding: 0 var(--s3); border: 1.5px solid var(--ink); border-radius: 3px; background: var(--surface); font-weight: 700; }
.rg-fold[open] .more-btn { display: none; }
.r4 { padding: var(--s3) 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.r4 .nm { font-weight: 700; font-size: var(--t-md); line-height: 1.35; }
.r4-k { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--s3); }
.r4-k .xs { flex-basis: 100%; }
.r4-v { font-size: var(--t-md); font-variant-numeric: tabular-nums lining-nums; }
.kind { display: inline-flex; align-items: center; gap: 4px; font-size: var(--t-xs); color: var(--muted); white-space: nowrap; }
.k-bio { color: var(--ok-text); font-weight: 700; }
.ic-s { width: 16px; height: 16px; }
.exc { color: var(--warn-text); font-weight: 700; }
.gnd { font-size: var(--t-xs); font-weight: 700; color: var(--warn-text); }
.hid { color: var(--muted); border-bottom: 1px solid var(--line); padding: var(--s2) 0; }
.linkbtn { background: none; border: 0; padding: 0 var(--s1); min-height: 32px; color: var(--link); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.other ul { margin: var(--s1) 0 0; }
@media (min-width: 700px) {
  .r4 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s4); align-items: baseline; }
  .r4-n { grid-row: span 2; }
  .exc { grid-column: 2; }
}

/* фото симптомов (design/photos/SOURCES.md): подпись с автором и лицензией обязательна */
.ph { margin: var(--s4) 0; }
.ph img { display: block; width: 100%; height: auto; max-height: 240px; object-fit: cover; border: 1px solid var(--line); border-radius: 3px; background: var(--line); }
a.by { color: inherit; text-decoration: none; }
.ph figcaption { font-size: var(--t-xs); color: var(--muted); margin-top: var(--s1); line-height: 1.35; }
.ph-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.ph-row .ph { margin: 0; }
.ph-row .ph img { height: 160px; }
  .ph-side { display: none; margin-top: 0; }
@media (min-width: 900px) { .ph-side { display: block; } .ph img { max-height: 360px; } .ph-row .ph img { height: 220px; } }

/* дозы удобрения по группам культур (страница вещества) */
.fgrp { margin-top: var(--s4); }
.fgrp h3 { margin: 0; padding-bottom: var(--s1); border-bottom: 2px solid var(--ink); }
.fgrp > .xs { margin: var(--s1) 0 0; }
.fdose { padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.fd-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px var(--s3); }
.fd-d { font-weight: 700; font-variant-numeric: tabular-nums lining-nums; }
.fdose p { margin: 2px 0 0; }
.fd-x { font-weight: 700; }
.fregs > summary { font-weight: 700; }

/* хаб объекта: «чем чаще обрабатывают» — карточки вместо таблицы */
.hcard { border-top: 2px solid var(--ink); padding: var(--s3) 0; margin-top: var(--s3); }
.hcard h3 { margin: 0 0 var(--s1); }
.hcard p { margin: var(--s1) 0 0; }
/* проход 1 оценки персонами (DESIGN_BRIEF §8д): признак над ответом, шаги плана из D1Main, расчёт из карточки, поделиться */
.sign { border-left: 4px solid var(--accent); background: var(--surface); padding: var(--s2) var(--s3); margin: var(--s3) 0 0; }
.sign p { margin: 0; }
.sign + h2 { margin-top: var(--s4); }
.step { display: flex; align-items: flex-start; gap: var(--s2); margin: var(--s2) 0; }
.stn { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%;
       background: var(--ink); color: var(--paper); font: 700 var(--t-sm)/1 var(--font-body); margin-right: var(--s2); vertical-align: 3px; }
.step .stn { margin: 0; }
.calc-go { display: none; }
.js .calc-go { display: flex; align-items: center; min-height: 48px; padding: 0; border: 0; border-top: 1px solid var(--line); background: none;
               color: var(--link); font: var(--t-md) var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.after { margin: var(--s4) 0; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-top: var(--s3); }
.btn2 { min-height: 48px; padding: 0 var(--s4); border: 1.5px solid var(--ink); border-radius: 3px; background: var(--surface); color: var(--ink);
        font: 700 var(--t-md) var(--font-body); cursor: pointer; }
.btn2:focus-visible, .calc-go:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.brand { min-height: 48px; }
.mkh { margin: var(--s4) 0 0; padding-bottom: var(--s1); border-bottom: 2px solid var(--ink); }
@media (min-width: 1200px) { .pcard .calc-go { grid-column: 1 / -1; margin: 0 var(--s3); } }
@media print {
  .hdr, .draft-bar, .foot, .c-side, .filters, .cnt, .share, .calc, .calc-go, .crumbs, .lblock, .ph, .ph-row { display: none !important; }
  body { background: #fff; color: #000; }
  .pcard[hidden] { display: none; }
  .cols { display: block; }
}
/* главная: концепт Г2 с поиском первым (DESIGN_BRIEF §8е) */
.hs-big input, .hs-big .btn { min-height: 56px; }
.hchips { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s3) 0; }
.hchip { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--s4); border: 1.5px solid var(--ink); border-radius: 24px; background: var(--surface); color: var(--ink); font-weight: 700; font-size: var(--t-sm); text-decoration: none; }
.hchip[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.hchip:focus-visible, .h-step:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.h-step:focus { outline: none; }
.hchip-o { border-style: dashed; }
.h-step { display: flex; align-items: center; gap: var(--s2); scroll-margin-top: var(--s3); }
.hc-panel { margin-top: var(--s5); padding-top: var(--s2); border-top: 3px double var(--ink); }
.hc-panel > h2 { margin-top: var(--s2); }
.hc-now { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--s3); }
.hc-now .linkbtn { min-height: 48px; }
.h-side .box h2 { margin-top: 0; font-size: var(--t-md); }
@media (min-width: 1200px) {
  .home { display: grid; grid-template-columns: 776px 376px; gap: 48px; align-items: start; }
  .h-side { padding-top: var(--s6); position: sticky; top: var(--s4); }
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #0d110f; --surface: #161c18; --subtle: #1e2621; --ink: #f3f4f6; --muted: #b0b6bf; --line: #2d3730; --line2: #4a584e; --card-line: #3a463d;
          --accent: #4ade80; --brand: #4ade80; --on-brand: #0d110f; --link: #86efac; --focus: #60a5fa;
          --ok: #166534; --ok-text: #4ade80; --ok-bg: #143821; --warn: #fcd34d; --warn-text: #fcd34d; --warn-bg: #422d08; --danger: #991b1b;
          --shadow: 0 1px 3px rgba(0,0,0,.3); }
  .b-danger { color: #ffffff; }
  /* --ok тут — фон плашки; для текста свой светлый зелёный (8,9 : 1 на бумаге, 8,3 : 1 на карточке).
     Светлая тема: --ok-text 8,1 : 1, --warn-text 8,0 : 1 (цвета --ok / --warn остаются для плашек и рамок) */
  /* ссылка на тёмно-жёлтом блоке: обычная #94b8f8 даёт 5,9 : 1 */
  .box-warn a { color: var(--ink); }
}

/* ═══ Н4 (DESIGN_BRIEF §8и): перенесено из вариантов skins.css ═══ */
/* ── общий слой «как приложение»: карточки, скругления, таблетки ── */
.hdr { border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.mnav[open] .menu { border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.foot { border-top: 1px solid var(--line); }
.iconbtn { border: 1px solid var(--line2); border-radius: 12px; background: var(--subtle); }
.hsearch { border: 1px solid var(--line2); border-radius: 24px; background: var(--subtle); padding: 0 var(--s4); }
.sform input { border: 1px solid var(--line2); border-radius: 24px; padding: 0 var(--s4); }
.btn { border-radius: 24px; background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn2, .more-btn { border: 1px solid var(--line2); border-radius: 12px; }
.sel select { border: 1px solid var(--line2); border-radius: 24px; background: var(--subtle); padding: 0 var(--s4); }
.chip, .hchip { border: 1px solid var(--line2); background: var(--surface); }
.chip[aria-pressed="true"], .hchip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.stn { background: var(--brand); color: var(--on-brand); }
.badge { border-radius: 8px; }
.tag { border-radius: 8px; background: var(--subtle); border-color: var(--subtle); color: var(--muted); }

/* хлебные крошки: зона нажатия 44 px */
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs { margin: 0; }

/* карточка препарата */
.pcard { border: 1px solid var(--line); border-radius: 16px; padding: var(--s4); box-shadow: var(--shadow); gap: var(--s3); }
.pc-h h3 a { text-decoration: none; }
.nums { background: var(--subtle); border-radius: 12px; padding: var(--s3) var(--s1); gap: 0; text-align: center; grid-template-columns: 1.3fr 1fr 1fr; }
.nums > div { padding: 0 var(--s1); }
.nums > div + div { border-left: 1px solid var(--line2); }
.nums .sm { color: var(--muted); }
.nums .num { font-size: 24px; }
.nums .num-s { font-size: var(--t-md); }
@media (min-width: 1200px) { .nums .num { font-size: var(--t-xl); } }
.js .calc-go, .js .calc-go { justify-content: center; border: 1px solid var(--line2); border-radius: 12px; text-decoration: none; font-weight: 700; color: var(--ink); background: var(--surface);
  padding: var(--s1) var(--s3); text-align: center; line-height: 1.25; }
.pcard .more { border-top: 0; margin: 0 calc(-1 * var(--s4)) calc(-1 * var(--s4)); padding: 0 var(--s4); border-top: 1px solid var(--line); }
@media (min-width: 1200px) {
  .pcard .more { margin: 0 calc(-1 * var(--s4)) calc(-1 * var(--s4)); padding: 0 var(--s4); }
  .pc-l { padding-left: 0; }
  .pc-r { padding-right: 0; }
  .pcard .calc-go { margin: 0; }
}

/* признаки: карточка, «Не похоже?» — строка 48 px во всю ширину */
.sign { border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 12px; padding: var(--s3) var(--s4) 0; }
.sign a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin: var(--s2) calc(-1 * var(--s4)) 0; padding: 0 var(--s4);
  border-top: 1px solid var(--line); font-weight: 700; text-decoration: none; color: var(--link); }
.sign a::after { content: "›"; font-size: 24px; line-height: 1; }

/* фото болезни над признаками (как в концепте 3): кнопка «Не похоже?» поверх фото, признаки под фото одной карточкой.
   На компьютере фото уже в боковой колонке — здесь не повторяем */
.sign-ph { position: relative; margin: var(--s3) 0 0; border-radius: 16px 16px 0 0; overflow: hidden; background: var(--subtle); }
.sign-ph img { display: block; width: 100%; height: 200px; object-fit: cover; }
.sp-go { position: absolute; left: var(--s3); right: var(--s3); bottom: var(--s3); display: flex; align-items: center; justify-content: space-between;
  min-height: 48px; padding: 0 var(--s4); border-radius: 24px; background: var(--surface); color: var(--ink); font-weight: 700; text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.sp-go::after { content: "›"; font-size: 24px; line-height: 1; }
.sp-go:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sign-wph { margin-top: 0; border-radius: 0 0 16px 16px; border-top: 0; padding-bottom: var(--s3); }
.sign-wph a { display: none; }
@media (min-width: 1200px) {
  .sign-ph { display: none; }
  .sign-wph { margin-top: var(--s3); border-radius: 12px; border-top: 1px solid var(--line); padding-bottom: 0; }
  .sign-wph a { display: flex; }
}

/* списки-переходы — сгруппированный список, как в настройках телефона */
.alts { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.alt { padding: var(--s1) var(--s4); }
.alt:last-child { border-bottom: 0; }
.alt b { text-decoration: none; }
.alt .ic { color: var(--muted); }

/* блоки и разделители: тонкие линии вместо двойных и чёрных */
.box { border: 1px solid var(--line); border-radius: 16px; padding: var(--s4); box-shadow: var(--shadow); }
.box-warn { border-color: var(--warn); box-shadow: none; }
.nolph { border-radius: 16px; }
.rg-h, .mkh, .fgrp h3 { border-bottom: 1px solid var(--line2); }
.hcard { border: 1px solid var(--line); border-radius: 16px; padding: var(--s4); background: var(--surface); box-shadow: var(--shadow); }
.outline { border-top: 1px solid var(--line); }   /* у статьи своя шапка «Подробно» с линией */
.text { border-top: 0; }
.hc-panel { border-top: 0; border: 1px solid var(--line); border-radius: 16px; padding: var(--s4); background: var(--surface); box-shadow: var(--shadow); }
.ph img { border-radius: 12px; }
.tbl th { border-bottom-color: var(--line2); }

/* ── Н4: по макетам Gemini (docs/UX_REVIEW.md §8, картинки пользователя 2026-09-19): цвета Н1 и меньше вещей на экране —
   знак и поиск в шапке, «‹ раздел» вместо крошек, фото с кнопкой вместо абзаца признаков, переключатель «Где растут»,
   в карточке название, вид, «Для дачи», три цифры, повтор и одна кнопка (состав и аналоги — на странице препарата) ── */
.hdr .wm span { display: none; }
h1 { font-size: 30px; font-weight: 800; line-height: 1.12; }
.sign-ph img { height: 180px; }
.brand svg { width: 44px; height: 44px; padding: 7px; border-radius: 50%; background: var(--brand); color: var(--on-brand); }
@media (max-width: 899px) {
  .hdr-in { flex-wrap: nowrap; gap: var(--s3); }
  .hdr .wm { display: none; }
  h1 { font-size: 26px; }
  .sign-ph img { height: 150px; }
  .hsearch { display: flex; flex: 1; min-width: 0; align-items: center; gap: var(--s2); min-height: 48px; color: var(--muted); }
  .hsearch input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: var(--t-md) var(--font-body); min-height: 44px; }
  .hsearch input:focus { outline: none; }
  .hsearch:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
  .hbtns > a.iconbtn { display: none; }
}
@media (max-width: 899px) {   /* телефон: «‹ раздел»; на компьютере — полные крошки */
  .crumbs { font-size: 0; }
  .crumbs a { display: none; }
  .crumbs a:last-of-type { display: inline-flex; font-size: var(--t-sm); color: var(--ink); text-decoration: none; font-weight: 700; }
  .crumbs a:last-of-type::before { content: "‹"; font-size: 24px; line-height: 1; margin-right: var(--s2); }
}
.chk { font-size: var(--t-xs); margin: var(--s1) 0 0; }
.sign-ph { border-radius: 16px; }
.sign-wph { display: none; }
.js .seg[hidden] { display: flex !important; }  /* без скрипта — обычный список «Где растут» не виден (фильтры только со скриптом) */
.seg { grid-template-columns: auto 1fr auto; gap: 4px; padding: 4px; margin: var(--s3) 0 var(--s2); border-radius: 28px; background: var(--subtle); border: 1px solid var(--line); }
.seg button { min-height: 44px; padding: 0 var(--s3); border: 0; border-radius: 22px; background: transparent; color: var(--ink); font: 700 var(--t-sm) var(--font-body); cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }
.seg button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.filters .sel:first-child { display: none; }
.js .filters { display: flex; margin: 0; }
.filters .sel { flex-direction: row; align-items: center; gap: var(--s2); }
.filters .sel > span { white-space: nowrap; }
.filters .sel select { width: auto; max-width: max-content; min-height: 44px; border: 0; background: transparent; padding: 0 var(--s1); color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.cnt { display: none; }
.pc-h { align-items: center; }
.pc-h h3 a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.pc-kind { display: inline-flex; align-items: center; height: 32px; padding: 0 var(--s3); border-radius: 16px; background: var(--subtle); color: var(--ink); font-size: var(--t-sm); }
.pc-bio { background: var(--ok-bg); color: var(--ok-text); font-weight: 700; }
.nums { background: none; padding: var(--s2) 0; border-top: 1px solid var(--line); }
.pcard .more { display: none; }
.js .calc-go, .js .calc-go { border: 1.5px solid var(--brand); border-radius: 24px; color: var(--brand); font-size: var(--t-sm); }

/* Н4: вместо «Сколько развести» — цена и оценка покупателей; аналоги — «Тот же состав: ещё N ›» с кнопками (решение пользователя 2026-09-19) */
.pcard .calc-go, .js .pcard .calc-go { display: none; }
.same { display: block; border-top: 1px solid var(--line); }
.same summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; list-style: none; cursor: pointer; font-weight: 700; color: var(--link); }
.same summary::-webkit-details-marker { display: none; }
.same[open] summary .ic { transform: rotate(90deg); }
.same summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.same-l { display: flex; flex-wrap: wrap; gap: var(--s2); padding: 0 0 var(--s2); }
.same-l > * { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s3); border: 1px solid var(--line2); border-radius: 22px; background: var(--surface); color: var(--ink); font-weight: 700; font-size: var(--t-sm); text-decoration: none; }
.offer { display: flex; align-items: center; gap: var(--s3); min-height: 56px; padding: var(--s2) var(--s3); border-radius: 14px; background: var(--subtle); color: var(--ink); text-decoration: none; }
.offer:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.of-p, .of-r { display: flex; flex-direction: column; line-height: 1.2; }
.of-p { flex: 1; min-width: 0; }
.of-p > *, .of-r > * { white-space: nowrap; }
.of-p b { font-size: var(--t-lg); font-variant-numeric: tabular-nums; }
.of-r { flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 0 var(--s1); flex: none; text-align: right; }
.of-r .sm { flex-basis: 100%; color: var(--muted); }
.of-p .sm { color: var(--muted); }
.star { color: var(--warn-text); font-size: var(--t-lg); line-height: 1; }
.offer .ic { color: var(--muted); }


/* что не потерять при переходе на Н4 (DESIGN_BRIEF §8и, анализ 2026-09-19) */
.b-ok { background: var(--ok-bg); color: var(--ok-text); border: 1.5px solid var(--ok); }   /* статус светлый, сплошной зелёный — только у кнопок и выбора */
.pcard { border-color: var(--card-line); }                                                   /* рамка карточки видна на солнце */
.pc-sub { margin: calc(-1 * var(--s2)) 0 0; color: var(--muted); font-size: var(--t-sm); line-height: 1.35; }   /* действующее вещество */
.pc-h h3 a::after { content: "\00a0›"; }                                                    /* название ведёт на страницу препарата */
.nums .num { font-size: clamp(20px, 6.4vw, 26px); overflow-wrap: anywhere; }
.nums > div:first-child .num:not(.num-s) { white-space: nowrap; overflow-wrap: normal; }   /* «5–10 таб.» одной строкой */   /* длинное («не указан») переносится, а не вылезает */
.nums .num-s { font-size: var(--t-md); }
.sp-cap { position: absolute; left: var(--s3); top: var(--s3); max-width: calc(100% - 2 * var(--s3)); padding: 2px var(--s3); border-radius: 12px;
  background: rgba(17, 24, 39, .8); color: #ffffff; font-size: var(--t-sm); font-weight: 700; line-height: 1.4; }
@media (min-width: 1200px) {
  .nums .num { font-size: var(--t-xl); }
  .pcard .same, .pcard .offer { grid-column: 1 / -1; }
}
@media print {
  .offer, .same, .sign-ph, .seg { display: none !important; }
  .pcard { box-shadow: none; border: 1px solid #999999; break-inside: avoid; }
}
.c-h .tag { white-space: normal; height: auto; min-height: 32px; padding-block: 2px; line-height: 1.3; text-align: right; max-width: 50%; }   /* Golos шире: длинная метка вида удобрения переносится */
.reg > b, .alt b, .c-h b { overflow-wrap: break-word; min-width: 0; }   /* длинные слова реестра не раздвигают страницу и не рвутся без нужды */   /* длинные слова реестра («…/…») не раздвигают страницу */
.nums-e { grid-column: 1 / -1; margin-top: var(--s2); padding-top: var(--s2); border-top: 1px solid var(--line); color: var(--muted); }
.nums > .nums-e { border-left: 0; }
.nums-e:empty { display: none; }
.seg { max-width: 480px; }
@media (min-width: 1200px) { .pc-h { align-items: flex-start; } }

/* препарат в виде Н4 (DESIGN_BRIEF §8и): шапка-карточка → цены → нормы карточками с выбором культуры → расчёт */
@media (max-width: 899px) {
  .c-main > .p-top { order: 0; }
  .c-main > .calc-p { order: 2; }       /* калькулятор — после норм, а не первым (правило .calc-m — для пар) */
}
.phead { background: var(--surface); border: 1px solid var(--card-line); border-radius: 16px; padding: var(--s4); box-shadow: var(--shadow); gap: var(--s2); margin: var(--s3) 0; }
.ph-badges { display: flex; flex-wrap: wrap; gap: var(--s2); }
.phead .pc-sub { margin: 0; }
.h-sm { font-size: var(--t-md); margin: var(--s4) 0 var(--s2); }
.offers { display: flex; flex-direction: column; gap: var(--s2); margin: var(--s3) 0; }
.offers .h-sm { margin: 0; }
.regs { border-top: 0; display: flex; flex-direction: column; gap: var(--s3); margin-top: var(--s3); }
.reg { background: var(--surface); border: 1px solid var(--card-line); border-radius: 16px; padding: var(--s4); box-shadow: var(--shadow); gap: var(--s3); }
.reg > b { font-size: var(--t-md); line-height: 1.3; }
.reg-num { background: var(--subtle); border-radius: 12px; padding: var(--s3) var(--s1); gap: 0; text-align: center; grid-template-columns: 1.3fr 1fr 1fr; }
.reg-num > div { padding: 0 var(--s1); min-width: 0; }
.reg-num > div + div { border-left: 1px solid var(--line2); }
.reg-num b { font-size: clamp(20px, 6.4vw, 26px); font-weight: 800; line-height: 1.1; overflow-wrap: anywhere; }
.reg-num b.num-s { font-size: var(--t-md); line-height: 1.25; }
.reg-num span { color: var(--muted); }
.mkh { margin: var(--s3) 0 0; border-bottom: 0; font-size: var(--t-md); }
.regs-more summary { justify-content: center; border: 1px solid var(--line2); border-radius: 24px; margin-top: var(--s3); color: var(--ink); list-style: none; }
.regs-more summary::-webkit-details-marker { display: none; }
.cchips { margin: var(--s3) 0 0; }
.of-p .sm { white-space: normal; }                                   /* «Магазин · ≈ … на 10 л» переносится, а не наезжает на отзывы */
.reg-num b { font-size: clamp(18px, 5.3vw, 24px); }

/* страница болезни: шаг «Подготовьте растения» до расчёта (UX_REVIEW §5.1); на телефоне — в порядке ответа */
@media (max-width: 899px) { .c-main > .prep { order: 0; } }
.r4 .nm a { display: inline-flex; align-items: center; min-height: 44px; }   /* названия в «Ещё для дачи» — зона 44 px */
/* таблица листается вбок: тень у края, пока есть что листать (фон — local, тень — scroll) */
.tscroll { background:
  linear-gradient(to right, var(--paper) 30%, rgba(0,0,0,0)) left / 40px 100% no-repeat local,
  linear-gradient(to left, var(--paper) 30%, rgba(0,0,0,0)) right / 40px 100% no-repeat local,
  linear-gradient(to right, rgba(0,0,0,.18), rgba(0,0,0,0)) left / 14px 100% no-repeat scroll,
  linear-gradient(to left, rgba(0,0,0,.18), rgba(0,0,0,0)) right / 14px 100% no-repeat scroll; }

/* хаб объекта: 6 культур строками, остальные — кнопками; фото над выбором (телефон) */
.hchip-no { border-style: dashed; color: var(--muted); font-weight: 400; }
.regs-more .hchips { margin-top: var(--s3); }
.sign-ph + h2 { margin-top: var(--s4); }

/* диагностика и подкормка: причины и удобрения карточками, у причины — кнопка действия 48 px */
.cause-list { border-top: 0; display: flex; flex-direction: column; gap: var(--s3); }
.cause { background: var(--surface); border: 1px solid var(--card-line); border-radius: 16px; padding: var(--s4); box-shadow: var(--shadow); border-bottom: 1px solid var(--card-line); }
.c-go { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin: var(--s3) calc(-1 * var(--s4)) calc(-1 * var(--s4));
  padding: 0 var(--s4); border-top: 1px solid var(--line); font-weight: 700; text-decoration: none; color: var(--link); }
.c-go:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.c-h b a { text-decoration: none; color: var(--ink); }

/* поиск: карточка результата целиком — ссылка, метка типа под названием */
.sres .c-h { flex-direction: column; align-items: flex-start; gap: var(--s2); }
.sres .c-h .tag { max-width: none; text-align: left; }
.sres .cause { position: relative; }
.sres .c-h b a { color: var(--link); }
.sres .c-h b a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.sres .c-h b a:focus-visible { outline: none; }
.sres .c-h b a:focus-visible::after { outline: 2px solid var(--focus); outline-offset: 2px; }
.c-h { flex-wrap: wrap; }   /* не хватает места — метка уходит под название, а не рвёт слово */
.c-h .tag { max-width: 100%; text-align: left; }

/* удобрение: группы культур переключателем (UX_REVIEW §5.3), нормы карточкой с крупной дозой */
.fgrp h3 { border-bottom: 0; padding-bottom: 0; }
.fgrp { background: var(--surface); border: 1px solid var(--card-line); border-radius: 16px; padding: var(--s4); box-shadow: var(--shadow); }
.fdose:last-child { border-bottom: 0; padding-bottom: 0; }
.fd-d { font-size: var(--t-lg); font-weight: 800; }
@media (max-width: 899px) { .c-main > .answer.p-top { order: 0; } }
.regs-more summary { padding: var(--s2) var(--s4); text-align: center; line-height: 1.35; }

/* зона нажатия у названия карточки: текст 22–27 px, палец на телефоне промахивается (замер 2026-09-20).
   Отступы у строчной ссылки поднимают зону до 44 px и не трогают поток и переносы длинных названий. */
h3 a { padding-block: 11px; }

/* узкий экран и увеличение текста (WCAG 1.4.10: страница должна работать при ширине 320 px).
   Замер 2026-09-20: на 320 px переключатель грунта, фильтр срока и метка «Не для дачи» вылезали за край. */
.seg { display: flex; flex-wrap: wrap; }
.seg button { flex: 1 1 auto; }
.js .filters { flex-wrap: wrap; }
.filters .sel { flex-wrap: wrap; }
.filters .sel select { max-width: 100%; min-width: 0; }
.nl-h { flex-wrap: wrap; }
/* длинная метка («Срок регистрации истёк 24.04.2026») на узком экране переносится, а не вылезает за край */
.badge { height: auto; min-height: 32px; padding-block: 4px; white-space: normal; }
/* фокус с клавиатуры (обход табом 2026-09-20): у поля поиска в шапке контур был снят и ничем не заменён —
   подсвечиваем всю «таблетку» поиска; у остальных полей и кнопок контур по умолчанию мог отличаться от фирменного */
input:focus-visible, select:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.hsearch:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
