/* Meridian Motors - prototyp. Minimalizm w stylu Tesli: biel, dużo powietrza, jeden akcent, cienka typografia.
   Wszystkie strony ładują ten plik. Świadomie jeden, jasny motyw. */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f4f4;
  --ink: #171a20;
  --ink-2: #5c5e62;
  --ink-3: #8e8e8e;
  --line: #e4e4e4;
  --accent: #3e6ae1;
  --accent-ink: #ffffff;
  --ok: #1f7a3d;
  --warn: #b26a00;
  --bad: #b42318;
  --r: 4px;
  --maxw: 1200px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --font: "Outfit", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-weight: 400; font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.section { padding-block: clamp(40px, 7vw, 96px); }
.soft { background: var(--bg-soft); }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.caps { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 24px; border-radius: var(--r); border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 500; font-size: 14px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: #3457b8; border-color: #3457b8; }
.btn.alt { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn.alt:hover { background: var(--ink); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.card.flat { border: 0; background: var(--bg-soft); }
.tag { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 99px; background: var(--bg-soft); color: var(--ink-2); }
.tag.ok { color: var(--ok); background: #e6f4ea; } .tag.warn { color: var(--warn); background: #fdf1dc; } .tag.bad { color: var(--bad); background: #fde8e6; }

label.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); }
input, select, textarea { font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; min-height: 42px; width: 100%; }
input[type=range] { padding: 0; min-height: 0; accent-color: var(--accent); }

.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.seg button { font: inherit; font-size: 14px; background: #fff; color: var(--ink-2); border: 0; padding: 9px 16px; cursor: pointer; }
.seg button[aria-pressed=true] { background: var(--ink); color: #fff; }

table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-weight: 500; color: var(--ink-2); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.scrollx { overflow-x: auto; }

/* nawigacja */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.nav.sc { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 16px; }
.brand { font-weight: 600; letter-spacing: 0.22em; font-size: 14px; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav li a { display: block; padding: 6px 10px; border-radius: var(--r); font-size: 14px; font-weight: 500; }
.nav li a:hover, .nav li a[aria-current=page] { background: var(--bg-soft); }
@media (max-width: 820px) { .nav .wrap { flex-wrap: wrap; padding-block: 8px; } .nav ul { overflow-x: auto; flex-wrap: nowrap; width: 100%; padding-bottom: 4px; } .nav li a { white-space: nowrap; } }
.foot { padding-block: 40px; color: var(--ink-2); font-size: 13px; border-top: 1px solid var(--line); }
.demo-flag { background: var(--bg-soft); color: var(--ink-2); font-size: 12px; text-align: center; padding: 6px 12px; }

.hero { min-height: min(78vh, 640px); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 16px; padding-block: 56px; }
.hero p { color: var(--ink-2); max-width: 36rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 16px; text-align: center; }
.stats b { display: block; font-size: 1.6rem; font-weight: 500; }
.stats span { font-size: 13px; color: var(--ink-2); }
.price { font-size: 1.25rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.car { background: var(--bg-soft); border-radius: var(--r); display: flex; align-items: center; justify-content: center; padding: 16px; aspect-ratio: 16 / 9; }
.car svg { width: 100%; height: auto; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.ph { display: block; aspect-ratio: 16/10; background: var(--bg-soft); overflow: hidden; border-radius: var(--r); }
.ph img, .ph svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph svg { object-fit: contain; padding: 6% 8%; }
.code { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: #f7f7f8; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; overflow-x: auto; white-space: pre; }
