:root {
  --green: #4f9f3a;
  --green-dark: #25713a;
  --green-deep: #15552e;
  --green-soft: #eff8eb;
  --brick: #b75d42;
  --ink: #18302a;
  --muted: #61726d;
  --line: #dce9df;
  --white: #fff;
  --shadow: 0 18px 45px rgba(22, 65, 43, .10);
  --radius: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { display: flex; width: 100%; max-width: 100%; min-height: 100vh; margin: 0; padding-top: 160px; flex-direction: column; overflow-x: clip; background: #fcfdfb; color: var(--ink); line-height: 1.6; }
html, body { background: #fcfdfb; }
body.spa-loading main { opacity: .35; transform: translateY(8px); pointer-events: none; }
main { flex: 1 0 auto; transition: opacity .2s ease, transform .2s ease; }
.page-transition {
  position: fixed;
  z-index: 2147483646;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  background: #fcfdfb;
  pointer-events: none;
  transition: opacity .45s ease, visibility 0s linear .45s;
}
html.is-loading .page-transition { visibility: visible; opacity: 1; transition: none; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--green-deep); }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 840px; margin-bottom: 20px; font-size: clamp(2.1rem, 5vw, 4.4rem); line-height: 1.07; letter-spacing: -.05em; }
h2 { margin-bottom: 22px; font-size: clamp(1.8rem, 4vw, 3.5rem); line-height: 1.08; letter-spacing: -.05em; }
h3 { margin-bottom: 10px; font-size: 1.25rem; line-height: 1.2; }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: -999px; padding: 10px 16px; background: var(--ink); color: #fff; }
.skip-link:focus { left: 12px; }
.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  background: linear-gradient(180deg, #206d3a 100%, #1a6836 0%);
  border-bottom: 1px solid rgba(255,255,255,.12);
  border-radius: 0;
  box-shadow: 0 9px 26px rgba(10, 50, 29, .22);
  transform: translateY(var(--header-footer-offset, 0px));
}
.nav {
  display: flex;
  max-width: 100%;
  min-height: 116px;
  align-items: center;
  gap: 24px;
  padding-block: 0;
}

main,
.footer {
  max-width: 100vw;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  body,
  .site-header,
  main,
  .footer {
    overflow-x: hidden;
  }
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: -12px;
  min-width: 350px;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: #fff;
  line-height: 1.05;
  box-shadow: none;
}
.site-header .brand { transform: translateX(-6px); }
.brand img {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  object-fit: contain;
  filter: none;
}
.brand span, .brand small { display: block; }
.brand span { margin-left: -16px; text-align: left; }
.brand strong { display: block; font-size: 1.16rem; line-height: 1.02; overflow-wrap: normal; white-space: nowrap; }
.brand small { margin-top: 7px; color: rgba(255,255,255,.82); font-size: .82rem; line-height: 1.25; overflow-wrap: normal; text-transform: uppercase; letter-spacing: .09em; white-space: nowrap; }
.main-nav {
  display: flex;
  gap: 14px;
  margin-left: -4px;
  padding: 10px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.68);
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.main-nav a {
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 999px;
}
.main-nav a:hover { background: rgba(255,255,255,.14); }
.main-nav__call { display: none; }
.header-actions { position: relative; display: flex; align-items: center; gap: 10px; margin-left: auto; text-align: right; }
#medflexMedtochkaWidgetButton {
  position: relative;
  z-index: 20;
  flex: 0 0 148px;
  width: 148px;
  height: 56px;
}
#medflexMedtochkaWidgetButton > * {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  border: 1px solid rgba(255,255,255,.72) !important;
  border-radius: 20px !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  transition: border-color .2s ease, box-shadow .2s ease, filter .2s ease !important;
}
#medflexMedtochkaWidgetButton > *:hover {
  border-color: #fff !important;
  box-shadow: 0 0 0 2px rgba(255,255,255,.24) !important;
  filter: brightness(1.04);
}
#medflexMedtochkaWidgetButton .medflex-medtochka-widget {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 7px 11px !important;
  overflow: hidden !important;
  color: #fff !important;
  font-size: .86rem !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  text-align: center !important;
  white-space: normal !important;
}
#medflexMedtochkaWidgetButton .medflex-medtochka-widget > * {
  min-width: 0 !important;
  margin: 0 !important;
}
#medflexMedtochkaWidgetButton .medflex-medtochka-widget svg,
#medflexMedtochkaWidgetButton .medflex-medtochka-widget img {
  flex: 0 0 22px !important;
  width: 22px !important;
  height: 22px !important;
}
.accessibility-toggle,
.header-icon-button {
  display: grid;
  width: 56px;
  height: 56px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  cursor: pointer;
  font-size: .86rem;
  font-weight: 700;
}
.header-icon-button:hover,
.accessibility-toggle:hover { background: rgba(255,255,255,.18); color: #fff; }
.accessibility-toggle__icon { display: block; width: 30px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.accessibility-toggle__icon--filled { width: 31px; height: 31px; fill: currentColor; stroke: currentColor; stroke-width: 5; stroke-linejoin: round; }
.accessibility-toggle__label { display: none; }
.header-search-button__icon { width: 25px; height: 25px; fill: currentColor; }
.accessibility-toggle--strong { box-shadow: 0 8px 20px rgba(53, 117, 53, .12); }
.appointment-launcher { display: grid; width: 56px; height: 56px; min-height: 0; padding: 0; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; box-shadow: 0 8px 20px rgba(53,117,53,.12); }
.appointment-launcher svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.appointment-launcher:hover { background: rgba(255,255,255,.18); }
.medflex-round-widget__button {
  left: auto !important;
}
@media (min-width: 761px) {
  .medflex-round-widget__button {
    right: 56px !important;
    bottom: 56px !important;
    width: 112px !important;
    height: 112px !important;
  }
}
.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 100px;
  background: rgba(255,255,255,.12);
  padding: 8px 14px;
  color: #fff;
  font-size: 1.16rem;
  font-weight: 750;
}
@media (min-width: 1000px) {
  .nav { position: relative; }
  .main-nav {
    position: absolute;
    top: auto;
    right: auto;
    left: 50%;
    margin-left: 0;
    transform: translateX(-50%);
  }
}
.accessibility-panel { position: fixed; z-index: 60; top: 160px; right: 0; left: 0; max-height: calc(100vh - 160px); overflow-y: auto; visibility: hidden; opacity: 0; clip-path: inset(0 0 100% 0); background: #17382e; color: #fff; border-bottom: 1px solid rgba(255,255,255,.14); box-shadow: 0 10px 24px rgba(10, 50, 29, .18); pointer-events: none; transform-origin: top; transition: opacity .26s ease, clip-path .26s ease, visibility 0s linear .26s; }
.accessibility-panel.is-open { visibility: visible; opacity: 1; clip-path: inset(0); pointer-events: auto; transition-delay: 0s; }
.accessibility-panel__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; min-height: 68px; padding: 12px 0; }
.accessibility-panel__title { text-transform: uppercase; letter-spacing: .08em; font-size: .88rem; }
.accessibility-panel__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.22); }
.accessibility-panel__group span { font-size: .82rem; color: #d7e7df; }
.accessibility-panel__group button, .accessibility-panel__close { border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: rgba(255,255,255,.06); color: #fff; padding: 8px 12px; cursor: pointer; }
.accessibility-panel__close { margin-left: auto; background: #fff; color: #17382e; font-weight: 800; }
.hero { overflow: hidden; padding: 46px 0 28px; background:
  radial-gradient(circle at 8% 18%, rgba(79,159,58,.16), transparent 36%),
  linear-gradient(180deg, #fbfdf8 0%, #ffffff 100%);
}
.hero__grid, .split, .profile-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(30px, 6vw, 74px); }
.hero__grid { grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: clamp(30px, 5vw, 60px); }
.hero__grid--rich { align-items: start; }
.hero__lead { max-width: 640px; color: var(--muted); font-size: 1.12rem; }
.hero-copy h1 {
  max-width: 680px;
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  line-height: 1.04;
  overflow-wrap: normal;
  hyphens: none;
  text-wrap: balance;
}
.hero-copy h1 span { white-space: normal; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0; }
.hero-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.hero-points div { padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 8px 22px rgba(34, 86, 57, .04); }
.hero-points > div { display: flex; flex-direction: column; align-items: stretch; gap: 1px; }
.hero-points strong { display: block; margin-bottom: 0; color: var(--green-deep); }
.hero-points > div > span { display: block; }
.hero-points > div > .hero-schedule { display: grid; }
.hero-points span { color: var(--muted); font-size: .9rem; }
.hero-schedule { display: grid; gap: 3px; }
.hero-schedule > span { display: grid; min-width: 0; grid-template-columns: 36px minmax(0, 1fr); gap: 3px; align-items: baseline; font-size: .8rem; }
.hero-schedule b { color: inherit; font-weight: 400; white-space: nowrap; }
.hero-schedule > span > span { white-space: nowrap; }
.hero__media { position: relative; }
.hero-logo-card {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  width: min(100%, 700px);
  align-self: center;
  justify-self: center;
  border-radius: 36px;
  background: #fff;
  overflow: hidden;
  padding: 4px;
  box-shadow: var(--shadow);
}
.hero-logo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 32px;
  filter: none;
}
.hero__frame { display: flex; flex-wrap: wrap; gap: 8px; max-width: 360px; margin-top: 16px; }
.hero__frame--below { justify-content: center; }
.hero__frame-tag { padding: 12px 14px; border-radius: 18px; background: rgba(21, 85, 46, .92); color: #fff; font-weight: 800; box-shadow: var(--shadow); }
.hero__frame-tag--soft { background: rgba(255, 255, 255, .93); color: var(--green-deep); }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 12px 20px; border: 1px solid var(--green-dark); border-radius: 100px; background: var(--green-dark); color: #fff; cursor: pointer; font-weight: 800; transition: .2s ease; }
.button:hover { transform: translateY(-2px); background: var(--green-deep); color: #fff; }
.button--ghost, .button--secondary { background: transparent; color: var(--green-deep); }
.button--ghost:hover { background: var(--green-soft); color: var(--green-deep); }
.section { padding: clamp(32px, 5vw, 59px) 0; }
.section + .section { padding-top: clamp(16px, 3vw, 30px); }
.section--soft { background: var(--green-soft); }
.section--accent { background: var(--green-deep); color: #fff; }
.section--accent a { color: #d8ffd1; }
.eyebrow {
  margin-bottom: 12px;
  color: var(--green-dark);
  font-size: .86rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero-copy .eyebrow,
.page-hero .eyebrow,
.section .eyebrow,
.booking-dialog .eyebrow {
  display: inline-flex;
  color: var(--green-dark);
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(79,159,58,.12);
}
.section--accent .eyebrow { color: #c9f2ba; }
.cards, .document-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cards--services { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.service-card, .doctor-card, .review-card, .document-card, .authority-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 8px 22px rgba(34, 86, 57, .05); transition: .2s ease; }
.service-card:hover { transform: translateY(-5px); border-color: #aace9c; box-shadow: var(--shadow); }
.service-card__icon { display: grid; width: 72px; height: 72px; place-items: center; margin-bottom: 24px; border-radius: 20px; background: linear-gradient(135deg, #dff4d8, #f8fdf6); color: var(--green-dark); }
.service-card__icon svg { width: 50px; height: 50px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.service-card__icon .service-icon__diaphragm-inner { stroke-width: 1.5; }
.service-card p, .doctor-card p, .document-card span { color: var(--muted); font-size: .91rem; }
.doctors-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.doctor-card { display: grid; min-width: 0; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px 14px; overflow: hidden; border-color: #d7e7da; box-shadow: 0 8px 22px rgba(25, 76, 45, .07); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.doctor-card:hover { transform: translateY(-3px); border-color: #aacfb2; box-shadow: 0 16px 34px rgba(25, 76, 45, .13); }
.doctor-card__photo { display: grid; width: 72px; height: 82px; place-items: center; overflow: hidden; border-radius: 10px; background: #e9f5e7; color: var(--green-dark); }
.doctor-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .3s ease; }
.doctor-card:hover .doctor-card__photo img { transform: scale(1.025); }
.doctor-card__placeholder { display: grid; width: 48px; height: 48px; place-items: center; border: 2px solid currentColor; border-radius: 50%; font-size: 1.8rem; line-height: 1; }
.doctor-card__body { display: flex; min-width: 0; height: 100%; flex-direction: column; align-items: flex-start; padding: 0; }
.doctor-card__name { min-height: 2.44em; margin: 0 0 5px; font-size: 1.08rem; line-height: 1.22; }
.doctor-card__name a { color: var(--ink); }
.doctor-card__position { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.doctor-card__meta { display: flex; width: 100%; min-height: 24px; margin-top: auto; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .82rem; }
.doctor-card__meta strong { color: var(--green-dark); white-space: nowrap; }
.doctor-card__details { display: inline-flex; margin-top: 16px; align-items: center; color: var(--green-dark); font-weight: 800; }
.doctor-card__details::after { content: "→"; margin-left: 7px; transition: transform .2s ease; }
.doctor-card__details:hover::after { transform: translateX(3px); }
.doctor-card__experience { margin-top: 8px; color: var(--muted); font-size: .8rem; }
.doctor-card__source { display: inline-flex; margin-top: auto; padding-top: 8px; align-items: center; color: var(--green-dark); font-size: .78rem; font-weight: 800; }
.doctor-card__source:hover { color: var(--green-deep); text-decoration: underline; }
.section--soft .doctors-grid { align-items: stretch; }
.section--soft .doctor-card__position { display: -webkit-box; overflow: hidden; line-clamp: 2; -webkit-box-orient: vertical; }
.doctors-section__footer { display: flex; margin-top: 20px; justify-content: flex-end; }
.doctors-section { padding-bottom: clamp(16px, 2.5vw, 30px); }
.doctors-section__all { display: inline-flex; min-height: 44px; padding: 10px 18px; align-items: center; justify-content: center; border: 1px solid var(--green-dark); border-radius: 999px; color: var(--green-dark); font-weight: 800; }
.doctors-section__all:hover { background: var(--green-dark); color: #fff; }
.doctors-section__heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.prodoctorov-doctors-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.prodoctorov-doctors-grid > .pd_widget_app { min-width: 0; }
@media (max-width: 760px) {
  .doctors-section__heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .doctors-section__heading h2 { margin-bottom: 0; }
  .doctors-section__all { position: relative; top: -10px; align-self: flex-end; }
  .prodoctorov-doctors-grid { grid-template-columns: 1fr; }
}
.doctors-page .doctors-grid { align-items: stretch; }
.doctors-page .doctor-card__position { display: -webkit-box; overflow: hidden; line-clamp: 2; -webkit-box-orient: vertical; }
.doctors-page .doctor-card { width: 100%; }
.doctors-page .doctor-card__source { margin-top: 10px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.facts div { padding: 22px; border-left: 3px solid var(--brick); background: #fff; }
.facts strong, .facts span { display: block; }
.facts strong { color: var(--green-dark); font-size: 1.5rem; }
.facts span { color: var(--muted); font-size: .86rem; }
.gallery-carousel { position: relative; display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.gallery-carousel__viewport {
  overflow-x: hidden;
  overflow-y: hidden;
  width: 100%;
}
.gallery-carousel__viewport::-webkit-scrollbar { display: none; }
.gallery-carousel__track { display: flex; gap: 16px; will-change: transform; }
.gallery-carousel__track.is-animated { transition: transform 980ms cubic-bezier(.22, 1, .36, 1); }
.gallery-carousel__slide { flex: 0 0 calc((100% - 32px) / 3); margin: 0; }
.gallery-carousel__slide img { display: block; width: 100%; height: 340px; border-radius: var(--radius); object-fit: cover; image-rendering: auto; box-shadow: 0 8px 22px rgba(34, 86, 57, .08); }
.gallery-carousel__control {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border: 1px solid var(--green);
  border-radius: 50%;
  background: #fff;
  color: var(--green-dark);
  box-shadow: 0 8px 20px rgba(34, 86, 57, .08);
}
.gallery-carousel__control:hover { background: var(--green-dark); color: #fff; }
.gallery-carousel__control:focus-visible { outline: 3px solid #93c97e; outline-offset: 2px; }
.gallery-carousel__icon {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.reviews-section__inner { display: grid; gap: 18px; }
.pd-widget-fallback { margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--muted); }
.pd-widget-fallback a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.third-party-blocked { display: block !important; min-height: 120px; }
.third-party-consent-placeholder {
  display: grid;
  gap: 6px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--green-soft);
  color: var(--ink);
}
.third-party-consent-placeholder span { color: var(--muted); }
.third-party-consent-placeholder button {
  justify-self: start;
  margin-top: 6px;
  padding: 11px 18px;
  border: 0;
  border-radius: 100px;
  background: var(--green-dark);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}
.prodoctorov-doctors-grid > .third-party-consent-placeholder { grid-column: 1 / -1; }
.reviews-section__inner { display: grid; gap: 18px; }
.search-page input, .footer-search input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.split--map { align-items: center; }
.map-copy { align-self: center; }
.map-wrap { position: relative; width: 100%; min-height: 0; aspect-ratio: 5 / 4; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 26px rgba(34, 86, 57, .12); background: #e8f0e7; }
.map-wrap iframe { display: block; width: 100% !important; max-width: 100%; height: 100% !important; border: 0; }
.map-static-link { display: block; width: 100%; height: 100%; }
.map-static-link img { display: block; width: 100%; height: 100%; border: 0; object-fit: contain; object-position: center; }
.map-frame { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; background: #eef5ea; object-fit: cover; object-position: center; }
.map-embed {
  position: relative;
  width: 100%;
  min-height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(0deg, rgba(255,255,255,.50), rgba(255,255,255,.50)),
    linear-gradient(90deg, rgba(255,255,255,.14) 0 0),
    #eef5ea;
}
.map-embed::before,
.map-embed::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.45) 1px, transparent 1px);
  background-size: 92px 92px, 92px 92px;
  opacity: .42;
  pointer-events: none;
}
.map-embed::after {
  background:
    linear-gradient(118deg, transparent 0 23%, rgba(255,214,120,.88) 23.5% 25%, transparent 25.5% 46%, rgba(255,214,120,.82) 46.5% 48%, transparent 48.5% 100%),
    linear-gradient(180deg, transparent 0 41%, rgba(255,214,120,.82) 41.5% 43%, transparent 43.5% 100%);
  opacity: .75;
}
.map-embed__park {
  position: absolute;
  top: 20px;
  right: 18px;
  width: 180px;
  height: 140px;
  border-radius: 44% 56% 38% 62% / 44% 36% 64% 56%;
  background: linear-gradient(135deg, rgba(126,189,102,.55), rgba(159,214,128,.42));
  filter: blur(.3px);
}
.map-embed__street {
  position: absolute;
  color: #55626a;
  font-size: .82rem;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255,255,255,.75);
  white-space: nowrap;
  z-index: 1;
}
.map-embed__street--1 { top: 62px; left: 42px; transform: rotate(-52deg); }
.map-embed__street--2 { bottom: 66px; left: 130px; transform: rotate(-4deg); }
.map-embed__street--3 { top: 114px; right: 64px; transform: rotate(-78deg); }
.map-embed__street--4 { left: 50px; top: 224px; transform: rotate(-88deg); }
.map-embed__marker {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50% 50% 50% 0;
  background: #f33535;
  transform: rotate(-45deg);
  box-shadow: 0 10px 22px rgba(243,53,53,.35);
  z-index: 2;
}
.map-embed__marker::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 6px rgba(255,255,255,.38);
}
.map-fallback {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 11px 15px;
  border-radius: 999px;
  background: var(--green-dark);
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(21,85,46,.24);
}
.map-fallback:hover { background: var(--green-deep); color: #fff; }
.map-fallback--large { transform: scale(1.33); transform-origin: right bottom; }
.map-fallback--large { font-weight: 600; }
.page-hero { padding: 72px 0 28px; background: linear-gradient(135deg, var(--green-soft), #fff); }
.page-hero h1 { max-width: 950px; font-size: clamp(2.5rem, 6vw, 4.6rem); }
.page-hero p { max-width: 760px; color: var(--muted); }
.page-hero__meta {
  margin-top: 12px;
  color: var(--green-deep);
  font-size: .92rem;
  font-weight: 700;
}
.page-hero__meta a { color: var(--green-dark); text-decoration: underline; text-underline-offset: 2px; }
.page-hero + .section { padding-top: 24px; }
.price-page {
  display: grid;
  grid-template-columns: minmax(230px, .78fr) minmax(0, 2.2fr);
  gap: 28px;
  align-items: start;
}
.price-page__sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 180px;
  z-index: 2;
  align-self: start;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
html:has(.price-page),
body:has(.price-page),
main:has(.price-page) { overflow: visible; }
.price-page__nav {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}
.price-page__nav a {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--green-deep);
  font-size: .92rem;
  font-weight: 700;
}
.price-page__nav a.is-active,
.price-page__nav a:hover { background: var(--green-soft); color: var(--green-deep); }
.price-page__nav a:last-child { border-bottom: 0; }
.price-page__note {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--green-soft);
  color: var(--green-deep);
}
.price-page__note strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}
.price-page__note p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}
.price-page__content {
  display: grid;
  gap: 22px;
}
.price-page__head {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}
.price-page__head .button { padding-inline: 22px; }
.reviews-section__button {
  background: var(--green-dark);
  color: #fff;
}
.reviews-section__button:hover {
  background: var(--green-deep);
  color: #fff;
}
.price-group {
  scroll-margin-top: 174px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}
.price-group:target { border-color: #9bcf91; box-shadow: 0 20px 48px rgba(34, 86, 57, .14); }
.price-group__title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 18px;
}
.price-group__title h3 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -.03em;
}
.price-group__title span {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 700;
}
.price-table {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(34, 86, 57, .07);
  overflow: hidden;
}
.price-table__head,
.price-table__row {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) 160px 140px;
  gap: 16px;
  align-items: center;
}
.price-table__head {
  padding: 15px 20px;
  background: linear-gradient(90deg, #edf8ea, #f6fbf4);
  color: var(--green-deep);
  font-size: .96rem;
  font-weight: 800;
}
.price-table__row {
  padding: 18px 20px;
  border-top: 1px solid var(--line);
}
.price-table__name {
  font-weight: 700;
  line-height: 1.35;
}
.price-table__duration,
.price-table__price {
  color: var(--muted);
  font-weight: 700;
}
.price-table__price {
  color: var(--green-deep);
  font-size: 1.02rem;
  font-weight: 900;
  text-align: left;
}
.document-grid { grid-template-columns: repeat(3, 1fr); }
.document-card { display: grid; gap: 14px; }
.document-card h2 { margin: 0; font-size: 1.3rem; letter-spacing: -.03em; }
.legal-layout { display: grid; grid-template-columns: minmax(240px, .7fr) 2fr; align-items: start; gap: 30px; }
.legal-layout--wide { grid-template-columns: minmax(0, 1fr); }
.legal-nav { display: grid; overflow: hidden; position: sticky; top: 120px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.legal-nav a { padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: .83rem; font-weight: 700; }
.authority-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 38px; }
.authority-card { display: flex; min-width: 0; margin-bottom: 12px; flex-direction: column; align-items: flex-start; box-shadow: none; }
.authority-grid .authority-card { min-height: 240px; margin-bottom: 0; }
.authority-card__logo { display: grid; width: 128px; height: 96px; margin: 0 auto 18px; place-items: center; }
.authority-card__logo img { width: 100%; height: 100%; object-fit: contain; }
.authority-grid .authority-card h3 { width: 100%; font-size: 1.08rem; text-align: center; }
.authority-grid .authority-card p { margin-bottom: 8px; color: var(--muted); }
.authority-grid .authority-card__website { margin-top: auto; margin-left: auto; font-weight: 800; }
.authority-card--link { color: inherit; text-decoration: none; cursor: pointer; }
.authority-card--link:hover { border-color: #8fbe7c; box-shadow: 0 10px 24px rgba(34, 86, 57, .1); }
.authority-card--link:focus-visible { outline: 3px solid #78ad63; outline-offset: 3px; }
.prose { max-width: 880px; }
.prose p { margin-bottom: 1.1em; }
.profile-photo { max-width: 380px; border-radius: var(--radius); box-shadow: var(--shadow); }
.search-page { display: flex; max-width: 700px; gap: 8px; }
.search-results { display: grid; gap: 12px; }
.search-results a { display: grid; gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.search-results__type { color: var(--green-deep); font-size: .82rem; font-weight: 800; }
.search-results__message { margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.search-results span { color: var(--muted); }
.messages { margin-top: 12px; }
.message { padding: 12px 16px; border-radius: 14px; background: var(--green-soft); }
.footer { flex-shrink: 0; padding: 54px 0 92px; background: #102d24; color: #d7e7df; }
.footer__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) max-content max-content max-content; gap: 36px; padding-bottom: 70px; }
.footer h2 { margin-bottom: 8px; color: #fff; font-size: .88rem; letter-spacing: .04em; text-transform: uppercase; }
.footer a { display: block; color: #d7e7df; font-size: .9rem; }
.brand--footer { display: inline-flex !important; color: #fff !important; align-items: center; gap: 12px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.brand--footer { width: auto; min-width: 0; max-width: 100%; gap: 14px; align-items: center; }
.brand--footer img { width: 112px; height: 112px; border: 0; background: transparent; filter: none; }
.brand--footer strong { display: block; max-width: 220px; font-size: 1.1rem; line-height: 1.14; }
.footer__grid > div:first-child > p { position: absolute; left: 0; bottom: 0; max-width: calc(100% - 300px); margin: 0; white-space: normal; overflow-wrap: break-word; }
.footer-search div { display: flex; gap: 6px; }
.footer-search label { display: block; margin-bottom: 8px; color: #fff; font-size: .88rem; font-weight: 700; }
.footer-search input { min-width: 0; }
.footer-search button { border: 0; border-radius: 10px; background: var(--green); color: #fff; font-weight: 800; }
.footer-search { position: absolute; right: 0; bottom: -12px; width: min(100%, 260px); transform: none; }
.footer-clinic-info p { margin: 0 0 14px; color: #d7e7df; font-size: .9rem; line-height: 1.55; }
.footer-clinic-info h2:not(:first-child) { margin-top: 14px; }
.footer__grid > div:not(:first-child) { min-width: 0; }
.footer-clinic-info p, .footer__grid > div:nth-child(2) a, .footer__grid > div:nth-child(3) a { white-space: nowrap; }
.footer__grid > div:nth-child(2),
.footer__grid > div:nth-child(3),
.footer-clinic-info { width: max-content; max-width: 100%; justify-self: start; }
.footer__bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .78rem; }
.footer__bottom a { grid-column: 2; }
.footer__bottom a { color: #d7e7df; text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner { position: fixed; z-index: 40; right: 18px; bottom: 18px; max-width: 430px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.cookie-banner strong { display: block; margin-bottom: 6px; font-size: 1rem; }
.cookie-banner p { margin-bottom: 12px; font-size: .9rem; color: var(--muted); }
.cookie-banner div { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-banner button { padding: 9px 13px; border: 1px solid var(--green-dark); border-radius: 100px; background: var(--green-dark); color: #fff; cursor: pointer; font-size: .82rem; font-weight: 600; }
.cookie-banner .button--secondary { background: transparent; color: var(--green-deep); }
.booking-dialog { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 12px; background: rgba(16, 45, 36, .58); }
.booking-dialog[hidden] { display: none !important; }
.booking-dialog__inner { position: relative; width: min(520px, 100%); padding: 28px; background: #fff; border-radius: 24px; box-shadow: var(--shadow); }
.booking-dialog__close { position: absolute; z-index: 2; top: 14px; right: 14px; display: grid; width: 40px; height: 40px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: var(--green-soft); color: var(--green-deep); font-size: 1.3rem; line-height: 1; cursor: pointer !important; pointer-events: auto; }
.booking-dialog__close:hover { background: #dcefd5; transform: scale(1.05); }
.booking-dialog__close:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 2px; }
.booking-dialog__phones { display: grid; gap: 10px; margin: 18px 0; }
.booking-dialog__phones a { padding: 14px 16px; border-radius: 14px; background: var(--green-soft); color: var(--green-deep); font-weight: 900; }
body.images-off img { visibility: hidden; }
body.accessible-mode { font-size: 112%; }
body.accessible-mode *, body.accessible-mode a { box-shadow: none !important; }
body.theme-dark { background: #111 !important; color: #fff !important; }
body.theme-dark .site-header, body.theme-dark .footer, body.theme-dark .section--soft, body.theme-dark .hero { background: #111 !important; color: #fff !important; }
body.theme-dark .button, body.theme-dark .appointment-launcher, body.theme-dark .accessibility-toggle, body.theme-dark .main-nav a { background: #000 !important; color: #fff !important; border-color: #fff !important; }
body.theme-dark .service-card, body.theme-dark .doctor-card, body.theme-dark .review-card, body.theme-dark .document-card, body.theme-dark .authority-card, body.theme-dark .hero-points div, body.theme-dark .booking-dialog__inner, body.theme-dark .cookie-banner, body.theme-dark .map-fallback { background: #1b1b1b !important; color: #fff !important; border-color: #666 !important; }
body.theme-dark .eyebrow, body.theme-dark .hero__lead, body.theme-dark .service-card p, body.theme-dark .doctor-card p, body.theme-dark .review-card figcaption, body.theme-dark .facts span, body.theme-dark .page-hero p { color: #f2f2f2 !important; }
body.theme-blue { background: #dfeeff !important; color: #001b33 !important; }
body.theme-blue .site-header, body.theme-blue .footer, body.theme-blue .section--soft, body.theme-blue .hero { background: #dfeeff !important; color: #001b33 !important; }

.advantages-section { padding-top: 84px; padding-bottom: 84px; }
.advantages-section h2 { margin-bottom: 34px; }
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 54px;
  align-items: start;
}
.advantage-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 16px;
  align-items: start;
}
.advantage-item svg {
  width: 74px;
  height: 74px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.advantage-item svg.advantage-item__doctor-icon { width: 64px; height: 64px; margin: 5px; stroke-width: 1; }
.advantage-item svg.advantage-item__catalogue-icon { width: 58px; height: 58px; margin: 3px; stroke-width: 1.1; }
.advantage-item svg.advantage-item__clock-icon { width: 64px; height: 64px; margin: 5px; stroke-width: 1.1; }
.advantage-item svg.advantage-item__calendar-icon { width: 64px; height: 64px; margin: 5px; stroke-width: 1.1; }
.advantage-item svg.advantage-item__family-icon { width: 64px; height: 64px; margin: 5px; stroke-width: 1.1; }
.advantage-item h3 { margin: 0 0 8px; font-size: 1.04rem; line-height: 1.22; }
.advantage-item p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.advantage-item:nth-child(4),
.advantage-item:nth-child(5) { transform: translateX(calc(50% + 27px)); }
@media (max-width: 1200px) {
  .advantages-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .advantage-item:nth-child(4),
  .advantage-item:nth-child(5) { transform: none; }
}
@media (max-width: 760px) {
  .advantages-grid { grid-template-columns: 1fr; gap: 22px; }
  .advantage-item { grid-template-columns: 58px 1fr; }
  .advantage-item svg { width: 58px; height: 58px; }
}
@media (max-width: 1200px) {
  .advantages-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .advantages-grid { grid-template-columns: 1fr; }
  .advantage-item { grid-template-columns: 56px 1fr; }
  .advantage-item svg { width: 56px; height: 56px; }
  .advantage-item svg.advantage-item__doctor-icon { width: 48px; height: 48px; margin: 4px; }
  .advantage-item svg.advantage-item__catalogue-icon { width: 50px; height: 50px; margin: 3px; }
  .advantage-item svg.advantage-item__clock-icon,
  .advantage-item svg.advantage-item__calendar-icon,
  .advantage-item svg.advantage-item__family-icon { width: 50px; height: 50px; margin: 3px; }
}
body.theme-yellow { background: #fff7b8 !important; color: #2b2200 !important; }
body.theme-yellow .site-header, body.theme-yellow .footer, body.theme-yellow .section--soft, body.theme-yellow .hero { background: #fff7b8 !important; color: #2b2200 !important; }
body.theme-green { background: #e7f6d8 !important; color: #17382e !important; }
body.theme-green .site-header, body.theme-green .footer, body.theme-green .section--soft, body.theme-green .hero { background: #e7f6d8 !important; color: #17382e !important; }
body.images-off img { display: none !important; }
.accessibility-panel .accessibility-panel__group button[data-theme="default"] { background: #fff; color: #111; }
.accessibility-panel .accessibility-panel__group button[data-theme="dark"] { background: #111; color: #fff; }
.accessibility-panel .accessibility-panel__group button[data-theme="blue"] { background: #a8d5ff; color: #111; }
.accessibility-panel .accessibility-panel__group button[data-theme="yellow"] { background: #ffeb3b; color: #111; }
.accessibility-panel .accessibility-panel__group button[data-theme="green"] { background: #c9f3b5; color: #111; }
.accessibility-panel .accessibility-panel__group button[data-font-step] { min-width: 40px; }
body .accessibility-panel .accessibility-panel__group button[data-images] { min-width: 52px; }
body.accessible-mode .cookie-banner { border-width: 2px; }
@media (max-width: 980px) {
  .doctors-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards--services { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); padding-bottom: 0; }
  .footer-search { position: static; width: auto; }
  .footer__grid > div:first-child > p { position: static; max-width: 100%; margin-top: 16px; }
  .footer-clinic-info p, .footer__grid > div:nth-child(2) a, .footer__grid > div:nth-child(3) a { white-space: normal; }
  .footer__grid > div:nth-child(2),
  .footer__grid > div:nth-child(3),
  .footer-clinic-info { justify-self: stretch; }
  .hero-points { grid-template-columns: 1fr; }
  .gallery-carousel__slide { flex-basis: calc((100% - 16px) / 2); }
  .gallery-carousel__slide img { height: 280px; }
  .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-page { grid-template-columns: 1fr; }
  .authority-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-page__sidebar { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 1120px) {
  .site-header { overflow: visible; }
  .accessibility-panel { top: 106px; max-height: calc(100vh - 106px); }
  body { padding-top: 106px; }
  .accessibility-toggle, .header-icon-button { width: 48px; height: 48px; }
  .accessibility-toggle__icon { display: block; }
  .accessibility-toggle__label { display: none; }
  .nav { position: relative; min-height: 96px; gap: 12px; padding-right: 0; }
  .brand { min-width: 0; max-width: calc(100% - 228px); margin-left: 0; }
  .brand img { width: 106px; height: 106px; }
  .brand span { min-width: 0; margin-left: -12px; }
  .brand strong,
  .brand small { overflow-wrap: normal; }
  .nav-toggle {
    position: absolute;
    top: 50%;
    right: 16px;
    display: inline-flex;
    min-height: 58px;
    align-items: center;
    padding: 15px 22px;
    transform: translateY(-50%);
    font-size: 1.16rem;
    font-weight: 750;
  }
  .header-actions {
    position: absolute;
    top: 50%;
    right: 130px;
    display: flex;
    gap: 8px;
    margin-left: 0;
    transform: translateY(-50%);
  }
  .header-actions .appointment-launcher { display: none; }
  #medflexMedtochkaWidgetButton { display: none; }
  .main-nav { display: none; position: absolute; z-index: 30; top: 100%; right: 0; left: 0; max-height: calc(100vh - 106px); padding: 16px; overflow-y: auto; border: 0; background: #206d3a; border-radius: 0 0 18px 18px; box-shadow: 0 14px 28px rgba(10, 50, 29, .22); }
  .main-nav.is-open { display: grid; }
}
@media (min-width: 1000px) and (max-width: 1199px) {
  .accessibility-panel { top: 102px; max-height: calc(100vh - 102px); }
  body { padding-top: 102px; }
  .nav { min-height: 96px; gap: 8px; }
  .brand { flex: 0 0 230px; max-width: none; gap: 10px; }
  .brand img { width: 102px; height: 102px; }
  .brand span { margin-left: -20px; }
  .brand strong { font-size: 1.1rem; }
  .brand small { font-size: .73rem; }
  .nav-toggle { display: none; }
  .main-nav {
    position: absolute;
    top: auto;
    right: auto;
    left: 50%;
    display: flex;
    gap: 6px;
    margin-left: 0;
    padding: 8px;
    border: 1px solid rgba(255,255,255,.68);
    border-radius: 16px;
    background: rgba(255,255,255,.08);
    transform: translateX(-50%);
  }
  .main-nav a { padding: 12px 14px; font-size: .95rem; }
  .header-actions { position: static; gap: 6px; margin-left: auto; transform: none; }
  .accessibility-toggle,
  .header-icon-button { width: 44px; height: 44px; }
  .header-actions .appointment-launcher {
    display: inline-flex;
    width: 44px;
    height: 44px;
    min-height: 0;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  #medflexMedtochkaWidgetButton {
    display: block;
    flex-basis: 118px;
    width: 118px;
    height: 44px;
  }
  #medflexMedtochkaWidgetButton > * { border-radius: 16px !important; }
  #medflexMedtochkaWidgetButton .medflex-medtochka-widget {
    gap: 6px !important;
    padding: 5px 8px !important;
    font-size: .75rem !important;
  }
  #medflexMedtochkaWidgetButton .medflex-medtochka-widget svg,
  #medflexMedtochkaWidgetButton .medflex-medtochka-widget img {
    flex-basis: 19px !important;
    width: 19px !important;
    height: 19px !important;
  }
}
@media (max-width: 760px) {
  .hero-copy h1 span { white-space: normal; }
  .site-header::before {
    content: "";
    position: absolute;
    z-index: -1;
    right: 0;
    bottom: 100%;
    left: 0;
    height: max(180px, env(safe-area-inset-top, 0px));
    background: #206d3a;
    pointer-events: none;
  }
  html, body { background: #102d24; }
  main { background: #fcfdfb; }
  body { padding-top: 92px; }
  .medflex-round-widget__button { right: 16px !important; bottom: 16px !important; }
  .site-header .brand span { margin-left: -6px; }
  h1 { font-size: clamp(2rem, 10vw, 3rem); line-height: 1.08; }
  .hero-copy h1 { max-width: 100%; }
  .authority-grid { grid-template-columns: 1fr; gap: 12px; }
  .authority-grid .authority-card { min-height: 0; }
  .accessibility-panel { top: 92px; max-height: calc(100vh - 92px); }
  .accessibility-panel__inner { display: grid; gap: 10px; }
  .accessibility-panel__group { border-left: 0; padding-left: 0; }
  .accessibility-panel__close { margin-left: 0; width: 100%; }
  .nav { min-height: 92px; padding-right: 0; }
  .brand { max-width: calc(100% - 226px); gap: 10px; padding: 0; }
  .brand img { width: 88px; height: 88px; }
  .brand strong { font-size: .84rem; }
  .brand small { font-size: .58rem; }
  .nav-toggle {
    position: absolute;
    top: 50%;
    right: 0;
    display: inline-flex;
    min-height: 64px;
    align-items: center;
    padding: 17px 23px;
    transform: translateY(-50%);
    font-size: 1.16rem;
    font-weight: 750;
  }
  .header-actions {
    position: absolute;
    top: 50%;
    right: 108px;
    display: flex;
    gap: 8px;
    margin-left: 0;
    transform: translateY(-50%);
  }
  .header-actions .appointment-launcher { display: none; }
  .main-nav { display: none; position: absolute; z-index: 30; top: 100%; right: 0; left: 0; max-height: calc(100vh - 92px); padding: 16px; overflow-y: auto; border: 0; background: #206d3a; border-radius: 0 0 18px 18px; box-shadow: 0 14px 28px rgba(10, 50, 29, .22); }
  .main-nav.is-open { display: grid; }
  .hero { padding-top: 30px; }
  .hero__grid, .split, .profile-grid, .legal-layout { grid-template-columns: 1fr; }
  .hero__media { order: initial; margin-top: 8px; }
  .hero-logo-card { min-height: 230px; border-radius: 24px; }
  .hero-logo-card img { width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: 20px; }
  .hero__frame { margin-top: 10px; }
  .section { padding: 64px 0; }
  .page-hero { padding: 56px 0 36px; }
  .price-page__head,
  .price-group { padding: 18px; }
  .price-table {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }
  .price-table__head { display: none; }
  .price-table__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 16px 14px;
    border: 1px solid #dcebdd;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff, #fbfef9);
    box-shadow: 0 10px 24px rgba(34, 86, 57, .08);
  }
  .price-table__row + .price-table__row { margin-top: 12px; }
  .price-table__name {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .price-table__duration,
  .price-table__price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
  }
  .price-table__duration::before,
  .price-table__price::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 700;
  }
  .price-table__price {
    color: var(--green-deep);
    font-size: 1.08rem;
    text-align: right;
  }
  .cards, .cards--services, .document-grid, .facts { grid-template-columns: 1fr; }
  .doctors-grid { grid-template-columns: 1fr; gap: 12px; }
  .doctor-card { grid-template-columns: 68px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .doctor-card__photo { width: 68px; height: 78px; min-height: 0; }
  .doctor-card__body { padding: 0; }
  .doctor-card__name { font-size: 1.08rem; }
  .doctor-card__position { margin-bottom: 12px; }
  .doctor-card__meta { align-items: flex-start; flex-direction: column; gap: 2px; }
  .doctor-card__details { margin-top: 10px; }
  .cards--services { gap: 10px; }
  .cards--services .service-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 4px;
    align-items: center;
    padding: 16px;
    border-radius: 18px;
  }
  .cards--services .service-card__icon {
    grid-row: 1 / 3;
    width: 56px;
    height: 56px;
    margin: 0;
    border-radius: 16px;
  }
  .cards--services .service-card__icon svg { width: 38px; height: 38px; }
  .cards--services .service-card h3 { margin: 0; font-size: 1.08rem; }
  .cards--services .service-card p { margin: 0; line-height: 1.45; }
  .reviews-grid { grid-template-columns: 1fr; }
  .gallery-carousel { gap: 10px; }
  .gallery-carousel__slide { flex-basis: 100%; }
  .gallery-carousel__slide img { height: 230px; }
  .gallery-carousel__control { width: 42px; height: 42px; font-size: 1.5rem; }
  .map-frame { min-height: 300px; }
  .map-wrap { min-height: 0; }
  .map-fallback { right: 10px; bottom: 10px; }
  .legal-nav { position: static; }
  .footer { margin-bottom: -1px; padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__grid > * { min-width: 0; max-width: 100%; }
  .footer__grid > div:first-child > p { white-space: normal; overflow-wrap: anywhere; }
  .footer .brand--footer { width: 100%; max-width: 100%; }
  .footer .brand--footer strong { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  .footer-search { min-width: 0; max-width: 100%; }
  .cookie-banner { right: 10px; bottom: 72px; left: 10px; }
}

@media (max-width: 999px) {
  .main-nav #medflexMedtochkaWidgetButton.medflex-cabinet--menu {
    display: block;
    width: 100%;
    height: 58px;
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .3);
    box-sizing: content-box;
  }

  .main-nav #medflexMedtochkaWidgetButton.medflex-cabinet--menu > * {
    width: 100% !important;
    height: 58px !important;
    border: 1px solid rgba(255, 255, 255, .72) !important;
    border-radius: 12px !important;
    background: #4a9d2f !important;
  }

  .main-nav #medflexMedtochkaWidgetButton.medflex-cabinet--menu .medflex-medtochka-widget {
    gap: 10px !important;
    padding: 10px 18px !important;
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: 750 !important;
    white-space: nowrap !important;
  }

  .main-nav #medflexMedtochkaWidgetButton.medflex-cabinet--menu .medflex-medtochka-widget svg,
  .main-nav #medflexMedtochkaWidgetButton.medflex-cabinet--menu .medflex-medtochka-widget img {
    flex-basis: 24px !important;
    width: 24px !important;
    height: 24px !important;
  }

  .main-nav__call {
    display: block;
    width: 100%;
    padding: 12px 18px;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 10px;
    background: #fff;
    color: var(--green-deep);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
  }
}

@media (max-width: 520px) {
  .accessibility-panel { top: 86px; max-height: calc(100vh - 86px); }
  body { padding-top: 86px; }
  .nav { min-height: 86px; padding-right: 0; }
  .brand { max-width: calc(100% - 176px); gap: 5px; }
  .brand img { width: 68px; height: 68px; }
  .brand span { display: block; }
  .brand strong { font-size: .62rem; }
  .brand small { margin-top: 3px; font-size: .42rem; letter-spacing: .04em; }
  .accessibility-toggle,
  .header-icon-button { width: 36px; height: 36px; }
  .accessibility-toggle__icon--filled { width: 25px; height: 25px; }
  .header-search-button__icon { width: 20px; height: 20px; }
  .header-actions { right: 76px; gap: 6px; }
  .nav-toggle { right: 0; min-height: 46px; padding: 11px 13px; font-size: .96rem; }
  .doctor-card { grid-template-columns: 62px minmax(0, 1fr); gap: 10px; }
  .doctor-card__photo { width: 62px; height: 72px; }
}

@media (max-width: 380px) {
  .doctor-card { grid-template-columns: 58px minmax(0, 1fr); padding: 10px; }
  .doctor-card__photo { width: 58px; height: 68px; }
}

@media (max-width: 360px) {
  body { padding-top: 86px; }
  .brand img { width: 52px; height: 52px; }
  .brand strong { font-size: .5rem; }
  .brand small { font-size: .3rem; letter-spacing: .01em; }
}

@media (min-width: 1000px) {
  .site-header .main-nav {
    width: 460px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    padding-right: 24px;
    padding-left: 24px;
    overflow: hidden;
  }
  .site-header .main-nav a {
    position: relative;
    z-index: 0;
    display: flex;
    width: auto;
    min-width: 0;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
    font-size: .96rem;
    text-align: center;
    white-space: nowrap;
  }
  .site-header .main-nav a::before {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 50%;
    width: calc(100% + 16px);
    height: 100%;
    content: "";
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    opacity: 0;
    transform: translateX(-50%);
    transition: opacity .15s ease;
  }
  .site-header .main-nav a:hover { background: transparent; }
  .site-header .main-nav a:hover::before,
  .site-header .main-nav a:focus-visible::before { opacity: 1; }
  .site-header .brand {
    flex: 0 0 calc(50% - 254px);
    width: calc(50% - 254px);
    min-width: 0;
  }
  .site-header .brand span { position: relative; left: -12px; flex: 1; margin-left: 0; text-align: left; }
}

@media (min-width: 1000px) and (max-width: 1199px) {
  .site-header .main-nav { width: 420px; }
  .site-header .main-nav a { padding: 12px 0; font-size: .9rem; }
  .site-header .brand {
    flex-basis: calc(50% - 230px);
    width: calc(50% - 230px);
  }
}

@media (min-width: 1200px) and (max-width: 1599px) {
  .site-header .brand span { left: -14px; }
}

.footer .brand--footer {
  flex: none;
  width: auto;
  min-width: 0;
  max-width: 100%;
  margin-left: 0;
  transform: translateY(-10px);
}
.footer .brand--footer img { width: 132px; height: 132px; }
.footer .brand--footer strong { font-size: 1.1rem; }

@media (max-width: 760px) {
  .footer__bottom { grid-template-columns: 1fr; align-items: flex-start; gap: 8px; }
  .footer__bottom a { grid-column: 1; }
  .footer-clinic-info h2:not(:first-child) { margin-top: 30px; }
  .footer .brand--footer img { width: 108px; height: 108px; }
  .footer .brand--footer strong { font-size: 1rem; }
}

.price-page__content { margin-top: 0; }

.home-carousel-section {
  padding: 28px 0;
  background: #fff;
}

.home-carousel-section + .hero {
  padding-top: 23px;
  padding-bottom: 14px;
}

.home-carousel-section + .hero + #services {
  padding-top: clamp(16px, 2.5vw, 29.5px);
}

.home-carousel {
  position: relative;
  outline: none;
}

.home-carousel__viewport {
  position: relative;
  min-height: 280px;
  max-height: 520px;
  overflow: hidden;
  aspect-ratio: 16 / 5;
  border-radius: 18px;
  background: #edf5eb;
  box-shadow: 0 12px 30px rgba(22, 77, 43, .14);
}

.home-carousel__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .65s ease, visibility 0s linear .65s;
}

.home-carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.home-carousel__slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.home-carousel__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-carousel__control {
  position: absolute;
  z-index: 2;
  top: 8%;
  bottom: 8%;
  display: grid;
  width: 68px;
  height: auto;
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, .78);
  background: transparent;
  filter: drop-shadow(0 1px 3px rgba(10, 48, 28, .55));
  align-items: center;
  cursor: pointer;
  transition: color .2s ease, transform .2s ease;
}

.home-carousel__control:hover {
  color: rgba(255, 255, 255, .98);
  transform: scale(1.04);
}
.home-carousel__control:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.home-carousel__control--prev { left: 0; justify-items: start; }
.home-carousel__control--next { right: 0; justify-items: end; }
.home-carousel__control svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.home-carousel__control--prev svg { transform: translateX(-5px); }
.home-carousel__control--next svg { transform: translateX(5px); }

@media (max-width: 760px) {
  .home-carousel-section { padding: 18px 0; }
  .home-carousel-section + .hero { padding-top: 15px; }
  .home-carousel__viewport { min-height: 250px; aspect-ratio: 4 / 3; border-radius: 14px; }
  .home-carousel__control {
    top: 12%;
    bottom: 12%;
    width: 46px;
    height: auto;
    color: rgba(255, 255, 255, .62);
  }
  .home-carousel__control--prev { left: 0; }
  .home-carousel__control--next { right: 0; }
  .home-carousel__control svg { width: 34px; height: 34px; }
}

/* Taller mobile header while preserving the single-row controls. */
@media (min-width: 761px) and (max-width: 999px) {
  body { padding-top: 118px; }
  .nav { min-height: 118px; }
  .accessibility-panel { top: 118px; max-height: calc(100vh - 118px); }
  .accessibility-toggle,
  .header-icon-button { width: 52px; height: 52px; }
  .header-actions { right: 142px; }
  .nav-toggle { min-height: 64px; padding: 17px 25px; font-size: 1.16rem; }
  .main-nav { max-height: calc(100vh - 118px); }
}

@media (min-width: 521px) and (max-width: 760px) {
  body { padding-top: 104px; }
  .nav { min-height: 104px; }
  .accessibility-panel { top: 104px; max-height: calc(100vh - 104px); }
  .accessibility-toggle,
  .header-icon-button { width: 52px; height: 52px; }
  .site-header .brand { transform: translateX(-14px); }
  .brand img { width: 94px; height: 94px; }
  .brand strong { font-size: .88rem; }
  .brand small { font-size: .61rem; }
  .header-actions { right: 112px; }
  .nav-toggle { right: -4px; }
  .main-nav { max-height: calc(100vh - 104px); }
}

@media (max-width: 520px) {
  body { padding-top: 86px; }
  .nav { min-height: 86px; }
  .accessibility-panel { top: 86px; max-height: calc(100vh - 86px); }
  .accessibility-toggle,
  .header-icon-button { width: 40px; height: 40px; }
  .site-header .brand { max-width: calc(100% - 184px); transform: translateX(-18px); }
  .brand img { width: 80px; height: 80px; }
  .brand strong { font-size: .95rem; }
  .brand small { font-size: .70rem; }
  .header-actions { right: 76px; }
  .nav-toggle { right: -4px; min-height: 50px; padding: 12px 15px; }
  .main-nav { max-height: calc(100vh - 86px); }
}

@media (max-width: 450px) {
  .brand img { width: 70px; height: 70px; }
  .brand strong { font-size: .85rem; }
  .brand small { font-size: .60rem; }
}

@media (max-width: 405px) {
  .brand img { width: 62px; height: 62px; }
  .brand strong { font-size: .78rem; }
  .brand small { font-size: .55rem; }
}

@media (max-width: 380px) {
  .brand img { width: 60px; height: 60px; }
  .brand strong { font-size: .71rem; }
  .brand small { font-size: .50rem; }
}
  
@media (max-width: 370px) {
  .brand img { width: 60px; height: 60px; }
  .brand strong { font-size: .65rem; }
  .brand small { font-size: .45rem; }
}
  
@media (max-width: 999px) {
  .main-nav {
    display: grid;
    top: 100%;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    clip-path: inset(0 0 100% 0);
    background: linear-gradient(180deg, #206d3a 0%, #175c30 100%);
    transform: none;
    transform-origin: top;
    transition: opacity .26s ease, clip-path .26s ease, visibility 0s linear .26s;
  }
  .main-nav.is-open {
    display: grid;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    clip-path: inset(0);
    transform: none;
    transition-delay: 0s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .main-nav,
  .accessibility-panel,
  .home-carousel__slide { transition: none; }
}

.vacancies-preview__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.vacancies-preview__heading h2 {
  margin-bottom: 0;
}

.vacancies-preview__heading a {
  color: var(--green);
  font-weight: 700;
  white-space: nowrap;
}

.vacancies-preview__list,
.vacancies-list {
  display: grid;
  width: min(100%, 320px);
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.vacancies-preview__list span,
.vacancy-item {
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
}

.vacancy-item:last-child {
  border-bottom: 0;
}

.vacancies-section .vacancy-item h2 {
  margin: 0;
  color: var(--green-deep);
  font-size: 1.30rem;
  font-weight: 700;
  line-height: normal;
}

.vacancies-contact-note {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.page-hero + .vacancies-section {
  padding-top: 8px;
}

@media (max-width: 640px) {
  .vacancies-preview__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .vacancies-preview__list,
  .vacancies-list {
    margin-top: 20px;
  }

  .vacancies-preview__list span,
  .vacancy-item {
    padding: 14px 16px;
  }

}
