/* X-LAB — официальный дилер. Концепция: «лаборатория/чертёж»: светлый алюминиевый фон,
   графитовый текст, фиолетовый акцент Hawkeye; размерные линии как фирменный приём. */
:root {
  --alloy: #E7EAEE;      /* фон страницы */
  --sheet: #FFFFFF;      /* поверхности */
  --graphite: #1A1E24;   /* основной текст */
  --steel: #5F6875;      /* вторичный текст */
  --line: #C7CDD5;       /* линии, размерные метки */
  --violet: #5636E8;     /* акцент */
  --violet-ink: #3F22C4;
  --deep: #20242B;       /* тёмные секции */
  --deep-fg: #EEF0F3;
  --ok: #1E8E5A;
  --err: #C0392B;

  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-body: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: .8125rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: 2.25rem;
  --step-4: clamp(2.5rem, 6vw, 4.5rem);
  --step-5: clamp(3.5rem, 13vw, 11rem);

  --gutter: clamp(16px, 3vw, 40px);
  --glass: rgba(56, 58, 62, .82);
  --night: #1D2023;
  --panel: rgba(255, 255, 255, .07);
  --panel-line: rgba(255, 255, 255, .14);
  --maxw: 1840px;
  --radius: 6px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--alloy); color: var(--graphite);
  font-family: var(--f-body); font-size: var(--step-0); line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--steel); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ——— кнопки ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .75em 1.4em; border-radius: var(--radius);
  border: 1.5px solid var(--graphite); background: transparent; text-decoration: none;
  font-weight: 600; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--graphite); color: var(--sheet); }
.btn--accent { background: var(--violet); border-color: var(--violet); color: #fff; }
.btn--accent:hover { background: var(--violet-ink); border-color: var(--violet-ink); color: #fff; }
.btn--light { border-color: var(--deep-fg); color: var(--deep-fg); }
.btn--light:hover { background: var(--deep-fg); color: var(--deep); }
.btn--block { width: 100%; }

/* ——— шапка: плавающая тёмная панель, как на xds.co ——— */
.top { position: sticky; top: env(safe-area-inset-top, 0px); transform: translateY(16px); z-index: 60; padding-inline: var(--gutter); height: 62px; margin-bottom: -62px; pointer-events: none; }
.top > * { pointer-events: auto; }
.top__bar {
  max-width: var(--maxw); margin-inline: auto; display: flex; align-items: center; gap: 24px; height: 62px; padding-inline: 28px;
  background: var(--glass); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border-radius: 8px; color: #fff;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; color: inherit; }
.logo b { font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; letter-spacing: .14em; }
.logo span { font-size: .75rem; line-height: 1.15; opacity: .7; }
.nav { display: flex; gap: clamp(18px, 2vw, 36px); margin-inline: auto; }
.nav a, .nav__bikes { white-space: nowrap; text-decoration: none; font-weight: 600; color: rgba(255,255,255,.75); background: none; border: 0; padding: 6px 0; cursor: pointer; }
.nav a:hover, .nav__bikes:hover, .nav a[aria-current="page"], .nav__bikes[aria-expanded="true"] { color: #fff; }
.top__phone { font-weight: 600; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; color: #fff; }
.top .btn { white-space: nowrap; min-height: 40px; padding: .45em 1.1em; border-color: rgba(255,255,255,.6); color: #fff; }
.top .btn:hover { background: #fff; color: var(--graphite); }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px auto; }

/* мега-меню */
.mega { max-width: var(--maxw); margin: 8px auto 0; background: var(--glass); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border-radius: 8px; color: #fff; display: grid; grid-template-columns: 260px minmax(0, 1fr); max-height: calc(100vh - 110px); overflow: auto; }
.mega[hidden] { display: none !important; }
.mega > * { min-width: 0; }
.mega__left { padding: 32px 28px; border-right: 1px solid rgba(255,255,255,.18); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; margin-block: 24px; }
.mega__cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
.mega__cats button { background: none; border: 0; padding: 0; color: rgba(255,255,255,.62); font-size: 1.375rem; font-weight: 500; cursor: pointer; text-align: left; }
.mega__cats button[aria-selected="true"], .mega__cats button:hover { color: #fff; font-weight: 700; }
.mega__all { display: inline-flex; gap: 8px; align-items: center; align-self: flex-start; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.1); text-decoration: none; font-weight: 600; }
.mega__all:hover { background: rgba(255,255,255,.2); }
.mega__cards { list-style: none; margin: 0; padding: 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.mega__cards[hidden] { display: none; }
.mega__cards a { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 16px 16px 22px; border-radius: 8px; text-decoration: none; }
.mega__cards a:hover { background: rgba(255,255,255,.08); }
.mega__cards img { width: 100%; max-width: 280px; aspect-ratio: 16 / 10; object-fit: contain; }
.mega__cards b { font-family: var(--f-display); font-size: 1.75rem; font-weight: 700; margin-top: 8px; }
.mega__cards span { font-size: .9375rem; line-height: 1.35; max-width: 30ch; }
.mega__cards em { font-style: normal; color: rgba(255,255,255,.7); margin-top: 6px; font-variant-numeric: tabular-nums; }
.mega__links { display: none; }

@media (max-width: 1360px) { .top__phone { display: none; } }
@media (max-width: 1180px) {
  .nav, .top__phone, .top__bar > .btn { display: none; }
  .burger { display: block; }
  .mega { grid-template-columns: 1fr; background: rgba(40, 42, 46, .97); }
  .mega__left { border-right: 0; margin: 0; padding: 20px 20px 0; }
  .mega__cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
  .mega__cats button { font-size: 1rem; white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.08); }
  .mega__cats button[aria-selected="true"] { background: #fff; color: var(--graphite); }
  .mega__cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); padding: 12px; }
  .mega__cards a { padding: 10px; }
  .mega__cards b { font-size: 1.25rem; }
  .mega__cards span { display: none; }
  .mega__links { display: grid; gap: 2px; padding: 8px 20px 24px; border-top: 1px solid rgba(255,255,255,.18); }
  .mega__links a { padding: 10px 0; text-decoration: none; font-size: 1.125rem; font-weight: 600; }
}

/* ——— размерная линия (фирменный приём) ——— */
.dim { display: flex; align-items: center; gap: 10px; color: var(--steel); font-size: var(--step--1); white-space: nowrap; }
.dim::before, .dim::after { content: ""; flex: 1 1 24px; height: 11px; background: linear-gradient(var(--steel), var(--steel)) center / 100% 1px no-repeat; }
.dim::before { border-left: 1.5px solid var(--steel); }
.dim::after { border-right: 1.5px solid var(--steel); }
.dim b { color: var(--graphite); font-weight: 600; font-variant-numeric: tabular-nums; }
.sec--deep .dim, .sec--deep .dim b { color: var(--deep-fg); }

/* ——— hero главной ——— */
.hero { position: relative; overflow: hidden; padding-block: 104px 0; }
.hero__name {
  font-family: var(--f-display); font-weight: 700; font-size: var(--step-5);
  line-height: .82; letter-spacing: -.04em; color: var(--graphite);
  margin-bottom: -.12em; position: relative; z-index: 1; pointer-events: none;
}
.hero__stage { position: relative; }
.hero__img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; object-position: center 60%; background: var(--sheet); border-radius: var(--radius); }
.hero__callouts { position: absolute; inset: auto 0 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: var(--sheet); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
.callout { padding: 16px 20px; border-right: 1px solid var(--line); min-width: 0; }
.callout:last-child { border-right: 0; }
.callout b { display: block; font-family: var(--f-display); font-size: var(--step-2); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; }
.callout span { color: var(--steel); font-size: var(--step--1); }
.hero__foot { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 24px 40px; align-items: end; padding-block: 28px 56px; }
.hero__foot p { font-size: var(--step-1); max-width: 34ch; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .hero__img { aspect-ratio: 4 / 3; }
  .hero__callouts { position: static; grid-template-columns: 1fr 1fr 1fr; border: 1px solid var(--line); border-top: 0; }
  .callout { padding: 12px; }
  .callout b { font-size: var(--step-1); }
  .hero__foot { grid-template-columns: 1fr; }
}

/* ——— секции ——— */
.sec { padding-block: clamp(56px, 8vw, 112px); }
.sec__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 36px; }
.sec__head h2 { font-size: var(--step-4); max-width: 16ch; }
.sec__head p { max-width: 46ch; color: var(--steel); }
.sec--deep { background: var(--deep); color: var(--deep-fg); }
.sec--deep .muted, .sec--deep .sec__head p { color: #A9B0BA; }
.sec--sheet { background: var(--sheet); }

/* ——— фильтр категорий ——— */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { min-height: 40px; padding: .4em 1em; border-radius: 999px; border: 1.5px solid var(--line); background: var(--sheet); cursor: pointer; font-weight: 500; }
.chip[aria-pressed="true"] { background: var(--graphite); border-color: var(--graphite); color: var(--sheet); }
.chip small { color: var(--steel); margin-left: 4px; }
.chip[aria-pressed="true"] small { color: #AEB4BD; }

/* ——— карточки моделей ——— */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card { background: var(--sheet); display: flex; flex-direction: column; text-decoration: none; padding: 20px 20px 22px; min-width: 0; position: relative; transition: background .15s; }
.card:hover { background: #F6F7F9; }
.card__cat { font-size: var(--step--1); color: var(--steel); }
.card__name { font-family: var(--f-display); font-size: var(--step-3); font-weight: 600; line-height: 1; margin-top: 4px; }
.card__img { aspect-ratio: 16 / 10; object-fit: contain; width: 100%; margin-block: 14px 10px; }
.card__tag { color: var(--steel); font-size: .9375rem; min-height: 3em; }
.card__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: var(--step--1); }
.card__specs dt { color: var(--steel); }
.card__specs dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.card__price { margin-top: 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; }
.card__price span { color: var(--violet); font-size: var(--step--1); }
.swatches { display: flex; gap: 6px; position: absolute; top: 22px; right: 20px; }
.swatches i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--line); }

/* ——— Branta / бренд ——— */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); align-items: center; }
.split img { border-radius: var(--radius); width: 100%; }
.split h2 { font-size: var(--step-4); margin-bottom: 20px; }
.split p + p { margin-top: 1em; }
.split .btn { margin-top: 28px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid currentColor; }
.facts div { padding: 18px 16px 0 0; }
.facts b { display: block; font-family: var(--f-display); font-size: var(--step-3); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.facts span { font-size: var(--step--1); opacity: .75; }
@media (max-width: 820px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; } }

/* ——— преимущества дилера ——— */
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px 40px; }
.perk h3 { font-family: var(--f-body); font-size: var(--step-1); font-weight: 700; margin-bottom: 8px; }
.perk p { color: var(--steel); }
.sec--deep .perk p { color: #A9B0BA; }
.perk svg { width: 36px; height: 36px; margin-bottom: 14px; stroke: var(--violet); }
.sec--deep .perk svg { stroke: #9C8BFF; }

/* ——— форма заявки ——— */
.lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 80px); }
.lead h2 { font-size: var(--step-4); margin-bottom: 18px; }
.contacts-list { display: grid; gap: 14px; margin-top: 28px; }
.contacts-list dt { font-size: var(--step--1); color: var(--steel); }
.contacts-list dd { margin: 0; font-weight: 600; font-size: var(--step-1); }
@media (max-width: 820px) { .lead { grid-template-columns: 1fr; } }
.form { display: grid; gap: 14px; background: var(--sheet); padding: clamp(20px, 3vw, 36px); border-radius: var(--radius); border: 1px solid var(--line); }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: .9375rem; }
.form input, .form select, .form textarea {
  font: inherit; color: var(--graphite); background: var(--alloy); border: 1.5px solid transparent; border-radius: var(--radius);
  min-height: 48px; padding: .6em .85em; width: 100%;
}
.form textarea { min-height: 96px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--violet); background: var(--sheet); }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .form .row2 { grid-template-columns: 1fr; } }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: var(--step--1); color: var(--steel); }
.form .check input { width: 18px; min-height: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--violet); }
.form__msg { font-size: .9375rem; }
.form__msg.is-ok { color: var(--ok); }
.form__msg.is-err { color: var(--err); }

/* ——— модальное окно ——— */
.modal { border: 0; padding: 0; background: transparent; max-width: min(560px, calc(100vw - 32px)); width: 100%; }
.modal::backdrop { background: rgba(20, 22, 28, .55); }
.modal__close { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; font-size: 1.5rem; line-height: 1; color: var(--steel); }
.modal .form { position: relative; }
.modal h2 { font-size: var(--step-2); padding-right: 40px; }

/* ——— хлебные крошки ——— */
.crumbs { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--step--1); color: var(--steel); padding-block: 18px 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--violet); }
.crumbs li { list-style: none; }
.crumbs ol { display: contents; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }

/* ——— страница модели ——— */
.pd { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: clamp(20px, 3vw, 48px); padding-block: 18px 64px; align-items: start; }
.gallery, .buy { min-width: 0; }
.gallery__main { background: var(--sheet); border-radius: var(--radius); aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding-block: 10px 4px; scrollbar-width: thin; }
.thumbs button { flex: 0 0 auto; width: 92px; aspect-ratio: 4 / 3; padding: 0; border: 1.5px solid var(--line); border-radius: 4px; background: var(--sheet); cursor: pointer; overflow: hidden; }
.thumbs button[aria-current="true"] { border-color: var(--violet); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); display: grid; gap: 18px; }
.buy h1 { font-size: clamp(3rem, 7vw, 5.5rem); letter-spacing: -.035em; line-height: .9; }
.buy__sub { font-size: var(--step-1); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: var(--step--1); padding: .2em .65em; border: 1px solid var(--line); border-radius: 999px; color: var(--steel); background: var(--sheet); }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; padding-block: 14px; border-block: 1px solid var(--line); }
.price b { font-family: var(--f-display); font-size: var(--step-3); font-weight: 600; font-variant-numeric: tabular-nums; }
.price s { color: var(--steel); }
.price em { font-style: normal; font-size: var(--step--1); color: var(--ok); width: 100%; }
.opt legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.opt { border: 0; padding: 0; margin: 0; min-width: 0; }
.opt__row { display: flex; flex-wrap: wrap; gap: 8px; }
.opt__row label { position: relative; }
.opt__row input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt__row span { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; min-width: 48px; justify-content: center; padding: .35em .9em; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--sheet); font-weight: 500; font-size: .9375rem; }
.opt__row input:checked + span { border-color: var(--graphite); box-shadow: inset 0 0 0 1px var(--graphite); }
.opt__row input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }
.opt__row img { width: 44px; height: 26px; object-fit: contain; }
.hl { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.hl li { padding-left: 22px; position: relative; }
.hl li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 1.5px; background: var(--violet); }
.size-link { font-size: .9375rem; color: var(--violet); }
.buy__note { font-size: var(--step--1); color: var(--steel); }
@media (max-width: 960px) {
  .pd { grid-template-columns: 1fr; }
  .buy { position: static; }
}

/* ——— история модели ——— */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.story h2 { font-size: var(--step-4); margin-bottom: 22px; }
.story p { font-size: 1.0625rem; max-width: 58ch; }
.story p + p { margin-top: .9em; }
.story p:last-child { font-weight: 600; }
.story img { border-radius: var(--radius); width: 100%; }
@media (max-width: 820px) { .story { grid-template-columns: 1fr; } }
.blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 32px; }
.blocks figure { margin: 0; display: grid; gap: 14px; align-content: start; }
.blocks img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: var(--radius); background: var(--alloy); }
.blocks h3 { font-size: var(--step-1); }
.blocks p { color: var(--steel); }
.sec--deep .blocks p { color: #A9B0BA; }

.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feats figure { margin: 0; background: var(--sheet); padding: 0 0 18px; }
.feats img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.feats figcaption { padding: 14px 18px 0; }

.video { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--deep); }

/* ——— таблицы ——— */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 14px 18px; cursor: pointer; font-weight: 600; color: var(--steel); border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--graphite); border-bottom-color: var(--violet); }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; margin: 0; }
.specs div { display: grid; grid-template-columns: minmax(130px, 34%) minmax(0, 1fr); gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--steel); }
.specs dd { margin: 0; }
@media (max-width: 820px) { .specs { grid-template-columns: 1fr; } .specs div { grid-template-columns: 1fr; gap: 2px; } }
.note { margin-top: 20px; font-size: var(--step--1); color: var(--steel); max-width: 80ch; }

.geo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; align-items: start; }
@media (max-width: 960px) { .geo { grid-template-columns: 1fr; } }
.geo > * { min-width: 0; }
.geo__img img { width: 100%; }
.geo__img { background: var(--sheet); border-radius: var(--radius); border: 1px solid var(--line); padding: 12px; }
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sheet); }
.tbl table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: .9375rem; }
.tbl th, .tbl td { padding: 9px 12px; text-align: right; border-bottom: 1px solid var(--alloy); white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { text-align: left; white-space: normal; min-width: 180px; }
.tbl thead th { font-family: var(--f-display); font-weight: 600; background: var(--alloy); position: sticky; top: 0; }
.tbl thead th button { border: 0; background: none; font: inherit; cursor: pointer; padding: 2px 6px; border-radius: 4px; }
.tbl .is-col { background: color-mix(in srgb, var(--violet) 9%, var(--sheet)); }
.tbl thead th.is-col { background: var(--violet); color: #fff; }
.tbl thead th.is-col button { color: #fff; }
.tbl .grp td { font-weight: 700; background: var(--alloy); text-align: left; }
.geo__hint { font-size: var(--step--1); color: var(--steel); margin-top: 10px; }

.faq { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 920px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 40px 18px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--steel); border-bottom: 2px solid var(--steel); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding-bottom: 18px; color: var(--steel); max-width: 72ch; }

.docs { display: flex; flex-wrap: wrap; gap: 12px; }
.docs a { display: inline-flex; gap: 10px; align-items: center; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sheet); text-decoration: none; font-weight: 500; }
.docs a:hover { border-color: var(--violet); }

/* ——— текстовые страницы ——— */
.page-head { padding-block: 112px 40px; }
.page-head h1 { font-size: var(--step-4); max-width: 18ch; }
.page-head p { margin-top: 18px; font-size: var(--step-1); max-width: 52ch; color: var(--steel); }
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--step-2); margin-block: 40px 14px; }
.prose h3 { font-family: var(--f-body); font-size: var(--step-1); font-weight: 700; margin-block: 24px 8px; }
.prose p, .prose ul { margin-block: 0 1em; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: .35em; }
.wtable { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-block: 8px 28px; }
.wtable div { background: var(--sheet); padding: 18px; }
.wtable b { font-family: var(--f-display); font-size: var(--step-2); display: block; line-height: 1.1; margin-bottom: 8px; }
.wtable span { color: var(--steel); font-size: .9375rem; }

/* ——— подвал ——— */
.foot { background: var(--deep); color: var(--deep-fg); padding-block: 56px calc(32px + env(safe-area-inset-bottom, 0px)); }
.foot__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot h3 { font-family: var(--f-body); font-size: var(--step--1); font-weight: 600; color: #A9B0BA; margin-bottom: 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #B9AEFF; }
.foot__legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid #3A3F48; font-size: var(--step--1); color: #8D95A0; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.foot .logo b { color: var(--deep-fg); }
@media (max-width: 820px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }

/* ═══════════ страница модели: тёмный верх, как на xds.co ═══════════ */
.pv { position: relative; color: #fff; background: var(--night) var(--pv-bg, none) center top / cover no-repeat; padding-block: 104px 56px; }
.pv a { color: inherit; }
.pv .crumbs { padding-top: 0; color: rgba(255,255,255,.6); }
.pv .crumbs li + li::before { color: rgba(255,255,255,.3); }
.pv__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 2.4vw, 40px); align-items: start; margin-top: 14px; }
.pv__media { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); min-width: 0; }
.pv__info { display: grid; gap: 16px; min-width: 0; }
.pv h1 { font-family: var(--f-display); font-size: clamp(2.5rem, 4.4vw, 4rem); font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.pv__ru { margin-top: -6px; color: rgba(255,255,255,.7); font-weight: 600; }
.pv .tags span { background: rgba(255,255,255,.22); border: 0; color: #fff; border-radius: 4px; padding: .3em .6em; font-size: .8125rem; font-weight: 500; }
.pv__tagline { font-size: 1.0625rem; color: rgba(255,255,255,.88); max-width: 52ch; }
.pv__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.pv__price b { font-family: var(--f-display); font-size: 1.75rem; font-weight: 600; color: #FFB547; font-variant-numeric: tabular-nums; }
.pv__price s { color: rgba(255,255,255,.55); }
.pv__price em { font-style: normal; font-size: .875rem; padding: .25em .7em; border-radius: 4px; background: rgba(86,54,232,.35); color: #DCD4FF; }
.card-d { background: var(--panel); border: 1px solid var(--panel-line); border-radius: 12px; padding: 18px 20px; }
.card-d h2 { font-family: var(--f-body); font-size: 1.0625rem; font-weight: 700; margin-bottom: 14px; }
.pv .hl li::before { background: #fff; width: 6px; height: 6px; border-radius: 50%; top: .6em; left: 4px; }
.pv .hl li { font-size: .9375rem; }

.options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.options a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--panel-line); text-decoration: none; }
.options a[aria-current="true"] { border-color: #fff; background: rgba(255,255,255,.06); }
.options img { width: 64px; height: 40px; object-fit: contain; }
.options b { display: block; font-size: .9375rem; }
.options small { color: rgba(255,255,255,.7); }

.swatch-row { display: flex; flex-wrap: wrap; gap: 14px; }
.swatch-row label { position: relative; cursor: pointer; }
.swatch-row input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.swatch-row span { display: block; width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); box-shadow: inset 0 0 0 3px var(--night); }
.swatch-row input:checked + span { border-color: #fff; }
.swatch-row input:focus-visible + span { outline: 2px solid #9C8BFF; outline-offset: 3px; }

.size-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.size-head h2 { margin: 0; }
.linkbtn { background: none; border: 0; padding: 0; color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; cursor: pointer; }
.size-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.size-row label { position: relative; }
.size-row input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.size-row span { display: grid; place-items: center; min-height: 48px; border-radius: 6px; border: 1.5px solid var(--panel-line); font-weight: 700; font-size: 1.0625rem; line-height: 1.1; text-align: center; padding: 4px; }
.size-row span small { display: block; font-weight: 400; font-size: .75rem; color: rgba(255,255,255,.65); }
.size-row input:checked + span { background: #fff; color: var(--graphite); border-color: #fff; }
.size-row input:checked + span small { color: var(--steel); }
.size-row input:focus-visible + span { outline: 2px solid #9C8BFF; outline-offset: 2px; }
.pv .geo-link { display: inline-block; margin-top: 12px; font-size: .9375rem; color: rgba(255,255,255,.8); }
.pv__cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pv__cta .btn:not(.btn--accent) { border-color: rgba(255,255,255,.6); color: #fff; }
.pv__cta .btn:not(.btn--accent):hover { background: #fff; color: var(--graphite); }
.pv__note { font-size: .8125rem; color: rgba(255,255,255,.6); }
@media (max-width: 960px) {
  .pv__grid { grid-template-columns: 1fr; }
  .pv__media { position: static; }
  .pv__cta, .options { grid-template-columns: 1fr; }
}

/* слайдер фото */
.slider { position: relative; border-radius: 16px; overflow: hidden; background: #000; }
.slider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.slider__track::-webkit-scrollbar { display: none; }
.slider__slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 7 / 6; border: 0; padding: 0; background: #0E1012; cursor: zoom-in; }
.slider__slide img { width: 100%; height: 100%; object-fit: cover; }
.slider__slide--studio img { object-fit: contain; padding: 6%; }
.slider__nav { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 1.25rem; cursor: pointer; display: grid; place-items: center; }
.slider__nav:hover { background: rgba(0,0,0,.7); }
.slider__nav--prev { left: 14px; }
.slider__nav--next { right: 14px; }
.slider__expand { position: absolute; left: 14px; top: 14px; display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.35); color: #fff; font-weight: 500; font-size: .875rem; cursor: pointer; }
.slider__count { position: absolute; right: 14px; bottom: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.45); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.pv .thumbs { padding-top: 12px; }
.pv .thumbs button { width: 84px; border-color: transparent; background: #0E1012; border-radius: 6px; opacity: .65; }
.pv .thumbs button[aria-current="true"] { border-color: #fff; opacity: 1; }

/* увеличение / галерея */
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 9, 11, .96); color: #fff; }
.lightbox::backdrop { background: rgba(0,0,0,.8); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb__top { display: flex; justify-content: space-between; align-items: center; padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px 12px; font-variant-numeric: tabular-nums; }
.lb__close { width: 44px; height: 44px; border: 0; background: rgba(255,255,255,.1); color: #fff; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.lb__stage { position: relative; min-height: 0; overflow: hidden; }
.lb__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; transition: transform .2s; transform-origin: var(--zx, 50%) var(--zy, 50%); }
.lb__stage.is-zoom img { transform: scale(1.7); cursor: zoom-out; }
.lb__stage .slider__nav { z-index: 2; }
.lb__stage .slider__nav { background: rgba(255,255,255,.12); }
.lb__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px calc(env(safe-area-inset-bottom, 0px) + 16px); justify-content: safe center; }
.lb__thumbs button { flex: 0 0 auto; width: 88px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #111; opacity: .55; cursor: pointer; }
.lb__thumbs button[aria-current="true"] { border-color: #fff; opacity: 1; }
.lb__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* видео и история под основным блоком */
.pintro { background: var(--night); color: #fff; padding-block: 8px 72px; }
.pintro__video { border-radius: 16px; overflow: hidden; background: #000; }
.pintro__video video { display: block; width: 100%; aspect-ratio: 2.05 / 1; object-fit: cover; }
.pintro__video .v-m { display: none; }
@media (max-width: 768px) {
  .pintro__video video { aspect-ratio: 4 / 5; }
  .pintro__video .v-d { display: none; }
  .pintro__video .v-m { display: block; }
}
.story-d { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); border-radius: 16px; overflow: hidden; background: var(--panel); }
.story-d img { width: 100%; height: 100%; object-fit: cover; }
.story-d__txt { padding: clamp(24px, 4vw, 56px); align-self: center; }
.story-d h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 18px; }
.story-d p { color: rgba(255,255,255,.82); }
.story-d p + p { margin-top: .9em; }
.story-d p:last-child { color: #fff; font-weight: 600; }
@media (max-width: 860px) { .story-d { grid-template-columns: 1fr; } }
.pintro .blocks { margin-top: 32px; }
.pintro .blocks img { border-radius: 16px; background: #000; }
.pintro .blocks p { color: rgba(255,255,255,.72); }

/* окно «Таблица размеров» */
.modal--size .form { gap: 16px; }
.sg { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sg th { text-align: left; font-size: .8125rem; color: var(--steel); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.sg td { padding: 12px 10px; border-bottom: 1px solid var(--alloy); }
.sg td:first-child { font-family: var(--f-display); font-weight: 600; }
.sg td small { font-family: var(--f-body); font-weight: 400; color: var(--steel); margin-left: 6px; }
.sg tr.is-match td { background: color-mix(in srgb, var(--violet) 12%, var(--sheet)); }
.sg tr[data-size] { cursor: pointer; }
.sg tr[data-size]:hover td { background: var(--alloy); }
.sg__calc { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.sg__calc label { flex: 1 1 160px; }
.sg__res { font-weight: 600; min-height: 1.5em; }

/* липкая панель внизу */
.mbar { display: flex; gap: 16px; align-items: center; position: fixed; z-index: 40; right: var(--gutter); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); left: auto; width: min(560px, calc(100% - 2 * var(--gutter))); background: var(--sheet); color: var(--graphite); border: 0; border-radius: 12px; padding: 14px 16px 14px 22px; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .25s, opacity .25s; }
.mbar.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
.mbar div { flex: 1; min-width: 0; line-height: 1.3; }
.mbar b { font-family: var(--f-display); display: block; font-size: 1.125rem; }
.mbar span { font-size: .875rem; color: var(--steel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.mbar .btn { background: var(--graphite); border-color: var(--graphite); color: #fff; }
@media (max-width: 960px) { .mbar { left: 12px; right: 12px; width: auto; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); } }

/* ═══════════ главная: полноэкранные баннеры, как на xds.co ═══════════ */
.hb { position: relative; min-height: max(620px, 100svh); max-height: 1100px; display: grid; align-items: center; overflow: hidden; background: #0c0d0f; color: #fff; isolation: isolate; }
.hb picture, .hb__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hb__bg--m { display: none; }
.hb::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,0) 70%); }
.hb__in { width: 100%; padding-block: 120px 80px; display: grid; gap: 18px; justify-items: start; }
.hb__in h2 { margin: 0; }
.hb__title { width: min(560px, 80vw); height: auto; }
.hb__in p { max-width: 36ch; font-size: 1.125rem; color: rgba(255,255,255,.9); }
.hb__in .hb__price { font-family: var(--f-display); font-size: 1.5rem; color: #FFB547; }
.hb__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
@media (max-width: 768px) {
  .hb { align-items: start; min-height: max(640px, 100svh); }
  .hb__bg--d { display: none; } .hb__bg--m { display: block; }
  .hb::after { background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 45%); }
  .hb__in { padding-top: 110px; }
  .hb__title { width: min(320px, 80vw); }
}
.band { position: relative; overflow: hidden; color: #fff; background: #0c0d0f; isolation: isolate; min-height: 560px; display: grid; align-items: center; }
.band picture, .band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0,0,0,.45); }
.band--branta::after { background: linear-gradient(90deg, rgba(0,0,0,.7), rgba(0,0,0,.1) 65%); }
.band__in { padding-block: clamp(64px, 9vw, 140px); display: grid; gap: 20px; justify-items: start; }
.band__in--center { justify-items: center; text-align: center; }
.band__in h2 { font-size: var(--step-4); max-width: 18ch; }
.band__in p { max-width: 56ch; font-size: 1.125rem; color: rgba(255,255,255,.88); }
.band .perks { width: 100%; margin-top: 12px; }
.band .perk p { color: rgba(255,255,255,.75); }
.band .perk svg { stroke: #B9AEFF; }
.dealer-logo { width: 220px; height: auto; border-radius: 10px; }
.facts--light { border-top-color: rgba(255,255,255,.4); width: 100%; text-align: left; }
.btn--light { border-color: rgba(255,255,255,.8); color: #fff; }
.btn--shop { grid-column: 1 / -1; background: #fff; border-color: #fff; color: var(--graphite); }
.btn--shop:hover { background: #E7EAEE; color: var(--graphite); }
.pv__stock-note { font-size: .875rem; color: rgba(255,255,255,.7); }
.foot__dealer img { width: 200px; height: auto; border-radius: 8px; }
.foot__soc { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.foot__soc a { text-decoration: underline; text-underline-offset: 3px; }
.sec__head h1 { font-size: var(--step-4); max-width: 22ch; }
.pv__brand { display: block; font-size: .32em; letter-spacing: .14em; font-weight: 600; color: rgba(255,255,255,.65); margin-bottom: 4px; }
.pv__kind { font-size: .45em; font-weight: 500; color: rgba(255,255,255,.75); }
