/* ==========================================================================
   buhgalteriya — «Амбарная книга». Компоненты дизайн-системы (05-design.md).
   Один класс — один стиль везде; вариации — модификаторами. Теней, градиентов и скруглений больше 2px нет.

   СПИСОК КОМПОНЕНТОВ
   Кнопка ............ .bh-btn  --primary --secondary --text --on-dark  --xs --s --l --block
   Плитка логотипа ... .bh-logo  --s --m --l   (__letter + img[data-logo])
   Бейдж ............. .bh-badge  --accent --success --warning
   Клетка оценки ..... .bh-scorebox > .bh-score (--s --m --l --low) + .bh-score__of
   Пометка ........... .bh-kicker
   Линовка с полями .. .bh-ruled > .bh-ruled__row > (.bh-ruled__margin + .bh-ruled__body)   --plain (поле пустое)
   Строка «Итого» .... .bh-total > .bh-total__word + .bh-total__pair (.bh-total__k + .bh-total__v)   --text (в статье)
   Дебет и кредит .... .bh-dc > .bh-dc__side (--debit --credit) > .bh-dc__cap + .bh-dc__title + .bh-ruled ; .bh-dc__total
   Чип ............... .bh-chip [aria-pressed]          Клетка ... .bh-check (--s) > input + .bh-check__box + .bh-check__text
   Сегменты .......... .bh-seg > .bh-seg__btn [aria-pressed]
   Поле и список ..... .bh-field (.bh-field__label, .bh-field__error, --error), .bh-input, .bh-select, .bh-range
   Группа фильтра .... .bh-filter > .bh-filter__label + .bh-filter__chips
   Закладки .......... .bh-tabs > .bh-tabs__tab [aria-selected] (+ .bh-tabs__n)
   Панель таблицы .... .bh-toolbar (__count __controls __sort __n __chosen), .bh-filters (__head __body __foot)
   Таблица рейтинга .. .bh-ledger > .bh-table-wrap > .bh-table[data-cols]
                       .bh-table__row __num __service __name __short __val __sub __sort __group __actions __more
                       значения: .bh-yes .bh-no .bh-na .bh-warn ; под таблицей: .bh-ledger__more .bh-legend .bh-disclosure .bh-empty
   Карточка компании . .bh-card (__place __head __name __short __params __foot __price __actions) ; сетка .bh-cards
   Калькулятор ....... .bh-calc (__bar __body __title __q __legend __chips __list __item __total __caveat __foot)
   Первый экран ...... .bh-hero (__head __disclosure) ; шапка страницы .bh-pagehead
   Хлебные крошки .... .bh-crumbs
   Короткий ответ .... .bh-answer (__text __list __meta)
   Разделы ........... .bh-dir > .bh-dir__item (__title __what __meta)
   Списки ссылок ..... .bh-links > .bh-links__item (__n) ; пары сравнения .bh-links--cmp (.bh-links__pair __or __why)
   Матрица ........... .bh-matrix (таблица «кому что подходит»: __emp — строка «с зарплатой», __na и __none — «не применяется») ; .bh-scrollhint
   Мини-ведомость .... .bh-mini-wrap > .bh-mini (название, числа вправо: .bh-mini__num); .bh-total — блоком сразу после обёртки
   Шаги .............. .bh-steps (линовка с номерами: __title __text)
   Запись подборки ... .bh-entry (__head __fact) + .bh-dc
   FAQ ............... .bh-faq > .bh-ruled__row > .bh-ruled__margin + details.bh-faq__item (summary.bh-faq__q + .bh-faq__a)
   Доверие ........... .bh-trust (__grid __col __person __criteria __disclosure)
   SEO-текст ......... .bh-prose ; врезки .bh-note (--margin --warn --calc)
   Строка статьи ..... .bh-post (__date __title __lead __meta)
   Панель сравнения .. .bh-cmpbar (__in __count __items __item __actions) ; таблица .bh-cmp (__label __best)
   Блок оценки ....... .bh-scorecard (__top __row __name __weight __val __why) + .bh-cells > .bh-cells__c (.is-on, --na)
   Паспорт сервиса ... .bh-passport (__row __k __v __src) ; шапка обзора .bh-chead (__main __side __price)
   Подсказка ......... .bh-tipbtn [data-tip] → .bh-tip
   ========================================================================== */

/* ---------- Кнопки ---------- */
.bh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--bh-control-h); padding: 4px 16px;
  font-family: var(--bh-font-body); font-size: var(--bh-fs-ui); line-height: var(--bh-lh-ui); font-weight: var(--bh-fw-semibold);
  text-align: center; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; border-radius: var(--bh-r-1);
  cursor: pointer; transition: background-color var(--bh-t), border-color var(--bh-t), color var(--bh-t);
}
.bh-btn--primary { background: var(--bh-accent); border-color: var(--bh-accent); color: var(--bh-on-accent); }
.bh-btn--primary:hover { background: var(--bh-accent-deep); border-color: var(--bh-accent-deep); }
.bh-btn--primary:active { background: var(--bh-accent-press); border-color: var(--bh-accent-press); }
.bh-btn--secondary { background: transparent; border: var(--bh-border-ink); color: var(--bh-text); }
.bh-btn--secondary:hover { background: var(--bh-bg-2); }
.bh-btn--secondary:active { background: var(--bh-bg-3); }
.bh-btn--text {
  min-height: 0; padding: 0; border: 0; color: var(--bh-accent);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; white-space: normal; text-align: left;
}
.bh-btn--text:hover { color: var(--bh-accent-deep); text-decoration-thickness: 2px; }
.bh-btn--on-dark { background: transparent; border-color: var(--bh-on-dark); color: var(--bh-on-dark); }
.bh-btn--on-dark:hover { background: var(--bh-dark-2); }
.bh-btn--on-dark:focus-visible { outline: var(--bh-focus-on-dark); }
.bh-btn[disabled], .bh-btn[aria-disabled="true"] { background: var(--bh-bg-3); border-color: var(--bh-bg-3); color: var(--bh-text-muted); cursor: not-allowed; }
.bh-btn--secondary[disabled] { background: transparent; border-color: var(--bh-line); }
.bh-btn--text[disabled] { background: transparent; text-decoration: none; }
.bh-btn--s { min-height: var(--bh-control-h-s); padding-inline: 12px; }
.bh-btn--l { min-height: var(--bh-control-h-l); }
.bh-btn--xs { min-height: var(--bh-control-h); padding-inline: 8px; gap: 6px; }
.bh-btn--block { width: 100%; }

/* ---------- Плитка логотипа ---------- */
.bh-logo {
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: var(--bh-logo-m); height: var(--bh-logo-m);
  background: var(--bh-bg-2); border: var(--bh-border-strong); border-radius: var(--bh-r-1); overflow: hidden;
}
.bh-logo__letter { font-family: var(--bh-font-heading); font-weight: var(--bh-fw-bold); font-size: 24px; line-height: 1; color: var(--bh-text); }
.bh-logo img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 6px; object-fit: contain; background: var(--bh-surface); }
.bh-logo--s { width: var(--bh-logo-s); height: var(--bh-logo-s); }
.bh-logo--s .bh-logo__letter { font-size: 18px; }
.bh-logo--s img { padding: 4px; }
.bh-logo--l { width: var(--bh-logo-l); height: var(--bh-logo-l); }
.bh-logo--l .bh-logo__letter { font-size: 35px; }
.bh-logo--l img { padding: 8px; }

/* ---------- Бейджи ---------- */
.bh-badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 6px;
  font-family: var(--bh-font-mono); font-weight: var(--bh-fw-bold); font-size: var(--bh-fs-label); line-height: 1;
  letter-spacing: var(--bh-ls-caps); text-transform: uppercase; white-space: nowrap;
  color: var(--bh-text-muted); border: var(--bh-border-strong); border-radius: var(--bh-r-1);
}
.bh-badge--accent { color: var(--bh-accent); border-color: var(--bh-accent); }
.bh-badge--success { color: var(--bh-success); background: var(--bh-success-tint); border-color: var(--bh-success-tint); }
.bh-badge--warning { color: var(--bh-warning); background: var(--bh-warning-tint); border-color: var(--bh-warning-tint); }

/* ---------- Клетка оценки ---------- */
.bh-scorebox { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.bh-scorebox--row { flex-direction: row; align-items: baseline; gap: 8px; }
.bh-score {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: var(--bh-score-s-w); height: var(--bh-score-s-h);
  font-family: var(--bh-font-mono); font-weight: var(--bh-fw-bold); font-size: var(--bh-score-fs-s); line-height: 1;
  color: var(--bh-accent); background: var(--bh-surface); border: var(--bh-border-score); border-radius: var(--bh-r-0);
}
.bh-score--m { width: var(--bh-score-m-w); height: var(--bh-score-m-h); font-size: var(--bh-score-fs-m); }
.bh-score--l { width: var(--bh-score-l-w); height: var(--bh-score-l-h); font-size: var(--bh-score-fs-l); }
.bh-score--low { border: 2px dashed var(--bh-line-strong); color: var(--bh-text); }
.bh-score__of { font-size: var(--bh-fs-micro); line-height: var(--bh-lh-micro); color: var(--bh-text-muted); white-space: nowrap; }

/* ---------- Пометка над заголовком ---------- */
.bh-kicker {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--bh-font-mono); font-weight: var(--bh-fw-bold); font-size: var(--bh-fs-label); line-height: var(--bh-lh-label);
  letter-spacing: var(--bh-ls-caps); text-transform: uppercase; color: var(--bh-text-muted);
}
.bh-kicker::before { content: ""; flex: none; width: 20px; height: 3px; background: var(--bh-margin); }

/* ---------- Линовка и красная линия полей ---------- */
.bh-ruled { border-top: var(--bh-rule); }
.bh-ruled__row {
  display: grid; grid-template-columns: var(--bh-margin-w) minmax(0, 1fr);
  min-height: var(--bh-line-h); border-bottom: var(--bh-border);
}
.bh-ruled__margin {
  border-right: var(--bh-margin-line); padding: 10px 6px 0 0; text-align: right;
  font-family: var(--bh-font-mono); font-size: var(--bh-fs-num-s); line-height: var(--bh-lh-num-s); color: var(--bh-text-muted);
}
.bh-ruled__margin .bh-icon { margin-left: auto; margin-top: 2px; }
.bh-ruled__body { min-width: 0; padding: 8px 0 8px var(--bh-margin-gap); }

/* ---------- Зелёная строка «Итого» ---------- */
.bh-total {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px;
  padding: var(--bh-total-pad); background: var(--bh-accent-2); color: var(--bh-on-accent-2); border-radius: var(--bh-r-0);
}
.bh-total__word { font-family: var(--bh-font-heading); font-weight: var(--bh-fw-bold); font-size: 20px; line-height: 26px; }
.bh-total__pair { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
.bh-total__k { font-size: var(--bh-fs-small); line-height: var(--bh-lh-small); }
.bh-total__v { font-family: var(--bh-font-mono); font-weight: var(--bh-fw-bold); font-size: var(--bh-fs-num); line-height: var(--bh-lh-num); word-spacing: var(--bh-ws-num); }
.bh-total__v--xl { font-size: var(--bh-fs-num-xl); line-height: var(--bh-lh-num-xl); }
.bh-total__text { font-size: var(--bh-fs-small); line-height: var(--bh-lh-small); flex-basis: 100%; }
.bh-total a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.bh-total :focus-visible { outline: 2px solid var(--bh-on-accent-2); }
.bh-total--text { background: var(--bh-accent-2-tint); color: var(--bh-text); border-top: 3px double var(--bh-accent-2); }

/* ---------- Дебет и кредит ---------- */
.bh-dc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 0; }
.bh-dc__side { min-width: 0; }
.bh-dc__cap { padding: 0 0 4px; }
.bh-dc__title { padding: 0 0 8px; }
.bh-dc__side .bh-ruled__body { font-size: var(--bh-fs-body); line-height: var(--bh-lh-body); }
.bh-dc__side--debit .bh-ruled__margin { color: var(--bh-success); }
.bh-dc__side--credit .bh-ruled__margin { color: var(--bh-accent); }
.bh-dc__total { grid-column: 1 / -1; }
.bh-dc__src { font-size: var(--bh-fs-micro); margin-left: 6px; }

/* ---------- Чип ---------- */
.bh-chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: var(--bh-chip-h); padding: 2px 12px;
  font-size: var(--bh-fs-ui); line-height: var(--bh-lh-ui); font-weight: var(--bh-fw-medium); white-space: nowrap;
  color: var(--bh-text); background: var(--bh-surface); border: var(--bh-border-strong); border-radius: var(--bh-r-1);
  transition: background-color var(--bh-t), border-color var(--bh-t), color var(--bh-t);
}
.bh-chip:hover { background: var(--bh-bg-2); }
.bh-chip .bh-icon { display: none; }
.bh-chip[aria-pressed="true"] { background: var(--bh-accent-tint); border-color: var(--bh-accent); color: var(--bh-accent-deep); }
.bh-chip[aria-pressed="true"] .bh-icon { display: block; }
.bh-chip[disabled] { border-style: dashed; color: var(--bh-text-muted); background: transparent; cursor: not-allowed; }
.bh-chip--x .bh-icon { display: block; }

/* ---------- Клетка «да / нет» ---------- */
.bh-check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-size: var(--bh-fs-ui); line-height: var(--bh-lh-ui); font-weight: var(--bh-fw-medium); }
.bh-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bh-check__box {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 20px; height: 20px;
  background: var(--bh-surface); border: var(--bh-border-strong); border-radius: var(--bh-r-0); color: transparent;
  transition: background-color var(--bh-t), border-color var(--bh-t);
}
.bh-check__box .bh-icon { width: 14px; height: 14px; stroke-width: 2.5; }
.bh-check:hover .bh-check__box { border-color: var(--bh-line-ink); }
.bh-check input:checked + .bh-check__box { background: var(--bh-accent); border-color: var(--bh-accent); color: var(--bh-on-accent); }
.bh-check input:focus-visible + .bh-check__box { outline: var(--bh-focus); outline-offset: var(--bh-focus-offset); }
.bh-check--s { gap: 6px; font-size: var(--bh-fs-micro); line-height: var(--bh-lh-micro); font-weight: var(--bh-fw-regular); }
.bh-check--s .bh-check__box { width: 16px; height: 16px; }
.bh-check--s .bh-check__box .bh-icon { width: 12px; height: 12px; }

/* ---------- Сегменты ---------- */
.bh-seg { display: inline-flex; border: var(--bh-border-ink); border-radius: var(--bh-r-1); overflow: hidden; }
.bh-seg__btn {
  min-height: var(--bh-chip-h); padding: 2px 20px; text-align: center;
  font-size: var(--bh-fs-ui); line-height: var(--bh-lh-ui); font-weight: var(--bh-fw-semibold);
  background: var(--bh-surface); color: var(--bh-text); transition: background-color var(--bh-t), color var(--bh-t);
}
.bh-seg__btn + .bh-seg__btn { border-left: var(--bh-border-ink); }
.bh-seg__btn:hover { background: var(--bh-bg-2); }
.bh-seg__btn[aria-pressed="true"] { background: var(--bh-text); color: var(--bh-on-dark); }
.bh-seg__btn:focus-visible { outline-offset: -4px; }
.bh-seg__btn[aria-pressed="true"]:focus-visible { outline: var(--bh-focus-on-dark); }

/* ---------- Поле, список, бегунок ---------- */
.bh-field { display: grid; gap: 6px; min-width: 0; }
.bh-field__label { font-size: var(--bh-fs-ui); line-height: var(--bh-lh-ui); font-weight: var(--bh-fw-semibold); }
.bh-input, .bh-select {
  width: 100%; min-height: var(--bh-control-h); padding: 4px 12px;
  font-size: var(--bh-fs-input); line-height: 20px; color: var(--bh-text);
  background: var(--bh-surface); border: var(--bh-border-strong); border-radius: var(--bh-r-1);
  transition: border-color var(--bh-t);
}
.bh-input:hover, .bh-select:hover { border-color: var(--bh-line-ink); }
.bh-select {
  appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233B2F2F' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px 16px;
}
.bh-field--error .bh-input, .bh-field--error .bh-select { border: 2px solid var(--bh-error); }
.bh-field__error { display: flex; gap: 6px; font-size: var(--bh-fs-micro); line-height: var(--bh-lh-micro); color: var(--bh-error); }
.bh-range { width: 100%; height: 28px; margin: 0; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer; }
.bh-range::-webkit-slider-runnable-track { height: 2px; background: var(--bh-line-ink); }
.bh-range::-moz-range-track { height: 2px; background: var(--bh-line-ink); }
.bh-range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -9px; background: var(--bh-accent); border: 0; border-radius: 0; }
.bh-range::-moz-range-thumb { width: 20px; height: 20px; background: var(--bh-accent); border: 0; border-radius: 0; }

/* ---------- Группа фильтра ---------- */
.bh-filter { display: grid; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.bh-filter__label { padding: 0; }
.bh-filter__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bh-filter__checks { display: grid; gap: 0 24px; grid-template-columns: minmax(0, 1fr); }
.bh-filter__range { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }

/* ---------- Закладки книги ---------- */
.bh-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 2px; margin-bottom: -2px; position: relative; z-index: 1; }
.bh-tabs::-webkit-scrollbar { display: none; }
.bh-tabs__tab {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  min-height: var(--bh-tab-h); padding: 0 14px;
  font-size: var(--bh-fs-ui); line-height: var(--bh-lh-ui); font-weight: var(--bh-fw-semibold); white-space: nowrap;
  color: var(--bh-text-muted); background: var(--bh-bg-2);
  border: var(--bh-border-ink); border-bottom: 2px solid var(--bh-line-ink); border-radius: var(--bh-r-1) var(--bh-r-1) 0 0;
  transition: background-color var(--bh-t), color var(--bh-t);
}
.bh-tabs__tab:hover { background: var(--bh-surface); color: var(--bh-text); }
.bh-tabs__tab[aria-selected="true"] { background: var(--bh-bg); color: var(--bh-text); border-top: 3px solid var(--bh-accent); border-bottom-color: var(--bh-bg); }
.bh-tabs__tab:focus-visible { outline-offset: -4px; }
.bh-tabs__n { font-family: var(--bh-font-mono); font-weight: var(--bh-fw-regular); font-size: var(--bh-fs-num-s); color: var(--bh-text-muted); }

/* ---------- Панель над таблицей ---------- */
.bh-ledger { min-width: 0; }
.bh-ledger > .bh-tabs + .bh-toolbar { border-top: var(--bh-rule); }
.bh-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 0; }
.bh-toolbar__count { font-size: var(--bh-fs-ui); line-height: var(--bh-lh-ui); }
.bh-toolbar__count b, .bh-toolbar__count span { font-family: var(--bh-font-mono); font-size: var(--bh-fs-num); }
.bh-toolbar__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bh-toolbar__sort { display: flex; align-items: center; gap: 8px; font-size: var(--bh-fs-small); color: var(--bh-text-muted); }
.bh-toolbar__sort > span { display: none; }
.bh-toolbar__sort .bh-select { width: auto; max-width: 200px; min-height: var(--bh-control-h-s); }
.bh-toolbar__n {
  display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 4px;
  font-family: var(--bh-font-mono); font-size: var(--bh-fs-num-s); font-weight: var(--bh-fw-bold);
  background: var(--bh-accent); color: var(--bh-on-accent); border-radius: var(--bh-r-1);
}
.bh-toolbar__chosen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex-basis: 100%; }
.bh-toolbar__chosen .bh-chip { min-height: 32px; }

/* лист фильтров: до 1200px — на весь экран, от 1200px — блок под панелью */
.bh-filters { position: fixed; inset: 0; z-index: var(--bh-z-menu); display: flex; flex-direction: column; background: var(--bh-surface); }
.bh-filters__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--bh-mast-h); padding-inline: var(--bh-gutter); border-bottom: var(--bh-rule-double); }
.bh-filters__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; display: grid; align-content: start; gap: 20px; padding: 20px var(--bh-gutter); }
.bh-filters__foot { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 8px; padding: 12px var(--bh-gutter); border-top: var(--bh-border-ink); background: var(--bh-surface); }

/* ---------- Таблица рейтинга ---------- */
.bh-table-wrap { border-top: var(--bh-rule); border-bottom: var(--bh-border-ink); }
.bh-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--bh-fs-table); line-height: var(--bh-lh-table); }
.bh-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* какие графы показаны, задаёт data-cols у таблицы; остальные скрыты */
.bh-table:not([data-cols~="kind"]) [data-col="kind"],
.bh-table:not([data-cols~="accent"]) [data-col="accent"],
.bh-table:not([data-cols~="for_whom"]) [data-col="for_whom"],
.bh-table:not([data-cols~="tax_regimes"]) [data-col="tax_regimes"],
.bh-table:not([data-cols~="reporting"]) [data-col="reporting"],
.bh-table:not([data-cols~="employees"]) [data-col="employees"],
.bh-table:not([data-cols~="bank_integrations"]) [data-col="bank_integrations"],
.bh-table:not([data-cols~="who_keeps"]) [data-col="who_keeps"],
.bh-table:not([data-cols~="free_trial_days"]) [data-col="free_trial_days"],
.bh-table:not([data-cols~="free_plan"]) [data-col="free_plan"],
.bh-table:not([data-cols~="price_from"]) [data-col="price_from"],
.bh-table:not([data-cols~="price_year"]) [data-col="price_year"],
.bh-table:not([data-cols~="checked"]) [data-col="checked"],
.bh-table:not([data-cols~="score"]) [data-col="score"] { display: none; }

/* телефон: строка — карточка с полем и линией на всю высоту */
.bh-table, .bh-table tbody, .bh-table tfoot, .bh-table tfoot tr, .bh-table tfoot td { display: block; }
.bh-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.bh-table__row { display: grid; grid-template-columns: var(--bh-margin-w) minmax(0, 1fr); border-bottom: var(--bh-border-ink); }
.bh-table__row > td {
  grid-column: 2; display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  min-height: var(--bh-line-h); padding: 9px 0 9px var(--bh-margin-gap); border-bottom: var(--bh-border); min-width: 0;
}
.bh-table__row > td[data-label]::before {
  content: attr(data-label); flex: none; max-width: 46%;
  font-family: var(--bh-font-mono); font-weight: var(--bh-fw-bold); font-size: var(--bh-fs-label); line-height: var(--bh-lh-table);
  letter-spacing: var(--bh-ls-caps); text-transform: uppercase; color: var(--bh-text-muted);
}
.bh-table__row > td.bh-table__num {
  grid-column: 1; grid-row: 1 / span 24; display: block; padding: 14px 6px 0 0; text-align: right;
  border-right: var(--bh-margin-line); border-bottom: 0;
  font-family: var(--bh-font-mono); font-size: var(--bh-fs-num-s); line-height: var(--bh-lh-num-s); color: var(--bh-text-muted);
}
.bh-table .bh-table__row.is-open > td[data-col] { display: flex; }
/* графа темы подборки: длинный текст — подпись сверху, значение на всю ширину */
.bh-table__row > td[data-col="accent"] { display: block; }
.bh-table__row > td[data-col="accent"]::before { display: block; max-width: none; margin-bottom: 4px; }
.bh-table__row > td[data-col="accent"] .bh-table__val { display: block; text-align: left; }
.bh-table__val { min-width: 0; text-align: right; }
.bh-table__sub { display: block; font-size: var(--bh-fs-micro); line-height: var(--bh-lh-micro); color: var(--bh-text-muted); font-family: var(--bh-font-body); font-weight: var(--bh-fw-regular); word-spacing: normal; white-space: normal; }

.bh-table__row > td.bh-table__service { display: block; padding-block: 12px; }
.bh-table__svc { display: grid; grid-template-columns: var(--bh-logo-m) minmax(0, 1fr); gap: 10px; align-items: start; }
.bh-table__svctext { min-width: 0; }
.bh-table__name { font-size: 17px; line-height: 22px; font-weight: var(--bh-fw-bold); color: var(--bh-text); text-decoration: underline; text-decoration-color: var(--bh-line-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--bh-t); }
.bh-table__name:hover { color: var(--bh-accent); text-decoration-color: var(--bh-accent); }
.bh-table__short { display: block; margin-top: 2px; font-size: var(--bh-fs-small); line-height: var(--bh-lh-small); color: var(--bh-text-muted); }
.bh-table__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 4px; }
.bh-table__tags .bh-check { min-height: 32px; }

.bh-table__row > td.bh-table__actions { display: block; border-bottom: 0; padding-block: 12px 6px; }
.bh-table__acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "review go" "more more"; gap: 4px 8px; align-items: center; }
.bh-table__actions [data-act="go"] { grid-area: go; }
.bh-table__actions [data-act="review"] { grid-area: review; }
.bh-table__more { grid-area: more; justify-self: end; min-height: 44px; font-size: var(--bh-fs-small); }
.bh-table__more[aria-expanded="true"] .bh-icon { transform: rotate(180deg); }

.bh-table__group > th {
  display: block; padding: 20px 0 8px; border-bottom: var(--bh-rule);
  font-family: var(--bh-font-heading); font-weight: var(--bh-fw-bold); font-size: var(--bh-fs-h4); line-height: var(--bh-lh-h4);
}
.bh-table__group { display: block; }
.bh-table__group span { margin-left: 8px; font-family: var(--bh-font-mono); font-weight: var(--bh-fw-regular); font-size: var(--bh-fs-num-s); color: var(--bh-text-muted); }
.bh-table tfoot td { padding: 0; }
.bh-table__row.is-clipped, .bh-table__row.is-out { display: none; }

/* значения словами */
.bh-yes { display: inline-flex; align-items: center; gap: 4px; color: var(--bh-success); font-weight: var(--bh-fw-semibold); white-space: nowrap; }
.bh-no { color: var(--bh-text-muted); }
.bh-na { color: var(--bh-text-muted); text-decoration: underline dotted; text-decoration-color: var(--bh-line-strong); text-underline-offset: 4px; cursor: help; }
.bh-warn { color: var(--bh-warning); font-weight: var(--bh-fw-semibold); }
.bh-table__scope { color: var(--bh-warning); }

/* под таблицей */
.bh-ledger__more { display: grid; gap: 8px; margin-top: 12px; }
.bh-legend, .bh-disclosure { margin-top: 12px; max-width: 110ch; font-size: var(--bh-fs-micro); line-height: var(--bh-lh-micro); color: var(--bh-text-muted); }
.bh-empty { display: grid; gap: 8px; justify-items: start; padding: 16px; border: var(--bh-border-dashed); background: var(--bh-warning-tint); color: var(--bh-text); font-size: var(--bh-fs-small); line-height: var(--bh-lh-small); }

/* ---------- Карточка компании ---------- */
.bh-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bh-gap); }
.bh-card {
  position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0;
  padding: var(--bh-box-pad); border: var(--bh-border-ink); border-radius: var(--bh-r-0);
  transition: background-color var(--bh-t);
}
.bh-card:hover { background: var(--bh-surface); }
.bh-card__head { display: grid; grid-template-columns: var(--bh-logo-m) minmax(0, 1fr); gap: 4px 12px; align-items: start; }
.bh-card__name { font-family: var(--bh-font-body); font-size: 17px; line-height: 22px; font-weight: var(--bh-fw-bold); letter-spacing: 0; }
.bh-card__name a::after { content: ""; position: absolute; inset: 0; }
.bh-card__name a:hover { color: var(--bh-accent); }
.bh-card__name a:focus-visible { outline: none; }
.bh-card:focus-within { outline: var(--bh-focus); outline-offset: var(--bh-focus-offset); }
.bh-card__kind { margin-top: 6px; }
.bh-card__short { font-size: var(--bh-fs-small); line-height: var(--bh-lh-small); color: var(--bh-text-muted); }
.bh-card__params { border-top: var(--bh-border-ink); }
.bh-card__params > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: var(--bh-border); font-size: var(--bh-fs-table); line-height: var(--bh-lh-table); }
.bh-card__params dt { flex: none; max-width: 48%; }
.bh-card__params dd { min-width: 0; text-align: right; }
.bh-card__params > .is-stack { display: grid; gap: 4px; }
.bh-card__params > .is-stack dt { max-width: none; }
.bh-card__params > .is-stack dd { text-align: left; }
.bh-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; }
.bh-card__price .bh-num { display: block; }
.bh-card__actions { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

/* ---------- Калькулятор ---------- */
.bh-calc { min-width: 0; background: var(--bh-surface); border: var(--bh-border-ink); border-radius: var(--bh-r-0); }
.bh-calc__bar {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 4px 12px;
  font-size: var(--bh-fs-ui); line-height: var(--bh-lh-ui); font-weight: var(--bh-fw-semibold);
  transition: background-color var(--bh-t);
}
.bh-calc__bar:hover { background: var(--bh-bg-2); }
.bh-calc__bar span { flex: 1; min-width: 0; }
.bh-calc__bar[aria-expanded="true"] .bh-calc__chev { transform: rotate(180deg); }
.bh-calc:has(.bh-calc__bar[aria-expanded="false"]) { border-color: var(--bh-accent); }
.bh-js .bh-calc__bar[aria-expanded="false"] + .bh-calc__body { display: none; }
.bh-calc__body { display: grid; gap: 14px; padding: var(--bh-box-pad); }
.bh-calc__bar + .bh-calc__body { border-top: var(--bh-border-ink); }
.bh-calc__form { display: grid; gap: 14px; }
.bh-calc__q { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.bh-calc__legend { padding: 0; font-size: var(--bh-fs-ui); line-height: var(--bh-lh-ui); font-weight: var(--bh-fw-semibold); }
.bh-calc__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bh-calc__out { display: grid; gap: 8px; min-width: 0; }
.bh-calc__list { border-top: var(--bh-rule); }
.bh-calc__item { display: grid; grid-template-columns: var(--bh-logo-s) minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 5px 0; border-bottom: var(--bh-border); }
.bh-calc__item a { font-weight: var(--bh-fw-bold); font-size: var(--bh-fs-ui); line-height: var(--bh-lh-ui); text-decoration: underline; text-decoration-color: var(--bh-line-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.bh-calc__item a:hover { color: var(--bh-accent); }
.bh-calc__name { min-width: 0; }
.bh-calc__sum { text-align: right; }
.bh-calc__sum .bh-num { display: block; font-size: 16px; line-height: 18px; }
.bh-calc__total { align-items: baseline; }
.bh-calc__foot { color: var(--bh-text-muted); }
.bh-calc__caveat { color: var(--bh-warning); }

/* ---------- Первый экран и шапка страницы ---------- */
.bh-hero { padding-top: 20px; }
.bh-hero__head { display: grid; gap: 8px; min-width: 0; }
.bh-hero__disclosure { max-width: 100ch; font-size: var(--bh-fs-micro); line-height: var(--bh-lh-micro); color: var(--bh-text-muted); }
.bh-pagehead { display: grid; gap: 12px; padding-top: 4px; }

/* ---------- Хлебные крошки ---------- */
.bh-crumbs { padding-block: 12px; overflow-x: auto; scrollbar-width: none; }
.bh-crumbs::-webkit-scrollbar { display: none; }
.bh-crumbs ol { display: flex; gap: 8px; white-space: nowrap; font-size: var(--bh-fs-micro); line-height: var(--bh-lh-micro); color: var(--bh-text-muted); }
.bh-crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--bh-text-faint); }
.bh-crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; color: var(--bh-text); }
.bh-crumbs [aria-current] { color: var(--bh-text); }

/* ---------- Короткий ответ ---------- */
.bh-answer { display: grid; gap: 10px; min-width: 0; padding: var(--bh-box-pad); background: var(--bh-surface); border: var(--bh-border-ink); border-radius: var(--bh-r-0); }
.bh-answer__text { font-size: var(--bh-fs-lead); line-height: var(--bh-lh-lead); max-width: 76ch; }
.bh-answer__list { display: grid; gap: 6px; max-width: 76ch; }
.bh-answer__list li { position: relative; padding-left: 24px; }
.bh-answer__list li::before { content: "—"; position: absolute; left: 0; color: var(--bh-accent); }
.bh-answer__meta { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: var(--bh-fs-micro); line-height: var(--bh-lh-micro); color: var(--bh-text-muted); }
.bh-answer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.bh-answer > .bh-total { margin: 6px calc(var(--bh-box-pad) * -1) calc(var(--bh-box-pad) * -1); }
.bh-answer .bh-ruled__row .bh-check { min-height: 0; align-items: flex-start; font-size: var(--bh-fs-body); line-height: 24px; font-weight: var(--bh-fw-regular); }
.bh-answer .bh-check__box { margin-top: 2px; }

/* ---------- Разделы ---------- */
.bh-dir { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--bh-gap); }
.bh-dir__item {
  position: relative; display: grid; grid-template-columns: var(--bh-margin-w) minmax(0, 1fr) auto; min-width: 0;
  border-bottom: var(--bh-border); transition: background-color var(--bh-t);
}
.bh-dir__item:hover { background: var(--bh-surface); }
.bh-dir__item .bh-ruled__body { display: grid; gap: 4px; align-content: start; padding-block: 12px; }
.bh-dir__title a::after { content: ""; position: absolute; inset: 0; }
.bh-dir__title a:hover { color: var(--bh-accent); }
.bh-dir__what { font-size: var(--bh-fs-small); line-height: var(--bh-lh-small); color: var(--bh-text-muted); }
.bh-dir__meta { font-family: var(--bh-font-mono); font-size: var(--bh-fs-num-s); line-height: var(--bh-lh-num-s); }
.bh-dir__meta b { font-size: 15px; }
.bh-dir__arrow { align-self: center; margin: 0 8px; color: var(--bh-accent); }

/* ---------- Списки ссылок: подборки и сравнения ---------- */
.bh-links { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--bh-gap); }
.bh-links__item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; min-height: 48px;
  padding: 12px 8px 12px 0; border-bottom: var(--bh-border);
  font-size: var(--bh-fs-body); line-height: 22px; font-weight: var(--bh-fw-semibold);
  transition: background-color var(--bh-t), color var(--bh-t);
}
.bh-links__item:hover { background: var(--bh-surface); color: var(--bh-accent); }
.bh-links__item > span:first-child { text-decoration: underline; text-decoration-color: var(--bh-line-strong); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.bh-links__n { flex: none; font-family: var(--bh-font-mono); font-weight: var(--bh-fw-regular); font-size: var(--bh-fs-num-s); line-height: var(--bh-lh-num-s); color: var(--bh-text-muted); white-space: nowrap; }
.bh-links--cmp .bh-links__item { display: grid; gap: 6px; align-items: start; justify-content: stretch; padding: 14px 8px 14px 0; }
.bh-links__pair { display: grid; justify-items: start; gap: 6px; }
.bh-links__side { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.bh-links__pair b { text-decoration: underline; text-decoration-color: var(--bh-line-strong); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.bh-links__or { font-family: var(--bh-font-heading); font-style: italic; font-weight: var(--bh-fw-regular); font-size: 18px; color: var(--bh-text-muted); }
.bh-links__why { font-size: var(--bh-fs-small); line-height: var(--bh-lh-small); font-weight: var(--bh-fw-regular); color: var(--bh-text-muted); }

/* ---------- Матрица «кому что подходит» и мини-ведомость ---------- */
.bh-matrix-wrap, .bh-mini-wrap { overflow-x: auto; border-top: var(--bh-rule); border-bottom: var(--bh-border-ink); }
.bh-mini tbody tr:last-child td { border-bottom: 0; }
.bh-matrix, .bh-mini { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--bh-fs-table); line-height: var(--bh-lh-table); }
.bh-matrix { min-width: 640px; }
.bh-matrix th, .bh-matrix td, .bh-mini th, .bh-mini td { padding: 10px 12px; border-bottom: var(--bh-border); vertical-align: top; }
.bh-matrix thead th, .bh-mini thead th {
  background: var(--bh-bg-2); border-bottom: var(--bh-rule);
  font-family: var(--bh-font-mono); font-weight: var(--bh-fw-bold); font-size: var(--bh-fs-label); line-height: var(--bh-lh-label);
  letter-spacing: var(--bh-ls-caps); text-transform: uppercase; color: var(--bh-text-muted);
}
.bh-matrix tbody th { width: var(--bh-margin-w); min-width: 72px; border-right: var(--bh-margin-line); font-family: var(--bh-font-heading); font-weight: var(--bh-fw-bold); font-size: var(--bh-fs-h4); line-height: var(--bh-lh-h4); }
.bh-matrix td a { display: grid; gap: 2px; }
.bh-matrix td a b { text-decoration: underline; text-decoration-color: var(--bh-line-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; font-weight: var(--bh-fw-semibold); }
.bh-matrix td a:hover b { color: var(--bh-accent); text-decoration-color: var(--bh-accent); }
.bh-matrix__emp { font-size: var(--bh-fs-micro); line-height: var(--bh-lh-micro); font-weight: var(--bh-fw-regular); color: var(--bh-text-muted); }
.bh-matrix__none { display: block; color: var(--bh-text-muted); text-decoration: underline dashed; text-decoration-color: var(--bh-line-strong); text-underline-offset: 4px; }
.bh-matrix__na .bh-matrix__emp { display: block; margin-top: 2px; }
.bh-matrix td { transition: background-color var(--bh-t); }
.bh-matrix td:hover { background: var(--bh-surface); }
.bh-mini td.bh-mini__num, .bh-mini th.bh-mini__num { text-align: right; }
.bh-mini td.bh-mini__num { white-space: nowrap; }
.bh-mini tbody tr:hover td { background: var(--bh-surface); }
.bh-mini td:first-child a { font-weight: var(--bh-fw-semibold); text-decoration: underline; text-decoration-color: var(--bh-line-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.bh-mini td:first-child a:hover { color: var(--bh-accent); }
.bh-mini__name { display: flex; align-items: center; gap: 10px; min-width: 180px; }

/* ---------- Шаги ---------- */
.bh-steps .bh-ruled__body { display: grid; gap: 4px; padding-block: 12px; }
.bh-steps__text { max-width: var(--bh-measure); color: var(--bh-text-muted); font-size: var(--bh-fs-small); line-height: 22px; }
.bh-steps__text .bh-link { white-space: nowrap; }
.bh-steps .bh-ruled__margin { padding-top: 16px; }

/* ---------- Запись подборки: «Почему сервис здесь» ---------- */
.bh-entries { display: grid; gap: 32px; }
.bh-entry { display: grid; gap: 12px; min-width: 0; }
.bh-entry__head { display: grid; grid-template-columns: var(--bh-logo-m) minmax(0, 1fr); gap: 4px 12px; align-items: center; }
.bh-entry__head h3 a:hover { color: var(--bh-accent); }
.bh-entry__headside { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.bh-entry__fact { max-width: 84ch; }
.bh-entry__fact b { font-weight: var(--bh-fw-semibold); }
.bh-entry .bh-dc { gap: 16px 0; }
.bh-entry .bh-dc__title { font-size: var(--bh-fs-h4); line-height: var(--bh-lh-h4); }

/* ---------- FAQ ---------- */
.bh-faq__item { display: block; min-width: 0; }
.bh-faq__q {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 48px; padding: 12px 8px 12px var(--bh-margin-gap);
  font-size: 17px; line-height: 24px; font-weight: var(--bh-fw-semibold); transition: background-color var(--bh-t);
}
.bh-faq__q:hover { background: var(--bh-surface); }
.bh-faq__q h3 { font: inherit; text-wrap: pretty; }
.bh-faq__q .bh-icon { margin-top: 2px; color: var(--bh-accent); }
.bh-faq__q .bh-faq__minus, .bh-faq__item[open] .bh-faq__plus { display: none; }
.bh-faq__item[open] .bh-faq__minus { display: block; }
.bh-faq__a { padding: 0 8px 16px var(--bh-margin-gap); max-width: calc(var(--bh-measure) + var(--bh-margin-gap)); }
.bh-faq .bh-ruled__margin { padding-top: 15px; }

/* ---------- Доверие: где расписываются ---------- */
.bh-trust { border-top: var(--bh-rule-double); padding-top: 20px; }
.bh-trust__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px var(--bh-gap); }
.bh-trust__col { display: grid; gap: 6px; align-content: start; min-width: 0; font-size: var(--bh-fs-small); line-height: var(--bh-lh-small); }
.bh-trust__col p { color: var(--bh-text-muted); }
.bh-trust__col b { font-size: var(--bh-fs-body); line-height: 22px; }
.bh-trust__person { display: grid; grid-template-columns: var(--bh-logo-m) minmax(0, 1fr); gap: 12px; align-items: center; }
.bh-trust__criteria { margin-top: 20px; }
.bh-trust__criteria li { display: grid; grid-template-columns: var(--bh-margin-w) minmax(0, 1fr); border-bottom: var(--bh-border); }
.bh-trust__crit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 10px 0 10px var(--bh-margin-gap); }
.bh-trust__crit b { font-weight: var(--bh-fw-semibold); }
.bh-trust__crit span:last-child { grid-column: 1 / -1; font-size: var(--bh-fs-small); line-height: var(--bh-lh-small); color: var(--bh-text-muted); max-width: 84ch; }
.bh-trust__disclosure { margin-top: 16px; max-width: 110ch; font-size: var(--bh-fs-small); line-height: var(--bh-lh-small); color: var(--bh-text-muted); }

/* ---------- SEO-текст и врезки ---------- */
.bh-prose { max-width: var(--bh-measure); font-size: var(--bh-fs-prose); line-height: var(--bh-lh-prose); }
.bh-prose > * + * { margin-top: 16px; }
.bh-prose h2 { margin-top: 40px; padding-top: 16px; border-top: var(--bh-border-ink); }
.bh-prose > h2:first-child { margin-top: 0; }
.bh-prose h3 { margin-top: 32px; }
.bh-prose h4 { margin-top: 24px; }
.bh-prose a { color: var(--bh-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--bh-t); }
.bh-prose a:hover { color: var(--bh-accent-deep); text-decoration-thickness: 2px; }
.bh-prose ul, .bh-prose ol { display: grid; gap: 8px; padding-left: 24px; }
.bh-prose ul > li { position: relative; }
.bh-prose ul > li::before { content: "—"; position: absolute; left: -24px; color: var(--bh-accent); }
.bh-prose ol { counter-reset: bh-ol; }
.bh-prose ol > li { position: relative; counter-increment: bh-ol; }
.bh-prose ol > li::before { content: counter(bh-ol) "."; position: absolute; left: -24px; font-family: var(--bh-font-mono); font-weight: var(--bh-fw-bold); }
.bh-prose blockquote { font-family: var(--bh-font-heading); font-style: italic; font-size: var(--bh-fs-quote); line-height: var(--bh-lh-quote); padding-left: 16px; border-left: var(--bh-rule); }
.bh-prose .bh-table-scroll { overflow-x: auto; border-top: var(--bh-rule); border-bottom: var(--bh-border-ink); }
.bh-prose table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--bh-fs-table); line-height: var(--bh-lh-table); }
.bh-prose th, .bh-prose td { padding: 8px 12px; border-bottom: var(--bh-border); vertical-align: top; }
.bh-prose thead th { background: var(--bh-bg-2); border-bottom: var(--bh-rule); font-family: var(--bh-font-mono); font-weight: var(--bh-fw-bold); font-size: var(--bh-fs-label); line-height: var(--bh-lh-label); letter-spacing: var(--bh-ls-caps); text-transform: uppercase; color: var(--bh-text-muted); }
.bh-prose td.is-num { text-align: right; font-family: var(--bh-font-mono); font-weight: var(--bh-fw-bold); white-space: nowrap; }

.bh-note { display: grid; gap: 8px; padding: 16px; border-radius: var(--bh-r-0); background: var(--bh-surface); border: var(--bh-border); }
.bh-note--margin { border: 0; border-left: var(--bh-margin-line); }
.bh-note--warn { background: var(--bh-warning-tint); border-color: var(--bh-warning-tint); }
.bh-note--warn .bh-label { display: flex; align-items: center; gap: 6px; color: var(--bh-warning); }
.bh-note--calc { padding-bottom: 0; }
.bh-note--calc > .bh-total { margin: 8px -16px 0; }

/* ---------- Строка статьи ---------- */
.bh-posts { border-top: var(--bh-rule); }
.bh-post { display: grid; gap: 6px; padding: 16px 8px 16px var(--bh-margin-gap); margin-left: var(--bh-margin-w); border-left: var(--bh-margin-line); border-bottom: var(--bh-border); transition: background-color var(--bh-t); }
.bh-post:hover { background: var(--bh-surface); }
.bh-post__date { font-family: var(--bh-font-mono); font-size: var(--bh-fs-num-s); line-height: var(--bh-lh-num-s); color: var(--bh-text-muted); }
.bh-post__title { font-family: var(--bh-font-heading); font-weight: var(--bh-fw-bold); font-size: 20px; line-height: 26px; }
.bh-post:hover .bh-post__title { color: var(--bh-accent); }
.bh-post__lead { font-size: var(--bh-fs-small); line-height: var(--bh-lh-small); color: var(--bh-text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bh-post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* ---------- Панель сравнения ---------- */
.bh-cmpbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--bh-z-cmpbar); background: var(--bh-dark); color: var(--bh-on-dark); }
.bh-cmpbar :focus-visible { outline: var(--bh-focus-on-dark); }
.bh-cmpbar__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--bh-cmpbar-h); }
.bh-cmpbar__count { font-size: var(--bh-fs-small); line-height: var(--bh-lh-small); white-space: nowrap; }
.bh-cmpbar__count b { font-family: var(--bh-font-mono); font-size: var(--bh-fs-num); }
.bh-cmpbar__items { display: none; flex: 1; gap: 8px; min-width: 0; overflow: hidden; }
.bh-cmpbar__item { display: inline-flex; align-items: center; gap: 8px; flex: none; max-width: 220px; padding-right: 4px; font-size: var(--bh-fs-small); line-height: var(--bh-lh-small); border: 1px solid var(--bh-dark-line); }
.bh-cmpbar__item span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bh-cmpbar__item button { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; color: var(--bh-on-dark-muted); }
.bh-cmpbar__item button:hover { color: var(--bh-on-dark); }
.bh-cmpbar__actions { display: flex; align-items: center; gap: 12px; flex: none; }
.bh-cmpbar__clear { color: var(--bh-on-dark-muted); font-size: var(--bh-fs-small); text-decoration: underline; text-underline-offset: 3px; }
.bh-cmpbar__clear:hover { color: var(--bh-on-dark); }
.bh-has-cmpbar { padding-bottom: var(--bh-cmpbar-h); }
.bh-is-locked .bh-cmpbar { display: none; }

/* таблица сравнения */
.bh-cmp-wrap { overflow-x: auto; border-top: var(--bh-rule); border-bottom: var(--bh-border-ink); }
.bh-cmp { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--bh-fs-table); line-height: var(--bh-lh-table); }
.bh-cmp th, .bh-cmp td { padding: 10px 12px; border-bottom: var(--bh-border); vertical-align: top; min-width: 140px; }
.bh-cmp thead th { border-bottom: var(--bh-rule); vertical-align: bottom; }
.bh-cmp__label { background: var(--bh-bg-2); border-right: var(--bh-margin-line); font-family: var(--bh-font-mono); font-weight: var(--bh-fw-bold); font-size: var(--bh-fs-label); line-height: var(--bh-lh-table); letter-spacing: var(--bh-ls-caps); text-transform: uppercase; color: var(--bh-text-muted); }
.bh-cmp__best { background: var(--bh-accent-2-tint); }
.bh-cmp__best::after { content: " — лучше"; font-size: var(--bh-fs-micro); color: var(--bh-accent-2-deep); font-weight: var(--bh-fw-semibold); }
.bh-cmp__empty { border: var(--bh-border-dashed); color: var(--bh-text-muted); }

/* ---------- Блок оценки ---------- */
.bh-scorecard { display: grid; gap: 16px; min-width: 0; }
.bh-scorecard__top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.bh-scorecard__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding-block: 4px; }
.bh-scorecard__name { font-weight: var(--bh-fw-semibold); }
.bh-scorecard__weight { font-family: var(--bh-font-mono); font-size: var(--bh-fs-num-s); color: var(--bh-text-muted); margin-left: 8px; }
.bh-scorecard__val { display: inline-flex; align-items: center; gap: 10px; font-family: var(--bh-font-mono); font-weight: var(--bh-fw-bold); white-space: nowrap; }
.bh-scorecard__why { grid-column: 1 / -1; font-size: var(--bh-fs-small); line-height: var(--bh-lh-small); color: var(--bh-text-muted); }
.bh-cells { display: inline-flex; gap: var(--bh-cell-gap); }
.bh-cells__c { width: var(--bh-cell); height: var(--bh-cell); background: var(--bh-bg-3); }
.bh-cells__c.is-on { background: var(--bh-accent); }
.bh-cells--na .bh-cells__c { background: transparent; border: var(--bh-border-dashed); }

/* ---------- Паспорт и шапка обзора ---------- */
.bh-passport { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--bh-gap); border-top: var(--bh-rule); }
.bh-passport__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; min-height: var(--bh-line-h); padding: 9px 0; border-bottom: var(--bh-border); min-width: 0; }
.bh-passport__k { flex: none; max-width: 46%; }
.bh-passport__v { min-width: 0; text-align: right; }
.bh-passport__src { margin-left: 6px; font-size: var(--bh-fs-micro); }
.bh-chead { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px var(--bh-gap); align-items: start; }
.bh-chead__main { display: grid; grid-template-columns: var(--bh-logo-l) minmax(0, 1fr); gap: 8px 16px; align-items: start; min-width: 0; }
.bh-chead__side { display: grid; gap: 12px; min-width: 0; padding: var(--bh-box-pad); background: var(--bh-surface); border: var(--bh-border-ink); }
.bh-chead__price { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }

/* ---------- Подсказка ---------- */
.bh-tipbtn {
  display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex: none; vertical-align: middle;
  font-family: var(--bh-font-heading); font-style: italic; font-weight: var(--bh-fw-bold); font-size: 13px; line-height: 1; text-transform: none; letter-spacing: 0;
  color: var(--bh-text-muted); border: var(--bh-border-strong); border-radius: var(--bh-r-1);
  transition: background-color var(--bh-t), color var(--bh-t);
}
.bh-tipbtn:hover, .bh-tipbtn[aria-expanded="true"] { background: var(--bh-dark); border-color: var(--bh-dark); color: var(--bh-on-dark); }
.bh-tip {
  position: absolute; z-index: var(--bh-z-popover); max-width: 260px; padding: 8px 10px;
  font-family: var(--bh-font-body); font-size: var(--bh-fs-micro); line-height: var(--bh-lh-micro); font-weight: var(--bh-fw-regular);
  text-transform: none; letter-spacing: 0; text-align: left; white-space: normal;
  background: var(--bh-dark); color: var(--bh-on-dark); border-radius: var(--bh-r-1);
}

/* ==========================================================================
   768px
   ========================================================================== */
@media (min-width: 768px) {
  .bh-btn--xs { min-height: var(--bh-control-h-xs); padding-block: 3px; font-size: var(--bh-fs-small); }
  .bh-check { min-height: 32px; }
  .bh-dc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bh-dc__side > * { padding-inline: 16px; }
  .bh-dc__side > .bh-ruled { padding-inline: 0; margin-inline: 16px; }
  .bh-dc__side--credit { border-left: var(--bh-rule); }
  .bh-dc__title { border-bottom: 0; }
  .bh-filter__checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bh-toolbar__sort > span { display: inline; }
  .bh-toolbar__sort .bh-select { max-width: 280px; }


  .bh-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bh-dir, .bh-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bh-passport { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bh-trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bh-prose--ruled { padding-left: 24px; border-left: var(--bh-margin-line); max-width: calc(var(--bh-measure) + 27px); }
  .bh-post { grid-template-columns: 140px minmax(0, 1fr) auto; gap: 4px 20px; align-items: start; }
  .bh-post__title { font-size: 22px; line-height: 28px; }
  .bh-post__lead { grid-column: 2; }
  .bh-post__meta { grid-column: 3; grid-row: 1; justify-content: flex-end; }
  .bh-cmpbar__items { display: flex; }
  .bh-cmp__label { position: sticky; left: 0; }
  .bh-chead { grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); }
  .bh-entry__head { grid-template-columns: var(--bh-logo-m) minmax(0, 1fr) auto; }
  .bh-entry__headside { grid-column: auto; }
  .bh-calc__bar { display: none; }
  .bh-js .bh-calc__bar[aria-expanded="false"] + .bh-calc__body { display: grid; }
  .bh-calc__bar + .bh-calc__body { border-top: 0; }
  .bh-calc:has(.bh-calc__bar[aria-expanded="false"]) { border-color: var(--bh-line-ink); }
  .bh-hero { padding-top: 24px; }
}

/* ==========================================================================
   1024px: ведомость — настоящая таблица (до 1024 — карточки, как на телефоне; 14.10.2026:
   на 768–1023 графы оценки и цены уезжали под прилипшую графу кнопок)
   ========================================================================== */
@media (min-width: 1024px) {
  /* таблица: настоящие строки и графы */
  .bh-table-wrap { overflow-x: auto; }
  .bh-table { display: table; }
  .bh-table tbody { display: table-row-group; }
  .bh-table tfoot { display: table-footer-group; }
  .bh-table tfoot tr { display: table-row; }
  .bh-table tfoot td { display: table-cell; }
  .bh-table thead { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .bh-table thead th {
    padding: 10px 8px; vertical-align: bottom; background: var(--bh-bg-2); border-bottom: var(--bh-rule);
    font-family: var(--bh-font-mono); font-weight: var(--bh-fw-bold); font-size: var(--bh-fs-label); line-height: var(--bh-lh-label);
    letter-spacing: var(--bh-ls-caps); text-transform: uppercase; color: var(--bh-text-muted);
  }
  .bh-table thead th[aria-sort="ascending"], .bh-table thead th[aria-sort="descending"] { border-bottom: 3px solid var(--bh-accent); color: var(--bh-text); }
  .bh-table__sort { display: inline-flex; align-items: flex-end; gap: 4px; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; text-align: left; }
  .bh-table__sort .bh-icon { color: var(--bh-text-faint); margin-bottom: 0; }
  .bh-table__sort:hover { color: var(--bh-text); }
  .bh-table__sort:hover .bh-icon, th[aria-sort="ascending"] .bh-table__sort .bh-icon, th[aria-sort="descending"] .bh-table__sort .bh-icon { color: var(--bh-accent); }
  .bh-table__row { display: table-row; }
  .bh-table__row > td, .bh-table .bh-table__row.is-open > td[data-col] {
    display: table-cell; min-height: 0; padding: 6px 8px; vertical-align: top; border-bottom: var(--bh-border);
    transition: background-color var(--bh-t);
  }
  .bh-table__row > td[data-label]::before, .bh-table__row > td[data-col="accent"]::before { content: none; }
  .bh-table__row > td[data-col="accent"] { display: table-cell; }
  .bh-table__row:hover > td { background: var(--bh-surface); }
  .bh-table__row:last-child > td { border-bottom: 0; }
  /* повтор скрытия граф: выше по весу, чем правило раскрытой карточки */
  .bh-table.bh-table:not([data-cols~="kind"]) tr > [data-col="kind"],
  .bh-table.bh-table:not([data-cols~="accent"]) tr > [data-col="accent"],
  .bh-table.bh-table:not([data-cols~="for_whom"]) tr > [data-col="for_whom"],
  .bh-table.bh-table:not([data-cols~="tax_regimes"]) tr > [data-col="tax_regimes"],
  .bh-table.bh-table:not([data-cols~="reporting"]) tr > [data-col="reporting"],
  .bh-table.bh-table:not([data-cols~="employees"]) tr > [data-col="employees"],
  .bh-table.bh-table:not([data-cols~="bank_integrations"]) tr > [data-col="bank_integrations"],
  .bh-table.bh-table:not([data-cols~="who_keeps"]) tr > [data-col="who_keeps"],
  .bh-table.bh-table:not([data-cols~="free_trial_days"]) tr > [data-col="free_trial_days"],
  .bh-table.bh-table:not([data-cols~="free_plan"]) tr > [data-col="free_plan"],
  .bh-table.bh-table:not([data-cols~="price_from"]) tr > [data-col="price_from"],
  .bh-table.bh-table:not([data-cols~="price_year"]) tr > [data-col="price_year"],
  .bh-table.bh-table:not([data-cols~="checked"]) tr > [data-col="checked"],
  .bh-table.bh-table:not([data-cols~="score"]) tr > [data-col="score"] { display: none; }

  .bh-table__row > td.bh-table__num, .bh-table thead th.bh-table__num {
    width: 40px; min-width: 40px; padding: 10px 6px 0 0; text-align: right; border-right: var(--bh-margin-line);
  }
  .bh-table thead th.bh-table__num { padding-bottom: 10px; }
  .bh-table__row > td.bh-table__num { display: table-cell; border-bottom: var(--bh-border); }
  .bh-table__val { display: block; text-align: left; }
  .bh-table [data-col="for_whom"] { width: 92px; min-width: 92px; hyphens: auto; -webkit-hyphens: auto; }
  .bh-table [data-col="kind"] { width: 128px; min-width: 128px; }
  .bh-table [data-col="accent"] { width: 26%; min-width: 220px; }
  .bh-table [data-col="tax_regimes"] { width: 128px; min-width: 128px; }
  .bh-table [data-col="reporting"] { width: 104px; min-width: 104px; }
  .bh-table [data-col="employees"], .bh-table [data-col="bank_integrations"], .bh-table [data-col="free_plan"] { width: 96px; min-width: 96px; }
  .bh-table [data-col="who_keeps"] { width: 112px; min-width: 112px; }
  .bh-table [data-col="free_trial_days"] { width: 92px; min-width: 92px; }
  .bh-table [data-col="checked"] { width: 92px; min-width: 92px; font-size: var(--bh-fs-micro); line-height: var(--bh-lh-table); }
  .bh-table [data-col="price_from"], .bh-table [data-col="price_year"] { width: 104px; min-width: 104px; text-align: right; }
  .bh-table__th { display: inline-flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 6px; }
  .bh-table [data-col="price_from"] .bh-table__th, .bh-table [data-col="price_year"] .bh-table__th { justify-content: flex-end; }
  .bh-table [data-col="price_from"] .bh-table__val, .bh-table [data-col="price_year"] .bh-table__val { text-align: right; }
  .bh-table [data-col="price_from"] .bh-table__sort, .bh-table [data-col="price_year"] .bh-table__sort { flex-direction: row-reverse; text-align: right; }
  .bh-table [data-col="score"] { min-width: 88px; width: 88px; text-align: center; }
  .bh-table [data-col="score"] .bh-table__th { justify-content: center; }
  .bh-table [data-col="score"] .bh-table__val { text-align: center; }
  .bh-table__row > td.bh-table__service { display: table-cell; min-width: 250px; padding-block: 6px; }
  .bh-table__short { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; margin-top: 0; font-size: var(--bh-fs-micro); line-height: var(--bh-lh-micro); overflow: hidden; }
  .bh-table__tags { margin-top: 0; }
  .bh-table__tags .bh-check { min-height: 20px; }
  .bh-table__tags .bh-badge { height: 18px; }
  .bh-table__row > td.bh-table__actions, .bh-table thead th.bh-table__actions {
    position: sticky; right: 0; width: 116px; min-width: 116px; background: var(--bh-bg); border-left: var(--bh-border-ink);
  }
  .bh-table thead th.bh-table__actions { background: var(--bh-bg-2); }
  .bh-table__row > td.bh-table__actions { display: table-cell; padding: 6px 8px; border-bottom: var(--bh-border); }
  .bh-table__row:last-child > td.bh-table__actions { border-bottom: 0; }
  .bh-table__acts { grid-template-columns: minmax(0, 1fr); grid-template-areas: "go" "review"; gap: 4px; }
  .bh-table__more { display: none; }
  .bh-table__group, .bh-table__group > th { display: revert; }
  .bh-table__group > th { padding: 14px 8px 6px calc(40px + 8px); background: var(--bh-bg); border-bottom: var(--bh-border-ink); }
  .bh-table__group[hidden] { display: none; }
  .bh-ledger__more { display: flex; flex-wrap: wrap; }
}

/* ==========================================================================
   1200px
   ========================================================================== */
@media (min-width: 1200px) {
  .bh-filters { position: static; display: block; border: var(--bh-border-ink); margin-bottom: 12px; }
  .bh-filters__head { display: none; }
  .bh-filters__body { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; padding: 16px; overflow: visible; }
  .bh-filters__foot { display: none; }
  .bh-table-wrap--free { overflow-x: visible; }
  .bh-table-wrap--free thead th { position: sticky; top: 0; z-index: var(--bh-z-sticky); }
  .bh-dir { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bh-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bh-links--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bh-trust__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Подсказка «таблица прокручивается вбок» — только на телефоне ---------- */
.bh-scrollhint { margin-top: 8px; font-size: var(--bh-fs-micro); line-height: var(--bh-lh-micro); color: var(--bh-text-muted); }
@media (min-width: 768px) {
  .bh-scrollhint { display: none; }
}
