/* polish-d (28.11, раунд 2): три ступени заголовков, карточка пути без плашки, офферы, диагноз, кнопки.
   Подключён после polish-c.css. Верх страницы; низ (team, tools, faq, zero, price, apply, футер) ведёт polish-e. */

:root {
  --h-section: round(down, clamp(44px, 5.6vw, 143px), 11px);   /* разделы: 88 на 1600 */
  --h-small: round(down, clamp(32px, 2.9vw, 74px), 2px);       /* малые: 46 на 1600 */
  --h-step: 32px;                                              /* названия шагов пути */
  --h-final: calc((100vw - 2 * var(--pad)) * .0667);           /* финал: ровно по колонке 44–1556 */
  --optic: -.06em;                                             /* пиксельный шрифт: глиф на линию, а не на 6 px правее */
}

/* ---------- 1. заголовки ---------- */
.chapter__title, .price__title, .offers .h2, .path__seen, .path__text .step--intro .step__title { font-size: var(--h-section); line-height: 1.04; }
.tools .chapter__title { font-size: var(--h-section); }
.zero .chapter__title, .faq > .h2 { font-size: var(--h-small); line-height: 1.08; }
.path__text .step:not(.step--intro) .step__title { font-size: var(--h-step); }
.chapter__title, .price__title, .offers .h2, .path__seen, .step__title, .faq > .h2, .foot__big { margin-left: var(--optic); }
.chapter__title { margin-inline: var(--optic) 0; }
.chain__txt h3 { margin-left: 0; }
@media (min-width: 761px) {
  .fin .foot__big { font-size: var(--h-final); line-height: 1; text-align: left; white-space: nowrap; width: 100%; justify-self: stretch; max-width: none; }
  .fin .foot__big span { display: inline-block; width: auto; }
  .fin__head { justify-items: start; text-align: left; }
}
@media (max-width: 760px) {
  .path__text .step--intro .step__title { font-size: 33px; }
  .path__seen { font-size: 40px; }
}

/* ---------- 2. карточка шага и финал пути: без рамки и плашки ---------- */
.path__text .step:not(.step--intro) {
  left: var(--pad); right: var(--pad); width: auto; transform: none;
  grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: baseline;
  border: 0; background: none; text-shadow: none;
}
.path__text .step:not(.step--intro) .step__title { grid-column: 1 / span 6; padding: 0; border: 0; line-height: 1.1; }
.path__text .step:not(.step--intro) .step__text { grid-column: 7 / -1; padding: 0; margin: 0; align-self: baseline; max-width: 34em; }
.path__text::before { content: ""; position: absolute; left: 0; right: 0; bottom: -112px; height: 340px; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, var(--bg) 14%, rgba(var(--bg-rgb), .8) 48%, rgba(var(--bg-rgb), 0)); }
.ticks { left: 0; right: 0; width: auto; transform: none; padding-inline: var(--pad); }
.ticks button::before { background: rgba(243, 241, 236, .38); height: 3px; }
.ticks button::after { height: 3px; }
.path__text .path__outro {
  left: var(--pad); right: var(--pad); width: auto; transform: none; bottom: -24px;
  padding: 0; border: 0; background: none; text-align: left; text-shadow: none;
}
.path__text .path__where, .path__where { margin-inline: 0; margin-top: 18px; }
.path__text .path__cta { margin-top: 26px; }
@media (max-width: 760px) {
  .path__text .step:not(.step--intro) { display: block; }
  .path__text .step:not(.step--intro) .step__title { padding: 0; }
  .path__text .step:not(.step--intro) .step__text { padding: 12px 0 0; }
  .path__text .path__outro { bottom: -8px; }
  .ticks { padding-inline: var(--pad); }
}

/* ---------- 4. офферы: полосы 4 px, одна форма у трёх ---------- */
.offers .keys dt { margin-left: var(--optic); }
.keys dd { max-width: 19em; }
.viz { height: 16px; margin-top: 16px; position: relative; display: block; }
.viz i { position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: rgba(243, 241, 236, .55); }
.viz--dots, .viz--range, .viz--seg { display: block; }
.viz--range::before { content: none; }
.viz--share i, .viz--range i, .viz--pair i { width: auto; }
.viz--share i:first-child { left: 0; background: var(--gold); }
.viz--share i:last-child { right: 0; left: auto; }
.viz--range i { top: 0; height: 4px; background: var(--gold); }
.viz--range::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: rgba(243, 241, 236, .55); z-index: 0; }
.viz--range i { z-index: 1; }
.viz--pair i:first-child { top: 0; background: var(--gold); }
.viz--pair i:last-child { top: 12px; background: rgba(243, 241, 236, .55); }

/* подсказка точки */
.chart__tip { background: var(--panel-fill); color: var(--ink); width: min(340px, calc(100vw - 32px)); max-width: none; padding: 14px 16px; font: 400 14px/1.45 var(--f-text); }
.chart__tip b { color: var(--ink); }

/* чипы-фильтры: заливка на шаг светлее фона, без обводки */
.stats__filter button { height: 40px; padding: 0 16px; border: 0; font: 500 14px/1 var(--f-text); letter-spacing: 0; color: var(--ink-2); background: color-mix(in srgb, var(--ink) 10%, var(--bg)); }
.stats__filter button:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 16%, var(--bg)); }
.stats__filter button[aria-pressed="true"], .stats__filter button[aria-pressed="true"]:hover { background: var(--ink); color: var(--bg); }

/* ---------- 5. диагноз ---------- */
@media (min-width: 761px) {
  .chain__row { align-items: start; padding-block: clamp(28px, 2.6vw, 48px); }
  .chain__art { grid-column: 1 / span 6; font-size: clamp(11px, 1.587vw, 40px); line-height: 1.1; margin-top: 0; translate: 0 calc(var(--lead, 0) * -1lh + var(--art-nudge, 0px)); overflow: visible; }
  .chain__txt { padding-top: 0; }
  .chain__row:last-child { border-bottom: 1px solid var(--rule); }
}

/* ---------- 6. кнопки ---------- */
.btn.btn--primary, .fin .btn.btn--primary, .nav .btn.btn--primary { display: inline-flex; align-items: center; justify-content: center; height: 50px; min-height: 50px; padding: 0 28px; font: 600 14px/1 var(--f-text); letter-spacing: 0; }
.nav .btn.btn--primary { height: 40px; min-height: 40px; padding: 0 22px; }
/* стрелка-подсказка: на тёмной полосе у нижнего края, не поверх знаков сцены */
.opening__copy > .hero__hint { bottom: 0; height: 56px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 12px;
  background: linear-gradient(0deg, var(--bg) 0%, var(--bg) 40%, rgba(var(--bg-rgb), 0)); }
