/* ===== Лендинг S-Klasse ===== */
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { overflow-x: hidden; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

.h2 { font-size: clamp(40px, 6vw, 72px); margin: 14px 0 0; }

/* ---------- навигация ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top);
  transition: background-color .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(7, 8, 10, .78);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__in { height: 68px; display: flex; align-items: center; gap: 28px; }
.nav__links { display: none; gap: 30px; margin-left: auto; }
.nav__links a {
  position: relative; font-size: 14px; color: var(--silver);
  transition: color .25s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--cognac); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.nav__links a:hover { color: var(--platinum); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__actions { display: none; align-items: center; gap: 20px; }
.nav__login { font-size: 14px; color: var(--silver); transition: color .25s; }
.nav__login:hover { color: var(--platinum); }
.nav__burger {
  margin-left: auto; width: 44px; height: 44px; display: grid; place-content: center; gap: 7px;
}
.nav__burger span { display: block; width: 22px; height: 1.5px; background: var(--platinum); transition: transform .4s var(--ease); }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
@media (min-width: 960px) {
  .nav__links, .nav__actions { display: flex; }
  .nav__actions { margin-left: 12px; }
  .nav__burger { display: none; }
}

.sheet {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(7, 8, 10, .97);
  padding: calc(100px + env(safe-area-inset-top)) 24px calc(32px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between;
  animation: sheet-in .45s var(--ease);
}
.sheet[hidden] { display: none; }
.sheet__links { display: grid; }
.sheet__links a {
  font: 500 34px/1.1 var(--serif); padding: 14px 0; border-bottom: 1px solid var(--line);
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- герой ---------- */
.hero {
  position: relative;
  padding: calc(96px + env(safe-area-inset-top)) 0 56px;
  overflow: hidden;
}
.hero::before { /* мягкая подсветка салона */
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%;
  background:
    radial-gradient(40% 35% at 72% 42%, rgba(201, 138, 75, .13), transparent 70%),
    radial-gradient(30% 30% at 18% 20%, rgba(185, 182, 173, .06), transparent 70%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-areas: "head" "cluster" "body";
  gap: 8px;
}
.hero__head { grid-area: head; }
.hero__cluster { grid-area: cluster; justify-self: center; width: min(86vw, 420px); margin: 18px 0 6px; }
.hero__body { grid-area: body; }
.hero__eyebrow { margin: 0 0 18px; }
.hero__title { font-size: clamp(64px, 17vw, 148px); margin: 0; }
.hero__title em { display: inline-block; }
.hero__lead { font-size: 18px; line-height: 1.55; color: var(--silver); max-width: 34ch; margin: 18px 0 28px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__ctas .btn--cognac { flex: 1 1 260px; }
.hero__fine { font-size: 13px; margin: 18px 0 0; }
.hero__hint { text-align: center; margin: 14px 0 0; color: var(--graphite); font-size: 10px; }
.hint-touch { display: none; }
@media (hover: none) { .hint-desk { display: none; } .hint-touch { display: inline; } }

.hero__gauge { cursor: crosshair; }

/* полоса «эмбиент-подсветки», бежит за курсором */
.hero__strip {
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent);
}
.hero__strip::after {
  content: ""; position: absolute; top: -1px; height: 3px; width: 320px;
  left: calc(var(--sx, 50%) - 160px);
  background: radial-gradient(closest-side, var(--cognac-hi), rgba(201, 138, 75, .35) 50%, transparent);
  filter: blur(.4px);
  transition: left .5s var(--ease);
}

/* стартовая анимация героя */
.hero__eyebrow, .hero__title, .hero__body, .hero__cluster { animation: rise 1.1s var(--ease) both; }
.hero__title { animation-delay: .08s; }
.hero__cluster { animation-delay: .18s; }
.hero__body { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

@media (min-width: 960px) {
  .hero { min-height: 100svh; display: flex; align-items: center; padding: 110px 0 80px; }
  .hero__grid {
    grid-template-columns: 1.08fr .92fr;
    grid-template-areas: "head cluster" "body cluster";
    grid-template-rows: auto 1fr;
    column-gap: 56px; align-items: start;
  }
  .hero__head { align-self: end; }
  .hero__cluster { width: 100%; max-width: 520px; margin: 0; align-self: center; }
  .hero__ctas .btn--cognac { flex: 0 0 auto; }
  .hero__lead { font-size: 19px; }
  .hero__title { font-size: min(8.4vw, 124px); }
  .hero__title em { white-space: nowrap; }
}

/* ---------- характеристики ---------- */
.specs, .routes, .trims, .steps, .faq { padding: 88px 0; border-top: 1px solid var(--line); }
@media (min-width: 960px) { .specs, .routes, .trims, .steps, .faq { padding: 128px 0; } }

.specs__grid { display: grid; gap: 40px; }
.specs__intro { margin: 18px 0 0; max-width: 30ch; }
.specs__list { margin: 0; }
.spec {
  position: relative;
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; column-gap: 14px;
  padding: 20px 14px; margin: 0 -14px;
  border-bottom: 1px solid var(--line);
  border-radius: 12px;
  transition: background-color .35s;
}
.spec dt { font-size: 15px; color: var(--silver); }
.spec dd { margin: 0; font-weight: 400; font-size: 16px; text-align: right; transition: transform .45s var(--ease), color .3s; }
.spec__dots {
  height: 1px; align-self: center; transform: translateY(4px);
  background-image: radial-gradient(circle, var(--graphite) 1px, transparent 1.4px);
  background-size: 7px 3px; background-repeat: repeat-x; background-position: left center;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.2s var(--ease) .25s;
}
.spec.is-in .spec__dots { clip-path: inset(0 0 0 0); }
.spec__note {
  grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--titanium);
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .5s var(--ease), opacity .4s, margin .5s var(--ease);
}
.spec:hover, .spec:focus-within { background: rgba(255, 255, 255, .025); }
.spec:hover .spec__dots { background-image: radial-gradient(circle, var(--cognac) 1px, transparent 1.4px); }
.spec:hover dd { transform: translateX(-4px); color: var(--cognac-hi); }
.spec:hover .spec__note { max-height: 60px; opacity: 1; margin-top: 8px; }
@media (hover: none) { .spec__note { max-height: none; opacity: 1; margin-top: 6px; } }
@media (min-width: 960px) {
  .specs__grid { grid-template-columns: 5fr 7fr; gap: 80px; }
  .specs__head { position: sticky; top: 120px; align-self: start; }
  .spec { padding: 24px 18px; margin: 0 -18px; }
  .spec dd { font-size: 18px; }
}

/* ---------- локации ---------- */
.routes__list { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.route {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px 14px 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--cabin);
  font-size: 16px;
  transition: transform .4s var(--ease), border-color .3s, background-color .3s;
}
.route__flag { font-size: 24px; line-height: 1; transition: transform .45s var(--ease); }
.route:hover { transform: translateY(-3px); border-color: rgba(201, 138, 75, .6); background: var(--panel); }
.route:hover .route__flag { transform: scale(1.18) rotate(-6deg); }
.route--empty { color: var(--titanium); border-style: dashed; }

/* ---------- комплектации ---------- */
.trims__sub { max-width: 52ch; margin: 18px 0 0; }
.trims__grid { margin-top: 48px; display: grid; gap: 14px; }
@media (min-width: 640px) { .trims__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .trims__grid { grid-template-columns: repeat(4, 1fr); } }
.trim {
  --mx: 50%; --my: 0%;
  position: relative; display: flex; flex-direction: column;
  padding: 26px 24px 24px;
  border-radius: var(--r-lg);
  background: var(--cabin);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s var(--ease);
}
.trim::after { /* свет, бегущий за курсором */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(201, 138, 75, .13), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.trim:hover { transform: translateY(-6px); border-color: rgba(201, 138, 75, .35); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.trim:hover::after { opacity: 1; }
.trim:hover.stitch::before { opacity: 1; }
.trim--hot { background: linear-gradient(180deg, #17130f, var(--cabin) 60%); border-color: rgba(201, 138, 75, .3); }
.trim__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; min-height: 26px; }
.trim__badge {
  font: 500 11px/1 var(--sans); letter-spacing: .06em;
  padding: 6px 10px; border-radius: 999px;
  color: var(--cognac-hi); background: rgba(201, 138, 75, .12); border: 1px solid rgba(201, 138, 75, .3);
}
.trim__name { font: italic 500 38px/1 var(--serif); margin: 22px 0 6px; color: var(--platinum); }
.trim__price { margin: 28px 0 4px; font: 200 46px/1 var(--sans); letter-spacing: -.02em; }
.trim__price small { font-size: 22px; font-weight: 300; margin-left: 4px; color: var(--silver); }
.trim__per { font-size: 14px; color: var(--titanium); margin: 0 0 26px; }
.trim .btn { margin-top: auto; }

/* ---------- шаги ---------- */
.steps__list { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.step { position: relative; padding: 28px 24px; border-radius: var(--r-lg); background: var(--cabin); border: 1px solid var(--line); }
.step__n { display: block; font-size: 72px; line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--cognac); transition: color .5s var(--ease); }
.step:hover .step__n { color: var(--cognac); }
.step h3 { font: 400 20px/1.3 var(--sans); margin: 22px 0 8px; }
.step p { margin: 0; font-size: 15px; }
@media (min-width: 900px) { .steps__list { grid-template-columns: repeat(3, 1fr); } }

/* ---------- вопросы ---------- */
.faq__grid { display: grid; gap: 36px; }
@media (min-width: 960px) { .faq__grid { grid-template-columns: 5fr 7fr; gap: 80px; } .faq__head { position: sticky; top: 120px; align-self: start; } }
.qa { border-bottom: 1px solid var(--line); }
.qa__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 0; text-align: left; font-size: 18px; font-weight: 400;
  transition: color .25s;
}
.qa__q:hover { color: var(--cognac-hi); }
.qa__q i { position: relative; width: 14px; height: 14px; flex: none; }
.qa__q i::before, .qa__q i::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor;
  transition: transform .45s var(--ease);
}
.qa__q i::after { transform: rotate(90deg); }
.qa.is-open .qa__q i::after { transform: rotate(0deg); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.qa__a > div { overflow: hidden; }
.qa__a p { margin: 0 0 22px; color: var(--silver); max-width: 60ch; }
.qa.is-open .qa__a { grid-template-rows: 1fr; }

/* ---------- финал ---------- */
.final { padding: 110px 0 120px; border-top: 1px solid var(--line); text-align: center; position: relative; overflow: hidden; }
.final::before {
  content: ""; position: absolute; left: 50%; top: 55%; width: 900px; height: 500px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(201, 138, 75, .14), transparent);
  pointer-events: none;
}
.final__in { position: relative; }
.final__title { font-size: clamp(54px, 10vw, 120px); margin: 0; }
.final__text { margin: 22px 0 32px; font-size: 17px; }

/* ---------- подвал ---------- */
.foot { border-top: 1px solid var(--line); padding: 36px 0 calc(110px + env(safe-area-inset-bottom)); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14px; color: var(--silver); }
.foot__links a:hover { color: var(--platinum); }
.foot__copy { font-size: 13px; margin: 0; }
@media (min-width: 960px) { .foot { padding-bottom: 40px; } .foot__copy { margin-left: auto; } }

/* ---------- нижняя плашка на мобильных ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(7, 8, 10, .92) 35%);
  transform: translateY(110%); transition: transform .5s var(--ease);
}
.dock.is-on { transform: none; }
@media (min-width: 960px) { .dock { display: none; } }
