/* ==========================================================================
   components.css — общие компоненты v5 (по доске «v5 Компоненты» и страницам дизайна).
   Порядок разделов: 1 кнопки · 2 чипы/бейджи/табы · 3 hero · 4 заголовки секций ·
   5 карточки · 6 слоты изображений · 7 крошки · 8 FAQ · 9 таймлайн и шаги · 10 бейдж «Чистая зона» ·
   11 формы · 12 модальные окна · 13 cookies · 14 липкая панель · 15 шапка · 16 подвал ·
   17 текстовые страницы · 18 разное.
   Страничные стили — в css/pages/<имя>.css, классы там начинаются с имени страницы (.home-…, .model-…).
   ========================================================================== */

/* ==========================================================================
   1. Кнопки
   .btn + вариант (--primary | --yellow | --ghost | --outline | --dark | --white | --ghost-dark | --text)
   размер: --sm 44 · --md 46 · (по умолчанию 52) · --lg 56
   «пилюля с круглой стрелкой»: .btn--arrow + <span class="btn__arrow">→</span>
   ========================================================================== */
.btn {
  --btn-h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--btn-h); padding: 0 24px;
  border: 1px solid transparent; border-radius: var(--r-pill);
  background: none; color: inherit;
  font: 600 15px/1 var(--font); white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--sm { --btn-h: 44px; font-size: 14px; padding: 0 20px; }
.btn--md { --btn-h: 46px; font-size: 14px; padding: 0 20px; }
.btn--lg { --btn-h: 56px; padding: 0 28px; }
.btn--block { display: flex; width: 100%; }
.btn--primary { background: var(--bm-blue-900); color: #fff; }
.btn--primary:hover { background: var(--bm-blue-600); color: #fff; }
.btn--yellow { background: var(--bm-yellow); color: var(--bm-dark); }
.btn--yellow:hover { background: var(--bm-yellow-hover); color: var(--bm-dark); }
.btn--ghost { background: #fff; border-color: var(--bm-line-strong); color: var(--bm-ink); }
.btn--ghost:hover { border-color: var(--bm-blue-900); color: var(--bm-blue-900); }
.btn--outline { background: #fff; border-color: var(--bm-line-blue); color: var(--bm-blue-900); }
.btn--outline:hover { border-color: var(--bm-blue-900); color: var(--bm-blue-900); }
.btn--dark { background: var(--bm-dark); color: #fff; }
.btn--dark:hover { background: #26262b; color: #fff; }
.btn--white { background: #fff; color: var(--bm-dark); }
.btn--white:hover { background: var(--bm-blue-50); color: var(--bm-dark); }
.btn--ghost-dark { background: transparent; border-color: #3a3a40; color: #fff; }   /* на тёмном фоне */
.btn--ghost-dark:hover { border-color: #fff; color: #fff; }
.btn--ghost-light { background: transparent; border-color: rgba(255, 255, 255, .4); color: #fff; }   /* на синем */
.btn--ghost-light:hover { border-color: #fff; color: #fff; }
.btn--text {   /* «или заказать звонок» */
  height: auto; padding: 6px 0; border: 0; border-radius: 0; color: var(--bm-ink);
  text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--bm-blue-600);
}
.btn--text:hover { color: var(--bm-blue-900); }
.btn--arrow { padding: 0 6px 0 22px; gap: 12px; }
.btn--arrow.btn--sm { padding: 0 6px 0 18px; gap: 10px; }
.btn--arrow.btn--md { padding: 0 6px 0 22px; gap: 12px; }
.btn--arrow.btn--lg { padding: 0 10px 0 28px; gap: 16px; }
.btn__arrow {
  flex: none; width: calc(var(--btn-h) - 12px); height: calc(var(--btn-h) - 12px);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #fff; color: var(--bm-blue-900); font-size: 15px; line-height: 1;
}
.btn--lg .btn__arrow { width: 38px; height: 38px; font-size: 17px; }
.btn--yellow .btn__arrow { background: var(--bm-dark); color: var(--bm-yellow); }
.btn--white .btn__arrow { background: var(--bm-blue-600); color: #fff; }
.btn--dark .btn__arrow { background: var(--bm-yellow); color: var(--bm-dark); }
.btn--ghost .btn__arrow, .btn--outline .btn__arrow { background: var(--bm-blue-900); color: #fff; }
.btn[disabled], .btn.is-loading { cursor: wait; opacity: .9; }

/* Текстовая ссылка со стрелкой («Подробнее →») */
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1 var(--font); color: var(--bm-blue-900); padding: 6px 0; }
.link-arrow:hover { color: var(--bm-blue-600); }
/* Круглая стрелка в карточках-ссылках */
.circle-arrow { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--bm-blue-900); color: #fff; display: flex; align-items: center; justify-content: center; }
/* Круглая иконка-кнопка: поиск, закрыть, бургер */
.icon-btn {
  flex: none; width: 46px; height: 46px; border-radius: 50%; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--bm-line); background: #fff; color: var(--bm-blue-900); cursor: pointer;
  font: 400 20px/1 var(--font);
}
.icon-btn:hover { border-color: var(--bm-blue-900); }
.icon-btn[aria-expanded="true"] { border-color: var(--bm-blue-900); background: var(--bm-blue-50); }
.icon-btn--sm { width: 40px; height: 40px; border: 0; background: var(--bm-gray-100); color: var(--bm-text-3); }
.icon-btn--sm:hover { background: var(--bm-line-soft); }
.icon-btn--solid { border: 0; background: var(--bm-blue-900); color: #fff; width: 44px; height: 44px; }

/* ==========================================================================
   2. Чипы, бейджи, табы
   ========================================================================== */
.chip {   /* тег применения: «Медицина и фарма» */
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 12px/1 var(--font); border: 1px solid var(--bm-line); color: #44454c;
  padding: 8px 11px; border-radius: var(--r-pill); white-space: nowrap;
}
.chip--blue { background: var(--bm-blue-50); border-color: transparent; color: var(--bm-blue-900); padding: 7px 10px; }   /* активный фильтр */
.chip--white { background: #fff; border-color: transparent; color: var(--bm-blue-900); font-size: 13px; line-height: 1.2; padding: 7px 11px; }
button.chip, a.chip { cursor: pointer; }
.chip--dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--bm-blue-600); box-shadow: 0 0 0 4px var(--bm-blue-50); margin-right: 4px; }
.chip--note { font-size: 13px; line-height: 1.2; padding: 8px 14px 8px 10px; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.badge {   /* плашка на изображении */
  display: inline-block; font: 600 11px/1 var(--font); background: #fff; color: var(--bm-ink);
  padding: 8px 11px; border-radius: var(--r-pill); pointer-events: none;
}
.badge--lg { font-size: 12px; padding: 9px 13px; }
.badge--dark { background: rgba(13, 13, 15, .75); color: #fff; }
.badge--yellow { background: var(--bm-yellow); color: var(--bm-dark); }
.badge--abs { position: absolute; }

.count {   /* счётчик в табе */
  display: inline-block; font: 600 12px/1 var(--font); border-radius: var(--r-pill); padding: 7px 9px;
  background: var(--bm-gray-100); color: var(--bm-muted);
}
.count--sm { font-weight: 500; padding: 4px 8px; color: var(--bm-muted-2); }

/* Табы-пилюли (каталог). JS: [data-tabs] > [data-tab] + [data-tab-panel] */
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px;
  border-radius: var(--r-pill); border: 1px solid var(--bm-line); background: #fff; color: var(--bm-ink);
  font: 600 14px/1 var(--font); white-space: nowrap; cursor: pointer;
}
.tab:has(.count) { padding-right: 8px; }
.tab:hover { border-color: var(--bm-blue-900); color: var(--bm-ink); }
.tab.is-active, .tab[aria-selected="true"] { border-color: var(--bm-blue-900); background: var(--bm-blue-900); color: #fff; }
.tab.is-active .count, .tab[aria-selected="true"] .count { background: var(--bm-yellow); color: var(--bm-dark); }
.tab-panel[hidden] { display: none; }

/* Якорная навигация карточки модели: прилипает под шапкой */
.anchor-nav {
  position: sticky; top: var(--header-h); z-index: 10; background: #fff; border-bottom: 1px solid var(--bm-line-soft);
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
}
.anchor-nav::-webkit-scrollbar { display: none; }
.anchor-nav a { flex: none; padding: 16px 14px; font: 600 14px/1 var(--font); color: var(--bm-text-2); }
.anchor-nav a:hover, .anchor-nav a.is-active { color: var(--bm-blue-900); }
.anchor-nav a.is-active { box-shadow: inset 0 -2px 0 var(--bm-blue-900); }

/* ==========================================================================
   3. Hero (тёмный с сеткой) — .hero-wrap > .hero
   Темы: по умолчанию тёмная, --blue (решение/медицина), --yellow (решение/потребительская)
   ========================================================================== */
.hero-wrap { padding: 24px 16px 0; }
.hero {
  max-width: var(--hero-max); margin: 0 auto; border-radius: var(--r-hero);
  padding: clamp(24px, 4vw, 40px) clamp(20px, 4vw, 48px) clamp(28px, 4vw, 48px);
  background-color: var(--bm-dark);
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px),
    radial-gradient(ellipse at 100% 0, rgba(10, 92, 196, .55), transparent 60%);
  background-size: 24px 24px, 24px 24px, 100% 100%;
  color: #fff;
}
.hero--blue {
  background-color: var(--bm-blue-900);
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px),
    radial-gradient(ellipse at 100% 0, #2a78dc, transparent 60%);
}
.hero--yellow {
  background-color: var(--bm-yellow);
  background-image:
    linear-gradient(rgba(13, 13, 15, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 13, 15, .06) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--bm-dark);
}
.hero--split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 32px 40px; align-items: end; }
.hero__eyebrow { margin-top: 40px; }
.hero .crumbs + .hero__eyebrow, .hero .crumbs + .hero__title { margin-top: 40px; }
.hero__title {
  margin-top: 16px; max-width: 820px;
  font: 600 clamp(32px, 4.2vw, 54px)/1.05 var(--font); letter-spacing: -.03em; text-wrap: balance;
}
.hero__title .accent-light { color: var(--bm-blue-400); }
.hero__lead { margin-top: 20px; max-width: 620px; font: 400 17px/1.55 var(--font); color: #c9c9ce; text-wrap: pretty; }
.hero__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; align-items: center; }
.hero__note { margin-top: 16px; font: 400 13px/1.4 var(--font); color: var(--bm-muted-2); }
.hero--blue .hero__eyebrow, .hero--blue .eyebrow { color: var(--bm-yellow); }
.hero--blue .hero__lead { color: #dbe8fb; }
.hero--yellow .hero__eyebrow, .hero--yellow .eyebrow { color: var(--bm-blue-900); }
.hero--yellow .hero__lead { color: #3a2e00; }
.hero--yellow .crumbs, .hero--yellow .crumbs a { color: #5a4500; }
.hero--yellow .crumbs__cur { color: var(--bm-dark); }
/* Плитки-показатели в hero (каталог: «24 модели · 1–3 мес. · 1 год») */
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hero-stat { padding: 18px 16px; background: #fff; color: var(--bm-ink); border-radius: var(--r-card-sm); }
.hero-stat__v { font: 600 26px/1 var(--font); white-space: nowrap; }
.hero-stat__l { margin-top: 8px; font: 400 12px/1.3 var(--font); color: var(--bm-muted); }
.hero-stat--yellow { background: var(--bm-yellow); color: var(--bm-dark); }
.hero-stat--yellow .hero-stat__l { color: var(--bm-yellow-ink); font-weight: 500; }

/* Тёмная панель с сеткой вне hero (блок «Запросить КП», CTA) */
.panel-dark {
  background-color: var(--bm-dark);
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px),
    radial-gradient(ellipse at 100% 0, rgba(10, 92, 196, .5), transparent 60%);
  background-size: 24px 24px, 24px 24px, 100% 100%;
  color: #fff; border-radius: var(--r-card); padding: 24px;
}
.panel-blue {   /* синий блок «Оставьте заявку» на главной */
  background-color: var(--bm-blue-600); color: #fff; border-radius: var(--r-hero); padding: clamp(24px, 5vw, 56px);
  background-image:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px),
    radial-gradient(ellipse at 0 100%, #0a3f8f 0, transparent 60%),
    radial-gradient(ellipse at 100% 0, #2a78dc 0, transparent 55%);
  background-size: 24px 24px, 24px 24px, 100% 100%, 100% 100%;
}

/* ==========================================================================
   4. Заголовок секции: eyebrow + h2 (+ справа ссылка/счётчик)
   <div class="section-head"><div><div class="eyebrow">ПРОЦЕСС</div><h2 class="h2">…</h2></div></div>
   ========================================================================== */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.section-head .eyebrow + .h2, .section-head .eyebrow + h2 { margin-top: 14px; }
.section-head__side { font: 500 14px/1 var(--font); color: var(--bm-muted); }
.section-lead { margin-top: 16px; max-width: 620px; }

/* ==========================================================================
   5. Карточки
   ========================================================================== */
.card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--bm-gray-100); border-radius: var(--r-card); padding: 28px; color: var(--bm-ink);
}
.card--white { background: #fff; border: 1px solid var(--bm-line-card); }
.card--blue { background: var(--bm-blue-900); color: #fff; }
a.card:hover { color: inherit; }
a.card--blue:hover { background: var(--bm-blue-600); color: #fff; }
.card__title { font: 600 21px/1.25 var(--font); letter-spacing: -.01em; }
.card__text { font: 400 15px/1.55 var(--font); color: var(--bm-text-3); }
.card--blue .card__text { color: var(--bm-blue-100); }
.card__more { margin-top: auto; font: 600 14px/1 var(--font); color: var(--bm-blue-900); }
.card--blue .card__more { color: #fff; }
.icon-box {   /* квадрат с номером/иконкой */
  flex: none; width: 48px; height: 48px; border-radius: 16px; background: #fff; color: var(--bm-blue-600);
  display: flex; align-items: center; justify-content: center; font: 700 14px/1 var(--font);
}
.icon-box--sm { width: 44px; height: 44px; border-radius: 14px; background: var(--bm-blue-50); }
.icon-box--blue { background: var(--bm-blue-50); }

/* Карточка направления (главная: упаковка / оборудование / обучение) */
.dir-card { display: flex; flex-direction: column; background: var(--bm-gray-100); border-radius: 28px; padding: 10px; color: var(--bm-ink); transition: transform .2s; }
.dir-card:hover { transform: translateY(-3px); color: var(--bm-ink); }
.dir-card__media { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--bm-blue-50); }
.dir-card__media > .slot { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; height: 100%; }
.dir-card__body { padding: 22px 16px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.dir-card__title { font: 600 24px/1.2 var(--font); letter-spacing: -.015em; }
.dir-card__text { font: 400 15px/1.5 var(--font); color: var(--bm-text-3); }
.dir-card__more { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; font: 600 15px/1 var(--font); color: var(--bm-blue-900); }

/* Карточка модели каталога */
.product-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bm-line-card);
  border-radius: var(--r-card); padding: 10px; color: var(--bm-ink);
  transition: border-color .2s, box-shadow .2s;
}
.product-card:hover { border-color: #c9d9f0; box-shadow: var(--sh-card); }
.product-card__media {
  position: relative; display: flex; align-items: center; justify-content: center; height: 200px; padding: 18px;
  border-radius: var(--r-card-sm); background-color: var(--bm-gray-100);
  background-image: linear-gradient(rgba(10, 92, 196, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 92, 196, .05) 1px, transparent 1px);
  background-size: 20px 20px;
}
.product-card__media img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-card__noimg { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--bm-faint); font: 500 12px/1.3 var(--font); }
.product-card__lvl { position: absolute; left: 12px; top: 12px; }
.product-card__clean { position: absolute; left: 10px; bottom: 10px; }
.product-card__body { padding: 16px 10px 8px; display: flex; flex-direction: column; flex: 1; }
.product-card__top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.product-card__kind { font: 600 11px/1 var(--font); letter-spacing: .12em; color: var(--bm-blue-600); text-transform: uppercase; }
.product-card__title { margin: 10px 0 14px; font: 600 17px/1.3 var(--font); letter-spacing: -.01em; color: var(--bm-ink); text-wrap: balance; }
.product-card__title:hover { color: var(--bm-blue-900); }
.product-card__foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price-note__l { font: 400 12px/1 var(--font); color: var(--bm-muted-2); }
.price-note__v { margin-top: 6px; font: 600 15px/1 var(--font); white-space: nowrap; }
.cmp-toggle {   /* «+ Сравнить» */
  font: 600 11px/1 var(--font); padding: 7px 10px; border-radius: var(--r-pill); cursor: pointer; white-space: nowrap; border: 0;
  background: var(--bm-gray-100); color: var(--bm-text-2);
}
.cmp-toggle:hover { background: var(--bm-line-soft); }
.cmp-toggle.is-active { background: var(--bm-blue-900); color: #fff; }

.spec-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.spec-tile { background: var(--bm-gray-50); border-radius: var(--r-field); padding: 10px 12px; min-width: 0; }
.spec-tile__l { font: 400 11px/1.2 var(--font); color: var(--bm-muted-2); }
.spec-tile__v { margin-top: 5px; font: 600 14px/1.25 var(--font); }
.spec-tiles--lg .spec-tile { background: var(--bm-gray-100); border-radius: var(--r-card-sm); padding: 16px 18px; }
.spec-tiles--lg .spec-tile__l { font-size: 12px; }
.spec-tiles--lg .spec-tile__v { margin-top: 8px; font-size: 19px; letter-spacing: -.01em; }

/* Мини-карточка («Похожие модели») */
.mini-card { display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--bm-line-card); border-radius: 22px; padding: 10px; color: var(--bm-ink); }
.mini-card:hover { border-color: #c9d9f0; color: var(--bm-ink); }
.mini-card__media { height: 150px; border-radius: 16px; background: var(--bm-gray-100); display: flex; align-items: center; justify-content: center; padding: 12px; font: 500 12px/1 var(--font); color: #9aa6b8; }
.mini-card__media img { max-width: 100%; max-height: 100%; mix-blend-mode: multiply; }
.mini-card__body { padding: 0 8px 8px; }
.mini-card__kind { display: block; font: 600 10px/1 var(--font); letter-spacing: .14em; color: var(--bm-blue-600); text-transform: uppercase; }
.mini-card__title { display: block; margin-top: 8px; font: 600 15px/1.3 var(--font); }
.mini-card__sub { display: block; margin-top: 8px; font: 400 13px/1 var(--font); color: var(--bm-muted); }

/* Плитка-обещание («1 год · гарантия…») */
.stat { background: var(--bm-gray-100); border-radius: 20px; padding: 20px; }
.stat__v { font: 600 17px/1.2 var(--font); }
.stat__l { margin-top: 4px; font: 400 13px/1.4 var(--font); color: var(--bm-muted); }

/* Таблица характеристик */
.spec-table { border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px var(--bm-line-soft); }
.spec-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 14px 20px; background: #fff; border-top: 1px solid #f2f2f4; }
.spec-row:first-child { border-top: 0; }
.spec-row__l { font: 400 15px/1.4 var(--font); color: var(--bm-muted); }
.spec-row__v { font: 600 15px/1.4 var(--font); color: var(--bm-ink); }
.spec-row__v--empty { font-weight: 400; color: #9a9aa3; }   /* «уточняется» */
.spec-group { padding: 18px 20px 8px; background: #fff; border-top: 1px solid var(--bm-line-soft); font: 600 11px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--bm-blue-600); }
.spec-group:first-child { border-top: 0; }

/* Список с точками («Условия малого заказа») */
.dot-list { border-bottom: 1px solid var(--bm-line-soft); }
.dot-list > li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--bm-line-soft); font: 400 16px/1.6 var(--font); color: var(--bm-text-2); }
.dot-list > li::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--bm-blue-600); margin-top: 9px; }

/* Панель «текст + форма» внизу страницы: .cta-panel > (div + .form-card) */
.cta-panel {
  max-width: var(--hero-max); margin: 0 auto; background: var(--bm-gray-100); border-radius: var(--r-hero);
  padding: clamp(20px, 4vw, 48px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 32px; align-items: start;
}
.cta-panel__phone { margin-top: 28px; font: 600 22px/1 var(--font); }
.cta-panel__phone a { color: inherit; }
.form-card { background: #fff; border-radius: 22px; padding: 24px; color: var(--bm-ink); }
.cta-wrap { padding: 88px 16px 96px; }
@media (max-width: 759px) { .cta-wrap { padding: 64px 16px 64px; } }

/* Подпись к изображению */
.fig { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.fig figcaption { font: 500 14px/1.4 var(--font); color: var(--bm-text-3); }

/* Шкала «Показано N из M» + «Показать ещё» */
.load-more { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 32px; }
.load-more__count { font: 500 13px/1 var(--font); color: var(--bm-muted); }
.progress { width: 200px; height: 4px; border-radius: 2px; background: var(--bm-line-card); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--bm-blue-900); border-radius: 2px; }

/* ==========================================================================
   6. Слоты изображений (заглушка без «Фото: …») и обработка реальных фото
   <div class="slot slot--pack ratio-4x3"><div class="slot__label">…подпись кадра…</div></div>
   <div class="slot slot--equip ratio-4x3"><img class="slot__img" src="…" alt="…"></div>
   Три типа: --equip (фото машин), --render (3D-рендеры), --pack (фото упаковки). Или partials/slot.html.
   ========================================================================== */
.slot { position: relative; display: block; overflow: hidden; border-radius: 20px; background: var(--bm-gray-100); }
.ratio-4x3 { aspect-ratio: 4 / 3; } .ratio-3x2 { aspect-ratio: 3 / 2; } .ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-1x1 { aspect-ratio: 1 / 1; } .ratio-4x5 { aspect-ratio: 4 / 5; } .ratio-21x9 { aspect-ratio: 21 / 9; }
.slot__label {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 12px; text-align: center; color: var(--bm-faint); font: 500 12px/1.3 var(--font); user-select: none;
}
.slot__label svg { width: 28px; height: 28px; flex: none; }
.slot__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot--equip {
  background-color: var(--bm-gray-100);
  background-image: linear-gradient(rgba(10, 92, 196, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 92, 196, .06) 1px, transparent 1px);
  background-size: 24px 24px;
}
.slot--equip .slot__img { object-fit: contain; mix-blend-mode: multiply; padding: 12%; }
.slot--render {
  background-color: var(--bm-dark);
  background-image: radial-gradient(ellipse at 70% 20%, rgba(42, 120, 220, .55), transparent 60%);
}
.slot--render .slot__label { color: rgba(255, 255, 255, .5); }
.slot--pack { background: var(--bm-blue-50); }
.slot--pack .slot__label { color: #7d93b3; }
.slot--r18 { border-radius: 18px; } .slot--r24 { border-radius: 24px; } .slot--r28 { border-radius: 28px; }

/* ==========================================================================
   7. Хлебные крошки (build.py делает {{crumbs}} / {{crumbs_dark}} из front-matter `crumbs`)
   ========================================================================== */
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font: 400 13px/1 var(--font); color: var(--bm-muted-2); }
.crumbs a { color: var(--bm-muted-2); }
.crumbs a:hover { color: var(--bm-blue-900); }
.crumbs__cur { color: var(--bm-text-2); }
.crumbs--dark a { color: #a9a9b2; }
.crumbs--dark a:hover { color: #fff; }
.crumbs--dark .crumbs__cur { color: #d0d0d6; }

/* ==========================================================================
   8. FAQ (на <details>; name="…" даёт «открыт один» в современных браузерах)
   <div class="faq-layout"><div>…заголовок…</div><div class="faq"><details class="faq__item" name="faq"><summary class="faq__q">…</summary><div class="faq__a">…</div></details>…</div></div>
   ========================================================================== */
.faq-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px 64px; }
.faq { border-bottom: 1px solid var(--bm-line-soft); }
.faq__item { border-top: 1px solid var(--bm-line-soft); }
.faq__q {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0;
  font: 600 17px/1.35 var(--font); color: var(--bm-ink); list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ''; }
.faq__q::after {
  content: '+'; flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font: 500 18px/1 var(--font);
  background: var(--bm-gray-100); color: var(--bm-blue-900); transition: transform .2s, background-color .2s, color .2s;
}
.faq__item[open] > .faq__q::after { transform: rotate(45deg); background: var(--bm-blue-900); color: #fff; }
.faq__a { padding: 0 48px 20px 0; font: 400 15px/1.6 var(--font); color: var(--bm-text-3); }
.faq__a p + p { margin-top: 10px; }
@media (max-width: 759px) { .faq__a { padding-right: 0; } }

/* ==========================================================================
   9. Таймлайн этапов и шаги процесса
   <ol class="timeline"><li class="timeline__step is-done"><div class="timeline__row"><span class="timeline__dot">✓</span><span class="timeline__line"></span></div>
     <div class="timeline__body"><div class="timeline__label">Концепция</div><div class="timeline__state">Пройдено</div></div></li>…</ol>
   Состояния: .is-done · .is-now · (без класса — впереди). До 759px — вертикальный.
   ========================================================================== */
.timeline { display: grid; grid-template-columns: repeat(var(--steps, 6), minmax(0, 1fr)); }
.timeline__step { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.timeline__row { display: flex; align-items: center; }
.timeline__dot {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font: 700 13px/1 var(--font); background: #fff; color: var(--bm-muted-2); box-shadow: inset 0 0 0 1.5px var(--bm-line-strong);
}
.timeline__line { flex: 1; height: 2px; margin: 0 8px; background: var(--bm-line); }
.timeline__label { font: 500 14px/1.3 var(--font); color: var(--bm-muted-2); padding-right: 8px; }
.timeline__state { display: none; font: 400 12px/1.3 var(--font); color: var(--bm-muted-2); margin-top: 4px; }
.timeline__step.is-done .timeline__dot { background: var(--bm-blue-900); color: #fff; box-shadow: none; }
.timeline__step.is-done .timeline__line { background: var(--bm-blue-900); }
.timeline__step.is-done .timeline__label { color: var(--bm-ink); }
.timeline__step.is-now .timeline__dot { background: var(--bm-yellow); color: var(--bm-dark); box-shadow: none; outline: 4px solid var(--bm-yellow-soft); }
.timeline__step.is-now .timeline__label { color: var(--bm-ink); font-weight: 600; }
.timeline__step:last-child .timeline__line, .timeline__step.is-done:last-child .timeline__line { background: transparent; }
.timeline-card { background: #fff; border-radius: var(--r-card); padding: 28px; }
@media (max-width: 759px) {
  .timeline { grid-template-columns: minmax(0, 1fr); }
  .timeline__step { flex-direction: row; gap: 14px; }
  .timeline__row { flex-direction: column; align-items: center; }
  .timeline__line { flex: 1; width: 2px; height: auto; min-height: 20px; margin: 6px 0; }
  .timeline__body { padding: 6px 0 22px; }
  .timeline__step:last-child .timeline__body { padding-bottom: 0; }
  .timeline__state { display: block; }
}

/* Шаги процесса (нумерованный список в белой карточке): .steps > .step */
.steps { background: #fff; border-radius: var(--r-card); padding: 8px 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); column-gap: 32px; }
.step { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--bm-line-faint); min-width: 0; }
.step__n { flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--bm-blue-50); color: var(--bm-blue-600); display: flex; align-items: center; justify-content: center; font: 700 14px/1 var(--font); }
.step__h { font: 600 16px/1.25 var(--font); }
.step__t { margin-top: 4px; font: 400 14px/1.5 var(--font); color: var(--bm-text-3); text-wrap: pretty; }

/* ==========================================================================
   10. Бейдж «Чистая зона · класс» — НА САЙТЕ НЕ ИСПОЛЬЗУЕТСЯ: нет подтверждённых моделей.
   Ставится только на конкретную подтверждённую модель/оснастку, класс — всегда. Partial: partials/clean-badge.html
   ========================================================================== */
.clean-badge {
  display: inline-flex; align-items: stretch; border-radius: 10px; overflow: hidden; vertical-align: middle;
  box-shadow: inset 0 0 0 1.5px var(--bm-blue-900); background: #fff;
}
.clean-badge__l { display: flex; align-items: center; gap: 6px; padding: 7px 10px 7px 8px; background: var(--bm-blue-900); color: #fff; font: 600 12px/1 var(--font); white-space: nowrap; }
.clean-badge__r { display: flex; align-items: center; gap: 6px; padding: 7px 10px; color: var(--bm-blue-900); font: 600 12px/1 var(--font); white-space: nowrap; }
.clean-badge__demo { background: var(--bm-yellow); color: var(--bm-dark); border-radius: 6px; padding: 3px 5px; font: 700 9px/1 var(--font); letter-spacing: .06em; }

/* ==========================================================================
   11. Формы (разметка — partials/form-start.html, field.html, form-end.html, form.html; логика — site.js)
   ========================================================================== */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 12px; }
.field { min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field__label { display: flex; gap: 4px; margin-bottom: 7px; font: 500 13px/1.2 var(--font); color: var(--bm-text-3); }
.field__req { color: var(--bm-error); }
.field__hint { margin-left: auto; color: var(--bm-muted-2); font-weight: 400; }
.input, .select, .textarea {
  display: block; width: 100%; min-width: 0; height: 52px; padding: 0 16px;
  border: 1px solid var(--bm-line); border-radius: var(--r-field); background: var(--bm-gray-50); color: var(--bm-ink);
  font: 400 16px/1 var(--font); outline: none; appearance: none; -webkit-appearance: none;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.input::placeholder, .textarea::placeholder { color: #a0a0a8; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--bm-blue-600); background: #fff; box-shadow: 0 0 0 3px rgba(10, 92, 196, .12); }
.textarea { height: auto; min-height: 96px; padding-top: 14px; padding-bottom: 14px; line-height: 1.45; resize: vertical; }
.select { padding-right: 44px; cursor: pointer; text-overflow: ellipsis; }
.select-wrap { position: relative; }
.select-wrap::after { content: '▼'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--bm-blue-600); font-size: 12px; }
.field.is-error .input, .field.is-error .select, .field.is-error .textarea { border-color: var(--bm-error); background: var(--bm-error-bg); }
.field__error { margin-top: 6px; font: 500 12px/1.3 var(--font); color: var(--bm-error); }
/* Заблокированное поле (модель подставлена) */
.locked {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 16px; border-radius: var(--r-field);
  background: var(--bm-blue-50); color: var(--bm-blue-900); font: 600 15px/1.3 var(--font);
}
.locked svg { flex: none; }
/* Размер блистера: длина × ширина мм */
.size-field { display: flex; align-items: center; gap: 8px; }
.size-field__x { color: var(--bm-blue-900); font-weight: 600; }
.size-field__u { font: 500 14px/1 var(--font); color: var(--bm-muted-2); }
/* Счётчик слушателей */
.stepper { display: flex; align-items: center; height: 52px; border: 1px solid var(--bm-line); border-radius: var(--r-field); background: var(--bm-gray-50); overflow: hidden; }
.stepper button { width: 52px; height: 100%; border: 0; background: transparent; font: 500 20px/1 var(--font); color: var(--bm-blue-900); cursor: pointer; }
.stepper button:hover { background: var(--bm-blue-50); }
.stepper__v { flex: 1; text-align: center; font: 600 17px/1 var(--font); }
/* Загрузка файлов */
.file-drop {
  display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; cursor: pointer;
  border: 1.5px dashed #9cbbe6; background: var(--bm-blue-25); transition: border-color .15s, background-color .15s;
}
.file-drop:hover, .file-drop.is-over { border-color: var(--bm-blue-600); background: var(--bm-blue-50); }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-drop__icon { flex: none; width: 40px; height: 40px; border-radius: var(--r-field); background: #fff; color: var(--bm-blue-600); display: flex; align-items: center; justify-content: center; }
.file-drop__text { flex: 1; min-width: 0; }
.file-drop__title { display: block; font: 600 14px/1.3 var(--font); color: var(--bm-blue-900); }
.file-drop__sub { display: block; margin-top: 3px; font: 400 12px/1.4 var(--font); color: var(--bm-muted); }
.field.is-error .file-drop { border-color: var(--bm-error); background: var(--bm-error-bg); }
.file-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.file-list:empty { display: none; }
.file-item { display: flex; align-items: center; gap: 10px; background: var(--bm-gray-100); border-radius: 10px; padding: 8px 8px 8px 12px; font: 500 13px/1.2 var(--font); }
.file-item__n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item__s { color: var(--bm-muted-2); }
.file-item button { width: 26px; height: 26px; border-radius: 50%; border: 0; background: #fff; color: var(--bm-text-3); cursor: pointer; }
/* Согласие */
.consent {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 0; border-radius: var(--r-field);
  font: 400 13px/1.5 var(--font); color: var(--bm-text-3); cursor: pointer;
}
.consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--bm-blue-600); }
.consent a { color: inherit; text-decoration: underline; }
.consent.is-error { padding: 10px 12px; background: var(--bm-error-bg); box-shadow: inset 0 0 0 1px var(--bm-error-line); }
.consent-error { margin-top: 8px; font: 500 12px/1.4 var(--font); color: var(--bm-error); }
/* «Ваш выбор попадёт в заявку» (квиз → форма) */
.form-summary { background: var(--bm-blue-50); border-radius: 16px; padding: 14px 16px; margin-bottom: 16px; }
.form-summary__t { font: 600 11px/1 var(--font); letter-spacing: .14em; color: var(--bm-blue-900); }
.form-summary__list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.form-submit { margin-top: 18px; height: 54px; }
.form-submit.is-loading { background: #5a7fb8; cursor: wait; }
.form-note { margin-top: 10px; text-align: center; font: 400 12px/1.4 var(--font); color: var(--bm-muted-2); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; display: inline-block; animation: bm-spin .8s linear infinite; }
@keyframes bm-spin { to { transform: rotate(360deg); } }
/* Успех внутри формы */
.form-success { text-align: center; padding: 12px 0; }
.check-circle { width: 64px; height: 64px; border-radius: 50%; background: var(--bm-blue-50); color: var(--bm-blue-600); display: flex; align-items: center; justify-content: center; margin: 0 auto; font: 700 28px/1 var(--font); }
.form-success__t { margin-top: 18px; font: 600 24px/1.2 var(--font); letter-spacing: -.02em; }
.form-success__p { margin-top: 10px; font: 400 15px/1.55 var(--font); color: var(--bm-text-3); text-wrap: pretty; }
.form-success__actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
/* Чекбокс/переключатель фильтров */
.check { display: flex; align-items: center; gap: 12px; padding: 9px 10px; margin: 0 -10px; border-radius: 10px; cursor: pointer; font: 400 15px/1.2 var(--font); }
.check:hover { background: var(--bm-gray-100); }
.check input {
  flex: none; appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; border-radius: 7px;
  border: 1.5px solid #cfcfd6; background: #fff; cursor: pointer; transition: all .15s;
}
.check input:checked { border-color: var(--bm-blue-900); background: var(--bm-blue-900); box-shadow: inset 0 0 0 5px var(--bm-blue-900), inset 0 0 0 11px var(--bm-yellow); }
.check__l { flex: 1; }
.switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; padding: 12px; border-radius: 14px; background: var(--bm-gray-50); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { flex: none; width: 40px; height: 24px; border-radius: 12px; position: relative; background: var(--bm-line-strong); transition: background-color .2s; }
.switch__track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .2s, background-color .2s; }
.switch input:checked + .switch__track { background: var(--bm-blue-900); }
.switch input:checked + .switch__track::after { left: 19px; background: var(--bm-yellow); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--bm-blue-600); outline-offset: 2px; }
.switch__t { flex: 1; font: 500 14px/1.35 var(--font); }
.switch__t small { display: block; margin-top: 4px; font: 400 12px/1.4 var(--font); color: var(--bm-muted); }

/* ==========================================================================
   12. Модальные окна на <dialog>: «Заказать звонок» и др. формы, «Спасибо»
   ========================================================================== */
.modal { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; color: var(--bm-ink); overflow: auto; }
.modal[open] { display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal::backdrop { background: rgba(13, 13, 15, .55); }
.modal__box {
  position: relative; background: #fff; border-radius: 28px; padding: 32px; width: min(560px, 100%);
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; box-shadow: var(--sh-modal);
}
.modal__box--sm { width: min(460px, 100%); padding: 40px 32px 32px; text-align: center; }
.modal__close { position: absolute; right: 16px; top: 16px; z-index: 1; }
.modal__eyebrow { font: 600 11px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--bm-blue-600); }
.modal__title { margin: 12px 48px 24px 0; font: 600 28px/1.15 var(--font); letter-spacing: -.02em; }
.modal__box--sm .modal__title { margin: 18px 0 0; font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.modal__text { margin-top: 10px; font: 400 15px/1.55 var(--font); color: var(--bm-text-3); }
@media (max-width: 759px) { .modal__box { padding: 24px 20px; border-radius: 24px; } .modal__title { font-size: 24px; } }

/* ==========================================================================
   13. Баннер cookies (запоминается в localStorage: bm-cookies)
   ========================================================================== */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; }
.cookie__box {
  max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: #fff; color: var(--bm-ink); border-radius: 20px; box-shadow: var(--sh-cookie); padding: 16px 16px 16px 22px;
}
.cookie__text { flex: 1; min-width: 220px; font: 400 14px/1.5 var(--font); color: var(--bm-text-2); }
.cookie__text a { color: inherit; text-decoration: underline; }
.cookie--static { position: static; padding: 16px 0 0; }   /* для _kit */

/* ==========================================================================
   14. Липкая панель (карточка модели: «Запросить КП»). Показывает site.js, когда [data-watch] ушёл вверх.
   <div class="sticky-bar" data-sticky-bar data-watch="#kp-box" hidden>…</div>
   ========================================================================== */
.sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: #fff; box-shadow: var(--sh-bar); border-top: 1px solid var(--bm-line-card); }
.sticky-bar__in { max-width: var(--container); margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; gap: 16px; }
.sticky-bar__thumb { flex: none; width: 56px; height: 44px; border-radius: 10px; background: var(--bm-gray-100); display: flex; align-items: center; justify-content: center; padding: 4px; }
.sticky-bar__thumb img { max-width: 100%; max-height: 100%; mix-blend-mode: multiply; }
.sticky-bar__main { flex: 1; min-width: 0; }
.sticky-bar__title { font: 600 15px/1.25 var(--font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sticky-bar__sub { margin-top: 5px; font: 400 13px/1 var(--font); color: var(--bm-muted); }
.sticky-bar--static { position: static; box-shadow: none; border: 1px solid var(--bm-line-card); border-radius: 16px; }
@media (max-width: 759px) { .sticky-bar__thumb { display: none; } }

/* ==========================================================================
   15. Шапка. Десктоп (≥900): топ-бар, строка с логотипом, строка меню с выпадающим «Упаковка».
   Мобильная (<900): логотип, телефон, бургер → меню с аккордеоном «Упаковка».
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 40; font-family: var(--font); }
.header-m { display: none; }
@media (max-width: 899px) { .header-d { display: none; } .header-m { display: block; } }

.topbar { background: var(--bm-dark); color: #c9c9ce; font: 400 12px/1 var(--font); }
.topbar__in { max-width: var(--container); margin: 0 auto; padding: 8px var(--gutter); min-height: 36px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.topbar a { margin-left: auto; color: #c9c9ce; }
.topbar a:hover { color: #fff; }

.header { background: #fff; }
.header__in { max-width: var(--container); margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; gap: 16px; }
.logo { display: flex; flex: none; }
.logo img { display: block; height: 38px; width: auto; }
.header__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header__phone { padding: 0 10px; font: 600 18px/1 var(--font); color: var(--bm-ink); white-space: nowrap; }
.header__phone:hover { color: var(--bm-blue-900); }
.btn-login { gap: 8px; padding: 0 18px 0 14px; }
/* Поиск в шапке: поле всегда на виду, под ним панель подсказок по группам */
.hsearch { position: relative; flex: 1 1 auto; max-width: 520px; min-width: 220px; margin-left: 12px; }
.search-form { display: flex; align-items: center; gap: 10px; height: 48px; border: 1px solid var(--bm-line); border-radius: var(--r-pill); padding: 0 18px; background: var(--bm-gray-50); transition: border-color .15s, background-color .15s, box-shadow .15s; }
.search-form:focus-within { border-color: var(--bm-blue-600); background: #fff; box-shadow: 0 0 0 3px rgba(10, 92, 196, .12); }
.search-form svg { flex: none; color: var(--bm-muted-2); }
.search-form input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: 400 15px/1 var(--font); color: var(--bm-ink); }
.search-form input::-webkit-search-cancel-button { cursor: pointer; }
.hsearch__panel { position: absolute; z-index: 60; top: calc(100% + 8px); left: 0; right: 0; min-width: 420px; max-height: min(70vh, 560px); overflow: auto; padding: 8px; background: #fff; border: 1px solid var(--bm-line-card); border-radius: 20px; box-shadow: 0 18px 48px rgba(16, 24, 40, .16); }
.hsearch__panel[hidden] { display: none; }
.hsearch__group + .hsearch__group { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--bm-line-faint); }
.hsearch__gt { padding: 8px 12px 4px; font: 600 11px/1.2 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--bm-muted-2); }
.hsearch__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 12px; font: 400 14px/1.35 var(--font); color: var(--bm-ink); }
.hsearch__row:hover, .hsearch__row.is-active { background: var(--bm-blue-25); }
.hsearch__t mark { background: none; color: var(--bm-blue-900); font-weight: 600; }
.hsearch__s { flex: none; font-size: 12px; color: var(--bm-muted); white-space: nowrap; }
.hsearch__all { display: block; margin-top: 4px; padding: 11px 12px; border-radius: 12px; font: 600 14px/1.3 var(--font); color: var(--bm-blue-900); background: var(--bm-blue-25); }
.hsearch__all:hover, .hsearch__all.is-active { background: #e3edfb; }
.hsearch__empty { padding: 14px 12px; font: 400 14px/1.45 var(--font); color: var(--bm-muted); }
.hsearch__empty a { color: var(--bm-blue-900); text-decoration: underline; }
@media (max-width: 1100px) { .hsearch { max-width: 340px; } .hsearch__panel { min-width: 380px; } }

.navbar { position: relative; border-top: 1px solid var(--bm-line-nav); border-bottom: 1px solid var(--bm-line-nav); background: var(--bm-blue-25); }
.navbar__in { max-width: var(--container); margin: 0 auto; padding: 0 18px; }
.nav { display: flex; justify-content: space-between; gap: 4px; }
.nav__link {
  display: flex; align-items: center; gap: 6px; margin: 6px 0; padding: 10px 16px; border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--bm-text-2); font: 500 14px/1 var(--font); white-space: nowrap; cursor: pointer;
}
.nav__link:hover { color: var(--bm-blue-900); }
.nav__link.is-active, .nav__link[aria-expanded="true"] {
  background: #fff; color: var(--bm-blue-900); font-weight: 600; box-shadow: 0 1px 2px rgba(10, 63, 143, .1), 0 0 0 1px #dbe6f5;
}
.nav__chev { transition: transform .2s; }
.nav__link[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }
.nav-drop { position: absolute; left: 0; right: 0; top: 100%; padding-top: 8px; z-index: 5; }
.nav-drop__in {
  max-width: 1176px; margin: 0 auto; background: #fff; border-radius: var(--r-card); box-shadow: var(--sh-pop); padding: 12px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.05fr); gap: 8px;
}
.nav-drop__item { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--r-card-sm); background: #fff; color: var(--bm-ink); }
.nav-drop__item:hover { background: var(--bm-blue-25); color: var(--bm-ink); }
.nav-drop__item.is-active { background: var(--bm-blue-25); }
.nav-drop__n { width: 44px; height: 44px; border-radius: 14px; background: var(--bm-blue-50); color: var(--bm-blue-600); display: flex; align-items: center; justify-content: center; font: 600 13px/1 var(--font); }
.nav-drop__t { font: 600 17px/1.25 var(--font); letter-spacing: -.01em; }
.nav-drop__d { font: 400 14px/1.45 var(--font); color: var(--bm-muted); text-wrap: pretty; }
.nav-drop__quiz { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--r-card-sm); background: var(--bm-blue-900); color: #fff; }
.nav-drop__quiz:hover { background: var(--bm-blue-600); color: #fff; }
.nav-drop__quiz .eyebrow { color: var(--bm-yellow); letter-spacing: .14em; }
.nav-drop__quiz .nav-drop__t { color: #fff; }
.nav-drop__quiz .nav-drop__d { color: var(--bm-blue-100); }
.nav-drop__go { margin-top: auto; font: 600 14px/1 var(--font); }
@media (max-width: 1099px) { .nav__link { padding: 10px 12px; } .nav-drop__in { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Мобильная шапка */
.header-m { background: #fff; border-bottom: 1px solid var(--bm-line-nav); }
.header-m__bar { padding: 10px 16px; display: flex; align-items: center; gap: 8px; }
.header-m .logo { margin-right: auto; }
.header-m .logo img { height: 36px; }
.header-m .icon-btn { width: 44px; height: 44px; border: 0; background: var(--bm-blue-50); }
.header-m .icon-btn--solid { background: var(--bm-blue-900); color: #fff; }
.mmenu { border-top: 1px solid var(--bm-line-faint); padding: 8px 16px 20px; background: #fff; max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow: auto; }
.mmenu .hsearch { max-width: none; min-width: 0; margin: 8px 0 12px; }
.mmenu .hsearch__panel { position: static; min-width: 0; max-height: 50vh; margin-top: 8px; box-shadow: none; }
.mmenu .search-form input { font-size: 16px; }
.mmenu__acc, .mmenu__link {
  width: 100%; min-height: 52px; display: flex; justify-content: space-between; align-items: center; padding: 0;
  border: 0; border-bottom: 1px solid var(--bm-line-faint); background: transparent; color: var(--bm-ink); font: 600 18px/1 var(--font); cursor: pointer;
}
.mmenu__acc i { font: 500 20px/1 var(--font); font-style: normal; color: var(--bm-blue-600); }
.mmenu__sub { padding: 6px 0 10px; border-bottom: 1px solid var(--bm-line-faint); display: flex; flex-direction: column; }
.mmenu__sub a { min-height: 44px; display: flex; align-items: center; padding-left: 16px; font: 500 16px/1.3 var(--font); color: var(--bm-text-2); }
.mmenu__sub a.is-active { color: var(--bm-blue-900); font-weight: 600; }
.mmenu__link.is-active { color: var(--bm-blue-900); }
.mmenu__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.mmenu__btns .btn { --btn-h: 52px; }
.mmenu__info { margin-top: 20px; font: 400 14px/1.6 var(--font); color: var(--bm-muted); }
.mmenu__info a { color: inherit; }

/* ==========================================================================
   16. Подвал
   ========================================================================== */
.footer {
  margin-top: 0; font-family: var(--font); color: #a9a9b2;
  background-color: var(--bm-dark);
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 24px 24px;
}
.footer__in { max-width: var(--container); margin: 0 auto; padding: 64px var(--gutter) 0; }
.footer__cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 48px; border-bottom: 1px solid #26262b; }
.footer__cta-t { max-width: 660px; font: 600 clamp(24px, 3vw, 38px)/1.1 var(--font); letter-spacing: -.02em; color: #fff; text-wrap: balance; }
.footer__cta-t span { color: var(--bm-blue-400); }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; padding: 48px 0; }
.footer__logo { display: inline-block; background: #fff; padding: 10px 14px; border-radius: var(--r-field); }
.footer__logo img { display: block; height: 40px; width: auto; }
.footer__about { margin-top: 20px; max-width: 240px; font: 400 14px/1.6 var(--font); }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__h { margin-bottom: 12px; font: 600 11px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--bm-muted); }
.footer__col a { font: 400 15px/1.3 var(--font); color: #d0d0d6; }
.footer__col a:hover { color: #fff; }
.footer__col .footer__phone { font-size: 20px; font-weight: 600; line-height: 1.2; color: #fff; }
.footer__col .footer__mail { color: var(--bm-blue-400); overflow-wrap: anywhere; }
.footer__col .footer__mail:hover { color: #fff; }
.footer__txt { font: 400 14px/1.5 var(--font); }
.footer__bottom { border-top: 1px solid #26262b; padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 400 13px/1.4 var(--font); color: var(--bm-muted); }
.footer__bottom a { color: var(--bm-muted); }
.footer__bottom a:hover { color: #fff; }
/* «Спросить ИИ о компании» — ссылки на ассистентов с готовым вопросом */
.footer__ai { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; padding: 0 0 28px; }
.footer__ai-t { font: 600 11px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--bm-muted); }
.footer__ai-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid #3a3a41; border-radius: var(--r-pill); font: 500 14px/1 var(--font); color: #d0d0d6; transition: color .15s ease, border-color .15s ease, background-color .15s ease; }
.ai-chip::before { content: ""; width: 12px; height: 12px; flex: none; background: var(--bm-blue-400); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.ai-chip span { font-weight: 400; font-size: 12px; color: var(--bm-muted); }
.ai-chip:hover { color: #fff; border-color: var(--bm-blue-400); background: rgba(255, 255, 255, .04); }
.ai-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: var(--r-field); background: var(--bm-dark); border: 1px solid #3a3a41; color: #fff; font: 500 14px/1.4 var(--font); text-align: center; box-shadow: var(--sh-float); }
.ai-toast[hidden] { display: none; }
@media (max-width: 759px) { .footer__in { padding-top: 48px; } .footer__cta .btn { width: 100%; } }

/* ==========================================================================
   17. Текстовые страницы (политика, юр. тексты): .prose, оглавление .side-nav
   ========================================================================== */
.prose { max-width: 760px; color: var(--bm-text-2); }
.prose h2 { margin: 36px 0 0; font: 600 22px/1.3 var(--font); color: var(--bm-ink); }
.prose h3 { margin: 28px 0 0; font: 600 18px/1.35 var(--font); color: var(--bm-ink); }
.prose p { margin: 12px 0 0; font: 400 16px/1.75 var(--font); }
.prose ul, .prose ol { margin: 12px 0 0; padding-left: 22px; font: 400 16px/1.75 var(--font); }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li + li { margin-top: 6px; }
.prose a { text-decoration: underline; }
.prose > :first-child { margin-top: 0; }
.side-nav { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--bm-line-soft); }
.side-nav a { padding: 8px 0 8px 16px; font: 500 14px/1.35 var(--font); color: var(--bm-text-3); }
.side-nav a:hover, .side-nav a.is-active { color: var(--bm-blue-900); }

/* ==========================================================================
   18. Разное
   ========================================================================== */
.divider { border: 0; border-top: 1px solid var(--bm-line-soft); margin: 0; }
.placeholder-note {   /* «заполнит клиент» — пунктирная плашка */
  border: 1.5px dashed #c9d6ea; border-radius: 16px; padding: 16px 18px; font: 400 14px/1.55 var(--font); color: #6b7a90;
}
/* «Заполнить →» у заглушек: видят только те, кто правит сайт (гостям заглушки не выводятся). */
.bm-todo-link { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: #1d4ed8; color: #fff !important; font: 600 12px/1.6 var(--font); text-decoration: none; white-space: nowrap; vertical-align: 1px; }
.bm-todo-link:hover { background: #1e40af; }
.empty-state { background: var(--bm-gray-100); border-radius: var(--r-card); padding: clamp(20px, 4vw, 40px); }
.empty-state__icon { width: 56px; height: 56px; border-radius: var(--r-card-sm); background: #fff; color: var(--bm-blue-600); display: flex; align-items: center; justify-content: center; }

/* Форма в состоянии «успех»: прячем всё, кроме экрана успеха */
.form.is-success > *:not(.form-success) { display: none; }

/* ---------- Мягкое появление при прокрутке (js/site.js → initReveal) ----------
   .rv — скрытое состояние (ставит JS только блокам ниже первого экрана), .rv--in — показ.
   Классы снимаются после анимации. Только opacity и transform, без смещения вёрстки. */
.rv { opacity: 0; transform: translateY(18px); }
.rv.rv--in {
  opacity: 1; transform: none;
  transition: opacity .6s ease var(--rv-delay, 0ms), transform .7s cubic-bezier(.22, .7, .2, 1) var(--rv-delay, 0ms);
}
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* ==========================================================================
   Нижняя панель на телефоне (template-parts/tabbar.php), < 900px
   ========================================================================== */
.tabbar { display: none; }
@media (max-width: 899px) {
  :root { --tabbar-h: 64px; }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); padding: 0 6px env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid var(--bm-line-soft); box-shadow: 0 -6px 24px rgba(15, 23, 42, .06);
  }
  .tabbar__it {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    height: var(--tabbar-h); padding: 0; border: 0; background: none; cursor: pointer;
    color: #6b7280; font: 500 11px/1.1 var(--font); text-decoration: none; -webkit-tap-highlight-color: transparent;
  }
  .tabbar__it span { white-space: nowrap; }
  .tabbar__i { width: 23px; height: 23px; transition: transform .15s ease; }
  .tabbar__it:active .tabbar__i { transform: scale(.9); }
  .tabbar__it.is-active, .tabbar__it[aria-expanded="true"] { color: var(--bm-blue-900); font-weight: 600; }
  .tabbar__it.is-active::before {
    content: ""; position: absolute; top: 0; width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--bm-blue-900);
  }
  /* Центральная «Заявка»: круглая кнопка, приподнята над панелью */
  .tabbar__it--main { color: var(--bm-blue-900); font-weight: 600; justify-content: flex-end; padding-bottom: 9px; }
  .tabbar__fab {
    display: grid; place-items: center; width: 52px; height: 52px; margin-top: -22px; border-radius: 50%;
    background: var(--bm-blue-900); color: #fff; box-shadow: 0 8px 18px rgba(23, 54, 127, .35), 0 0 0 4px #fff;
  }
  .tabbar__fab .tabbar__i { width: 24px; height: 24px; stroke-width: 2.4; }
  .tabbar__it--main:active .tabbar__fab { transform: scale(.94); }

  /* Место под панель: контент, баннер cookie, всплывашки и плашка «Запросить КП» не прячутся под ней */
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
  .cookie { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 12px); }
  .ai-toast { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 16px); }
  .sticky-bar { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
  .bm-req-badge { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 12px) !important; }
}
@media print { .tabbar { display: none !important; } }
