:root {
  --terracotta-50: #FAF0EA;
  --terracotta-100: #F4D8CA;
  --terracotta-200: #E8B99E;
  --terracotta-400: #CE7F55;
  --terracotta-500: #C16B3D;
  --terracotta-600: #A95831;
  --terracotta-700: #874629;
  --terracotta-800: #653421;
  --sage-500: #7A8F6A;
  --sage-600: #647655;
  --anthracite-700: #2B2B2B;
  --anthracite-400: #737371;
  --anthracite-100: #DDDDDC;
  --cream-50: #FFFDF9;
  --cream-100: #FCFAF5;
  --cream-200: #F9F6EF;
  --cream-300: #F7F4EE;
  --cream-400: #E8E1D5;
  --cream-500: #D7CCBC;

  --bg: var(--cream-400);
  --surface: var(--cream-50);
  --surface-muted: var(--cream-200);
  --border: var(--cream-500);
  --text: var(--anthracite-700);
  --text-muted: var(--anthracite-400);
  --primary: var(--terracotta-500);
  --primary-hover: var(--terracotta-600);
  --primary-active: var(--terracotta-700);
  --secondary: var(--sage-500);
  --white: #FFFFFF;
  --radius: 16px;
  --radius-pill: 999px;
  --font-primary: 'Manrope', Arial, sans-serif;
  --font-secondary: 'Inter', Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-secondary);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

h1, h2, h3, .btn, .logo, nav.main-nav a {
  font-family: var(--font-primary);
}

a { color: var(--primary-active); }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: var(--white);
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Header */
header.site-header {
  background: var(--cream-100);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img { display: block; height: 36px; width: auto; }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 14.5px;
  white-space: nowrap;
}

nav.main-nav a:hover { color: var(--primary); }

.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}

.btn:hover { background: var(--primary-hover); }

.btn-lg {
  padding: 12px 26px;
  font-size: 15px;
}

.btn-text {
  display: inline-block;
  color: var(--primary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font-primary);
  padding: 9px 4px;
}
.btn-text:hover { color: var(--primary-hover); text-decoration: underline; }

/* Pruh nahoře webu — zobrazí se jen když je v administraci
   zaškrtnuté "Ordinace dnes uzavřena" (viz app.js). */
.closed-banner {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
}

/* Jednoduchá centrovaná sekce — používá jen kontakt-odeslat.php
   (stránka "Děkujeme" po odeslání formuláře). */
.hero {
  position: relative;
  background: var(--cream-100);
}

.hero-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.hero p {
  font-size: 15.5px;
  color: var(--text-muted);
  margin: 0 0 16px;
}

/* Sections */
section { padding: 52px 0; }

section h2 {
  font-size: 23px;
  font-weight: 600;
  margin: 0 0 6px;
  text-align: center;
}

section .lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 580px;
  font-size: 14.5px;
  margin: 0 auto 28px;
}

/* Střídání sekcí — sudé sekce mají mírně jiný odstín krémové,
   aby stránka nebyla jedna nekonečná plocha, ale měla rytmus. */
.section-alt { background: var(--surface-muted); }

/* Services grid — jen fotka a název, žádný generovaný popis. */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  padding-bottom: 18px;
}

.service-card .service-img {
  aspect-ratio: 4 / 3;
  background: var(--surface-muted);
  overflow: hidden;
}

.service-card .service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card h3 {
  font-size: 15.5px;
  font-weight: 600;
  margin: 16px 16px 0;
  line-height: 1.35;
}

/* Co Vás čeká — svislý seznam kroků s číslem, přesně podle textu
   dodaného klientkou. Odstavce jsou delší, proto sloupec místo
   horizontální osy — lépe se čte. */
.process-intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 14px;
  font-size: 14.5px;
}
.process-intro:last-of-type { margin-bottom: 32px; }

.process-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.process-step .step-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--primary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-primary);
}

/* Sudé kroky v šalvějové barvě — jemné rozehrání palety podél osy. */
.process-step:nth-child(even) .step-num {
  border-color: var(--secondary);
  color: var(--secondary);
}

.process-step h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.process-step p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.55; }

/* Badge "Dnes otevřeno / Dnes zavřeno" — spočítá JS podle aktuálního
   dne a hodin (viz app.js), dokud nenaběhne zůstává skrytý. */
.today-status {
  display: block;
  text-align: center;
  margin: 0 auto 18px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-primary);
}
.today-status.status-open {
  color: var(--sage-600);
}
.today-status.status-closed {
  color: var(--primary-active);
}

/* Hours table */
.hours-table {
  max-width: 460px;
  margin: 0 auto;
  border-collapse: collapse;
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgb(43 43 43 / 0.06);
}

.hours-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 16.5px;
}

.hours-table tr:last-child td { border-bottom: none; }

.hours-table td:first-child { font-weight: 500; }

.hours-table td:last-child {
  text-align: right;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Aktuality — malé karty místo prostého seznamu, ať sekce nepůsobí
   prázdně, i když je aktualit jen jedna nebo dvě. */
.news-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  max-width: 700px;
  margin: 0 auto;
  padding: 0;
}

.news-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  text-align: left;
}

.news-icon {
  font-size: 20px;
  line-height: 1.3;
  flex-shrink: 0;
}

.news-text {
  font-size: 14.5px;
  color: var(--text);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.contact-item h3 {
  font-size: 14px;
  margin: 0 0 4px;
  color: var(--text-muted);
  font-weight: 500;
}

.contact-item p { margin: 0; font-size: 15.5px; }

.insurers-block {
  text-align: center;
  margin: 24px auto 0;
}

.insurers-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.insurers-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.insurers-list span {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
}

/* Contact form */
.contact-form {
  max-width: 460px;
  margin: 28px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.contact-form h3 {
  margin: 0 0 14px;
  font-size: 15.5px;
  font-family: var(--font-primary);
  text-align: center;
}

.form-row { margin-bottom: 12px; }

.form-row label {
  display: block;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14.5px;
  font-family: var(--font-secondary);
  background: var(--white);
  color: var(--text);
}

.form-row textarea { resize: vertical; }

.contact-form .btn {
  width: 100%;
  text-align: center;
}

.form-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin: 10px 0 0;
  line-height: 1.45;
}
.form-note a { color: var(--text-muted); text-decoration: underline; }

/* Honeypot — skryté pole proti botům, ne display:none (to řada botů umí odhalit) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer GDPR link */
.footer-gdpr a {
  color: rgba(252, 250, 245, 0.75);
  font-size: 12px;
}

/* Footer — tenká oranžová linka nahoře a malé logo, ať tmavá plocha
   nepůsobí tak plocho a naváže na zbytek brandingu. */
footer {
  background: var(--anthracite-700);
  color: var(--cream-100);
  padding: 28px 0 16px;
  font-size: 13px;
  border-top: 3px solid var(--primary);
}

footer a { color: var(--cream-100); text-decoration: none; }
footer a:hover { text-decoration: underline; }

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-logo {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  line-height: 1.6;
}

.footer-label {
  display: block;
  color: var(--terracotta-200);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 6px;
}

.footer-hours div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  max-width: 180px;
}

.footer-hours span:first-child { color: rgba(252, 250, 245, 0.65); }

.footer-gdpr {
  color: rgba(252, 250, 245, 0.65);
  font-size: 12px;
  line-height: 1.5;
}

.footer-copy {
  padding-top: 14px;
  text-align: center;
  font-size: 12px;
  color: rgba(252, 250, 245, 0.55);
}

/* Legal page (GDPR) */
.legal-page { padding: 44px 0 64px; }

.legal-container { max-width: 700px; }

.legal-page h1 {
  font-size: 26px;
  margin: 0 0 6px;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 12.5px;
  margin: 0 0 32px;
}

.legal-page h2 {
  font-size: 16.5px;
  text-align: left;
  margin: 28px 0 8px;
}

.legal-page p { margin: 0 0 12px; font-size: 14.5px; }

.legal-list {
  margin: 0 0 12px;
  padding-left: 20px;
}
.legal-list li { margin-bottom: 8px; font-size: 14.5px; }

@media (max-width: 780px) {
  .container { padding: 0 20px; }

  nav.main-nav ul { gap: 14px; }
  nav.main-nav a { font-size: 13.5px; }

  .process-step { gap: 12px; }
  .process-step h3 { font-size: 15px; }
  .process-step p { font-size: 13.5px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .logo img { height: 30px; }
  nav.main-nav { display: none; }

  .hero h1 { font-size: 22px; }

  section { padding: 32px 0; }
  section h2 { font-size: 20px; }
  section .lead { font-size: 13.5px; margin-bottom: 22px; }

  .hours-table td { padding: 10px 14px; font-size: 14.5px; }
  .news-card { padding: 12px 14px; }
  .news-text { font-size: 14px; }

  .contact-form { padding: 18px; }

  footer { padding: 22px 0 14px; }
}
