/* ============================================================
   CARVICTORIA — автомобили из Кореи
   Премиальный темный стиль: бордо + золото + серифная типографика
   ============================================================ */

:root {
  --bg: #0B0708;
  --bg-2: #171012;
  --text: #F8F1E8;
  --text-2: #B9AAA2;
  --accent: #8B1E2D;
  --accent-soft: rgba(139, 30, 45, 0.35);
  --gold: #D8B56D;
  --gold-soft: rgba(216, 181, 109, 0.18);
  --line: rgba(216, 181, 109, 0.22);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Onest", Arial, sans-serif;
  --ui: "Manrope", Arial, sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
  --radius: 18px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { overflow-x: hidden; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

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

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

ul, ol { list-style: none; }

.mono { font-family: var(--mono); }

em { font-style: italic; color: var(--gold); }

.container {
  width: min(1240px, 100% - 48px);
  margin-inline: auto;
}

.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }

.section-cta {
  margin-top: clamp(36px, 4vw, 52px);
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--ui);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  padding: 17px 34px;
  border-radius: 999px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
  white-space: nowrap;
}

.btn--lg { padding: 20px 44px; font-size: 16px; }

.btn--primary {
  background: linear-gradient(135deg, #A32638 0%, var(--accent) 55%, #5E1320 100%);
  color: var(--text);
  border: 1px solid rgba(216, 181, 109, 0.45);
  box-shadow: 0 12px 36px rgba(139, 30, 45, 0.4);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 46px rgba(139, 30, 45, 0.55), 0 0 0 1px rgba(216, 181, 109, 0.5);
}

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(23, 16, 18, 0.5);
}

.btn--ghost:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
  transform: translateY(-2px);
}

.btn--outline {
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  padding: 13px 28px;
}

.btn--outline:hover { background: var(--gold); color: var(--bg); }

/* ---------- Header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  padding: 14px 0;
  background: linear-gradient(180deg, rgba(11, 7, 8, 0.92), rgba(11, 7, 8, 0.65));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(216, 181, 109, 0.12);
}

.header--static { position: static; background: transparent; }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header__logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.header__logo-wordmark {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header__logo-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text);
  line-height: 1.1;
}

.header__logo-sub {
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--text-2);
  line-height: 1.2;
}

.header__nav { display: flex; gap: 34px; }

.header__link {
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}

.header__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.header__link:hover { color: var(--text); }
.header__link:hover::after { transform: scaleX(1); transform-origin: left; }

.header__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}

.header__burger span {
  width: 26px; height: 1.6px;
  background: var(--gold);
  transition: transform 0.35s var(--ease), opacity 0.3s;
}

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

.header__mobile {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 18px 24px 28px;
  border-top: 1px solid rgba(216, 181, 109, 0.12);
}

.header__mobile.is-open { display: flex; }

.header__mobile-link {
  font-family: var(--ui);
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 12px 0;
  text-align: left;
  border-bottom: 1px solid rgba(216, 181, 109, 0.08);
}

.header__mobile .btn { margin-top: 16px; }

/* ---------- Сцены (визуал на градиентах) ---------- */

.scene {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 80% 10%, rgba(139, 30, 45, 0.5) 0%, transparent 55%),
    radial-gradient(90% 80% at 15% 90%, rgba(216, 181, 109, 0.16) 0%, transparent 60%),
    linear-gradient(160deg, #1d1316 0%, var(--bg-2) 45%, #0e0a0b 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.scene__photo {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.85;
  mix-blend-mode: luminosity;
}

.scene__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 70% 30%, rgba(216, 181, 109, 0.14) 0%, transparent 60%),
    linear-gradient(180deg, transparent 35%, rgba(11, 7, 8, 0.85) 100%);
  pointer-events: none;
}

.scene__glow--red {
  background:
    radial-gradient(70% 60% at 30% 25%, rgba(139, 30, 45, 0.4) 0%, transparent 60%),
    linear-gradient(180deg, transparent 30%, rgba(11, 7, 8, 0.9) 100%);
}

.scene__car {
  position: absolute;
  left: 50%; bottom: 8%;
  width: 86%;
  transform: translateX(-50%);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.5));
}

.scene__car--small { width: 78%; bottom: 10%; }

.scene--photo-only .scene__photo {
  opacity: 1;
  mix-blend-mode: normal;
}

.scene__photo--natural {
  opacity: 1;
  mix-blend-mode: normal;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(140px, 16vw, 190px) 0 clamp(60px, 8vw, 110px);
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

.hero__picture {
  position: absolute;
  inset: 0;
  display: block;
}

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 7, 8, 0.92) 0%, rgba(11, 7, 8, 0.72) 45%, rgba(11, 7, 8, 0.35) 100%),
    linear-gradient(180deg, rgba(11, 7, 8, 0.45) 0%, transparent 35%, rgba(11, 7, 8, 0.65) 100%);
}

.hero__arch {
  position: absolute;
  top: 0; right: -60px;
  width: clamp(260px, 30vw, 480px);
  opacity: 0.5;
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin-left: 0;
  padding-left: 0;
}

@media (min-width: 921px) {
  .hero .container.hero__grid {
    width: 100%;
    max-width: none;
    padding-left: 22vw;
    padding-right: clamp(24px, 4vw, 48px);
  }

  .hero__content {
    max-width: min(560px, 42vw);
  }
}

.hero__label {
  margin-bottom: 32px;
}

.hero__label-inner {
  display: inline-block;
  padding: 15px 24px;
  border: 1px solid rgba(216, 181, 109, 0.55);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(139, 30, 45, 0.32) 0%, rgba(23, 16, 18, 0.8) 52%, rgba(11, 7, 8, 0.92) 100%);
  box-shadow:
    inset 0 1px 0 rgba(216, 181, 109, 0.18),
    0 16px 38px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: min(100%, 620px);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.02em;
  color: #FFF8F0;
  text-shadow: 0 1px 12px rgba(216, 181, 109, 0.25);
}

.hero__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(48px, 7.2vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}

.hero__title-accent {
  font-style: italic;
  color: var(--gold);
}

/* маска для построчного reveal */
.reveal-line { display: block; overflow: hidden; }
.reveal-line > span { display: inline-block; will-change: transform; }

.hero__subtitle {
  max-width: 540px;
  color: var(--text-2);
  font-size: 18px;
  margin-bottom: 38px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.hero__note {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 34px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0 14px;
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}

.hero__badges li { display: flex; align-items: center; gap: 14px; padding: 6px 0; }

.hero__badges li:not(:last-child)::after {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.hero__visual { position: relative; }

.scene--hero { aspect-ratio: 4 / 4.6; }

.scene__plate {
  position: absolute;
  left: 22px; top: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(11, 7, 8, 0.7);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.scene__plate-num {
  font-size: 26px;
  font-weight: 600;
  color: var(--gold);
}

.scene__plate-label {
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero__seal {
  position: absolute;
  right: -28px; bottom: -34px;
  width: 130px;
  animation: sealSpin 36s linear infinite;
  opacity: 0.9;
}

@keyframes sealSpin {
  to { transform: rotate(360deg); }
}

/* ---------- Заголовки секций ---------- */

.section-head { margin-bottom: clamp(40px, 5vw, 70px); }

.section-head--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
}

.section-head__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.08;
}

.section-head__text {
  color: var(--text-2);
  max-width: 520px;
  justify-self: end;
}

/* ---------- Преимущества ---------- */

.advantages { padding-top: clamp(40px, 5vw, 60px); }

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

.adv-card {
  background: linear-gradient(170deg, var(--bg-2) 0%, rgba(23, 16, 18, 0.4) 100%);
  border: 1px solid rgba(216, 181, 109, 0.14);
  border-radius: var(--radius);
  padding: 34px 28px 38px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

/* асимметрия: смещение четных карточек вниз */
.advantages__grid .adv-card:nth-child(even) { transform: translateY(26px); }

.adv-card::after {
  content: "";
  position: absolute;
  left: 28px; right: 28px; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.adv-card:hover { border-color: rgba(216, 181, 109, 0.4); }
.adv-card:hover::after { transform: scaleX(1); }

.adv-card__icon { width: 40px; height: 40px; margin-bottom: 22px; }

.adv-card__title {
  font-family: var(--ui);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.adv-card__text { color: var(--text-2); font-size: 15px; }

/* ---------- Опыт ---------- */

.experience {
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(139, 30, 45, 0.16) 0%, transparent 60%),
    var(--bg-2);
  border-block: 1px solid rgba(216, 181, 109, 0.1);
}

.experience__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
}

.experience__number-wrap {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.experience__number {
  font-size: clamp(110px, 16vw, 210px);
  font-weight: 600;
  line-height: 0.9;
  color: var(--gold);
  text-shadow: 0 0 60px rgba(216, 181, 109, 0.25);
}

.experience__years {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(26px, 3vw, 40px);
  color: var(--text-2);
}

.experience__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.12;
  margin-bottom: 18px;
}

.experience__text { color: var(--text-2); max-width: 560px; margin-bottom: 28px; }

.experience__line {
  height: 1px;
  max-width: 420px;
  background: linear-gradient(90deg, var(--gold), var(--accent), transparent);
}

/* ---------- Состояние авто ---------- */

.inspection__layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
}

.scene--inspection { min-height: 420px; }

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

.check-card {
  background: var(--bg-2);
  border: 1px solid rgba(216, 181, 109, 0.12);
  border-radius: 16px;
  padding: 26px 24px;
  position: relative;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.check-card:hover {
  border-color: rgba(216, 181, 109, 0.42);
  background: #1d1417;
}

.check-card__index {
  font-size: 13px;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}

.check-card:hover .check-card__index { color: var(--gold); }

.check-card__title {
  font-family: var(--ui);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.check-card__text { color: var(--text-2); font-size: 14.5px; }

/* ---------- Процесс ---------- */

.process {
  background:
    radial-gradient(60% 60% at 100% 0%, rgba(216, 181, 109, 0.06) 0%, transparent 60%),
    var(--bg);
}

.process__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(216, 181, 109, 0.14);
  border-left: 1px solid rgba(216, 181, 109, 0.14);
}

.step {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 38px 32px 44px;
  border-right: 1px solid rgba(216, 181, 109, 0.14);
  border-bottom: 1px solid rgba(216, 181, 109, 0.14);
  position: relative;
  overflow: hidden;
  transition: background 0.45s var(--ease);
}

.step::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.step:hover { background: rgba(23, 16, 18, 0.8); }
.step:hover::before { transform: scaleX(1); }

.step__num {
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 0.12em;
}

.step__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 27px;
  margin-bottom: 8px;
}

.step__text { color: var(--text-2); font-size: 15px; }

/* ---------- Сценарии ---------- */

.scenarios { background: var(--bg-2); border-block: 1px solid rgba(216, 181, 109, 0.1); }

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

.scenario-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(216, 181, 109, 0.14);
  background: var(--bg);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.scenario-card:hover {
  border-color: rgba(216, 181, 109, 0.45);
  transform: translateY(-6px);
}

.scenario-card__visual {
  height: 170px;
  position: relative;
  overflow: hidden;
}

.scenario-card__visual img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 1;
  mix-blend-mode: normal;
}

.scenario-card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, var(--bg) 100%);
}

.scenario-card__visual--city {
  background: radial-gradient(80% 80% at 30% 20%, rgba(139, 30, 45, 0.55), transparent 60%), linear-gradient(150deg, #221518, #0e0a0b);
}

.scenario-card__visual--family {
  background: radial-gradient(80% 80% at 70% 25%, rgba(216, 181, 109, 0.3), transparent 60%), linear-gradient(150deg, #1d1316, #0e0a0b);
}

.scenario-card__visual--road {
  background: radial-gradient(90% 70% at 50% 0%, rgba(139, 30, 45, 0.45), transparent 65%), linear-gradient(150deg, #191013, #0c0809);
}

.scenario-card__visual--smart {
  background: radial-gradient(80% 80% at 25% 70%, rgba(216, 181, 109, 0.22), transparent 60%), linear-gradient(150deg, #1d1316, #0e0a0b);
}

.scenario-card__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  padding: 18px 26px 6px;
}

.scenario-card__text {
  color: var(--text-2);
  font-size: 15px;
  padding: 0 26px 30px;
}

/* ---------- Расходы ---------- */

.cost__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.cost__text { color: var(--text-2); margin: 24px 0 34px; max-width: 540px; }

.cost__item {
  position: relative;
  padding: 16px 0 16px 38px;
  border-bottom: 1px solid rgba(216, 181, 109, 0.12);
  font-size: 16px;
}

.cost__item::before {
  content: "";
  position: absolute;
  left: 0; top: 24px;
  width: 20px; height: 1.5px;
  background: var(--gold);
}

.scene--cost { aspect-ratio: 4 / 5; }

.scene--cost.scene--photo-only .scene__photo {
  opacity: 1;
  mix-blend-mode: normal;
}

.cost__ledger {
  margin-top: 34px;
  background: rgba(23, 16, 18, 0.85);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  max-width: 420px;
}

.cost__ledger-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 0;
  font-family: var(--ui);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: var(--text-2);
}

.cost__ledger-row i {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(216, 181, 109, 0.4) 0 4px, transparent 4px 9px);
}

.cost__ledger-row--total {
  color: var(--gold);
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 16px;
  font-weight: 700;
}

/* ---------- CTA ---------- */

.cta__card {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-radius: 28px;
  padding: clamp(60px, 8vw, 110px) 32px;
  background:
    radial-gradient(90% 120% at 50% -20%, rgba(139, 30, 45, 0.55) 0%, transparent 60%),
    radial-gradient(50% 60% at 90% 100%, rgba(216, 181, 109, 0.12) 0%, transparent 60%),
    var(--bg-2);
  border: 1px solid rgba(216, 181, 109, 0.2);
}

.cta__arch {
  position: absolute;
  left: -90px; bottom: -180px;
  width: 360px;
  opacity: 0.35;
  transform: rotate(180deg);
  pointer-events: none;
}

.cta__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 4.6vw, 56px);
  margin-bottom: 18px;
}

.cta__text {
  color: var(--text-2);
  max-width: 520px;
  margin: 0 auto 36px;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--bg-2);
  border-top: 1px solid rgba(216, 181, 109, 0.12);
  padding-top: clamp(48px, 6vw, 80px);
  overflow: visible;
}

.footer--thin { padding-top: 0; background: transparent; border-top-color: rgba(216, 181, 109, 0.08); }

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr auto;
  gap: 40px;
  padding-bottom: 48px;
}

.footer__logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.18em;
  display: block;
  margin-bottom: 10px;
}

.footer__tagline {
  display: block;
  font-family: var(--ui);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.footer__text { color: var(--text-2); font-size: 15px; max-width: 420px; }

.footer__nav { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

.footer__link {
  color: var(--text-2);
  font-size: 15px;
  transition: color 0.3s;
  position: relative;
}

.footer__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.footer__link:hover { color: var(--gold); }
.footer__link:hover::after { transform: scaleX(1); transform-origin: left; }

.footer__bottom {
  border-top: 1px solid rgba(216, 181, 109, 0.1);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  overflow: visible;
}

.footer__copy { color: var(--text-2); font-size: 13.5px; }

/* ============================================================
   КВИЗ
   ============================================================ */

.quiz {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.quiz.is-open { visibility: visible; opacity: 1; }

.quiz__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 4, 5, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.quiz__card {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(90% 60% at 80% -10%, rgba(139, 30, 45, 0.3) 0%, transparent 55%),
    linear-gradient(165deg, #1b1215 0%, var(--bg-2) 50%, #110b0d 100%);
  border: 1px solid rgba(216, 181, 109, 0.28);
  border-radius: 24px;
  box-shadow: var(--shadow);
  transform: translateY(26px) scale(0.97);
  transition: transform 0.45s var(--ease);
  overflow: hidden;
}

.quiz.is-open .quiz__card { transform: translateY(0) scale(1); }

.quiz__close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 5;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text-2);
  background: rgba(11, 7, 8, 0.6);
  transition: color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}

.quiz__close:hover { color: var(--gold); border-color: var(--gold); transform: rotate(90deg); }

.quiz__progress {
  height: 2px;
  background: rgba(216, 181, 109, 0.14);
  flex-shrink: 0;
}

.quiz__progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), #f0d49a);
  box-shadow: 0 0 12px rgba(216, 181, 109, 0.6);
  transition: width 0.5s var(--ease);
}

.quiz__body {
  padding: clamp(30px, 5vw, 48px) clamp(22px, 5vw, 52px) 10px;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

.quiz__step-label {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 16px;
}

.quiz__question {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.15;
  margin-bottom: 12px;
}

.quiz__desc { color: var(--text-2); font-size: 15.5px; margin-bottom: 26px; }

.quiz__options { display: grid; gap: 12px; margin-bottom: 26px; }

.quiz__options--cols { grid-template-columns: repeat(2, 1fr); }

.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 18px 22px;
  border-radius: 14px;
  border: 1px solid rgba(216, 181, 109, 0.18);
  background: rgba(11, 7, 8, 0.55);
  color: var(--text);
  font-family: var(--ui);
  font-size: 15.5px;
  font-weight: 500;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease),
              box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

.quiz-option:hover {
  border-color: rgba(216, 181, 109, 0.5);
  transform: translateY(-1px);
}

.quiz-option__dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--text-2);
  flex-shrink: 0;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.quiz-option.is-selected {
  background: linear-gradient(135deg, #A32638 0%, var(--accent) 60%, #5E1320 100%);
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 0 26px rgba(216, 181, 109, 0.35);
}

.quiz-option.is-selected .quiz-option__dot {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 10px rgba(216, 181, 109, 0.8);
}

.quiz__field { margin-bottom: 20px; }

.quiz__field label {
  display: block;
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 9px;
}

.quiz__input {
  width: 100%;
  background: rgba(11, 7, 8, 0.6);
  border: 1px solid rgba(216, 181, 109, 0.2);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  padding: 15px 18px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

textarea.quiz__input { resize: vertical; min-height: 96px; }

.quiz__input::placeholder { color: rgba(185, 170, 162, 0.55); }

.quiz__input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(216, 181, 109, 0.4), 0 0 20px rgba(216, 181, 109, 0.12);
}

.quiz__chips { display: flex; flex-wrap: wrap; gap: 10px; }

.quiz-chip {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(216, 181, 109, 0.22);
  background: rgba(11, 7, 8, 0.55);
  color: var(--text-2);
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s var(--ease);
}

.quiz-chip:hover { border-color: var(--gold); color: var(--text); }

.quiz-chip.is-selected {
  background: linear-gradient(135deg, #A32638, var(--accent));
  border-color: var(--gold);
  color: var(--text);
  box-shadow: 0 0 18px rgba(216, 181, 109, 0.3);
}

.quiz__submit {
  width: 100%;
  margin: 8px 0 14px;
}

.quiz__submit[disabled] { opacity: 0.7; cursor: wait; }

.quiz__privacy {
  font-size: 12.5px;
  color: rgba(185, 170, 162, 0.7);
  text-align: center;
  margin-bottom: 8px;
}

.quiz__footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px clamp(22px, 5vw, 52px) 22px;
  border-top: 1px solid rgba(216, 181, 109, 0.1);
}

.quiz__hint {
  font-size: 12px;
  color: rgba(185, 170, 162, 0.6);
  text-align: center;
}

.quiz__nav-btn {
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 12px 26px;
  border-radius: 999px;
  transition: all 0.3s var(--ease);
}

.quiz__nav-btn--back {
  color: var(--text-2);
  border: 1px solid transparent;
}

.quiz__nav-btn--back:hover { color: var(--text); border-color: var(--line); }

.quiz__nav-btn--next {
  color: var(--gold);
  border: 1px solid var(--gold);
}

.quiz__nav-btn--next:hover { background: var(--gold); color: var(--bg); }

.quiz__nav-btn.is-hidden,
.quiz__nav-btn[hidden] {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
}

body.quiz-locked { overflow: hidden; }

/* ============================================================
   THANKS
   ============================================================ */

.thanks-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(139, 30, 45, 0.22) 0%, transparent 60%),
    var(--bg);
}

.thanks {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
  padding: 60px 0;
}

.thanks__arch {
  position: absolute;
  right: -80px; top: 50%;
  transform: translateY(-50%);
  width: clamp(240px, 28vw, 440px);
  opacity: 0.35;
  pointer-events: none;
}

.thanks__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.thanks__mark { margin-bottom: 36px; }

.thanks__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 72px);
  margin-bottom: 18px;
}

.thanks__lead {
  font-size: 19px;
  color: var(--text);
  margin-bottom: 14px;
}

.thanks__note {
  color: var(--text-2);
  max-width: 480px;
  margin-bottom: 40px;
  font-size: 15.5px;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */

@media (max-width: 1100px) {
  .advantages__grid { grid-template-columns: repeat(2, 1fr); }
  .advantages__grid .adv-card:nth-child(even) { transform: none; }
  .scenarios__grid { grid-template-columns: repeat(2, 1fr); }
  .inspection__layout { grid-template-columns: 1fr; }
  .scene--inspection { min-height: 300px; }
  .process__list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .header__nav, .header__cta { display: none; }
  .header__burger { display: flex; }

  .hero__grid {
    grid-template-columns: 1fr;
    margin-left: 0;
    padding-left: 0;
  }

  .hero .container.hero__grid {
    padding-left: 0;
    max-width: min(1240px, 100% - 48px);
  }
  .hero__visual { max-width: 540px; }
  .hero__seal { right: 6px; bottom: -28px; width: 104px; }
  .hero__arch { opacity: 0.25; }

  .section-head--split { grid-template-columns: 1fr; align-items: start; }
  .section-head__text { justify-self: start; }

  .experience__grid { grid-template-columns: 1fr; gap: 28px; }

  .cost__grid { grid-template-columns: 1fr; }
  .cost__visual { max-width: 540px; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .hero__title {
    font-size: clamp(54px, 12.5vw, 72px);
    line-height: 1.04;
    margin-bottom: 24px;
  }

  .hero__subtitle { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .container { width: min(1240px, 100% - 36px); }

  .advantages__grid,
  .scenarios__grid,
  .inspection__grid,
  .process__list { grid-template-columns: 1fr; }

  .hero { padding-top: 120px; }

  .hero__label-inner {
    border-radius: 24px;
    padding: 14px 18px;
    font-size: 15px;
  }

  .hero__actions .btn {
    width: 100%;
    padding: 19px 28px;
    font-size: 16px;
  }

  .scene--hero { aspect-ratio: 4 / 4.2; }
  .scene__plate { left: 14px; top: 14px; padding: 11px 16px; }

  .step { padding: 30px 24px 36px; }

  .cta__card { padding: 64px 22px; }
  .cta .btn--lg { width: 100%; }

  .footer__bottom { flex-direction: column; align-items: stretch; }
  .footer__requisites-wrap { align-self: flex-end; }

  /* квиз на мобильных */
  .quiz { padding: 16px; align-items: center; justify-content: center; }

  .quiz__card {
    width: 100%;
    max-width: min(640px, calc(100% - 24px));
    max-height: calc(100dvh - 32px);
    border-radius: 20px;
  }

  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(11, 7, 8, 0.72) 0%, rgba(11, 7, 8, 0.58) 55%, rgba(11, 7, 8, 0.68) 100%);
  }
  .hero__photo { filter: brightness(1.0) saturate(1.02); object-position: center 35%; }

  .quiz__options--cols { grid-template-columns: 1fr; }

  .quiz-option { padding: 17px 18px; min-height: 56px; }

  .quiz__nav-btn { padding: 13px 24px; min-height: 48px; }

  .thanks__mark svg { width: 140px; height: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__seal { animation: none; }
}

/* ===== Quiz: РєРѕРјРїР°РєС‚РЅРѕ Р±РµР· СЃРєСЂРѕР»Р»Р° + РјРѕР±РёР»СЊРЅС‹Рµ С„РёРєСЃС‹ ===== */
html, body { overflow-x: hidden; max-width: 100%; }

body.quiz-open,
body.quiz-lock,
body.quiz-locked { overflow: hidden; }

.quiz { overflow-x: hidden; max-width: 100vw; }

.quiz__card,
.quiz__panel {
  display: flex;
  flex-direction: column;
  overflow: hidden !important;
  max-height: min(100dvh, 100vh) !important;
}

.quiz__steps,
.quiz__viewport,
.quiz__body,
#quizForm.quiz__body {
  flex: 1;
  min-height: 0;
  overflow: hidden !important;
}

.quiz-step:not([hidden]),
.quiz__step:not([hidden]),
fieldset.quiz__step:not([hidden]),
.quiz__body > .quiz__step {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: visible;
}

fieldset.quiz__step { border: 0; margin: 0; padding: 0; min-width: 0; }

.quiz-options,
.quiz__options {
  gap: 8px !important;
  margin-top: 10px !important;
}

.quiz-options--grid,
.quiz__options--grid,
.quiz__options--2col,
.quiz__options:not(.quiz__options--col) {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.quiz-option,
.quiz-opt,
.quiz__option {
  padding: 10px 12px !important;
  font-size: 14px !important;
  line-height: 1.25;
}

.quiz-step__title,
.quiz__title,
.quiz__question,
.quiz__step-title {
  font-size: clamp(17px, 4vw, 20px) !important;
  margin-bottom: 6px !important;
  line-height: 1.25;
  padding-right: 36px;
  flex-shrink: 0;
}

.quiz-step__text,
.quiz__text,
.quiz__desc,
.quiz__hint {
  font-size: 13px !important;
  margin-bottom: 8px !important;
  line-height: 1.35;
}

.quiz-fields-grid,
.quiz__fields--compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.quiz-fields-grid .quiz-field--full,
.quiz__field--full,
.quiz__fields--compact .quiz__field--full,
.quiz__fields.quiz-fields-grid > .quiz__field:nth-child(n+3) {
  grid-column: 1 / -1;
}

.quiz-field,
.quiz__field { margin-top: 0 !important; margin-bottom: 0 !important; }

.quiz-field input,
.quiz-field textarea,
.quiz__input,
.quiz__textarea,
.quiz__form input,
.quiz__form textarea {
  font-size: 16px !important;
  padding: 11px 14px !important;
  min-height: 44px;
  touch-action: manipulation;
}

.quiz-field textarea,
.quiz__textarea,
textarea.quiz__input,
.quiz__input--area {
  min-height: 52px !important;
  max-height: 68px;
  resize: none;
}

.quiz-chips,
.quiz__chips { gap: 8px !important; }

.quiz-chip,
.quiz__chip {
  font-size: 14px !important;
  padding: 9px 16px !important;
}

.quiz__nav,
.quiz__footer {
  flex-shrink: 0;
  margin-top: 10px !important;
  padding-top: 10px !important;
}

.quiz__nav-btn.is-hidden { display: none !important; }

.quiz__progress { flex-shrink: 0; margin-bottom: 14px !important; }
.quiz__head { flex-shrink: 0; }

.quiz__skip-note { font-size: 11px; margin-top: 8px; }

.quiz__submit { margin-top: 12px !important; }
.quiz__privacy { font-size: 11px; margin-top: 8px; }

/* ===== Реквизиты в подвале ===== */
.footer__requisites-wrap {
  position: relative;
  flex-shrink: 0;
}

.footer__requisites-btn {
  background: none;
  border: none;
  font: inherit;
  font-size: 14px;
  color: var(--text-2, #B9AAA2);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 4px 0;
  white-space: nowrap;
}

.footer__requisites-btn:hover { color: var(--text, #F8F1E8); }

.footer__requisites-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  min-width: 210px;
  max-width: min(280px, calc(100vw - 32px));
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(216, 181, 109, 0.28);
  background: #1b1215;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
  font-size: 13px;
  line-height: 1.4;
  z-index: 30;
  text-align: left;
}

.footer__requisites-popover[hidden] { display: none !important; }

.footer__requisites-name {
  margin: 0;
  color: var(--text, #F8F1E8);
  font-weight: 500;
}

.footer__requisites-inn {
  margin: 6px 0 0;
  color: var(--text-2, #B9AAA2);
  font-family: var(--mono, monospace);
  font-size: 12px;
  letter-spacing: 0.02em;
}

@media (max-width: 760px) {
  .quiz {
    padding: 16px !important;
    align-items: center !important;
    justify-content: center !important;
    overscroll-behavior: none;
  }

  .quiz__card,
  .quiz__panel {
    width: 100% !important;
    max-width: min(640px, calc(100% - 24px)) !important;
    border-radius: 20px !important;
    height: calc(100dvh - 32px) !important;
    max-height: calc(100dvh - 32px) !important;
    padding: 0 !important;
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  .quiz__card {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-columns: 1fr;
    grid-template-areas:
      "progress"
      "body"
      "footer";
  }

  .quiz__panel { padding: 18px 16px 14px !important; }

  .quiz__progress {
    grid-area: progress;
    margin-bottom: 0 !important;
    flex-shrink: 0;
  }

  .quiz__body {
    grid-area: body;
    flex: none !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    padding: 52px 16px 20px !important;
  }

  .quiz__footer {
    grid-area: footer;
    flex: none !important;
    flex-shrink: 0 !important;
    margin-top: 0 !important;
    background:
      linear-gradient(165deg, #1b1215 0%, var(--bg-2) 50%, #110b0d 100%);
    border-top: 1px solid rgba(216, 181, 109, 0.2);
    position: relative;
    z-index: 6;
    transform: translateZ(0);
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.32);
  }

  .quiz-fields-grid,
  .quiz__fields--compact {
    grid-template-columns: 1fr;
  }

  .quiz-options--grid,
  .quiz__options--grid,
  .quiz__options--2col,
  .quiz__options:not(.quiz__options--col) {
    grid-template-columns: 1fr !important;
  }

  .quiz-option,
  .quiz-opt,
  .quiz__option {
    padding: 9px 10px !important;
    font-size: 13px !important;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .quiz__nav,
  .quiz__footer {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .quiz__nav > .quiz__back,
  .quiz__nav > #quizBack,
  .quiz__footer > .quiz__back,
  .quiz__footer > #quizBack,
  .quiz__footer > .quiz__nav-btn--back {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    max-width: 100%;
    min-width: 0;
  }

  .quiz__nav > .quiz__next,
  .quiz__nav > .quiz__submit,
  .quiz__nav > #quizNext,
  .quiz__nav > #quizSubmit,
  .quiz__footer > .quiz__next,
  .quiz__footer > .quiz__submit,
  .quiz__footer > #quizNext,
  .quiz__footer > #quizSubmit,
  .quiz__footer > .quiz__nav-btn--next,
  .quiz__footer > #quizSubmit {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    max-width: 100%;
    min-width: 0;
  }

  .quiz__nav .btn,
  .quiz__footer .btn,
  .quiz__nav-btn {
    flex: none !important;
    white-space: normal;
    text-align: center;
    width: 100%;
    max-width: 100%;
    padding: 11px 8px !important;
    font-size: 12px !important;
    line-height: 1.2;
  }

  .quiz__next,
  .quiz__submit,
  #quizNext,
  #quizSubmit {
    margin-left: 0 !important;
    min-width: 0 !important;
  }

  .quiz__nav > [hidden],
  .quiz__footer > [hidden] {
    display: none !important;
  }

  .thanks__arch { display: none !important; }

}

