@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/onest-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/onest-latin.woff2) format('woff2');
  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;
}

/* ─── токены ────────────────────────────────────────────────────────── */
:root {
  --bg: #e9e9ec;
  --card: #fff;
  --ink: #16181c;
  --muted: #52525b;
  --muted-2: #71717a;
  --muted-3: #8a8a92;
  --muted-4: #a1a1aa;
  --line: #e3e3e7;
  --line-soft: #ececf0;
  --hair: #e9e9ec;
  --fill: #f2f2f4;
  --fill-hover: #e8e8ec;
  --ghost: #f1f1f4;
  --num: #e4e4e9;

  --red: #ec3013;
  --red-deep: #d8210a;
  --red-dark: #ae1800;
  --red-soft: #ffe6e1;

  --panel: #16181c;
  --panel-ink: #fff;
  --panel-muted: #b4b4bc;
  --panel-chip: rgba(255, 255, 255, 0.12);
  --panel-kicker: #ff6a52;

  --shadow: 0 24px 60px rgba(20, 20, 25, 0.16);
  --shadow-spot: 0 4px 14px rgba(20, 20, 25, 0.1);
  --sans: Onest, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: clamp(16px, 2.4vw, 26px);
  --r-card: 18px;
  --r-media: 22px;
}

:root[data-theme='dark'] {
  --bg: #0c0d10;
  --card: #16181c;
  --ink: #f2f3f5;
  --muted: #b6b8c0;
  --muted-2: #9c9ea7;
  --muted-3: #8b8d96;
  --muted-4: #797b84;
  --line: #2a2d34;
  --line-soft: #23262c;
  --hair: #1e2126;
  --fill: #22252b;
  --fill-hover: #2b2f36;
  --ghost: #1b1e23;
  --num: #2a2e35;

  --red: #ff452a;
  --red-deep: #ff6047;
  --red-dark: #ff8f7c;
  --red-soft: #3a1710;

  --panel: #22252c;
  --panel-ink: #f2f3f5;
  --panel-muted: #a7a9b2;
  --panel-chip: rgba(255, 255, 255, 0.1);
  --panel-kicker: #ff8f7c;

  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  --shadow-spot: 0 4px 14px rgba(0, 0, 0, 0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0c0d10;
    --card: #16181c;
    --ink: #f2f3f5;
    --muted: #b6b8c0;
    --muted-2: #9c9ea7;
    --muted-3: #8b8d96;
    --muted-4: #797b84;
    --line: #2a2d34;
    --line-soft: #23262c;
    --hair: #1e2126;
    --fill: #22252b;
    --fill-hover: #2b2f36;
    --ghost: #1b1e23;
    --num: #2a2e35;

    --red: #ff452a;
    --red-deep: #ff6047;
    --red-dark: #ff8f7c;
    --red-soft: #3a1710;

    --panel: #22252c;
    --panel-ink: #f2f3f5;
    --panel-muted: #a7a9b2;
    --panel-chip: rgba(255, 255, 255, 0.1);
    --panel-kicker: #ff8f7c;

    --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    --shadow-spot: 0 4px 14px rgba(0, 0, 0, 0.45);
  }
}

/* ─── база ──────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.06; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; }
a { color: var(--red-deep); text-decoration: none; }
a:hover { color: var(--red); }

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:where(button, input, a, [tabindex]):focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 20;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--panel);
  color: var(--panel-ink);
  font-weight: 700;
}
.skip:focus { left: 8px; color: var(--panel-ink); }

.page {
  padding: clamp(0px, 2vw, 28px);
  display: flex;
  justify-content: center;
}

.sheet {
  width: 100%;
  max-width: 1320px;
  background: var(--card);
  border-radius: clamp(0px, 2vw, 26px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

/* ─── строка чатов над шапкой ───────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  gap: 8px 16px;
  flex-wrap: wrap;
  padding: 9px var(--pad);
  background: var(--fill);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.topbar[hidden] { display: none; }
.topbar__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  color: var(--muted-3);
}
.topbar__links { display: flex; gap: 6px 14px; flex-wrap: wrap; }
.topbar__chat { font-weight: 600; color: var(--muted); }
.topbar__chat:hover { color: var(--red); }

/* ─── шапка ─────────────────────────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px var(--pad) 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
}
.logo:hover { color: var(--ink); }
/* знак — тот же дефлектор, что у номеров блоков и фактурой на карточках */
.logo__mark { color: var(--red); flex: 0 0 auto; }
.logo__word {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.logo__sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-3);
}
.logo--footer { align-items: baseline; }
.logo--footer .logo__mark { align-self: center; }

.nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pill {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.pill:hover { border-color: var(--muted-4); color: var(--ink); }
.pill[aria-pressed='true'],
.pill.is-current {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--card);
}
.pill[aria-pressed='true']:hover,
.pill.is-current:hover { color: var(--card); }

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: var(--fill);
  color: var(--muted-3);
  display: grid;
  place-items: center;
}
.icon-btn:hover { background: var(--fill-hover); color: var(--ink); }

.icon-sun { display: none; }
:root[data-theme='dark'] .icon-sun { display: block; }
:root[data-theme='dark'] .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .icon-sun { display: block; }
  :root:not([data-theme='light']) .icon-moon { display: none; }
}

.burger { display: none; }

/* ─── конфигуратор ──────────────────────────────────────────────────── */
.conf {
  padding: 18px var(--pad) 0;
  display: grid;
  grid-template-columns: 215px minmax(0, 1fr) minmax(280px, 320px);
  gap: 20px;
  align-items: start;
}

.conf__aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.model__name {
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.model__year {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted-3);
}

/* Пилюли рубрик и ответ прямо под ними, чтобы клик было видно на месте,
   а не в карточке на другом краю экрана. */
.loves { display: flex; flex-direction: column; gap: 10px; }

.cats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.cats .pill { width: 100%; text-align: center; }

/* Плюсы выбранной рубрики. То же, что точки на кузове, только списком:
   на телефоне подписи у точек не помещаются, и список остаётся
   единственным способом их прочитать. */
.loves__list {
  border-top: 1px solid var(--line-soft);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.loves__item {
  width: 100%;
  padding: 6px 8px;
  margin-left: -8px;
  border: 0;
  border-radius: 10px;
  background: none;
  text-align: left;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted-2);
}
.loves__item::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 999px;
  background: var(--muted-4);
  vertical-align: 1px;
}
.loves__item:hover { background: var(--fill); color: var(--ink); }
.loves__item[aria-pressed='true'] {
  background: var(--fill);
  color: var(--ink);
  font-weight: 700;
}
.loves__item[aria-pressed='true']::before { background: var(--red); }

/* сцена с автомобилем */
.stage {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
}

.stage__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-media);
  overflow: hidden;
}
.stage__pic {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s;
}
.stage__pic.is-on { opacity: 1; }
.stage__pic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* выноски на кузове: точка на детали, подпись у края кадра, между ними
   линия. Подписи раскладывает по вертикали app.js — вплотную к точкам
   они на части ракурсов налезали друг на друга. */
.spots { position: absolute; inset: 0; }

.leaders {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.leader {
  fill: none;
  stroke: var(--muted-4);
  stroke-width: 1;
  transition: stroke 0.15s;
}
.leader.is-on { stroke: var(--red); stroke-width: 1.5; }

.pin {
  position: absolute;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: none;
  transform: translate(-50%, -50%);
  z-index: 6;
}
.pin span {
  display: block;
  width: 12px;
  height: 12px;
  margin: 4px;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 0 0 3px var(--card);
  transition: background 0.15s, box-shadow 0.15s;
}
.pin[aria-pressed='true'] span {
  background: var(--red);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 24%, transparent);
}

.callout {
  position: absolute;
  max-width: 46%;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow-spot);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--muted);
  transform: translateY(-50%);
  z-index: 7;
}
.callout--left { left: 0; text-align: right; }
.callout--right { right: 0; text-align: left; }
.callout:hover { border-color: var(--muted-4); color: var(--ink); }
.callout[aria-pressed='true'] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--card);
}

/* карточки справа */
.conf__info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--panel);
  color: var(--panel-ink);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* та же капсула с рёбрами, только фактурой в углу */
.panel::after {
  content: '';
  position: absolute;
  top: -14px;
  right: -8px;
  width: 88px;
  height: 116px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg,
    currentColor 0 1px, transparent 1px 7px);
  opacity: 0.12;
  pointer-events: none;
}
.panel > * { position: relative; z-index: 1; }
.panel--row {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 700;
}
.panel__head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.panel__kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.panel__title { font-size: 17px; font-weight: 700; line-height: 1.2; }
.panel__text { font-size: 13px; line-height: 1.55; color: var(--panel-muted); }

.chip {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--ink);
  display: grid;
  place-items: center;
}
.chip--panel {
  width: 26px;
  height: 26px;
  background: var(--panel-chip);
  color: var(--panel-ink);
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card__text { font-size: 13px; line-height: 1.55; color: var(--muted-2); }


/* Переходы на соседние страницы. Раньше в этой колонке стояли цена
   и гарантия; убрали — осталась одна карточка на треть высоты сцены,
   и с главной на другие страницы вело только меню. */
.jump {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 14px 16px;
  color: var(--ink);
}
.jump:hover { border-color: var(--red); color: var(--ink); }
.jump__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.jump__title { font-size: 15px; font-weight: 700; }
.jump__note { font-size: 12px; color: var(--muted-3); }
.jump .dot-btn { margin-left: auto; }

/* ─── цвета и характеристики ────────────────────────────────────────── */
.highlights { padding: 22px var(--pad) var(--pad); }

.highlights__head {
  display: flex;
  align-items: center;
  gap: 12px 20px;
  flex-wrap: wrap;
  padding-bottom: 14px;
}
.highlights__title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.colors {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.colors__label { font-size: 14px; font-weight: 700; }
.colors__row { display: flex; gap: 8px; }

.sw {
  position: relative;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--muted-4);
  border-radius: 999px;
  background: var(--sw);
}
.sw[aria-checked='true'] {
  border: 2px solid var(--red);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 18%, transparent);
}
.sw__name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.round-btn {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  display: grid;
  place-items: center;
}
.round-btn:hover { border-color: var(--ink); color: var(--ink); }
.round-btn--sm { width: 32px; height: 32px; }

.specs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.spec {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 14px 16px;
  min-height: 104px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.spec__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-3);
}
.spec__head .chip { width: 24px; height: 24px; }
.spec__value {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.spec__note { font-size: 12px; line-height: 1.35; color: var(--muted-4); }

/* ─── нумерованные блоки ────────────────────────────────────────────── */
.block {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr);
  border-top: 1px solid var(--hair);
}
.block--wide { grid-template-columns: 120px minmax(0, 1fr); }

.block__num {
  padding: 36px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-size: 44px;
  font-weight: 800;
  line-height: 0.9;
  color: var(--num);
}
/* Вместо простой красной черты — дефлектор с приборки Sonet: вертикальная
   капсула с рёбрами и поперечной заслонкой. Мотив повторяется у всех
   номерных блоков и связывает страницу с самой машиной. */
.vent { color: var(--red); flex: 0 0 auto; }

.block__text {
  padding: 44px var(--pad) 40px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  min-width: 0;
}
.block__title { font-size: clamp(26px, 3vw, 34px); font-weight: 800; }
.block__note {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

.block__media {
  padding: 24px var(--pad) 24px 0;
  display: flex;
  align-items: center;
  min-width: 0;
}
/* <picture> — flex-элемент, и без width он сжимается до «внутренней»
   ширины картинки из sizes, а не до ширины колонки. */
.block__media picture { display: block; width: 100%; }
.photo {
  width: 100%;
  /* Атрибуты width/height у <img> — это ещё и подсказка размера для браузера:
     они задают height в пикселях и глушат aspect-ratio. Возвращаем auto. */
  height: auto;
  border-radius: var(--r-media);
  background: var(--fill);
  display: block;
  object-fit: cover;
}
/* Кадр 1060×545 в колонке 4/3 обрезается по бокам: смещаем окно правее,
   иначе задняя часть кузова уезжает за край. */
.photo--drive { aspect-ratio: 4 / 3; object-position: 66% 50%; }


.rows { margin: 0; display: flex; flex-direction: column; }
.row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}
.row dt { font-size: 14px; color: var(--muted-3); }
.row dd { margin: 0; font-size: 15px; font-weight: 700; }

/* интерьер: главное фото и миниатюры */
.block__lead {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  flex-wrap: wrap;
}
.block__lead > div { display: flex; flex-direction: column; gap: 12px; }
.block__lead-text {
  flex: 1 1 320px;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

.gallery {
  display: grid;
  grid-template-columns: 2fr minmax(0, 1fr);
  gap: 12px;
}
.gallery__main {
  position: relative;
  border-radius: var(--r-media);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--fill);
}
.gal {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s;
}
.gal.is-on { opacity: 1; }
.gal img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gallery__thumbs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.thumb {
  flex: 1 1 0;
  min-height: 62px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--fill);
  overflow: hidden;
  filter: grayscale(1);
  transition: filter 0.2s, border-color 0.2s;
}
.thumb picture { display: block; width: 100%; height: 100%; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb:hover { filter: grayscale(0.3); }
.thumb[aria-pressed='true'] {
  border: 2px solid var(--red);
  filter: none;
}

/* комплектации */
.trims {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.trim {
  border: 1px solid var(--line);
  border-radius: var(--r-media);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.trim__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}
.trim__name { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.trim__list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.dot-btn {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
}

/* ─── первый экран внутренних страниц ───────────────────────────────── */
.acc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px) var(--pad);
}
.acc-hero__text { display: flex; flex-direction: column; gap: 16px; }
.acc-hero__title {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  line-height: 1.04;
}
.acc-hero__lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
  text-wrap: pretty;
}
.acc-hero__media { min-width: 0; }
.photo--acc { aspect-ratio: 3 / 2; }

/* текущий статус проекта — вместо фотографии */
.status {
  border: 1px solid var(--line);
  border-radius: var(--r-media);
  padding: clamp(20px, 2.4vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.status__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-3);
}
.status__value {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.status__note {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-2);
  text-wrap: pretty;
}

/* ─── разделы аксессуаров ───────────────────────────────────────────── */
.acc {
  padding: 0 var(--pad) clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--hair);
  padding-top: clamp(28px, 3.4vw, 40px);
}
.acc__title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  padding-bottom: 18px;
}
/* Шесть карточек: по три в ряд ложатся ровно, по четыре — дают
   рваный второй ряд из двух. */
.acc__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.acc-card {
  border: 1px solid var(--line);
  border-radius: var(--r-media);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.acc-card .chip { width: 30px; height: 30px; }
.acc-card__title { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.acc-card__text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted-2);
  text-wrap: pretty;
}
.acc-card__list {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}
.acc-card__list li::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 9px;
  border-radius: 999px;
  background: var(--red);
  vertical-align: 3px;
}

/* ─── таймлайн проекта ──────────────────────────────────────────────── */
.tl {
  margin: 0;
  padding: 0 0 0 26px;
  list-style: none;
  border-left: 2px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.tl__item { position: relative; display: flex; flex-direction: column; gap: 6px; }
.tl__item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--card);
  border: 2px solid var(--line);
}
.tl__item.is-done::before { background: var(--muted-4); border-color: var(--muted-4); }
.tl__item.is-now::before {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--red) 20%, transparent);
}
.tl__state {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-4);
}
.tl__item.is-now .tl__state { color: var(--red); }
.tl__title { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.tl__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-2);
  max-width: 62ch;
  text-wrap: pretty;
}

/* ─── чаты в Telegram ───────────────────────────────────────────────── */
.chats {
  border-top: 1px solid var(--hair);
  padding: clamp(28px, 3.4vw, 40px) var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
}
.chats__title { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; }
.chats__note {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-2);
  max-width: 44ch;
  text-wrap: pretty;
}
.chats__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.chat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 16px 18px;
  color: var(--ink);
}
.chat:hover { border-color: var(--red); color: var(--ink); }
.chat__name { font-size: 15px; font-weight: 700; }
.chat .dot-btn { grid-row: 1 / 3; grid-column: 2; }
.chat__note { grid-column: 1; font-size: 13px; color: var(--muted-3); }
.chat__note:empty { display: none; }

/* ─── подвал ────────────────────────────────────────────────────────── */
.site-footer {
  padding: 32px var(--pad);
  border-top: 1px solid var(--hair);
}
.site-footer__cols {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  padding-bottom: 24px;
}
.site-footer__note {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted-3);
  max-width: 40ch;
}
.site-footer__nav { display: flex; flex-direction: column; gap: 7px; }
.site-footer__nav a { font-size: 13px; font-weight: 600; color: var(--muted); }
.site-footer__nav a:hover { color: var(--red); }

.site-footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--muted-4);
}

/* ─── меньше 1120: правая колонка уходит под сцену ──────────────────── */
@media (max-width: 1119px) {
  .conf {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .acc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .conf__info {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .conf__info > * { flex: 1 1 240px; }
  .specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .block,
  .block--wide { grid-template-columns: 96px minmax(0, 1fr); }
  .block__media {
    grid-column: 2;
    padding: 0 var(--pad) 40px 0;
  }
  .block__num { padding: 32px 0; font-size: 38px; }
}

/* ─── меньше 860: одна колонка ──────────────────────────────────────── */
@media (max-width: 859px) {
  .site-header { flex-wrap: wrap; gap: 10px; }
  .burger {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    color: var(--muted);
  }
  .nav {
    order: 5;
    flex-basis: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
  }
  .nav.is-open { display: flex; }
  .nav .pill { text-align: center; }

  .conf {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .cats {
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 calc(-1 * var(--pad));
    padding: 2px var(--pad);
  }
  .cats::-webkit-scrollbar { display: none; }
  .cats .pill { width: auto; }
  .conf__info { flex-direction: column; }
  /* базис 240px был шириной в строке, в колонке он растянул бы карточки
     по высоте — возвращаем высоту по содержимому */
  .conf__info > * { flex: 0 0 auto; }

  .highlights__head { padding-bottom: 16px; }
  .colors { margin-left: 0; flex-basis: 100%; }
  .highlights__body { grid-template-columns: minmax(0, 1fr); }
    .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .block,
  .block--wide {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 var(--pad);
  }
  .block__num {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 28px 0 0;
    font-size: 34px;
  }
  .block__text { padding: 20px 0 32px; }
  .block__media { grid-column: 1; padding: 0 0 32px; }
  .photo--drive { aspect-ratio: 16 / 10; }

  .gallery { grid-template-columns: minmax(0, 1fr); }
  .gallery__thumbs { flex-direction: row; }
  .thumb { min-height: 0; aspect-ratio: 3 / 2; }

  .trims { grid-template-columns: minmax(0, 1fr); }

  .site-footer__cols { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .acc-hero { grid-template-columns: minmax(0, 1fr); }
  .acc__grid { grid-template-columns: minmax(0, 1fr); }
  .chats { grid-template-columns: minmax(0, 1fr); }
}

/* ─── меньше 620: подписи точек прячем, остаются метки ──────────────── */
@media (max-width: 619px) {
  /* у края кадра подписям уже не хватает места — остаются точки,
     а читать плюсы можно списком под пилюлями */
  .callout, .leaders { display: none; }
  .specs { grid-template-columns: minmax(0, 1fr); }
  .spec { min-height: 0; }
  .block__lead { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}
