/* Rezervace – vzhled 2026. Načítá se po site-2026.css. */
body.reservation-page { background: #fbfcff; }
body.reservation-page .reservation-main { max-width: 1280px !important; width: auto !important; margin: 0 auto !important; padding: 0 24px !important; box-sizing: border-box; overflow-x: clip; }
body.reservation-page .rz-hero, body.reservation-page .rz-hero * { box-sizing: border-box; }

/* ---------- úvod ---------- */
.rz-hero {
  margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  padding: 64px max(24px, calc(50vw - 616px)) 72px; background: #e8f0ff;
  display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: center; justify-content: space-between;
}
.rz-hero > * { min-width: 0; }
.rz-hero-copy { flex: 1 1 520px; max-width: 680px; }
.rz-badge { display: inline-block; margin: 0 0 22px; font-weight: 700; font-size: 15px; background: #f0b52f; color: #0c2345; padding: 6px 12px; border-radius: 8px; }
body.reservation-page .rz-hero h1 { margin: 0 0 22px; font-size: clamp(44px, 6.4vw, 92px); line-height: 0.92 !important; color: #0c2345 !important; }
body.reservation-page .rz-hero h1 span { color: #155fe8; display: inline; }
.rz-lead { font-size: 21px; color: #3d4c68; max-width: 560px; margin: 0 0 30px; }
.rz-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }
.rz-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 60px; padding: 0 30px; border-radius: 14px;
  background: #155fe8; color: #fff !important; font-weight: 700; font-size: 18px; text-decoration: none !important;
  transition: background-color 200ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.rz-btn:active { transform: scale(0.97); }
.rz-btn-navy { background: #0c2345; }
.rz-link { color: #0c2345 !important; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; padding: 12px 0; }
.rz-next { display: inline-flex; align-items: center; gap: 10px; margin: 26px 0 0; padding: 10px 16px; border-radius: 12px; background: #fff; border: 1.5px solid #c5d3ee; font-size: 16px; color: #0c2345; }
.rz-next[hidden] { display: none; }
.rz-next b { font-weight: 800; color: #0c2345 !important; }
.rz-next > span:last-child { min-width: 0; }
.rz-dot { width: 10px; height: 10px; border-radius: 50%; background: #1f9d63; box-shadow: 0 0 0 4px rgba(31, 157, 99, 0.18); flex: none; }
.rz-facts { margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 0; }
.rz-facts div { padding: 4px 28px 4px 0; margin-right: 28px; border-right: 1.5px solid #c5d3ee; }
.rz-facts div:last-child { border-right: 0; margin-right: 0; }
.rz-facts dt { font-weight: 900; font-size: 30px; letter-spacing: -0.03em; line-height: 1.1; }
.rz-facts dd { margin: 0; color: #3d4c68; font-size: 15px; }

.rz-card {
  flex: 1 1 360px; max-width: 440px; background: #fff; border: 2px solid #0c2345; border-radius: 24px;
  padding: 28px 28px 22px; box-shadow: 12px 12px 0 #f0b52f;
}
.rz-card-kicker { margin: 0 0 14px; font-weight: 800; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: #155fe8; }
.rz-gets { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 16px; }
.rz-gets li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; }
.rz-gets b { color: #0c2345 !important; display: block; font-size: 18px; font-weight: 800; color: #0c2345; }
.rz-gets li > span:last-child { color: #3d4c68; font-size: 16px; }
.rz-check { width: 30px; height: 30px; border-radius: 50%; background: #e8f0ff; color: #155fe8; display: inline-flex; align-items: center; justify-content: center; }
.rz-card-foot { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 18px; border-top: 2px dashed #c5d3ee; }
.rz-card-foot span { white-space: normal; font-size: 14px; font-weight: 700; padding: 6px 10px; border-radius: 8px; background: #f2f5fb; color: #0c2345; }
.rz-card-foot .rz-free { background: #f0b52f; }

/* ---------- rezervační blok ---------- */
.rz-book-head { padding: 80px 0 24px; scroll-margin-top: 80px; }
body.reservation-page .rz-book-head h2 { margin: 0 0 8px; font-size: clamp(34px, 4vw, 52px); color: #0c2345 !important; }
.rz-book-head p { margin: 0; color: #3d4c68; font-size: 18px; }
body.reservation-page .availability-status { margin: 0 0 16px; border-radius: 16px; }
body.reservation-page .reservation-layout {
  background: #fff; border: 1.5px solid #e3e9f5; border-radius: 28px; padding: 32px; gap: 0 32px;
  box-shadow: 0 30px 60px -40px rgba(12, 35, 69, 0.35);
  counter-reset: rzstep;
}
body.reservation-page .reservation-layout > section { counter-increment: rzstep; }
body.reservation-page .reservation-layout > section::before {
  content: counter(rzstep); display: inline-flex; width: 34px; height: 34px; border-radius: 50%;
  align-items: center; justify-content: center; background: #155fe8; color: #fff; font-weight: 900; font-size: 16px; margin-bottom: 14px;
}
body.reservation-page .time-section { border-color: #eef2f8 !important; }
body.reservation-page .consultation-note { background: #e8f0ff !important; color: #0c2345 !important; border: 0 !important; border-radius: 14px !important; }
body.reservation-page .times-empty { color: #3d4c68; }
body.reservation-page .reservation-submit { height: 58px; border-radius: 14px !important; font-weight: 800; }
body.reservation-page .reservation-submit:not(:disabled) { background: #155fe8 !important; color: #fff !important; }
body.reservation-page .form-field input, body.reservation-page .form-field select { border-radius: 12px !important; min-height: 52px; }

/* ---------- jak to proběhne ---------- */
.rz-how { padding: 104px 0 0; }
body.reservation-page .rz-how h2, body.reservation-page .rz-after h2, body.reservation-page .rz-faq h2, body.reservation-page .rz-final h2 {
  margin: 0 0 32px; font-size: clamp(34px, 4vw, 52px); color: #0c2345 !important;
}
.rz-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.rz-steps li { background: #fff; border: 1.5px solid #e3e9f5; border-radius: 24px; padding: 30px; }
.rz-n { display: flex; width: 48px; height: 48px; border-radius: 50%; align-items: center; justify-content: center; background: #155fe8; color: #fff; font-weight: 900; font-size: 22px; margin-bottom: 28px; }
.rz-steps li:last-child { background: #e8f0ff; border-color: #e8f0ff; }
.rz-steps li:last-child .rz-n { background: #f0b52f; color: #0c2345; }
body.reservation-page .rz-steps h3 { margin: 0 0 6px; font-size: 26px; color: #0c2345; }
.rz-steps p { margin: 0; color: #3d4c68; }

/* ---------- po konzultaci ---------- */
.rz-after { margin-top: 104px; background: #0c2345; color: #fff; border-radius: 28px; padding: clamp(28px, 4vw, 56px); display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: center; }
.rz-after-copy { flex: 1 1 360px; min-width: 0; }
body.reservation-page .rz-after h2 { color: #fff !important; margin-bottom: 14px; }
.rz-after-copy p { margin: 0; color: #c9d5ea; font-size: 18px; }
.rz-terms { flex: 1.4 1 480px; min-width: 0; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rz-terms li { background: #163563; border-radius: 18px; padding: 20px 22px; }
.rz-terms b { color: inherit !important; display: block; font-size: 26px; font-weight: 900; letter-spacing: -0.03em; }
.rz-terms span { color: #c9d5ea; font-size: 15px; }
.rz-terms li:last-child { background: #f0b52f; color: #0c2345; }
.rz-terms li:last-child span { color: #0c2345; }

/* ---------- FAQ ---------- */
.rz-faq { padding: 104px 0 0; display: flex; flex-wrap: wrap; gap: 24px 64px; }
body.reservation-page .rz-faq h2 { flex: 1 1 300px; }
.rz-faq-list { flex: 2 1 560px; min-width: 0; }
.rz-faq details { border-top: 1px solid #dfe6f3; padding: 22px 0; }
.rz-faq details:first-child { border-top: 2px solid #0c2345; }
.rz-faq details:last-child { border-bottom: 1px solid #dfe6f3; }
.rz-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; font-weight: 700; font-size: 20px; color: #0c2345; }
.rz-faq summary::-webkit-details-marker { display: none; }
.rz-faq summary span { font-size: 28px; line-height: 1; color: #155fe8; transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1); }
.rz-faq details[open] summary span { transform: rotate(45deg); }
.rz-faq details p { margin: 10px 0 0; color: #3d4c68; }
.rz-faq a { color: #155fe8; }

/* ---------- závěr ---------- */
.rz-final { margin: 104px 0; background: #f0b52f; border-radius: 28px; padding: clamp(32px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
body.reservation-page .rz-final h2 { margin: 0; font-size: clamp(40px, 5.6vw, 80px); }

@media (hover: hover) and (pointer: fine) {
  .rz-btn:hover { background: #0f4fc7; }
  .rz-btn-navy:hover { background: #163563; }
}
@media (max-width: 760px) {
  .rz-hero { padding: 40px 24px 56px; }
  .rz-lead { font-size: 18px; }
  .rz-btn { width: 100%; }
  .rz-card { box-shadow: 6px 6px 0 #f0b52f; padding: 22px; }
  .rz-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .rz-facts div { padding: 0 0 0 12px; margin: 0; border-right: 0; border-left: 1.5px solid #c5d3ee; }
  .rz-facts div:first-child { border-left: 0; padding-left: 0; }
  .rz-facts dt { font-size: 21px; }
  .rz-facts dd { font-size: 13px; }
  body.reservation-page .reservation-layout { padding: 20px; border-radius: 22px; }
  .rz-terms { grid-template-columns: 1fr; }
  .rz-how, .rz-faq { padding-top: 72px; }
  .rz-after { margin-top: 72px; }
  .rz-final { margin: 72px 0; }
}

/* šablona templatemo barví všechny li a p šedě – vrátit barvy */
body.reservation-page .rz-terms li { color: #fff; }
body.reservation-page .rz-terms li:last-child { color: #0c2345; }
body.reservation-page .rz-gets li, body.reservation-page .rz-steps li { color: #0c2345; }

/* ---------- zjednodušený výběr termínu ---------- */
body.reservation-page .reservation-layout.rz-simple { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 0 48px; }
body.reservation-page .rz-simple .calendar-section,
body.reservation-page .rz-simple .time-section { display: none; }
body.reservation-page .rz-simple.rz-show-calendar { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 0 32px; }
body.reservation-page .rz-simple.rz-show-calendar .calendar-section,
body.reservation-page .rz-simple.rz-show-calendar .time-section { display: block; }
body.reservation-page .rz-simple.rz-show-calendar .rz-slots { display: none; }
body.reservation-page .rz-simple.rz-show-calendar .rz-quick { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid #eef2f8; }
body.reservation-page .rz-simple.rz-show-calendar .rz-quick::before { display: none; }
body.reservation-page .rz-simple.rz-show-calendar .rz-quick { counter-increment: none; }
body.reservation-page .rz-simple.rz-show-calendar .rz-quick h2,
body.reservation-page .rz-simple.rz-show-calendar .rz-quick-help { display: none; }

body.reservation-page .rz-quick h2 { margin: 0 0 4px; font-size: 30px; color: #0c2345 !important; }
.rz-quick-help { margin: 0 0 20px; color: #3d4c68; }
.rz-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rz-slot {
  font: inherit; text-align: left; cursor: pointer; min-height: 84px; padding: 14px 16px; border-radius: 16px;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  background: #fff; border: 1.5px solid #c5d3ee; color: #0c2345;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.rz-slot:active { transform: scale(0.97); }
.rz-slot-day { white-space: nowrap; font-size: 15px; color: #3d4c68; font-weight: 600; }
.rz-slot-time { font-size: 26px; font-weight: 900; letter-spacing: -0.02em; }
.rz-slot.is-on { background: #155fe8; border-color: #155fe8; color: #fff; }
.rz-slot.is-on .rz-slot-day { color: #dbe6ff; }
.rz-skel { cursor: default; background: linear-gradient(90deg, #f2f5fb, #e8eef8, #f2f5fb); background-size: 200% 100%; border-color: #eef2f8; animation: rzskel 1.2s linear infinite; }
@keyframes rzskel { to { background-position: -200% 0; } }
.rz-slots-empty { grid-column: 1 / -1; margin: 0; color: #3d4c68; background: #f2f5fb; border-radius: 14px; padding: 16px; }
.rz-more { margin-top: 16px; font: inherit; font-weight: 700; color: #155fe8; background: none; border: 0; padding: 10px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .rz-slot:not(.rz-skel):not(.is-on):hover { border-color: #155fe8; background: #f5f8ff; }
}
@media (max-width: 980px) {
  body.reservation-page .reservation-layout.rz-simple,
  body.reservation-page .rz-simple.rz-show-calendar { grid-template-columns: minmax(0, 1fr); }
  body.reservation-page .rz-simple .details-section { padding-top: 28px; margin-top: 28px; border-top: 1px solid #eef2f8; }
}
@media (prefers-reduced-motion: reduce) { .rz-skel { animation: none; } }

/* bez úvodní sekce: nadpis rovnou nad výběrem termínu */
.rz-book-head { padding-top: 56px; }
body.reservation-page .rz-book-head h1 { margin: 0 0 8px; font-size: clamp(36px, 4.6vw, 60px); color: #0c2345 !important; }
@media (max-width: 760px) { .rz-book-head { padding-top: 32px; } }

.rz-terms-more { display: inline-block; margin-top: 8px; font-weight: 800; font-size: 15px; color: #0c2345 !important; text-decoration: underline; text-underline-offset: 4px; }

/* obsazené časy a plné dny */
body.reservation-page .time-slot.is-busy { background: #fdeeee; border-color: #f2b8b5; color: #b42318; cursor: not-allowed; opacity: 1; }
body.reservation-page .time-slot.is-busy .busy-tag { opacity: 1; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
body.reservation-page .month-day.is-full { background: #fdeeee; color: #b42318; border-color: #f2b8b5; text-decoration: line-through; }
body.reservation-page .month-legend .legend-full { background: #f2b8b5 !important; margin-left: 18px; }

/* ---------- týdenní mřížka termínů ---------- */
body.reservation-page .reservation-layout.rz-week-layout { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 0 40px; align-items: start; max-width: none; }
.rz-week-layout .details-section { border-left: 1px solid #eef2f8; padding-left: 40px; }
.week-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; }
body.reservation-page .week-head h2 { margin: 0 0 8px; font-size: clamp(24px, 2.4vw, 32px); color: #0c2345; text-transform: none; }
.week-sum { margin: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15.5px; color: #3d4c68; min-height: 22px; }
.week-sum b { color: #b42318; font-weight: 900; }
.ws-bar { display: inline-block; width: 140px; height: 8px; border-radius: 9px; background: #e6f4ec; overflow: hidden; }
.ws-bar em { display: block; height: 100%; background: #e5484d; border-radius: 9px; transition: width 400ms cubic-bezier(0.23, 1, 0.32, 1); }
.week-nav { display: flex; gap: 8px; }
body.reservation-page .week-nav button {
  width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid #c9d8f4; background: #fff; color: #155fe8;
  font-size: 24px; font-weight: 700; line-height: 1; cursor: pointer; transition: background-color 180ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
body.reservation-page .week-nav button:active:not(:disabled) { transform: scale(0.95); }
body.reservation-page .week-nav button:disabled { opacity: 0.35; cursor: default; }
.week-grid-wrap { touch-action: pan-y; }
.week-grid { display: grid; grid-template-columns: 56px repeat(var(--days, 7), minmax(0, 1fr)); gap: 5px; }
.wg-corner { display: block; }
.wg-day { display: grid; justify-items: center; gap: 1px; padding: 6px 0 8px; color: #0c2345; }
.wg-day small { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: #3d4c68; }
.wg-day b { font-size: 17px; font-weight: 900; }
.wg-day.is-today small { color: #155fe8; }
.wg-time { display: flex; align-items: center; font-size: 13.5px; font-weight: 700; color: #3d4c68; }
.wg-cell { height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font: inherit; font-size: 13.5px; font-weight: 800; padding: 0; border: 0; }
.wg-cell.is-none { background: repeating-linear-gradient(45deg, #f5f7fb 0 6px, #fff 6px 12px); }
body.reservation-page .wg-cell.is-busy { background: #e5484d; color: #fff; cursor: not-allowed; opacity: 1; font-size: 12.5px; letter-spacing: 0.01em; }
body.reservation-page .wg-cell.is-free {
  background: #fff; color: #155fe8; box-shadow: inset 0 0 0 1.5px #c9d8f4; cursor: pointer;
  transition: background-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
body.reservation-page .wg-cell.is-free:active:not(:disabled) { transform: scale(0.95); }
body.reservation-page .wg-cell.is-free.is-selected { background: #155fe8; color: #fff; box-shadow: 0 6px 16px -8px rgba(21, 95, 232, 0.8); }
body.reservation-page .wg-cell.is-free.is-selected::after { content: ' ✓'; white-space: pre; }
.wg-cell:focus-visible { outline: 2px solid #155fe8; outline-offset: 2px; }
.wg-empty { grid-column: 1 / -1; margin: 12px 0; padding: 20px; text-align: center; color: #3d4c68; background: #f5f7fb; border-radius: 12px; }
.week-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 16px 0 4px; font-size: 14px; color: #3d4c68; }
.week-legend .lg { display: inline-block; width: 16px; height: 16px; border-radius: 5px; margin-left: 10px; }
.week-legend .lg:first-child { margin-left: 0; }
.lg-free { box-shadow: inset 0 0 0 1.5px #c9d8f4; background: #fff; }
.lg-busy { background: #e5484d; }
.lg-sel { background: #155fe8; }
@media (hover: hover) and (pointer: fine) {
  body.reservation-page .wg-cell.is-free:not(.is-selected):hover { background: #e8f0ff; box-shadow: inset 0 0 0 1.5px #155fe8; }
  body.reservation-page .week-nav button:not(:disabled):hover { background: #e8f0ff; }
}
.week-grid-wrap.slide-left .week-grid { animation: wg-in-left 260ms cubic-bezier(0.23, 1, 0.32, 1); }
.week-grid-wrap.slide-right .week-grid { animation: wg-in-right 260ms cubic-bezier(0.23, 1, 0.32, 1); }
@keyframes wg-in-left { from { opacity: 0; transform: translateX(24px); } }
@keyframes wg-in-right { from { opacity: 0; transform: translateX(-24px); } }
@media (max-width: 980px) {
  body.reservation-page .reservation-layout.rz-week-layout { grid-template-columns: 1fr; }
  .rz-week-layout .details-section { border-left: 0; padding-left: 0; border-top: 1px solid #eef2f8; padding-top: 28px; margin-top: 28px; }
}
@media (max-width: 640px) {
  .week-head { align-items: flex-start; }
  .week-grid { grid-template-columns: 48px repeat(var(--days, 3), minmax(0, 1fr)); gap: 5px; }
  .wg-cell { height: 42px; font-size: 14px; }
  .ws-bar { width: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  .week-grid-wrap .week-grid { animation: none !important; }
  .wg-cell, .ws-bar em { transition: none !important; }
}
