/* Amcsi autó – publikus oldal. Mobilra tervezve, asztali gépen középre igazítva. */
@font-face { font-family: 'Archivo'; src: url('../fonts/Archivo-var.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'Archivo Black'; src: url('../fonts/ArchivoBlack.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --accent: #B3122E;
  --navy: #0F1B33;
  --navy-2: #17213A;
  --navy-line: #2B3858;
  --snow: #F7F5F0;
  --sand: #EDEAE2;
  --line: #E2DED4;
  --ink: #141B2D;
  --muted: #5A6275;
  --muted-light: #C9D0E0;
  --ok: #15803D;
  --warn: #A16207;
  --danger: #B91C1C;
  --radius: 12px;
  --display: 'Archivo Black', 'Arial Black', system-ui, sans-serif;
  --body: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--snow); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { filter: brightness(0.85); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0 0 12px; }
h1 { font-size: clamp(30px, 7vw, 46px); }
h2 { font-size: 24px; margin-top: 28px; }
h3 { font-size: 16px; }
p { margin: 0 0 12px; }
small, .small { font-size: 14px; }
.muted { color: var(--muted); }
.lead { font-size: 18px; }
.eyebrow, .overline { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 100; }
:focus-visible { outline: 3px solid #2563EB; outline-offset: 2px; }

/* fejléc */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; background: var(--navy); }
.brand { font-family: var(--display); font-size: 18px; letter-spacing: .04em; color: var(--snow); text-decoration: none; }
.brand span { color: var(--accent); }
.pill-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #3A4766; border-radius: 999px; color: var(--snow); font-weight: 600; font-size: 14px; text-decoration: none; }
.pill-link:hover { background: var(--navy-2); filter: none; }

.flashes { max-width: 760px; margin: 12px auto 0; padding: 0 20px; }
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 8px; font-weight: 600; }
.flash-success { background: #DCFCE7; color: #14532D; }
.flash-error { background: #FEE2E2; color: #7F1D1D; }
.flash-info { background: #DBEAFE; color: #1E3A8A; }

/* hős blokk */
.hero { background: var(--navy); color: var(--snow); }
.hero-inner { max-width: 760px; margin: 0 auto; padding: 28px 20px 32px; display: flex; flex-direction: column; gap: 16px; }
.hero-img { width: 100%; max-height: 300px; object-fit: cover; border-radius: var(--radius); }
.hero h1 { margin: 0; color: var(--snow); }
.badge-accent { align-self: flex-start; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .08em; padding: 6px 12px; border-radius: 6px; }
.lead-light { font-size: 18px; color: var(--muted-light); margin: 0; }
.facts { list-style: none; margin: 0; padding: 16px; border: 1px solid var(--navy-line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 10px; }
.facts li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.facts svg { width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.hero-note { text-align: center; color: var(--muted-light); font-size: 14px; margin: 0; }
.closed-note { background: var(--navy-2); padding: 16px; border-radius: var(--radius); margin: 0; }
.closed-note a { color: #fff; }
.countdown { background: var(--navy-2); border-radius: var(--radius); padding: 16px; text-align: center; }
.countdown-label { margin: 0 0 6px; color: var(--muted-light); }
.countdown-value { font-family: var(--display); font-size: 34px; margin: 0; font-variant-numeric: tabular-nums; }

/* gombok */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: var(--radius); border: 2px solid transparent; font: 700 16px var(--body); text-decoration: none; cursor: pointer; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(.9); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-xl { min-height: 56px; font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: .02em; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; padding: 10px 4px; min-height: 44px; font: 700 14px var(--body); color: var(--navy); text-decoration: underline; cursor: pointer; }
.btn-link.danger { color: #8E0E24; }
.btn-row { display: flex; gap: 12px; }
.btn-row .grow, .grow { flex: 1; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--sand); font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink); }

/* oldaltartalom */
.page { max-width: 760px; margin: 0 auto; padding: 24px 20px 40px; }
.page.narrow { max-width: 560px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 28px; }
.section-head h1, .section-head h2 { margin: 0 0 12px; }
.prose { margin: 12px 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.steps { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 12px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; }
.steps span { flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--snow); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.notice { background: #DBEAFE; color: #1E3A8A; padding: 14px 16px; border-radius: var(--radius); }
.notice.soft { background: var(--sand); color: var(--ink); margin-top: 24px; }
.notice.soft p { margin: 6px 0 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }

/* autókártyák */
.car-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .car-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.car-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-align: left; padding: 0; font: inherit; }
.car-photo { position: relative; aspect-ratio: 16 / 10; background: var(--sand); }
.car-photo img { width: 100%; height: 100%; object-fit: cover; }
.ph { background: repeating-linear-gradient(135deg, #E4E0D6 0 10px, #EDEAE2 10px 20px); }
.no-badge { position: absolute; top: 8px; left: 8px; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 6px; background: var(--navy); color: var(--snow); display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 14px; }
.no-badge.sm { position: static; min-width: 24px; height: 24px; font-size: 13px; }
.car-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.car-body h3 { margin: 0; font-size: 15px; line-height: 1.15; }
.car-body p { margin: 0; font-size: 14px; color: var(--muted); }
.seats { font-size: 13px; color: var(--muted); }
.car-pick { cursor: pointer; }
.car-pick:hover { border-color: var(--navy); }
.car-pick.picked { border: 2px solid var(--accent); }
.car-pick.done, .car-pick:disabled { cursor: default; opacity: .75; }
.tag { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--sand); color: var(--ink); }
.tag-ok { background: #DCFCE7; color: #14532D; }
.tag-warn { background: #FEF3C7; color: #78350F; }
.tag-accent { background: var(--accent); color: #fff; }

/* foglalás */
.booking { max-width: 760px; margin: 0 auto; padding: 16px 20px 40px; }
.booking-progress { display: flex; gap: 6px; }
.booking-progress span { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.booking-progress span.on { background: var(--accent); }
.booking-step-label { font-weight: 700; color: var(--muted); margin: 10px 0 16px; }
.child-card { border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; margin: 0; }
.child-card legend { font-weight: 700; padding: 0 6px; }
.child-card-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.field input, .field select, .field textarea { min-height: 48px; padding: 10px 12px; border: 2px solid #C8C3B6; border-radius: 10px; font: 400 16px var(--body); background: #fff; color: var(--ink); }
.field input:focus { border-color: var(--navy); outline: none; }
.field-short input { max-width: 140px; }
.check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: 0 0 22px; accent-color: var(--accent); }
.form-error { color: #991B1B; font-weight: 700; margin: 0; min-height: 1px; }
.form-error:empty { display: none; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid #C8C3B6; background: transparent; color: var(--ink); font: 600 15px var(--body); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.chip.on { border-color: var(--navy); background: var(--navy); color: var(--snow); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.timeline-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-top: 8px; }
.timeline { position: relative; height: 46px; margin: 4px 13px 4px; }
.timeline-track { position: absolute; left: 0; right: 0; top: 14px; height: 6px; border-radius: 3px; background: var(--sand); }
.timeline-mark { position: absolute; top: 4px; width: 26px; height: 26px; border-radius: 6px; background: var(--navy); color: var(--snow); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.timeline-mark.new { background: var(--accent); color: #fff; }
.timeline-label { position: absolute; top: 32px; font-size: 11px; color: var(--muted); }
.timeline-label.start { left: -13px; }
.timeline-label.end { right: -13px; }
.pick-list { list-style: none; margin: 8px 0 0; padding: 0; }
.pick-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding: 2px 0; }

/* alulról felcsúszó panel */
dialog.sheet { margin: auto auto 0; width: 100%; max-width: 640px; max-height: 88vh; padding: 0; border: 0; border-radius: 20px 20px 0 0; background: var(--snow); color: var(--ink); overflow: auto; }
dialog.sheet::backdrop { background: rgba(15, 27, 51, .6); }
@media (min-width: 700px) { dialog.sheet { margin: auto; border-radius: 20px; } }
.sheet-handle { width: 40px; height: 5px; border-radius: 3px; background: #C8C3B6; margin: 10px auto 4px; }
.sheet-head { display: flex; gap: 14px; align-items: center; padding: 8px 20px 12px; }
.sheet-head h2 { margin: 0; font-size: 20px; }
.car-photo.mini { flex: 0 0 96px; height: 64px; aspect-ratio: auto; border-radius: 10px; overflow: hidden; }
.car-photo.mini .no-badge { top: 6px; left: 6px; position: absolute; }
.sheet-desc { padding: 0 20px; color: var(--muted); font-size: 14px; }
.sheet-body { padding: 0 20px 16px; }
.hour-head { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 8px; }
.hour-head strong { font-family: var(--display); font-weight: 400; font-size: 18px; }
.slot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 520px) { .slot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.slot { min-height: 60px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 2px solid #C8C3B6; background: #fff; color: var(--ink); font: inherit; cursor: pointer; }
.slot.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.slot.err { border-color: var(--danger); }
.slot.off { background: var(--sand); border-color: transparent; color: #6B7180; cursor: default; }
.slot.off .slot-time { text-decoration: line-through; }
.slot-time { font-size: 17px; font-weight: 700; }
.slot-dots { font-size: 13px; letter-spacing: 2px; }
.slot-why { font-size: 12px; font-weight: 600; }
.sheet-foot { padding: 16px 20px 20px; background: #fff; border-top: 1px solid var(--line); }
.sum-name { font-weight: 700; margin: 10px 0 4px; }
.done-card { text-align: center; padding: 32px 20px; }
.done-icon { font-size: 48px; line-height: 1; margin-bottom: 12px; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(92vw, 560px); background: var(--ink); color: #fff; padding: 14px 16px; border-radius: 12px; z-index: 50; box-shadow: 0 8px 24px rgba(0,0,0,.25); }

/* Foglalásaim */
.child-block { margin-top: 20px; padding-top: 4px; scroll-margin-top: 12px; }
.qr-card { background: var(--navy); color: var(--snow); border-radius: 16px; padding: 24px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.qr-title { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--muted-light); margin: 0; }
.qr-box { background: #fff; padding: 10px; border-radius: 12px; width: 220px; }
.qr-box svg { width: 100%; height: auto; display: block; }
.qr-note { color: var(--muted-light); font-size: 15px; margin: 0; }
.qr-note strong { color: #fff; letter-spacing: .1em; }
.pass { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 12px; }
.pass-stub { flex: 0 0 104px; background: var(--accent); color: #fff; padding: 16px 12px; display: flex; flex-direction: column; justify-content: center; gap: 2px; border-right: 2px dashed var(--line); }
.pass-pending .pass-stub { background: #6B7180; }
.pass-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; opacity: .85; }
.pass-time { font-family: var(--display); font-size: 28px; line-height: 1; }
.pass-date { font-size: 12px; font-weight: 600; opacity: .85; }
.pass-body { flex: 1; min-width: 0; padding: 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.pass-car { display: flex; align-items: center; gap: 8px; }
.pass-car strong { font-family: var(--display); font-weight: 400; font-size: 16px; line-height: 1.15; }
.pass-hint { font-size: 13px; color: var(--muted); }
.wait-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--sand); border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; font-size: 14px; }
.danger-zone { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 12px; }
.danger-zone summary { cursor: pointer; font-weight: 700; color: var(--muted); min-height: 44px; display: flex; align-items: center; }

.footer { max-width: 760px; margin: 0 auto; padding: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.footer a { font-weight: 600; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
