/* Testovacie jazdy — verejná stránka (zákazník) */

.pub { background: #f4f5f7; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }

/* ── Hlavička ──────────────────────────────────────────────────────────── */
.ph { position: absolute; top: 0; left: 0; right: 0; z-index: 30; }
.ph__in { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.ph__logo img { height: 28px; width: auto; }
.ph__nav { display: flex; align-items: center; gap: 8px; }
.ph__link { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: var(--r-pill); color: #fff; text-decoration: none; font-size: 14px; font-weight: 700; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background var(--t); }
.ph__link:hover { background: rgba(255,255,255,.16); }
@media (max-width: 640px) {
  .ph__in { height: 64px; }
  .ph__logo img { height: 24px; }
  .ph__link span { display: none; }
  .ph__link { width: 40px; padding: 0; justify-content: center; }
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  min-height: min(720px, 92vh);
  background: #0e0f11 url('/jazdy/hero-bg.jpg') center bottom / cover no-repeat;
}
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,11,13,.82) 0%, rgba(10,11,13,.55) 42%, rgba(10,11,13,.1) 75%), linear-gradient(180deg, rgba(10,11,13,.55) 0%, rgba(10,11,13,0) 30%); }
.hero__in { position: relative; z-index: 2; padding-top: 140px; padding-bottom: 80px; }
.hero__text { max-width: 520px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: var(--r-pill); background: rgba(139,26,43,.9); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hero__eyebrow .dot { background: #fff; animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero h1 { color: #fff; font-size: clamp(34px, 5.2vw, 62px); line-height: 1.04; letter-spacing: -.025em; margin: 18px 0 16px; text-wrap: balance; }
.hero__sub { font-size: clamp(15px, 1.5vw, 18px); line-height: 1.6; color: rgba(255,255,255,.78); margin: 0; max-width: 520px; white-space: pre-line; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 0; padding: 0; list-style: none; }
.hero__meta li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: #fff; }
.hero__meta .i { color: rgba(255,255,255,.6); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__cta .btn--ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.hero__cta .btn--ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); }

/* Auto „stojí" na podlahe z pozadia. Podlaha v obrázku je ~27 % výšky
   obrázka; pri cover sa výška obrázka rovná max(šírka/1,5; výška hero). */
.hero__car { position: absolute; z-index: 1; right: max(2vw, calc((100vw - var(--maxw)) / 2)); bottom: max(7.5vw, 11%); width: min(46vw, 700px); pointer-events: none; }
.hero__car img { width: 100%; height: auto; filter: drop-shadow(0 18px 18px rgba(0,0,0,.45)); animation: carIn .9s var(--t-slow) both .1s; }
.hero__car::after { content: ''; position: absolute; left: 8%; right: 8%; bottom: -2%; height: 12%; background: radial-gradient(ellipse at center, rgba(0,0,0,.65) 0%, rgba(0,0,0,0) 70%); z-index: -1; }
@keyframes carIn { from { opacity: 0; transform: translateX(40px); } }
@media (min-width: 901px) and (max-width: 1240px) {
  .hero__car { width: 47vw; right: 1vw; }
  .hero__text { max-width: 48vw; }
}
@media (max-width: 640px) { .hero__cta .btn { width: 100%; } }
@media (max-width: 900px) {
  .hero { min-height: 0; background-position: 30% bottom; }
  .hero::before { background: linear-gradient(180deg, rgba(10,11,13,.82) 0%, rgba(10,11,13,.6) 50%, rgba(10,11,13,.15) 100%); }
  .hero__in { padding-top: 100px; padding-bottom: calc(min(92vw, 560px) * .47 + max(12vw, 72px)); }
  .hero__car { left: 50%; right: auto; transform: translateX(-50%); width: min(92vw, 560px); bottom: max(9vw, 40px); }
  .hero--nocar .hero__in { padding-bottom: 56px; }
}

/* ── Sekcie ────────────────────────────────────────────────────────────── */
.sec { padding-top: 64px; padding-bottom: 24px; scroll-margin-top: 16px; }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 26px; }
.sec__head h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.02em; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 640px) {
  .sec { padding-top: 40px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 2px 20px; width: calc(100% + 40px); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters .chip { flex: none; }
}

/* ── Karty vozidiel ────────────────────────────────────────────────────── */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
@media (max-width: 640px) { .vgrid { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
.vc { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-xs); transition: transform var(--t-slow), box-shadow var(--t-slow), border-color var(--t); }
.vc:not(.vc--skel):hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(16,18,29,.12); border-color: transparent; }
.vc__media { position: relative; aspect-ratio: 16 / 10; background: radial-gradient(120% 90% at 50% 100%, #ffffff 0%, #f1f2f5 55%, #e6e8ec 100%); display: flex; align-items: center; justify-content: center; padding: 6% 6% 9%; cursor: pointer; }
.vc__media::after { content: ''; position: absolute; left: 14%; right: 14%; bottom: 9%; height: 10%; background: radial-gradient(ellipse at center, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 70%); }
.vc__media img { position: relative; z-index: 1; max-width: 100%; max-height: 100%; object-fit: contain; transition: transform var(--t-slow); }
.vc:hover .vc__media img { transform: scale(1.035); }
.vc__noimg { color: var(--faint); }
.vc__noimg .i { width: 56px; height: 56px; stroke-width: 1.2; }
.vc__brand { position: absolute; top: 16px; left: 16px; z-index: 2; color: var(--ink); opacity: .85; }
.vc__brand svg { height: 13px; }
.vc__brand .brand-logo--audi svg { height: 16px; }
.vc__badge { position: absolute; top: 12px; right: 12px; z-index: 2; }
.vc__body { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px 20px; flex: 1; }
.vc__body h3 { font-size: 20px; letter-spacing: -.015em; }
.vc__engine { margin: 0; color: var(--muted); font-size: 14px; min-height: 21px; }
.vc__specs { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; padding: 0; margin: 10px 0 16px; font-size: 13px; color: var(--text); }
.vc__specs li { display: inline-flex; align-items: center; gap: 6px; }
.vc__specs .i { width: 16px; height: 16px; color: var(--faint); }
.vc__body .btn { margin-top: auto; }
.vc__body .btn .i { transition: transform var(--t); }
.vc:hover .vc__body .btn .i { transform: translateX(3px); }

.noveh { grid-column: 1 / -1; }

/* ── Ako to funguje ────────────────────────────────────────────────────── */
.steps { padding: 56px 0 72px; }
.steps__list { list-style: none; margin: 0; padding: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; background: #fff; border-radius: 20px; border: 1px solid var(--line); }
.steps__list li { display: flex; gap: 14px; align-items: flex-start; }
.steps__n { flex: none; width: 36px; height: 36px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 700; display: grid; place-items: center; }
.steps__list h3 { font-size: 16px; margin-bottom: 3px; }
.steps__list p { margin: 0; color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .steps__list { grid-template-columns: minmax(0, 1fr); padding: 22px; gap: 18px; } .steps { padding: 32px 0 48px; } }

/* ── Pätička ───────────────────────────────────────────────────────────── */
.pf { background: #121418; color: rgba(255,255,255,.66); font-size: 14px; }
.pf__in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-top: 34px; padding-bottom: calc(34px + env(safe-area-inset-bottom)); }
.pf__logo { height: 24px; width: auto; margin-right: auto; }
.pf a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.pf a:hover { text-decoration: underline; }
.pf .i { color: rgba(255,255,255,.45); }
.pf__mails { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.pf__sep { color: rgba(255,255,255,.3); }
.pf__copy { width: 100%; font-size: 12px; color: rgba(255,255,255,.4); padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (max-width: 640px) { .pf__logo { width: 100%; height: auto; max-width: 120px; margin-bottom: 4px; } .pf__in { flex-direction: column; align-items: flex-start; } }

/* ── Rezervačné okno ───────────────────────────────────────────────────── */
.bk { display: grid; grid-template-columns: 320px minmax(0, 1fr); min-height: 520px; background: linear-gradient(90deg, #f2f3f6 0, #f2f3f6 320px, #fff 320px); }
.bk__car { position: sticky; top: 0; align-self: start; padding: 26px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; min-height: 520px; }
.bk__img { aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; }
.bk__img img { max-height: 100%; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(0,0,0,.14)); }
.bk__car h3 { font-size: 21px; }
.bk__car .brand-logo { color: var(--ink); }
.bk__engine { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.bk__sum { margin-top: 8px; background: #fff; border-radius: var(--r); padding: 14px 16px; border: 1px solid var(--line); display: grid; gap: 10px; }
.bk__sum div { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink); font-weight: 700; }
.bk__sum div.is-empty { color: var(--faint); font-weight: 400; }
.bk__sum .i { color: var(--muted); margin-top: 1px; }
.bk__main { display: flex; flex-direction: column; min-width: 0; }
.bk__steps { display: flex; gap: 6px; padding: 18px 26px 0; }
.bk__step { flex: 1; display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.bk__step::before { content: ''; height: 4px; border-radius: 4px; background: var(--line); transition: background var(--t-slow); }
.bk__step.is-done, .bk__step.is-on { color: var(--ink); }
.bk__step.is-done::before, .bk__step.is-on::before { background: var(--primary); }
.bk__content { padding: 22px 26px 26px; flex: 1; }
.bk__content h3 { font-size: 20px; margin-bottom: 4px; }
.bk__content > p.muted { margin: 0 0 18px; font-size: 14px; }
.bk__form { display: grid; gap: 16px; }
.bk__legal { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 0; }
.bk__legal a { color: var(--primary); }
.bk__done { text-align: center; padding: 18px 0 6px; }
.bk__check { width: 76px; height: 76px; border-radius: 50%; background: var(--ok-tint); color: var(--ok); display: grid; place-items: center; margin: 0 auto 18px; animation: pop .5s var(--t-slow); }
.bk__check .i { width: 38px; height: 38px; stroke-width: 2.4; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .25s ease forwards; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.bk__done h3 { font-size: 24px; }
.bk__done p { color: var(--muted); max-width: 420px; margin: 8px auto 0; }
.bk__code { display: inline-block; margin-top: 16px; padding: 8px 14px; border-radius: var(--r-sm); background: #f2f3f5; font-weight: 700; letter-spacing: .14em; color: var(--ink); font-variant-numeric: tabular-nums; }
.bk__rows { text-align: left; margin: 22px auto 0; max-width: 440px; border-top: 1px solid var(--line); }
.bk__rows div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.bk__rows span { color: var(--muted); }
.bk__rows b { color: var(--ink); text-align: right; }
.bk__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 860px) {
  .bk { grid-template-columns: minmax(0, 1fr); min-height: 0; background: #fff; }
  .bk__car { position: static; min-height: 0; background: linear-gradient(180deg, #f6f7f9 0%, #eef0f3 100%); flex-direction: row; align-items: center; gap: 14px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .bk__img { width: 96px; flex: none; }
  .bk__car .bk__info { min-width: 0; }
  .bk__car h3 { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bk__engine { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bk__car .brand-logo { display: none; }
  .bk__sum { display: none; }
  .bk__steps { padding: 14px 16px 0; }
  .bk__content { padding: 18px 16px 22px; }
}
.bk-modal .modal__body { padding: 0; }
.bk-pick-sum { display: none; }
@media (max-width: 860px) {
  .bk-pick-sum { display: block; flex: 1; min-width: 0; font-size: 13px; color: var(--muted); }
  .bk-pick-sum b { display: block; color: var(--ink); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ── Správa rezervácie (/rezervacia/:token) ───────────────────────────── */
.mg { min-height: 100dvh; display: flex; flex-direction: column; background: #f4f5f7; }
.mg__top { background: #121418; }
.mg__top .ph__in { height: 68px; }
.mg__main { flex: 1; padding: 32px 20px 56px; }
.mg__card { max-width: 720px; margin: 0 auto; background: #fff; border-radius: 22px; border: 1px solid var(--line); overflow: hidden; box-shadow: var(--sh-sm); }
.mg__media { aspect-ratio: 21/9; background: radial-gradient(120% 90% at 50% 100%, #fff 0%, #f1f2f5 55%, #e4e6eb 100%); display: flex; align-items: center; justify-content: center; padding: 4% 12% 5%; }
.mg__media img { max-height: 100%; object-fit: contain; filter: drop-shadow(0 12px 14px rgba(0,0,0,.16)); }
.mg__body { padding: 26px 28px 28px; }
.mg__body h1 { font-size: clamp(24px, 3.5vw, 30px); margin: 10px 0 4px; }
.mg__rows { margin: 20px 0 0; border-top: 1px solid var(--line); }
.mg__rows div { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.mg__rows .i { color: var(--muted); margin-top: 2px; }
.mg__rows span { color: var(--muted); font-size: 13px; display: block; }
.mg__rows b { color: var(--ink); }
.mg__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.mg__picker { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .mg__main { padding: 0 0 40px; } .mg__card { border-radius: 0; border: 0; } .mg__body { padding: 22px 18px; } .mg__actions .btn { flex: 1 1 100%; } }

.bk__steps { flex-direction: column; gap: 8px; }
.bk__bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bk__bar i { display: block; height: 100%; background: var(--primary); border-radius: 4px; transition: width var(--t-slow); }
.bk__stepl { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bk__content h3 { margin-bottom: 2px; }
