:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --surface-soft: #eef5f3;
  --text: #24302f;
  --muted: #63716f;
  --accent: #0f766e;
  --accent-dark: #0b5f59;
  --line: #d9e0dc;
  --shadow: 0 18px 55px rgba(27, 43, 41, 0.11);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.80);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.topbar,
.main-navigation,
.section,
.section-band,
.site-footer {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}
.section,
.section-band {
  scroll-margin-top: 130px;
}

.topbar {
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: padding 0.2s ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 100px;
  height: 88px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
  padding: 5px 0;
  box-shadow: 0 8px 22px rgba(32, 49, 46, 0.10);
  transition: width 0.2s ease, height 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-compact {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(32, 49, 46, 0.08);
}

.site-header.is-compact .topbar {
  padding: 6px 0;
}

.site-header.is-compact .brand img {
  width: 72px;
  height: 58px;
  box-shadow: 0 6px 16px rgba(32, 49, 46, 0.08);
}

.site-header.is-compact .brand small {
  display: none;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 0.85rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 14px;
  overflow-x: auto;
}

.main-navigation a {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 6px;
  color: var(--text);
  font-size: 0.92rem;
  text-decoration: none;
}

.main-navigation a:hover,
.main-navigation a.is-active {
  background: var(--surface-soft);
  color: var(--accent-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: stretch;
  padding: 68px 0 46px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 360px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.1;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  line-height: 1.25;
}

.lead {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(32, 49, 46, 0.10);
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.contact-panel {
  align-self: center;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-title {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.phone-link {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--accent-dark);
  font-size: 1.7rem;
  font-weight: 700;
}

dl {
  margin: 0;
}

dt {
  margin: 18px 0 4px;
  color: var(--text);
  font-weight: 700;
}

dd {
  margin: 0;
  color: var(--muted);
}

.section {
  padding: 68px 0;
}

.section-muted {
  width: 100%;
  max-width: none;
  padding-right: max(16px, calc((100vw - var(--max-width)) / 2));
  padding-left: max(16px, calc((100vw - var(--max-width)) / 2));
  background: var(--surface-soft);
}

.section-heading {
  margin-bottom: 28px;
}

.services-grid,
.team-grid,
.info-grid,
.contact-grid,
.two-column {
  display: grid;
  gap: 18px;
}

.services-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.services-grid span,
.info-grid article,
.team-member,
.doctor-profile,
.contact-grid > div,
.legal-section details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.services-grid span {
  padding: 13px 14px;
  font-weight: 700;
}

.note {
  margin: 24px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.two-column {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.intro {
  margin: 0;
  font-size: 1.2rem;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.team-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-member {
  padding: 18px;
  text-align: center;
}

.team-member img {
  display: block;
  width: 100%;
  height: 280px;
  margin-bottom: 18px;
  border-radius: 6px;
  object-fit: cover;
  object-position: center 40%;
}

.team-member p {
  margin: 0;
  color: var(--muted);
}

.doctor-profile {
  margin-top: 20px;
  padding: 24px;
}

.doctor-profile p,
.text-block p,
.info-grid p,
.contact-grid p,
.legal-content p {
  margin: 0 0 14px;
}

.text-block {
  max-width: 840px;
}

.info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-grid article {
  padding: 22px;
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-grid > div {
  padding: 24px;
}

.legal-section {
  display: grid;
  gap: 12px;
  padding-top: 0;
}

.legal-section details {
  padding: 18px 20px;
}

.legal-section summary {
  cursor: pointer;
  font-weight: 700;
}

.legal-content {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  padding: 26px 0 42px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .hero,
  .two-column,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    min-height: auto;
  }

  .services-grid,
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-block;
  }
  .section,
  .section-band {
    scroll-margin-top: 105px;
  }

  .main-navigation {
    display: none;
    padding: 0 0 16px;
  }

  .main-navigation.is-open {
    display: grid;
  }

  .main-navigation a {
    padding: 11px 12px;
  }

  .brand img {
    width: 70px;
    height: auto;
  }

  .brand strong {
    font-size: 0.94rem;
  }

  .hero {
    padding-top: 42px;
  }

  .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .services-grid,
  .team-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .team-member img {
    height: 320px;
  }
}

@media (max-width: 460px) {
  .topbar,
  .main-navigation,
  .section,
  .section-band,
  .site-footer {
    width: min(100% - 24px, var(--max-width));
  }

  .hero-actions {
    display: grid;
  }

  .phone-link {
    font-size: 1.35rem;
  }
}
