/* hero10 — сценарий в 10 актах. Поверх /hero1/v6.css.
   Классы с префиксом b- — блоки, перенесённые из системы hero2–hero4 и сборки (/assembly/),
   и новые блоки hero10. С hero1/v6.css не пересекаются. */
:root { --b-gut: 0px; --b-section-y: 48px; --b-head-gap: 32px; --b-hover: #f0f0f0;
  --ph-bg: #fff4d6; --ph-ink: #7a4a00; --ph-line: #b07800; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --b-hover: #1a1a1a; --ph-bg: #2a2110; --ph-ink: #f2c66d; --ph-line: #c9971f; }
}
:root[data-theme="dark"] { --b-hover: #1a1a1a; --ph-bg: #2a2110; --ph-ink: #f2c66d; --ph-line: #c9971f; }
@media (min-width: 768px) { :root { --b-gut: 16px; --b-section-y: 72px; --b-head-gap: 48px; } }
@media (min-width: 1024px) { :root { --b-section-y: 96px; --b-head-gap: 56px; } }

html, body { overflow-x: clip; }

/* ---------- Каркас акта ---------- */
.b-sec { scroll-margin-top: var(--header-h); }
.b-sec > .b-wrap { position: relative; max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto;
  padding: var(--b-section-y) var(--pad); }
.b-sec > .b-wrap::before { content: ""; position: absolute; left: var(--pad); right: var(--pad); top: 0;
  border-top: 1px dotted var(--rule-strong); }
.b-sec:first-of-type > .b-wrap::before { content: none; }
.b-head { margin-bottom: var(--b-head-gap); }
@media (min-width: 960px) {
  .b-head--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; align-items: end; }
  .b-head--split .b-lead { margin-top: 0; }
}

.b-eyebrow { display: flex; align-items: center; gap: 14px; margin: 0;
  font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-secondary); }
.b-eyebrow__code { display: flex; gap: 3px; height: 10px; align-items: flex-end; flex: none; }
.b-eyebrow__code i { display: block; width: 4px; height: 10px; background: var(--text); }
.b-eyebrow__code i:nth-child(2) { width: 10px; }
.b-eyebrow__code i:nth-child(4) { width: 6px; }
.b-eyebrow__code i:nth-child(5) { width: 8px; }
.b-eyebrow__paren { color: var(--text-tertiary); }

.b-h2 { margin: 16px 0 0; max-width: 22ch; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(24px, 0.9rem + 2vw, 44px); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
@media (min-width: 1130px) { .b-h2 { letter-spacing: -0.03em; } }
.b-h4 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; }
@media (min-width: 1024px) { .b-h4 { font-size: 18px; } }
.b-lead { margin: 16px 0 0; max-width: 38em; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.55;
  color: var(--text-secondary); }
.b-lead b { color: var(--text); font-weight: 600; }
.b-muted { color: var(--text-secondary); }
.b-small { font-size: 14px; }
.b-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Крупная реплика-поворот (как .turn hero1 и .a-turn сборки) */
.b-turn { margin: 0; max-width: 32em; font: 500 clamp(19px, 1.9vw, 26px)/1.35 var(--font-display);
  letter-spacing: -0.015em; text-wrap: pretty; }
.b-turn span { color: var(--text-secondary); }
.b-turn--head { margin-top: 20px; color: var(--accent-ink); }
.b-after { margin-top: 40px; display: grid; gap: 4px; }
@media (min-width: 768px) { .b-after { margin-top: 56px; padding-inline: var(--b-gut); } }
.b-block { margin-top: 56px; }
@media (min-width: 768px) { .b-block { margin-top: 80px; } }
.b-block__title { margin-bottom: 16px; }

.b-rows { list-style: none; margin: 0; padding: 0; border-bottom: 1px dotted var(--rule-strong); }
.b-row { position: relative; border-top: 1px dotted var(--rule-strong); padding-block: 20px; }
.b-row::before { content: ""; position: absolute; inset: 0 -16px; z-index: -1;
  background: var(--b-hover); opacity: 0; transition: opacity 0.2s var(--ease); }
@media (hover: hover) { .b-row:hover::before { opacity: 1; } }
.b-row p { margin: 0; }
.b-sit__idx { font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1;
  color: var(--text-tertiary); font-variant-numeric: tabular-nums; }

/* ---------- Акт 1 · Пролог ---------- */
.b-prolog > .b-wrap { padding-top: 32px; }
.b-prolog__grid { display: grid; gap: 40px; }
.b-prolog__grid > * { min-width: 0; }
.b-prolog__kicker { margin: 28px 0 16px; }
.b-prolog .h1 { font-size: clamp(30px, 4vw, 56px); max-width: 15em; }
.b-prolog__cta { margin-top: 28px; }
.b-prolog__cta .btn { text-align: left; line-height: 1.25; }
.b-sym { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; row-gap: 6px; }
.b-sym .b-sit__idx { grid-row: span 2; padding-top: 2px; }
.b-sym__title { grid-column: 2; }
.b-sym__text { grid-column: 2; color: var(--text-secondary); line-height: 1.55; }
@media (min-width: 1024px) {
  .b-prolog > .b-wrap { padding-top: 56px; min-height: calc(100svh - var(--header-h)); display: grid; align-content: center; }
  .b-prolog__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 72px; align-items: center; }
}

/* ---------- Акт 2 · Три объяснения ---------- */
.b-quotes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 768px) { .b-quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.b-quote { position: relative; padding: 20px 20px 24px; background: var(--surface); border: 1px solid var(--rule-strong);
  border-top: 3px solid var(--c); }
@media (min-width: 1024px) { .b-quote { padding: 28px 28px 36px; } }
.b-quote__who { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary); }
.b-quote__who::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.b-quote__say { margin: 14px 0 0; font: 500 clamp(20px, 2vw, 28px)/1.25 var(--font-display); letter-spacing: -0.02em;
  text-wrap: balance; }

/* ---------- Акт 3 · Попытки ---------- */
.b-tries { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.b-tries li { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--rule-strong); background: var(--surface);
  font: 500 clamp(15px, 1.2vw, 18px)/1.3 var(--font-display); letter-spacing: -0.01em; }
.b-tools .b-row { display: grid; gap: 4px; }
.b-tools__name { font-weight: 600; }
@media (max-width: 1023px) { .b-tools__name { display: none; } }
@media (min-width: 1024px) {
  .b-tools .b-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .b-tools .b-row > * { padding-inline: var(--b-gut); }
  .b-tools .b-row > p { grid-column: 2 / span 3; max-width: 64ch; }
}

/* ---------- Акт 4 · Источники и вопросы ---------- */
.b-src { display: grid; gap: 28px; }
@media (min-width: 768px) { .b-src { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; } }
.b-src__q { border-top: 2px solid var(--text); padding-top: 16px; display: grid; gap: 10px; align-content: start; }
.b-src__q p { margin: 0; line-height: 1.55; }
@media (min-width: 768px) { .b-src__q { margin-inline: var(--b-gut); } }
.b-src__sign { width: 40px; height: 40px; }
.b-src__no { font-size: 13px; color: var(--text-tertiary); }
.b-src__name { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; }
.b-qs .b-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; align-items: baseline; padding-block: 16px; }
.b-qs__idx { font: 500 14px/1 var(--font-display); color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
.b-qs p { font: 500 clamp(17px, 1.5vw, 21px)/1.35 var(--font-display); letter-spacing: -0.01em; }
.b-shows .b-lead { margin-top: 20px; }

/* ---------- Акт 5 · Инструмент ---------- */
.b-tool { display: grid; gap: 32px; }
.b-tool > * { min-width: 0; }
.b-tool__card { grid-area: auto; } /* v6.css задаёт .card { grid-area: card } для первого экрана hero1 */
@media (min-width: 1024px) {
  .b-tool { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); column-gap: 64px; align-items: center; }
}
.b-compare { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--rule-strong); }
.b-compare p { margin: 8px 0 0; max-width: 38em; color: var(--text-secondary); line-height: 1.55; }
.b-frags { margin-top: 48px; }
@media (min-width: 768px) { .b-frags { margin-top: 64px; } }

/* ---------- Акт 6 · Доверие ---------- */
.b-trust { display: grid; gap: 40px; }
@media (min-width: 960px) { .b-trust { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; } }
.b-measured { margin: 0; padding-block: 14px; line-height: 1.55; }
.b-measured--a { border-top: 1px solid var(--text); }
.b-measured--b { border-top: 1px dashed var(--text-secondary); color: var(--text-secondary); }
.b-rules { list-style: none; margin: 0; padding: 0; }
.b-rules li { padding-block: 14px; border-top: 1px solid var(--text); line-height: 1.55; }
.b-rules b { font-weight: 600; }
.b-rules--soft li { border-top-style: dashed; border-top-color: var(--text-secondary); }
.b-trust__item .b-small { margin: 4px 0 0; padding-top: 14px; border-top: 1px dotted var(--rule-strong); }

.b-author { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 20px; align-items: start;
  margin-top: 56px; padding: 20px; background: var(--surface); border: 1px solid var(--rule-strong); }
.b-author__photo { width: 112px; height: 148px; object-fit: cover; object-position: 50% 12%; background: var(--surface-alt); }
.b-author__name { margin-top: 12px; }
.b-author__facts { margin-top: 16px; grid-area: auto; } /* v6.css задаёт .author__facts { grid-area: facts } */
@media (max-width: 599px) {
  .b-author__body { display: contents; }
  .b-author .h3 { grid-column: 1 / -1; grid-row: 1; margin-bottom: 16px; }
  .b-author__photo { grid-column: 1; grid-row: 2 / span 2; }
  .b-author__name, .b-author .author__role { grid-column: 2; }
  .b-author__name { grid-row: 2; align-self: end; margin: 0; }
  .b-author .author__role { grid-row: 3; align-self: start; }
  .b-author__facts { grid-column: 1 / -1; grid-row: 4; }
}
@media (min-width: 600px) { .b-author { grid-template-columns: 160px minmax(0, 1fr); column-gap: 32px; }
  .b-author__photo { width: 160px; height: 212px; } }
@media (min-width: 960px) { .b-author { margin-top: 72px; padding: 32px; grid-template-columns: 200px minmax(0, 1fr); column-gap: 48px; }
  .b-author__photo { width: 200px; height: 260px; } }

/* ---------- Акт 7 · Эксперимент ---------- */
.b-flag { display: inline-block; margin-left: 4px; padding: 0 8px; vertical-align: 2px;
  font: 600 12px/1.6 var(--font-text); letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-tertiary); border: 1px solid var(--rule-strong); }
.b-exp { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 768px) { .b-exp { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); } }
.b-exp__col { padding: 20px; border: 1px solid var(--rule-strong); background: var(--surface); display: grid; gap: 10px; align-content: start; }
@media (min-width: 768px) { .b-exp__col { border: 0; border-left: 1px solid var(--rule-strong); padding: 28px 24px; }
  .b-exp__col:first-child { border-left: 0; } }
.b-exp__who { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.b-exp__who b { margin-left: auto; font: 500 15px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.b-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.b-exp__say { margin: 0; font: 500 clamp(18px, 1.6vw, 22px)/1.3 var(--font-display); letter-spacing: -0.015em; }
.b-exp__note { margin: 0; color: var(--text-secondary); line-height: 1.5; }
.b-exp__out { display: grid; gap: 12px; margin-top: 24px; }
@media (min-width: 768px) { .b-exp__out { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; } }
.b-exp__panel { margin: 0; }
.b-exp__panel p { margin: 0; font-size: 16px; line-height: 1.5; }
.b-exp__panel--try { padding: 16px 16px 16px 18px; border-left: 3px solid var(--text); background: var(--surface); }
.b-exp__label { color: var(--text); }

/* ---------- Акт 8 · Перелом ---------- */
.b-decisions { margin-top: 0; }

/* ---------- Акт 9 · Было → станет (из сборки) ---------- */
.b-ba { width: 100%; border-collapse: collapse; border-bottom: 1px dotted var(--rule-strong); }
.b-ba th, .b-ba td { text-align: left; vertical-align: top; }
.b-ba thead th { padding: 0 0 12px; font-size: 12px; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-secondary); }
.b-ba tbody tr { border-top: 1px dotted var(--rule-strong); }
.b-ba tbody td { padding: 16px 0; line-height: 1.5; }
.b-ba__was { color: var(--text-secondary); }
.b-ba__now { font-weight: 500; }
@media (max-width: 767px) {
  .b-ba thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .b-ba tbody td { display: block; padding: 4px 0; }
  .b-ba tbody td:first-child { padding-top: 16px; }
  .b-ba tbody td:last-child { padding-bottom: 16px; }
  .b-ba tbody td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 500;
    letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-tertiary); }
}
@media (min-width: 768px) {
  .b-ba th, .b-ba td { padding-inline: var(--b-gut); width: 50%; }
  .b-ba tbody td { font-size: 17px; }
  .b-ba__now { position: relative; }
  .b-ba__now::before { content: "→"; position: absolute; left: calc(var(--b-gut) * -1 - 0.5em); color: var(--accent-ink); }
}
.b-bound { margin-top: 24px; border-left: 2px solid var(--text); padding-left: 20px; }

/* ---------- Акт 10 · Эпилог ---------- */
.b-price__from { font-size: 0.4em; letter-spacing: 0; margin-right: 0.25em; }
.b-epilog .faq { align-items: start; }
.b-epilog .apply { margin-top: 0; }
.b-hint { margin: 0; font-size: 14px; color: var(--ink-2); }
.chip { line-height: 1.3; padding-block: 8px; }


/* Акцент в заголовке пролога: подчёркивание акцентным цветом */
.h1 .b-mark { display: inline; text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 0.05em; text-underline-offset: 0.16em; text-decoration-skip-ink: none; }
