/* B /sites/ (26.09.2026): слой поверх A. Источник решений: 93-ITOG-B-2609 §1, §6, §8;
   приёмы взяты из b-2609/yandexpro/boevaya.css (details ▸, строка лестницы, контакт, пол шрифта 15 px). */

/* §6 сетка и шапка 65 px; якоря не прячутся под шапкой (§8.3) */
.wrap { width: min(1168px, calc(100% - 96px)); }
.site-header { min-height: 65px; padding-block: 0; }
html { scroll-padding-top: 65px; }
#work, #process, #prices, #questions, #contact, #draft-form, #draft, #browser { scroll-margin-top: 65px; }

/* §1 «Моушн»: фоновое дыхание снято целиком, остаётся сборка и курсор в макете */
.hero-shell::before, .hero::after, .contact::after { animation: none !important; }
html.motion-wait .b-facts { opacity: 0; }

/* Hero */
.hero { padding-block: 40px 48px; min-height: 0; align-items: start; }
.hero .stage { margin-top: 24px; }
.hero-label { margin-bottom: 18px; }
.hero-author { margin-bottom: 16px; }
.hero-lead { font-size: 16px; line-height: 1.6; max-width: 440px; margin-top: 16px; color: var(--pencil); }
.hero .attention-actions { margin: 22px 0 16px; }
.b-facts { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.b-facts span { color: var(--brick); font-weight: 700; }
.b-generator { margin-top: 0; padding-top: 16px; border-top: 1px solid var(--line); max-width: 480px; }
.b-generator .field-label { font-size: 13px; margin-bottom: 8px; }
.b-generator .input-row input { font-size: 15px; }
.b-generator .primary { font-size: 14px; min-height: 46px; }
.b-generator .examples button { font-size: 13px; }

/* Экран 2: три карточки 01·02·03 (§6 «Компоненты») */
.b-cards { padding-block: 8px 40px; }
.b-card-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: bcard; }
.b-card { counter-increment: bcard; padding-top: 18px; border-top: 1px solid #635d4b50; }
.b-card-kicker { color: var(--brick); margin-bottom: 8px; letter-spacing: .15em; }
.b-card-kicker::before { content: '0' counter(bcard) ' / '; }
.b-card-line { font-size: 17px; line-height: 1.45; font-weight: 500; letter-spacing: -.01em; color: var(--ink); }

/* Секции плотнее: заголовок одной колонкой */
.section { padding-block: 56px; }
.section-head { display: block; margin-bottom: 28px; }
h2 { font-size: 44px; }

/* Экран 3: кейсы, скриншот 16:10 */
.work-list { gap: 40px; }
.work-shots { margin-bottom: 20px; }
.work-desk { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.work-case h3 { margin-bottom: 8px; }
.work-case > p { font-size: 15px; line-height: 1.6; color: var(--pencil); margin-bottom: 4px; }
.work-case .work-open { margin-top: 6px; font-size: 14px; }

/* details ▸ из boevaya: один уровень, закрыты */
html details.b-det { border: 0; margin: 2px 0 8px; }
html details.b-det > summary { display: inline-flex; justify-content: flex-start; align-items: center; gap: 8px; padding: 10px 0; min-height: 44px; color: var(--brick); font-size: 15px; font-weight: 600; line-height: 1.4; }
html details.b-det > summary::after { content: '▸'; display: inline-block; width: auto; height: auto; border: 0; border-radius: 0; font-size: 13px; color: var(--brick); transform: none; }
html details.b-det[open] > summary::after { transform: rotate(90deg); }
.b-det-body { padding: 2px 0 12px; }
.b-det-body p { font-size: 15px; line-height: 1.65; color: var(--pencil); max-width: 62ch; margin: 0; }
.b-det-body p + p { margin-top: 10px; }
.b-det-body .b-who { color: var(--ink); font-weight: 600; margin: 0; }
.b-det-body .b-who + .b-who { margin-top: 4px; }
.b-det-body .b-who + p:not(.b-who) { margin-top: 12px; }

/* Экран 4: шаги одной строкой */
.b-steps .step h3 { margin-bottom: 6px; }
.b-steps .step p { font-size: 15px; line-height: 1.6; }
.b-how { margin-top: 18px; }

/* Экран 5: строка лестницы из боевой */
.b-prices { list-style: none; margin: 0; padding: 0; border-top: 1px solid #635d4b50; }
.b-price { border-bottom: 1px solid var(--line); }
.b-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; padding: 18px 0 6px; color: var(--ink); text-decoration: none; }
.b-price--free .b-price-line { padding-bottom: 18px; }
.b-price-name { grid-area: name; font-size: 17px; font-weight: 650; }
.b-price-short { grid-area: short; font-size: 15px; color: var(--pencil); }
.b-price-value { grid-area: value; justify-self: end; font-size: 17px; font-weight: 650; white-space: nowrap; }
.b-price--free .b-price-value, .b-price.featured .b-price-value { color: var(--brick); }
.b-price .b-det { margin: 0 0 6px; }
.b-price .b-det > summary { padding-block: 4px; min-height: 44px; }
.b-ladder { margin-top: 18px; font-size: 15px; line-height: 1.6; }
.b-price-cta { margin-top: 20px; }

/* Экран 6: вопросы */
.faq-layout { border-top: 0; padding-top: 0; }
.faq-heading h2 { font-size: 40px; }
.faq-answer, .faq-answer p { font-size: 15px; line-height: 1.7; }

/* Экран 7: контакт §8.1 — Telegram одним касанием до формы */
.contact { padding-block: 56px 24px; }
.contact .contact-next { margin: 16px 0 0; font-size: 15px; line-height: 1.6; color: var(--dust); max-width: 420px; }
.contact .b-fast { margin-top: 20px; }
.contact .b-or { margin-top: 10px; color: inherit; opacity: .8; font-size: 15px; }
/* 27.09: подсказка видна всегда, как в A: скрытие до фокуса сдвигало кнопку, и первое нажатие «Отправить» терялось */
.footer { flex-wrap: wrap; align-items: center; margin-top: 40px; font-size: 13px; }
.footer p { margin: 0; }
.contact .ad-brand-footer-description { color: var(--dust); }

@media (prefers-reduced-motion: reduce) {
  html details.b-det > summary::after { transition: none !important; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .site-header { min-height: 65px; gap: 12px; }
  .hero { display: block; padding-block: 18px 28px; }
  .hero-label { letter-spacing: .06em; margin-bottom: 12px; }
  .hero-author { margin-bottom: 12px; }
  .hero h1 { font-size: 36px; line-height: 1.08; }
  .hero h1 em { line-height: 1.12; }
  .hero-lead { font-size: 15px; margin-top: 12px; }
  .hero .attention-actions { margin: 14px 0 12px; }
  .attention-actions > p { font-size: 15px; }
  .b-facts { display: grid; gap: 4px; margin-bottom: 18px; }
  .b-generator { padding-top: 14px; }
  .b-generator .field-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; margin: 0 0 8px; }
  .b-generator .input-row { padding: 4px; }
  .b-generator .input-row input { font-size: 16px !important; padding: 10px; }
  .b-generator .primary { min-height: 44px; padding: 10px 14px; font-size: 15px; }
  .b-generator .examples { margin-top: 4px; gap: 0 8px; }
  .b-generator .examples button { padding-block: 10px; }
  .hero-shell:not(.is-drafted) .stage { display: none; }
  .hero .stage { margin-top: 20px; }
  .section { padding-block: 28px; }
  .section-head { margin-bottom: 16px; }
  h2, .faq-heading h2 { font-size: 32px; line-height: 1.12; }
  .b-cards { padding-block: 0 20px; }
  .b-card-list { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .b-card { padding-top: 12px; }
  .b-card-line { font-size: 17px; }
  .work-list { gap: 24px; }
  .work-shots { margin-bottom: 10px; padding-block: 8px 10px; }
  /* «Задача страницы» и ссылка на сайт в одну строку, раскрытая задача уходит на всю ширину */
  .work-case { display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 16px; }
  .work-case > :not(.b-det):not(.work-open) { flex: 1 1 100%; }
  .work-case > .b-det[open] { flex: 1 1 100%; order: 2; }
  .work-case > .work-open { margin-top: 2px; }
  .b-steps { gap: 12px; }
  .b-steps .step { padding-top: 16px; }
  .b-steps .step-symbol { top: 16px; }
  .b-price-line { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name value" "short short"; gap: 2px 10px; padding-top: 10px; }
  .b-price--free .b-price-line { padding-bottom: 10px; }
  .faq-list { margin-top: 14px; }
  .faq-list summary { padding-block: 12px; }
  .contact { padding-block: 28px 16px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .contact h2 { font-size: 32px; }
  .contact .b-fast .attention-primary { width: 100%; box-sizing: border-box; }
  .lc .lc-channel { flex: 1 1 auto; justify-content: center; }
  .lc .lc-form { gap: 8px; }
  /* подвал в две-три строки вместо колонки: §6 держит юр.строку, высота уходит на форму */
  .footer { margin-top: 20px; padding-top: 14px; flex-direction: row; flex-wrap: wrap; gap: 6px 16px; }
  .footer .ad-brand-footer-group { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
  .footer .ad-brand__mark { width: 36px; height: 36px; }
  .footer .ad-brand-footer-description { flex: 1 1 100%; margin: 0; }
  .footer > p:last-of-type { order: 3; flex: 1 1 100%; }
  .footer > a:last-child { order: 2; }
  /* пол шрифта 15 px на телефоне (§6), макет в .stage и шапка не трогаются */
  :is(.hero-copy, main > section:not(.hero-shell)) :is(p, a, button, label, summary, li, small, figcaption, legend, h4, .eyebrow, span, input, textarea) { font-size: max(15px, 1em) !important; }
}
