@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/manrope-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/manrope-400-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/manrope-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/manrope-500-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/manrope-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/manrope-600-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/manrope-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/manrope-700-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --color-bg: #ffffff;
  --color-bg-soft: #f5f7f4;
  --color-bg-alt: #eef3ec;
  --color-ink: #1e2a24;
  --color-ink-muted: #5e6b64;
  --color-line: #e3e8e1;
  --color-primary: #39b54a;
  --color-primary-dark: #2e9440;
  --color-primary-soft: #e7f6e9;
  --color-white: #ffffff;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(30, 42, 36, 0.06);
  --shadow-md: 0 10px 30px rgba(30, 42, 36, 0.08);
  --shadow-lg: 0 24px 60px rgba(30, 42, 36, 0.12);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: Manrope, "Segoe UI", system-ui, sans-serif;
  --container: 1240px;
  --header-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html.is-locked,
html.is-locked body { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-ink);
  background: var(--color-bg-soft);
  line-height: 1.5;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

button,
input {
  font: inherit;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 80;
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.page {
  position: relative;
  overflow: clip;
}

.page::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -120px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at 30% 30%, rgba(57, 181, 74, 0.2), rgba(57, 181, 74, 0.04) 58%, transparent 72%);
  border-radius: 58% 42% 46% 54% / 48% 38% 62% 52%;
  pointer-events: none;
  z-index: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  transition: box-shadow 200ms var(--ease);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header-main {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 0 0 auto;
}

.logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.logo span {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-ink);
  border-radius: 10px;
  transition: color 160ms var(--ease);
}

.nav__link:hover,
.nav__item:hover > .nav__link,
.nav__item:focus-within > .nav__link,
.nav__link[aria-current="page"] {
  color: var(--color-primary);
}

.nav__sub {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 230px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 180ms var(--ease);
}

.nav__item:hover .nav__sub,
.nav__item:focus-within .nav__sub {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.nav__sub a {
  display: block;
  padding: 10px 12px;
  text-decoration: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
}

.nav__sub a:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: var(--color-ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.icon-btn:hover {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.icon-btn[data-a11y][aria-expanded="true"] {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.icon-btn:focus {
  outline: none;
}

.icon-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: 180ms var(--ease);
  white-space: nowrap;
}

.btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  box-shadow: none;
}

.btn--ghost:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn--sm {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.btn:disabled,
.btn:disabled:hover {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  background: var(--color-primary);
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
}

.burger span,
.burger span::before,
.burger span::after {
  display: block;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
  position: relative;
}

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
}

.burger span::before { top: -7px; }
.burger span::after { top: 7px; }

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  padding-bottom: 8px;
  color: var(--color-ink-muted);
  font-size: 13px;
  font-weight: 500;
}

.header-bar a {
  text-decoration: none;
}

.header-bar a:hover { color: var(--color-primary); }

.header-bar__phone {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-ink);
}

.phone-mobile { display: none; }

.socials {
  display: flex;
  align-items: center;
  gap: 6px;
}

.socials a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--color-ink);
  border-radius: 50%;
  flex: 0 0 auto;
}

.socials a:hover {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.socials svg,
.socials .icon {
  width: 20px;
  height: 20px;
  display: block;
}

.icon--fill {
  fill: currentColor;
  stroke: none;
}

/* Drawer */
.drawer {
  display: none;
}

/* Brand + hero */
.home-top {
  position: relative;
  z-index: 1;
  padding: 28px 0 40px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(280px, 0.82fr);
  gap: 18px;
  min-height: 520px;
  align-items: stretch;
}

.hero__photo {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #ececec;
  min-height: 520px;
}

.hero__photo picture {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: 62% 28%;
}

.hero__cards {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  min-height: 520px;
}

.card-kids,
.card-appoint {
  border-radius: 28px;
  text-decoration: none;
  overflow: hidden;
  position: relative;
  display: block;
  min-height: 250px;
}

.card-kids {
  background: var(--color-primary);
  color: #fff;
  padding: 32px 28px;
}

.card-kids__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  opacity: 0.92;
}

.card-kids__name {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 12ch;
}

.card-kids__apple {
  position: absolute;
  right: 22px;
  top: 22px;
  width: 72px;
  height: 72px;
  object-fit: contain;
  opacity: 0.95;
}

.card-appoint {
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 28px 24px 24px;
}

.card-appoint__title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 11ch;
}

.card-appoint__text {
  margin: 0;
  max-width: 18ch;
  color: var(--color-ink-muted);
  font-size: 15px;
}

.card-appoint__chair {
  position: absolute;
  right: 4px;
  bottom: 10px;
  width: 52%;
  max-width: 230px;
  max-height: 82%;
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
}

.card-appoint__go {
  position: absolute;
  left: 24px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: grid;
  place-items: center;
}

.card-kids:hover,
.card-appoint:hover {
  transform: translateY(-2px);
  transition: transform 180ms var(--ease);
}

.card-appoint:hover { box-shadow: var(--shadow-md); }

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 22px;
  border: 1.5px solid #bfe6c4;
  border-radius: var(--radius-pill);
  background: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: 180ms var(--ease);
}

.pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 42, 36, 0.42);
}

.modal__box {
  position: relative;
  width: min(440px, 100%);
  background: #fff;
  border-radius: 28px;
  padding: 32px 28px 28px;
  box-shadow: var(--shadow-lg);
}

.modal__box h2 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.modal__box p {
  margin: 0 0 20px;
  color: var(--color-ink-muted);
}

.modal__box label {
  display: block;
  margin-bottom: 10px;
}

.modal__box input[type="text"],
.modal__box input[type="tel"] {
  width: 100%;
  height: 50px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 0 14px;
  outline: none;
}

.modal__box input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(57, 181, 74, 0.16);
}

.modal__check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0 18px;
  font-size: 13px;
  color: var(--color-ink-muted);
}

.modal__box .btn { width: 100%; height: 50px; }

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.modal__ok { margin: 0; font-weight: 600; color: var(--color-primary-dark); }

body.is-a11y {
  font-size: 18px;
}

@media (max-width: 1100px) {
  .nav { display: none; }
  .header-bar { display: none; }
  .header-tools .btn { display: none; }
  .phone-mobile { display: grid; place-items: center; }
  .burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .drawer {
    display: block;
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 50;
    padding: 24px 20px 32px;
    overflow: auto;
    transform: translateX(100%);
    transition: transform 280ms var(--ease);
  }
  .drawer.is-open { transform: none; }
  .drawer__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
  }
  .drawer nav a,
  .drawer nav button {
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    padding: 14px 0;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-ink);
  }
  .drawer .sub {
    display: none;
    padding: 0 0 8px 8px;
  }
  .drawer .item.is-open .sub { display: grid; }
  .drawer .sub a { font-size: 16px; font-weight: 500; color: var(--color-ink-muted); }
  .drawer__meta {
    margin-top: 28px;
    display: grid;
    gap: 12px;
    color: var(--color-ink-muted);
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero__photo { min-height: 360px; }
}

@media (max-width: 640px) {
  .container { width: min(var(--container), calc(100% - 32px)); }
  .hero__photo { min-height: 280px; border-radius: 24px; }
  .card-kids,
  .card-appoint { min-height: 220px; border-radius: 22px; }
  .card-kids__name,
  .card-appoint__title { font-size: 26px; }
  .pills { gap: 8px; }
  .pill { height: 40px; padding: 0 16px; font-size: 14px; }
  .home-top { padding-bottom: 28px; }
}

.benefits {
  position: relative;
  z-index: 1;
  padding: 8px 0 28px;
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefits__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  min-height: 188px;
  padding: 28px 14px 22px;
  text-align: center;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}

.benefits__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.benefits__icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  transition: background 220ms var(--ease), color 220ms var(--ease);
}

.benefits__icon .icon {
  width: 32px;
  height: 32px;
  stroke-width: 1.8;
}

.benefits__item:hover .benefits__icon {
  background: var(--color-primary);
  color: #fff;
}

.benefits__item p {
  margin: 0;
  max-width: 11.5em;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--color-ink);
}

.services {
  position: relative;
  z-index: 1;
  padding: 72px 0 120px;
}

.services__head {
  max-width: 720px;
  margin-bottom: 40px;
}

.services__head h2 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.services__head p {
  margin: 0;
  color: var(--color-ink-muted);
  font-size: 17px;
  line-height: 1.6;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 32px 28px 28px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-card .icon {
  width: 32px;
  height: 32px;
  margin-bottom: 22px;
  color: var(--color-primary);
}

.service-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.service-card p {
  margin: 0 0 auto;
  color: var(--color-ink-muted);
  font-size: 15px;
  line-height: 1.55;
}

.service-card span {
  margin-top: 22px;
  color: var(--color-primary);
  font-size: 15px;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .benefits__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .benefits { padding: 8px 0 16px; }
  .benefits__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .benefits__item { min-height: 0; padding: 22px 12px 18px; }
  .benefits__icon { width: 60px; height: 60px; }
  .benefits__icon .icon { width: 28px; height: 28px; }
  .benefits__item p { font-size: 15px; }
  .services { padding: 48px 0 72px; }
  .services__grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
}

.about {
  position: relative;
  z-index: 1;
  padding: 40px 0 100px;
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: stretch;
}

.about__text h2 {
  margin: 0 0 18px;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.about__text > p {
  margin: 0 0 24px;
  color: var(--color-ink-muted);
  font-size: 17px;
  line-height: 1.65;
}

.about__text ul {
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.about__text li {
  position: relative;
  padding-left: 28px;
  font-size: 16px;
  line-height: 1.5;
}

.about__text li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  box-shadow: inset 0 0 0 4px var(--color-primary);
}

.about__photo {
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 420px;
  height: 100%;
}

.about__photo picture,
.about__photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
}

.about__photo img {
  object-fit: cover;
  object-position: center;
  transition: transform 400ms var(--ease);
}

.about__photo:hover img {
  transform: scale(1.03);
}

.doctors {
  position: relative;
  z-index: 1;
  padding: 0 0 120px;
}

.doctors__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.doctors__head h2 {
  margin: 0 0 10px;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.doctors__head p {
  margin: 0;
  max-width: 640px;
  color: var(--color-ink-muted);
  font-size: 17px;
  line-height: 1.6;
}

.doctors__wrap {
  position: relative;
  padding: 0 56px;
}

.doctors__viewport {
  overflow: hidden;
}

.doctors__track {
  display: flex;
  gap: 20px;
  width: 100%;
  padding: 4px 2px 8px;
  transform: translate3d(0, 0, 0);
  transition: transform 520ms var(--ease);
  will-change: transform;
}

.doctor-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 calc((100% - 60px) / 4);
  scroll-snap-align: start;
  min-width: 220px;
}

.doctor-card__photo {
  display: block;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #e8eee8;
  margin-bottom: 16px;
}

.doctor-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 400ms var(--ease);
}

.doctor-card:hover .doctor-card__photo img {
  transform: scale(1.04);
}

.doctor-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.doctor-card p {
  margin: 0 0 4px;
  color: var(--color-ink-muted);
  font-size: 14px;
  line-height: 1.4;
}

.doctor-card__exp {
  min-height: 1.4em;
  font-weight: 500;
}

.doctor-card .btn {
  margin-top: auto;
}

.doctor-card > :nth-last-child(2) {
  margin-bottom: 14px;
}

.doctors__arrow {
  position: absolute;
  top: 34%;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  background: #fff;
  color: var(--color-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color 200ms var(--ease), color 200ms var(--ease),
    transform 200ms var(--ease);
}

.doctors__arrow:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.doctors__arrow:active {
  transform: scale(0.94);
}

.doctors__arrow--prev { left: 0; }
.doctors__arrow--next { right: 0; }

@media (max-width: 1100px) {
  .about__grid { grid-template-columns: 1fr; gap: 32px; }
  .about__photo,
  .about__photo img { min-height: 320px; }
  .doctors__head { flex-direction: column; align-items: flex-start; }
  .doctors__wrap { padding: 0 44px; }
  .doctor-card { flex-basis: calc((100% - 20px) / 2); }
}

.reviews {
  position: relative;
  z-index: 1;
  padding: 0 0 120px;
}

.reviews__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px 48px;
  align-items: start;
}

.reviews h2 {
  margin: 0 0 28px;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.reviews__wrap {
  margin-bottom: 28px;
  overflow-x: hidden;
}

.reviews__track {
  display: flex;
  width: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform 520ms var(--ease);
  will-change: transform;
}

.review-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-width: 0;
}

.review-card__top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px 14px;
  align-items: start;
  margin-bottom: 16px;
}

.review-card__quote {
  font-size: 56px;
  line-height: 0.7;
  color: var(--color-primary);
  font-weight: 600;
}

.review-card__name {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.review-card__date,
.review-card__src {
  margin: 4px 0 0;
  color: var(--color-ink-muted);
  font-size: 13px;
}

.review-card__stars {
  margin: 4px 0 0;
  color: var(--color-primary);
  display: flex;
  gap: 2px;
}

.review-card__text {
  margin: 0;
  color: var(--color-ink-muted);
  font-size: 16px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-card__text.is-open {
  display: block;
  overflow: visible;
}

.review-card__more {
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-primary);
  font-weight: 600;
  cursor: pointer;
}

.reviews__dots {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.reviews__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d5ddd4;
  cursor: pointer;
}

.reviews__dots button.is-active {
  background: var(--color-primary);
  width: 22px;
  border-radius: 99px;
}

.reviews__col--form {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 32px 32px 28px;
  box-shadow: var(--shadow-sm);
}

.reviews__col--form h2 {
  margin-bottom: 12px;
}

.appoint-mini__lead {
  margin: 0 0 22px;
  color: var(--color-ink-muted);
  font-size: 16px;
  line-height: 1.5;
}

.reviews__col--form .appoint-mini input[type="text"],
.reviews__col--form .appoint-mini input[type="tel"] {
  background: var(--color-bg-soft);
}

.appoint-mini__label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}

.reviews__col--form .appoint-mini__row .btn {
  width: 100%;
}

.appoint-mini {
  position: relative;
}

.appoint-mini__row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: stretch;
}

.appoint-mini input[type="text"],
.appoint-mini input[type="tel"] {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0 18px;
  outline: none;
  background: #fff;
}

.appoint-mini input:focus {
  box-shadow: 0 0 0 4px rgba(57, 181, 74, 0.16);
}

.appoint-mini__row .btn {
  height: 50px;
  padding: 0 26px;
}

.appoint-mini__check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  font-size: 13px;
  color: var(--color-ink-muted);
}

.appoint-mini__check a {
  color: var(--color-primary);
}

.appoint-mini__ok {
  margin: 16px 0 0;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.modal__check a {
  color: var(--color-primary);
}

@media (max-width: 1100px) {
  .reviews__grid { grid-template-columns: 1fr; gap: 40px; }
  .appoint-mini__row { grid-template-columns: 1fr; }
}

.find {
  position: relative;
  z-index: 1;
  padding: 0 0 80px;
}

.find__grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 48px;
  align-items: stretch;
}

.find h2 {
  margin: 0 0 28px;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.find__list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}

.find__list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}

.find__list .icon {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  margin-top: 2px;
}

.find__list p,
.find__list a {
  margin: 0;
  display: block;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.45;
}

.find__list a:hover { color: var(--color-primary); }

.find__note {
  margin: 4px 0 0;
  color: var(--color-ink-muted);
  font-size: 14px;
  line-height: 1.5;
}

.find__info > .find__note {
  margin: 0 0 20px;
}

.find__map {
  min-height: 420px;
  height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #e8eee8;
  display: grid;
  place-items: center;
  gap: 16px;
  text-align: center;
  color: var(--color-ink-muted);
  padding: 24px;
}

.find__map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
}

.find__map.is-ready {
  padding: 0;
  display: block;
}

.find__map-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.find__map-link:hover { text-decoration: underline; }

.site-footer {
  position: relative;
  z-index: 1;
  padding: 48px 0 28px;
  border-top: 1px solid var(--color-line);
  background: #fff;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 0.85fr) 1.1fr;
  gap: 32px 24px;
  padding-bottom: 36px;
}

.footer__brand p {
  margin: 12px 0 16px;
  color: var(--color-ink-muted);
  font-size: 14px;
  line-height: 1.5;
  max-width: 240px;
}

.footer__a11y {
  border: 0;
  background: none;
  padding: 0;
  color: var(--color-ink-muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__a11y:hover,
.footer__a11y[aria-pressed="true"] {
  color: var(--color-primary);
}

.footer__col {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer__col p {
  margin: 0 0 6px;
  font-weight: 600;
}

.footer__col a,
.footer__col span {
  color: var(--color-ink-muted);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.45;
}

.footer__col a:hover { color: var(--color-primary); }

.footer__col .socials { margin-top: 8px; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--color-line);
  color: var(--color-ink-muted);
  font-size: 13px;
}

.footer__bottom p { margin: 0; }
.footer__bottom a {
  color: inherit;
  text-decoration: none;
}
.footer__bottom a:hover { color: var(--color-primary); }

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  background: #fff;
  color: var(--color-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.to-top[hidden] { display: none; }

.to-top:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

@media (max-width: 1100px) {
  .find__grid { grid-template-columns: 1fr; }
  .find__map,
  .find__map iframe { min-height: 320px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .about { padding: 16px 0 64px; }
  .doctors { padding-bottom: 72px; }
  .doctor-card { flex-basis: 84%; }
  .reviews { padding-bottom: 72px; }
  .reviews__col--form { padding: 24px 20px; }
  .find { padding-bottom: 48px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
}

.inner {
  background: #fff;
}

.page-hero {
  background: var(--color-bg-soft);
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--color-line);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 12px;
  color: var(--color-ink-muted);
  font-size: 13px;
}

.crumbs a {
  color: inherit;
  text-decoration: none;
}

.crumbs a:hover { color: var(--color-primary); }

.page-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.page-lead {
  margin: 0 0 32px;
  max-width: 72ch;
  font-size: 17px;
  color: var(--color-ink-muted);
  line-height: 1.65;
}

.page-note {
  margin: 28px 0 0;
  color: var(--color-ink-muted);
  font-size: 14px;
}

.about--page {
  padding: 56px 0 72px;
}

.about--page .about__text > p {
  font-size: 17px;
}

.panel {
  padding: 0 0 72px;
}

.panel h2,
.price-wrap h2,
.reviews--page h2 {
  margin: 0 0 22px;
  font-size: clamp(28px, 3.4vw, 36px);
  letter-spacing: -0.03em;
}

.panel--soft {
  padding: 48px 0;
  background: var(--color-bg-soft);
  margin-bottom: 24px;
}

.panel__split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.7fr);
  gap: 40px;
  align-items: start;
}

.panel__split p {
  margin: 0 0 14px;
  color: var(--color-ink-muted);
  max-width: 68ch;
}

.panel__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panel__links a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.panel__links a:hover { text-decoration: underline; }

.facts {
  display: grid;
  gap: 0;
  margin: 0;
}

.facts > div {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-line);
}

.facts dt {
  margin: 0;
  color: var(--color-ink-muted);
  font-size: 14px;
}

.facts dd {
  margin: 0;
  font-weight: 500;
}

.services--page,
.doctors--page {
  padding: 48px 0 80px;
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 20px;
}

.doctors-grid .doctor-card {
  flex: none;
  min-width: 0;
}

.doc {
  padding: 48px 0 80px;
}

.doc__grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 48px;
  align-items: start;
}

.doc__photo {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #e8eee8;
  aspect-ratio: 3 / 4;
}

.doc__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.doc__spec {
  margin: 0 0 8px;
  color: var(--color-ink-muted);
  font-weight: 500;
}

.doc__exp {
  margin: 0 0 18px;
  color: var(--color-primary-dark);
  font-weight: 600;
}

.doc__text p {
  margin: 0 0 18px;
  max-width: 68ch;
  color: var(--color-ink-muted);
  line-height: 1.7;
}

.prose {
  padding: 40px 0 72px;
}

.prose p {
  margin: 0 0 16px;
  max-width: 72ch;
  color: var(--color-ink-muted);
  font-size: 16px;
  line-height: 1.7;
}

.prose h2 {
  margin: 28px 0 12px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.prose a:not(.btn) { color: var(--color-primary); }

.prose__narrow { max-width: 760px; }

.service-page {
  padding: 40px 0 48px;
}

.service-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 48px 56px;
  align-items: start;
}

.service-page__grid--photo {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.92fr);
  grid-template-areas:
    "main photo"
    "form photo";
  align-items: stretch;
  row-gap: 28px;
  column-gap: 48px;
}

.service-page__grid--photo .service-page__main {
  grid-area: main;
}

.service-page__grid--photo .service-page__photo {
  grid-area: photo;
  margin: 0;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
}

.service-page__grid--photo .service-page__card {
  grid-area: form;
  align-self: end;
}

.service-page__main p {
  margin: 0 0 16px;
  color: var(--color-ink-muted);
  font-size: 17px;
  line-height: 1.65;
}

.service-page__main h2 {
  margin: 28px 0 14px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.service-page__points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.service-page__points li {
  position: relative;
  padding-left: 28px;
  font-size: 16px;
  line-height: 1.5;
}

.service-page__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  box-shadow: inset 0 0 0 4px var(--color-primary);
}

.service-page__photo {
  margin: 0 0 20px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #e8eee8;
  aspect-ratio: 3 / 4;
}

.service-page__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  display: block;
}

.service-page__card {
  padding: 24px 24px 20px;
  background: var(--color-bg-soft);
  border-radius: var(--radius-xl);
}

.service-page__card h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.service-page__card .appoint-mini__lead {
  margin: 0 0 16px;
  font-size: 15px;
}

.service-page__card .appoint-mini input[type="text"],
.service-page__card .appoint-mini input[type="tel"] {
  background: #fff;
}

.service-page__card .appoint-mini__row {
  grid-template-columns: 1fr 1fr;
}

.service-page__card .appoint-mini__row .btn {
  width: 100%;
  grid-column: 1 / -1;
}

.service-page__card .appoint-mini__check {
  margin-top: 12px;
}

.price-wrap {
  padding: 0 0 48px;
}

.price__group {
  margin-bottom: 28px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.price__group h3 {
  margin: 0;
  padding: 14px 20px;
  background: var(--color-bg-soft);
  font-size: 16px;
}

.price table {
  width: 100%;
  border-collapse: collapse;
}

.price td {
  padding: 12px 20px;
  border-top: 1px solid var(--color-line);
  vertical-align: top;
  font-size: 15px;
}

.price td:last-child {
  width: 140px;
  text-align: right;
  font-weight: 600;
  white-space: nowrap;
}

.price tr:nth-child(even) td { background: #fafcf9; }

.reviews--page {
  padding: 48px 0 80px;
}

.reviews-stack {
  display: grid;
  gap: 20px;
  margin-bottom: 28px;
}

.reviews-stack .review-card {
  flex: none;
  padding: 24px 28px;
  background: var(--color-bg-soft);
  border-radius: var(--radius-lg);
}

.review-card--full .review-card__text {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.page-cta {
  padding: 0 0 80px;
}

.page-cta__box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 32px 36px;
  background: var(--color-primary-soft);
  border-radius: var(--radius-xl);
}

.page-cta h2 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.page-cta p {
  margin: 0;
  color: var(--color-ink-muted);
}

.appoint-page {
  padding: 40px 0 80px;
}

.appoint-page__card {
  max-width: 560px;
  padding: 32px;
  background: #ebebeb;
  border-radius: var(--radius-xl);
}

.appoint-mini__row--stack {
  grid-template-columns: 1fr;
}

.promo-card {
  max-width: 640px;
  padding: 28px;
  background: var(--color-bg-soft);
  border-radius: var(--radius-lg);
}

.promo-card h2 {
  margin: 0 0 12px;
}

.inner .find {
  padding-top: 24px;
}

@media (max-width: 1100px) {
  .panel__split,
  .doc__grid,
  .service-page__grid,
  .facts > div { grid-template-columns: 1fr; }
  .service-page__grid--photo {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "photo"
      "form";
  }
  .service-page__grid--photo .service-page__photo {
    aspect-ratio: 4 / 5;
    max-height: 480px;
  }
  .doctors-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-cta__box { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .doctors-grid { grid-template-columns: 1fr; }
  .price td { display: block; width: auto; text-align: left; }
  .price td:last-child { width: auto; text-align: left; padding-top: 0; font-size: 16px; }
  .appoint-page__card,
  .service-page__card { padding: 22px 20px; }
}

.patient {
  padding: 48px 0 24px;
}

.patient-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.patient-card {
  padding: 28px;
  background: var(--color-bg-soft);
  border-radius: var(--radius-lg);
}

.patient-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.patient-card p {
  margin: 0 0 10px;
  color: var(--color-ink-muted);
  font-size: 15px;
}

.patient-card .btn { margin-top: 12px; }

#hours,
#complaints {
  scroll-margin-top: 100px;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.auth-card {
  padding: 24px;
  background: #fff;
  border-radius: var(--radius-lg);
}

.auth-card h3 {
  margin: 0 0 12px;
  font-size: 17px;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.auth-card p {
  margin: 0 0 8px;
  color: var(--color-ink-muted);
  font-size: 14px;
  line-height: 1.5;
}

.auth-card a { color: var(--color-primary); }

.docs {
  padding: 48px 0 24px;
}

.docs-acc__item {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
}

.docs-acc__item > button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border: 0;
  background: #fff;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}

.docs-acc__count {
  flex: none;
  min-width: 32px;
  height: 28px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  font-size: 13px;
  display: grid;
  place-items: center;
}

.docs-acc__body { display: none; }
.docs-acc__item.is-open .docs-acc__body { display: block; }

.docs-list {
  list-style: none;
  margin: 0;
  padding: 0 12px 12px;
}

.docs-list li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 10px;
  border-top: 1px solid var(--color-line);
}

.docs-list .icon {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

.docs-list p {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
}

.docs-list__note {
  display: block;
  margin-top: 4px;
  color: var(--color-ink-muted);
  font-size: 13px;
}

.docs-list__links {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.docs-list__links a {
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 600;
}

.docs-list__action,
.docs-list__badge {
  justify-self: end;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.docs-list__action {
  color: var(--color-primary);
  text-decoration: none;
}

.docs-list__action:hover { text-decoration: underline; }

.docs-list__badge {
  color: var(--color-ink-muted);
  background: var(--color-bg-soft);
  border-radius: var(--radius-pill);
  padding: 6px 10px;
}

@media (max-width: 1100px) {
  .patient-cards,
  .auth-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .docs-list li { grid-template-columns: 24px 1fr; }
  .docs-list__action,
  .docs-list__badge { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.a11y-panel {
  border-top: 1px solid var(--color-line);
  background: #fff;
}

.a11y-panel[hidden] { display: none; }

.a11y-panel__in {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 16px;
  padding: 10px 0 12px;
}

.a11y-panel__groups {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: flex-end;
}

.a11y-panel__group p {
  margin: 0 0 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

.a11y-panel__btns {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
}

.a11y-panel__btns button {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1.5px solid var(--color-ink);
  border-radius: 8px;
  background: #fff;
  color: var(--color-ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.a11y-panel__btns button[aria-pressed="true"] {
  background: var(--color-ink);
  color: #fff;
}

.a11y-swatch--black { background: #000 !important; color: #fff !important; }
.a11y-swatch--white { background: #fff !important; color: #000 !important; }
.a11y-swatch--blue { background: #9fd9f6 !important; color: #063462 !important; }
.a11y-swatch--beige { background: #f7e3c6 !important; color: #4d2e0f !important; }

.a11y-swatch[aria-pressed="true"] {
  outline: 3px solid var(--color-ink);
  outline-offset: 2px;
}

.a11y-panel__hint {
  display: none;
  flex: 1 0 100%;
  margin: 0;
  font-size: 12px !important;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-ink-muted);
  line-height: 1.35;
}

html.a11y-speech .a11y-panel__hint {
  display: block;
}

html.a11y-speech #content p,
html.a11y-speech #content h1,
html.a11y-speech #content h2,
html.a11y-speech #content h3,
html.a11y-speech #content li,
html.a11y-speech a,
html.a11y-speech button {
  cursor: help;
}

[data-speaking] {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

.site-header [data-speaking],
.icon-btn[data-speaking],
.m-cta [data-speaking],
.to-top[data-speaking] {
  outline: none;
}

.a11y-panel__reset {
  height: 36px;
  padding: 0 14px;
  border: 1.5px solid var(--color-ink);
  border-radius: 8px;
  background: #fff;
  color: var(--color-ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .a11y-panel__btns { flex-wrap: wrap; }
}

.m-cta { display: none; }

html.a11y-on {
  scroll-behavior: auto;
}

html.a11y-on *,
html.a11y-on *::before,
html.a11y-on *::after {
  animation: none !important;
  transition: none !important;
}

html.a11y-on :focus-visible {
  outline: 3px solid currentColor !important;
  outline-offset: 3px;
}

html.a11y-on.a11y-fz-lg,
html.a11y-on.a11y-fz-lg body {
  font-size: 20px;
}

html.a11y-on.a11y-fz-lg :where(p, li, td, th, label, a, button, input, textarea, .btn, .nav__link, .pill, .footer__col a, .drawer nav a, .drawer nav button) {
  font-size: 20px !important;
  line-height: 1.65 !important;
}

html.a11y-on.a11y-fz-lg h1 { font-size: 36px !important; }
html.a11y-on.a11y-fz-lg h2 { font-size: 30px !important; }
html.a11y-on.a11y-fz-lg h3 { font-size: 24px !important; }

html.a11y-on.a11y-fz-xl,
html.a11y-on.a11y-fz-xl body {
  font-size: 24px;
}

html.a11y-on.a11y-fz-xl :where(p, li, td, th, label, a, button, input, textarea, .btn, .nav__link, .pill, .footer__col a, .drawer nav a, .drawer nav button) {
  font-size: 24px !important;
  line-height: 1.7 !important;
}

html.a11y-on.a11y-fz-xl h1 { font-size: 42px !important; }
html.a11y-on.a11y-fz-xl h2 { font-size: 34px !important; }
html.a11y-on.a11y-fz-xl h3 { font-size: 28px !important; }

html.a11y-on.a11y-sp-md,
html.a11y-on.a11y-sp-md body,
html.a11y-on.a11y-sp-md p,
html.a11y-on.a11y-sp-md li,
html.a11y-on.a11y-sp-md a {
  letter-spacing: 0.06em;
  line-height: 1.75 !important;
}

html.a11y-on.a11y-sp-lg,
html.a11y-on.a11y-sp-lg body,
html.a11y-on.a11y-sp-lg p,
html.a11y-on.a11y-sp-lg li,
html.a11y-on.a11y-sp-lg a {
  letter-spacing: 0.12em;
  word-spacing: 0.16em;
  line-height: 2 !important;
}

html.a11y-noimg img:not(.logo img),
html.a11y-noimg picture,
html.a11y-noimg video,
html.a11y-noimg iframe,
html.a11y-noimg .hero__photo,
html.a11y-noimg .about__photo,
html.a11y-noimg .doctor-card__photo,
html.a11y-noimg .doc__photo {
  display: none !important;
}

html.a11y-on.a11y-c-bw {
  --color-bg: #fff;
  --color-bg-soft: #f2f2f2;
  --color-bg-alt: #e6e6e6;
  --color-ink: #000;
  --color-ink-muted: #111;
  --color-line: #000;
  --color-primary: #000;
  --color-primary-dark: #000;
  --color-primary-soft: #e8e8e8;
}

html.a11y-on.a11y-c-bw img:not(.logo img) {
  filter: grayscale(1) contrast(1.15);
}

html.a11y-on.a11y-c-black { background: #000 !important; }

html.a11y-on.a11y-c-black *:not(img):not(svg):not(path):not(circle):not(iframe):not(.a11y-swatch):not(.btn):not(.pill) {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
  box-shadow: none !important;
}

html.a11y-on.a11y-c-black a { text-decoration: underline; }

html.a11y-on.a11y-c-black .btn,
html.a11y-on.a11y-c-black .pill,
html.a11y-on.a11y-c-black .m-cta a:last-child,
html.a11y-on.a11y-c-black .a11y-panel__btns button[aria-pressed="true"]:not(.a11y-swatch) {
  background: #fff !important;
  background-color: #fff !important;
  color: #000 !important;
}

html.a11y-on.a11y-c-white { background: #fff !important; }

html.a11y-on.a11y-c-white *:not(img):not(svg):not(path):not(circle):not(iframe):not(.a11y-swatch):not(.btn):not(.pill) {
  background-color: #fff !important;
  color: #000 !important;
  border-color: #000 !important;
  box-shadow: none !important;
}

html.a11y-on.a11y-c-white a { text-decoration: underline; }

html.a11y-on.a11y-c-white .btn,
html.a11y-on.a11y-c-white .pill,
html.a11y-on.a11y-c-white .m-cta a:last-child,
html.a11y-on.a11y-c-white .a11y-panel__btns button[aria-pressed="true"]:not(.a11y-swatch) {
  background: #000 !important;
  background-color: #000 !important;
  color: #fff !important;
}

html.a11y-on.a11y-c-blue { background: #9fd9f6 !important; }

html.a11y-on.a11y-c-blue *:not(img):not(svg):not(path):not(circle):not(iframe):not(.a11y-swatch):not(.btn):not(.pill) {
  background-color: #9fd9f6 !important;
  color: #063462 !important;
  border-color: #063462 !important;
  box-shadow: none !important;
}

html.a11y-on.a11y-c-blue a { text-decoration: underline; }

html.a11y-on.a11y-c-blue .btn,
html.a11y-on.a11y-c-blue .pill,
html.a11y-on.a11y-c-blue .m-cta a:last-child,
html.a11y-on.a11y-c-blue .a11y-panel__btns button[aria-pressed="true"]:not(.a11y-swatch) {
  background: #063462 !important;
  background-color: #063462 !important;
  color: #9fd9f6 !important;
}

html.a11y-on.a11y-c-beige { background: #f7e3c6 !important; }

html.a11y-on.a11y-c-beige *:not(img):not(svg):not(path):not(circle):not(iframe):not(.a11y-swatch):not(.btn):not(.pill) {
  background-color: #f7e3c6 !important;
  color: #4d2e0f !important;
  border-color: #4d2e0f !important;
  box-shadow: none !important;
}

html.a11y-on.a11y-c-beige a { text-decoration: underline; }

html.a11y-on.a11y-c-beige .btn,
html.a11y-on.a11y-c-beige .pill,
html.a11y-on.a11y-c-beige .m-cta a:last-child,
html.a11y-on.a11y-c-beige .a11y-panel__btns button[aria-pressed="true"]:not(.a11y-swatch) {
  background: #4d2e0f !important;
  background-color: #4d2e0f !important;
  color: #f7e3c6 !important;
}

@media (max-width: 1100px) {
  .m-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 32;
    gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--color-line);
    box-shadow: 0 -8px 24px rgba(30, 42, 36, 0.08);
  }

  .m-cta a {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
  }

  .m-cta a:first-child {
    border: 1.5px solid var(--color-primary);
    color: var(--color-primary);
  }

  .m-cta a:last-child {
    background: var(--color-primary);
    color: #fff;
  }

  html.is-locked .m-cta { display: none; }

  .to-top { bottom: 80px; }

  body { padding-bottom: 72px; }

  .drawer__meta [data-a11y] {
    width: auto;
    height: auto;
    justify-content: start;
    padding: 10px 0;
    border-radius: 12px;
  }
}
