:root {
  --bg: #fbfaf7;
  --bg-alt: #f2f0ea;
  --ink: #15211f;
  --muted: #5d6b68;
  --line: #e2ded4;
  --accent: #0f7a6c;
  --accent-ink: #ffffff;
  --accent-soft: #dff1ed;
  --warm: #f4b860;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(21, 33, 31, .05), 0 12px 32px -12px rgba(21, 33, 31, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 "Manrope", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { font-family: "Unbounded", "Manrope", sans-serif; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 700; }
h2 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 700; }
h3 { font-size: 17px; font-weight: 500; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

.demo-bar {
  background: var(--ink); color: #cfd8d6; font-size: 13px; text-align: center; padding: 7px 16px;
}
.demo-bar a { color: var(--warm); }

.header { position: sticky; top: 0; z-index: 20; background: rgba(251, 250, 247, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; text-decoration: none; }
.logo__mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 20px; line-height: 1; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 0;
  background: var(--accent); color: var(--accent-ink);
  font: 700 16px "Manrope", sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .15s, background .15s;
}
.btn:hover { background: #0b6358; }
.btn:active { transform: scale(.98); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { background: var(--bg-alt); }

.hero { padding: 64px 0 72px; }
.hero__in { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; }
.lead { font-size: 19px; color: var(--muted); max-width: 34em; margin: 20px 0 28px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.facts { list-style: none; padding: 0; margin: 36px 0 0; display: flex; gap: 36px; }
.facts b { display: block; font-family: "Unbounded", sans-serif; font-size: 22px; font-weight: 500; }
.facts span { color: var(--muted); font-size: 14px; }

.slot-card { background: var(--card); border-radius: 24px; padding: 26px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.slot-card__title { font-weight: 800; margin: 0 0 16px; }
.slot-card__day { font-size: 13px; color: var(--muted); margin: 14px 0 8px; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slots span { padding: 8px 14px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; }
.slots .is-busy { background: var(--bg-alt); color: #a7aeac; text-decoration: line-through; }
.slot-card__note { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--muted); }

.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }
.sub { color: var(--muted); margin: 10px 0 36px; font-size: 17px; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.service__icon { font-size: 26px; }
.service p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.service__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.service__price { font-weight: 800; font-size: 18px; }
.service button { border: 0; background: none; color: var(--accent); font: 700 15px "Manrope", sans-serif; cursor: pointer; padding: 0; }

.doctors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.doctor { background: var(--card); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.doctor__ph { width: 100%; aspect-ratio: 4 / 3; border-radius: 14px; background: var(--c); display: grid; place-items: center; font: 500 40px "Unbounded", sans-serif; color: rgba(21, 33, 31, .55); margin-bottom: 18px; }
.doctor p { color: var(--muted); margin: 6px 0 14px; font-size: 15px; }
.tag { display: inline-block; font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 16px; }
.steps b { display: block; margin-bottom: 6px; }
.steps span { color: var(--muted); font-size: 15px; }

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.reviews blockquote { margin: 0; background: var(--card); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.reviews blockquote::before { content: "★★★★★"; color: var(--warm); letter-spacing: 2px; }
.reviews p { margin: 12px 0 16px; }
.reviews cite { color: var(--muted); font-style: normal; font-size: 14px; }

.booking { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.booking > * { min-width: 0; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 10px; }

.form, .done { background: var(--card); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.progress { display: flex; gap: 8px; margin-bottom: 24px; }
.progress span { flex: 1; font-size: 13px; font-weight: 700; color: #a7aeac; padding-top: 10px; border-top: 3px solid var(--line); }
.progress .is-on { color: var(--accent); border-color: var(--accent); }
.step { display: none; border: 0; padding: 0; margin: 0; min-width: 0; }
.step.is-active { display: block; }
legend { font: 500 20px "Unbounded", sans-serif; margin-bottom: 18px; padding: 0; }

.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
.choices--time { grid-template-columns: repeat(4, 1fr); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: block; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line); cursor: pointer; font-weight: 600; font-size: 15px; text-align: center; transition: border-color .15s, background .15s; }
.choice span small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.choice input:checked + span small { color: var(--accent); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice input:disabled + span { color: #b8bebc; background: var(--bg-alt); cursor: not-allowed; text-decoration: line-through; }

.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; }
.days .choice span { min-width: 74px; padding: 10px 8px; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field span { font-size: 14px; font-weight: 700; }
.field input, .field select, .field textarea {
  font: 16px "Manrope", sans-serif; padding: 13px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.agree input { margin-top: 3px; accent-color: var(--accent); }

.form__error { color: #b3261e; font-size: 14px; min-height: 1.4em; margin: 10px 0 0; }
.form__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; }
.form__nav .btn:last-child { margin-left: auto; }

.done { text-align: center; }
.done__icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 30px; font-weight: 800; }
.done p { color: var(--muted); margin: 12px 0 24px; }

.footer { background: var(--ink); color: #cfd8d6; padding: 48px 0; }
.footer__in { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 24px; }
.footer .logo { color: #fff; }
.footer p { margin: 8px 0 0; }
.footer__note { font-size: 14px; color: #8fa09c; }

.sticky-cta { display: none; }

@media (max-width: 900px) {
  .nav { display: none; }
  .header .btn { margin-left: auto; }
  .hero { padding: 40px 0 56px; }
  .hero__in, .booking { grid-template-columns: 1fr; gap: 32px; }
  .services, .doctors, .reviews { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer__in { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .services, .doctors, .reviews, .steps { grid-template-columns: 1fr; }
  .facts { gap: 22px; }
  .choices--time { grid-template-columns: repeat(3, 1fr); }
  .form, .done { padding: 20px; }
  .sticky-cta {
    display: flex; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30;
    justify-content: center; padding: 16px; border-radius: 999px; background: var(--accent); color: #fff;
    font-weight: 800; text-decoration: none; box-shadow: 0 10px 30px -8px rgba(15, 122, 108, .6);
  }
  .footer { padding-bottom: 96px; }
}
