:root {
  --bg-dark: #0f0f10;
  --bg-darker: #08080a;
  --bg-light: #ffffff;
  --bg-muted: #f5f5f7;
  --accent: #f5861f;
  --accent-hover: #ff9a3d;
  --text-dark: #1a1a1a;
  --text-on-dark: #ffffff;
  --text-muted: #8a8a8a;
  --border: #e5e5e5;
  --border-dark: #2a2a2d;

  --container: 1440px;
  --gutter: 24px;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* A11y utility — скрывает элемент визуально, оставляя его доступным screen readers. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  z-index: 9999;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 8px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-dark);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--ghost-dark {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn--ghost-dark:hover {
  background: #fff;
  color: var(--text-dark);
  border-color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--sm {
  padding: 8px 18px;
  font-size: 12px;
}

/* ========== Header ========== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 18px 0;
  color: #fff;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.site-header__logo-mark {
  color: var(--accent);
}

.site-header__nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-header__nav a {
  position: relative;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease;
}

.site-header__nav a:hover {
  color: var(--accent);
}

.site-header__nav a.is-active {
  color: var(--accent);
}

.site-header__nav-accent {
  padding: 6px 12px !important;
  background: var(--accent);
  color: #fff !important;
  border-radius: var(--radius-sm);
}

.site-header__nav-accent:hover {
  background: var(--accent-hover);
  color: #fff !important;
}

.site-header__phone {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.site-header__phone:hover {
  color: var(--accent);
}

.site-header__callback {
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.site-header__callback:hover {
  background: #fff;
  color: var(--text-dark);
  border-color: #fff;
}

.site-header__contacts {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-header__burger {
  display: none;
  width: 32px;
  height: 32px;
  position: relative;
}

.site-header__burger span {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-header__burger span:nth-child(1) { top: 10px; }
.site-header__burger span:nth-child(2) { top: 15px; }
.site-header__burger span:nth-child(3) { top: 20px; }

.site-header.is-open .site-header__burger span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.site-header.is-open .site-header__burger span:nth-child(2) {
  opacity: 0;
}
.site-header.is-open .site-header__burger span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--bg-dark);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.35) 40%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 140px;
  padding-bottom: 60px;
  width: 100%;
}

.hero__eyebrow {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__subtitle {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  max-width: 560px;
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.85);
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ========== Government support ========== */
.gov-support {
  background: var(--bg-light);
  padding: 80px 0 40px;
}

.gov-support__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.gov-support__title {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-transform: uppercase;
}

.gov-support__subtitle {
  color: var(--text-muted);
  margin: 8px 0 0;
  max-width: 520px;
}

.gov-support__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gov-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  background: var(--bg-muted);
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 320px;
}

.gov-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.25);
}

.gov-card--featured {
  background: var(--bg-dark);
  color: #fff;
}

.gov-card--featured .gov-card__tag {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.gov-card--featured .gov-card__percent {
  color: var(--accent);
}

.gov-card--featured .gov-card__desc {
  color: rgba(255, 255, 255, 0.8);
}

.gov-card--featured .gov-card__note {
  color: rgba(255, 255, 255, 0.45);
}

.gov-card__tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #fff;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.gov-card__percent {
  font-size: 64px;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--accent);
  margin-bottom: 14px;
}

.gov-card__percent span {
  font-size: 28px;
  margin-left: 2px;
  vertical-align: top;
}

.gov-card__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.25;
}

.gov-card__desc {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-muted);
  margin: 0 0 20px;
  flex-grow: 1;
}

.gov-card .btn--sm {
  align-self: flex-start;
}

.gov-support__disclaimer {
  margin: 24px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 820px;
}

/* ========== Models strip ========== */
.models {
  background: var(--bg-light);
  padding: 80px 0;
}

.models__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.models__title {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-transform: uppercase;
}

.models__subtitle {
  color: var(--text-muted);
  margin: 8px 0 0;
  max-width: 480px;
}

.models__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 20px;
}

/* Bento-карточка — 2×2 на десктопе (для Granta/Niva).
   Рядом с ней две обычные 1×1 карточки выстраиваются в столбик.
   На узких брейкпоинтах (≤1200px) возвращается к обычной ширине/высоте,
   потому что там сетка уже 2 / 1 колонок, и span ломает ряды. */
.model-card--wide {
  grid-column: span 2;
  grid-row: span 2;
}

.model-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-muted);
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  text-align: left;
}

.model-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.25);
}

.model-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  z-index: 1;
}

.model-card__image {
  flex: 1;
  min-height: 240px;
  overflow: hidden;
  position: relative;
}

.model-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Hero-кадры построены так: машина — в правой половине кадра, левая
     половина — «воздух» для заголовка/подзаголовка страницы. В плитке
     нам нужна машина, поэтому кадрируем по правому краю. */
  object-position: 75% center;
}

/* Тёмный градиент-оверлей снизу hero-кадра — обеспечивает контрастность
   для названия модели и цены, когда фон плитки теперь — фото с окружением. */
.model-card__image::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 50%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

.model-card__body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px 24px;
  margin-top: auto;
}

.model-card__name {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.02em;
}

.model-card__price {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  text-align: right;
  line-height: 1.2;
}

.model-card__price b {
  display: block;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 18px;
  margin-top: 2px;
}

/* CTA-кнопка в карточке модели (используется на /test-drive/). Разрывает
   inline-flex body, занимая полную ширину под названием и ценой. */
.model-card__cta {
  flex: 0 0 100%;
  order: 2;
  margin-top: 8px;
  text-align: center;
}

/* ========== Promo band ========== */
.promo-band {
  background: var(--bg-darker);
  color: #fff;
  padding: 64px 0;
}

.promo-band__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.promo-band__image {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #222;
}

.promo-band__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-band__label {
  display: inline-block;
  padding: 6px 12px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.promo-band__title {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.promo-band__text {
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 28px;
  max-width: 440px;
}

/* ========== Home hero (flagship) ========== */
.home-hero {
  position: relative;
  min-height: clamp(620px, 85vh, 820px);
  padding: clamp(140px, 16vh, 200px) 0 clamp(48px, 8vh, 96px);
  color: #fff;
  background: var(--bg-dark);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Без затемнения — картинка сделана с чистой левой частью под текст; текст
 * защищаем text-shadow'ом ниже. */

.home-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.home-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.home-hero__badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.25);
}

.home-hero__title {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  text-transform: uppercase;
  max-width: 880px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5), 0 1px 4px rgba(0,0,0,0.4);
}

.home-hero__title em {
  display: block;
  font-style: normal;
  color: var(--accent);
  margin-top: 6px;
}

.home-hero__subtitle {
  font-size: clamp(16px, 1.4vw, 19px);
  color: rgba(255, 255, 255, 0.92);
  max-width: 720px;
  margin: 0 0 36px;
  line-height: 1.5;
  text-shadow: 0 1px 12px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.5);
}

.home-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 36px;
  max-width: 920px;
}

.home-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.home-hero__stat:hover,
.home-hero__stat:focus-visible {
  background: rgba(245, 134, 31, 0.18);
  border-color: var(--accent);
  transform: translateY(-2px);
  outline: none;
}

.home-hero__stat-num {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.home-hero__stat-num sup {
  font-size: 0.55em;
  vertical-align: top;
  margin-left: 2px;
  color: #fff;
  font-weight: 800;
  position: relative;
  top: 0.2em;
}

.home-hero__stat-label {
  font-size: 16px;
  font-weight: 700;
  margin-top: 6px;
}

.home-hero__stat-cap {
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 900px) {
  .home-hero {
    min-height: auto;
    padding: 120px 0 48px;
  }
  .home-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .home-hero__stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .home-hero__stat {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
    padding: 14px 16px;
  }
  .home-hero__stat-num {
    flex-shrink: 0;
    min-width: 90px;
  }
  .home-hero__stat-label {
    margin-top: 0;
  }
  .home-hero__stat-cap {
    margin-left: auto;
    text-align: right;
  }
}

/* ========== Page hero (inner pages) ========== */
.page-hero {
  position: relative;
  padding: 160px 0 64px;
  color: #fff;
  background: var(--bg-dark);
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.32) 100%);
}

/* На .page-hero--promo сами картинки уже имеют чистую левую часть под текст
 * (composition сделана в NanaBanana под overlay-zone), поэтому глобальный
 * dimming не нужен — текст защищаем text-shadow'ом ниже. */
.page-hero--promo .page-hero__bg::after {
  background: none;
}

/* Исключение для светлых hero-картинок (/about/, /policy/ — showroom при дневном
 * свете / туман на пустой площади). Без затемнения белый текст не читается.
 * Возвращаем стандартный двойной градиент, как был на .page-hero--promo до 6617a12. */
.page-hero--bright .page-hero__bg::after {
  background:
    linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.45) 45%, rgba(0,0,0,0.2) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.2) 100%);
}

.page-hero__inner {
  position: relative;
  z-index: 1;
}

.page-hero__title {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.page-hero--promo .page-hero__title {
  text-shadow: 0 2px 24px rgba(0,0,0,0.5), 0 1px 4px rgba(0,0,0,0.4);
}

.page-hero__subtitle {
  font-size: clamp(16px, 1.5vw, 20px);
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
  margin: 0;
}

.page-hero--promo .page-hero__subtitle {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 12px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.5);
}

/* ===== Promo hero composition (gov-support, actions) ===== */
.hero-promo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
}

.hero-promo__lead {
  max-width: 720px;
}

.hero-promo__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-promo__badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.25);
}

.hero-promo .page-hero__title {
  margin-bottom: 18px;
}

.hero-promo__discount {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  color: #fff;
  line-height: 1;
}

.hero-promo__from {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
}

.hero-promo__num {
  font-size: clamp(72px, 12vw, 168px);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--accent);
  display: block;
  line-height: 0.85;
  text-shadow: 0 4px 32px rgba(0,0,0,0.4);
}

.hero-promo__num sup {
  font-size: 0.42em;
  vertical-align: top;
  margin-left: 6px;
  color: #fff;
  font-weight: 800;
  top: 0.15em;
  position: relative;
}

.hero-promo__caption {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 14px;
  max-width: 280px;
}

.hero-promo__chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 36px 0 0;
  padding: 0;
}

.hero-promo__chips a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.hero-promo__chips a:hover {
  background: rgba(245, 134, 31, 0.2);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.hero-promo__chips b {
  display: inline-block;
  min-width: 40px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0;
}

@media (max-width: 900px) {
  .hero-promo {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-promo__discount {
    align-items: flex-start;
    text-align: left;
  }
  .hero-promo__caption {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .hero-promo__chips {
    gap: 8px;
    margin-top: 24px;
  }
  .hero-promo__chips a {
    font-size: 13px;
    padding: 8px 14px 8px 10px;
  }
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs span {
  color: rgba(255, 255, 255, 0.3);
}

/* ========== Program blocks ========== */
.programs {
  padding: 40px 0;
  background: var(--bg-light);
}

.program {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 80px;
}

.program:first-child {
  border-top: none;
}

.program--featured {
  margin: 48px 0;
  padding: 48px;
  background: var(--bg-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  border-top: none;
}

.program__percent {
  font-size: 128px;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.program__percent span {
  font-size: 56px;
  vertical-align: top;
  margin-left: 4px;
}

.program__tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--bg-muted);
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.program--featured .program__tag {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.program__title {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 12px;
}

.program__lead {
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 24px;
  color: var(--text-muted);
  max-width: 640px;
}

.program--featured .program__lead {
  color: rgba(255, 255, 255, 0.8);
}

.program__sub {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: var(--text-dark);
}

.program--featured .program__sub {
  color: #fff;
}

.program__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

.program__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.program--featured .program__list {
  color: rgba(255, 255, 255, 0.75);
}

.program__list li {
  position: relative;
  padding-left: 18px;
}

.program__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.program__note {
  font-size: 12px;
  color: var(--text-muted);
  margin: 20px 0 0;
  max-width: 680px;
}

.program--featured .program__note {
  color: rgba(255, 255, 255, 0.5);
}

/* ========== Actions list ========== */
.actions-list {
  padding: 40px 0 80px;
  background: var(--bg-light);
}

.action-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
  padding: 40px 48px;
  background: var(--bg-muted);
  border-radius: var(--radius-lg);
  scroll-margin-top: 80px;
}

.action-card + .action-card {
  margin-top: 24px;
}

.action-card--featured {
  background: var(--bg-dark);
  color: #fff;
}

.action-card__side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.action-card__num {
  font-size: 128px;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.action-card__period {
  display: inline-block;
  padding: 6px 12px;
  background: var(--bg-dark);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.action-card--featured .action-card__period {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.action-card__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.action-card__tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #fff;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  margin-left: 8px;
  vertical-align: middle;
}

.action-card--featured .action-card__tag {
  background: var(--accent);
  color: #fff;
}

.action-card__title {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  margin: 8px 0 14px;
  text-transform: uppercase;
}

.action-card__lead {
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 28px;
  color: var(--text-muted);
  max-width: 720px;
}

.action-card--featured .action-card__lead {
  color: rgba(255, 255, 255, 0.82);
}

.action-card__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

.action-card__sub {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: var(--text-dark);
}

.action-card--featured .action-card__sub {
  color: #fff;
}

.action-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.action-card--featured .action-card__list {
  color: rgba(255, 255, 255, 0.78);
}

.action-card__list li {
  position: relative;
  padding-left: 18px;
}

.action-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.action-card__note {
  font-size: 12px;
  color: var(--text-muted);
  margin: 20px 0 0;
  max-width: 720px;
}

.action-card--featured .action-card__note {
  color: rgba(255, 255, 255, 0.5);
}

/* ========== Credit page ========== */
.credit-stats-section {
  padding: 24px 0 56px;
  background: var(--bg-light);
}

.credit-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.credit-stat {
  padding: 32px 28px 28px;
  background: var(--bg-muted);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.credit-stat:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.credit-stat__num {
  display: block;
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
  margin-bottom: 12px;
}

.credit-stat__title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.credit-stat__desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

.credit-programs__head {
  margin-bottom: 40px;
}

.credit-programs__title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.credit-programs__intro {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
  max-width: 720px;
}

.credit-docs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.credit-docs__sub {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 16px;
  color: var(--text-dark);
}

.credit-docs__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-dark);
}

.credit-docs__list li {
  position: relative;
  padding-left: 22px;
}

.credit-docs__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.credit-banks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.credit-banks__item {
  padding: 24px 20px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.credit-banks__item:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ========== Contacts detail page ========== */
.contacts-detail {
  padding: 40px 0 72px;
  background: var(--bg-light);
}

.contacts-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: stretch;
}

.contacts-detail__title {
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  text-transform: uppercase;
}

.contacts-detail__address {
  font-style: normal;
}

.contacts-detail__list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contacts-detail__item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.contacts-detail__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contacts-detail__item-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 2px;
}

.contacts-detail__item-value {
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-dark);
}

.contacts-detail__item-value a {
  color: var(--text-dark);
  border-bottom: 1px dashed var(--accent);
}

.contacts-detail__item-value a:hover {
  color: var(--accent);
}

.contacts-detail__item-note {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.contacts-detail__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contacts-detail__map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-muted);
  min-height: 460px;
}

.contacts-detail__map iframe {
  display: block;
  width: 100%;
  border: 0;
}

/* ========== Policy page ========== */
.policy {
  padding: 48px 0 80px;
  background: var(--bg-light);
}

.policy__container {
  max-width: 860px;
}

.policy__meta {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 32px;
  padding: 14px 18px;
  background: var(--bg-muted);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}

.policy__section {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 80px;
}

.policy__section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.policy__heading {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.policy__section p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-dark);
  margin: 0 0 14px;
}

.policy__section p:last-child {
  margin-bottom: 0;
}

.policy__address {
  font-style: normal;
}

.policy__list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.policy__list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-dark);
}

.policy__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.policy__section a {
  color: var(--text-dark);
  border-bottom: 1px dashed var(--accent);
}

.policy__section a:hover {
  color: var(--accent);
}

/* ========== Intro block ========== */
.intro {
  padding: 56px 0 16px;
  background: var(--bg-light);
}

.intro__text {
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.5;
  max-width: 820px;
  margin: 0;
  color: var(--text-dark);
}

.intro__phone {
  color: var(--accent);
  text-decoration: none;
}

.intro__phone:hover {
  text-decoration: underline;
}

/* ========== Application form ========== */
.application {
  padding: 80px 0;
  background: var(--bg-muted);
  scroll-margin-top: 80px;
}

.application__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.application__title {
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.application__subtitle {
  color: var(--text-muted);
  margin: 0 0 36px;
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: left;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form__field--wide {
  grid-column: 1 / -1;
}

.form__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form__input,
.form__select {
  height: 48px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-dark);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease;
}

.form__input:focus,
.form__select:focus {
  outline: none;
  border-color: var(--accent);
}

.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  grid-column: 1 / -1;
}

.form__consent input {
  margin-top: 2px;
  flex-shrink: 0;
}

.form__consent a {
  text-decoration: underline;
}

.form__submit {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 8px;
  min-width: 260px;
}

.form__honeypot {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form__captcha {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.form__status {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  text-align: center;
  font-size: 14px;
  min-height: 1.2em;
}

.form__status--success {
  color: #1f8a3a;
  font-weight: 600;
}

.form__status--error {
  color: #c62828;
  font-weight: 600;
}

/* ========== Modal form ========== */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 180ms ease;
}

.modal.is-open {
  opacity: 1;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 14, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  padding: 40px 32px 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transform: translateY(12px);
  transition: transform 220ms cubic-bezier(.2, .8, .2, 1);
}

.modal.is-open .modal__dialog {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 32px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 50%;
  transition: background 120ms ease, color 120ms ease;
}

.modal__close:hover,
.modal__close:focus-visible {
  background: var(--bg-muted);
  color: #000;
  outline: none;
}

.modal__title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.modal__subtitle {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.form--modal {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form--modal .form__field {
  margin: 0;
}

.form--modal .form__captcha {
  display: flex;
  justify-content: center;
  margin: 4px 0;
}

body.body-modal-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .modal {
    padding: 0;
    align-items: stretch;
  }
  .modal__dialog {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
    padding: 48px 20px 24px;
  }
}

/* ========== FAQ ========== */
.faq {
  padding: 80px 0;
  background: var(--bg-light);
}

.faq__title {
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 32px;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: var(--bg-muted);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}

.faq__item > summary {
  cursor: pointer;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq__item > summary::-webkit-details-marker {
  display: none;
}

.faq__item > summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq__item[open] > summary::after {
  content: "−";
}

.faq__item p {
  margin: 0;
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

/* ========== Model hero ========== */
.model-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--bg-dark);
  overflow: hidden;
  padding-top: 120px;
  padding-bottom: 60px;
}

.model-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.model-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.model-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.4) 100%);
}

.model-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.model-hero__eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(245, 134, 31, 0.18);
  border-radius: var(--radius-sm);
}

.model-hero__name {
  font-size: clamp(44px, 6vw, 88px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.model-hero__name-sub {
  display: block;
  font-size: 0.42em;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 10px;
}

.model-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  align-items: flex-end;
  margin-top: 32px;
}

.model-hero__price-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
}

.model-hero__price {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1;
}

.model-hero__price small {
  font-size: 0.45em;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.04em;
}

.model-hero__benefit-muted {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

.model-hero__benefit {
  display: inline-block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}

.model-hero__benefit b {
  font-weight: 700;
}

.model-hero__actions {
  display: flex;
  gap: 12px;
  margin-left: auto;
  flex-wrap: wrap;
}

/* ========== Model tabs ========== */
.model-tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px -8px rgba(0, 0, 0, 0.08);
}

.model-tabs__inner {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.model-tabs__inner::-webkit-scrollbar {
  display: none;
}

.model-tabs a {
  flex-shrink: 0;
  padding: 18px 22px;
  margin-bottom: -1px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.model-tabs a:hover {
  color: var(--text-dark);
}

.model-tabs a.is-active {
  color: var(--text-dark);
  border-bottom-color: var(--accent);
}

/* ========== Model section ========== */
.model-section {
  padding: 72px 0;
  scroll-margin-top: 64px;
}

.model-section--light {
  background: var(--bg-light);
}

.model-section--muted {
  background: var(--bg-muted);
}

.model-section--dark {
  background: var(--bg-dark);
  color: #fff;
}

.model-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.model-section__title {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-transform: uppercase;
}

.model-section__intro {
  color: var(--text-muted);
  margin: 8px 0 0;
  max-width: 640px;
}

.model-section--dark .model-section__intro {
  color: rgba(255, 255, 255, 0.75);
}

/* ========== Gallery grid ========== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery__item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-muted);
}

.model-section--dark .gallery__item {
  background: rgba(255, 255, 255, 0.04);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery__item:hover img {
  transform: scale(1.04);
}

.gallery__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gallery--wide .gallery__item:first-child {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

/* ========== Interior showcase ========== */
.showcase {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.showcase__hero {
  position: relative;
  margin: 0;
  aspect-ratio: 21 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-muted);
}

.showcase__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.showcase__item {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-muted);
}

.showcase__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.showcase__item:hover img {
  transform: scale(1.04);
}

.showcase__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.showcase__overlay {
  position: absolute;
  inset: 0;
  padding: 28px 28px 24px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.88) 100%);
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 3;
}

.showcase__overlay-text {
  font-size: 14px;
  line-height: 1.5;
  max-width: 640px;
}

.showcase__hero .showcase__overlay-text,
.showcase__item:first-child .showcase__overlay-text {
  font-size: 15px;
}

.showcase__hero:hover .showcase__overlay,
.showcase__item:hover .showcase__overlay {
  opacity: 1;
}

.showcase__hero:hover .showcase__caption,
.showcase__item:hover .showcase__caption {
  opacity: 0;
}

@media (hover: none) {
  .showcase__overlay {
    display: none;
  }
}

@media (max-width: 768px) {
  .showcase__overlay {
    padding: 20px;
  }
  .showcase__overlay-text {
    font-size: 13px;
  }
}

.model-section--dark .showcase__hero,
.model-section--dark .showcase__item {
  background: rgba(255, 255, 255, 0.04);
}

/* ========== Colors picker ========== */
.colors {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 48px;
  align-items: center;
}

.colors__stage {
  background: var(--bg-muted);
  border-radius: var(--radius-lg);
  padding: 0 24px;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

#colors .model-section__head {
  margin-bottom: 0;
}

.colors__stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.colors__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
}

.color-swatch {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid transparent;
  padding: 3px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.color-swatch:hover,
.color-swatch.is-active {
  border-color: var(--accent);
}

.color-swatch__fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.colors__name {
  margin-top: 20px;
  font-size: 15px;
  color: var(--text-muted);
  width: 100%;
}

.colors__name b {
  display: block;
  color: var(--text-dark);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 6px;
}


/* ========== Trims table ========== */
.trims {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trim-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr auto auto;
  gap: 28px;
  align-items: center;
  padding: 20px 24px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.trim-row:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.trim-row__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
}

.trim-row__desc {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.trim-row__spec {
  font-size: 14px;
  color: var(--text-muted);
}

.trim-row__spec b {
  display: block;
  color: var(--text-dark);
  font-weight: 600;
}

.trim-row__price {
  text-align: right;
}

.trim-row__price-old {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.trim-row__price-now {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.1;
}

.trim-row__price-gov {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 2px;
}

/* Кнопка «Подробнее» в trim-row */
.trim-row__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.trim-row__toggle:hover {
  color: var(--accent-hover);
}

.trim-row__toggle-icon {
  width: 10px;
  height: 10px;
  position: relative;
}

.trim-row__toggle-icon::before,
.trim-row__toggle-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.trim-row__toggle-icon::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  transform: translateY(-50%);
}

.trim-row__toggle-icon::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
}

.trim-row__toggle[aria-expanded="true"] .trim-row__toggle-icon::after {
  opacity: 0;
}

/* Аккордеон с полным списком опций */
.trim-row__details {
  grid-column: 1 / -1;
  margin-top: 16px;
  padding: 24px;
  background: var(--bg-muted);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px 32px;
}

.trim-row__details[hidden] {
  display: none;
}

.trim-row__details-group {
  min-width: 0;
}

.trim-row__details-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

.trim-row__details-added-label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.trim-row__details-added-label b {
  color: var(--text-dark);
  font-weight: 600;
}

.trim-row__details-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 12px 0;
}

.trim-row__details-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-dark);
}

.trim-row__details-list li {
  position: relative;
  padding-left: 16px;
}

.trim-row__details-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

.trim-row__details-list--inherited li {
  color: var(--text-muted);
}

.trim-row__details-list--inherited li::before {
  background: var(--text-muted);
}

/* ========== Reasons (why model) ========== */
.reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.reasons--steps {
  grid-template-columns: repeat(4, 1fr);
}

.reason {
  position: relative;
  padding: 36px 30px 32px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.reason:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.2);
  border-color: var(--accent);
}

.reason__num {
  display: block;
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
  margin-bottom: 20px;
}

.reason__title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.reason__desc {
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  color: var(--text-muted);
}

.reason--featured {
  background: var(--bg-dark);
  color: #fff;
  border-color: transparent;
}

.reason--featured .reason__desc {
  color: rgba(255, 255, 255, 0.75);
}

.reason--featured::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at top right, rgba(245, 134, 31, 0.25), transparent 70%);
  pointer-events: none;
}

.model-section--dark .reason {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.model-section--dark .reason__desc {
  color: rgba(255, 255, 255, 0.7);
}

.model-section--dark .reason:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent);
  box-shadow: none;
}

/* ========== Safety features ========== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  padding: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}

.model-section--light .feature {
  background: var(--bg-muted);
  border-color: transparent;
}

.feature__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 16px;
  font-size: 18px;
}

.feature__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
}

.feature__desc {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  color: inherit;
  opacity: 0.8;
}

/* ========== Dimensions schemas ========== */
.dimensions {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin: 0 0 40px;
}

.dimensions__item {
  margin: 0;
  padding: 24px 32px;
  background: var(--bg-muted);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.dimensions__item img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
}

.dimensions__caption {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .dimensions {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 28px;
  }
  .dimensions__item {
    padding: 16px 20px;
  }
  .dimensions__item img {
    max-height: 220px;
  }
}

/* ========== Specs tabs + table ========== */
.specs-tabs {
  display: flex;
  gap: 0;
  margin: 0 0 28px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}

.specs-tabs::-webkit-scrollbar {
  display: none;
}

.specs-tabs__tab {
  flex-shrink: 0;
  padding: 14px 22px;
  margin-bottom: -1px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  background: transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.specs-tabs__tab:hover {
  color: var(--text-dark);
}

.specs-tabs__tab.is-active {
  color: var(--text-dark);
  border-bottom-color: var(--accent);
}

.specs-pane {
  display: none;
}

.specs-pane.is-active {
  display: block;
}

.model-section--dark .specs-tabs {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.model-section--dark .specs-tabs__tab {
  color: rgba(255, 255, 255, 0.6);
}

.model-section--dark .specs-tabs__tab:hover,
.model-section--dark .specs-tabs__tab.is-active {
  color: #fff;
}

.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  max-width: 960px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.specs-table__head th {
  padding: 0 16px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.specs-table__head th:first-child {
  width: 38%;
}

.specs-table__head th.specs-table__variant {
  text-align: left;
  color: var(--text-dark);
  font-weight: 700;
}

.specs-table__group th {
  padding: 28px 16px 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.specs-table__row td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  vertical-align: top;
  line-height: 1.4;
}

.specs-table__row td:first-child {
  color: var(--text-muted);
}

.specs-table__row td:not(:first-child) {
  font-weight: 600;
  color: var(--text-dark);
}

.specs-table__row:last-child td {
  border-bottom: none;
}

@media (max-width: 768px) {
  .specs-table {
    font-size: 13px;
  }
  .specs-table__row td {
    padding: 10px 10px;
  }
  .specs-table__head th:first-child {
    width: 50%;
  }
}

.specs__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.specs__label {
  color: var(--text-muted);
}

.specs__value {
  font-weight: 600;
  text-align: right;
}

/* ========== Body banners (model overview) ========== */
.bodies {
  display: flex;
  flex-direction: column;
}

.body-banner {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 560px;
  overflow: hidden;
  color: #fff;
  background: var(--bg-dark);
}

.body-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.09) 1px, transparent 1.5px);
  background-size: 26px 26px;
  opacity: 0.7;
}

.body-banner__watermark {
  position: absolute;
  top: -6%;
  left: -3%;
  font-size: clamp(180px, 26vw, 340px);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  white-space: nowrap;
  text-transform: uppercase;
}

.body-banner--reverse .body-banner__watermark {
  left: auto;
  right: -3%;
}

.body-banner--sedan {
  background:
    radial-gradient(circle at 75% 25%, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(135deg, #3a3f4a 0%, #15181f 100%);
}

.body-banner--liftback {
  background:
    radial-gradient(circle at 25% 25%, rgba(255, 180, 170, 0.12), transparent 55%),
    linear-gradient(135deg, #6b1d23 0%, #2a0b0f 100%);
}

.body-banner--cross {
  background:
    radial-gradient(circle at 75% 25%, rgba(140, 200, 255, 0.12), transparent 55%),
    linear-gradient(135deg, #1e3a5c 0%, #0a1628 100%);
}

.body-banner--active-cross {
  background:
    radial-gradient(circle at 25% 25%, rgba(255, 180, 120, 0.15), transparent 55%),
    linear-gradient(135deg, #8a4419 0%, #2d1406 100%);
}

/* Iskra body-style modifiers — отличаются от Granta по оттенку, чтобы обзорные
   страницы Granta и Iskra визуально не смешивались. */
.body-banner--sw {
  background:
    radial-gradient(circle at 25% 25%, rgba(180, 220, 150, 0.14), transparent 55%),
    linear-gradient(135deg, #2c4a2a 0%, #0f1d0e 100%);
}

.body-banner--sw-cross {
  background:
    radial-gradient(circle at 75% 25%, rgba(120, 200, 200, 0.14), transparent 55%),
    linear-gradient(135deg, #1e4c4c 0%, #071e1e 100%);
}

/* Vesta cross-варианты: бронзово-оранжевые тона под фирменную окраску Cross/SW Cross.
   Существующий --cross синий (под Granta Cross) и не подходит под тёплый цвет Vesta. */
.body-banner--vesta-cross {
  background:
    radial-gradient(circle at 75% 25%, rgba(255, 180, 120, 0.15), transparent 55%),
    linear-gradient(135deg, #6b3a15 0%, #221005 100%);
}

.body-banner--vesta-sw-cross {
  background:
    radial-gradient(circle at 25% 25%, rgba(255, 200, 150, 0.14), transparent 55%),
    linear-gradient(135deg, #5a3a1e 0%, #1f0f05 100%);
}

/* Niva-модификаторы: Legend — оливково-зелёный (классика советского 4×4),
   Bronto — графитово-чёрный с оранжевым акцентом (экспедиционная версия),
   Travel — стальной тёмно-серый (современный городской SUV). */
.body-banner--niva-legend {
  background:
    radial-gradient(circle at 75% 25%, rgba(180, 200, 140, 0.14), transparent 55%),
    linear-gradient(135deg, #3a4a2e 0%, #141a0e 100%);
}

.body-banner--niva-bronto {
  background:
    radial-gradient(circle at 25% 25%, rgba(255, 140, 60, 0.15), transparent 55%),
    linear-gradient(135deg, #2a2a2e 0%, #0a0a0c 100%);
}

.body-banner--niva-travel {
  background:
    radial-gradient(circle at 75% 25%, rgba(160, 190, 220, 0.14), transparent 55%),
    linear-gradient(135deg, #2e3a48 0%, #0f141a 100%);
}

/* Largus-модификаторы: Cross — кросс-зеленоватый, Universal — тёмно-серый,
   CNG-версии — сине-голубой «газовый» акцент. */
.body-banner--largus-cross {
  background:
    radial-gradient(circle at 75% 25%, rgba(200, 220, 160, 0.12), transparent 55%),
    linear-gradient(135deg, #3a4a3a 0%, #14221a 100%);
}

.body-banner--largus-universal {
  background:
    radial-gradient(circle at 25% 25%, rgba(180, 180, 180, 0.10), transparent 55%),
    linear-gradient(135deg, #2e2e32 0%, #0e0e12 100%);
}

.body-banner--largus-universal-cng {
  background:
    radial-gradient(circle at 75% 25%, rgba(140, 200, 230, 0.14), transparent 55%),
    linear-gradient(135deg, #1e3c4c 0%, #07141c 100%);
}

.body-banner--largus-furgon-cng {
  background:
    radial-gradient(circle at 25% 25%, rgba(120, 190, 220, 0.14), transparent 55%),
    linear-gradient(135deg, #1a3744 0%, #050f15 100%);
}

.body-banner__content {
  position: relative;
  z-index: 2;
  flex: 1 1 50%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px clamp(32px, 5vw, 96px);
  order: 1;
}

.body-banner__media {
  position: relative;
  z-index: 1;
  flex: 1 1 50%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px clamp(32px, 4vw, 64px);
  order: 2;
}

.body-banner--reverse .body-banner__content { order: 2; }
.body-banner--reverse .body-banner__media { order: 1; }

.body-banner__media img {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
}

.body-banner__tag {
  align-self: flex-start;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  color: #fff;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.body-banner__name {
  font-size: clamp(32px, 3.8vw, 56px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.body-banner__desc {
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 24px;
  max-width: 480px;
  color: rgba(255, 255, 255, 0.8);
}

.body-banner__features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.body-banner__feature {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  color: #fff;
}

.body-banner__price-row {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.body-banner__price-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
}

.body-banner__price {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.body-banner__price-gov {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 6px;
}

.body-banner__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ========== Credit calculator ========== */
.calculator {
  padding: 80px 0;
  background: var(--bg-muted);
}

.calc {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.12);
}

.calc__controls {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.calc__field {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calc__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.calc__percent {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.01em;
  text-transform: none;
}

.calc__select {
  height: 48px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-dark);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
                    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) center, calc(100% - 13px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.calc__select:focus {
  outline: none;
  border-color: var(--accent);
}

.calc__range {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  appearance: none;
  outline: none;
  margin: 0;
}

.calc__range::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease;
}

.calc__range::-webkit-slider-thumb:active {
  transform: scale(1.1);
}

.calc__range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.calc__range-values {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.calc__range-values span:nth-child(2) {
  color: var(--text-dark);
  font-weight: 700;
}

.calc__result {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  background: var(--bg-dark);
  color: #fff;
  border-radius: var(--radius);
}

.calc__result-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.calc__result-item:last-of-type {
  border-bottom: none;
  padding-bottom: 4px;
}

.calc__result-item--main {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding-bottom: 16px;
}

.calc__result-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.03em;
}

.calc__result-value {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.calc__result-value--accent {
  font-size: 32px;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.calc__result .btn {
  margin-top: 8px;
}

.calc__disclaimer {
  margin: 20px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 820px;
}

@media (max-width: 768px) {
  .calculator {
    padding: 48px 0;
  }
  .calc {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
  }
  .calc__result {
    padding: 24px;
  }
  .calc__result-value--accent {
    font-size: 28px;
  }
}

/* ========== Pull-quote band ========== */
.pull-quote {
  position: relative;
  padding: 72px 0;
  text-align: center;
  overflow: hidden;
  background: var(--bg-dark);
  color: #fff;
}

.pull-quote::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1.5px);
  background-size: 24px 24px;
  opacity: 0.5;
  pointer-events: none;
}

.pull-quote--light {
  background: var(--bg-muted);
  color: var(--text-dark);
}

.pull-quote--light::before {
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.06) 1px, transparent 1.5px);
  opacity: 0.6;
}

.pull-quote__inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.pull-quote__eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(245, 134, 31, 0.12);
  border-radius: var(--radius-sm);
}

.pull-quote__text {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  text-transform: uppercase;
}

.pull-quote__text em {
  font-style: normal;
  color: var(--accent);
}

@media (max-width: 768px) {
  .pull-quote {
    padding: 48px 0;
  }
}

/* ========== CTA band with gov link ========== */
.cta-band {
  background: var(--accent);
  color: #fff;
  padding: 48px 0;
  text-align: center;
}

.cta-band__title {
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.cta-band__text {
  margin: 0 0 20px;
  opacity: 0.95;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.btn--light {
  background: #fff;
  color: var(--text-dark);
}

.btn--light:hover {
  background: var(--text-dark);
  color: #fff;
}

/* ========== Contacts band ========== */
.contacts-band {
  padding: 80px 0;
  background: var(--bg-muted);
}

.contacts-band__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: stretch;
}

.contacts-band__head {
  margin-bottom: 28px;
}

.contacts-band__title {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.contacts-band__subtitle {
  color: var(--text-muted);
  margin: 0;
  max-width: 420px;
}

.contacts-band__info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contacts-band__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.contacts-band__item-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contacts-band__item-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
}

.contacts-band__item-value a:hover {
  color: var(--accent);
}

.contacts-band__map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-muted);
  min-height: 460px;
}

.contacts-band__map iframe {
  display: block;
  width: 100%;
  border: 0;
}

/* ========== Footer ========== */
.site-footer {
  background: var(--bg-darker);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 32px;
  font-size: 14px;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-dark);
}

.site-footer__col-title {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.site-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__list a:hover {
  color: var(--accent);
}

.site-footer__brand {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 14px;
}

.site-footer__brand em {
  font-style: normal;
  color: var(--accent);
}

.site-footer__desc {
  margin: 0 0 20px;
  max-width: 320px;
}

.site-footer__phone {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  display: inline-block;
  margin-bottom: 4px;
}

.site-footer__phone:hover {
  color: var(--accent);
}

.site-footer__address {
  display: block;
  margin-top: 4px;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.site-footer__legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

/* ========== Body banner badge (accent corner sticker) ========== */
.body-banner__badge {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 3;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 20px -8px rgba(245, 134, 31, 0.6);
  transform: rotate(2deg);
}

.body-banner--reverse .body-banner__badge {
  right: auto;
  left: 28px;
  transform: rotate(-2deg);
}

/* ========== Body comparison table ========== */
.body-compare {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.body-compare__tabs {
  display: none;
}

.body-compare__table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.body-compare__table th,
.body-compare__table td {
  padding: 16px 20px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.body-compare__table tbody tr:last-child th,
.body-compare__table tbody tr:last-child td {
  border-bottom: none;
}

.body-compare__table thead th {
  background: var(--bg-muted);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark);
}

.body-compare__table tbody th {
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #fafafa;
  width: 1%;
}

.body-compare__table td {
  color: var(--text-dark);
  font-weight: 500;
}

.body-compare__table tbody tr:hover td,
.body-compare__table tbody tr:hover th {
  background: #fff7ee;
}

@media (max-width: 768px) {
  .body-compare {
    overflow-x: visible;
    border: none;
    border-radius: 0;
  }
  .body-compare__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    background: var(--bg-muted);
    padding: 6px;
    border-radius: 999px;
    border: 1px solid var(--border);
  }
  .body-compare__tab {
    flex: 1 1 auto;
    min-width: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .body-compare__tab.is-active {
    background: var(--bg-light);
    color: var(--text-dark);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  }
  .body-compare__tab:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
  .body-compare__table {
    min-width: 0;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
  }
  /* Скрываем неактивные колонки на мобилке. */
  .body-compare__table [data-col]:not(.is-active) {
    display: none;
  }
  .body-compare__table th,
  .body-compare__table td {
    padding: 12px 14px;
  }
}

/* ========== Stock cards (in-stock block) ========== */
.stock-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ========== Available / stock catalog page ========== */
.stock-list {
  padding: 16px 0 80px;
  background: var(--bg-light);
}

.stock-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

/* Layout каталога: sidebar слева + сетка справа. */
.stock-layout {
  display: grid;
  /* minmax(0, 1fr) обязателен — иначе grid-колонка растягивается под intrinsic
     ширину 3-колоночной .stock-grid--wide и выходит за .container. */
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.stock-content { min-width: 0; }

.stock-sidebar {
  position: sticky;
  top: 24px;
  padding: 0;
  background: var(--bg-muted);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stock-sidebar__details {
  padding: 0;
}

.stock-sidebar__summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  margin: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.stock-sidebar__details[open] .stock-sidebar__summary {
  padding-bottom: 14px;
}

.stock-sidebar__summary::-webkit-details-marker {
  display: none;
}

.stock-sidebar__title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark);
}

.stock-sidebar__chevron {
  font-size: 12px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.stock-sidebar__details[open] .stock-sidebar__chevron {
  transform: rotate(180deg);
}

.stock-facets {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 24px 24px;
}

.stock-facet {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.stock-facet:first-of-type {
  padding-top: 4px;
}

.stock-facet__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark);
}

.stock-facet__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

.stock-facet__icon svg {
  width: 100%;
  height: 100%;
}

.stock-facet__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stock-facets__reset {
  padding-top: 16px;
}

.stock-reset {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
}

.stock-reset:hover {
  color: var(--accent);
  background: rgba(245, 134, 31, 0.08);
}

.stock-facets .stock-filter {
  background: #fff;
  padding: 6px 12px;
  font-size: 12px;
}

.stock-facets .stock-filter__count {
  background: var(--bg-muted);
}

.stock-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-dark);
  background: var(--bg-muted);
  border: 1px solid transparent;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.stock-filter:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.stock-filter.is-active {
  background: var(--bg-dark);
  color: #fff;
  border-color: var(--bg-dark);
}

.stock-filter__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: #fff;
  border-radius: 100px;
}

.stock-filter.is-active .stock-filter__count {
  color: var(--bg-dark);
  background: var(--accent);
}

/* --wide: 3 в ряд (более крупные карточки на странице-каталоге).
   minmax(0, 1fr) обязателен: с просто 1fr длинные названия trim'ов
   («Largus Универсал CNG») растягивают колонки шире контейнера. */
.stock-grid--wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.stock-grid--wide .stock-card { min-width: 0; }
.stock-grid--wide .stock-card img { max-width: 100%; height: auto; }

/* Inline-фильтры над сеткой на обзорных страницах /<model>/. На /available/
   используется отдельный sidebar-фильтр (.stock-sidebar), там эти стили не нужны.
   Каждая группа (кузов/коробка/цена/цвет) — строка .stock-inline-filter с
   лейблом слева и pills/swatches справа. Группа рендерится только при >=2
   уникальных значениях в data. */
.stock-inline-filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 24px;
  padding: 20px 24px;
  background: var(--bg-muted);
  border-radius: var(--radius);
}
.stock-inline-filter {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.stock-inline-filter__label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  min-width: 78px;
}

/* Swatch-строка «Цвет»: круглые 32px-кнопки с фото цвета как фоном.
   .stock-swatch--all — нейтральная «Все» с текстом. */
.stock-inline-filter__swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.stock-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.15);
  background: #fff center/cover no-repeat;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.15s, transform 0.1s, box-shadow 0.15s;
  position: relative;
}
.stock-swatch:hover {
  border-color: var(--accent);
  transform: scale(1.08);
}
.stock-swatch.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 134, 31, 0.22);
}
.stock-swatch--all {
  width: auto;
  height: 32px;
  border-radius: 999px;
  padding: 0 14px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}
.stock-swatch--all:hover { transform: none; }

/* Сброс фильтров — отдельная строка справа, появляется при любом активном фасете. */
.stock-inline-filters__reset {
  display: flex;
  justify-content: flex-end;
}
.stock-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 4px 8px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.stock-reset:hover {
  color: var(--accent);
  background: rgba(245, 134, 31, 0.08);
}
.stock-reset[hidden] { display: none; }

@media (max-width: 640px) {
  .stock-inline-filters {
    padding: 16px;
  }
  .stock-inline-filter {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .stock-inline-filter__label { min-width: 0; }
}

/* «Показать ещё N» под сеткой — альтернатива пагинации на inline-stock.
   Плавное появление карточек: стартовое состояние (translateY+opacity) задаётся
   классом .stock-card--enter, JS снимает класс через два rAF, после чего
   включается transition и карточка «выезжает» на место. */
.stock-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}
.stock-load-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #fff;
  color: var(--text-dark);
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.1s;
}
.stock-load-more:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.stock-load-more:active {
  transform: scale(0.98);
}
.stock-load-more__count {
  color: var(--text-muted);
  font-weight: 500;
}
.stock-load-more:hover .stock-load-more__count {
  color: var(--accent);
}
.stock-load-more[hidden] { display: none; }

.stock-card--enter {
  opacity: 0;
  transform: translateY(12px);
}

/* Счётчик результатов фильтрации. <output role="status"> сам по себе live-region —
   при смене textContent screen reader озвучит «Найдено N автомобилей». */
.stock-results {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-muted);
}
.stock-results__count {
  font-weight: 700;
  color: var(--text-dark);
}
.stock-results__total {
  margin-left: 4px;
}

.stock-empty {
  margin: 24px 0 0;
  padding: 24px 28px;
  background: var(--bg-muted);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 15px;
}

.stock-empty a {
  color: var(--accent);
  border-bottom: 1px dashed var(--accent);
}

/* [hidden] не работает на flex/grid-элементах из-за user-agent специфичности,
   поэтому явно форсим скрытие для карточек и пагинации. */
.stock-card[hidden],
.pagination[hidden] {
  display: none;
}

/* ========== Pagination ========== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}

.pagination__pages {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination__btn,
.pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  background: var(--bg-muted);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pagination__btn {
  font-size: 20px;
  line-height: 1;
}

.pagination__btn:hover:not(:disabled),
.pagination__page:hover:not(.is-active) {
  border-color: var(--accent);
  color: var(--accent);
}

.pagination__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination__page.is-active {
  background: var(--bg-dark);
  color: #fff;
  border-color: var(--bg-dark);
  cursor: default;
}

.pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 40px;
  color: var(--text-muted);
  user-select: none;
}

.stock-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-muted);
  border-radius: var(--radius-lg);
  padding: 16px 20px 20px;
  transition: transform 0.35s ease, box-shadow 0.3s ease, opacity 0.35s ease;
}

.stock-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.22);
}

.stock-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #ececef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Skeleton shimmer — пока картинка не загрузилась, поверх контейнера тянется
 * двигающийся блик. Останавливается, когда .lazy-fade.is-loaded (main.js
 * ставит на <img> после load). Поддержка :has() везде (Chrome 105+, Safari 15.4+,
 * FF 121+) — на старых браузерах шиммер просто не пропадёт, картинка все равно
 * перекроет его сверху.
 */
.stock-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 70%
  );
  background-size: 250% 100%;
  animation: stock-skeleton-shimmer 1.4s ease-in-out infinite;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.stock-card__image:has(img.is-loaded)::after {
  opacity: 0;
  animation: none;
}

@keyframes stock-skeleton-shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .stock-card__image::after {
    animation: none;
    background: rgba(0, 0, 0, 0.04);
  }
}

.stock-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.stock-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}

.stock-card__badge--ready { background: #1f9c56; }
.stock-card__badge--sale  { background: var(--bg-dark); }
.stock-card__badge--last  { background: #d94f30; }

.stock-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.stock-card__name {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.01em;
}

.stock-card__trim {
  display: inline-block;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(245, 134, 31, 0.12);
  border-radius: var(--radius-sm);
}

.stock-card__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin: 0 0 18px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stock-card__spec {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.stock-card__spec dt {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stock-card__spec dd {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stock-card__price-block {
  margin-bottom: 18px;
}

.stock-card__price {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
  letter-spacing: -0.01em;
}

.stock-card__price-gov {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 6px;
}

.stock-card .btn {
  margin-top: auto;
  align-self: stretch;
}

/* ========== Trust block ========== */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust__item {
  padding: 32px 24px 28px;
  background: var(--bg-muted);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trust__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.2);
}

.trust__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 56px;
  padding: 0 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 100px;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.trust__icon--text {
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trust__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.trust__desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

/* ========== Trade-in / Credit teaser ========== */
.trade-credit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.tc-card {
  position: relative;
  padding: 40px 36px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.tc-card::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(245, 134, 31, 0.18), transparent 70%);
  pointer-events: none;
}

.tc-card__icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 22px;
}

.tc-card__title {
  position: relative;
  z-index: 1;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: #fff;
  letter-spacing: -0.01em;
}

.tc-card__desc {
  position: relative;
  z-index: 1;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 28px;
  max-width: 480px;
}

.tc-card .btn {
  position: relative;
  z-index: 1;
}

/* ========== Form hint ========== */
.form__hint {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin: 4px 0 0;
}

/* ========== Media queries ========== */
@media (max-width: 1024px) {
  .site-header__nav,
  .site-header__contacts {
    display: none;
  }
  .site-header__burger {
    display: block;
    margin-left: auto;
  }
  .site-header.is-open .site-header__nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-darker);
    padding: 12px 0;
  }
  .site-header.is-open .site-header__nav a {
    padding: 14px var(--gutter);
    border-bottom: 1px solid var(--border-dark);
  }
  .site-header.is-open .site-header__nav-accent {
    margin: 8px var(--gutter);
    text-align: center;
    border-bottom: none !important;
  }
  .site-header.is-open .site-header__contacts {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 14px var(--gutter);
    background: var(--bg-darker);
    border-top: 1px solid var(--border-dark);
  }

  .models__grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
  }
  .model-card--wide {
    grid-column: auto;
    grid-row: auto;
  }
  .gov-support__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .reasons--steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .contacts-detail__grid {
    grid-template-columns: 1fr;
  }
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
  }
  .contacts-band__inner {
    grid-template-columns: 1fr;
  }
  .stock-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stock-grid--wide {
    grid-template-columns: repeat(2, 1fr);
  }
  .stock-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .stock-sidebar {
    position: static;
  }
  .trust {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root { --gutter: 16px; }

  .hero {
    min-height: auto;
    align-items: flex-start;
  }
  .hero__inner {
    padding-top: 110px;
    padding-bottom: 40px;
  }

  .models {
    padding: 48px 0;
  }
  .models__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .models__head,
  .gov-support__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .gov-support {
    padding: 48px 0 24px;
  }

  .gov-support__grid {
    grid-template-columns: 1fr;
  }

  .promo-band__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contacts-band {
    padding: 48px 0;
  }
  .contacts-band__inner {
    gap: 24px;
  }
  .contacts-band__map {
    min-height: 360px;
  }

  .model-card__body {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .model-card__price {
    text-align: left;
  }

  .page-hero {
    padding: 120px 0 40px;
  }

  .program {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 36px 0;
  }
  .program__percent {
    font-size: 96px;
  }
  .program__columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .program--featured {
    padding: 32px 20px;
    margin: 32px 0;
  }

  .actions-list {
    padding: 32px 0 56px;
  }
  .action-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 20px;
  }
  .action-card + .action-card {
    margin-top: 16px;
  }
  .action-card__side {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }
  .action-card__num {
    font-size: 72px;
  }
  .action-card__columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .action-card__title {
    font-size: clamp(22px, 5vw, 28px);
  }

  .credit-stats {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .credit-stat {
    padding: 24px 20px;
  }
  .credit-docs {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .credit-banks {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .credit-banks__item {
    padding: 18px 12px;
    font-size: 14px;
  }

  .contacts-detail {
    padding: 24px 0 48px;
  }
  .contacts-detail__grid {
    gap: 24px;
  }
  .contacts-detail__item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .contacts-detail__map {
    min-height: 360px;
  }
  .contacts-detail__cta {
    flex-direction: column;
    align-items: stretch;
  }
  .contacts-detail__cta .btn {
    width: 100%;
  }

  .stock-facets {
    padding: 0 18px 18px;
    gap: 16px;
  }
  .stock-sidebar__summary {
    padding: 16px 18px;
  }

  .application {
    padding: 48px 0;
  }
  .form {
    grid-template-columns: 1fr;
  }
  .form__submit {
    min-width: 0;
    width: 100%;
  }

  .faq {
    padding: 48px 0;
  }

  .model-hero {
    min-height: 440px;
    padding-top: 100px;
    padding-bottom: 40px;
  }
  .model-hero__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .model-hero__actions {
    margin-left: 0;
  }

  .model-tabs a {
    padding: 14px 16px;
    font-size: 12px;
  }

  .model-section {
    padding: 48px 0;
  }
  .model-section__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery--wide .gallery__item:first-child {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16 / 9;
  }

  .showcase__hero {
    aspect-ratio: 16 / 9;
  }
  .showcase__grid {
    grid-template-columns: 1fr;
  }

  .colors {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .trim-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 20px;
  }
  .trim-row__price {
    text-align: left;
  }
  .trim-row__cta {
    margin-top: 8px;
    justify-self: stretch;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .reasons {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .reason {
    padding: 28px 24px 24px;
  }
  .reason__num {
    font-size: 44px;
    margin-bottom: 14px;
  }
  .reason__title {
    font-size: 18px;
  }

  .specs {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .body-banner {
    flex-direction: column;
    min-height: 0;
  }
  .body-banner__content {
    padding: 32px 24px 40px;
    order: 2 !important;
  }
  .body-banner__media {
    padding: 32px 24px 0;
    order: 1 !important;
  }
  .body-banner__media img {
    max-height: 240px;
  }
  .body-banner__name {
    font-size: clamp(28px, 7vw, 40px);
  }
  .body-banner__price-row {
    gap: 16px;
  }
  .body-banner__badge {
    top: 16px;
    right: 16px;
    padding: 8px 14px;
    font-size: 11px;
  }
  .body-banner--reverse .body-banner__badge {
    left: 16px;
  }

  .stock-grid {
    grid-template-columns: 1fr;
  }
  .trust {
    grid-template-columns: 1fr;
  }
  .trade-credit {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .tc-card {
    padding: 32px 24px;
  }
  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .models__grid {
    grid-template-columns: 1fr;
  }
  .stock-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
 * Back-to-top — глобальная плавающая кнопка, рендерится в _footer.php.
 * Оранжевая капсула с белой стрелкой, на hover раскрывается лейбл «Наверх».
 * main.js снимает hidden и тоглит .back-to-top--visible после ~600px скролла.
 * ========================================================================= */
.back-to-top {
  --size: 52px;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  height: var(--size);
  min-width: var(--size);
  padding: 0;
  padding-left: calc((var(--size) - 20px) / 2);
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--text-on-dark);
  font: inherit;
  cursor: pointer;
  box-shadow:
    0 10px 24px rgba(245, 134, 31, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(14px) scale(0.92);
  pointer-events: none;
  overflow: hidden;
  transition:
    opacity 0.25s ease,
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.back-to-top--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-to-top__icon {
  flex: 0 0 auto;
  color: #fff;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.back-to-top__label {
  display: inline-block;
  max-width: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  overflow: hidden;
  transition: max-width 0.25s ease, opacity 0.2s ease, padding 0.25s ease;
}

.back-to-top:hover {
  background: var(--accent-hover);
  box-shadow:
    0 14px 30px rgba(245, 134, 31, 0.45),
    0 4px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top:hover .back-to-top__icon {
  transform: translateY(-2px);
}

.back-to-top:hover .back-to-top__label,
.back-to-top:focus-visible .back-to-top__label {
  max-width: 80px;
  padding: 0 16px 0 8px;
  opacity: 1;
}

.back-to-top:active {
  transform: translateY(0) scale(0.96);
}

.back-to-top:focus-visible {
  outline: none;
  box-shadow:
    0 14px 30px rgba(245, 134, 31, 0.45),
    0 0 0 3px #fff,
    0 0 0 5px var(--accent);
}

@media (hover: none) {
  .back-to-top__label {
    display: none;
  }
}

@media (max-width: 768px) {
  .back-to-top {
    --size: 46px;
    right: 16px;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top,
  .back-to-top__icon,
  .back-to-top__label {
    transition: opacity 0.15s ease;
    transform: none;
  }
}

/* ============================================================================
 * Scroll progress bar — тонкая полоска вверху страницы, заполняется по скроллу.
 * Стартовая ширина 0, обновляется через CSS-var --p из main.js.
 * ========================================================================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  background: transparent;
  pointer-events: none;
}

.scroll-progress > i {
  display: block;
  width: var(--p, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  box-shadow: 0 0 8px rgba(245, 134, 31, 0.55);
  transition: width 0.08s linear;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress > i {
    transition: none;
  }
}

/* ============================================================================
 * Toast — глобальный «всплывашка» для нотификаций (например, копирование тел-а).
 * Создаётся из main.js, классом --visible активируется fade-in.
 * ========================================================================= */
.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%) translateY(8px);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(15, 15, 16, 0.92);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================================
 * Dealer status — live-плашка «открыто/закрыто», обновляется в main.js.
 * ========================================================================= */
.dealer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(46, 184, 92, 0.12);
  color: #1e7a3e;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  vertical-align: middle;
}

.dealer-status[data-state="closed"] {
  background: rgba(220, 53, 69, 0.1);
  color: #b03340;
}

.dealer-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2eb85c;
  box-shadow: 0 0 0 0 rgba(46, 184, 92, 0.5);
  animation: dealer-status-pulse 2s ease-out infinite;
}

.dealer-status[data-state="closed"] .dealer-status__dot {
  background: #dc3545;
  animation: none;
}

@keyframes dealer-status-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(46, 184, 92, 0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(46, 184, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 184, 92, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .dealer-status__dot {
    animation: none;
  }
}

.dealer-status--hero {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(8px);
}
.dealer-status--hero[data-state="closed"] {
  background: rgba(220, 53, 69, 0.25);
  color: #ffd9de;
}
.dealer-status--hero .dealer-status__dot {
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
}
@keyframes dealer-status-pulse-hero {
  0%   { box-shadow: 0 0 0 0 rgba(46, 184, 92, 0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(46, 184, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 184, 92, 0); }
}
.dealer-status--hero .dealer-status__dot {
  animation-name: dealer-status-pulse-hero;
}

.toast__check {
  display: inline-flex;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  align-items: center;
  justify-content: center;
}

/* ============================================================================
 * Sticky-CTA — мобильная нижняя панель с ценой и кнопками.
 * Скрыта по умолчанию; main.js снимает aria-hidden и навешивает --visible
 * после прокрутки за hero. Виден только на ≤900px.
 * ========================================================================= */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(15, 15, 16, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.28);
  transform: translateY(110%);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (max-width: 900px) {
  .sticky-cta {
    display: flex;
  }
}

.sticky-cta--visible {
  transform: translateY(0);
}

.sticky-cta__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.sticky-cta__from {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sticky-cta__price {
  font-size: 17px;
  font-weight: 700;
}

.sticky-cta__gov {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}
.sticky-cta__gov b {
  color: var(--accent);
  font-weight: 600;
}

.sticky-cta__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.sticky-cta__btn-form {
  flex: 0 0 auto;
}

.sticky-cta__btn-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  transition: background 0.15s ease;
}
.sticky-cta__btn-call:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Когда виден sticky-CTA — back-to-top уезжает выше, чтобы не наезжать. */
.sticky-cta--visible ~ .back-to-top {
  bottom: calc(72px + env(safe-area-inset-bottom));
}

@media (prefers-reduced-motion: reduce) {
  .sticky-cta {
    transition: opacity 0.15s ease;
  }
}

/* ============================================================================
 * lazy-fade — плавное появление картинок после загрузки.
 * main.js навешивает .is-loaded на load/error. Контейнер должен иметь свой
 * background (bg-muted), чтобы не было пустого белого пятна до загрузки.
 * ========================================================================= */
.lazy-fade {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.lazy-fade.is-loaded {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .lazy-fade {
    transition: opacity 0.15s ease;
  }
}

/* ============================================================================
 * Cookie consent — фикс-плашка снизу, появляется при первом визите.
 * После клика «Понятно» localStorage['lada:cookie-consent']='1', плашка
 * исчезает навсегда. Z-index 55: выше site-header (50) и sticky-CTA (45),
 * ниже scroll-progress (60) и toast (70). На мобиле временно прячет
 * sticky-CTA, чтобы не накладываться (см. `.cookie-consent--visible ~`).
 * ========================================================================= */
.cookie-consent {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  background: rgba(15, 15, 16, 0.96);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.cookie-consent--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-consent__text {
  flex: 1;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #e6e6e6;
}
.cookie-consent__text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-consent__text a:hover {
  color: var(--accent-hover);
}
.cookie-consent__btn {
  flex-shrink: 0;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.cookie-consent__btn:hover {
  background: var(--accent-hover);
}
.cookie-consent--visible ~ .back-to-top {
  bottom: calc(96px + env(safe-area-inset-bottom));
}

@media (max-width: 640px) {
  .cookie-consent {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  }
  .cookie-consent__text {
    font-size: 13px;
  }
  .cookie-consent__btn {
    width: 100%;
    padding: 12px;
  }
}

@media (max-width: 900px) {
  /* Пока плашка cookies видна — прячем мобильную sticky-CTA, чтобы не накладывались. */
  body.cookie-consent-open .sticky-cta {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent {
    transition: opacity 0.15s ease;
    transform: none;
  }
}
