/* ==========================================================================
   JAC ASTER Samarqand — стили сайта
   Подход: mobile first (сначала телефоны, затем @media для больших экранов)
   Цвета и шрифт — по брендбуку JAC (Intelligent Blue, Midnight Black, Roboto)
   ========================================================================== */

/* ---------- 1. ШРИФТЫ (локальные файлы в assets/fonts) ---------- */
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/roboto-cyrillic.woff2') format('woff2');
  font-weight: 300 900; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/roboto-latin-ext.woff2') format('woff2');
  font-weight: 300 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/roboto-latin.woff2') format('woff2');
  font-weight: 300 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 2. ПЕРЕМЕННЫЕ (меняйте цвета здесь) ---------- */
:root {
  --blue: #005F7F;          /* JAC Intelligent Blue */
  --blue-deep: #004C66;     /* JAC Intelligent Deep Blue */
  --blue-mid: #00A5CF;      /* JAC Middle Blue — акцент */
  --blue-light: #E0ECF4;    /* JAC Light Blue */
  --black: #1C1C1B;         /* JAC Midnight Black */
  --white: #FFFFFF;

  --bg: #0B1114;            /* фон страницы (тёмный с синим оттенком) */
  --bg-2: #101A1F;
  --surface: #14222A;
  --surface-2: #1A2C35;
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .2);
  --text: #F2F6F8;
  --muted: #9DB1BA;
  --accent: var(--blue-mid);
  --accent-2: #33C1E6;
  --danger: #FF6B6B;
  --ok: #3DDC97;

  --font: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --gutter: 16px;
  --header-h: 64px;
  --ease: cubic-bezier(.22, .9, .25, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, .55);
}

/* ---------- 3. БАЗА ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0; min-width: 320px;
  font-family: var(--font); font-size: 16px; line-height: 1.55; font-weight: 400;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.skip-link { position: fixed; left: 12px; top: -120px; z-index: 1000; padding: 10px 16px; background: var(--accent); color: #fff; border-radius: 10px; transition: top .2s; }
.skip-link:focus-visible { top: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 4. КНОПКИ ---------- */
.btn {
  --btn-bg: var(--surface-2); --btn-fg: var(--text);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: .02em; line-height: 1.1; text-align: center;
  background: var(--btn-bg); color: var(--btn-fg);
  overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s, color .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn::after { /* блик при наведении */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: scale(.97); }
.btn--primary { --btn-bg: linear-gradient(135deg, var(--blue-mid), var(--blue)); --btn-fg: #fff; background: var(--btn-bg); box-shadow: 0 10px 30px -10px rgba(0, 165, 207, .7); }
.btn--primary:hover { box-shadow: 0 16px 40px -12px rgba(0, 165, 207, .9); transform: translateY(-2px); }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent-2); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--blue-deep); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { min-height: 56px; font-size: 16px; }
.btn--block { width: 100%; }
.btn__spinner { display: none; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
.btn.is-loading .btn__spinner { display: inline-block; }
.btn.is-loading { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-2);
}

/* ---------- 5. ПРЕЛОАДЕР ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 999; display: grid; place-content: center; justify-items: center; gap: 22px;
  background: radial-gradient(circle at 50% 40%, var(--blue-deep), #031217 70%);
  transition: opacity .7s var(--ease), visibility .7s;
}
.preloader__logo { width: 170px; color: #fff; animation: logoIn 1.2s var(--ease-out) both; }
.preloader__bar { width: 140px; height: 2px; background: rgba(255,255,255,.15); overflow: hidden; border-radius: 2px; position: relative; }
.preloader__bar::after { content: ''; position: absolute; inset: 0; background: var(--accent); transform-origin: left; animation: bar 1.4s var(--ease) infinite; }
@keyframes bar { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes logoIn { from { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateX(-12px); } to { opacity: 1; clip-path: inset(0 0 0 0); transform: none; } }
body:not(.is-loading) .preloader { opacity: 0; visibility: hidden; }

/* ---------- 6. ШАПКА ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  transition: background-color .4s, backdrop-filter .4s, transform .45s var(--ease), box-shadow .4s;
}
.header.is-scrolled { background: rgba(8, 16, 20, .78); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: #fff; }
.brand__aster { width: 84px; height: auto; }
.brand__logo { width: 84px; height: auto; }
.brand__divider { width: 1px; height: 26px; background: var(--line-strong); }
.brand__dealer { display: flex; flex-direction: column; font-weight: 800; font-size: 14px; letter-spacing: .2em; line-height: 1.05; }
.brand__dealer small { font-size: 10px; font-weight: 500; letter-spacing: .12em; color: var(--muted); margin-top: 3px; }
.header__actions { display: flex; align-items: center; gap: 12px; }
.header__phone, .header__cta { display: none; }
.header__phone { align-items: center; gap: 8px; font-weight: 600; font-size: 15px; white-space: nowrap; transition: color .2s; }
.header__phone:hover { color: var(--accent-2); }

.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px var(--line); }
.lang__btn { min-width: 38px; height: 30px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted); transition: color .25s, background-color .25s; }
.lang__btn.is-active { background: #fff; color: var(--blue-deep); }

.burger { position: relative; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px var(--line); }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; border-radius: 2px; transition: transform .4s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* мобильное меню */
.nav {
  position: fixed; inset: 0; z-index: -1; padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(120% 80% at 100% 0%, var(--blue-deep), #061014 70%);
  clip-path: circle(0% at calc(100% - 38px) 32px); visibility: hidden;
  transition: clip-path .7s var(--ease), visibility .7s;
}
.nav.is-open { clip-path: circle(150% at calc(100% - 38px) 32px); visibility: visible; }
.nav__list { display: grid; gap: 6px; }
.nav__list a { display: block; padding: 8px 0; font-size: clamp(30px, 9vw, 44px); font-weight: 800; letter-spacing: -.01em; text-transform: uppercase; opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .6s var(--ease), color .2s; }
.nav.is-open .nav__list a { opacity: 1; transform: none; }
.nav.is-open .nav__list li:nth-child(1) a { transition-delay: .12s; }
.nav.is-open .nav__list li:nth-child(2) a { transition-delay: .17s; }
.nav.is-open .nav__list li:nth-child(3) a { transition-delay: .22s; }
.nav.is-open .nav__list li:nth-child(4) a { transition-delay: .27s; }
.nav.is-open .nav__list li:nth-child(5) a { transition-delay: .32s; }
.nav__list a:hover, .nav__list a.is-active { color: var(--accent-2); }
.nav__mobile-extra { display: grid; gap: 6px; }
.nav__phone { font-size: 22px; font-weight: 700; }
.nav__address { color: var(--muted); }

/* ---------- 7. ПЕРВЫЙ ЭКРАН (фото + заголовок) ---------- */
.hero__media { position: absolute; inset: 0; overflow: hidden; will-change: transform; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; animation: heroZoom 14s var(--ease-out) both; }
.hero__media::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,12,16,.6) 0%, rgba(4,12,16,0) 30%), linear-gradient(0deg, rgba(4,12,16,.9) 0%, rgba(4,12,16,.35) 40%, rgba(4,12,16,0) 65%); }
@keyframes heroZoom { from { transform: scale(1.18); } to { transform: scale(1.02); } }
.hero__content { position: absolute; inset: auto 0 0; z-index: 2; padding-bottom: 64px; }
.hero__title { max-width: 760px; font-size: clamp(38px, 10vw, 76px); font-weight: 900; line-height: .95; letter-spacing: -.03em; text-transform: uppercase; text-shadow: 0 4px 40px rgba(0,0,0,.35); }
/* Фото главной: на телефоне — вертикальное фото, на ПК — горизонтальное */
.hero--home .hero__media img { object-position: 55% 50%; }
@media (min-width: 801px) { .hero--home .hero__media img { object-position: 50% 55%; } }
.hero--model { height: 78svh; min-height: 520px; max-height: 880px; }
/* Телефон: вертикальное фото модели — машина целиком, без сильного приближения */
@media (max-width: 800px) {
  .hero.hero--model { height: min(100svh, 172vw); max-height: none; }
  .hero--model .hero__media img { object-position: 50% 40%; animation-name: heroZoomSoft; }
}
@keyframes heroZoomSoft { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero__sub { display: block; margin-top: 14px; font-size: clamp(17px, 4.4vw, 26px); font-weight: 300; letter-spacing: 0; text-transform: none; color: #DDE8EC; animation: heroTitle 1.3s var(--ease-out) .75s both; }
.model-cards--others { grid-template-columns: 1fr; }
.hero__line { display: block; animation: heroTitle 1.3s var(--ease-out) .5s both; }
@keyframes heroTitle { from { opacity: 0; transform: translateY(60px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 -20% 0); } }
.hero { position: relative; height: 100svh; min-height: 600px; max-height: 1100px; overflow: hidden; background: #000; }
/* Телефон: на главном фото четыре машины в ряд — высота экрана подогнана под фото, чтобы крайние машины не обрезались */
@media (max-width: 800px) {
  .hero:not(.hero--model) { height: min(100svh, 177vw); min-height: 560px; }
}


/* ---------- 9. СЕКЦИИ (общие) ---------- */
.section { position: relative; padding: 80px 0; }
.section__head { max-width: 760px; margin-bottom: 40px; }
.section__title { margin-top: 14px; font-size: clamp(32px, 8.5vw, 60px); font-weight: 900; line-height: 1.02; letter-spacing: -.02em; text-transform: uppercase; }
.section__lead { margin-top: 16px; font-size: clamp(16px, 4vw, 19px); color: var(--muted); max-width: 620px; }

/* фирменный паттерн JAC («волна» из шевронов) */
.pattern-bg { position: absolute; inset: 0; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='28' viewBox='0 0 48 28'%3E%3Cpath d='M2 4c6 0 10 4 14 10s8 10 8 10 4-4 8-10 8-10 14-10' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 48px 28px; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }

/* Появление при прокрутке */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform 1s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 10. КАРТОЧКИ МОДЕЛЕЙ ---------- */
.models-overview { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.model-cards { display: grid; gap: 16px; }
.model-card {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden; isolation: isolate; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line); transform-style: preserve-3d;
  transition: transform .6s var(--ease), box-shadow .5s;
}
/* Фото сверху: машина видна целиком, без затемнения */
.model-card__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0D171C; }
.model-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.model-card__img::after { content: ''; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(0deg, var(--surface), transparent); pointer-events: none; }
.model-card:hover .model-card__img img { transform: scale(1.05); }
.model-card:hover { box-shadow: inset 0 0 0 1px rgba(0,165,207,.6), var(--shadow); }
.model-card__body { position: relative; padding: 6px 24px 24px; margin-top: -24px; }
.model-card__type { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); }
.model-card__name { margin-top: 6px; font-size: 40px; font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.model-card__price { margin-top: 10px; color: var(--muted); }
.model-card__price b { color: #fff; font-size: 20px; }
.model-card__actions { display: flex; gap: 10px; margin-top: 18px; }
.model-card__actions .btn { flex: 1; }
.model-card__link { position: absolute; inset: 0; z-index: 0; }
.model-card__actions { position: relative; z-index: 1; }

/* ---------- 11. БЛОК МОДЕЛИ ---------- */
.model { position: relative; padding: 80px 0; overflow: hidden; }
.model--alt { background: var(--bg-2); }
.model::before { /* световое пятно */
  content: ''; position: absolute; width: 900px; height: 900px; left: 50%; top: 10%; translate: -50% 0; z-index: 0;
  background: radial-gradient(circle, rgba(0,165,207,.16), transparent 62%); pointer-events: none;
}
.model > .container { position: relative; z-index: 1; }
.model__head { max-width: 820px; }
.model__title { margin-top: 14px; font-size: clamp(30px, 8vw, 58px); font-weight: 900; line-height: 1.02; letter-spacing: -.02em; text-transform: uppercase; }
.model__text { margin-top: 16px; font-size: clamp(16px, 4vw, 18px); color: var(--muted); }

.model__layout { display: grid; gap: 28px; margin-top: 32px; }
.model__info-col { display: grid; gap: 28px; }

/* сцена с машиной и цветами */
/* Белый фон, чтобы PNG-фото машин без фона смотрелись чисто (цвета фона — здесь) */
.stage { position: relative; border-radius: var(--radius); padding: 64px 12px 20px; color: #1C1C1B;
  background: radial-gradient(80% 70% at 50% 55%, #FFFFFF 0%, #F4F7F9 60%, #E9EEF1 100%);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.6); overflow: hidden; }
/* Тень под машиной: у фото без фона (c-*.webp) тень уже «вшита» в картинку,
   CSS-тень нужна только для 360° (JS8) */
.stage__floor { display: none; }
.stage--spin .stage__floor { display: block; position: absolute; left: 16%; right: 16%; bottom: 20%; height: 26px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(10,14,18,.55), rgba(10,14,18,.18) 60%, transparent); filter: blur(7px); }
.stage--spin .stage__floor::after { content: ''; position: absolute; left: -12%; right: -12%; top: -10px; bottom: -14px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(10,14,18,.14), transparent); filter: blur(10px); }
.stage__car { position: relative; aspect-ratio: 16 / 7; display: grid; place-items: center; }
.stage__car img { position: absolute; width: 96%; max-height: 100%; object-fit: contain; transition: opacity .6s var(--ease), transform .8s var(--ease-out), filter .6s; }
.stage__car img.is-leaving { opacity: 0; transform: translateX(-8%) scale(.97); filter: blur(4px); }
.stage__car img.is-entering { opacity: 0; transform: translateX(10%) scale(.97); filter: blur(4px); }
.stage__label { position: absolute; left: 16px; top: 14px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #7A8A92; }
.stage__label b { display: block; margin-top: 2px; font-size: 16px; letter-spacing: .02em; text-transform: none; color: #1C1C1B; }
/* мобильная версия: машина крупнее (в картинках есть поля под тень), подсказка 360° не залезает на кузов */
@media (max-width: 639px) {
  .stage { padding: 58px 0 16px; }
  .stage__car { aspect-ratio: 16 / 7.6; }
  .stage__car img { width: 118%; max-width: none; max-height: none; height: auto; }
  .stage--spin .stage__car { margin-bottom: 30px; }
  .spin__hint { bottom: -34px; }
  .stage--spin .stage__floor { bottom: calc(20% + 30px); }
}
.swatches { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.swatch { width: 38px; height: 38px; border-radius: 50%; padding: 4px; box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.12); transition: box-shadow .3s, transform .3s var(--ease); }
.swatch i { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), inset 0 -6px 10px rgba(0,0,0,.25), inset 0 4px 8px rgba(255,255,255,.3); }
.swatch:hover { transform: translateY(-2px); }
.swatch[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--blue-mid), 0 0 0 4px rgba(0,165,207,.18); }

/* 360° вращение (JS8) */
.spin { position: relative; width: 96%; aspect-ratio: var(--ratio, 533 / 237); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; background-repeat: no-repeat; }
.spin.is-dragging { cursor: grabbing; }
.spin__hint { position: absolute; left: 50%; bottom: -6px; translate: -50% 0; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 12px; color: #4A5A62; background: rgba(0,0,0,.06); white-space: nowrap; transition: opacity .4s; }
.spin__hint .icon { animation: sway 2.4s var(--ease) infinite; }
.spin.is-touched + .spin__hint { opacity: 0; }
@keyframes sway { 0%, 100% { transform: translateX(-4px); } 50% { transform: translateX(4px); } }
.spin__loader { position: absolute; inset: 0; display: grid; place-items: center; }
.spin__loader::after { content: ''; width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(0,0,0,.1); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.spin.is-ready .spin__loader { display: none; }

/* цифры */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.stat { padding: 18px 16px; background: var(--bg); }
.model--alt .stat { background: var(--bg-2); }
.stat__value { display: flex; align-items: baseline; gap: 4px; font-size: clamp(32px, 9vw, 46px); font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.stat__value small { font-size: .42em; font-weight: 700; color: var(--accent-2); letter-spacing: 0; }
.stat__label { margin-top: 6px; font-size: 13px; color: var(--muted); }

/* цена */
.price-box { position: relative; padding: 22px; border-radius: var(--radius); background: linear-gradient(140deg, var(--blue) 0%, var(--blue-deep) 55%, #03303F 100%); overflow: hidden; box-shadow: var(--shadow); }
.price-box::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 36px solid rgba(255,255,255,.06); }
.price-box__trim { font-size: 13px; color: rgba(255,255,255,.75); }
.price-box__trim b { color: #fff; font-size: 15px; }
.price-box__row { margin-top: 14px; }
.price-box__label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.price-box__old { font-size: 18px; color: rgba(255,255,255,.75); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.price-box__new { display: block; margin-top: 2px; font-size: clamp(30px, 8vw, 40px); font-weight: 900; line-height: 1.05; letter-spacing: -.01em; }
.price-box__new small { font-size: .5em; font-weight: 600; }
.price-box__new--request { font-size: clamp(24px, 6vw, 30px); }
.price-box__badge { display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #fff; color: var(--blue-deep); }
.price-box__save { display: inline-block; margin-left: 6px; font-size: 13px; font-weight: 600; color: #BDF3FF; }
.price-box__actions { position: relative; z-index: 1; display: grid; gap: 10px; margin-top: 20px; }
.price-box__note { margin-top: 10px; font-size: 13px; color: rgba(255,255,255,.75); }

/* оснащение */
.block-title { font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.features { display: grid; gap: 10px; }
.features li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--line); }
.features .icon { color: var(--accent-2); margin-top: 1px; }

/* характеристики (аккордеон) */
.specs { border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.specs details + details { border-top: 1px solid var(--line); }
.specs summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px; font-weight: 700; cursor: pointer; list-style: none; transition: background-color .2s; }
.specs summary::-webkit-details-marker { display: none; }
.specs summary:hover { background: rgba(255,255,255,.03); }
.specs summary .icon { transition: transform .4s var(--ease); color: var(--accent-2); }
.specs details[open] summary .icon { transform: rotate(45deg); }
.specs__content { overflow: hidden; }
.specs table { font-size: 15px; }
.specs th, .specs td { padding: 11px 18px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.specs th { width: 46%; font-weight: 400; color: var(--muted); }
.specs td { font-weight: 600; }
.model__disclaimer { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* галерея */
/* Галерея — один ряд одинаковых фото с прокруткой вбок */
.gallery-wrap { position: relative; }
.gallery-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.gallery-head .block-title { margin: 0; }
.gallery-nav { display: none; gap: 8px; }
.gallery-nav button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line-strong); transition: background-color .2s, opacity .2s; }
.gallery-nav button:hover { background: var(--accent); }
.gallery-nav button:disabled { opacity: .3; pointer-events: none; }
.gallery { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 10px; scroll-padding-inline: var(--gutter); scrollbar-width: none; cursor: grab; }
.gallery::-webkit-scrollbar { display: none; }
.gallery.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.gallery.is-dragging .gallery__item { pointer-events: none; }
.gallery__item { position: relative; flex: 0 0 82%; aspect-ratio: 4 / 3; scroll-snap-align: start; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.gallery__item img { -webkit-user-drag: none; user-select: none; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out), filter .5s; }
.gallery__item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.45), transparent 50%); opacity: 0; transition: opacity .4s; }
.gallery__item .icon { position: absolute; right: 12px; bottom: 12px; z-index: 1; width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: rgba(0,0,0,.45); opacity: 0; transform: scale(.8); transition: opacity .4s, transform .4s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item:hover::after, .gallery__item:hover .icon, .gallery__item:focus-visible .icon { opacity: 1; transform: none; }

/* ---------- 12. ПРАЙС ---------- */
.prices { background: var(--bg); }
.price-table { border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.price-table thead { display: none; }
.price-table tbody tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 18px; border-top: 1px solid var(--line); transition: background-color .3s; }
.price-table tbody tr:first-child { border-top: 0; }
.price-table tbody tr:hover { background: rgba(0,165,207,.06); }
.price-table td { padding: 0; }
.price-table .pt-model { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; }
.price-table .pt-model img { width: 96px; height: auto; }
.price-table .pt-model b { display: block; font-size: 22px; font-weight: 900; }
.price-table .pt-model span { font-size: 13px; color: var(--muted); }
.price-table .pt-trim { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
.price-table .pt-retail { color: var(--muted); text-decoration: line-through; align-self: end; }
.price-table .pt-special { grid-column: 1; font-size: 22px; font-weight: 800; color: #fff; }
.price-table .pt-action { grid-column: 2; grid-row: 4 / span 2; align-self: center; }
.price-table [data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.price-table .pt-retail::before { display: none; }
.prices__date { margin-top: 18px; font-weight: 600; }
.prices__note { margin-top: 8px; font-size: 13px; color: var(--muted); max-width: 900px; }

/* ---------- 13. КАЛЬКУЛЯТОР ---------- */
.credit { background: linear-gradient(180deg, var(--bg-2), var(--bg)); overflow: hidden; }
.credit__grid { display: grid; gap: 12px; }
.calc { display: grid; gap: 22px; padding: 22px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.calc legend, .calc__label { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.calc__label b { color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 42px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 14px; box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: background-color .25s, box-shadow .25s, color .25s; }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); box-shadow: none; color: #fff; }
.calc__row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.calc__row .calc__label { margin: 0; }
.calc__value { font-size: 20px; font-weight: 800; }
.calc__row--range input { flex: 1 0 100%; margin-top: 10px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--accent) var(--p, 30%), rgba(255,255,255,.14) var(--p, 30%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(255,255,255,.14); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(0,165,207,.3), 0 4px 10px rgba(0,0,0,.4); transition: transform .2s; }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(0,165,207,.3); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.calc__result { display: grid; gap: 14px; padding: 18px; border-radius: var(--radius-sm); background: linear-gradient(135deg, rgba(0,165,207,.18), rgba(0,95,127,.12)); box-shadow: inset 0 0 0 1px rgba(0,165,207,.35); }
.calc__result > div span { font-size: 14px; color: var(--muted); }
.calc__result strong { display: block; font-size: clamp(30px, 9vw, 42px); font-weight: 900; line-height: 1.1; letter-spacing: -.01em; }
.calc__result dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc__result dt { font-size: 12px; color: var(--muted); }
.calc__result dd { font-weight: 700; }
.calc__note { font-size: 12px; color: var(--muted); }

/* ---------- 14. ФОРМА ---------- */
.lead-section { overflow: hidden; }
.lead-section__bg { position: absolute; inset: 0; z-index: 0; }
.lead-section__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.lead-section__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(11,17,20,.7) 30%, rgba(11,17,20,.85) 100%); }
.lead-section__grid { position: relative; z-index: 1; display: grid; gap: 32px; }
.perks { display: grid; gap: 12px; margin-top: 24px; }
.perks li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.perks .icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; color: var(--accent-2); background: rgba(0,165,207,.12); box-shadow: inset 0 0 0 1px rgba(0,165,207,.3); }

.lead-card { padding: 22px; border-radius: var(--radius); background: rgba(16, 28, 34, .82); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow); }
.lead-form { display: grid; gap: 16px; }
.lead-form legend { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: rgba(0,0,0,.25); box-shadow: inset 0 0 0 1px var(--line); }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span { display: grid; place-items: center; min-height: 42px; padding: 0 6px; border-radius: 10px; font-size: 13px; font-weight: 600; text-align: center; line-height: 1.15; color: var(--muted); transition: background-color .25s, color .25s; }
.segmented input:checked + span { background: #fff; color: var(--blue-deep); }
.segmented input:focus-visible + span { outline: 2px solid var(--accent-2); }

.model-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.model-picker label { position: relative; }
.model-picker input { position: absolute; opacity: 0; inset: 0; cursor: pointer; z-index: 1; }
.model-picker span { display: grid; justify-items: center; gap: 4px; padding: 10px 6px 8px; border-radius: 12px; font-weight: 800; font-size: 14px; box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .25s, background-color .25s; }
.model-picker img { width: 100%; max-width: 110px; height: 40px; object-fit: contain; transition: transform .4s var(--ease); }
.model-picker input:checked + span { box-shadow: inset 0 0 0 2px var(--accent); background: rgba(0,165,207,.1); }
.model-picker input:checked + span img { transform: scale(1.08); }
.model-picker input:focus-visible + span { outline: 2px solid var(--accent-2); }

.field { position: relative; }
.field__input { width: 100%; min-height: 58px; padding: 24px 16px 8px; border: 0; border-radius: 14px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1.5px var(--line); font-size: 16px; transition: box-shadow .25s, background-color .25s; resize: vertical; }
textarea.field__input { min-height: 84px; }
.field__input:hover { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.field__input:focus { outline: none; background: rgba(255,255,255,.09); box-shadow: inset 0 0 0 2px var(--accent); }
.field__label { position: absolute; left: 16px; top: 18px; font-size: 16px; color: var(--muted); pointer-events: none; transform-origin: left top; transition: transform .25s var(--ease), color .25s; }
.field__input:focus + .field__label, .field__input:not(:placeholder-shown) + .field__label { transform: translateY(-10px) scale(.75); color: var(--accent-2); }
.field__error { display: none; margin-top: 6px; font-size: 13px; color: var(--danger); }
.field.is-invalid .field__input { box-shadow: inset 0 0 0 2px var(--danger); animation: shake .4s; }
.field.is-invalid .field__error, .lead-form.agree-invalid .field__error--agree { display: block; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { position: absolute; opacity: 0; }
.check__box { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--line-strong); display: grid; place-items: center; transition: background-color .2s; }
.check__box::after { content: ''; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform .25s var(--ease); }
.check input:checked + .check__box { background: var(--accent); box-shadow: none; }
.check input:checked + .check__box::after { transform: rotate(-45deg) scale(1); }
.check input:focus-visible + .check__box { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.check a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.lead-form__error { padding: 12px 14px; border-radius: 12px; font-size: 14px; background: rgba(255,107,107,.12); color: #FFB3B3; }

/* ---------- 15. ПОЧЕМУ МЫ ---------- */
.why { background: var(--bg-2); overflow: hidden; }
.why__counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 36px; }
.counter b { display: block; font-size: clamp(40px, 12vw, 84px); font-weight: 900; line-height: 1; letter-spacing: -.03em; background: linear-gradient(180deg, #fff, #7FD8EE); -webkit-background-clip: text; background-clip: text; color: transparent; }
.counter span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.why__grid { display: grid; gap: 12px; }
.why__item { position: relative; padding: 24px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s; }
.why__item::after { content: ''; position: absolute; inset: auto -30% -60% auto; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(0,165,207,.25), transparent 70%); opacity: 0; transition: opacity .5s; }
.why__item:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(0,165,207,.5); }
.why__item:hover::after { opacity: 1; }
.why__item .icon { width: 48px; height: 48px; padding: 11px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--blue-mid), var(--blue)); }
.why__num { margin-top: 18px; display: flex; flex-direction: column; gap: 2px; }
.why__num b { font-size: 34px; line-height: 1.05; font-weight: 900; letter-spacing: -.02em; background: linear-gradient(135deg, var(--blue-mid), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.why__num span { font-size: 13px; color: var(--muted); }
.why__item h3 { margin-top: 14px; font-size: 20px; font-weight: 800; }
.why__item p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ---------- 16. КОНТАКТЫ ---------- */
.contacts__grid { display: grid; gap: 28px; }
.contacts__list { display: grid; gap: 16px; margin-top: 28px; }
.contacts__item { display: flex; gap: 14px; align-items: flex-start; }
.contacts__item .icon { width: 44px; height: 44px; padding: 11px; border-radius: 12px; color: var(--accent-2); background: rgba(0,165,207,.12); }
.contacts__item span { display: block; font-size: 13px; color: var(--muted); }
.contacts__item b { font-size: 17px; font-weight: 700; }
.contacts__link { display: inline-block; border-bottom: 1px dashed rgba(255,255,255,.35); transition: color .2s, border-color .2s; }
.contacts__link:hover, .contacts__link:hover b { color: var(--accent-2); border-color: var(--accent-2); }
.contacts__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.contacts__social-title { margin-top: 28px; font-size: 13px; color: var(--muted); }
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.social__link { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 14px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .25s, transform .25s var(--ease); }
.social__link:hover { background: var(--accent); transform: translateY(-2px); }
.social--small .social__link, .social__link--icon { width: 52px; height: 52px; padding: 0; justify-content: center; }
.social__link--icon .icon { width: 24px; height: 24px; }
.map { position: relative; min-height: 360px; border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.map__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4) brightness(.45); }
.map__overlay { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; text-align: center; }
.map__overlay p { font-size: 18px; font-weight: 700; max-width: 320px; }
.map__overlay small { font-size: 12px; color: var(--muted); }
.map__pin { width: 54px; height: 54px; color: var(--accent-2); animation: bob 2s var(--ease) infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- 17. ПОДВАЛ ---------- */
.footer { padding: 56px 0 120px; background: #060B0D; border-top: 1px solid var(--line); }
.footer__grid { display: grid; gap: 32px; }
.footer__brand p { margin-top: 16px; color: var(--muted); max-width: 360px; font-size: 14px; }
.footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.footer__nav a { display: inline-block; padding: 6px 0; color: var(--muted); transition: color .2s; }
.footer__nav a:hover { color: #fff; }
.footer__phone { font-size: 22px; font-weight: 800; }
.footer__contacts p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.footer__contacts { max-width: 340px; }
.footer__address { color: inherit; text-decoration: none; border-bottom: 1px dashed rgba(255,255,255,.25); }
.footer__address:hover { color: #fff; }
.footer__bottom { display: grid; gap: 8px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer__bottom a { text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom a:hover { color: #fff; }

/* ---------- 18. МОБИЛЬНАЯ ПАНЕЛЬ ---------- */
.action-bar {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 90;
  display: grid; grid-template-columns: 1fr; gap: 6px; padding: 6px; border-radius: 20px;
  background: rgba(10, 20, 25, .88); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 16px 40px rgba(0,0,0,.5);
  transform: translateY(140%); transition: transform .6s var(--ease);
}
.action-bar.is-visible { transform: none; }
.action-bar__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; border-radius: 14px; font-size: 12px; font-weight: 600; color: var(--muted); }
.action-bar__item .icon { width: 22px; height: 22px; color: #fff; }
.action-bar__item--main { flex-direction: row; gap: 8px; font-size: 15px; color: #fff; background: linear-gradient(135deg, var(--blue-mid), var(--blue)); }
.to-top { position: fixed; right: 16px; bottom: 96px; z-index: 89; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .4s, transform .4s var(--ease), background-color .2s; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); }

/* ---------- 19. ОКНА ---------- */
dialog { padding: 0; border: 0; color: var(--text); background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(2, 8, 10, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal { width: 100%; height: 100%; margin: 0; overflow-y: auto; overscroll-behavior: contain; }
.modal[open] { display: flex; align-items: flex-end; justify-content: center; }
.modal__box { position: relative; width: 100%; max-width: 520px; margin-top: auto; padding: 26px 18px calc(22px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong), 0 -20px 60px rgba(0,0,0,.5); animation: sheetIn .55s var(--ease-out); }
.modal.is-closing .modal__box { animation: sheetOut .35s var(--ease) forwards; }
.modal.is-closing::backdrop { opacity: 0; transition: opacity .35s; }
@keyframes sheetIn { from { transform: translateY(100%); } }
@keyframes sheetOut { to { transform: translateY(100%); } }
.modal__close { position: absolute; right: 12px; top: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); transition: background-color .2s, transform .3s var(--ease); }
.modal__close:hover { background: var(--accent); transform: rotate(90deg); }
.modal__media { margin: -6px -6px 8px; height: 110px; display: grid; place-items: center; background: radial-gradient(60% 70% at 50% 70%, rgba(0,165,207,.3), transparent 70%); }
.modal__media[hidden] { display: none; }
.modal__media img { max-height: 100%; width: auto; max-width: 90%; animation: carIn .8s var(--ease-out); }
@keyframes carIn { from { opacity: 0; transform: translateX(30%); } }
.modal__title { font-size: 28px; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.modal__lead { margin: 6px 0 18px; color: var(--muted); font-size: 15px; }
.modal--success .modal__box { text-align: center; }
.success-check { width: 84px; height: 84px; margin: 6px auto 16px; }
.success-check svg { width: 100%; height: 100%; fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.success-check circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .8s var(--ease) .1s forwards; }
.success-check path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw .5s var(--ease) .7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.modal--success .modal__lead { margin-bottom: 22px; }

.lightbox { width: 100%; height: 100%; margin: 0; background: rgba(3, 8, 10, .96); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__figure { position: relative; width: 100%; padding: 0 8px; }
.lightbox__figure img { max-width: 100%; max-height: 80svh; margin: 0 auto; border-radius: 10px; animation: zoomIn .5s var(--ease-out); }
.lightbox__figure figcaption { margin-top: 12px; text-align: center; color: var(--muted); font-size: 14px; }
@keyframes zoomIn { from { opacity: 0; transform: scale(.94); } }
.lightbox__close, .lightbox__nav { position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); transition: background-color .2s; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--accent); }
.lightbox__close { right: 14px; top: 14px; }
.lightbox__nav { bottom: 24px; }
.lightbox__nav--prev { left: calc(50% - 58px); }
.lightbox__nav--next { right: calc(50% - 58px); }

/* ==========================================================================
   АДАПТИВ: ПЛАНШЕТЫ (от 640px)
   ========================================================================== */
@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .model-cards { grid-template-columns: repeat(2, 1fr); }
  .model-cards--others { grid-template-columns: repeat(2, 1fr); }
  .model-cards--others .model-card:first-child { grid-column: auto; }
  .model-cards--others .model-card:first-child .model-card__img { aspect-ratio: 4 / 3; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .gallery__item { flex-basis: calc((100% - 10px) / 2 - 20px); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .modal[open] { align-items: center; padding: 24px; }
  .modal__box { margin: auto; padding: 32px 28px 28px; border-radius: 26px; animation: popIn .5s var(--ease-out); }
  .modal.is-closing .modal__box { animation: popOut .3s var(--ease) forwards; }
  @keyframes popIn { from { opacity: 0; transform: translateY(30px) scale(.96); } }
  @keyframes popOut { to { opacity: 0; transform: translateY(20px) scale(.97); } }
  .modal__media { height: 140px; }
  .lightbox__figure { padding: 0 80px; }
  .lightbox__nav { top: 50%; bottom: auto; margin-top: -24px; }
  .lightbox__nav--prev { left: 18px; }
  .lightbox__nav--next { right: 18px; }
  .footer__grid { grid-template-columns: 1.3fr 1fr; }

  /* прайс таблицей */
  .price-table thead { display: table-header-group; }
  .price-table th { padding: 16px 20px; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: rgba(255,255,255,.03); }
  .price-table tbody tr { display: table-row; }
  .price-table td { display: table-cell; padding: 18px 20px; vertical-align: middle; border-top: 1px solid var(--line); }
  .price-table [data-label]::before { display: none; }
  .price-table .pt-trim { font-size: 15px; color: var(--text); }
  .price-table .pt-retail { align-self: auto; }
  .price-table .pt-action { text-align: right; }
}

/* ==========================================================================
   АДАПТИВ: НОУТБУКИ И ПК (от 1024px)
   ========================================================================== */
@media (min-width: 1024px) {
  :root { --gutter: 40px; --header-h: 80px; }
  .section, .model { padding: 120px 0; }
  .section__head { margin-bottom: 56px; }
  .brand__logo { width: 104px; }
  .burger, .nav__mobile-extra { display: none; }
  .header__phone, .header__cta { display: inline-flex; }
  .header__actions { gap: 28px; }
  .brand__aster { width: 120px; }
  .hero__content { padding-bottom: 96px; }
  .nav { position: static; inset: auto; z-index: auto; padding: 0; clip-path: none; visibility: visible; background: none; transition: none; flex-direction: row; }
  .nav__list { display: flex; gap: 4px; }
  .nav__list a { position: relative; padding: 10px 14px; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: none; opacity: 1; transform: none; color: rgba(255,255,255,.82); }
  .nav__list a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
  .nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); transform-origin: left; }
  .nav__list a:hover, .nav__list a.is-active { color: #fff; }


  .model-cards { grid-template-columns: repeat(3, 1fr); }
  .model-cards--others { grid-template-columns: repeat(4, 1fr); }


  .model__layout { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 32px 40px; align-items: start; }
  .model__stage-col { grid-column: 1; }
  .model__price-col { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; }
  .model__info-col { grid-column: 1; display: grid; gap: 32px; }
  .model__wide { grid-column: 1 / -1; }
  .stage { padding: 28px 24px 26px; }
  .stage__car { margin-top: 8px; }
  .swatch { width: 42px; height: 42px; }
  .features { grid-template-columns: 1fr 1fr; }
  .gallery { gap: 14px; margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; }
  .gallery__item { flex-basis: calc((100% - 28px) / 3); }
  .gallery-nav { display: flex; }

  .credit__grid { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
  .calc { padding: 32px; }
  .lead-section__grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .lead-card { padding: 32px; }
  .why__grid { grid-template-columns: repeat(4, 1fr); }
  .contacts__grid { grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: stretch; }
  .map { min-height: 520px; }
  .footer { padding-bottom: 48px; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__bottom { grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
  .action-bar { display: none; }
  .to-top { bottom: 28px; right: 28px; }
}

@media (min-width: 1440px) {
  .container { max-width: 1360px; }
}

/* Пользователи, которые отключили анимации в системе */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Печать (например, распечатать прайс) */
@media print {
  .header, .hero, .action-bar, .to-top, .lead-section, .map, .preloader { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ===================== ВОПРОСЫ И ОТВЕТЫ ===================== */
.faq__list { display: grid; gap: 10px; max-width: 900px; }
.faq__item { border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s; }
.faq__item[open] { box-shadow: inset 0 0 0 1px rgba(0,165,207,.5); }
.faq__item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { margin: 0; font-size: clamp(16px, 4vw, 19px); font-weight: 700; line-height: 1.35; }
.faq__item summary .icon { flex: none; width: 22px; height: 22px; color: var(--accent, #00a5cf); transition: transform .3s; }
.faq__item[open] summary .icon { transform: rotate(45deg); }
.faq__item p { margin: 0; padding: 0 22px 22px; color: var(--muted); line-height: 1.6; }
.region { background: var(--bg-2); }
@media (min-width: 900px) { .region__grid { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   20. СВЕТЛАЯ ТЕМА
   Основной фон страницы — светлый. Тёмными остаются: первый экран (фото),
   меню на телефоне, блок цены, подвал, окно просмотра фото.
   Чтобы вернуть тёмный сайт — удалите этот раздел целиком.
   ========================================================================== */
:root {
  --bg: #F3F6F8;
  --bg-2: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #EAF1F5;
  --line: rgba(0, 54, 77, .12);
  --line-strong: rgba(0, 54, 77, .22);
  --text: #12212A;
  --muted: #5A6E78;
  --accent-2: #0088AE;
  --danger: #D64545;
  --shadow: 0 24px 50px -24px rgba(0, 45, 64, .28);
}
/* тёмные зоны: возвращаем тёмную палитру */
.hero, .price-box, .footer, .lightbox, .preloader, .header:not(.is-scrolled), .header:has(.nav.is-open) {
  --bg: #0B1114; --bg-2: #101A1F; --surface: #14222A; --surface-2: #1A2C35;
  --line: rgba(255,255,255,.1); --line-strong: rgba(255,255,255,.2);
  --text: #F2F6F8; --muted: #9DB1BA; --accent-2: #33C1E6;
  color: var(--text);
}
.footer { background: #0B1A21; }
@media (max-width: 1023px) {
  .nav { --text: #F2F6F8; --muted: #9DB1BA; --line: rgba(255,255,255,.1); --line-strong: rgba(255,255,255,.2); --accent-2: #33C1E6; color: var(--text); }
}

/* шапка после прокрутки — белая */
.header.is-scrolled:not(:has(.nav.is-open)) { background: rgba(255,255,255,.9); box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(0,45,64,.35); color: var(--text); }
.header.is-scrolled:not(:has(.nav.is-open)) .brand { color: var(--blue-deep); }
.header.is-scrolled:not(:has(.nav.is-open)) .brand__aster { filter: brightness(0) saturate(100%) invert(19%) sepia(64%) saturate(1550%) hue-rotate(170deg) brightness(92%); }
.header.is-scrolled:not(:has(.nav.is-open)) .lang { background: var(--surface-2); }
.header.is-scrolled:not(:has(.nav.is-open)) .lang__btn.is-active { background: var(--blue-deep); color: #fff; }
.header.is-scrolled:not(:has(.nav.is-open)) .burger { background: var(--surface-2); }
.header.is-scrolled:not(:has(.nav.is-open)) .burger span { background: var(--text); }
@media (min-width: 1024px) {
  .header.is-scrolled .nav__list a { color: #12212A; }
  .header.is-scrolled .nav__list a:hover, .header.is-scrolled .nav__list a.is-active { color: #0088AE; }
}

/* карточки, блоки, формы */
.model-card { box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -28px rgba(0,45,64,.35); }
.model-card__img { background: #E7EEF2; }
.model-card__price b, .price-table .pt-special, .calc__label b { color: var(--text); }
.features li { background: var(--surface); }
.specs summary:hover, .gallery-nav button { background: var(--surface-2); }
.why__item, .faq__item { box-shadow: inset 0 0 0 1px var(--line), 0 14px 34px -26px rgba(0,45,64,.3); }
.counter b { background: linear-gradient(180deg, var(--blue-mid), var(--blue-deep)); -webkit-background-clip: text; background-clip: text; }
.lead-section__bg img { opacity: .5; }
.lead-section__bg::after { background: linear-gradient(180deg, var(--bg) 0%, rgba(243,246,248,.78) 30%, rgba(243,246,248,.9) 100%); }
.lead-card { background: rgba(255,255,255,.92); }
.segmented { background: var(--surface-2); }
.segmented input:checked + span { background: var(--blue-deep); color: #fff; }
.field__input { background: #F5F8FA; }
.field__input:focus { background: #fff; }
.lead-form__error { background: rgba(214,69,69,.1); color: #B42318; }
.contacts__link { border-bottom-color: rgba(0,54,77,.35); }
.social__link { background: var(--surface); }
.social__link:hover { color: #fff; }
.map__poster { filter: grayscale(.2) brightness(.95); }
.map__overlay { color: var(--text); background: rgba(255,255,255,.55); }
.to-top { background: #fff; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong), 0 10px 24px -12px rgba(0,45,64,.4); }
.to-top:hover { color: #fff; }
.modal__close { background: var(--surface-2); }
.modal__close:hover { color: #fff; }
.chip:not([aria-pressed="true"]) { color: var(--text); }
.btn--ghost:not(.hero .btn--ghost):not(.price-box .btn--ghost) { color: var(--text); }
dialog::backdrop { background: rgba(10, 30, 40, .55); }
/* меню на телефоне, открытое после прокрутки, должно закрывать весь экран
   (размытие фона у шапки ограничивало меню её высотой) */
.header:has(.nav.is-open) { -webkit-backdrop-filter: none; backdrop-filter: none; background: transparent; box-shadow: none; transform: none; }
/* фото цветов на белом фоне (с тенью): белое сливается с фоном блока */
.stage__car img, .modal__media img, .model-picker img { mix-blend-mode: multiply; }
.js-pricelist .icon { width: 18px; height: 18px; margin-right: 8px; }
.contacts__actions .btn .icon { width: 18px; height: 18px; margin-right: 8px; }
@media (min-width: 1024px) and (max-width: 1279px) { .header__actions { gap: 14px; } .header__phone { display: none; } }
