:root {
  --navy-950: #06113f;
  --navy-900: #07195a;
  --navy-800: #102a7a;
  --blue-100: #eaf0ff;
  --blue-50: #f6f8ff;
  --red-600: #d91628;
  --red-500: #ec1c2b;
  --red-100: #ffe7ea;
  --ink: #14213d;
  --muted: #5c667a;
  --line: #dfe4ef;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --success: #14804a;
  --shadow-sm: 0 8px 22px rgba(7, 25, 90, 0.08);
  --shadow-md: 0 18px 48px rgba(7, 25, 90, 0.14);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 2000;
  padding: 10px 14px;
  background: var(--navy-950);
  color: white;
  border-radius: 8px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

.container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }
.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.section-soft { background: var(--surface-soft); }
.section-dark { background: linear-gradient(135deg, var(--navy-950), var(--navy-800)); color: white; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--red-600);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 999px; background: currentColor; }
.section-dark .eyebrow { color: #ffabb4; }

h1, h2, h3, h4 { margin: 0 0 16px; line-height: 1.15; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.45rem, 6vw, 5.3rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
p { margin: 0 0 18px; }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: var(--muted); max-width: 68ch; }
.section-dark .lead { color: rgba(255,255,255,0.78); }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.max-760 { max-width: 760px; }
.mx-auto { margin-inline: auto; }

.topbar {
  background: var(--navy-950);
  color: rgba(255,255,255,0.9);
  font-size: 0.88rem;
}
.topbar-inner {
  min-height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.topbar-group { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.topbar a:hover { color: white; }
.topbar .status { display: inline-flex; align-items: center; gap: 8px; }
.topbar .status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #54d18b; box-shadow: 0 0 0 4px rgba(84,209,139,0.14); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.94);
  border-bottom: 1px solid rgba(223,228,239,0.8);
  backdrop-filter: blur(14px);
}
.navbar { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; min-width: 228px; }
.brand img { width: 230px; max-height: 52px; object-fit: contain; object-position: left center; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 11px 13px; border-radius: 9px; color: #34415d; font-weight: 700; font-size: 0.94rem; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--navy-900); background: var(--blue-100); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: white; border-radius: 10px; align-items: center; justify-content: center; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ""; display: block; width: 20px; height: 2px; background: var(--navy-900); transition: 0.2s ease; }
.menu-toggle span { margin: 4px 0; }
.menu-toggle[aria-expanded="true"] span { opacity: 0; }
.menu-toggle[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red-500); color: white; box-shadow: 0 9px 20px rgba(236,28,43,0.2); }
.btn-primary:hover { background: var(--red-600); box-shadow: 0 12px 26px rgba(236,28,43,0.28); }
.btn-secondary { background: var(--navy-900); color: white; box-shadow: 0 9px 20px rgba(7,25,90,0.18); }
.btn-outline { border-color: var(--line); background: white; color: var(--navy-900); }
.btn-light { background: white; color: var(--navy-900); }
.btn-ghost-light { border-color: rgba(255,255,255,0.35); color: white; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 0.9rem; }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 20%, rgba(236,28,43,0.14), transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(33,76,182,0.15), transparent 31%),
    linear-gradient(180deg, #f9fbff 0%, #fff 100%);
  padding: 74px 0 78px;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -170px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(7,25,90,0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 52px rgba(7,25,90,0.025), 0 0 0 104px rgba(7,25,90,0.02);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.03fr 0.97fr; align-items: center; gap: 64px; }
.hero h1 span { color: var(--red-500); }
.hero-copy .lead { margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 12px 22px; color: #44506b; font-size: 0.94rem; font-weight: 700; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust span::before { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #e3f7eb; color: var(--success); font-size: 0.75rem; font-weight: 900; }
.hero-media { position: relative; }
.hero-photo { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 4 / 3; object-fit: cover; }
.hero-card {
  position: absolute;
  left: -34px;
  bottom: -28px;
  width: min(330px, 82%);
  padding: 20px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(223,228,239,0.9);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}
.hero-card-top { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.hero-card strong { color: var(--navy-900); }
.open-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--success); font-size: 0.82rem; font-weight: 900; }
.open-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.hero-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.page-hero {
  padding: 72px 0;
  background:
    linear-gradient(135deg, rgba(7,25,90,0.98), rgba(16,42,122,0.94)),
    url('../images/clinic-entrance.webp') center/cover;
  color: white;
}
.page-hero .breadcrumbs { display: flex; gap: 8px; align-items: center; color: rgba(255,255,255,0.72); font-size: 0.9rem; margin-bottom: 18px; }
.page-hero .breadcrumbs a:hover { color: white; }
.page-hero h1 { max-width: 850px; }
.page-hero p { max-width: 760px; color: rgba(255,255,255,0.8); font-size: 1.15rem; }

.stats-strip { margin-top: -1px; background: var(--navy-900); color: white; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 24px; border-right: 1px solid rgba(255,255,255,0.14); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; margin-bottom: 2px; font-size: 1.55rem; }
.stat span { color: rgba(255,255,255,0.72); font-size: 0.9rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.align-center { align-items: center; }

.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.card-hover { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.card-hover:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #cbd5ea; }
.icon-box { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 14px; background: var(--blue-100); color: var(--navy-900); }
.icon-box.red { background: var(--red-100); color: var(--red-600); }
.icon-box svg { width: 24px; height: 24px; }
.card p:last-child { margin-bottom: 0; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 0.95rem; }

.split-media { position: relative; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 5 / 4; object-fit: cover; }
.split-note { position: absolute; right: -22px; bottom: -22px; max-width: 270px; padding: 20px; border-radius: 18px; background: var(--red-500); color: white; box-shadow: var(--shadow-md); }
.split-note strong { display: block; font-size: 1.2rem; margin-bottom: 4px; }
.split-note p { margin: 0; color: rgba(255,255,255,0.86); font-size: 0.9rem; }

.check-list, .plain-list { list-style: none; margin: 0; padding: 0; }
.check-list { display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: #e7f7ee; color: var(--success); font-size: 0.75rem; font-weight: 900; }

.callout {
  padding: 34px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  color: white;
  box-shadow: var(--shadow-md);
}
.callout-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.callout p { color: rgba(255,255,255,0.76); margin-bottom: 0; }
.callout-actions { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 0 auto; }

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.gallery-item { position: relative; overflow: hidden; border-radius: 18px; min-height: 240px; background: var(--blue-50); }
.gallery-item:nth-child(1) { grid-column: span 7; }
.gallery-item:nth-child(2) { grid-column: span 5; }
.gallery-item:nth-child(3), .gallery-item:nth-child(4), .gallery-item:nth-child(5) { grid-column: span 4; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.gallery-item:hover img { transform: scale(1.035); }
.gallery-caption { position: absolute; inset: auto 0 0; padding: 34px 18px 14px; color: white; font-weight: 800; background: linear-gradient(transparent, rgba(6,17,63,0.9)); }

.value-card { border-top: 4px solid var(--navy-900); }
.value-card.red-top { border-top-color: var(--red-500); }

.service-group { margin-bottom: 44px; }
.service-group:last-child { margin-bottom: 0; }
.service-group-head { display: flex; align-items: start; gap: 16px; margin-bottom: 20px; }
.service-group-head .icon-box { flex: 0 0 auto; margin: 0; }
.service-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 18px; }
.service-list li { position: relative; padding: 14px 16px 14px 44px; border: 1px solid var(--line); background: white; border-radius: 12px; }
.service-list li::before { content: "✓"; position: absolute; left: 16px; top: 15px; color: var(--red-600); font-weight: 900; }

.equipment-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.equipment-pill { padding: 20px; text-align: center; background: white; border: 1px solid var(--line); border-radius: 14px; font-weight: 800; }

.price-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.price-table { width: 100%; min-width: 660px; border-collapse: collapse; background: white; }
.price-table th, .price-table td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table th { background: var(--navy-900); color: white; font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table tbody tr:hover { background: var(--blue-50); }
.price-table td:last-child { font-weight: 900; color: var(--navy-900); white-space: nowrap; }
.note-box { display: flex; gap: 14px; margin-top: 20px; padding: 18px 20px; border-radius: 12px; background: #fff8e8; border: 1px solid #f3dc9d; color: #6f5415; }
.note-box strong { display: block; }

.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: white; overflow: hidden; }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border: 0; background: transparent; color: var(--ink); text-align: left; font-weight: 800; }
.faq-question::after { content: "+"; font-size: 1.45rem; color: var(--red-600); }
.faq-question[aria-expanded="true"]::after { content: "−"; }
.faq-answer { display: none; padding: 0 20px 18px; color: var(--muted); }
.faq-answer.open { display: block; }

.contact-grid { display: grid; grid-template-columns: 0.84fr 1.16fr; gap: 34px; }
.contact-panel { padding: 30px; background: var(--navy-900); color: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.contact-panel p { color: rgba(255,255,255,0.76); }
.contact-list { display: grid; gap: 14px; margin-top: 24px; }
.contact-item { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: start; }
.contact-item .icon-box { width: 42px; height: 42px; margin: 0; border-radius: 12px; background: rgba(255,255,255,0.12); color: white; }
.contact-item h3 { margin-bottom: 3px; font-size: 1rem; }
.contact-item p, .contact-item a { margin: 0; color: rgba(255,255,255,0.78); font-size: 0.94rem; }
.contact-form { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-group { display: grid; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.9rem; font-weight: 800; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 13px 14px; border: 1px solid #cfd6e4; border-radius: 10px; color: var(--ink); background: white; outline: none; }
.form-group textarea { min-height: 128px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--navy-800); box-shadow: 0 0 0 3px rgba(16,42,122,0.1); }
.form-status { min-height: 24px; margin-top: 10px; color: var(--success); font-weight: 700; }
.map-frame { width: 100%; min-height: 430px; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 12px 0; border-bottom: 1px solid var(--line); }
.hours-table tr:last-child td { border-bottom: 0; }
.hours-table td:last-child { text-align: right; color: var(--navy-900); font-weight: 900; }

.site-footer { background: var(--navy-950); color: white; padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.7fr 0.9fr 1fr; gap: 36px; padding-bottom: 44px; }
.footer-brand img { width: 240px; margin-bottom: 18px; }
.footer-brand p, .site-footer li, .site-footer a { color: rgba(255,255,255,0.68); }
.site-footer a:hover { color: white; }
.footer-title { margin-bottom: 16px; font-size: 1rem; color: white; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.6); font-size: 0.86rem; }

.mobile-bar { display: none; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .nav-actions .btn-outline { display: none; }
  .hero-grid { gap: 42px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .topbar { display: none; }
  .navbar { min-height: 72px; }
  .brand img { width: 205px; }
  .menu-toggle { display: inline-flex; flex-direction: column; }
  .nav-links {
    position: fixed;
    inset: 72px 0 auto;
    display: none;
    padding: 18px 16px 26px;
    background: white;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 14px 16px; }
  .nav-actions .btn { display: none; }
  .hero { padding-top: 54px; }
  .hero-grid, .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .hero-copy { order: 1; }
  .hero-media { order: 2; max-width: 680px; }
  .hero-card { left: 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.14); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-4, .equipment-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .callout-row { align-items: flex-start; flex-direction: column; }
  .gallery-item:nth-child(n) { grid-column: span 6; }
  .gallery-item:first-child { grid-column: span 12; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  body { padding-bottom: 68px; }
  .section { padding: 64px 0; }
  .section-sm { padding: 44px 0; }
  .container { width: min(calc(100% - 24px), var(--container)); }
  h1 { font-size: clamp(2.25rem, 11vw, 3.25rem); }
  h2 { font-size: clamp(1.85rem, 8vw, 2.55rem); }
  .brand { min-width: auto; }
  .brand img { width: 184px; }
  .hero { padding: 42px 0 72px; }
  .hero-actions .btn { width: 100%; }
  .hero-card { position: relative; left: auto; bottom: auto; width: calc(100% - 24px); margin: -36px auto 0; }
  .page-hero { padding: 56px 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px 14px; }
  .stat strong { font-size: 1.28rem; }
  .grid-3, .grid-4, .equipment-row, .service-list, .form-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-item:nth-child(n) { grid-column: auto; min-height: 220px; }
  .split-note { position: relative; right: auto; bottom: auto; margin: -30px 14px 0; }
  .callout { padding: 26px 22px; }
  .callout-actions, .callout-actions .btn { width: 100%; }
  .contact-panel, .contact-form { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .mobile-bar {
    position: fixed;
    z-index: 1100;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 64px;
    background: white;
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(7,25,90,0.12);
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 900; }
  .mobile-bar a:first-child { color: var(--navy-900); }
  .mobile-bar a:last-child { background: #1aa85b; color: white; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

[id] { scroll-margin-top: 100px; }
