/* Тема: mint (src/themes.css) */
:root {
  --primary: #1F2A2E; --primary-dark: #151C1F; --primary-mid: #1B7F53; --primary-soft: #CDEFE0; --primary-tint: #EEF9F3;
  --accent: #3DDC97; --accent-dark: #2CC583; --accent-tint: #DDF8EB; --on-accent: #102018;
  --accent-glow: rgba(61, 220, 151, .45); --accent-a15: rgba(61, 220, 151, .18);
  --accent-on-dark: #3DDC97;
  --dark: #1F2A2E;
  --bg: #F6F9F8; --text: #151C1F; --muted: #4B5A56; --line: #E1E9E6;
  --hero-bg: radial-gradient(circle at 85% 15%, rgba(61, 220, 151, .3), transparent 38%), radial-gradient(circle at 0% 100%, rgba(31, 42, 46, .08), transparent 55%), #E6F7EF;
  --hero-text: #151C1F; --hero-muted: #4B5A56; --hero-accent: #1B7F53; --hero-check: #1B7F53;
  --hero-glass: rgba(255, 255, 255, .75); --hero-glass-line: rgba(31, 42, 46, .12);
  --hero-ring: rgba(27, 127, 83, .12); --hero-ring-2: rgba(27, 127, 83, .05);
  --hero-img: linear-gradient(160deg, #FFFFFF, #CFF1E1);
  --hero-error: #DC2626; --hero-form-shadow: 0 10px 30px rgba(21, 28, 31, .1);
}

/* ==========================================================================
   Стили сайта. Bootstrap 5 подключён для сетки (row/col) и базовых стилей,
   всё остальное — здесь. Mobile-first: базовые стили для телефона,
   @media (min-width) — для планшетов и десктопа.
   ========================================================================== */

/* Цвета — в themes.css (тема выбирается в site.json). Здесь — всё, что от темы не зависит. */
:root {
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 30px rgba(15, 23, 42, .07);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Unbounded", "Manrope", system-ui, sans-serif;
  --hdr-h: 64px;
}

/* ── База ── */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 16px); }
html.is-locked, html.is-menu-open { overflow: hidden; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; letter-spacing: -.02em; line-height: 1.18; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.container { --bs-gutter-x: 2rem; }
.icon { flex-shrink: 0; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; pointer-events: none; }
:focus-visible { outline: 3px solid var(--primary-mid); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ── Кнопки ── */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 0; border-radius: 999px;
  font-family: var(--font); font-size: 16px; font-weight: 700; line-height: 1.2;
  cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, box-shadow .2s, transform .2s;
}
.button:active { transform: translateY(1px); }
.button:disabled { opacity: .7; cursor: default; }
.button--accent { background: var(--accent); color: var(--on-accent); }
.button--accent:hover { background: var(--accent-dark); color: var(--on-accent); }
.button--primary { background: var(--primary); color: #fff; }
.button--primary:hover { background: var(--primary-dark); color: #fff; }
.button--outline { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary-soft); }
.button--outline:hover { box-shadow: inset 0 0 0 2px var(--primary); }

/* ── Заголовки секций ── */
.section { padding: 64px 0; }
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head__sub { margin-top: 14px; font-size: 17px; color: var(--muted); }
.section-head--light .h2 { color: #fff; }
.section-head--light .section-head__sub { color: rgba(255, 255, 255, .75); }
.section-head--light .eyebrow { color: var(--accent-on-dark); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-mid);
}
.eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--accent); }
.section-head--center .eyebrow { justify-content: center; }
.h2 { font-size: clamp(24px, 5.6vw, 40px); }
.section-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-row .section-head { margin-bottom: 32px; }

@media (min-width: 992px) {
  .section { padding: 96px 0; }
  .section-head { margin-bottom: 48px; }
  .section-row .section-head { margin-bottom: 48px; }
}

/* ── Логотип ── */
.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo__mark { width: 40px; height: 40px; }
.logo__bg { fill: var(--accent); }
.logo__fg { stroke: var(--on-accent); }
.logo__dot { fill: var(--on-accent); }
.logo__text { font-family: var(--font-head); font-weight: 700; font-size: 18px; line-height: 1.1; letter-spacing: -.02em; color: var(--primary); }
.logo--light .logo__text { color: #fff; }
.logo--small .logo__mark { width: 34px; height: 34px; }
.logo--small .logo__text { font-size: 16px; }

/* ── Шапка ── */
/* без backdrop-filter: он ограничивает position:fixed у мобильного меню размерами шапки */
.hdr { position: sticky; top: 0; z-index: 900; background: #fff; border-bottom: 1px solid var(--line); }
.hdr__row { display: flex; align-items: center; gap: 12px; height: var(--hdr-h); }
.hdr__desc, .hdr__city, .hdr__contacts, .hdr__cta { display: none; }
.hdr__contacts, .hdr__cta, .hdr__icon-btn, .hdr__city { flex-shrink: 0; }
.hdr__desc { font-size: 13px; line-height: 1.35; color: var(--muted); padding-left: 14px; border-left: 1px solid var(--line); }
.hdr__city {
  align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  background: var(--primary-tint); color: var(--primary); font-size: 14px; font-weight: 700; white-space: nowrap;
}
.hdr__contacts { margin-left: auto; text-align: right; }
.hdr__phone { font-family: var(--font-head); font-size: 19px; font-weight: 600; color: var(--text); white-space: nowrap; }
.hdr__phone:hover { color: var(--primary); }
.hdr__hours { font-size: 13px; color: var(--muted); white-space: nowrap; }
.dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #22C55E; vertical-align: 1px; }
.hdr__cta { min-height: 46px; padding: 0 20px; font-size: 15px; }
.hdr__icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 12px; background: var(--primary-tint); color: var(--primary); cursor: pointer;
}
.hdr__call { margin-left: auto; background: var(--accent); color: var(--on-accent); }
.hdr__burger span { display: inline-grid; }
.hdr__burger .i-close, .hdr__burger[aria-expanded="true"] .i-open { display: none; }
.hdr__burger[aria-expanded="true"] .i-close { display: inline-grid; }

.hnav { display: none; border-top: 1px solid var(--line); }
.hnav__row { display: flex; align-items: center; gap: 4px; height: 48px; }
.hnav__link, .hnav__drop-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 0; border-radius: 999px;
  background: transparent; font-size: 15px; font-weight: 600; color: var(--text);
}
.hnav__link:hover, .hnav__drop-btn:hover, .hnav__drop-btn[aria-expanded="true"] { background: var(--primary-tint); color: var(--primary); }
.hnav__drop { position: relative; margin-right: 8px; }
.hnav__drop-btn { background: var(--primary); color: #fff; cursor: pointer; }
.hnav__drop-btn:hover, .hnav__drop-btn[aria-expanded="true"] { background: var(--primary-dark); color: #fff; }
.hnav__drop-btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.hnav__menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 2px;
  width: min(760px, 90vw); max-height: 70vh; overflow: auto; padding: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
}
.hnav__menu[hidden] { display: none; }
.hnav__menu a { padding: 7px 10px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.hnav__menu a:hover { background: var(--primary-tint); color: var(--primary); }

.mnav { position: fixed; inset: var(--hdr-h) 0 0; z-index: 899; overflow: auto; padding: 16px 0 100px; background: #fff; }
.mnav[hidden] { display: none; }
.mnav__links { display: grid; }
.mnav__link { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 700; }
.mnav__brands { border-bottom: 1px solid var(--line); }
.mnav__brands summary { padding: 14px 0; font-size: 18px; font-weight: 700; cursor: pointer; }
.mnav__brands-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; padding-bottom: 16px; }
.mnav__brands-list a { padding: 6px 0; color: var(--muted); font-weight: 600; }
.mnav__phone { display: block; margin-top: 24px; font-family: var(--font-head); font-size: 22px; white-space: nowrap; font-weight: 600; color: var(--primary); }
.mnav__hours { color: var(--muted); }

@media (min-width: 576px) {
  .hdr__contacts { display: block; }
  .hdr__call { display: none; }
}
@media (min-width: 768px) {
  .hdr__cta { display: inline-flex; }
}
/* «Сервисный центр» и «Москва и Московская область» длинные — до 1400px переносим их в две строки */
@media (max-width: 1399.98px) {
  .logo__text { max-width: 7.2em; font-size: 16px; }
  .hdr__city { padding: 6px 14px; border-radius: 14px; font-size: 13px; line-height: 1.25; }
}
@media (min-width: 992px) {
  :root { --hdr-h: 72px; }
  html { scroll-padding-top: calc(var(--hdr-h) + 64px); }
  .hdr__city { display: inline-flex; }
  .hdr__burger { display: none; }
  .hnav { display: block; }
  .mnav { display: none; }
}
@media (min-width: 1200px) {
  .hdr__row { gap: 20px; }
  .hdr__phone { font-size: 21px; }
}
@media (min-width: 1400px) {
  .hdr__desc { display: block; }
  .hdr__city-br { display: none; }
}

.hdr--simple { position: static; }
.hdr__phone--simple { display: none; margin-left: auto; font-size: 17px; }
@media (min-width: 576px) { .hdr__phone--simple { display: block; } }

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden; padding: 40px 0 112px; color: var(--hero-text);
  background: var(--hero-bg);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; border: 2px solid var(--hero-ring); pointer-events: none;
}
.hero::before { width: 620px; height: 620px; right: -180px; top: -140px; }
.hero::after { width: 420px; height: 420px; right: -80px; top: -40px; border-width: 30px; border-color: var(--hero-ring-2); }
.hero__grid { position: relative; z-index: 1; display: grid; gap: 40px; }
.hero__chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  background: var(--hero-glass); border: 1px solid var(--hero-glass-line);
  font-size: 14px; font-weight: 700;
}
.pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.pulse::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; background: var(--accent-glow); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { from { opacity: .9; transform: scale(.4); } to { opacity: 0; transform: scale(1.8); } }
.hero__title { margin: 20px 0 16px; font-size: clamp(28px, 7.4vw, 56px); font-weight: 700; line-height: 1.1; }
.hero__title .accent { color: var(--hero-accent); }
.hero__lead { max-width: 580px; font-size: 17px; color: var(--hero-muted); }
.hero__features { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 24px 0 28px; padding: 0; list-style: none; font-weight: 700; }
.hero__features li { display: inline-flex; align-items: center; gap: 10px; }
.hero__feat-ico { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.hero__call { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--hero-muted); }
.hero__call b { color: var(--hero-text); white-space: nowrap; }
.hero__call:hover b { color: var(--hero-accent); }
.hero__call-ico { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--hero-glass); }

/* Мастер без подложки «стоит» на нижней границе первого экрана: низ картинки уходит под плашку преимуществ */
.hero__media { position: relative; align-self: end; width: 100%; max-width: 520px; margin: 0 auto -112px; }
.hero__img img {
  display: block; width: 100%; height: auto;
  /* в исходнике локоть срезан по правому краю — растворяем срез в фон */
  -webkit-mask-image: linear-gradient(to right, #000 86%, transparent 100%);
  mask-image: linear-gradient(to right, #000 86%, transparent 100%);
}
.hero__badge {
  position: absolute; display: flex; align-items: center; gap: 10px; max-width: 220px; padding: 12px 16px;
  border-radius: 16px; background: #fff; color: var(--text); box-shadow: 0 16px 40px rgba(15, 23, 42, .25);
  font-size: 14px; font-weight: 700; line-height: 1.3;
}
.hero__badge .icon { color: var(--primary); }
.hero__badge--1 { left: -6px; top: 18%; }
.page--brand .hero__badge--1 { top: 32%; }
.hero__badge--2 { right: -6px; bottom: 150px; }
.hero__brand {
  position: absolute; left: 16px; top: 16px; display: grid; place-items: center;
  width: 132px; height: 66px; padding: 8px 12px; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(15, 23, 42, .2);
}
.hero__brand img { max-height: 46px; width: auto; object-fit: contain; }

@media (min-width: 992px) {
  .hero { padding: 64px 0 136px; }
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 48px; }
  .hero__media { margin: 0 0 -136px; transform: translateX(-28px); }
  .hero__badge--1 { left: -40px; }
  .hero__badge--2 { right: -24px; bottom: 190px; }
}

/* ── Формы ── */
.lead-form__row { display: flex; flex-direction: column; gap: 10px; }
.field {
  width: 100%; min-height: 54px; padding: 0 22px; border: 2px solid transparent; border-radius: 999px;
  background: #fff; color: var(--text); font-family: var(--font); font-size: 17px; font-weight: 600;
}
.field::placeholder { color: var(--muted); opacity: .6; }
.field:focus { outline: none; border-color: var(--accent); }
.lead-form .button { min-height: 54px; }
.lead-form__error { margin-top: 8px; font-size: 14px; font-weight: 700; color: #DC2626; }
.hero__form .lead-form__error { color: var(--hero-error); }
.price-cta .lead-form__error { color: #FECACA; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; font-size: 13px; line-height: 1.4; color: var(--muted); cursor: pointer; }
.consent input { width: 16px; height: 16px; margin-top: 1px; flex-shrink: 0; accent-color: var(--primary); }
.consent a { text-decoration: underline; }
.consent--light { color: rgba(255, 255, 255, .7); }
.consent--light input { accent-color: var(--accent); }
.hero .consent--light { color: var(--hero-muted); }
.hero .consent--light input { accent-color: var(--hero-check); }
.hero .field { box-shadow: var(--hero-form-shadow); }
.lead-form--stack .field { border-color: var(--line); }
.lead-form--stack .field:focus { border-color: var(--primary); }

@media (min-width: 576px) {
  .lead-form:not(.lead-form--stack) .lead-form__row { flex-direction: row; max-width: 560px; padding: 5px; border-radius: 999px; background: #fff; }
  .hero .lead-form__row { box-shadow: var(--hero-form-shadow); }
  .hero .lead-form__row .field { box-shadow: none; }
  .lead-form:not(.lead-form--stack) .lead-form__row .field { min-height: 50px; border: 0; }
  .lead-form:not(.lead-form--stack) .lead-form__row .button { min-height: 50px; }
}

/* ── Полоса преимуществ ── */
.stats { position: relative; z-index: 2; margin-top: -72px; }
.stats__card {
  display: grid; gap: 20px; padding: 24px; border-radius: var(--r-lg);
  background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.stats__item { display: flex; align-items: flex-start; gap: 14px; }
.stats__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--primary-tint); color: var(--primary); flex-shrink: 0; }
.stats__title { font-weight: 800; }
.stats__text { font-size: 14px; color: var(--muted); }
@media (min-width: 768px) { .stats__card { grid-template-columns: 1fr 1fr; padding: 28px; } }
@media (min-width: 1200px) { .stats__card { grid-template-columns: repeat(4, 1fr); padding: 32px; } }

/* ── Бегущая строка ── */
.ticker { margin-top: 48px; overflow: hidden; background: var(--accent); color: var(--on-accent); transform: rotate(-1deg); }
.ticker__track { display: flex; width: max-content; animation: ticker 36s linear infinite; }
.ticker__group { display: flex; }
.ticker__item { display: inline-flex; align-items: center; padding: 14px 0; font-weight: 800; white-space: nowrap; }
.ticker__item::after { content: "✦"; margin: 0 24px; opacity: .6; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ── Цены ── */
.price-card {
  display: flex; flex-direction: column; height: 100%; padding: 24px; border-radius: var(--r);
  background: #fff; border: 1px solid var(--line); transition: border-color .2s, transform .2s, box-shadow .2s;
}
.price-card:hover { border-color: var(--primary-soft); box-shadow: var(--shadow); transform: translateY(-2px); }
.price-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.price-card__ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--accent-tint); color: var(--primary); flex-shrink: 0; }
.price-card__name { font-size: 19px; }
.price-card__list { display: grid; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.price-card__list li { display: flex; gap: 10px; }
.price-card__list .icon { margin-top: 3px; color: var(--primary-mid); }
.price-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--line); }
.price-card__price { color: var(--muted); }
.price-card__price b { font-family: var(--font-head); font-size: 24px; font-weight: 700; color: var(--primary); }
.price-card__btn {
  display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); cursor: pointer; transition: background-color .2s, transform .2s;
}
.price-card__btn:hover { background: var(--accent-dark); transform: translateX(2px); }

.price-cta {
  display: grid; gap: 20px; margin-top: 24px; padding: 28px 24px; border-radius: var(--r-lg);
  background: var(--dark); color: #fff;
}
.price-cta h3 { font-size: 22px; margin-bottom: 8px; }
.price-cta p { color: rgba(255, 255, 255, .75); }
@media (min-width: 992px) {
  .price-cta { grid-template-columns: 1fr 1.1fr; align-items: center; gap: 40px; padding: 40px 48px; }
}

/* ── Квиз ── */
.quiz { padding-top: 0; }
.quiz__box { display: grid; overflow: hidden; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.quiz__main { padding: 28px 20px; }
.quiz__main .section-head { margin-bottom: 24px; }
.quiz__progress { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; font-size: 14px; font-weight: 700; color: var(--muted); }
.quiz__bar { flex: 1; height: 6px; border-radius: 3px; background: var(--primary-tint); overflow: hidden; }
.quiz__bar i { display: block; height: 100%; width: 33%; border-radius: 3px; background: var(--primary); transition: width .3s; }
.quiz__step { margin: 0 0 28px; padding: 0; border: 0; min-width: 0; }
.quiz--js .quiz__step { display: none; margin: 0; }
.quiz--js .quiz__step.is-active { display: block; animation: fade-in .25s ease-out; }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.quiz__q { float: none; width: 100%; margin-bottom: 16px; font-family: var(--font-head); font-size: 20px; font-weight: 600; }
.quiz__hint { margin: -6px 0 16px; color: var(--muted); }
.quiz__opts { display: grid; grid-template-columns: 1fr; gap: 10px; }
.quiz__opt { position: relative; cursor: pointer; }
.quiz__opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.quiz__opt span {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 18px; border-radius: 16px;
  border: 2px solid var(--line); background: #fff; font-weight: 700; transition: border-color .15s, background-color .15s;
}
.quiz__opt span::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--primary-soft); flex-shrink: 0; transition: border .15s; }
.quiz__opt:hover span { border-color: var(--primary-soft); }
.quiz__opt input:checked + span { border-color: var(--primary); background: var(--primary-tint); }
.quiz__opt input:checked + span::before { border: 6px solid var(--primary); }
.quiz__opt input:focus-visible + span { outline: 3px solid var(--primary-mid); outline-offset: 2px; }
.quiz__phone { display: flex; flex-direction: column; gap: 10px; }
.quiz__phone .field { border-color: var(--line); }
.quiz__phone .field:focus { border-color: var(--primary); }
.quiz__back {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; padding: 6px 0; border: 0;
  background: none; color: var(--muted); font-weight: 700; cursor: pointer;
}
.quiz__back:hover { color: var(--primary); }
.quiz__aside { position: relative; overflow: hidden; padding: 28px 20px 0; background: var(--primary); color: #fff; }
.quiz__aside-title { margin-bottom: 16px; font-family: var(--font-head); font-size: 20px; font-weight: 600; }
.quiz__points { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.quiz__points li { display: flex; gap: 10px; color: rgba(255, 255, 255, .85); }
.quiz__points .icon { margin-top: 3px; color: var(--accent-on-dark); }
.quiz__img { display: block; width: 100%; max-width: 440px; margin: 28px auto 28px; }
@media (min-width: 576px) {
  .quiz__opts { grid-template-columns: 1fr 1fr; }
  .quiz__phone { flex-direction: row; }
  .quiz__phone .button { flex-shrink: 0; }
}
@media (min-width: 992px) {
  .quiz__box { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .quiz__main { padding: 48px; }
  .quiz__aside { padding: 48px 40px 0; }
}

/* ── Марки ── */
.brands { background: #fff; }
.brands__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.brand-tile {
  display: grid; place-items: center; aspect-ratio: 3 / 2; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: border-color .2s, box-shadow .2s;
}
.brand-tile:hover { border-color: var(--primary-soft); box-shadow: var(--shadow); }
.brand-tile img { max-height: 48px; width: auto; max-width: 100%; object-fit: contain; }
.brand-word { font-family: var(--font-head); font-size: clamp(11px, 3.4vw, 15px); font-weight: 700; color: var(--c, var(--text)); text-align: center; line-height: 1.2; overflow-wrap: anywhere; }
.brands__grid:not(.is-expanded) .brand-tile:nth-child(n + 13) { display: none; }
.brands__more { margin-top: 24px; text-align: center; }
@media (min-width: 768px) {
  .brands__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
}
@media (min-width: 992px) {
  .brands__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .brands__grid:not(.is-expanded) .brand-tile:nth-child(n + 13) { display: grid; }
  .brands__grid:not(.is-expanded) .brand-tile:nth-child(n + 19) { display: none; }
}

/* ── Что входит ── */
.included__grid { display: grid; gap: 40px; }
.included__media { position: relative; display: grid; place-items: center; min-height: 320px; padding: 32px; border-radius: var(--r-lg); background: var(--primary-tint); }
.included__media img { max-height: 420px; width: auto; object-fit: contain; }
.included__badge {
  position: absolute; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 700;
}
.included__badge .icon { color: var(--accent-on-dark); }
.included__list { display: grid; gap: 22px; margin: 0 0 32px; padding: 0; list-style: none; }
.included__item { display: flex; gap: 16px; }
.included__ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); flex-shrink: 0; }
.included__item h3 { margin-bottom: 4px; font-family: var(--font); font-size: 18px; font-weight: 800; letter-spacing: 0; }
.included__item p { color: var(--muted); }
@media (min-width: 992px) {
  .included__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 64px; }
  .included__media { min-height: 520px; }
}

/* ── Этапы ── */
.steps { background: var(--primary-tint); }
.steps__list { position: relative; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.steps__item { position: relative; padding: 0 0 28px 64px; }
.steps__item::before { content: ""; position: absolute; left: 23px; top: 48px; bottom: 0; width: 2px; background: var(--primary-soft); }
.steps__item:last-child::before { display: none; }
.steps__num {
  position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-family: var(--font-head); font-weight: 700; font-size: 18px;
  box-shadow: 0 0 0 6px var(--primary-tint);
}
.steps__item h3 { margin: 10px 0 6px; font-size: 18px; }
.steps__item p { color: var(--muted); font-size: 15px; }
.steps__cta { margin-top: 24px; text-align: center; }
@media (min-width: 768px) {
  .steps__list { grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
  .steps__item { padding: 0; }
  .steps__item::before { display: none; }
  .steps__num { position: static; margin-bottom: 14px; }
}
@media (min-width: 1200px) {
  .steps__list { grid-template-columns: repeat(6, 1fr); gap: 20px; }
  .steps__list::before { content: ""; position: absolute; left: 24px; right: 24px; top: 23px; height: 2px; background: var(--primary-soft); }
  .steps__num { position: relative; }
  .steps__cta { margin-top: 48px; }
}

/* ── Ленты: мастера и отзывы ── */
.track {
  display: grid; grid-auto-flow: column; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 -16px; padding: 4px 16px 20px; scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.track > * { scroll-snap-align: start; }
.track-nav { display: none; gap: 10px; flex-shrink: 0; }
.track-nav__btn {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid var(--primary-soft); background: #fff; color: var(--primary); cursor: pointer; transition: background-color .2s, border-color .2s;
}
.track-nav__btn:hover:not(:disabled) { background: var(--primary); border-color: var(--primary); color: #fff; }
.track-nav__btn:disabled { opacity: .35; cursor: default; }
.track--static .track-nav { visibility: hidden; }
@media (min-width: 768px) {
  .track-nav { display: flex; margin-bottom: 48px; }
  .track { margin: 0; padding: 4px 0 20px; }
}

.masters__track { grid-auto-columns: minmax(240px, 72%); }
.master { padding: 12px 12px 20px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.master__photo { overflow: hidden; aspect-ratio: 4 / 5; margin-bottom: 16px; border-radius: 14px; background: linear-gradient(180deg, var(--primary-tint), var(--primary-soft)); }
.master__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.master__name { padding: 0 8px; font-family: var(--font-head); font-size: 17px; font-weight: 600; line-height: 1.25; }
.master__role { padding: 0 8px; margin: 4px 0 12px; color: var(--muted); font-size: 15px; }
.master__exp { display: inline-block; margin-left: 8px; padding: 5px 12px; border-radius: 999px; background: var(--accent-tint); color: var(--text); font-size: 13px; font-weight: 800; }
@media (min-width: 768px) { .masters__track { grid-auto-columns: calc((100% - 32px) / 3); } }
@media (min-width: 1200px) { .masters__track { grid-auto-columns: calc((100% - 48px) / 4); } }

.reviews { background: #fff; }
.reviews__track { grid-auto-columns: minmax(270px, 86%); }
.review { display: flex; flex-direction: column; padding: 24px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); }
.review__stars { display: flex; gap: 2px; margin-bottom: 14px; color: #F5B301; }
.review__text { flex: 1; margin-bottom: 20px; font-size: 15px; }
.review__author { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.review__ava { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
@media (min-width: 768px) { .reviews__track { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (min-width: 1200px) { .reviews__track { grid-auto-columns: calc((100% - 32px) / 3); } }

/* ── Договор и гарантия ── */
.guarantee { background: var(--dark); color: #fff; }
.guarantee__grid { display: grid; gap: 16px; }
.guarantee__item { padding: 28px 24px; border-radius: var(--r); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.guarantee__ico { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 14px; background: var(--accent-a15); color: var(--accent-on-dark); }
.guarantee__item h3 { margin-bottom: 8px; font-size: 18px; }
.guarantee__item p { color: rgba(255, 255, 255, .72); font-size: 15px; }
.guarantee__card { display: flex; flex-direction: column; align-items: flex-start; padding: 28px 24px; border-radius: var(--r); background: var(--accent); color: var(--on-accent); }
.guarantee__card-ico { margin-bottom: 16px; }
.guarantee__card h3 { margin-bottom: 10px; font-size: 24px; }
.guarantee__card p { margin-bottom: 20px; }
.guarantee__card .button { margin-top: auto; background: var(--dark); color: #fff; }
@media (min-width: 768px) { .guarantee__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .guarantee__grid { grid-template-columns: repeat(3, 1fr) 1.15fr; } }

/* ── Типы машин ── */
.types__grid { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 8px; scrollbar-width: none; }
.types__grid::-webkit-scrollbar { display: none; }
.type-card { scroll-snap-align: start; padding: 16px 12px 20px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); text-align: center; }
.type-card img { display: block; height: 170px; width: auto; margin: 0 auto 14px; object-fit: contain; }
.type-card__name { font-weight: 800; line-height: 1.3; }
@media (min-width: 768px) { .types__grid { grid-auto-columns: calc((100% - 36px) / 4); margin: 0; padding: 0 0 8px; } }
@media (min-width: 1200px) { .types__grid { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; } }

/* ── FAQ ── */
.faq { background: #fff; }
.faq__grid { display: grid; gap: 32px; }
.faq__call { padding: 24px; border-radius: var(--r); background: var(--dark); color: #fff; }
.faq__call-title { margin-bottom: 6px; font-family: var(--font-head); font-size: 20px; font-weight: 600; }
.faq__call p { margin-bottom: 18px; color: rgba(255, 255, 255, .78); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0;
  font-size: 17px; font-weight: 800; cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary-tint); color: var(--primary); flex-shrink: 0; transition: transform .2s, background-color .2s; }
.faq__item[open] .faq__plus { transform: rotate(45deg); background: var(--accent); color: var(--on-accent); }
.faq__item p { padding: 0 52px 20px 0; color: var(--muted); }
@media (min-width: 992px) {
  .faq__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .faq__side { position: sticky; top: calc(var(--hdr-h) + 72px); }
}

/* ── Города ── */
.cities__grid { display: grid; gap: 24px; }
.cities__region { margin-bottom: 10px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cities__links { display: flex; flex-wrap: wrap; gap: 8px; }
.city-link { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 15px; transition: border-color .2s, background-color .2s, color .2s; }
.city-link:hover { border-color: var(--primary); color: var(--primary); }
.city-link[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: #fff; }
@media (min-width: 768px) { .cities__grid { grid-template-columns: 1fr 1fr; gap: 28px 40px; } }
@media (min-width: 1200px) { .cities__grid { grid-template-columns: repeat(4, 1fr); } }

/* ── Карта ── */
.map-sec { padding-top: 0; }
.map-sec__box { position: relative; display: grid; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; }
.map-sec__map { height: 380px; background: var(--primary-tint); z-index: 0; }
.map-sec__map--error::after { content: "Карта не загрузилась"; display: grid; place-items: center; height: 100%; color: var(--muted); }
.map-sec__card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; }
.map-sec__hours { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; }
.map-sec__phone { font-family: var(--font-head); font-size: 22px; font-weight: 600; color: var(--primary); white-space: nowrap; }
@media (min-width: 992px) {
  .map-sec__map { height: 540px; }
  .map-sec__card { position: absolute; left: 24px; top: 24px; z-index: 500; width: 340px; padding: 28px; border-radius: var(--r); background: #fff; box-shadow: var(--shadow); }
}
.map-pin { background: none; border: 0; }
.map-pin__dot {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); border: 3px solid #fff; box-shadow: 0 6px 16px rgba(15, 23, 42, .3);
}
.map-pin--main .map-pin__dot { background: var(--primary); color: #fff; transform: scale(1.2); }
.map-popup { display: grid; gap: 10px; min-width: 190px; font-family: var(--font); }
.map-popup b { font-size: 15px; }
.map-popup .button { min-height: 42px; padding: 0 18px; font-size: 14px; }
.map-popup a { color: var(--primary); font-weight: 700; text-align: center; }

/* ── Подвал ── */
.ftr { padding: 56px 0 24px; background: var(--dark); color: rgba(255, 255, 255, .72); font-size: 15px; }
.ftr__grid { display: grid; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ftr__about p { margin: 16px 0 12px; }
.ftr__addr { display: flex; gap: 8px; }
.ftr__title { margin-bottom: 14px; font-family: var(--font-head); font-size: 15px; font-weight: 600; color: #fff; }
.ftr__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ftr__list--cols { grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.ftr__list a:hover { color: var(--accent-on-dark); }
.ftr__phone { display: block; font-family: var(--font-head); font-size: 20px; font-weight: 600; color: #fff; white-space: nowrap; }
.ftr__phone:hover { color: var(--accent-on-dark); }
.ftr__hours { margin: 4px 0 16px; }
.ftr__bottom { display: grid; gap: 6px; padding-top: 20px; font-size: 13px; color: rgba(255, 255, 255, .5); }
.ftr__bottom a { text-decoration: underline; }
.ftr__bottom a:hover { color: #fff; }
@media (min-width: 768px) { .ftr__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) {
  .ftr__grid { grid-template-columns: 1.4fr .8fr 1.2fr 1fr; gap: 48px; }
  .ftr__grid--3 { grid-template-columns: 1.6fr 1fr 1fr; }
}

/* ── Нижняя панель на телефоне ── */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 800; display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -6px 24px rgba(15, 23, 42, .1);
}
.mbar .button { min-height: 48px; padding: 0 12px; font-size: 15px; }
.mbar .button--primary { background: var(--dark); }
body.page:not(.page--simple) { padding-bottom: 72px; }
@media (min-width: 768px) {
  .mbar { display: none; }
  body.page:not(.page--simple) { padding-bottom: 0; }
}

/* ── Попап ── */
.popup { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; }
.popup[hidden] { display: none; }
.popup:not(.is-open) { pointer-events: none; }
.popup__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .6); opacity: 0; transition: opacity .2s; }
.popup__card {
  position: relative; width: 100%; max-width: 440px; padding: 36px 24px 28px; border-radius: var(--r-lg);
  background: #fff; text-align: center; opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .2s, transform .2s;
}
.popup.is-open .popup__backdrop { opacity: 1; }
.popup.is-open .popup__card { opacity: 1; transform: none; }
.popup__close { position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg); color: var(--muted); cursor: pointer; }
.popup__close:hover { color: var(--text); }
.popup__ico { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 16px; border-radius: 20px; background: var(--accent); color: var(--on-accent); }
.popup__title { margin-bottom: 8px; font-size: 24px; }
.popup__text { margin-bottom: 22px; color: var(--muted); }
.popup .consent { text-align: left; }
@media (min-width: 576px) { .popup__card { padding: 44px 40px 32px; } }

/* ── Простые страницы: спасибо, 404, политика ── */
.simple { padding: 48px 0 80px; }
.simple__card { max-width: 560px; margin: 0 auto; padding: 40px 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); text-align: center; }
.simple__ico { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 20px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.simple__card p { margin: 14px 0; color: var(--muted); }
.simple__phone { display: block; margin-bottom: 24px; font-family: var(--font-head); font-size: 22px; white-space: nowrap; font-weight: 600; color: var(--primary); }
.policy { max-width: 860px; margin: 0 auto; padding: 32px 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.policy h1 { margin-bottom: 20px; }
.policy h3 { margin: 28px 0 10px; font-size: 18px; }
.policy p { margin-bottom: 10px; color: var(--muted); }
.policy a { color: var(--primary); text-decoration: underline; }
@media (min-width: 768px) { .policy { padding: 48px; } }
