/* ============================================================
   Gynekologie HARFA – Moderní responzivní styly
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #2c5f8a;
  --primary-dark: #1a3d5c;
  --accent: #1a8a7d;
  --accent-light: #e0f5f2;
  --bg: #f4f7fa;
  --white: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --border: #e0e6ec;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --radius: 10px;
  --transition: 0.2s ease;
}

html { font-size: 100%; scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
ul { list-style: none; }

/* --- Kontejner --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.logo-link { flex-shrink: 0; }
.logo-img { width: 80px; height: 80px; }

.header-text { flex: 1; }
.header-title {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}
.header-subtitle {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-top: 2px;
}
.header-address {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 2px;
}

/* Kontakt v hlavičce */
.header-contact {
  text-align: right;
  flex-shrink: 0;
}
.header-phone {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}
.header-email {
  font-size: 0.85rem;
  color: var(--text-light);
  white-space: nowrap;
}
.header-email a {
  color: var(--primary);
}

/* --- Navigace --- */
.main-nav {
  background: var(--primary);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
}

.nav-list a {
  display: block;
  padding: 14px 22px;
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 3px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
  background: var(--primary-dark);
  border-bottom-color: var(--accent);
  color: var(--white);
}

/* Hamburger menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 10px 0;
  position: relative;
  z-index: 200;
}

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.page-wrapper {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px;
}

/* --- Hero / Intro --- */
.page-intro {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.7;
}

/* --- Aktuality (homepage news) --- */
.aktuality-list {
  display: grid;
  gap: 16px;
}

.aktuality-item {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px 24px;
  border-left: 4px solid var(--accent);
}

.aktuality-item h3 {
  color: var(--primary);
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.aktuality-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

.aktuality-highlight {
  border-left-color: #b8340b;
}

.aktuality-highlight h3 {
  color: #b8340b;
}

/* --- Main Content --- */
.main-content {
  min-width: 0;
}

.content-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.content-card h1 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 24px;
}

/* --- Benefits grid --- */
.benefits-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 20px;
}

.benefits-clinic-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: auto;
  object-fit: cover;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.benefit-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.benefit-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.benefit-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 8px;
}

.benefit-text {
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text);
}

.benefit-text strong {
  display: block;
  color: var(--primary-dark);
  margin-bottom: 2px;
  font-size: 0.95rem;
}

/* --- Languages strip --- */
.languages-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  padding: 12px 18px;
  background: var(--accent-light);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text);
}

.languages-strip span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.languages-strip img {
  width: 18px;
  height: 12px;
  border-radius: 2px;
}

/* --- Services grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.service-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.service-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* --- Featured service cards --- */
.featured-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

.featured-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  border-top: 4px solid var(--accent);
}

.featured-card h3 {
  color: var(--primary);
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.featured-card p {
  margin-bottom: 6px;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.55;
}

.featured-card a {
  font-size: 0.9rem;
}

.content-card h2 {
  font-size: 1.4rem;
  color: var(--primary);
  margin: 28px 0 12px;
}

.content-card h2:first-child { margin-top: 0; }

.content-card h3 {
  font-size: 1.15rem;
  color: var(--text);
  margin: 20px 0 8px;
}

.content-card p {
  margin-bottom: 14px;
  line-height: 1.7;
}

.content-card ul:not(.feature-list) {
  margin: 10px 0 14px 20px;
}

.content-card li {
  padding: 4px 0;
  line-height: 1.6;
  list-style: disc;
}

.content-card .no-bullets li { list-style: none; }

/* Hero image */
.hero-img {
  border-radius: var(--radius);
  margin-bottom: 24px;
  width: 100%;
  max-height: 350px;
  object-fit: cover;
}

/* Inline right image */
.img-right {
  float: right;
  margin: 0 0 20px 24px;
  border-radius: var(--radius);
  max-width: 260px;
}

/* Info box */
.info-box {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 20px 0;
}

.info-box p { margin-bottom: 6px; }

.info-box h2 {
  color: var(--accent);
  margin-top: 0;
}

/* ============================================================
   TABLES
   ============================================================ */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
}

.price-table th {
  background: var(--primary);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}

.price-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.price-table tr:nth-child(even) td {
  background: #f9fbfd;
}

.price-table tr:hover td {
  background: #eef5fa;
}

.price-table .price {
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
  color: var(--primary);
}

/* Opening hours */
.hours-table td {
  padding: 8px 16px;
}

.hours-table td:first-child {
  font-weight: 600;
  white-space: nowrap;
  color: var(--primary);
}

/* ============================================================
   FEATURES / CARDS GRID
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 16px 0;
}

.feature-item {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-item::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}

/* --- Insurance cards --- */
.insurance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.insurance-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: var(--text);
}

.insurance-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.insurance-code {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--white);
  border-radius: 8px;
  width: 56px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.insurance-name {
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
}

.insurance-more {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* ============================================================
   KONTAKT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 16px;
}

.contact-info p {
  margin-bottom: 8px;
}

.contact-email td {
  padding: 4px 8px 4px 0;
  font-size: 0.95rem;
}

.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  min-height: 320px;
}

.directions ul {
  margin: 8px 0 12px 20px;
}

/* ============================================================
   LEKARI (Doctors)
   ============================================================ */
.doctor-profile {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 24px;
}

.doctor-photo {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 240px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.doctor-info h2 {
  margin: 0 0 4px;
}

.doctor-title {
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 16px;
}

.doctor-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.doctor-stat {
  background: var(--accent-light);
  border-radius: var(--radius);
  padding: 10px 16px;
  text-align: center;
  min-width: 90px;
}

.doctor-stat .stat-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  line-height: 1.2;
}

.doctor-stat .stat-label {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 2px;
}

.doctor-bio {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 14px;
}

.doctor-career {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.doctor-career h3 {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 1rem;
}

.timeline-item {
  display: flex;
  gap: 14px;
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.timeline-year {
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  min-width: 80px;
}

.timeline-text {
  color: var(--text);
}

.cert-box {
  text-align: center;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px;
}

.cert-box img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 500px;
  width: 100%;
  height: auto;
}

.cert-box p {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 24px 20px;
  font-size: 0.9rem;
  margin-top: 40px;
}

.site-footer a {
  color: rgba(255,255,255,0.9);
}

.site-footer a:hover {
  color: var(--white);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* --- Banner (urgent notice) --- */
.alert-banner {
  background: #b8340b;
  color: var(--white);
  text-align: center;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 0.95rem;
}

.alert-banner a {
  color: var(--white);
  text-decoration: underline;
}

/* --- Languages --- */
.lang-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0;
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
}

.lang-item img { width: 20px; height: 13px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .content-card {
    padding: 24px 20px;
  }

  .header-contact {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .benefits-intro {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .benefits-clinic-img {
    order: -1;
    max-height: 240px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-services {
    grid-template-columns: 1fr;
  }

  .doctor-profile {
    grid-template-columns: 1fr;
  }

  .doctor-photo {
    max-width: 200px;
    margin: 0 auto;
  }

  .doctor-stats {
    justify-content: center;
  }

  .logo-img { width: 60px; height: 60px; }

  .header-title { font-size: 1.2rem; }
  .header-subtitle { font-size: 0.85rem; }
  .header-address { font-size: 0.78rem; }

  /* Mobile nav */
  .menu-toggle {
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    padding: 0;
  }

  .nav-list.open {
    display: flex;
  }

  .nav-list a {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    gap: 12px;
  }

  .price-table {
    font-size: 0.85rem;
  }

  .price-table td, .price-table th {
    padding: 10px 8px;
  }

  .cookie-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cookie-buttons button {
    width: 100%;
  }
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary-dark);
  color: var(--white);
  z-index: 9999;
  padding: 16px 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}

.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 260px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.9);
}

.cookie-text a {
  color: var(--white);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-buttons button {
  padding: 10px 22px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}

.cookie-accept {
  background: var(--accent);
  color: var(--white);
}

.cookie-accept:hover {
  background: #157a6e;
}

.cookie-decline {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.cookie-decline:hover {
  background: rgba(255,255,255,0.25);
}
