/* ==========================================================================
   Kioti Санкт-Петербург — style.css
   1. Токены, сброс, типографика, контейнер, кнопки, формы
   ========================================================================== */

:root {
  /* Палитра (замеры с референса) */
  --ivory:      #FBF8F2;
  --white:      #FFFFFF;
  --ink:        #0F1326;
  --ink-2:      #4A4F5C;
  --ink-3:      #6E7280;
  --ink-900:    #14181F;
  --blue:       #0045A5;
  --blue-700:   #003782;
  --blue-300:   rgba(0, 69, 165, .35);
  --sky:        #AECFF3;
  /* Тот же голубой, но с контрастом ≥3:1 к белому и слоновой кости: --sky
     давал 1,5–1,6:1, и крупные номера блоков сливались с фоном. */
  --sky-num:    #5A86C5;
  --sky-soft:   #DCE9FA;
  --sky-line:   #C9D8EE;
  --line:       #E7E1D6;
  --line-2:     #E8E8EC;
  --stock:      #1F7A45;

  /* Шрифты */
  --font-display: "Manrope","Golos Text","Arial",sans-serif;
  --font-ui: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  /* Сетка */
  --container: 1170px;
  --gutter: 24px;
  --sec-y: 96px;
  --head-gap: 48px;

  /* Прочее */
  --r-card: 10px;
  --r-img: 6px;
  --r-tile: 8px;
  --r-sm: 4px;
  --shadow-card: 0 1px 2px rgba(15, 19, 38, .04);
  --t: 160ms ease;
}

/* --- Сброс --- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 26px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-700); }

[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--blue); color: #fff; padding: 12px 20px; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* --- Типографика --- */
.h-display, h1.h-display, .sec__title--display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 56px;
  line-height: 60px;
  letter-spacing: -.015em;
  color: var(--ink);
}

h1 { font-family: var(--font-display); font-weight: 400; font-size: 48px; line-height: 54px; letter-spacing: -.015em; }
h2 { font-family: var(--font-ui); font-weight: 600; font-size: 28px; line-height: 34px; letter-spacing: -.005em; }
h3 { font-family: var(--font-ui); font-weight: 600; font-size: 20px; line-height: 26px; }
h4 { font-family: var(--font-ui); font-weight: 600; font-size: 17px; line-height: 24px; }

.lead { font-size: 18px; line-height: 28px; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.small { font-size: 14px; line-height: 22px; color: var(--ink-2); }

.kicker {
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  color: var(--ink-3);
  margin-bottom: 8px;
}

.num-tab { font-variant-numeric: tabular-nums; }

/* Вертикальные отступы между блоками внутри секции */
.subhead { font-size: 19px; line-height: 26px; font-weight: 600; margin-bottom: 14px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mt-56 { margin-top: 56px; }
.mb-32 { margin-bottom: 32px; }

/* --- Контейнер и секции --- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.page-shell { overflow-x: clip; }

.sec { padding: var(--sec-y) 0; }
.sec--tight { padding: 64px 0; }
.sec--white { background: var(--white); }
.sec--ivory { background: var(--ivory); }
.sec--sky { background: var(--sky); }
.sec--hair { border-top: 1px solid var(--line); }
.sec--hair-2 { border-top: 1px solid var(--line-2); }

.sec__head { max-width: 760px; margin-bottom: var(--head-gap); }
.sec__head--center { margin-left: auto; margin-right: auto; text-align: center; max-width: 720px; }
.sec__title { margin-bottom: 14px; }
.sec__title--display { max-width: 16ch; }
.sec__head--center .sec__title--display { max-width: 20ch; margin-left: auto; margin-right: auto; }
.sec__lead { font-size: 18px; line-height: 28px; color: var(--ink-2); }

.sec__foot { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* --- Кнопки --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 28px;
  border-radius: 24px;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color var(--t), border-color var(--t), color var(--t), transform var(--t);
}

.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-700); color: #fff; }
.btn--primary:active { transform: translateY(1px); }

.btn--outline { background: transparent; border-color: var(--blue); color: var(--blue); }
.btn--outline:hover { background: var(--sky-soft); color: var(--blue-700); border-color: var(--blue-700); }
.btn--outline:active { transform: translateY(1px); }

.btn--ghost { background: transparent; border-color: var(--blue); color: var(--blue); }
.btn--ghost:hover { background: var(--sky-soft); color: var(--blue-700); }

.btn--on-photo { background: transparent; border-color: rgba(255, 255, 255, .8); color: #fff; }
.btn--on-photo:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn--sm { height: 42px; padding: 0 20px; font-size: 14px; border-radius: 21px; }
.btn--block { width: 100%; }

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue-300);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Текстовая ссылка-действие */
.link-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 69, 165, .35);
  transition: text-decoration-color var(--t), color var(--t);
}
.link-action:hover { color: var(--blue-700); text-decoration-color: currentColor; }
.link-action .ic { flex: 0 0 auto; }

/* Малая кнопка-иконка */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: var(--white);
  color: var(--ink-2);
  transition: border-color var(--t), color var(--t), background-color var(--t);
}
.icon-btn:hover { border-color: var(--blue); color: var(--blue); }
.icon-btn[disabled] { opacity: .4; cursor: default; }
.icon-btn[disabled]:hover { border-color: var(--line-2); color: var(--ink-2); }

/* --- Бейджи и чипы --- */
.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--r-sm);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  white-space: nowrap;
}
.badge--new { background: var(--blue); color: #fff; }
.badge--stock { background: rgba(31, 122, 69, .12); color: var(--stock); }
.badge--soft { background: var(--sky-soft); color: var(--blue); }
/* --ink-3 на --line-2 давал 3,97:1 — ниже нормы даже без затемнения карточки. */
.badge--off { background: var(--line-2); color: var(--ink-2); }

.chip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 16px;   /* половина высоты чипа */
  background: var(--sky-soft);
  color: var(--blue);
  font-size: 14px;
  font-weight: 500;
  transition: background-color var(--t), color var(--t);
}
a.chip:hover { background: var(--sky); color: var(--blue-700); }

.stock-note { color: var(--stock); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.stock-note--off { color: var(--ink-3); }

/* --- Формы --- */
.form { display: grid; gap: 16px; }

.field { display: grid; gap: 6px; }
.field__label { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-2); }

.field__input,
.field__select,
.field__area {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  transition: border-color var(--t), box-shadow var(--t);
}
.field__area { height: auto; min-height: 120px; padding: 12px 14px; line-height: 24px; resize: vertical; }

.field__select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234A4F5C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 9.5 5.5 5 5.5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.field__input::placeholder, .field__area::placeholder { color: var(--ink-3); }
.field__input:hover, .field__select:hover, .field__area:hover { border-color: var(--sky-line); }
.field__input:focus, .field__select:focus, .field__area:focus { border-color: var(--blue); outline: 3px solid var(--blue-300); outline-offset: 1px; }

/* Поля с подчёркиванием (как на референсе — форма контактов) */
.form--underline .field__input,
.form--underline .field__select,
.form--underline .field__area {
  border: 0;
  border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  padding-left: 0;
  background-color: transparent;
}
.form--underline .field__select { background-position: right 4px center; padding-right: 28px; }
.form--underline .field__input:focus,
.form--underline .field__select:focus,
.form--underline .field__area:focus { border-bottom-color: var(--blue); outline-offset: 3px; }

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-2);
  cursor: pointer;
}
.check input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  margin: 1px 0 0;
  accent-color: var(--blue);
  cursor: pointer;
}

.radio {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--white);
  font-size: 15px;
  cursor: pointer;
  transition: border-color var(--t), background-color var(--t);
}
.radio:hover { border-color: var(--sky-line); }
.radio input[type="radio"] { width: 18px; height: 18px; accent-color: var(--blue); cursor: pointer; flex: 0 0 auto; }
.radio:has(input:checked) { border-color: var(--blue); background: var(--sky-soft); }

.form__note {
  margin-top: 4px;
  font-size: 14px;
  line-height: 20px;
  color: var(--stock);
  font-weight: 500;
}
.form__legal { font-size: 13px; line-height: 19px; color: var(--ink-3); }

/* --- Утилиты --- */
.stars { display: inline-flex; gap: 2px; color: var(--line-2); }
.stars .star { display: inline-flex; }
.stars .star.is-on { color: var(--blue); }
.stars .star.is-on svg { fill: currentColor; }

.ic { flex: 0 0 auto; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* Появление при скролле */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   2. Шапка, навигация, бургер, мобильное меню, футер
   ========================================================================== */

/* --- Topbar --- */
.topbar {
  height: 40px;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
  position: relative;
  z-index: 60;
}
.topbar__in { display: flex; align-items: center; justify-content: space-between; height: 40px; gap: 24px; }
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 24px; min-width: 0; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar__item .ic { color: var(--ink-3); }
.topbar__phone { color: var(--ink); font-size: 15px; font-weight: 600; white-space: nowrap; }
.topbar__phone:hover { color: var(--blue); }
.topbar__link { color: var(--blue); font-size: 14px; font-weight: 500; white-space: nowrap; transition: color var(--t); }
.topbar__link:hover { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }

/* На главной topbar прозрачный поверх фото */
.page-shell--home .topbar {
  position: absolute; top: 0; left: 0; right: 0;
  background: transparent;
  border-bottom-color: rgba(255, 255, 255, .22);
  color: rgba(255, 255, 255, .82);
}
.page-shell--home .topbar__phone { color: #fff; }
.page-shell--home .topbar__link { color: #fff; }
.page-shell--home .topbar__phone:hover, .page-shell--home .topbar__link:hover { color: var(--sky); }
.page-shell--home .topbar__item .ic { color: rgba(255, 255, 255, .7); }

/* --- Основная шапка --- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 76px;
  background: transparent;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
  border-bottom: 1px solid transparent;
}
.page-shell--home .header { position: absolute; top: 40px; left: 0; right: 0; }
.page-shell--home .header.is-solid { position: fixed; top: 0; }

.header.is-solid { background: var(--ivory); border-bottom-color: var(--line); }

.header__in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}

/* Шапка тянется шире контентного контейнера: логотип у левого края, меню по центру,
   действия у правого — как в дизайн-референсе. В 1170px восемь пунктов меню
   и две кнопки физически не помещаются и наезжают друг на друга. */
.topbar__in,
.header__in {
  max-width: 1560px;
  padding-left: 40px;
  padding-right: 40px;
}

/* Логотип */
.logo { flex: 0 0 auto; display: block; color: var(--ink); }
.logo__mark { display: block; font-family: var(--font-display); font-size: 28px; line-height: 32px; letter-spacing: -.01em; }
.logo__sub { display: block; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-3); margin-top: 1px; }
.logo:hover { color: var(--ink); }
.logo:hover .logo__mark { color: var(--blue); }

.page-shell--home .header:not(.is-solid) .logo,
.page-shell--home .header:not(.is-solid) .logo__mark { color: #fff; }
.page-shell--home .header:not(.is-solid) .logo__sub { color: rgba(255, 255, 255, .75); }
.page-shell--home .header:not(.is-solid) .nav__link { color: #fff; }
.page-shell--home .header:not(.is-solid) .nav__link:hover { color: var(--sky); }
.page-shell--home .header:not(.is-solid) .btn--ghost { border-color: rgba(255, 255, 255, .8); color: #fff; }
.page-shell--home .header:not(.is-solid) .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.page-shell--home .header:not(.is-solid) .burger__bar { background: #fff; }

/* Навигация */
.nav { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; }
.nav__list { display: flex; align-items: center; gap: 28px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  padding: 26px 0;
  transition: color var(--t), box-shadow var(--t);
}
.nav__link:hover { color: var(--blue); }
.nav__link.is-active { color: var(--blue); box-shadow: inset 0 -2px 0 0 var(--blue); }
.nav__chev { transition: transform var(--t); }
.nav__link[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }

.header__actions { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }

/* Мегаменю каталога */
.mega {
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--white);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  box-shadow: 0 12px 28px rgba(15, 19, 38, .07);
}
.mega__in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-top: 32px; padding-bottom: 32px; }
.mega__title { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-bottom: 14px; }
.mega__list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; }
.mega__list a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--ink);
  transition: background-color var(--t), color var(--t);
}
.mega__list a:hover { background: var(--sky-soft); color: var(--blue); }
.mega__name { display: block; font-size: 15px; font-weight: 500; }
.mega__meta { display: block; font-size: 13px; line-height: 18px; color: var(--ink-3); }
.mega__list a:hover .mega__meta { color: var(--blue); }
.mega__all { margin-top: 16px; margin-left: 12px; }

/* Бургер */
.burger {
  display: none;
  flex: 0 0 auto;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border-radius: 6px;
}
.burger__bar { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform 200ms ease, opacity 200ms ease; }
.burger[aria-expanded="true"] .burger__bar:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bar:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* --- Мобильная панель --- */
.mpanel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(380px, 90vw);
  z-index: 120;
  background: var(--white);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 240ms ease;
  padding-bottom: 24px;
}
.mpanel.is-open { transform: none; }
.mpanel__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line-2); }
.mpanel__logo { font-family: var(--font-display); font-size: 24px; color: var(--ink); }
.mpanel__close { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 6px; color: var(--ink-2); }
.mpanel__close:hover { color: var(--blue); }

.mpanel__nav { padding: 8px 12px; }
.mpanel__item { border-bottom: 1px solid var(--line-2); }
.mpanel__row { display: flex; align-items: center; }
.mpanel__link { flex: 1 1 auto; display: block; padding: 14px 8px; font-size: 17px; font-weight: 500; color: var(--ink); }
.mpanel__link:hover, .mpanel__link.is-active { color: var(--blue); }
.mpanel__toggle { flex: 0 0 auto; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--ink-3); border-radius: 6px; }
.mpanel__toggle[aria-expanded="true"] { transform: rotate(180deg); color: var(--blue); }
.mpanel__sub { padding: 0 8px 12px; display: grid; gap: 2px; }
.mpanel__sub a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 6px; color: var(--ink-2); font-size: 15px; }
.mpanel__sub a span { color: var(--ink-3); font-size: 13px; }
.mpanel__sub a:hover { background: var(--sky-soft); color: var(--blue); }

.mpanel__contacts { padding: 20px; border-top: 1px solid var(--line-2); margin-top: 8px; }
.mpanel__phone { display: block; font-size: 20px; font-weight: 600; color: var(--ink); }
.mpanel__phone:hover { color: var(--blue); }
.mpanel__hours { font-size: 14px; color: var(--ink-3); margin-top: 2px; }
.mpanel__addr { display: flex; gap: 7px; align-items: flex-start; font-size: 14px; line-height: 20px; color: var(--ink-2); margin-top: 10px; }
.mpanel__addr .ic { color: var(--ink-3); margin-top: 1px; }

.mpanel__actions { padding: 0 20px; display: grid; gap: 10px; }

.mpanel-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(15, 19, 38, .45);
  opacity: 0;
  transition: opacity 240ms ease;
}
.mpanel-overlay.is-open { opacity: 1; }

/* --- Футер --- */
.footer {
  background: var(--ivory);
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  font-size: 15px;
}

.footer__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer__logo { font-family: var(--font-display); font-size: 24px; line-height: 30px; color: var(--ink); }
.footer__logo:hover { color: var(--blue); }
.footer__contact { text-align: right; }
.footer__phone { font-size: 20px; font-weight: 600; color: var(--ink); }
.footer__phone:hover { color: var(--blue); }
.footer__hours { font-size: 14px; color: var(--ink-3); margin-top: 2px; }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px 28px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.footer__coltitle {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
  cursor: default;
}
.footer__colchev { display: none; }
.footer__list { display: grid; gap: 9px; }
.footer__list a { color: var(--ink-2); font-size: 15px; font-weight: 400; }
.footer__list a:hover { color: var(--blue); text-decoration: none; }
.footer__list--plain li { color: var(--ink-2); font-size: 15px; line-height: 22px; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.footer__legal { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
.footer__legal a { color: var(--ink-2); }
.footer__legal a:hover { color: var(--blue); }

.footer__socials { display: flex; gap: 8px; }
.footer__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-2);
  transition: border-color var(--t), color var(--t);
}
.footer__socials a:hover { border-color: var(--blue); color: var(--blue); }

.footer__disclaimer { margin-top: 20px; font-size: 13px; line-height: 19px; color: var(--ink-3); max-width: 720px; }

/* --- Модальное окно --- */
.modal { position: fixed; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal__overlay { position: absolute; inset: 0; background: rgba(15, 19, 38, .5); }
.modal__box {
  position: relative;
  width: min(480px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--r-card);
  padding: 32px;
}
.modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 6px; color: var(--ink-3); }
.modal__close:hover { color: var(--blue); background: var(--sky-soft); }
.modal__title { font-size: 24px; line-height: 30px; margin-bottom: 8px; padding-right: 40px; }
.modal__lead { font-size: 15px; line-height: 23px; color: var(--ink-2); margin-bottom: 22px; }

/* ==========================================================================
   3. Секции
   ========================================================================== */

/* --- Хлебные крошки --- */
.breadcrumbs { background: var(--ivory); padding: 18px 0; font-size: 14px; }
.breadcrumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.breadcrumbs__item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs__item a { color: var(--blue); }
.breadcrumbs__item a:hover { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs__current { color: var(--ink-3); }
.breadcrumbs__sep { color: var(--line); display: inline-flex; }

/* --- Шапка внутренней страницы --- */
.page-header { background: var(--ivory); padding: 24px 0 44px; border-bottom: 1px solid var(--line); }
.page-header__title { max-width: 18ch; margin-bottom: 14px; }
.page-header__lead { font-size: 18px; line-height: 28px; color: var(--ink-2); max-width: 680px; }
.page-header__meta { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }

/* --- Герой главной --- */
.hero {
  position: relative;
  min-height: 560px;
  height: 78vh;
  max-height: 760px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
/* Затемнение на всю высоту: сверху — под прозрачную шапку, ниже — под белый h1 и лид.
   Провал до .16 в верхней трети оставлял белый текст на светлом небе: пиксельный
   замер давал 1,5–2,3:1 у заголовка и 2,2–2,9:1 у пунктов меню. Минимальная
   плотность держится на .60 — этого хватает на 4,5:1 даже на почти белом кадре. */
.hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(15, 19, 38, .74) 0,
    rgba(15, 19, 38, .68) 20%,
    rgba(15, 19, 38, .66) 45%,
    rgba(15, 19, 38, .74) 70%,
    #0f1326 87%,
    #0f1326 100%);
}
.hero__in { position: relative; z-index: 2; width: 100%; padding-bottom: 64px; color: #fff; }
.hero__title { font-family: var(--font-display); font-size: 56px; line-height: 60px; letter-spacing: -.015em; color: #fff; max-width: 15ch; }
.hero__lead { font-size: 18px; line-height: 28px; color: rgba(255, 255, 255, .88); max-width: 56ch; margin-top: 18px; }
.hero__markers { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 24px; }
.hero__marker { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: #fff; }
.hero__marker .ic { color: var(--sky); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* --- Виджет подбора --- */
.picker-overlay { position: relative; z-index: 5; margin-top: -44px; }
.picker {
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--r-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.picker--flat { box-shadow: none; }
.picker__title { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.picker__hint { font-size: 14px; color: var(--ink-3); margin-bottom: 18px; }
.picker__grid { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 16px; align-items: end; }
.picker__grid .btn { height: 48px; }

/* --- Плитка серий --- */
.series-strip__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.series-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: border-color var(--t), transform var(--t);
}
.series-card:hover { border-color: var(--sky-line); transform: translateY(-2px); }
.series-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--sky-soft); overflow: hidden; }
.series-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.series-card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.series-card__title { font-size: 20px; font-weight: 600; color: var(--ink); }
.series-card__meta { display: flex; gap: 8px; flex-wrap: wrap; }
.series-card__text { font-size: 15px; line-height: 23px; color: var(--ink-2); flex: 1 1 auto; }
.series-card__link { margin-top: 4px; }

/* --- Сетка моделей --- */
.model-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.model-grid--3 { grid-template-columns: repeat(3, 1fr); }

.model-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: border-color var(--t), transform var(--t);
}
.model-card:hover { border-color: var(--sky-line); transform: translateY(-2px); }
.model-card__media { padding: 16px; background: var(--white); }
.model-card__media img { width: 100%; height: 220px; object-fit: contain; }
.model-card__body { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
.model-card__badges { display: flex; gap: 6px; flex-wrap: wrap; }
.model-card__title { font-size: 17px; line-height: 24px; font-weight: 600; color: var(--ink); }
a.model-card__title:hover { color: var(--blue); }
.model-card__specs { display: grid; gap: 6px; }
.model-card__spec { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.model-card__spec .ic { color: var(--ink-3); }
.model-card__spec b { color: var(--ink); font-weight: 600; }
.model-card__price { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: auto; }
.model-card__leasing { font-size: 13px; color: var(--ink-3); margin-top: -6px; }
.model-card__actions { display: grid; gap: 10px; justify-items: start; margin-top: 6px; }
.model-card__actions .btn { width: 100%; }

/* Карточка модели в списочном виде */
.model-grid[data-view="list"] { grid-template-columns: 1fr; }
.model-grid[data-view="list"] .model-card { flex-direction: row; }
.model-grid[data-view="list"] .model-card__media { flex: 0 0 300px; }
.model-grid[data-view="list"] .model-card__media img { height: 190px; }
.model-grid[data-view="list"] .model-card__body { padding: 20px 20px 20px 0; }
.model-grid[data-view="list"] .model-card__actions { grid-auto-flow: column; justify-content: start; align-items: center; }
.model-grid[data-view="list"] .model-card__actions .btn { width: auto; }

/* --- Слайдер «Покупатели выбирают» --- */
.slider { position: relative; }
.slider__viewport { overflow: hidden; }
.slider__track { display: flex; transition: transform 380ms ease; }
.slider__slide { flex: 0 0 100%; min-width: 0; padding: 2px; }

.wide-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--r-card);
  overflow: hidden;
}
.wide-card__media { background: var(--white); padding: 24px; display: flex; align-items: center; }
.wide-card__media img { width: 100%; height: 320px; object-fit: contain; }
.wide-card__body { padding: 32px 32px 32px 8px; display: flex; flex-direction: column; gap: 12px; }
.wide-card__title { font-size: 26px; line-height: 32px; font-weight: 600; }
.wide-card__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin-top: 4px; }
.wide-card__price { font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wide-card__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; }

.slider__nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; }
.slider__dots { display: flex; gap: 8px; }
.slider__dot { width: 8px; height: 8px; border-radius: 999px; background: var(--line-2); transition: background-color var(--t), width var(--t); }
.slider__dot.is-on { background: var(--blue); width: 22px; }

/* --- Голубая полоса с плитками (signature) --- */
.band-sky { background: var(--sky); padding: var(--sec-y) 0; }
.band-sky .sec__title--display { color: var(--ink); }
.band-sky__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.band-tile { display: flex; flex-direction: column; gap: 10px; }
.band-tile__media { border-radius: var(--r-img); overflow: hidden; aspect-ratio: 16 / 9; }
.band-tile__media img { width: 100%; height: 100%; object-fit: cover; }
.band-tile__kicker { font-size: 13px; font-weight: 500; color: var(--blue-700); margin-top: 6px; }
.band-tile__title { font-size: 20px; line-height: 26px; font-weight: 600; }
.band-tile__text { font-size: 15px; line-height: 23px; color: var(--ink-2); }
.band-tile .btn { align-self: flex-start; margin-top: 4px; }

/* --- Блок гарантии (три плитки на голубом) --- */
.warranty__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.warranty-tile {
  background: var(--sky);
  border-radius: var(--r-tile);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  align-items: center;
}
.sec--sky .warranty-tile { background: var(--ivory); }
.warranty-tile__icon {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .6);
  color: var(--blue);
  margin-bottom: 4px;
}
.sec--sky .warranty-tile__icon { background: var(--sky-soft); }
.warranty-tile__title { font-size: 20px; font-weight: 600; }
.warranty-tile__text { font-size: 15px; line-height: 23px; color: var(--ink-2); }

/* --- Преимущества с цифрами 01–04 --- */
.adv__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.adv-item { display: flex; flex-direction: column; gap: 8px; }
.adv-item__num { font-family: var(--font-display); font-size: 64px; line-height: 1; color: var(--sky-num); letter-spacing: -.02em; }
.adv-item__title { font-size: 20px; line-height: 26px; font-weight: 600; }
.adv-item__text { font-size: 15px; line-height: 23px; color: var(--ink-2); }

/* --- Логотипы клиентов --- */
.clients__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.client-tile {
  display: flex; align-items: center; gap: 12px;
  padding: 20px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-tile);
  background: var(--white);
  color: var(--ink-3);
  font-size: 15px;
  line-height: 21px;
  font-weight: 500;
  transition: color var(--t), border-color var(--t);
}
.client-tile:hover { color: var(--ink); border-color: var(--sky-line); }
.client-tile .ic { color: var(--sky-line); transition: color var(--t); }
.client-tile:hover .ic { color: var(--blue); }

/* --- Отзывы --- */
.reviews__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.review-card {
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--r-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.review-card__name { font-size: 17px; font-weight: 600; }
.review-card__meta { font-size: 14px; color: var(--ink-3); }
.review-card__model { font-size: 14px; color: var(--blue); font-weight: 500; }
.review-card__text { font-size: 15px; line-height: 24px; color: var(--ink-2); }
.reviews__nav { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.reviews__nav .link-action { margin-left: auto; }

/* --- FAQ --- */
.faq { max-width: 860px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__btn {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  text-align: left;
  padding: 22px 0;
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
  color: var(--ink);
  transition: color var(--t);
}
.faq__btn:hover { color: var(--blue); }
.faq__chev { flex: 0 0 auto; color: var(--ink-3); transition: transform 200ms ease, color var(--t); margin-top: 3px; }
.faq__btn[aria-expanded="true"] .faq__chev { transform: rotate(180deg); color: var(--blue); }
.faq__panel { padding: 0 44px 24px 0; font-size: 16px; line-height: 26px; color: var(--ink-2); }

/* --- CTA-форма --- */
.cta { background: var(--white); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 72px 0; }
.cta__in { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.cta__title { margin-bottom: 12px; }
.cta__lead { font-size: 17px; line-height: 26px; color: var(--ink-2); }
.cta__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cta__submit { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* --- Компактные контакты --- */
.contact-summary { background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-card); padding: 32px; }
.contact-summary__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: start; }
.contact-summary__item { display: flex; gap: 12px; }
.contact-summary__item .ic { color: var(--blue); margin-top: 2px; }
.contact-summary__label { font-size: 13px; color: var(--ink-3); }
.contact-summary__value { font-size: 16px; font-weight: 500; color: var(--ink); }
a.contact-summary__value:hover { color: var(--blue); }

/* --- Карта --- */
.map-wrap { position: relative; border-radius: var(--r-img); overflow: hidden; border: 1px solid var(--line-2); aspect-ratio: 16 / 9; background: var(--sky-soft); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.map-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }

/* --- Новости --- */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.news-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: border-color var(--t), transform var(--t);
}
.news-card:hover { border-color: var(--sky-line); transform: translateY(-2px); }
/* Кроп задаётся обёрткой, а картинка выводится из потока: при height:100% внутри
   flex-элемента без заданной высоты aspect-ratio не срабатывал, и портретный кадр
   1000×1500 растягивал карточку вдвое против соседней в том же ряду. */
.news-card__media { position: relative; aspect-ratio: 16 / 9; background: var(--sky-soft); overflow: hidden; }
.news-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-card__rubric { position: absolute; top: 12px; left: 12px; }
.news-card__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
.news-card__date { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-3); }
.news-card__title { font-size: 18px; line-height: 26px; font-weight: 600; color: var(--ink); }
a.news-card__title:hover { color: var(--blue); }
.news-card__lead { font-size: 15px; line-height: 24px; color: var(--ink-2); flex: 1 1 auto; }
.news-card__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.news-card__tags a { font-size: 13px; color: var(--ink-3); }
.news-card__tags a:hover { color: var(--blue); }

/* --- Блог: сетка с сайдбаром --- */
.blog-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.sidebar { display: grid; gap: 32px; position: sticky; top: 96px; }
.sidebar__block { background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-card); padding: 24px; }
.sidebar__title { font-size: 17px; font-weight: 600; margin-bottom: 14px; }
.sidebar__list { display: grid; gap: 8px; }
.sidebar__list a { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); font-size: 15px; }
.sidebar__list a span { color: var(--ink-3); font-size: 13px; }
.sidebar__list a:hover { color: var(--blue); }
.sidebar__posts { display: grid; gap: 16px; }
.sidebar__post { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: start; }
.sidebar__post img { width: 72px; height: 54px; object-fit: cover; border-radius: var(--r-sm); }
.sidebar__post-title { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); }
.sidebar__post:hover .sidebar__post-title { color: var(--blue); }
.sidebar__post-date { font-size: 12px; color: var(--ink-3); }
.sidebar__tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* --- Статья --- */
.article { max-width: 100%; }
.article__header { margin-bottom: 32px; }
.article__title { font-family: var(--font-ui); font-size: 34px; line-height: 42px; font-weight: 600; letter-spacing: -.01em; margin: 12px 0 14px; }
.article__meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--ink-3); }
.article__meta span { display: inline-flex; align-items: center; gap: 7px; }
.article__lead { font-size: 19px; line-height: 30px; color: var(--ink-2); margin-top: 18px; }

.article__body { font-size: 16px; line-height: 27px; color: var(--ink-2); }
.article__body > * + * { margin-top: 20px; }
.article__body h2 { font-size: 24px; line-height: 32px; color: var(--ink); margin-top: 40px; }
.article__body h3 { font-size: 19px; line-height: 26px; color: var(--ink); margin-top: 32px; }
.article__body p { margin: 0; }
.article__body ul { display: grid; gap: 10px; }
.article__body ul li { position: relative; padding-left: 26px; }
.article__body ul li::before { content: ""; position: absolute; left: 6px; top: 11px; width: 6px; height: 6px; border-radius: 999px; background: var(--sky-line); }
.article__body figure { margin: 0; }
.article__body figure img { width: 100%; border-radius: var(--r-img); }
.article__body figcaption { font-size: 14px; color: var(--ink-3); margin-top: 10px; }
.article__quote { background: var(--sky-soft); border-radius: var(--r-tile); padding: 28px 32px; color: var(--ink); font-size: 18px; line-height: 28px; }
.article__quote .ic { color: var(--blue); margin-bottom: 10px; }

.article__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.article__author {
  display: flex; gap: 20px; align-items: center;
  background: var(--ivory);
  border-radius: var(--r-card);
  padding: 24px;
  margin-top: 32px;
}
.article__avatar { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 999px; background: var(--sky-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.article__author-name { font-size: 17px; font-weight: 600; }
.article__author-text { font-size: 14px; line-height: 22px; color: var(--ink-2); margin-top: 4px; }

/* --- Пагинация --- */
.pagination { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 8px;
  border-radius: 6px;
  font-size: 15px; font-weight: 500;
  color: var(--ink);
  border: 1px solid transparent;
  transition: background-color var(--t), border-color var(--t), color var(--t);
}
.pagination a:hover { background: var(--sky-soft); color: var(--blue); }
.pagination .is-current { background: var(--ink-900); color: #fff; }
.pagination .pagination__arrow { background: var(--white); border-color: var(--line); }
.pagination .pagination__arrow:hover { border-color: var(--blue); color: var(--blue); }
.pagination .pagination__gap { color: var(--ink-3); min-width: 24px; }

/* --- Полоса подписки --- */
.newsletter { background: var(--sky); padding: 56px 0; }
.newsletter__in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.newsletter__title { font-family: var(--font-display); font-size: 34px; line-height: 42px; letter-spacing: -.015em; }
.newsletter__lead { font-size: 16px; line-height: 25px; color: var(--ink-2); margin-top: 10px; }
.newsletter__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.newsletter__socials { display: flex; gap: 8px; margin-top: 18px; }
.newsletter__socials a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 6px;
  border: 1px solid rgba(15, 19, 38, .18);
  color: var(--ink-2);
  transition: border-color var(--t), color var(--t);
}
.newsletter__socials a:hover { border-color: var(--blue); color: var(--blue); }

/* --- Полоса на фото (лизинг, тест-драйв) --- */
.photo-band { position: relative; overflow: hidden; border-radius: var(--r-img); }
.photo-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-band__shade { position: absolute; inset: 0; background: linear-gradient(to right, rgba(15, 19, 38, .78), rgba(15, 19, 38, .35)); }
.photo-band__in { position: relative; z-index: 2; padding: 56px 48px; color: #fff; max-width: 640px; }
.photo-band__title { font-family: var(--font-display); font-size: 34px; line-height: 42px; color: #fff; letter-spacing: -.015em; }
.photo-band__text { font-size: 16px; line-height: 25px; color: rgba(255, 255, 255, .86); margin-top: 12px; }
.photo-band__facts { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 20px; }
.photo-band__fact b { display: block; font-size: 24px; font-weight: 600; }
.photo-band__fact span { font-size: 14px; color: rgba(255, 255, 255, .75); }
.photo-band .btn { margin-top: 26px; }

/* --- Два столбца «фото + текст» --- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split--rev .split__media { order: 2; }
.split__media img { width: 100%; border-radius: var(--r-img); aspect-ratio: 4 / 3; object-fit: cover; }
.split__body > * + * { margin-top: 16px; }

/* --- Факты --- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.fact { display: flex; gap: 14px; align-items: flex-start; }
.fact__icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 999px; background: var(--sky-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.fact__value { font-family: var(--font-display); font-size: 32px; line-height: 38px; color: var(--ink); }
.fact__label { font-size: 14px; line-height: 20px; color: var(--ink-2); margin-top: 2px; }

/* --- Квиз --- */
.quiz { max-width: 720px; margin: 0 auto; }
/* Блок квиза свёрстан на fieldset/legend: без сброса браузер рисует свою рамку
   2px groove с вырезом под легенду — на 375px она резала заголовок вопроса. */
.quiz__step { display: grid; gap: 12px; border: 0; padding: 0; margin: 0; min-width: 0; }
.quiz__steptitle { display: block; float: none; padding: 0; font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.quiz__options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quiz__nav { display: flex; align-items: center; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.quiz__progress { font-size: 14px; color: var(--ink-2); margin-left: auto; font-variant-numeric: tabular-nums; }
.quiz__bar { height: 3px; background: rgba(15, 19, 38, .12); border-radius: 2px; overflow: hidden; margin-bottom: 28px; }
.quiz__bar span { display: block; height: 100%; background: var(--blue); transition: width 300ms ease; }

/* --- Таблицы --- */
.table-wrap { overflow-x: auto; }
.data-table { font-size: 15px; }
.data-table th, .data-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.data-table th { font-weight: 600; color: var(--ink); background: var(--ivory); white-space: nowrap; }
.data-table td { color: var(--ink-2); }
.data-table td:last-child { font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }

.specs-group { background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-card); overflow: hidden; }
.specs-group__title { padding: 18px 24px; font-size: 17px; font-weight: 600; background: var(--ivory); border-bottom: 1px solid var(--line-2); }
.specs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 13px 24px; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.specs-row:last-child { border-bottom: 0; }
.specs-row dt { color: var(--ink-2); }
.specs-row dd { margin: 0; color: var(--ink); font-weight: 500; }

/* --- Карточка модели: галерея --- */
.model-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.gallery-main { background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-card); padding: 24px; }
.gallery-main img { width: 100%; height: 380px; object-fit: contain; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.gallery-thumb { border: 1px solid var(--line-2); border-radius: var(--r-img); background: var(--white); padding: 8px; transition: border-color var(--t); cursor: pointer; }
.gallery-thumb img { width: 100%; height: 68px; object-fit: contain; }
.gallery-thumb:hover { border-color: var(--sky-line); }
.gallery-thumb.is-on { border-color: var(--blue); }

.model-info > * + * { margin-top: 18px; }
.model-info__badges { display: flex; gap: 8px; flex-wrap: wrap; }
.model-info__title { font-family: var(--font-ui); font-size: 34px; line-height: 42px; font-weight: 600; letter-spacing: -.01em; }
.model-info__series { font-size: 15px; color: var(--ink-3); }
/* Без своей line-height цена наследовала 26px при кегле 34px и налезала
   на строку лизингового платежа под ней. */
.model-info__price { font-size: 34px; line-height: 42px; font-weight: 600; font-variant-numeric: tabular-nums; }
.model-info__leasing { font-size: 15px; color: var(--ink-2); margin-top: -10px; }
.model-info__specs { display: grid; gap: 10px; padding: 20px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.model-info__spec { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }
.model-info__spec .ic { color: var(--ink-3); }
.model-info__spec b { margin-left: auto; color: var(--ink); font-weight: 600; }
.model-info__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* --- Списки в две колонки --- */
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.check-list { display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 23px; color: var(--ink-2); }
.check-list .ic { color: var(--blue); margin-top: 3px; }

/* --- Карточки услуг --- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--r-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--t), transform var(--t);
}
.service-card:hover { border-color: var(--sky-line); transform: translateY(-2px); }
.service-card__icon { width: 48px; height: 48px; border-radius: var(--r-tile); background: var(--sky-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.service-card__title { font-size: 19px; line-height: 26px; font-weight: 600; }
.service-card__text { font-size: 15px; line-height: 23px; color: var(--ink-2); flex: 1 1 auto; }
.service-card__price { font-size: 15px; font-weight: 600; color: var(--blue); }

/* --- Шаги процесса --- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
.step { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.step__num { font-family: var(--font-display); font-size: 48px; line-height: 1; color: var(--sky-num); }
.step__title { font-size: 18px; font-weight: 600; }
.step__text { font-size: 15px; line-height: 23px; color: var(--ink-2); }

/* --- Каталог: группы --- */
.catalog-group + .catalog-group { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--line); }
.catalog-group__head { margin-bottom: 28px; max-width: 720px; }
.catalog-group__title { font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.catalog-group__lead { font-size: 16px; line-height: 25px; color: var(--ink-2); }
.catalog-row { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: center; }
.catalog-row + .catalog-row { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line-2); }
.catalog-row__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-img); }
.catalog-row__title { font-size: 22px; font-weight: 600; }
.catalog-row__title a { color: var(--ink); }
.catalog-row__title a:hover { color: var(--blue); }
.catalog-row__text { font-size: 15px; line-height: 23px; color: var(--ink-2); margin-top: 8px; }
.catalog-row__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* --- Панель сортировки и фильтров --- */
.toolbar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--r-card);
}
.toolbar__label { font-size: 14px; color: var(--ink-3); }
.toolbar__select { height: 40px; padding: 0 34px 0 12px; font-size: 14px; }
.toolbar__spacer { margin-left: auto; }
.toolbar__views { display: flex; gap: 6px; }
.toolbar__view { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 6px; color: var(--ink-3); transition: border-color var(--t), color var(--t); }
.toolbar__view:hover { border-color: var(--sky-line); color: var(--ink); }
.toolbar__view.is-on { border-color: var(--blue); color: var(--blue); background: var(--sky-soft); }

.filter-panel {
  margin-top: 16px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--r-card);
}
.filter-panel__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.filter-panel__note { margin-top: 16px; font-size: 14px; color: var(--ink-2); }

/* --- Панель «Не нашли модель» --- */
.notfound-panel {
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--r-card);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
}

/* --- Галерея --- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.tab {
  height: 40px; padding: 0 18px;
  display: inline-flex; align-items: center;
  border-radius: 20px;   /* половина высоты таба */
  border: 1px solid var(--line-2);
  background: var(--white);
  color: var(--ink-2);
  font-size: 14px; font-weight: 500;
  transition: border-color var(--t), color var(--t), background-color var(--t);
}
.tab:hover { border-color: var(--sky-line); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }

.gallery-grid { columns: 3; column-gap: 24px; }
.gallery-item { break-inside: avoid; margin-bottom: 24px; display: block; width: 100%; text-align: left; }
.gallery-item img { width: 100%; height: auto; border-radius: var(--r-img); transition: opacity var(--t); }
.gallery-item:hover img { opacity: .88; }
.gallery-item__btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: var(--r-img); }
.gallery-item__btn:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 3px; }
.gallery-item figcaption { font-size: 14px; line-height: 20px; color: var(--ink-2); margin-top: 8px; }

.lightbox { position: fixed; inset: 0; z-index: 160; background: rgba(15, 19, 38, .92); display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.lightbox__img { max-width: min(1100px, 100%); max-height: 78vh; object-fit: contain; border-radius: var(--r-img); }
.lightbox__cap { color: rgba(255, 255, 255, .85); font-size: 15px; text-align: center; margin-top: 16px; }
.lightbox__close { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .35); color: #fff; }
.lightbox__close:hover { background: rgba(255, 255, 255, .12); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); color: #fff; }
.lightbox__nav:hover { background: rgba(255, 255, 255, .12); }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
.lightbox__figure { display: flex; flex-direction: column; align-items: center; }

/* --- Презентации --- */
.pres-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pres-card { display: grid; grid-template-columns: 200px 1fr; gap: 24px; background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-card); padding: 24px; transition: border-color var(--t); }
.pres-card:hover { border-color: var(--sky-line); }
.pres-card__cover img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-img); }
.pres-card__body { display: flex; flex-direction: column; gap: 10px; }
.pres-card__title { font-size: 19px; line-height: 26px; font-weight: 600; }
.pres-card__text { font-size: 15px; line-height: 23px; color: var(--ink-2); flex: 1 1 auto; }
.pres-card__meta { display: flex; gap: 8px; flex-wrap: wrap; }
.pres-card__actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* --- Акции --- */
.promo-card { display: grid; grid-template-columns: 420px 1fr; gap: 40px; background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-card); overflow: hidden; }
.promo-card + .promo-card { margin-top: 28px; }
/* Завершённая акция гасится точечно: opacity на всей карточке уводила условия
   на 3,0:1, а бейдж — на 2,05:1, хотя это читаемый текст, а не декор. */
.promo-card--off .promo-card__media img { filter: grayscale(.7); }
.promo-card--off .promo-card__title { color: var(--ink-2); }
/* Пропорция задаётся обёрткой, картинка выводится из потока: иначе портретный
   кадр 1000×1500 растягивал карточку акции до 632px против 320px у соседних. */
.promo-card__media { position: relative; aspect-ratio: 4 / 3; min-height: 260px; overflow: hidden; background: var(--sky-soft); }
.promo-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo-card__body { padding: 32px 32px 32px 0; display: flex; flex-direction: column; gap: 12px; }
.promo-card__title { font-size: 24px; line-height: 32px; font-weight: 600; }
.promo-card__terms { display: grid; align-content: start; gap: 8px; flex: 1 1 auto; }
.promo-card__terms li { display: flex; gap: 10px; font-size: 15px; line-height: 23px; color: var(--ink-2); }
.promo-card__terms .ic { color: var(--blue); flex: 0 0 auto; margin-top: 3px; }
.promo-card .btn { align-self: flex-start; }

/* --- Сертификаты --- */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
/* Содержимое <button> браузер центрирует по вертикали: подписи разной длины
   сдвигали голубые плашки в ряду на 13px друг относительно друга. */
.cert-card { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-card); padding: 24px; text-align: left; transition: border-color var(--t); cursor: pointer; }
.cert-card:hover { border-color: var(--blue); }
.cert-card__sheet {
  aspect-ratio: 3 / 4;
  border-radius: var(--r-img);
  background: var(--sky-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  margin-bottom: 16px;
}
.cert-card__title { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.cert-card__note { font-size: 14px; line-height: 21px; color: var(--ink-2); }

/* --- Реквизиты --- */
.requisites { background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-card); padding: 8px 28px; }
.requisites__row { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.requisites__row:last-child { border-bottom: 0; }
.requisites__row dt { color: var(--ink-2); }
.requisites__row dd { margin: 0; color: var(--ink); font-weight: 500; }

/* --- Плитки контактов --- */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.contact-card { background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-card); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.contact-card__icon { width: 44px; height: 44px; border-radius: var(--r-tile); background: var(--sky-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.contact-card__label { font-size: 13px; color: var(--ink-3); }
.contact-card__value { font-size: 18px; font-weight: 600; color: var(--ink); line-height: 25px; }
a.contact-card__value:hover { color: var(--blue); }
.contact-card__note { font-size: 14px; line-height: 21px; color: var(--ink-2); }

/* --- Карта сайта --- */
.sitemap-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; align-items: start; }
.sitemap-block + .sitemap-block { margin-top: 32px; }
.sitemap-block__title { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.sitemap-block__title a { color: var(--ink); }
.sitemap-block__title a:hover { color: var(--blue); }
.sitemap-list { display: grid; gap: 8px; padding-left: 16px; border-left: 1px solid var(--line); }
.sitemap-list a { color: var(--ink-2); font-size: 15px; line-height: 22px; }
.sitemap-list a:hover { color: var(--blue); }

/* --- 404 --- */
.error-block { text-align: center; padding: 80px 0 96px; }
.error-block__code { font-family: var(--font-display); font-size: 160px; line-height: 1; color: var(--sky-num); letter-spacing: -.03em; }
.error-block__title { font-family: var(--font-display); font-size: 40px; line-height: 48px; margin-top: 12px; }
.error-block__text { font-size: 17px; line-height: 27px; color: var(--ink-2); max-width: 520px; margin: 14px auto 0; }
.error-block__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.error-block__search { display: flex; gap: 10px; max-width: 440px; margin: 32px auto 0; }
.error-block__search .field__input { flex: 1 1 auto; }

/* --- Текстовая колонка --- */
.text-col { max-width: 720px; }
.text-col > * + * { margin-top: 18px; }
.text-col h2 { margin-top: 40px; }
.text-col h3 { margin-top: 28px; }
.text-col p { font-size: 16px; line-height: 27px; color: var(--ink-2); }

/* ==========================================================================
   4. Медиазапросы, доступность, печать
   ========================================================================== */

/* --- 1440px: сжимаем меню --- */
@media (max-width: 1440px) {
  .nav__list { gap: 20px; }
  .header__in { gap: 20px; }
}

/* --- 1280px: убираем вторую строку логотипа --- */
@media (max-width: 1280px) {
  .logo__sub { display: none; }
  .mega__list { grid-template-columns: 1fr; }
}

/* --- 1100px: сжимаем меню сильнее и убираем вторую кнопку --- */
@media (max-width: 1100px) {
  .topbar__in, .header__in { padding-left: 24px; padding-right: 24px; }
  .nav__list { gap: 12px; }
  .nav__link { font-size: 14px; }
  .header__actions .btn--ghost { display: none; }
  .model-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
}

/* --- 900px: бургер --- */
@media (max-width: 900px) {
  :root { --sec-y: 64px; --head-gap: 36px; }

  .topbar { display: none; }
  .page-shell--home .header { position: sticky; top: 0; }
  .page-shell--home .header.is-solid { position: sticky; }

  /* На узких экранах шапка главной больше не лежит поверх фото, а стоит на светлом фоне.
     Белый логотип и белый бургер на нём становились невидимыми до первой прокрутки. */
  .page-shell--home .header:not(.is-solid) { background: var(--ivory); border-bottom-color: var(--line); }
  .page-shell--home .header:not(.is-solid) .logo,
  .page-shell--home .header:not(.is-solid) .logo__mark { color: var(--ink); }
  .page-shell--home .header:not(.is-solid) .logo__sub { color: var(--ink-3); }
  .page-shell--home .header:not(.is-solid) .nav__link { color: var(--ink); }
  .page-shell--home .header:not(.is-solid) .burger__bar { background: var(--ink); }

  .nav { display: none; }
  .header__actions { display: none; }
  .burger { display: flex; }
  .header__in { justify-content: space-between; }
  .mega { display: none; }

  .hero { min-height: 480px; height: auto; padding-top: 48px; }
  .hero__in { padding-bottom: 48px; }
  .hero__title { font-size: 40px; line-height: 46px; }

  .h-display, .sec__title--display { font-size: 40px; line-height: 46px; }
  h1 { font-size: 36px; line-height: 42px; }

  .picker__grid { grid-template-columns: 1fr 1fr; }
  .picker__grid .btn { grid-column: 1 / -1; }

  .series-strip__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .warranty__grid { grid-template-columns: 1fr; gap: 20px; }
  .adv__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .clients__grid { grid-template-columns: repeat(2, 1fr); }
  .reviews__grid { grid-template-columns: 1fr; gap: 20px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .steps, .steps--3 { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; gap: 24px; }
  .news-grid { grid-template-columns: 1fr; }
  .pres-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr 1fr; }
  .contact-summary__grid { grid-template-columns: 1fr 1fr; }
  .sitemap-cols { grid-template-columns: 1fr 1fr; }
  .gallery-grid { columns: 2; }
  .filter-panel__grid { grid-template-columns: 1fr 1fr; }

  .blog-layout { grid-template-columns: 1fr; gap: 40px; }
  .sidebar { position: static; grid-template-columns: 1fr 1fr; }

  .split, .cols-2 { grid-template-columns: 1fr; gap: 28px; }
  .split--rev .split__media { order: 0; }
  .cta__in { grid-template-columns: 1fr; gap: 32px; }
  .newsletter__in { grid-template-columns: 1fr; gap: 28px; }
  .notfound-panel { grid-template-columns: 1fr; gap: 28px; padding: 28px; }

  .model-hero { grid-template-columns: 1fr; gap: 32px; }
  .gallery-main img { height: 300px; }
  .model-info__title { font-size: 28px; line-height: 36px; }
  .model-info__price { font-size: 28px; }

  .wide-card { grid-template-columns: 1fr; }
  .wide-card__media img { height: 220px; }
  .wide-card__body { padding: 0 24px 28px; }
  .wide-card__title { font-size: 22px; line-height: 28px; }

  .promo-card { grid-template-columns: 1fr; }
  .promo-card__media img { min-height: 200px; max-height: 260px; }
  .promo-card__body { padding: 24px; }

  .catalog-row { grid-template-columns: 1fr; gap: 20px; }
  .band-sky__grid { grid-template-columns: 1fr; gap: 32px; }

  .photo-band__in { padding: 40px 28px; }
  .photo-band__title { font-size: 28px; line-height: 36px; }

  .article__title { font-size: 28px; line-height: 36px; }
  .article__lead { font-size: 17px; line-height: 27px; }

  .error-block__code { font-size: 110px; }
  .error-block__title { font-size: 32px; line-height: 40px; }

  .specs-row { grid-template-columns: 1fr; gap: 2px; padding: 12px 18px; }
  .requisites__row { grid-template-columns: 1fr; gap: 2px; }

  .toolbar__spacer { margin-left: 0; width: 100%; }
}

/* --- 720px: одна колонка, мобильная типографика --- */
@media (max-width: 720px) {
  :root { --gutter: 16px; --sec-y: 56px; }

  .h-display, .sec__title--display, .hero__title { font-size: 34px; line-height: 38px; }
  h1 { font-size: 32px; line-height: 38px; }
  h2 { font-size: 24px; line-height: 30px; }
  .lead, .sec__lead, .hero__lead, .page-header__lead { font-size: 16px; line-height: 25px; }

  .btn { height: 46px; padding: 0 22px; }

  .picker-overlay { margin-top: -24px; }
  .picker { padding: 18px; }
  .picker__grid { grid-template-columns: 1fr; }

  .series-strip__grid { grid-template-columns: 1fr; }
  .model-grid, .model-grid--3 { grid-template-columns: 1fr; }
  .model-grid[data-view="list"] .model-card { flex-direction: column; }
  .model-grid[data-view="list"] .model-card__media { flex: 1 1 auto; }
  .model-grid[data-view="list"] .model-card__body { padding: 0 20px 20px; }
  .adv__grid { grid-template-columns: 1fr; gap: 24px; }
  .clients__grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .steps, .steps--3 { grid-template-columns: 1fr; gap: 24px; }
  .facts { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-summary { padding: 22px; }
  .contact-summary__grid { grid-template-columns: 1fr; }
  .sitemap-cols { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .gallery-grid { columns: 1; }
  .filter-panel__grid { grid-template-columns: 1fr; }
  .quiz__options { grid-template-columns: 1fr; }
  .cta__row, .newsletter__row { grid-template-columns: 1fr; }
  .pres-card { grid-template-columns: 1fr; }
  .pres-card__cover img { aspect-ratio: 16 / 9; }

  .modal__box { padding: 24px 20px; }
  .modal__title { font-size: 21px; line-height: 28px; }

  .lightbox { padding: 24px 12px; }
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}

/* --- 560px: футер-аккордеон --- */
@media (max-width: 560px) {
  .footer__cols { grid-template-columns: 1fr; gap: 0; }
  .footer__col { border-bottom: 1px solid var(--line); }
  .footer__coltitle {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 0; margin-bottom: 0; cursor: pointer;
  }
  .footer__colchev { display: flex; color: var(--ink-3); transition: transform 200ms ease; }
  .footer__coltitle[aria-expanded="true"] .footer__colchev { transform: rotate(180deg); color: var(--blue); }
  .footer__list { display: none; padding-bottom: 18px; }
  .footer__coltitle[aria-expanded="true"] + .footer__list { display: grid; }

  .footer__top { flex-direction: column; gap: 16px; }
  .footer__contact { text-align: left; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__legal { gap: 8px 16px; }

  .error-block__code { font-size: 88px; }
  .error-block__search { flex-direction: column; }
  .error-block__search .btn { width: 100%; }

  .article__author { flex-direction: column; align-items: flex-start; gap: 14px; }
  .pagination a, .pagination span { min-width: 36px; height: 36px; font-size: 14px; }
}

/* --- 380px --- */
@media (max-width: 380px) {
  .hero__title, .h-display, .sec__title--display { font-size: 30px; line-height: 35px; }
  .logo__mark { font-size: 24px; }
  .model-card__media img { height: 180px; }
}

/* --- Крупные экраны --- */
@media (min-width: 1440px) {
  .nav__list { gap: 32px; }
}

/* --- Доступность --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .slider__track { transition: none; }
  .mpanel { transition: none; }
}

@media (prefers-contrast: more) {
  .lead, .muted, .small, .sec__lead { color: var(--ink); }
  .field__input, .field__select, .field__area { border-color: var(--ink-2); }
}

/* --- Печать --- */
@media print {
  .topbar, .header, .mpanel, .mpanel-overlay, .burger,
  .modal, .lightbox, .cta, .newsletter, .footer__socials,
  .btn, .slider__nav, .toolbar, .picker, .quiz { display: none !important; }

  body { background: #fff; color: #000; font-size: 12pt; line-height: 1.5; }
  .page-shell { overflow: visible; }
  .sec, .sec--tight { padding: 12pt 0; }
  .container { max-width: 100%; padding: 0; }

  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
  a[href^="tel"]::after, a[href^="mailto"]::after, .nav a::after { content: ""; }

  .model-card, .news-card, .service-card, .series-card, .review-card,
  .specs-group, .requisites, .contact-card {
    border: 1px solid #999; box-shadow: none; break-inside: avoid;
  }
  h1, h2, h3 { break-after: avoid; }
  img { max-width: 100%; break-inside: avoid; }
  .hero { min-height: auto; height: auto; }
  .hero__in { color: #000; padding: 0; }
  .hero__title, .hero__lead, .hero__marker { color: #000; }
  .hero__media, .hero__shade { display: none; }
  .reveal { opacity: 1; transform: none; }
}


/* ==========================================================================
   Дополнения: обложка статьи, узкая сетка «Читайте также»
   ========================================================================== */

.article__cover { margin: 0 0 32px; }
.article__cover img { width: 100%; height: auto; border-radius: var(--r-img); }

.news-grid--3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-grid--3 .news-card__body { padding: 16px; }
.news-grid--3 .news-card__title { font-size: 16px; line-height: 23px; }

@media (max-width: 900px) {
  .news-grid--3 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Главный слайдер первого экрана
   ========================================================================== */

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--ink);
}
.hero-slider__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 520ms cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.hero-slider__slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: 100%;
  display: block;
}
.hero-slider__slide img {
  width: 100%;
  height: 124%;
  object-fit: cover;
  object-position: center top;
  transform: translateY(-7%);
}
a.hero-slider__slide { cursor: pointer; }

.hero__shade { pointer-events: none; }
.hero__in { pointer-events: none; }
.hero__in .btn,
.hero__in a,
.hero__in button { pointer-events: auto; }

.hero-slider__ui {
  position: absolute;
  right: clamp(20px, 4vw, 64px);
  bottom: 76px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  background: rgba(15, 19, 38, .46);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.hero-slider__btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .13);
  transition: background-color var(--t), color var(--t);
}
.hero-slider__btn:hover {
  background: #fff;
  color: var(--ink);
}
.hero-slider__dots {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-inline: 3px;
}
.hero-slider__dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .48);
  transition: width var(--t), background-color var(--t);
}
.hero-slider__dot.is-on {
  width: 20px;
  background: #fff;
}

@media (max-width: 899px) {
  .hero-slider__ui {
    top: 16px;
    right: 16px;
    bottom: auto;
    gap: 7px;
    padding: 6px 7px;
  }
  .hero-slider__btn { width: 32px; height: 32px; }
  .hero-slider__dots { gap: 4px; }
  .hero-slider__dot { width: 5px; height: 5px; }
  .hero-slider__dot.is-on { width: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider__track { transition: none; }
}