
:root {
  --bg: #f5faf8;
  --surface: #ffffff;
  --text: #20312d;
  --muted: #5f716d;
  --primary: #217a6b;
  --primary-dark: #14564b;
  --primary-soft: #dff2ee;
  --border: #d8e7e3;
  --shadow: 0 18px 48px rgba(17, 66, 57, 0.12);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: var(--primary-dark); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(820px, calc(100% - 32px)); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip-link:focus { left: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; min-width: 255px; }
.brand-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--primary); color: white; font-weight: 800; letter-spacing: -0.03em; }
.brand strong { display: block; font-size: 1.08rem; }
.brand small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.25; }
.site-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { color: var(--text); text-decoration: none; padding: 9px 11px; border-radius: 999px; font-size: .94rem; }
.site-nav a:hover, .site-nav a.active { background: var(--primary-soft); color: var(--primary-dark); }
.menu-toggle { display: none; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 9px 12px; color: var(--text); }

.hero { padding: 64px 0 38px; background: linear-gradient(135deg, #eef8f5 0%, #ffffff 55%, #e4f3ef 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.eyebrow { color: var(--primary-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; margin-bottom: 8px; }
h1 { font-size: clamp(2.2rem, 5vw, 4.8rem); line-height: 1.02; margin: 0 0 16px; letter-spacing: -0.055em; }
h2 { font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.025em; }
h3 { margin-top: 22px; }
.lead { font-size: 1.25rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; padding: 12px 18px; color: white; background: var(--primary); text-decoration: none; font-weight: 700; box-shadow: 0 10px 24px rgba(33, 122, 107, .2); }
.button:hover { color: white; background: var(--primary-dark); }
.button.secondary { color: var(--primary-dark); background: var(--primary-soft); box-shadow: none; }
.button.secondary:hover { color: white; background: var(--primary-dark); }
.button.large { padding: 15px 24px; font-size: 1.08rem; }
.hero-card { margin: 0; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background: var(--surface); min-height: 260px; }
.hero-card img { width: 100%; height: 380px; object-fit: cover; }

.section { padding: 42px 0; }
.section-alt { background: #eef8f5; }
.page-title { padding: 46px 0 24px; background: linear-gradient(135deg, #eef8f5, #fff); border-bottom: 1px solid var(--border); }
.page-title h1 { font-size: clamp(2rem, 4vw, 3.6rem); }
.cards { display: grid; gap: 20px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card, .content-card, .doctor-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(17,66,57,.06);
}
.card p, .content-card p { color: var(--muted); }
.check-list { padding-left: 1.2rem; }
.check-list li { margin-bottom: 14px; }
.notice { margin-top: 22px; padding: 18px 20px; border-radius: 16px; background: var(--primary-soft); border: 1px solid var(--border); }
.notice h2, .notice h3 { margin-top: 0; }
.center { text-align: center; }
.small-note { color: var(--muted); font-size: .94rem; }

.doctor-list { display: grid; gap: 18px; }
.doctor-card { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center; }
.doctor-photo { width: 150px; height: 150px; border-radius: 22px; object-fit: cover; background: var(--primary-soft); }
.doctor-photo.initials { display: grid; place-items: center; color: var(--primary-dark); font-size: 2.4rem; font-weight: 800; }

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.schedule-table { width: 100%; border-collapse: collapse; min-width: 820px; }
.schedule-table th, .schedule-table td { padding: 15px 16px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); vertical-align: top; text-align: left; }
.schedule-table thead th { background: var(--primary); color: #fff; }
.schedule-table tbody th { background: #f7fbfa; color: var(--primary-dark); width: 120px; }
.schedule-table tr:last-child th, .schedule-table tr:last-child td { border-bottom: 0; }
.schedule-table th:last-child, .schedule-table td:last-child { border-right: 0; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.map-card { min-height: 240px; }
.news-list { display: grid; gap: 22px; }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: center; margin: 20px 0; }
.app-grid img { max-height: 48px; object-fit: contain; }
.qr-grid { display: grid; grid-template-columns: repeat(3, 120px); gap: 18px; align-items: center; margin: 18px 0 22px; }
.qr-grid img { border: 1px solid var(--border); border-radius: 12px; padding: 8px; background: #fff; }

.site-footer { padding: 32px 0; background: #173a34; color: #e9fffa; }
.site-footer a { color: #e9fffa; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 24px; align-items: start; }

@media (max-width: 880px) {
  .header-inner { align-items: flex-start; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .site-nav { display: none; position: absolute; inset: 76px 16px auto 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 12px; box-shadow: var(--shadow); justify-content: flex-start; }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; }
  .hero-grid, .cards.three, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 38px; }
  .hero-card img { height: 280px; }
  .doctor-card { grid-template-columns: 1fr; }
  .doctor-photo { width: 120px; height: 120px; }
  .app-grid, .qr-grid { grid-template-columns: 1fr; }
}
