/* OmniCar.kz landing. Tokens from omnicar/DESIGN.md */
:root {
  --asphalt: #1B2430;
  --signal: #FFC20E;
  --bg: #F2F4F6;
  --surface: #FFFFFF;
  --alt: #E8EBEF;
  --line: #DDE2E8;
  --text: #1B2430;
  --muted: #4A5563;
  --link: #006F8C;       /* sky, darkened to pass 4.5:1 on text */
  --green: #0F7A41;
  --green-soft: #DDF2E6;
  --tile: #E8EBEF;
  --focus: #0086A8;
  --font-head: "Unbounded", Roboto, Arial, sans-serif;
  --font-text: "Onest", Roboto, Arial, system-ui, sans-serif;
  --r-card: 14px;
  --r-ctl: 10px;
  --r-plate: 6px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11161C;
    --surface: #1A222C;
    --alt: #161D25;
    --line: #2C3642;
    --text: #E8ECF1;
    --muted: #A3AEBB;
    --link: #4CC3E0;
    --green: #4CC985;
    --green-soft: #16352A;
    --tile: #222C38;
    --focus: #4CC3E0;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font-text);
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 900px) { .wrap { padding: 0 24px; } }

.skip { position: absolute; left: 16px; top: -60px; background: var(--surface); color: var(--text); padding: 12px 16px; border-radius: var(--r-ctl); z-index: 10; }
.skip:focus { top: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 18px;
  border-radius: var(--r-ctl); border: 1.5px solid transparent;
  font: 600 0.9375rem/1.2 var(--font-text); text-decoration: none; text-align: center;
}
.btn-primary { background: var(--signal); color: var(--asphalt); }
.btn-primary:hover { background: #FFCF45; }
.btn-outline { border-color: var(--line); color: var(--text); background: transparent; }
.btn-outline:hover { background: var(--tile); }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1.0625rem; }

/* Header */
.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.top-in { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-height: 44px; }
.mark { display: inline-flex; }
.brand-name { font: 700 1.1875rem/1 var(--font-head); }
.nav { display: none; margin-left: 20px; gap: 4px; }
.nav a { color: var(--text); text-decoration: none; padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; border-radius: var(--r-ctl); font-weight: 500; }
.nav a:hover { background: var(--tile); }
.top-actions { margin-left: auto; display: flex; gap: 8px; }
.top-catalog { display: none; }
@media (max-width: 420px) { .top-actions .btn { padding: 10px 12px; font-size: 0.875rem; } }
@media (min-width: 700px) { .top-catalog { display: inline-flex; } }
@media (min-width: 900px) { .nav { display: flex; } }

/* Hero */
.hero { padding: 40px 0 56px; }
.hero-in { display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(1.625rem, 6vw, 2.75rem); max-width: 18em; }
.lead { margin-top: 20px; font-size: 1.0625rem; color: var(--muted); max-width: 38em; }
.hero-cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.note { color: var(--muted); font-size: 0.875rem; max-width: 20em; }
@media (min-width: 900px) {
  .hero { padding: 72px 0 88px; }
  .hero-in { grid-template-columns: 1.15fr 1fr; gap: 56px; }
}

/* Hero visual: the plate */
.hero-visual {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 24px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
}
.plate {
  display: inline-flex; align-items: stretch; max-width: 100%;
  background: #fff; border: 3px solid var(--asphalt); border-radius: var(--r-plate);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.0);
}
.plate-kz {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  width: 38px; background: #00AFCA; border-radius: 3px 0 0 3px; padding: 6px 0;
}
.plate-kz b { font: 700 0.75rem/1 var(--font-head); color: #fff; }
.plate-text {
  padding: 12px 14px; color: var(--asphalt);
  font: 600 clamp(0.9375rem, 4.6vw, 1.625rem)/1.1 var(--font-head);
  letter-spacing: 0.06em; white-space: nowrap; display: flex; align-items: center;
}
.visual-cap { color: var(--muted); font-size: 0.9375rem; max-width: 26em; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 12px; border-radius: var(--r-plate); background: var(--tile); color: var(--text);
  font-size: 0.9375rem; font-weight: 500;
}
.chip-fast { background: var(--green-soft); color: var(--green); font-weight: 600; }

/* The one orchestrated moment: chips arrive in turn on load */
@media (prefers-reduced-motion: no-preference) {
  .chip { animation: arrive 0.5s ease-out both; }
  .chip:nth-child(1) { animation-delay: 0.25s; }
  .chip:nth-child(2) { animation-delay: 0.4s; }
  .chip:nth-child(3) { animation-delay: 0.55s; }
  .chip:nth-child(4) { animation-delay: 0.7s; }
  .chip:nth-child(5) { animation-delay: 0.85s; }
}
@keyframes arrive { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Blocks */
.block { padding: 56px 0; }
.block-alt { background: var(--alt); border-block: 1px solid var(--line); }
.block h2, .closing h2 { font-size: clamp(1.375rem, 4.5vw, 2rem); max-width: 20em; }
@media (min-width: 900px) { .block { padding: 80px 0; } }

/* Facts */
.facts { margin: 32px 0 0; display: grid; gap: 16px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; }
.fact dt { font: 600 1.0625rem/1.3 var(--font-head); }
.fact dd { margin: 10px 0 0; color: var(--muted); }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(2, 1fr); } .fact:first-child { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .facts { grid-template-columns: repeat(3, 1fr); } .fact:first-child { grid-column: span 2; } }

/* Steps: a real sequence, so a numbered timeline */
.steps { list-style: none; margin: 32px 0 0; padding: 0; counter-reset: s; display: grid; gap: 0; max-width: 720px; }
.steps li { position: relative; counter-increment: s; padding: 0 0 28px 56px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1.5px solid var(--text); font: 600 0.9375rem/1 var(--font-head);
}
.steps li::after { content: ""; position: absolute; left: 19.5px; top: 44px; bottom: 4px; width: 1px; background: var(--line); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.0625rem; padding-top: 8px; }
.steps p { color: var(--muted); margin-top: 6px; }

/* Buyers */
.buyers { display: grid; gap: 28px; }
.buyers .btn { margin-top: 24px; }
.buyer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.buyer-list li { border-left: 3px solid var(--line); padding: 2px 0 2px 16px; color: var(--muted); }
.buyer-list strong { color: var(--text); font-weight: 600; }
@media (min-width: 900px) { .buyers { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }

/* FAQ */
.faq-wrap h2 { margin-bottom: 28px; }
.faq { display: grid; gap: 8px; max-width: 760px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
summary {
  cursor: pointer; list-style: none; min-height: 52px; padding: 14px 52px 14px 18px; position: relative;
  font-weight: 600; display: flex; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.2s;
}
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details p { padding: 0 18px 18px; color: var(--muted); max-width: 40em; }

/* Closing */
.closing { padding: 64px 0; }
.closing-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--muted); font-size: 0.9375rem; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.foot nav a { padding: 10px 8px; min-height: 44px; display: inline-flex; align-items: center; }
