/* B /avito/razbor/ (26.09.2026): слой поверх инлайн-CSS A, motion.css и общих assets. Только свои классы b-* и точечные
   переопределения; спецификация 93-ITOG-B-2609.md §2 и §8. Радиусы и тени берутся из A, новых не вводим. */

/* Якоря: шапка A не липкая, отступ = её высота (88 px, телефон 65 px). */
html { scroll-padding-top: 0; }
:is(#proof, #method, #prices, #doubts, #contact) { scroll-margin-top: 88px; }

/* ── Экран 1: hero. Слева оффер, справа видимый инструмент #quick-form (93-ITOG §2, п.1). ─────────── */
.hero { min-height: 0; align-items: center; padding-block: 56px 60px; }
.hero-person .trust span { color: var(--dust); padding-inline: 2px; }
.hero .attention-actions { margin-bottom: 0; }
.b-tool.attention-options {
  position: relative; z-index: 2; margin: 0; width: 100%; max-width: 480px; justify-self: end;
  padding: 26px 26px 14px; border: 1px solid var(--rule); border-radius: 16px;
  background: linear-gradient(160deg, #eae1c8e6, #e8e2d080); box-shadow: var(--lift);
}
.b-tool-title { margin: 0 0 18px; font-size: 11px; line-height: 1.5; font-weight: 650; text-transform: uppercase; letter-spacing: .13em; color: var(--pencil); }
.b-tool .quick-form { margin: 0; min-height: 0; max-width: none; }
.b-tool .input-row { box-shadow: none; }
.b-tool .input-row + .field-label { margin-top: 14px; }
.b-tool .field-label { font-size: 13px; }
.b-tool-submit { display: flex; width: 100%; justify-content: center; gap: 10px; margin-top: 16px; min-height: 50px; font-size: 14px; }
.b-tool .form-status:empty { margin: 0; min-height: 0; }
.b-tool .quick-preview { width: 100%; }

/* ── Экран 2: три карточки, одна строка под каждой. ─────────────────────────────────────────────── */
.diagnosis-strip article > span i { font-style: normal; opacity: .6; }
.diagnosis-strip p { font-size: 15px; }

/* ── Экран 3: пруф. Тёмная карточка инструмента + подпись и кнопка рядом (93-ITOG §2, п.3). ─────────── */
.b-proof { padding-block: 24px 72px; }
.b-proof-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 56px; align-items: center; }
.b-proof .proof-stage { margin: 0; padding: 0; }
.b-proof .proof-stage::before, .b-proof .proof-stage::after { content: none; }
.b-proof-side .specimen-caption { margin: 0 0 20px; font-size: 16px; line-height: 1.6; color: var(--pencil); max-width: 340px; }
.b-wb-more { margin: 12px 0 0; padding: 0; border: 0; border-top: 1px solid #ffffff1f; }
.b-wb-more > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0; font-size: 14px; font-weight: 600; color: var(--wb-ink, #e8e2d0); cursor: pointer; }
.b-wb-more > summary::-webkit-details-marker { display: none; }
.b-wb-more > summary::after { content: none; }
.b-wb-more .wb-meaning { margin: 0 0 12px; }
.b-wb-more .wb-meaning p { margin: 0; color: var(--wb-muted, #bcb5a5); }

/* ── Экран 4: как это будет, узел 1·2·3 (90-VOVLECHENIE §3 avito). ───────────────────────────────── */
.method .section-head { grid-template-columns: 1fr; margin-bottom: 36px; }
.b-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 38px; list-style: none; padding: 0; margin: 0; counter-reset: b-step; position: relative; }
.b-steps li { position: relative; padding-top: 22px; border-top: 1px solid var(--rule); counter-increment: b-step; }
.b-steps li::before {
  content: counter(b-step); position: absolute; top: -1px; left: 0; width: 0; height: 2px; background: var(--brick);
  font-size: 0; transition: width 600ms var(--motion-response, ease-out);
}
.b-steps li.is-lit::before, html:not(.b-js) .b-steps li::before { width: 100%; }
.b-steps .step-symbol { margin-bottom: 18px; transition: background-color 400ms, color 400ms, border-color 400ms; }
.b-steps li.is-lit .step-symbol { background: var(--brick); border-color: var(--brick); color: var(--canvas); }
.b-steps h3 { font-size: 21px; line-height: 1.3; font-weight: 550; letter-spacing: -.04em; margin-bottom: 10px; }
.b-steps p { font-size: 15px; line-height: 1.7; color: var(--pencil); max-width: 315px; }
.b-more { margin-top: 36px; }
.b-more > summary { color: var(--brick); padding-block: 0; min-height: 48px; }
.b-more > summary::after { top: calc(50% - 12px); }
.b-more { padding-block: 6px; }
.b-more[open] { padding-bottom: 20px; }
.b-more > p, .b-more .b-lines li, .b-more .b-bids li { font-size: 14px; line-height: 1.75; color: var(--pencil); max-width: 680px; }
.b-more > p { margin: 0 0 12px; }
.b-more > p.b-who { margin: 4px 0; color: var(--ink); font-weight: 600; }
.b-more > p.b-who + p:not(.b-who) { margin-top: 14px; }
.b-more .b-sub { margin: 20px 0 6px; font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .13em; color: var(--brick); }
.b-lines, .b-bids { margin: 8px 0 14px; padding-left: 20px; }
.b-lines li + li, .b-bids li + li { margin-top: 8px; }
.b-bids strong { color: var(--ink); font-weight: 600; }
.b-more a { color: var(--brick); }

/* ── Экран 5: лестница цен, одна кнопка (93-ITOG §2, п.5). Суммы и условия дословно из A. ──────── */
.b-price-free .price-fact strong { color: var(--ink); }
.prices .price-row { grid-template-columns: 240px 1fr; padding-block: 20px; }
.prices .price-row.featured { padding-block: 26px; }
.prices .price-stage { font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); }
.prices .price-fact { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.b-cond { font-size: 14px; color: var(--pencil); }
.prices .deduction { font-size: 15px; }
.b-expenses { display: flex; align-items: start; gap: 15px; margin-top: 6px; font-size: 15px; line-height: 1.8; color: var(--pencil); }
/* Невидимая стрелка той же ширины, что у строки вычета: текст двух строк стоит по одной линии. */
.b-expenses::before { content: "↳"; visibility: hidden; flex: none; font-size: 23px; line-height: 1.2; }
.b-prices-foot { display: grid; grid-template-columns: auto 1fr; gap: 20px 40px; align-items: start; margin-top: 30px; }
.b-prices-foot .attention-primary { margin-top: 8px; }
.b-prices-foot .b-more { margin-top: 0; }

/* ── Экран 6: сомнения. ─────────────────────────────────────────────────────────────────────────── */
.questions { padding-top: 40px; }

/* ── Экран 7: контакт тёмный по образцу .auction A и боевой /yandexpro/ (93-ITOG §2, п.7; §8). ─── */
.b-contact.contact { color: var(--canvas); background: var(--tar); border-color: #ffffff14; }
.b-contact.contact::before { opacity: 1; background: radial-gradient(ellipse at 42% 10%, #9e3d1e30, transparent 64%); }
.b-contact h2 em { color: var(--light); }
.b-contact .contact-next { margin: 18px 0 0; font-size: 15px; line-height: 1.6; color: var(--dust); }
.contact .b-fast { display: inline-flex; margin-top: 22px; }
.contact .b-or { margin-top: 12px; font-size: 15px; color: inherit; opacity: .8; }
.b-sign { display: flex; align-items: center; gap: 12px; margin: 28px 0 0; }
.b-sign img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: center 35%; flex: none; }
.b-sign figcaption { font-size: 14px; line-height: 1.5; font-weight: 600; }
.b-sign figcaption span { display: block; font-weight: 400; color: var(--dust); }
.b-contact .contact-grid { align-items: center; }
/* 27.09: подсказка видна всегда, как в A: скрытие до фокуса сдвигало кнопку, и первое нажатие «Отправить» терялось */

/* ── Подвал: одинаковый на четырёх (93-ITOG §8). ───────────────────────────────────────────────── */
.b-footer.footer { margin: 0 auto; padding: 22px 0 30px; border-top: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; font-size: 12px; color: var(--pencil); }
.b-niches { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.b-footer a { color: inherit; }
.b-top { white-space: nowrap; }

/* ── Моушн (93-ITOG §2 «Моушн», §8): удар сканера и 1·2·3 остаются; радар, блик, дрейф карточки убраны;
   дыхание hero только на десктопе. ─────────────────────────────────────────────────────────────── */
.motion-radar { display: none !important; }
html.motion-alive .wb, html.motion-alive .wb-selection::before { animation: none !important; }
.wb-selection::before { content: none; }

/* ── Планшет ─────────────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .b-proof-grid { grid-template-columns: 1fr; gap: 24px; }
  .b-proof-side .specimen-caption { max-width: 560px; }
  .b-steps { gap: 26px; }
  .b-prices-foot { grid-template-columns: 1fr; }
}

/* ── Телефон ─────────────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  :is(#proof, #method, #prices, #doubts, #contact) { scroll-margin-top: 65px; }
  html.motion-alive :is(.motion-drift, .attention-primary > span) { animation: none !important; }
  .motion-drift { display: none; }
  .hero::after { animation: none; }
  .hero { padding-block: 18px 28px; }
  .hero-byline, .trust { font-size: 14px; }
  .hero-lead { font-size: 16px; line-height: 1.55; }
  .hero .attention-actions { margin-top: 20px; }
  .hero .attention-actions > p { font-size: 14px; }
  .hero .attention-secondary { font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }
  .b-tool.attention-options { margin-top: 26px; max-width: none; padding: 20px 16px 8px; border-radius: 12px; }
  .b-tool-title { margin-bottom: 14px; font-size: 12px; }
  .b-tool .field-label { font-size: 14px; }
  .b-tool-submit { font-size: 15px; justify-content: space-between; padding-inline: 16px; }
  .diagnosis-strip { grid-template-columns: repeat(3, 1fr); gap: 0; padding-block: 22px 26px; }
  .diagnosis-strip article + article { padding: 0 0 0 12px; border-top: 0; border-left: 1px solid var(--rule); }
  .diagnosis-strip article:not(:last-child) { padding-right: 10px; }
  .diagnosis-strip article > span { display: block; font-size: 12px; line-height: 1.35; }
  .diagnosis-strip article > span i, .diagnosis-strip article::before { display: none; }
  .diagnosis-strip h2 { font-size: 19px; line-height: 1.15; margin-block: 6px 0; }
  .b-proof { padding-block: 8px 44px; }
  .b-proof-side .specimen-caption { font-size: 15px; margin-bottom: 16px; }
  .b-proof-side .attention-primary, .b-prices-foot .attention-primary, .contact .b-fast { width: 100%; justify-content: center; }
  .section { padding-block: 44px; }
  .section-head { margin-bottom: 24px; }
  .b-steps { display: block; }
  .b-steps li { padding: 16px 0 16px 56px; border-top: 1px solid var(--rule); }
  .b-steps .step-symbol { position: absolute; top: 16px; left: 0; width: 40px; height: 40px; margin: 0; border-radius: 11px; }
  .b-steps h3 { font-size: 19px; margin-bottom: 4px; }
  .b-steps p { font-size: 15px; line-height: 1.6; }
  .b-more { margin-top: 18px; }
  .b-more > summary { font-size: 16px; }
  .b-more > p, .b-more .b-lines li, .b-more .b-bids li { font-size: 15px; }
  .prices .price-row { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding-block: 13px; }
  .prices .price-row.featured { padding-block: 15px; }
  .prices .price-stage { grid-column: auto; font-size: 15px; line-height: 1.35; }
  .prices .price-fact { flex-direction: column; align-items: flex-end; gap: 0; text-align: right; line-height: 1.3; }
  .prices .price-fact strong { white-space: nowrap; }
  .b-cond { font-size: 13px; }
  .prices .price-fact strong { font-size: 22px; }
  .prices .price-row.featured .price-fact strong { font-size: 26px; }
  .prices .deduction, .b-expenses { font-size: 15px; }
  .b-expenses { gap: 10px; }
  .b-prices-foot { margin-top: 22px; gap: 14px; }
  .questions { padding-top: 12px; }
  .question-list { margin-top: 18px; }
  .question-list summary { font-size: 16px; }
  .question-list details p { font-size: 15px; }
  .contact-shell { padding: 0 10px 10px; }
  .b-contact.contact { padding-block: 36px 24px; }
  .b-contact h2 { font-size: 38px; }
  .b-contact .contact-grid > div + div { margin-top: 24px; }
  .b-sign { margin-top: 20px; }
  .b-footer.footer { display: grid; gap: 10px; padding-block: 20px 28px; font-size: 13px; }
  .b-niches a, .b-top { min-height: 44px; display: inline-flex; align-items: center; }
}

/* Строка ответа в форме дублирует строку под h2 контакта; для звонка форма пишет свою, её оставляю. */
[data-lead-capture] .lc-promise { display: none; }
[data-lead-capture]:has(input[value="phone"]:checked) .lc-promise { display: block; }

/* reduce: всё видно сразу, узел 1·2·3 статичен и полностью подсвечен. */
@media (prefers-reduced-motion: reduce) {
  .b-steps li::before { width: 100%; transition: none; }
  .b-steps .step-symbol { transition: none; }
}
