/* ==========================================================================
   Kapříček – vizuální vrstva
   Načítá se po style.css. Hero fotografie a rozvržení hlavičky zůstávají
   ve style.css; tady jsou tokeny, typografie, komponenty a interakce.
   Zásada: málo prvků, žádné dekorace – barvu nesou fotky a žlutá tlačítka.
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #ffffff;
  --soft: #f5f8fb;
  --surface: #ffffff;
  --ink: #0b2545;
  --ink-2: #33506d;
  --muted: #5d7186;
  --brand: #073e72;
  --accent: #ffde42;
  --accent-2: #f5cf1d;
  --link: #0068a0;
  --line: #e3eaf0;
  --line-strong: #c9d6e1;
  --focus: #0b5cad;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 32px -14px rgb(11 37 69 / .25);
  --section-y: clamp(64px, 8vw, 112px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t: .2s var(--ease);
}

/* ---------- Základ ---------- */
html { scroll-padding-top: 96px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.wave { background: var(--bg); }
a { color: var(--link); }
h1 { letter-spacing: -.035em; font-weight: 850; }
h2, h3, h4 { color: var(--ink); text-wrap: balance; letter-spacing: -.02em; }
p { text-wrap: pretty; }
.muted { color: var(--muted); }

button:focus-visible,
a:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
footer :focus-visible { outline-color: var(--accent); }

.eyebrow { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); }

/* ---------- Hlavička (sticky na všech šířkách) ---------- */
header { position: sticky; top: 0; z-index: 50; background: #fff; transition: box-shadow var(--t); }
header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px -18px rgb(11 37 69 / .35); }
@media (min-width: 901px) {
  /* backdrop-filter jen na desktopu: na mobilu by z hlavičky udělal containing block pro fixed menu */
  header {
    background: rgb(255 255 255 / .92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  nav a { transition: color var(--t); }
  nav a:hover { color: var(--link); }
}
nav .nav-client { margin-left: 4px; font-weight: 700; transition: background-color var(--t), color var(--t); }
nav a[aria-current="true"] { color: var(--brand); box-shadow: inset 0 -2px 0 var(--accent); }
nav .nav-client { background: var(--brand); color: #fff; }
nav .nav-client:hover { background: var(--ink); color: #fff; }

/* ---------- Hero ---------- */
.hero { display: flex; align-items: center; min-height: clamp(560px, calc(100svh - 96px), 900px); }
.hero .wrap { width: 100%; padding-top: 80px; padding-bottom: 170px; }
.hero .wave { height: 90px; clip-path: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M0 52C180 18 360 14 560 38s380 50 600 34c120-9 200-24 280-40V90H0z'/%3E%3C/svg%3E") no-repeat bottom / 100% 100%; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 96px; z-index: 1;
  display: grid; place-items: center; width: 54px; height: 54px; margin-left: -27px;
  border: 1px solid rgb(255 255 255 / .55); border-radius: 50%;
  background: rgb(255 255 255 / .14); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color var(--t), border-color var(--t);
  animation: cue 2.4s ease-in-out infinite;
}
.scroll-cue:hover { background: rgb(255 255 255 / .28); border-color: #fff; color: #fff; }
.scroll-cue:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.scroll-cue svg { width: 22px; height: 22px; }
@keyframes cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue { animation: none; } }
@media (max-width: 760px) {
  .hero { align-items: flex-end; min-height: clamp(540px, calc(100svh - 78px), 760px); }
  .hero .wrap { padding-top: 200px; padding-bottom: 150px; }
  .hero .wave { height: 54px; }
  .scroll-cue { bottom: 64px; width: 48px; height: 48px; margin-left: -24px; }
}

/* ---------- Omluvenky a náhrady v menu ---------- */
.nav-drop { position: relative; }
.nav-client { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.nav-client .caret { width: 7px; height: 7px; margin-top: -3px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform var(--t); }
.nav-drop.open .nav-client { background: var(--ink); color: #fff; }
.nav-drop.open .caret { margin-top: 3px; transform: rotate(-135deg); }
.nav-drop-menu { display: none; }
.nav-drop-menu a { display: block; padding: 12px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; transition: background-color var(--t); }
.nav-drop-menu a:hover { background: var(--soft); color: var(--ink); }
.nav-drop-menu strong { display: block; font-size: 15px; }
.nav-drop-menu small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
@media (min-width: 901px) {
  .nav-drop.open .nav-drop-menu { display: block; position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; width: 280px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 48px -16px rgb(11 37 69 / .3); }
}
@media (max-width: 900px) {
  .nav-drop { flex-basis: 100%; padding-top: 12px; border-top: 1px solid var(--line); }
  .nav-drop .nav-client { display: none; }
  .nav-drop-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .nav-drop-menu a { padding: 12px; background: var(--soft); }
}
@media (max-width: 900px) {
  .menu { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 12px; font-size: 22px; line-height: 1; cursor: pointer; transition: background-color var(--t); }
  .menu[aria-expanded="true"] { background: var(--soft); }
  header #nav.open { position: fixed; top: var(--header-h, 78px); right: 0; bottom: 0; left: 0; z-index: 49; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 2px; max-height: none; padding: 12px 12px calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; overflow-y: auto; overscroll-behavior: contain; animation: menu-in .2s ease-out; }
  html.menu-open { overflow: hidden; }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
  #nav.open > a { display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding: 0 16px; border-radius: 12px; color: var(--ink); font-size: 20px; font-weight: 600; box-shadow: none; }
  #nav.open > a::after { content: ""; width: 8px; height: 8px; border-top: 2px solid var(--line-strong); border-right: 2px solid var(--line-strong); transform: rotate(45deg); }
  #nav.open > a:hover, #nav.open > a:active { background: var(--soft); }
  #nav.open > a[aria-current="true"] { background: var(--soft); color: var(--brand); }
  #nav.open .nav-drop { margin-top: 8px; padding: 14px 0 0; border-top: 1px solid var(--line); }
  #nav.open .nav-drop::before { content: "Už k nám chodíte?"; display: block; padding: 0 16px 10px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
  #nav.open .nav-drop-menu { grid-template-columns: 1fr; gap: 8px; }
  #nav.open .nav-drop-menu a { padding: 14px 16px; border-radius: 12px; }
  #nav.open .nav-drop-menu strong { font-size: 17px; }
  #nav.open .nav-drop-menu small { font-size: 14px; }
}

/* ---------- Tlačítka ---------- */
.primary, .secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--t), border-color var(--t), color var(--t);
}
.primary { background: var(--accent); color: var(--ink); border: 1px solid var(--accent); }
.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }

.secondary { background: var(--surface); color: var(--brand); border: 1px solid var(--line-strong); }
.secondary:hover { border-color: var(--brand); }
.textlink {
  background: none;
  border: 0;
  padding: 2px 0;
  color: var(--link);
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--link) 35%, transparent);
  text-underline-offset: 4px;
  cursor: pointer;
  transition: text-decoration-color var(--t), color var(--t);
}
.textlink:hover { color: var(--brand); text-decoration-color: currentColor; }

/* ---------- Formulářové prvky ---------- */
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
select {
  display: block;
  width: 100%;
  height: 46px;
  margin-top: 6px;
  padding: 0 40px 0 14px;
  appearance: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235d7186' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 15px center;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: border-color var(--t);
}
select:hover:not(:disabled) { border-color: var(--brand); }
select:disabled { background-color: var(--soft); color: var(--muted); cursor: not-allowed; }

/* ---------- Sekce ---------- */
.section { padding: var(--section-y) 0; }
.soft { background: var(--soft); }
.section-head { max-width: 680px; margin: 0 0 40px; }
.section-head h2 { margin: 0; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; }
.section-head p { margin: 12px 0 0; font-size: 18px; line-height: 1.6; color: var(--muted); }
.sub-head { margin: 0 0 16px; scroll-margin-top: 110px; }
.sub-head h3 { margin: 0; font-size: 20px; letter-spacing: -.01em; font-weight: 800; color: var(--ink); }
.sub-head p { margin: 6px 0 0; color: var(--muted); font-size: 16px; }
.guide-list + .sub-head, .guide-inline + .guide-list + .sub-head { margin-top: 64px; }
#tabory { scroll-margin-top: 110px; margin-bottom: 20px; }
#nabidka { scroll-margin-top: 110px; }
.camp h3 { margin: 0 0 12px; color: #fff; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -.02em; }
.step-title { margin: 0 0 16px; font-size: 20px; line-height: 1.3; font-weight: 700; }

/* ==========================================================================
   Výběr kurzu
   ========================================================================== */
.booking { padding: 72px 0 var(--section-y); background: var(--bg); }
.booking:focus { outline: none; }
.booking-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.booking-head h2 { margin: 0; font-size: clamp(30px, 3.8vw, 44px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; }

/* Kroky */
.stepper { display: flex; gap: 28px; margin: 0 0 32px; padding: 0 0 16px; list-style: none; border-bottom: 1px solid var(--line); }
.stepper li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; font-weight: 600; transition: color var(--t); }
.stepper b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 13px; transition: background-color var(--t), color var(--t), border-color var(--t); }
.stepper li[data-state="current"], .stepper li[data-state="done"] { color: var(--ink); }
.stepper li[data-state="current"] b { background: var(--ink); border-color: var(--ink); color: #fff; }
.stepper li[data-state="done"] b { background: var(--soft); border-color: var(--line-strong); color: var(--ink); font-size: 0; }
.stepper li[data-state="done"] b::before { content: '✓'; font-size: 13px; }

/* Města */
.locations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.city-card { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow var(--t), border-color var(--t); }
.city-card:hover { box-shadow: var(--shadow); }
.city-card.city-selected { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.pool-photo { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; padding: 0; border: 0; background: #dbe7ef; overflow: hidden; cursor: zoom-in; }
.pool-photo picture, .pool-photo img { display: block; width: 100%; height: 100%; }
.pool-photo img { object-fit: cover; transition: transform .5s var(--ease); }
.city-card:hover .pool-photo img { transform: scale(1.03); }
.pool-photo-label { position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: 999px; background: rgb(255 255 255 / .94); color: var(--ink); font-size: 12px; font-weight: 600; }
.city-body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.city-body h3 { margin: 0 0 6px; font-size: 21px; }
.city-body p { flex: 1; margin: 0 0 20px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.city-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.city-actions .primary { width: 100%; }
.city-actions .primary[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.city-actions .textlink { font-size: 14px; }

/* Věkové skupiny */
.course-overview { margin-top: 48px; }
.overview-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.overview-heading p { margin: 0 0 16px; font-size: 15px; }
.overview-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 32px; }
.overview-group h4 { margin: 0 0 12px; font-size: 16px; }
.overview-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.overview-chips button {
  min-height: 40px;
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--t), background-color var(--t), color var(--t);
}
.overview-chips button:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.overview-extra { margin: 24px 0 0; color: var(--muted); font-size: 15px; }

/* Filtry */
.searchbox { margin-top: 40px; padding: 18px; background: var(--soft); border-radius: var(--radius); }
.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }

/* Výsledky */
.results { margin-top: 40px; }
.resulthead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 16px; }
.resulthead h2 { margin: 0; font-size: clamp(24px, 2.8vw, 30px); letter-spacing: -.025em; }
.resulthead .muted { font-size: 15px; }
.resultgrid { border-top: 1px solid var(--line); }
.empty { padding: 28px 0; color: var(--muted); }
.course {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 8px 28px;
  align-items: center;
  padding: 20px 12px;
  border-bottom: 1px solid var(--line);
  transition: background-color var(--t);
}
.course:hover { background: var(--soft); }
.course-day { display: block; font-size: 19px; font-weight: 700; }
.course-time { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.course-main h3 { margin: 0 0 2px; font-size: 16px; }
.course-info, .course-period { margin: 0; font-size: 15px; }
.course-info { color: var(--ink-2); }
.course-period { color: var(--muted); }
.course .actions { display: flex; align-items: center; gap: 20px; }
.course-dates { grid-column: 1 / -1; padding-top: 8px; }
.dates { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 16px; margin: 0 0 12px; padding: 0 0 0 20px; color: var(--ink-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.date-download { font-size: 14px; }
.results-help { max-width: 720px; margin: 20px 0 0; color: var(--muted); font-size: 15px; }
.results-help .textlink { font-size: inherit; }

/* ---------- Další nabídka ---------- */
.offer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.offer { display: flex; flex-direction: column; align-items: flex-start; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow var(--t); }
.offer:hover { box-shadow: var(--shadow); }
.offer h3 { margin: 0 0 10px; font-size: 19px; line-height: 1.3; }
.offer p { flex: 1; margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.offer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------- Tábory ---------- */
.camp { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; padding: clamp(32px, 5vw, 56px); border-radius: 24px; background: var(--brand); color: #fff; }
.camp h2 { margin: 0 0 12px; color: #fff; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -.03em; }
.camp p { margin: 0; color: #d6e5f3; font-size: 17px; line-height: 1.6; max-width: 540px; }
.camp .camp-announcement { padding: 22px 24px; border-radius: var(--radius); background: rgb(255 255 255 / .08); color: #d6e5f3; font-size: 15px; }
.camp-announcement strong { display: block; margin-bottom: 4px; color: #fff; font-size: 18px; }

/* ---------- O nás ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.about-photo { margin: 0; }
.about-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: 20px; }
.about-copy h2 { margin: 0 0 14px; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -.03em; }
.about-copy > p { margin: 0 0 28px; color: var(--ink-2); font-size: 18px; line-height: 1.6; }
.learning-grid { display: grid; gap: 18px; margin-bottom: 24px; }
.learning-grid article { padding-left: 0; }
.learning-grid h3 { margin: 0 0 4px; font-size: 17px; }
.learning-grid p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.safety-note { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Rozbalovací bloky ---------- */
details { padding: 0; border-bottom: 1px solid var(--line); }
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  list-style: none;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
  transition: color var(--t);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--t);
}
summary:hover { color: var(--link); }
details[open] > summary::after { transform: rotate(-135deg); }
details > p, details > a { margin: 0 0 16px; }
details > p { color: var(--ink-2); font-size: 15px; line-height: 1.7; max-width: 760px; }
details > a { display: inline-block; }

.guide-list, .faq-grid { border-top: 1px solid var(--line); }
.guide-list summary { font-size: 17px; }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; align-items: start; border-top: 0; }
.faq-col > h4 { margin: 0; padding: 0 0 12px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border-bottom: 1px solid var(--line); }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-section h2 { margin: 0 0 12px; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -.03em; }
.contact-section p { margin: 0 0 24px; color: var(--ink-2); font-size: 18px; max-width: 460px; }
.contact-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.contact-list a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: color var(--t); }
.contact-list a:hover { color: var(--link); }
.contact-list small { font-size: 14px; color: var(--muted); }
.contact-list strong { font-size: 18px; font-weight: 700; overflow-wrap: anywhere; text-align: right; }

/* ---------- Patička ---------- */
footer { background: #082f58; }
footer h3, .footer-brand { color: #fff; }
.footer-grid h3 { margin-bottom: 10px; font-size: 14px; }
footer p { margin: 0 0 8px; color: #d9e9f7; }
.footer-grid a, .footer-grid button { transition: color var(--t); }
.footer-grid a:hover, .footer-grid button:hover { color: #fff; text-decoration: underline; }
.footer-bottom { position: relative; border-top: 0; padding-left: 28px; padding-right: 28px; }
.footer-bottom::before { content: ''; position: absolute; top: 0; left: 28px; right: 28px; height: 1px; background: #ffffff2b; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Dialog ---------- */
dialog { border: 0; border-radius: 20px; background: #fff; box-shadow: 0 40px 80px -24px rgb(5 30 60 / .5); }
dialog[open] { animation: dialog-in .22s var(--ease); }
dialog::backdrop { background: rgb(5 30 60 / .5); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(10px); } }
/* Scrolluje obsah uvnitř, ne celý dialog – posuvník pak nerozbije zaoblené rohy */
dialog[open] { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
#dialogcontent { flex: 1 1 auto; min-height: 0; padding: 28px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
dialog .close { position: absolute; top: 20px; right: 20px; z-index: 2; }
.close { background: var(--soft); transition: background-color var(--t); }
.close:hover { background: var(--line); }
.dialog-title { margin: 0 0 14px; font-size: 26px; letter-spacing: -.025em; }
.guide-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 4px 0 20px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; background: var(--soft); border-radius: 12px; }
.seg button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color var(--t), color var(--t); }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.guide-only { font-size: 14px; }
.guide-body { padding-bottom: 8px; }
.guide-body p { margin: 0 0 14px; color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.guide-body p strong:first-child { color: var(--ink); }
.guide-extra { margin-top: 8px; border-top: 1px solid var(--line); }
.guide-row h4 { margin: 0 0 4px; color: var(--ink); font-size: 16px; }
.guide-row p { margin: 0 0 8px; }
.guide-row p:last-child { margin-bottom: 0; }
dialog .guide-row { padding: 14px 0; border-bottom: 1px solid var(--line); }
dialog .guide-row:first-child { padding-top: 0; }
/* Dialog s pokyny je širší a pokyny jsou ve dvou sloupcích jako v sekci Pro rodiče */
dialog:has(#guide-view) { width: min(1040px, 94vw); }
dialog #guide-view .guide-body { columns: 2; column-gap: 48px; column-rule: 1px solid var(--line); }
dialog #guide-view .guide-row { break-inside: avoid; padding: 0 0 22px; border-bottom: 0; }
@media (max-width: 760px) {
  dialog #guide-view .guide-body { columns: 1; }
}
/* Pokyny přímo v sekci – řídí se vybraným městem */
.guide-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.guide-inline .seg { background: #e8eef5; }
.guide-inline .seg button { min-height: 44px; padding: 0 20px; font-size: 15px; }
.guide-inline .seg-city button { font-size: 16px; font-weight: 700; }
.guide-hint { margin: 0; color: var(--muted); font-size: 16px; }
.guide-inline .guide-body { columns: 2; column-gap: 64px; column-rule: 1px solid var(--line); padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.guide-inline .guide-row { break-inside: avoid; padding: 0 0 26px; }
.guide-inline .guide-row:last-child { padding-bottom: 0; }
.guide-inline .guide-row h4 { margin: 0 0 6px; font-size: 16px; line-height: 1.4; }
.guide-inline .guide-body p { font-size: 15px; line-height: 1.65; }
@media (max-width: 760px) {
  .guide-inline .guide-body { columns: 1; padding: 22px 20px; }
  .guide-inline .seg button { padding: 4px 8px; }
}
.places button { border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; transition: border-color var(--t); }
.places button:hover { border-color: var(--ink); }

/* ---------- Právní stránky, říkanky, 404 ---------- */
.legal-page h1 { letter-spacing: -.035em; }
.legal-page .legal-note { background: var(--soft); border-radius: var(--radius-sm); }
.legal-page .eyebrow { color: var(--muted); }
.legal-page .legal-lead, .legal-page .legal-meta { color: var(--muted); }
.rhyme { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink-2); }

/* ---------- Animace při scrollu ---------- */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), box-shadow var(--t);
}
.reveal-ready .reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Responzivita
   ========================================================================== */
@media (max-width: 1000px) {
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters .primary { grid-column: 1 / -1; }
  .about-grid { gap: 40px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 84px; }
  .booking { padding-top: 56px; }
  .booking-head { flex-direction: column; gap: 8px; }
  .stepper { gap: 16px; }
  .locations, .offer-grid { grid-template-columns: 1fr; }
  .camp, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-col + .faq-col { margin-top: 40px; }
  .course { grid-template-columns: 1fr auto; padding: 18px 4px; }
  .course-when { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; }
  .course-main { grid-column: 1 / -1; }
  .course .actions { grid-column: 1 / -1; justify-content: space-between; }
  .section-head { margin-bottom: 28px; }
  .footer-bottom { padding-left: 18px; padding-right: 18px; }
  .footer-bottom::before { left: 18px; right: 18px; }
}

@media (max-width: 600px) {
  .stepper li { font-size: 13px; gap: 6px; }
  .filters { grid-template-columns: 1fr; }
  .searchbox { padding: 14px; }
  .city-body { padding: 18px; }
  .section-head p, .about-copy > p, .contact-section p { font-size: 17px; }
  .contact-list a { flex-direction: column; gap: 2px; }
  .contact-list strong { text-align: left; }
  .guide-switch { gap: 8px; }
  .seg { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; width: 100%; }
  .seg button { min-height: 44px; padding: 4px 6px; line-height: 1.2; font-size: 13px; }
  dialog[open] { max-height: calc(var(--visible-height, 100dvh) - 24px); padding: 0; }
  #dialogcontent { padding: 20px; }
  dialog .close { top: 14px; right: 14px; }
}

@media (hover: none) {
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal-ready .reveal { opacity: 1; transform: none; }
}

@media print {
  .reveal-ready .reveal { opacity: 1 !important; transform: none !important; }
  header { position: static !important; }
}
