/* ==========================================================================
   STS Parkování Lubná — červeno-bílý design
   ========================================================================== */
:root {
  --red: #d81e16;
  --red-2: #b3140e;
  --red-3: #8f0f0a;
  --red-soft: #fdeeed;
  --red-line: #f4c6c3;
  --ink: #16181d;
  --ink-2: #2b2e35;
  --muted: #6b7079;
  --bg: #f4f5f7;
  --card: #ffffff;
  --line: #e4e6ea;
  --line-2: #d3d6dc;
  --green: #12804a;
  --green-soft: #e7f5ed;
  --green-line: #a9dcbf;
  --blue: #0a5aa8;
  --amber-ink: #7a4b00;
  --amber-soft: #fff5dc;
  --amber-line: #f0d08a;
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.4, 0, .2, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);

  /* kompatibilita se staršími jmény */
  --txt: var(--ink);
  --bg2: #f8f9fa;
  --amber: var(--red);
  --amber2: var(--red-2);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  padding-bottom: calc(24px + var(--safe-b));
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body::before {
  content: "";
  position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 60;
  background: var(--red);
}
body[data-test="1"] { padding-bottom: calc(84px + var(--safe-b)); }
a { color: var(--red); }
::selection { background: var(--red); color: #fff; }

/* --------------------------------------------------------------------------
   Přechody mezi stránkami
   -------------------------------------------------------------------------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .34s var(--ease-out) both; }
::view-transition-new(root) { animation: none; }
::view-transition-group(topbar) { animation-duration: 0s; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-16px) scale(.985); } }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
@keyframes sign-in {
  from { opacity: 0; transform: translateY(-26px) rotate(-6deg) scale(.86); }
  60% { opacity: 1; transform: translateY(4px) rotate(1.5deg) scale(1.02); }
  to { opacity: 1; transform: none; }
}
@keyframes sheet-in {
  from { opacity: 0; transform: translateY(40px) scale(.98); }
  to { opacity: 1; transform: none; }
}
@keyframes pulse { 50% { transform: scale(1.25); opacity: .6; } }
@keyframes ring {
  0% { box-shadow: 0 0 0 0 rgba(216, 30, 22, .38); }
  70% { box-shadow: 0 0 0 16px rgba(216, 30, 22, 0); }
  100% { box-shadow: 0 0 0 0 rgba(216, 30, 22, 0); }
}

.wrap > *, .welcome > * {
  animation: rise .6s var(--ease) both;
}
.wrap > *:nth-child(1) { animation-delay: .04s; }
.wrap > *:nth-child(2) { animation-delay: .09s; }
.wrap > *:nth-child(3) { animation-delay: .14s; }
.wrap > *:nth-child(4) { animation-delay: .19s; }
.wrap > *:nth-child(5) { animation-delay: .24s; }
.wrap > *:nth-child(6) { animation-delay: .29s; }
.wrap > *:nth-child(n+7) { animation-delay: .34s; }

html.is-leaving .wrap,
html.is-leaving .welcome {
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
  opacity: 0;
  transform: translateY(-14px);
}

/* --------------------------------------------------------------------------
   Hlavička
   -------------------------------------------------------------------------- */
.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(12px + var(--safe-t)) 18px 12px;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  view-transition-name: topbar;
}
.top > * { max-width: 100%; }
.brand {
  display: flex; gap: 12px; align-items: center;
  text-decoration: none; color: inherit; min-width: 0;
}
.brand-logo { display: block; height: 38px; width: auto; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; min-width: 0; padding-left: 12px; border-left: 1px solid var(--line); }
.brand-text strong { font-size: 1rem; letter-spacing: -.01em; line-height: 1.15; white-space: nowrap; }
.brand-text small { color: var(--muted); font-size: .74rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.langs { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.lang {
  display: inline-flex; align-items: center; justify-content: center; gap: 3px;
  min-width: 32px; height: 28px; padding: 0 8px;
  text-decoration: none; color: var(--muted);
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.lang .lang-flag-img {
  width: 16px; height: 12px; object-fit: cover;
  border-radius: 2px; display: block;
  box-shadow: 0 0 0 1px rgba(0,0,0,.12);
}
.lang .lang-code { line-height: 1; }
.lang:hover { border-color: var(--red-line); color: var(--red); }
.lang:active { transform: scale(.94); }
.lang.on { color: #fff; background: var(--red); border-color: var(--red); }

/* --------------------------------------------------------------------------
   Obsah
   -------------------------------------------------------------------------- */
.wrap { max-width: 640px; margin: 0 auto; padding: 22px 18px 40px; }
h1 { font-size: 1.85rem; line-height: 1.12; letter-spacing: -.025em; margin: .1rem 0 .5rem; font-weight: 800; }
h2 { letter-spacing: -.015em; }
.lead, .muted { color: var(--muted); }
.lead { font-size: 1rem; margin: 0 0 14px; }
.muted { font-size: .9rem; line-height: 1.5; }

.backlink {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 600;
  margin: 0 0 12px; padding: 6px 12px 6px 8px; border-radius: 999px;
  transition: background .2s, color .2s;
}
.backlink:hover { background: #fff; color: var(--red); }

.banner {
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
  padding: 12px 14px; border-radius: 14px; margin: 10px 0 14px; font-size: .92rem; line-height: 1.45;
}
.banner.warn { background: var(--amber-soft); border-color: var(--amber-line); color: var(--amber-ink); font-weight: 600; }

.hint { color: var(--amber-ink); font-size: .9rem; margin: 0 0 8px; line-height: 1.45; font-weight: 600; }
.form-err {
  color: var(--red-2); font-weight: 700; background: var(--red-soft);
  border: 1px solid var(--red-line); padding: 10px 12px; border-radius: 12px;
}
.save { color: var(--muted); font-size: .82rem; line-height: 1.5; }
.camera-notice { margin: 4px 0 0; font-size: .82rem; font-weight: 600; }

/* --------------------------------------------------------------------------
   Tlačítka
   -------------------------------------------------------------------------- */
.cta, .btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 56px; padding: 0 18px; border: 0; border-radius: 16px;
  font: inherit; font-weight: 800; font-size: 1.02rem; letter-spacing: .005em;
  cursor: pointer; text-decoration: none; color: #fff; background: var(--red);
  transition: transform .18s var(--ease), background-color .2s, box-shadow .25s, opacity .2s;
  box-shadow: 0 8px 22px -10px rgba(216, 30, 22, .7);
}
.cta:hover, .btn:hover { background: var(--red-2); }
.cta:active, .btn:active { transform: scale(.975); }
.btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; transform: none; }
.btn.primary { background: var(--red); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--red-2); }
.btn.ghost {
  background: #fff; color: var(--ink-2); border: 1px solid var(--line-2);
  margin-top: 8px; box-shadow: none;
}
.btn.ghost:hover { background: #f7f7f8; }
.btn.entry { background: var(--green); box-shadow: 0 8px 22px -10px rgba(18, 128, 74, .7); min-height: 64px; font-size: 1.1rem; }
.btn.entry:hover { background: #0e6a3d; }
.btn.exit { background: var(--ink); box-shadow: 0 8px 22px -12px rgba(22, 24, 29, .7); min-height: 64px; font-size: 1.1rem; }
.btn.exit:hover:not(:disabled) { background: #000; }
.btn.exit:disabled { background: #e9eaed; color: #8a8f98; opacity: 1; }
.btn.pedestrian {
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--ink);
  min-height: 56px;
  font-size: 1.05rem;
  box-shadow: none;
}
.btn.pedestrian:hover:not(:disabled) { background: #f3f4f6; }
.btn.pedestrian:disabled { border-color: #c8ccd2; color: #8a8f98; background: #f7f7f8; opacity: 1; }
.btn.early {
  margin-top: 12px; background: #fff; color: var(--ink-2);
  border: 1px solid var(--line-2); font-size: .95rem; box-shadow: none; min-height: 50px;
}
.btn.early:hover { border-color: var(--red-line); color: var(--red); background: #fff; }

/* --------------------------------------------------------------------------
   Karty
   -------------------------------------------------------------------------- */
.card, .ticket {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px -16px rgba(16, 24, 40, .18);
}
.card h2 { margin: 0 0 10px; font-size: 1.1rem; }
.resume-card {
  display: block; margin: 0 0 16px; padding: 16px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--red-line); border-left: 5px solid var(--red);
  color: inherit; text-decoration: none;
  box-shadow: 0 8px 24px -16px rgba(216, 30, 22, .45);
}
.resume-card strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.resume-card p { margin: 0 0 12px; color: var(--muted); font-size: .9rem; }
.resume-card .cta { margin: 0; }
.facts { margin: 0 0 14px; padding: 0 0 0 18px; color: var(--muted); }

.kv { margin: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 800; text-align: right; }
.sum { color: var(--red); font-size: 1.35rem; }

/* --------------------------------------------------------------------------
   Rezervace
   -------------------------------------------------------------------------- */
.book fieldset {
  border: 1px solid var(--line); background: #fff; border-radius: var(--radius);
  padding: 16px; margin: 0 0 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.book legend {
  float: left; width: 100%; padding: 0; margin: 0 0 12px;
  font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em;
}
.book legend + * { clear: both; }
.book .muted, .book .mgr-line { padding: 0 4px; }

.when-ask { font-size: .95rem; font-weight: 700; margin: 0 0 10px; color: var(--muted); }
.when-choices { display: grid; gap: 10px; margin: 0 0 12px; }
.when-choice {
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  width: 100%; min-height: 104px; text-align: left;
  padding: 16px 18px;
  border: 2px solid var(--line); border-radius: 16px;
  background: #fafafb; color: var(--ink); cursor: pointer; font: inherit;
  transition: border-color .22s, background-color .22s, transform .18s var(--ease), box-shadow .25s;
}
.when-choice:hover { border-color: var(--line-2); }
.when-choice:active { transform: scale(.985); }
.when-choice-kicker {
  font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.when-choice strong { font-size: 1.3rem; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
.when-choice small { color: var(--muted); font-size: .93rem; font-weight: 600; line-height: 1.35; }
.when-choice.on {
  border-color: var(--red); background: var(--red-soft);
  box-shadow: 0 10px 24px -18px rgba(216, 30, 22, .8);
}
.when-choice.on .when-choice-kicker { color: var(--red); }
.when-choice[data-now="1"].on {
  border-color: var(--green); background: var(--green-soft);
  box-shadow: 0 10px 24px -18px rgba(18, 128, 74, .8);
}
.when-choice[data-now="1"].on .when-choice-kicker { color: var(--green); }

.when { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.when .chip {
  border: 1px solid var(--line-2); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 9px 16px; font: inherit; font-weight: 800; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.when .chip:active { transform: scale(.95); }
.when .chip.on { background: var(--red); color: #fff; border-color: var(--red); }

.durations { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dur {
  position: relative;
  display: flex; flex-direction: column; gap: 4px; padding: 16px;
  border: 2px solid var(--line); border-radius: 16px; background: #fafafb; cursor: pointer;
  transition: border-color .22s, background-color .22s, transform .18s var(--ease);
}
.dur:active { transform: scale(.98); }
.dur.on { border-color: var(--red); background: var(--red-soft); }
.dur input { position: absolute; opacity: 0; pointer-events: none; }
.dur span { font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; }
.dur small { color: var(--muted); font-weight: 600; }
.dur-price-czk { display: block; margin-top: 2px; }
.pay-curs { margin: 14px 0 4px; }
.dur.on small { color: var(--red-2); }

.field { display: block; font-size: .9rem; font-weight: 700; color: var(--ink-2); margin: 0 0 14px; }
.book .field.plate-field {
  border: 1px solid var(--line); background: #fff; border-radius: var(--radius);
  padding: 16px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.field input {
  width: 100%; margin-top: 8px; background: #fafafb; color: var(--ink);
  border: 1.5px solid var(--line-2); border-radius: 12px; padding: 13px 14px; font: inherit; font-size: 1rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus { outline: none; border-color: var(--red); background: #fff; box-shadow: 0 0 0 4px rgba(216, 30, 22, .12); }
.field .req { color: var(--red); font-weight: 800; }
.field .hint { display: block; margin-top: 8px; font-size: .78rem; font-weight: 500; color: var(--muted); }
.field input.plate {
  font-size: 1.45rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  text-align: center; border-left: 14px solid var(--blue);
}
.field input.plate::placeholder { color: #b3b7be; letter-spacing: .08em; }

.avail-fieldset { margin-top: 4px; }
.avail-banner {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 88px; padding: 16px 14px; border-radius: 16px; text-align: center;
  border: 2px solid transparent; transition: background .25s, border-color .25s, color .25s;
}
.avail-banner.is-free {
  background: linear-gradient(165deg, #e8f8ef 0%, #d4f0e0 100%);
  border-color: #2f9e5f; color: #146c3a;
}
.avail-banner.is-full {
  background: linear-gradient(165deg, #ffe8e6 0%, #ffd2ce 100%);
  border-color: var(--red, #d62828); color: #a11818;
}
.avail-banner.is-closed {
  background: linear-gradient(165deg, #eceef2 0%, #d9dde5 100%);
  border-color: #5c6573; color: #2a303a;
}
.closed-panel {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 110px; padding: 20px 18px; border-radius: 20px; text-align: center;
  background: linear-gradient(165deg, #eceef2 0%, #d9dde5 100%);
  border: 2px solid #5c6573; color: #2a303a;
  box-shadow: 0 14px 28px -18px rgba(20, 28, 40, .45);
}
.closed-panel-state {
  font-size: 1.7rem; font-weight: 900; letter-spacing: .12em; line-height: 1.1;
  text-transform: uppercase;
}
.closed-panel-msg {
  margin: 0; font-size: .95rem; font-weight: 650; line-height: 1.4; color: #3a4250;
  max-width: 28rem;
}
.avail-state {
  font-size: 1.65rem; font-weight: 900; letter-spacing: .08em; line-height: 1.1;
  text-transform: uppercase;
}
.avail-count {
  font-size: .95rem; font-weight: 700; letter-spacing: .02em; opacity: .9;
}
.avail-banner.is-full .avail-count { display: none; }
.lot {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
  background: #3a3d44; padding: 12px; border-radius: 16px;
  background-image: repeating-linear-gradient(90deg, transparent 0 calc(20% - 1px), rgba(255,255,255,.08) calc(20% - 1px) 20%);
}
.stall {
  min-height: 74px; border-radius: 10px; border: 2px dashed rgba(255,255,255,.55); background: transparent;
  color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  cursor: pointer; font: inherit; font-weight: 800;
  transition: background .2s, border-color .2s, transform .18s var(--ease), color .2s;
}
.stall:hover:not(:disabled) { background: rgba(255,255,255,.08); }
.stall:active:not(:disabled) { transform: scale(.94); }
.stall b { font-size: 1.3rem; }
.stall span { font-size: .62rem; font-weight: 800; color: #7fe0aa; text-transform: uppercase; letter-spacing: .06em; }
.stall.busy { opacity: .45; border-style: solid; border-color: rgba(255,255,255,.18); background: rgba(0,0,0,.2); cursor: not-allowed; }
.stall.busy span { color: #ff9c96; }
.stall.sel { background: var(--red); color: #fff; border: 2px solid #fff; animation: pop .35s var(--ease); }
.stall.sel span { color: #ffe0de; }

.mgr-line { line-height: 1.55; }
.mgr-list { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.mgr { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; white-space: normal; }
.lang-flag { font-style: normal; font-size: 1.05rem; line-height: 1; }
.mgr a { font-weight: 800; letter-spacing: .02em; text-decoration: none; }
.mgr a:hover { text-decoration: underline; }
.book #bookGo { margin-top: 6px; min-height: 60px; font-size: 1.08rem; }

/* --------------------------------------------------------------------------
   Platba
   -------------------------------------------------------------------------- */
.pay-hold {
  background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--red); border-radius: var(--radius);
  padding: 16px; margin: 0 0 14px; text-align: center;
  box-shadow: 0 8px 24px -16px rgba(16, 24, 40, .2);
  transition: background .3s, border-color .3s;
}
.pay-hold-label { font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pay-hold-time {
  display: block; margin: 6px 0 4px; font-size: 2.6rem; font-variant-numeric: tabular-nums;
  font-weight: 900; color: var(--ink); line-height: 1.05; letter-spacing: -.02em;
}
.pay-hold-hint { margin: 0; color: var(--muted); font-size: .88rem; font-weight: 600; }
.pay-hold.is-urgent { background: var(--red-soft); border-color: var(--red-line); border-top-color: var(--red); }
.pay-hold.is-urgent .pay-hold-time { color: var(--red); animation: pulse 1s infinite; }

/* --------------------------------------------------------------------------
   Lístek / brána
   -------------------------------------------------------------------------- */
.ticket {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  column-gap: 16px; row-gap: 4px; align-items: center;
}
.ticket .ticket-spot { grid-row: 1 / 3; }
.ticket .ticket-status { align-self: end; }
.ticket .muted { align-self: start; }
.ticket-spot {
  width: 92px; height: 92px; border-radius: 20px; background: var(--red); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 10px 22px -12px rgba(216, 30, 22, .8);
}
.ticket-spot span { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; opacity: .9; }
.ticket-spot strong { font-size: 2.3rem; line-height: 1; }
.ticket-status { margin: 0; font-weight: 800; font-size: 1.08rem; line-height: 1.3; }
.ticket .muted { margin: 0; }

.gate-live {
  display: flex; gap: 14px; align-items: center; background: #fff;
  border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 12px;
  transition: border-color .3s, background .3s;
}
.gate-live .dot {
  width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0;
  background: #b5b9c0; box-shadow: 0 0 0 5px rgba(181, 185, 192, .22);
  transition: background .3s, box-shadow .3s;
}
.gate-live.open { border-color: var(--green-line); background: var(--green-soft); }
.gate-live.open .dot { background: var(--green); box-shadow: 0 0 0 5px rgba(18, 128, 74, .18); }
.gate-live.opening .dot { background: #e0a100; animation: pulse 1s infinite; }
.gate-live.staff .dot { background: var(--blue); box-shadow: 0 0 0 5px rgba(10, 90, 168, .16); }
.gate-live strong { display: block; }
.gate-live small { display: block; color: var(--muted); }

.actions { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.timer {
  display: flex; justify-content: space-between; align-items: baseline;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-top: 8px;
}
.timer strong { font-variant-numeric: tabular-nums; font-size: 1.35rem; color: var(--red); }
.timer-gate {
  border-color: #f59e0b;
  background: #fffbeb;
}
.timer-gate strong { color: #b45309; font-size: 1.55rem; }

.depart-blink {
  background: #7f1d1d !important;
  border-color: #dc2626 !important;
  color: #fff !important;
  text-align: center;
  font-weight: 800;
  letter-spacing: .02em;
  animation: departPulse 1s ease-in-out infinite;
}
.depart-blink strong { display: block; font-size: 1.15rem; margin-bottom: 6px; text-transform: uppercase; }
.depart-blink p { margin: 0; font-weight: 700; opacity: .95; }
@keyframes departPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .72; transform: scale(0.995); }
}
.btn.exit.is-depart {
  background: #dc2626;
  border-color: #b91c1c;
  animation: departPulse 1s ease-in-out infinite;
}

.entry-guide {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin: 0 0 14px;
}
.entry-guide h2 { margin: 0 0 12px; font-size: 1.08rem; }
.entry-guide-fig { margin: 0 0 12px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #eee; }
.entry-guide-fig img { display: block; width: 100%; height: auto; }
.entry-guide-steps { margin: 0 0 10px; padding-left: 1.2rem; color: var(--ink); font-weight: 700; line-height: 1.45; }
.entry-guide-ban {
  margin: 0; padding: 11px 13px; border-radius: 12px;
  background: var(--red-soft); border: 1px solid var(--red-line); color: var(--red-2);
  font-weight: 800; line-height: 1.35; text-transform: uppercase; letter-spacing: .02em; font-size: .9rem;
}

/* --------------------------------------------------------------------------
   Modální okno
   -------------------------------------------------------------------------- */
.modal {
  position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center;
  padding: 16px 16px calc(16px + var(--safe-b));
}
.modal-backdrop {
  position: absolute; inset: 0; background: rgba(15, 17, 22, .5); border: 0; padding: 0; cursor: pointer;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  animation: fade .25s var(--ease-out) both;
}
.modal-sheet {
  position: relative; z-index: 1; width: min(440px, 100%);
  background: #fff; border-radius: 22px; border-top: 5px solid var(--red);
  padding: 20px 18px 18px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .45);
  animation: sheet-in .38s var(--ease) both;
}
.modal-sheet h2 { margin: 0 0 10px; font-size: 1.3rem; line-height: 1.2; }
.modal-body { margin: 0 0 12px; color: var(--ink-2); font-weight: 600; line-height: 1.45; }
.modal-warn {
  margin: 0 0 16px; padding: 11px 13px; border-radius: 12px;
  background: var(--amber-soft); border: 1px solid var(--amber-line); color: var(--amber-ink);
  font-weight: 800; font-size: .92rem; line-height: 1.35;
}
.modal-step { animation: fade .25s var(--ease-out) both; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; margin: 0; }
@media (min-width: 560px) { .modal { align-items: center; } }

/* --------------------------------------------------------------------------
   Patička + testovací panel
   -------------------------------------------------------------------------- */
.foot {
  text-align: center; color: var(--muted); font-size: .78rem;
  padding: 14px 16px calc(18px + var(--safe-b));
  line-height: 1.45;
}
.foot-prices { margin-bottom: 8px; }
.foot-legal {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px;
  margin-bottom: 6px;
}
.foot-legal a, .foot-contact a {
  color: var(--ink, #1a1d24); font-weight: 700; text-decoration: none;
}
.foot-legal a:hover, .foot-contact a:hover { text-decoration: underline; }
.foot-company { font-weight: 600; color: #4a5060; }
.foot-contact { margin-top: 4px; }
.foot-pay, .pay-logos {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 12px 16px; margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--line, #e4e6eb);
}
.pay-logos--legal { justify-content: flex-start; border-top: 0; padding-top: 8px; margin-top: 12px; }
.foot-pay-bar { display: inline-block; line-height: 0; max-width: min(100%, 440px); }
.foot-pay-bar-img {
  display: block; width: 100%; height: auto; max-height: 48px; object-fit: contain;
}
.foot-pay-bar-img--dark { display: none; }
.foot-pay-link {
  font-weight: 700; color: var(--ink, #1a1d24); text-decoration: none; font-size: .78rem;
}
.foot-pay-link:hover { text-decoration: underline; }
.pay-legal-note { margin-top: 12px; font-size: .85rem; }
body[data-page="home"] > .foot {
  display: block;
  background: #12151b;
  color: rgba(255,255,255,.72);
  border-top: 1px solid rgba(255,255,255,.08);
}
body[data-page="home"] > .foot .foot-legal a,
body[data-page="home"] > .foot .foot-contact a,
body[data-page="home"] > .foot .foot-pay-link {
  color: #fff;
}
body[data-page="home"] > .foot .foot-company { color: rgba(255,255,255,.78); }
body[data-page="home"] > .foot .foot-pay {
  border-top-color: rgba(255,255,255,.12);
}
body[data-page="home"] > .foot .foot-pay-bar-img--light { display: none; }
body[data-page="home"] > .foot .foot-pay-bar-img--dark { display: block; }
.pay-legal-note a { font-weight: 700; color: var(--ink); }
.legal-nav {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px;
}
.legal-nav a {
  display: inline-block; padding: 8px 12px; border-radius: 999px;
  background: #f1f2f5; color: var(--ink); text-decoration: none;
  font-size: .82rem; font-weight: 700;
}
.legal-nav a:hover { background: #e4e6eb; }
.legal-sec { margin-bottom: 14px; scroll-margin-top: 18px; }
.legal-sec h2 { margin: 0 0 10px; font-size: 1.15rem; }
.legal-sec h3 { margin: 14px 0 8px; font-size: 1rem; }
.legal-list { margin: 0 0 14px; padding-left: 1.2rem; color: var(--muted); line-height: 1.55; }
.legal-list li { margin-bottom: 8px; }
.legal-sec .kv { margin-top: 8px; }
.dev {
  position: fixed; left: 12px; right: 12px; bottom: calc(10px + var(--safe-b)); z-index: 40;
  max-width: 640px; margin: 0 auto; border-radius: 16px; overflow: hidden;
  background: #fff; border: 1px solid var(--line-2); box-shadow: 0 12px 40px -14px rgba(0, 0, 0, .35);
}
.dev-toggle {
  width: 100%; background: var(--ink); color: #fff; border: 0; padding: 10px;
  font: inherit; font-weight: 800; font-size: .85rem; cursor: pointer; letter-spacing: .04em;
}
.dev.open .dev-body { display: block; }
.dev-body { display: none; padding: 10px; }
.dev-gate { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; margin-bottom: 8px; color: var(--muted); font-size: .82rem; }
.dev-gate strong { color: var(--red); }
.dev-btn {
  width: 100%; margin: 4px 0; min-height: 42px; border-radius: 10px; border: 1px solid var(--line-2);
  background: #fafafb; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer;
}

/* --------------------------------------------------------------------------
   Uvítací obrazovka
   -------------------------------------------------------------------------- */
body[data-page="home"] { padding-bottom: 0; background: #1a1d24; }
body[data-page="home"] > .top { display: none; }
body[data-page="home"] > .wrap { max-width: none; padding: 0; }
body[data-page="home"][data-test="1"] .welcome { padding-bottom: calc(76px + var(--safe-b)); }

.welcome {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center;
  padding: calc(18px + var(--safe-t)) 18px calc(22px + var(--safe-b));
  text-align: center;
  color: #fff;
  background: #1a1d24;
}
.welcome-bg {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
}
.welcome-bg picture,
.welcome-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.welcome-bg-img {
  object-fit: cover;
  /* noční fotka: kamiony vpravo, světlý štěrk vlevo/střed */
  object-position: 72% 48%;
  transform: scale(1.05);
  animation: welcome-pan 18s var(--ease-out) both;
}
@keyframes welcome-pan {
  from { transform: scale(1.12) translate3d(1.2%, 0, 0); }
  to { transform: scale(1.05) translate3d(0, 0, 0); }
}
.welcome-bg-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 10, 22, .55) 0%, rgba(6, 10, 22, .18) 30%, rgba(6, 10, 22, .28) 58%, rgba(6, 10, 22, .78) 100%),
    radial-gradient(110% 65% at 50% 100%, rgba(216, 30, 22, .22) 0%, transparent 55%);
}
.welcome > *:not(.welcome-bg) { position: relative; z-index: 1; }
.welcome > *:nth-child(2) { animation-delay: .05s; }
.welcome > *:nth-child(3) { animation-delay: .1s; }
.welcome > *:nth-child(4) { animation-delay: .18s; }
.welcome > *:nth-child(5) { animation-delay: .28s; }
.welcome > *:nth-child(6) { animation-delay: .36s; }

.welcome-top {
  width: 100%; max-width: 720px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.welcome-brand {
  display: block; width: 118px; height: auto;
  padding: 10px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .55);
}
.welcome-langs { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; }
.welcome .lang {
  display: inline-flex; align-items: center; gap: 4px;
  color: rgba(255, 255, 255, .88);
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 5px 9px;
}
.welcome .lang .lang-flag-img {
  width: 18px; height: 13px; object-fit: cover;
  border-radius: 2px; display: block;
  box-shadow: 0 0 0 1px rgba(255,255,255,.25);
}
.welcome .lang .lang-code { font-size: .72rem; font-weight: 800; letter-spacing: .04em; }
.welcome .lang:hover { color: #fff; border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .2); }
.welcome .lang.on { color: #fff; background: var(--red); border-color: var(--red); }
.welcome-resume { width: 100%; max-width: 420px; text-align: left; margin: 14px 0 0; }

/* První výběr jazyka (vlajky) */
.welcome.is-picking-lang .welcome-langs,
.welcome.is-picking-lang .welcome-main { display: none; }
.welcome:not(.is-picking-lang) .lang-pick { display: none; }
.lang-pick {
  flex: 1;
  width: 100%; max-width: 560px;
  display: flex; align-items: center; justify-content: center;
  padding: 18px 0 8px;
}
.lang-pick-card {
  width: 100%;
  padding: 22px 16px 18px;
  border-radius: 24px;
  background: rgba(10, 14, 26, .55);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .7);
  animation: lang-pick-in .55s var(--ease-out) both;
}
@keyframes lang-pick-in {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to { opacity: 1; transform: none; }
}
.lang-pick-kicker {
  margin: 0 0 6px;
  font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: rgba(255, 255, 255, .62);
}
.lang-pick-heading {
  margin: 0 0 16px;
  font-size: clamp(1.35rem, 4.5vw, 1.75rem);
  font-weight: 800; letter-spacing: -.03em; color: #fff;
  text-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.lang-pick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.lang-pick-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; min-height: 92px; padding: 12px 8px;
  border-radius: 16px;
  text-decoration: none; color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 10px 24px -18px rgba(0, 0, 0, .55);
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.lang-pick-btn:hover {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .42);
  transform: translateY(-2px);
}
.lang-pick-btn:active { transform: scale(.96); }
.lang-pick-btn.is-current {
  background: rgba(216, 30, 22, .28);
  border-color: rgba(255, 120, 110, .65);
  box-shadow: 0 0 0 1px rgba(216, 30, 22, .35), 0 12px 28px -16px rgba(216, 30, 22, .55);
}
.lang-pick-flag {
  width: 48px; height: 32px; object-fit: cover;
  border-radius: 6px; display: block;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255,255,255,.2);
}
.lang-pick-name {
  font-size: .88rem; font-weight: 800; letter-spacing: -.01em;
  line-height: 1.15; text-align: center;
}
.lang-pick-code {
  font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  color: rgba(255, 255, 255, .55);
}
.welcome-main {
  flex: 1; width: 100%; max-width: 720px;
  display: flex; flex-direction: column; align-items: center;
}
@media (max-width: 420px) {
  .lang-pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .lang-pick-btn { min-height: 86px; }
}
@media (prefers-reduced-motion: reduce) {
  .lang-pick-card { animation: none; }
  .lang-pick-btn { transition: none; }
}

.welcome-hero {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; width: 100%; padding: 20px 0 12px;
}
.welcome-hello {
  margin: 0;
  font-size: clamp(2.7rem, 12vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1.04;
  min-height: 1.15em;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 10px 28px rgba(0, 0, 0, .45);
  transition: opacity .45s var(--ease-out), transform .55s var(--ease), filter .45s var(--ease-out);
}
.welcome-hello.is-out { opacity: 0; transform: translateY(14px) scale(.97); filter: blur(8px); }
.welcome-place {
  margin: 0; color: rgba(255, 255, 255, .86); font-size: .98rem; font-weight: 650; letter-spacing: .02em;
  text-shadow: 0 4px 16px rgba(0, 0, 0, .4);
}
.welcome-place b { color: #fff; font-weight: 800; }

.amenities {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 8px;
  list-style: none; margin: 6px auto 16px; padding: 14px 10px 12px;
  width: 100%; max-width: 720px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px -24px rgba(0, 0, 0, .55);
}
.amenities li {
  flex: 0 0 calc(25% - 8px); max-width: 96px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center;
}
.amenities img {
  width: 64px; height: 64px; display: block;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .28));
}
@media (min-width: 760px) {
  .amenities { flex-wrap: nowrap; padding: 16px 14px 14px; }
  .amenities li { flex: 1 1 0; max-width: none; }
  .amenities img { width: 70px; height: 70px; }
  .welcome { padding-left: 28px; padding-right: 28px; }
  .welcome-bg-img { object-position: 68% 45%; }
}
.amenities span {
  font-size: .68rem; font-weight: 800; line-height: 1.15; color: rgba(255, 255, 255, .92); letter-spacing: -.01em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.amenities .is-off span {
  color: rgba(255, 255, 255, .55);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: #ff6b63;
}
.wrap > .amenities { margin-top: 0; }

.welcome-bottom { width: 100%; max-width: 420px; }
.welcome-bottom .banner { text-align: left; }
.welcome .closed-panel {
  background: rgba(255, 255, 255, .92);
  border-color: rgba(255, 255, 255, .55);
  color: #2a303a;
  box-shadow: 0 18px 36px -18px rgba(0, 0, 0, .55);
}
.welcome-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; min-height: 92px; padding: 18px 22px 18px 26px;
  border-radius: 24px; text-decoration: none; text-align: left;
  color: #fff; background: var(--red);
  box-shadow: 0 18px 36px -14px rgba(216, 30, 22, .85), 0 10px 30px -12px rgba(0, 0, 0, .55);
  transition: transform .2s var(--ease), background-color .2s, box-shadow .3s;
  animation: ring 2.6s 1.4s infinite;
}
.welcome-cta:hover { background: var(--red-2); transform: translateY(-2px); }
.welcome-cta:active { transform: scale(.98); }
.welcome-cta-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.welcome-cta-kicker { font-size: .78rem; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; opacity: .85; }
.welcome-cta strong { font-size: 1.18rem; line-height: 1.22; font-weight: 800; }
.welcome-cta-arrow {
  display: grid; place-items: center; flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; color: var(--red);
  transition: transform .3s var(--ease);
}
.welcome-cta:hover .welcome-cta-arrow { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Výsledek platby (Comgate return)
   -------------------------------------------------------------------------- */
.result-card { text-align: center; padding: 28px 20px; }
.result-card h1 { font-size: 1.45rem; margin: 0 0 10px; }
.result-card p { margin: 0 0 18px; color: var(--muted, #5a6170); line-height: 1.45; }
.result-card .btn { margin: 4px 6px; }
.result-ok h1 { color: #1a7a3a; }
.result-fail h1 { color: var(--red, #c62828); }
.result-wait h1 { color: #345; }

/* --------------------------------------------------------------------------
   Mobil + omezení animací
   -------------------------------------------------------------------------- */
@media (max-width: 520px) {
  .top { flex-direction: column; align-items: stretch; gap: 10px; padding-left: 14px; padding-right: 14px; }
  .langs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px; }
  .langs::-webkit-scrollbar { display: none; }
  .lang { flex-shrink: 0; }
  .brand-logo { height: 34px; }
  .wrap { padding: 16px 14px 36px; }
  h1 { font-size: 1.6rem; }
  .lot { gap: 6px; padding: 8px; }
  .stall { min-height: 64px; }
  .welcome-brand { width: 100px; }
  .welcome-bg-img { object-position: 78% 50%; }
  .amenities { gap: 10px 6px; padding: 12px 8px 10px; }
  .amenities img { width: 58px; height: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
  .welcome-bg-img { transform: scale(1.04); }
}
