/* =========================================================
   LESKLEE – rezervace
   Dvousloupcový průvodce: vlevo kroky, vpravo přilepený souhrn.
   Na mobilu souhrn sjede do spodní lišty s cenou a tlačítkem.
   ========================================================= */
:root {
  --card-line: #E5E7EB;
  --sel-bg: #F5F9FF;
  --busy: #F3F4F6;
  --danger: #D93025;
}

/* ---------- Záhlaví: stejná bublina jako na hlavní stránce, jen s logem ---------- */
.mh-simple.scrolled .mh-inner { justify-content: center; padding: 10px 28px; }
.mh-simple .mh-logo { display: block; transition: transform .25s ease; }
.mh-simple .mh-logo:hover { transform: scale(1.04); }

/* ---------- Rozvržení ---------- */
.bk { max-width: calc(1180px + 32px); padding-block: 150px 120px; }
.bk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; margin-top: 36px; }
.bk-main { min-width: 0; }
.bk-side { position: sticky; top: 120px; }
.bk-step + .bk-step { margin-top: 56px; }

.step-chip { display: inline-block; background: rgba(4,116,212,.1); color: var(--blue); padding: 6px 14px; border-radius: 50px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.bk-h { font-family: var(--f-body); font-weight: 800; font-size: clamp(26px, 3vw, 32px); letter-spacing: -.02em; color: #111; margin-top: 14px; line-height: 1.2; }
.bk-desc { color: #555; font-size: 15.5px; margin-top: 8px; max-width: 62ch; }

/* ---------- Průběh ---------- */
.bk-progress { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.bk-progress li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: #9aa0a6; padding-bottom: 12px; border-bottom: 3px solid var(--line); transition: color .3s, border-color .3s; }
.bk-progress li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--line); color: #6b7280; flex: none; transition: all .3s; }
.bk-progress li.is-done { color: var(--ink); border-color: var(--blue-soft-2); }
.bk-progress li.is-done span { background: var(--blue-soft-2); color: var(--blue); }
.bk-progress li.is-current { color: var(--blue); border-color: var(--blue); }
.bk-progress li.is-current span { background: var(--blue); color: #fff; }

/* ---------- Auto ---------- */
.car-widget { margin-top: 22px; background: #fff; border: 1px solid var(--card-line); border-radius: 24px; padding: 30px; box-shadow: 0 10px 30px rgba(0,0,0,.04); }
.car-pick { display: grid; justify-items: center; gap: 16px; text-align: center; }
.car-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; max-width: 520px; }
.car-selects select, .field input, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: #fff;
  border: 1px solid #D9DCE1; border-radius: 12px; padding: 14px 16px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.car-selects select:focus, .field input:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(4,116,212,.12); }
.car-selects select:disabled { background: #F9FAFB; color: #9aa0a6; }
.car-pick .size-btns { width: 100%; max-width: 520px; }
.car-chosen { display: flex; align-items: center; gap: 18px; }
.car-chosen .icon-tile { width: 56px; height: 56px; border-radius: 16px; }
.car-chosen-txt { flex: 1; min-width: 0; display: grid; line-height: 1.35; }
.car-chosen-txt b { font-size: 21px; font-weight: 700; color: #111; }
.car-chosen-txt span:last-child { color: #666; }
.car-widget.needs-attention { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(4,116,212,.15); }

/* ---------- Služby ---------- */
.svc-group { margin-top: 34px; scroll-margin-top: 130px; }
.svc-group h3 { font-family: var(--f-body); font-size: 20px; font-weight: 700; color: #111; }
.grp-note { color: #666; font-size: 14px; margin-top: 4px; }
#grp-home { margin-top: 50px; padding-top: 30px; border-top: 2px dashed var(--line); }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 16px; }
.opt {
  position: relative; display: flex; flex-direction: column; gap: 6px; text-align: left; font: inherit; color: inherit;
  background: #fff; border: 1px solid var(--card-line); border-radius: 16px; padding: 20px 52px 18px 20px; cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s, background .2s;
}
.opt:hover { border-color: var(--blue); box-shadow: 0 8px 24px rgba(4,116,212,.1); transform: translateY(-2px); }
.opt::after { content: ""; position: absolute; top: 20px; right: 18px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #D1D5DB; background: #fff; transition: all .2s; }
.opt.is-check::after { border-radius: 7px; }
.opt[aria-pressed="true"] { border-color: var(--blue); background: var(--sel-bg); box-shadow: 0 0 0 1px var(--blue); }
.opt[aria-pressed="true"]::after { border-color: var(--blue); background: var(--blue) radial-gradient(circle, #fff 0 3.5px, transparent 4px); }
.opt.is-check[aria-pressed="true"]::after { background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat; }
.opt-name { font-weight: 700; font-size: 17px; color: #111; }
.opt-desc { font-size: 13.5px; color: #666; line-height: 1.5; }
.opt-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; }
.opt-price { font-weight: 800; font-size: 20px; color: var(--blue); font-variant-numeric: tabular-nums; }
.opt-time { font-size: 13px; color: #8a8f96; white-space: nowrap; }
.opt-sm { padding: 15px 46px 14px 16px; }
.opt-sm::after { top: 15px; right: 14px; width: 20px; height: 20px; }
.opt-sm .opt-name { font-size: 14.5px; font-weight: 600; }
.opt-sm .opt-price { font-size: 16px; }

.addons-box { grid-column: 1 / -1; background: var(--sel-bg); border: 1px dashed var(--blue); border-radius: 16px; padding: 22px; }
.addons-box h4 { margin: 0; font-size: 15.5px; font-weight: 700; color: var(--blue); }
.addons-box .opt-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 12px; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.home-inputs { margin-top: 18px; background: #F9FAFB; border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 16px; }

/* ---------- Formulářové prvky ---------- */
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 13.5px; font-weight: 600; color: #111; }
.field i { color: var(--danger); font-style: normal; }
.field .optional { color: #8a8f96; font-weight: 400; }
.field textarea { resize: vertical; min-height: 90px; }
.field.has-err input { border-color: var(--danger); }
.hint { font-size: 12.5px; color: var(--blue); font-weight: 500; }

/* ---------- Kalendář ---------- */
.cal-card, .slots-card, .form-card, .done-card { margin-top: 22px; background: #fff; border: 1px solid var(--card-line); border-radius: 22px; padding: 26px; box-shadow: 0 10px 30px rgba(0,0,0,.035); }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cal-head b { font-family: var(--f-body); font-size: 19px; font-weight: 700; color: #111; text-transform: capitalize; }
.cal-nav { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--card-line); background: #fff; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); transition: all .2s; }
.cal-nav:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { margin-top: 18px; }
.cal-dow span { text-align: center; font-size: 12px; font-weight: 700; color: #9aa0a6; text-transform: uppercase; letter-spacing: .05em; padding-bottom: 6px; }
.cal-day {
  aspect-ratio: 1; max-width: 100%; border: 1px solid transparent; border-radius: 12px; background: var(--blue-soft); color: var(--ink);
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; display: grid; place-items: center; position: relative; transition: all .2s; font-variant-numeric: tabular-nums;
}
.cal-day:hover:not(:disabled) { border-color: var(--blue); }
.cal-day.is-today::after { content: ""; position: absolute; bottom: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.cal-day:disabled { background: transparent; color: #C4C7CC; cursor: default; }
.cal-day.is-full { background: var(--busy); color: #B0B4BA; text-decoration: line-through; }
.cal-day[aria-pressed="true"] { background: var(--blue); color: #fff; }
.cal-day[aria-pressed="true"]::after { background: #fff; }
.cal-day.is-span { background: var(--blue-soft-2); color: var(--blue); }
.cal-empty { aspect-ratio: 1; }
.cal-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; font-size: 13px; color: #6b7280; }
.cal-legend span { display: inline-flex; align-items: center; gap: 7px; }
.cal-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.lg-free { background: var(--blue-soft); } .lg-full { background: var(--busy); } .lg-sel { background: var(--blue); }
.cal-status { margin-top: 10px; font-size: 13.5px; color: #8a8f96; min-height: 1.4em; }

.slots-card h3 { font-family: var(--f-body); font-size: 17px; font-weight: 700; color: #111; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 14px; }
.slot { padding: 13px 0; border-radius: 10px; border: 1px solid #D9DCE1; background: #fff; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; transition: all .2s; font-variant-numeric: tabular-nums; color: var(--ink); }
.slot:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.slot:disabled { background: var(--busy); color: #C4C7CC; border-color: var(--line); text-decoration: line-through; cursor: default; }
.slot.is-sel { background: var(--blue); border-color: var(--blue); color: #fff; }
.slot.is-in, .slot.is-in:disabled { background: var(--blue-soft-2); border-color: var(--blue-soft-2); color: var(--blue); text-decoration: none; }
.slot-msg { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--blue); min-height: 1.4em; }
.slot-msg.is-err { color: var(--danger); }

/* ---------- Kontaktní formulář ---------- */
.form-card { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: #444; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); flex: none; }
.form-err { color: var(--danger); font-size: 14px; font-weight: 600; min-height: 1.2em; }

/* ---------- Hotovo ---------- */
.done-card { text-align: center; padding: 48px 32px; display: grid; justify-items: center; gap: 12px; }
.done-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 34px; font-weight: 700; }
.done-card > p { color: #555; max-width: 46ch; }
.done-sum { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; text-align: left; background: #F9FAFB; border-radius: 16px; padding: 20px 24px; margin: 10px 0 4px; width: min(100%, 460px); }
.done-sum dt { color: #6b7280; font-size: 14px; }
.done-sum dd { margin: 0; font-weight: 600; color: #111; font-size: 14.5px; min-width: 0; overflow-wrap: anywhere; }
.done-warn { background: #FFF7E6; color: #8A5300; border-radius: 12px; padding: 12px 16px; font-size: 14px; max-width: 46ch; }
.done-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }

/* ---------- Souhrn ---------- */
.sum-card { background: #fff; border: 1px solid var(--card-line); border-radius: 24px; padding: 28px; box-shadow: 0 20px 40px rgba(0,0,0,.06); }
.sum-title { font-family: var(--f-body); font-size: 20px; font-weight: 700; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.btn-back { background: none; border: 0; padding: 0; margin-bottom: 14px; font: inherit; font-size: 14px; font-weight: 600; color: #666; cursor: pointer; }
.btn-back:hover { color: var(--blue); }
.sum-lines { margin: 16px 0 0; display: grid; gap: 10px; }
.sum-lines > div { display: flex; justify-content: space-between; gap: 14px; font-size: 14.5px; }
.sum-lines dt { color: #6b7280; flex: none; }
.sum-lines dd { margin: 0; font-weight: 600; color: #111; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.sum-lines dd.is-missing { color: var(--danger); }
.sum-lines dd.is-blue { color: var(--blue); }
.sum-addons { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 6px; font-size: 13.5px; color: #444; }
.sum-addons:empty { display: none; }
.sum-addons li { display: flex; justify-content: space-between; gap: 10px; }
.sum-addons li span:last-child { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sum-total { margin-top: 20px; padding-top: 18px; border-top: 2px solid var(--line); display: grid; }
.sum-total span { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #111; }
.sum-total b { font-size: 32px; font-weight: 800; color: var(--blue); font-variant-numeric: tabular-nums; line-height: 1.2; margin-top: 4px; }
.btn-next { width: 100%; margin-top: 20px; padding: 17px 20px; white-space: normal; text-align: center; }
.btn-next:disabled { background: #E5E7EB; color: #8a8f96; cursor: not-allowed; transform: none; box-shadow: none; }
.sum-note { font-size: 12.5px; color: #8a8f96; margin-top: 12px; text-align: center; }
.sum-note a, .check a { color: var(--blue); font-weight: 600; }
.bk-legal { justify-content: center; margin-top: 60px; }

.page-booking.is-done .bk-side, .page-booking.is-done .bk-progress { display: none; }
.page-booking.is-done .bk-layout { grid-template-columns: 1fr; max-width: 720px; margin-inline: auto; }

.mobile-back { display: none; margin-bottom: 14px; background: var(--bubble); border: 0; border-radius: 10px; padding: 9px 14px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }

/* ---------- Mobil ---------- */
@media (max-width: 980px) {
  .bk { padding-block: 110px 150px; }
  .bk-layout { grid-template-columns: 1fr; gap: 24px; }
  .bk-side { position: static; }
  .sum-card {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; border-radius: 22px 22px 0 0; border: 0;
    box-shadow: 0 -8px 30px rgba(0,0,0,.14); display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: 14px;
    padding: 14px max(18px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px));
  }
  .sum-title, .sum-lines, .sum-addons, .sum-note, .sum-card .btn-back { display: none !important; }
  .sum-total { margin: 0; padding: 0; border: 0; }
  .sum-total span { font-size: 11px; }
  .sum-total b { font-size: 22px; }
  .btn-next { margin: 0; padding: 14px 12px; font-size: 14.5px; }
  .bk-progress li { font-size: 0; gap: 0; justify-content: center; }
  .bk-progress li span { font-size: 13px; }
  .mobile-back { display: inline-flex; }
}
@media (max-width: 560px) {
  .car-widget { padding: 22px 18px; }
  .car-selects, .form-row { grid-template-columns: 1fr; }
  .opt-grid { grid-template-columns: 1fr; }
  .cal-card, .slots-card, .form-card { padding: 18px 14px; }
  .cal-dow, .cal-grid { gap: 4px; }
  .cal-day { font-size: 14px; border-radius: 10px; }
  .slots { grid-template-columns: repeat(4, 1fr); }
}

/* Upozornění na zálohu a další kroky */
.notice { margin-top: 22px; border-radius: 16px; padding: 16px 18px; font-size: 14.5px; line-height: 1.6; display: flex; gap: 12px; align-items: flex-start; }
.notice::before { content: "i"; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; font-family: Georgia, serif; }
.notice-deposit { background: #FFF7E6; color: #6B4300; }
.notice-deposit::before { background: #F5B33E; color: #fff; }
.notice b { color: #3D2600; }
.next-steps { background: var(--blue-soft); border-radius: 16px; padding: 18px 20px; }
.next-steps h3 { font-family: var(--f-body); font-size: 15px; font-weight: 700; color: #111; margin-bottom: 10px; }
.next-steps ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: st; }
.next-steps li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 14px; color: #333; line-height: 1.55; counter-increment: st; }
.next-steps li::before { content: counter(st); width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 12.5px; display: grid; place-items: center; margin-top: 1px; }
.next-steps li b { color: #111; }
.next-steps .ns-call { margin-top: 12px; font-size: 14px; color: #444; }
.next-steps .ns-call a { color: var(--blue); font-weight: 700; text-decoration: none; }
.sum-deposit-note { font-size: 12.5px; color: #8A5300; background: #FFF7E6; border-radius: 10px; padding: 8px 10px; margin-top: 10px; }

/* ---------- Balíčky, ochrany, nabídka ---------- */
.opt { position: relative; }
.opt-flag, .opt-save { position: absolute; top: -10px; right: 12px; font-size: 11px; font-weight: 700; letter-spacing: .03em; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; }
.opt-flag { background: var(--blue); color: #fff; }
.opt-save { background: var(--blue-soft-2); color: var(--blue-dark); text-transform: none; font-size: 12px; }
.opt.is-top:not([aria-pressed="true"]) { border-color: var(--blue-soft-2); }
.opt-price s { color: var(--muted); font-weight: 400; font-size: .85em; margin-right: 4px; }
.opt.is-radio { text-align: left; }
.box-note { font-size: 13.5px; color: var(--muted); margin: -4px 0 12px; }
.req { font-size: 11px; font-weight: 700; color: #B25E00; background: #FFF1DC; border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; text-transform: uppercase; letter-spacing: .03em; }
.addons-more { animation: slideIn .45s cubic-bezier(.2,.7,.2,1) both; }
@keyframes slideIn { from { opacity: 0; transform: translateY(12px); } }
.grp-home-link { margin-top: 26px; }
.grp-home-link a { color: var(--blue); font-weight: 600; text-decoration: none; }

.offer { position: fixed; inset: 0; z-index: 1000; background: rgba(10,18,32,.55); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fadeIn .25s ease both; }
@keyframes fadeIn { from { opacity: 0; } }
.offer-box { position: relative; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 28px; padding: 34px 28px 26px; box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: popIn .4s cubic-bezier(.3,1.4,.5,1) both; }
@keyframes popIn { from { opacity: 0; transform: scale(.9) translateY(20px); } }
.offer-x { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--bubble); font-size: 22px; line-height: 1; cursor: pointer; color: #555; }
.offer-save { display: inline-block; background: var(--blue-soft-2); color: var(--blue-dark); font-weight: 700; font-size: 13px; padding: 5px 12px; border-radius: 999px; }
.offer h2 { font-family: var(--f-body); font-size: 24px; font-weight: 700; line-height: 1.2; margin-top: 12px; letter-spacing: -.01em; }
.offer-lead { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.offer-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 2px; font-size: 14.5px; }
.offer-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 12px; background: #F7F8FA; }
.offer-list li.is-yours { background: var(--blue-soft); }
.offer-list em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--blue); text-transform: uppercase; margin-left: 4px; }
.offer-list li.is-gift { background: var(--blue-soft); font-weight: 600; }
.offer-list s { color: var(--muted); font-weight: 400; margin-right: 4px; }
.offer-price { display: flex; align-items: baseline; gap: 12px; margin-top: 18px; }
.offer-price s { color: var(--muted); font-size: 17px; }
.offer-price b { font-family: var(--f-display); font-size: 34px; font-weight: 800; color: var(--blue); letter-spacing: -.02em; }
.offer-extra { font-size: 14px; color: #444; margin-top: 2px; }
.offer-btns { display: grid; gap: 10px; margin-top: 20px; }
.offer-btns .btn { width: 100%; }
@media (prefers-reduced-motion: reduce) { .offer, .offer-box, .addons-more { animation: none; } }
.opt-pkg .opt-meta { align-items: flex-end; }
.opt-pkg .opt-price { display: grid; line-height: 1.15; white-space: nowrap; }
.opt-pkg .opt-price s { font-size: 12.5px; margin: 0; }
