/* Směr A — Klidná péče
   Tokeny: barvy, typografie, spacing, radius. */
:root {
  /* barvy */
  --paper: #F3F1EB;      /* lomená bílá */
  --paper-2: #F8F7F2;    /* světlejší plocha karet */
  --sand: #EAE2D4;       /* písková */
  --mist: #DFE5D8;       /* šalvějová mlha */
  --sage: #A9B8A3;       /* šalvěj, jen dekor */
  --forest: #3D5243;     /* hluboká šalvěj — tlačítka, akcent */
  --forest-2: #34473A;   /* hover */
  --ink: #252A24;        /* text */
  --muted: #596055;      /* sekundární text */
  --line: rgba(37, 42, 36, .14);
  --line-soft: rgba(37, 42, 36, .08);

  /* typografie */
  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --soft: "SOFT" 100, "WONK" 0;

  --t-hero: clamp(2.75rem, 1.4rem + 4.6vw, 5.4rem);
  --t-h2: clamp(2rem, 1.35rem + 2.1vw, 3.25rem);
  --t-h3: clamp(1.3rem, 1.1rem + .6vw, 1.6rem);
  --t-lead: clamp(1.075rem, 1rem + .3vw, 1.25rem);
  --t-body: 1.0625rem;
  --t-small: .9375rem;

  /* spacing (8px grid) */
  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem; --s5: 3rem; --s6: 4rem; --s7: 6rem; --s8: 8rem;
  --section: clamp(4.5rem, 3rem + 6vw, 9rem);
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --max: 1240px;

  /* tvar: jeden radius pro plochy, pilulka pro ovládací prvky, oblouk pro fotky */
  --r: 28px;
  --pill: 999px;
  --header-h: 80px;
}

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--forest); color: #fff; padding: .75rem 1rem; border-radius: var(--pill); }
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* typografie */
.h2, .hero__title, .praise__num, .step__num, .doctor__name, .acute__title, .kids__title, .logo__name, .service__name, .praise__title, .insurers__title {
  font-family: var(--f-display);
  font-variation-settings: var(--soft);
  font-optical-sizing: auto;
}
.h2 { font-size: var(--t-h2); line-height: 1.08; font-weight: 400; letter-spacing: -.015em; text-wrap: balance; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s4); align-items: end; margin-bottom: var(--s6); }
.section-head__lead { color: var(--muted); font-size: var(--t-lead); line-height: 1.55; max-width: 34em; text-wrap: pretty; }

.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico--lg { width: 28px; height: 28px; }

.link { font-weight: 600; color: var(--forest); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; text-decoration-color: rgba(61, 82, 67, .4); }
.link:hover { text-decoration-color: currentColor; }

/* tlačítka */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.5rem;
  border-radius: var(--pill); border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--f-text); text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn--sm { min-height: 44px; padding: .6rem 1.25rem; font-size: .9375rem; }
.btn--lg { min-height: 56px; padding: 1rem 1.9rem; font-size: 1.0625rem; }
.btn--primary { background: var(--forest); color: #fff; }
.btn--primary:hover { background: var(--forest-2); }
.btn--ghost { border-color: rgba(37, 42, 36, .28); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--forest); background: rgba(61, 82, 67, .06); }
.btn--light { background: var(--paper); color: var(--forest); }
.btn--light:hover { background: #fff; }

/* ===== header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 241, 235, .88);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.header.is-scrolled { border-bottom-color: var(--line-soft); }
.header__inner { display: flex; align-items: center; gap: var(--s4); min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.logo__mark svg { display: block; }
.logo__ts { font-family: var(--f-display); font-variation-settings: var(--soft); font-size: 17px; font-weight: 500; fill: var(--forest); letter-spacing: .02em; }
.logo__ts--light { fill: var(--paper); }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.logo__name { font-size: 1.1875rem; font-weight: 500; letter-spacing: -.005em; }
.logo__sub { font-size: .8125rem; color: var(--muted); letter-spacing: .01em; }
.nav { display: flex; gap: clamp(1rem, 2vw, 2rem); margin-left: auto; }
.nav a { text-decoration: none; font-size: .9375rem; font-weight: 500; padding: .6rem 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .35rem; height: 1.5px; background: var(--forest); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:hover::after { transform: scaleX(1); }
.header__actions { display: flex; align-items: center; gap: 1.25rem; }
.header__tel { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; min-height: 44px; }
.header__tel .ico { color: var(--forest); }

.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: .5rem 1rem; border-radius: var(--pill); border: 1.5px solid var(--line); font-weight: 600; font-size: .9375rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu__bars { width: 18px; height: 10px; border-top: 1.6px solid var(--ink); border-bottom: 1.6px solid var(--ink); }
.menu[open] .menu__bars { height: 1.6px; border-bottom: 0; transform: rotate(0); }
.menu__panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(320px, calc(100vw - 2.5rem));
  background: var(--paper-2); border-radius: var(--r); padding: 1rem; box-shadow: 0 24px 60px -24px rgba(37, 42, 36, .35);
  display: grid; gap: .25rem;
}
.menu__panel a:not(.btn) { text-decoration: none; font-weight: 500; padding: .8rem .75rem; border-radius: 14px; font-size: 1.0625rem; }
.menu__panel a:not(.btn):hover { background: var(--mist); }
.menu__panel .btn { margin-top: .5rem; }

/* ===== hero ===== */
.hero { padding-block: clamp(2.5rem, 1rem + 4vw, 5rem) clamp(4rem, 2rem + 5vw, 7rem); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(2rem, 5vw, 6rem); align-items: center; }
.hero__text { max-width: 640px; }
.status {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 40px; padding: .45rem 1rem .45rem .85rem;
  border-radius: var(--pill); border: 0; background: var(--mist); color: var(--forest);
  font: 600 .9375rem/1.2 var(--f-text); cursor: pointer;
}
.status__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--forest); box-shadow: 0 0 0 4px rgba(61, 82, 67, .16); }
.status[data-open="false"] { background: var(--sand); color: var(--ink); }
.status[data-open="false"] .status__dot { background: var(--muted); box-shadow: 0 0 0 4px rgba(89, 96, 85, .16); }
.hero__title { margin-top: var(--s4); font-size: var(--t-hero); line-height: 1.02; font-weight: 350; letter-spacing: -.025em; text-wrap: balance; }
.hero__lead { margin-top: var(--s4); font-size: var(--t-lead); line-height: 1.6; color: var(--muted); max-width: 33em; text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--s5); }
.rating { display: inline-flex; align-items: center; gap: .7rem; margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--line); text-decoration: none; min-height: 44px; }
.rating__stars { display: inline-flex; gap: 2px; }
.rating__stars svg { width: 17px; height: 17px; fill: var(--forest); }
.rating__num { font-weight: 700; font-variant-numeric: tabular-nums; }
.rating__txt { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .3em; }
.rating:hover .rating__txt { color: var(--ink); text-decoration-color: currentColor; }

.hero__media { position: relative; justify-self: end; width: 100%; max-width: 500px; }
.hero__blob {
  position: absolute; inset: 8% -14% -6% -10%; z-index: 0;
  background: radial-gradient(closest-side, rgba(169, 184, 163, .55), rgba(169, 184, 163, 0));
  border-radius: 50%;
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.06); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero__blob { animation: none; } .dock { transition: none !important; } }

.arch { position: relative; overflow: hidden; background: var(--sand); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch--hero { z-index: 1; aspect-ratio: 5 / 6.2; border-radius: 999px 999px var(--r) var(--r); }
.arch--hero img { object-position: 58% 50%; }
.hero__note {
  position: absolute; z-index: 2; left: -2.25rem; bottom: 2.5rem;
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--paper-2); color: var(--ink); padding: .85rem 1.15rem; border-radius: var(--pill);
  font-weight: 600; font-size: .9375rem; box-shadow: 0 18px 40px -20px rgba(37, 42, 36, .4);
}
.hero__note .ico { color: var(--forest); }

/* ===== praise ===== */
.praise { background: var(--sand); padding-block: var(--section); border-radius: var(--r); margin-inline: clamp(0px, 1.5vw, 1.5rem); }
.praise__inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.praise__head { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s5); }
.praise__foot { display: grid; gap: var(--s3); justify-items: start; }
.praise__score { display: flex; align-items: baseline; gap: 1rem; }
.praise__num { font-size: clamp(4.5rem, 3rem + 5vw, 8rem); line-height: .9; font-weight: 300; letter-spacing: -.04em; color: var(--forest); }
.praise__of { color: var(--muted); max-width: 12em; line-height: 1.35; font-size: 1.0625rem; }
.praise__list { border-top: 1px solid var(--line); }
.praise__item { padding-block: var(--s4); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: var(--s4); align-items: baseline; }
.praise__title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); line-height: 1.15; font-weight: 400; letter-spacing: -.01em; text-wrap: balance; }
.praise__item p { color: var(--muted); text-wrap: pretty; }
.quotes { grid-column: 1 / -1; margin-top: clamp(1rem, 2vw, 2rem); }
.quotes__title { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s3); }
.quotes__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.quote { height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s3); padding: clamp(1.5rem, 2.4vw, 2rem); border-radius: var(--r); background: var(--paper-2); }
.quote blockquote p { font-family: var(--f-display); font-variation-settings: var(--soft); font-style: italic; font-weight: 400; font-size: clamp(1.1875rem, 1.05rem + .45vw, 1.4375rem); line-height: 1.4; color: var(--ink); text-wrap: pretty; text-indent: -.42em; }
.quote figcaption { display: flex; align-items: center; gap: .75rem; font-weight: 600; font-size: var(--t-small); color: var(--forest); }
.quote figcaption::before { content: ""; width: 24px; height: 1.5px; background: var(--sage); }

/* ===== služby ===== */
.services { padding-block: var(--section); }
.services__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 5rem); border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: minmax(0, 1fr); gap: .35rem; padding: var(--s3) 0 var(--s3); border-bottom: 1px solid var(--line); }
.service__name { font-size: var(--t-h3); line-height: 1.2; font-weight: 400; }
.service__name a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: var(--sage); }
.service p { color: var(--muted); font-size: var(--t-small); }

/* ===== proč k nám ===== */
.why { padding-bottom: var(--section); }
.why__inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.why__media img { border-radius: var(--r); aspect-ratio: 1430 / 690; object-fit: cover; width: 100%; }
.why__media figcaption { margin-top: var(--s2); color: var(--muted); font-size: var(--t-small); max-width: 34em; padding-left: 1rem; border-left: 2px solid var(--sage); }
.why__list { margin-top: var(--s5); display: grid; gap: var(--s4); }
.why__list li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 1rem; align-items: start; }
.why__list .ico { width: 48px; height: 48px; padding: 10px; border-radius: 50%; background: var(--mist); color: var(--forest); }
.why__list h3 { font-size: 1.125rem; font-weight: 650; line-height: 1.3; margin-bottom: .2rem; }
.why__list p { color: var(--muted); }

/* ===== první návštěva ===== */
.visit { background: var(--mist); padding-block: var(--section); border-radius: var(--r); margin-inline: clamp(0px, 1.5vw, 1.5rem); }
.visit__head { text-align: center; display: grid; justify-items: center; gap: var(--s3); margin-bottom: var(--s6); }
.visit__head .section-head__lead { max-width: 30em; text-wrap: balance; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2rem); counter-reset: step; }
.steps::before {
  content: ""; position: absolute; z-index: 0; top: 24px; left: 12.5%; right: 12.5%; height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24' viewBox='0 0 120 24'%3E%3Cpath d='M0 12 C 30 2, 30 2, 60 12 S 90 22, 120 12' fill='none' stroke='%233D5243' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x left center / 120px 24px;
  opacity: .4;
}
.step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s3); }
.step__num {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper-2); color: var(--forest); font-size: 1.875rem; font-weight: 400; line-height: 1;
  box-shadow: 0 0 0 8px var(--mist), 0 0 0 9px rgba(61, 82, 67, .22);
}
.step__body { display: flex; flex-direction: column; gap: .6rem; max-width: 17rem; flex: 1; }
.step__title { font-size: 1.1875rem; font-weight: 650; line-height: 1.3; min-height: 2.6em; display: flex; align-items: flex-end; justify-content: center; }
.step__body p { color: var(--muted); font-size: var(--t-small); }
.step__body a { font-weight: 600; color: var(--ink); white-space: nowrap; }
.step__calm {
  margin-top: auto; padding: 1rem 1.15rem; border-radius: 20px; background: var(--paper-2);
  font-family: var(--f-display); font-variation-settings: var(--soft); font-style: italic;
  font-size: 1.0625rem !important; line-height: 1.45; color: var(--forest) !important; text-wrap: pretty;
}
.visit__cta { margin-top: var(--s6); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.5rem; }
.visit__or { color: var(--muted); }
.visit__or a { color: var(--ink); font-weight: 600; white-space: nowrap; }

/* ===== akutní + děti ===== */
.care { padding-block: var(--section) 0; }
.care__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(1rem, 2vw, 1.5rem); }
.acute { background: var(--forest); color: var(--paper); border-radius: var(--r); padding: clamp(2rem, 4vw, 3.5rem); display: grid; gap: var(--s3); justify-items: start; align-content: start; }
.acute__title { font-size: var(--t-h2); line-height: 1.05; font-weight: 400; letter-spacing: -.015em; }
.acute__text { font-size: var(--t-lead); line-height: 1.5; max-width: 26em; }
.acute .btn { margin-top: var(--s1); }
.acute__hours { font-size: var(--t-small); color: rgba(243, 241, 235, .82); }
.kids { background: var(--sand); border-radius: var(--r); padding: clamp(2rem, 4vw, 3.5rem); display: grid; gap: var(--s2); align-content: start; justify-items: start; }
.kids__title { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.25rem); line-height: 1.1; font-weight: 400; margin-bottom: var(--s1); }
.kids p { color: var(--muted); }
.kids .link { margin-top: var(--s1); }

/* ===== ceník ===== */
.pricing { padding-block: var(--section); }
.pricing__inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.pricing__main .section-head__lead { margin-top: var(--s3); }
.price { margin-top: var(--s5); font-variant-numeric: tabular-nums; }
.price thead th { text-align: left; font-size: .8125rem; font-weight: 600; color: var(--muted); padding: 0 0 .75rem; letter-spacing: .02em; }
.price thead th:last-child { text-align: right; }
.price tbody th, .price td { padding: 1.15rem 0; border-top: 1px solid var(--line); vertical-align: baseline; }
.price tbody tr:last-child th, .price tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.price tbody th { text-align: left; font-weight: 500; font-size: 1.0625rem; padding-right: 1.5rem; }
.price td { text-align: right; white-space: nowrap; font-weight: 600; }
.price__ins { color: var(--forest); font-weight: 600; }
.insurers { background: var(--paper-2); border-radius: var(--r); padding: clamp(1.75rem, 3vw, 2.5rem); display: grid; gap: var(--s3); margin-top: calc(var(--t-h2) * 1.1 + var(--s3)); }
.insurers__title { font-size: 1.5rem; font-weight: 400; line-height: 1.2; }
.insurers__list { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); }
.insurers__list li { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; padding: .8rem 0; border-bottom: 1px solid var(--line); font-weight: 650; }
.insurers__list small { font-weight: 500; color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.insurers__list small::before { content: "kód "; }
.insurers p { color: var(--muted); font-size: var(--t-small); }

/* ===== tým ===== */
.team { padding-bottom: var(--section); }
.team__inner { display: grid; gap: var(--s5); }
.doctor { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.arch--portrait.ph { aspect-ratio: 4 / 5; border-radius: 999px 999px var(--r) var(--r); max-width: 420px; width: 100%; grid-template-rows: 1fr auto; place-items: center; }
.ph__mono { font-family: var(--f-display); font-variation-settings: var(--soft); font-size: clamp(4rem, 3rem + 4vw, 7rem); font-weight: 300; color: rgba(61, 82, 67, .22); letter-spacing: .02em; }
.ph {
  display: grid; place-items: end start; padding: 1.25rem;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 60%),
    repeating-linear-gradient(135deg, rgba(37, 42, 36, .035) 0 2px, transparent 2px 9px),
    var(--sand);
}
.ph__label { font-size: .8125rem; color: var(--muted); background: rgba(248, 247, 242, .8); padding: .35rem .7rem; border-radius: var(--pill); }
.arch--portrait .ph__label { margin-bottom: .5rem; }
.arch--portrait .ph__mono { align-self: end; }
.doctor__text { display: grid; gap: var(--s2); max-width: 44rem; }
.doctor__text .h2 { margin-bottom: var(--s3); }
.doctor__name { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.25rem); line-height: 1.1; font-weight: 400; }
.doctor__role { color: var(--forest); font-weight: 600; margin-top: -.5rem; }
.doctor__text p:not(.doctor__role) { color: var(--muted); }
.crew { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: var(--s3); }
.crew__item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 1rem; align-items: center; padding: 1rem 1.25rem 1rem 1rem; border-radius: var(--r); border: 1px solid var(--line); }
.crew__ph { width: 72px; height: 72px; border-radius: 50%; padding: 0; place-items: center; }
.crew__ph .ph__label { font-size: .75rem; padding: .2rem .5rem; }
.crew__item h3 { font-size: 1.0625rem; font-weight: 650; line-height: 1.3; }
.crew__item p { color: var(--muted); font-size: var(--t-small); line-height: 1.45; margin-top: .15rem; }

/* ===== kontakt ===== */
.contact { background: var(--sand); padding-block: var(--section); border-radius: var(--r) var(--r) 0 0; }
.contact__head { display: grid; gap: var(--s3); margin-bottom: var(--s5); max-width: 40rem; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.form { background: var(--paper-2); border-radius: var(--r); padding: clamp(1.5rem, 3.5vw, 3rem); display: grid; gap: 1.25rem; position: relative; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.field { display: grid; gap: .45rem; }
.field__label { font-weight: 600; font-size: .9375rem; }
.field__label em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: .8rem 1.1rem; border-radius: 16px;
  border: 1.5px solid rgba(37, 42, 36, .2); background: #fff; color: var(--ink);
  font: 400 1rem/1.4 var(--f-text); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.75rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23252A24' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 5 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.1rem center; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 4px rgba(61, 82, 67, .16); }
.field textarea::placeholder { color: #676d64; }
.field.is-invalid input, .field.is-invalid select { border-color: #9a3b2e; }
.field__err { color: #8a3428; font-size: .875rem; font-weight: 500; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: .5rem; }
.form__note { color: var(--muted); font-size: var(--t-small); max-width: 22rem; }
.form__note a { color: var(--ink); font-weight: 600; white-space: nowrap; }
.form__ok { padding: 1.5rem; border-radius: 20px; background: var(--mist); }
.form__ok h3 { font-family: var(--f-display); font-variation-settings: var(--soft); font-size: 1.75rem; font-weight: 400; color: var(--forest); }
.form__ok p { color: var(--muted); margin-top: .35rem; }

.info { display: grid; gap: var(--s4); }
.info__block { display: grid; gap: var(--s2); }
.info__title { font-size: 1rem; font-weight: 700; letter-spacing: .005em; }
.hours { font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: .6rem 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.hours th { text-align: left; }
.hours td { text-align: right; }
.hours__off th, .hours__off td { color: var(--muted); }
.info__small { font-size: var(--t-small); color: var(--muted); }
.info__big { font-family: var(--f-display); font-variation-settings: var(--soft); font-size: 2rem; line-height: 1; }
.info__big a { text-decoration: none; color: var(--forest); font-variant-numeric: tabular-nums; }
.info a { text-underline-offset: .25em; }

.place { margin-top: clamp(1.5rem, 3vw, 2.5rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .5fr); gap: clamp(1rem, 2vw, 1.5rem); align-items: stretch; }
.map { background: var(--paper-2); border-radius: var(--r); padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 1.5rem; align-items: center; }
.map__art { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.map__ring { position: absolute; border-radius: 50%; border: 1.5px solid rgba(61, 82, 67, .25); }
.map__ring--1 { inset: 0; background: var(--mist); }
.map__ring--2 { inset: 22px; border-color: rgba(61, 82, 67, .35); background: var(--paper-2); }
.map__pin { position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--forest); display: grid; place-items: center; }
.map__pin svg { width: 22px; height: 22px; fill: none; stroke: var(--paper); stroke-width: 1.6; }
.map__text { display: grid; gap: .75rem; justify-items: start; }
.map__text address { line-height: 1.5; }
.route { background: var(--paper-2); border-radius: var(--r); padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: var(--s3); }
.route__item { display: grid; gap: .35rem; }
.route p { color: var(--muted); font-size: var(--t-small); }
.arch--hall { border-radius: 999px 999px var(--r) var(--r); min-height: 260px; }
.arch--hall img { position: absolute; inset: 0; object-position: 50% 60%; }

/* ===== footer ===== */
.footer { background: var(--ink); color: rgba(243, 241, 235, .82); padding-block: var(--s6) var(--s4); }
.footer__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, .8fr); gap: var(--s5); padding-bottom: var(--s5); }
.logo--light { color: var(--paper); }
.logo--light .logo__sub { color: rgba(243, 241, 235, .7); }
.footer__brand { display: grid; gap: var(--s3); align-content: start; }
.footer__brand p { font-size: var(--t-small); }
.footer__nav, .footer__contact { display: grid; gap: .35rem; align-content: start; }
.footer a { text-decoration: none; padding: .3rem 0; width: fit-content; }
.footer a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: .25em; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: var(--s3); font-size: .875rem; color: rgba(243, 241, 235, .7); background: linear-gradient(rgba(243, 241, 235, .14), rgba(243, 241, 235, .14)) no-repeat center top / calc(100% - 2 * var(--gutter)) 1px; }

.acute :focus-visible, .footer :focus-visible { outline-color: var(--paper); }

/* mobilní lišta */
.dock { display: none; }

/* ===== responzivita ===== */
@media (max-width: 1180px) {
  .nav { gap: 1.1rem; }
  .header__tel-num { display: none; }
  .header__tel { width: 44px; justify-content: center; border-radius: 50%; border: 1.5px solid var(--line); }
  .place { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .arch--hall { display: none; }
  .crew { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1023px) {
  :root { --header-h: 72px; }
  .nav { display: none; }
  .header__actions { margin-left: auto; gap: .6rem; }

  .header__inner { gap: .6rem; }
  .menu { display: block; }
  .hero__cta .btn { flex: 1 1 auto; }
  .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 2rem; }
  .hero__note { left: -1rem; }
  .praise__inner { grid-template-columns: 1fr; }
  .praise__head { position: static; }
  .why__inner, .doctor { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s5); }
  .steps::before { display: none; }
  .care__inner, .pricing__inner, .contact__grid { grid-template-columns: 1fr; }
  .insurers { margin-top: 0; }
  .insurers__list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; border-top: 0; }
  .insurers__list li { flex-direction: column; align-items: flex-start; gap: .1rem; padding: .8rem 1rem; border-radius: 16px; border-bottom: 0; background: var(--mist); }
  .quotes__list { grid-template-columns: minmax(0, 1fr); }
  .quote { gap: var(--s2); }
  .info { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .hero { padding-top: 1.5rem; }
  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__media { justify-self: center; max-width: 420px; }
  .hero__note { left: 50%; transform: translateX(-50%); bottom: -1.25rem; white-space: nowrap; }
  .section-head { grid-template-columns: 1fr; gap: var(--s3); margin-bottom: var(--s5); }
  .praise, .visit { margin-inline: 0; }
  .praise__item { grid-template-columns: 1fr; gap: .5rem; padding-block: var(--s3); }
  .services__list { grid-template-columns: 1fr; }
  .why__inner, .doctor { grid-template-columns: 1fr; }
  .why__media img { aspect-ratio: 3 / 2; object-position: 64% 50%; }
  .doctor .arch--portrait.ph { max-width: 260px; }
  .price tbody th { font-size: 1rem; }
  .price tbody th, .price td { padding: .95rem 0; }
  .visit { margin-inline: 0; border-radius: var(--r); }
  .visit__head { text-align: left; justify-items: start; }
  .steps { grid-template-columns: 1fr; row-gap: var(--s4); }
  .steps::before { display: none; }
  .step { display: grid; grid-template-columns: 56px minmax(0, 1fr); justify-items: start; text-align: left; gap: 1.1rem; align-items: start; }
  .step:not(:last-child)::after { content: ""; position: absolute; left: 27px; top: 64px; bottom: calc(-1 * var(--s4) + 8px); width: 2px; background: repeating-linear-gradient(180deg, rgba(61, 82, 67, .45) 0 2px, transparent 2px 9px); }
  .step__num { width: 56px; height: 56px; font-size: 1.5rem; box-shadow: 0 0 0 5px var(--mist), 0 0 0 6px rgba(61, 82, 67, .22); }
  .step__body { max-width: none; padding-top: .7rem; }
  .step__title { min-height: 0; justify-content: flex-start; }
  .step__calm { margin-top: .4rem; }
  .visit__cta { justify-content: flex-start; }
  .visit__cta .btn { width: 100%; }
  .crew { grid-template-columns: 1fr; }
  .insurers__list { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); }
  .insurers__list li { flex-direction: row; align-items: baseline; padding: .8rem 0; border-radius: 0; border-bottom: 1px solid var(--line); background: none; }
  .form__row, .info, .place { grid-template-columns: 1fr; }
  .map { grid-template-columns: 1fr; gap: 1.25rem; }
  .map__art { width: 72px; height: 72px; }
  .map__ring--2 { inset: 12px; }
  .map__pin { width: 32px; height: 32px; }
  .map__pin svg { width: 18px; height: 18px; }
  .form__foot .btn { width: 100%; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: var(--s4); }
  body { padding-bottom: 84px; }
  .header__tel, .header__actions .btn { display: none; }
  .dock {
    display: grid; grid-template-columns: 1fr 1.3fr; gap: .6rem;
    position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
    padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
    background: rgba(243, 241, 235, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line-soft);
  }
  .dock .btn { min-height: 52px; }
  .dock { transition: transform .3s ease, opacity .3s ease, visibility .3s; }
  .dock.is-away { transform: translateY(110%); opacity: 0; visibility: hidden; pointer-events: none; }
  .footer a { min-height: 44px; display: inline-flex; align-items: center; padding: 0; }
  .footer__nav, .footer__contact { gap: 0; }
  .dock .btn--ghost { background: var(--paper-2); }
}
@media (max-width: 420px) {
  .logo__name { font-size: 1.0625rem; }
  .logo__sub { font-size: .75rem; }
  .menu__label { display: none; }
  .menu summary { padding: .5rem .85rem; }
  .hero__cta .btn { width: 100%; }
  .praise__score { flex-direction: column; gap: .5rem; }
}
.why .h2 { font-size: clamp(2rem, 1.4rem + 1.6vw, 2.75rem); }
@media (max-width: 420px) { .footer__inner { grid-template-columns: 1fr; } }
