:root {
  color-scheme: light;
  --ink: #101820;
  --muted: #5f6872;
  --line: #d9dde2;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --charcoal: #162027;
  --wine: #8f1e2d;
  --wine-dark: #641623;
  --gold: #b98b48;
  --sage: #dfe9e1;
  --blue: #1d5363;
  --shadow: 0 28px 80px rgba(18, 31, 39, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 16px clamp(20px, 5vw, 76px);
  border-bottom: 1px solid rgba(217, 221, 226, 0.82);
  background: rgba(251, 250, 247, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(185, 139, 72, 0.45);
  border-radius: 8px;
  background: var(--charcoal);
  color: #f6e7ca;
  font-size: 14px;
  font-weight: 800;
}

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

.brand strong {
  font-size: 15px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  color: #45505a;
  font-size: 14px;
  font-weight: 700;
}

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

.header-action,
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.header-action {
  min-width: max-content;
  padding: 10px 16px;
  background: var(--wine);
  color: #fff;
  box-shadow: 0 12px 28px rgba(143, 30, 45, 0.24);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(54px, 8vw, 110px) clamp(20px, 5vw, 76px) 86px;
  background:
    linear-gradient(115deg, rgba(22, 32, 39, 0.94), rgba(22, 32, 39, 0.86) 48%, rgba(29, 83, 99, 0.82)),
    url("https://images.unsplash.com/photo-1631815588090-d4bfec5b1ccb?auto=format&fit=crop&w=1800&q=82") center / cover;
  color: #fff;
}

.hero-copy {
  max-width: 760px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 22px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.98;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
}

h3 {
  margin-bottom: 9px;
  font-size: 20px;
  line-height: 1.2;
}

.lead {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2vw, 22px);
}

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

.button {
  padding: 13px 19px;
}

.button.primary {
  background: #fff;
  color: var(--wine-dark);
}

.button.ghost {
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #fff;
}

.doctor-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.portrait-wrap {
  aspect-ratio: 4 / 4.55;
  background: #d9d2c7;
}

.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-card-body {
  padding: 24px;
}

.doctor-card-body span {
  display: block;
  margin-bottom: 8px;
  color: #e8cc9c;
  font-weight: 800;
}

.doctor-card-body h2 {
  margin-bottom: 8px;
  font-size: 30px;
}

.doctor-card-body p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.metrics {
  width: min(1160px, calc(100% - 40px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: -42px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.metrics article {
  min-height: 132px;
  padding: 26px;
  background: var(--panel);
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  color: var(--wine);
  font-size: 28px;
  line-height: 1.1;
}

.metrics span {
  margin-top: 9px;
  color: var(--muted);
}

.profile-band,
.section,
.timeline-section,
.appointment {
  width: min(1160px, calc(100% - 40px));
  margin: 96px auto;
}

.profile-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding: clamp(32px, 5vw, 56px);
  border-radius: 8px;
  background: var(--sage);
}

.section-label h2,
.section-heading h2 {
  max-width: 720px;
}

.profile-copy {
  color: #38434b;
  font-size: 18px;
}

.profile-copy p:last-child {
  margin-bottom: 0;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.expertise-grid article {
  min-height: 276px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.expertise-grid span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  border-radius: 50%;
  background: rgba(143, 30, 45, 0.1);
  color: var(--wine);
  font-size: 13px;
  font-weight: 800;
}

.expertise-grid p,
.timeline p,
.appointment p,
.contact-panel dd {
  color: var(--muted);
}

.timeline-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(32px, 5vw, 68px);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline article {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.timeline article:first-child {
  padding-top: 0;
}

.timeline time {
  color: var(--gold);
  font-weight: 800;
}

.timeline p {
  margin-bottom: 0;
}

.appointment {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  padding: clamp(32px, 5vw, 58px);
  border-radius: 8px;
  background: var(--charcoal);
  color: #fff;
}

.appointment p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.72);
}

.contact-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.contact-panel dl {
  margin: 0;
}

.contact-panel div {
  padding: 20px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-panel div:last-child {
  border-bottom: 0;
}

.contact-panel dt {
  margin-bottom: 4px;
  color: #e8cc9c;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-panel dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.contact-panel a {
  color: #fff;
  font-weight: 700;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 28px clamp(20px, 5vw, 76px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .hero,
  .profile-band,
  .timeline-section,
  .appointment {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .doctor-card {
    max-width: 440px;
  }

  .metrics,
  .expertise-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .site-header,
  .hero,
  .site-footer {
    padding-right: 18px;
    padding-left: 18px;
  }

  .header-action,
  .button {
    width: 100%;
  }

  h1 {
    font-size: 42px;
  }

  .metrics,
  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .profile-band,
  .section,
  .timeline-section,
  .appointment {
    width: calc(100% - 28px);
    margin: 72px auto;
  }

  .profile-band,
  .appointment {
    padding: 26px;
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
