:root {
  color-scheme: light;
  --ink: #1b2b34;
  --muted: #64727a;
  --line: #dbe5ea;
  --paper: #f4f8fa;
  --surface: #ffffff;
  --sage: #5f7f84;
  --deep: #153f4d;
  --rose: #bd7773;
  --rose-dark: #a65f5c;
  --blue: #2f7f9f;
  --warm: #edf3f5;
  --shadow: 0 18px 42px rgba(21, 63, 77, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  min-height: 78px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--deep);
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 16px;
}

.nav a,
.header-phone {
  text-decoration: none;
}

.nav a {
  white-space: nowrap;
}

.nav a:hover,
.header-phone:hover {
  color: var(--rose-dark);
}

.header-phone {
  font-weight: 700;
  color: var(--deep);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: stretch;
  width: min(1180px, calc(100% - 36px));
  min-height: auto;
  margin: 34px auto 0;
  padding: clamp(28px, 5vw, 52px);
  overflow: hidden;
  isolation: isolate;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-media {
  display: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -180px;
  top: -160px;
  z-index: -1;
  width: 420px;
  height: 420px;
  background: #e9f3f6;
  border-radius: 50%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -1;
  width: 42%;
  background: linear-gradient(180deg, #eef6f8 0%, #ffffff 100%);
}

.hero-content {
  width: 100%;
  max-width: 680px;
  margin: 0;
  padding: 6px 0;
}

.hero-photo {
  align-self: stretch;
  justify-self: stretch;
  width: 100%;
  aspect-ratio: 535 / 700;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
  background: #f2f2f2;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

h1 {
  max-width: 640px;
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 4.4vw, 60px);
  line-height: 1.08;
  letter-spacing: 0;
}

.doctor-title {
  margin-bottom: 26px;
  color: var(--blue);
  font-size: 24px;
  font-weight: 800;
}

h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.25;
}

.lead {
  max-width: 650px;
  color: #40515a;
  font-size: 20px;
}

.hero-badges {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.hero-badges li {
  position: relative;
  padding-left: 26px;
  color: var(--ink);
  font-weight: 700;
}

.hero-badges li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
}

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

.button,
.doc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 12px 18px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
}

.primary {
  color: #fff;
  background: var(--deep);
}

.primary:hover {
  background: #0f303b;
}

.secondary,
.doc-button {
  color: var(--deep);
  background: #f6fafb;
  border-color: var(--line);
}

.secondary:hover,
.doc-button:hover {
  border-color: var(--sage);
}

.full {
  width: 100%;
}

.notice-band {
  width: min(1180px, calc(100% - 36px));
  margin: 18px auto 0;
  padding: 18px 22px;
  color: var(--deep);
  background: #e7f1f4;
  border: 1px solid #d1e2e8;
  border-radius: 6px;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 96px) 0;
}

.intro,
.booking {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.text-column {
  color: var(--muted);
  font-size: 18px;
}

.doctor-note {
  margin-top: 28px;
  padding: 22px 24px;
  color: var(--deep);
  background: #eef6f8;
  border-left: 4px solid var(--blue);
  border-radius: 0 6px 6px 0;
}

.doctor-note p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.32;
}

.booking-info {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
}

.booking-info div {
  padding: 18px 20px;
  background: #eef6f8;
  border: 1px solid #d1e2e8;
  border-radius: 6px;
}

.booking-info span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 14px;
}

.booking-info strong {
  display: block;
  color: var(--deep);
  font-size: 22px;
  line-height: 1.3;
}

.muted {
  width: 100%;
  max-width: none;
  padding-right: max(18px, calc((100% - 1180px) / 2));
  padding-left: max(18px, calc((100% - 1180px) / 2));
  background: #eaf3f6;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 178px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.service-card p,
.booking-copy p,
address {
  color: var(--muted);
}

.credentials {
  background: var(--surface);
}

.booking {
  width: min(1180px, calc(100% - 36px));
  padding: clamp(58px, 8vw, 96px) 0;
  background: transparent;
}

address {
  margin-top: 28px;
  font-style: normal;
}

.booking-form {
  padding: clamp(20px, 4vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.booking-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: #35332f;
  font-weight: 750;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  border: 1px solid #cfc7bc;
  border-radius: 4px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  outline: 3px solid rgba(47, 127, 159, 0.18);
  border-color: var(--blue);
}

.checkbox {
  grid-template-columns: 20px 1fr;
  align-items: start;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.link-button {
  display: inline;
  border: 0;
  padding: 0;
  color: var(--blue);
  background: transparent;
  cursor: pointer;
  text-decoration: underline;
}

.form-status {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--deep);
  font-weight: 700;
}

.legal {
  width: 100%;
  max-width: none;
  padding-right: max(18px, calc((100% - 1180px) / 2));
  padding-left: max(18px, calc((100% - 1180px) / 2));
  background: var(--deep);
  color: #fff;
}

.legal .eyebrow {
  color: #a8d4e3;
}

.legal .doc-button {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding: 26px max(18px, calc((100% - 1180px) / 2));
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.modal {
  width: min(860px, calc(100% - 28px));
  max-height: min(82vh, 760px);
  border: 0;
  border-radius: 6px;
  padding: 0;
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(18, 28, 25, 0.62);
}

.modal article {
  position: relative;
  padding: clamp(22px, 5vw, 44px);
}

.modal h2 {
  padding-right: 42px;
  font-size: clamp(28px, 4vw, 42px);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.doc-text {
  max-height: 58vh;
  overflow: auto;
  padding-right: 10px;
  color: var(--muted);
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    padding: 14px 16px 10px;
  }

  .nav {
    flex-wrap: wrap;
    width: 100%;
    gap: 10px 18px;
    overflow-x: visible;
    padding-bottom: 4px;
    font-size: 15px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .header-phone {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
    width: min(680px, calc(100% - 28px));
    margin-top: 18px;
    padding: 28px;
  }

  .hero::after {
    right: -150px;
    top: -160px;
    width: 340px;
    height: 340px;
  }

  .hero-photo {
    justify-self: center;
    width: min(300px, 100%);
    order: -1;
  }

  h1 {
    font-size: 44px;
  }

  .intro,
  .booking,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .notice-band,
  .booking {
    width: min(680px, calc(100% - 28px));
  }

  .muted,
  .legal {
    width: 100%;
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (max-width: 620px) {
  .brand {
    max-width: 100%;
    font-size: 15px;
    white-space: normal;
  }

  .nav {
    gap: 8px 14px;
    font-size: 13px;
  }

  .hero {
    width: calc(100% - 24px);
    margin-top: 12px;
    padding: 18px;
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  .hero-content {
    width: 100%;
  }

  .hero-photo {
    width: min(230px, 100%);
  }

  h1 {
    font-size: 30px;
    line-height: 1.12;
    overflow-wrap: normal;
  }

  .lead {
    font-size: 17px;
  }

  .doctor-title {
    margin-bottom: 18px;
    font-size: 19px;
  }

  .hero-badges {
    margin-top: 20px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section,
  .notice-band,
  .booking {
    width: calc(100% - 24px);
  }

  .section {
    padding: 46px 0;
  }

  .intro {
    gap: 18px;
  }

  h2 {
    font-size: 30px;
  }

  .text-column {
    font-size: 16px;
  }

  .doctor-note {
    padding: 18px;
  }

  .doctor-note p {
    font-size: 21px;
  }

  .booking-info div {
    padding: 16px;
  }

  .booking-info strong {
    font-size: 20px;
  }

  .service-grid {
    gap: 12px;
  }

  .service-card {
    min-height: 0;
    padding: 20px;
  }

  .legal {
    width: calc(100% - 24px);
    padding: 40px 22px 46px;
    border-radius: 0;
  }

  .legal h2 {
    font-size: 30px;
    line-height: 1.12;
  }

  .legal-actions {
    display: grid;
    gap: 12px;
  }

  .legal .doc-button {
    width: 100%;
    min-height: 56px;
    justify-content: flex-start;
    padding: 14px 16px;
    text-align: left;
    white-space: normal;
  }

  .site-footer {
    padding: 24px 22px;
  }
}
