@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-400.woff2?v=2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-500.woff2?v=2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-600.woff2?v=2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-600.woff2?v=2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #121418;
  --bg-2: #191d22;
  --bg-3: #22282e;
  --line: #343b43;
  --text: #ece8e1;
  --muted: #b4bdc6;
  --faint: #8e99a3;
  --accent: #e24b38;
  --accent-ink: #1a0d0b;
  --danger: #ffc7be;
  --ok: #d5ead8;
  --nav: 64px;
  --max: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: "Barlow", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
.hero > *,
.feature-photo,
.engine-tile,
.catalog a,
.detail-visual,
.rail { min-width: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 12px;
  z-index: 5;
}
.skip:focus { top: 8px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 4;
  height: var(--nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 28px;
  background: rgb(18 20 24 / 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
  gap: 3px;
}
.brand strong {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 22px;
}
.brand span {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
}
.nav-links a[aria-current="page"],
.nav-links a:hover { color: var(--text); }
.nav-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--text);
  height: 40px;
  padding: 0 12px;
  flex: none;
}
@media (min-width: 901px) {
  .nav-toggle { display: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  text-decoration: none;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn.ghost:hover { border-color: var(--text); }

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}
.section { padding: 72px 0; }
.section h2 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin: 0 0 18px;
}

.hero {
  min-height: calc(100dvh - var(--nav));
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 28px;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 36px;
}
.hero h1 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: clamp(3.1rem, 6vw, 5.4rem);
  line-height: 0.9;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}
.hero p {
  max-width: 38ch;
  color: var(--muted);
  margin: 0 0 22px;
  font-size: 18px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual {
  background: var(--bg-2);
  min-height: 460px;
  height: min(68dvh, 640px);
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rail-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
}
.rail-head p { margin: 0; color: var(--muted); max-width: 46ch; }
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 26%);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}
.engine-tile {
  scroll-snap-align: start;
  text-decoration: none;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  min-height: 320px;
}
.engine-tile img {
  height: 190px;
  width: 100%;
  object-fit: contain;
  background: #101316;
  padding: 12px;
}
.engine-tile div { padding: 14px 14px 16px; }
.engine-tile strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.engine-tile em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  color: var(--muted);
  font-size: 14px;
}
.price { color: var(--accent); font-weight: 600; }

.feature { background: var(--bg-2); }
.feature-photo {
  background: #101316;
  min-height: 420px;
  display: grid;
  place-items: center;
  padding: 28px;
}
.feature-photo img {
  width: min(920px, 100%);
  max-height: 520px;
  object-fit: contain;
}
.stats {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stats a, .stats div { padding: 22px 18px; }
.stats strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
}
.stats span { color: var(--muted); font-size: 14px; }
.stats a { text-decoration: none; border-left: 1px solid var(--line); }
.stats a:first-child { border-left: 0; }

.steps { display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step h3 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 28px;
  font-weight: 600;
}
.step p { margin: 0; color: var(--muted); max-width: 62ch; }

.company-band {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}
.company-band p { color: var(--muted); max-width: 62ch; }
.address {
  background: var(--bg-3);
  padding: 22px;
}
.address p { margin: 0 0 10px; color: var(--text); }
.address a { color: var(--accent); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.site-footer a { color: var(--text); }

.page-intro { padding: 42px 0 10px; }
.page-intro h1 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(3rem, 6vw, 4.8rem);
  line-height: 0.92;
  margin: 0 0 12px;
  font-weight: 600;
}
.page-intro p { margin: 0; color: var(--muted); max-width: 58ch; }

.catalog {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  padding-bottom: 72px;
}
.catalog a {
  text-decoration: none;
  background: var(--bg-2);
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.catalog a:nth-child(1) { grid-column: span 7; min-height: 460px; background: #101316; }
.catalog a:nth-child(2) { grid-column: span 5; min-height: 460px; }
.catalog a:nth-child(3),
.catalog a:nth-child(4),
.catalog a:nth-child(5) { grid-column: span 4; }
.catalog a:nth-child(6) { grid-column: span 6; background: #1b2420; }
.catalog a:nth-child(7),
.catalog a:nth-child(8) { grid-column: span 3; }
.catalog img {
  flex: 1;
  width: 100%;
  min-height: 180px;
  object-fit: contain;
  background: #101316;
  padding: 16px;
}
.catalog .meta { padding: 14px 16px 18px; }
.catalog strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 30px;
  font-weight: 600;
  display: block;
}
.catalog em { font-style: normal; color: var(--muted); }

.detail {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 36px;
  align-items: start;
  padding-bottom: 28px;
}
.detail-visual {
  position: sticky;
  top: calc(var(--nav) + 16px);
  background: #101316;
  padding: 20px;
}
.detail-visual img { width: 100%; max-height: 560px; object-fit: contain; }
.note { color: var(--faint); font-size: 14px; margin: 10px 0 0; }
.kicker {
  color: var(--muted);
  margin: 0 0 6px;
}
.detail h1 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(3rem, 5vw, 4.6rem);
  line-height: 0.92;
  margin: 0 0 8px;
  font-weight: 600;
}
.model-line { margin: 0 0 18px; color: var(--muted); }
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0 0 22px;
}
.metrics div { background: var(--bg-2); padding: 14px; }
.metrics strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 28px;
  line-height: 1;
  font-weight: 600;
}
.metrics span { color: var(--muted); font-size: 13px; }
.groups { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.group { border-top: 1px solid var(--line); padding-top: 10px; }
.group h2 {
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 8px;
  font-weight: 600;
}
.spec-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 10px;
  padding: 6px 0;
}
.spec-row dt { color: var(--muted); }
.spec-row dd { margin: 0; }
.pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 64px;
}
.pager a { color: var(--accent); }

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding-bottom: 64px;
}
.facts article { border-top: 1px solid var(--line); padding-top: 14px; }
.facts h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 36px;
  margin: 0 0 8px;
  font-weight: 600;
}
.facts p { color: var(--muted); margin: 0; }

.form-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: start;
  padding-bottom: 72px;
}
form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; }
.field input, .field select, .field textarea {
  background: #1a1f24;
  border: 1px solid #4a545e;
  padding: 12px 12px;
  border-radius: 0;
}
.field input::placeholder, .field textarea::placeholder { color: #b7c0c7; }
.field .err { color: var(--danger); min-height: 1.2em; font-size: 14px; }
.form-note { color: var(--muted); margin-top: 0; }
.success {
  display: none;
  background: #1c2a20;
  color: var(--ok);
  padding: 14px;
}
.success.show { display: block; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex !important; align-items: center; background: var(--bg-3); }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 0 12px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 28px; }
  .hero, .stats, .company-band, .detail, .facts, .form-grid, .groups, .metrics {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: calc(100dvh - var(--nav));
    padding-top: 12px;
    align-content: start;
  }
  .hero-visual { min-height: 0; height: 34dvh; }
  .hero h1 { font-size: 2.15rem; }
  .catalog a, .catalog a:nth-child(n) { grid-column: 1 / -1; min-height: 0; }
  .step { grid-template-columns: 1fr; gap: 4px; }
  .wrap, .hero { width: min(var(--max), calc(100% - 32px)); }
  .stats a, .stats div { border-left: 0; border-top: 1px solid var(--line); }
  .detail-visual { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:active { transform: none; }
  .nav { backdrop-filter: none; }
}
