/* =========================
   RESET + БАЗА
   ========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: #050608;
  color: #f9fafb;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
.page-shell {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* =========================
   CSS ПЕРЕМЕННЫЕ (anthracite + gold)
   ========================= */
:root {
  /* базовый фон */
  --cc-bg-main: #050608;          /* антрацит */
  --cc-bg-elevated: #111827;      /* мокрый асфальт */

  /* стекло */
  --cc-glass-bg: linear-gradient(
      135deg,
      rgba(249, 250, 251, 0.04),
      rgba(15, 23, 42, 0.96)
    );
  --cc-glass-soft: rgba(17, 24, 39, 0.94);
  --cc-glass-border: rgba(75, 85, 99, 0.7);
  --cc-glass-highlight: rgba(245, 212, 143, 0.28);

  /* текст */
  --cc-text-main: #f9fafb;
  --cc-text-muted: #9ca3af;
  --cc-text-soft: #6b7280;

  /* акценты — только золото */
  --cc-accent-gold: #f5d48f;
  --cc-accent-gold-strong: #d9a441;
  --cc-accent-gold-soft: #fef3c7;

  /* формы/радиусы */
  --cc-radius-xl: 26px;
  --cc-radius-lg: 20px;
  --cc-radius-md: 14px;
  --cc-radius-pill: 999px;

  /* тени и блюр */
  --cc-shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.8);
  --cc-shadow-floating: 0 26px 60px rgba(0, 0, 0, 0.9);
  --cc-shadow-gold: 0 0 32px rgba(245, 212, 143, 0.45);
  --cc-blur-strong: 30px;
  --cc-blur-medium: 18px;

  --cc-transition-fast: 0.16s ease-out;
  --cc-transition-normal: 0.24s ease-out;
}

/* =========================
   ОБОЛОЧКА
   ========================= */
.page-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% -10%, rgba(249, 250, 251, 0.05), transparent 55%),
    radial-gradient(circle at 80% 110%, rgba(31, 41, 55, 0.8), transparent 65%),
    var(--cc-bg-main);
  color: var(--cc-text-main);
  padding-bottom: 86px; /* под bottom bar + safe-area */
}

/* =========================
   КОНТЕЙНЕР
   ========================= */
.container {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 0 18px;
}

/* =========================
   УНИВЕРСАЛЬНАЯ СТЕКЛЯШКА
   ========================= */
.glass {
  background: var(--cc-glass-soft);
  backdrop-filter: blur(var(--cc-blur-medium));
  -webkit-backdrop-filter: blur(var(--cc-blur-medium));
  border-radius: var(--cc-radius-lg);
  border: 1px solid var(--cc-glass-border);
  box-shadow: var(--cc-shadow-soft);
  position: relative;
  overflow: hidden;
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.09),
    transparent 40%
  );
  opacity: 0.9;
  pointer-events: none;
}

/* =========================
   HEADER
   ========================= */

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(var(--cc-blur-strong));
  -webkit-backdrop-filter: blur(var(--cc-blur-strong));
  background: linear-gradient(
    to bottom,
    rgba(5, 6, 8, 0.98) 0%,
    rgba(15, 23, 42, 0.96) 55%,
    rgba(15, 23, 42, 0.0) 100%
  );
  border-bottom: 1px solid rgba(75, 85, 99, 0.8);
}

.header__safe-area {
  height: env(safe-area-inset-top, 0px);
  background: linear-gradient(
    to bottom,
    rgba(5, 6, 8, 1),
    rgba(15, 23, 42, 0.96),
    rgba(15, 23, 42, 0.0)
  );
}

.header__inner {
  padding: 8px 18px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* строки шапки */

.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.header__row--top {
  justify-content: center;
}

.header__row--bottom {
  gap: 10px;
}

/* бренд Crystal Car */

.header__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 100%;
}

.header__wordmark img {
  display: block;
  height: 16px;
  max-width: 70vw;
  object-fit: contain;
  opacity: 0.92;
  filter:
    drop-shadow(0 0 4px rgba(0, 0, 0, 0.85))
    drop-shadow(0 0 16px rgba(245, 212, 143, 0.45));
}

.header__subtitle {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cc-text-soft);
}

/* ZEEKR + телефон + иконки */

.header__zeekr-logo {
  height: 16px;
  display: block;
  object-fit: contain;
  opacity: 0.9;
}

/* телефон — стеклянная капсула */

.header__phone {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--cc-accent-gold-soft);
  padding: 6px 10px;
  border-radius: var(--cc-radius-pill);
  background: radial-gradient(
      circle at 0 0,
      rgba(245, 212, 143, 0.22),
      transparent 55%
    ),
    rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.8);
  box-shadow: var(--cc-shadow-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  white-space: nowrap;
}

/* группа иконок */

.header__icon-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* круглые стеклянные кнопки */

.header__icon-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--cc-radius-pill);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(75, 85, 99, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition:
    transform 0.12s ease-out,
    box-shadow var(--cc-transition-fast),
    border-color var(--cc-transition-fast),
    background var(--cc-transition-fast);
}

.header__icon-btn svg {
  width: 16px;
  height: 16px;
  fill: var(--cc-accent-gold);
}

/* WhatsApp и Навигатор — различия только в насыщенности золота */

.header__icon-btn--wa {
  border-color: rgba(245, 212, 143, 0.9);
  background: radial-gradient(
      circle at 0 0,
      rgba(245, 212, 143, 0.28),
      transparent 60%
    ),
    rgba(15, 23, 42, 0.98);
  box-shadow: 0 0 22px rgba(245, 212, 143, 0.5);
}

.header__icon-btn--nav {
  border-color: rgba(245, 212, 143, 0.7);
}

/* hover / tap */

.header__icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.92);
}

.header__icon-btn.is-tapped {
  transform: translateY(1px) scale(0.98);
  opacity: 0.95;
}

/* адаптив header */

@media (max-width: 360px) {
  .header__wordmark img {
    height: 14px;
  }

  .header__zeekr-logo {
    height: 14px;
  }

  .header__phone {
    font-size: 12px;
    padding-inline: 8px;
  }

  .header__icon-btn {
    width: 28px;
    height: 28px;
  }
}

/* =========================
   СЕКЦИИ
   ========================= */
.main {
  padding-top: 12px;
}

.section {
  padding: 26px 0 24px;
}

.section__inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section__title {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.section__subtitle {
  font-size: 14px;
  color: var(--cc-text-muted);
}

/* =========================
   HERO
   ========================= */
.hero {
  padding-top: 18px;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero__title {
  font-size: 26px;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.hero__title-accent {
  background: linear-gradient(
    120deg,
    var(--cc-accent-gold-soft),
    var(--cc-accent-gold),
    var(--cc-accent-gold-strong)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* H2-описание под машиной */
.hero__subtitle {
  font-size: 14px;
  line-height: 1.5;
  color: var(--cc-text-muted);
  margin: 0;
}

.hero__subtitle--lead {
  margin-top: 4px;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.hero__meta {
  font-size: 12px;
  color: var(--cc-text-soft);
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 2px;
}

.hero__keychips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.hero__keychips .chip {
  font-size: 11px;
  padding: 5px 10px;
}

/* Премиальный блок с параметрами поставки под заказ */
.hero-benefits {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: radial-gradient(
      circle at 0 0,
      rgba(245, 212, 143, 0.10),
      transparent 55%
    ),
    rgba(11, 15, 25, 0.96);
  box-shadow: var(--cc-shadow-soft);
}

.hero-benefits::before {
  /* слегка приглушаем стандартный верхний блик glass */
  opacity: 0.7;
}

.hero-benefits__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 12px;
  color: var(--cc-text-muted);
}

.hero-benefits__item + .hero-benefits__item {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
}

/* золотой маркер / «пуля» */
.hero-benefits__marker {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    var(--cc-accent-gold-soft),
    var(--cc-accent-gold-strong)
  );
  box-shadow: 0 0 10px rgba(245, 212, 143, 0.7);
}

.hero-benefits__text {
  flex: 1;
}

/* блок авто */

/* Автомобиль на весь экран, без карточки, с мягким свечением */
.hero-car-plain {
  position: relative;
  margin: 12px 0 6px;        /* без отрицательных отступов */
  padding: 4px 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

/* большое мягкое свечение за машиной */
.hero-car-plain::before {
  content: "";
  position: absolute;
  inset: 8% 4% auto 4%;
  height: 60%;
  background:
    radial-gradient(
      ellipse at center,
      rgba(245, 212, 143, 0.2),
      transparent 65%
    ),
    radial-gradient(
      ellipse at center,
      rgba(0, 0, 0, 0.95),
      transparent 70%
    );
  filter: blur(18px);
  opacity: 0.9;
  pointer-events: none;
}

.hero-car-plain::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -8px;
  height: 22%;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 1) 0%,
    transparent 70%
  );
  filter: blur(14px);
  opacity: 0.9;
  pointer-events: none;
}

.hero-car-plain__img {
  position: relative;
  z-index: 1;
  width: 100%;              /* больше не 110% */
  max-width: 640px;         /* запас для больших экранов */
  object-fit: contain;
  filter:
    drop-shadow(0 24px 36px rgba(0, 0, 0, 0.95))
    drop-shadow(0 0 26px rgba(245, 212, 143, 0.32));
}

@media (min-width: 768px) {
  .hero {
    padding-top: 26px;
  }

  .hero__title {
    font-size: 32px;
  }

  .hero-car-plain {
    margin: 18px 0 8px;
  }

  .hero-car-plain__img {
    width: 100%;
    transform: translateX(0);
  }
}

/* ===== Комплектации ZEEKR 9X ===== */

.trims {
  margin-top: 28px;
  margin-bottom: 32px;
}

.section-title {
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 2px;
}

.section-subtitle {
  font-size: 13px;
  line-height: 1.4;
  color: var(--cc-text-soft);
  margin: 0 0 8px;
}

/* Контейнер карусели – фон на всю ширину без скруглений */

.trims-carousel {
  position: relative;
  margin: 18px -18px 0;
  padding: 24px 0 22px;
  border-radius: 0;
  background:
    radial-gradient(circle at 0 0, rgba(245, 212, 143, 0.18), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(0, 0, 0, 0.85), transparent 70%),
    linear-gradient(160deg, #050609, #05070c);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85);
}

/* Лента тайлов */

.trims-carousel__track {
  display: flex;
  gap: 12px;
  padding-inline: 12vw;
  padding-top: 6px;
  padding-bottom: 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 12vw;
}

.trims-carousel__track::-webkit-scrollbar {
  display: none;
}

/* ===== Стрелка-подсказка свайпа ===== */

.trims-carousel__hint {
  position: absolute;
  top: 50%;
  right: 36px; /* учитываем -18px у контейнера, чтобы быть внутри экрана */
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.25s ease;
  z-index: 5;
}

.trims-carousel__hint-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: linear-gradient(
    135deg,
    rgba(8, 8, 12, 0.98),
    rgba(26, 20, 10, 0.98)
  );
  border: 1px solid rgba(247, 220, 155, 0.9);
  box-shadow: 0 0 22px rgba(247, 220, 155, 0.5);
  color: rgba(247, 220, 155, 0.92);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.trims-carousel__hint-label {
  opacity: 0.9;
}

.trims-carousel__hint-arrow {
  font-size: 16px;
  line-height: 1;
  transform: translateX(0);
  transition: transform 0.25s ease;
}

.trims-carousel__hint-inner.animate-arrow .trims-carousel__hint-arrow {
  transform: translateX(3px);
}

/* ===== Тайлы ===== */

.trims-card {
  position: relative;
  flex: 0 0 78vw;
  max-width: 420px;
  padding: 20px 20px 68px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 0 0, rgba(247, 220, 155, 0.10), transparent 60%),
    linear-gradient(160deg, #12141a, #05070d);
  border: 1px solid rgba(247, 220, 155, 0.22);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.9);
  color: rgba(244, 245, 248, 0.96);
  scroll-snap-align: center;
  opacity: 0.86;
  transform: translateY(4px);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease,
    transform 0.25s ease;
}

.trims-card.is-active {
  border-color: rgba(247, 220, 155, 0.95);
  box-shadow: 0 26px 55px rgba(247, 220, 155, 0.30);
  opacity: 1;
  transform: translateY(0);
}

.trims-card__header {
  position: relative;
  margin-bottom: 18px;
}

.trims-card__header--center {
  text-align: center;
}

.trims-card__title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* тонкая полоска под заголовком */

.trims-card__title-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(247, 220, 155, 0.0),
    rgba(247, 220, 155, 0.85),
    rgba(247, 220, 155, 0.0)
  );
  opacity: 0.85;
}

.trims-card__title-bar--center {
  left: 20%;
  right: 20%;
}

/* список характеристик с иконками */

.trims-card__specs {
  list-style: none;
  margin: 18px 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trims-card__spec-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.trims-card__spec-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: radial-gradient(
    circle at 30% 0,
    rgba(247, 220, 155, 0.55),
    rgba(12, 12, 16, 1)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(247, 220, 155, 0.55);
}

.trims-card__spec-icon svg {
  width: 13px;
  height: 13px;
  fill: rgba(12, 12, 16, 0.98);
}

.trims-card__spec-text {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(232, 234, 243, 0.94);
}

/* футер тайла: подпись + цена справа внизу */

.trims-card__footer {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.trims-card__label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(199, 203, 214, 0.85);
}

.trims-card__price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f7d38e, #f0c059);
  color: #15110a;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  box-shadow:
    0 0 10px rgba(247, 220, 155, 0.7),
    0 18px 30px rgba(0, 0, 0, 0.85);
}

/* CTA-тайл "Собрать свой ZEEKR 9X" */

.trims-card--cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  cursor: pointer;
}

.trims-card__ghost-text {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(226, 229, 238, 0.92);
  margin: 24px 0 18px;
}

.trims-card__ghost-btn {
  margin: 0;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(247, 220, 155, 0.7);
  background: transparent;
  color: rgba(247, 220, 155, 0.95);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trims-card__ghost-arrow {
  font-size: 15px;
  transform: translateX(0);
  transition: transform 0.2s ease;
}

.trims-card__ghost-btn:hover .trims-card__ghost-arrow {
  transform: translateX(3px);
}

/* чуть крупнее на планшете */

@media (min-width: 768px) {
  .trims {
    margin-top: 40px;
  }

  .trims-card {
    flex-basis: 60vw;
  }

  .trims-carousel__track {
    padding-inline: 18vw;
    scroll-padding-inline: 18vw;
  }
}

/* =========================
   ЧИПЫ
   ========================= */
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 11px;
  border-radius: var(--cc-radius-pill);
  font-size: 11px;
  line-height: 1.3;
  border: 1px solid rgba(75, 85, 99, 0.9);
  color: var(--cc-text-main);
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--cc-shadow-soft);
}

.chip--glass {
  background: rgba(15, 23, 42, 0.9);
}

.chip--outline {
  background: transparent;
  border-style: dashed;
  border-color: rgba(75, 85, 99, 0.9);
}

.chip--neon {
  border-color: rgba(245, 212, 143, 0.85);
  background: radial-gradient(
      circle at 0 0,
      rgba(245, 212, 143, 0.25),
      transparent 55%
    ),
    rgba(15, 23, 42, 0.98);
  box-shadow: var(--cc-shadow-gold);
}

.chip--selectable {
  cursor: pointer;
  transition:
    border-color var(--cc-transition-fast),
    background var(--cc-transition-fast),
    box-shadow var(--cc-transition-fast),
    transform 0.12s ease-out;
}

.chip--selectable.is-selected {
  border-color: rgba(245, 212, 143, 0.95);
  background: radial-gradient(
      circle at 0 0,
      rgba(245, 212, 143, 0.3),
      transparent 55%
    ),
    rgba(15, 23, 42, 0.99);
  box-shadow: var(--cc-shadow-gold);
  transform: translateY(-1px);
}

/* =========================
   КНОПКИ
   ========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: var(--cc-radius-pill);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  transition:
    background var(--cc-transition-normal),
    box-shadow var(--cc-transition-fast),
    transform 0.12s ease-out,
    border-color var(--cc-transition-fast);
  white-space: nowrap;
}

.btn--lg {
  padding-block: 13px;
  width: 100%;
}

.btn--primary {
  background: linear-gradient(
    135deg,
    var(--cc-accent-gold),
    var(--cc-accent-gold-strong)
  );
  box-shadow: var(--cc-shadow-gold);
  color: #111827;
}

.btn--primary:hover {
  box-shadow: 0 0 40px rgba(245, 212, 143, 0.65);
  transform: translateY(-1px);
}

.btn--ghost {
  background: rgba(15, 23, 42, 0.98);
  border-color: rgba(75, 85, 99, 0.9);
  color: var(--cc-text-main);
}

.btn--ghost:hover {
  background: rgba(15, 23, 42, 1);
  border-color: rgba(245, 212, 143, 0.85);
}

/* лёгкий отклик по тапу */
.is-tapped {
  transform: translateY(1px) scale(0.99);
  opacity: 0.95;
}

/* =========================
   КАРТОЧКИ
   ========================= */
.card {
  border-radius: var(--cc-radius-lg);
  padding: 14px;
  background: var(--cc-bg-elevated);
  border: 1px solid rgba(31, 41, 55, 0.9);
  box-shadow: var(--cc-shadow-soft);
}

.card--glass {
  background: var(--cc-glass-soft);
  border: 1px solid var(--cc-glass-border);
  backdrop-filter: blur(var(--cc-blur-medium));
  -webkit-backdrop-filter: blur(var(--cc-blur-medium));
}

.card__title {
  font-size: 15px;
  margin: 0 0 6px;
}

.card__text {
  font-size: 13px;
  margin: 0 0 10px;
  color: var(--cc-text-muted);
}

.card__media {
  border-radius: 16px;
  overflow: hidden;
}

.media {
  position: relative;
  overflow: hidden;
  border-radius: inherit;
}

.media--ratio::before {
  content: "";
  display: block;
  padding-top: 56%;
}

.media--ratio > img,
.media--ratio > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================
   STORY
   ========================= */
.story__grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.story__note {
  font-size: 12px;
  color: var(--cc-text-soft);
}

/* =========================
   BENEFITS
   ========================= */
.benefits__grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.benefits__item .card__title {
  font-size: 14px;
}

.benefits__item .card__text {
  font-size: 13px;
}

/* =========================
   QUIZ
   ========================= */
.quiz__inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.quiz-progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quiz-progress__bar {
  width: 100%;
  height: 6px;
  border-radius: var(--cc-radius-pill);
  background: rgba(15, 23, 42, 0.9);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(249, 250, 251, 0.04);
}

.quiz-progress__fill {
  height: 100%;
  width: 25%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    var(--cc-accent-gold-soft),
    var(--cc-accent-gold),
    var(--cc-accent-gold-strong)
  );
  box-shadow: var(--cc-shadow-gold);
  transition: width 0.25s ease-out;
}

.quiz-progress__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--cc-text-soft);
}

.quiz-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 4px;
}

.quiz-step {
  display: none;
  flex-direction: column;
  gap: 12px;
  animation: quizStepFade 0.26s ease-out;
}

.quiz-step.is-active {
  display: flex;
}

.quiz-step__title {
  font-size: 17px;
  line-height: 1.3;
}

.quiz-step__subtitle {
  font-size: 13px;
  color: var(--cc-text-muted);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz-option {
  text-align: left;
  width: 100%;
  padding: 11px 12px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(55, 65, 81, 0.9);
  color: var(--cc-text-main);
  box-shadow: var(--cc-shadow-soft);
  transition:
    border-color var(--cc-transition-fast),
    box-shadow var(--cc-transition-fast),
    transform 0.12s ease-out,
    background var(--cc-transition-fast);
}

.quiz-option__title {
  display: block;
  font-size: 14px;
  margin-bottom: 3px;
}

.quiz-option__text {
  font-size: 12px;
  color: var(--cc-text-soft);
}

.quiz-option:hover {
  border-color: rgba(245, 212, 143, 0.8);
  background: rgba(15, 23, 42, 1);
  transform: translateY(-1px);
}

.quiz-option.is-selected {
  border-color: rgba(245, 212, 143, 0.95);
  box-shadow: var(--cc-shadow-gold);
  background: radial-gradient(
      circle at 0 0,
      rgba(245, 212, 143, 0.28),
      transparent 55%
    ),
    rgba(15, 23, 42, 1);
}

/* Контакты внутри квиза */
.quiz-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-field__label {
  font-size: 12px;
  color: var(--cc-text-soft);
}

.form-field__input {
  border-radius: 14px;
  border: 1px solid rgba(75, 85, 99, 0.9);
  background: rgba(15, 23, 42, 0.98);
  padding: 9px 11px;
  font-size: 14px;
  color: var(--cc-text-main);
  outline: none;
  transition:
    border-color var(--cc-transition-fast),
    box-shadow var(--cc-transition-fast),
    background var(--cc-transition-fast);
}

.form-field__input::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

.form-field__input:focus {
  border-color: rgba(245, 212, 143, 0.95);
  box-shadow: 0 0 0 1px rgba(245, 212, 143, 0.85);
  background: rgba(15, 23, 42, 1);
}

.form-field__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quiz-contact__note {
  font-size: 11px;
  color: var(--cc-text-soft);
}

/* навигация по квизу */
.quiz-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.quiz-nav__btn {
  flex: 1;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: var(--cc-radius-pill);
}

.quiz-nav__btn--prev {
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(75, 85, 99, 0.95);
  color: var(--cc-text-main);
}

.quiz-nav__btn--next {
  background: linear-gradient(
    135deg,
    var(--cc-accent-gold),
    var(--cc-accent-gold-strong)
  );
  color: #111827;
  box-shadow: var(--cc-shadow-gold);
}

.quiz-success {
  display: none;
  margin-top: 10px;
  border-radius: var(--cc-radius-lg);
  padding: 14px;
  border: 1px solid rgba(245, 212, 143, 0.8);
  background: radial-gradient(
      circle at 0 0,
      rgba(245, 212, 143, 0.45),
      transparent 55%
    ),
    rgba(24, 24, 27, 0.98);
  box-shadow: var(--cc-shadow-gold);
}

.quiz-success.is-visible {
  display: block;
}

.quiz-success__title {
  font-size: 15px;
  margin: 0 0 4px;
}

.quiz-success__text {
  margin: 0;
  font-size: 13px;
}

/* =========================
   FAQ
   ========================= */
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.faq-item {
  border-radius: 18px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--cc-shadow-soft);
}

.faq-item__head {
  width: 100%;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.faq-item__question {
  font-size: 13px;
  text-align: left;
}

.faq-item__icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(75, 85, 99, 0.95);
  position: relative;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  background: rgba(148, 163, 184, 0.95);
  border-radius: 999px;
  transition:
    transform var(--cc-transition-fast),
    opacity var(--cc-transition-fast);
}

.faq-item__icon::before {
  width: 10px;
  height: 1.5px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-item__icon::after {
  width: 1.5px;
  height: 10px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-item.is-open .faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-item__body {
  max-height: 0;
  overflow: hidden;
  padding: 0 12px;
  transition:
    max-height 0.22s ease-out,
    padding-bottom 0.22s ease-out;
}

.faq-item.is-open .faq-item__body {
  max-height: 220px;
  padding-bottom: 10px;
}

.faq-item__answer {
  font-size: 12px;
  color: var(--cc-text-muted);
}

/* =========================
   CONTACTS
   ========================= */
.contacts__grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contacts__line {
  font-size: 13px;
  color: var(--cc-text-muted);
}

.contacts__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.contacts__map .media--map {
  min-height: 180px;
}

/* =========================
   BOTTOM BAR (dock-style)
   ========================= */
.bottom-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 45;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  pointer-events: none;
}

.bottom-bar__inner {
  pointer-events: auto;
  max-width: 520px;
  margin: 0 auto 10px;
  padding: 8px 16px 10px;
  border-radius: 30px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(55, 65, 81, 0.95);
  box-shadow: var(--cc-shadow-floating);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bottom-bar__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bottom-bar__title {
  font-size: 13px;
}

.bottom-bar__subtitle {
  font-size: 11px;
  color: var(--cc-text-soft);
}

.bottom-bar__btn {
  flex-shrink: 0;
  padding-inline: 14px;
  font-size: 13px;
}

/* =========================
   FOOTER
   ========================= */
.footer {
  padding: 14px 0 18px;
  font-size: 11px;
  color: var(--cc-text-soft);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.footer__link {
  text-decoration: underline;
  text-decoration-style: dotted;
}

/* =========================
   АНИМАЦИИ
   ========================= */
@keyframes quizStepFade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* мягкий пульс света вокруг hero-car в золоте */
[data-animate="glow"] {
  animation: goldPulse 7s ease-in-out infinite;
}

@keyframes goldPulse {
  0% {
    box-shadow: var(--cc-shadow-floating);
  }
  50% {
    box-shadow: 0 24px 70px rgba(245, 212, 143, 0.55);
  }
  100% {
    box-shadow: var(--cc-shadow-floating);
  }
}

/* =========================
   МЕДИА ≥ 768
   ========================= */
@media (min-width: 768px) {
  .container {
    max-width: 640px;
  }

  .hero__inner {
    gap: 22px;
  }

  .hero__title {
    font-size: 32px;
  }

  .section {
    padding: 32px 0 30px;
  }

  .story__grid,
  .benefits__grid,
  .contacts__grid {
    flex-direction: row;
  }

  .story__card,
  .benefits__item,
  .contacts__info,
  .contacts__map {
    flex: 1;
  }

  .contacts__actions {
    flex-direction: row;
  }
}
