/* GENERÁLT FÁJL — forrás: design/viago-mobility.html (py design/export_for_app.py) */
/* ============================================================
   VIAGO Mobility — tervezői token-rendszer
   Világos alap; a hero-sáv szándékosan sötét mindkét témában.
   ============================================================ */
/* A paletta a VIAGO logó két színéből származik:
   sötétkék #031D81 és világoskék #009BFC. A szövegszínek ezekből
   vannak sötétítve/világosítva, hogy megfeleljenek a kontrasztkövetelménynek. */
:root {
  --paper:      #F2F5FC;
  --surface:    #FFFFFF;
  --surface-2:  #E8EEFA;
  --line:       #D6DEF1;
  --line-firm:  #B7C5E1;
  --ink:        #08102E;
  --ink-muted:  #55618A;
  --ink-faint:  #8590B4;
  --accent:     #0B57C4;
  --accent-dim: #083F94;
  --accent-soft:#DEE9FB;
  --on-accent:  #FFFFFF;

  /* A sötét sáv tokenjei — mindkét témában azonosak.
     A --band a logó sötétkékjéből mélyítve, a --band-accent maga a logó kékje. */
  --band:       #05123F;
  --band-2:     #0C1F63;
  --band-line:  #17307E;
  --band-ink:   #EAF1FD;
  --band-muted: #98AAD4;
  --band-accent:#009BFC;

  /* A logó eredeti színei, ha pontosan azokra van szükség */
  --brand-navy: #031D81;
  --brand-blue: #009BFC;

  --ok:      #12704F;  --ok-soft:   #D7F0E5;
  --warn:    #8A5D07;  --warn-soft: #FAEBCD;
  --crit:    #A6382A;  --crit-soft: #F8DFDA;

  --radius:   14px;
  --radius-s: 9px;
  --shadow:   0 1px 2px rgba(10,26,46,.06), 0 8px 24px -12px rgba(10,26,46,.22);
  --shadow-lg:0 2px 6px rgba(10,26,46,.08), 0 26px 60px -28px rgba(10,26,46,.42);

  --font-display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --font-ui: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;

  --shell: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:      #050D26;
    --surface:    #0A1740;
    --surface-2:  #102054;
    --line:       #1B2F70;
    --line-firm:  #2A4499;
    --ink:        #E8F0FD;
    --ink-muted:  #9FB2DA;
    --ink-faint:  #7C8FBD;
    --accent:     #4FB4FF;
    --accent-dim: #8ACEFF;
    --accent-soft:#122A5C;
    --on-accent:  #04102E;
    --ok:      #6BD9AC;  --ok-soft:   #0E3A2B;
    --warn:    #F0C265;  --warn-soft: #3B2E0E;
    --crit:    #F2A093;  --crit-soft: #45201A;
    --shadow:   0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.7);
    --shadow-lg:0 2px 6px rgba(0,0,0,.45), 0 26px 60px -28px rgba(0,0,0,.85);
  }
}
:root[data-theme="dark"] {
  --paper:      #050D26;
  --surface:    #0A1740;
  --surface-2:  #102054;
  --line:       #1B2F70;
  --line-firm:  #2A4499;
  --ink:        #E8F0FD;
  --ink-muted:  #9FB2DA;
  --ink-faint:  #7C8FBD;
  --accent:     #4FB4FF;
  --accent-dim: #8ACEFF;
  --accent-soft:#122A5C;
  --on-accent:  #04102E;
  --ok:      #6BD9AC;  --ok-soft:   #0E3A2B;
  --warn:    #F0C265;  --warn-soft: #3B2E0E;
  --crit:    #F2A093;  --crit-soft: #45201A;
  --shadow:   0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.7);
  --shadow-lg:0 2px 6px rgba(0,0,0,.45), 0 26px 60px -28px rgba(0,0,0,.85);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.02em;
  text-wrap: balance;
  margin: 0;
}

a { color: var(--accent); text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dim); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

button { font: inherit; color: inherit; }

.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- Prototípus-sáv (ez a keret, nem a termék) ---------- */
.proto {
  position: sticky; top: 0; z-index: 60;
  background: #05101F;
  border-bottom: 1px solid #16304C;
  color: #C7D8EA;
}
.proto-in {
  max-width: var(--shell); margin: 0 auto; padding: 7px 20px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.proto-tag {
  font-size: 10.5px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  color: #6C88A6; border: 1px solid #1E3B5A; border-radius: 999px; padding: 3px 9px;
  white-space: nowrap;
}
.proto-nav { display: flex; gap: 2px; flex-wrap: wrap; }
.proto-nav button {
  background: none; border: 0; cursor: pointer;
  padding: 6px 11px; border-radius: 7px;
  font-size: 12.5px; font-weight: 500; color: #93AAC3;
}
.proto-nav button:hover { background: #10243B; color: #DCE9F6; }
.proto-nav button[aria-current="true"] { background: #1B3C61; color: #FFFFFF; }

/* ---------- Nagy logó (a választott „B” elrendezés) ----------
   Széles kijelzőn a logó a két felső sáv (prototípus-sáv + fejléc) teljes
   magasságában áll, a menük jobbra tolódnak. Keskeny kijelzőn nincs hely két
   sornyi logónak: ott a fejléc magasabb, és a logó benne nagyobb.
   FIGYELEM: az éles oldalon nem lesz prototípus-sáv — ott a logót egyetlen,
   magasabb fejléchez kell igazítani. */
@media (min-width: 921px) {
  .top .brand {
    position: absolute; z-index: 61; top: 10px;
    left: calc(max(0px, (100% - var(--shell)) / 2) + 20px);
  }
  .top .brand-logo { height: 89px !important; }
  /* nagyobb specificitás: a .top-in saját padding-rövidítése később jön */
  .proto .proto-in, .top .top-in { padding-left: 310px; }
}
@media (max-width: 920px) {
  .top-in { min-height: 96px; }
  .top .brand-logo { height: 60px !important; }
}

/* ---------- Fejléc ---------- */
.top {
  background: var(--band);
  color: var(--band-ink);
  border-bottom: 1px solid var(--band-line);
}
.top-in {
  max-width: var(--shell); margin: 0 auto; padding: 16px 20px;
  display: flex; align-items: center; gap: 26px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; flex: none; }
.brand svg { display: block; }
/* A negatív logóváltozat kerül ide: a sötétkék sávon fehér felirattal olvasható.
   max-width nélkül — flex konténerben az körkörös szélességszámítást okozna,
   és a kép 0 px szélesre esne össze. A szélességet a magasság + képarány adja. */
.brand-logo { display: block; width: auto; flex: none; }
.brand-text { font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em; color: #fff; }
.top nav { display: flex; gap: 20px; margin-left: 8px; }
.top nav a { color: var(--band-muted); font-size: 14px; font-weight: 500; text-decoration: none; }
.top nav a:hover { color: #fff; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
/* Keskeny kijelzőn a menüpontok külön sorba kerülnek, a telefonszám elrejtve —
   különben a nyelvváltó kilógna a képből. */
@media (max-width: 760px) {
  .top-in { flex-wrap: wrap; gap: 12px 16px; padding: 12px 16px; }
  .top nav { order: 3; width: 100%; margin-left: 0 !important; gap: 18px !important;
    overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .top nav a { font-size: 14px !important; white-space: nowrap; }
  .top a.wa { padding: 7px; }
  .top a.wa .wa-num { display: none; }
}

.lang {
  display: flex; align-items: center; gap: 1px;
  border: 1px solid var(--band-line); border-radius: 8px; padding: 2px; background: #071628;
}
.lang button {
  background: none; border: 0; cursor: pointer; border-radius: 6px;
  padding: 3px 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: var(--band-muted);
}
.lang button[aria-current="true"] { background: var(--band-2); color: #fff; }
.lang button:hover { color: #fff; }

.phone { font-family: var(--font-mono); font-size: 13px; color: var(--band-accent); white-space: nowrap; }
/* WhatsApp-elérhetőség: zöld ikon + szám; keskeny kijelzőn csak az ikon */
a.wa {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  padding: 6px 11px 6px 8px; border-radius: 999px;
  border: 1px solid rgba(37, 211, 102, .35); background: rgba(37, 211, 102, .08);
}
a.wa:hover { background: rgba(37, 211, 102, .16); color: #fff; }
a.wa:focus-visible { outline: 2px solid #25D366; outline-offset: 2px; }
a.wa svg { width: 18px; height: 18px; flex: none; }

/* ---------- Chat-asszisztens (képernyőterv: szabályalapú GYIK-válaszok) ---------- */
#chat { position: fixed; right: 20px; bottom: 20px; z-index: 80; }
#chat[hidden] { display: none; }
.chat-fab {
  display: flex; align-items: center; gap: 10px; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; padding: 12px 18px 12px 14px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 14.5px; box-shadow: 0 10px 30px rgba(8,16,46,.28);
}
.chat-fab:hover { filter: brightness(1.08); }
.chat-fab:focus-visible { outline: 3px solid #9CC3F5; outline-offset: 2px; }
.chat-fab svg { width: 22px; height: 22px; flex: none; }
.chat-fab[aria-expanded="true"] { display: none; }
.chat-panel {
  width: 370px; height: min(600px, calc(100vh - 40px)); display: flex; flex-direction: column;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: 0 24px 60px rgba(8,16,46,.3); overflow: hidden;
}
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 14px 16px; background: var(--band); color: #fff; }
.chat-head b { font-size: 15px; }
.chat-head small { display: block; font-size: 12px; color: var(--band-muted); margin-top: 2px; }
.chat-x { background: none; border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); }
.chat-msg { max-width: 88%; padding: 10px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.chat-msg.bot { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-msg.me { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; white-space: pre-wrap; }
.chat-msg p { margin: 0 0 6px; } .chat-msg p:last-child { margin: 0; }
.chat-msg ul { margin: 4px 0 6px; padding-left: 18px; } .chat-msg li { margin: 2px 0; }
.chat-msg ul ul { margin: 2px 0; }
.chat-wa { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 13px 8px 9px;
  border-radius: 999px; background: #E7F9EE; border: 1px solid #9BE3B6; color: #0B5D2C;
  font-weight: 600; text-decoration: none; font-size: 13.5px; }
.chat-wa svg { width: 18px; height: 18px; flex: none; }
.chat-chips { display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-chips button { flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 6px 11px; font: inherit; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.chat-chips button:hover { border-color: var(--accent); color: var(--accent); }
.chat-form { display: flex; gap: 8px; padding: 10px 12px 12px; background: var(--surface); }
.chat-form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  font: inherit; font-size: 16px; background: var(--surface); color: var(--ink); }
.chat-form button { border: 0; background: var(--accent); color: #fff; border-radius: 10px; padding: 0 14px; cursor: pointer; }
.chat-form button svg { width: 18px; height: 18px; display: block; }
@media (max-width: 560px) {
  #chat { right: 14px; bottom: 14px; }
  .chat-fab span { display: none; }
  .chat-fab { padding: 15px; }
  #chat.is-open { left: 0; right: 0; bottom: 0; }
  .chat-panel { width: 100%; height: 86vh; height: 86dvh; border-radius: 16px 16px 0 0; border-bottom: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .chat-msg.bot.new { animation: chatIn .22s ease-out; }
  @keyframes chatIn { from { opacity: 0; transform: translateY(6px); } }
}

/* ---------- Gombok ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border-radius: var(--radius-s); border: 1px solid transparent;
  background: var(--accent); color: var(--on-accent);
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background .14s ease, transform .14s ease;
}
.btn:hover { background: var(--accent-dim); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-firm); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 13.5px; }
.btn-wide { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--band);
  color: var(--band-ink);
  padding: 62px 20px 130px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(680px 340px at 74% 8%, rgba(111,192,255,.19), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--band-line) 1px, transparent 1px), linear-gradient(90deg, var(--band-line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .22; pointer-events: none;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
}
.hero-in { position: relative; z-index: 1; max-width: var(--shell); margin: 0 auto; }
.eyebrow {
  font-size: 11.5px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  color: var(--band-accent); margin-bottom: 16px;
}
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); line-height: 1.03; max-width: 15ch; color: #fff; }
.hero h1 em { font-style: normal; color: var(--band-accent); }
.hero p.lede { margin: 20px 0 0; max-width: 52ch; font-size: 17px; color: var(--band-muted); }
/* A hero felső sávja: bal oldalt a szöveg, jobb oldalt az útvonal-jelenet. */
.hero-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 40px; align-items: center; }
@media (max-width: 920px) { .hero-top { grid-template-columns: 1fr; gap: 20px; } }

/* Útvonal-jelenet: a logó kanyargó útja, rajta közeledő járművel. */
.routescene { position: relative; }
/* overflow: hidden — a közeli végén a jármű és az út kifut a keretből;
   levágva ez természetes „elhalad a kamera előtt" hatás, visible mellett
   viszont ráfolyna a címsorra. */
.routescene svg { display: block; width: 100%; height: auto; overflow: hidden; }
.rs-road { fill: #0A1F5C; stroke: var(--band-line); stroke-width: 1.2; }
.rs-dash { fill: var(--band-accent); stroke: none; }
.rs-vehicle { color: #fff; transition: opacity .2s linear; }
.rs-shadow { fill: #02092A; opacity: .55; stroke: none; }
.rs-label {
  position: absolute; left: 4px; top: 4px;
  display: flex; flex-direction: column; gap: 1px;
  background: rgba(5, 18, 63, .82); border: 1px solid var(--band-line);
  border-radius: var(--radius-s); padding: 8px 12px; backdrop-filter: blur(4px);
}
.rs-name { font-size: 14px; color: #fff; }
.rs-from { font-family: var(--font-mono); font-size: 12px; color: var(--band-accent); }
@media (max-width: 920px) { .routescene { max-width: 480px; margin: 0 auto; } }

/* Léptékhelyes járműsor: a hero tézise. Széles tartalom, ezért saját
   vízszintes görgetést kap, nem zsugorodik olvashatatlanná. */
.fleetstrip { margin-top: 38px; overflow-x: auto; padding-bottom: 4px; }
.fleetstrip svg { display: block; width: 100%; min-width: 1060px; height: auto; color: var(--band-muted); }
.fs-ground { stroke: var(--band-line); stroke-width: 1.5; }
.fs-item { cursor: pointer; transition: color .15s ease; }
.fs-item:hover { color: var(--band-accent); }
.fs-labels { font-family: var(--font-ui); }
.fs-name { font-size: 13px; font-weight: 600; fill: var(--band-ink); }
.fs-len  { font-size: 11px; fill: var(--band-muted); font-family: var(--font-mono); }

.fs-caption { display: flex; gap: 20px 30px; align-items: baseline; flex-wrap: wrap; margin-top: 14px; font-size: 12.5px; color: var(--band-muted); }
.fs-figs { margin-left: auto; }
.fs-figs b { font-family: var(--font-mono); font-weight: 600; color: var(--band-ink); }

/* ---------- Kereső kártya ---------- */
.searchcard {
  max-width: var(--shell); margin: -86px auto 0; position: relative; z-index: 5;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 20px;
}
.searchcard h2 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 14px; font-family: var(--font-ui); }
.chips { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
  border: 1px solid var(--line-firm); background: var(--surface); color: var(--ink-muted);
  border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 500; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  transition: border-color .13s ease, background .13s ease, color .13s ease;
}
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.chip svg { display: block; }

.searchgrid { display: grid; grid-template-columns: 1.3fr 1.3fr 1fr 1fr auto; gap: 12px; align-items: end; }
@media (max-width: 900px) { .searchgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .searchgrid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-firm); border-radius: var(--radius-s);
  padding: 11px 12px; min-height: 46px; width: 100%;
}
.field input:hover, .field select:hover { border-color: var(--accent); }
.field .hint { font-size: 12px; color: var(--ink-faint); }
.field .err { font-size: 12px; color: var(--crit); }

/* ---------- Elrendezés ---------- */
.wrap { max-width: var(--shell); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(24px, 2.7vw, 33px); }
.section-head p { margin: 6px 0 0; color: var(--ink-muted); max-width: 60ch; }

.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
@media (max-width: 980px) { .cat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .cat-grid { grid-template-columns: 1fr; } }

.cat {
  display: flex; flex-direction: column; gap: 10px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; cursor: pointer;
  transition: border-color .14s ease, transform .14s ease, box-shadow .14s ease;
}
.cat:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-art { background: var(--surface-2); border-radius: var(--radius-s); padding: 6px; }
.cat-art svg { display: block; width: 100%; height: auto; }
.cat { text-decoration: none; color: inherit; }
.cat h3 { font-size: 16px; }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cat-len { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); white-space: nowrap; }
.cat-blurb { margin: 0; font-size: 13px; color: var(--ink-muted); }
.cat-req {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0;
  background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
}
.cat-req > div { background: var(--surface); padding: 7px 8px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cat-req dt { font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint); }
.cat-req dd { margin: 0; font-size: 12.5px; font-weight: 600; }
.cat-foot { margin-top: auto; padding-top: 2px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cat .from { font-size: 12.5px; color: var(--ink-muted); }
.cat .from b { font-family: var(--font-mono); font-size: 14px; color: var(--ink); font-weight: 600; }
.cat .count { font-size: 12px; color: var(--ink-faint); }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
  border-radius: 6px; padding: 3px 7px;
  background: var(--surface-2); color: var(--ink-muted); border: 1px solid var(--line);
}
.badge-accent { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 32%, transparent); }
.badge-ok   { background: var(--ok-soft);   color: var(--ok);   border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.badge-warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.badge-crit { background: var(--crit-soft); color: var(--crit); border-color: color-mix(in srgb, var(--crit) 30%, transparent); }

/* ---------- Jármű kártya ---------- */
.veh-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
@media (max-width: 980px) { .veh-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px) { .veh-grid { grid-template-columns: 1fr; } }

.veh {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}
.veh:hover { border-color: var(--line-firm); box-shadow: var(--shadow); transform: translateY(-2px); }
.veh-art { background: var(--surface-2); border-bottom: 1px solid var(--line); position: relative; }
.veh-art svg { display: block; width: 100%; height: auto; }
.veh-art .tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.veh-body { padding: 14px 15px 15px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.veh-title { display: flex; flex-direction: column; gap: 2px; }
.veh-title h3 { font-size: 16.5px; }
.veh-title .sub { font-size: 12.5px; color: var(--ink-faint); }
.spec-row { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--ink-muted); }
.spec-row span { display: inline-flex; align-items: center; gap: 5px; }
.spec-row svg { color: var(--ink-faint); flex: none; }
.veh-foot { margin-top: auto; padding-top: 11px; border-top: 1px solid var(--line); display: flex; align-items: end; justify-content: space-between; gap: 10px; }
.price-day { display: flex; flex-direction: column; }
.price-day b { font-family: var(--font-mono); font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.price-day span { font-size: 11.5px; color: var(--ink-faint); }

/* ---------- Találati oldal ---------- */
.results { display: grid; grid-template-columns: 258px minmax(0,1fr); gap: 26px; align-items: start; padding: 30px 0 60px; }
@media (max-width: 900px) { .results { grid-template-columns: 1fr; } }

.filters {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; position: sticky; top: 56px;
}
@media (max-width: 900px) { .filters { position: static; } }
.fgroup + .fgroup { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.fgroup h4 { font-family: var(--font-ui); font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 10px; }
.check { display: flex; align-items: center; gap: 9px; padding: 4px 0; cursor: pointer; font-size: 14px; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); flex: none; margin: 0; }
.check .tail { margin-left: auto; font-size: 12px; color: var(--ink-faint); font-family: var(--font-mono); }
.check:hover { color: var(--accent); }
input[type="range"] { width: 100%; accent-color: var(--accent); }

.results-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.results-head .count { font-size: 14px; color: var(--ink-muted); }
.results-head .count b { color: var(--ink); font-family: var(--font-mono); }
.sortbar { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-muted); }
.sortbar select { font: inherit; padding: 7px 9px; min-height: 36px; border: 1px solid var(--line-firm); border-radius: var(--radius-s); background: var(--surface); color: var(--ink); }

.empty { border: 1px dashed var(--line-firm); border-radius: var(--radius); padding: 44px 20px; text-align: center; color: var(--ink-muted); }

/* ---------- Adatlap ---------- */
.detail { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); gap: 28px; align-items: start; padding: 26px 0 60px; }
@media (max-width: 940px) { .detail { grid-template-columns: 1fr; } }

.gallery { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery-main { background: var(--surface-2); }
.gallery-main svg { display: block; width: 100%; height: auto; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px; }
.thumb { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 2px; cursor: pointer; }
.thumb[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.thumb svg { display: block; width: 100%; height: auto; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel + .panel { margin-top: 16px; }
.panel h3 { font-size: 17px; margin-bottom: 12px; }

.spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; }
@media (max-width: 640px) { .spec-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.spec-cell { background: var(--surface); padding: 12px 13px; display: flex; flex-direction: column; gap: 3px; }
.spec-cell .k { font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint); }
.spec-cell .v { font-size: 15px; font-weight: 600; }
.spec-cell .v.num { font-size: 15.5px; }

.opt {
  display: flex; align-items: flex-start; gap: 11px; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-s); cursor: pointer;
  transition: border-color .13s ease, background .13s ease;
}
.opt + .opt { margin-top: 8px; }
.opt:hover { border-color: var(--accent); }
.opt input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; margin: 2px 0 0; }
.opt-main { flex: 1; min-width: 0; }
.opt-main .t { font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.opt-main .d { font-size: 12.5px; color: var(--ink-muted); margin-top: 2px; }
.opt-price { font-family: var(--font-mono); font-size: 13.5px; font-weight: 600; white-space: nowrap; text-align: right; }
.opt-price span { display: block; font-family: var(--font-ui); font-size: 11px; font-weight: 400; color: var(--ink-faint); }
.opt.sel { border-color: var(--accent); background: var(--accent-soft); }

.summary { position: sticky; top: 56px; }
@media (max-width: 940px) { .summary { position: static; } }

.lines { display: flex; flex-direction: column; gap: 9px; }
.line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14px; }
.line .l { color: var(--ink-muted); min-width: 0; }
.line .l small { display: block; font-size: 11.5px; color: var(--ink-faint); }
.line .r { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.line.disc .r { color: var(--ok); }
.line.total { border-top: 1px solid var(--line); margin-top: 5px; padding-top: 12px; font-size: 16px; font-weight: 700; }
.line.total .l { color: var(--ink); }
.line.total .r { font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.note { font-size: 12.5px; color: var(--ink-muted); background: var(--surface-2); border-radius: var(--radius-s); padding: 10px 12px; }

/* ---------- Foglalási lépések ---------- */
.steps { display: flex; gap: 0; margin: 26px 0 22px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
@media (max-width: 720px) { .steps { flex-direction: column; } }
.step { flex: 1; display: flex; align-items: center; gap: 10px; padding: 13px 15px; min-width: 0; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
@media (max-width: 720px) { .step { border-right: 0; border-bottom: 1px solid var(--line); } .step:last-child { border-bottom: 0; } }
.step .n {
  flex: none; width: 26px; height: 26px; border-radius: 999px;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  background: var(--surface-2); color: var(--ink-faint); border: 1px solid var(--line);
}
.step .t { font-size: 13.5px; font-weight: 500; color: var(--ink-faint); min-width: 0; }
.step.done .n { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.step.done .t { color: var(--ink-muted); }
.step.now { background: var(--accent-soft); }
.step.now .n { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.step.now .t { color: var(--accent); font-weight: 600; }

.book { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 26px; align-items: start; padding-bottom: 60px; }
@media (max-width: 940px) { .book { grid-template-columns: 1fr; } }
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .formgrid { grid-template-columns: 1fr; } }
.formgrid .span2 { grid-column: 1 / -1; }

.pay-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 13px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface-2); }
.card-mock { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 14px; }
.stripe-strip { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink-muted); margin-top: 12px; }
.stripe-strip svg { color: var(--ink-faint); flex: none; }

.actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

/* ---------- Visszaigazolás ---------- */
.confirm-hero { background: var(--band); color: var(--band-ink); padding: 48px 20px; text-align: center; }
.confirm-hero .tick { width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 999px; display: grid; place-items: center; background: rgba(111,192,255,.14); border: 1px solid var(--band-line); color: var(--band-accent); }
.confirm-hero h1 { font-size: clamp(27px, 3.4vw, 38px); color: #fff; }
.confirm-hero p { color: var(--band-muted); margin: 10px auto 0; max-width: 52ch; }
.ref { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; background: var(--band-2); border: 1px solid var(--band-line); border-radius: var(--radius-s); padding: 9px 15px; }
.ref .k { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--band-muted); }
.ref .v { font-family: var(--font-mono); font-size: 17px; font-weight: 600; color: #fff; letter-spacing: .02em; }

.timeline { display: flex; flex-direction: column; gap: 0; }
.tl { display: flex; gap: 13px; }
.tl-rail { display: flex; flex-direction: column; align-items: center; flex: none; }
.tl-dot { width: 11px; height: 11px; border-radius: 999px; background: var(--accent); margin-top: 6px; flex: none; }
.tl-dot.pending { background: var(--surface); border: 2px solid var(--line-firm); }
.tl-bar { width: 2px; flex: 1; background: var(--line); min-height: 22px; }
.tl-body { padding-bottom: 18px; }
.tl-body .t { font-weight: 600; font-size: 14.5px; }
.tl-body .d { font-size: 13px; color: var(--ink-muted); }

/*ADMIN:BEGIN*/
/* Az ADMIN:BEGIN … ADMIN:END közötti részek csak a belső (vadmin) buildbe
   kerülnek; a nyilvános buildből a build_standalone.py kivágja őket. */
/* ---------- Admin ---------- */
.admin-top { background: var(--band); color: var(--band-ink); padding: 18px 20px; }
.admin-top-in { max-width: var(--shell); margin: 0 auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.admin-top h1 { font-size: 21px; color: #fff; }
.admin-top .who { margin-left: auto; font-size: 13px; color: var(--band-muted); }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin: 24px 0; }
@media (max-width: 860px) { .kpis { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 16px; display: flex; flex-direction: column; gap: 3px; }
.kpi .k { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.kpi .v { font-family: var(--font-mono); font-size: 25px; font-weight: 600; letter-spacing: -.02em; }
.kpi .d { font-size: 12.5px; color: var(--ink-muted); }
.kpi .spark { margin-top: 6px; }
.kpi .spark svg { display: block; width: 100%; height: 34px; }

.tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 880px; }
table.data th {
  text-align: left; font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 600; padding: 11px 13px;
  border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap;
}
table.data td { padding: 11px 13px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data td.r { text-align: right; }
.sev { display: inline-block; width: 3px; height: 26px; border-radius: 2px; vertical-align: middle; margin-right: 9px; }

/* ---------- Admin: fülek és jármű-kiesés ---------- */
.admin-tabs { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.admin-tabs button {
  background: none; border: 0; cursor: pointer; padding: 9px 14px;
  font-size: 14px; font-weight: 500; color: var(--ink-muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  display: inline-flex; align-items: center; gap: 8px;
}
.admin-tabs button:hover { color: var(--ink); }
.admin-tabs button[aria-current="true"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.tab-count {
  font-family: var(--font-mono); font-size: 11px; line-height: 1.6;
  background: var(--surface-2); color: var(--ink-muted); border-radius: 999px; padding: 0 7px;
}

.dt-grid { display: grid; grid-template-columns: minmax(0, 430px) minmax(0, 1fr); gap: 20px; align-items: start; padding-bottom: 40px; }
@media (max-width: 1000px) { .dt-grid { grid-template-columns: 1fr; } }

.dt-note {
  display: flex; flex-direction: column; gap: 0;
  margin-top: 16px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-s); font-size: 13.5px;
}
.dt-ok, .dt-warn { flex-direction: row; align-items: flex-start; gap: 11px; }
.dt-ok   { background: var(--ok-soft);   border-color: color-mix(in srgb, var(--ok) 34%, transparent);   color: var(--ok); }
.dt-warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 34%, transparent); color: var(--warn); }
.dt-bad  { background: var(--crit-soft); border-color: color-mix(in srgb, var(--crit) 40%, transparent); color: var(--crit); }
.dt-note svg { flex: none; }
.dt-head { display: flex; align-items: center; gap: 9px; font-size: 14.5px; }
.dt-list { list-style: none; margin: 11px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink); }
.dt-list li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 7px;
  padding: 7px 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.dt-ack { margin-top: 12px; font-weight: 600; color: var(--ink); }
.dt-hint { margin: 9px 0 0; font-size: 12.5px; color: var(--ink-muted); }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .grow { flex: 1; }

/* ---------- Admin: járműfotók (terv — nem tölt fel semmit) ---------- */
.proto-nav a.proto-back {
  padding: 6px 11px; border-radius: 7px; margin-left: 8px;
  font-size: 12.5px; font-weight: 500; color: #93AAC3; text-decoration: none;
  border: 1px solid #1E3B5A;
}
.proto-nav a.proto-back:hover { background: #10243B; color: #DCE9F6; }
.ph-intro p { margin: 0; font-size: 13.5px; color: var(--ink-muted); }
.ph-intro p + p { margin-top: 6px; }
.ph-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ph-head h3 { margin-bottom: 2px; }
.ph-sub { font-size: 12.5px; color: var(--ink-muted); }
.ph-drop {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
  border: 2px dashed var(--line-firm); border-radius: var(--radius); padding: 22px 16px;
  background: var(--surface-2); text-align: center; cursor: pointer;
  transition: border-color .13s ease, background .13s ease;
}
.ph-drop:hover, .ph-drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.ph-drop:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.ph-drop svg { color: var(--accent); }
.ph-drop small { font-size: 12px; color: var(--ink-muted); }
.ph-drop.is-full { cursor: not-allowed; opacity: .6; }
.ph-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.ph-err ul { margin: 6px 0 0; padding-left: 18px; }
.ph-grid {
  list-style: none; margin: 14px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 12px;
}
.ph-item { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; background: var(--surface); }
.ph-item.is-cover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.ph-thumb { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); }
.ph-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph-thumb .badge { position: absolute; top: 8px; left: 8px; }
.ph-pos {
  position: absolute; top: 8px; right: 8px; border-radius: 6px; padding: 1px 7px;
  font-family: var(--font-mono); font-size: 11.5px; background: rgba(5, 18, 63, .78); color: #fff;
}
.ph-meta { display: flex; justify-content: space-between; gap: 8px; min-width: 0; padding: 8px 10px 0; font-size: 12.5px; }
.ph-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ph-meta .num { color: var(--ink-muted); white-space: nowrap; }
.ph-acts { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 10px 10px; }
.ph-acts button {
  min-height: 32px; padding: 3px 9px; border: 1px solid var(--line-firm); border-radius: 7px;
  background: var(--surface); font-size: 12.5px; cursor: pointer;
}
.ph-acts button:hover:not([disabled]) { border-color: var(--accent); color: var(--accent); }
.ph-acts button[disabled] { opacity: .4; cursor: not-allowed; }
.ph-acts .ph-del { margin-left: auto; color: var(--crit); }
.ph-empty { margin: 14px 0 0; font-size: 13px; color: var(--ink-muted); }
.ph-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.ph-foot p { margin: 0; font-size: 12.5px; color: var(--ink-muted); max-width: 70ch; }

/* ---------- Admin: takarítási idő ---------- */
.buf-set { display: flex; align-items: end; gap: 18px; flex-wrap: wrap; }
.buf-eff { margin: 0 0 12px; font-size: 13.5px; color: var(--ink-muted); }
.buf-cell { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 5px; font-family: var(--font-ui); }
.buf-flag { white-space: nowrap; }
.buf-toggle {
  border: 1px solid var(--line-firm); background: var(--surface); border-radius: 6px;
  padding: 2px 8px; font-size: 12px; cursor: pointer;
}
.buf-toggle:hover, .buf-toggle[aria-expanded="true"] { border-color: var(--warn); color: var(--warn); }
table.data tr.buf-tight td { background: color-mix(in srgb, var(--warn-soft) 55%, transparent); }
table.data tr.buf-row td { padding-top: 0; background: color-mix(in srgb, var(--warn-soft) 55%, transparent); }
.buf-detail { margin-top: 0; }

/* Kontraszt (lásd lent a közös szabályt): az admin apró címkéi is --ink-muted-et kapnak. */
.kpi .k,
table.data th { color: var(--ink-muted); }
/*ADMIN:END*/

/* ---------- Lábléc ---------- */
.foot { background: var(--band); color: var(--band-muted); margin-top: 30px; border-top: 1px solid var(--band-line); }
.foot-in { max-width: var(--shell); margin: 0 auto; padding: 32px 20px; display: flex; gap: 30px; flex-wrap: wrap; justify-content: space-between; font-size: 13px; }
.foot h4 { font-family: var(--font-ui); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--band-accent); margin-bottom: 9px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.foot a { color: var(--band-muted); text-decoration: none; }
.foot a:hover { color: #fff; }
.foot .fine { max-width: 34ch; color: #64809C; font-size: 12px; }

/* Apró, nagybetűs címkék kontrasztja. A --ink-faint fehér alapon ~3,0:1-et ad,
   ami 10-12 px-es szövegnél kevés (a WCAG AA küszöb 4,5:1). Ezek --ink-muted-et
   kapnak: ~5,4:1. A hierarchia megmarad, mert a mellettük álló érték --ink. */
.cat-req dt,
.cat-len,
.spec-cell .k,
.field > label,
.fgroup h4,
.veh-title .sub { color: var(--ink-muted); }
/* A fenti horgonyokra (fejléc: „Átvételi pontok”, „Kapcsolat”) ugráskor a
   ragadós prototípus-sáv ne takarja el a célt. */
#atveteli-pontok, #kapcsolat { scroll-margin-top: 70px; }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
