/* Ordinace – šablona pro MODx (gynbur.cz + gynlach.cz)
   Jedna šablona, dvě barevná témata: [data-theme="bur"] a [data-theme="lach"].
   Žádné externí fonty ani knihovny. */

/* ---------- Tokeny ---------- */
:root {
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", serif;

  --bg: #fff;
  --surface: #f5f6f7;
  --text: #1f2933;
  --muted: #52606d;
  --line: #d9dee3;

  --accent: #a4243b;
  --accent-strong: #821c2f;
  --accent-soft: #f9ebee;
  --on-accent: #fff;
  --focus: #1a56db;

  --ok: #1b7f3b;
  --closed: #b42318;
  --notice-bg: #fff4d6;
  --notice-line: #d99a00;
  --notice-text: #4a3500;

  --radius: 10px;
  --radius-lg: 16px;
  --measure: 100%;
  --wrap: 68rem;
  color-scheme: light dark;
}
:root[data-theme="lach"] {
  --accent: #2b6f8f;
  --accent-strong: #1f5670;
  --accent-soft: #e8f2f7;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181c;
    --surface: #1c2227;
    --text: #e8ecef;
    --muted: #aab5bf;
    --line: #333c44;
    --accent: #e8798f;
    --accent-strong: #f4a0b0;
    --accent-soft: #2b1b20;
    --on-accent: #1d0b10;
    --focus: #8ab4ff;
    --ok: #5fd38a;
    --closed: #ff8a80;
    --notice-bg: #33290d;
    --notice-line: #b88700;
    --notice-text: #ffe9a8;
  }
  :root[data-theme="lach"] {
    --accent: #6fb4d3;
    --accent-strong: #98cde4;
    --accent-soft: #15262e;
    --on-accent: #07202b;
  }
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.125rem/1.65 var(--font-body);
  border-top: 6px solid var(--accent);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .2em; font-weight: 600; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--bg); color: var(--text); padding: .75rem 1rem;
  border: 2px solid var(--focus); border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .6rem 1.4rem;
  font: 700 1rem/1.2 var(--font-body);
  color: var(--on-accent); background: var(--accent);
  border: 2px solid var(--accent); border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent-soft); color: var(--accent-strong); border-color: var(--accent-strong); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.link-btn {
  background: none; border: 0; padding: 0; font: inherit; font-weight: 600;
  color: var(--accent); text-decoration: underline; text-underline-offset: .2em; cursor: pointer;
}

/* ---------- Hlavička ---------- */
.site-header { background: var(--bg); }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem 2rem; padding-block: 1.25rem;
}
.brand { display: block; flex: 1 1 18rem; min-width: 0; text-decoration: none; }
.brand-name {
  display: block; color: var(--accent);
  font: 700 clamp(1.4rem, 1rem + 1.8vw, 2.1rem)/1.15 var(--font-head);
}
.brand-sub {
  display: block; margin-top: .3rem; color: var(--muted);
  font: 600 .78rem/1.3 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
}
.header-actions { display: flex; flex: none; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .5rem 1.25rem; }
.header-contact { display: grid; gap: .1rem; justify-items: end; }
.tel { color: var(--text); font-size: 1.35rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.tel:hover { color: var(--accent); }
.open-now { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; font-weight: 600; color: var(--muted); }
.open-now[hidden] { display: none; }
.open-now::before { content: ""; width: .65rem; height: .65rem; border-radius: 50%; background: currentColor; flex: none; }
.open-now[data-state="open"] { color: var(--ok); }
.open-now[data-state="closed"] { color: var(--closed); }

/* ---------- Navigace ---------- */
.site-nav { background: var(--accent); }
.site-nav ul { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: flex; align-items: center; min-height: 48px; padding: .6rem 1.15rem;
  color: var(--on-accent); font-weight: 600; text-decoration: none; letter-spacing: .02em;
}
.site-nav a:hover { background: rgb(0 0 0 / .18); color: var(--on-accent); }
.site-nav .current > a, .site-nav a[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--on-accent); }
.site-nav :focus-visible { outline-color: var(--on-accent); outline-offset: -4px; }
.nav-toggle { display: none; }

@media (max-width: 52rem) {
  .header-actions { display: none; }
  .js .nav-toggle {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    min-height: 52px; padding: .6rem 1rem; background: var(--accent); color: var(--on-accent);
    border: 0; font: 700 1rem var(--font-body); cursor: pointer; letter-spacing: .04em;
  }
  .nav-toggle::after { content: "▾"; transition: transform .2s; }
  .nav-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
  .js .site-nav:not(.is-open) .nav-list { display: none; }
  .site-nav .wrap { width: 100%; }
  .site-nav ul { flex-direction: column; }
  .site-nav li + li { border-top: 1px solid rgb(255 255 255 / .22); }
  .site-nav a { padding-inline: 1rem; }
  .site-nav .current > a, .site-nav a[aria-current="page"] { box-shadow: inset 5px 0 0 var(--on-accent); }
}

/* Spodní lišta na mobilu: nejčastější akce vždy po ruce */
.mobile-cta { display: none; }
@media (max-width: 52rem) {
  .mobile-cta {
    position: fixed; z-index: 50; inset: auto 0 0 0;
    display: grid; grid-template-columns: 1fr 1.4fr; gap: .6rem;
    padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom));
    background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgb(0 0 0 / .08);
  }
  body { padding-bottom: 5rem; }
}

/* ---------- Upozornění (výluky, stěhování) ---------- */
.notice-wrap { background: var(--notice-bg); border-bottom: 1px solid var(--notice-line); }
.notice { padding-block: 1rem; color: var(--notice-text); font-size: 1.05rem; }
.notice-body > :first-child { margin-top: 0; }
.notice-body > :last-child { margin-bottom: 0; }
.notice p { margin: .4rem 0; }
.notice a { color: inherit; }
.notice strong:first-child::before { content: "⚠ "; }

/* ---------- Obsah ---------- */
.page { padding-block: 2.25rem 3.5rem; }
.page-head { margin-bottom: 1.75rem; }
.page-head h1 {
  margin: 0 0 .5rem; font: 700 clamp(1.8rem, 1.3rem + 2.2vw, 2.7rem)/1.15 var(--font-head);
  text-wrap: balance;
}
.page-head::after { content: ""; display: block; width: 64px; height: 4px; margin-top: 1.1rem; background: var(--accent); border-radius: 2px; }
.lead { max-width: var(--measure); margin: 0; color: var(--muted); font-size: 1.25rem; }

.prose > :where(p, ul, ol, h2, h3, details, blockquote, dl) { max-width: var(--measure); }
.prose h2 { margin: 2.4rem 0 .75rem; font: 700 1.55rem/1.25 var(--font-head); }
.prose h3 { margin: 1.8rem 0 .5rem; font: 700 1.2rem/1.3 var(--font-body); color: var(--accent); }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-block: .35rem; padding-left: .2rem; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2rem; }
.prose img { border-radius: var(--radius); }
.prose strong { font-weight: 700; }

.action-card {
  display: grid; gap: 1.5rem; margin-block: 0 2.5rem; padding: 1.5rem;
  background: var(--accent-soft); border-radius: var(--radius-lg);
}
.action-card h2 { margin-top: 0; }
.action-card p { margin-block: .5rem 1.25rem; }
.action-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 52rem) {
  .action-card { padding: 2rem; }
  .action-card--photo { grid-template-columns: 1.15fr 1fr; align-items: center; }
}

.steps {
  counter-reset: step; list-style: none; padding: 0 !important;
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); max-width: none !important;
}
.steps > li { counter-increment: step; margin: 0; padding: 1.1rem 1.2rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps > li::before {
  content: counter(step); display: grid; place-items: center; width: 2.1rem; height: 2.1rem; margin-bottom: .6rem;
  border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700;
}
.steps strong { display: block; margin-bottom: .2rem; }

.callout { max-width: var(--measure); margin-block: 1.5rem; padding: 1rem 1.25rem; background: var(--surface); border-left: 5px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; }
.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }

details.faq { margin-block: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
details.faq summary { cursor: pointer; padding: .9rem 1.25rem; font-weight: 700; min-height: 48px; }
details.faq > :not(summary) { margin-inline: 1.25rem; }
details.faq > :last-child { margin-bottom: 1.1rem; }

.card-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); margin-block: 1.5rem; }
.card { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; align-items: start; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.card h3 { margin: 0 0 .3rem; }

.float-end { float: right; margin: .25rem 0 1rem 1.5rem; max-width: 40%; }
@media (max-width: 40rem) { .float-end { float: none; display: block; margin: 0 0 1rem; max-width: 12rem; } }

.team { display: grid; gap: 1.25rem; margin-block: 1.5rem; }
.person { display: grid; gap: 1.25rem; align-items: start; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.person img { width: 100%; max-width: 12rem; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.person h3 { margin-top: 0; }
.person p { margin: 0; }
@media (min-width: 40rem) { .person:has(img) { grid-template-columns: 12rem 1fr; } }

.figure, .plan { margin: 1.5rem 0; }
.plan img { width: 100%; max-width: 38rem; border: 1px solid var(--line); }
.plan figcaption { margin-top: .4rem; color: var(--muted); font-size: .92rem; }

/* Těhotenství týden po týdnu */
.timeline { list-style: none; margin: 1.5rem 0; padding: 0 0 0 1.75rem !important; border-left: 3px solid var(--accent-soft); }
.timeline > li { position: relative; margin: 0 0 1.75rem; padding-left: 0; }
.timeline > li::before { content: ""; position: absolute; left: calc(-1.75rem - 9px); top: .45rem; width: 15px; height: 15px; border: 3px solid var(--accent); border-radius: 50%; background: var(--bg); }
.timeline h3 { margin: 0 0 .4rem; font: 700 1.2rem/1.3 var(--font-head); color: var(--accent); }
.timeline p { margin: .4rem 0; }

/* ---------- Ke stažení ---------- */
.prose .downloads { list-style: none; margin: 1rem 0 1.5rem; padding: 0; display: grid; gap: .6rem; max-width: var(--measure); }
.downloads li { margin: 0; padding: 0; }
.downloads a { display: flex; align-items: center; gap: .9rem; min-height: 56px; padding: .6rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: border-color .15s, background-color .15s; }
.downloads a:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.downloads a::after { content: "↓"; margin-left: auto; padding-left: .5rem; color: var(--accent); font-weight: 700; }
.file-type { flex: none; display: grid; place-items: center; min-width: 3.25rem; padding: .25rem .5rem; border-radius: 6px; background: var(--accent); color: var(--on-accent); font: 700 .8rem/1.2 var(--font-body); letter-spacing: .06em; }

/* ---------- Fotogalerie ---------- */
.prose .gallery { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); max-width: none; }
.gallery li { margin: 0; padding: 0; }
.gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.gallery img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .25s; }
.gallery a:hover img { transform: scale(1.05); }
.lightbox { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: rgb(0 0 0 / .92); color: #fff; }
.lightbox::backdrop { background: #000; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: .75rem; padding: 3.5rem 4rem; max-width: 100%; max-height: 100%; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 9rem); width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.lightbox figcaption { max-width: 60ch; text-align: center; }
.lb-count { position: absolute; left: 0; right: 0; bottom: .75rem; margin: 0; text-align: center; font-size: .95rem; color: #d0d5da; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 2px solid rgb(255 255 255 / .6); border-radius: 50%; background: rgb(0 0 0 / .5); color: #fff; font: 2rem/1 var(--font-body); cursor: pointer; }
.lb-btn:hover { background: rgb(255 255 255 / .2); }
.lb-btn[hidden] { display: none; }
.lb-btn:focus-visible { outline-color: #fff; }
.lb-close { top: .75rem; right: .75rem; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: .75rem; }
.lb-next { right: .75rem; }
@media (max-width: 40rem) { .lightbox figure { padding: 3.5rem .5rem; } .lb-prev, .lb-next { top: auto; bottom: .5rem; transform: none; } }

/* ---------- Tabulky ---------- */
.table-wrap { overflow-x: auto; margin-block: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 1.05rem; }
caption { text-align: left; padding: .9rem 1rem; font-weight: 700; color: var(--muted); }
th, td { padding: .75rem 1rem; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
thead th { background: var(--surface); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
tbody tr:nth-child(even) { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.price td + td, .price th + th { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.price td:first-child { font-weight: 400; }
.hours th { font-weight: 700; }
.hours th:first-child { width: 1%; white-space: nowrap; }
.hours td div + div { margin-top: .15rem; }
.hours .is-closed { color: var(--muted); }
.hours td small { display: block; color: var(--muted); }
.hours .is-today { background: var(--accent-soft); box-shadow: inset 5px 0 0 var(--accent); }
.hours .is-today th::after { content: " · dnes"; color: var(--accent); font-weight: 600; font-size: .85em; }

/* ---------- Kontakt a mapa ---------- */
.contact-list { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; margin-block: 1rem; }
.contact-list dt { color: var(--muted); font-weight: 600; }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }
.map-box { position: relative; margin-block: 2rem; min-height: 22rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.map-canvas { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder { position: relative; display: grid; place-content: center; justify-items: center; gap: .9rem; min-height: 22rem; padding: 1.5rem; text-align: center; }
.map-placeholder p { max-width: 36rem; margin: 0; color: var(--muted); }
.map-box.is-loaded .map-placeholder { display: none; }

/* ---------- Patička ---------- */
.site-footer { margin-top: 2rem; padding-block: 2.25rem 1.5rem; background: var(--surface); border-top: 1px solid var(--line); font-size: 1rem; }
.footer-grid { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.site-footer h2 { margin: 0 0 .5rem; font: 700 .85rem var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.site-footer p, .site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: .25rem; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; margin-top: 1.75rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

/* ---------- Cookie souhlas ---------- */
.cc-banner {
  position: fixed; z-index: 100; inset: auto 1rem 1rem 1rem; max-width: 46rem; margin-inline: auto;
  padding: 1.25rem 1.4rem; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-top: 5px solid var(--accent); border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgb(0 0 0 / .22); font-size: 1rem; line-height: 1.55;
}
.cc-banner[hidden] { display: none; }
.cc-banner h2 { margin: 0 0 .4rem; font: 700 1.2rem var(--font-head); }
.cc-banner p { margin: 0 0 1rem; }
.cc-actions { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.cc-dialog { width: min(100% - 2rem, 36rem); max-height: calc(100dvh - 2rem); padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--bg); color: var(--text); box-shadow: 0 20px 60px rgb(0 0 0 / .35); }
.cc-dialog::backdrop { background: rgb(0 0 0 / .55); }
.cc-dialog form { padding: 1.5rem; }
.cc-dialog h2 { margin: 0 0 .5rem; font: 700 1.35rem var(--font-head); }
.cc-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.cc-row small { display: block; margin-top: .2rem; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.cc-row input { appearance: none; flex: none; position: relative; width: 3.25rem; height: 1.9rem; margin: .15rem 0 0; background: var(--line); border-radius: 1rem; cursor: pointer; transition: background-color .15s; }
.cc-row input::after { content: ""; position: absolute; top: .2rem; left: .2rem; width: 1.5rem; height: 1.5rem; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgb(0 0 0 / .35); transition: transform .15s; }
.cc-row input:checked { background: var(--accent); }
.cc-row input:checked::after { transform: translateX(1.35rem); }
.cc-row input:disabled { opacity: .6; cursor: not-allowed; }
.cc-dialog .cc-actions { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Tisk ---------- */
@media print {
  body { border: 0; font-size: 11pt; color: #000; background: #fff; }
  .site-nav, .header-actions, .mobile-cta, .cc-banner, .cc-dialog, .skip-link, .btn, .link-btn, .map-box, .open-now { display: none !important; }
  .table-wrap { border: 0; overflow: visible; }
  a { color: #000; text-decoration: none; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-weight: 400; font-size: .85em; }
}
