:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #18343b;
  background: #f7f6f2;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at 92% 4%, #e8eee9 0, transparent 30%), #f7f6f2;
}

button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; }
:focus-visible { outline: 3px solid #c89668; outline-offset: 3px; }

.site-wrap { max-width: 1240px; margin: 0 auto; padding: 26px 28px 20px; }
.site-header { display: flex; align-items: center; gap: 10px; min-height: 40px; margin-bottom: 28px; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border: 1.5px solid #204b56; border-radius: 50%; font-family: Georgia, serif; font-size: 22px; line-height: 1; }
.brand-name { font-size: 14px; font-weight: 800; letter-spacing: .18em; }
.header-note { margin-left: auto; color: #6c8183; font-size: 13px; }
.layout { display: grid; grid-template-columns: minmax(300px, .83fr) minmax(0, 1.17fr); gap: 22px; align-items: stretch; }

.doctor-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 700px;
  overflow: hidden;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 27px;
  color: #fff;
  background: #204752;
  isolation: isolate;
}
.doctor-panel::before, .doctor-panel::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; }
.doctor-panel::before { width: 440px; height: 440px; top: -215px; right: -245px; border: 1px solid rgb(255 255 255 / 22%); box-shadow: 0 0 0 75px rgb(255 255 255 / 4%), 0 0 0 150px rgb(255 255 255 / 3%); }
.doctor-panel::after { width: 310px; height: 310px; bottom: -200px; left: -180px; background: rgb(255 255 255 / 5%); }
.panel-kicker, .eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.panel-kicker { color: #b8d5d2; }
.doctor-avatar { display: block; width: 104px; height: 104px; margin: 62px 0 26px; border: 1px solid rgb(255 255 255 / 35%); border-radius: 50%; object-fit: cover; object-position: center 32%; background: #37606a; }
.doctor-avatar[hidden] { display: none; }
.doctor-panel h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(33px, 3.8vw, 50px); font-weight: 400; letter-spacing: -.035em; line-height: 1.12; }
.doctor-panel__bottom { display: grid; gap: 26px; margin-top: 48px; padding-top: 25px; border-top: 1px solid rgb(255 255 255 / 20%); }
.doctor-profile__section h2 { margin: 0 0 13px; color: #b8d5d2; font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.doctor-profile__specialties { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.doctor-profile__specialties li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgb(255 255 255 / 12%); font-size: 14px; }
.doctor-profile__specialties li:first-child { padding-top: 0; }
.doctor-profile__specialties li:last-child { padding-bottom: 0; border-bottom: 0; }
.doctor-profile__specialties strong { font-weight: 650; }
.doctor-profile__specialties span { flex: none; color: #b9d3d1; font-size: 13px; }
.doctor-profile__formats { display: flex; flex-wrap: wrap; gap: 8px; }
.doctor-profile__formats span { padding: 7px 11px; border: 1px solid rgb(255 255 255 / 24%); border-radius: 999px; color: #e4f0ec; background: rgb(255 255 255 / 8%); font-size: 13px; }

.flow-panel { min-height: 700px; padding: clamp(25px, 3.5vw, 46px); border: 1px solid #e6e9e5; border-radius: 27px; background: #fff; box-shadow: 0 20px 55px rgb(29 56 53 / 5%); }
.demo-banner { display: flex; align-items: center; gap: 9px; width: fit-content; padding: 7px 11px; border-radius: 999px; color: #7f5b30; background: #fff4e4; font-size: 11px; font-weight: 650; }
.demo-banner__dot { width: 6px; height: 6px; border-radius: 50%; background: #c9904f; }
.flow-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 31px 0 21px; }
.eyebrow { margin: 0 0 8px; color: #799191; }
.flow-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(29px, 3vw, 39px); font-weight: 400; letter-spacing: -.035em; }
.flow-heading__count { flex: none; padding-bottom: 6px; color: #71878a; font-size: 13px; }
.progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 34px; }
.progress span { height: 4px; border-radius: 999px; background: #e9efec; }
.progress span.is-active { background: #295866; }
.step-label { margin: 0 0 9px; color: #63828a; font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.step-title { margin: 0; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; letter-spacing: -.025em; }
.step-title + .choice-list { margin-top: 24px; }
.step-description { margin: 10px 0 24px; color: #64777b; font-size: 14px; line-height: 1.6; }
.choice-list { display: grid; gap: 11px; }
.choice { display: flex; align-items: center; gap: 17px; width: 100%; min-height: 78px; padding: 16px 18px; border: 1.5px solid #e5ebea; border-radius: 16px; color: #183a44; background: #f9fbfa; text-align: left; transition: border-color .15s, background .15s, transform .15s; }
.choice:hover:not(:disabled), .choice.is-selected { border-color: #789da1; background: #eff7f5; }
.choice:hover:not(:disabled) { transform: translateY(-1px); }
.choice:disabled { opacity: .55; }
.choice__icon { display: grid; place-items: center; flex: 0 0 39px; width: 39px; height: 39px; border-radius: 11px; color: #2a6070; background: #e3efec; font-size: 21px; }
.choice__body { flex: 1; }
.choice strong, .choice small { display: block; }
.choice strong { font-size: 15px; }
.choice small { margin-top: 4px; color: #70858a; font-size: 12px; line-height: 1.4; }
.choice__price { display: block; margin-top: 9px; color: #285866; font-size: 13px; font-weight: 700; line-height: 1.4; }
.choice__arrow { color: #8aa3a7; font-size: 22px; }
.service-price { margin: -8px 0 20px; color: #285866; font-size: 14px; font-weight: 600; }
.service-price strong { font-size: 17px; }
.info-card { margin-top: 19px; padding: 16px 18px; border: 1px solid #e3e9e8; border-radius: 14px; color: #4b686d; background: #f5f9f7; font-size: 13px; line-height: 1.6; }
.info-card strong { display: block; margin-bottom: 4px; color: #214651; }
.info-card--warm { border-color: #f0e4d2; color: #6d624f; background: #fffbf4; }
.info-card--warm strong { color: #655339; }
.info-card a { color: #245d72; font-weight: 700; }
.input-block { display: grid; gap: 7px; margin-top: 18px; }
.input-block label { color: #304f58; font-size: 13px; font-weight: 700; }
.input-block input { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #ccd9d9; border-radius: 11px; color: #173b45; background: #fff; outline: none; }
.input-block input:focus { border-color: #397484; box-shadow: 0 0 0 3px rgb(57 116 132 / 11%); }
.input-block input[aria-invalid="true"] { border-color: #bf654f; }
.field-help { margin: 0; color: #77898b; font-size: 12px; }
.field-error { margin: 0; color: #a74e3b; font-size: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 13px; }
.form-group-title { margin: 27px 0 0; padding-top: 19px; border-top: 1px solid #e9eeec; font-size: 15px; }
.form-group-title:first-of-type { margin-top: 0; padding-top: 0; border: 0; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 23px; color: #536d72; font-size: 12px; line-height: 1.55; }
.consent input { flex: none; width: 17px; height: 17px; margin: 1px 0 0; accent-color: #295866; }
.consent a { color: #246a87; text-decoration: underline; text-underline-offset: 2px; }
.field-error--consent { margin: 6px 0 0 27px; }
.step-actions { display: flex; align-items: center; gap: 10px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 11px 20px; border: 1px solid transparent; border-radius: 11px; font-size: 13px; font-weight: 750; transition: background .15s, transform .15s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button--primary { color: #fff; background: #285866; }
.button--primary:hover:not(:disabled) { background: #173e4b; }
.button--primary:disabled { color: #e5eeee; background: #99adb0; }
.button--secondary { border-color: #d6e1df; color: #365d65; background: #fff; }
.button--secondary:hover { background: #f3f8f6; }
.button--wide { flex: 1; }

.calendar { padding: 18px; border: 1px solid #e4eae8; border-radius: 18px; background: #fbfcfb; }
.calendar__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 20px; }
.calendar__month { font-size: 16px; font-weight: 700; text-transform: capitalize; }
.calendar__nav { display: flex; gap: 5px; }
.calendar__nav button { width: 34px; height: 34px; border: 1px solid #dce7e5; border-radius: 9px; color: #285866; background: #fff; font-size: 21px; line-height: 1; }
.calendar__nav button:disabled { opacity: .4; }
.calendar__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.calendar__weekday { padding: 5px 0 9px; color: #8aa0a2; font-size: 11px; font-weight: 750; text-align: center; }
.calendar__day { min-width: 0; height: 41px; border: 1px solid transparent; border-radius: 10px; color: #a7b6b7; background: transparent; font-size: 13px; }
.calendar__day.has-slots { color: #255565; background: #e9f3f1; font-weight: 750; }
.calendar__day.has-slots:hover { border-color: #8eaeb1; }
.calendar__day.is-selected { color: #fff; background: #285866; }
.calendar__day.is-empty { visibility: hidden; }
.calendar__day:disabled { cursor: default; }
.slot-section { margin-top: 22px; }
.slot-section h4 { margin: 0 0 12px; font-size: 14px; }
.slot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.slot { min-height: 44px; border: 1px solid #d2e0de; border-radius: 10px; color: #285866; background: #fff; font-size: 13px; font-weight: 700; }
.slot:hover { border-color: #5c8d93; background: #f0f8f5; }
.empty-state { padding: 19px; border-radius: 12px; color: #6c7f82; background: #f3f6f5; font-size: 13px; line-height: 1.6; }
.empty-state a { color: #245d72; font-weight: 700; }

.review-card { overflow: hidden; border: 1px solid #e0e9e6; border-radius: 17px; }
.review-card__head { padding: 19px 21px; color: #fff; background: #285866; }
.review-card__head small { display: block; margin-bottom: 5px; color: #cee1df; }
.review-card__head strong { font-size: 17px; }
.review-card__body { display: grid; gap: 0; padding: 6px 21px; }
.review-row { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid #edf1ef; font-size: 13px; }
.review-row:last-child { border-bottom: 0; }
.review-row span { color: #708488; }
.review-row strong { max-width: 60%; text-align: right; font-weight: 650; }
.result-icon { display: grid; place-items: center; width: 63px; height: 63px; margin-bottom: 18px; border-radius: 50%; color: #2b665a; background: #e8f4ed; font-size: 28px; }
.result-copy { color: #62787c; font-size: 14px; line-height: 1.6; }
.site-footer { display: flex; justify-content: space-between; padding: 19px 4px 0; color: #829195; font-size: 12px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 830px) {
  .site-wrap { padding: 18px 16px 22px; }
  .site-header { margin-bottom: 17px; }
  .layout { grid-template-columns: 1fr; gap: 14px; }
  .doctor-panel { min-height: auto; padding: 25px; }
  .doctor-avatar { width: 72px; height: 72px; margin: 22px 0 15px; }
  .doctor-panel h1 { font-size: 34px; }
  .doctor-panel__bottom { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 24px; padding-top: 18px; }
  .flow-panel { min-height: 600px; padding: 25px; }
}

@media (max-width: 520px) {
  .header-note { font-size: 11px; }
  .doctor-panel__bottom { grid-template-columns: 1fr; }
  .flow-panel { padding: 22px 18px; }
  .flow-heading { margin-top: 25px; }
  .form-grid { grid-template-columns: 1fr; }
  .slot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step-actions { flex-wrap: wrap; }
  .step-actions .button--wide { flex: 1 1 100%; order: -1; }
  .review-row { gap: 12px; }
}
