/* ==========================================================================
   Страница-презентация «Удержание водителей» - webinar-uderzhanie.html
   ТРЕТЬЯ тема сайта. Приём тот же, что у accelerator.css: базовая style.css
   даёт компоненты (сетка, кнопки, .reveal), а здесь внутри body.talk
   переопределяются ТОКЕНЫ, ниже - только собственные блоки страницы.
   Подключать строго ПОСЛЕ style.css.

   Смысл палитры сохранён от сайта: бирюза = система и доверие, ЯНТАРЬ ТОЛЬКО
   для денег, которые парк теряет. Тёмный фон выбран под показ в эфире: на
   сжатом видео светлый текст на тёмном читается лучше, а фото fal.ai не
   выгорают. Цвета меток диаграмм (#26A594 / #CC7A1F) прогнаны через
   валидатор палитры на поверхности #152124 - все проверки PASS.
   ========================================================================== */

body.talk {
  --paper: #0F1A1C;
  --surface: #152124;
  --surface-2: #121D20;

  --ink: #EDF2F0;
  --ink-soft: #A7B6B3;
  --ink-faint: #7A8B88;

  --line: rgba(180, 215, 208, .14);
  --line-soft: rgba(180, 215, 208, .08);

  /* Текстовый акцент светлее меток: ему нужен контраст текста, а не заливки */
  --teal: #3CC2B0;
  --teal-strong: #26A594;
  --teal-soft: rgba(38, 165, 148, .16);

  --amber: #E9A24A;
  --amber-mark: #CC7A1F;
  --amber-soft: rgba(204, 122, 31, .16);

  --danger: #FF7A6B;
  --danger-soft: rgba(255, 122, 107, .14);

  --shadow: 0 2px 6px rgba(0, 0, 0, .35);
  --shadow-lg: 0 18px 50px -20px rgba(0, 0, 0, .8);

  --bar-h: 58px;
  --container: 1240px;

  background: var(--paper);
  color: var(--ink);
  font-size: 19px;
}

html:has(body.talk) { scroll-padding-top: var(--bar-h, 58px); }

body.talk ::selection { background: var(--teal-strong); color: #06201C; }
body.talk a { color: var(--teal); }
body.talk .btn-primary { background: var(--teal-strong); color: #06201C; box-shadow: none; }
body.talk .btn-primary:hover { background: var(--teal); color: #06201C; }
body.talk .btn-ghost { color: var(--ink); border-color: var(--line); }
body.talk .btn-ghost:hover { background: var(--surface); color: var(--ink); }

/* --- Верхняя панель ведущего ------------------------------------------- */
.tbar {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--bar-h);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.tbar .container { height: 100%; display: flex; align-items: center; gap: 18px; }
.tbar .brand-logo { height: 30px; filter: brightness(0) invert(1); opacity: .92; }
.tbar-part { font-size: 14px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.tbar-count { font-family: var(--mono); font-size: 14px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.tbar-btn {
  font: inherit; font-size: 14px; color: var(--ink); background: transparent;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer;
}
.tbar-btn:hover { background: var(--surface); }
body.talk a.tbar-btn { color: var(--ink); text-decoration: none; }
.tbar-btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.tbar-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--teal-strong); transition: width .3s ease; }

/* --- Экран ---------------------------------------------------------------- */
.slide {
  position: relative;
  min-height: 100svh;
  padding-block: calc(var(--bar-h) + clamp(28px, 5vh, 64px)) clamp(40px, 7vh, 88px);
  display: flex; flex-direction: column; justify-content: center;
  border-bottom: 1px solid var(--line-soft);
}
.slide > .container { width: 100%; }
.slide.alt { background: var(--surface-2); }

.slide h2 { font-size: clamp(30px, 4vw, 54px); letter-spacing: -.03em; margin-bottom: .45em; max-width: 22ch; }
.slide h2.wide { max-width: 30ch; }
.slide h3 { font-size: clamp(19px, 1.7vw, 24px); color: var(--ink); }
.slide p, .slide li { color: var(--ink-soft); }
.slide strong, .slide b { color: var(--ink); font-weight: 650; }
.slide .lead { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.5; color: var(--ink-soft); max-width: 60ch; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal);
}
.kicker .num { font-family: var(--mono); color: var(--ink-faint); letter-spacing: 0; }

.money { color: var(--amber); }
.note { font-size: 14px; color: var(--ink-faint); margin-top: 22px; }
.note b { color: var(--ink-soft); font-weight: 600; }
.src { display: block; font-size: 13.5px; color: var(--ink-faint); margin-top: 10px; line-height: 1.45; }
.tag-est {
  display: inline-block; vertical-align: middle; margin-left: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--amber); border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent);
  border-radius: 999px; padding: 1px 9px;
}

/* --- Обложка части: фото fal.ai на весь экран ---------------------------- */
.slide.cover { justify-content: flex-end; overflow: hidden; border-bottom: 0; background: #0A1214; }
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide.cover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 18, 20, .55) 0%, rgba(10, 18, 20, 0) 30%),
    linear-gradient(0deg, rgba(10, 18, 20, .96) 4%, rgba(10, 18, 20, .55) 42%, rgba(10, 18, 20, .05) 72%);
}
.slide.cover > .container { position: relative; z-index: 1; }
.cover-part { font-family: var(--mono); font-size: 15px; color: var(--teal); letter-spacing: .06em; margin-bottom: 14px; }
.slide.cover h1, .slide.cover h2 { color: #fff; max-width: 20ch; text-shadow: 0 2px 30px rgba(0, 0, 0, .5); }
.slide.cover h1 { font-size: clamp(38px, 6.2vw, 88px); line-height: 1.02; }
.slide.cover h2 { font-size: clamp(34px, 5vw, 72px); line-height: 1.05; }
.cover-sub { font-size: clamp(18px, 1.8vw, 24px); color: #D5DFDC; max-width: 52ch; margin-top: 10px; }
.cover-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 28px; font-size: 16px; color: #C1CECB; }
.cover-meta b { color: #fff; }

/* --- Разбивка текст + фото ---------------------------------------------- */
.split { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr .95fr; } .split.flip > :first-child { order: 2; } }
.photo { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; background: var(--surface); box-shadow: var(--shadow-lg); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- Крупные числа ------------------------------------------------------- */
.stats { display: grid; gap: 20px; margin-top: 12px; }
@media (min-width: 820px) { .stats.three { grid-template-columns: repeat(3, 1fr); } .stats.two { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 2.6vw, 34px); }
.stat-value { font-size: clamp(48px, 6vw, 84px); font-weight: 700; line-height: 1; letter-spacing: -.04em; color: var(--ink); white-space: nowrap; }
/* Внутри половины экрана крупное число не должно ломать строку */
.split .stats.two .stat-value { font-size: clamp(38px, 3.8vw, 60px); }
.split .stats.two .stat { padding: 22px; }
.stat-value small { font-size: .42em; letter-spacing: -.01em; font-weight: 600; margin-left: 4px; }
.stat-label { margin-top: 14px; font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-soft); line-height: 1.45; }

/* --- Карточки и списки --------------------------------------------------- */
.cards { display: grid; gap: 16px; margin-top: 8px; }
@media (min-width: 720px) { .cards.two { grid-template-columns: repeat(2, 1fr); } .cards.three, .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .cards.three { grid-template-columns: repeat(3, 1fr); } .cards.four { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 17px; line-height: 1.55; }
.card .big { display: block; font-size: clamp(30px, 3vw, 42px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; margin-bottom: 8px; color: var(--ink); }
.card.bad { border-color: color-mix(in srgb, var(--danger) 30%, var(--line)); }
.card.good { border-color: color-mix(in srgb, var(--teal) 35%, var(--line)); }
.card-n { font-family: var(--mono); font-size: 14px; color: var(--ink-faint); display: block; margin-bottom: 6px; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 30px; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 10px; height: 10px; border-radius: 50%; background: var(--teal-strong); }
.ticks.x li::before { background: transparent; border: 2px solid var(--danger); width: 11px; height: 11px; }

.numlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: n; }
@media (min-width: 900px) { .numlist.cols { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.numlist li { counter-increment: n; display: grid; grid-template-columns: 44px 1fr; align-items: baseline; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45; }
.numlist li::before { content: counter(n); font-family: var(--mono); font-size: 15px; color: var(--teal); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips li { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 15px; font-size: 16px; color: var(--ink); }
.photo.wide { aspect-ratio: 16 / 9; }

/* --- Цитата -------------------------------------------------------------- */
.quote { margin: 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--teal-strong); max-width: 46ch; }
.quote p { font-size: clamp(22px, 2.3vw, 32px); line-height: 1.35; color: var(--ink); letter-spacing: -.01em; }
.quote cite { display: block; margin-top: 12px; font-style: normal; font-size: 15px; color: var(--ink-faint); }
.quote.sm p { font-size: clamp(19px, 1.7vw, 24px); }
.quotes { display: grid; gap: 22px; }

/* --- Формула ------------------------------------------------------------- */
.formula {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; font-size: clamp(18px, 1.8vw, 24px); color: var(--ink);
}
.formula .op { color: var(--ink-faint); font-family: var(--mono); }
.formula .term { border-bottom: 2px solid var(--amber-mark); padding-bottom: 2px; }
.formula .eq { color: var(--amber); font-weight: 700; }

/* --- Горизонтальные столбцы (один ряд данных, подписи на концах) --------- */
.hbars { display: grid; gap: 12px; margin: 6px 0 0; padding: 0; list-style: none; }
.hbar { display: grid; grid-template-columns: minmax(150px, 38%) 1fr; gap: 16px; align-items: center; }
.hbar-label { font-size: 16px; color: var(--ink-soft); line-height: 1.3; }
.hbar-track { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hbar-fill {
  height: 22px; min-width: 6px; border-radius: 0 4px 4px 0;
  background: color-mix(in srgb, var(--teal-strong) 45%, var(--surface));
  width: calc(var(--v) * 1%); transition: width .8s ease;
}
.hbar.hl .hbar-fill { background: var(--teal-strong); }
.hbar.hl .hbar-label { color: var(--ink); font-weight: 600; }
.hbars.money .hbar-fill { background: var(--amber-mark); }
.hbar-val { font-family: var(--mono); font-size: 15px; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hbars:not([data-visible="true"]) .hbar-fill { width: 0; }
@media (max-width: 560px) { .hbar { grid-template-columns: 1fr; gap: 6px; } }

/* --- Демо-кривая когорты ------------------------------------------------- */
.chart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 14px; }
.chart-title { font-size: 16px; color: var(--ink); margin: 0 0 4px; font-weight: 600; }
.chart-sub { font-size: 14px; color: var(--ink-faint); margin: 0 0 10px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
/* Размеры в единицах viewBox (640): при ширине графика ~540px это 13-15px на экране */
.chart .axis text, .chart .lbl { fill: var(--ink-faint); font-size: 16px; font-family: var(--sans); }
.chart .lbl-strong { fill: var(--ink); font-size: 17px; font-weight: 600; font-family: var(--sans); }
.chart .line { fill: none; stroke: var(--teal-strong); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--teal-strong); opacity: .1; }
.chart .dot { fill: var(--teal-strong); stroke: var(--surface); stroke-width: 2; }
.chart .ref { stroke: var(--amber-mark); stroke-width: 1; }
.chart .hit { fill: transparent; cursor: default; }
.chart-tip {
  position: absolute; pointer-events: none; z-index: 5; transform: translate(-50%, -120%);
  background: #0A1214; color: var(--ink); border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 10px; font-size: 13px; white-space: nowrap;
}

/* --- Карта пути: 13 точек ------------------------------------------------ */
.journey { display: grid; gap: 18px; margin-top: 8px; }
@media (min-width: 980px) { .journey { grid-template-columns: 5fr 6fr 2fr; } }
.phase { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 20px; }
.phase-name { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.phase ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.phase li { display: grid; grid-template-columns: 34px 1fr; align-items: center; font-size: 16.5px; color: var(--ink); line-height: 1.3; }
.phase li span { font-family: var(--mono); font-size: 12px; color: #06201C; background: var(--teal-strong); border-radius: 50%; width: 26px; height: 26px; display: grid; place-items: center; }

/* Детальная карточка точки */
.tp { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.tp-head { display: flex; align-items: center; gap: 12px; }
.tp-head .n { flex: none; font-family: var(--mono); color: #06201C; background: var(--teal-strong); border-radius: 50%; width: 32px; height: 32px; display: grid; place-items: center; font-size: 14px; }
.tp-head h3 { margin: 0; }
.tp-row { display: grid; gap: 4px; }
.tp-row .k { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.tp-row.broke .k { color: var(--danger); }
.tp-row.std .k { color: var(--teal); }
.tp-row p { font-size: 16.5px; line-height: 1.5; margin: 0; }

/* --- Окно уведомления о сдаче -------------------------------------------- */
.window { display: grid; gap: 14px; }
@media (min-width: 760px) { .window { grid-template-columns: repeat(3, 1fr); } }
.window .card { text-align: left; }
.window .card.best { border-color: color-mix(in srgb, var(--teal) 55%, var(--line)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--teal) 25%, transparent); }

/* --- Цепочка системы ----------------------------------------------------- */
.chain { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 900px) { .chain { grid-template-columns: repeat(6, 1fr); gap: 0; } }
.chain li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; }
@media (min-width: 900px) {
  .chain li { margin-right: 22px; }
  .chain li:not(:last-child)::after { content: "→"; position: absolute; right: -20px; top: 50%; transform: translateY(-50%); color: var(--teal); font-size: 18px; }
}
.chain b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
.chain span { font-size: 14.5px; color: var(--ink-soft); line-height: 1.4; display: block; }

/* --- План по дням -------------------------------------------------------- */
.plan { display: grid; gap: 14px; }
@media (min-width: 900px) { .plan { grid-template-columns: repeat(4, 1fr); } }
.plan .card h3 { color: var(--teal); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.plan .card ul { margin: 0; padding-left: 18px; }
.plan .card li { font-size: 16.5px; margin-bottom: 6px; }
.result { margin-top: 20px; background: var(--teal-soft); border: 1px solid color-mix(in srgb, var(--teal) 40%, transparent); border-radius: var(--radius); padding: 18px 22px; color: var(--ink); font-size: clamp(18px, 1.6vw, 22px); }

/* --- Три слоя сервиса ---------------------------------------------------- */
.layers { display: grid; gap: 12px; }
.layer { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.layer .lvl { font-family: var(--mono); font-size: 28px; color: var(--teal); line-height: 1; }
.layer h3 { margin-bottom: 4px; }
.layer p { margin: 0; font-size: 17px; }

/* Подзаголовок группы столбцов, когда в одном графике две разные шкалы */
.chart .hbars-group { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); margin: 14px 0 8px; }

/* --- Голос водителя: «гантели» частоты и важности ------------------------ */
.dumbbell { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 9px; }
.db { display: grid; grid-template-columns: minmax(150px, 38%) 1fr; gap: 16px; align-items: center; }
.db-label { font-size: 16px; color: var(--ink-soft); line-height: 1.3; }
/* Шкала 1-10: значение v стоит на v*10% ширины дорожки. Отступ справа держит
   точку «10» внутри карточки. min/max - потому что важность бывает ниже частоты. */
.db-track { position: relative; height: 22px; margin-right: 10px; }
.db-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed var(--line); }
.db-bar {
  position: absolute; top: 50%; height: 4px; transform: translateY(-50%); border-radius: 2px;
  left: calc(min(var(--f), var(--i)) * 10%);
  width: calc((max(var(--f), var(--i)) - min(var(--f), var(--i))) * 10%);
  background: color-mix(in srgb, var(--teal-strong) 45%, var(--surface));
}
.db-f, .db-i { position: absolute; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); }
/* Полое кольцо - частота, заливка - важность. При равных значениях точка
   ложится в центр кольца. */
.db-f { left: calc(var(--f) * 10%); width: 20px; height: 20px; border: 2px solid var(--teal); background: var(--surface); z-index: 1; }
.db-i { left: calc(var(--i) * 10%); width: 12px; height: 12px; background: var(--teal-strong); z-index: 2; }
.db-axis .db-track::before { display: none; }
.db-axis .db-track span { position: absolute; top: 0; transform: translateX(-50%); font-family: var(--mono); font-size: 13px; color: var(--ink-faint); }
.db-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.db-key { display: inline-block; vertical-align: -2px; margin-right: 7px; border-radius: 50%; }
.db-key.f { width: 14px; height: 14px; border: 2px solid var(--teal); }
.db-key.i { width: 11px; height: 11px; background: var(--teal-strong); }
@media (max-width: 560px) { .db { grid-template-columns: 1fr; gap: 6px; } }

.card.voice { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.card .voice-link { margin: 0; font-size: 14px; color: var(--teal); }

/* --- Пирамида потребностей: пять этажей, трапеции через clip-path -------- */
/* --lvl: 1 - нижний, самый широкий этаж. Каждый этаж уже нижнего на 6% с
   каждой стороны; боковой отступ текста следует за скосом. */
.pyramid { display: grid; gap: 8px; margin-top: 6px; }
.pyr-row { display: grid; grid-template-columns: minmax(280px, 42%) 1fr; gap: 28px; align-items: center; }
.pyr-shape {
  position: relative; min-height: 78px; display: flex; align-items: center; justify-content: center;
  gap: 10px; padding-block: 8px; padding-inline: calc((var(--lvl) - .5) * 6%); text-align: center;
}
.pyr-shape::before {
  content: ""; position: absolute; inset: 0;
  background: color-mix(in srgb, var(--teal-strong) calc(78% - var(--lvl) * 11%), var(--surface));
  clip-path: polygon(calc(var(--lvl) * 6%) 0, calc(100% - var(--lvl) * 6%) 0, calc(100% - (var(--lvl) - 1) * 6%) 100%, calc((var(--lvl) - 1) * 6%) 100%);
}
.pyr-shape > * { position: relative; }
.pyr-n { font-family: var(--mono); font-size: 14px; color: #C9E6E0; }
.pyr-shape b { font-size: clamp(16px, 1.4vw, 19px); color: #fff; line-height: 1.2; }
.pyr-text p { margin: 0; font-size: 16px; line-height: 1.45; }
.pyramid .pyr-voice { margin-top: 4px; font-size: 14.5px; color: var(--teal); }
@media (max-width: 760px) {
  .pyr-row { grid-template-columns: 1fr; gap: 8px; }
  .pyr-shape { min-height: 56px; }
}

/* --- Доска достижений: макет карточки водителя и дорожка 90 дней --------- */
.board { display: grid; gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (min-width: 900px) { .board { grid-template-columns: .95fr 1.05fr; } }
.board-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; box-shadow: var(--shadow-lg); }
.bc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
.bc-demo { font-size: 11.5px; color: var(--ink-faint); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.board .bc-day { margin: 6px 0 10px; font-size: 18px; color: var(--ink-soft); }
.bc-day b { font-size: 44px; letter-spacing: -.03em; color: var(--ink); margin-right: 6px; }
.bc-progress { position: relative; height: 10px; margin-inline: 7px; border-radius: 999px; background: var(--line); }
.bc-fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--p) * 1%); background: var(--teal-strong); border-radius: 999px; }
.bc-progress i { position: absolute; top: 50%; width: 8px; height: 8px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--ink-faint); }
.bc-progress i.big { width: 14px; height: 14px; background: var(--paper); border: 2px solid var(--teal); }
.board .bc-next { margin: 12px 0 14px; font-size: 15px; }
.bc-branches { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bc-branches li { display: grid; grid-template-columns: 1fr 96px 92px; gap: 10px; align-items: center; font-size: 14.5px; line-height: 1.3; color: var(--ink-soft); }
.bc-branches b { font-family: var(--mono); font-size: 13.5px; color: var(--ink); font-weight: 500; white-space: nowrap; text-align: right; }
.bc-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bc-bar i { display: block; height: 100%; width: calc(var(--p) * 1%); background: color-mix(in srgb, var(--teal-strong) 60%, var(--surface)); }
.bc-bar.done i { background: var(--teal-strong); }
.bc-badges { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.bc-badges li { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; border: 1px dashed var(--line); color: var(--ink-faint); }
.bc-badges li.got { border-style: solid; border-color: color-mix(in srgb, var(--teal) 45%, transparent); color: var(--ink); background: var(--teal-soft); }
.bc-badges li.got::before { content: "✓ "; color: var(--teal); }
.bc-badges li.big { font-weight: 650; }

.board-track { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; position: relative; }
.board-track::before { content: ""; position: absolute; left: 30px; top: 20px; bottom: 20px; width: 2px; background: var(--line); }
.board-track li { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; padding: 6px 12px 6px 6px; border: 1px solid transparent; border-radius: var(--radius); }
.bt-day { position: relative; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 15px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); }
.board-track b { display: block; color: var(--ink); font-size: 17px; }
.board-track p { margin: 2px 0 0; font-size: 15px; line-height: 1.4; }
.board-track li.big { background: var(--teal-soft); border-color: color-mix(in srgb, var(--teal) 40%, transparent); }
.board-track li.big .bt-day { background: var(--teal-strong); color: #06201C; border-color: transparent; font-weight: 700; }

/* --- Текучка в цифрах: столбцы в SVG, формулы, тепловая таблица ---------- */
.chart .cbar { fill: var(--teal-strong); }
.chart .cbar-soft { fill: color-mix(in srgb, var(--teal) 55%, var(--ink)); }
.chart .cbar-soft2 { fill: color-mix(in srgb, var(--teal-strong) 40%, var(--surface)); }
.chart .cbar-neg { fill: color-mix(in srgb, var(--danger) 55%, var(--surface)); }
.chart .cbar-hl { fill: var(--teal); }
.chart .base { stroke: var(--ink-faint); stroke-width: 1; }
.chart .axis-t { fill: var(--ink-soft); font-size: 16px; font-family: var(--sans); }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.sw-bar { background: var(--teal-strong); }
.sw-soft { background: color-mix(in srgb, var(--teal) 55%, var(--ink)); }
.sw-soft2 { background: color-mix(in srgb, var(--teal-strong) 40%, var(--surface)); }
.sw-neg { background: color-mix(in srgb, var(--danger) 55%, var(--surface)); }

.formula-card { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--teal-strong); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 12px; }
.formula-card .fc-name { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.formula-card .fc-eq { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink); }
.formula-card .fc-eq span:not(.op) { border-bottom: 2px solid color-mix(in srgb, var(--teal) 50%, transparent); }
.formula-card .fc-eq .op { font-family: var(--mono); color: var(--ink-faint); }
.formula-card .fc-ex { margin: 6px 0 0; font-size: 15.5px; line-height: 1.45; }

.heat { width: 100%; border-collapse: separate; border-spacing: 3px; font-variant-numeric: tabular-nums; margin-top: 4px; }
.heat th { font-size: 13px; font-weight: 600; color: var(--ink-faint); text-align: center; padding: 4px; }
.heat tbody th { text-align: left; color: var(--ink-soft); font-size: 15px; }
.heat td { text-align: center; font-family: var(--mono); font-size: 14px; color: var(--ink); padding: 9px 4px; border-radius: 5px;
  background: color-mix(in srgb, var(--teal-strong) calc(var(--h, 0) * .85%), var(--surface-2)); }
.heat td.n { background: transparent; color: var(--ink-faint); }
.heat td.empty { background: transparent; color: var(--ink-faint); }

/* --- Экран одной точки контакта: фото + «как ломаем» и «стандарт» -------- */
@media (min-width: 900px) { .split.point { grid-template-columns: .8fr 1.2fr; } .split.point.flip { grid-template-columns: 1.2fr .8fr; } }
.split.point .tp-row { margin-top: 14px; }
.tp-list { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 5px; }
.tp-list li { font-size: clamp(16px, 1.3vw, 18.5px); line-height: 1.45; }
.tp-row.broke .tp-list li::marker { color: var(--danger); }
.tp-row.std .tp-list li::marker { color: var(--teal); }

/* --- Итоговая мысль ------------------------------------------------------ */
.statement { font-size: clamp(30px, 4.2vw, 58px); line-height: 1.15; letter-spacing: -.03em; color: var(--ink); font-weight: 700; max-width: 24ch; text-wrap: balance; }
.statement em { font-style: normal; color: var(--teal); }

/* --- Подсказка клавиш и обзор -------------------------------------------- */
.keyhint {
  position: fixed; right: 18px; bottom: 16px; z-index: 55;
  font-size: 13px; color: var(--ink-faint); background: color-mix(in srgb, var(--paper) 85%, transparent);
  border: 1px solid var(--line-soft); border-radius: 999px; padding: 6px 12px;
  transition: opacity .6s ease;
}
.keyhint kbd { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; margin: 0 2px; }
.keyhint[data-hidden="true"] { opacity: 0; pointer-events: none; }
@media (max-width: 760px) { .keyhint { display: none; } }

.overview {
  position: fixed; inset: 0; z-index: 80; background: rgba(8, 14, 16, .94);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  overflow-y: auto; padding: calc(var(--bar-h) + 20px) 20px 40px;
}
.overview-inner { max-width: var(--container); margin-inline: auto; }
.overview h2 { font-size: 22px; margin-bottom: 18px; }
.overview ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 800px) { .overview ol { grid-template-columns: repeat(3, 1fr); } }
.overview button {
  width: 100%; text-align: left; font: inherit; font-size: 15px; line-height: 1.35; cursor: pointer;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  display: grid; grid-template-columns: 34px 1fr; gap: 6px;
}
.overview button span { font-family: var(--mono); color: var(--ink-faint); font-size: 13px; }
.overview button.cur { border-color: var(--teal); }
.overview button.is-cover { background: transparent; color: var(--teal); font-weight: 600; }
.overview button:hover, .overview button:focus-visible { border-color: var(--teal); outline: none; }

/* --- Узкие экраны: это уже не показ, а чтение ---------------------------- */
@media (max-width: 760px) {
  body.talk { font-size: 17px; }
  .slide { min-height: auto; padding-block: calc(var(--bar-h) + 28px) 48px; }
  .slide.cover { min-height: 78svh; }
  .tbar-part { display: none; }
  #fs-btn { display: none; } /* полный экран нужен ведущему на компьютере */
}
@media (prefers-reduced-motion: reduce) {
  .hbar-fill, .tbar-progress, .keyhint { transition: none; }
}
