/* =====================================================================
   СТИЛИ САЙТА (сначала телефон, затем планшет и компьютер)
   Тёмный кинематографичный образ. Цвета из брендбука Leapmotor VI 3.0.
   ===================================================================== */

/* ---------- ШРИФТ ----------
   Montserrat из брендбука. Файлы скачивает tools/download-assets.ps1 */
@font-face { font-family: 'Montserrat'; src: url('../assets/fonts/montserrat-cyrillic-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; src: url('../assets/fonts/montserrat-latin-ext-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0; }
@font-face { font-family: 'Montserrat'; src: url('../assets/fonts/montserrat-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- ЦВЕТА И ОТСТУПЫ: меняются здесь ---------- */
:root {
  --black: #000;
  --leap: #094828;         /* Leap Green, главный цвет бренда */
  --leap-deep: #052d19;
  --panel: #101411;        /* плашки на чёрном фоне */
  --panel-2: #1a201c;
  --white: #fff;
  --mist: #b9c2bc;         /* второстепенный текст */
  --line: rgba(255,255,255,.18);
  --err: #ff9c92;
  --font: 'Montserrat', system-ui, 'Segoe UI', Arial, sans-serif;
  --gutter: 20px;
  --top-h: 64px;
  --sec: 72px;             /* вертикальный отступ секций */
  --cut: 10px;             /* срез углов кнопок, как в шестиграннике логотипа */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- КАДРИРОВАНИЕ ФОТО ----------
   Где находится машина на главном фото каждой модели (по горизонтали и вертикали).
   Если машина обрезается, меняйте проценты здесь. */
.ph-a10 { object-position: 46% 62%; }
.ph-b10 { object-position: 50% 68%; }
.ph-c01 { object-position: 62% 64%; }
.ph-c10 { object-position: 58% 62%; }
.ph-c11 { object-position: 50% 70%; }
.ph-c16 { object-position: 50% 68%; }
.ph-d19 { object-position: 55% 68%; }

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--black); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 64px); }
html.has-dialog, html.has-menu { overflow: hidden; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--white); background: var(--black); overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: 100%; max-width: 1480px; margin-inline: auto; padding-inline: var(--gutter); }
h2 { font-size: clamp(2rem, 1.3rem + 3vw, 4rem); line-height: 1.08; font-weight: 300; letter-spacing: -.02em; }
.lede { margin-top: 16px; color: var(--mist); max-width: 38em; }
.note { margin-top: 18px; font-size: .8125rem; line-height: 1.5; color: var(--mist); max-width: 62em; }

.skip { position: fixed; left: 8px; top: -60px; z-index: 100; background: var(--white); color: var(--black); padding: 10px 14px; transition: top .2s; }
.skip:focus { top: 8px; }

/* ---------- КНОПКИ ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 30px; border: 0; background: transparent; color: var(--white);
  font-weight: 600; font-size: .9375rem; line-height: 1.2; text-align: center; text-decoration: none;
  transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.btn--primary { background: var(--white); color: var(--black); clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.btn--primary:hover { background: #cfe5d6; }
.btn--primary:focus-visible { clip-path: none; }
.btn--line { box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
.btn--line:hover { background: var(--white); color: var(--black); }
.btn--small { min-height: 42px; padding: 8px 18px; font-size: .875rem; --cut: 7px; }
.btn[disabled] { opacity: .6; cursor: progress; }

.tlink { padding: 8px 0; background: none; border: 0; font-size: .9375rem; font-weight: 500; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .35s var(--ease); }
.tlink:hover { background-size: 40% 1px; }


/* ---------- ШАПКА ---------- */
.top { position: sticky; top: 0; z-index: 30; background: var(--black); transition: background-color .35s var(--ease); }
.top--over { position: fixed; left: 0; right: 0; background: transparent; }
.top.is-solid, .top.has-menu { background: var(--black); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: var(--top-h); }
.top__logo { display: block; min-width: 0; padding-block: 12px; }
.top__logo img { width: clamp(168px, 46vw, 300px); }
.top__nav { display: none; }
.top__side { display: flex; align-items: center; gap: 8px; flex: none; }
.top__cta { display: none; }
.lang { display: flex; font-size: .8125rem; font-weight: 600; }
.lang a { display: flex; align-items: center; justify-content: center; min-width: 34px; min-height: 42px; text-decoration: none; opacity: .6; transition: opacity .2s; }
.lang a:hover, .lang a[aria-current] { opacity: 1; }
.burger { width: 44px; height: 44px; display: grid; place-content: center; gap: 7px; background: none; border: 0; padding: 0; }
.burger span { display: block; width: 24px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.mega { position: absolute; left: 0; right: 0; top: 100%; height: calc(100dvh - var(--top-h)); overflow-y: auto; background: var(--black); visibility: hidden; opacity: 0; transform: translateY(-10px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; }
.mega.is-open { visibility: visible; opacity: 1; transform: none; }
.mega__in { padding-block: 12px 32px; }
.mega__links a { display: block; padding: 14px 0; font-size: 1.5rem; font-weight: 300; text-decoration: none; border-bottom: 1px solid var(--line); }

/* ---------- ГЛАВНЫЙ ЭКРАН ---------- */
.show, .mhero { position: relative; display: flex; flex-direction: column; min-height: 100svh; background: var(--black); overflow: hidden; }
.show__stage, .mhero__stage { position: absolute; left: 0; right: 0; top: 16%; height: 62%; overflow: hidden; }
.show__stage::after, .mhero__stage::after { content: ''; position: absolute; inset: 0; background: linear-gradient(#000 0, transparent 26%, transparent 66%, #000 100%); pointer-events: none; }
.show__stage img, .mhero__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 1s var(--ease), transform 7s linear; }
.show__stage img { transform: scale(1.06); }
.show__stage img.is-entering { opacity: 0; transform: scale(1); }
.show__stage img.is-leaving { opacity: 0; }

.show__top, .mhero__top { position: relative; z-index: 2; padding-top: calc(var(--top-h) + 10px); text-align: center; }
.show h1 { font-size: .8125rem; line-height: 1.35; font-weight: 500; color: rgba(255,255,255,.88); }
.show__name { margin-top: 6px; font-size: clamp(4.25rem, 2rem + 13vw, 11rem); line-height: .95; font-weight: 700; letter-spacing: -.035em; }
.show__tag { margin-top: 8px; font-size: clamp(1rem, .85rem + .8vw, 1.5rem); font-weight: 300; line-height: 1.25; text-shadow: 0 1px 14px rgba(0,0,0,.5); }
.show__bottom, .mhero__bottom { position: relative; z-index: 2; margin-top: auto; padding-bottom: 18px; text-align: center; }
.show__price, .mhero__price { font-size: 1.125rem; font-weight: 500; text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.show__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.show__cta .btn { flex: 1 1 140px; max-width: 240px; }
.show__picks { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.picks { display: flex; flex: 1; min-width: 0; }
.picks li { flex: 1 1 0; min-width: 0; }
.pick { display: block; width: 100%; padding: 8px 2px 10px; background: none; border: 0; color: rgba(255,255,255,.55); transition: color .3s; }
.pick b { display: block; font-size: .8125rem; font-weight: 600; }
.pick__bar { display: block; height: 2px; margin-top: 6px; background: rgba(255,255,255,.22); position: relative; overflow: hidden; }
.pick__bar::after { content: ''; position: absolute; inset: 0; background: var(--white); transform: scaleX(0); transform-origin: left; }
.pick:hover, .pick.is-on { color: var(--white); }
.pick.is-on .pick__bar::after { transform: scaleX(1); animation: progress 7s linear; }
.show.is-paused .pick.is-on .pick__bar::after { animation: none; }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.show__pause { position: relative; flex: none; width: 36px; height: 36px; background: none; border: 0; }
.show__pause::before, .show__pause::after { content: ''; position: absolute; top: 12px; width: 3px; height: 12px; background: var(--white); }
.show__pause::before { left: 12px; }
.show__pause::after { left: 20px; }
.show__pause[aria-pressed="true"]::after { display: none; }
.show__pause[aria-pressed="true"]::before { left: 14px; width: 0; height: 0; background: none; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--white); }

/* Одна сцена загрузки первого экрана и смена текста модели */
.js .show__top > *, .js .show__bottom > *, .js .mhero__top > *, .js .mhero__bottom > * { animation: rise 1s var(--ease) both; }
.js .show__name, .js .mhero__top h1 { animation-delay: .08s !important; }
.js .show__tag, .js .mhero__tag { animation-delay: .16s !important; }
.js .show__bottom > *, .js .mhero__bottom > * { animation-delay: .28s; }
.js .show__stage, .js .mhero__stage { animation: fade 1.2s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.is-swap { animation: swap .7s var(--ease) !important; }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- МОДЕЛЬНЫЙ РЯД ---------- */
.range { padding-block: var(--sec); }
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 28px; }
.card { display: flex; flex-direction: column; background: var(--panel); min-width: 0; }
.card__img { display: block; overflow: hidden; }
.card__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.1s var(--ease); }
.card:hover .card__img img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 18px; }
.card h3 { font-size: 1.375rem; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
.card h3 a { text-decoration: none; }
.card__type { margin-top: 2px; font-size: .875rem; color: var(--mist); }
.card__price { margin-top: 12px; margin-bottom: 16px; font-size: 1.0625rem; font-weight: 500; }
.card__cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: auto; }
.card__cta .btn { padding-inline: 6px; font-size: .8125rem; }
.card--all { background: var(--leap); transition: background-color .3s var(--ease); }
.card--all:hover { background: #0c5a33; }
.card--all button { display: flex; flex-direction: column; justify-content: flex-end; flex: 1; width: 100%; min-height: 180px; padding: 18px; background: none; border: 0; text-align: left; }
.card--all strong { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.5rem); line-height: 1.1; font-weight: 300; letter-spacing: -.02em; }
.card--all span { margin-top: 8px; font-size: .875rem; color: #d3e2d9; }

/* ---------- ЦИФРЫ ---------- */
.facts { background: var(--leap); padding-block: var(--sec); }
.facts__list { margin-top: 30px; }
.fact { display: block; padding-block: 22px; border-top: 1px solid rgba(255,255,255,.28); text-decoration: none; transition: padding-left .35s var(--ease); }
.fact:hover { padding-left: 8px; }
.fact strong { display: block; font-size: clamp(1.75rem, 1.4rem + 1.3vw, 2.5rem); line-height: 1.1; font-weight: 300; letter-spacing: -.02em; }
.fact span { display: block; margin-top: 8px; color: #d3e2d9; max-width: 34em; font-size: .9375rem; }

/* ---------- ФИЛИАЛЫ ---------- */
.branches { padding-block: var(--sec); }
.branches__grid { display: grid; gap: 10px; margin-top: 28px; }
.branch { display: flex; flex-direction: column; gap: 18px; padding: 26px 22px; background: var(--panel); }
.branch h3 { font-size: clamp(2.25rem, 1.7rem + 2.4vw, 4rem); line-height: 1.05; font-weight: 700; letter-spacing: -.025em; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.branch__row { display: flex; gap: 12px; font-style: normal; text-decoration: none; color: #dfe5e1; max-width: 34em; }
.branch__row .ico { margin-top: 3px; }
.soc { display: flex; gap: 8px; }
.soc a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); transition: background-color .3s var(--ease), color .3s var(--ease); }
.soc a:hover { background: var(--white); color: var(--black); }
.branch__maps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: auto; }
.branch__maps .btn { gap: 8px; padding-inline: 8px; }
.branch__maps .ico { width: 16px; height: 16px; }

/* ---------- ЗАЯВКА ---------- */
.request { background: var(--leap-deep); padding-block: var(--sec); }
.request__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; }
.steps { counter-reset: s; margin-top: 28px; }
.steps li { counter-increment: s; position: relative; padding: 14px 0 14px 44px; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 8px; font-size: 1.75rem; font-weight: 200; }
.steps h3 { font-size: 1rem; font-weight: 600; }
.steps p { font-size: .875rem; color: #c5d3cb; }
.request__form, .dlg { background: #0c120e; box-shadow: 0 0 0 1px var(--line); }
.request__form { padding: 22px; }
.lead { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.lead__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: block; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; padding: 0; margin-bottom: 6px; font-size: .8125rem; font-weight: 500; color: var(--white); }
.field small { font-size: .75rem; font-weight: 400; color: var(--mist); }
.field input:not([type="radio"]), .field select, .field textarea {
  display: block; width: 100%; min-height: 52px; padding: 12px 14px; font-size: 16px; color: var(--white);
  background: rgba(255,255,255,.07); border: 0; border-bottom: 1px solid rgba(255,255,255,.55); border-radius: 0; transition: border-color .25s, background-color .25s;
}
.field select { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(-45deg, transparent 50%, #fff 50%); background-size: 6px 6px; background-position: right 20px center, right 14px center; background-repeat: no-repeat; }
.field option { color: #000; }
.field ::placeholder { color: rgba(255,255,255,.55); }
.field textarea { min-height: 80px; resize: vertical; }
.field select:disabled { opacity: .55; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background-color: rgba(255,255,255,.12); border-bottom-color: var(--white); box-shadow: inset 0 -1px 0 var(--white); }
.field [aria-invalid="true"] { border-bottom-color: var(--err); }
.field__err { margin-top: 6px; font-size: .8125rem; color: var(--err); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.seg__item { position: relative; display: block; margin: 0 !important; }
.seg__item input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg__item span { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 8px; font-weight: 500; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); transition: background-color .25s var(--ease), color .25s; }
.seg__item input:checked + span { background: var(--white); color: var(--black); }
.seg__item input:focus-visible + span { outline: 2px solid var(--white); outline-offset: 3px; }
.lead__foot .btn { width: 100%; }
.lead__note { margin-top: 10px; font-size: .75rem; line-height: 1.45; color: var(--mist); }
.lead__fail { padding: 12px 14px; background: rgba(255,120,110,.14); font-size: .9375rem; }
.lead__fail a { font-weight: 600; }
.lead-ok { padding-block: 22px; text-align: center; animation: rise .6s var(--ease); }
.lead-ok:focus { outline: none; }
.lead-ok h3 { font-size: 1.75rem; font-weight: 300; margin-top: 12px; }
.lead-ok p { margin: 8px 0 20px; color: var(--mist); }
.hexmark { width: 44px; height: 52px; margin-inline: auto; fill: var(--white); }

/* ---------- ПОДВАЛ ---------- */
.foot { padding-block: 44px 28px; border-top: 1px solid var(--line); }
.foot__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; }
.foot__brand img { width: min(100%, 320px); }
.foot__brand p { margin-top: 12px; color: var(--mist); font-size: .875rem; }
.foot h2 { font-size: .875rem; font-weight: 600; letter-spacing: 0; margin-bottom: 10px; line-height: 1.4; }
.foot__models { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; font-size: .875rem; }
.foot__models a { display: block; padding-block: 6px; text-decoration: none; color: var(--mist); transition: color .2s; }
.foot__models a:hover { color: var(--white); }
.foot__branches li { padding-bottom: 20px; font-size: .875rem; }
.foot__branches b { display: block; }
.foot__addr { display: flex; gap: 8px; margin-top: 2px; padding-block: 4px; color: var(--mist); text-decoration: none; transition: color .2s; }
.foot__addr:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.foot__addr .ico { width: 16px; height: 16px; margin-top: 3px; }
.foot__branches .soc { margin-top: 10px; }
.foot__branches .soc a { width: 40px; height: 40px; }
.foot__branches .soc .ico { width: 18px; height: 18px; }
.foot small { color: #909891; font-size: .75rem; }

/* ---------- СТРАНИЦА МОДЕЛИ ---------- */
.mhero h1 { font-size: clamp(4rem, 2rem + 12vw, 10.5rem); line-height: .95; font-weight: 700; letter-spacing: -.035em; }
.mhero h1 span { display: block; font-size: .9375rem; line-height: 1.3; font-weight: 500; letter-spacing: 0; margin-bottom: 4px; }
.mhero__tag { margin-top: 8px; font-size: clamp(1rem, .85rem + .8vw, 1.5rem); line-height: 1.25; font-weight: 300; text-shadow: 0 1px 14px rgba(0,0,0,.5); }
.mhero__tag strong { font-weight: 600; }
.badge { display: inline-block; margin-bottom: 8px; padding: 3px 10px; font-size: .75rem; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); }

.subnav { position: sticky; top: var(--top-h); z-index: 20; background: rgba(0,0,0,.92); border-block: 1px solid var(--line); }
.subnav__in { display: flex; align-items: center; gap: 18px; }
.subnav b { display: none; }
.subnav ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 13px 10px; font-size: .875rem; font-weight: 500; white-space: nowrap; text-decoration: none; color: var(--mist); box-shadow: inset 0 -2px 0 transparent; transition: color .25s, box-shadow .25s var(--ease); }
.subnav a:hover { color: var(--white); }
.subnav a.is-on { color: var(--white); box-shadow: inset 0 -2px 0 var(--white); }

.overview { padding-block: var(--sec); }
.overview .lede { max-width: 46em; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 16px; margin-top: 32px; }
.kpi { display: flex; flex-direction: column; padding-top: 14px; border-top: 1px solid var(--line); min-width: 0; }
.kpi dd { font-size: clamp(1.375rem, 1.1rem + 1.5vw, 2.5rem); line-height: 1.12; font-weight: 300; letter-spacing: -.015em; }
.kpi dt { order: 2; margin-top: 8px; font-size: .8125rem; color: var(--mist); }
.feat { margin-top: 38px; }
.feat h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 8px; }
.feat li { padding-block: 9px; border-top: 1px solid var(--line); font-size: .9375rem; }

.gallery { padding-bottom: var(--sec); overflow: hidden; }
.rail { position: relative; margin-top: 28px; }
.rail__track { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--rail-pad); padding-inline: var(--rail-pad); scrollbar-width: none; cursor: grab; --rail-pad: max(var(--gutter), calc((100vw - 1480px) / 2 + var(--gutter))); }
.rail__track::-webkit-scrollbar { display: none; }
.rail__track:focus-visible { outline-offset: -2px; }
.rail__track li { flex: 0 0 min(84vw, 640px); scroll-snap-align: start; }
.rail__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.rail__track.is-dragging .thumb { pointer-events: none; }
.rail__bar { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.rail__progress { position: relative; flex: 1; height: 2px; background: rgba(255,255,255,.2); overflow: hidden; }
.rail__progress i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--white); transition: width .2s linear; }
.rail__count { min-width: 3.5em; font-size: .875rem; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.rail__btn { display: grid; place-items: center; flex: none; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--white); color: var(--black); transition: background-color .25s var(--ease), opacity .25s; }
.rail__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rail__btn:hover { background: #cfe5d6; }
.rail__btn[disabled] { opacity: .3; cursor: default; background: var(--white); }
.thumb { display: block; width: 100%; padding: 0; border: 0; background: var(--panel); overflow: hidden; cursor: inherit; }
.thumb img { -webkit-user-drag: none; }
.thumb img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; transition: transform 1s var(--ease); }
.thumb:hover img { transform: scale(1.035); }

.trims-sec { background: var(--panel); padding-block: var(--sec); }
.trims-sec__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.trims { margin: 28px 0 0; padding: 0; border: 0; min-width: 0; }
.trim { position: relative; border-top: 1px solid var(--line); }
.trim:last-of-type { border-bottom: 1px solid var(--line); }
.trim input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.trim label { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 16px; padding: 16px 12px 16px 34px; position: relative; transition: background-color .25s var(--ease); }
.trim label::before { content: ''; position: absolute; left: 8px; top: 22px; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); transition: box-shadow .25s var(--ease); }
.trim label span:first-child { font-weight: 600; }
.trim__price { color: var(--mist); font-size: .9375rem; white-space: nowrap; }
.trim input:hover + label { background: rgba(255,255,255,.04); }
.trim input:checked + label { background: rgba(255,255,255,.08); }
.trim input:checked + label::before { box-shadow: inset 0 0 0 4px var(--black), inset 0 0 0 14px var(--white); }
.trim input:checked + label .trim__price { color: var(--white); }
.trim input:focus-visible + label { outline: 2px solid var(--white); outline-offset: -2px; }
.summary { display: flex; flex-direction: column; gap: 10px; padding: 24px 22px; background: var(--black); }
.summary__model { font-size: .875rem; color: var(--mist); }
.summary__trim { font-size: 1.25rem; font-weight: 600; line-height: 1.25; }
.summary__price { display: block; margin-bottom: 8px; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.6rem); line-height: 1.15; font-weight: 300; letter-spacing: -.015em; }
.summary .note { margin-top: 4px; }

.next { position: relative; display: block; height: 58vw; max-height: 620px; min-height: 280px; overflow: hidden; text-decoration: none; }
.next img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.next::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.7), transparent 65%); }
.next:hover img { transform: scale(1.03); }
.next__txt { position: absolute; z-index: 1; left: 0; right: 0; bottom: 26px; }
.next__txt span { display: block; font-size: .875rem; }
.next__txt strong { display: block; font-size: clamp(2rem, 1.3rem + 3vw, 4rem); line-height: 1.1; font-weight: 300; letter-spacing: -.02em; }

.mobilebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom)); background: rgba(0,0,0,.94); border-top: 1px solid var(--line); font-size: .8125rem; font-weight: 500; transition: transform .35s var(--ease); }
.mobilebar span { min-width: 0; }
.mobilebar .btn { flex: none; padding-inline: 14px; }
.mobilebar.is-hidden { transform: translateY(110%); }
body:has(.mobilebar) .foot { padding-bottom: 88px; }

/* ---------- ЦЕНЫ И КОНТАКТЫ ---------- */
.page-head { padding-top: 40px; padding-bottom: 28px; }
.page-head h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 5.5rem); line-height: 1.04; font-weight: 300; letter-spacing: -.025em; }

.faq { padding-bottom: var(--sec); }
.faq__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { position: relative; padding: 18px 36px 18px 0; cursor: pointer; font-weight: 500; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 1.625rem; font-weight: 200; transition: transform .35s var(--ease); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { padding-bottom: 18px; color: var(--mist); max-width: 60em; animation: swap .4s var(--ease); }

/* Плавное появление при прокрутке */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- ОКНА ---------- */
dialog { border: 0; padding: 0; color: var(--white); }
.dlg { width: min(100% - 24px, 600px); max-height: calc(100dvh - 24px); overflow: auto; }
.dlg[open] { animation: dlg .45s var(--ease); }
dialog::backdrop { background: rgba(0,0,0,.72); animation: fade .35s; }
@keyframes dlg { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.dlg__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 12px; }
.dlg__head h2 { font-size: 1.5rem; line-height: 1.2; }
.dlg__x, .lb__x { width: 44px; height: 44px; flex: none; background: none; border: 0; font-size: 1.9rem; font-weight: 200; line-height: 1; margin: -8px -10px 0 0; }
.dlg [data-form-box] { padding: 0 22px 22px; }

.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(0,0,0,.97); }
.lb[open] { display: flex; align-items: center; justify-content: center; animation: fade .35s; }
.lb figure { width: 100%; padding: 56px 8px 16px; text-align: center; }
.lb img { max-width: 100%; max-height: calc(100dvh - 110px); margin-inline: auto; width: auto; }
.lb figcaption { margin-top: 10px; font-size: .875rem; color: var(--mist); }
.lb__x { position: absolute; right: 16px; top: 16px; margin: 0; z-index: 2; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 64px; background: rgba(0,0,0,.45); border: 0; font-size: 2rem; font-weight: 200; line-height: 1; z-index: 2; transition: background-color .25s; }
.lb__nav:hover { background: rgba(255,255,255,.18); }
.lb__nav--prev { left: 6px; }
.lb__nav--next { right: 6px; }

.is-placeholder { object-fit: cover !important; }

/* ---------- ОТ 640 PX ---------- */
@media (min-width: 640px) {
  :root { --gutter: 32px; --sec: 96px; }
  .lead { grid-template-columns: 1fr 1fr; }
  .field--wide { grid-column: 1 / -1; }
  .lead__foot .btn { width: auto; min-width: 260px; }
  .kpis { grid-template-columns: repeat(3, 1fr); gap: 34px 24px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .branches__grid { grid-template-columns: 1fr 1fr; }
  .foot__in { grid-template-columns: 1fr 1fr; }
  .foot small { grid-column: 1 / -1; }
  .next { height: 44vw; }
}

/* ---------- ОТ 1000 PX ---------- */
@media (min-width: 1000px) {
  :root { --gutter: 48px; --top-h: 76px; --sec: 128px; }
  .burger { display: none; }
  .top__cta { display: inline-flex; }
  .top__nav { display: block; flex: 1; }
  .top__nav ul { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2.4vw, 38px); }
  .top__link { display: block; line-height: 1.4; padding: 8px 2px; background: none; border: 0; font-size: .9375rem; font-weight: 500; text-decoration: none; white-space: nowrap; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .35s var(--ease); }
  .top__link:hover, .top__link[aria-current], .top__link[aria-expanded="true"] { background-size: 100% 1px; }
  .top__logo img { width: clamp(230px, 19vw, 300px); }
  .lang { margin-right: 10px; }

  .mega { display: none; }

  /* Первый экран: фото на всю площадь, текст в небе, кнопки под машиной */
  .show__stage, .mhero__stage { top: 0; height: 100%; }
  .show__stage::after, .mhero__stage::after { background: linear-gradient(rgba(0,0,0,.7) 0, rgba(0,0,0,.26) 38%, transparent 55%, rgba(0,0,0,.2) 72%, rgba(0,0,0,.8) 100%); }
  .show__top, .mhero__top { padding-top: calc(var(--top-h) + 14px); }
  .show h1 { font-size: 1rem; }
  .show__name { font-size: clamp(6rem, 11vw, 10rem); }
  .show__cta .btn { flex: 0 1 220px; }
  .show__bottom, .mhero__bottom { padding-bottom: 22px; }
  .show__picks { max-width: 880px; margin-inline: auto; margin-top: 20px; }
  .pick b { font-size: .9375rem; }
  .mhero h1 { font-size: clamp(5.5rem, 10.5vw, 9.5rem); }
  .mhero__bottom { padding-bottom: 40px; }

  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 40px; }

  .facts__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 44px; }
  .fact { padding-block: 22px 0; }
  .branch { padding: 40px 38px; }
  .request__in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
  .foot__in { grid-template-columns: 2fr 2fr 3fr; }

  .subnav b { display: block; font-size: 1.0625rem; }
  .kpis { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-top: 44px; }
  .rail { margin-top: 40px; }
  .rail__track { gap: 12px; }
  .rail__btn { width: 56px; height: 56px; }
  .feat ul { columns: 2; column-gap: 40px; }
  .feat li { break-inside: avoid; }
  .trims-sec__in { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: start; }
  .summary { position: sticky; top: calc(var(--top-h) + 72px); padding: 32px; }
  .mobilebar { display: none; }
  body:has(.mobilebar) .foot { padding-bottom: 28px; }
  .next { height: 40vw; }
  .next__txt { bottom: 44px; }

  .page-head { padding-top: 72px; padding-bottom: 36px; }
  .faq__in { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; }
  .lb figure { padding-inline: 70px; }
}

/* ---------- УМЕНЬШЕНИЕ АНИМАЦИИ ПО НАСТРОЙКЕ СИСТЕМЫ ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .show__stage img { transform: none; }
}
