/* ===========================================================
   ORTHOMA — varianta 1 "Bílý prostor"
   Minimalismus postavený na mřížce a prázdnu, ne na dekoraci.
   Čistě bílá plocha, grotesk, jediná akcentní barva z loga.
   =========================================================== */

:root {
  --white: #ffffff;
  --ink: #0e1213;
  --soft: #566768;
  --faint: #96a5a5;
  --line: #e7ecec;
  --line-dark: #c9d4d4;
  --wash: #f6f9f9;
  --brand: #008386;
  --brand-light: #a9d8d9;

  --sans: "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;

  --page: 1320px;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --gap: clamp(1.25rem, 2vw, 2rem);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

/* --- mřížka ---------------------------------------------- */

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}

/* pozice ve dvanáctisloupcové mřížce */
.c1-3  { grid-column: 1 / 4; }
.c1-4  { grid-column: 1 / 5; }
.c1-5  { grid-column: 1 / 6; }
.c1-6  { grid-column: 1 / 7; }
.c1-7  { grid-column: 1 / 8; }
.c1-8  { grid-column: 1 / 9; }
.c1-12 { grid-column: 1 / -1; }
.c4-9  { grid-column: 4 / 10; }
.c4-12 { grid-column: 4 / -1; }
.c5-12 { grid-column: 5 / -1; }
.c7-12 { grid-column: 7 / -1; }
.c9-12 { grid-column: 9 / -1; }

section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section-line { border-top: 1px solid var(--line); }

/* --- typografie ------------------------------------------ */

h1, h2, h3, h4 { margin: 0; font-weight: 500; }

.display {
  font-size: clamp(2.6rem, 6.6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.title {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.subtitle {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 1.2rem;
}
.label-brand { color: var(--brand); }

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.5;
  color: var(--soft);
  letter-spacing: -0.01em;
}

.body-text { color: var(--soft); max-width: 68ch; }
.body-text strong { color: var(--ink); font-weight: 500; }

.small { font-size: 0.86rem; line-height: 1.55; color: var(--soft); }
.micro { font-size: 0.76rem; line-height: 1.5; color: var(--faint); }

/* --- odkazy ---------------------------------------------- */

.a-line {
  text-decoration: none;
  background-image: linear-gradient(var(--ink), var(--ink));
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 1px;
  transition: background-size 0.3s ease, color 0.2s ease;
}
.a-line:hover { color: var(--brand); background-image: linear-gradient(var(--brand), var(--brand)); }

.a-next {
  display: inline-block;
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 0.4rem;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.a-next::after { content: " →"; }
.a-next:hover { color: var(--brand); border-color: var(--brand); }

.btn {
  display: inline-block;
  text-decoration: none;
  font: inherit;
  font-size: 0.88rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  padding: 0.95rem 1.8rem;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.btn:hover { background: var(--brand); border-color: var(--brand); }

.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-dark);
}
.btn-line:hover { background: transparent; color: var(--brand); border-color: var(--brand); }

/* --- hlavička -------------------------------------------- */

.head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 84px;
}
.head img { height: 34px; width: auto; }

.nav {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2.2rem);
  align-items: center;
}
.nav a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--soft);
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav .phone {
  color: var(--ink);
  border-left: 1px solid var(--line);
  padding-left: clamp(1rem, 2.4vw, 2.2rem);
}

/* --- hero ------------------------------------------------ */

.hero { padding: clamp(3.5rem, 9vw, 8rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero .display { margin-bottom: 0; }
.hero-side { align-self: end; }

/* celoplošná fotografie */
.cover {
  width: 100%;
  height: clamp(260px, 34vw, 440px);
  object-fit: cover;
  object-position: 28% center;
  background: var(--wash);
}
.cover-sm { height: clamp(200px, 24vw, 300px); }
/* RTG a snímky se zajímavým motivem vpravo */
.cover-right { object-position: 76% center; }

figure { margin: 0; }
figcaption {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: var(--faint);
}

/* --- čísla ----------------------------------------------- */

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.fact { border-top: 1px solid var(--ink); padding-top: 1.1rem; }
.fact b {
  display: block;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.fact span { font-size: 0.86rem; color: var(--soft); }

/* --- výčet služeb ---------------------------------------- */

.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2rem, 4vw, 3.5rem) var(--gap); }
.service { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.service h3 { font-size: 1.15rem; letter-spacing: -0.015em; margin-bottom: 0.5rem; }
.service p { color: var(--soft); font-size: 0.95rem; margin: 0; }

/* --- pracoviště ------------------------------------------ */

.places { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.place { text-decoration: none; display: block; }
/* Fotky budov jsou čtvercové snímky z ulice — necháváme je celé
   (contain) v nižším rámu, aby se neořezávala fasáda. */
.place .shot {
  width: auto;
  max-width: 100%;
  height: clamp(150px, 17vw, 190px);
  object-fit: contain;
  object-position: left center;
  transition: opacity 0.3s ease;
}
.place:hover .shot { opacity: 0.86; }
.place .meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-top: 1px solid var(--ink);
  margin-top: 1rem;
  padding-top: 0.9rem;
}
.place h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
.place .where { font-size: 0.86rem; color: var(--soft); margin-top: 0.3rem; }
.place .go { font-size: 0.78rem; color: var(--faint); white-space: nowrap; }
.place:hover .go { color: var(--brand); }

/* jednoduché řádkové odkazy (externí pracoviště, odkazy) */
.rows { border-top: 1px solid var(--ink); }
.rows a, .rows div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.rows a:hover { color: var(--brand); }
.rows .note { font-size: 0.86rem; color: var(--faint); }
.rows a:hover .note { color: var(--brand); }

/* --- kontaktní blok / detail ordinace -------------------- */

.detail { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }

.info { border-top: 1px solid var(--ink); }
.info > div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1.5rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
/* v úzkém sloupci se popisek staví nad hodnotu */
.info-stack > div { grid-template-columns: 1fr; gap: 0.25rem; }
.info-stack dt { margin-bottom: 0.1rem; }
.info dt { font-size: 0.78rem; color: var(--faint); }
.info dd { margin: 0; font-size: 0.95rem; }
.info a { text-decoration: none; border-bottom: 1px solid var(--line-dark); }
.info a:hover { color: var(--brand); border-color: var(--brand); }

/* --- ordinační hodiny ------------------------------------ */

.hours { width: 100%; border-collapse: collapse; }
.hours caption {
  text-align: left;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  padding-bottom: 1rem;
}
.hours th, .hours td {
  text-align: left;
  vertical-align: baseline;
  padding: 0.85rem 1rem 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}
.hours tbody th {
  font-size: 0.95rem;
  width: 7rem;
  white-space: nowrap;
}
.hours td.time { font-size: 0.95rem; white-space: nowrap; width: 40%; font-variant-numeric: tabular-nums; }
.hours td.who { font-size: 0.95rem; color: var(--soft); }
.hours tr:first-child th, .hours tr:first-child td { border-top: 1px solid var(--ink); }
.hours tr.off th, .hours tr.off td { color: var(--faint); }
.mark {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-left: 0.5rem;
}

/* --- mapa ------------------------------------------------ */

.map {
  width: 100%;
  height: clamp(240px, 30vw, 340px);
  background: var(--wash);
  border: 1px solid var(--line);
}
.map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* --- lékaři ---------------------------------------------- */

.doctors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 var(--gap); }
.doctor {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 1.6rem;
}
.doctor h3 { font-size: 1.05rem; letter-spacing: -0.015em; margin-bottom: 0.3rem; }
.doctor .role { font-size: 0.86rem; color: var(--soft); margin: 0 0 0.6rem; }
.doctor .at { font-size: 0.78rem; color: var(--faint); }

.lead-doctor { border-top: 1px solid var(--ink); padding-top: 1.6rem; }
.lead-doctor h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.03em; margin-bottom: 0.4rem; }
.lead-doctor .role { color: var(--soft); margin-bottom: 1.4rem; }
.lead-doctor dl { margin: 0; display: grid; gap: 1rem; }
.lead-doctor dt { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.3rem; }
.lead-doctor dd { margin: 0; font-size: 0.92rem; color: var(--soft); }

/* --- aktuality ------------------------------------------- */

.news { border-top: 1px solid var(--ink); }
.news article {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.news time { font-size: 0.82rem; color: var(--faint); white-space: nowrap; }
.news h3 { font-size: 1.1rem; letter-spacing: -0.015em; margin-bottom: 0.3rem; }
.news p { font-size: 0.95rem; color: var(--soft); margin: 0; max-width: 70ch; }
.news .now h3 { color: var(--brand); }

/* --- telefon --------------------------------------------- */

.phone-xl {
  display: inline-block;
  text-decoration: none;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  transition: color 0.25s ease;
}
.phone-xl:hover { color: var(--brand); }

/* --- formulář -------------------------------------------- */

.form { display: grid; gap: 1.6rem; }
.field { display: grid; gap: 0.45rem; }
.field label { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.field input, .field textarea, .field select {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  padding: 0.55rem 0;
  border-radius: 0;
  transition: border-color 0.25s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--brand);
}
.field textarea { resize: vertical; min-height: 7rem; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.86rem; color: var(--soft); }
.check input { margin-top: 0.3rem; }

/* --- patička --------------------------------------------- */

.foot { border-top: 1px solid var(--ink); padding: clamp(2.5rem, 5vw, 4rem) 0 2.5rem; }
.foot h4 {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 1rem;
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--brand); }
.foot .big { font-size: 1.3rem; letter-spacing: -0.025em; display: inline-block; margin-bottom: 0.4rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; font-size: 0.92rem; color: var(--soft); }
.foot-end {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--faint);
}

/* --- responzivita ---------------------------------------- */

@media (max-width: 1000px) {
  .doctors { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
}

@media (max-width: 760px) {
  .grid > [class^="c"] { grid-column: 1 / -1; }
  .services, .places, .detail, .doctors, .pair { grid-template-columns: 1fr; }
  .head .wrap { height: 68px; }
  .head img { height: 28px; }
  .nav { gap: 0.9rem; overflow-x: auto; flex-wrap: nowrap; }
  .nav a { white-space: nowrap; font-size: 0.82rem; }
  .nav .phone { display: none; }
  .news article { grid-template-columns: 1fr; gap: 0.4rem; }
  .info > div { grid-template-columns: 1fr; gap: 0.2rem; }
  .hours tbody th { width: 5.5rem; font-size: 0.88rem; }
  .hours td.time, .hours td.who { font-size: 0.88rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto; }
}

::selection { background: var(--brand-light); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
