/* ============================================================
   Çukurova 884 — лендинг. Дизайн-токены.
   Один акцент: индустриальный янтарь (техника в кадре жёлтая).
   ============================================================ */

:root {
  --hue: 68;

  /* Акцент */
  --primary: oklch(70% 0.17 var(--hue));
  --primary-hover: oklch(62% 0.18 var(--hue));
  --primary-text: oklch(17% 0.02 var(--hue));
  --primary-soft: oklch(96% 0.04 var(--hue));
  --primary-deep: oklch(45% 0.13 var(--hue));

  /* Поверхности */
  --bg: oklch(99% 0.002 var(--hue));
  --bg-subtle: oklch(96.5% 0.005 var(--hue));
  --bg-dark: oklch(20% 0.012 var(--hue));
  --bg-darker: oklch(15% 0.01 var(--hue));
  --surface: oklch(100% 0 0);

  /* Линии */
  --border: oklch(89% 0.007 var(--hue));
  --border-strong: oklch(78% 0.01 var(--hue));
  --on-dark-border: oklch(100% 0 0 / 0.14);

  /* Текст */
  --text: oklch(22% 0.012 var(--hue));
  --text-muted: oklch(47% 0.01 var(--hue));
  --text-invert: oklch(98% 0.003 var(--hue));
  --text-invert-muted: oklch(72% 0.012 var(--hue));

  /* Шрифты */
  --font-display: "Onest", "Inter", system-ui, sans-serif;
  --font-body: "Onest", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  /* Шкала кеглей — только эти значения */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.3125rem;
  --fs-xl: 1.625rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: 3.25rem;
  --fs-5xl: 4rem;

  /* Отступы — сетка 8 */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 2.5rem;
  --sp-8: 3rem;
  --sp-9: 4rem;
  --sp-10: 5rem;
  --sp-11: 6rem;
  --sp-12: 8rem;

  /* Радиусы — одна система */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 18px;
  --r-xl: 28px;
  --r-full: 999px;

  /* Тени */
  --shadow-sm: 0 1px 2px oklch(22% 0.01 var(--hue) / 0.05);
  --shadow-md: 0 6px 24px oklch(22% 0.01 var(--hue) / 0.08);
  --shadow-lg: 0 20px 60px oklch(22% 0.01 var(--hue) / 0.14);

  /* Движение — 2 длительности */
  --dur-micro: 160ms;
  --dur-base: 380ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* КАРКАС — по стандартам:
     контейнер 1100–1300px (Anticode, SubUX, NICE=1170): берём 1200px
     мера чтения 60–75 символов (Baymard, WCAG 1.4.8 AAA ≤80): задаётся в ch
     на широких мониторах расширяем контейнер до 1280, но текст остаётся узким */
  --container: 1200px;
  --container-wide: 1280px;
  --measure: 68ch;          /* абзацы */
  --measure-lead: 52ch;     /* лид-абзацы крупнее — короче мера */
  --header-h: 68px;
}

/* ============================================================
   Сброс
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--sp-4));
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv01";
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
}

h1 { font-size: clamp(var(--fs-2xl), 1rem + 3.6vw, var(--fs-5xl)); line-height: 1.04; }
h2 { font-size: clamp(var(--fs-xl), 1rem + 2vw, var(--fs-3xl)); }
h3 { font-size: var(--fs-md); letter-spacing: -0.01em; }

p { margin: 0 0 var(--sp-4); max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.15em; }
li { margin-bottom: var(--sp-2); }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--primary); color: var(--primary-text); }

/* ============================================================
   Утилиты
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.section { padding-block: var(--sp-10); }
.section--subtle { background: var(--bg-subtle); }
.section--dark { background: var(--bg-dark); color: var(--text-invert); }
.section--dark h2 { color: var(--text-invert); }

.muted { color: var(--text-muted); }
.section--dark .muted { color: var(--text-invert-muted); }

.label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-deep);
  margin-bottom: var(--sp-4);
}
.label::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--primary);
  flex: none;
}
.section--dark .label { color: var(--primary); }

.lead {
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: var(--measure-lead);
}
.section--dark .lead { color: var(--text-invert-muted); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  visibility: hidden;
}
.visually-hidden:focus {
  position: fixed;
  width: auto; height: auto;
  min-height: 48px;
  top: var(--sp-3); left: var(--sp-3);
  margin: 0; padding: var(--sp-3) var(--sp-5);
  clip-path: none;
  visibility: visible;
  background: var(--primary);
  color: var(--primary-text);
  font-weight: 600;
  border-radius: var(--r-md);
  z-index: 400;
}

/* ============================================================
   Кнопки
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 52px;
  padding: var(--sp-3) var(--sp-6);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease),
              border-color var(--dur-micro) var(--ease),
              color var(--dur-micro) var(--ease),
              transform var(--dur-micro) var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--primary);
  color: var(--primary-text);
  border-color: var(--primary);
}
.btn--primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--primary-text);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--outline:hover {
  background: var(--bg-subtle);
  border-color: var(--text);
}

.btn--on-dark {
  background: transparent;
  color: var(--text-invert);
  border-color: oklch(100% 0 0 / 0.32);
}
.btn--on-dark:hover {
  background: oklch(100% 0 0 / 0.1);
  border-color: oklch(100% 0 0 / 0.6);
  color: var(--text-invert);
}

.btn--lg { min-height: 60px; padding: var(--sp-4) var(--sp-7); font-size: var(--fs-md); }
.btn--block { width: 100%; }

/* ============================================================
   Шапка
   ============================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: oklch(99% 0.002 var(--hue) / 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  flex: none;
}
.logo__mark {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  background: var(--bg-dark);
  color: var(--primary);
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.04em;
  flex: none;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.logo__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-base);
  letter-spacing: -0.02em;
}
.logo__desc {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.2;
  max-width: 34ch;
}

.header__right {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-left: auto;
  flex: none;
}
.header__phone {
  display: inline-flex;
  flex-direction: column;
  text-align: right;
  text-decoration: none;
  justify-content: center;
  min-height: 44px;
}
.header__phone-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-base);
  letter-spacing: -0.01em;
}
.header__phone-note {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  background: var(--bg-dark);
  color: var(--text-invert);
  overflow: clip;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: var(--sp-8);
  align-items: start;
  padding-block: var(--sp-8) var(--sp-7);
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid oklch(100% 0 0 / 0.22);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--sp-4);
}
.hero__status::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px oklch(70% 0.17 var(--hue) / 0.28);
  flex: none;
}

.hero h1 {
  color: var(--text-invert);
  margin-bottom: var(--sp-4);
}
.hero h1 em {
  font-style: normal;
  color: var(--primary);
}

/* Цена в hero — главное число сделки */
/* Расчёт выгоды в hero: три числа рядом */
.hero__calc {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  margin: 0 0 var(--sp-5);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  background: oklch(100% 0 0 / 0.06);
  border: 1px solid var(--on-dark-border);
  list-style: none;
}
.hero__calc > div { margin: 0; }
.hero__calc dt {
  font-size: var(--fs-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: oklch(80% 0.012 var(--hue));
  margin-bottom: 2px;
}
.hero__calc dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-base);
  letter-spacing: -0.01em;
  color: var(--text-invert);
  white-space: nowrap;
}
.hero__calc-save dd { color: var(--primary); }

.hero__trust {
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--text-invert-muted);
  margin: 0;
  max-width: 46ch;
}

.hero__sub {
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--text-invert-muted);
  max-width: 44ch;
  margin-bottom: var(--sp-4);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--on-dark-border);
  list-style: none;
  margin: 0;
  padding-left: 0;
}
.hero__facts li { margin: 0; }
.hero__fact-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-xl);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text-invert);
}
.hero__fact-value small {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-invert-muted);
}
.hero__fact-label {
  font-size: var(--fs-xs);
  color: var(--text-invert-muted);
  margin-top: var(--sp-1);
  line-height: 1.3;
}

/* Правая часть: фото + плашка экономии */
.hero__media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-darker);
  box-shadow: var(--shadow-lg);
  margin-top: var(--sp-4);
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero__saving {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-3);
  margin-top: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: oklch(100% 0 0 / 0.06);
  border: 1px solid var(--on-dark-border);
  border-left: 2px solid var(--primary);
  border-radius: var(--r-md);
}
.hero__saving-label {
  font-size: var(--fs-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-invert-muted);
  margin: 0;
}
.hero__saving-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-lg);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--primary);
}
.hero__saving-note {
  font-size: var(--fs-xs);
  color: var(--text-invert-muted);
  margin: 0;
  line-height: 1.3;
}

/* ============================================================
   Полоса аргументов под hero
   ============================================================ */

.stripe {
  background: var(--bg-darker);
  border-top: 1px solid oklch(100% 0 0 / 0.08);
}
.stripe__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-5);
  padding-block: var(--sp-5);
  list-style: none;
  margin: 0;
  padding-left: 0;
}
.stripe__grid li { margin: 0; }
.stripe__item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
}
.stripe__item svg {
  flex: none;
  color: var(--primary);
  margin-top: 3px;
}
.stripe__title {
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-invert);
}
.stripe__desc {
  font-size: var(--fs-xs);
  color: var(--text-invert-muted);
  margin-top: 2px;
  line-height: 1.35;
}

/* ============================================================
   Блок экономии: сравнение
   ============================================================ */

.compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-5);
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}
.price-card--accent {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  color: var(--text-invert);
}
.price-card__tag {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}
.price-card--accent .price-card__tag { color: var(--primary); }
.price-card__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(var(--fs-2xl), 1.4rem + 1.6vw, var(--fs-4xl));
  letter-spacing: -0.04em;
  line-height: 1;
}
.price-card__note {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-top: var(--sp-3);
}
.price-card--accent .price-card__note { color: var(--text-invert-muted); }

.price-card__meta {
  margin-top: auto;
  padding-top: var(--sp-5);
  display: grid;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
}
.price-card__meta li {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  margin: 0;
  padding-block: var(--sp-2);
  border-bottom: 1px solid var(--border);
  list-style: none;
}
.price-card--accent .price-card__meta li { border-color: var(--on-dark-border); }
.price-card__meta li:last-child { border-bottom: 0; }
.price-card__meta .k { color: var(--text-muted); }
.price-card--accent .price-card__meta .k { color: var(--text-invert-muted); }
.price-card__meta .v { font-weight: 600; text-align: right; }

.saving-bar {
  margin-top: var(--sp-6);
  padding: var(--sp-5) var(--sp-6);
  border-radius: var(--r-lg);
  background: var(--primary-soft);
  border: 1px solid oklch(88% 0.06 var(--hue));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.saving-bar__text {
  font-size: var(--fs-md);
  font-weight: 600;
  color: oklch(28% 0.06 var(--hue));
  margin: 0;
}
.saving-bar__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-2xl);
  letter-spacing: -0.03em;
  color: var(--primary-deep);
  white-space: nowrap;
}

/* ============================================================
   Компоненты мировых производителей
   ============================================================ */

.parts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--sp-4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.parts li { margin: 0; }

.part {
  height: 100%;
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color var(--dur-micro) var(--ease);
}
.part:hover { border-color: var(--border-strong); }

.part__origin {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-deep);
  background: var(--primary-soft);
  padding: 3px 10px;
  border-radius: var(--r-sm);
  margin-bottom: var(--sp-4);
}
.part__name {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 var(--sp-2);
}
.part__desc {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ============================================================
   Универсальность: машина вместо трёх
   ============================================================ */

.roles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--sp-4);
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: role;
}
.roles li { margin: 0; counter-increment: role; }

.role {
  height: 100%;
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  background: oklch(100% 0 0 / 0.05);
  border: 1px solid var(--on-dark-border);
}
.role__num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-3);
}
.role__num::before { content: "0" counter(role) " / "; opacity: 0.6; }
.role h3 {
  color: var(--text-invert);
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-2);
}
.role p {
  font-size: var(--fs-sm);
  color: var(--text-invert-muted);
  margin: 0;
  line-height: 1.5;
}

/* ============================================================
   Таблица характеристик
   ============================================================ */

.specs-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-7);
}

.specs-group__title {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}
.specs-group__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.specs-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
  gap: 0 var(--sp-6);
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 1040px;
}
.specs-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-3);
  margin: 0;
  padding-block: var(--sp-2);
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-xs);
}
.specs-list .k { color: var(--text-muted); }
.specs-list .v {
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ============================================================
   Состояние: честный разбор
   ============================================================ */

.condition {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (max-width: 720px) {
  .condition { grid-template-columns: 1fr; }
}
.condition li { margin: 0; }

.cond {
  height: 100%;
  padding: var(--sp-5) var(--sp-6);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}
.cond__head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.cond__head svg { flex: none; }
.cond--good .cond__head svg { color: oklch(52% 0.14 150); }
.cond--note .cond__head svg { color: oklch(62% 0.14 72); }
.cond__title {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 700;
  margin: 0;
}
.cond p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ============================================================
   Галерея
   ============================================================ */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-3);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.gallery li { margin: 0; }

.gallery__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-subtle);
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  transition: border-color var(--dur-micro) var(--ease);
}
.gallery__btn:hover { border-color: var(--primary); }
.gallery__btn img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ============================================================
   Рынок / контекст цен
   ============================================================ */

.market {
  width: 100%;
  max-width: 880px;
  border-collapse: collapse;
  font-size: var(--fs-xs);
  table-layout: fixed;
}
.market th, .market td {
  padding: var(--sp-2) var(--sp-3);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.market th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
}
.market td:last-child, .market th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.market tr:last-child td { border-bottom: 0; }
.market__ours {
  background: var(--primary-soft);
  font-weight: 600;
}
.market__ours td { border-color: oklch(88% 0.06 var(--hue)); }

/* ============================================================
   Форма
   ============================================================ */

.lead-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: var(--sp-8);
  align-items: start;
}

.form-card {
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.form { display: grid; gap: var(--sp-4); }

.field { display: grid; gap: var(--sp-2); }
.field > label { font-size: var(--fs-sm); font-weight: 600; }
.field__hint { font-size: var(--fs-xs); color: var(--text-muted); font-weight: 400; }

.input, .textarea {
  width: 100%;
  min-height: 52px;
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  transition: border-color var(--dur-micro) var(--ease);
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px oklch(70% 0.17 var(--hue) / 0.22);
}
.field--error .input { border-color: oklch(52% 0.2 25); }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--text-muted);
  cursor: pointer;
  min-height: 24px;
}
.checkbox input {
  appearance: none;
  width: 24px; height: 24px;
  flex: none;
  margin: 0;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  background: var(--surface);
  cursor: pointer;
  position: relative;
}
.checkbox input:checked {
  background: var(--primary);
  border-color: var(--primary);
}
.checkbox input:checked::after {
  content: "";
  position: absolute;
  left: 9px; top: 4px;
  width: 5px; height: 11px;
  border: solid var(--primary-text);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.alert {
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  border: 1px solid;
}
.alert--ok {
  background: oklch(95% 0.045 150);
  border-color: oklch(82% 0.09 150);
  color: oklch(30% 0.09 150);
}
.alert--err {
  background: oklch(96% 0.03 25);
  border-color: oklch(84% 0.07 25);
  color: oklch(36% 0.13 25);
}

/* Контакты рядом с формой */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--sp-4);
}
.contact-list li {
  margin: 0;
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}
.contact-list svg { flex: none; color: var(--primary-deep); margin-top: 3px; }
.contact-list .k {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.contact-list .v {
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.35;
}
.contact-list a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}
.contact-list a:hover { color: var(--primary-deep); }

/* ============================================================
   FAQ
   ============================================================ */

.faq { display: grid; gap: 0; }

.faq__item {
  border-bottom: 1px solid var(--border);
}
.faq__item:first-child { border-top: 1px solid var(--border); }

.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  padding: var(--sp-5) 0;
  min-height: 56px;
  background: none;
  border: 0;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}
.faq__q:hover { color: var(--primary-deep); }
.faq__icon {
  flex: none;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  font-size: 0.95rem;
  line-height: 1;
  transition: transform var(--dur-micro) var(--ease),
              background-color var(--dur-micro) var(--ease);
}
.faq__q[aria-expanded="true"] .faq__icon {
  transform: rotate(45deg);
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-text);
}
.faq__a {
  padding-bottom: var(--sp-5);
  max-width: 66ch;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--text-muted);
}
.faq__a[hidden] { display: none; }

/* ============================================================
   Финальный CTA
   ============================================================ */

.final {
  background: var(--bg-darker);
  color: var(--text-invert);
  padding-block: var(--sp-11);
}
.final__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--sp-8);
  align-items: start;
}
.final h2 { color: var(--text-invert); margin-bottom: var(--sp-3); }
.final p { color: var(--text-invert-muted); margin: 0; max-width: 52ch; }

/* ============================================================
   Подвал
   ============================================================ */

.footer {
  background: var(--bg-darker);
  border-top: 1px solid oklch(100% 0 0 / 0.08);
  padding-block: var(--sp-7) var(--sp-6);
  font-size: var(--fs-sm);
  color: oklch(64% 0.01 var(--hue));
}
.footer .logo__name { color: var(--text-invert); }
.footer .logo__desc { color: oklch(60% 0.01 var(--hue)); }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: var(--sp-7);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid oklch(100% 0 0 / 0.08);
}
.footer h3 {
  color: var(--text-invert);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: var(--sp-2); }
.footer a {
  color: oklch(78% 0.01 var(--hue));
  text-decoration: none;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
}
.footer a:hover { color: var(--primary); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-6);
  justify-content: space-between;
  padding-top: var(--sp-5);
  font-size: var(--fs-xs);
  color: oklch(56% 0.01 var(--hue));
}

/* ============================================================
   Лайтбокс
   ============================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  place-items: center;
  background: oklch(10% 0.01 var(--hue) / 0.95);
  padding: var(--sp-5);
}
.lightbox.is-open { display: grid; }
.lightbox img {
  max-width: min(1200px, 94vw);
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--r-md);
}
.lightbox__close {
  position: absolute;
  top: var(--sp-5);
  right: var(--sp-5);
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  background: oklch(100% 0 0 / 0.12);
  border: 1px solid oklch(100% 0 0 / 0.28);
  border-radius: 50%;
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover { background: oklch(100% 0 0 / 0.22); }

/* ============================================================
   Sticky CTA на мобиле
   ============================================================ */

.sticky-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100;
  padding: var(--sp-3) var(--sp-4);
  background: oklch(99% 0.002 var(--hue) / 0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  gap: var(--sp-3);
}
.sticky-cta .btn { flex: 1; min-height: 48px; }
.sticky-cta .btn--outline { border-color: var(--border-strong); background: var(--bg-subtle); }

/* ============================================================
   Адаптив
   ============================================================ */

@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--sp-6); padding-block: var(--sp-8); }
  .hero__media { order: -1; aspect-ratio: 16 / 10; }
  .compare { grid-template-columns: 1fr; }
  .lead-block { grid-template-columns: 1fr; }
  .final__inner { grid-template-columns: 1fr; }
  .stripe__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .header__phone { display: none; }
  .logo__desc { display: none; }
  /* Кнопку в шапке убираем: её роль берёт sticky-CTA внизу */
  .header__right .btn { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
  .sticky-cta { display: flex; }
  body { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
}

/* На узких экранах компактнее hero */
@media (max-width: 480px) {
  .hero h1 { font-size: var(--fs-2xl); }
  .hero__calc { gap: var(--sp-2) var(--sp-4); }
  .hero__calc dd { font-size: var(--fs-sm); }
  .hero__trust { font-size: var(--fs-xs); }
}

@media (max-width: 640px) {
  :root { --sp-10: 3rem; --sp-9: 2.5rem; --sp-8: 2rem; --sp-11: 3.5rem; }
  .hero__facts { grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
  .hero__facts li:last-child { grid-column: 1 / -1; }
  .hero__saving { padding: var(--sp-3); gap: var(--sp-1) var(--sp-2); }
  .hero__saving-value { font-size: var(--fs-xl); }
  .hero__actions .btn { width: 100%; }
  .stripe__grid { grid-template-columns: 1fr; gap: var(--sp-4); }
  .footer__grid { grid-template-columns: 1fr; }
  .saving-bar { flex-direction: column; align-items: flex-start; }
  .specs-list { grid-template-columns: 1fr; }
  .form-card { padding: var(--sp-5); }
  .price-card { padding: var(--sp-5); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* Ключевые цифры над таблицей характеристик */
.keynums {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: var(--sp-4);
  list-style: none;
  margin: 0 0 var(--sp-8);
  padding: 0;
}
.keynums li {
  margin: 0;
  padding: var(--sp-5) var(--sp-4);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}
.keynum__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-2xl);
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--text);
}
.keynum__value small {
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-muted);
}
.keynum__label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: var(--sp-2);
  line-height: 1.3;
}


/* Таблица рынка: на узких экранах — горизонтальный скролл */
.market-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.market { min-width: 560px; }


/* Примечание под кнопкой формы */
.form-note {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin: 0;
  text-align: center;
}
.checkbox a {
  color: var(--primary-deep);
  display: inline;
  padding-block: 4px;
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* ============================================================
   Hero с вырезанным фото (прозрачный PNG на тёмном фоне)
   ============================================================ */

.hero__media--cutout {
  background: transparent;
  box-shadow: none;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  /* мягкое свечение под машиной, чтобы фон не выглядел плоским */
  position: relative;
}
.hero__media--cutout::before {
  content: none;   /* фото в рамке — свечение не нужно */
}
/* Фотография машины (не вырезка): обычное фото в скруглённой рамке.
   Свечение и drop-shadow от вырезки здесь не нужны — они дают грязный ореол. */
.hero__media--cutout img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  filter: brightness(1.04) contrast(1.03);
  box-shadow: 0 22px 48px oklch(0% 0 0 / 0.5);
}


/* Широкие мониторы: контейнер чуть шире, но мера строки остаётся читаемой */
@media (min-width: 1600px) {
  .container { max-width: var(--container-wide); }
  /* текстовые блоки держим узкими, тянется только сетка и медиа */
  .hero__grid { grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr); }
  .lead { max-width: 50ch; }
  .specs-block { max-width: 1180px; }
  .market-wrap { max-width: 940px; }
}


/* На мобиле последняя секция должна иметь запас под sticky-панель */
@media (max-width: 860px) {
  .section:last-of-type,
  #lead,
  #faq {
    padding-bottom: calc(var(--sp-9) + 88px + env(safe-area-inset-bottom, 0px));
  }
  /* hero тоже: CTA не должна прятаться под панелью */
  .hero { padding-bottom: calc(var(--sp-6) + 24px); }
}


/* ============================================================
   Математика ржавчины — снимаем возражение цифрами
   ============================================================ */

.rust-math {
  margin-top: var(--sp-8);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}

.rust-math__head {
  padding: var(--sp-5) var(--sp-6) var(--sp-4);
  border-bottom: 1px solid var(--border);
}
.rust-math__head h3 {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 var(--sp-2);
}
.rust-math__head p {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  max-width: 56ch;
}

.rust-math__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  table-layout: fixed;
}
.rust-math__table th,
.rust-math__table td {
  padding: var(--sp-3) var(--sp-6);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.rust-math__table th {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-subtle);
}
.rust-math__table th:last-child,
.rust-math__table td:last-child {
  text-align: right;
  width: 150px;
  font-variant-numeric: tabular-nums;
}
.rust-math__table tbody tr:last-child td { border-bottom: 0; }

.rust-math__total td {
  font-weight: 700;
  background: var(--bg-subtle);
  border-top: 2px solid var(--border-strong, var(--border));
}

.rust-math__compare {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  background: var(--surface-raised, var(--bg-subtle));
}
.rust-math__item {
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  border-right: 1px solid var(--border);
}
.rust-math__item:last-child { border-right: 0; }
.rust-math__label {
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.rust-math__value {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.rust-math__value--small { color: var(--text); }  /* кегль и цвет равные: акцент только на «доле» */
.rust-math__item--accent .rust-math__value { color: var(--primary); }

.rust-math__note {
  margin: 0;
  padding: var(--sp-5) var(--sp-6);
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: none;
}
.rust-math__note strong { color: var(--text); }

@media (max-width: 700px) {
  .rust-math__compare { grid-template-columns: 1fr; }
  .rust-math__item {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
  }
  .rust-math__item:last-child { border-bottom: 0; }
  .rust-math__value { font-size: var(--fs-lg); }
  .rust-math__table th, .rust-math__table td { padding: var(--sp-3) var(--sp-4); }
  .rust-math__head, .rust-math__note { padding-inline: var(--sp-4); }
}

/* ============================================================
   Официальные фото производителя
   ============================================================ */

.section--official { background: var(--bg-subtle); }

.official-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-5);
  max-width: 1080px;
}

.official-card {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.official-card--wide { grid-column: 1 / -1; }

.official-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.official-card--wide img { aspect-ratio: 16 / 9; }

.official-card figcaption {
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--text-muted);
}
.official-card figcaption strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: var(--sp-1);
}

.official-note {
  margin: var(--sp-6) 0 0;
  max-width: 70ch;
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--text-faint, var(--text-muted));
}

@media (max-width: 700px) {
  .official-grid { grid-template-columns: 1fr; gap: var(--sp-4); }
  .official-card--wide { grid-column: auto; }
  .official-card--wide img { aspect-ratio: 3 / 2; }
}


/* ============================================================
   Окупаемость — перевод цены в деньги за смену
   ============================================================ */

.payback-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
  max-width: 1080px;
}

.payback-card {
  padding: var(--sp-5);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.payback-card--accent {
  border-color: var(--primary);
  background: var(--primary-soft, var(--surface));
}

.payback-card__label {
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.payback-card__value {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.payback-card__value span {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
}
.payback-card--accent .payback-card__value { color: var(--primary); }

.payback-card p {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: none;
}

.payback-note {
  margin-top: var(--sp-6);
  max-width: 1080px;
  padding: var(--sp-5) var(--sp-6);
  border-left: 2px solid var(--primary);
  background: var(--bg-subtle);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.payback-note h3 {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 var(--sp-3);
}
.payback-note p {
  margin: 0 0 var(--sp-3);
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 72ch;
}
.payback-note p:last-child { margin-bottom: 0; }
.payback-note strong { color: var(--text); }

@media (max-width: 860px) {
  .payback-grid { grid-template-columns: 1fr; }
  .payback-card__value { font-size: var(--fs-xl); }
  .payback-note { padding: var(--sp-4); }
}


/* Компактная кнопка для инлайн-CTA */
.btn--sm {
  padding: var(--sp-2) var(--sp-5);
  font-size: var(--fs-sm);
  min-height: 44px;
  margin-top: var(--sp-1);
}


/* H1 с SEO-запросом + подзаголовок с моделью и ценой */
.hero__h1-sub {
  display: block;
  font-size: 0.52em;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-top: var(--sp-2);
  color: var(--text-invert-muted);
}
.hero__h1-sub em {
  font-style: normal;
  color: var(--primary);
  white-space: nowrap;
}

@media (max-width: 700px) {
  .hero__h1-sub { font-size: 0.46em; margin-top: var(--sp-1); }
}


/* H1 с SEO-запросом длиннее прежнего — уменьшаем кегль и межстрочный,
   чтобы hero влезал в первый экран ноутбука */
.hero h1 {
  font-size: clamp(1.75rem, 3.4vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;           /* ровный перенос: без «сирот» */
}

/* На узких телефонах (360 и меньше) длинное «Экскаватор-погрузчик»
   иначе разваливается на 3-4 строки — уменьшаем кегль по ширине экрана */
@media (max-width: 430px) {
  .hero h1 { font-size: clamp(1.45rem, 8.6vw, 2rem); }
}
.hero__h1-sub { font-size: 0.56em; margin-top: var(--sp-2); }

@media (min-width: 1200px) {
  .hero h1 { font-size: 3.1rem; }
}
