/*
Theme Name: Twiboost Help
Description: Брендовый малостраничник о SMM-панели Twiboost. Дизайн-язык «пульт заказа»: тёмная панель, полосы выполнения, пары чисел до/после.
Author: Twiboost Help
Version: 1.0.0
*/

/* ══════════════════════════════════════════════════════════
   ТОКЕНЫ
   ══════════════════════════════════════════════════════════ */
:root {
  /* Поверхности: свой фон глубже офсайтового, чтобы карточки отделялись */
  --bg:            #12171e;
  --bg-deep:       #0d1116;
  --surface:       #1a222c;
  --surface-2:     #222d39;
  --line:          #2c3846;
  --line-soft:     #232e3a;

  /* Текст */
  --text:          #e9eef4;
  --text-soft:     #a3b0bd;
  --text-mute:     #7d8b99;

  /* Акцент — один на весь сайт */
  --accent:        #ff7e29;
  --accent-hot:    #ff9448;
  --accent-deep:   #d75f13;
  --accent-wash:   rgba(255, 126, 41, .12);

  /* Статусы: цвет несёт смысл, а не настроение */
  --ok:            #35c95c;
  --ok-wash:       rgba(53, 201, 92, .13);
  --warn:          #ffc000;
  --warn-wash:     rgba(255, 192, 0, .13);
  --bad:           #fb695e;
  --bad-wash:      rgba(251, 105, 94, .13);

  /* Радиусы */
  --r-card:  14px;
  --r-chip:  6px;
  --r-pill:  999px;

  /* Ритм: полотно во всю ширину, дышит боковыми паддингами.
     Ограничивается по ширине только читаемый текст (measure), не макет. */
  --pad:     clamp(16px, 4.5vw, 92px);
  --measure: 68ch;
  --gap:     clamp(18px, 2.2vw, 28px);
  --sec:     clamp(48px, 6vw, 88px);

  --font-h:  "Unbounded", "Trebuchet MS", sans-serif;
  --font-b:  "Onest", "Segoe UI", system-ui, sans-serif;
  --font-m:  "Fira Code", ui-monospace, "Cascadia Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--accent-hot); text-decoration-color: rgba(255, 148, 72, .4); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--font-h);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .6em;
  color: #fff;
}
h1 { font-size: clamp(30px, 3.4vw, 62px); letter-spacing: -.025em; }
h2 { font-size: clamp(23px, 2.2vw, 40px); letter-spacing: -.02em; }
h3 { font-size: clamp(18px, 1.7vw, 21px); }
h4 { font-size: 17px; }
p  { margin: 0 0 1.05em; }

strong { color: #fff; font-weight: 600; }

::selection { background: var(--accent); color: #12171e; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ══════════════════════════════════════════════════════════
   КАРКАС
   ══════════════════════════════════════════════════════════ */
.tb-wrap {
  width: 100%;
  padding-inline: var(--pad);
}

.tb-main { display: block; }

.tb-section { padding: var(--sec) 0; }
.tb-section--tight { padding: clamp(28px, 3.5vw, 44px) 0; }
.tb-section--panel { background: var(--bg-deep); border-block: 1px solid var(--line-soft); }

/* Мера строки держится на тексте, а не на макете: полотно широкое,
   читаемые абзацы и списки — в комфортной колонке. */
.tb-wrap > p:not(.tb-note):not(.tb-checked),
.tb-wrap > ul,
.tb-wrap > ol,
.tb-section > .tb-wrap > p,
.tb-split p,
.tb-split li,
.tb-card p,
.tb-card li { max-width: var(--measure); }

h1 { max-width: 20ch; }
h2 { max-width: 30ch; }

.tb-tldr__list li,
.tb-marks li,
.tb-steps p,
.tb-faq__a { max-width: var(--measure); }

.tb-prose { max-width: var(--measure); }
.tb-prose ul, .tb-prose ol { padding-left: 1.15em; margin: 0 0 1.15em; }
.tb-prose li { margin-bottom: .5em; }
.tb-prose h2 { margin-top: 1.5em; }
.tb-prose h3 { margin-top: 1.35em; }

.tb-lead {
  font-size: clamp(18px, 1.55vw, 21px);
  color: var(--text-soft);
  max-width: 62ch;
}

/* ══════════════════════════════════════════════════════════
   ШАПКА
   ══════════════════════════════════════════════════════════ */
.tb-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(13, 17, 22, .92);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(10px);
}

.tb-header__in {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 66px;
}

.tb-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.02em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.tb-logo__mark {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--accent);
  color: #12171e;
}
.tb-logo__mark svg { width: 19px; height: 19px; stroke-width: 2.2; }

.tb-nav {
  display: flex;
  gap: 4px;
  margin-inline: auto;
  flex-wrap: nowrap;
}
.tb-nav a {
  padding: 7px 11px;
  border-radius: var(--r-chip);
  font-size: 15px;
  color: var(--text-soft);
  text-decoration: none;
  white-space: nowrap;
}
.tb-nav a:hover { background: var(--surface); color: #fff; }

.tb-burger {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
}
.tb-burger svg { width: 20px; height: 20px; }

/* ══════════════════════════════════════════════════════════
   КНОПКИ
   ══════════════════════════════════════════════════════════ */
.tb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-b);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, border-color .15s ease;
}
.tb-btn:active { transform: translateY(1px); }

.tb-btn--primary {
  background: var(--accent);
  color: #12171e;
}
.tb-btn--primary:hover { background: var(--accent-hot); color: #12171e; }

.tb-btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.tb-btn--ghost:hover { border-color: var(--accent); color: #fff; }

.tb-btn--lg { padding: 15px 28px; font-size: 16px; }

/* ══════════════════════════════════════════════════════════
   ХЛЕБНЫЕ КРОШКИ
   ══════════════════════════════════════════════════════════ */
.tb-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 0 0;
  font-size: 13px;
  color: var(--text-mute);
}
.tb-crumbs a { color: var(--text-mute); text-decoration: none; }
.tb-crumbs a:hover { color: var(--accent); }
.tb-crumbs__sep { color: #3d4a58; }
.tb-crumbs__now { color: var(--text-soft); }

/* ══════════════════════════════════════════════════════════
   ГЕРОЙ
   ══════════════════════════════════════════════════════════ */
.tb-hero { padding: clamp(30px, 4vw, 54px) 0 clamp(34px, 4vw, 56px); }

.tb-hero__in {
  display: grid;
  grid-template-columns: minmax(320px, 620px) minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 64px);
  align-items: center;
}

.tb-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-family: var(--font-m);
  font-size: 12.5px;
  color: var(--text-soft);
}
.tb-hero__eyebrow svg { width: 14px; height: 14px; color: var(--accent); }

.tb-hero h1 { margin-bottom: .45em; }
.tb-hero__lead { font-size: clamp(17px, 1.15vw, 21px); color: var(--text-soft); max-width: 54ch; }

.tb-hero__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* Панель заказа — визуальный якорь героя */
.tb-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 20px;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}
.tb-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-m);
  font-size: 12.5px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ══════════════════════════════════════════════════════════
   СТРОКА ЗАКАЗА / ПРАЙСА
   ══════════════════════════════════════════════════════════ */
.tb-rows { list-style: none; margin: 0; padding: 0; }

.tb-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "name num"
    "bar  bar"
    "note note";
  gap: 6px 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}
.tb-row:last-child { border-bottom: 0; }

.tb-row__name {
  grid-area: name;
  font-size: 15.5px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tb-row__num {
  grid-area: num;
  font-family: var(--font-m);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}
.tb-row__bar {
  grid-area: bar;
  display: block;
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--line-soft);
  overflow: hidden;
}
.tb-row__fill {
  display: block;
  height: 100%;
  width: var(--share, 10%);
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
}
.tb-row__note {
  grid-area: note;
  font-size: 13.5px;
  color: var(--text-mute);
}

/* ══════════════════════════════════════════════════════════
   ЧИПЫ СТАТУСА
   ══════════════════════════════════════════════════════════ */
.tb-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--r-chip);
  font-family: var(--font-m);
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
}
.tb-chip--ok    { background: var(--ok-wash);   color: #6ee08c; }
.tb-chip--warn  { background: var(--warn-wash); color: #ffd257; }
.tb-chip--bad   { background: var(--bad-wash);  color: #ff8f86; }
.tb-chip--muted { background: var(--surface-2); color: var(--text-soft); }
.tb-chip--accent{ background: var(--accent-wash); color: var(--accent-hot); }

/* ══════════════════════════════════════════════════════════
   ЧИСЛА ДО / ПОСЛЕ
   ══════════════════════════════════════════════════════════ */
.tb-ba { margin: 0; }
.tb-ba__label { font-size: 13.5px; color: var(--text-mute); margin-bottom: 6px; }
.tb-ba__pair { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tb-ba__num {
  font-family: var(--font-m);
  font-size: clamp(19px, 2.1vw, 24px);
  font-weight: 600;
}
.tb-ba__num--before { color: var(--text-mute); }
.tb-ba__num--after  { color: var(--accent); }
.tb-ba__arrow { color: var(--text-mute); display: inline-flex; }
.tb-ba__arrow svg { width: 18px; height: 18px; }
.tb-ba__time { display: block; margin-top: 6px; font-size: 13px; color: var(--text-soft); }

/* ══════════════════════════════════════════════════════════
   КАРТОЧКИ И СЕТКИ
   ══════════════════════════════════════════════════════════ */
.tb-cards {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
}
.tb-cards--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }

.tb-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(18px, 2vw, 26px);
}
.tb-card--cut { clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%); }
.tb-card--flat { background: transparent; border-color: var(--line-soft); }
.tb-card h3 { margin-bottom: .45em; }
.tb-card p:last-child { margin-bottom: 0; }
.tb-card__ico {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--accent-wash);
  color: var(--accent);
}
.tb-card__ico svg { width: 20px; height: 20px; }

.tb-split > * { min-width: 0; }

.tb-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(22px, 3vw, 44px);
  align-items: start;
}

/* Статистика */
.tb-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  overflow: hidden;
}
.tb-stat { background: var(--bg-deep); padding: 18px 20px; }
.tb-stat__num {
  display: block;
  font-family: var(--font-m);
  font-size: clamp(21px, 2.4vw, 27px);
  font-weight: 600;
  color: #fff;
}
.tb-stat__lab { display: block; margin-top: 4px; font-size: 13.5px; color: var(--text-mute); }

/* ══════════════════════════════════════════════════════════
   ШАГИ
   ══════════════════════════════════════════════════════════ */
.tb-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; max-width: 1080px; }
.tb-steps li {
  position: relative;
  counter-increment: step;
  padding: 0 0 22px 52px;
  border-left: 1px solid var(--line);
  margin-left: 17px;
}
.tb-steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.tb-steps li::before {
  content: counter(step);
  position: absolute;
  left: -18px; top: -2px;
  width: 35px; height: 35px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-family: var(--font-m);
  font-size: 14px;
  color: var(--accent);
}
.tb-steps h3 { margin-bottom: .3em; }
.tb-steps p:last-child { margin-bottom: 0; }

/* ══════════════════════════════════════════════════════════
   СПИСКИ С МАРКЕРАМИ СМЫСЛА
   ══════════════════════════════════════════════════════════ */
.tb-marks { list-style: none; margin: 0 0 1.2em; padding: 0; }
.tb-marks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: .62em;
}
.tb-marks li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 14px; height: 14px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.tb-marks--yes li::before {
  border-color: rgba(53, 201, 92, .5);
  background: var(--ok-wash);
  box-shadow: inset 0 0 0 3px var(--ok);
}
.tb-marks--no li::before {
  border-color: rgba(251, 105, 94, .5);
  background: var(--bad-wash);
  box-shadow: inset 0 0 0 3px var(--bad);
}

/* ══════════════════════════════════════════════════════════
   ТАБЛИЦЫ
   ══════════════════════════════════════════════════════════ */
/* Блоки данных читаются глазом, поэтому у них своя мера — но прижаты они
   влево внутри широкой секции, а не центрируются конвертом. */
.tb-tablewrap { overflow-x: auto; margin: 0 0 1.4em; max-width: 1180px; }
.tb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 560px;
}
.tb-table th, .tb-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.tb-table th {
  font-family: var(--font-b);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: .05em;
  background: var(--bg-deep);
}
.tb-table td.num { font-family: var(--font-m); color: #fff; white-space: nowrap; }
.tb-table tr:last-child td { border-bottom: 0; }
.tb-table tbody tr:hover td { background: rgba(255, 255, 255, .02); }

/* ══════════════════════════════════════════════════════════
   TL;DR, ЗАМЕТКИ, ДАТА
   ══════════════════════════════════════════════════════════ */
.tb-tldr {
  background: var(--surface);
  border: 1px solid rgba(255, 126, 41, .28);
  border-radius: var(--r-card);
  padding: clamp(18px, 2vw, 24px);
  margin: 0 0 clamp(26px, 3vw, 38px);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.tb-tldr__title {
  font-family: var(--font-m);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: .8em;
}
.tb-tldr__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .5em clamp(24px, 3vw, 56px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 30ch), 1fr));
  align-items: start;
}
.tb-tldr__list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: .5em;
  color: var(--text-soft);
}
.tb-tldr__list li:last-child { margin-bottom: 0; }
.tb-tldr__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--accent);
}
.tb-tldr__list strong { color: #fff; }

.tb-note {
  max-width: 92ch;
  padding: 14px 16px;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--text-soft);
  margin: 0 0 1.2em;
}
.tb-note--warn { border-color: rgba(255, 192, 0, .35); background: var(--warn-wash); }
.tb-note--bad  { border-color: rgba(251, 105, 94, .35); background: var(--bad-wash); }
.tb-note--meta { font-size: 13.5px; color: var(--text-mute); }

.tb-checked {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-mute);
  margin: 0 0 1.2em;
}
.tb-checked svg { width: 15px; height: 15px; color: var(--accent); flex: none; }

/* ══════════════════════════════════════════════════════════
   FAQ
   ══════════════════════════════════════════════════════════ */
.tb-faq { display: grid; gap: 10px; max-width: 1080px; }
.tb-faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 4px 18px;
}
.tb-faq details[open] { border-color: rgba(255, 126, 41, .4); }
.tb-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 30px 14px 0;
  position: relative;
  font-family: var(--font-h);
  font-weight: 500;
  font-size: 16.5px;
  color: #fff;
}
.tb-faq summary::-webkit-details-marker { display: none; }
.tb-faq summary::after {
  content: "+";
  position: absolute;
  right: 2px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-m);
  font-size: 19px;
  color: var(--accent);
}
.tb-faq details[open] summary::after { content: "−"; }
.tb-faq__a { padding: 0 0 16px; color: var(--text-soft); }
.tb-faq__a p:last-child { margin-bottom: 0; }

/* ══════════════════════════════════════════════════════════
   КАЛЬКУЛЯТОР
   ══════════════════════════════════════════════════════════ */
.tb-calc {
  max-width: 1180px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(18px, 2.2vw, 28px);
}
.tb-calc__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.tb-calc label {
  display: block;
  font-size: 13.5px;
  color: var(--text-mute);
  margin-bottom: 6px;
}
.tb-calc select, .tb-calc input {
  width: 100%;
  padding: 11px 13px;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-b);
  font-size: 15px;
}
.tb-calc select:focus, .tb-calc input:focus { border-color: var(--accent); outline: none; }
.tb-calc__out {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  overflow: hidden;
}
.tb-calc__cell { background: var(--bg-deep); padding: 16px 18px; }
.tb-calc__val {
  display: block;
  font-family: var(--font-m);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  color: var(--accent);
}
.tb-calc__lab { display: block; margin-top: 4px; font-size: 13px; color: var(--text-mute); }
.tb-calc__hint { margin: 14px 0 0; font-size: 13.5px; color: var(--text-mute); }

/* ══════════════════════════════════════════════════════════
   СХЕМЫ И ШКАЛЫ
   ══════════════════════════════════════════════════════════ */
.tb-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 12px;
  list-style: none;
  margin: 0 0 1.4em;
  padding: 0;
}
.tb-flow li {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 16px 16px 16px 16px;
}
.tb-flow__step {
  display: block;
  font-family: var(--font-m);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 6px;
}
.tb-flow__txt { font-size: 14.5px; color: var(--text-soft); }
.tb-flow strong { display: block; color: #fff; margin-bottom: 4px; font-size: 15.5px; }

.tb-scale { list-style: none; margin: 0 0 1.4em; padding: 0; display: grid; gap: 10px; max-width: 1180px; }
.tb-scale li {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.tb-scale__name { font-size: 14.5px; color: var(--text-soft); }
.tb-scale__track {
  height: 30px;
  border-radius: var(--r-chip);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}
.tb-scale__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--share, 30%);
  background: linear-gradient(90deg, rgba(255, 126, 41, .35), rgba(255, 126, 41, .12));
  border-right: 2px solid var(--accent);
}
.tb-scale__val {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-m);
  font-size: 13px;
  color: var(--text-soft);
}

/* ══════════════════════════════════════════════════════════
   ЗВЁЗДЫ
   ══════════════════════════════════════════════════════════ */
.tb-stars { position: relative; display: inline-block; line-height: 0; white-space: nowrap; }
.tb-stars__bg, .tb-stars__fg { display: inline-flex; gap: 2px; }
.tb-stars__bg { color: #3a4654; }
.tb-stars__fg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: var(--accent);
}
.tb-stars svg { width: var(--star-size, 18px); height: var(--star-size, 18px); fill: currentColor; stroke: none; }

.tb-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 1em;
}
.tb-rating__num {
  font-family: var(--font-m);
  font-size: 30px;
  font-weight: 600;
  color: #fff;
}

/* Критерии оценки */
.tb-crit { list-style: none; margin: 0 0 1.4em; padding: 0; display: grid; gap: 12px; max-width: 720px; }
.tb-crit li { display: grid; grid-template-columns: minmax(0, 1fr) 62px; gap: 12px; align-items: center; }
.tb-crit__bar { grid-column: 1 / -1; height: 4px; border-radius: var(--r-pill); background: var(--line-soft); overflow: hidden; }
.tb-crit__fill { display: block; height: 100%; width: var(--share, 50%); background: var(--accent); border-radius: var(--r-pill); }
.tb-crit__name { font-size: 15px; }
.tb-crit__val { font-family: var(--font-m); font-size: 15px; color: #fff; text-align: right; }

/* ══════════════════════════════════════════════════════════
   ДАЛЬШЕ ПО ТЕМЕ
   ══════════════════════════════════════════════════════════ */
.tb-related {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.tb-related a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
}
.tb-related a:hover { border-color: var(--accent); color: #fff; }
.tb-related svg { width: 17px; height: 17px; color: var(--accent); flex: none; }

/* ══════════════════════════════════════════════════════════
   CTA-ПОЛОСА И ПОДВАЛ
   ══════════════════════════════════════════════════════════ */
.tb-cta-band {
  background: var(--bg-deep);
  border-top: 1px solid var(--line-soft);
  padding: clamp(34px, 4vw, 54px) 0;
}
.tb-cta-band__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.tb-cta-band h2 { margin-bottom: .3em; }
.tb-cta-band p { margin: 0; color: var(--text-soft); max-width: 58ch; }

.tb-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line-soft);
  padding: clamp(34px, 4vw, 54px) 0 40px;
  font-size: 14.5px;
}
.tb-footer__cols {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-soft);
}
.tb-footer h3 {
  font-family: var(--font-m);
  font-size: 12.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-mute);
  margin-bottom: 1em;
}
.tb-footer ul { list-style: none; margin: 0; padding: 0; }
.tb-footer li { margin-bottom: .55em; }
.tb-footer li a { color: var(--text-soft); text-decoration: none; }
.tb-footer li a:hover { color: var(--accent); }
.tb-footer__legal { padding-top: 24px; color: var(--text-mute); font-size: 13.5px; }
.tb-footer__legal p { margin-bottom: .7em; max-width: 96ch; }

/* ══════════════════════════════════════════════════════════
   ПОЯВЛЕНИЕ
   ══════════════════════════════════════════════════════════ */
.tb-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.tb-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .tb-reveal { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════════════════════
   АДАПТАЦИЯ
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .tb-nav a { padding: 7px 8px; font-size: 14.5px; }
}

@media (max-width: 940px) {
  .tb-hero__in { grid-template-columns: minmax(0, 1fr); }
  .tb-split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .tb-burger { display: inline-flex; }
  .tb-nav {
    position: absolute;
    inset: 66px 0 auto;
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 12px 16px 18px;
    margin: 0;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--line);
  }
  .tb-nav.is-open { display: flex; }
  .tb-nav a { padding: 11px 12px; font-size: 16px; }
  .tb-header__in { justify-content: space-between; }
  .tb-header__cta { margin-left: auto; }
  .tb-header__cta .tb-btn { padding: 9px 14px; font-size: 14px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .tb-wrap { width: min(100% - 24px, var(--wrap)); }
  .tb-logo { font-size: 14.5px; }
  .tb-logo__mark { width: 28px; height: 28px; }
  .tb-scale li { grid-template-columns: 1fr; gap: 6px; }
  .tb-crit li { grid-template-columns: minmax(0, 1fr) 54px; }
  .tb-steps li { padding-left: 44px; }
  .tb-cta-band__in { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .tb-logo span:not(.tb-logo__mark) { display: none; }
  .tb-header__cta .tb-btn { padding: 8px 12px; font-size: 13.5px; }
}
