:root {
  --ink: #152331;
  --text: #374a59;
  --muted: #586b79;
  --line: #dde8ed;
  --wash: #f4f8fa;
  --white: #ffffff;
  --green: #087f42;
  --green-deep: #087037;
  --brand-dark: #07545d;
  --mint: #eaf7ef;
  --cyan: #2fb5cf;
  --blue: #2fb5cf;
  --amber: #f1ad20;
  --radius: 8px;
  --shadow: 0 18px 44px rgba(21, 35, 49, .12);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
}

/* Homepage stories */

.story-viewer {
  width: min(940px, calc(100% - 40px));
  max-width: none;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 34px 100px rgba(2, 28, 30, .32);
  color: var(--ink);
}

.story-viewer::backdrop {
  background: rgba(4, 27, 30, .78);
  backdrop-filter: blur(10px);
}

.story-viewer[open] {
  animation: storyViewerIn 260ms var(--ease-out);
}

.story-viewer-progress {
  position: absolute;
  top: 16px;
  right: 72px;
  left: 18px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.story-viewer-progress span {
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, .34);
}

.story-viewer-progress span::after {
  content: "";
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: #fff;
}

.story-viewer-progress span.is-complete::after,
.story-viewer-progress span.is-current::after {
  width: 100%;
}

.story-viewer-media {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: #dce9e6;
}

.story-viewer-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 41, 44, .08);
  pointer-events: none;
}

.story-viewer-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.story-viewer-count {
  width: fit-content;
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--green);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.story-viewer-text {
  margin-bottom: 30px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
}

.story-viewer-close {
  position: absolute;
  z-index: 5;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 50%;
  background: rgba(5, 45, 49, .76);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.story-viewer-close:hover,
.story-viewer-close:focus-visible {
  background: var(--green);
  outline: none;
  transform: scale(1.05);
}

.story-viewer-close {
  top: 13px;
  right: 14px;
}

.story-viewer-prev { left: -66px; }
.story-viewer-next { right: -66px; }

.story-viewer.is-switching .story-viewer-media img {
  animation: storyContentIn 300ms var(--ease-out);
}

body.story-viewer-open {
  overflow: hidden;
}

@keyframes storyViewerIn {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes storyContentIn {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {

  .story-viewer-prev { left: 12px; }
  .story-viewer-next { right: 12px; }
}

@media (max-width: 620px) {

  .story-viewer {
    width: 100%;
    height: 100%;
    max-height: none;
    margin: 0;
    border-radius: 0;
  }

  .story-viewer-media {
    min-height: 0;
  }

  .story-viewer-count {
    margin-bottom: 16px;
  }

  .story-viewer-prev { left: 10px; }
  .story-viewer-next { right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  
  .story-viewer[open],
  .story-viewer.is-switching .story-viewer-media img {
    animation: none;
    transition: none;
  }
}

/* Compact accessibility toolbar inspired by familiar public-service controls */
.accessibility-toggle {
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #111;
  box-shadow: none;
  font-size: 18px;
}

.accessibility-toggle:hover,
.accessibility-toggle:focus-visible {
  border-color: transparent;
  background: #eef1f2;
  color: #000;
  outline: 2px solid #111;
  outline-offset: 2px;
}

.accessibility-toggle.is-active:not(:focus-visible) {
  background: transparent;
  color: #111;
  outline: 0;
}

.accessibility-panel {
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #d2d2d2;
  background: #f7f7f7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

html.a11y-panel-open body {
  padding-top: var(--a11y-panel-height, 104px);
}

html.a11y-panel-open .site-header {
  top: var(--a11y-panel-height, 104px);
}

.accessibility-panel-inner {
  width: min(1000px, calc(100% - 32px));
  min-height: 103px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding: 11px 0 8px;
}

.accessibility-group {
  display: block;
  padding: 0 14px;
}

.accessibility-group > span {
  display: block;
  margin: 0 0 10px;
  color: #050505;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
  text-align: center;
  text-transform: none;
}

.accessibility-control-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.accessibility-group button,
.accessibility-reset,
.accessibility-exit,
.accessibility-close {
  width: auto;
  min-width: 43px;
  min-height: 36px;
  padding: 6px 11px;
  border: 1px solid #c7c7c7;
  border-radius: 4px;
  background: #e3e3e3;
  color: #050505;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 1px rgba(255, 255, 255, .7);
}

.accessibility-group button:hover,
.accessibility-group button:focus-visible,
.accessibility-group button.is-active,
.accessibility-reset:hover,
.accessibility-reset:focus-visible,
.accessibility-exit:hover,
.accessibility-exit:focus-visible,
.accessibility-close:hover,
.accessibility-close:focus-visible {
  border-color: #111;
  background: #d5d5d5;
  color: #000;
  outline: 2px solid #111;
  outline-offset: 2px;
}

.accessibility-group button.is-active {
  box-shadow: inset 0 0 0 2px currentColor;
}

.accessibility-group .accessibility-swatch-light {
  background: #fff;
  color: #000;
}

.accessibility-group .accessibility-swatch-dark {
  background: #000;
  color: #fff;
}

.accessibility-group .accessibility-swatch-blue {
  background: #9bd1f5;
  color: #083d69;
}

.accessibility-group .accessibility-swatch-beige {
  background: #fff6c9;
  color: #57420a;
}

.accessibility-group .accessibility-swatch-brown {
  background: #3c2b17;
  color: #b8ef4f;
}

.accessibility-actions .accessibility-exit {
  min-width: 186px;
  border-color: #c7c7c7;
  background: #e3e3e3;
  color: #050505;
}

.accessibility-actions .accessibility-close {
  width: 43px;
  padding: 6px;
}

.accessibility-advanced {
  flex: 0 0 100%;
  margin-top: 10px;
  border-top: 1px solid #d2d2d2;
}

.accessibility-advanced[hidden] {
  display: none;
}

.accessibility-advanced-inner {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  padding: 12px 0 4px;
}

.accessibility-advanced .accessibility-group > span {
  margin-bottom: 7px;
  font-size: 13px;
}

.accessibility-reset {
  min-height: 36px;
  white-space: nowrap;
}

html.a11y-mode body {
  font-family: Arial, Helvetica, sans-serif;
}

html.a11y-images-grayscale main img,
html.a11y-images-grayscale .site-footer img {
  filter: grayscale(1) contrast(1.08) !important;
}

html.a11y-theme-blue body {
  --ink: #082f52;
  --text: #082f52;
  --muted: #174d76;
  --line: #082f52;
  --white: #bfe4ff;
  --wash: #d8efff;
  --green: #082f52;
  --green-deep: #082f52;
  --brand-dark: #082f52;
  --mint: #9bd1f5;
  background: #bfe4ff !important;
  color: #082f52 !important;
}

html.a11y-theme-beige body {
  --ink: #4b3b0e;
  --text: #4b3b0e;
  --muted: #645421;
  --line: #4b3b0e;
  --white: #fff6c9;
  --wash: #fff9dc;
  --green: #4b3b0e;
  --green-deep: #4b3b0e;
  --brand-dark: #4b3b0e;
  --mint: #f1e5a7;
  background: #fff6c9 !important;
  color: #4b3b0e !important;
}

html.a11y-theme-brown body {
  --ink: #c9f468;
  --text: #c9f468;
  --muted: #dcf79e;
  --line: #c9f468;
  --white: #3c2b17;
  --wash: #2d2114;
  --green: #c9f468;
  --green-deep: #c9f468;
  --brand-dark: #c9f468;
  --mint: #4a351c;
  background: #3c2b17 !important;
  color: #c9f468 !important;
}

html.a11y-theme-blue :where(.site-header, .accessibility-panel, .nav-dropdown, .mobile-menu-panel, main, main section, footer, dialog, article, form, aside, .footer-disclaimer, .footer-meta, .footer-nav-grid),
html.a11y-theme-beige :where(.site-header, .accessibility-panel, .nav-dropdown, .mobile-menu-panel, main, main section, footer, dialog, article, form, aside, .footer-disclaimer, .footer-meta, .footer-nav-grid),
html.a11y-theme-brown :where(.site-header, .accessibility-panel, .nav-dropdown, .mobile-menu-panel, main, main section, footer, dialog, article, form, aside, .footer-disclaimer, .footer-meta, .footer-nav-grid) {
  border-color: var(--line) !important;
  background-color: var(--white) !important;
  background-image: none !important;
  color: var(--text) !important;
  box-shadow: none !important;
}

html.a11y-theme-blue :where(h1, h2, h3, h4, p, span, b, small, strong, label, a:not(.button)),
html.a11y-theme-beige :where(h1, h2, h3, h4, p, span, b, small, strong, label, a:not(.button)),
html.a11y-theme-brown :where(h1, h2, h3, h4, p, span, b, small, strong, label, a:not(.button)) {
  color: var(--text) !important;
}

@media (max-width: 1080px) {
  .accessibility-panel-inner {
    width: min(760px, calc(100% - 24px));
    row-gap: 16px;
  }

  .accessibility-actions {
    flex-basis: 100%;
  }
}

@media (max-width: 900px) {
  .accessibility-panel {
    top: 0;
    max-height: min(74dvh, 560px);
    overflow-y: auto;
  }

  .accessibility-panel-inner {
    width: min(560px, calc(100% - 24px));
    min-height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 8px;
    padding: 18px 0;
  }

  .accessibility-group {
    padding: 0 4px;
  }

  .accessibility-group > span {
    margin-bottom: 8px;
    font-size: 15px;
  }

  .accessibility-actions,
  .accessibility-advanced {
    grid-column: 1 / -1;
  }

  .accessibility-advanced {
    margin-top: 0;
  }

  .accessibility-advanced-inner {
    flex-direction: column;
    align-items: center;
  }

  .accessibility-reset {
    width: auto;
  }
}

@media (max-width: 520px) {
  .accessibility-panel-inner {
    grid-template-columns: 1fr 1fr;
    gap: 17px 4px;
  }

  .accessibility-group button {
    width: auto;
  }

  .accessibility-theme-controls {
    flex-wrap: wrap;
  }

  .accessibility-actions .accessibility-control-row {
    flex-wrap: wrap;
  }

  .accessibility-actions .accessibility-exit {
    order: 3;
    flex: 0 0 100%;
  }
}

/* Diseases directory: approved structure, content comes later */

@media (min-width: 1361px) and (max-width: 1540px) {
  .header-line {
    grid-template-columns: 205px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .brand img {
    width: 205px;
  }

  .main-nav > a,
  .nav-item > a {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 14px;
  }

  .header-contact {
    gap: 8px;
  }

  .header-contact .button {
    padding-right: 16px;
    padding-left: 16px;
  }
}

/* Kapelnitsy: homepage feature and direction page */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Onest, Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

i[class*="fa-"] {
  font-style: normal;
}

.icon-svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: currentColor;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1376px, calc(100% - 64px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-line {
  width: min(1410px, calc(100% - 40px));
  min-height: 84px;
  display: grid;
  grid-template-columns: 235px 1fr auto;
  align-items: center;
  gap: 20px;
}

.header-line > * {
  min-width: 0;
}


.service-cta-grid > * {
  min-width: 0;
}

.brand img {
  width: 228px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.main-nav > a,
.nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 11px;
  border-radius: var(--radius);
  color: #24323f;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 160ms var(--ease-out), color 160ms var(--ease-out);
}

.main-nav > a:hover,
.nav-item:hover > a,
.nav-item:focus-within > a {
  background: var(--wash);
  color: var(--green-deep);
}

.main-nav > a.is-active,
.nav-item > a.is-active {
  background: var(--mint);
  color: var(--green-deep);
}

.nav-item {
  position: relative;
}

.nav-item > a::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  opacity: .72;
  transform: rotate(45deg);
  transition: transform 180ms var(--ease-out), opacity 160ms var(--ease-out);
}

.nav-item:hover > a::after,
.nav-item:focus-within > a::after {
  opacity: 1;
  transform: translateY(3px) rotate(225deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: 40;
  width: min(430px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(205, 220, 226, .92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 22px 46px rgba(21, 35, 49, .15);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 170ms var(--ease-out), transform 190ms var(--ease-out);
}

.nav-dropdown::before {
  content: "";
  position: absolute;
  inset: -14px 0 auto;
  height: 14px;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-dropdown a {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 12px;
  border-radius: var(--radius);
  color: var(--ink);
  transition: background 150ms var(--ease-out), color 150ms var(--ease-out), transform 150ms var(--ease-out);
}

.nav-dropdown a:hover,
.nav-dropdown a:focus {
  background: var(--wash);
  color: var(--green-deep);
  transform: translateY(-1px);
  outline: none;
}

.nav-dropdown b {
  font-size: 15px;
  line-height: 1.2;
}

.nav-dropdown span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.nav-dropdown-compact {
  width: min(360px, calc(100vw - 32px));
}

.nav-dropdown-contacts {
  width: min(330px, calc(100vw - 32px));
  grid-template-columns: 1fr;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mobile-nav-toggle,
.mobile-nav-backdrop {
  display: none;
}

.mobile-nav-toggle {
  position: relative;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.mobile-nav-toggle span {
  position: absolute;
  left: 13px;
  width: 19px;
  height: 2px;
  display: block;
  margin: 0;
  border-radius: 99px;
  background: currentColor;
  transition: top 180ms var(--ease-out), transform 180ms var(--ease-out), opacity 140ms var(--ease-out);
}

.mobile-nav-toggle span:nth-child(1) {
  top: 16px;
}

.mobile-nav-toggle span:nth-child(2) {
  top: 22px;
}

.mobile-nav-toggle span:nth-child(3) {
  top: 28px;
}

.mobile-nav-toggle.is-open span:nth-child(1) {
  top: 22px;
  transform: rotate(45deg);
}

.mobile-nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.is-open span:nth-child(3) {
  top: 22px;
  transform: rotate(-45deg);
}

.phone {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  white-space: nowrap;
}

.phone i {
  color: var(--green);
}

.phone b {
  display: block;
  font-size: 18px;
  line-height: 1.1;
}

.phone small {
  color: var(--muted);
  font-size: 13px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 150ms var(--ease-out), background 180ms var(--ease-out), border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.button:active,
.branch:active {
  transform: scale(.98);
}

.button-primary {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 12px 26px rgba(9, 137, 68, .22);
}

.button-primary:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
}

.button-secondary {
  color: #233340;
  background: rgba(255, 255, 255, .86);
  border-color: #cbd8de;
}

.button-secondary:hover {
  background: #fff;
  border-color: #aebec7;
}

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

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

h1 {
  margin-bottom: 18px;
  max-width: 680px;
  font-weight: 700;
  font-size: clamp(36px, 3.9vw, 56px);
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.branch {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 8px;
  border-radius: var(--radius);
  transition: transform 150ms var(--ease-out), background 180ms var(--ease-out);
}

.branch:hover {
  background: var(--wash);
}

.branch img {
  width: 58px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
}

.branch b {
  display: block;
  font-size: 15px;
}

.branch small {
  color: var(--muted);
  font-size: 12px;
}

section {
  padding: 58px 0;
}

.has-scroll-reveal [data-reveal],
.has-scroll-reveal [data-reveal-item] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 560ms var(--ease-out),
    transform 660ms var(--ease-out);
  will-change: opacity, transform;
}

.has-scroll-reveal [data-reveal].is-visible,
.has-scroll-reveal [data-reveal-item].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .has-scroll-reveal [data-reveal],
  .has-scroll-reveal [data-reveal-item] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


.appointment h2,
.about h2,
.contacts h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.05;
  letter-spacing: 0;
}

.appointment {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 72px 0;
  color: #fff;
  background:
    radial-gradient(90% 140% at 86% 4%, rgba(10, 143, 74, .28) 0%, rgba(10, 143, 74, .1) 34%, rgba(10, 143, 74, 0) 58%),
    linear-gradient(135deg, var(--brand-dark) 0%, #064953 100%);
  border-top: 1px solid rgba(7, 84, 93, .08);
  border-bottom: 1px solid rgba(7, 84, 93, .08);
}

.appointment::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -16vw;
  bottom: -34vw;
  width: min(920px, 72vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 84px solid rgba(10, 143, 74, .22);
  transform: rotate(-10deg);
  filter: blur(.3px);
}

.appointment::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .18;
  background-image: radial-gradient(rgba(255, 255, 255, .34) 1px, transparent 1px);
  background-size: 4px 4px;
  mask-image: linear-gradient(90deg, transparent 30%, #000 76%, transparent 100%);
}

.appointment .eyebrow {
  color: #b9dc78;
}

select,
input {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid #cfdee5;
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  font: inherit;
  outline: none;
  transition: border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}

textarea {
  width: 100%;
  min-height: 112px;
  padding: 13px;
  border: 1px solid #cfdee5;
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  font: inherit;
  resize: vertical;
  outline: none;
  transition: border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(9, 137, 68, .11);
}

.contacts {
  padding-bottom: 28px;
  background: #122331;
  color: #fff;
}

.contacts .eyebrow {
  color: #85d9a8;
}

.group-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.group-head h2 {
  margin: 0;
  font-size: clamp(26px, 2.5vw, 36px);
  line-height: 1.08;
}

.document-count {
  display: inline-flex;
  align-items: center;
  margin-left: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  vertical-align: middle;
  white-space: nowrap;
}

.text-link {
  color: var(--blue);
  font-weight: 800;
  white-space: nowrap;
}

.text-link:hover {
  color: var(--green-deep);
}

.service-cta {
  background: var(--wash);
  border-top: 1px solid var(--line);
}

.service-cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}

.service-cta h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.06;
}

.service-cta-actions {
  display: flex;
  gap: 12px;
}

.doctor-card {
  display: grid;
  grid-template-columns: minmax(136px, 34%) minmax(0, 1fr);
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 180ms var(--ease-out), border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.doctor-card:hover {
  transform: translateY(-2px);
  border-color: #c4d8df;
  box-shadow: 0 14px 26px rgba(21, 35, 49, .08);
}

.doctor-card.is-hidden {
  display: none;
}

.doctor-empty {
  grid-column: 1 / -1;
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 28px;
  border: 1px dashed #c9d5dc;
  border-radius: var(--radius);
  background: var(--wash);
  color: var(--text);
  font-weight: 800;
  text-align: center;
}

.doctor-empty[hidden] {
  display: none;
}

.doctor-profile-photo-wrap {
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eef3f5;
  box-shadow: 0 22px 48px rgba(21, 35, 49, .1);
}

.doctor-profile-photo-wrap.is-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.doctor-profile-photo-wrap.is-placeholder i {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: #fff;
  color: var(--green);
  font-size: 24px;
}

.documents-page {
  background: #fff;
}

.document-group {
  scroll-margin-top: 110px;
  padding: 0;
}

.document-group.is-hidden {
  display: none;
}

.document-file {
  min-height: 86px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 150ms var(--ease-out), border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

.document-file:hover {
  transform: translateY(-1px);
  border-color: #c4d8df;
  box-shadow: 0 12px 26px rgba(21, 35, 49, .07);
}

.document-file::after {
  content: "Открыть";
  align-self: center;
  padding: 8px 10px;
  border-radius: 999px;
  background: #f3f8f6;
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: background 160ms var(--ease-out), color 160ms var(--ease-out);
}

.document-file:hover::after {
  background: var(--green);
  color: #fff;
}

.document-file > i {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--green);
  background: var(--mint);
  font-size: 20px;
}

.document-file b,
.document-file small {
  display: block;
}

.document-file small {
  margin-top: 5px;
  color: var(--muted);
  font-weight: 700;
}

/* Patient information from customer documents. Keep the reading column calm and narrow. */
.patient-hero { padding: 34px 0 60px; background: #f3f8f6; border-bottom: 1px solid var(--line); }
.patient-breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 38px; font-size: 14px; color: var(--muted); }
.patient-breadcrumbs a { text-decoration: underline; text-underline-offset: 4px; }
.patient-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 64px; align-items: start; }
.patient-hero h1 { max-width: 20ch; margin: 12px 0 24px; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.12; letter-spacing: -.035em; }
.patient-lead { max-width: 64ch; margin: 0; font-size: 19px; line-height: 1.7; color: #42565e; }
.patient-appointment { padding: 26px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: 10px; }
.patient-appointment h2 { margin: 12px 0 16px; font-size: 24px; line-height: 1.2; }
.patient-appointment p:not(.eyebrow) { font-size: 14px; line-height: 1.7; color: #42565e; }
.patient-appointment .button { display: flex; margin-top: 24px; text-align: center; }
.patient-phone { display: block; margin-top: 20px; font-weight: 800; text-align: center; }
.patient-body { padding: 64px 0 72px; }
.patient-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 68px; align-items: start; }
.patient-toc { position: sticky; top: 130px; padding-right: 24px; border-right: 1px solid var(--line); }
.patient-toc a { display: block; padding: 12px 0; font-size: 14px; line-height: 1.5; }
.patient-toc a:hover, .patient-phone:hover { color: var(--green); }
.patient-article { min-width: 0; max-width: 760px; }
.patient-article-title { margin: 0 0 36px; font-size: clamp(25px, 2.4vw, 34px); line-height: 1.25; }
.patient-copy { min-width: 0; padding: 0; scroll-margin-top: 140px; }
.patient-article .patient-copy + .patient-copy { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.patient-copy h3 { margin: 0 0 16px; font-size: 22px; line-height: 1.35; }
.patient-copy p, .patient-copy li { margin: 0; font-size: 16px; line-height: 1.85; color: #42565e; }
.patient-copy li + li { margin-top: 8px; }
.patient-faq { padding: 0; margin-top: 48px; scroll-margin-top: 140px; }
.patient-faq h2, .patient-related h2 { margin: 0 0 20px; font-size: 26px; line-height: 1.3; }
.patient-faq details { border-top: 1px solid var(--line); }
.patient-faq details:last-child { border-bottom: 1px solid var(--line); }
.patient-faq summary { min-height: 54px; padding: 17px 6px; font-weight: 700; cursor: pointer; line-height: 1.5; }
.patient-faq details p { padding: 0 6px 20px; margin: 0; color: #42565e; line-height: 1.8; }
.patient-related { padding: 0; margin-top: 38px; }
.patient-related h3 { margin: 0 0 20px; font-size: 22px; }
.patient-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; }
.patient-links a { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--green); font-weight: 700; line-height: 1.5; }
.patient-links a:hover span:first-child { text-decoration: underline; text-underline-offset: 4px; }
.patient-links a span:first-child { min-width: 0; }
.patient-disclaimer { margin: 36px 0 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.7; }
.patient-toc a:focus-visible, .patient-links a:focus-visible, .patient-faq summary:focus-visible, .patient-phone:focus-visible, .patient-breadcrumbs a:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; border-radius: 3px; }
@media (max-width: 1000px) {
  .patient-hero-grid { grid-template-columns: minmax(0, 1fr) 290px; gap: 32px; }
  .patient-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 32px; }
  .patient-toc { top: 160px; }
}
@media (max-width: 760px) {
  .patient-hero { padding: 24px 0 36px; }
  .patient-breadcrumbs { margin-bottom: 28px; font-size: 13px; }
  .patient-hero-grid, .patient-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .patient-hero h1 { font-size: clamp(30px, 8vw, 40px); margin-bottom: 22px; }
  .patient-lead { font-size: 17px; line-height: 1.75; }
  .patient-appointment { padding: 22px; }
  .patient-body { padding: 36px 0 44px; }
  .patient-toc { position: static; padding: 0 0 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .patient-toc a { padding: 10px 0; min-height: 44px; }
  .patient-copy h3 { font-size: 21px; }
  .patient-links { grid-template-columns: minmax(0, 1fr); }
  .patient-faq { margin-top: 34px; }
}
.pregnancy-appointment .pregnancy-help-link {
  display: block;
  margin-top: 18px;
  color: var(--green);
  font-size: 14px;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.pregnancy-appointment .button {
  white-space: normal;
}
.pregnancy-prices,
.pregnancy-price-group,
.pregnancy-booking {
  padding: 0;
  scroll-margin-top: 160px;
}
.pregnancy-prices {
  margin-bottom: 48px;
}
.pregnancy-prices h2,
.pregnancy-booking h2 {
  margin: 12px 0 18px;
  font-size: clamp(25px, 2.4vw, 32px);
  line-height: 1.3;
}
.pregnancy-price-date {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
}
.pregnancy-price-intro {
  margin: 0;
  color: #42565e;
  line-height: 1.8;
}
.pregnancy-price-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 18px 0 30px;
}
.pregnancy-price-jumps a,
.pregnancy-visit-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.pregnancy-price-group + .pregnancy-price-group {
  margin-top: 32px;
}
.pregnancy-price-group h3 {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.4;
}
.pregnancy-price-list {
  border-top: 1px solid var(--line);
}
.pregnancy-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 140px;
  gap: 14px 24px;
  align-items: center;
  padding: 20px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  line-height: 1.6;
}
.pregnancy-price-row:hover {
  background: #f3f8f6;
}
.pregnancy-service-name {
  min-width: 0;
  overflow-wrap: anywhere;
}
.pregnancy-price-row > b {
  white-space: nowrap;
  font-size: 18px;
}
.pregnancy-row-action {
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}
.pregnancy-price-row:focus-visible,
.pregnancy-appointment .pregnancy-help-link:focus-visible,
.pregnancy-price-jumps a:focus-visible,
.pregnancy-booking a:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}
.pregnancy-booking {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.pregnancy-booking ol {
  margin: 0;
  padding-left: 24px;
}
.pregnancy-booking li {
  padding-left: 8px;
  line-height: 1.7;
}
.pregnancy-booking li + li {
  margin-top: 20px;
}
.pregnancy-booking li p {
  margin: 6px 0 0;
  color: #42565e;
}
.pregnancy-booking li a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.pregnancy-visit-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 24px;
}
@media (max-width: 1000px) {
  .pregnancy-price-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 16px;
  }
  .pregnancy-service-name {
    grid-column: 1 / -1;
  }
  .pregnancy-row-action {
    text-align: right;
  }
}
@media (max-width: 520px) {
  .pregnancy-price-row {
    padding: 18px 4px;
  }
  .pregnancy-prices {
    margin-bottom: 36px;
  }
  .pregnancy-price-jumps,
  .pregnancy-visit-links {
    flex-direction: column;
    gap: 2px;
  }
}

.prices-page {
  padding-top: 44px;
  background: #fff;
}

.price-loading {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.price-loading-card {
  min-height: 156px;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
}

.price-more {
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  border: 1px solid #cfe0e6;
  border-radius: 8px;
  background: #f7fbf9;
  color: var(--green-deep);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: border-color 160ms var(--ease-out), background 160ms var(--ease-out);
}

.price-more:hover {
  border-color: #a9d3bb;
  background: #edf8f1;
}

.price-more[hidden] {
  display: none;
}
