/* TATBG — компоненты. Все значения — из tokens.css. Префикс tb-. */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-sans); font-size: 16px; line-height: 26px; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
.tb-num { font-variant-numeric: tabular-nums; }
.tb-icon { display: block; flex: none; color: var(--icon); }
[data-icon] { display: inline-flex; flex: none; }
[data-icon].tb-flip { transform: rotate(180deg); }
.tb-muted { color: var(--ink-muted); }
.tb-subtle { color: var(--ink-subtle); }
.tb-overline { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-subtle); }
.tb-stack { display: flex; flex-direction: column; gap: var(--space-4); }
.tb-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.tb-pad { padding: var(--space-5); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* ---------- Кнопки ---------- */
.tb-btn {
  --_bg: transparent; --_fg: var(--ink); --_bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--target-min); padding: 0 20px; border-radius: var(--radius-sm);
  font: 600 15px/20px var(--font-sans); white-space: nowrap; text-decoration: none; cursor: pointer;
  background: var(--_bg); color: var(--_fg); border: 1px solid var(--_bd);
  transition: background-color var(--dur-instant) var(--ease-out), border-color var(--dur-instant) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-spring);
}
.tb-btn .tb-icon { color: currentColor; }
.tb-btn:hover { transform: translateY(-1px); }
.tb-btn:active { transform: scale(.98); transition-duration: var(--dur-instant); }
.tb-btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.tb-btn--primary { --_bg: var(--brand); --_fg: var(--on-brand); --_bd: var(--brand); }
.tb-btn--primary:hover, .tb-btn--primary.is-hover { --_bg: var(--brand-hover); --_bd: var(--brand-hover); box-shadow: var(--shadow-brand); }
.tb-btn--primary:active, .tb-btn--primary.is-active { --_bg: var(--brand-pressed); --_bd: var(--brand-pressed); box-shadow: none; }
.tb-btn--secondary { --_bd: var(--line-control); }
.tb-btn--secondary:hover, .tb-btn--secondary.is-hover { --_bg: var(--neutral-soft); --_bd: var(--ink-subtle); }
.tb-btn--link { --_fg: var(--link); padding: 0 4px; border: 0; }
.tb-btn--link:hover, .tb-btn--link.is-hover { transform: none; text-decoration: underline; text-underline-offset: 4px; }
.tb-btn--link .tb-icon { transition: transform var(--dur-fast) var(--ease-out); }
.tb-btn--link:hover .tb-icon, .tb-btn--link.is-hover .tb-icon { transform: translateX(3px); }
.tb-btn--lg { min-height: 56px; padding: 0 28px; font-size: 16px; border-radius: var(--radius-sm); }
.tb-btn--sm { padding: 0 16px; }
.tb-btn--block { width: 100%; }
.tb-btn.is-hover { transform: translateY(-1px); }
.tb-btn.is-focus { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.tb-btn.is-active { transform: scale(.98); }
.tb-btn:disabled, .tb-btn[aria-disabled="true"] { --_bg: var(--neutral-soft); --_fg: var(--ink-subtle); --_bd: var(--neutral-soft); cursor: not-allowed; transform: none; box-shadow: none; }
.tb-btn--link:disabled { --_bg: transparent; --_bd: transparent; }

/* ---------- Сегментированный переключатель ---------- */
.tb-seg { position: relative; display: flex; padding: 4px; gap: 0; border-radius: var(--radius-md); background: var(--bg-sunken); border: 1px solid var(--line); }
.tb-seg__thumb { position: absolute; top: 4px; left: 0; bottom: 4px; border-radius: var(--radius-sm); background: var(--brand); box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  transition: transform var(--dur-base) var(--ease-in-out), width var(--dur-base) var(--ease-in-out); }
.tb-seg__thumb.no-anim { transition: none; }
.tb-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.tb-seg label { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; text-align: center; flex: 1 1 auto; min-height: var(--target-min); padding: 0 14px; border: 0; background: none; border-radius: var(--radius-sm);
  font: 600 15px/20px var(--font-sans); color: var(--ink-muted); cursor: pointer; white-space: nowrap; transition: color var(--dur-fast) var(--ease-out), transform var(--dur-instant) var(--ease-spring); }
.tb-seg label:hover { color: var(--ink); }
.tb-seg label:active { transform: scale(.98); }
.tb-seg input:checked + label { color: var(--on-brand); }
.tb-seg input:focus-visible + label { outline: 2px solid var(--focus-ring); outline-offset: 0; }
.tb-seg--wrap { flex-wrap: wrap; }

/* ---------- Поля ---------- */
.tb-field { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
fieldset.tb-field { border: 0; padding: 0; margin: 0; }
fieldset.tb-field > legend { padding: 0; margin-bottom: var(--space-2); }
.tb-field__label { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-muted); }
.tb-field__label .tb-opt { color: var(--ink-subtle); font-weight: 400; }
.tb-control { position: relative; display: flex; align-items: center; }
.tb-input, .tb-select, .tb-textarea {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: var(--radius-sm);
  background: var(--bg-sunken); color: var(--ink); border: 1px solid var(--line-control);
  font: 500 17px/24px var(--font-sans); font-variant-numeric: tabular-nums; appearance: none;
  transition: border-color var(--dur-instant) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.tb-textarea { min-height: 112px; padding: 14px 16px; resize: vertical; font-weight: 400; font-size: 16px; }
.tb-input::placeholder, .tb-textarea::placeholder { color: var(--ink-subtle); font-weight: 400; }
.tb-input:hover, .tb-select:hover, .tb-textarea:hover { border-color: var(--ink-subtle); }
.tb-input:focus, .tb-select:focus, .tb-textarea:focus, .tb-input.is-focus { outline: none; border-color: var(--focus-ring); box-shadow: 0 0 0 1px var(--focus-ring); }
.tb-control__suffix { position: absolute; right: 16px; color: var(--ink-subtle); font-weight: 500; pointer-events: none; }
.tb-control--suffix .tb-input { padding-right: 64px; }
.tb-select { padding-right: 48px; cursor: pointer; }
.tb-control__chevron { position: absolute; right: 14px; pointer-events: none; color: var(--ink-muted); }
.tb-control__chevron .tb-icon { color: var(--ink-muted); }
.tb-field__hint { font-size: 14px; line-height: 20px; color: var(--ink-subtle); }
.tb-field__error { display: flex; gap: 6px; align-items: flex-start; font-size: 14px; line-height: 20px; color: var(--danger); }
.tb-field__error .tb-icon { color: var(--danger); margin-top: 1px; }
.tb-field.is-invalid .tb-input, .tb-field.is-invalid .tb-select, .tb-field.is-invalid .tb-textarea { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.tb-input:disabled { color: var(--ink-subtle); border-color: var(--line); cursor: not-allowed; }

/* Чекбокс: вся строка — цель ≥ 44px */
.tb-check { display: flex; gap: 12px; align-items: flex-start; min-height: var(--target-min); padding: 10px 0; cursor: pointer; font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.tb-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tb-check__box { flex: none; width: 22px; height: 22px; margin-top: 0; border-radius: var(--radius-xs); border: 1.5px solid var(--line-control); background: var(--bg-sunken);
  display: grid; place-items: center; transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.tb-check__box .tb-icon { color: var(--on-brand); transform: scale(0); transition: transform var(--dur-fast) var(--ease-spring); }
.tb-check input:checked + .tb-check__box { background: var(--brand); border-color: var(--brand); }
.tb-check input:checked + .tb-check__box .tb-icon { transform: scale(1); }
.tb-check input:focus-visible + .tb-check__box { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.tb-check.is-invalid .tb-check__box { border-color: var(--danger); }
.tb-check a { color: var(--link); }

/* ---------- Ссылка ---------- */
.tb-link { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.tb-link:hover { text-decoration-thickness: 2px; }

/* ---------- Карточки ---------- */
.tb-card { position: relative; display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); border-radius: var(--radius-lg);
  background: var(--bg-raised); border: 1px solid var(--line); box-shadow: var(--shadow-rest); color: var(--ink); text-decoration: none; }
a.tb-card, .tb-card--interactive { cursor: pointer; transition: transform var(--dur-fast) var(--ease-spring), box-shadow var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
a.tb-card:hover, .tb-card--interactive:hover, .tb-card.is-hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
a.tb-card:active, .tb-card--interactive:active { transform: scale(.98); transition-duration: var(--dur-instant); }
a.tb-card:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.tb-card__title { margin: 0; font-size: 19px; line-height: 26px; font-weight: 600; }
.tb-card__text { margin: 0; font-size: 15px; line-height: 24px; color: var(--ink-muted); }
.tb-tile { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--brand-soft); display: grid; place-items: center; flex: none; }
.tb-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-2); }
.tb-card__arrow { color: var(--link); transition: transform var(--dur-fast) var(--ease-out); }
.tb-card__arrow .tb-icon { color: var(--link); }
a.tb-card:hover .tb-card__arrow, .tb-card.is-hover .tb-card__arrow { transform: translateX(3px); }
.tb-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 14px; line-height: 20px; color: var(--ink-subtle); }
.tb-card__meta span { display: inline-flex; gap: 6px; align-items: center; }
.tb-card__meta .tb-icon { color: var(--ink-subtle); }
.tb-card__meta .is-checked, .tb-card__meta .is-checked .tb-icon { color: var(--success); }
.tb-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: var(--radius-xs); background: var(--neutral-soft); color: var(--ink-muted); font-size: 13px; line-height: 18px; font-weight: 500; }
.tb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tb-tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: var(--radius-pill); background: var(--brand-soft); color: var(--link); font-size: 13px; line-height: 18px; font-weight: 600; }
.tb-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---------- Бейджи статусов ---------- */
.tb-badge { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px 0 8px; border-radius: var(--radius-pill); font-size: 13px; line-height: 18px; font-weight: 600; white-space: nowrap; }
.tb-badge .tb-icon { color: currentColor; }
.tb-badge--draft { background: var(--neutral-soft); color: var(--ink-muted); }
.tb-badge--review { background: var(--brand-soft); color: var(--link); }
.tb-badge--docs { background: var(--warning-soft); color: var(--warning); }
.tb-badge--offer, .tb-badge--approved { background: var(--success-soft); color: var(--success); }
.tb-badge--declined { background: var(--danger-soft); color: var(--danger); }
.tb-badge--issued { background: var(--brand); color: var(--on-brand); }

/* ---------- Аккордеон ---------- */
.tb-acc { border-top: 1px solid var(--line); }
.tb-acc__item { border-bottom: 1px solid var(--line); }
.tb-acc__q { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 64px; padding: 18px 4px; color: var(--ink);
  font: 600 19px/26px var(--font-sans); text-align: left; cursor: pointer; border-radius: var(--radius-xs); list-style: none; }
.tb-acc__q::-webkit-details-marker { display: none; }
.tb-acc__q:hover { color: var(--link); }
.tb-acc__q:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.tb-acc__chev { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--neutral-soft); transition: transform var(--dur-base) var(--ease-in-out), background-color var(--dur-fast); }
details.tb-acc__item[open] .tb-acc__chev { transform: rotate(180deg); background: var(--brand-soft); }
.tb-acc__panel { display: grid; grid-template-rows: 0fr; }
details.tb-acc__item[open] .tb-acc__panel { grid-template-rows: 1fr; }
.tb-acc__inner { overflow: hidden; }
.tb-acc__inner p { margin: 0; padding: 0 56px 22px 4px; color: var(--ink-muted); opacity: 0; transform: translateY(-4px); transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
details.tb-acc__item[open] .tb-acc__inner p { opacity: 1; transform: none; }
/* высота панели: пока details закрыт, содержимое скрыто; где ::details-content нет — открывается мгновенно */
.tb-acc { interpolate-size: allow-keywords; }
@supports selector(::details-content) {
  .tb-acc__item::details-content { block-size: 0; overflow: hidden; transition: block-size var(--dur-base) var(--ease-in-out), content-visibility var(--dur-base) allow-discrete; }
  .tb-acc__item[open]::details-content { block-size: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .tb-acc__chev, .tb-acc__panel, .tb-acc__inner p { transition: none; }
  @supports selector(::details-content) { .tb-acc__item::details-content { transition: none; } }
}

/* ---------- Таблица ---------- */
.tb-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-raised); }
.tb-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; font-variant-numeric: tabular-nums; }
.tb-table caption { caption-side: bottom; text-align: left; padding: 12px 20px; font-size: 13px; line-height: 18px; color: var(--ink-subtle); border-top: 1px solid var(--line); }
.tb-table th { text-align: left; padding: 14px 20px; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-subtle); background: var(--bg-sunken); white-space: nowrap; }
.tb-table td { padding: 14px 20px; border-top: 1px solid var(--line); color: var(--ink); white-space: nowrap; }
.tb-table td.tb-r, .tb-table th.tb-r { text-align: right; }
.tb-table tbody tr { transition: background-color var(--dur-instant); }
.tb-table tbody tr:hover { background: var(--bg-sunken); }
.tb-table .tb-muted { color: var(--ink-muted); }

/* ---------- Хлебные крошки ---------- */
.tb-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 20px; }
.tb-crumbs li { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-subtle); }
.tb-crumbs a { color: var(--ink-muted); text-decoration: none; padding: 12px 2px; border-radius: var(--radius-xs); }
.tb-crumbs a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.tb-crumbs [aria-current] { color: var(--ink); }
.tb-crumbs .tb-icon { color: var(--ink-subtle); }

/* ---------- Шапка ---------- */
.tb-header { position: sticky; top: 0; z-index: 50; height: var(--header-height); background: var(--header-glass);
  -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(1.4); backdrop-filter: blur(var(--blur-glass)) saturate(1.4);
  border-bottom: 1px solid transparent; transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.tb-header.is-scrolled { background: var(--header-glass-scrolled); border-bottom-color: var(--line); }
.tb-header__in { max-width: var(--container); height: 100%; margin: 0 auto; display: flex; align-items: center; gap: var(--space-5); padding: 0 var(--space-5); }
.tb-logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: .02em; }
/* logo.svg: знак и надпись с полем ~18% по краям внутри файла — компенсируем отрицательным отступом */
.tb-logo__img { display: block; height: 64px; width: auto; margin: -10px -12px; }
.tb-logo__img--footer { height: 34px; margin: 0; }
@media (max-width: 600px) { .tb-logo__img { height: 56px; margin: -8px -10px; } }
.tb-nav { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.tb-nav a, .tb-nav button { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; border-radius: var(--radius-sm); border: 0; background: none;
  color: var(--ink-muted); font: 500 15px/20px var(--font-sans); text-decoration: none; cursor: pointer; transition: color var(--dur-instant), background-color var(--dur-instant); }
.tb-nav a:hover, .tb-nav button:hover, .tb-nav [aria-expanded="true"] { color: var(--ink); background: var(--neutral-soft); }
.tb-nav [aria-expanded] .tb-icon { color: currentColor; transition: transform var(--dur-base) var(--ease-in-out); }
.tb-nav [aria-expanded="true"] .tb-icon { transform: rotate(180deg); }
.tb-header__phone { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; padding: 12px 0; }
.tb-header__phone:hover { color: var(--link); }

/* Мегаменю */
.tb-mega { position: absolute; left: 50%; top: calc(var(--header-height) + 8px); width: min(920px, calc(100% - 32px)); transform: translateX(-50%); padding: var(--space-5);
  border-radius: var(--radius-lg); background: var(--bg-elevated); border: 1px solid var(--line-strong); box-shadow: var(--shadow-overlay);
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--space-5);
  opacity: 0; visibility: hidden; transform: translate(-50%, -8px) scale(.98); transform-origin: top center;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base); }
.tb-mega.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition-delay: 0s; }
.tb-mega__col > * { opacity: 0; transform: translateY(6px); transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); transition-delay: calc(var(--i, 0) * 30ms + 60ms); }
.tb-mega.is-open .tb-mega__col > * { opacity: 1; transform: none; }
.tb-mega__item { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; }
.tb-mega__item:hover { background: var(--neutral-soft); }
.tb-mega__item b { display: block; font-weight: 600; font-size: 15px; line-height: 22px; }
.tb-mega__item small { display: block; color: var(--ink-subtle); font-size: 13px; line-height: 18px; }
.tb-mega__law { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 10px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-weight: 500; }
.tb-mega__law:hover { background: var(--neutral-soft); }
.tb-mega__law .tb-icon { color: var(--ink-subtle); }
.tb-mega__promo { padding: var(--space-5); border-radius: var(--radius-md); background: var(--brand-soft); display: flex; flex-direction: column; gap: 10px; }

/* Мобильное меню */
.tb-mmenu { position: fixed; top: var(--header-height); left: 0; right: 0; height: calc(100dvh - var(--header-height)); background: var(--bg); padding: var(--space-4); display: flex; flex-direction: column; gap: 4px; overflow: auto;
  clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path var(--dur-slow) var(--ease-out), visibility 0s linear var(--dur-slow); }
.tb-mmenu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition-delay: 0s; }
@media (min-width: 901px) { .tb-mmenu { display: none; } }
.tb-mmenu > * { opacity: 0; transform: translateY(8px); transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); transition-delay: calc(var(--i, 0) * 40ms + 80ms); }
.tb-mmenu.is-open > * { opacity: 1; transform: none; }
.tb-mmenu__link { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 20px; line-height: 28px; font-weight: 600; }
.tb-mmenu__link .tb-icon { color: var(--ink-subtle); }
.tb-burger { width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--line-control); background: none; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.tb-burger .tb-icon { color: var(--ink); }
.tb-burger .tb-icon:last-child, .tb-burger[aria-expanded="true"] .tb-icon:first-child { display: none; }
.tb-burger[aria-expanded="true"] .tb-icon:last-child { display: block; }

/* ---------- Подвал ---------- */
.tb-footer { background: var(--bg); border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 14px; line-height: 22px; }
.tb-footer__in { max-width: var(--container); margin: 0 auto; padding: var(--space-8) var(--space-5) var(--space-6); }
.tb-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: var(--space-6); }
.tb-footer h2 { margin: 0 0 12px; font-size: 12px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-subtle); font-weight: 600; }
.tb-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.tb-footer a { color: var(--ink-muted); text-decoration: none; display: inline-block; padding: 4px 0; }
@media (max-width: 600px) { .tb-footer a { display: inline-flex; align-items: center; min-height: var(--target-min); } }
.tb-footer a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.tb-footer__tel { color: var(--ink) !important; font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; }
.tb-footer__legal { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--ink-subtle); font-size: 13px; line-height: 20px; }
.tb-footer__disc { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-muted); }

/* ---------- Цифры ---------- */
.tb-stat { display: flex; flex-direction: column; gap: 8px; }
.tb-stat__v { font-size: 72px; line-height: 72px; font-weight: 600; letter-spacing: -.035em; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.tb-stat__v em { font-style: normal; color: var(--accent); font-size: .55em; letter-spacing: -.01em; }
.tb-stat__l { font-size: 15px; line-height: 22px; color: var(--ink-muted); max-width: 200px; }
.tb-stats { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: var(--space-5); }
.tb-stats > * { padding-top: var(--space-5); border-top: 1px solid var(--line-strong); }

/* Лента банков (текстовые плашки до получения официальных логотипов) */
/* Лента банков — типографская, без логотипов */
.tb-banks { display: grid; gap: var(--space-4); }
.tb-banks__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); }
.tb-banks__list { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tb-banks__list li { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; min-height: 72px; padding: 0 24px; white-space: nowrap; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  color: var(--ink-subtle); font-size: 17px; line-height: 22px; font-weight: 600; letter-spacing: -.015em; text-align: center; transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
.tb-banks__list li:hover { color: var(--ink); background: var(--bg-raised); }
.tb-banks__note { font-size: 13px; line-height: 18px; color: var(--ink-subtle); }
@media (max-width: 600px) {
  .tb-banks__list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-left: 0; border-right: 0;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .tb-banks__list li { flex: none; min-height: 56px; padding: 0 18px; scroll-snap-align: start; white-space: nowrap; border-bottom: 0; }
  .tb-banks__head { flex-direction: column; gap: 4px; }
}

/* ---------- Проявление ---------- */
html.js .tb-reveal:not(.is-in) { opacity: 0; transform: translateY(16px); }
.tb-reveal { transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }

/* ---------- Калькулятор ---------- */
.tb-calc { display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-6); border-radius: var(--radius-lg); background: var(--bg-raised); border: 1px solid var(--line); box-shadow: var(--shadow-rest); }
.tb-calc__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.tb-calc__result { position: relative; padding: var(--space-5); border-radius: var(--radius-md); background: var(--bg-sunken); border: 1px solid var(--line); min-height: 168px; }
.tb-calc__estimate, .tb-calc__individual { transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.tb-calc__individual { position: absolute; inset: var(--space-5); opacity: 0; transform: translateY(6px); pointer-events: none; }
.tb-calc__result.is-individual .tb-calc__estimate { opacity: 0; transform: translateY(-6px); }
.tb-calc__result.is-individual .tb-calc__individual { opacity: 1; transform: none; pointer-events: auto; }
.tb-calc__value { margin: 6px 0 4px; font-size: 40px; line-height: 44px; font-weight: 600; letter-spacing: -.025em; font-variant-numeric: tabular-nums; color: var(--ink); overflow-wrap: anywhere; }
.tb-calc__rate { color: var(--link); font-weight: 600; font-size: 15px; }
.tb-calc__note { margin: 10px 0 0; font-size: 13px; line-height: 18px; color: var(--ink-subtle); }
.tb-calc__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); }

/* ---------- Экран кабинета (иллюстрация) ---------- */
.tb-screen { border-radius: var(--radius-lg); background: var(--bg-raised); border: 1px solid var(--line-strong); box-shadow: var(--shadow-overlay); overflow: hidden; }
.tb-screen__bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--bg-sunken); font-size: 13px; color: var(--ink-subtle); }
.tb-screen__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.tb-screen__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.tb-screen__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tb-screen__title { font-weight: 600; font-size: 17px; line-height: 24px; }
.tb-screen__sub { font-size: 13px; line-height: 18px; color: var(--ink-subtle); font-variant-numeric: tabular-nums; }
.tb-bankrow { display: grid; grid-template-columns: 32px 1fr auto auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--bg-sunken); border: 1px solid var(--line);
  transition: border-color var(--dur-slow) var(--ease-in-out), background-color var(--dur-slow) var(--ease-in-out); }
.tb-bankrow.is-best { border-color: var(--brand); background: var(--brand-soft); }
.tb-bankrow__logo { width: 32px; height: 32px; border-radius: var(--radius-xs); background: var(--neutral-soft); color: var(--ink-muted); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.tb-bankrow__name { font-weight: 500; font-size: 15px; }
.tb-bankrow__price { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 15px; color: var(--ink); min-width: 92px; text-align: right; }
.tb-progress { height: 6px; border-radius: var(--radius-pill); background: var(--neutral-soft); overflow: hidden; }
.tb-progress > i { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width var(--dur-slow) var(--ease-out); }

/* Абстрактная графика — сетка из линий */
.tb-gridlines { background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; }

/* ---------- Баннер cookie ---------- */
.tb-cookie { display: flex; align-items: center; gap: var(--space-4); max-width: 560px; padding: 14px 14px 14px 18px; border-radius: var(--radius-md); background: var(--bg-elevated); border: 1px solid var(--line-strong); box-shadow: var(--shadow-overlay); font-size: 14px; line-height: 20px; color: var(--ink-muted);
  transition: opacity var(--dur-fast) var(--ease-exit), transform var(--dur-fast) var(--ease-exit); }
.tb-cookie.is-hidden { opacity: 0; transform: translateY(12px); }
.tb-cookie p { margin: 0; flex: 1; }

/* ---------- Уменьшить движение ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: var(--dur-instant) !important; transition-delay: 0s !important; animation: none !important; }
  .tb-btn:hover, .tb-btn:active, a.tb-card:hover, a.tb-card:active, .tb-card--interactive:hover, .tb-card--interactive:active { transform: none !important; }
  .tb-reveal, .tb-mega__col > *, .tb-mmenu > *, .tb-acc__inner p, .tb-calc__individual, .tb-calc__estimate { transform: none !important; }
}

/* ---------- 390 ---------- */
@media (max-width: 600px) {
  .tb-calc { padding: var(--space-5) var(--space-4); }
  .tb-calc__value { font-size: 26px; line-height: 32px; }
  .tb-calc__row { grid-template-columns: 1fr; }
  .tb-stat__v { font-size: 48px; line-height: 52px; }
  .tb-stats { grid-template-columns: 1fr 1fr; }
  .tb-stats > :first-child { grid-column: 1 / -1; }
  .tb-footer__grid { grid-template-columns: 1fr; }
  .tb-acc__inner p { padding-right: 4px; }
}

/* ---------- Таблица ставок ---------- */
.tb-rates td.is-rate { font-weight: 600; color: var(--ink); }
.tb-rates td.is-ind { color: var(--ink-subtle); font-size: 14px; }
.tb-rates th[scope="row"] { text-transform: none; letter-spacing: 0; font-size: 15px; line-height: 22px; font-weight: 500; color: var(--ink); background: transparent; border-top: 1px solid var(--line); }
.tb-rates__upd { display: inline-flex; align-items: center; gap: 6px; }
.tb-rates__upd .tb-icon { color: var(--ink-subtle); }

/* ---------- Сегменты без ползунка (статичная вёрстка, макеты) ---------- */
.tb-seg:not(:has(.tb-seg__thumb)) input:checked + label { background: var(--brand); color: var(--on-brand); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }

/* ---------- Калькулятор: горизонтальный вариант (первый экран «Табло») ---------- */
.tb-calc--bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: var(--space-5) var(--space-6); align-items: stretch; }
.tb-calc--bar .tb-calc__inputs { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.tb-calc--bar .tb-calc__side { display: flex; flex-direction: column; gap: var(--space-4); }
.tb-calc--bar .tb-calc__result { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.tb-calc--bar .tb-calc__actions .tb-btn--primary { width: 100%; }
@media (max-width: 900px) { .tb-calc--bar { grid-template-columns: 1fr; } }

/* ---------- Первый экран ---------- */
.tb-hero { position: relative; overflow: hidden; background: var(--bg); }
.tb-hero__in { position: relative; max-width: var(--container); margin: 0 auto; padding: var(--space-8) var(--space-5) var(--space-9); }
.tb-hero__h1 { margin: 0; font-size: 64px; line-height: 68px; font-weight: 600; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.tb-hero__lead { margin: 0; font-size: 19px; line-height: 30px; color: var(--ink-muted); max-width: 560px; }
.tb-hero__lead b { color: var(--ink); font-weight: 600; }
.tb-hero .tb-gridlines { position: absolute; inset: 0; opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 30%, transparent 75%); }
@media (max-width: 600px) { .tb-hero__h1 { font-size: 36px; line-height: 42px; } .tb-hero__in { padding: var(--space-6) var(--space-4) var(--space-8); } }

/* =====================================================================
   Раскладка страниц (десктоп 1440 / планшет ≤ 900 / мобильная ≤ 600)
   ===================================================================== */
.tb-page { font-family: var(--font-sans); background: var(--bg); color: var(--ink); }
.tb-container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-5); }
.tb-container--text { max-width: calc(var(--container-text) + 2 * var(--space-5)); }
.tb-section { padding: var(--space-9) 0; }
.tb-section--tight { padding: var(--space-7) 0; }
.tb-section--line { border-top: 1px solid var(--line); }
.tb-section--sunken { background: var(--bg-sunken); }
.tb-section__head { display: flex; flex-direction: column; gap: var(--space-3); max-width: 760px; margin-bottom: var(--space-6); }
.tb-section__head--row { flex-direction: row; max-width: none; justify-content: space-between; align-items: flex-end; gap: var(--space-5); }
.tb-h1 { margin: 0; font-size: 52px; line-height: 58px; font-weight: 600; letter-spacing: -.025em; text-wrap: balance; color: var(--ink); }
.tb-h2 { margin: 0; font-size: 40px; line-height: 48px; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; color: var(--ink); }
.tb-h3 { margin: 0; font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.tb-lead { margin: 0; font-size: 19px; line-height: 30px; color: var(--ink-muted); max-width: 640px; }
.tb-lead b { color: var(--ink); font-weight: 600; }
.tb-text { margin: 0; color: var(--ink-muted); }
.tb-cols { display: grid; gap: var(--space-4); grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.tb-cols--2 { --cols: 2; } .tb-cols--3 { --cols: 3; } .tb-cols--4 { --cols: 4; }
.tb-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--side, 480px)); gap: var(--space-7); align-items: start; }
.tb-split--center { align-items: center; }
.tb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.tb-list li { display: flex; gap: var(--space-3); align-items: flex-start; color: var(--ink-muted); }
.tb-list li .tb-icon { margin-top: 3px; }
.tb-list li b { color: var(--ink); font-weight: 600; }
@media (min-width: 901px) { .tb-only-mobile { display: none !important; } }
@media (max-width: 900px) {
  .tb-only-desktop { display: none !important; }
  .tb-cols--3, .tb-cols--4 { --cols: 2; }
  .tb-split { grid-template-columns: 1fr; gap: var(--space-6); }
}
@media (max-width: 600px) {
  .tb-container { padding: 0 var(--space-4); }
  .tb-section { padding: var(--space-8) 0; }
  .tb-section--tight { padding: var(--space-6) 0; }
  .tb-cols { --cols: 1 !important; }
  .tb-h1 { font-size: 36px; line-height: 42px; }
  .tb-h2 { font-size: 28px; line-height: 34px; }
  .tb-h3 { font-size: 20px; line-height: 28px; }
  .tb-lead { font-size: 17px; line-height: 26px; }
  .tb-section__head { margin-bottom: var(--space-5); }
  .tb-section__head--row { flex-direction: column; align-items: flex-start; }
}

/* ---------- Шапка: адаптив ---------- */
@media (max-width: 900px) {
  .tb-header .tb-nav, .tb-header .tb-header__phone, .tb-header .tb-header__login { display: none; }
  .tb-header__in { gap: var(--space-3); }
  .tb-header__spacer { flex: 1; }
}
html:not(.js) .tb-burger, html:not(.js) .tb-nav button[aria-controls] { display: none; }
@media (max-width: 600px) {
  :root { --header-height: 60px; }
  .tb-header { height: 60px; }
  .tb-header__in { padding: 0 var(--space-4); }
  .tb-header .tb-btn--primary { padding: 0 14px; }
}
.tb-mmenu--static { position: static; clip-path: none; visibility: visible; min-height: 784px; }
.tb-mmenu--static > * { opacity: 1; transform: none; }
.tb-mmenu__sub { display: flex; flex-direction: column; padding: 4px 4px 12px 12px; border-bottom: 1px solid var(--line); }
.tb-mmenu__sub a { display: flex; align-items: center; min-height: 44px; color: var(--ink-muted); text-decoration: none; font-size: 16px; }

/* ---------- Первый экран B «Маршрут заявки» ---------- */
.tb-hero__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: var(--space-7); align-items: end; }
.tb-route { display: grid; grid-template-columns: minmax(0, 580px) 72px minmax(0, 1fr); align-items: center; }
.tb-route__link { position: relative; align-self: stretch; display: flex; align-items: center; justify-content: center; min-height: 56px; }
.tb-route__link::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed var(--accent); opacity: .7; }
.tb-route__node { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; box-shadow: var(--shadow-brand); }
.tb-route__node .tb-icon { color: var(--on-brand); }
.tb-route__fig { margin: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tb-route__cap { font-size: 13px; line-height: 18px; color: var(--ink-subtle); }
.tb-route__num { width: 32px; height: 32px; border-radius: var(--radius-xs); background: var(--neutral-soft); color: var(--ink-muted); display: grid; place-items: center; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
/* Упрощённый маршрут для 390: сводка вместо шести строк */
.tb-route__sum { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); border-radius: var(--radius-lg); background: var(--bg-raised); border: 1px solid var(--line-strong); }
.tb-stackbar { display: flex; gap: 3px; height: 10px; }
.tb-stackbar > i { display: block; height: 100%; border-radius: 3px; }
.tb-stackbar .is-offer { background: var(--success); } .tb-stackbar .is-docs { background: var(--warning); }
.tb-stackbar .is-review { background: var(--accent); } .tb-stackbar .is-declined { background: var(--danger); }
@media (max-width: 900px) {
  .tb-hero__top { grid-template-columns: 1fr; gap: var(--space-4); }
  .tb-route { grid-template-columns: 1fr; }
  .tb-route__link::before { left: 50%; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 1px dashed var(--accent); }
}
@media (max-width: 600px) {
  .tb-bankrow { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; padding: 8px 10px; }
  .tb-bankrow__price { display: none; }
  .tb-bankrow__logo, .tb-route__num { width: 28px; height: 28px; }
  .tb-screen__head { flex-direction: column; }
  .tb-screen__body { padding: var(--space-4); }
}

/* ---------- Шаги «Как это работает» ---------- */
.tb-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); list-style: none; margin: 0; padding: 0; }
.tb-step { display: flex; flex-direction: column; gap: 10px; padding: var(--space-5); border-radius: var(--radius-lg); background: var(--bg-raised); border: 1px solid var(--line); }
.tb-step__n { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-weight: 600; color: var(--link); font-variant-numeric: tabular-nums; }
.tb-step__t { margin: 6px 0 0; font-size: 19px; line-height: 26px; font-weight: 600; color: var(--ink); }
.tb-step__d { margin: 0; color: var(--ink-muted); font-size: 15px; line-height: 24px; }
@media (max-width: 900px) { .tb-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tb-steps { grid-template-columns: 1fr; } }

/* ---------- Липкое повествование «Возможности платформы» ---------- */
.tb-story { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-7); align-items: start; }
.tb-story__screen { position: sticky; top: calc(var(--header-height) + var(--space-5)); }
.tb-story__items { display: flex; flex-direction: column; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.tb-story__item { display: flex; gap: var(--space-4); padding: var(--space-5); border-radius: var(--radius-lg); border: 1px solid var(--line); color: var(--ink);
  transition: background-color var(--dur-slow) var(--ease-in-out), border-color var(--dur-slow) var(--ease-in-out), color var(--dur-slow) var(--ease-in-out); }
.tb-story__item h3 { margin: 0 0 6px; font-size: 19px; line-height: 26px; font-weight: 600; color: inherit; }
.tb-story__item p { margin: 0; font-size: 15px; line-height: 24px; color: var(--ink-muted); }
html.js .tb-story__item:not(.is-active) { color: var(--ink-subtle); }
html.js .tb-story__item:not(.is-active) p { color: var(--ink-subtle); }
.tb-story__item.is-active { background: var(--bg-raised); border-color: var(--brand); color: var(--ink); }
.tb-story__item.is-active p { color: var(--ink-muted); }
@media (max-width: 900px) {
  .tb-story { grid-template-columns: 1fr; gap: var(--space-5); }
  .tb-story__screen { position: static; }
  html.js .tb-story__item:not(.is-active), .tb-story__item { color: var(--ink); background: var(--bg-raised); }
  html.js .tb-story__item:not(.is-active) p, .tb-story__item p { color: var(--ink-muted); }
}

/* ---------- Панели: CTA, ЭЦП, оффер ---------- */
.tb-panel { position: relative; overflow: hidden; padding: var(--space-8); border-radius: var(--radius-xl); background: var(--bg-raised); border: 1px solid var(--line-strong); }
.tb-panel--soft { background: var(--brand-soft); border-color: transparent; }
.tb-panel--brand { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.tb-panel--brand .tb-h2, .tb-panel--brand .tb-lead { color: var(--on-brand); }
.tb-panel--brand .tb-gridlines { opacity: .18; }
.tb-panel > :not(.tb-gridlines) { position: relative; }
.tb-btn--inverse { --_bg: var(--on-brand); --_fg: var(--brand); --_bd: var(--on-brand); }
.tb-btn--inverse:hover { box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .45); }
.tb-btn--inverse:focus-visible { outline-color: var(--on-brand); }
@media (max-width: 600px) { .tb-panel { padding: var(--space-6) var(--space-5); border-radius: var(--radius-lg); } }

/* ---------- Формы ---------- */
.tb-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.tb-form__full { grid-column: 1 / -1; }
.tb-form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
@media (max-width: 600px) { .tb-form { grid-template-columns: 1fr; } .tb-form__foot .tb-btn { width: 100%; } }
/* Карточки-варианты (radio) и шкала оценки — опрос «Обратная связь» */
.tb-choices { display: grid; gap: var(--space-3); grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); }
.tb-choice { position: relative; display: flex; gap: 12px; align-items: flex-start; min-height: var(--target-min); padding: 16px; border-radius: var(--radius-md); border: 1px solid var(--line-control); background: var(--bg-sunken); cursor: pointer; color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
.tb-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tb-choice__dot { flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; border: 1.5px solid var(--line-control); display: grid; place-items: center; }
.tb-choice__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); transform: scale(0); transition: transform var(--dur-fast) var(--ease-spring); }
.tb-choice b { display: block; font-weight: 600; font-size: 15px; line-height: 22px; }
.tb-choice small { display: block; color: var(--ink-subtle); font-size: 13px; line-height: 18px; }
.tb-choice:hover { border-color: var(--ink-subtle); }
.tb-choice.is-checked, .tb-choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.tb-choice.is-checked .tb-choice__dot, .tb-choice:has(input:checked) .tb-choice__dot { border-color: var(--brand); }
.tb-choice.is-checked .tb-choice__dot::after, .tb-choice:has(input:checked) .tb-choice__dot::after { transform: scale(1); }
.tb-choice:has(input:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.tb-scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-2); }
.tb-scale button { min-height: 52px; border-radius: var(--radius-sm); border: 1px solid var(--line-control); background: var(--bg-sunken); color: var(--ink); font: 600 17px/24px var(--font-sans); cursor: pointer;
  transition: background-color var(--dur-instant), border-color var(--dur-instant), transform var(--dur-instant) var(--ease-spring); }
.tb-scale button:hover { border-color: var(--ink-subtle); }
.tb-scale button:active { transform: scale(.98); }
.tb-scale button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.tb-scale__legend { display: flex; justify-content: space-between; font-size: 13px; line-height: 18px; color: var(--ink-subtle); margin-top: 6px; }
@media (max-width: 600px) { .tb-choices { --cols: 1; } }

/* ---------- Статьи: фильтр, пагинация, подпись эксперта, оглавление, текст ---------- */
.tb-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.tb-filter a, .tb-filter button { min-height: var(--target-min); padding: 0 16px; border-radius: var(--radius-pill); border: 1px solid var(--line-control); background: transparent; color: var(--ink-muted); font: 500 15px/20px var(--font-sans); cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur-instant), color var(--dur-instant), border-color var(--dur-instant); }
.tb-filter a:hover, .tb-filter button:hover { color: var(--ink); border-color: var(--ink-subtle); }
.tb-filter a { display: inline-flex; align-items: center; text-decoration: none; }
.tb-filter a[aria-current="page"], .tb-filter button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
@media (max-width: 600px) { .tb-filter { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--space-4)); padding: 0 var(--space-4); } }
.tb-pager { display: flex; gap: 6px; align-items: center; justify-content: center; }
.tb-pager a, .tb-pager span { min-width: var(--target-min); height: var(--target-min); padding: 0 8px; display: grid; place-items: center; border-radius: var(--radius-sm); color: var(--ink-muted); text-decoration: none; font-weight: 500; font-variant-numeric: tabular-nums; }
.tb-pager a[aria-label="Назад"] svg { transform: rotate(180deg); }
.tb-pager a:hover { background: var(--neutral-soft); color: var(--ink); }
.tb-pager [aria-current="page"] { background: var(--brand); color: var(--on-brand); }
.tb-byline { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; font-size: 14px; line-height: 20px; color: var(--ink-subtle); }
.tb-byline__who { display: flex; gap: 12px; align-items: center; }
.tb-byline__who b { display: block; color: var(--ink); font-weight: 600; font-size: 15px; }
.tb-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); color: var(--link); display: grid; place-items: center; font-weight: 600; }
.tb-article { display: grid; grid-template-columns: 260px minmax(0, var(--container-text)); gap: var(--space-8); justify-content: space-between; align-items: start; }
.tb-toc { position: sticky; top: calc(var(--header-height) + var(--space-5)); display: flex; flex-direction: column; gap: 8px; }
.tb-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.tb-toc a { display: block; padding: 8px 12px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-muted); text-decoration: none; font-size: 14px; line-height: 20px; }
.tb-toc a:hover { color: var(--ink); }
.tb-toc a[aria-current="true"] { color: var(--link); border-left-color: var(--brand); font-weight: 500; }
@media (max-width: 900px) {
  .tb-article { grid-template-columns: 1fr; gap: var(--space-5); }
  .tb-toc { position: static; padding: var(--space-4); border-radius: var(--radius-md); background: var(--bg-sunken); }
}
.tb-prose { font-size: 18px; line-height: 30px; color: var(--ink); }
.tb-prose > * { margin: 0; }
.tb-prose > * + * { margin-top: 20px; }
.tb-prose h2 { margin-top: 48px; font-size: 28px; line-height: 36px; font-weight: 600; letter-spacing: -.015em; scroll-margin-top: 96px; }
.tb-prose h3 { margin-top: 32px; font-size: 21px; line-height: 28px; font-weight: 600; }
.tb-prose ul, .tb-prose ol { padding-left: 24px; }
.tb-prose li + li { margin-top: 8px; }
.tb-prose a { color: var(--link); text-underline-offset: 3px; }
.tb-prose .tb-table-wrap { font-size: 15px; }
.tb-law { margin: 28px 0 0; padding: 20px 24px; border-radius: var(--radius-md); background: var(--bg-sunken); border: 1px solid var(--line); }
.tb-law__src { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-subtle); }
.tb-law p { margin: 0; font-size: 16px; line-height: 26px; color: var(--ink); }
@media (max-width: 600px) { .tb-prose { font-size: 17px; line-height: 28px; } .tb-prose h2 { font-size: 24px; line-height: 32px; margin-top: 36px; } }

/* ---------- 404 ---------- */
.tb-404 { position: relative; overflow: hidden; }
.tb-404__code { font-size: 200px; line-height: 1; font-weight: 600; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px var(--accent); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .tb-404__code { font-size: 112px; } }

/* ---------- Калькулятор на 390: сегменты 2 × 2 ---------- */
@media (max-width: 600px) {
  .tb-calc .tb-seg { flex-wrap: wrap; gap: 4px; }
  .tb-calc .tb-seg label { flex: 1 1 calc(50% - 4px); padding: 0 8px; }
  .tb-calc .tb-seg__thumb { display: none; }
  .tb-calc .tb-seg input:checked + label { background: var(--brand); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
  .tb-calc__actions .tb-btn--primary { width: 100%; white-space: normal; text-align: center; }
  .tb-calc__actions { justify-content: center; }
}
.tb-calc__fixed { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: var(--radius-sm); background: var(--bg-sunken); border: 1px solid var(--line); font-weight: 600; }
.tb-calc__fixed .tb-icon { color: var(--icon); }
.tb-nav [aria-current="page"] { color: var(--ink); background: var(--neutral-soft); }

/* =====================================================================
   Утилиты разметки страниц (вместо инлайн-стилей)
   ===================================================================== */
.tb-hidden { display: none !important; }
.tb-m0 { margin: 0; }
.tb-mt-0 { margin-top: 0; } .tb-mt-6 { margin-top: 6px; } .tb-mt-8 { margin-top: var(--space-2); } .tb-mt-24 { margin-top: var(--space-5); }
.tb-mt-32 { margin-top: var(--space-6); } .tb-mt-40 { margin-top: 40px; } .tb-mt-48 { margin-top: var(--space-7); } .tb-mt-56 { margin-top: 56px; }
.tb-mt-auto { margin-top: auto; } .tb-mr-8 { margin-right: var(--space-2); } .tb-ml-8 { margin-left: var(--space-2); }
.tb-pt-0 { padding-top: 0; } .tb-pt-24 { padding-top: var(--space-5); } .tb-pt-48 { padding-top: var(--space-7); }
.tb-pb-48 { padding-bottom: var(--space-7); } .tb-pb-64 { padding-bottom: var(--space-8); }
.tb-self-start { align-self: flex-start; }
.tb-flex-1 { flex: 1; }
.tb-nowrap { white-space: nowrap; }
.tb-rel { position: relative; }
.tb-fill { position: absolute; inset: 0; }
.tb-col { display: flex; flex-direction: column; }
.tb-gap-8 { gap: var(--space-2); } .tb-gap-10 { gap: 10px; } .tb-gap-12 { gap: var(--space-3); } .tb-gap-16 { gap: var(--space-4); }
.tb-gap-20 { gap: 20px; } .tb-gap-24 { gap: var(--space-5); } .tb-gap-40 { gap: 40px; }
.tb-inline { display: flex; align-items: center; gap: var(--space-3); }
.tb-inline--top { align-items: flex-start; gap: 20px; }
.tb-wrap { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.tb-wrap--tight { gap: 6px; } .tb-wrap--links { gap: 8px 24px; font-size: 15px; }
.tb-end { display: flex; justify-content: flex-end; }
.tb-measure-640 { max-width: 640px; } .tb-measure-820 { max-width: 820px; } .tb-measure-880 { max-width: 880px; } .tb-measure-928 { max-width: 928px; }
.tb-measure-340 { max-width: 340px; } .tb-measure-360 { max-width: 360px; } .tb-measure-280 { max-width: 280px; }
.tb-split--280 { --side: 280px; } .tb-split--300 { --side: 300px; } .tb-split--520 { --side: 520px; } .tb-split--560 { --side: 560px; }
.tb-split--580 { --side: 580px; } .tb-split--600 { --side: 600px; } .tb-split--640 { --side: 640px; } .tb-split--680 { --side: 680px; }
.tb-section--light { background: var(--bg); color: var(--ink); }
.tb-section--top { padding-top: var(--space-5); }
.tb-text--sm { font-size: 14px; line-height: 22px; }
.tb-text--strong { font-size: 17px; line-height: 26px; color: var(--ink); }
@media (max-width: 900px) { .tb-end { justify-content: flex-start; } }
@media (max-width: 600px) { .tb-hide-sm { display: none !important; } }
@media (min-width: 601px) { .tb-show-sm { display: none !important; } }

/* Карточки и детали, которые раньше задавались инлайн */
.tb-card__cta { color: var(--link); font-weight: 600; font-size: 15px; line-height: 20px; }
.tb-card__title--lg { font-size: 21px; line-height: 28px; }
.tb-card--roomy { padding: var(--space-6); gap: var(--space-4); }
.tb-card--done { padding: 40px; gap: var(--space-4); align-items: flex-start; }
.tb-card--ghost { background: transparent; gap: 10px; }
.tb-tile--success { background: var(--success-soft); }
.tb-tile--success .tb-icon { color: var(--success); }
.tb-verified { display: inline-flex; gap: 6px; align-items: center; color: var(--success); }
.tb-verified .tb-icon { color: var(--success); }
.tb-referral { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--radius-sm); border: 1px dashed var(--line-strong); font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.tb-referral__url { font-variant-numeric: tabular-nums; }
.tb-screen__bar-title { margin-left: var(--space-2); }
.tb-route__cap--in { margin: 4px 0 0; }
.tb-progress--40 > i { width: 40%; } .tb-progress--62 > i { width: 62%; }
.tb-stackbar .is-w1 { flex: 1; } .tb-stackbar .is-w2 { flex: 2; }
.tb-calc--float { box-shadow: var(--shadow-overlay); }
.tb-calc__value--sm { font-size: 28px; line-height: 34px; }
.tb-calc__note--muted { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.tb-hero__in--stack { display: flex; flex-direction: column; gap: 40px; }
.tb-hero__in--page { padding-top: var(--space-5); }
.tb-hero__in--404 { padding-top: var(--space-9); padding-bottom: 128px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.tb-hero__h1--wide { max-width: 820px; }
.tb-page-head { display: flex; flex-direction: column; gap: 20px; margin-top: var(--space-6); max-width: 880px; }
.tb-page-head--narrow { max-width: 820px; }
.tb-page-head--legal { gap: var(--space-4); margin: var(--space-6) 0 var(--space-7); }
.tb-laws { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-5); align-items: center; }
.tb-mmenu__phone { padding: 20px 4px 8px; }
.tb-mmenu__phone .tb-header__phone { font-size: 20px; }
.tb-mmenu__phone-note { font-size: 14px; color: var(--ink-subtle); }
.tb-mmenu__actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-bottom: 8px; }
.tb-footer__about { margin: 12px 0 0; max-width: 280px; }
.tb-footer__links { display: flex; gap: 20px; }
.tb-footer__addr { margin-top: 6px; }
.tb-footer__disc .tb-icon { margin-top: 2px; }
.tb-article--padded { padding-top: var(--space-7); }
.tb-section--ruled { padding-top: 0; border-top: 1px solid var(--line); }

/* Каскад появления: порядковый номер элемента */
.tb-i-0 { --i: 0; } .tb-i-1 { --i: 1; } .tb-i-2 { --i: 2; } .tb-i-3 { --i: 3; } .tb-i-4 { --i: 4; } .tb-i-5 { --i: 5; } .tb-i-6 { --i: 6; } .tb-i-7 { --i: 7; } .tb-i-8 { --i: 8; } .tb-i-9 { --i: 9; } 

@media (max-width: 900px) { .tb-mega { display: none; } }
.tb-header { overflow-x: clip; }
.tb-split > *, .tb-article > *, .tb-route > *, .tb-story > * { min-width: 0; }
.tb-prose { overflow-wrap: anywhere; }
.tb-calc__result { overflow: hidden; }
.tb-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.tb-calc__value--sm { white-space: normal; }

/* long words in headings on phones */
@media (max-width: 600px) { .tb-h1, .tb-h2 { overflow-wrap: anywhere; hyphens: auto; } }

/* ---------- Honeypot формы ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Опрос (/survey.html): вопросы строит скрипт из API ---------- */
.bg-img::after { content: ""; position: absolute; inset: 0; background: var(--bg); opacity: .78; }
.survey-card { max-width: 760px; margin: var(--space-7) auto var(--space-8); }
.survey-error { display: none; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--danger-soft); color: var(--danger); font-size: 14px; }
.survey-opt { color: var(--ink-subtle); font-weight: 400; }
#questions-container { display: flex; flex-direction: column; gap: var(--space-5); }
.question-block { display: flex; flex-direction: column; gap: var(--space-2); }
.question-block > label { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-muted); }
.question-num { color: var(--ink-subtle); }
.question-block .tb-choices { grid-template-columns: 1fr; }
.tb-scale .star.active { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
[data-done] { display: none; text-align: left; }

/* ---------- Цели касания ≤600px ---------- */
.tb-rates > summary { display: flex; align-items: center; min-height: var(--target-min); cursor: pointer; }
.tb-burger { flex: none; }
@media (max-width: 900px) { .tb-toc a { padding: 12px; } }
@media (max-width: 600px) { .tb-link { display: inline-flex; align-items: center; min-height: var(--target-min); } }
