/* ==========================================================================
   MUDr. Iveta Kašová – dětská ordinace Velké Meziříčí
   ========================================================================== */

:root {
  --ink: #26354f;
  --ink-soft: #56637c;
  --bg: #fffaf3;
  --surface: #ffffff;
  --line: #ece4d8;

  --primary: #13806f;
  --primary-dark: #0c5f53;
  --primary-50: #e4f5f1;

  --mint: #5cc8b0;
  --mint-100: #e3f6f1;
  --sky: #5aa9e6;
  --sky-100: #e7f2fc;
  --peach: #ff9a7a;
  --peach-100: #ffece5;
  --sun: #ffc93f;
  --sun-100: #fff5d6;
  --lilac: #a493e6;
  --lilac-100: #efebfc;

  --danger: #c8423a;
  --danger-100: #fde9e7;
  --ok: #1d8a4e;

  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px -12px rgba(38, 53, 79, .18);
  --shadow-sm: 0 4px 14px -6px rgba(38, 53, 79, .16);

  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Baloo 2', 'Nunito', system-ui, sans-serif;

  --container: 1160px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--ink);
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
strong { font-weight: 800; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.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: 12px; top: -60px; z-index: 200;
  background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Oznámení / dovolená ---------- */
.notice-bar:empty { display: none; }
.notice {
  padding: 12px 0;
  font-weight: 700;
  font-size: 1rem;
}
.notice .container { display: flex; gap: 12px; align-items: flex-start; }
.notice__icon { flex: 0 0 auto; display: flex; padding-top: 2px; }
.notice__icon svg { width: 22px; height: 22px; }
.notice a.notice__more { white-space: nowrap; }
.notice p { margin: 0; }
.notice small { display: block; font-weight: 600; opacity: .9; }
.notice--closed { background: var(--danger); color: #fff; }
.notice--closed a { color: #fff; }
.notice--soon { background: var(--sun-100); color: #6b4d00; border-bottom: 2px solid #f3dc97; }
.notice--soon a { color: #6b4d00; }
.notice--info { background: var(--sky-100); color: #1d4f7a; border-bottom: 2px solid #c8e0f5; }
.notice--info a { color: #1d4f7a; }

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 250, 243, .9);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; align-items: center; gap: 16px; min-height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 50px; height: 50px; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; line-height: 1.05; display: block; }
.brand__sub { font-size: .82rem; color: var(--ink-soft); font-weight: 700; display: block; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: .98rem;
  padding: 8px 12px; border-radius: 999px; transition: background .15s, color .15s;
}
.nav a:hover { background: var(--primary-50); color: var(--primary-dark); }
.nav a[aria-current="page"] { background: var(--primary-50); color: var(--primary-dark); }

.header-call { white-space: nowrap; }

.nav-toggle {
  display: none; border: 0; background: var(--primary-50); color: var(--primary-dark);
  width: 46px; height: 46px; border-radius: 14px; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2.5px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform .2s, background .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; }
  .header-call .btn__label { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); padding: 12px 16px 20px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .nav a { padding: 12px 16px; font-size: 1.05rem; border-radius: 12px; }
  .nav-open .nav { display: flex; }
}
@media (max-width: 420px) {
  .brand__sub { display: none; }
  .brand img { width: 42px; height: 42px; }
}

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 800; font-size: 1rem; line-height: 1.2;
  padding: 13px 22px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .15s, background .15s, box-shadow .15s, color .15s;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); color: #fff; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary-dark); }
.btn--sm { padding: 9px 16px; font-size: .95rem; }
.btn svg { width: 20px; height: 20px; flex: 0 0 auto; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 48px 0 150px; overflow: hidden; }
/* Obloha s mráčky a krajinka (zámek a dálniční most Velkého Meziříčí) */
.hero, .page-hero {
  isolation: isolate;
  background: linear-gradient(180deg, #d7edf9 0%, #e9f5fa 50%, var(--bg) 100%);
}
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 260px; z-index: -1;
  background: url("../img/mraky.svg") 0 0 / 1440px 260px repeat-x;
  animation: clouds 160s linear infinite;
}
.hero::after, .page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 160px; z-index: -1;
  background: url("../img/krajina.svg") center bottom / cover no-repeat;
}
.page-hero::after { height: 140px; }
@keyframes clouds { to { background-position-x: 1440px; } }
@media (max-width: 640px) {
  .hero::after { height: 90px; }
  .page-hero::after { height: 90px; }
}
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero__sub { font-size: 1.15rem; color: var(--ink-soft); margin: 0 0 22px; }
.hero__art img { width: 100%; }

.hero-info {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 20px; max-width: 520px;
}
.hero-info__phone {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; color: var(--primary-dark); line-height: 1.1;
}
.hero-info__phone svg { width: 26px; height: 26px; }
.hero-info p { margin: 6px 0 0; color: var(--ink-soft); font-size: .98rem; }
.hero-info .status-pill { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); width: 100%; }

.status-pill { display: flex; align-items: flex-start; gap: 10px; font-weight: 700; font-size: .98rem; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #b5bccb; flex: 0 0 auto; margin-top: .5em; }
.status-pill.is-open .status-dot { background: #2fa866; }
.status-pill.is-closed .status-dot { background: #e9a23b; }
.status-pill.is-holiday .status-dot { background: var(--danger); }

@media (max-width: 860px) {
  .hero { padding: 28px 0 100px; }
  .hero .container { grid-template-columns: 1fr; gap: 24px; }
  .hero__art { max-width: 420px; margin: 0 auto; order: -1; }
}

/* ---------- Sekce ---------- */
.section { padding: 64px 0; position: relative; }
.section--white { background: var(--surface); }
.section__head { max-width: 720px; margin-bottom: 28px; }
.section__head p { color: var(--ink-soft); font-size: 1.08rem; }

@media (max-width: 640px) { .section { padding: 44px 0; } }

/* ---------- Page header (podstránky) ---------- */
.page-hero { position: relative; padding: 40px 0 130px; overflow: hidden; }
.page-hero p { color: var(--ink-soft); font-size: 1.15rem; max-width: 46em; margin: 0; }
.breadcrumbs { font-size: .9rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 14px; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: #b5aa98; }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary); }

/* ---------- Grid & karty ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border-radius: var(--radius); padding: 28px;
  border: 1px solid var(--line); position: relative;
}
.card h3 { margin-bottom: .4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.tile {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; align-items: start;
  background: var(--surface); border-radius: var(--radius-sm); padding: 20px;
  border: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
  transition: border-color .15s, background .15s;
}
.tile > .icon-bubble { grid-row: span 3; }
a.tile:hover { border-color: var(--primary); color: var(--ink); }
a.tile:hover h3 { color: var(--primary-dark); }
.tile h3 { margin: 2px 0 0; font-size: 1.2rem; }
.tile p { color: var(--ink-soft); margin: 0; font-size: .98rem; }

.icon-bubble {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto;
}
.icon-bubble svg { width: 24px; height: 24px; }
.card > .icon-bubble { margin-bottom: 14px; }
.c-mint { background: var(--mint-100); color: #127a67; }
.c-sky { background: var(--sky-100); color: #1d64a3; }
.c-peach { background: var(--peach-100); color: #b8492b; }
.c-sun { background: var(--sun-100); color: #8a6200; }
.c-lilac { background: var(--lilac-100); color: #5a45b8; }

/* ---------- Ordinační hodiny ---------- */
.hours { width: 100%; border-collapse: collapse; font-size: 1.02rem; }
.hours th, .hours td { text-align: left; padding: 12px 10px; border-bottom: 1px dashed var(--line); vertical-align: top; }
.hours th { width: 5.5em; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours tr.is-today { background: var(--primary-50); }
.hours tr.is-today th { color: var(--primary-dark); }
.hours tr.is-today th::after {
  content: "dnes"; display: inline-block; margin-left: 6px; font-family: var(--font);
  font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  background: var(--primary); color: #fff; padding: 1px 7px; border-radius: 999px; vertical-align: middle;
}
.hours .time { font-weight: 800; white-space: nowrap; }
.hours .note { display: block; font-size: .92rem; color: var(--ink-soft); }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; margin: 0; }
.contact-list .icon-bubble { width: 46px; height: 46px; border-radius: 14px; }
.contact-list .icon-bubble svg { width: 22px; height: 22px; }
.contact-list strong { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.contact-list a { font-weight: 800; font-size: 1.15rem; text-decoration: none; }

.big-phone {
  font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800;
  color: var(--primary-dark); text-decoration: none; display: inline-block; line-height: 1.1;
}

/* ---------- Callouty ---------- */
.callout {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 16px 18px; margin: 0 0 1.2em;
  display: flex; gap: 12px; align-items: flex-start; border-left: 4px solid;
}
.callout > :last-child { margin-bottom: 0; }
.grid + .callout { margin-top: 28px; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout__icon { flex: 0 0 auto; display: flex; padding-top: 2px; }
.callout__icon svg { width: 22px; height: 22px; }
.callout--info { background: var(--sky-100); border-color: var(--sky); }
.callout--info .callout__icon { color: #1d64a3; }
.callout--tip { background: var(--mint-100); border-color: var(--mint); }
.callout--tip .callout__icon { color: var(--primary); }
.callout--warn { background: var(--sun-100); border-color: var(--sun); }
.callout--warn .callout__icon { color: #8a6200; }
.callout--danger { background: var(--danger-100); border-color: var(--danger); }
.callout--danger .callout__icon { color: var(--danger); }
.callout--danger strong { color: var(--danger); }

/* ---------- Dovolená ---------- */
.vacation-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vacation-list li {
  margin: 0; display: flex; gap: 14px; align-items: center;
  background: var(--sun-100); border-radius: var(--radius-sm); padding: 12px 16px;
}
.vacation-list li.is-now { background: var(--danger-100); }
.vacation-list .date { font-weight: 800; white-space: nowrap; }
.vacation-list .meta { font-size: .92rem; color: var(--ink-soft); }
.vacation-empty { color: var(--ink-soft); margin: 0; }

/* ---------- Galerie ---------- */
/* 6 fotek: řádky [široká | úzká], [úzká | široká], [široká | úzká] */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 250px; gap: 16px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; background: var(--mint-100); box-shadow: var(--shadow-sm); }
.gallery figure:nth-child(6n+1), .gallery figure:nth-child(6n+4), .gallery figure:nth-child(6n+5) { grid-column: span 2; }
.gallery a { display: block; height: 100%; cursor: zoom-in; }
.gallery a:focus-visible { outline: 3px solid var(--sky); outline-offset: -3px; border-radius: var(--radius); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 12px; bottom: 12px; background: rgba(255, 255, 255, .92);
  padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: .88rem;
}
.gallery .is-placeholder { display: grid; place-items: center; text-align: center; color: #127a67; font-weight: 800; padding: 16px; }
.gallery .is-placeholder:nth-child(2) { background: var(--sky-100); color: #1d64a3; }
.gallery .is-placeholder:nth-child(3) { background: var(--peach-100); color: #b8492b; }
.gallery .is-placeholder:nth-child(4) { background: var(--sun-100); color: #8a6200; }
.gallery .is-placeholder:nth-child(5) { background: var(--lilac-100); color: #5a45b8; }
.gallery .is-placeholder img, .gallery .is-placeholder figcaption { display: none; }
.gallery .is-placeholder::before { content: attr(data-placeholder); font-size: .95rem; opacity: .8; }
.gallery .is-placeholder a { display: none; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; gap: 10px; }
  .gallery figure:nth-child(n) { grid-column: auto; }
  .gallery figure:nth-child(6n+1), .gallery figure:nth-child(6n) { grid-column: span 2; }
  .gallery figcaption { left: 8px; bottom: 8px; font-size: .8rem; padding: 3px 10px; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh; margin: 0; overflow: hidden;
}
.lightbox::backdrop { background: rgba(20, 28, 42, .92); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 64px 24px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: var(--radius-sm); box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.lightbox figcaption { color: #fff; font-weight: 800; margin-top: 14px; text-align: center; }
.lightbox__btn {
  position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .95); color: var(--ink); display: grid; place-items: center;
  box-shadow: var(--shadow-sm); transition: transform .15s;
}
.lightbox__btn:hover { transform: scale(1.08); }
.lightbox__btn:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.lightbox__btn svg { width: 24px; height: 24px; }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev { left: 12px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 12px; top: 50%; translate: 0 -50%; }
@media (max-width: 760px) {
  .lightbox figure { padding: 64px 10px 80px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; translate: none; }
  .lightbox__prev { left: calc(50% - 60px); }
  .lightbox__next { right: calc(50% - 60px); }
}

/* ---------- Vyšetření v ordinaci ---------- */
.exams .card { border-top: 5px solid var(--mint); }
.exams .card:nth-child(1) { border-top-color: var(--peach); }
.exams .card:nth-child(2) { border-top-color: var(--sky); }
.exams .card:nth-child(3) { border-top-color: var(--sun); }
@media (min-width: 641px) and (max-width: 960px) { .exams .card:nth-child(3) { grid-column: span 2; } }

/* ---------- Pojišťovny ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li {
  margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-weight: 700; font-size: .95rem;
}
.chips b { color: var(--primary); margin-right: 4px; }

/* ---------- Mapa ---------- */
.map {
  border-radius: var(--radius); overflow: hidden; min-height: 320px; height: 100%;
  background: var(--sky-100); position: relative; border: 1px solid var(--line);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__consent {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px;
  padding: 24px; text-align: center;
}
.map__consent p { margin: 0; color: var(--ink-soft); font-size: .95rem; max-width: 26em; }

/* ---------- Obsah článků ---------- */
.layout-aside { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.toc {
  position: sticky; top: 96px; background: var(--surface); border-radius: var(--radius);
  padding: 20px; border: 1px solid var(--line);
}
.toc strong { display: block; font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 8px; }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0; }
.toc a {
  display: block; padding: 7px 10px; border-radius: 10px; text-decoration: none;
  color: var(--ink); font-weight: 700; font-size: .96rem;
}
.toc a:hover, .toc a.is-active { background: var(--primary-50); color: var(--primary-dark); }
.toc__group { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); font-weight: 800; padding: 12px 10px 4px; }
@media (max-width: 900px) {
  .layout-aside { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; }
  .toc ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .toc a { background: var(--bg); }
  .toc__group { width: 100%; padding-left: 2px; }
}

.article > section { scroll-margin-top: 100px; margin-bottom: 26px; }
.article h2 { display: flex; align-items: center; gap: 14px; font-size: clamp(1.5rem, 3vw, 2rem); }
.article h2 .icon-bubble { width: 44px; height: 44px; }
.article h3 { margin-top: 1.3em; font-size: 1.2rem; }
.article .card { padding: 30px 32px; }
@media (max-width: 640px) { .article .card { padding: 22px 20px; } }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--mint-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%2313806f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.alarm-list { list-style: none; padding: 0; }
.alarm-list li { position: relative; padding-left: 32px; }
.alarm-list li::before {
  content: "!"; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--danger); color: #fff; font-weight: 800; font-size: .8rem; display: grid; place-items: center;
}

/* ---------- Formuláře ke stažení ---------- */
.doc-list { display: grid; gap: 16px; }
.doc {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center;
  background: var(--surface); border-radius: var(--radius-sm); padding: 20px 22px;
  border: 1px solid var(--line); scroll-margin-top: 100px;
}
.doc h3 { margin: 0 0 4px; font-size: 1.2rem; }
.doc p { margin: 0 0 .5em; color: var(--ink-soft); font-size: .98rem; }
.doc p:last-child { margin-bottom: 0; }
.doc__meta { font-size: .85rem; font-weight: 700; color: #8b93a6; }
@media (max-width: 680px) {
  .doc { grid-template-columns: auto minmax(0, 1fr); }
  .doc .btn { grid-column: 1 / -1; }
}

/* ---------- Tabulka očkování ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
.vax { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .97rem; }
.vax th, .vax td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.vax thead th { background: var(--primary); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.vax tbody th { font-weight: 800; white-space: nowrap; background: #fffdf9; }
.vax tbody tr:last-child th, .vax tbody tr:last-child td { border-bottom: 0; }
.tag {
  display: inline-block; font-size: .78rem; font-weight: 800; padding: 2px 9px; border-radius: 999px;
  margin: 2px 4px 2px 0; white-space: nowrap;
}
.tag--must { background: var(--peach-100); color: #a33c1f; }
.tag--rec { background: var(--sky-100); color: #1d64a3; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: .92rem; font-weight: 700; margin: 0 0 14px; }

/* ---------- Kalkulačky ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; overflow: hidden; padding: 0; }
.calc__form { padding: 32px; }
.calc__result { padding: 32px; background: linear-gradient(160deg, var(--primary-50), var(--sky-100)); }
@media (max-width: 860px) {
  .calc { grid-template-columns: 1fr; }
  .calc__form, .calc__result { padding: 24px 20px; }
}

.field { margin-bottom: 22px; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-weight: 800; margin-bottom: 8px; padding: 0; }
.field .hint { font-size: .88rem; color: var(--ink-soft); margin-top: 6px; }

.input, .select {
  width: 100%; font: inherit; font-weight: 700; color: var(--ink);
  padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-50); }
.input-suffix { position: relative; }
.input-suffix .input { padding-right: 52px; }
.input-suffix span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-weight: 800; color: var(--ink-soft); pointer-events: none; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  flex: 1 1 0; min-width: 110px; text-align: center; cursor: pointer;
  padding: 11px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface);
  font-weight: 800; transition: all .15s; line-height: 1.25;
}
.seg label small { display: block; font-weight: 600; font-size: .8rem; color: var(--ink-soft); }
.seg input:checked + label { border-color: var(--primary); background: var(--primary-50); color: var(--primary-dark); }
.seg input:focus-visible + label { box-shadow: 0 0 0 4px var(--sky-100); }

input[type="range"] { width: 100%; accent-color: var(--primary); margin-top: 10px; }

.result-empty { color: var(--ink-soft); display: grid; place-items: center; text-align: center; min-height: 220px; }
.result-empty .icon-bubble { margin: 0 auto 12px; background: var(--surface); color: var(--primary); }
.dose { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.dose__label { font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.dose__value { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; color: var(--primary-dark); line-height: 1.1; margin: 4px 0; }
.dose__sub { font-weight: 700; color: var(--ink-soft); margin: 0; }
.dose-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.dose-facts div { background: rgba(255, 255, 255, .75); border-radius: var(--radius-sm); padding: 12px 14px; }
.dose-facts dt { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.dose-facts dd { margin: 2px 0 0; font-weight: 800; font-size: 1.1rem; }

.bmi-scale { position: relative; height: 16px; border-radius: 999px; margin: 26px 0 10px;
  background: linear-gradient(90deg, #8cc7f0 0 18%, #6fd3a5 18% 55%, #ffd166 55% 78%, #ff8a73 78% 100%); }
.bmi-scale__marker {
  position: absolute; top: 50%; width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface); border: 5px solid var(--ink); transform: translate(-50%, -50%);
  transition: left .5s cubic-bezier(.2, .9, .3, 1.2); box-shadow: var(--shadow-sm);
}
.bmi-scale__labels { display: grid; grid-template-columns: 18fr 37fr 23fr 22fr; font-size: .78rem; font-weight: 800; color: var(--ink-soft); }
.bmi-scale__labels span:not(:first-child) { text-align: center; }

.disclaimer { font-size: .9rem; color: var(--ink-soft); }

/* ---------- Strava ---------- */
.feature-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.feature-card__top { padding: 28px 28px 20px; position: relative; }
.feature-card__top .age { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; opacity: .85; }
.feature-card__top h3 { font-size: 1.55rem; margin: 2px 0 0; }
.feature-card__body { padding: 0 28px 28px; display: flex; flex-direction: column; flex: 1; }
.feature-card__body ul { margin-bottom: 18px; }
.feature-card .btn { margin-top: auto; align-self: flex-start; }
.feature-card__icon { position: absolute; right: 22px; top: 22px; opacity: .85; }
.feature-card__icon svg { width: 40px; height: 40px; }

/* ---------- Patička ---------- */
.site-footer { background: var(--ink); color: #dfe5ef; padding: 40px 0 28px; margin-top: 110px; position: relative; }
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -109px; height: 110px;
  background: url("../img/krajina-paticka.svg") center bottom / cover no-repeat;
}
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1.25rem; margin-bottom: 12px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid li a { text-decoration: none; color: #dfe5ef; }
.footer-grid li a:hover { color: #fff; text-decoration: underline; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.footer-brand img { width: 46px; height: 46px; }
.footer-brand span { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: #fff; line-height: 1.1; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 36px; padding-top: 20px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .9rem; color: #aab4c6;
}
.footer-bottom a { color: #aab4c6; }
.emergency { background: rgba(255, 255, 255, .08); border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 14px; }
.emergency strong { color: #ffb3a6; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.muted { color: var(--ink-soft); }
.stack > * + * { margin-top: 22px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: stretch; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Pojišťovny ---------- */
.insurers { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.insurers li {
  margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  height: 84px; display: grid; place-items: center; padding: 12px; text-align: center;
}
.insurers img { max-height: 46px; max-width: 100%; width: auto; }
.insurers .ins-text { display: none; line-height: 1.25; }
.insurers .ins-text b { display: block; font-family: var(--font-head); font-size: 1.25rem; color: var(--primary-dark); }
.insurers .ins-text small { font-size: .78rem; color: var(--ink-soft); font-weight: 700; }
.insurers li.no-logo img { display: none; }
.insurers li.no-logo .ins-text { display: block; }
@media (max-width: 480px) { .insurers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media print {
  .site-header, .site-footer, .notice-bar, .toc, .hero__art, .btn, .map { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .card, .tile, .doc { box-shadow: none; border: 1px solid #ccc; }
}

.vacation-list li > svg { width: 22px; height: 22px; flex: 0 0 auto; color: #8a6200; }
.vacation-list li.is-now > svg { color: var(--danger); }
.notice .notice__more { margin-left: auto; font-weight: 800; padding-left: 12px; }

@media (max-width: 860px) {
  .hero__art { order: 0; max-width: 300px; }
}
@media (max-width: 640px) {
  .tile { padding: 14px 16px; }
  .tile h3 { font-size: 1.08rem; }
  .grid--3 { gap: 10px; }
  .doc { grid-template-columns: 1fr; }
  .doc > .icon-bubble { display: none; }
}

@media (max-width: 640px) { .page-hero { padding-bottom: 90px; } }
