:root {
  --bg: #0e0f12;
  --bg-2: #15171c;
  --bg-3: #1c1f26;
  --line: #2a2e38;
  --text: #e9eaee;
  --muted: #9aa0ad;
  --brand: #ff5a1f;
  --brand-2: #ffb020;
  --radius: 14px;
  --head: "Oswald", "Arial Narrow", "Segoe UI", sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 40px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 15, 18, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 64px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 22px/1 var(--head); letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; color: var(--text);
}
.logo svg { color: var(--brand); }
.logo b { color: var(--brand); font-weight: 600; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  padding: 8px 10px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none;
  transition: color .15s, background .15s;
}
.nav a:hover, .nav a.active { color: var(--text); background: var(--bg-3); }
.nav { margin-left: auto; }
.langs { order: 3; display: flex; flex: none; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.langs button {
  min-width: 32px; height: 28px; padding: 0 6px;
  border: 0; border-radius: 999px; background: none; color: var(--muted);
  font: 600 12px/1 var(--body); letter-spacing: .04em; cursor: pointer;
  transition: color .15s, background .15s;
}
.langs button:hover { color: var(--text); }
.langs button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--text); border-radius: 2px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: 60% 45%;
  transform: scale(1.04);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14,15,18,.94) 0%, rgba(14,15,18,.72) 42%, rgba(14,15,18,.15) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(14,15,18,0) 45%);
}
.hero-inner { position: relative; z-index: 1; padding: 120px 0 64px; }
.eyebrow {
  margin: 0 0 12px;
  font: 600 13px/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--brand);
}
.hero h1 { font-size: clamp(44px, 8vw, 96px); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
.hero h1 span { color: var(--brand); }
.lead { max-width: 620px; margin: 22px 0 30px; font-size: clamp(16px, 1.6vw, 19px); color: #cfd2da; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 10px;
  font: 600 15px/1 var(--body); text-decoration: none; transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #ff7140; }
.btn-ghost { border: 1px solid rgba(255,255,255,.3); color: var(--text); }
.btn-ghost:hover { border-color: #fff; }
.hero-stats {
  list-style: none; padding: 0; margin: 54px 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 860px;
}
.hero-stats li { border-left: 2px solid var(--brand); padding-left: 14px; }
.hero-stats b { display: block; font: 700 clamp(28px, 4vw, 44px)/1 var(--head); }
.hero-stats span { font-size: 13px; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section-dark { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-accent { background: linear-gradient(135deg, #2a1206 0%, #15171c 60%); border-block: 1px solid var(--line); }
.section h2 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 700; text-transform: uppercase; }
.section-lead { max-width: 760px; margin: 18px 0 0; font-size: 18px; color: var(--muted); }
.sub { margin: 64px 0 22px; font-size: 26px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.sub.first { margin-top: 36px; }
.note { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* ---------- top 5 ---------- */
.top-item { padding: 56px 0; }
.top-item:first-of-type { padding-top: 64px; }
.top-item.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.top-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 52px; align-items: center; }
.top-item.alt .top-photo { order: 2; }
.top-photo { position: relative; margin: 0; }
.top-photo img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.9), 0 0 0 1px var(--line);
}
.rank {
  position: absolute; top: -26px; left: -10px;
  font: 700 clamp(72px, 9vw, 120px)/1 var(--head);
  color: var(--accent);
  text-shadow: 0 6px 30px rgba(0,0,0,.7);
  pointer-events: none;
}
.badge {
  display: inline-block; margin: 0 0 14px; padding: 7px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  color: var(--accent);
  font: 600 12px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase;
}
.top-body h3 { font-size: clamp(30px, 3.8vw, 46px); font-weight: 700; text-transform: uppercase; margin-bottom: 16px; }
.top-body > p { color: #cdd0d8; }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 22px 0; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.specs div { background: var(--bg-3); padding: 12px 14px; }
.specs dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 4px 0 0; font: 600 15px/1.3 var(--body); }
.ticks { list-style: none; padding: 0; margin: 0 0 18px; }
.ticks li { position: relative; padding: 6px 0 6px 26px; color: #cdd0d8; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 12px; height: 2px; background: var(--accent); }
.fact { margin: 0; padding: 14px 16px; border-left: 3px solid var(--accent); background: var(--bg-3); border-radius: 0 10px 10px 0; font-size: 15px; }
.fact b { color: var(--accent); }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-3); font: 600 12px/1.3 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255,255,255,.02); }
.compare td:first-child { font-weight: 600; white-space: nowrap; }
.compare.plain { min-width: 480px; }
.compare.plain td:first-child { white-space: nowrap; }
.bar { display: block; height: 6px; width: var(--w); min-width: 6px; margin-bottom: 6px; border-radius: 3px; background: var(--c); }
.engines td:first-child { white-space: nowrap; }
.engines td { font-size: 15px; }

/* ---------- catalog ---------- */
.catalog-tools { display: flex; gap: 12px; flex-wrap: wrap; margin: 36px 0 16px; }
.catalog-tools input, .catalog-tools select {
  height: 48px; padding: 0 16px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  font: 15px var(--body);
}
.catalog-tools input { flex: 1 1 260px; }
.catalog-tools input:focus, .catalog-tools select:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button {
  padding: 9px 16px; border-radius: 999px;
  background: transparent; color: var(--muted);
  border: 1px solid var(--line);
  font: 500 14px var(--body); cursor: pointer; transition: all .15s;
}
.filters button:hover { color: var(--text); border-color: #4a5060; }
.filters button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.count { margin: 18px 0; font-size: 14px; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--c); }
.card-head {
  position: relative; padding: 18px 18px 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 30%, #15171c) 0%, #15171c 85%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.card-head::after {
  content: attr(data-brand);
  position: absolute; right: -6px; bottom: -18px;
  font: 700 58px/1 var(--head); text-transform: uppercase; white-space: nowrap;
  color: rgba(255,255,255,.05); pointer-events: none;
}
.card-cls { font: 600 11px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--c); }
.card h3 { margin-top: 8px; font-size: 22px; font-weight: 600; }
.card-brand { font-size: 13px; color: var(--muted); }
.card-body { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px 18px; flex: 1; }
.card-body p { margin: 0; font-size: 14.5px; color: #c6c9d2; flex: 1; }
.card-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.card-specs div { text-align: center; padding: 8px 4px; background: var(--bg); border-radius: 8px; }
.card-specs dt { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card-specs dd { margin: 2px 0 0; font: 600 16px/1.2 var(--head); }
.card-eng { font-size: 13px; color: var(--muted); }
.power { height: 4px; border-radius: 2px; background: var(--bg); overflow: hidden; }
.power i { display: block; height: 100%; background: var(--c); border-radius: 2px; }
.empty { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- tiles ---------- */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 18px; margin-top: 40px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2.wide { gap: 48px; margin-top: 8px; }
.sub + .grid-4, .sub + .grid-3 { margin-top: 0; }
.tile {
  padding: 24px; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column;
}
.section-dark .tile { background: var(--bg); }
.tile h4 { font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.tile.small h4 { font-size: 19px; }
.tile p { color: #c6c9d2; font-size: 15px; margin: 0; flex: 1; }
.tile b { color: var(--text); }
.tag { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--brand-2); }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 44px 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 118px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 46px; padding: 0 0 30px; }
.timeline li::before {
  content: ""; position: absolute; left: 112px; top: 8px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--bg); border: 3px solid var(--brand);
}
.timeline time { font: 700 22px/1.3 var(--head); color: var(--brand); text-align: right; }
.timeline h4 { font-size: 21px; font-weight: 600; margin-bottom: 4px; }
.timeline p { margin: 0; color: #c6c9d2; max-width: 720px; }

/* ---------- facts ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.facts div { padding: 24px; background: rgba(14,15,18,.6); border: 1px solid var(--line); border-radius: var(--radius); }
.facts b { display: block; font: 700 26px/1.15 var(--head); color: var(--brand-2); margin-bottom: 10px; }
.facts p { margin: 0; font-size: 15px; color: #cfd2da; }

/* ---------- lists ---------- */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 16px 50px; color: #c6c9d2; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: #fff; font: 700 16px var(--head);
}
.steps b, .checklist b { color: var(--text); }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line); color: #c6c9d2; }
.checklist li::before { content: "✓"; position: absolute; left: 2px; color: var(--brand); font-weight: 700; }

/* ---------- glossary ---------- */
.glossary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin: 40px 0 0; }
.glossary div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.glossary dt { font: 600 19px/1.2 var(--head); color: var(--brand-2); }
.glossary dd { margin: 6px 0 0; font-size: 15px; color: #c6c9d2; }

/* ---------- faq ---------- */
#faq h2 { margin-bottom: 32px; }
details { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); margin-bottom: 10px; }
summary { padding: 18px 50px 18px 20px; cursor: pointer; font-weight: 600; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font: 400 26px/1 var(--head); color: var(--brand); }
details[open] summary::after { content: "–"; }
details p { padding: 0 20px 20px; margin: 0; color: #c6c9d2; }

/* ---------- footer ---------- */
.footer { padding: 56px 0 28px; border-top: 1px solid var(--line); }
.footer-row { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-row p { max-width: 520px; margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 32px; align-content: start; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-nav a:hover { color: var(--text); }
.copy { text-align: center; margin: 40px 0 0; font-size: 13px; color: var(--muted); }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: #fff; text-decoration: none; font-size: 20px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.to-top.show { opacity: 1; pointer-events: auto; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0;
    display: none; flex-direction: column; gap: 0; padding: 8px 20px 16px; margin-left: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; font-size: 16px; }
  .langs { order: 0; margin-left: auto; }
  .header-row { gap: 10px; }
}
@media (max-width: 1080px) {
  .grid-4, .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .section { padding: 68px 0; }
  .top-grid { grid-template-columns: 1fr; gap: 28px; }
  .top-item.alt .top-photo { order: 0; }
  .grid-3, .glossary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2.wide { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 620px) {
  .wrap, .wrap.narrow { width: calc(100% - 32px); }
  .logo { font-size: 19px; gap: 6px; }
  .logo svg { width: 22px; height: 22px; }
  .langs button { min-width: 28px; padding: 0 4px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2, .grid-3, .grid-4, .facts, .glossary { grid-template-columns: 1fr; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rank { left: 6px; top: -22px; }
  .timeline::before { left: 5px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; padding-left: 28px; }
  .timeline li::before { left: -1px; }
  .timeline time { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
