/* proaudit B (26.09.2026): два слоя чтения, тёмные только #night и #contact, один удар — сцена демо-чата.
   Только токены A (--canvas --paper --wax --ink --pencil --dust --brick --tar --base --hair). */

/* Запасные шрифты с метриками Manrope и Lora по весам (замер 26.09 по тексту страницы: ширина к Arial/Liberation
   400 ×1,010, 500 ×1,026, 600 ×1,042, 700 ×0,989 к Bold, Lora italic ×1,119 к Times italic): до загрузки woff2 строки
   ломаются так же, как после, и hero не прыгает (CLS). */
@font-face { font-family: "Manrope Fallback"; font-weight: 100 450; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans"); size-adjust: 101%; ascent-override: 106%; descent-override: 29.7%; line-gap-override: 0%; }
@font-face { font-family: "Manrope Fallback"; font-weight: 451 550; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans"); size-adjust: 102.6%; ascent-override: 104.3%; descent-override: 29.2%; line-gap-override: 0%; }
@font-face { font-family: "Manrope Fallback"; font-weight: 551 650; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans"); size-adjust: 104.2%; ascent-override: 102.7%; descent-override: 28.8%; line-gap-override: 0%; }
@font-face { font-family: "Manrope Fallback"; font-weight: 651 900; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold"); size-adjust: 98.9%; ascent-override: 108.2%; descent-override: 30.3%; line-gap-override: 0%; }
@font-face { font-family: "Lora Fallback"; font-style: italic; src: local("Times New Roman Italic"), local("TimesNewRomanPS-ItalicMT"), local("Liberation Serif Italic"), local("LiberationSerif-Italic"); size-adjust: 111.9%; ascent-override: 90.2%; descent-override: 24.1%; line-gap-override: 0%; }
:root { --sans: 'Manrope', "Manrope Fallback", system-ui, -apple-system, sans-serif; --serif: 'Lora', "Lora Fallback", Georgia, serif; }
/* Ширина h1 в em, а не в ch: ch у запасного шрифта уже на 14 %, и заголовок ломался на строку больше. */
.hero h1 { max-width: 8.55em; }
@media (max-width: 1120px) { .hero h1 { max-width: 11.84em; } }
@media (max-width: 720px) { .hero h1 { max-width: none; } }

/* Якорные секции садятся под шапку (93, раздел 8.3). */
#top, #quiz, #night, #bot-demo, #how, #prices, #doubts, #contact { scroll-margin-top: 65px; }
section > .wrap > h2:first-child, .night-grid > div > h2:first-child, .contact-grid > div > h2:first-child { margin-top: 0; }

/* Подчёркивание em в h1, как на проде A (статично). */
h1 em { background-image: linear-gradient(var(--brick), var(--brick)); background-repeat: no-repeat; background-position: 0 calc(100% - .04em); background-size: 100% .05em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Hero: факты A строкой под кнопкой, галочки не считаются словами. */
.b-facts { list-style: none; margin: 12px 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; line-height: 1.5; color: var(--pencil); }
.b-facts li { display: inline-flex; gap: 6px; }
.b-facts li::before { content: '✓'; color: var(--brick); font-weight: 700; }
.b-quiz { margin-top: 0; border-top: 0; border-bottom: 0; padding-top: 0; }
.b-quiz .quiz { padding-bottom: 0; }
.b-quiz .quiz-top { margin-bottom: 12px; }
.b-quiz .quiz-top { align-items: center; }
.b-quiz .quiz-count { flex: none; white-space: nowrap; }
/* Одна кирпичная кнопка на экран: первый вариант квиза остаётся вторичным, как задумано в A (его правило .hero .opt-start проигрывает по специфичности). */
.hero .opts:not(:has(.is-picked)) .opt-start { background: var(--wax); color: var(--ink); border-color: var(--hair); }
.hero .opts:not(:has(.is-picked)) .opt-start::after { border-color: var(--brick); }
.quiz .step[data-step="3"] .quiz-foot { margin-top: 12px; }

/* Точка «бот на связи»: один выскок после сборки, без бесконечного дыхания. */
.hero-label i { background: var(--brick); }
@media (prefers-reduced-motion: no-preference) {
  html.b-ready .hero-label i { animation: b-online 900ms var(--motion-reveal) 420ms 1 both; }
}
@keyframes b-online { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(158, 61, 30, .35); } 45% { transform: scale(1.5); } 100% { transform: scale(1); box-shadow: 0 0 0 6px rgba(158, 61, 30, 0); } }

/* Фон: зерно бумаги и дыхание тёмного блока выключены; свет в hero — только десктоп и только пока hero в окне. */
.hero::before { animation: none; }
.night::before { animation: none; }
html.b-hero-away .hero::after { animation-play-state: paused; }
@media (max-width: 760px) { .hero::after { animation: none; } }

/* Второй слой: раскрытия со стрелкой ▸, глубина один уровень (образец boevaya.css). */
.boevaya-details { margin-top: 18px; border-top: 1px solid var(--hair); }
.boevaya-details > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 12px 0; min-height: 44px; cursor: pointer; color: var(--brick); font-size: 15px; font-weight: 600; }
.boevaya-details > summary::-webkit-details-marker { display: none; }
.boevaya-details > summary::before { content: '▸'; display: inline-block; font-size: 12px; transition: transform var(--motion-small) var(--motion-response); }
.boevaya-details[open] > summary::before { transform: rotate(90deg); }
.boevaya-details[open] > summary { margin-bottom: 8px; }
.boevaya-details > p { max-width: 64ch; font-size: 15px; line-height: 1.6; color: var(--pencil); }
.boevaya-details > p + p { margin-top: 12px; }
.boevaya-details > .b-who { color: var(--ink); font-weight: 600; }
.boevaya-details > .b-who + .b-who { margin-top: 2px; }
.boevaya-details > .b-who + p:not(.b-who) { margin-top: 14px; }

/* Тёмный пруф: строка, раскрытие и телефон. */
.night .boevaya-details { border-top-color: rgba(242, 235, 217, .14); max-width: 46ch; }
.night .boevaya-details > summary { color: var(--canvas); }
.night .night-list { margin-top: 4px; }
.night-note { margin: 14px 0 6px; font-size: 14px; line-height: 1.55; color: rgba(242, 235, 217, .66); }

/* Шаги 01·02·03 (boevaya.css), номер загорается по очереди при входе #how в окно. */
.boevaya-steps { list-style: none; margin: 24px 0 0; padding: 0; counter-reset: steps; }
.boevaya-steps > li { counter-increment: steps; position: relative; padding: 16px 0 16px 40px; border-top: 1px solid var(--hair); }
.boevaya-steps > li::before { content: counter(steps, decimal-leading-zero); position: absolute; left: 0; color: var(--brick); font-weight: 650; font-variant-numeric: tabular-nums; }
.boevaya-steps h3, .boevaya-steps p { display: inline; font-size: 16px; line-height: 1.5; }
.boevaya-steps h3 { margin-right: 10px; font-weight: 650; }
.boevaya-steps p { color: var(--pencil); }
@media (min-width: 721px) {
  .boevaya-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
  .boevaya-steps > li { padding: 18px 0 0; }
  .boevaya-steps > li::before { position: static; display: block; margin-bottom: 8px; }
  .boevaya-steps h3, .boevaya-steps p { display: block; }
  .boevaya-steps h3 { margin: 0 0 6px; }
}
@media (prefers-reduced-motion: no-preference) {
  html.b-ready .b-steps > li::before { display: inline-block; transform-origin: 0 60%; color: var(--dust); transform: scale(.86); transition: color var(--motion-large) var(--motion-enter), transform var(--motion-large) var(--motion-reveal); }
  html.b-ready #how.is-in .b-steps > li::before { color: var(--brick); transform: none; }
  html.b-ready #how.is-in .b-steps > li:nth-child(2)::before { transition-delay: 180ms; }
  html.b-ready #how.is-in .b-steps > li:nth-child(3)::before { transition-delay: 360ms; }
}

/* Лестница цен строками (boevaya.css). */
.boevaya-prices { list-style: none; margin: 28px 0 0; padding: 0; border-bottom: 1px solid var(--hair); }
.boevaya-price { padding: 14px 0 0; border-top: 1px solid var(--hair); }
.boevaya-price-line { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(160px, auto); grid-template-areas: "name short value"; align-items: baseline; gap: 14px; }
.boevaya-price-line > h3 { grid-area: name; }
.boevaya-price-line > .boevaya-price-value { grid-area: value; text-align: right; }
.boevaya-price-line > .boevaya-price-short { grid-area: short; }
.boevaya-price h3, .boevaya-price-value { font-size: 17px; font-weight: 650; line-height: 1.4; }
.boevaya-price-value { font-variant-numeric: tabular-nums; }
.boevaya-price--free .boevaya-price-value { color: var(--brick); }
.boevaya-price-short { font-size: 15px; color: var(--pencil); }
.boevaya-price > .boevaya-details { margin-top: 0; border: 0; }
.boevaya-price .price-what { padding-bottom: 12px; max-width: 64ch; font-size: 15px; line-height: 1.6; }
.boevaya-price .price-what span { display: block; margin-top: 6px; color: var(--pencil); }
.boevaya-price .attention-price-link { margin-bottom: 8px; }
.boevaya-credit { margin-top: 14px; font-size: 15px; color: var(--pencil); max-width: 64ch; }
.boevaya-price-cta { margin-top: 18px; }

/* Вопросы: все закрыты, как в A по стилю. */
.doubt-list { margin-top: 28px; }

/* Контакт тёмный (образец yandexpro A/B). Форма lead-capture остаётся светлой карточкой внутри. */
.contact { position: relative; background: var(--tar); color: var(--canvas); }
.contact h2 { color: var(--canvas); }
.contact-lead { margin-top: 16px; font-size: 16px; line-height: 1.6; color: rgba(242, 235, 217, .74); max-width: 40ch; }
.contact-box { background: var(--base); border: 1px solid rgba(242, 235, 217, .11); }
.b-contact-tg { margin-top: 22px; }
.b-contact-or { margin-top: 12px; font-size: 14px; line-height: 1.5; color: rgba(242, 235, 217, .62); }
/* Подсказка под полем только при вводе (93, раздел 8.1); каналы чипами в строку. */
/* 27.09: подсказка видна всегда, как в A: скрытие до фокуса сдвигало кнопку, и первое нажатие «Отправить» терялось */

/* Сцена демо-чата (перенос принятой сцены prod motion.js/motion.css, область html.b-ready). */
.phone-screen { position: relative; }
.phone-bar { position: relative; }
.phone-who { min-width: 0; }
.phone-time { position: absolute; right: 12px; top: 10px; width: 31px; height: 14px; overflow: hidden; font-size: 9px; line-height: 14px; font-variant-numeric: tabular-nums; color: var(--canvas); opacity: .68; }
.phone-time > span { position: absolute; inset: 0; }
.phone-time .phone-time-old { transform: translateY(-100%); }
.phone-time .phone-time-new { transform: none; }
.phone-ava { position: relative; flex: none; }
.phone-ava::after { content: ''; position: absolute; inset: -1px; border: 1px solid rgba(242, 235, 217, .5); border-radius: inherit; opacity: 0; pointer-events: none; }
.demo-questions { position: relative; }
.demo-questions button { position: relative; }
.demo-check { position: absolute; right: 4px; bottom: 1px; font-size: 10px; line-height: 12px; opacity: 0; transform: scale(.65); transition: opacity var(--motion-small) var(--motion-response), transform var(--motion-medium) var(--motion-reveal); pointer-events: none; }
.demo-questions button.is-tried .demo-check { opacity: 1; transform: scale(1); }
.demo-done { position: absolute; top: calc(100% + 4px); left: 14px; right: 14px; font-size: 10px; line-height: 13px; text-align: left; color: var(--canvas); opacity: 0; transform: translateY(3px); pointer-events: none; transition: opacity var(--motion-small) var(--motion-response), transform var(--motion-small) var(--motion-response); }
.demo-done.is-visible { opacity: .8; transform: none; }
#demoChat { height: auto; min-height: 352px; padding-top: 26px; }
#demoChat.is-answering { animation: none; }
.phone-push { position: absolute; z-index: 4; left: 10px; right: 10px; top: 8px; min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid rgba(242, 235, 217, .2); border-radius: 0; background: var(--base); color: var(--canvas); font-size: 12px; opacity: 0; transform: translateY(-130%); pointer-events: none; }
.phone-push .phone-ava { width: 26px; height: 26px; }
.phone-push.is-visible { animation: b-push-in calc(var(--motion-large) * var(--b-f, 1)) var(--motion-reveal) both; }
.phone-push.is-leaving { animation: b-push-out calc(var(--motion-small) * var(--b-f, 1)) var(--motion-exit) both; }
.phone-push.is-static { opacity: 1; transform: none; }
@keyframes b-push-in { from { opacity: 0; transform: translateY(-130%); } to { opacity: 1; transform: none; } }
@keyframes b-push-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-130%); } }
html.b-ready #bot-demo.is-scene-running #demoQuestion { animation: b-message calc(var(--motion-medium) * var(--b-f, 1)) var(--motion-enter) both; }
html.b-ready #bot-demo.is-scene-running #demoAnswer { animation: b-message calc(var(--motion-medium) * var(--b-f, 1)) var(--motion-enter) calc(740ms * var(--b-f, 1)) both; }
html.b-ready #bot-demo.is-scene-running #demoHandoff { animation: b-message calc(var(--motion-small) * var(--b-f, 1)) var(--motion-enter) calc(1280ms * var(--b-f, 1)) both; }
html.b-ready #bot-demo.is-scene-running .phone-bar > .phone-ava::after { animation: b-ring calc(500ms * var(--b-f, 1)) var(--motion-breath) calc(var(--motion-medium) * var(--b-f, 1)) both; }
html.b-ready #bot-demo.is-clock-running .phone-time-old { animation: b-clock-old calc(var(--motion-large) * var(--b-f, 1)) var(--motion-enter) both; }
html.b-ready #bot-demo.is-clock-running .phone-time-new { animation: b-clock-new calc(var(--motion-large) * var(--b-f, 1)) var(--motion-enter) both; }
@keyframes b-message { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes b-ring { 0%, 100% { opacity: 0; transform: scale(1); } 40% { opacity: .6; } 100% { transform: scale(1.42); } }
@keyframes b-clock-old { from { transform: translateY(0); } to { transform: translateY(-100%); } }
@keyframes b-clock-new { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* Нажатие: только transform. */
.opt:not(:disabled):active, .demo-questions button:active { transform: scale(.96); transition-duration: var(--motion-press); }

/* Планшет. */
@media (max-width: 1120px) {
  .hero-grid { gap: 28px; }
}

/* Телефон: h1 36 px / 1.08, текст не мельче 15 px, кнопки на всю ширину (93, раздел 6). */
@media (max-width: 760px) { :root { --b-f: .7; } }
@media (max-width: 720px) {
  .wrap { width: calc(100% - 36px); }
  .site-header { min-height: 65px; }
  .hero-grid { padding: 22px 0 30px; gap: 22px; }
  .hero h1 { font-size: 36px; line-height: 1.08; }
  .hero-lead { margin-top: 14px; font-size: 16px; line-height: 1.5; }
  .attention-actions { margin: 18px 0 0; }
  .attention-card { padding: 18px; }
  .quiz { padding: 0; }
  .quiz:has([data-step="1"].is-on) .quiz-top { position: static; margin: 0 0 10px; }
  .quiz:has([data-step="1"].is-on) .quiz-top .eyebrow { display: block; }
  .quiz .ask { padding-right: 0; }
  .night, .how, .prices, .doubts, .contact { padding: 40px 0; }
  .night-grid { gap: 22px; }
  .night figure { margin: 0; }
  #demoChat { min-height: 380px; }
  .boevaya-steps { margin-top: 16px; }
  .boevaya-steps > li { padding: 12px 0 12px 34px; }
  .boevaya-prices { margin-top: 18px; }
  .boevaya-price { padding-top: 12px; }
  .boevaya-price-line { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name value" "short short"; gap: 2px 10px; }
  .boevaya-price h3, .boevaya-price-value { font-size: 16px; }
  .boevaya-price > .boevaya-details > summary { padding: 6px 0; }
  .doubt-list { margin-top: 18px; gap: 10px; }
  .doubt summary { padding: 14px 44px 14px 16px; }
  .contact-grid { gap: 22px; }
  .contact-lead { margin-top: 14px; }
  .contact-box { padding: 16px 12px; min-width: 0; }
  .site-footer { padding-block: 24px; }
  body :is(p, a, button, label, summary, li, small, figcaption, legend, .eyebrow, .bubble, .handoff, .price-what span, .lc-channel span, .lc-consent span, input, textarea) { font-size: max(15px, 1em) !important; }
  .eyebrow, .hero-label, .quiz-count { letter-spacing: .06em; }
  .b-quiz .quiz-top .eyebrow { font-size: 13px !important; letter-spacing: .05em; }
  .phone-who p:last-child, .demo-done { font-size: 13px !important; }
  .attention-primary, .attention-secondary, .lc-submit, .lc-direct-max, .lc-fallback { width: 100%; justify-content: center; text-align: center; box-sizing: border-box; }
  .attention-secondary { padding: 10px 0; }
  .b-facts { justify-content: center; margin-top: 12px; }
}

/* Под reduce всё видно сразу и ничего не крутится. */
@media (prefers-reduced-motion: reduce) {
  .hero::after, .hero::before, .night::before, .hero-label i { animation: none !important; }
  .phone-push, .demo-check, .demo-done, .boevaya-details > summary::before { transition: none !important; }
}
