/* =========================================================================
   Event — objednávka na prezutie a testovacie jazdy (event.moris.club)
   Mobil najprv; od 960 px hero vľavo a objednávka vpravo.
   ========================================================================= */

:root {
  --primary: #8B1A2B;
  --primary-hover: #74131f;
  --primary-tint: #fbf1f3;
  --primary-ring: rgba(139, 26, 43, .2);
  --ink: #121418;
  --text: #2b2f36;
  --muted: #6b7280;
  --faint: #9aa1ac;
  --bg: #f4f5f7;
  --panel: #ffffff;
  --soft: #f6f7f9;
  --line: #e7e9ee;
  --line-strong: #d7dbe2;
  --ok: #12805c; --ok-tint: #e8f6ef;
  --warn: #b45309; --warn-tint: #fdf3e6;
  --bad: #c02634; --bad-tint: #fdecee;
  --plate: #003399;
  --r: 14px; --r-lg: 20px; --r-xl: 26px; --r-pill: 999px;
  --sh: 0 10px 30px rgba(16,18,29,.08), 0 1px 3px rgba(16,18,29,.06);
  --t: .18s cubic-bezier(.4,0,.2,1);
  --font: 'Audi Type', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.15; letter-spacing: -.015em; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); }
.tnum { font-variant-numeric: tabular-nums; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: #121418; color: #fff; min-height: 300px; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,11,14,.55) 0%, rgba(10,11,14,.15) 45%, rgba(10,11,14,.75) 100%); }
.hero__car { position: absolute; z-index: 1; right: -6%; bottom: 14%; width: 74%; max-width: 560px; filter: drop-shadow(0 24px 30px rgba(0,0,0,.45)); opacity: 0; transform: translateX(24px); transition: opacity .6s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.hero__car.is-in { opacity: 1; transform: none; }
.hero__in { position: relative; z-index: 2; padding: 20px 20px 52px; display: flex; flex-direction: column; gap: 26px; height: 100%; }
.hero__logo { width: 112px; height: auto; }
.hero__txt { max-width: 520px; }
.hero__eyebrow { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--r-pill); background: rgba(139,26,43,.92); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { color: #fff; font-size: clamp(28px, 7.4vw, 56px); line-height: 1.04; letter-spacing: -.03em; margin: 14px 0 10px; text-wrap: balance; }
.hero__sub { margin: 0; color: rgba(255,255,255,.78); font-size: 15px; max-width: 440px; }
.hero__meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 16px 0 0; }
.hero__meta li { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; }
.hero__meta svg { width: 18px; height: 18px; opacity: .85; }

/* ── Panel a karta ─────────────────────────────────────────────────────── */
.panel { position: relative; z-index: 3; margin-top: -28px; padding: 0 12px 28px; }
.steps { display: flex; gap: 6px; padding: 0 10px 10px; }
.steps span { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.28); transition: background var(--t); }
.steps span.is-done { background: #fff; }
.card { background: var(--panel); border-radius: var(--r-xl); box-shadow: var(--sh); padding: 22px 18px; min-height: 260px; }
.foot { text-align: center; font-size: 12px; color: var(--faint); margin: 18px 0 0; }

.card__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin: 0 0 6px; }
.card h2 { font-size: 24px; margin-bottom: 6px; }
.card .lead { margin: 0 0 18px; color: var(--muted); }
.back { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 4px 0; margin: -6px 0 10px; color: var(--muted); font-size: 14px; font-weight: 700; }
.back svg { width: 18px; height: 18px; }
.back:hover { color: var(--ink); }

/* ── Tlačidlá ──────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: var(--r-pill); border: 1px solid transparent; font-size: 16px; font-weight: 700; text-decoration: none; transition: background var(--t), border-color var(--t), transform var(--t), opacity var(--t); }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #000; }
.btn--accent { background: var(--primary); color: #fff; }
.btn--accent:hover { background: var(--primary-hover); }
.btn--ghost { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .45; pointer-events: none; }
.btn svg { width: 18px; height: 18px; }
.link { border: 0; background: none; padding: 0; color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.actions { position: sticky; bottom: 0; margin: 20px -18px -22px; padding: 14px 18px calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(255,255,255,0), #fff 22%); border-radius: 0 0 var(--r-xl) var(--r-xl); display: flex; flex-direction: column; gap: 10px; }
.actions .sum { font-size: 13px; color: var(--muted); text-align: center; }

/* ── ŠPZ ───────────────────────────────────────────────────────────────── */
.plate { display: flex; align-items: stretch; height: 74px; border: 3px solid var(--ink); border-radius: 12px; overflow: hidden; background: #fff; transition: box-shadow var(--t); }
.plate:focus-within { box-shadow: 0 0 0 5px var(--primary-ring); }
.plate__eu { width: 46px; flex: none; background: var(--plate); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 8px; font-weight: 700; font-size: 17px; gap: 6px; }
.plate__eu i { width: 22px; height: 22px; border-radius: 50%; border: 2px dotted #ffcc00; }
.plate input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 14px; font-size: 34px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: transparent; }
.plate input::placeholder { color: #d4d7de; }
.alt { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.alt svg { color: var(--primary); }

/* ── Auto zákazníka ────────────────────────────────────────────────────── */
.mycar { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: var(--soft); border-radius: var(--r); margin-bottom: 18px; }
.mycar__plate { flex: none; padding: 4px 8px; border: 2px solid var(--ink); border-radius: 6px; font-weight: 700; letter-spacing: .06em; color: var(--ink); background: #fff; font-size: 14px; }
.mycar b { display: block; color: var(--ink); font-size: 15px; line-height: 1.25; }
.mycar span { font-size: 13px; color: var(--muted); }

/* ── Voľby záujmu ──────────────────────────────────────────────────────── */
.opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 16px; border-radius: var(--r); border: 1.5px solid var(--line); background: #fff; transition: border-color var(--t), background var(--t), box-shadow var(--t); }
.opt:hover { border-color: var(--line-strong); }
.opt.is-on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.opt__ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--soft); color: var(--ink); flex: none; }
.opt.is-on .opt__ic { background: var(--ink); color: #fff; }
.opt__ic svg { width: 24px; height: 24px; }
.opt b { display: block; color: var(--ink); font-size: 16px; }
.opt span { font-size: 13px; color: var(--muted); }
.opt__tag { display: inline-block; margin-bottom: 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); background: var(--primary-tint); padding: 4px 8px; border-radius: var(--r-pill); }
.opt--quiet { padding: 12px 16px; }
.opt--quiet .opt__ic { width: 36px; height: 36px; border-radius: 10px; }
.opt--quiet .opt__ic svg { width: 20px; height: 20px; }
.opt--quiet b { font-size: 15px; font-weight: 400; color: var(--text); }

/* ── Časy príchodu ─────────────────────────────────────────────────────── */
.slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.slot { position: relative; text-align: left; padding: 14px 14px 12px; border-radius: var(--r); border: 1.5px solid var(--line); background: #fff; transition: border-color var(--t), background var(--t), transform var(--t); }
.slot:hover { border-color: var(--line-strong); }
.slot b { display: block; font-size: 24px; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; }
.slot small { color: var(--muted); font-size: 13px; }
.slot em { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--ok); }
.slot em::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.slot.is-few em { color: var(--warn); }
.slot.is-full { background: var(--soft); border-color: transparent; cursor: not-allowed; }
.slot.is-full b, .slot.is-full small { color: var(--faint); }
.slot.is-full b { text-decoration: line-through; text-decoration-thickness: 2px; }
.slot.is-full em { color: var(--faint); }
.slot.is-on { border-color: var(--ink); background: var(--ink); }
.slot.is-on b, .slot.is-on small, .slot.is-on em { color: #fff; }

/* ── Autá ──────────────────────────────────────────────────────────────── */
.picked { display: grid; gap: 8px; margin-bottom: 16px; }
.pk { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: var(--r); background: var(--ink); color: #fff; }
.pk svg { width: 20px; height: 20px; }
.pk b { font-size: 15px; }
.pk span { color: rgba(255,255,255,.7); font-size: 14px; margin-left: auto; }
.pk button { border: 0; background: rgba(255,255,255,.12); color: #fff; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.pk button svg { width: 16px; height: 16px; }
.pk button:hover { background: rgba(255,255,255,.24); }
.sect { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 4px 0 10px; }
.sect h3 { font-size: 15px; }
.sect span { font-size: 13px; color: var(--muted); }
.cars { display: grid; gap: 12px; }
.car { border: 1.5px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; transition: border-color var(--t), box-shadow var(--t); }
.car.is-on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.car.is-off { opacity: .6; }
.car__head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px 10px 10px; border: 0; background: none; text-align: left; }
.car__img { width: 118px; height: 66px; flex: none; border-radius: 10px; background: linear-gradient(180deg, #f1f2f5, #e3e6eb); display: grid; place-items: center; overflow: hidden; color: #b8bdc7; }
.car__img img { width: 112%; height: 112%; object-fit: contain; }
.car__img svg { width: 44px; height: 44px; stroke-width: 1.3; }
.car__name { flex: 1; min-width: 0; }
.car__name b { display: block; color: var(--ink); font-size: 16px; line-height: 1.2; }
.car__name span { font-size: 13px; color: var(--muted); }
.car__name span.ok { color: var(--ok); font-weight: 700; }
.car__chev { color: var(--faint); transition: transform var(--t); }
.car.is-open .car__chev { transform: rotate(180deg); }
.times { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 2px 14px 14px; }
.tm { height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; color: var(--ink); font-size: 15px; transition: border-color var(--t), background var(--t); }
.tm:hover { border-color: var(--ink); }
.tm.is-ideal { border-color: #b9dccb; background: var(--ok-tint); }
.tm.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.tm.is-mine { background: var(--soft); color: var(--faint); border-style: dashed; cursor: not-allowed; }
.times__note { grid-column: 1 / -1; font-size: 12px; color: var(--muted); margin: 0; }
.times__empty { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--muted); }
.more { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 14px; padding: 14px; border-radius: var(--r); border: 1.5px dashed var(--line-strong); background: none; color: var(--ink); font-weight: 700; font-size: 15px; }
.more:hover { border-color: var(--ink); }
.more svg { width: 18px; height: 18px; }

/* ── Formulár ──────────────────────────────────────────────────────────── */
.fld { display: block; margin-bottom: 14px; }
.fld > span { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.fld > span i { font-style: normal; font-weight: 400; color: var(--faint); }
.fld input, .fld textarea { width: 100%; min-height: 52px; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: #fff; font-size: 16px; outline: 0; transition: border-color var(--t), box-shadow var(--t); }
.fld textarea { min-height: 84px; resize: vertical; }
.fld input:focus, .fld textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(18,20,24,.08); }
.fld.is-bad input { border-color: var(--bad); }
.fld small { display: block; margin-top: 5px; font-size: 12px; color: var(--muted); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text); margin: 6px 0 4px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); flex: none; }
.check.is-bad { color: var(--bad); }
.radios { display: grid; gap: 8px; margin-bottom: 16px; }

/* ── Súhrn ─────────────────────────────────────────────────────────────── */
.sum-list { display: grid; gap: 8px; margin: 0 0 18px; }
.si { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--soft); }
.si__ic { width: 38px; height: 38px; border-radius: 11px; background: #fff; display: grid; place-items: center; color: var(--ink); flex: none; }
.si small { display: block; color: var(--muted); font-size: 12px; }
.si b { color: var(--ink); font-size: 16px; }
.err { padding: 12px 14px; border-radius: 12px; background: var(--bad-tint); color: var(--bad); font-size: 14px; font-weight: 700; margin: 0 0 14px; }
.info { padding: 12px 14px; border-radius: 12px; background: var(--soft); font-size: 14px; color: var(--text); margin: 0 0 16px; }

/* ── Hotovo ────────────────────────────────────────────────────────────── */
.done { text-align: center; padding-top: 6px; }
.done__ic { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: var(--ok-tint); color: var(--ok); display: grid; place-items: center; animation: pop .5s cubic-bezier(.2,.9,.3,1.3); }
.done__ic svg { width: 36px; height: 36px; stroke-width: 2.4; }
.done__ic.is-neutral { background: var(--soft); color: var(--muted); }
.done .sum-list { text-align: left; }
.done__links { display: grid; gap: 10px; }
.keylink { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 12px; border-radius: 12px; background: var(--soft); font-size: 13px; text-align: left; }
.keylink code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: inherit; color: var(--ink); }
.keylink button { border: 0; background: #fff; border-radius: 8px; padding: 6px 10px; font-weight: 700; font-size: 13px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

.loading { display: grid; place-items: center; min-height: 220px; }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fade { animation: fade .28s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 12px 30px rgba(0,0,0,.25); }

@media (max-width: 959px) {
  .hero__car { display: none; }
  body.is-step .hero { min-height: 0; }
  body.is-step .hero__sub, body.is-step .hero__meta, body.is-step .hero__car { display: none; }
  body.is-step .hero h1 { font-size: 22px; margin: 10px 0 0; }
  body.is-step .hero__in { gap: 14px; padding-bottom: 46px; }
}

@media (min-width: 520px) {
  .panel { padding: 0 20px 36px; max-width: 600px; margin-left: auto; margin-right: auto; }
  .card { padding: 30px 30px; }
  .actions { margin: 24px -30px -30px; padding: 16px 30px 22px; }
  .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .times { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .car__img { width: 150px; height: 82px; }
  .hero__in { padding: 26px 28px 60px; }
}

@media (min-width: 960px) {
  .ev { display: grid; grid-template-columns: minmax(0, 1fr) minmax(520px, 600px); min-height: 100vh; }
  .hero { position: sticky; top: 0; height: 100vh; }
  .hero__in { padding: 36px 48px; justify-content: space-between; }
  .hero__logo { width: 140px; }
  .hero__txt { margin-bottom: auto; margin-top: 8vh; }
  .hero__car { width: 78%; right: 4%; bottom: 10%; max-width: 760px; }
  .hero__sub { font-size: 17px; }
  .hero h1 { font-size: clamp(36px, 3.8vw, 58px); }
  .panel { margin: 0; padding: 48px 40px 36px; max-width: none; }
  .steps { padding: 0 4px 14px; }
  .steps span { background: var(--line); }
  .steps span.is-done { background: var(--ink); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
