/* attestat24.ru — единый файл стилей. Без внешних шрифтов и библиотек. */
:root {
  --navy-900: #0b2340;
  --navy: #0f2d52;
  --navy-2: #1a4478;
  --accent: #f2b904;   /* фирменный жёлтый старого сайта; текст на нём тёмно-синий (контраст 7.7:1) */
  --accent-2: #fbc618;
  --on-accent: #0f2d52;
  --link-hover: #8a5f00;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #17202c;
  --muted: #5b6676;
  --line: #dde3ec;
  --ok: #1d7a46;
  --err: #b42318;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 45, 82, .06), 0 4px 16px rgba(15, 45, 82, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs: 17px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 var(--fs)/1.55 var(--font); color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--navy-2); text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }
h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* верхняя полоса */
.topbar { background: var(--navy); color: #cfdcf0; font-size: 14px; }
.topbar__in { display: flex; align-items: center; gap: 16px; min-height: 36px; }
.topbar__note { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.city-btn, .bvi-btn { background: none; border: 0; color: #fff; font: inherit; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; padding: 6px 0; }
.city-btn span { border-bottom: 1px dashed rgba(255,255,255,.6); }
.bvi-btn { color: #cfdcf0; text-decoration: underline; }

/* шапка */
.header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header__in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.logo__mark { width: 30px; height: 44px; flex: none; }
@font-face { font-family: Montserrat; font-weight: 400; font-display: swap; src: url(/assets/fonts/montserrat-v31-cyrillic-ext-regular.woff2) format('woff2'); }
@font-face { font-family: Montserrat; font-weight: 600; font-display: swap; src: url(/assets/fonts/montserrat-v31-cyrillic-ext-600.woff2) format('woff2'); }
@font-face { font-family: Montserrat; font-weight: 700; font-display: swap; src: url(/assets/fonts/montserrat-v31-cyrillic-ext-700.woff2) format('woff2'); }
h1, h2, h3, .logo__text b, .btn, .footer__brand { font-family: Montserrat, var(--font); }
.course__lead { max-width: 880px; font-size: 1.05rem; color: var(--muted); }
.course__lead p { margin: 0 0 .5em; }
.footer__links { font-size: 14px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text b { font-size: 18px; }
.logo__text small { color: var(--muted); font-size: 13px; }
.nav { flex: 1; }
.nav__list { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav__list a { color: var(--text); text-decoration: none; font-weight: 500; padding: 8px 0; }
.nav__list a:hover, .nav__list a[aria-current] { color: var(--navy-2); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.nav__toggle { display: none; }
.header__contact { display: flex; align-items: center; gap: 14px; }
.header__phone { font-weight: 700; color: var(--navy); text-decoration: none; white-space: nowrap; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 10px; border: 2px solid transparent; font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--accent-2); color: var(--on-accent); }
.btn--line { background: var(--surface); border-color: #c8d1de; color: var(--navy); }
.btn--line:hover { border-color: var(--navy); color: var(--navy); }
.btn .i { width: 18px; height: 18px; }
.btn--ghost { border-color: currentColor; color: var(--navy); background: transparent; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* первый экран */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 56px 0 48px; }
.hero h1 { color: #fff; max-width: 860px; }
.hero__sub { font-size: 1.15rem; color: #dbe6f6; max-width: 760px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.hero .btn--ghost { color: #fff; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 12px 32px; list-style: none; padding: 0; margin: 8px 0 0; color: #c9d7ec; }
.hero__facts b { color: #fff; font-size: 1.3rem; margin-right: 4px; }

section { margin: 40px auto; }
.hero, .lead { margin: 0; }

/* плитки направлений */
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--navy); box-shadow: var(--shadow); }
.tile b { font-size: 1.1rem; }
.tile span { color: var(--muted); font-size: 15px; }
.tile:hover { border-color: var(--accent); }

/* карточки курсов */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card:hover { border-color: var(--accent); }
.card__link { font-weight: 600; color: var(--navy); text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; }
.card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 14px; }
.card__price { margin-top: auto; font-weight: 700; color: var(--text); }
.more { font-weight: 600; }
.catalog-group h2 small { color: var(--muted); font-weight: 400; font-size: .8em; }
.catalog-group h2 a { color: inherit; text-decoration: none; }

/* преимущества, шаги */
.adv__list, .steps__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.adv__list li, .steps__list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps__list { counter-reset: step; }
.steps__list li { counter-increment: step; }
.steps__list li::before { content: counter(step); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; margin-bottom: 10px; }
.adv__list b, .steps__list b { display: block; color: var(--navy); margin-bottom: 6px; }
.adv__list p, .steps__list p { margin: 0; color: var(--muted); }

/* текст */
.prose > * { max-width: 880px; }
.prose > table, .prose > .table { max-width: 100%; }
.prose h2 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .25em 0; }
.prose table, .table { width: 100%; border-collapse: collapse; background: var(--surface); margin: 1em 0; font-size: 15px; }
.prose th, .prose td, .table th, .table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.table th { background: #eef2f8; color: var(--navy); }
.about { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }

/* FAQ */
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; margin: 0 0 10px; }
.faq__item summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 600; color: var(--navy); list-style: none; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 24px; color: var(--accent); }
.faq__item[open] summary::after { content: "–"; }
.faq__a { padding: 0 18px 16px; }
.faq__a > :last-child { margin-bottom: 0; }

/* форма заявки */
.lead { background: var(--navy); color: #e7eef8; padding: 48px 0; margin-top: 48px; }
.lead__in { display: grid; grid-template-columns: 1fr 420px; gap: 40px; align-items: start; }
.lead h2 { color: #fff; }
.lead__phone a { color: #fff; font-weight: 700; }
.lead__form { background: var(--surface); color: var(--text); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .filter input { width: 100%; font: 400 16px/1.4 var(--font); padding: 12px 14px; border: 1px solid #c8d1de; border-radius: 10px; background: #fff; color: var(--text); }
.field input:focus, .field textarea:focus, .filter input:focus { border-color: var(--navy-2); outline: 2px solid rgba(26, 68, 120, .2); }
.field input[aria-invalid="true"] { border-color: var(--err); }
.consent { display: flex; gap: 10px; font-size: 13px; color: var(--muted); align-items: flex-start; }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.lead__status { margin: 0; font-size: 15px; min-height: 1.4em; }
.lead__status.is-ok { color: var(--ok); font-weight: 600; }
.lead__status.is-err { color: var(--err); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* навигационная цепочка, заголовки страниц */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 16px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: #9aa6b6; }
.crumbs a { color: var(--muted); }
.page-head { margin-top: 16px; margin-bottom: 16px; }

/* курс */
.course__head { margin-top: 16px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 20px 0; padding: 0; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 4px 0 0; font-weight: 700; color: var(--navy); }
.course__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.filter { margin-bottom: 14px; max-width: 520px; }

/* сведения: боковое меню */
.with-aside { display: grid; grid-template-columns: 300px 1fr; gap: 32px; margin-top: 16px; }
.aside ul { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: sticky; top: 90px; }
.aside a { display: block; padding: 10px 16px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: 15px; }
.aside a[aria-current] { background: #eef2f8; color: var(--navy); font-weight: 600; border-left: 3px solid var(--accent); }
.docs { padding-left: 1.2em; }
.article-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.article-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.article-list p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

/* контакты */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ccard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 4px; }
.ccard span { color: var(--muted); font-size: 14px; }
.ccard a, .ccard b { font-size: 1.1rem; font-weight: 700; color: var(--navy); text-decoration: none; }
.ccard small { color: var(--muted); }
.steps-mini ol { padding-left: 1.2em; }
.map iframe { width: 100%; height: 360px; border: 0; border-radius: var(--radius); background: #e8edf4; }
.offices__list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.offices__list li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: grid; gap: 4px; }
.offices__list small { color: var(--muted); }
.geo__list { list-style: none; padding: 0; columns: 5 160px; font-size: 14px; }
.geo__list li { margin: 2px 0; }

/* подвал */
.footer { background: #0b2340; color: #b9c7da; padding: 40px 0 20px; font-size: 15px; }
.footer a { color: #dfe8f4; }
.footer__grid { display: grid; grid-template-columns: 2fr 1.3fr 1.3fr 1fr; gap: 28px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer__brand { color: #fff; font-weight: 800; font-size: 20px; margin-bottom: 8px; }
.footer__title { color: #fff; font-weight: 700; margin-bottom: 10px; }
.footer__phone { font-weight: 700; font-size: 18px; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 16px; font-size: 14px; }

/* выбор города */
.city-dialog { border: 0; border-radius: var(--radius); padding: 0; width: min(900px, calc(100% - 32px)); max-height: 80vh; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.city-dialog::backdrop { background: rgba(10, 25, 45, .55); }
.city-dialog__head { display: flex; gap: 12px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; }
.city-dialog__head input { flex: 1; font: 16px var(--font); padding: 10px 12px; border: 1px solid #c8d1de; border-radius: 8px; }
.city-dialog__head button { background: none; border: 0; font-size: 28px; cursor: pointer; color: var(--muted); }
.city-dialog ul { list-style: none; margin: 0; padding: 16px 20px; columns: 4 170px; }
.city-dialog li { margin: 3px 0; }
.city-dialog li.o a { font-weight: 700; }

.notfound { min-height: 40vh; }

@media (max-width: 1000px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .lead__in { grid-template-columns: 1fr; }
  .with-aside { grid-template-columns: 1fr; }
  .aside ul { position: static; }
}
@media (max-width: 860px) {
  .topbar__note { display: none; }
  .topbar__in { justify-content: space-between; }
  .header__in { gap: 12px; min-height: 64px; }
  .nav { order: 3; flex: 0; }
  .nav__toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; padding: 0 11px; }
  .nav__toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; }
  .nav__list { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav__list.is-open { display: flex; }
  .nav__list a { display: block; padding: 14px 16px; border-top: 1px solid var(--line); }
  .header__contact { margin-left: auto; }
  .header__contact .btn { display: none; }
  .logo__text small { display: none; }
  .hero { padding: 36px 0 32px; }
  .footer__grid { grid-template-columns: 1fr; }
  section { margin: 28px auto; }
  .about { padding: 18px; }
  .prose table { display: block; overflow-x: auto; }
}
@media (max-width: 420px) {
  .header__phone { font-size: 15px; }
  .logo__text b { font-size: 16px; }
}

/* версия для слабовидящих */
html.bvi { --fs: 22px; --text: #000; --muted: #000; --line: #000; --bg: #fff; --navy: #000; --navy-2: #000; --accent: #000; --accent-2: #000; }
html.bvi body { line-height: 1.7; letter-spacing: .02em; }
html.bvi .hero, html.bvi .lead, html.bvi .topbar, html.bvi .footer { background: #fff; color: #000; border: 2px solid #000; }
html.bvi .hero h1, html.bvi .lead h2, html.bvi .hero__sub, html.bvi .hero__facts, html.bvi .hero__facts b, html.bvi .footer a, html.bvi .footer__brand, html.bvi .footer__title, html.bvi .city-btn, html.bvi .bvi-btn, html.bvi .lead__phone a, html.bvi .hero .btn--ghost { color: #000; }
html.bvi .btn--accent { background: #000; color: #fff; }
html.bvi img { filter: grayscale(1); }
html.bvi a { text-decoration: underline; }

@media print {
  .topbar, .header, .lead, .footer, .crumbs, .course__cta, .hero__cta { display: none !important; }
  body { background: #fff; }
}

/* Шапка и верхняя полоса — широкие, как первый экран курса (старый сайт был во всю ширину) */
.topbar .wrap, .header .wrap { max-width: 1440px; padding: 0 32px; }
@media (max-width: 860px) { .topbar .wrap, .header .wrap { padding: 0 16px; } }
/* ===================== Шапка (как на старом сайте: два ряда) ===================== */
.hdr { position: sticky; top: -88px; z-index: 30; background: #fff; box-shadow: 0 1px 0 var(--line); }
.hdr__top { height: 88px; border-bottom: 1px solid var(--line); }
.hdr__top-in { height: 100%; display: flex; align-items: center; gap: 18px; }
.hdr__logo { flex: none; display: block; }
.hdr__logo img { display: block; width: 120px; height: auto; }
.hdr__tagline { flex: none; width: 150px; font-size: 13px; line-height: 1.35; color: #8a94a3; }
.hdr__search { position: relative; flex: 1 1 260px; max-width: 400px; margin-left: 8px; }
.hdr__search input { width: 100%; height: 44px; padding: 0 44px 0 16px; border: 1px solid #e3e7ee; border-radius: 10px; background: #f5f6f8; font: 15px var(--font); color: var(--text); }
.hdr__search input:focus { background: #fff; border-color: var(--navy-2); outline: 2px solid rgba(26, 68, 120, .15); }
.hdr__search button { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border: 0; background: none; color: #8a94a3; cursor: pointer; display: grid; place-items: center; }
.hdr__search button .i { width: 20px; height: 20px; }
.hdr__results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(15, 45, 82, .14); padding: 6px; max-height: 420px; overflow-y: auto; z-index: 40; }
.hdr__results a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 9px 10px; border-radius: 8px; text-decoration: none; color: var(--text); }
.hdr__results a:hover, .hdr__results a[aria-selected="true"] { background: #f2f5fa; }
.hdr__results b { font-weight: 600; }
.hdr__results small { grid-column: 1; color: var(--muted); font-size: 12.5px; }
.hdr__results span { grid-row: span 2; align-self: center; font-weight: 700; color: var(--navy); font-size: 14px; white-space: nowrap; }
.hdr__results p { margin: 0; padding: 10px; color: var(--muted); font-size: 14px; }
.hdr__results mark { background: #fff1b8; color: inherit; border-radius: 3px; }
.hdr__city, .hdr__phone summary, .hdr__sdo { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; background: none; border: 0; padding: 0; font: 600 15px var(--font); color: var(--text); cursor: pointer; text-decoration: none; white-space: nowrap; }
.hdr__city .i, .hdr__phone summary .i, .hdr__sdo .i { width: 18px; height: 18px; color: var(--muted); }
.hdr__city .hdr__chev, .hdr__phone .hdr__chev { width: 14px; height: 14px; }
.hdr__phone { position: relative; }
.hdr__phone summary { list-style: none; }
.hdr__phone summary::-webkit-details-marker { display: none; }
.hdr__phone[open] .hdr__chev { transform: rotate(180deg); }
.hdr__pop { position: absolute; right: 0; top: calc(100% + 8px); width: 280px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(15, 45, 82, .14); padding: 16px; display: grid; gap: 10px; z-index: 40; }
.hdr__pop-tel { font: 800 1.2rem/1.2 Montserrat, var(--font); color: var(--navy); text-decoration: none; }
.hdr__pop-note { font-size: 13px; color: var(--muted); margin-top: -6px; }
.hdr__pop-msg { display: flex; flex-wrap: wrap; gap: 6px; }
.hdr__pop-msg a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; text-decoration: none; color: var(--navy); }
.hdr__pop-msg a:hover { border-color: var(--accent); }
.hdr__pop-mail { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--navy-2); }
.hdr__pop-mail .i { width: 16px; height: 16px; }
.hdr__icon { width: 44px; height: 44px; border: 0; background: none; border-radius: 10px; display: grid; place-items: center; color: var(--text); cursor: pointer; flex: none; }
.hdr__icon:hover { background: #f2f5fa; }
.hdr__icon .i { width: 22px; height: 22px; }
html.bvi .hdr__icon { background: #000; color: #fff; }
.hdr__cta { flex: none; margin-left: auto; }
.hdr__call-m, .hdr__burger--m { display: none; }

.hdr__nav { height: 52px; }
.hdr__nav-in { height: 100%; display: flex; align-items: center; gap: 16px; }
.hdr__burger { width: 44px; height: 44px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; color: var(--text); border-radius: 10px; flex: none; }
.hdr__burger:hover { background: #f2f5fa; }
.hdr__burger .i { width: 24px; height: 24px; }
.hdr__nav ul { list-style: none; margin: 0 auto; padding: 0; display: flex; gap: 40px; }
.hdr__nav ul a { display: inline-flex; align-items: center; height: 52px; font: 700 13px/1 Montserrat, var(--font); letter-spacing: .04em; text-transform: uppercase; color: var(--text); text-decoration: none; border-bottom: 3px solid transparent; }
.hdr__nav ul a:hover, .hdr__nav ul a[aria-current] { border-bottom-color: var(--accent); }
.hdr__nav-tel { font-weight: 700; color: var(--navy); text-decoration: none; white-space: nowrap; opacity: 0; transition: opacity .2s; }
.hdr.is-stuck .hdr__nav-tel { opacity: 1; }

/* Боковое меню */
.drawer { margin: 0; padding: 0; border: 0; width: min(380px, 92vw); max-width: none; height: 100dvh; max-height: none; background: #fff; box-shadow: 8px 0 40px rgba(5, 15, 30, .25); }
.drawer::backdrop { background: rgba(5, 15, 30, .55); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer__head button { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--text); }
.drawer__head .i { width: 24px; height: 24px; }
.drawer__body { padding: 8px 16px 24px; overflow-y: auto; }
.drawer__t { margin: 16px 0 6px; font: 700 12px/1 Montserrat, var(--font); letter-spacing: .06em; text-transform: uppercase; color: #8a6a00; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer ul a { display: block; padding: 11px 0; border-bottom: 1px solid #eef1f5; color: var(--text); text-decoration: none; font-weight: 600; }
.drawer ul a:hover { color: var(--navy-2); }
.drawer__contact { display: grid; gap: 10px; margin-top: 20px; }
.drawer__tel { font: 800 1.25rem Montserrat, var(--font); color: var(--navy); text-decoration: none; }
.drawer__bvi { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; font: 600 15px var(--font); color: var(--text); cursor: pointer; }
.drawer__bvi .i { width: 20px; height: 20px; }
.footer__bvi { background: none; border: 0; padding: 0; color: #dfe8f4; text-decoration: underline; font: inherit; cursor: pointer; }

/* Липкие элементы страницы курса под новую шапку (при прокрутке остаётся только нижний ряд, 52 px) */
.c-toc { top: 52px; }
.c-aside { top: 68px; }
[id] { scroll-margin-top: 120px; }

@media (max-width: 1280px) { .hdr__tagline { display: none; } .hdr__nav ul { gap: 28px; } }
@media (max-width: 1100px) { .hdr__top-in { gap: 12px; } .hdr__phone .hdr__chev { display: none; } }
@media (max-width: 1000px) {
  .hdr { position: static; }
  .hdr__top { height: 64px; }
  .hdr__nav, .hdr__search, .hdr__city, .hdr__phone, .hdr__sdo, .hdr__icon, .hdr__cta { display: none; }
  .hdr__burger--m, .hdr__call-m { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; color: var(--navy); }
  .hdr__call-m { margin-left: auto; background: var(--accent); color: var(--on-accent); }
  .hdr__call-m .i, .hdr__burger--m .i { width: 22px; height: 22px; }
  .hdr__logo img { width: 96px; }
  .c-toc { top: 0; }
  [id] { scroll-margin-top: 70px; }
}
@media (prefers-reduced-motion: reduce) { .hdr__nav-tel { transition: none; } }
/* исправления: ширина как у первого экрана; кнопка меню в верхнем ряду — только на телефоне */
.hdr .wrap { max-width: 1440px; padding: 0 32px; }
.hdr__burger.hdr__burger--m { display: none; }
@media (max-width: 1000px) {
  .hdr .wrap { padding: 0 16px; }
  .hdr__burger.hdr__burger--m { display: grid; }
}
/* ===================== Страница курса ===================== */
.i { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: -4px; }
[id] { scroll-margin-top: 130px; }
.c-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; margin-top: 12px; }
.c-main { min-width: 0; }
.c-aside { position: sticky; top: 92px; }

.c-head { padding: 8px 0; }
.c-head__kicker { display: inline-block; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; margin-bottom: 8px; }
.c-head__kicker:hover { color: var(--navy); }
.c-head h1 { margin-bottom: 14px; }
.c-head__lead { font-size: 1.08rem; color: #39465a; max-width: 760px; }
.c-head__lead ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.c-head__lead li { position: relative; padding-left: 26px; }
.c-head__lead li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.c-head__cta { display: none; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

.chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 22px 0 6px; padding: 0; }
.chip { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.chip__i { grid-row: span 2; width: 24px; height: 24px; color: var(--navy-2); }
.chip dt { font-size: 13px; color: var(--muted); line-height: 1.2; }
.chip dd { margin: 2px 0 0; font-weight: 700; color: var(--navy); line-height: 1.25; font-size: 15px; }

.c-toc { position: sticky; top: 72px; z-index: 5; background: var(--bg); margin: 18px 0 0; padding: 8px 0; border-bottom: 1px solid var(--line); }
.c-toc ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.c-toc ul::-webkit-scrollbar { display: none; }
.c-toc a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; white-space: nowrap; text-decoration: none; color: var(--navy); font-weight: 600; font-size: 15px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, background-color .2s; }
.c-toc a:hover { border-color: var(--navy); }

.c-sec { margin: 36px 0 0; }
.c-sec > h2 { margin-bottom: 16px; }
.c-note { color: var(--muted); font-size: 15px; margin: 12px 0 0; }

.tiers { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tier { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); transition: background-color .15s; }
.tier:first-child { border-top: 0; }
.tier:hover { background: #fafbfe; }
.tier__name { font-weight: 600; color: var(--text); }
.tier__name small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
.tier__price { font-weight: 800; color: var(--navy); font-size: 1.1rem; white-space: nowrap; }

.perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.perks li { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.perks__i { width: 26px; height: 26px; color: var(--ok); }
.perks b { display: block; color: var(--navy); margin-bottom: 4px; line-height: 1.3; }
.perks p { margin: 0; color: var(--muted); font-size: 15px; }

.c-sec.prose { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; }
.c-sec.prose > * { max-width: 72ch; }
.c-sec.prose > table { max-width: 100%; }
.prose table tr:nth-child(even) td { background: #f8fafd; }
.prose > h2:first-child { margin-top: 0; }

.timeline { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.timeline li { counter-increment: st; position: relative; padding: 0 0 22px 56px; }
.timeline li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; }
.timeline li::after { content: ""; position: absolute; left: 18px; top: 40px; bottom: 2px; width: 2px; background: var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline b { display: block; color: var(--navy); font-size: 1.05rem; padding-top: 7px; }
.timeline p { margin: 4px 0 0; color: #39465a; }

.doc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.doc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.doc-card--get { border-color: #bfe3cc; background: #f6fcf8; }
.doc-card h3 { margin-bottom: 12px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .i { color: var(--ok); width: 18px; height: 18px; margin-top: 3px; }
.doc-card__more { margin-top: 12px; }
.doc-card__more summary { cursor: pointer; color: var(--navy-2); font-weight: 600; min-height: 44px; display: flex; align-items: center; }

.faq-list .faq__item summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding-right: 18px; }
.faq-list .faq__item summary::after { content: none; }
.faq__chev { width: 20px; height: 20px; color: var(--muted); transition: transform .2s ease-out; }
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.js .faq__item.is-extra { display: none; }
.faq-more { margin-top: 6px; }

.order-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: 0 8px 28px rgba(15, 45, 82, .10); display: grid; gap: 10px; }
.order-card__label { color: var(--muted); font-size: 14px; }
.order-card__price { font: 800 2rem/1.1 Montserrat, var(--font); color: var(--navy); }
.order-card__price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.order-card__note { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.order-card__msg { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: center; }
.order-card__msg a { font-weight: 600; }
.order-card__trust { list-style: none; margin: 8px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 14px; color: #39465a; }
.order-card__trust li { display: flex; gap: 10px; align-items: flex-start; }
.order-card__trust .i { color: var(--navy-2); margin-top: 1px; }

.lead__picked { margin: 0; padding: 10px 12px; background: #fff7d6; border: 1px solid var(--accent); border-radius: 10px; font-weight: 600; color: var(--navy); font-size: 15px; }
.more .i { width: 16px; height: 16px; }

.mbar { display: none; }

@media (max-width: 1000px) {
  .c-grid { grid-template-columns: 1fr; }
  .c-aside { display: none; }
  .c-head__cta { display: flex; }
  .c-toc { top: 64px; }
}
@media (max-width: 860px) {
  .page-course { padding-bottom: 76px; }
  .mbar { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(15, 45, 82, .08); transition: transform .25s ease-out; }
  .mbar.is-hidden { transform: translateY(110%); }
  .c-sec.prose { padding: 18px; }
  .tier { grid-template-columns: 1fr auto; }
  .tier .btn { grid-column: 1 / -1; width: 100%; }
  .chips { grid-template-columns: 1fr 1fr; }
  .c-head__cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
html.bvi .order-card, html.bvi .chip, html.bvi .c-sec.prose { border: 2px solid #000; box-shadow: none; }
html.bvi .mbar { background: #fff; }

/* На широком экране цена — в карточке справа, плашку не дублируем. */
@media (min-width: 1001px) { .chip--price { display: none; } }

/* ---------- Первый экран курса: продающий (design-system/attestat24/MASTER.md §9) ---------- */
.c-hero { position: relative; margin: 0; color: #d3dff0; overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% 30%, rgba(42, 92, 153, .55), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(242, 185, 4, .08), transparent 60%),
    linear-gradient(135deg, var(--navy-900) 0%, var(--navy) 55%, #163a68 100%); }
.c-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%, #000 70%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 35%, #000 70%, transparent); }
.c-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 24px; align-items: end; min-height: 560px; }
.c-hero__grid--noimg { grid-template-columns: 1fr; min-height: 0; }
.c-hero__main { padding: 18px 0 44px; align-self: center; }
.c-hero h1 { color: #fff; margin: 14px 0 12px; font-size: clamp(1.8rem, 1.1rem + 2.3vw, 3rem); letter-spacing: -.01em; }
.c-hero__badges { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.c-hero__badges li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 14px; color: #e6eef9; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.c-hero__badges .i { width: 16px; height: 16px; color: var(--accent); }
.c-hero__lead { font-size: 1.1rem; color: #d3dff0; max-width: 640px; margin: 0 0 14px; }
.c-hero__list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 8px; max-width: 640px; }
.c-hero__list li { display: flex; gap: 10px; align-items: flex-start; color: #fff; }
.c-hero__list .i { flex: none; width: 22px; height: 22px; padding: 4px; margin-top: 1px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.c-hero__offer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); max-width: 680px; }
.c-hero__price { display: grid; line-height: 1.15; }
.c-hero__price-label { font-size: 13px; color: #b9c9df; }
.c-hero__price b { font: 800 2rem/1.1 Montserrat, var(--font); color: #fff; white-space: nowrap; }
.c-hero__price b small { font-size: 1rem; font-weight: 600; color: #b9c9df; }
.c-hero__price-note { font-size: 13px; color: #b9c9df; }
.c-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn--lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.c-hero .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .55); }
.c-hero .btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }
.c-hero__micro { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 14px; color: #b9c9df; }
.c-hero__micro .i { width: 16px; height: 16px; color: var(--accent); }

.c-hero__visual { position: relative; align-self: end; height: 100%; min-height: 460px; display: flex; align-items: flex-end; justify-content: center; }
.c-hero__blob { position: absolute; left: 50%; bottom: -60px; width: 420px; height: 420px; margin-left: -210px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ffd84d 0%, var(--accent) 55%, #d99f00 100%); box-shadow: 0 0 120px rgba(242, 185, 4, .35); }
.c-hero__img { position: relative; width: 100%; max-width: 440px; height: auto; display: block; }
.c-hero__float { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .96); color: var(--text); box-shadow: 0 10px 30px rgba(5, 15, 30, .25); font-size: 14px; line-height: 1.25; }
.c-hero__float b { color: var(--navy); }
.c-hero__float--doc { left: -6%; top: 26%; max-width: 230px; }
.c-hero__float--doc .i { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: #fff6d6; color: #8a6a00; flex: none; }
.c-hero__float--stat { right: -2%; bottom: 22%; flex-direction: column; align-items: flex-start; gap: 0; }
.c-hero__float--stat b { font: 800 1.5rem/1.1 Montserrat, var(--font); }
.c-hero__float--stat span { color: var(--muted); }

.crumbs--light { padding-top: 18px; font-size: 14px; }
.crumbs--light ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; color: #b9c9df; }
.crumbs--light li:not(:last-child)::after { content: "›"; margin-left: 6px; color: #8ea6c6; }
.crumbs--light a { color: #d3dff0; }
.crumbs--light a:hover { color: #fff; }

@media (max-width: 1100px) {
  .c-hero__grid { grid-template-columns: minmax(0, 1fr) 340px; min-height: 500px; }
  .c-hero__blob { width: 340px; height: 340px; margin-left: -170px; }
  .c-hero__float--doc { left: -12%; }
}
@media (max-width: 860px) {
  .c-hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .c-hero__visual { display: none; }
  .c-hero__main { padding-bottom: 28px; }
  .c-hero__offer { padding: 14px; gap: 14px; }
  .c-hero__cta, .c-hero__cta .btn { width: 100%; }
  .c-hero__price b { font-size: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) { .c-hero * { transition: none !important; } }
html.bvi .c-hero { background: #fff; color: #000; border-bottom: 2px solid #000; }
html.bvi .c-hero::before, html.bvi .c-hero__visual { display: none; }
html.bvi .c-hero h1, html.bvi .c-hero__lead, html.bvi .c-hero__list li, html.bvi .c-hero__price b, html.bvi .c-hero__badges li, html.bvi .crumbs--light a, html.bvi .crumbs--light ol, html.bvi .c-hero__micro { color: #000; }

/* ---------- Образцы документов | О курсе ---------- */
.c-grid { margin-top: 28px; }
.c-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.c-top--single { grid-template-columns: 1fr; }
.c-gallery { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.c-gallery__main { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #f2f4f8; border-radius: 10px; cursor: zoom-in; overflow: hidden; }
.c-gallery__main img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: contain; }
.c-gallery__zoom { position: absolute; right: 10px; bottom: 10px; background: rgba(15, 45, 82, .82); color: #fff; font-size: 13px; padding: 5px 10px; border-radius: 999px; }
.c-gallery__thumbs { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.c-gallery__thumbs button { display: block; width: 100%; padding: 0; border: 2px solid var(--line); border-radius: 8px; background: #f2f4f8; cursor: pointer; overflow: hidden; aspect-ratio: 4 / 3; }
.c-gallery__thumbs button[aria-current] { border-color: var(--accent); }
.c-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c-gallery__cap { margin: 8px 2px 0; font-size: 13px; color: var(--muted); }

.c-info { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.c-info h2 { font-size: 1.3rem; margin-bottom: 8px; }
.info-list { margin: 0; }
.info-list div { display: grid; grid-template-columns: 44% 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.info-list div:last-child { border-bottom: 0; }
.info-list dt { color: var(--muted); font-size: 15px; }
.info-list dd { margin: 0; font-weight: 600; color: var(--text); }
.c-info__cta { display: none; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1200px); max-height: 94vh; }
.lightbox::backdrop { background: rgba(5, 15, 30, .82); }
.lightbox img { display: block; max-width: 100%; max-height: 92vh; border-radius: 8px; background: #fff; }
.lightbox__close { position: fixed; top: 12px; right: 16px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); font-size: 30px; line-height: 1; cursor: pointer; color: var(--navy); }

@media (max-width: 1100px) {
}
@media (max-width: 1000px) {
  .c-info__cta { display: flex; }
}
@media (max-width: 860px) {
  .c-top { grid-template-columns: 1fr; }
  .c-info__cta { display: none; }
  .info-list div { grid-template-columns: 1fr; gap: 2px; }
}

/* общее правило section { margin: 40px auto } здесь не нужно */
.c-info, .c-top > section { margin: 0; }
.info-list dt { font-size: 14px; }
.info-list dd { font-size: 15px; line-height: 1.4; }
.info-list div { padding: 9px 0; }
@media (min-width: 1001px) { .info--price { display: none !important; } }
.info--price dd { color: var(--navy); font-weight: 800; }

/* Первый экран: цена и кнопка должны быть видны без прокрутки на 1366×768 и выше */
.c-hero__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); min-height: 0; }
.c-hero__main { padding: 4px 0 36px; }
.crumbs--light { padding-top: 14px; }
.c-hero__badges { margin-top: 14px; }
.c-hero h1 { font-size: clamp(1.7rem, 1.1rem + 1.9vw, 2.6rem); margin: 12px 0 10px; }
.c-hero__lead { font-size: 1.02rem; margin-bottom: 12px; }
.c-hero__list { gap: 6px; margin-bottom: 18px; font-size: 16px; }
.c-hero__visual { min-height: 0; }
.c-hero__float--doc { top: auto; bottom: 52%; left: -10%; }
.c-hero__float--stat { bottom: 16%; right: -4%; }
.c-hero h1, .c-hero__lead { text-wrap: balance; }

/* Телефон: цена и кнопка — сразу под зацепкой; бейджи и цепочка — одной строкой с прокруткой */
@media (max-width: 860px) {
  .c-hero__main { display: flex; flex-direction: column; }
  .c-hero__list { order: 1; margin: 16px 0 0; }
  .c-hero__micro { order: 2; }
  .c-hero__badges, .crumbs--light ol { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .c-hero__badges::-webkit-scrollbar, .crumbs--light ol::-webkit-scrollbar { display: none; }
  .c-hero__badges li { flex: none; font-size: 13px; padding: 5px 10px; }
  .crumbs--light li { flex: none; white-space: nowrap; }
  .c-hero__lead { text-wrap: pretty; }
}
@media (max-width: 1100px) { .c-hero__grid { grid-template-columns: minmax(0, 1fr) 320px; } }
@media (max-width: 860px) { .c-hero__grid { grid-template-columns: minmax(0, 1fr); } }
.c-hero__main { min-width: 0; }

/* ===== Первый экран курса — светлый, как на старом сайте (серый фон, крупный персонаж 640 px) ===== */
.c-hero { background: #eceef2; color: var(--text); }
.c-hero::before { display: none; }
.c-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 560px; align-items: stretch; }
.c-hero__main { align-self: center; padding: 8px 0 40px; }
.c-hero h1 { color: #1d2433; }
.c-hero__lead { color: #4a5568; }
.c-hero__list li { color: var(--text); }
.c-hero__badges li { background: #fff; color: var(--navy); border-color: #dde3ec; }
.c-hero__badges .i { color: #8a6a00; }
.c-hero__offer { background: #fff; border-color: #dde3ec; box-shadow: 0 1px 2px rgba(15, 45, 82, .06), 0 6px 20px rgba(15, 45, 82, .07); }
.c-hero__price-label, .c-hero__price-note, .c-hero__price b small { color: var(--muted); }
.c-hero__price b { color: var(--navy); }
.c-hero__micro { color: var(--muted); }
.c-hero__micro .i { color: #8a6a00; }
.crumbs--light ol { color: var(--muted); }
.crumbs--light a { color: var(--muted); }
.crumbs--light a:hover { color: var(--navy); }
.crumbs--light li:not(:last-child)::after { color: #9aa6b6; }
.c-hero__visual { align-self: end; justify-content: flex-end; min-height: 0; height: auto; }
.c-hero__img { width: 100%; max-width: 640px; height: auto; }
.c-hero__float--stat { right: auto; left: 2%; bottom: 10%; }
@media (max-width: 1100px) { .c-hero__grid { grid-template-columns: minmax(0, 1fr) 420px; min-height: 480px; } }
@media (max-width: 860px) { .c-hero__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; } }
html.bvi .c-hero { background: #fff; }
/* компактнее, чтобы персонаж занимал всю высоту блока, как раньше */
.c-hero__grid { grid-template-columns: minmax(0, 1fr) 600px; gap: 24px; min-height: 0; }
.c-hero__main { padding: 4px 0 36px; }
.crumbs--light ol { flex-wrap: nowrap; overflow: hidden; }
.crumbs--light li { white-space: nowrap; }
.crumbs--light li:last-child { overflow: hidden; text-overflow: ellipsis; }
.c-hero h1 { font-size: clamp(1.7rem, 1rem + 1.7vw, 2.45rem); margin: 12px 0 10px; }
.c-hero__lead { font-size: 1rem; }
.c-hero__list { font-size: 15.5px; margin-bottom: 16px; }
.c-hero__offer { padding: 14px 16px; gap: 12px 20px; }
.c-hero__price b { font-size: 1.75rem; }
.c-hero__img { max-width: 600px; }
@media (max-width: 1100px) { .c-hero__grid { grid-template-columns: minmax(0, 1fr) 440px; } }
@media (max-width: 860px) { .c-hero__grid { grid-template-columns: minmax(0, 1fr); } .crumbs--light ol { overflow-x: auto; } }
/* первый экран шире основной сетки — как на старом сайте */
.c-hero .wrap { max-width: 1440px; padding: 0 32px; }
.c-hero__grid { grid-template-columns: minmax(0, 1fr) 600px; gap: 32px; }
@media (max-width: 1280px) { .c-hero__grid { grid-template-columns: minmax(0, 1fr) 500px; } }
@media (max-width: 1100px) { .c-hero__grid { grid-template-columns: minmax(0, 1fr) 420px; } }
@media (max-width: 860px) { .c-hero .wrap { padding: 0 16px; } .c-hero__grid { grid-template-columns: minmax(0, 1fr); } }
/* без бейджей и подписи под кнопками — чуть больше воздуха над заголовком */
.c-hero h1 { margin-top: 18px; }
.c-hero__main { padding-bottom: 44px; }
.btn--max img { width: 24px; height: 24px; border-radius: 6px; flex: none; }

/* ---------- Образцы | О курсе — как на старом сайте (владелец 03.11): белый фон, без карточек,
   строки «Название — значение», миниатюры по центру под образцом, ссылка «Полная информация» ---------- */
body.page-course { --bg: #fff; }
.page-course .c-grid, .page-course .related { max-width: 1440px; padding: 0 32px; }
.page-course .c-grid { margin-top: 48px; }
.c-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.c-gallery, .c-info { background: none; border: 0; border-radius: 0; padding: 0; }
.c-gallery__main { background: none; border-radius: 0; }
.c-gallery__main img { max-height: 540px; }
.c-gallery__thumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.c-gallery__thumbs button { width: 72px; height: 72px; aspect-ratio: auto; padding: 4px; border: 1px solid #e3e6eb; border-radius: 8px; background: #fff; }
.c-gallery__thumbs button[aria-current] { padding: 3px; border: 2px solid var(--accent); }
.c-gallery__thumbs img { object-fit: contain; }
.c-info { font-family: Montserrat, var(--font); }
.c-info h2 { font: 500 1.25rem/1.3 Montserrat, var(--font); color: var(--text); margin: 0 0 16px; }
.info-list div { display: block; margin: 0 0 10px; padding: 0; border: 0; font-size: 17px; line-height: 1.6; }
.info-list dt, .info-list dd { display: inline; margin: 0; font-size: inherit; line-height: inherit; font-weight: 400; }
.info-list dt { color: #8a94a3; }
.info-list dt::after { content: ' — '; }
.info-list dd { color: var(--text); }
.c-info__more { display: inline-block; margin-top: 12px; font-size: 17px; color: #d29b00; text-decoration: none; border-bottom: 1px dotted currentColor; }
.c-info__more:hover { color: var(--link-hover); }
@media (max-width: 860px) {
  .page-course .c-grid, .page-course .related { padding: 0 16px; }
  .page-course .c-grid { margin-top: 28px; }
  .c-top, .c-top.c-top--single { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .info-list div { font-size: 16px; }
}
html.bvi .info-list dt, html.bvi .c-info__more { color: #000; }
.c-top.c-top--single { grid-template-columns: minmax(0, 820px); }

/* ---------- Кнопки первого экрана (владелец 03.11): без карточки и цены, две крупные кнопки ---------- */
.c-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.hbtn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 64px; padding: 0 30px; border-radius: 14px; border: 1px solid transparent; font: 600 17px/1.2 Montserrat, var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .18s ease-out, box-shadow .18s ease-out, background-color .18s ease-out; }
.hbtn:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.hbtn--main { background: var(--accent); color: var(--on-accent); box-shadow: 0 12px 26px -10px rgba(214, 160, 0, .75); }
.hbtn--main:hover { background: var(--accent-2); color: var(--on-accent); transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(214, 160, 0, .85); }
.hbtn--main .i { width: 20px; height: 20px; transition: transform .18s ease-out; }
.hbtn--main:hover .i { transform: translateX(4px); }
.hbtn--max { background: #fff; color: var(--navy); border-color: #e1e5ec; box-shadow: 0 1px 2px rgba(15, 45, 82, .06), 0 10px 24px -10px rgba(15, 45, 82, .22); }
.hbtn--max:hover { color: var(--navy); border-color: #c9d0db; transform: translateY(-2px); box-shadow: 0 1px 2px rgba(15, 45, 82, .06), 0 16px 30px -10px rgba(15, 45, 82, .30); }
.hbtn--max img { width: 28px; height: 28px; border-radius: 8px; flex: none; }
.hbtn--max .i { width: 20px; height: 20px; }
@media (max-width: 600px) {
  .c-hero__actions { gap: 10px; margin-top: 18px; }
  .hbtn { width: 100%; min-height: 56px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .hbtn, .hbtn .i { transition: none; } .hbtn:hover, .hbtn:hover .i { transform: none; } }
html.bvi .hbtn--main { background: #000; color: #fff; box-shadow: none; }
html.bvi .hbtn--max { border: 2px solid #000; color: #000; box-shadow: none; }
/* Кнопка «Получить …» как на старом сайте (владелец 03.11): жёлтый #F0B804, белый жирный текст */
.hbtn--main { background: #f0b804; color: #fff; font-weight: 700; text-shadow: 0 1px 1px rgba(110, 75, 0, .22); }
.hbtn--main:hover { background: #e6ad00; color: #fff; }
html.bvi .hbtn--main { text-shadow: none; }
/* Кнопки первого экрана компактнее (владелец 03.11): 52 px вместо 64 */
.c-hero__actions { gap: 12px; }
.hbtn { min-height: 52px; padding: 0 24px; gap: 10px; border-radius: 12px; font-size: 15.5px; }
.hbtn--main { box-shadow: 0 8px 18px -8px rgba(214, 160, 0, .7); }
.hbtn--main .i, .hbtn--max .i { width: 18px; height: 18px; }
.hbtn--max { box-shadow: 0 1px 2px rgba(15, 45, 82, .06), 0 6px 16px -8px rgba(15, 45, 82, .22); }
.hbtn--max img { width: 24px; height: 24px; border-radius: 7px; }
@media (max-width: 600px) { .hbtn { min-height: 50px; font-size: 15.5px; } }

/* Подзаголовок-«хук» первого экрана (ручной, content/courses.json → hero): факт крупнее, ключевая фраза — жёлтым маркером */
.c-hero__lead--hook { font-size: 1.2rem; line-height: 1.5; font-weight: 500; color: #1f2a3d; max-width: 620px; margin: 0 0 16px; text-wrap: pretty; }
.c-hero__lead--hook strong { font-weight: 700; color: var(--navy); background: linear-gradient(transparent 58%, rgba(242, 185, 4, .45) 58%); padding: 0 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (max-width: 600px) { .c-hero__lead--hook { font-size: 1.08rem; } }
html.bvi .c-hero__lead--hook strong { background: none; text-decoration: underline; }
/* Подзаголовок-хук v2 (владелец 03.11: маркер «не очень красивый»): без заливки — жёлтая полоса слева,
   20 px тёмным, ключевая фраза — жирный тёмно-синий. Шкала 16/20/48, интервал 1.55, контраст > 7:1. */
.c-hero__lead--hook { font-size: 1.25rem; line-height: 1.55; font-weight: 400; color: #34425a; max-width: 640px; margin: 4px 0 20px; padding-left: 16px; border-left: 3px solid var(--accent); }
.c-hero__lead--hook strong { font-weight: 600; color: var(--navy); background: none; padding: 0; }
@media (max-width: 600px) { .c-hero__lead--hook { font-size: 1.1rem; padding-left: 14px; margin-bottom: 4px; } }
/* Галочки первого экрана (владелец 03.11: «красивее и аккуратнее»): цельный значок check-badge —
   жёлтый круг 20 px + белая галочка 2.3 px со скруглёнными концами, по центру первой строки. */
.c-hero__list li { gap: 12px; }
.c-hero__list .i { width: 20px; height: 20px; padding: 0; margin-top: 2px; border-radius: 0; background: none; color: var(--accent); }
html.bvi .c-hero__list .i { color: #000; }

/* ---------- Первый экран v2 (тест на стропальщике; .c-hero--v2 ставится при ручном hero) ----------
   По разбору Impeccable + UI UX Pro Max 04.11: читаемость белого на жёлтом, без висячих слов,
   видимый фокус на светлом фоне, крошки 44 px на телефоне. «Получить …» открывает модальное окно (владелец 04.11). */
.c-hero--v2 .c-hero__list span { text-wrap: pretty; }
.c-hero--v2 .hbtn--main { text-shadow: 0 1px 2px rgba(90, 60, 0, .45); }
.c-hero--v2 a:focus-visible, .c-hero--v2 button:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.c-hero--v2 picture { display: contents; }
@media (max-width: 860px) {
  /* Крошки: цель нажатия 44 px без изменения высоты строки */
  .c-hero--v2 .crumbs--light a { display: inline-block; padding: 12px 0; margin: -12px 0; }
}

/* ---------- Модальное окно заявки (первый экран v2) ----------
   UI UX Pro Max: modal-escape (× и Esc), focus-states, modal-motion (мягкое появление), blur-purpose (фон затемнён). */
html:has(.lead-modal[open]) { overflow: hidden; }
.lead-modal { width: min(500px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: 20px; background: #fff; color: var(--text); box-shadow: 0 2px 6px rgba(11, 35, 64, .12), 0 30px 70px -20px rgba(11, 35, 64, .45); overflow: auto; overscroll-behavior: contain; }
.lead-modal::backdrop { background: rgba(11, 35, 64, .55); backdrop-filter: blur(3px); }
.lead-modal[open] { animation: lead-modal-in .22s cubic-bezier(.2, .8, .2, 1); }
.lead-modal[open]::backdrop { animation: lead-modal-fade .22s ease-out; }
@keyframes lead-modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes lead-modal-fade { from { opacity: 0; } to { opacity: 1; } }
.lead-modal__in { position: relative; padding: 28px 28px 24px; }
.lead-modal__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 12px; background: none; color: var(--navy); cursor: pointer; }
.lead-modal__close:hover { background: #f2f5fa; }
.lead-modal__close .i { width: 22px; height: 22px; }
.lead-modal h2 { margin: 0 44px 6px 0; font: 700 1.45rem/1.25 Montserrat, var(--font); color: var(--navy); text-wrap: balance; }
.lead-modal__text { margin: 0 0 18px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.lead-modal a:focus-visible, .lead-modal button:focus-visible, .lead-modal input:focus-visible, .lead-modal select:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

.hero-form { display: grid; gap: 14px; }
.hero-form .field { gap: 6px; font-size: 14px; font-weight: 600; color: var(--text); }
.hero-form .field input, .hero-form .field select { width: 100%; height: 52px; padding: 0 14px; font: 400 16px/1.2 var(--font); color: var(--text); background-color: #fff; border: 1px solid #c8d1de; border-radius: 10px; }
.hero-form .field select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230f2d52' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.hero-form .field input:focus, .hero-form .field select:focus { border-color: var(--navy); }
.hero-form .field input[aria-invalid="true"] { border-color: var(--err); }
.hero-form .consent { min-height: 44px; align-items: center; font-size: 13px; line-height: 1.4; }
.hero-form .consent input { margin-top: 0; width: 20px; height: 20px; accent-color: var(--navy); }
.hero-form__send { width: 100%; }
.hero-form .lead__status { min-height: 0; }
.hero-form .lead__status:empty { display: none; }
.hero-form__alt { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }
.hero-form__alt a { color: var(--navy); font-weight: 600; text-underline-offset: 3px; }

/* Телефон: шторка снизу — до кнопки дотягивается большой палец */
@media (max-width: 600px) {
  .lead-modal { width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .lead-modal[open] { animation-name: lead-sheet-in; }
  @keyframes lead-sheet-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  .lead-modal__in { padding: 22px 16px calc(18px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .lead-modal[open], .lead-modal[open]::backdrop { animation: none; } }
html.bvi .lead-modal { border: 2px solid #000; box-shadow: none; }

/* ---------- Окно заявки: телефон (шторка), закрытие, экран успеха — 04.11 ----------
   Impeccable adapt: шторка снизу, цели ≥ 44 px, safe-area. UI UX Pro Max: modal-escape (смахивание вниз),
   focus-not-obscured (над клавиатурой: --kb из visualViewport), submit-feedback (экран «Заявка принята»). */
.lead-modal { --drag: 0px; --kb: 0px; }
.lead-modal__grab { display: none; }
.lead-modal.is-closing { animation: lead-modal-out .18s ease-in forwards; }
.lead-modal.is-closing::backdrop { animation: lead-modal-fade-out .2s ease-in forwards; }
@keyframes lead-modal-out { to { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes lead-modal-fade-out { to { opacity: 0; } }

/* Экран успеха: после отправки форма сворачивается в подтверждение и кнопку «Готово» */
.hero-form__ok { display: none; }
.hero-form:has(.lead__status.is-ok) > :not(.lead__status):not(.hero-form__ok) { display: none; }
.hero-form:has(.lead__status.is-ok) .hero-form__ok { display: inline-flex; width: 100%; }
.lead-modal__in:has(.lead__status.is-ok) .lead-modal__text { display: none; }
.hero-form .lead__status.is-ok { padding: 18px 16px 18px 60px; border-radius: 14px; color: #14532d; font-size: 16px; font-weight: 600; line-height: 1.45;
  background: #ecf7f0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%231d7a46'/%3E%3Cpath d='M5.9 10.4l2.7 2.7 5.6-5.8' fill='none' stroke='%23fff' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat 16px center / 30px; }
.hero-form .lead__status.is-err { font-size: 15px; }

@media (max-width: 600px) {
  .lead-modal { width: 100%; max-width: 100%; margin: auto 0 var(--kb); max-height: calc(100dvh - var(--kb) - 12px); border-radius: 24px 24px 0 0;
    transform: translateY(var(--drag)); transition: transform .26s cubic-bezier(.2, .9, .3, 1), margin-bottom .2s ease-out; }
  .lead-modal.is-dragging { transition: none; }
  .lead-modal[open] { animation: lead-sheet-in .3s cubic-bezier(.2, .9, .3, 1); }
  .lead-modal.is-closing { animation: none; transform: translateY(100%); transition: transform .2s ease-in; }
  /* Ручка: видимая полоска + невидимая зона захвата 72×28 */
  .lead-modal__grab { display: block; position: absolute; top: 0; left: 50%; width: 72px; height: 28px; margin-left: -36px; touch-action: none; cursor: grab; }
  .lead-modal__grab::before { content: ''; position: absolute; left: 18px; right: 18px; top: 10px; height: 5px; border-radius: 3px; background: #d3d9e2; }
  .lead-modal__in { padding: 30px 16px calc(16px + env(safe-area-inset-bottom)); }
  .lead-modal__close { top: 16px; right: 8px; }
  .lead-modal h2 { margin: 0 48px 6px 0; font-size: 1.3rem; }
  .lead-modal__text { margin-bottom: 16px; font-size: 15px; }
  .hero-form { gap: 12px; }
  .hero-form .field input { height: 54px; font-size: 17px; }
  .hero-form__send, .hero-form__ok { min-height: 56px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .lead-modal, .lead-modal.is-closing, .lead-modal.is-closing::backdrop { animation: none; transition: none; }
}
.lead-modal:focus { outline: none; }

/* Телефон (владелец 04.11): нижней панели «Позвонить | Записаться» больше нет — без отступа под неё;
   кнопки первого экрана — ПОСЛЕ подзаголовка и пунктов с галочками (как на компьютере). */
@media (max-width: 1000px) { .page-course { padding-bottom: 0; } }
@media (max-width: 860px) {
  .c-hero__list { order: 0; margin: 16px 0 0; }
  .c-hero__actions { order: 0; margin-top: 22px; }
}
/* ===================== Главная (по структуре старого сайта) ===================== */
.h-kicker { display: block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8a6a00; margin-bottom: 6px; }
.h-sec { margin-top: 56px; }
.h-sec__head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 24px; margin-bottom: 20px; }
.h-sec__head h2 { margin: 0; flex: 1 1 auto; }
.h-sec__head .h-kicker { flex-basis: 100%; margin: 0; }
.h-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--navy); min-height: 44px; }
.h-more:hover { color: var(--link-hover); }
.h-more .i { width: 18px; height: 18px; }

/* Промо-слайдер */
.h-promo { margin: 20px 0 0; }
.h-slider { position: relative; background: #eceff4; border-radius: 24px; overflow: hidden; }
.h-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.h-slides::-webkit-scrollbar { display: none; }
.h-slides:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.h-slide { flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: end; min-height: 500px; position: relative; }
.h-slide__text { padding: 56px 0 96px 56px; align-self: center; }
.h-slide__kicker { display: inline-block; background: #fff; color: var(--navy); font-weight: 600; font-size: 14px; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.h-slide__title { font: 800 clamp(1.6rem, 1rem + 1.8vw, 2.5rem)/1.18 Montserrat, var(--font); color: #1d2433; margin: 0 0 18px; }
.h-slide__desc { color: #4a5568; font-size: 1.08rem; max-width: 620px; margin: 0 0 26px; }
.h-slide__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.h-slide__img { align-self: end; justify-self: center; width: 100%; max-width: 560px; height: auto; display: block; }
.h-slider__nav { position: absolute; left: 56px; bottom: 28px; display: flex; align-items: center; gap: 14px; }
.h-slider__btn { width: 48px; height: 48px; border-radius: 12px; border: 0; background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(15, 45, 82, .08); transition: background-color .2s; }
.h-slider__btn:hover { background: var(--accent); }
.h-slider__btn .i { width: 22px; height: 22px; }
.h-slider__btn .is-back { transform: rotate(180deg); }
.h-slider__dots { display: flex; gap: 6px; }
.h-slider__dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: #c3cad6; cursor: pointer; position: relative; }
.h-slider__dots button::after { content: ""; position: absolute; inset: -12px; } /* зона нажатия 34px */
.h-slider__dots button[aria-current] { background: var(--navy); width: 26px; border-radius: 6px; }

/* Направления */
.dirs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.dir { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; height: 100%; padding: 22px 52px 22px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--navy); transition: border-color .2s, box-shadow .2s; }
.dir:hover { border-color: var(--accent); box-shadow: 0 8px 22px rgba(15, 45, 82, .08); }
.dir__n { grid-row: span 2; font: 800 2.2rem/1 Montserrat, var(--font); color: var(--navy); min-width: 2ch; }
.dir b { font-size: 1.05rem; line-height: 1.3; }
.dir__sub { color: var(--muted); font-size: 14px; }
.dir__go { position: absolute; right: 18px; top: 50%; margin-top: -11px; width: 22px; height: 22px; color: #a2adbd; transition: color .2s, transform .2s; }
.dir:hover .dir__go { color: var(--navy); transform: translateX(3px); }

/* О компании + преимущества */
.h-about { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.h-about__text { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 30px 34px; }
.h-about__text > * { max-width: 70ch; }
.h-adv { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.h-adv li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
.h-adv__i { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: #fff6d6; color: #8a6a00; grid-row: span 2; }
.h-adv b { color: var(--navy); line-height: 1.35; }
.h-adv p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

/* Этапы */
.h-steps { list-style: none; margin: 0; padding: 0; counter-reset: hs; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.h-steps li { counter-increment: hs; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.h-steps li::before { content: counter(hs, decimal-leading-zero); display: block; font: 800 1.6rem/1 Montserrat, var(--font); color: var(--accent); margin-bottom: 12px; }
.h-steps b { display: block; color: var(--navy); margin-bottom: 6px; }
.h-steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* Лицензия */
.h-licence { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; background: linear-gradient(135deg, #0f2d52, #183f70); color: #d3dff0; border-radius: 20px; padding: 34px 38px; }
.h-licence h2 { color: #fff; }
.h-licence__i { width: 64px; height: 64px; color: var(--accent); }
.h-licence p { max-width: 800px; }
.h-licence__note { font-size: 15px; color: #b9c9df; }
.h-licence .btn--line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.h-licence .btn--line:hover { border-color: #fff; color: #fff; }

/* Блог */
.h-blog { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.h-blog a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--text); transition: border-color .2s; }
.h-blog a:hover { border-color: var(--accent); }
.h-blog time { font-size: 13px; color: var(--muted); }
.h-blog b { color: var(--navy); font-size: 1.05rem; line-height: 1.35; }
.h-blog p { margin: 0; color: var(--muted); font-size: 15px; }

/* Отзывы */
.h-reviews { list-style: none; margin: 0; padding: 0 0 6px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; }
.h-review { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.h-review__stars { color: #e0a800; letter-spacing: 2px; font-size: 18px; }
.h-review p { margin: 0; flex: 1; }
.h-review__who b { display: block; color: var(--navy); }
.h-review__who span { color: var(--muted); font-size: 14px; }

/* Представительства */
.h-offices { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.h-offices li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: grid; gap: 4px; }
.h-offices li.is-central { border-color: var(--accent); background: #fffaf0; }
.h-offices__tag { font-size: 12px; font-weight: 700; color: #8a6a00; text-transform: uppercase; letter-spacing: .05em; }
.h-offices b { color: var(--navy); font-size: 1.05rem; }
.h-offices small { color: var(--muted); }

.page-home .faq { margin-top: 56px; }

@media (max-width: 1000px) {
  .h-slide { grid-template-columns: 1fr; min-height: 0; }
  .h-slide__img { display: none; }
  .h-slide__text { padding: 32px 24px 92px; }
  .h-slider__nav { left: 24px; bottom: 22px; }
  .h-about { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .h-slider { border-radius: 18px; }
  .h-about__text { padding: 20px; }
  .h-licence { grid-template-columns: 1fr; padding: 24px 20px; }
  .h-licence__i { width: 48px; height: 48px; }
  .h-sec { margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) { .h-slides { scroll-behavior: auto; } }
html.bvi .h-slider, html.bvi .h-licence { background: #fff; color: #000; border: 2px solid #000; }
html.bvi .h-licence h2, html.bvi .h-licence .btn--line { color: #000; }

/* ---------- «О компании»: слева текст, справа видео + показатели (как на старом сайте) ---------- */
.h-about { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; }
.h-about__text h2 { margin-top: 0; }
.h-about__side { display: grid; gap: 14px; }
.h-about__p { margin: 0; color: #39465a; }
.h-video { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: pointer; background: #0f2d52; aspect-ratio: 16 / 9; }
.h-video img { display: block; width: 100%; height: 100%; object-fit: cover; }
.h-video--about { background: radial-gradient(circle at 25% 30%, #2a5c99 0%, rgba(42, 92, 153, 0) 55%), linear-gradient(135deg, #0f2d52, #183f70); }
.h-video__brand { position: absolute; left: 24px; top: 22px; display: flex; align-items: center; gap: 10px; color: #fff; font: 800 18px/1.1 Montserrat, var(--font); text-align: left; }
.h-video__cap { position: absolute; left: 24px; bottom: 20px; color: #d3dff0; font-size: 15px; }
.h-video__play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: var(--accent); box-shadow: 0 6px 24px rgba(0, 0, 0, .25); transition: transform .2s; }
.h-video__play::after { content: ""; position: absolute; left: 29px; top: 23px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent var(--on-accent); }
.h-video:hover .h-video__play { transform: scale(1.06); }
.h-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.h-stats { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.h-stats li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 4px; }
.h-stats__i { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: #fff6d6; color: #8a6a00; margin-bottom: 6px; }
.h-stats b { color: var(--navy); line-height: 1.3; }
.h-stats span { color: var(--muted); font-size: 14px; }

/* Преимущества — строкой из четырёх */
.h-adv { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.h-adv li { grid-template-columns: auto 1fr; }
.h-adv__i { width: 28px; height: 28px; padding: 0; background: none; color: var(--ok); grid-row: auto; }

/* Видеоблог */
.h-videos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.h-videos li { display: grid; gap: 10px; }
.h-videos .h-video__play { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.h-videos .h-video__play::after { left: 22px; top: 17px; border-width: 11px 0 11px 17px; }
.h-videos__t { color: var(--navy); line-height: 1.35; }

@media (max-width: 1000px) { .h-about { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .h-stats { grid-template-columns: 1fr; } }
.h-video .h-video__brand img { width: 30px; height: 44px; object-fit: contain; }
