:root {
  --bg: #f2eee7;
  --surface: rgba(255, 250, 244, 0.92);
  --surface-strong: #fffdfa;
  --ink: #132b2d;
  --muted: #5f6d70;
  --line: rgba(19, 43, 45, 0.12);
  --accent: #0f4b49;
  --accent-strong: #0a3634;
  --accent-soft: #d6ece9;
  --accent-quiet: rgba(15, 75, 73, 0.08);
  --warm: #c98f53;
  --warm-soft: rgba(201, 143, 83, 0.12);
  --danger: #9a433a;
  --shadow: 0 24px 72px rgba(15, 40, 42, 0.12);
  --radius-lg: 28px;
  --radius-xl: 36px;
  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(95, 182, 175, 0.14), transparent 34%),
    radial-gradient(circle at right 20%, rgba(201, 143, 83, 0.14), transparent 28%),
    linear-gradient(180deg, #f7f4ee 0%, var(--bg) 38%, #efe8de 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  z-index: -1;
  pointer-events: none;
}

body::before {
  top: 12%;
  left: -120px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 182, 175, 0.18) 0%, rgba(95, 182, 175, 0) 72%);
}

body::after {
  right: -140px;
  bottom: 8%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 143, 83, 0.16) 0%, rgba(201, 143, 83, 0) 72%);
}

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

p,
li,
dd {
  color: var(--muted);
  line-height: 1.7;
}

h1,
h2,
h3,
strong {
  color: var(--ink);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

p {
  margin: 0;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  padding: 0.9rem 1.1rem;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  z-index: 30;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.page-shell {
  width: min(var(--max-width), calc(100% - 1.5rem));
  margin: 0 auto;
  padding-bottom: 3rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 0 0 24px 24px;
  background: rgba(248, 245, 239, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(20, 48, 50, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  min-width: 0;
}

.brand-mark {
  display: block;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
}

.brand-copy {
  display: grid;
  gap: 0.15rem;
}

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

.brand-copy span {
  color: var(--muted);
  font-size: 0.88rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.site-nav > a:not(.button) {
  padding: 0.55rem 0.25rem;
  color: var(--muted);
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, #155f5b 100%);
  color: #fff;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 14px 30px rgba(15, 75, 73, 0.22);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(15, 75, 73, 0.28);
}

.button--large {
  min-height: 3.35rem;
  padding-inline: 1.45rem;
}

.button--secondary {
  background: rgba(255, 253, 250, 0.76);
  color: var(--accent);
  border-color: rgba(15, 75, 73, 0.14);
  box-shadow: none;
}

.button--ghost {
  background: transparent;
  color: var(--accent);
  border-color: rgba(15, 75, 73, 0.16);
  box-shadow: none;
}

.button--light {
  background: #fff7ef;
  color: var(--accent-strong);
  box-shadow: none;
}

.button--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: none;
}

.button--block {
  width: 100%;
}

.eyebrow,
.card-kicker,
.mini-panel__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before,
.card-kicker::before,
.mini-panel__label::before {
  content: "";
  width: 0.85rem;
  height: 1px;
  background: currentColor;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 2rem;
  align-items: stretch;
  padding: 0.85rem 0 1.5rem;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.4rem;
  min-height: 100%;
  padding-block: 0.4rem;
}

.hero-copy__main,
.hero-copy__bottom {
  display: grid;
  gap: 1rem;
}

.hero-copy h1 {
  max-width: 16ch;
  font-size: clamp(2.3rem, 4.5vw, 4.2rem);
  line-height: 1.02;
  margin-bottom: 1.25rem;
}

.hero-lead {
  max-width: 40rem;
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 252, 248, 0.92) 100%);
  box-shadow: var(--shadow);
}

.hero-panel::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 182, 175, 0.2) 0%, rgba(95, 182, 175, 0) 70%);
}

.hero-panel__top {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.doctor-portrait {
  position: relative;
  width: 100%;
  margin: 0 0 1rem;
  overflow: hidden;
  border: 1px solid rgba(15, 75, 73, 0.12);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(247, 242, 236, 0.95) 100%);
  box-shadow: 0 18px 36px rgba(20, 48, 50, 0.08);
}

.doctor-portrait img {
  display: block;
  width: 100%;
  height: clamp(300px, 34vw, 430px);
  object-fit: cover;
  object-position: center top;
}

.doctor-portrait figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 18px;
  background: rgba(15, 75, 73, 0.7);
  color: #fff;
  font-weight: 700;
  line-height: 1.4;
  backdrop-filter: blur(12px);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

.pill--tint {
  background: var(--warm-soft);
  color: #7f5326;
}

.hero-panel__card,
.card,
.note-card,
.mini-panel,
.cta-card,
.timeline li,
.profile-list div {
  border: 1px solid rgba(15, 75, 73, 0.1);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.hero-panel__card {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 1.5rem;
}

.hero-panel__card h2 {
  font-size: 1.6rem;
  line-height: 1.05;
}

.feature-list {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
}

.feature-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}

.feature-list span {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-top: 0.2rem;
  border-radius: 999px;
  background: var(--accent-quiet);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.feature-list strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 1rem;
}

.section {
  padding-top: 2rem;
}

.mini-panel span {
  color: var(--muted);
  line-height: 1.6;
}

.section-header {
  max-width: 46rem;
  margin-bottom: 1.25rem;
}

.section-header h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.8rem);
  line-height: 1.03;
  margin-bottom: 1rem;
}

.cards-grid {
  display: grid;
  gap: 1rem;
}

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

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

.card,
.note-card {
  padding: 1.35rem;
  box-shadow: 0 14px 30px rgba(20, 48, 50, 0.06);
}

.card h3,
.note-card h3 {
  font-size: 1.45rem;
  line-height: 1.08;
  margin-bottom: 0.7rem;
}

.section--split .split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1rem;
}

.note-card--alert {
  background: linear-gradient(180deg, rgba(154, 67, 58, 0.08) 0%, rgba(255, 250, 244, 0.96) 100%);
  border-color: rgba(154, 67, 58, 0.18);
}

.note-card--alert .card-kicker,
.note-card--alert h3 {
  color: var(--danger);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.timeline li {
  position: relative;
  padding: 1.4rem;
  box-shadow: 0 14px 32px rgba(20, 48, 50, 0.06);
}

.timeline li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  margin-bottom: 1rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.timeline h3 {
  margin-bottom: 0.7rem;
  font-size: 1.3rem;
}

.section--profile {
  padding-top: 2.4rem;
}

.profile-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1rem;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.profile-card__copy {
  padding: 0.5rem;
}

.profile-card__copy h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.9rem);
  margin-bottom: 1rem;
}

.profile-list {
  display: grid;
  gap: 0.9rem;
  margin: 1.5rem 0 0;
}

.profile-list div {
  padding: 1rem 1.1rem;
}

.profile-list dt {
  margin-bottom: 0.35rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

.profile-card__aside {
  display: grid;
  align-content: start;
  gap: 0.9rem;
}

.mini-panel {
  padding: 1.15rem;
}

.mini-panel strong {
  display: block;
  font-size: 1.1rem;
  line-height: 1.35;
  margin-bottom: 0.3rem;
}

.cta-section {
  padding-top: 2.4rem;
}

.cta-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.6rem;
  background: linear-gradient(135deg, var(--accent-strong) 0%, var(--accent) 100%);
  color: #fff;
  box-shadow: 0 26px 60px rgba(15, 75, 73, 0.24);
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: auto -80px -100px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 72%);
}

.cta-card .eyebrow,
.cta-card h2,
.cta-card p {
  color: #fff;
}

.cta-card h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.6rem);
  line-height: 1.03;
  margin-bottom: 0.95rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.8rem;
  position: relative;
  z-index: 1;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 10px 25px rgba(20, 48, 50, 0.05);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.faq-item[open] {
  border-color: rgba(15, 75, 73, 0.28);
  background: var(--surface-strong);
  box-shadow: 0 16px 36px rgba(20, 48, 50, 0.09);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--accent-quiet);
  color: var(--accent);
  font-family: "Manrope", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--accent);
  color: #fff;
}

.faq-answer {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--muted);
}

.faq-answer p {
  margin: 0;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem 2rem;
  margin-top: 2rem;
  padding: 1.5rem 0 0.5rem;
  border-top: 1px solid var(--line);
}

.footer-identity {
  min-width: 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 100%;
  border-radius: 12px;
}

.footer-logo {
  display: block;
  flex: 0 0 auto;
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
}

.footer-brand__copy {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  line-height: 1.5;
}

.footer-brand__copy strong {
  font-size: 1rem;
}

.footer-brand__copy > span,
.footer-description {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-description {
  max-width: 31rem;
  margin-top: 0.85rem;
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.footer-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--accent);
  background: var(--surface);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.footer-contact--phone {
  background: var(--accent-soft);
  border-color: transparent;
  font-weight: 800;
}

.phone-cta {
  flex-direction: column;
  gap: 0.25rem;
  max-width: 100%;
  line-height: 1.4;
  text-align: center;
}

.phone-cta__number {
  white-space: nowrap;
}

.footer-contact:hover,
.footer-contact:focus-visible {
  background: var(--accent-quiet);
  border-color: var(--accent);
}

.reveal {
  animation: fade-up 0.8s ease both;
}

.reveal--1 {
  animation-delay: 0.08s;
}

.reveal--2 {
  animation-delay: 0.18s;
}

.reveal--3 {
  animation-delay: 0.3s;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(15, 75, 73, 0.28);
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .hero,
  .profile-card,
  .cta-card,
  .section--split .split-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-copy h1 {
    max-width: none;
  }
}

@media (max-width: 900px) {
  .site-header {
    position: static;
    border-radius: 22px;
  }

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

}

@media (max-width: 720px) {
  .page-shell {
    width: 100%;
    padding-inline: 20px;
    overflow-wrap: anywhere;
  }

  .site-header {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
  }

  .brand {
    gap: 0.75rem;
  }

  .brand-copy {
    min-width: 0;
  }

  .hero,
  .profile-card,
  .cta-card,
  .section--split .split-grid,
  .cards-grid--four,
  .cards-grid--two,
  .timeline {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 0.75rem;
  }

  .hero-copy h1 {
    font-size: clamp(1.85rem, 7.5vw, 2.8rem);
  }

  .hero-panel {
    height: auto;
    padding: 16px;
    border-radius: var(--radius-lg);
  }

  .hero-panel__card,
  .card,
  .note-card,
  .timeline li,
  .profile-card,
  .faq-item,
  .cta-card {
    padding: 20px;
  }

  .profile-card__copy {
    padding: 0;
  }

  .profile-list div,
  .mini-panel {
    padding: 16px;
  }

  .feature-list li {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
  }

  .eyebrow,
  .card-kicker,
  .mini-panel__label,
  .profile-list dt {
    letter-spacing: 0.08em;
  }

  .eyebrow::before,
  .card-kicker::before,
  .mini-panel__label::before {
    flex-shrink: 0;
  }

  .faq-question {
    gap: 0.75rem;
  }

  .faq-question > span:first-child {
    min-width: 0;
  }

  .doctor-portrait figcaption {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  .button {
    min-width: 0;
    padding-inline: 1rem;
    line-height: 1.4;
    text-align: center;
  }

  .hero-actions,
  .cta-actions,
  .site-nav {
    width: 100%;
  }

  .hero-actions .button,
  .cta-actions .button,
  .site-nav .button {
    width: 100%;
  }

  .site-footer {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.5rem 0 0.5rem;
  }

  .footer-contacts {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
