:root {
  --amethyst-milk: #f2efe8;
  --amethyst-paper: #e9e5dc;
  --amethyst-ink: #242325;
  --amethyst-graphite: #302f31;
  --amethyst-smoke: #746d79;
  --amethyst-secondary-text: #514954;
  --amethyst-mist: #b9b2bc;
  --amethyst-plum: #6d6672;
  --amethyst-white: #faf9f5;
}

.admin-bar .header { top: 32px; }
.nav .menu-primary-container { display: contents; }
.nav ul { display: flex; gap: 29px; margin: 0; padding: 0; list-style: none; }
.nav ul a { position: relative; }
.nav ul a::after { content: ""; position: absolute; right: 100%; bottom: -6px; left: 0; height: 1px; background: currentColor; transition: right .45s var(--ease); }
.nav ul a:hover::after { right: 0; }
.archive-page,
.content-page { padding-top: 88px; }
.breadcrumbs { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; padding-top: 20px; padding-bottom: 8px; color: var(--amethyst-secondary-text); font-size: 10px; letter-spacing: .01em; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs__separator { color: var(--mist); }
.footer-label { display: block; margin: 0 0 14px; color: var(--mist); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.header-contact { display: flex; flex-direction: column; gap: 2px; min-width: min-content; color: var(--amethyst-secondary-text); font-size: .8125rem; line-height: 1.3; }
.header-contact a { color: var(--ink); font-size: 14.5pt; font-weight: 700; white-space: nowrap; }

@media (min-width: 1001px) and (max-width: 1240px) {
  .header .nav { gap: clamp(14px, 2vw, 25px); }
  .header .nav > nav > ul { gap: 18px; }
}

.amethyst-profile__body .amethyst-profile__panel > .amethyst-profile__label { color: #62506d; }

.menu-item--planned a { font-weight: 600; }
.menu-item-more { position: relative; }
.menu-item-more > a::after { content: '⌄'; margin-left: 5px; font-size: 10px; }
.nav ul.nav .menu-item-more > a::after { content: '⌄'; }
.nav ul.sub-menu { position: absolute; top: calc(100% + 16px); right: 0; display: none; min-width: 170px; padding: 12px 0; background: var(--white); border: 1px solid var(--line); box-shadow: 0 18px 45px rgba(36,35,37,.12); }
.nav .menu-item-more:hover > .sub-menu,
.nav .menu-item-more:focus-within > .sub-menu { display: block; }
.nav ul.sub-menu li { display: block; padding: 0; }
.nav ul.sub-menu a { display: block; padding: 8px 16px; white-space: nowrap; }
.menu-more { position: relative; display: inline-flex; align-items: center; }
.menu-more > button { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.menu-more__list { position: absolute; top: calc(100% + 16px); right: 0; display: none; min-width: 170px; padding: 12px 0; background: var(--white); border: 1px solid var(--line); box-shadow: 0 18px 45px rgba(36,35,37,.12); }
.menu-more:hover .menu-more__list, .menu-more:focus-within .menu-more__list { display: block; }
.menu-more__list a { display: block; padding: 8px 16px; white-space: nowrap; }
/* Keep the visual gap, but make it part of the open dropdown's hit area. */
.nav ul.sub-menu::before,
.menu-more__list::before { content: ""; position: absolute; top: -17px; right: 0; left: 0; height: 17px; background: transparent; pointer-events: auto; }
.nav ul.sub-menu,
.menu-more__list { z-index: 20; }
.archive-hero,
.content-hero { padding-top: 115px; padding-bottom: 105px; }
.archive-hero h1,
.content-hero h1 { max-width: 1050px; margin: 0; font: 500 clamp(58px,7vw,102px)/.91 var(--display); letter-spacing: -.06em; }
.archive-hero > p:last-child,
.content-hero > p:last-child { max-width: 640px; margin: 32px 0 0; color: var(--smoke); font-size: 15px; line-height: 1.8; }
.team--archive { padding-top: 80px; }
.doctor-grid { gap: 32px clamp(14px, 1.45vw, 24px); }
.doctor-grid > .doctor { display: grid; grid-template-rows: auto 1fr; }
.doctor-grid > .doctor[hidden] { display: none; }
.doctor-grid .doctor-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 16px 0 15px;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
  overflow-wrap: anywhere;
}
.doctor-grid .doctor-info h3 {
  margin: 0 0 5px;
  color: var(--amethyst-white);
  font: 600 clamp(17px, 1.6vw, 22px)/1.22 var(--display);
  letter-spacing: -.025em;
}
.doctor-grid .doctor-info p { min-height: 0; margin: 0; font-size: 13px; line-height: 1.45; }
.doctor-grid .doctor-info__specialties { color: #e1d9e4; font-weight: 600; }
.doctor-grid .doctor-info__competences,
.doctor-grid .doctor-info__qualification { color: #c7c0c9; }
.doctor-grid .doctor-info__audiences {
  display: grid;
  gap: 3px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
  color: #d2cbd4;
  font-size: 12px;
  line-height: 1.45;
}
.doctor-info__audiences strong { color: #e1d9e4; font-weight: 600; }
.doctor-info__footer { margin-top: auto; padding-top: 14px; }
.doctor-grid .doctor-info__price { color: #d2cbd4; }
.doctor-info__price strong { color: var(--amethyst-white); font-size: 15px; font-weight: 700; white-space: nowrap; }
.doctor-grid .doctor-info__actions { justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; margin-top: 7px; }
.doctor-grid .doctor-info__actions a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  color: var(--amethyst-white);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}
.doctor-grid .doctor-info__details { text-decoration: underline; text-decoration-color: #a69da9; text-underline-offset: 4px; }
.doctor-grid .doctor-info__booking { gap: 7px; padding: 0 12px; border: 1px solid #9e94a1; border-radius: 999px; }
.doctor-grid .doctor-info__booking:hover { border-color: var(--amethyst-white); background: rgba(255, 255, 255, .09); }
@media (max-width: 520px) {
  .doctor-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
.empty-state,
.filter-empty { grid-column: 1/-1; padding: 35px; border: 1px solid rgba(255,255,255,.18); color: #c8c3c9; }
.specialties .specialty { text-decoration: none; }
.review-carousel { position: relative; }
.review-carousel .review-stage[hidden] { display: none; }
.service-archive-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; background: var(--line); }
.service-card { min-height: 330px; padding: 45px; background: var(--milk); }
.service-card h2 { margin: 0 0 20px; font: 500 clamp(32px,4vw,54px)/1 var(--display); letter-spacing: -.05em; }
.service-card h3 { margin: 0 0 20px; font: 500 clamp(30px,3.5vw,48px)/1.05 var(--display); letter-spacing: -.04em; }
.service-card > p:not(.kicker) { max-width: 520px; color: var(--smoke); }
.service-card > a:last-child { display: inline-block; margin-top: 35px; font-size: 11px; font-weight: 700; }
.specialties { padding-top: 105px; padding-bottom: 105px; }
.specialties .section-head { margin-bottom: 45px; }
.specialties .specialty-layout--preview { grid-template-columns: repeat(3,minmax(0,1fr)); grid-auto-rows: 235px; }
.specialty-all { margin-top: 30px; }
.directions-page .archive-hero { padding-bottom: 65px; }
.directions-page .archive-hero > p:last-child { max-width: 760px; }
.directions-intro { padding: 95px 0; background: var(--paper); }
.directions-intro__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center; }
.directions-intro h2,.directions-next h2 { max-width: 640px; margin: 0; font: 500 clamp(38px,4.5vw,68px)/1.05 var(--display); letter-spacing: -.05em; }
.directions-intro__grid > div:last-child p,.directions-next p:not(.kicker) { max-width: 520px; margin: 0 0 25px; color: var(--smoke); font-size: 14px; line-height: 1.8; }
.directions-list { padding: 100px 0 120px; }
.directions-next { padding: 90px 0; background: var(--paper); }
.directions-next__grid { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.directions-next h2 { margin-bottom: 22px; }
.directions-next .btn { flex: none; }
.article-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; background: var(--line); }
.article-card { min-height: 260px; padding: 32px; background: var(--milk); }
.article-card h3 { margin: 0 0 16px; font: 500 clamp(24px,3vw,38px)/1.05 var(--display); letter-spacing: -.04em; }
.article-card > p:not(.kicker) { color: var(--smoke); }
.article-card > a:last-child { display: inline-block; margin-top: 24px; font-size: 11px; font-weight: 700; }
.prose { width: min(780px,calc(100% - 48px)); padding-bottom: 130px; }
.prose h2 { margin: 55px 0 22px; font: 500 clamp(30px,4vw,46px)/1.1 var(--display); letter-spacing: -.04em; }
.prose h3 { margin: 38px 0 16px; font: 600 22px var(--display); }
.prose p,
.prose li { color: #504d52; font-size: 15px; line-height: 1.85; }
.entry-content > section { padding: 55px 0; border-top: 1px solid var(--line); }
.entry-content > section > h2:first-child { margin-top: 0; }
.article-layout--single { display: block; width: min(720px,calc(100% - 48px)); }
.article-placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(145deg,var(--paper),#d7ced8); }
.navigation.pagination { margin-top: 55px; }
.nav-links { display: flex; gap: 8px; }
.page-numbers { min-width: 42px; padding: 10px 13px; border: 1px solid var(--line); text-align: center; }
.page-numbers.current { background: var(--ink); color: var(--white); }
.wp-block-image img { height: auto; }

/* Native article blocks share the visual language of the published blog. */
.article-content .article-block-lead{font-size:19px;line-height:1.75;color:var(--ink)}
.article-content .wp-block-group.article-notice,.article-content .wp-block-group.article-alert,.article-content .wp-block-group.article-aside{margin:38px 0;padding:28px 32px;border-left:3px solid var(--smoke);background:var(--paper)}
.article-content .wp-block-group.article-alert{background:#eee7e7;border-color:#775b6f}
.article-content .wp-block-group.article-aside{background:#f4f0ee;border-color:#a694ad}
.article-content .wp-block-group.article-notice p:first-child strong,.article-content .wp-block-group.article-alert p:first-child strong{font:600 13px/1.4 var(--display);letter-spacing:.07em;text-transform:uppercase}
.article-content .wp-block-group.article-notice p,.article-content .wp-block-group.article-alert p,.article-content .wp-block-group.article-aside p{margin:0 0 10px}
.article-content .wp-block-group.article-notice p:last-child,.article-content .wp-block-group.article-alert p:last-child,.article-content .wp-block-group.article-aside p:last-child{margin-bottom:0}
.article-content h2[id],.article-content h3[id]{scroll-margin-top:100px}
.article-content h4{margin:28px 0 12px;font:600 18px/1.35 var(--display)}
.article-content .wp-block-image figcaption{margin-top:10px;color:var(--smoke);font-size:11px;line-height:1.5}
.article-toc__level-3 a{padding-left:16px}
.doctor-photo,
.doctor-page__portrait { position: relative; display: block; width: 100%; height: 100%; }
.doctor-photo img,
.doctor-page__portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.doctor-photo img { object-position: center; }
.doctor-specialties { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.doctor-specialties a,
.doctor-profile__specialties a { display: inline-flex; align-items: center; padding: 5px 10px; border: 1px solid currentColor; border-radius: 999px; color: inherit; text-decoration: none; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
.doctor-specialties a:hover,
.doctor-profile__specialties a:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.doctor-profile__specialties { display: flex; flex-wrap: wrap; gap: 6px 14px; }
:where(a, button, input, textarea, select, summary):focus-visible { outline: 2px solid var(--amethyst-plum); outline-offset: 4px; }
.header .brand:focus { outline: none; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { z-index: 100000; top: 8px; left: 8px; width: auto; height: auto; padding: 14px 20px; clip: auto; background: var(--white); }

@media (max-width: 980px) {
  .admin-bar .header { top: 46px; }
  .nav .menu-primary-container { display: block; }
  .nav ul { display: block; }
  .service-archive-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .specialties .specialty-layout--preview { grid-template-columns: 1fr; grid-auto-rows: 210px; }
  .directions-intro__grid { grid-template-columns: 1fr; gap: 35px; }
  .directions-next__grid { display: block; }
  .directions-next .btn { margin-top: 12px; }
  .header-contact { display: none; }
}

@media (max-width: 720px) {
  .archive-page,
  .content-page { padding-top: 72px; }
  .archive-hero,
  .content-hero { padding-top: 75px; padding-bottom: 70px; }
  .service-card { min-height: 260px; padding: 30px; }
  .specialties { padding-top: 75px; padding-bottom: 75px; }
  .directions-intro,.directions-next { padding: 70px 0; }
  .directions-list { padding: 70px 0 85px; }
  .directions-page .archive-hero { padding-bottom: 45px; }
}

/* Compact directions index; do not affect doctor or individual service pages. */
.directions-page .archive-hero { padding-top: 24px; padding-bottom: 12px; }
.directions-page .archive-hero .kicker { margin-bottom: 10px; }
.directions-page .archive-hero h1 { font-size: clamp(36px,3.5vw,48px); line-height: 1.02; }
.directions-page .archive-hero > p:last-child { max-width: 920px; margin-top: 12px; font-size: 13px; line-height: 1.5; }
.directions-page .breadcrumbs { padding-top: 8px; padding-bottom: 8px; }
.directions-page .directions-list { padding: 20px 0 32px; }
.directions-page .directions-list .section-head { gap: 24px; margin-bottom: 18px; }
.directions-page .directions-list .section-head .kicker { display: none; }
.directions-page .directions-list .section-head h2 { font-size: 26px; }
.directions-page .directions-list .section-head > p { font-size: 12px; }
.directions-page .service-archive-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.directions-page .service-card { display: block; min-height: 64px; padding: 0; }
.directions-page .service-card .kicker { margin-bottom: 12px; }
.directions-page .service-card h3 { display: flex; width: 100%; margin: 0; font-size: 16px; line-height: 1.3; letter-spacing: -.02em; }
.directions-page .service-card h3 a { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 64px; padding: 14px 18px; text-decoration: none; transition: background .2s, color .2s; }
.directions-page .service-card h3 a > span:last-child { flex: none; color: var(--smoke); }
.directions-page .service-card h3 a:hover { background: var(--paper); color: var(--amethyst-plum); }
.directions-page .service-card h3 a:focus-visible { outline-offset: -4px; }
.directions-page .service-card h3 a { min-height: 48px; padding-top: 12px; padding-bottom: 8px; }
.directions-page .service-card__audiences { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 18px 12px; color: #77716e; font-size: 12px; font-weight: 400; line-height: 1.4; }
.directions-page .service-card__audiences a { padding: 3px 0; color: inherit; text-decoration: none; text-underline-offset: 3px; }
.directions-page .service-card__audiences a:hover,.directions-page .service-card__audiences a:focus-visible { color: var(--amethyst-plum); text-decoration: underline; }
#direction-doctors { scroll-margin-top: 100px; }
.single-amethyst_service .content-hero h1 { max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 640px) { .single-amethyst_service .content-hero h1 { font-size: clamp(30px,8vw,40px); line-height: 1.08; } }
.service-audience-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: -20px 0 32px; }
.service-audience-nav a { display: inline-flex; min-height: 44px; align-items: center; font-size: 13px; color: inherit; text-decoration: none; }
.service-audience-nav a[aria-current],.service-audience-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
@media (pointer: coarse) { .directions-page .service-card__audiences a { min-height: 44px; display: inline-flex; align-items: center; } }
.directions-page .service-card__subdirections { margin: -8px 18px 12px; padding: 0; list-style: none; }
.directions-page .service-card__subdirections a { display: inline-block; padding: 3px 0; font-size: 12px; line-height: 1.4; color: var(--smoke); text-decoration: underline; text-underline-offset: 3px; }
.directions-page .service-card__subdirections a:hover { color: var(--amethyst-plum); }
.service-expertise { padding: 48px 0; border-top: 1px solid var(--line); }
.service-expertise h2 { margin: 0 0 28px; font: 500 clamp(28px,3.3vw,44px)/1.1 var(--display); letter-spacing: -.04em; }
.service-expertise__grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 24px; }
.service-expertise__grid > section { scroll-margin-top: 110px; padding: 24px; background: var(--paper); }
.service-expertise h3 { margin: 0 0 16px; font: 500 26px/1.2 var(--display); }
.service-expertise p { margin: 0 0 10px; font-size: 14px; }
.service-expertise p:last-child { margin-bottom: 0; }
.directions-page .service-card > p:not(.kicker) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin: 0 0 16px; font-size: 13px; line-height: 1.65; }
.directions-page .service-card > p:empty { display: none; }
.directions-page .service-card > a:last-child { display: inline-flex; align-items: center; min-height: 44px; margin-top: auto; padding-top: 8px; }
.directions-page .directions-intro,.directions-page .directions-next { padding: 48px 0; }
.directions-page .directions-intro__grid { gap: 40px; }
.directions-page .directions-intro h2,.directions-page .directions-next h2 { font-size: clamp(30px,3.4vw,44px); }
.directions-page .directions-next { border-top: 1px solid var(--line); }
.directions-page .directions-next h2 { margin-bottom: 16px; }
.directions-page .directions-intro__grid > div:last-child p,.directions-page .directions-next p:not(.kicker) { margin-bottom: 18px; line-height: 1.65; }
@media (max-width: 980px) {
  .directions-page .service-archive-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .directions-page .directions-intro__grid { gap: 24px; }
}
@media (max-width: 640px) {
  .directions-page .archive-hero { padding-top: 32px; padding-bottom: 20px; }
  .directions-page .archive-hero h1 { font-size: 40px; }
  .directions-page .directions-list { padding: 28px 0 40px; }
  .directions-page .directions-list .section-head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 22px; }
  .directions-page .service-archive-grid { grid-template-columns: 1fr; }
  .directions-page .service-card { min-height: 0; padding: 0; }
  .directions-page .service-card h3 { font-size: 18px; }
  .directions-page .directions-intro,.directions-page .directions-next { padding: 36px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

.mobile-booking-phone { display: none; }
@media (max-width: 1000px) {
  .header .nav { gap: 12px; }
  .header .nav > .brand { min-width: 0; line-height: 1.05; }
  .header .brand-mark { flex-shrink: 0; }
  .header .nav > .header-contact { display: none; }
  .header .nav > .menu-btn { flex: 0 0 38px; min-height: 44px; }
  .mobile-booking-phone { display: inline-flex; flex-direction: column; justify-content: center; align-items: flex-start; flex: 0 0 auto; min-height: 44px; color: var(--ink); font-size: 13px; font-weight: 700; white-space: nowrap; }
  .mobile-booking-location { color: var(--am-vision-fg, var(--amethyst-secondary-text)); font-size: .75rem; font-weight: 400; line-height: 1.3; }
}

@media (650px < width < 768px) {
  html:not([data-am-vision]) .header .nav > .brand {
    flex-shrink: 0;
    gap: 8px;
    font-size: 18px;
  }

  html:not([data-am-vision]) .header .nav > .btn--small {
    padding-inline: 14px;
  }
}

@media (max-width: 360px) {
  .header .nav { gap: 6px; }
  .mobile-booking-phone { font-size: 12px; }
}

@media (max-width: 460px) {
  .header .brand-name { font-size: clamp(13px, 3.6vw, 16px); }
  .header .brand-clinic-word { display: block; }
}

/* Mobile front page: one crystal and no overflow from the hero's grid track. */
@media (max-width: 650px) {
  body.home .patient-widget { display: none; }
  .home .hero-grid { min-height: 0; grid-template-columns: minmax(0, 1fr); padding-bottom: 0; }
  .home .hero-copy { min-width: 0; padding: clamp(30px, 8vw, 46px) 0 12px; }
  .home .hero h1 { line-height: 1.04; overflow-wrap: anywhere; }
  .home .hero .kicker { margin-bottom: 20px; }
  .home .hero .lead { margin-bottom: 22px; }
  .home .hero-actions { min-width: 0; }
  .home .hero-actions .btn { min-width: 0; min-height: 48px; gap: 12px; padding: 12px 16px; white-space: normal; text-align: center; }
  .home .hero-actions .btn span { flex: none; }
  .home .hero .prism-wrap { position: relative; inset: auto; justify-self: end; width: 84px; margin: 2px 4px 12px 0; opacity: .85; transform: none; pointer-events: none; }
  .home .hero .prism { width: 66px; height: 92px; object-fit: contain; animation: none; filter: drop-shadow(0 8px 12px rgba(94, 75, 107, .2)); }
  .home .hero .orbit { display: none; }
  .home .hero-facts { position: relative; inset: auto; height: auto; min-height: 140px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

.related-doctors--therapy { padding-top: 24px; }
.related-doctors--therapy .section-head { margin-bottom: 18px; }
.related-doctors--therapy .section-head .kicker { margin-bottom: 8px; }
.related-doctors--therapy .service-audience-nav { margin: 0 0 20px; }

/* Allow both hero columns to shrink when a profile is viewed in a side panel. */
.doctor-page__hero { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); }
.doctor-page__heading, .doctor-page__portrait { min-width: 0; }
.doctor-page__heading h1, .doctor-page__content { overflow-wrap: anywhere; }
.doctor-page__content--focused { padding-top: clamp(24px, 4vw, 52px); }
.doctor-profile__clinical {
  display: grid;
  gap: clamp(24px, 3vw, 34px);
  margin-bottom: clamp(30px, 4vw, 48px);
}
.doctor-profile__clinical > section { padding: 0; border-top: 0; }
.doctor-profile__clinical > section > h2 { margin-bottom: 16px; }
.doctor-profile__clinical > section:first-child > h2 { text-wrap: balance; }
.doctor-profile__clinical > section + section > h2 { font-size: clamp(24px, 2.6vw, 32px); }
.doctor-profile__clinical > section > :last-child { margin-bottom: 0; }
.doctor-page__content .doctor-profile__focus-label { margin: 0 0 9px; color: var(--amethyst-plum); font-size: 11px; font-weight: 650; line-height: 1.4; letter-spacing: .12em; }
.doctor-page__content .doctor-profile__sources a { text-decoration: underline; text-underline-offset: 3px; }
.doctor-page__intro { max-width: 400px; margin-bottom: 30px; }
.doctor-page__intro p { margin: 0; line-height: 1.35; }
.doctor-page__position { color: var(--ink); font: 650 clamp(18px, 1.8vw, 24px)/1.25 var(--display); }
.doctor-page__intro .doctor-page__degree { margin-top: 4px; color: var(--amethyst-smoke); font-size: 14px; }
.doctor-page__degree::first-letter { text-transform: uppercase; }
.doctor-page__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin: 22px 0 0;
}
.doctor-page__facts dt { margin-bottom: 3px; color: var(--amethyst-smoke); font-size: 12px; }
.doctor-page__facts dd { margin: 0; color: var(--ink); font-size: 15px; font-weight: 650; }
.doctor-page .breadcrumbs { flex-wrap: wrap; }
.doctor-page__portrait .doctor-initials { color: var(--amethyst-plum, #614568); }
@media (max-width: 960px) {
  .doctor-page__hero { min-height: 0; grid-template-columns: minmax(0, 0.58fr) minmax(0, 1fr); padding-top: 76px; }
  .doctor-page__heading { padding: 40px clamp(20px, 4vw, 45px); }
  .doctor-page__heading h1 { font-size: clamp(35px, 5.8vw, 55px); line-height: 1; }
}
@media (max-width: 700px) {
  .doctor-page__portrait { height: auto; }
  .doctor-page__portrait:has(.doctor-initials) { height: clamp(110px, 30vw, 160px); aspect-ratio: auto; }
  .doctor-page__portrait .doctor-initials { font-size: 48px; }
  .doctor-page__heading { padding: 24px 20px 36px; }
  .doctor-page__heading h1 { font-size: clamp(30px, 9vw, 44px); }
  .doctor-page__heading .btn { max-width: 100%; gap: 14px; }
}

:is(.prose, .entry-content, .article-content) :is(ul:not([class]), ol:not([class]), .wp-block-list) { padding-inline-start: 1.5em; margin-block: .75em 1.25em; }
:is(.prose, .entry-content, .article-content) :is(ul:not([class]), ol:not([class]), .wp-block-list) > li { padding-block: 0; margin-block: .4em; line-height: 1.65; }

/* Department summary and archive navigation. */
.clinic-directions { padding: clamp(30px, 5vw, 58px) 0; }
.clinic-directions__copy { max-width: 64ch; font-size: 16px; line-height: 1.65; }
.clinic-directions__copy h2 { margin: 0 0 var(--amethyst-heading-list-gap, 16px); font-size: clamp(29px, 4vw, 54px); }
.clinic-directions__copy p { margin: 0 0 16px; color: var(--smoke); }
.clinic-directions__copy a { text-decoration: underline; text-underline-offset: 4px; }
.directions-page .service-card--featured { background: #eee8ef; box-shadow: inset 0 0 0 1px #cbbdcd; }
.directions-page .directions-list .service-card { min-height: 0; }
.directions-page .directions-list .service-card h3 a { min-height: 38px; padding: 9px 12px 4px; }
.directions-page .directions-list .service-card__audiences { gap: 4px 10px; margin: 0 12px 6px; }
@media (max-width: 700px) {
  .directions-page .directions-list .service-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directions-page .directions-list .service-card h3 { font-size: 13px; overflow-wrap: anywhere; }
  .directions-page .directions-list .service-card__audiences { font-size: 11px; }
  .directions-page .directions-list .service-card__audiences a { min-height: 32px; }
}

.doctor-directory-page .archive-hero { padding: clamp(18px, 3vw, 36px) 0 12px; }
.doctor-directory-page .archive-hero h1 { margin: 0; font-size: clamp(30px, 4.3vw, 58px); line-height: 1.05; }
.doctor-directory-page .archive-hero > p:not(.kicker) { max-width: none; margin: 8px 0 0; font-size: 14px; line-height: 1.5; }
.doctor-directory-page .archive-hero a { margin-inline-start: 4px; color: var(--ink); text-underline-offset: 3px; }
.doctor-directory-page > .breadcrumbs { padding-top: 4px; padding-bottom: 12px; }
.doctor-directory-page .team--archive { padding-top: 20px; }

.doctor-directory-controls { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); align-items: end; gap: 12px 18px; margin: 0 0 18px; }
.doctor-directory-controls label { display: block; min-width: 0; color: var(--white); font-size: 12px; line-height: 1.25; }
.doctor-directory-controls label > span { display: block; margin-bottom: 5px; }
.doctor-directory-controls select { box-sizing: border-box; width: 100%; min-width: 0; height: 40px; padding: 0 10px; border: 1px solid #817984; border-radius: 8px; background: #29272b; color: #f4f0e8; color-scheme: dark; font: 400 14px var(--sans); }



.doctor-directory-departments { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.doctor-directory-departments a { display: inline-flex; min-height: 40px; align-items: center; padding: 7px 12px; border: 1px solid #9e94a1; border-radius: 999px; color: var(--white); font-size: 13px; line-height: 1.25; }
.doctor-directory-departments a:hover { border-color: var(--white); }
.doctor-directory-departments a[aria-current] { border-color: var(--white); background: var(--white); color: var(--ink); }

@media (max-width: 780px) {
  .doctor-directory-controls { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 14px; }
  .doctor-directory-page .team--archive { padding-top: 14px; }
}

@media (max-width: 480px) {
  .doctor-directory-controls select { font-size: 16px; }


}

.doctor-page__heading h1 { max-width: 100%; font-size: clamp(28px, calc(13px + 2.7vw), 56px); line-height: 1.04; text-wrap: balance; hyphens: none; }
.skip:focus:not(:focus-visible) { top: -100px; }
.skip:focus-visible { top: 92px; left: 50%; max-width: calc(100vw - 24px); transform: translateX(-50%); border: 1px solid var(--line); }

:root {
  --amethyst-heading-list-gap: 16px;
  --amethyst-list-group-gap: calc(1.5 * var(--amethyst-heading-list-gap));
}

/* Keep a text heading closer to the paragraph or list it introduces. */
#content :is(.prose, .entry-content, .article-content, .amethyst-profile__rich)
:is(p, ul, ol):not(.kicker, .amethyst-profile__label, .doctor-practice__type, .doctor-practice__age):has(+ :is(h2, h3, h4, h5, h6):not(.doctor-profile__requests-label, .doctor-profile__focus-label, .doctor-practice__body > h3)) {
  margin-block-end: 0;
}
#content :is(.prose, .entry-content, .article-content, .amethyst-profile__rich)
:is(p, ul, ol):not(.kicker, .amethyst-profile__label, .doctor-practice__type, .doctor-practice__age) + :is(h2, h3, h4, h5, h6):not(.doctor-profile__requests-label, .doctor-profile__focus-label, .doctor-practice__body > h3) {
  margin-block-start: var(--amethyst-list-group-gap);
}
#content :is(.prose, .entry-content, .article-content, .amethyst-profile__rich)
:is(h2, h3, h4, h5, h6):not(.doctor-profile__requests-label, .doctor-profile__focus-label, .doctor-practice__body > h3):has(+ :is(p, ul, ol):not(.kicker, .amethyst-profile__label, .doctor-practice__type, .doctor-practice__age)) {
  margin-block-end: 0;
}
#content :is(.prose, .entry-content, .article-content, .amethyst-profile__rich)
:is(h2, h3, h4, h5, h6):not(.doctor-profile__requests-label, .doctor-profile__focus-label, .doctor-practice__body > h3) + :is(p, ul, ol):not(.kicker, .amethyst-profile__label, .doctor-practice__type, .doctor-practice__age) {
  margin-block-start: var(--amethyst-heading-list-gap);
}

/* Shared first-screen typography for all specialist profiles. */
#content .amethyst-profile__heading {
  min-width: 0;
  padding: clamp(28px, 6vw, 80px) clamp(16px, 4vw, 32px);
  color: var(--ink, #242325);
  font-size: 16px;
  line-height: 1.65;
}

#content .amethyst-profile__heading h1 {
  max-width: 100%;
  margin: 0 0 16px;
  font: 500 var(--amethyst-h1-size)/1.06 var(--display, sans-serif);
  letter-spacing: -.035em;
}

#content .amethyst-profile__heading :is(.amethyst-profile__roles, .amethyst-profile__degree, .amethyst-profile__facts) {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
}

#content .amethyst-profile__heading .amethyst-profile__roles { color: inherit; font-weight: 400; line-height: 1.45; }
.amethyst-profile__role-separator { margin-inline: .2em; color: var(--profile-text, #5f5b61); }
#content .amethyst-profile__heading .amethyst-profile__degree { margin-top: 4px; color: var(--profile-text, #5f5b61); }
#content .amethyst-profile__heading .amethyst-profile__facts { margin-top: 16px; }
#content .amethyst-profile__facts :is(dt, dd) { display: inline; margin: 0; }
#content .amethyst-profile__facts dt { font-weight: 600; }

#content .amethyst-profile__heading .amethyst-profile__price {
  display: table;
  max-width: 100%;
  margin: 18px 0 0;
  padding: 8px 13px;
  border: 1px solid var(--line, #d6d1d6);
  border-radius: 999px;
  color: var(--profile-text, #5f5b61);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.2;
}

#content .amethyst-profile__heading .btn { margin-top: 16px; max-width: 100%; white-space: normal; }
#content .amethyst-profile__heading .amethyst-profile__price + .btn { margin-top: 18px; }

@media (max-width: 700px) {
}


/* Shared footer layout */
footer.site-footer {
  padding: clamp(40px, 5vw, 72px) 0 24px;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.2fr) minmax(0, .85fr) minmax(0, 1.25fr);
  align-items: start;
  gap: 32px;
}

.site-footer .footer-grid > * {
  min-width: 0;
  margin: 0;
}

.site-footer .footer-grid > .footer-brand {
  grid-column: auto;
  margin: 0;
}

.site-footer .footer-brand .brand {
  margin: 0;
  font-size: 20px;
}

.site-footer .footer-grid .footer-brand p {
  margin: 16px 0 0;
  color: var(--mist, #b9b2bc);
  font-size: 14px;
  line-height: 1.65;
}

.site-footer .footer-grid .footer-brand .footer-entity {
  margin-top: 24px;
}

.site-footer .footer-title {
  margin: 0 0 16px;
  color: #dfbdd5;
  font: 600 16px/1.5 var(--display, sans-serif);
  letter-spacing: normal;
  text-transform: uppercase;
}

.site-footer .footer-grid nav ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer .footer-grid nav li {
  margin: 0;
  padding: 0;
}

.site-footer .footer-grid nav a,
.site-footer .footer-grid .footer-contact > a,
.site-footer .footer-grid .footer-documents a {
  display: block;
  margin: 0;
  padding: 2px 0;
  color: var(--white, #faf9f5);
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.site-footer .footer-grid a:hover {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.site-footer .footer-contact .footer-location {
  margin: 0 0 14px;
  color: var(--mist, #b9b2bc);
  font-size: 16px;
  line-height: 1.6;
}

.site-footer .footer-location strong {
  color: var(--white, #faf9f5);
  font-weight: 400;
}

.site-footer .footer-grid .footer-contact > .footer-phone {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
}

.site-footer .legal {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 40px;
  padding-top: 20px;
  color: var(--mist, #b9b2bc);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: normal;
  text-transform: none;
}

@media (max-width: 1000px) {
  .site-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .site-footer .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .site-footer .legal {
    align-items: flex-start;
    margin-top: 28px;
  }
}


/* Единая шапка внутренних страниц. Подключается через amethyst_page_heading(). */
#content.amethyst-standard-page {
  padding-block-start: 0;
}

.amethyst-page-heading {
  --amethyst-navigation-clearance: 76px;
  display: grid;
  justify-items: start;
  gap: .75rem;
  padding-block: calc(var(--amethyst-navigation-clearance) + clamp(1.5rem, 3.25vw, 2.5rem)) clamp(1.5rem, 3vw, 2.25rem);
}

.amethyst-page-heading__breadcrumbs {
  color: var(--amethyst-secondary-text, #645c69);
  font-size: .8125rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.amethyst-page-heading__breadcrumbs .breadcrumbs__separator {
  margin-inline: .6em;
}

.amethyst-page-heading__breadcrumbs a {
  color: inherit;
  text-underline-offset: .18em;
}

.amethyst-page-heading__breadcrumbs a:hover,
.amethyst-page-heading__breadcrumbs a:focus-visible {
  text-decoration: underline;
}

.amethyst-page-heading__title {
  max-inline-size: min(100%, 32ch);
  margin: 0;
  color: var(--ink);
  font: 500 var(--amethyst-h1-size)/1.08 var(--display);
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.amethyst-page-heading__intro {
  max-inline-size: 68ch;
  margin: 0;
  color: var(--amethyst-secondary-text, #645c69);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.55;
}

.amethyst-page-heading__intro a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.amethyst-standard-page #amethyst-consultation-prices .ap-hero {
  padding-block-start: 0;
}

@media (max-width: 1000px) {
  .amethyst-page-heading {
    --amethyst-navigation-clearance: 72px;
  }
}

html[data-am-vision] .amethyst-page-heading {
  --amethyst-navigation-clearance: 0px;
}

html[data-am-vision] .amethyst-page-heading__breadcrumbs {
  font-size: var(--am-vision-text);
}

/* Site-wide H1 scale. The home hero has a dedicated display size. */
#content {
  --amethyst-h1-size: clamp(1.625rem, 3.45vw, 2.75rem);
}

.home #content > .hero {
  --amethyst-h1-size: clamp(1.875rem, 4.1vw, 3.75rem);
}

#content h1:not(.screen-reader-text) {
  font-size: var(--amethyst-h1-size);
}
