/* Gynekologie Olomouc – styly webu
   Barvy: navy písmo z původní identity, meruňkový akcent z původní oranžové. */
:root {
  --bg: #F4F5F8;
  --surface: #FFFFFF;
  --ink: #1E2847;
  --muted: #5A6282;
  --line: #DFE2EB;
  --accent: #E46F43;
  --accent-ink: #B4502A;
  --accent-soft: #FBE3D8;
  --on-accent: #FFFFFF;
  --open: #2E8657;
  --open-soft: #DDF1E5;
  --closed: #8A90A8;
  --warn-soft: #FFF1D6;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11162A; --surface: #19203A; --ink: #E7E9F3; --muted: #A2A8C2; --line: #2A3253;
    --accent: #F2895C; --accent-ink: #F7A47F; --accent-soft: #3A2620; --on-accent: #2A140B;
    --open: #5CC48A; --open-soft: #1B3328; --closed: #7C83A0; --warn-soft: #3A3120;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11162A; --surface: #19203A; --ink: #E7E9F3; --muted: #A2A8C2; --line: #2A3253;
  --accent: #F2895C; --accent-ink: #F7A47F; --accent-soft: #3A2620; --on-accent: #2A140B;
  --open: #5CC48A; --open-soft: #1B3328; --closed: #7C83A0; --warn-soft: #3A3120;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0; }
a { color: var(--accent-ink); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.num { font-variant-numeric: tabular-nums; }
.skip-link { position: absolute; left: 16px; top: -100px; background: var(--ink); color: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip-link:focus { top: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hlavička */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; padding-top: env(safe-area-inset-top, 0px); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; padding-block: 14px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand svg { width: 42px; height: 42px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 650; font-size: 1.15rem; line-height: 1.1; }
.brand-sub { font-size: .82rem; color: var(--muted); letter-spacing: .04em; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); padding: 8px 12px; border-radius: 999px; font-size: .97rem; }
.nav a:hover { background: var(--bg); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.head-call { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--surface); text-decoration: none; padding: 9px 16px; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: 8px 12px; font: inherit; cursor: pointer; }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .head-call { display: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a { border-radius: 10px; padding: 12px; }
}
/* Bez JavaScriptu zůstane menu na mobilu rozbalené */
.no-js .menu-btn { display: none; }
@media (max-width: 900px) { .no-js .nav { display: flex; position: static; flex-direction: row; flex-wrap: wrap; padding: 0; border: 0; } .no-js .site-head .wrap { flex-wrap: wrap; } }

section { padding-block: 56px; }

/* Oznámení */
.oznameni { display: flex; flex-direction: column; gap: 10px; }
.oznameni:empty { display: none; }
.callout { background: var(--accent-soft); border-radius: var(--radius); padding: 16px 20px; font-size: .97rem; }
.callout.warn { background: var(--warn-soft); }
.top-notice { padding-top: 20px; }
.top-notice:has(.oznameni:empty) { display: none; }

/* Hero */
.hero { padding-block: 56px 40px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: start; }
.hero-text { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hero-text h1 em { font-style: normal; color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; text-decoration: none; border: 1.5px solid var(--ink); color: var(--ink); background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }

.today { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 10px 30px -18px rgba(30, 40, 71, .35); }
.status { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: .92rem; background: var(--bg); color: var(--closed); }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.status.is-open { background: var(--open-soft); color: var(--open); }
.today-hours { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; }
.today dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: .97rem; }
.today dt { color: var(--muted); }
.today dd { margin: 0; font-weight: 700; }
.today dd a { color: inherit; text-decoration: none; }
.note { font-size: .9rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; }

/* Týdenní osa */
.week { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 16px; overflow-x: auto; }
.week-inner { min-width: 560px; display: grid; grid-template-columns: 92px 1fr 150px; gap: 10px 16px; align-items: center; }
.week-scale { grid-column: 2; position: relative; height: 18px; font-size: .75rem; color: var(--muted); }
.week-scale span { position: absolute; transform: translateX(-50%); font-variant-numeric: tabular-nums; }
.day-name { font-weight: 700; }
.day-name small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; }
.track { position: relative; height: 30px; border-radius: 8px; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / 12)); }
.block { position: absolute; top: 3px; bottom: 3px; border-radius: 6px; background: var(--accent-soft); border: 1.5px solid var(--accent); }
.row-today .block { background: var(--accent); }
.row-today.day-name { color: var(--accent-ink); }
.row-closed .block { background: transparent; border-style: dashed; border-color: var(--closed); }
.day-hours { font-size: .9rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.row-today.day-hours { color: var(--ink); font-weight: 700; }
.now-line { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); border-radius: 2px; }
.week-foot { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .88rem; color: var(--muted); }
/* Statická tabulka (zobrazí se bez JavaScriptu, skript ji nahradí osou) */
.hours-table { grid-column: 1 / -1; border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.hours-table th, .hours-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }

/* Služby */
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
a.service:hover { border-color: var(--accent); transform: translateY(-2px); }
.service .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent-ink); }
.service p { color: var(--muted); font-size: .95rem; }
.service .more { margin-top: auto; font-weight: 700; color: var(--accent-ink); font-size: .92rem; }

/* O nás */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; max-width: 100%; object-fit: cover; border-radius: var(--radius); background: var(--line); }
.hero-media { display: flex; flex-direction: column; min-width: 0; }
.hero-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--radius) + 6px); background: var(--line); }
.hero-media .today { position: relative; margin: -96px 20px 0; }
.card-img { display: block; margin: -22px -22px 6px; width: calc(100% + 44px); height: auto; max-width: none; aspect-ratio: 16 / 10; object-fit: cover; background: var(--line); }
.service, .topic { overflow: hidden; }
.about-text { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.fact { border-top: 2px solid var(--accent); padding-top: 10px; }
.fact b { display: block; font-family: var(--font-display); font-size: 1.4rem; }
.fact span { font-size: .88rem; color: var(--muted); }

/* VIP pruh */
.vip-band { background: var(--ink); color: var(--surface); border-radius: calc(var(--radius) + 6px); padding: 36px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.vip-band .eyebrow { color: var(--accent); }
.vip-band p { opacity: .85; }
.vip-band .btn { border-color: var(--surface); color: var(--surface); }
.price-list { display: flex; flex-direction: column; gap: 10px; }
.price-row { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid color-mix(in srgb, var(--surface) 20%, transparent); padding-bottom: 8px; }
.price-row b { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.contact-card .big { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; overflow-wrap: anywhere; }
.contact-card .big a { color: inherit; text-decoration: none; }
.contact-card .big a:hover { text-decoration: underline; }

/* Podstránky */
.page-head { padding-block: 48px 8px; display: flex; flex-direction: column; gap: 12px; }
.crumbs { font-size: .88rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.prose { max-width: 68ch; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.prose h2 { font-size: 1.45rem; margin-top: 24px; }
.prose h3 { margin-top: 8px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 4px; }
.prose .table-wrap { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.article-grid { display: grid; grid-template-columns: 230px 1fr; gap: 48px; align-items: start; }
.toc { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 4px; font-size: .93rem; border-left: 2px solid var(--line); }
.toc a { text-decoration: none; color: var(--muted); padding: 4px 14px; margin-left: -2px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--ink); border-left-color: var(--accent); }
.article-foot { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 16px; font-size: .92rem; color: var(--muted); }

.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.topic { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); }
.topic:hover { border-color: var(--accent); }
.topic p { color: var(--muted); font-size: .95rem; }
.tag { align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--bg); color: var(--muted); padding: 3px 8px; border-radius: 6px; }

details.faq, details.terms { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 22px; }
details.faq summary, details.terms summary { cursor: pointer; font-weight: 700; font-family: var(--font-display); font-size: 1.1rem; }
details.faq[open] summary { margin-bottom: 10px; }
details.faq > div { display: flex; flex-direction: column; gap: 10px; }
details.faq ul, details.terms ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
details.terms ul { color: var(--muted); margin-top: 12px; gap: 8px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 76ch; }

.vip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.plan .price { font-family: var(--font-display); font-size: 2.2rem; font-weight: 650; }
.plan .price small { font-size: 1rem; font-weight: 400; color: var(--muted); }
.plan ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.plan .extra { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; font-size: .95rem; }
.plan .extra div { display: flex; justify-content: space-between; gap: 12px; }
.plan .extra b { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Formulář */
.form-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: start; }
form.msg { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
form.msg label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: .93rem; }
form.msg input, form.msg textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); width: 100%; }
form.msg textarea { resize: vertical; }
form.msg .hint { font-size: .85rem; color: var(--muted); }
.form-status { border-radius: 10px; padding: 12px 14px; font-weight: 700; }
.form-status.ok { background: var(--open-soft); color: var(--open); }
.form-status.err { background: var(--warn-soft); color: var(--ink); }
.map-link { display: block; aspect-ratio: 16 / 9; max-width: 100%; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; color: var(--ink); background:
  linear-gradient(0deg, transparent 48%, var(--line) 48% 52%, transparent 52%),
  linear-gradient(90deg, transparent 30%, var(--line) 30% 33%, transparent 33%),
  linear-gradient(20deg, transparent 60%, var(--line) 60% 62%, transparent 62%), var(--surface);
  position: relative; }
.map-link span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); background: var(--accent); color: var(--on-accent); font-weight: 700; padding: 6px 12px; border-radius: 999px; white-space: nowrap; font-size: .9rem; }

/* Patička */
footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; padding-block: 32px; font-size: .92rem; color: var(--muted); }
footer b { color: var(--ink); }
footer a { color: var(--muted); }

@media (max-width: 900px) {
  .hero-grid, .about, .vip-band, .article-grid, .form-grid, .vip-grid { grid-template-columns: 1fr; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .services, .facts { grid-template-columns: 1fr; }
  .vip-band { padding: 24px; }
  section { padding-block: 40px; }
  .hero-media .today { margin: -64px 10px 0; padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  .site-head, .menu-btn, .toc, .map-link, form.msg, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .article-grid { grid-template-columns: 1fr; }
}
