/* =========================================================
   MUDr. Hana Kučová – foniatrie, ORL, sluchadla
   Čisté CSS, bez externích závislostí.
   ========================================================= */

:root {
  --c-primary: #1f5c56;
  --c-primary-dark: #164440;
  --c-primary-soft: #e3eeeb;
  --c-accent: #b86a2e;
  --c-accent-soft: #fbf1e7;
  --c-text: #1e2b2a;
  --c-muted: #5b6b69;
  --c-line: #dde4e2;
  --c-bg: #ffffff;
  --c-bg-alt: #f5f7f6;
  --c-ok: #2e8b57;
  --c-closed: #b0463a;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(20 40 38 / .05), 0 8px 24px rgb(20 40 38 / .07);
  --container: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--c-primary); text-underline-offset: .18em; }
a:hover { color: var(--c-primary-dark); }

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 8px; top: -100px;
  z-index: 100;
  padding: .6em 1em;
  background: var(--c-primary);
  color: #fff;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 8px; }

.muted { color: var(--c-muted); }

.eyebrow {
  margin: 0 0 .5rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-accent);
}

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .8em 1.4em;
  border: 2px solid var(--c-primary);
  border-radius: 999px;
  background: var(--c-primary);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--c-primary-dark); border-color: var(--c-primary-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--c-primary); }
.btn--ghost:hover { background: var(--c-primary-soft); color: var(--c-primary-dark); border-color: var(--c-primary); }
.btn--small { padding: .45em 1.1em; font-size: .95rem; }

/* ---------- Lišta s aktuální změnou ---------- */
.alert-bar {
  background: var(--c-accent-soft);
  border-bottom: 1px solid #f0dcc6;
  font-size: .95rem;
}
.alert-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .75rem;
  padding-block: .55rem;
}
.alert-bar__label {
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--c-accent);
  padding: .15em .6em;
  border-radius: 999px;
}
.alert-bar a { color: var(--c-accent); font-weight: 600; }

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--c-text);
}
.brand img { border-radius: 10px; }
.brand strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.brand small { display: block; color: var(--c-muted); font-size: .82rem; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav a:not(.btn) {
  display: block;
  padding: .5em .75em;
  border-radius: var(--radius-sm);
  color: var(--c-text);
  text-decoration: none;
  font-weight: 500;
  font-size: .97rem;
}
.main-nav a:not(.btn):hover { background: var(--c-bg-alt); color: var(--c-primary); }
.main-nav li:last-child { margin-left: .5rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  position: relative;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  position: absolute;
  left: 11px;
  width: 20px; height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle__bar { top: 21px; }
.nav-toggle__bar::before,
.nav-toggle__bar::after { content: ""; left: 0; }
.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: .5rem var(--gutter) 1rem;
  }
  .main-nav a:not(.btn) { padding: .8em .5em; border-bottom: 1px solid var(--c-bg-alt); }
  .main-nav li:last-child { margin: .75rem 0 0; }
  .main-nav .btn { width: 100%; }
}

/* ---------- Úvod ---------- */
.hero {
  background:
    radial-gradient(900px 400px at 85% 10%, var(--c-primary-soft), transparent 70%),
    var(--c-bg);
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2rem, 5vw, 4rem);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.lead {
  font-size: clamp(1.1rem, 1.8vw, 1.25rem);
  color: var(--c-muted);
  max-width: 34em;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1.75rem 0;
}
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--c-muted);
  font-size: .95rem;
}
.hero__facts li::before {
  content: "✓";
  color: var(--c-primary);
  font-weight: 700;
  margin-right: .45em;
}
.hero__media {
  position: relative;
  max-width: 400px;
  justify-self: end;
  width: 100%;
}
.hero__media img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.status-card {
  position: absolute;
  left: -1.5rem;
  bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1.1rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: .92rem;
  line-height: 1.35;
  max-width: calc(100% + 1.5rem);
}
.status-card strong { display: block; }
.status-card span:not(.status-dot) { color: var(--c-muted); }
.status-dot {
  flex: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--c-muted);
  box-shadow: 0 0 0 4px rgb(91 107 105 / .15);
}
.status-card.is-open .status-dot { background: var(--c-ok); box-shadow: 0 0 0 4px rgb(46 139 87 / .18); }
.status-card.is-closed .status-dot { background: var(--c-closed); box-shadow: 0 0 0 4px rgb(176 70 58 / .15); }

@media (max-width: 760px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { justify-self: stretch; max-width: none; }
  .hero__media img { display: none; }
  .status-card { position: static; max-width: none; box-shadow: none; border: 1px solid var(--c-line); }
}

/* ---------- Sekce ---------- */
.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section--tight { padding-block: 1rem clamp(1.5rem, 4vw, 2.5rem); }
.section--alt { background: var(--c-bg-alt); }
.section__head { max-width: 40rem; margin-bottom: 2.25rem; }
.section__head p:not(.eyebrow) { color: var(--c-muted); }

/* ---------- Oznámení ---------- */
.notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--c-accent-soft);
  border: 1px solid #f0dcc6;
  border-left: 5px solid var(--c-accent);
  border-radius: var(--radius);
}
.notice h2 { font-size: 1.3rem; }
.notice__icon {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
}
@media (max-width: 560px) {
  .notice { grid-template-columns: 1fr; gap: .75rem; }
}

/* ---------- Karty služeb ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.card {
  padding: 1.6rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card p { color: var(--c-muted); font-size: .98rem; }
.card__icon {
  width: 44px; height: 44px;
  padding: 9px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--c-primary-soft);
  fill: none;
  stroke: var(--c-primary);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Pro pacienty ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

.info-block {
  padding: 1.6rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
}
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .55rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: .6rem; height: .6rem;
  border-radius: 50%;
  background: var(--c-primary-soft);
  border: 2px solid var(--c-primary);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: .3em .8em;
  border-radius: 999px;
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
  font-size: .9rem;
  font-weight: 500;
}

/* ---------- Tým ---------- */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
}
.person img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.1rem;
}
.person h3 { margin-bottom: .15em; }
.person__role {
  color: var(--c-accent);
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: .6em;
}
.person p:last-child { color: var(--c-muted); font-size: .97rem; }

@media (max-width: 600px) {
  .team { grid-template-columns: 1fr; gap: 1.25rem; }
  .person {
    display: grid;
    grid-template-columns: 104px 1fr;
    column-gap: 1rem;
    align-items: start;
  }
  .person img { grid-row: 1 / span 3; margin: 0; }
  .person h3 { font-size: 1.05rem; }
}

/* ---------- Aktuality ---------- */
.news {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.news__item {
  padding: 1.6rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
}
.news__item time {
  display: inline-block;
  margin-bottom: .6rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--c-primary);
}
.news__item p { color: var(--c-muted); font-size: .98rem; }

/* ---------- Ordinační hodiny ---------- */
.grid-hours {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 860px) { .grid-hours { grid-template-columns: 1fr; } }

.hours {
  padding: clamp(1rem, 3vw, 1.75rem);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}
.hours__table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.hours__table caption {
  text-align: left;
  font-weight: 600;
  color: var(--c-muted);
  font-size: .9rem;
  padding: 0 .75rem .75rem;
}
.hours__table th,
.hours__table td {
  padding: .8rem .75rem;
  text-align: left;
  border-bottom: 1px solid var(--c-line);
}
.hours__table thead th {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-muted);
  font-weight: 600;
}
.hours__table tbody tr:last-child > * { border-bottom: 0; }
.hours__table tbody th { font-weight: 600; }
.hours__table tr.is-today > * { background: var(--c-primary-soft); }
.hours__table tr.is-today th::after {
  content: "dnes";
  margin-left: .5rem;
  padding: .1em .5em;
  border-radius: 999px;
  background: var(--c-primary);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  vertical-align: middle;
}
.hours__table tr.is-today > :first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.hours__table tr.is-today > :last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.hours__note {
  margin: 1rem .75rem 0;
  color: var(--c-muted);
  font-size: .95rem;
}
@media (max-width: 480px) {
  .hours__table th, .hours__table td { padding: .7rem .4rem; font-size: .95rem; }
}

.changes {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--c-accent-soft);
  border: 1px solid #f0dcc6;
  border-radius: var(--radius);
}
.changes h3 { color: #7a4418; }
.changes__list { margin: 0 0 1rem; padding: 0; list-style: none; }
.changes__list li {
  padding: .8rem 0;
  border-bottom: 1px dashed #e6c9aa;
}
.changes__list li:first-child { padding-top: 0; }
.changes__sub { display: block; font-size: .92rem; color: var(--c-muted); margin-top: .25rem; }
.changes__empty { display: none; }
.changes.is-empty .changes__empty { display: block; }
.changes.is-empty .changes__list { display: none; }
.changes__foot { font-size: .9rem; color: var(--c-muted); }

/* ---------- Kontakt ---------- */
.grid-contact {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
}
@media (max-width: 860px) { .grid-contact { grid-template-columns: 1fr; } }

.contact-list { display: grid; gap: 1rem; }
.contact-item {
  display: grid;
  gap: .15rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  color: var(--c-text);
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}
a.contact-item:hover { border-color: var(--c-primary); box-shadow: var(--shadow); color: var(--c-text); }
.contact-item__label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-muted);
  font-weight: 600;
}
.contact-item__value { font-size: 1.15rem; font-weight: 600; overflow-wrap: anywhere; }
a.contact-item .contact-item__value { color: var(--c-primary); }
.contact-item__hint { font-size: .9rem; color: var(--c-muted); }

.map {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.map__placeholder,
.map iframe {
  flex: 1;
  min-height: 300px;
  width: 100%;
  border: 0;
}
.map__placeholder {
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  color: var(--c-muted);
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, var(--c-line) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, var(--c-line) 39px 40px),
    var(--c-bg-alt);
}
.map__placeholder svg {
  width: 48px; height: 48px;
  fill: var(--c-primary-soft);
  stroke: var(--c-primary);
  stroke-width: 1.5;
  margin-bottom: .5rem;
}
.map__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--c-line);
  font-size: .92rem;
  color: var(--c-muted);
}

/* ---------- Patička ---------- */
.site-footer {
  background: var(--c-primary-dark);
  color: rgb(255 255 255 / .82);
  font-size: .93rem;
  padding-block: 2.5rem;
}
.site-footer a { color: #fff; }
.site-footer strong { color: #fff; }
.site-footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.site-footer__meta { color: rgb(255 255 255 / .6); }

/* ---------- Režim návrhu: zvýraznění textů k doplnění ---------- */
.draft-only { display: none; }
body.draft .draft-only { display: inline; }
body.draft [data-todo] {
  background: repeating-linear-gradient(-45deg, rgb(255 214 102 / .28) 0 8px, rgb(255 214 102 / .14) 8px 16px);
  outline: 1px dashed #d9a400;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Tisk ---------- */
@media print {
  .site-header, .alert-bar, .hero__media, .map, .nav-toggle { display: none !important; }
  .section { padding-block: 1rem; }
  body.draft [data-todo] { background: none; outline: 0; }
  a { color: inherit; text-decoration: none; }
}
