:root {
  --bg: #f8faf7;
  --site-bg: #f8faf7;
  --site-bg-color: var(--site-bg);
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --surface-soft: #eceee7;
  --line: rgba(34, 44, 40, 0.09);
  --text: #212925;
  --text-soft: #69746d;
  --sage: #86ad94;
  --sage-strong: #5f856d;
  --sage-pale: #dfece1;
  --tag-blue: #4579f5;
  --tag-dark: #212b46;
  --shadow: 0 28px 70px rgba(37, 46, 41, 0.08);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --container: min(1200px, calc(100vw - 24px));
  --topo-pattern: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z' fill='%23ffffff' fill-opacity='0.36' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* 🟢 ---------- СТИЛИ ДЛЯ ЭКРАНОВ АКЦИЙ ---------- */
.mobile-menu__link[aria-current="page"] {
  color: #284235;
}

.promotions-page-hero {
  padding-bottom: 26px;
}

.promotions-section,
.promotion-detail-section,
.promotion-process-section,
.promotions-related-section {
  padding-top: 24px !important;
  padding-bottom: 24px !important;
}

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

.promotion-card,
.promotion-feature,
.promotion-description-card,
.promotion-terms-card,
.promotion-process-card,
.promotions-note-card {
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 247, 0.96) 100%);
  box-shadow: 0 24px 54px rgba(32, 40, 37, 0.05);
}

.promotion-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.promotion-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: #edf2eb;
}

.promotion-card__media {
  aspect-ratio: 1.48;
}

.promotion-card__media img,
.promotion-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.promotion-card:hover .promotion-card__media img {
  transform: scale(1.03);
}

.promotion-card__body {
  display: grid;
  gap: 14px;
  padding: 20px 20px 22px;
  flex: 1 1 auto;
}

.promotion-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.promotion-card .eyebrow {
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.8rem;
}

.promotion-card__dates {
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.promotion-card__title,
.promotion-description-card h2,
.promotion-terms-card h2 {
  margin: 0;
  letter-spacing: -0.045em;
}

.promotion-card__title {
  font-size: clamp(1.24rem, 1.72vw, 1.56rem);
  line-height: 1.08;
}

.promotion-card__desc,
.promotion-description-card p,
.promotion-terms-list p,
.promotion-process p {
  margin: 0;
  color: var(--text-soft);
}

.promotion-card__price {
  width: fit-content;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(134, 173, 148, 0.14);
  color: #294334;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.promotion-card__footer {
  margin-top: auto;
  display: grid;
  gap: 12px;
}

.promotion-card__footer .hero-button {
  width: 100%;
}

.promotions-note-card {
  margin-top: 26px;
  padding: 28px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.promotions-note-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.promotions-note-card p {
  margin: 0;
  color: var(--text-soft);
}

.promotions-note-card__button {
  flex: 0 0 auto;
  min-width: max-content;
  white-space: nowrap;
}

.promotion-detail-hero {
  padding-top: 44px;
  padding-bottom: 24px;
}

.promotion-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1fr);
  gap: 28px;
  padding: 36px;
}

.promotion-feature__media {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 100%;
  background: #edf2eb;
}

.promotion-feature__media img {
  min-height: 100%;
}

.promotion-feature__badge {
  position: absolute;
  left: 18px;
  top: 18px;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #264133;
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(32, 40, 37, 0.08);
}

.promotion-feature__body {
  display: flex;
  flex-direction: column;
}

.promotion-feature__title {
  margin: 18px 0 14px;
  font-size: clamp(2.4rem, 4.3vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.promotion-feature__lead {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.04rem;
}

.promotion-feature__price {
  width: fit-content;
  display: inline-grid;
  gap: 2px;
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(231, 247, 144, 0.58), rgba(223, 236, 225, 0.78));
  color: #22362b;
  box-shadow: 0 18px 34px rgba(32, 40, 37, 0.06);
}

.promotion-feature__price span {
  color: rgba(34, 54, 43, 0.72);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.promotion-feature__price strong {
  font-size: clamp(1.3rem, 2.1vw, 1.9rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.promotion-feature__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.promotion-feature__facts article,
.promotion-process article {
  padding: 20px 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(244, 248, 241, 0.96) 0%, rgba(255, 255, 255, 0.94) 100%);
  border: 1px solid rgba(34, 44, 40, 0.06);
}

.promotion-feature__facts strong,
.promotion-process strong {
  display: block;
  font-size: 1.06rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.promotion-feature__facts span {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.promotion-feature__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.promotion-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.74fr);
  gap: 22px;
  align-items: start;
}

.promotion-description-card,
.promotion-terms-card,
.promotion-process-card {
  padding: 30px;
}

.promotion-description-card {
  display: grid;
  gap: 16px;
}

.promotion-includes-list {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.promotion-includes-list li {
  position: relative;
  padding-left: 18px;
  color: #34413a;
}

.promotion-includes-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
}

.promotion-terms-list {
  display: grid;
  gap: 18px;
}

.promotion-terms-list article + article {
  padding-top: 18px;
  border-top: 1px solid rgba(34, 44, 40, 0.08);
}

.promotion-terms-list strong {
  display: block;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

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

.promotion-process article {
  display: grid;
  gap: 12px;
}

.promotion-process span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(223, 236, 225, 0.86);
  color: #446453;
  font-size: 0.94rem;
  font-weight: 800;
}

.promotions-rail-shell {
  cursor: grab;
}

.promotions-rail-shell.is-dragging {
  cursor: grabbing;
}

.promotions-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 34vw);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.promotions-rail::-webkit-scrollbar {
  display: none;
}

.promotions-rail .promotion-card {
  scroll-snap-align: start;
}

@media (max-width: 1120px) {
  .promotions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promotion-feature,
  .promotion-detail-grid {
    grid-template-columns: 1fr;
  }

  .promotion-feature__media {
    aspect-ratio: 1.24;
  }

  .promotions-rail {
    grid-auto-columns: minmax(320px, 68%);
  }
}

@media (max-width: 860px) {
  .promotion-feature {
    padding: 26px;
  }

  .promotion-feature__facts,
  .promotion-process {
    grid-template-columns: 1fr;
  }

  .promotions-note-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .promotions-note-card .button {
    width: 100%;
  }

  .promotions-note-card__button {
    min-width: 0;
    white-space: normal;
  }
}

@media (max-width: 680px) {
  .promotions-grid {
    grid-template-columns: 1fr;
  }

  .promotion-card__body,
  .promotion-description-card,
  .promotion-terms-card,
  .promotion-process-card {
    padding: 22px;
  }

  .promotion-feature {
    padding: 22px;
    gap: 20px;
  }

  .promotion-feature__badge {
    left: 14px;
    top: 14px;
    min-height: 34px;
    padding: 0 14px;
    font-size: 0.82rem;
  }

  .promotions-note-card {
    padding: 22px;
  }

  .promotions-rail {
    grid-auto-columns: minmax(84%, 1fr);
  }
}
/* 🔴 ---------- СТИЛИ ДЛЯ ЭКРАНОВ АКЦИЙ ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 136px;
  overflow-x: hidden;
}

body {
  margin: 0;
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  line-height: 1.55;
  background:
    radial-gradient(circle at 10% 6%, rgba(223, 247, 202, 0.12), transparent 22%),
    radial-gradient(circle at 84% 10%, rgba(215, 241, 194, 0.1), transparent 23%),
    radial-gradient(circle at 66% 56%, rgba(243, 251, 232, 0.12), transparent 30%),
    linear-gradient(180deg, #fcfdfa 0%, #f8faf7 42%, #f4f7f3 100%);
}

.site-header,
.header-nav-shell,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

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

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

a,
button {
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    opacity 180ms ease;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.section--shell {
  padding-top: 24px;
  padding-bottom: 104px;
}

.section--edge {
  overflow: hidden;
}

.page-glow {
  position: fixed;
  z-index: 0;
  display: block;
  width: clamp(340px, 38vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.18;
  filter: blur(132px);
}

.page-glow-left {
  left: -12vw;
  top: 10vh;
  background: radial-gradient(circle, rgba(220, 244, 196, 0.32) 0%, rgba(220, 244, 196, 0.08) 42%, rgba(220, 244, 196, 0) 74%);
}

.page-glow-right {
  right: -12vw;
  top: 42vh;
  background: radial-gradient(circle, rgba(197, 234, 183, 0.26) 0%, rgba(197, 234, 183, 0.07) 40%, rgba(197, 234, 183, 0) 74%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: #e7f790;
  color: #111827!important;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  width: max-content;
}

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

.section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.section-heading--row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2,
.contact-card h2 {
  margin: 18px 0;
  font-size: clamp(1.5rem, 3vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 700;
  margin-bottom: 35px;
}

.hero-title,
.section-heading h2,
.chief-note__content h2,
.home-services-section__intro h2,
.overview-grid__intro h2,
.faq-shell__intro h2,
.contact-card h2 {
  font-weight: 700;
}

.heading-line,
.heading-outline {
  display: block;
  width: fit-content;
  max-width: 100%;
}

.heading-line + .heading-line {
  margin-top: 0.08em;
}

.heading-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.16em 0.2em;
}

.heading-inline .heading-line,
.heading-inline .heading-outline {
  display: inline-flex;
  width: auto;
  max-width: none;
  margin-top: 0;
}

.heading-outline {
  margin-top: 0.2em;
  padding: 0.12em 0.38em 0.16em;
  border: 4px solid #e7f790;
  border-radius: 999px;
  line-height: 0.94;
}

.section-heading p:last-child,
.contact-lead,
.service-card li,
.doctor-card__body p,
.widget-card p,
.footer-brand p,
.footer-legal p,
.header-fact span {
  color: var(--text-soft);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.brand-chip,
.site-nav > a,
.nav-dropdown__toggle,
.nav-dropdown__menu a,
.header-fact--phone a,
.hero-social-pill__link,
.hero-tag,
.hero-insight__link,
.doctors-showcase__link,
.footer-links a,
.site-footer a {
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease, border-color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.brand-chip:hover,
.header-fact--phone a:hover,
.hero-insight__link:hover,
.doctors-showcase__link:hover,
.footer-links a:hover{
  transform: translateY(-1px);
}

.hero-social-pill__link:hover,
.hero-tag:hover {
  transform: translateY(-2px);
}

.button--primary:hover {
  background: linear-gradient(135deg, #7ea58b, #587c67);
  box-shadow: 0 22px 34px rgba(94, 133, 109, 0.24);
}

.button--secondary:hover {
  background: #ffffff;
  border-color: rgba(95, 133, 109, 0.16);
  box-shadow: 0 14px 26px rgba(34, 44, 40, 0.08);
}

.button--primary {
  color: #fff;
  background: linear-gradient(135deg, #769f84, #5e856d);
  box-shadow: 0 18px 28px rgba(94, 133, 109, 0.22);
}

.button--secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
}

.button--wide {
  width: 100%;
}

.accessibility-toggle {
  position: fixed;
  left: 16px;
  bottom: 0;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 2px solid rgba(34, 44, 40, 0.12);
  border-radius: 50%;
  color: #ffffff;
  background: #212925;
  box-shadow: 0 18px 34px rgba(25, 35, 30, 0.18);
  cursor: pointer;
  transform: translateY(-50%);
}

.accessibility-toggle:hover {
  transform: translateY(calc(-50% - 2px));
  border-color: rgba(95, 133, 109, 0.18);
  background: #d8f3c9;
  color: #000000;
}

.accessibility-toggle span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
}

.accessibility-panel {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: end;
  padding: 18px;
}

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

.accessibility-panel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.34);
}

.accessibility-panel__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
  width: min(520px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid rgba(34, 44, 40, 0.12);
  border-radius: 26px;
  color: #111827;
  background: #ffffff;
  box-shadow: 0 30px 70px rgba(17, 24, 39, 0.24);
}

.accessibility-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.accessibility-panel__eyebrow {
  margin: 0 0 6px;
  color: #4b5563;
  font-size: 0.82rem;
  font-weight: 800;
}

.accessibility-panel h2,
.accessibility-panel h3 {
  margin: 0;
  letter-spacing: 0;
}

.accessibility-panel h2 {
  font-size: 1.45rem;
  line-height: 1.12;
}

.accessibility-panel h3 {
  font-size: 1rem;
}

.accessibility-panel__close {
  flex: 0 0 auto;
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 50%;
  background: #f9fafb;
  cursor: pointer;
}

.accessibility-panel__close::before,
.accessibility-panel__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #111827;
}

.accessibility-panel__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.accessibility-panel__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.accessibility-panel__group {
  display: grid;
  gap: 10px;
}

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

.accessibility-panel__controls--grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.accessibility-panel__controls button,
.accessibility-panel__footer button {
  min-height: 48px;
  padding: 0 14px;
  border: 2px solid #d1d5db;
  border-radius: 14px;
  color: #111827;
  background: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.accessibility-panel__controls button:hover,
.accessibility-panel__controls button.is-active,
.accessibility-panel__controls button[aria-pressed="true"] {
  border-color: #111827;
  background: #111827;
  color: #ffffff;
}

.accessibility-panel__note {
  margin: 0;
  color: #4b5563;
  font-size: 0.88rem;
}

.accessibility-panel__footer {
  padding-top: 4px;
}

.accessibility-panel__footer button {
  width: 100%;
  border-color: #111827;
  background: #f9fafb;
}

html.a11y-font-large {
  font-size: 112.5%;
}

html.a11y-font-xlarge {
  font-size: 125%;
}

html.a11y-theme-default {
  --a11y-bg: #f8faf7;
  --a11y-surface: #ffffff;
  --a11y-soft: #f1f5f0;
  --a11y-text: #111827;
  --a11y-muted: #374151;
  --a11y-line: #111827;
  --a11y-accent: #111827;
  --a11y-accent-text: #ffffff;
}

html.a11y-theme-light {
  --a11y-bg: #ffffff;
  --a11y-surface: #ffffff;
  --a11y-soft: #f2f2f2;
  --a11y-text: #000000;
  --a11y-muted: #111111;
  --a11y-line: #000000;
  --a11y-accent: #000000;
  --a11y-accent-text: #ffffff;
}

html.a11y-theme-dark {
  --a11y-bg: #000000;
  --a11y-surface: #000000;
  --a11y-soft: #1a1a1a;
  --a11y-text: #ffffff;
  --a11y-muted: #ffffff;
  --a11y-line: #ffffff;
  --a11y-accent: #ffffff;
  --a11y-accent-text: #000000;
}

html.a11y-theme-blue {
  --a11y-bg: #063970;
  --a11y-surface: #07315f;
  --a11y-soft: #0b4f91;
  --a11y-text: #ffffff;
  --a11y-muted: #ffffff;
  --a11y-line: #ffd400;
  --a11y-accent: #ffd400;
  --a11y-accent-text: #052b56;
}

html.a11y-enabled {
  scroll-behavior: auto;
}

html.a11y-enabled body {
  color: var(--a11y-text) !important;
  background: var(--a11y-bg) !important;
}

body.accessibility-panel-open {
  overflow: hidden;
}

html.a11y-enabled body *,
html.a11y-enabled body *::before,
html.a11y-enabled body *::after {
  letter-spacing: 0 !important;
  text-shadow: none !important;
}

html.a11y-enabled body .page-glow {
  display: none !important;
}

html.a11y-enabled body :where(.site-header, .site-nav, .nav-dropdown__menu, .mobile-menu__panel, .modal__dialog, .certificate-lightbox__dialog, .site-footer, [class*="card"], [class*="shell"], table, form, input, select, textarea) {
  color: var(--a11y-text) !important;
  background: var(--a11y-surface) !important;
  border-color: var(--a11y-line) !important;
  box-shadow: none !important;
}

html.a11y-enabled body .accessibility-panel__dialog {
  color: var(--a11y-text) !important;
  background: var(--a11y-surface) !important;
  border-color: var(--a11y-line) !important;
}

html.a11y-enabled body .accessibility-panel__backdrop {
  background: rgba(0, 0, 0, 0.58) !important;
}

html.a11y-enabled body :where(p, span, small, li, strong, h1, h2, h3, h4, h5, h6, label, td, th, blockquote, figcaption) {
  color: var(--a11y-text) !important;
}

html.a11y-enabled body :where(a, button) {
  color: var(--a11y-text) !important;
  outline-color: var(--a11y-line);
}

html.a11y-enabled body :where(.button, .hero-button, .eyebrow, .nav-counter, .accessibility-toggle, .scroll-top-button, .mobile-menu__link, .nav-dropdown__toggle, .site-nav > a) {
  color: var(--a11y-accent-text) !important;
  background: var(--a11y-accent) !important;
  border: 2px solid var(--a11y-line) !important;
  box-shadow: none !important;
}

html.a11y-enabled body :where(.button, .hero-button, .eyebrow, .nav-counter, .accessibility-toggle, .scroll-top-button, .mobile-menu__link, .nav-dropdown__toggle, .site-nav > a) :where(span, strong, small) {
  color: inherit !important;
  background: transparent !important;
}

html.a11y-enabled body :where(.nav-dropdown__menu a, .footer-links a, .cms-richtext a) {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

html.a11y-enabled body :where(input, select, textarea) {
  color: var(--a11y-text) !important;
  background: var(--a11y-bg) !important;
  border: 2px solid var(--a11y-line) !important;
}

html.a11y-enabled body :focus-visible {
  outline: 4px solid var(--a11y-accent) !important;
  outline-offset: 4px !important;
}

html.a11y-images-contrast body img {
  filter: grayscale(1) contrast(1.65) brightness(1.05) !important;
}

html.a11y-images-hidden body img,
html.a11y-images-hidden body picture,
html.a11y-images-hidden body video {
  opacity: 0 !important;
  filter: none !important;
}

html.a11y-images-hidden body :where(.brand-chip img, .footer-brand img) {
  opacity: 1 !important;
}

html.a11y-theme-dark.a11y-enabled body * {
  background-image: none !important;
}

html.a11y-theme-dark.a11y-enabled body :where(.section, [class*="hero"], [class*="card"], [class*="shell"], [class*="panel"], [class*="content"], [class*="body"], [class*="list"], [class*="grid"], [class*="wrap"], [class*="stage"]) {
  background-color: #000000 !important;
}

html.a11y-theme-dark.a11y-enabled body main :where(h1, h2, h3, h4, h5, h6, p, li, blockquote, figcaption, label, td, th),
html.a11y-theme-dark.a11y-enabled body .site-footer :where(h1, h2, h3, h4, h5, h6, p, li, blockquote, figcaption, label, td, th) {
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  background-color: rgba(0, 0, 0, 0.92) !important;
}

html.a11y-enabled body .accessibility-panel__controls button,
html.a11y-enabled body .accessibility-panel__footer button {
  color: var(--a11y-text) !important;
  background: var(--a11y-bg) !important;
  border-color: var(--a11y-line) !important;
}

html.a11y-enabled body .accessibility-panel__controls button:hover,
html.a11y-enabled body .accessibility-panel__controls button.is-active,
html.a11y-enabled body .accessibility-panel__controls button[aria-pressed="true"] {
  color: var(--a11y-accent-text) !important;
  background: var(--a11y-accent) !important;
  border-color: var(--a11y-accent) !important;
}

html.a11y-theme-dark.a11y-enabled body .accessibility-panel__controls button:hover,
html.a11y-theme-dark.a11y-enabled body .accessibility-panel__controls button.is-active,
html.a11y-theme-dark.a11y-enabled body .accessibility-panel__controls button[aria-pressed="true"] {
  color: #000000 !important;
  background: #ffffff !important;
  border-color: #ffffff !important;
}

html.a11y-theme-dark.a11y-enabled body .accessibility-panel__controls button:not(.is-active):not(:hover),
html.a11y-theme-dark.a11y-enabled body .accessibility-panel__footer button {
  color: #ffffff !important;
  background: #000000 !important;
  border-color: #ffffff !important;
}

.scroll-top-button {
  position: fixed;
  right: 16px;
  bottom: 24px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  color: #000000;
  background: #d8f3c9;
  box-shadow: 0 18px 32px rgba(34, 44, 40, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.96);
}

.scroll-top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.scroll-top-button:hover {
  transform: translateY(-2px) scale(1);
  box-shadow: 0 22px 36px rgba(34, 44, 40, 0.24);
}

.scroll-top-button:focus-visible {
  outline: 3px solid rgba(231, 247, 144, 0.95);
  outline-offset: 4px;
}

.scroll-top-button span {
  width: 14px;
  height: 14px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: translateY(3px) rotate(45deg);
}

/* 🟢 ---------- СТИЛИ ДЛЯ ШАПКИ ---------- */
.site-header {
  position: relative;
  z-index: 40;
  padding-top: 16px;
}

.site-header__top {
  margin-bottom: 14px;
}

.header-top {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
}

.brand-chip img {
  height: 70px;
  width: auto;
}

.header-top__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  flex: 1 1 auto;
}

.header-fact {
  padding: 8px 0;
}

.header-fact strong,
.header-fact a {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
}

.header-fact--phone a {
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}


.header-nav-shell {
  position: sticky;
  top: 0;
  z-index: 120;
  padding: 10px 0 12px;
  background: linear-gradient(180deg, rgba(248, 250, 247, 0.98) 0%, rgba(248, 250, 247, 0.82) 78%, rgba(248, 250, 247, 0) 100%);
}

.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 10px;
  padding: 5px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 36px rgba(34, 44, 40, 0.06);
  backdrop-filter: blur(14px);
}

.site-nav > a,
.nav-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 18px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.site-nav > a:hover,
.nav-dropdown.is-open .nav-dropdown__toggle,
.nav-dropdown__toggle:hover {
  background: linear-gradient(135deg, rgba(214, 244, 186, 0.92), rgba(241, 250, 229, 0.9));
}

.site-nav > a.site-nav__current,
.nav-dropdown__toggle.site-nav__current {
  background: linear-gradient(135deg, rgba(214, 244, 186, 0.92), rgba(241, 250, 229, 0.9));
  color: #284235;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown--services {
  position: static;
}

.nav-dropdown__toggle {
  position: relative;
  gap: 8px;
  padding-right: 24px;
}

.nav-dropdown__toggle::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: -3px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.nav-dropdown.is-open .nav-dropdown__toggle::after {
  transform: rotate(-135deg) translate(-1px, -1px);
}

.site-nav__promo-link {
  gap: 8px;
}

.nav-counter {
  min-width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(214, 244, 186, 0.92), rgba(241, 250, 229, 0.9));
  color: #31523d;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  gap: 4px;
  min-width: 250px;
  max-height: min(68vh, 560px);
  overflow-y: auto;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(34, 44, 40, 0.08);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.nav-dropdown__menu--services {
  left: 5px;
  right: 5px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px 8px;
  width: auto;
  min-width: 0;
  max-height: min(72vh, 620px);
  padding: 16px;
}

.nav-dropdown.is-open .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown__menu a {
  padding: 12px 14px;
  border-radius: 14px;
  line-height: normal;
}

.nav-dropdown__menu--services a {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  font-size: 0.94rem;
  line-height: 1.2;
}

.nav-dropdown__menu--services a.nav-dropdown__menu-all {
  grid-column: 1 / 2;
  min-height: 54px;
  justify-content: space-between;
  padding-inline: 18px;
  background: linear-gradient(135deg, rgba(214, 244, 186, 0.92), rgba(241, 250, 229, 0.9));
  color: black;
  font-weight: 400;
  box-shadow: 0 18px 28px rgba(34, 44, 40, 0.12);
}

.nav-dropdown__menu--services a.nav-dropdown__menu-all::after {
  content: "→";
  font-size: 1.15rem;
}

.nav-dropdown__menu a:hover {
  background: var(--surface-soft);
}

.nav-dropdown__menu--services a.nav-dropdown__menu-all:hover {
  background: linear-gradient(135deg, rgba(214, 244, 186, 0.92), rgba(241, 250, 229, 0.9));
  color: #000000;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.menu-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(95, 133, 109, 0.16);
  background: linear-gradient(135deg, rgba(214, 244, 186, 0.9), rgba(246, 251, 238, 0.92));
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.mobile-menu {
  display: none;
}
/* 🔴 ---------- СТИЛИ ДЛЯ ШАПКИ ---------- */

.services-page-hero {
  padding-top: 44px;
  padding-bottom: 34px;
}

.services-page-hero__layout {
  display: block;
}

.services-page-hero__content {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 247, 0.96) 100%);
  box-shadow: 0 24px 54px rgba(32, 40, 37, 0.05);
  padding: 38px 40px 42px;
}

.services-page-hero__content::before {
  content: "";
  position: absolute;
  top: -66px;
  right: -44px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 239, 189, 0.42) 0%, rgba(216, 239, 189, 0.08) 52%, transparent 74%);
  filter: blur(12px);
  pointer-events: none;
}

.services-page-hero__title {
  margin: 20px 0 20px;
  width: 100%;
  font-size: clamp(2.25rem, 4.3vw, 3.7rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.services-page-hero__lead {
  max-width: 80%;
  margin: 0;
  color: var(--text-soft);
  font-size: 1.04rem;
}

.services-page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.services-page-section {
  margin-top: 8px;
}

.service-detail-hero {
  padding-top: 40px;
  padding-bottom: 24px;
}

.service-detail-hero__card {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 26px;
  padding: 38px 42px 25px 42px;
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 247, 0.98) 100%);
  box-shadow: 0 26px 56px rgba(32, 40, 37, 0.05);
  overflow: hidden;
}

.service-detail-hero__card::before {
  content: "";
  position: absolute;
  right: -64px;
  top: -48px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 241, 203, 0.44) 0%, rgba(223, 241, 203, 0.08) 56%, transparent 76%);
  filter: blur(14px);
  pointer-events: none;
}

.service-detail-hero__icon {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 30px;
  background: linear-gradient(180deg, #edf6e7 0%, #f8fbf5 100%);
  color: #557864;
  border: 1px solid rgba(134, 173, 148, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

.service-detail-hero__icon svg {
  width: 38px;
  height: 38px;
}

.service-detail-hero__icon-image {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.service-detail-hero__content {
  position: relative;
  z-index: 1;
}

.service-detail-hero__title {
  margin: 18px 0 14px;
  font-size: clamp(2.7rem, 4.6vw, 3.95rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.service-detail-hero__lead {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.04rem;
  white-space: pre-line;
}

.service-detail-hero__meta {
  width: 580px;
  max-width: 100%;
  margin: 16px 0 0;
  padding: 0;
  color: rgba(79, 91, 85, 0.62);
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: left;
}

.service-detail-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.service-answer-section,
.service-price-section,
.service-detail-section,
.service-faq-section,
.service-doctors-section {
  padding-top: 24px!important;
  padding-bottom: 24px!important;
}

.service-answer {
  display: grid;
  gap: 18px;
  padding: 34px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 100% 0%, rgba(223, 241, 211, 0.56), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 247, 0.98) 100%);
  box-shadow: 0 24px 54px rgba(32, 40, 37, 0.05);
}

.service-answer h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 0.98;
}

.service-answer p:last-child {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.68;
}

.service-section-heading {
  margin-bottom: 26px;
}

.service-section-heading--row {
  margin-bottom: 24px;
}

.service-price-card,
.service-description {
  padding: 34px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 247, 0.98) 100%);
  box-shadow: 0 24px 54px rgba(32, 40, 37, 0.05);
}

.service-price-table-wrap {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(34, 44, 40, 0.06);
  background: #fff;
}

.service-price-table {
  width: 100%;
  border-collapse: collapse;
}

.service-price-table th,
.service-price-table td {
  padding: 18px 22px;
  text-align: left;
  vertical-align: top;
}

.service-price-table thead th {
  background: #f2f7ed;
  color: #42574c;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.service-price-table tbody tr + tr td {
  border-top: 1px solid rgba(34, 44, 40, 0.06);
}

.service-price-table tbody td:last-child {
  color: #24382c;
  font-weight: 800;
  white-space: nowrap;
}

.service-price-note {
  margin: 18px 0 0;
  color: var(--text-soft);
}

.service-description__layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.3fr) minmax(0, 1fr);
  gap: 50px;
  align-items: start;
}

.service-description__aside {
  display: grid;
  gap: 16px;
}

.service-description__highlight {
  display: grid;
  gap: 18px;
  align-items: start;
  padding: 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(223, 241, 211, 0.66), transparent 40%),
    linear-gradient(180deg, rgba(243, 248, 240, 0.96) 0%, rgba(251, 252, 249, 0.98) 100%);
}

.service-description__highlight-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  color: #5e856d;
  border: 1px solid rgba(134, 173, 148, 0.18);
  box-shadow: 0 12px 24px rgba(32, 40, 37, 0.05);
}

.service-description__highlight p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #2d3833;
}

.service-description__fact-card {
  display: grid;
  gap: 10px;
  padding: 24px 24px 26px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(32, 40, 37, 0.04);
}

.service-description__fact-card span {
  color: var(--sage-strong);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}


.service-description__fact-card p {
  color: #223029;
  margin-top: 5px;
}

.service-description__content h3 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.service-description__content h3 + p {
  margin-top: 0;
}

.service-description__content p {
  margin: 0 0 24px;
  color: #404c46;
}

.service-description__list {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.service-description__list li {
  position: relative;
  padding-left: 20px;
  color: #667168;
  line-height: 1.6;
}

.service-description__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7da48a;
}

.service-description__list strong {
  color: #39473f;
}

.service-doctors-grid .doctor-showcase-card {
  min-height: 390px;
}

.service-doctors-grid .doctor-showcase-card__media {
  min-height: 390px;
}

.service-doctors-grid .doctor-showcase-card__body h3 {
  font-size: 1.03rem;
}

.service-doctors-grid .doctor-showcase-card__body p {
  font-size: 0.88rem;
  line-height: 1.3;
}

@media (max-width: 1100px) {
  .services-page-hero__content {
    padding: 34px 32px 36px;
  }
}

@media (max-width: 720px) {
  .services-page-hero {
    padding-top: 24px!important;
    padding-bottom: 18px!important;
  }

  .services-page-hero__content {
    border-radius: 28px;
  }

  .services-page-hero__content {
    padding: 28px 22px 30px;
  }

  .services-page-hero__title {
    font-size: clamp(2rem, 9.2vw, 2.7rem);
  }

  .services-page-hero__lead {
    font-size: 0.98rem;
  }

  .services-page-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .services-page-hero__actions .hero-button {
    width: 100%;
    justify-content: center;
  }

  .service-detail-hero {
    padding: 20px 0 24px!important;
  }

  .service-detail-hero__card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 26px 22px 28px;
    border-radius: 28px;
  }

  .service-detail-hero__icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
  }

  .service-detail-hero__title {
    font-size: clamp(2.05rem, 10.2vw, 2.9rem);
  }

  .service-detail-hero__lead {
    max-width: none;
    font-size: 0.98rem;
  }

  .service-detail-hero__meta {
    position: static;
    width: auto;
    max-width: none;
    margin: 16px 0 0;
    padding: 0;
    text-align: left;
  }

  .service-detail-hero__actions {
    flex-direction: column;
  }

  .service-detail-hero__actions .hero-button {
    width: 100%;
    justify-content: center;
  }

  .service-price-card,
  .service-description {
    padding: 24px 20px;
    border-radius: 26px;
  }

  .service-price-table-wrap {
    overflow: hidden;
    border-radius: 22px;
  }

  .service-price-table,
  .service-price-table thead,
  .service-price-table tbody,
  .service-price-table tr,
  .service-price-table th,
  .service-price-table td {
    display: block;
    width: 100%;
  }

  .service-price-table thead {
    border-bottom: 1px solid rgba(34, 44, 40, 0.08);
    background: #eef3ea;
  }

  .service-price-table thead tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 14px 16px;
  }

  .service-price-table thead th {
    padding: 0;
    background: transparent;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6f7b73;
  }

  .service-price-table thead th:last-child {
    text-align: right;
  }

  .service-price-table tbody {
    display: grid;
  }

  .service-price-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
    padding: 18px 16px;
    background: #fff;
  }

  .service-price-table tbody tr + tr {
    border-top: 1px solid rgba(34, 44, 40, 0.08);
  }

  .service-price-table tbody td {
    padding: 0;
    border: 0;
  }

  .service-price-table tbody tr + tr td {
    border-top: 0;
  }

  .service-price-table tbody td:first-child {
    color: #2f3934;
    font-size: 0.98rem;
    line-height: 1.42;
  }

  .service-price-table tbody td:last-child {
    align-self: end;
    text-align: right;
    font-size: 0.98rem;
  }

  .service-description__layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-description__highlight {
    padding: 20px;
    border-radius: 22px;
  }

  .service-description__highlight-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
  }

  .service-description__content h3 {
    font-size: clamp(1.5rem, 7.2vw, 2rem);
  }

  .service-description__fact-card {
    padding: 20px;
    border-radius: 22px;
  }

  .service-description__fact-card strong {
    max-width: none;
  }

  .service-doctors-grid .doctor-showcase-card {
    border-radius: 24px;
  }

  .service-doctors-grid .doctor-showcase-card__media {
    min-height: 372px;
  }

  .service-doctors-grid .doctor-showcase-card__body {
    padding: 16px 52px 16px 16px;
  }

  .service-doctors-grid .doctor-showcase-card__arrow {
    right: 22px;
    bottom: 22px;
  }
}

.service-card,
.doctor-card,
.number-card,
.widget-card,
.contact-card,
.map-card {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.slider-button {
  width: 50px;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-size: 1.15rem;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.slider-button:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(214, 244, 186, 0.92), rgba(241, 250, 229, 0.9));
  border-color: rgba(95, 133, 109, 0.24);
}

.slider-button--small {
  width: 34px;
  height: 34px;
  font-size: 1rem;
}

.hero-team__strip {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  overflow-x: auto;
  max-width: 440px;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.hero-team__strip::-webkit-scrollbar,
.hero-specialists__strip::-webkit-scrollbar {
  display: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  grid-column: span 4;
  padding: 28px;
  overflow: hidden;
  scroll-margin-top: 132px;
}

.service-card--featured {
  grid-column: span 5;
  background: linear-gradient(160deg, rgba(223, 236, 225, 0.9), rgba(255, 255, 255, 0.94));
}

.service-card:target {
  box-shadow: 0 0 0 2px rgba(134, 173, 148, 0.28), 0 28px 70px rgba(37, 46, 41, 0.12);
}

.service-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  border-radius: 18px;
  background: rgba(223, 236, 225, 0.9);
}

.service-icon span {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 2px solid var(--sage-strong);
}

.service-icon--ring span {
  border-radius: 50%;
}

.service-icon--scan span {
  position: relative;
  width: 28px;
  height: 18px;
  border-radius: 6px;
}

.service-icon--scan span::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 16px;
  height: 6px;
  border-radius: 6px;
  background: var(--sage-strong);
}

.service-icon--drop span,
.service-icon--pulse span,
.service-icon--spark span {
  border: 0;
  background: var(--sage-strong);
}

.service-icon--drop span {
  clip-path: polygon(50% 0%, 78% 37%, 65% 100%, 35% 100%, 22% 37%);
}

.service-icon--pulse span {
  clip-path: polygon(0 52%, 18% 52%, 32% 26%, 45% 74%, 60% 36%, 72% 52%, 100% 52%, 100% 68%, 63% 68%, 46% 100%, 30% 50%, 22% 68%, 0 68%);
}

.service-icon--spark span {
  clip-path: polygon(50% 0, 62% 35%, 100% 50%, 62% 65%, 50% 100%, 38% 65%, 0 50%, 38% 35%);
}

.service-card h3,
.doctor-card h3,
.widget-card strong,
.branch-list h3,
.site-footer h3 {
  margin: 0 0 12px;
}

.service-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.service-card li {
  position: relative;
  padding-left: 18px;
}

.service-card li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
}

.slider-controls {
  display: flex;
  gap: 10px;
}

.doctors-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.doctor-card {
  overflow: hidden;
  scroll-snap-align: start;
}

.doctor-card img {
  width: 100%;
  aspect-ratio: 0.95;
  object-fit: cover;
  object-position: center top;
}

.doctor-card__body {
  padding: 22px;
}

.doctor-badge {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(223, 236, 225, 0.92);
  color: var(--sage-strong);
  font-size: 0.82rem;
  font-weight: 800;
}

.doctor-card__body strong,
.widget-card__top span,
.map-overlay span {
  color: var(--sage-strong);
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.number-card {
  min-height: 190px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.number-card strong {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.photo-marquee {
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.photo-marquee__track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.photo-marquee__item {
  width: min(360px, 76vw);
  margin: 0;
  aspect-ratio: 1.08;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.photo-marquee__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 9px));
  }
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.widget-card,
.contact-card,
.map-card {
  padding: 28px;
}

.widget-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.widget-placeholder {
  min-height: 270px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  border: 1px dashed rgba(95, 133, 109, 0.36);
  background: linear-gradient(135deg, rgba(223, 236, 225, 0.5), rgba(255, 255, 255, 0.92));
  color: var(--sage-strong);
  font-weight: 800;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
}

.booking-form {
  display: grid;
  gap: 16px;
}

.booking-form label {
  display: grid;
  gap: 8px;
}

.booking-form span {
  font-weight: 700;
}

.booking-form input:not([type="checkbox"]),
.booking-form select,
.booking-form textarea,
.branch-select select {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}

.booking-form textarea {
  min-height: 118px;
  padding-block: 16px;
  resize: vertical;
  font: inherit;
}

.booking-form input:not([type="checkbox"]):focus,
.booking-form select:focus,
.booking-form textarea:focus {
  outline: none;
  border-color: rgba(112, 159, 129, 0.55);
  box-shadow: 0 0 0 4px rgba(183, 234, 88, 0.14);
}

.booking-form label.is-invalid input:not([type="checkbox"]),
.booking-form label.is-invalid select,
.booking-form label.is-invalid textarea,
.chief-page-form label.is-invalid input:not([type="checkbox"]),
.chief-page-form label.is-invalid select,
.chief-page-form label.is-invalid textarea,
.career-form label.is-invalid input:not([type="checkbox"]),
.career-form label.is-invalid select,
.career-form label.is-invalid textarea,
.modal-form label.is-invalid input:not([type="checkbox"]),
.modal-form label.is-invalid textarea {
  border-color: rgba(194, 85, 85, 0.62);
  background: rgba(255, 250, 248, 0.98);
  box-shadow: 0 0 0 4px rgba(194, 85, 85, 0.1);
}

.booking-form select,
.branch-select select,
.chief-page-form select,
.career-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 5.25L7 9.25L11 5.25' stroke='%23222C28' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 14px 14px;
}

.checkbox-field {
  display: flex !important;
  align-items: center;
  gap: 12px;
}

.checkbox-field input {
  flex: 0 0 20px;
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  min-height: auto;
  margin: 2px 0 0;
  border: 1px solid #222c2817;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.98);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.checkbox-field input:checked {
  border-color: rgba(112, 159, 129, 0.34);
  background-color: #dff1cb;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 6.25L4.75 8.5L9.5 3.75' stroke='%23222C28' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.checkbox-field input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(183, 234, 88, 0.12);
}

.checkbox-field.is-invalid input {
  border-color: rgba(194, 85, 85, 0.62);
  box-shadow: 0 0 0 4px rgba(194, 85, 85, 0.1);
}

.checkbox-field span {
  font-weight: 500;
  color: var(--text-soft);
  font-size: 12px;
}

.field-error {
  color: #9c3c3c;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.checkbox-field .field-error {
  flex: 1 0 100%;
  margin-left: 32px;
}

.form-note {
  display: none;
  align-items: flex-start;
  gap: 10px;
  min-height: 0;
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(103, 153, 91, 0.2);
  background: linear-gradient(135deg, rgba(241, 250, 229, 0.92), rgba(255, 255, 255, 0.82));
  color: #31523d;
  font-weight: 700;
  line-height: 1.42;
  box-shadow: 0 14px 34px rgba(32, 40, 37, 0.08);
}

.form-note.has-message {
  display: flex;
}

.form-note::before {
  content: "";
  display: grid;
  place-items: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 999px;
  background: #6f9d7f;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.64);
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

.form-note--loading::before {
  border: 2px solid rgba(49, 82, 61, 0.18);
  border-top-color: #31523d;
  background: transparent;
  box-shadow: none;
  animation: formSpinner 720ms linear infinite;
}

.form-note--success {
  border-color: rgba(103, 153, 91, 0.24);
  background: linear-gradient(135deg, rgba(232, 248, 218, 0.96), rgba(255, 255, 255, 0.86));
  color: #285139;
}

.form-note--success::before {
  content: "✓";
  background: #6f9d7f;
  box-shadow: none;
}

.form-note--error {
  border-color: rgba(180, 73, 73, 0.2);
  background: linear-gradient(135deg, rgba(255, 241, 238, 0.96), rgba(255, 255, 255, 0.86));
  color: #8f3636;
}

.form-note--error::before {
  content: "!";
  background: #c25555;
  box-shadow: none;
}

.booking-form.is-sending,
.chief-page-form.is-sending,
.career-form.is-sending,
.modal-form.is-sending {
  pointer-events: none;
}

.booking-form button[disabled],
.chief-page-form button[disabled],
.career-form button[disabled],
.modal-form button[disabled] {
  cursor: wait;
  opacity: 0.74;
}

@keyframes formSpinner {
  to {
    transform: rotate(360deg);
  }
}

.map-placeholder {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(223, 236, 225, 0.46), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(34, 44, 40, 0.08);
}

.map-placeholder--embed {
  background: #edf2ed;
}

.map-placeholder--embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-placeholder__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(95, 133, 109, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 133, 109, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
}

.map-placeholder__load {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  min-height: 48px;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--color-text);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(32, 40, 37, 0.18);
}

.map-placeholder__load:focus-visible {
  outline: 3px solid rgba(124, 176, 139, 0.5);
  outline-offset: 4px;
}

.map-marker,
.map-overlay {
  position: absolute;
  backdrop-filter: blur(14px);
}

.map-marker {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 30px rgba(34, 44, 40, 0.12);
}

.map-marker strong {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sage-strong);
  color: #fff;
}

.map-marker--one {
  left: 14%;
  top: 28%;
}

.map-marker--two {
  right: 12%;
  bottom: 20%;
}

.map-overlay {
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(33, 41, 37, 0.76);
  color: #fff;
}

.map-overlay small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.8);
}

.branch-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.branch-list article {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(34, 44, 40, 0.08);
}

.branch-list h3,
.footer-links a {
  display: block;
}

.branch-list a {
  display: inline-flex;
  align-items: center;
  color: var(--sage-strong);
  font-weight: 800;
}

.contacts-channels {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.contacts-channel {
  display: flex;
  flex-flow: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(34, 44, 40, 0.08);
  background: rgba(255, 255, 255, 0.74);
}

.contacts-channel__meta {
  display: grid;
  gap: 4px;
}

.contacts-channel__meta span {
  color: #7a867f;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contacts-channel__meta strong {
  font-size: 1.05rem;
  line-height: 1.35;
}

.contacts-channel a,
.contacts-channel p {
  margin: 0;
  color: var(--sage-strong);
  font-weight: 800;
}

.contacts-channel p {
  color: var(--text-soft);
  font-weight: 600;
  text-align: right;
}

.contacts-branches-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contacts-branch-card {
  padding: 28px;
  border-radius: 30px;
  border: 1px solid rgba(34, 44, 40, 0.08);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 20px 40px rgba(32, 40, 37, 0.05);
}

.contacts-branch-card h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.contacts-branch-card > p {
  margin: 0 0 22px;
  color: var(--text-soft);
}

.contacts-branch-card__meta {
  display: grid;
  gap: 14px;
}

.contacts-branch-card__meta article {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(247, 250, 245, 0.96);
  border: 1px solid rgba(34, 44, 40, 0.06);
}

.contacts-branch-card__meta span {
  color: #7a867f;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contacts-branch-card__meta strong,
.contacts-branch-card__meta a {
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 700;
}

.contacts-branch-card__meta a {
  color: var(--sage-strong);
}

.contacts-support-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contacts-support-card h2,
.contacts-support-card .contact-lead {
  margin: 0;
}

.contacts-support-card__block:first-of-type {
  margin-top: auto;
}

.contacts-support-card__block {
  padding: 20px 22px;
  border-radius: 22px;
  border: 1px solid rgba(34, 44, 40, 0.08);
  background: rgba(255, 255, 255, 0.74);
}

.contacts-support-card__block span {
  display: block;
  margin-bottom: 8px;
  color: #7a867f;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contacts-support-card__block strong,
.contacts-support-card__block a {
  display: block;
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 700;
}

.contacts-support-card__block a {
  color: var(--sage-strong);
}

.site-footer {
  padding: 34px 0 48px;
  background: #1f2623;
  color: rgba(255, 255, 255, 0.84);
  border-radius: 44px 44px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.95fr 0.95fr;
  gap: 22px;
}

.footer-brand img {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
}

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

.footer-links a:hover {
  color: #fff;
}

.footer-legal {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0) scale(0.985);
  transition: opacity 680ms cubic-bezier(0.22, 1, 0.36, 1), transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@keyframes heroElementIn {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes heroPhotoIn {
  from {
    opacity: 0;
    transform: translate3d(0, 34px, 0) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes heroSocialIn {
  from {
    opacity: 0;
    transform: translate(-52%, -38%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-52%, -50%) scale(1);
  }
}

@keyframes heroRatingIn {
  from {
    opacity: 0;
    transform: translate3d(14px, -14px, 0) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes heroTagIn {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes cardCascadeIn {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes driftGlow {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(10px, -8px, 0) scale(1.04);
  }
}

@keyframes shadePulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.82;
  }
}

@media (max-width: 1160px) {
  .header-top {
    flex-wrap: wrap;
  }

  .header-top__facts {
    order: 3;
    width: 100%;
  }

  .header-cta {
    margin-left: auto;
  }

  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contacts-branches-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card,
  .service-card--featured {
    grid-column: span 1;
  }

  .numbers-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  body.mobile-menu-open {
    overflow: hidden;
  }

  .section {
    padding: 78px 0;
  }

  .menu-toggle {
    display: inline-flex;
    position: relative;
    z-index: 140;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 30px rgba(25, 35, 30, 0.08);
  }

  .header-cta {
    display: none !important;
  }

  .header-top__facts {
    display: block;
    width: auto;
    margin-left: auto;
  }

  .header-nav-shell {
    display: block;
    position: static;
    height: 0;
    min-height: 0;
    overflow: visible;
    padding-bottom: 0;
  }

  .site-header {
    position: relative;
    padding-top: 8px;
    background: linear-gradient(180deg, rgba(248, 250, 247, 0.98) 0%, rgba(248, 250, 247, 0.88) 100%);
    backdrop-filter: blur(14px);
  }

  .site-nav {
    display: none !important;
  }

  .header-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand phone toggle";
    align-items: center;
    gap: 12px;
  }

  .brand-chip {
    grid-area: brand;
    padding: 6px 0;
  }

  .brand-chip img {
    height: 58px;
  }

  .header-top__facts {
    grid-area: phone;
  }

  .header-top__facts .header-fact {
    display: none;
  }

  .header-top__facts .header-fact--phone {
    display: block;
    padding: 0;
    text-align: right;
  }

  .header-fact--phone a {
    font-size: 1.1rem;
    line-height: 1.1;
  }

  .header-fact--phone span {
    margin-top: 4px;
    font-size: 0.78rem;
    line-height: 1.3;
  }

  .menu-toggle {
    grid-area: toggle;
    justify-self: end;
    align-self: center;
  }

  .menu-toggle span {
    width: 18px;
    transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] {
    position: fixed;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, rgba(214, 244, 186, 0.96), rgba(236, 249, 222, 0.96));
    border-color: rgba(214, 244, 186, 0.96);
    box-shadow: 0 18px 32px rgba(179, 219, 141, 0.24);
  }

  .menu-toggle[aria-expanded="true"] span {
    background: #000000;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: block;
    pointer-events: none;
  }

  .mobile-menu.is-open {
    pointer-events: auto;
  }

  .mobile-menu__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 24, 21, 0.34);
    opacity: 0;
    transition: opacity 220ms ease;
  }

  .mobile-menu__panel {
    position: absolute;
    top: 8px;
    right: 8px;
    bottom: 8px;
    width: min(388px, calc(100vw - 16px));
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 28px 60px rgba(18, 24, 21, 0.18);
    transform: translateX(calc(100% + 24px));
    transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .mobile-menu.is-open .mobile-menu__backdrop {
    opacity: 1;
  }

  .mobile-menu.is-open .mobile-menu__panel {
    transform: translateX(0);
  }

  .mobile-menu__top {
    position: relative;
    padding: 20px 86px 18px 18px;
    border-bottom: 1px solid rgba(34, 44, 40, 0.08);
  }

  .mobile-menu__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(214, 244, 186, 0.96);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(214, 244, 186, 0.96), rgba(236, 249, 222, 0.96));
    box-shadow: 0 18px 32px rgba(179, 219, 141, 0.24);
  }

  .mobile-menu__close span {
    position: absolute;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #000000;
  }

  .mobile-menu__close span:first-child {
    transform: rotate(45deg);
  }

  .mobile-menu__close span:last-child {
    transform: rotate(-45deg);
  }

  .mobile-menu__phone-block {
    display: grid;
    gap: 10px;
  }

  .mobile-menu__phone {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -0.03em;
  }

  .mobile-menu__schedule {
    display: grid;
    gap: 2px;
  }

  .mobile-menu__schedule strong {
    font-size: 0.92rem;
    line-height: 1.2;
  }

  .mobile-menu__schedule span {
    color: var(--text-soft);
    font-size: 0.84rem;
    line-height: 1.35;
  }

  .mobile-menu__addresses {
    display: grid;
    gap: 2px;
    padding-top: 10px;
    border-top: 1px solid rgba(34, 44, 40, 0.08);
  }

  .mobile-menu__addresses strong {
    font-size: 0.96rem;
    line-height: 1.2;
    letter-spacing: -0.03em;
  }

  .mobile-menu__addresses span {
    color: var(--text-soft);
    font-size: 0.88rem;
    line-height: 1.35;
  }

  .mobile-menu__content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 0;
    padding: 18px;
    padding-bottom: 20px;
    overflow: visible;
  }

  .mobile-menu__cta {
    margin-top: 8px;
    min-height: 52px;
    font-size: 1rem;
    color: #111827;
    background: linear-gradient(135deg, rgba(214, 244, 186, 0.96), rgba(236, 249, 222, 0.96));
    box-shadow: 0 18px 32px rgba(179, 219, 141, 0.24);
  }

  .mobile-menu__nav {
    flex: 0 0 auto;
    display: grid;
    align-content: start;
    gap: 8px;
    min-height: 0;
    padding: 16px 14px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 36px rgba(32, 40, 37, 0.06);
  }

  .mobile-menu__nav-view {
    display: none;
    gap: 8px;
    align-content: start;
  }

  .mobile-menu__nav-view.is-active {
    display: grid;
  }

  .mobile-menu__title {
    margin: 2px 0 10px;
    text-align: center;
    font-size: 1.06rem;
    font-weight: 800;
    letter-spacing: -0.03em;
  }

  .mobile-menu__link {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 14px;
    border: 0;
    background: transparent;
    color: #212925;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-align: left;
  }

  .mobile-menu__link--forward::after {
    content: "→";
    font-size: 1.08rem;
  }

  .mobile-menu__link--dropdown::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: rotate(45deg);
    transition: transform 180ms ease;
  }

  .mobile-menu__accordion.is-open .mobile-menu__link--dropdown {
    color: #5d88f2;
  }

  .mobile-menu__accordion.is-open .mobile-menu__link--dropdown::after {
    transform: rotate(-135deg) translate(-1px, -1px);
  }

  .mobile-menu__link--promo {
    justify-content: flex-start;
    gap: 10px;
  }

  .mobile-menu__link--all-services {
    margin-top: 8px;
    padding-inline: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #222c28, #385040);
    color: #ffffff;
  }

  .mobile-menu__accordion {
    display: grid;
    gap: 2px;
  }

  .mobile-menu__accordion-panel {
    display: none;
    padding: 4px 0 8px 14px;
  }

  .mobile-menu__accordion.is-open .mobile-menu__accordion-panel {
    display: grid;
    gap: 6px;
  }

  .mobile-menu__accordion-panel a {
    min-height: 42px;
    display: flex;
    align-items: center;
    color: #2d3531;
    font-size: 0.96rem;
  }

  .mobile-menu__submenu-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
    color: var(--text-soft);
    font-size: 0.96rem;
  }

  .mobile-menu__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
  }

  .mobile-menu__socials a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(243, 246, 240, 0.9);
    color: #212925;
    font-size: 0.9rem;
    font-weight: 700;
  }

  .mobile-submenu__back {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(34, 44, 40, 0.14);
    background: #ffffff;
    color: #212925;
    font-weight: 700;
  }

  .nav-dropdown__menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    margin-top: 6px;
    box-shadow: none;
  }

  .nav-dropdown.is-open .nav-dropdown__menu {
    display: grid;
  }

  .section-heading--row {
    flex-direction: column;
    align-items: flex-start;
  }

  .reviews-grid,
  .numbers-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --container: calc(100% - 20px);
    --radius-xl: 28px;
  }

  .service-card,
  .number-card,
  .widget-card,
  .contact-card,
  .map-card {
    padding: 22px;
  }

  .brand-chip {
    padding: 8px 14px;
  }

  .brand-chip img {
    height: 56px;
  }

  .hero-tags {
    display: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .section--services > .container,
  .doctors-section > .container,
  .overview-shell > .container,
  .site-footer > .container,
  .site-footer > .footer-legal.container {
    width: 100%;
    max-width: none;
  }

  .home-services-section__content {
    padding-inline: 0 !important;
  }

  .doctors-section {
    padding: 0 22px;
  }

  .section--services::before{display: none}
  .section--services::after{display: none}

  .section--services,
  .overview-shell,
  .site-footer {
    margin-inline: auto;
  }

  .overview-shell,
  .site-footer {
    overflow: visible;
  }

  .overview-shell {
    padding-left: 22px;
    padding-right: 22px;
  }

  .site-footer {
    padding: 34px 22px 48px;
  }

  .overview-stats,
  .overview-grid,
  .footer-grid,
  .footer-legal,
  .footer-brand,
  .branch-list,
  .branch-list article,
  .rating-platform-card,
  .overview-stat-card {
    min-width: 0;
  }
}

@media (max-width: 860px) {
  .mobile-menu:not(.is-open) .mobile-menu__backdrop,
  .mobile-menu:not(.is-open) .mobile-menu__panel {
    display: none;
  }
}

.section--muted {
  background: transparent;
}
/* 🟢 ---------- СТИЛИ ДЛЯ ГЛАВНОГО ЭКРАНА ---------- */
.hero {
  padding: 30px 0 34px;
  background: transparent;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 45%);
  gap: 20px;
  align-items: stretch;
}

.hero-content {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px 48px;
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.06);
}

.hero-title {
  margin: 0 0 24px;
  color: #111827;
  font-size: clamp(2.7rem, 4.6vw, 3.95rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
  font-weight: 700;
}

.hero-title span {
  display: block;
}

.hero-specialists__card,
.hero-location-list__item,
.home-services-section__list-item,
.overview-stats .overview-stat-card,
.ratings-platforms .rating-platform-card {
  opacity: 0;
}

.hero-content.reveal,
.hero-visual.reveal {
  opacity: 1;
  transform: none;
  transition: none;
  will-change: auto;
}

.hero-title__accent {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  padding: 10px 15px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(214, 244, 186, 0.92), rgba(241, 250, 229, 0.9));
  color: #31523d;
}

.hero-subtitle {
  max-width: 31ch;
  margin: 0 0 36px;
  color: #6b7280;
  font-size: clamp(0.98rem, 1.35vw, 1.12rem);
  line-height: 1.55;
  letter-spacing: -0.03em;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  flex: 0 0 auto;
  min-height: 55px;
  border: none;
}

.hero-button:hover {
  transform: translateY(-2px);
  cursor: pointer;
}

.hero-button--primary {
  color: #111827;
  background: #d8f3c9;
}

.hero-button--secondary {
  color: #111827;
  background: #fff;
  border: 1px solid #d8dde7;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.05);
}

.hero-button--primary:hover {
  background: linear-gradient(135deg, #dff6d3, #cbe9b7);
  box-shadow: 0 16px 30px rgba(184, 227, 157, 0.34);
}

.hero-button--secondary:hover {
  background: #ffffff;
  border-color: rgba(95, 133, 109, 0.16);
  box-shadow: 0 14px 24px rgba(17, 24, 39, 0.08);
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 560px;
  justify-self: end;
}

.hero-social-pill {
  position: absolute;
    left: -11px;
    top: 50%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 999px;
  background: #efefefd6;
  backdrop-filter: blur(1px);
  border: 1px solid #fff;
  box-shadow: 0 16px 32px rgba(17, 24, 39, 0.08);
  transform: translate(-52%, -50%);
}

.hero-social-pill--mobile {
  display: none;
}

.hero-social-pill__link {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #1f2937;
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.08);
  transition: transform 180ms ease, background 180ms ease;
}

.hero-social-pill__link:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

.hero-social-pill__link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.hero-social-pill__link img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.hero-social-pill__link svg[fill="none"] {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cutout-wrapper {
  --cutout-bg: var(--site-bg);
  position: absolute;
  top: -1px;
  right: -1px;
  z-index: 20;
  padding: 0 0 21px 21px;
  background-color: var(--cutout-bg);
  border-bottom-left-radius: 40px;
}

.cutout-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: -24px;
  width: 24px;
  height: 24px;
  background: radial-gradient(circle at 0 100%, transparent 23.5px, var(--cutout-bg) 24px);
  pointer-events: none;
}

.cutout-wrapper::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -24px;
  width: 24px;
  height: 24px;
  background: radial-gradient(circle at 0 100%, transparent 23.5px, var(--cutout-bg) 24px);
  pointer-events: none;
}

.yandex-widget-glass {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 12px 12px;
  border-radius: 24px;
  background-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.hero-photo-panel {
  position: relative;
  min-height: 560px;
  height: 100%;
  border-radius: 40px;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.hero-photo-panel__frame {
  display: none;
}

.hero-photo {
  display: block;
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center center;
  border-radius: 40px;
}

.hero-photo-panel__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 58%, rgba(17, 24, 39, 0.18) 100%);
  pointer-events: none;
  border-radius: 40px;
}

.hero-rating-widget {
  --cutout-bg: #fafcf8;
}

.hero-rating-widget__surface {
  padding: 12px 20px 12px 12px;
}

.hero-rating-widget__pin {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.8);
  color: #ff4b4b;
}

.hero-rating-widget__pin svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.hero-rating-widget__meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-rating-widget__score {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #111827;
}

.hero-rating-widget__score strong {
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.hero-rating-widget__stars {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #ffcc00;
}

.hero-rating-widget__stars svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.hero-rating-widget__stars svg:last-child path:last-child {
  fill: none;
  stroke: #ffcc00;
  stroke-width: 1.3;
}

.hero-rating-widget__caption {
  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 500;
}

.hero-tags {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  width: calc(100% - 32px);
  transform: translateX(-50%);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  color: #1f2937;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.hero-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.hero-tag--accent {
  background: #d8f3c9;
  color: #000000;
  box-shadow: 0 12px 24px rgba(33, 43, 70, 0.24);
}

.hero-insights {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}

.hero-insights--without-promotions {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.hero-insight {
  position: relative;
  min-height: 230px;
  padding: 28px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.05);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.hero-content.is-visible .hero-title span:nth-child(1) {
  animation: heroElementIn 0.84s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

.hero-content.is-visible .hero-title span:nth-child(2) {
  animation: heroElementIn 0.84s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
}

.hero-content.is-visible .hero-title span:nth-child(3) {
  animation: heroElementIn 0.88s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

.hero-content.is-visible .hero-subtitle {
  animation: heroElementIn 0.84s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.hero-content.is-visible .hero-buttons .hero-button:first-child {
  animation: heroElementIn 0.78s cubic-bezier(0.22, 1, 0.36, 1) 0.42s both;
}

.hero-content.is-visible .hero-buttons .hero-button:last-child {
  animation: heroElementIn 0.78s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

.hero-visual.is-visible .hero-photo-panel {
  animation: heroPhotoIn 0.96s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.hero-visual.is-visible .hero-social-pill {
  animation: heroSocialIn 0.84s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

.hero-visual.is-visible .hero-rating-widget {
  animation: heroRatingIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.42s both;
}

.hero-visual.is-visible .hero-tag:nth-child(1) { animation: heroTagIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.58s both; }
.hero-visual.is-visible .hero-tag:nth-child(2) { animation: heroTagIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.64s both; }
.hero-visual.is-visible .hero-tag:nth-child(3) { animation: heroTagIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both; }
.hero-visual.is-visible .hero-tag:nth-child(4) { animation: heroTagIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.76s both; }
.hero-visual.is-visible .hero-tag:nth-child(5) { animation: heroTagIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.82s both; }
.hero-visual.is-visible .hero-tag:nth-child(6) { animation: heroTagIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.88s both; }
.hero-visual.is-visible .hero-tag:nth-child(7) { animation: heroTagIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.94s both; }

.hero-insight--specialists.reveal {
  transition-delay: 0.1s;
}

.hero-insight--checklist.reveal {
  transition-delay: 0.22s;
}

.hero-insight--location.reveal {
  transition-delay: 0.34s;
}

.hero-insight--specialists.is-visible .hero-specialists__card:nth-child(1) { animation: cardCascadeIn 0.56s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both; }
.hero-insight--specialists.is-visible .hero-specialists__card:nth-child(2) { animation: cardCascadeIn 0.56s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both; }
.hero-insight--specialists.is-visible .hero-specialists__card:nth-child(3) { animation: cardCascadeIn 0.56s cubic-bezier(0.22, 1, 0.36, 1) 0.26s both; }
.hero-insight--specialists.is-visible .hero-specialists__card:nth-child(4) { animation: cardCascadeIn 0.56s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both; }

.hero-insight--checklist.is-visible .hero-promo-slide:nth-child(1) { animation: cardCascadeIn 0.56s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both; }
.hero-insight--checklist.is-visible .hero-promo-slide:nth-child(2) { animation: cardCascadeIn 0.56s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both; }
.hero-insight--checklist.is-visible .hero-promo-slide:nth-child(3) { animation: cardCascadeIn 0.56s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both; }

.hero-insight--location.is-visible .hero-location-list__item:nth-child(1) { animation: cardCascadeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both; }
.hero-insight--location.is-visible .hero-location-list__item:nth-child(2) { animation: cardCascadeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both; }

.hero-insight--specialists {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-specialists__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.hero-specialists__title,
.hero-insight h3 {
  margin: 0;
  color: #111827;
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.hero-insight__note,
.hero-insight p {
  margin: 14px 0 0;
  max-width: 22ch;
  color: #6b7280;
  font-size: 0.98rem;
  line-height: 1.45;
}


.hero-specialists__controls {
  display: flex;
  gap: 10px;
}

.hero-specialists__button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #dfe4ea;
  border-radius: 50%;
  background: #fff;
  color: #6b7280;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.hero-specialists__button:hover {
  transform: translateY(-2px);
  border-color: rgba(95, 133, 109, 0.18);
  background: linear-gradient(135deg, rgba(214, 244, 186, 0.9), rgba(246, 251, 238, 0.92));
  color: #31523d;
}

.hero-specialists__button--next {
  background: #d8f3c9;
  border-color: #d8f3c9;
  color: #2f5f38;
}

.hero-specialists__button svg,
.hero-specialists__card--more svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-specialists__strip {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.hero-specialists__strip::-webkit-scrollbar {
  display: none;
}

.hero-specialists__card {
  flex: 0 0 76px;
  height: 86px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  border-radius: 20px;
  background: #eef0f3;
}

.hero-specialists__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(34, 44, 40, 0.08);
}

.hero-specialists__card img {
  width: 120%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-specialists__card--featured {
  flex-basis: 86px;
  height: 104px;
}

.hero-specialists__card--more {
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: #4b5563;
  font-size: 0.86rem;
  font-weight: 500;
  background: #f3f5f7;
}

.hero-insight--checklist {
  background: linear-gradient(135deg, rgba(214, 244, 186, 0.92), rgba(241, 250, 229, 0.9));
}

.hero-promo-slider__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.hero-promo-slider__head .hero-insight__note {
  max-width: 24ch;
  margin-top: 10px;
}

.hero-promo-slider {
  cursor: default;
}

.hero-promo-slider a,
.hero-promo-slide {
  cursor: pointer;
}

.hero-promo-slider.is-dragging {
  cursor: grabbing;
}

.hero-promo-slider__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.hero-promo-slider__track::-webkit-scrollbar {
  display: none;
}

.hero-promo-slide {
  position: relative;
  display: block;
  min-height: 152px;
  overflow: hidden;
  border-radius: 24px;
  background: #e5ebdf;
  color: inherit;
  text-decoration: none;
  scroll-snap-align: start;
}

.hero-promo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-promo-slide__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(20, 30, 26, 0.02) 0%, rgba(20, 30, 26, 0.28) 42%, rgba(20, 30, 26, 0.74) 100%);
}

.hero-promo-slide__dates {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #294334;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-promo-slide__overlay strong {
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.hero-promo-slide__price {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(231, 247, 144, 0.96);
  color: #22362b;
  font-size: 0.82rem;
  font-weight: 850;
}

.hero-insight__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: #111827;
  font-weight: 700;
  text-decoration: none;
}

.hero-promo-slide .hero-insight__link {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.14);
}

.hero-insight__link::after {
  content: "›";
  font-size: 1.3rem;
  line-height: 1;
}

.hero-insight--location {
  display: flex;
  align-items: stretch;
  min-height: 208px;
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(31, 41, 55, 0.05);
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.04);
}

.hero-location-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
  max-width: 238px;
}

.hero-insight--location h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.hero-location-card__subtitle {
  margin: -4px 0 0;
  max-width: 28ch;
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.45;
}

.hero-location-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-location-list__item {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.45;
}

.hero-location-list__item span {
  display: block;
}

.hero-location-list__pin {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  fill: none;
  stroke: #6aa26b;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-location-card__meta {
  margin: 5px 0 0!important;
  color: #6b7280;
  font-size: 0.85rem;
  line-height: 1.5;
}

.hero-location-card__bg {
  position: absolute;
  right: -28px;
  bottom: -34px;
  width: 152px;
  height: 152px;
  opacity: 0.72;
  pointer-events: none;
  fill: none;
  stroke: #d9ead7;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* 🔴 ---------- СТИЛИ ДЛЯ ГЛАВНОГО ЭКРАНА ---------- */

#reviews .widget-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 34px rgba(17, 24, 39, 0.05);
  border-color: rgba(255, 255, 255, 0.45);
}

#reviews {
  position: static;
  isolation: auto;
  background: transparent;
}

#reviews::before {
  display: none;
}

#reviews .container {
  position: relative;
  z-index: 1;
}

#reviews .widget-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.22);
}

#reviews .widget-placeholder {
  background: rgba(255, 255, 255, 0.05) !important;
  background-image: none !important;
  border-color: rgba(255, 255, 255, 0.45);
}

.widget-embed,
.map-embed {
  min-height: 320px;
  border-radius: 28px;
  overflow: hidden;
}

.widget-embed iframe,
.widget-embed script,
.map-embed iframe {
  width: 100%;
  max-width: 100%;
}

/* 🟢 ---------- СТИЛИ ДЛЯ ЭКРАНА УСЛУГ ---------- */
.home-services-section {
  --services-shell-bg: #fbfcf8;
  position: relative;
  overflow: hidden;
  min-height: 562px;
  padding: 32px;
  border-radius: 32px;
  background: var(--services-shell-bg);
  box-shadow: 0 24px 50px rgba(80, 102, 72, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.home-services-section::before,
.home-services-section::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
}

.home-services-section__content {
  position: relative;
  z-index: 1;
}

.home-services-section::before {
  top: -28px;
  right: -46px;
  left: auto;
  width: 450px;
  height: 450px;
  background:
    radial-gradient(circle at 40% 34%, rgba(178, 226, 116, 0.48), rgba(178, 226, 116, 0.12) 42%, transparent 72%),
    radial-gradient(circle at 56% 72%, rgba(211, 239, 167, 0.34), rgba(211, 239, 167, 0.05) 50%, transparent 78%);
  filter: blur(34px);
  border-radius: 50%;
}

.home-services-section::after {
  right: -82px;
  bottom: -48px;
  width: 330px;
  height: 330px;
  background: radial-gradient(circle at 34% 44%, rgba(167, 220, 112, 0.26), rgba(167, 220, 112, 0.05) 58%, transparent 78%);
}

.doctors-section {
  padding-top: 88px;
  padding-bottom: 44px;
  background: transparent;
  overflow: visible;
}

.doctors-heading {
  margin-bottom: 28px;
}

.doctors-showcase-shell {
  position: relative;
  padding: 34px 48px 44px 12px;
  margin: -34px -48px -44px -12px;
  overflow-x: hidden;
  overflow-y: visible;
  cursor: grab;
  touch-action: pan-x;
}

.doctors-showcase-shell.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.doctors-showcase {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 318px;
  gap: 22px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 14px 44px 16px 0;
  margin: 0;
  scroll-padding-inline: 0 44px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
}

.doctors-showcase.is-dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.doctors-showcase::-webkit-scrollbar {
  display: none;
}

.doctor-showcase-card {
  position: relative;
  display: block;
  min-height: 432px;
  border-radius: 32px;
  background: #fff;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid rgba(223, 232, 209, 0.92);
  scroll-snap-align: start;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.doctor-showcase-card:hover,
.doctor-showcase-card:focus-within {
  transform: translateY(-10px);
  border-color: rgba(205, 224, 176, 0.96);
}

.doctor-showcase-card__media {
  position: relative;
  min-height: 432px;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  background: linear-gradient(180deg, #f3f5f0 0%, #eaeee6 100%);
}

.doctor-showcase-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 280ms ease;
}

.doctor-showcase-card__experience {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(244, 250, 241, 0.38));
  color: #56655e;
  font-size: 0.89rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 14px 24px rgba(32, 40, 37, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.doctor-showcase-card__experience strong {
  color: var(--sage-strong);
}

.doctor-showcase-card__body {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 106px;
  padding: 18px 64px 18px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
  filter: drop-shadow(0 18px 24px rgba(32, 40, 37, 0.12));
  background: #efefefd6;
  backdrop-filter: blur(8px);
}

.doctor-showcase-card__body h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #203028;
}

.doctor-showcase-card__body p {
  margin: 0;
  color: rgba(39, 55, 46, 0.72);
  font-size: 0.92rem;
  line-height: 1.22;
  font-weight: 600;
}

.doctor-showcase-card__arrow {
  position: absolute;
  right: 26px;
  bottom: 28px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(244, 249, 241, 0.34));
  color: #61705f;
  font-size: 1.05rem;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 10px 18px rgba(32, 40, 37, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.doctor-showcase-card__arrow svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.doctor-showcase-card:hover .doctor-showcase-card__media img,
.doctor-showcase-card:focus-within .doctor-showcase-card__media img {
  transform: scale(1.03);
}

.doctors-showcase__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.doctors-showcase__link {
  color: var(--sage-strong);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.doctors-showcase__link:hover {
  color: #4d7158;
}

.overview-shell {
  width: 98%;
  margin: 0 auto;
  padding: 58px 0 64px;
  border-radius: 44px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 26px 60px rgba(32, 40, 37, 0.06);
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 28px;
  align-items: start;
}

.overview-grid__intro h2 {
  margin: 18px 0;
  font-size: clamp(1.5rem, 3vw, 3.35rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 700;
}

.overview-grid__intro p:not(.eyebrow) {
  margin: 0;
  max-width: 37ch;
  color: var(--text-soft);
  font-size: 1.02rem;
}

.overview-grid__link,
.rating-platform-card a {
  display: inline-flex;
  align-items: center;
  color: var(--sage-strong);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.overview-grid__link {
  display: inline-flex;
  margin-top: 26px;
}

.overview-grid__link:hover,
.rating-platform-card a:hover,
.branch-list a:hover {
  color: #4d7158;
  transform: translateY(-1px);
}

.overview-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.overview-stat-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 26px;
  border-radius: 30px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8f4 100%);
}

.overview-stat-card--soft {
  background: linear-gradient(180deg, #edf4ea 0%, #f4f7f2 100%);
}

.overview-stat-card--dark {
  background: linear-gradient(180deg, #325342 0%, #264538 100%);
  border-color: rgba(38, 69, 56, 0.24);
  color: rgba(255, 255, 255, 0.96);
}

.overview-stat-card--accent {
  background:
    radial-gradient(circle at 85% 18%, rgba(191, 223, 170, 0.42), transparent 30%),
    linear-gradient(180deg, #eef6e9 0%, #f5f8f2 100%);
}

.overview-stat-card__tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--sage-strong);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.overview-stat-card--dark .overview-stat-card__tag {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.96);
}

.overview-stat-card__value {
  display: grid;
  gap: 12px;
  align-items: end;
}

.overview-stat-card__value strong {
  font-size: clamp(2.2rem, 4vw, 3.35rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.overview-stat-card__value span {
  max-width: 22ch;
  font-size: 1rem;
  line-height: 1.18;
}

.overview-stat-card--dark .overview-stat-card__value span {
  color: rgba(255, 255, 255, 0.82);
}

.overview-gallery {
  margin-top: 42px;
  padding-top: 38px;
}

.overview-gallery {
  padding-inline: 0;
}

.photo-marquee--shell {
  mask-image: none;
  overflow: hidden;
}

.photo-marquee--shell .photo-marquee__track {
  gap: 18px;
}

.photo-marquee--shell .photo-marquee__item {
  width: min(360px, 28vw);
  aspect-ratio: 1.08;
  border-radius: 26px;
  box-shadow: 0 12px 28px rgba(32, 40, 37, 0.05);
}

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

.ratings-platforms--overview {
  grid-template-columns: repeat(2, 270px);
  justify-content: start;
  align-items: start;
  align-self: start;
}

.rating-platform-card {
  padding: 26px 28px;
  border-radius: 30px;
  background: radial-gradient(circle at 10% 6%, rgba(223, 247, 202, 0.12), transparent 22%),
  radial-gradient(circle at 84% 10%, rgba(215, 241, 194, 0.1), transparent 23%),
  radial-gradient(circle at 66% 56%, rgba(243, 251, 232, 0.12), transparent 30%),
  linear-gradient(180deg, #fcfdfa 0%, #f8faf7 42%, #f4f7f3 100%);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.ratings-platforms--overview .rating-platform-card {
  width: 270px;
  height: fit-content;
  align-self: start;
  padding: 22px 24px;
}

.rating-platform-card:hover {
  transform: translateY(-3px);
  border-color: rgba(95, 133, 109, 0.28);
  box-shadow: 0 16px 26px rgba(95, 133, 109, 0.08);
}

.rating-platform-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.rating-platform-card__brand {
  display: inline-flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 42px;
  max-width: 100%;
}

.rating-platform-card__brand img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
}

.rating-platform-card__brand--prodoktorov {
  max-width: 188px;
}

.rating-platform-card__brand--yandex {
  max-width: 176px;
}

.rating-platform-card__brand--gis {
  max-width: 118px;
}

.rating-platform-card__score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--sage-strong);
  font-weight: 800;
}

.rating-platform-card p {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1.05rem;
}

.home-services-section__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding-inline: 10px 28px;
}

.home-services-section__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: #e7f790;
  color: #111827;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.home-services-section__intro {
  margin-top: 18px;
  margin-bottom: 40px;
}

.home-services-section__intro h2 {
  margin: 0;
  max-width: 14ch;
  color: #111827;
  font-size: clamp(2rem, 3.2vw, 2.95rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
  font-weight: 700;
}

.home-services-section__intro p {
  margin: 14px 0 0;
  max-width: 48ch;
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.6;
}

.home-services-section__list {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr))!important;
  gap: 16px;
  max-width: 760px;
}

.home-services-section__list-item {
  display: block;
  position: relative;
  isolation: isolate;
  min-height: 192px;
  border-radius: 32px;
  border: 1px solid rgba(223, 232, 209, 0.92);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 15px rgba(32, 40, 37, 0.05);
  color: #111827;
  text-decoration: none;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
  overflow: hidden;
}

.home-services-section__card-surface {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 24px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 252, 247, 0.98));
  transition: background 220ms ease;
}

.home-services-section__card-surface::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 152px;
  height: 152px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(231, 247, 144, 0.74) 0%, rgba(231, 247, 144, 0.38) 34%, rgba(231, 247, 144, 0.12) 48%, transparent 74%);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 260ms ease, transform 260ms ease;
  pointer-events: none;
}

.home-services-section__list-item:hover .home-services-section__card-surface {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbef 100%);
}

.home-services-section__list-item:hover .home-services-section__card-surface::before {
  opacity: 1;
  transform: scale(1);
}

.home-services-section__list-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #f7faf2;
  border: 1px solid rgba(223, 232, 209, 0.86);
  box-shadow: 0 6px 14px rgba(32, 40, 37, 0.04);
  transition: background 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.home-services-section__list-icon svg {
  width: 30px;
  height: 30px;
}

.home-services-section__list-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.home-services-section__list-arrow {
  top: 22px;
  right: 22px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  pointer-events: none;
}

.home-services-section__list-arrow::before {
  display: none;
}

.home-services-section__list-arrow::after {
  display: none;
}

.home-services-section__list-arrow-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background-color: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(223, 232, 209, 0.86);
  box-shadow: 0 6px 14px rgba(32, 40, 37, 0.05);
  transition: background 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.home-services-section__list-arrow-icon svg {
  position: relative;
  width: 18px;
  height: 18px;
  padding: 0;
  fill: none;
  stroke: #6e7a73;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-services-section__list-item strong {
  display: block;
  margin-top: auto;
  max-width: 12ch;
  padding-right: 52px;
  font-size: 1.12rem;
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 700;
  white-space: normal;
}

.home-services-section__list-item--more strong {
  max-width: none;
  padding-right: 56px;
  font-size: 1.4rem;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.home-services-section__list-item--more .home-services-section__card-surface {
  background: linear-gradient(135deg, #e8f88d 0%, #dff27a 100%);
  color: #111827;
}

.home-services-section__list-item--more .home-services-section__card-surface::before {
  top: -40px;
  right: -38px;
  opacity: 1;
  transform: scale(1);
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.44) 34%, transparent 70%);
}

.home-services-section__list-item--more small {
  display: block;
  margin-top: 12px;
  max-width: 18ch;
  color: #516151;
  font-size: 0.93rem;
  line-height: 1.4;
  font-weight: 700;
}

.home-services-section__list-item--more:hover .home-services-section__card-surface {
  background: linear-gradient(135deg, #eefcaa 0%, #e4f57f 100%);
  color: #111827;
}

.home-services-section__list-item:hover .home-services-section__list-icon {
  background: linear-gradient(135deg, #eaf8b0, #f3fad2);
  border-color: rgba(207, 226, 176, 0.96);
  transform: translateY(-1px);
}

.home-services-section__list-item:hover .home-services-section__list-arrow-icon {
  border-color: rgba(207, 226, 176, 0.96);
  background: #ffffff;
  transform: translateY(-1px);
}

.home-services-section__list-item:hover .home-services-section__list-arrow-icon svg {
  stroke: #31463a;
}

.home-services-section__list-item--more .home-services-section__list-arrow-icon {
  background: #ffffff;
  border-color: rgba(214, 228, 163, 0.92);
}

.home-services-section__list-item--more .home-services-section__list-arrow-icon svg {
  stroke: #31463a;
}

.home-services-section.is-visible .home-services-section__list-item:nth-child(1) { animation: cardCascadeIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both; }
.home-services-section.is-visible .home-services-section__list-item:nth-child(2) { animation: cardCascadeIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both; }
.home-services-section.is-visible .home-services-section__list-item:nth-child(3) { animation: cardCascadeIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both; }
.home-services-section.is-visible .home-services-section__list-item:nth-child(4) { animation: cardCascadeIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.26s both; }
.home-services-section.is-visible .home-services-section__list-item:nth-child(5) { animation: cardCascadeIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both; }
.home-services-section.is-visible .home-services-section__list-item:nth-child(6) { animation: cardCascadeIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.38s both; }
.home-services-section.is-visible .home-services-section__list-item:nth-child(7) { animation: cardCascadeIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.44s both; }
.home-services-section.is-visible .home-services-section__list-item:nth-child(8) { animation: cardCascadeIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both; }
.home-services-section.is-visible .home-services-section__list-item:nth-child(n+18) { animation: cardCascadeIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) 1.08s both; }

.overview-grid.is-visible .overview-stat-card:nth-child(1) { animation: cardCascadeIn 0.66s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both; }
.overview-grid.is-visible .overview-stat-card:nth-child(2) { animation: cardCascadeIn 0.66s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both; }
.overview-grid.is-visible .overview-stat-card:nth-child(3) { animation: cardCascadeIn 0.66s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both; }
.overview-grid.is-visible .overview-stat-card:nth-child(4) { animation: cardCascadeIn 0.66s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both; }

.overview-grid.is-visible .rating-platform-card:nth-child(1) { animation: cardCascadeIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both; }
.overview-grid.is-visible .rating-platform-card:nth-child(2) { animation: cardCascadeIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both; }
.overview-grid.is-visible .rating-platform-card:nth-child(3) { animation: cardCascadeIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both; }

body.is-ready .hero-photo-panel__shade {
  animation: shadePulse 8s ease-in-out 2.2s infinite;
}

body.is-ready .home-services-section::before {
  animation: driftGlow 14s ease-in-out 1s infinite alternate;
}

body.is-ready .home-services-section::after {
  animation: driftGlow 16s ease-in-out 2s infinite alternate-reverse;
}

.chief-note-section {
  padding-top: 18px;
  padding-bottom: 82px;
}

.chief-note {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(430px, 500px);
  align-items: stretch;
  gap: 34px;
  padding: 38px 40px;
  overflow: hidden;
  border-radius: 38px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 252, 249, 0.96));
  box-shadow: 0 24px 54px rgba(32, 40, 37, 0.06);
}

.chief-note::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 18%, rgba(229, 240, 219, 0.22), transparent 24%),
    linear-gradient(135deg, rgba(233, 240, 226, 0.12), transparent 42%);
}

.chief-note__content,
.chief-note__visual {
  position: relative;
  z-index: 1;
}

.chief-note__content {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  max-width: 600px;
}

.chief-note__content h2,
.faq-shell__intro h2,
.modal__dialog h2 {
  margin: 18px 0;
  color: #111827;
  font-size: clamp(1.5rem, 3vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 700;
}

.chief-note__content h2 {
  max-width: 17ch;
  margin-bottom: 15px;
  margin-top: 0;
  font-size: clamp(2.4rem, 3.5vw, 3rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.chief-note__quote {
  position: relative;
  margin: 0;
  display: grid;
  gap: 18px;
  max-width: 56ch;
  padding: 4px 0 0 28px;
}

.chief-note__quote::before {
  content: "“";
  position: absolute;
  left: 0;
  top: -1px;
  color: rgba(95, 133, 109, 0.2);
  font-size: 2.55rem;
  line-height: 1;
  font-weight: 800;
}

.chief-note__quote p {
  margin: 0;
  color: #5a665f;
  font-size: 1rem;
  line-height: 1.72;
}

.chief-note__quote-lead {
  color: #455149 !important;
  font-size: 1.06rem !important;
  line-height: 1.74 !important;
  letter-spacing: -0.018em;
}

.chief-note__footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}

.chief-note__signature {
  display: grid;
  gap: 6px;
  max-width: 420px;
}

.chief-note__signature strong {
  color: #111827;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.chief-note__signature span,
.modal__lead {
  color: var(--text-soft);
}

.chief-note__signature span {
  max-width: 34ch;
  font-size: 0.96rem;
  line-height: 1.5;
}

.chief-note__button {
  flex: 0 0 auto;
  min-width: 244px;
  min-height: 58px;
  padding-inline: 28px;
  font-size: 1rem;
  box-shadow: 0 18px 28px rgba(94, 133, 109, 0.18);
}

.chief-note__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.chief-note__visual::before {
  content: "";
  position: absolute;
  inset: 8% 8% 10% 12%;
  border-radius: 36px;
  background:
    radial-gradient(circle at 72% 24%, rgba(233, 244, 218, 0.52), transparent 34%),
    radial-gradient(circle at 26% 86%, rgba(214, 232, 206, 0.26), transparent 36%);
  filter: blur(10px);
  pointer-events: none;
}

.chief-note--page > .chief-note__visual{height: 640px}

.chief-note__photo {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at 84% 14%, rgba(236, 244, 229, 0.54), transparent 24%),
    #f4f0e8;
  box-shadow:
    0 22px 44px rgba(32, 40, 37, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.48);
}

.chief-note__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.chief-note.is-visible .chief-note__content .eyebrow {
  animation: heroElementIn 0.78s cubic-bezier(0.22, 1, 0.36, 1) 0.04s both;
}

.chief-note.is-visible .chief-note__content h2 {
  animation: heroElementIn 0.84s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.chief-note.is-visible .chief-note__quote {
  animation: heroElementIn 0.88s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
}

.chief-note.is-visible .chief-note__footer {
  animation: heroElementIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.38s both;
}

.chief-note.is-visible .chief-note__photo {
  animation: heroPhotoIn 0.92s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

.section--services {
  --services-shell-bg: #fbfcf8;
  position: relative;
  width: 98%;
  margin: 0 auto;
  padding: 42px 0 54px;
  overflow: hidden;
  border-radius: 44px;
  border: 1px solid rgba(34, 44, 40, 0.06);
  background: var(--services-shell-bg);
  box-shadow:
    0 26px 60px rgba(32, 40, 37, 0.06),
    0 0 110px rgba(195, 225, 168, 0.1);
}

.section--services::before,
.section--services::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.section--services::before {
  top: 0;
  left: 6%;
  width: 430px;
  height: 290px;
  background:
    radial-gradient(circle at 26% 36%, rgba(219, 242, 184, 0.42), rgba(219, 242, 184, 0.12) 34%, transparent 72%),
    radial-gradient(circle at 74% 46%, rgba(228, 244, 194, 0.28), rgba(228, 244, 194, 0.06) 42%, transparent 74%);
  filter: blur(62px);
}

.section--services::after {
  right: 4%;
  bottom: -96px;
  width: 560px;
  height: 320px;
  background:
    radial-gradient(circle at 50% 50%, rgba(182, 219, 145, 0.32), rgba(182, 219, 145, 0.1) 40%, transparent 76%),
    radial-gradient(circle at 28% 40%, rgba(229, 244, 199, 0.24), rgba(229, 244, 199, 0.01) 68%);
  filter: blur(80px);
}

.section--services .container {
  position: relative;
  z-index: 1;
}

.home-services-section.home-services-section--wide {
  position: relative;
  min-height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.home-services-section.home-services-section--wide::before,
.home-services-section.home-services-section--wide::after {
  content: "";
  position: absolute;
  z-index: 0;
  display: block;
  border-radius: 50%;
  pointer-events: none;
}

.home-services-section.home-services-section--wide::before {
  top: 92px;
  right: -2%;
  width: 420px;
  height: 280px;
  background:
    radial-gradient(circle at 50% 50%, rgba(229, 242, 205, 0.38), rgba(229, 242, 205, 0.1) 46%, transparent 76%);
  filter: blur(48px);
}

.home-services-section.home-services-section--wide::after {
  left: 26%;
  bottom: -10px;
  width: 440px;
  height: 220px;
  background:
    radial-gradient(circle at 50% 50%, rgba(211, 233, 182, 0.24), rgba(211, 233, 182, 0.06) 42%, transparent 74%);
  filter: blur(56px);
}

.home-services-section.home-services-section--wide .home-services-section__content {
  max-width: none;
}

.home-services-section__intro--wide {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.home-services-section__intro--wide > div {
  max-width: 760px;
}

.home-services-section__intro--wide h2 {
  max-width: 27ch;
  line-height: 1.2;
}

.home-services-section__cta {
  flex: 0 0 auto;
  min-width: 216px;
  box-shadow: 0 14px 26px rgba(17, 24, 39, 0.05);
}

.home-services-section__list--wide {
  max-width: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.home-services-section__list--wide .home-services-section__list-item {
  min-height: 175px;
}

.home-services-section__list--wide .home-services-section__list-item strong {
  max-width: 12ch;
}

.home-services-section__list-item--more strong,
.home-services-section__list-item--more small {
  max-width: 18ch;
}

.home-services-section__list--wide.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: none;
  padding-bottom: 30px;
}

.home-services-section__list--wide.services-grid .card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.25rem;
  height: 11rem;
  min-height: 11rem;
  padding: 1.4rem;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid #f1f5f9;
  background-color: #ffffff;
  color: #1e293b;
  text-decoration: none;
  transition: all 0.3s ease;
}

.home-services-section__list--wide.services-grid .card:hover {
  transform: none;
  border-color: #cbea98;
}

.home-services-section__list--wide.services-grid .card-bg-circle {
  position: absolute;
  top: -3rem;
  right: -3rem;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background-color: #f2f9ec;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.home-services-section__list--wide.services-grid .card:hover .card-bg-circle {
  opacity: 1;
}

.home-services-section__list--wide.services-grid .card-top {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.home-services-section__list--wide.services-grid .card-icon-wrapper {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background-color: #f8fafc;
  color: #2e4a3d;
  transition: background-color 0.3s ease;
}

.home-services-section__list--wide.services-grid .card-icon-wrapper svg,
.home-services-section__list--wide.services-grid .service-card-icon-image {
  width: 1.6rem;
  height: 1.6rem;
}

.home-services-section__list--wide.services-grid .service-card-icon-image {
  object-fit: contain;
}

.home-services-section__list--wide.services-grid .card:hover .card-icon-wrapper {
  background-color: #e6f5d8;
}

.home-services-section__list--wide.services-grid .card-arrow {
  color: #cbd5e1;
  transition: color 0.3s ease;
}

.home-services-section__list--wide.services-grid .card:hover .card-arrow {
  color: #2e4a3d;
}

.home-services-section__list--wide.services-grid .card-title {
  position: relative;
  z-index: 10;
  margin: 0;
  padding-right: 1rem;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.25;
  color: #1e293b;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.home-services-section__list--wide.services-grid .card-title--compact {
  font-size: 0.96rem;
  line-height: 1.22;
}

.home-services-section__list--wide.services-grid .card-highlight {
  background-color: #e6f5d8;
  border-color: #e6f5d8;
}

.home-services-section__list--wide.services-grid .card-highlight:hover {
  border-color: #cbea98;
}

.home-services-section__list--wide.services-grid .card-highlight .card-bg-circle {
  top: -10px;
  right: -10px;
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.5);
  width: 7rem;
  height: 7rem;
}

.home-services-section__list--wide.services-grid .card-highlight:hover .card-bg-circle {
  transform: scale(1.1);
}

.home-services-section__list--wide.services-grid .card-arrow-wrapper {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #ffffff;
  color: #2e4a3d;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.home-services-section__list--wide.services-grid .card-highlight:hover .card-arrow-wrapper {
  transform: scale(1.1);
}

.home-services-section__list--wide.services-grid .card-highlight .card-arrow {
  color: #2e4a3d;
}

.all-service{
  position: relative;
  bottom: 50px;
}

.home-services-section__list--wide.services-grid .card-highlight .card-title {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 0;
}

.home-services-section__list--wide.services-grid .card-subtitle {
  position: relative;
  z-index: 10;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  color: #64748b;
}

@media (min-width: 640px) {
  .home-services-section__list--wide.services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .home-services-section__list--wide.services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .home-services-section__list--wide.services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.home-services-section.is-visible .home-services-section__list-item:nth-child(9) { animation: cardCascadeIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.56s both; }
.home-services-section.is-visible .home-services-section__list-item:nth-child(10) { animation: cardCascadeIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.62s both; }
.home-services-section.is-visible .home-services-section__list-item:nth-child(11) { animation: cardCascadeIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.68s both; }
.home-services-section.is-visible .home-services-section__list-item:nth-child(12) { animation: cardCascadeIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.74s both; }
.home-services-section.is-visible .home-services-section__list-item:nth-child(13) { animation: cardCascadeIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.8s both; }
.home-services-section.is-visible .home-services-section__list-item:nth-child(14) { animation: cardCascadeIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.86s both; }
.home-services-section.is-visible .home-services-section__list-item:nth-child(15) { animation: cardCascadeIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.92s both; }
.home-services-section.is-visible .home-services-section__list-item:nth-child(16) { animation: cardCascadeIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.98s both; }
.home-services-section.is-visible .home-services-section__list-item:nth-child(17) { animation: cardCascadeIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) 1.04s both; }
/* 🔴 ---------- СТИЛИ ДЛЯ ЭКРАНА УСЛУГ ---------- */

.overview-trust-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.overview-trust-card {
  min-height: 220px;
  display: grid;
  align-content: flex-start;
  gap: 14px;
  padding: 24px 26px;
  border-radius: 30px;
  border: 1px solid rgba(34, 44, 40, 0.06);
  background: linear-gradient(180deg, #ffffff 0%, #f7f9f5 100%);
  box-shadow: 0 14px 30px rgba(32, 40, 37, 0.04);
}

.overview-trust-card__tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(239, 244, 233, 0.94);
  color: var(--sage-strong);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.overview-trust-card h3 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.overview-trust-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.55;
}

.overview-trust-card--soft {
  background: linear-gradient(180deg, #eff5eb 0%, #fbfcfa 100%);
}

.overview-trust-card--dark {
  background: linear-gradient(180deg, #315242 0%, #264438 100%);
  color: rgba(255, 255, 255, 0.96);
}

.overview-trust-card--dark .overview-trust-card__tag {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.96);
}

.overview-trust-card--dark p {
  color: rgba(255, 255, 255, 0.8);
}

.overview-trust-card--accent {
  background:
    radial-gradient(circle at 88% 18%, rgba(195, 225, 168, 0.46), transparent 30%),
    linear-gradient(180deg, #f6faf2 0%, #edf4e7 100%);
}

.overview-grid.is-visible .overview-trust-card:nth-child(1) { animation: cardCascadeIn 0.66s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both; }
.overview-grid.is-visible .overview-trust-card:nth-child(2) { animation: cardCascadeIn 0.66s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both; }
.overview-grid.is-visible .overview-trust-card:nth-child(3) { animation: cardCascadeIn 0.66s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both; }
.overview-grid.is-visible .overview-trust-card:nth-child(4) { animation: cardCascadeIn 0.66s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both; }

.faq-section {
  padding-top: 26px;
  padding-bottom: 26px;
}

.faq-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1fr);
  gap: 34px;
  padding: 38px;
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 24px 54px rgba(32, 40, 37, 0.05);
}

.faq-shell__intro p:last-child {
  margin: 0;
  color: var(--text-soft);
}

.faq-list {
  display: grid;
  gap: 14px;
  align-content: start;
}

.faq-item {
  overflow: hidden;
  border: 1px solid rgba(34, 44, 40, 0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfa 100%);
  box-shadow: 0 12px 24px rgba(32, 40, 37, 0.04);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(32, 40, 37, 0.06);
}

.faq-item__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border: 0;
  background: transparent;
  color: #111827;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
}

.faq-item__toggle:hover .faq-item__icon {
  background: linear-gradient(135deg, rgba(231, 247, 144, 1), rgba(235, 245, 214, 0.94));
  color: #4d7158;
  transform: scale(1.04);
}

.faq-item__icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(231, 247, 144, 0.9), rgba(236, 244, 225, 0.9));
  color: var(--sage-strong);
  font-size: 1.28rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__content {
  padding: 0 22px 22px;
}

.faq-item__content p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.62;
}

.faq-shell.is-visible .faq-item:nth-child(1) { animation: cardCascadeIn 0.58s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both; }
.faq-shell.is-visible .faq-item:nth-child(2) { animation: cardCascadeIn 0.58s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both; }
.faq-shell.is-visible .faq-item:nth-child(3) { animation: cardCascadeIn 0.58s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both; }

body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 24, 21, 0.36);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 580px);
  padding: 34px;
  border-radius: 32px;
  border: 1px solid rgba(34, 44, 40, 0.08);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 32px 80px rgba(17, 24, 39, 0.18);
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.modal.is-open .modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(34, 44, 40, 0.08);
  border-radius: 50%;
  background: #fff;
  color: #111827;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.modal__close:hover {
  transform: translateY(-2px);
  border-color: rgba(95, 133, 109, 0.18);
  background: linear-gradient(135deg, rgba(214, 244, 186, 0.88), rgba(255, 255, 255, 0.98));
}

.modal__lead {
  margin: 0 0 20px;
  max-width: 48ch;
  line-height: 1.6;
}

.modal-form {
  display: grid;
  gap: 16px;
}

.modal-form label {
  display: grid;
  gap: 8px;
}

.modal-form span {
  font-weight: 700;
}

.modal-form input,
.modal-form textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(248, 250, 247, 0.94);
  color: var(--text);
}

.modal-form input {
  min-height: 58px;
  padding: 0 18px;
}

.modal-form textarea {
  min-height: 140px;
  padding: 16px 18px;
  resize: vertical;
}

.modal-form input:focus,
.modal-form textarea:focus {
  outline: none;
  border-color: rgba(95, 133, 109, 0.34);
  box-shadow: 0 0 0 4px rgba(214, 244, 186, 0.28);
}

/* 🟢 ---------- АДАПТИВ: ОСНОВНЫЕ ЭКРАНЫ ---------- */
@media (max-width: 1200px) {
  .chief-note {
    grid-template-columns: 1fr;
  }

  .chief-note__footer {
    align-items: flex-start;
  }

  .chief-note__visual {
    min-height: auto;
    justify-content: center;
  }

  .chief-note__photo {
    width: min(100%, 560px);
    height: 560px;
  }

  .hero-layout {
    gap: 42px;
  }

  .hero-content {
    padding-inline: 40px;
  }

  .hero-title {
    font-size: clamp(2.55rem, 4.3vw, 3.55rem);
  }

  .hero-insights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-insights--without-promotions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-services-section {
    min-height: auto;
  }

  .home-services-section__intro--wide {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-services-section__list--wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .hero {
    padding: 42px 0 30px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-content {
    min-height: auto;
    padding: 38px 34px 40px;
  }

  .hero-visual {
    max-width: 560px;
    justify-self: center;
  }

  .hero-social-pill--visual {
    display: none;
  }

  .hero-social-pill--mobile {
    position: static;
    display: flex;
    flex-direction: row;
    width: fit-content;
    margin: 18px auto 0!important;
    transform: none;
    opacity: 1;
  }

  .hero-social-pill--mobile .hero-social-pill__link {
    opacity: 1;
  }

  .hero-social-pill {
    position: static;
    flex-direction: row;
    width: fit-content;
    margin: 0 auto 18px;
    transform: none;
  }

  .hero-visual.is-visible .hero-social-pill {
    animation: heroElementIn 0.78s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
  }

  .hero-insights {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .hero-promo-slider__head .hero-insight__note {
    max-width: none;
  }

  .doctors-showcase {
    grid-auto-columns: 290px;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .overview-trust-list,
  .ratings-platforms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-shell {
    grid-template-columns: 1fr;
  }

  .overview-shell {
    padding: 44px 0 48px;
    border-radius: 36px;
  }
}

@media (max-width: 640px) {
  p{font-size: 14px!important;}

  .heading-inline {
    gap: 0.12em 0.16em;
  }

  .heading-outline {
    border-width: 3px;
    padding: 0.14em 0.34em 0.18em;
  }

  .cutout-wrapper::after{bottom: -23px;}

  .chief-note-section {
    padding-top: 6px;
    padding-bottom: 58px;
  }

  .chief-note {
    gap: 24px;
    padding: 22px;
    border-radius: 28px;
  }

  .home-services-section__list--wide.services-grid .card-title{font-size: 0.9rem}
  .home-services-section__list--wide.services-grid .card-highlight .card-title{font-size: 0.9rem}

  .chief-note--page > .chief-note__visual{height: auto!important;}

  .chief-note__content h2,
  .faq-shell__intro h2,
  .modal__dialog h2 {
    font-size: clamp(1.84rem, 8.4vw, 2.5rem);
  }

  .chief-note__content h2 {
    max-width: none;
    margin: 22px 0;
    font-size: clamp(1.8rem, 6.7vw, 2.65rem);
    line-height: 0.98;
  }

  .chief-note--page .chief-note__content h2 {
    font-size: clamp(1.66rem, 5.95vw, 2.24rem);
  }

  .chief-note--page .chief-note__heading--desktop {
    display: none;
  }

  .chief-note--page .chief-note__heading--mobile {
    display: inline-flex!important;
  }

  .chief-note--page .chief-note__inline-line {
    gap: 0.14em;
  }

  .chief-note__quote {
    gap: 14px;
    padding-left: 22px;
  }

  .chief-note__quote::before {
    top: -4px;
    font-size: 2.35rem;
  }

  .chief-note__quote p {
    font-size: 0.96rem;
    line-height: 1.68;
  }

  .chief-note__quote-lead {
    font-size: 14px !important;
    line-height: 1.72 !important;
  }

  .chief-note__footer {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 22px;
  }

  .chief-note__button {
    width: 100%;
  }

  .chief-note__photo {
    height: 360px;
    border-radius: 24px;
  }

  .hero {
    padding: 0 0 24px;
  }

  .hero-content {
    padding: 28px 22px 30px;
    border-radius: 28px;
    order: 1;
  }

  .hero-title {
    font-size: clamp(2.3rem, 10vw, 3.1rem);
    line-height: 1;
  }

  .hero-subtitle {
    max-width: none;
    margin-bottom: 28px;
    font-size: 0.95rem;
  }

  .hero-buttons {
    gap: 12px;
  }

  .hero-button {
    width: 100%;
    min-height: 52px;
  }

  .hero-photo-panel {
    min-height: 420px;
    border-radius: 30px;
    height: auto;
  }

  .hero-photo {
    height: 420px;
  }

  .hero-rating-widget {
    --cutout-bg: #f8fdf2;
    top: -1px;
    right: -1px;
    padding: 0 0 16px 16px;
    border-bottom-left-radius: 28px;
  }

  .hero-rating-widget::before,
  .hero-rating-widget::after {
    display: block;
  }

  .hero-rating-widget__surface {
    gap: 10px;
    padding: 12px 16px 12px 12px;
    border-radius: 24px;
  }

  .hero-rating-widget__pin {
    width: 38px;
    height: 38px;
  }

  .hero-rating-widget__score strong {
    font-size: 1.45rem;
  }

  .hero-insight {
    min-height: auto;
    padding: 22px;
    border-radius: 24px;
  }

  .hero-specialists__header {
    flex-direction: row;
    align-items: flex-start;
  }

  .hero-promo-slider__head {
    flex-direction: row;
    align-items: flex-start;
  }

  .hero-specialists__card {
    flex-basis: 72px;
    height: 82px;
  }

  .hero-specialists__card--featured {
    flex-basis: 82px;
    height: 100px;
  }

  .hero-promo-slide {
    min-height: 170px;
  }

  .section--services {
    padding: 24px 22px 28px;
    border-radius: 30px;
  }

  .home-services-section.home-services-section--wide {
    padding: 0;
    border-radius: 0;
  }

  .home-services-section__badge {
    min-height: 34px;
    padding-inline: 14px;
    font-size: 0.88rem;
  }

  .home-services-section__intro {
    margin-bottom: 40px;
  }

  .home-services-section__intro h2 {
    max-width: none;
    font-size: clamp(1.8rem, 6.7vw, 2.45rem);
  }

  .home-services-section__list {
    grid-template-columns: repeat(2, minmax(0, 1fr))!important;
  }

  .home-services-section__list--wide.services-grid .card-subtitle{display: none}
  .all-service{position: relative!important;bottom: 50px}
  .home-services-section__list--wide.services-grid .card-highlight .card-title{margin: revert;}
  .card-bg-circle{display: none}

  .home-services-section__list-item {
    min-height: 166px;
    border-radius: 26px;
  }

  .home-services-section__card-surface {
    min-height: 166px;
    padding: 18px;
  }

  .home-services-section__card-surface::before {
    top: -46px;
    right: -46px;
    width: 128px;
    height: 128px;
  }

  .home-services-section__list-arrow {
    top: 18px;
    right: 18px;
  }

  .home-services-section__list-arrow-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .home-services-section__list-arrow-icon svg {
    width: 16px;
    height: 16px;
    padding: 0;
  }

  .home-services-section__list-item strong {
    max-width: none;
    padding-right: 44px;
    font-size: 0.98rem;
  }

  .home-services-section__list-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
  }

  .home-services-section__list-icon svg,
  .home-services-section__list-icon img {
    width: 26px;
    height: 26px;
  }

  .home-services-section__list-item--more strong {
    font-size: 1.16rem;
  }

  .home-services-section__list-item--more small {
    font-size: 0.82rem;
  }

  .doctors-showcase {
    grid-auto-columns: minmax(276px, 84vw);
    gap: 14px;
    padding: 12px 28px 20px 0;
    margin: 0;
    scroll-padding-inline: 0 28px;
  }

  .doctors-showcase-shell {
    padding: 22px 0 28px 6px;
    margin: -22px -30px -28px -6px;
  }

  .doctor-showcase-card {
    border-radius: 26px;
    min-height: 380px;
  }

  .doctor-showcase-card__media {
    min-height: 380px;
    border-radius: inherit;
  }

  .doctor-showcase-card__experience {
    left: 12px;
    top: 12px;
    min-height: 34px;
    padding-inline: 14px;
    font-size: 0.84rem;
  }

  .doctor-showcase-card__body {
    right: 12px;
    bottom: 12px;
    left: 12px;
    gap: 6px;
    min-height: 94px;
    padding: 16px 52px 16px 16px;
    border-radius: 18px;
  }

  .doctor-showcase-card__body h3 {
    font-size: 1.02rem;
  }

  .doctor-showcase-card__body p {
    font-size: 0.88rem;
    line-height: 1.36;
  }

  .doctor-showcase-card__arrow {
    right: 22px;
    bottom: 22px;
    width: 30px;
    height: 30px;
    border-radius: 12px;
    font-size: 0.94rem;
  }

  .doctors-showcase__footer {
    justify-content: flex-start;
  }

  .section--shell {
    padding-top: 8px;
    padding-bottom: 84px;
  }

  .overview-shell {
    padding: 34px 22px 38px;
    border-radius: 30px;
  }

  .overview-trust-list,
  .ratings-platforms {
    grid-template-columns: 1fr;
  }

  .ratings-platforms--overview .rating-platform-card {
    width: 100%;
  }

  .overview-stat-card,
  .overview-trust-card,
  .rating-platform-card {
    min-height: auto;
    border-radius: 24px;
  }

  .overview-gallery {
    margin-top: 28px;
    padding-top: 28px;
  }

  .photo-marquee--shell .photo-marquee__item {
    width: min(260px, 70vw);
    border-radius: 22px;
  }

  .rating-platform-card__brand {
    font-size: 1.7rem;
  }

  .faq-shell {
    padding: 24px 22px;
    border-radius: 28px;
  }

  .faq-item {
    border-radius: 20px;
  }

  .faq-item__toggle {
    padding: 18px;
    font-size: 0.96rem;
  }

  .faq-item__content {
    padding: 0 18px 18px;
  }

  .modal {
    padding: 16px;
  }

  .modal__dialog {
    padding: 26px 20px 22px;
    border-radius: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .reveal,
  .hero-title span,
  .hero-subtitle,
  .hero-buttons .hero-button,
  .hero-social-pill,
  .hero-photo-panel,
  .hero-rating-widget,
  .hero-tag,
  .hero-specialists__card,
  .hero-location-list__item,
  .home-services-section__list-item,
  .overview-stats .overview-stat-card,
  .ratings-platforms .rating-platform-card {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
/* 🔴 ---------- АДАПТИВ: ОСНОВНЫЕ ЭКРАНЫ ---------- */

.doctors-directory-hero {
  padding-top: 44px;
  padding-bottom: 26px;
}

.prices-page {
  padding-top: 44px;
  padding-bottom: 36px;
}

.prices-page__shell {
  padding: 28px 0 8px;
}

.prices-page__title {
  margin: 0 0 34px;
  font-size: clamp(2.3rem, 4.4vw, 3.9rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 700;
}

.prices-files {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 860px;
}

.prices-file-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  min-height: 110px;
  padding: 24px 24px 24px 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 36px rgba(32, 40, 37, 0.05);
}

.prices-file-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 40px rgba(32, 40, 37, 0.08);
}

.prices-file-card__icon {
  width: 52px;
  height: 52px;
  color: #989eaf;
}

.prices-file-card__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prices-file-card__title {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.legal-pdf{display: flex; flex-flow: column}

.prices-file-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #709f81;
  font-weight: 700;
  line-height: 1;
  border-bottom: 1px solid currentColor;
  width: min-content;
}

.prices-file-card__link:hover {
  color: #1d52dc;
}

.prices-page__notes {
  display: grid;
  gap: 8px;
  margin: 40px 0 0;
}

.prices-page__note {
  margin: 0;
  color: #949cab;
  font-size: 0.98rem;
  line-height: 1.55;
}

.doctors-directory-hero__content,
.doctors-filter-card,
.doctor-services-card,
.doctor-profile-card {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 247, 0.96) 100%);
  box-shadow: 0 24px 54px rgba(32, 40, 37, 0.05);
}

.doctors-directory-hero__content {
  padding: 38px 40px 42px;
}

.doctors-directory-hero__content::before,
.doctors-filter-card::before,
.doctor-profile-card::before,
.doctor-services-card::before {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.doctors-directory-hero__content::before {
  top: -72px;
  right: -46px;
  width: 228px;
  height: 228px;
  background: radial-gradient(circle, rgba(216, 239, 189, 0.42) 0%, rgba(216, 239, 189, 0.08) 52%, transparent 74%);
  filter: blur(14px);
}

.doctors-directory-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.doctors-directory-hero__stat {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 20px 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(244, 248, 241, 0.96) 0%, rgba(255, 255, 255, 0.94) 100%);
  border: 1px solid rgba(34, 44, 40, 0.06);
}

.doctors-directory-hero__stat strong {
  font-size: 1.16rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.doctors-directory-hero__stat span {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.doctors-directory-section,
.doctor-linked-services {
  padding-top: 24px !important;
  padding-bottom: 24px !important;
}

.doctors-filter-card,
.doctor-services-card {
  padding: 34px;
}

.doctors-filter-card::before {
  top: -52px;
  right: -24px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(223, 241, 203, 0.34) 0%, rgba(223, 241, 203, 0.08) 56%, transparent 76%);
  filter: blur(16px);
}

.doctors-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.doctors-filter-tabs button,
.doctor-profile-tabs button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.doctors-filter-tabs button {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(241, 245, 239, 0.94);
  color: #526159;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.doctors-filter-tabs button:hover,
.doctors-filter-tabs button.is-active {
  background: linear-gradient(135deg, rgba(214, 244, 186, 0.92), rgba(241, 250, 229, 0.96));
  color: #284235;
  box-shadow: 0 12px 24px rgba(32, 40, 37, 0.06);
}

.doctors-directory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.doctor-showcase-card--directory[hidden],
.doctor-showcase-card--directory.is-hidden {
  display: none !important;
}

.doctor-showcase-card--directory {
  min-height: 420px;
}

.doctor-showcase-card--directory .doctor-showcase-card__media {
  min-height: 420px;
}

.doctor-showcase-card--directory .doctor-showcase-card__media img {
  object-position: center 14%;
  transition: transform 280ms ease;
}

.doctor-showcase-card--directory .doctor-showcase-card__body {
  min-height: 112px;
  padding-right: 58px;
}

.doctor-profile-page {
  padding-top: 40px;
  padding-bottom: 24px;
}

.doctor-profile-card {
  display: grid;
  grid-template-columns: minmax(290px, 460px) minmax(0, 1fr);
  gap: 40px;
  padding: 40px;
  align-items: start;
}

.doctor-profile-card::before {
  right: -62px;
  top: -48px;
  width: 248px;
  height: 248px;
  background: radial-gradient(circle, rgba(223, 241, 203, 0.42) 0%, rgba(223, 241, 203, 0.08) 56%, transparent 76%);
  filter: blur(16px);
}

.doctor-profile-media,
.doctor-profile-content {
  position: relative;
  z-index: 1;
}

.doctor-profile-media {
  align-self: start;
}

.doctor-profile-photo {
  margin: 0;
  height: auto;
  min-height: 460px;
  aspect-ratio: 0.8;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(180deg, #eef3eb 0%, #e6ece4 100%);
}

.doctor-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.doctor-profile-tags--mobile {
  display: none;
}

.doctor-profile-tag {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(241, 245, 239, 0.96);
  color: #4f5f56;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.doctor-profile-tag:first-child {
  background: linear-gradient(135deg, rgba(214, 244, 186, 0.96), rgba(241, 250, 229, 0.98));
  color: #2e4938;
}

.doctor-profile-title {
  margin: 0 0 12px;
  font-size: clamp(2.7rem, 4.8vw, 4rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.doctor-profile-subtitle {
  margin: 0 0 28px;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.4;
}

.doctor-profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(34, 44, 40, 0.09);
}

.doctor-profile-tabs button {
  position: relative;
  padding: 0 0 10px;
  color: #90a096;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.doctor-profile-tabs button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -15px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: #b7ea58;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.doctor-profile-tabs button.is-active,
.doctor-profile-tabs button:hover {
  color: var(--text);
}

.doctor-profile-tabs button.is-active::after {
  transform: scaleX(1);
}

.doctor-profile-panel {
  padding-top: 22px;
  min-height: 234px;
}

.doctor-profile-copy {
  display: grid;
  gap: 18px;
  max-width: 64ch;
}

.doctor-profile-copy p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.doctor-education-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 64ch;
}

.doctor-education-list li {
  position: relative;
  padding-left: 24px;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.58;
}

.doctor-education-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #b7ea58;
  box-shadow: 0 0 0 6px rgba(183, 234, 88, 0.14);
}

.doctor-education-list strong {
  display: inline-block;
  margin-right: 10px;
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.doctor-education-list span {
  color: var(--text-soft);
}

.doctor-certificates {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(34, 44, 40, 0.09);
}

.doctor-certificates h3 {
  margin: 0 0 14px;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.doctor-certificates__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.doctor-certificates__list button {
  width: 68px;
  height: 92px;
  padding: 6px;
  border: 1px solid rgba(34, 44, 40, 0.09);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(32, 40, 37, 0.06);
  cursor: pointer;
}

.doctor-certificates__list button:hover {
  transform: translateY(-2px);
  border-color: rgba(134, 173, 148, 0.22);
}

.doctor-certificates__list img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.doctor-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.doctor-profile-actions .hero-button {
  min-width: 220px;
}

.doctor-services-card::before {
  bottom: -88px;
  right: -24px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(214, 244, 186, 0.28) 0%, rgba(214, 244, 186, 0.06) 58%, transparent 76%);
  filter: blur(18px);
}

.doctor-services-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0;
}

.doctor-services-list .home-services-section__list-item {
  opacity: 1;
  transform: none;
  animation: none;
}

.certificate-lightbox {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 24px;
}

.certificate-lightbox[hidden] {
  display: none;
}

.certificate-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 25, 22, 0.58);
  backdrop-filter: blur(6px);
}

.certificate-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 92vw);
  padding: 22px 22px 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 60px rgba(20, 29, 25, 0.22);
}

.certificate-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(240, 244, 238, 0.98);
  color: #4e5e55;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.certificate-lightbox__frame {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: 12px;
  align-items: center;
}

.certificate-lightbox__image-wrap {
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f5f8f2 0%, #fbfcfa 100%);
}

.certificate-lightbox__image {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
}

.certificate-lightbox__nav {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: rgba(240, 244, 238, 0.98);
  color: #526159;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.certificate-lightbox__caption {
  margin: 16px 0 0;
  text-align: center;
  color: var(--text-soft);
}

.info-page,
.legal-section,
.about-dynasty-showcase-section,
.about-dynasty-section,
.about-principles-section,
.about-team-section,
.chief-message-section,
.chief-form-section,
.vacancies-values-section,
.vacancies-list-section,
.career-form-section {
  padding-top: 24px !important;
  padding-bottom: 24px !important;
}

.info-page {
  padding-top: 44px !important;
}

.page-hero-card,
.dynasty-card,
.about-team-card,
.legal-card,
.chief-form-card,
.vacancies-values-card,
.career-form-card,
.about-principle-card,
.vacancy-card {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 247, 0.96) 100%);
  box-shadow: 0 24px 54px rgba(32, 40, 37, 0.05);
}

.page-hero-card,
.dynasty-card,
.about-team-card,
.legal-card,
.chief-form-card,
.vacancies-values-card,
.career-form-card {
  padding: 38px 40px 42px;
}

.page-hero-card::before,
.dynasty-card::before,
.about-team-card::before,
.legal-card::before,
.chief-form-card::before,
.vacancies-values-card::before,
.career-form-card::before {
  content: "";
  position: absolute;
  top: -72px;
  right: -44px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 239, 189, 0.42) 0%, rgba(216, 239, 189, 0.08) 52%, transparent 74%);
  filter: blur(16px);
  pointer-events: none;
}

.page-hero-card > *,
.dynasty-card > *,
.about-team-card > *,
.legal-card > *,
.chief-form-card > *,
.vacancies-values-card > *,
.career-form-card > * {
  position: relative;
  z-index: 1;
}

.page-hero-card__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.84fr);
  gap: 32px;
  align-items: end;
}

.page-hero-card__title {
  margin: 0;
  font-size: clamp(2.5rem, 4.9vw, 4.2rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.page-hero-card__lead {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.06rem;
  line-height: 1.65;
}

.page-hero-card__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.page-hero-card__facts article {
  display: grid;
  gap: 8px;
  min-height: 116px;
  padding: 20px 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(244, 248, 241, 0.96) 0%, rgba(255, 255, 255, 0.94) 100%);
  border: 1px solid rgba(34, 44, 40, 0.06);
}

.page-hero-card__facts strong {
  font-size: 1.28rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.page-hero-card__facts span {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

.inner-page-hero {
  padding-bottom: 22px;
}

.inner-page-hero .services-page-hero__content {
  padding: 36px 40px 40px;
}

.inner-page-hero .services-page-hero__title {
  max-width: none;
  margin-bottom: 18px;
}

.inner-page-hero .services-page-hero__lead {
  max-width: 62ch;
}

.about-hero .services-page-hero__title {
  max-width: none;
}

.about-hero .heading-outline {
  margin-top: 0.08em;
}

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

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.smooth-transition {
  transition:
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.3s ease;
  will-change: transform, opacity;
}

.about-dynasty-bento__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.about-dynasty-bento__card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 44px rgba(32, 40, 37, 0.05);
}

.about-dynasty-bento__media {
  position: relative;
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  margin: 0 auto;
}

.about-dynasty-bento__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 4px solid rgba(248, 250, 247, 0.96);
  border-radius: 999px;
  box-shadow: 0 14px 26px rgba(32, 40, 37, 0.08);
}

.about-dynasty-bento__badge {
  position: absolute;
  right: -6px;
  bottom: -6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #e8f5e9;
  color: #4b7e5e;
  font-size: 0.8rem;
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(32, 40, 37, 0.08);
}

.about-dynasty-bento__body {
  display: grid;
  gap: 10px;
  text-align: center;
}

.about-dynasty-bento__name {
  margin: 0;
  font-size: 1.32rem;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.about-dynasty-bento__role {
  margin: 0;
  color: #5ea166;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}

.about-dynasty-bento__desc {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.7;
}

.about-dynasty-bento__card--wide {
  gap: 24px;
}

.about-dynasty-bento__card--wide .about-dynasty-bento__media {
  width: 112px;
  height: 112px;
}

.about-dynasty-bento__card--wide .about-dynasty-bento__badge {
  width: 42px;
  height: 42px;
  font-size: 0.92rem;
}

.about-dynasty-bento__card--wide .about-dynasty-bento__body {
  text-align: center;
}

.about-dynasty-bento__card--wide .about-dynasty-bento__name {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
}

.about-dynasty-bento__card--wide .about-dynasty-bento__role {
  font-size: 1rem;
}

.about-ref-timeline-card {
  position: relative;
  overflow: hidden;
  padding: 24px 20px;
  border: 1px solid rgba(34, 44, 40, 0.06);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 247, 0.96) 100%);
  box-shadow: 0 24px 54px rgba(32, 40, 37, 0.05);
}

.about-ref-timeline {
  display: grid;
  gap: 28px;
}

.about-ref-timeline__years-shell {
  position: relative;
  display: flex;
  align-items: center;
  height: 128px;
}

.about-ref-timeline__line {
  display: none;
}

.about-ref-timeline__mobile-years {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  align-items: center;
  padding-inline: 50%;
  scroll-snap-type: x mandatory;
}

.about-ref-timeline__desktop-years {
  display: none;
}

.about-ref-timeline__mobile-year {
  flex: 0 0 auto;
  padding: 0 32px;
  border: 0;
  background: transparent;
  color: #c4cbc6;
  font-size: clamp(2.8rem, 14vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  transform: scale(0.9);
  cursor: pointer;
  scroll-snap-align: center;
  transition: transform 0.3s ease, color 0.3s ease;
}

.about-ref-timeline__mobile-year.is-active {
  color: var(--text);
  transform: scale(1.08);
}

.about-ref-timeline__content-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 500px;
}

.about-ref-timeline__content-container {
  position: relative;
  flex-grow: 1;
  min-height: 436px;
}

.about-ref-timeline__content-item {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.about-ref-timeline__content-text {
  max-width: 42rem;
  flex-shrink: 0;
}

.about-ref-timeline__content-tag {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: #e8f5e9;
  color: #4f7f60;
  font-size: 0.88rem;
  font-weight: 800;
}

.about-ref-timeline__content-title {
  margin: 20px 0 14px;
  font-size: clamp(2rem, 6.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.about-ref-timeline__content-desc {
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.72;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.about-ref-timeline__visual-shell {
  position: relative;
  width: 100%;
  max-width: 52rem;
  margin-top: auto;
}

.about-ref-timeline__visual-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.about-ref-timeline__visual-backdrop {
  position: absolute;
  top: 16px;
  right: -16px;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  background: rgba(240, 253, 244, 0.92);
  z-index: 0;
  transition: transform 0.5s ease;
}

.about-ref-timeline__visual-frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 32px;
  background: #eef3eb;
  box-shadow: 0 20px 40px rgba(32, 40, 37, 0.08);
}

.about-ref-timeline__visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.about-ref-timeline__content-item.is-active .about-ref-timeline__visual-frame img {
  transform: scale(1.03);
}

.about-ref-timeline__caption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-right: 16px;
  padding-left: 2px;
  color: #86918b;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
  opacity: 0.85;
}

.about-ref-timeline__caption-line {
  display: none;
  width: 32px;
  height: 2px;
  border-radius: 999px;
  background: rgba(34, 44, 40, 0.12);
}

.about-ref-timeline__caption svg {
  flex: 0 0 auto;
}

.about-ref-timeline__caption p {
  margin: 0;
}

.about-ref-timeline__controls {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 24px;
  flex-shrink: 0;
}

.about-ref-timeline__control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(34, 44, 40, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  color: #5d6963;
  box-shadow: 0 12px 24px rgba(32, 40, 37, 0.06);
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.about-ref-timeline__control:hover:not(:disabled) {
  background: rgba(250, 251, 249, 0.98);
}

.about-ref-timeline__control--accent:hover:not(:disabled) {
  background: #e8f5e9;
  color: #4f7f60;
  border-color: rgba(95, 133, 109, 0.18);
}

.about-ref-timeline__control:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.about-ref-timeline__desktop-year {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 120px;
  padding-right: 64px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.about-ref-timeline__desktop-year.is-active {
  cursor: default;
}

.about-ref-timeline__desktop-dot {
  position: absolute;
  top: 50%;
  right: 11px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #79c56b;
  box-shadow: 0 0 0 4px #fff;
  z-index: 2;
  opacity: 0;
  transform: scale(0.5) translateY(-50%);
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.about-ref-timeline__desktop-year.is-active .about-ref-timeline__desktop-dot {
  opacity: 1;
  transform: scale(1) translateY(-50%);
}

.about-ref-timeline__desktop-label {
  display: block;
  padding-left: 24px;
  color: #c4cbc6;
  font-size: clamp(6rem, 7vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
  transform-origin: right center;
}

@media (max-width: 1023px) {
  .about-ref-timeline-card {
    overflow: visible;
  }

  .about-ref-timeline {
    gap: 20px;
  }

  .about-ref-timeline__years-shell {
    height: 104px;
  }

  .about-ref-timeline__mobile-years {
    padding-inline: 34%;
  }

  .about-ref-timeline__content-shell {
    display: block;
    min-height: auto;
  }

  .about-ref-timeline__content-container {
    position: static;
    display: block;
    overflow: visible;
    flex-grow: 0;
    min-height: 0;
  }

  .about-ref-timeline__content-item {
    position: static !important;
    inset: auto !important;
    display: none !important;
    width: 100%;
    justify-content: flex-start;
    gap: 18px;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    z-index: auto !important;
  }

  .about-ref-timeline__content-item.is-active {
    display: flex !important;
  }

  .about-ref-timeline__content-text,
  .about-ref-timeline__visual-shell {
    max-width: none;
  }

  .about-ref-timeline__content-text {
    display: grid;
    gap: 12px;
    padding-top: 4px;
  }

  .about-ref-timeline__content-tag {
    width: fit-content;
  }

  .about-ref-timeline__content-title {
    margin: 0;
    font-size: clamp(1.9rem, 6vw, 2.5rem);
    line-height: 1.02;
    word-break: normal;
    hyphens: auto;
  }

  .about-ref-timeline__content-desc {
    margin: 0;
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
  }

  .about-ref-timeline__visual-shell {
    margin-top: 0;
  }

  .about-ref-timeline__visual-stage {
    aspect-ratio: 1.24;
  }

  .about-ref-timeline__controls {
    padding-top: 18px;
  }
}

@media (min-width: 720px) {
  .about-dynasty-bento__card {
    flex-direction: row;
    align-items: flex-start;
  }

  .about-dynasty-bento__media,
  .about-dynasty-bento__card--wide .about-dynasty-bento__media {
    margin: 0;
  }

  .about-dynasty-bento__body,
  .about-dynasty-bento__card--wide .about-dynasty-bento__body {
    text-align: left;
  }

}

@media (min-width: 1024px) {
  .about-dynasty-bento__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .about-dynasty-bento__card {
    grid-column: span 6;
  }

  .about-dynasty-bento__card--wide {
    grid-column: 1 / -1;
    align-items: center;
    padding: 32px;
  }

  .about-ref-timeline-card {
    padding: 48px 48px 56px;
    border-radius: 40px;
  }

  .about-ref-timeline {
    grid-template-columns: minmax(0, 0.34fr) minmax(0, 0.66fr);
    gap: 32px 96px;
    min-height: 650px;
    align-items: stretch;
  }

  .about-ref-timeline__years-shell {
    min-height: 100%;
    height: auto;
  }

  .about-ref-timeline__line {
    position: absolute;
    top: 10%;
    right: 16px;
    bottom: 10%;
    display: block;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, transparent 0%, rgba(34, 44, 40, 0.08) 18%, rgba(34, 44, 40, 0.12) 50%, rgba(34, 44, 40, 0.08) 82%, transparent 100%);
    z-index: 0;
  }

  .about-ref-timeline__mobile-years {
    display: none;
  }

  .about-ref-timeline__desktop-years {
    position: absolute;
    top: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    z-index: 1;
    transition: transform 0.5s ease-out;
  }

  .about-ref-timeline__content-shell {
    height: 100%;
    min-height: 0;
  }

  .about-ref-timeline__content-container {
    min-height: 0;
  }

  .about-ref-timeline__content-title {
    font-size: clamp(2.6rem, 4vw, 2rem);
  }

  .about-ref-timeline__content-desc {
    display: block;
    overflow: visible;
  }

  .about-ref-timeline__visual-stage {
    aspect-ratio: 21 / 9;
  }

  .about-ref-timeline__caption {
    margin-top: 24px;
    padding-right: 0;
    padding-left: 0;
  }

  .about-ref-timeline__caption-line {
    display: block;
  }
}

.dynasty-card__intro,
.legal-card__head,
.chief-form-card__intro,
.career-form-card__intro {
  max-width: 68ch;
}

.dynasty-card__intro {
  margin-bottom: 28px;
}

.dynasty-card__intro h2,
.about-team-card__content h2,
.legal-card__head h2,
.chief-form-card__intro h2,
.vacancies-values-card h2,
.career-form-card__intro h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3.7vw, 3.05rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.dynasty-card__intro p,
.about-team-card__content p,
.legal-card__head p,
.chief-form-card__intro p,
.vacancies-values-card p,
.career-form-card__intro p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.dynasty-timeline {
  display: grid;
  grid-template-columns: 198px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.dynasty-timeline__years {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dynasty-timeline__years button {
  min-height: 56px;
  padding: 0 20px;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(244, 247, 242, 0.98) 0%, rgba(239, 243, 238, 0.94) 100%);
  color: #617069;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(34, 44, 40, 0.06);
  cursor: pointer;
  transition: background-color 0.24s ease, color 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

.dynasty-timeline__years button:hover,
.dynasty-timeline__years button.is-active {
  background: linear-gradient(135deg, rgba(220, 246, 193, 0.98), rgba(241, 250, 229, 0.98));
  color: #294237;
  box-shadow: 0 16px 28px rgba(32, 40, 37, 0.07);
  transform: translateY(-1px);
}

.dynasty-timeline__content {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  grid-template-areas:
    "year headline"
    "visual visual"
    ". copy";
  gap: 20px 32px;
  align-items: end;
}

.dynasty-timeline__year {
  grid-area: year;
  display: inline-block;
  align-self: end;
  font-size: clamp(5.2rem, 10.6vw, 8.1rem);
  line-height: 0.8;
  letter-spacing: -0.1em;
}

.dynasty-timeline__headline {
  grid-area: headline;
  display: grid;
  gap: 8px;
  align-self: end;
  padding-bottom: 10px;
}

.dynasty-timeline__note {
  margin: 0;
  color: #7b8a83;
  font-size: 0.95rem;
  line-height: 1.45;
}

.dynasty-timeline__headline h3 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.dynasty-timeline__visual {
  grid-area: visual;
  position: relative;
  padding-right: 18px;
  padding-bottom: 18px;
}

.dynasty-timeline__visual::before,
.dynasty-timeline__visual::after {
  content: "";
  position: absolute;
  border-radius: 32px;
  pointer-events: none;
}

.dynasty-timeline__visual::before {
  inset: 18px 0 0 18px;
  background: rgba(181, 192, 178, 0.22);
}

.dynasty-timeline__visual::after {
  inset: 10px 10px 10px 10px;
  background: rgba(230, 236, 227, 0.7);
}

.dynasty-timeline__figure {
  position: relative;
  z-index: 1;
  margin: 0;
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 1.32;
  background: linear-gradient(180deg, #eef3eb 0%, #e5ece2 100%);
}

.dynasty-timeline__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dynasty-timeline__copy {
  grid-area: copy;
  margin: 0;
  max-width: 56ch;
  color: var(--text-soft);
  font-size: 1.03rem;
  line-height: 1.72;
}

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

.about-principle-card {
  padding: 28px 28px 30px;
}

.about-principle-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(214, 244, 186, 0.96), rgba(241, 250, 229, 0.98));
  color: #2e4938;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.about-principle-card h3,
.vacancy-card h3,
.supervisor-card h3 {
  margin: 18px 0 12px;
  font-size: 1.28rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.about-principle-card p,
.vacancy-card p,
.supervisor-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.about-team-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 30px;
}

.about-team-card__content {
  display: grid;
  align-content: start;
  gap: 16px;
}

.about-team-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.about-team-card__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.about-team-card__gallery figure {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #eef3eb 0%, #e5ece2 100%);
}

.about-team-card__gallery figure:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 1.55;
}

.about-team-card__gallery figure:not(:first-child) {
  aspect-ratio: 0.92;
}

.about-team-card__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chief-note--page {
  margin: 0;
}

.chief-note--page .chief-note__heading--mobile {
  display: none;
}

.chief-note--page .heading-outline {
  display: inline-block;
  white-space: nowrap;
}

.chief-note--page .chief-note__inline-line {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.16em;
  width: auto;
  max-width: 100%;
}

.chief-note--page .chief-note__inline-line .heading-outline {
  margin-top: 0;
}

.chief-form-card,
.career-form-card,
.vacancies-values-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.74fr) minmax(0, 1fr);
  gap: 70px;
}

.chief-form-card__meta,
.career-form-card__points {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.chief-form-card__meta span,
.career-form-card__points span {
  align-items: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(241, 245, 239, 0.94);
  color: #596962;
  font-size: 0.9rem;
  line-height: 1.35;
}

.chief-page-form,
.career-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.chief-page-form label,
.career-form label {
  display: grid;
  gap: 8px;
}

.chief-page-form span,
.career-form span {
  font-size: 12px;
  font-weight: 500;
  color: #53615b;
}

.chief-page-form input:not([type="checkbox"]),
.chief-page-form select,
.chief-page-form textarea,
.career-form input:not([type="checkbox"]),
.career-form select,
.career-form textarea {
  width: 100%;
  min-height: 58px;
  padding: 18px 18px 17px;
  border: 1px solid rgba(34, 44, 40, 0.09);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font: inherit;
}

.chief-page-form textarea,
.career-form textarea {
  min-height: 170px;
  resize: vertical;
}

.chief-page-form input:not([type="checkbox"]):focus,
.chief-page-form select:focus,
.chief-page-form textarea:focus,
.career-form input:not([type="checkbox"]):focus,
.career-form select:focus,
.career-form textarea:focus {
  outline: none;
  border-color: rgba(112, 159, 129, 0.55);
  box-shadow: 0 0 0 4px rgba(183, 234, 88, 0.14);
}

.chief-page-form__wide,
.career-form__wide {
  grid-column: 1 / -1;
}

.chief-page-form__actions,
.career-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.chief-page-form__actions .form-note,
.career-form__actions .form-note {
  margin: 0;
}

.legal-anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.legal-anchor-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(241, 245, 239, 0.94);
  color: #53645b;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: inset 0 0 0 1px rgba(34, 44, 40, 0.06);
}

.legal-anchor-nav a:hover {
  background: linear-gradient(135deg, rgba(214, 244, 186, 0.92), rgba(241, 250, 229, 0.96));
  color: #284235;
}

.legal-section {
  scroll-margin-top: 148px;
}

.legal-card__head {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.legal-hours-grid,
.legal-docs-grid,
.supervisors-grid,
.legal-link-cards,
.paid-services-grid,
.vacancies-values-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.legal-docs-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.legal-docs-grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legal-hours-card,
.supervisor-card,
.legal-link-card,
.paid-services-card,
.vacancies-values-grid article {
  padding: 22px 24px;
  border-radius: 24px;
  background: radial-gradient(circle at 10% 6%, rgba(223, 247, 202, 0.12), transparent 22%),
  radial-gradient(circle at 84% 10%, rgba(215, 241, 194, 0.1), transparent 23%),
  radial-gradient(circle at 66% 56%, rgba(243, 251, 232, 0.12), transparent 30%),
  linear-gradient(180deg, #fcfdfa 0%, #f8faf7 42%, #f4f7f3 100%);
  border: 1px solid rgba(34, 44, 40, 0.06);
}

.legal-hours-card,
.supervisor-card,
.legal-link-card,
.paid-services-card {
  display: grid;
  gap: 8px;
}

.legal-hours-card strong,
.legal-link-card strong,
.paid-services-card strong,
.vacancies-values-grid article strong {
  font-size: 1.1rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.legal-hours-card span,
.legal-hours-card small,
.legal-link-card span,
.paid-services-card span,
.vacancies-values-grid article span {
  color: var(--text-soft);
  line-height: 1.55;
}

.legal-facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.legal-fact-row {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(34, 44, 40, 0.06);
  background: rgba(252, 253, 251, 0.96);
}

.legal-fact-row span {
  color: #819087;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.legal-fact-row__value {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.legal-fact-row strong {
  flex: 1 1 auto;
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 700;
}

.legal-copy-button {
  flex: 0 0 auto;
  position: relative;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid rgba(34, 44, 40, 0.08);
  border-radius: 999px;
  background: rgba(246, 249, 244, 0.98);
  color: transparent;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.legal-copy-button::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Crect x='5.25' y='2.75' width='7.5' height='9' rx='1.5' stroke='%235B6A62' stroke-width='1.3'/%3E%3Cpath d='M3.25 5.25V11.25C3.25 12.0784 3.92157 12.75 4.75 12.75H9.75' stroke='%235B6A62' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}

.legal-copy-button:hover {
  background: #eef6e6;
  border-color: rgba(112, 159, 129, 0.2);
}

.legal-copy-button.is-copied {
  background: #dff1cb;
  border-color: rgba(112, 159, 129, 0.28);
}

.legal-copy-button.is-copied::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.25L6.25 11L12.5 4.75' stroke='%2335523F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.legal-text-flow {
  display: grid;
  gap: 14px;
  max-width: 76ch;
  color: var(--text-soft);
  line-height: 1.72;
}

.legal-text-flow p,
.legal-text-flow ol {
  margin: 0;
}

.legal-text-flow ol {
  padding-left: 1.2rem;
}

.legal-text-flow li + li {
  margin-top: 10px;
}

.supervisor-card a,
.legal-link-card,
.paid-services-card,
.career-form-card__points a {
  color: var(--text);
}

.supervisor-card a:hover,
.legal-link-card:hover,
.paid-services-card:hover,
.career-form-card__points a:hover {
  color: #4e8260;
}

.legal-footnote {
  margin: 22px 0 0;
  color: #8a948f;
  font-size: 0.94rem;
  line-height: 1.62;
}

.vacancies-values-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vacancies-values-grid article {
  display: grid;
  gap: 8px;
}

.vacancies-list {
  display: grid;
  gap: 18px;
}

.vacancy-card {
  padding: 30px 32px;
  border: 1px solid rgba(34, 44, 40, 0.06);
}

.vacancy-card__head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.vacancy-card__label {
  margin: 0 0 10px;
  color: #7f8f87;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.vacancy-card__tag {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(214, 244, 186, 0.96), rgba(241, 250, 229, 0.98));
  color: #2f4739;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.vacancy-card ul {
  margin: 18px 0 0;
  padding-left: 1.15rem;
  color: var(--text-soft);
  line-height: 1.72;
}

.vacancy-card li + li {
  margin-top: 8px;
}

@media (max-width: 1100px) {
  .doctors-directory-grid,
  .doctor-services-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doctors-directory-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .prices-files {
    max-width: none;
  }

  .doctors-directory-hero__content,
  .doctors-filter-card,
  .doctor-services-card {
    padding: 28px 24px;
  }

  .doctor-profile-card {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 24px;
    border-radius: 30px;
  }

  .doctor-profile-photo {
    min-height: 360px;
    aspect-ratio: auto;
  }

  .doctor-profile-title {
    font-size: clamp(2.2rem, 6.8vw, 3.3rem);
  }

  .doctor-profile-panel {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .prices-page {
    padding-top: 28px;
  }

  .prices-breadcrumbs {
    margin-bottom: 22px;
    font-size: 0.92rem;
  }

  .prices-page__title {
    margin-bottom: 24px;
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .prices-files {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .prices-file-card {
    min-height: 112px;
    padding: 20px 18px;
    border-radius: 22px;
    gap: 16px;
  }

  .prices-file-card__icon {
    width: 44px;
    height: 44px;
  }

  .prices-page__note {
    margin-top: 34px;
    font-size: 0.9rem;
  }

  .doctors-directory-hero {
    padding-top: 28px;
  }

  .doctors-directory-hero__content,
  .doctors-filter-card,
  .doctor-services-card {
    padding: 24px 20px;
    border-radius: 28px;
  }

  .doctors-directory-hero__stats {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
  }

  .doctors-directory-hero__stat {
    min-height: auto;
    padding: 18px;
    border-radius: 20px;
  }

  .doctors-filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .doctors-filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .doctors-filter-tabs button {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 16px;
    font-size: 0.9rem;
  }

  .doctors-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .doctor-showcase-card--directory,
  .doctor-showcase-card--directory .doctor-showcase-card__media {
    min-height: 248px;
    border-radius: 22px;
  }

  .doctor-showcase-card--directory .doctor-showcase-card__media img {
    object-position: center 10%;
  }

  .doctor-showcase-card--directory .doctor-showcase-card__experience {
    left: 8px;
    top: 8px;
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.55rem;
    gap: 4px;
  }

  .doctor-showcase-card--directory .doctor-showcase-card__body {
    right: 8px;
    bottom: 8px;
    left: 8px;
    min-height: 0;
    padding: 10px 38px 10px 10px;
    border-radius: 14px;
    gap: 4px;
    background: rgba(244, 246, 242, 0.96);
    backdrop-filter: blur(8px);
  }

  .doctor-showcase-card--directory .doctor-showcase-card__body h3 {
    font-size: 0.9rem;
    line-height: 0.98;
    word-break: normal;
    hyphens: auto;
  }

  .doctor-showcase-card--directory .doctor-showcase-card__body p {
    font-size: 0.7rem!important;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .doctor-showcase-card--directory .doctor-showcase-card__arrow {
    right: 14px;
    bottom: 14px;
    width: 22px;
    height: 22px;
  }

  .doctor-profile-page {
    padding-top: 28px;
  }

  .doctor-profile-card {
    padding: 20px;
    border-radius: 28px;
    gap: 40px;
  }

  .doctor-profile-media {
    position: relative;
  }

  .doctor-profile-photo {
    height: 180px;
    border-radius: 24px;
  }

  .doctor-profile-tags--desktop {
    display: none;
  }

  .doctor-profile-tags--mobile {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 2;
    gap: 8px;
    margin: 0;
    display: flex;
  }

  .doctor-profile-tag {
    min-height: 30px;
    padding: 0 11px;
    font-size: 0.72rem;
    background: rgba(247, 249, 245, 0.92);
    backdrop-filter: blur(8px);
  }

  .doctor-profile-title {
    font-size: clamp(2rem, 8vw, 2.7rem);
  }

  .doctor-profile-subtitle {
    margin-bottom: 22px;
    font-size: 0.96rem;
  }

  .doctor-profile-tabs {
    gap: 18px;
  }

  .doctor-profile-tabs button {
    font-size: 0.96rem;
  }

  .doctor-profile-copy p,
  .doctor-education-list li {
    font-size: 0.94rem;
  }

  .doctor-education-list strong {
    font-size: 1.28rem;
  }

  .doctor-certificates__list {
    gap: 10px;
  }

  .doctor-certificates__list button {
    width: 56px;
    height: 78px;
    border-radius: 14px;
  }

  .doctor-profile-actions {
    gap: 10px;
    margin-top: 24px;
  }

  .doctor-profile-actions .hero-button {
    width: 100%;
    min-width: 0;
  }

  .doctor-services-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px !important;
  }

  .certificate-lightbox {
    padding: 16px;
  }

  .certificate-lightbox__dialog {
    width: 100%;
    padding: 18px 16px 16px;
    border-radius: 24px;
  }

  .certificate-lightbox__frame {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 8px;
  }

  .certificate-lightbox__image-wrap {
    padding: 14px;
    border-radius: 18px;
  }

  .certificate-lightbox__nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}

@media (max-width: 1100px) {
  .page-hero-card__grid,
  .about-team-card,
  .chief-form-card,
  .career-form-card,
  .vacancies-values-card,
  .dynasty-timeline {
    grid-template-columns: 1fr;
  }

  .dynasty-timeline__content {
    grid-template-columns: minmax(136px, 180px) minmax(0, 1fr);
  }

  .legal-docs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  html {
    scroll-padding-top: 112px;
  }

  .page-hero-card,
  .dynasty-card,
  .about-team-card,
  .legal-card,
  .chief-form-card,
  .vacancies-values-card,
  .career-form-card {
    padding: 28px 24px;
    border-radius: 30px;
  }

  .page-hero-card__facts,
  .about-principles-grid,
  .legal-hours-grid,
  .legal-facts-grid,
  .legal-link-cards,
  .paid-services-grid,
  .supervisors-grid,
  .vacancies-values-grid {
    grid-template-columns: 1fr;
  }

  .dynasty-timeline__years {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .dynasty-timeline__content {
    grid-template-columns: 1fr;
    grid-template-areas:
      "year"
      "headline"
      "visual"
      "copy";
    gap: 16px;
  }

  .dynasty-timeline__visual {
    padding-right: 14px;
    padding-bottom: 14px;
  }

  .dynasty-timeline__headline {
    padding-bottom: 0;
  }

  .dynasty-timeline__headline h3,
  .dynasty-card__intro h2,
  .about-team-card__content h2,
  .legal-card__head h2,
  .chief-form-card__intro h2,
  .vacancies-values-card h2,
  .career-form-card__intro h2 {
    font-size: clamp(1.9rem, 5.2vw, 3rem);
  }

  .dynasty-timeline__copy {
    max-width: none;
  }

  .chief-page-form,
  .career-form {
    grid-template-columns: 1fr;
  }

  .chief-page-form__wide,
  .career-form__wide {
    grid-column: auto;
  }

  .vacancy-card__head {
    flex-direction: column;
    align-items: start;
  }

  .legal-section {
    scroll-margin-top: 124px;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 96px;
  }

  .info-page {
    padding-top: 28px !important;
  }

  .page-hero-card,
  .dynasty-card,
  .about-team-card,
  .legal-card,
  .chief-form-card,
  .vacancies-values-card,
  .career-form-card,
  .about-principle-card,
  .vacancy-card {
    padding: 24px 20px;
    border-radius: 28px;
  }

  .page-hero-card__title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .inner-page-hero .services-page-hero__content {
    padding: 28px 20px 30px;
  }

  .inner-page-hero .services-page-hero__title,
  .about-hero .services-page-hero__title,
  .inner-page-hero .services-page-hero__lead {
    max-width: none;
  }

  .about-ref-timeline-card {
    padding: 20px 16px 22px;
    border-radius: 28px;
  }

  .about-ref-timeline {
    gap: 20px;
  }

  .about-ref-timeline__years-shell {
    height: 92px;
  }

  .about-ref-timeline__mobile-years {
    padding-inline: 28%;
  }

  .about-ref-timeline__mobile-year {
    padding: 0 20px;
    font-size: clamp(2.2rem, 12vw, 3.3rem);
  }

  .about-ref-timeline__content-title {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }

  .about-ref-timeline__content-desc {
    font-size: 0.95rem;
  }

  .about-ref-timeline__visual-stage {
    aspect-ratio: 1.16;
  }

  .about-ref-timeline__visual-backdrop {
    top: 12px;
    right: -12px;
    border-radius: 24px;
  }

  .about-ref-timeline__visual-frame {
    border-radius: 24px;
  }

  .about-ref-timeline__caption {
    margin-top: 16px;
    padding-right: 0;
    font-size: 0.84rem;
  }

  .page-hero-card__lead,
  .dynasty-card__intro p,
  .about-team-card__content p,
  .legal-card__head p,
  .chief-form-card__intro p,
  .vacancies-values-card p,
  .career-form-card__intro p,
  .dynasty-timeline__copy,
  .legal-text-flow,
  .vacancy-card p,
  .vacancy-card ul,
  .supervisor-card p {
    font-size: 0.95rem;
  }

  .page-hero-card__facts article {
    min-height: 0;
    padding: 18px;
    border-radius: 20px;
  }

  .legal-anchor-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

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

  .legal-anchor-nav a {
    flex: 0 0 auto;
  }

  .dynasty-timeline__years {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .dynasty-timeline__years::-webkit-scrollbar {
    display: none;
  }

  .dynasty-timeline__years button {
    flex: 0 0 108px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 16px;
    font-size: 0.9rem;
  }

  .dynasty-timeline__year {
    font-size: clamp(4.1rem, 18vw, 5.8rem);
  }

  .dynasty-timeline__headline h3,
  .dynasty-card__intro h2,
  .about-team-card__content h2,
  .legal-card__head h2,
  .chief-form-card__intro h2,
  .vacancies-values-card h2,
  .career-form-card__intro h2 {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }

  .dynasty-timeline__figure,
  .about-team-card__gallery figure:first-child {
    aspect-ratio: 1.08;
  }

  .about-team-card__gallery {
    grid-template-columns: 1fr;
  }

  .about-team-card__gallery figure:not(:first-child) {
    aspect-ratio: 1.18;
  }

  .legal-docs-grid,
  .legal-docs-grid--compact {
    grid-template-columns: 1fr;
  }

  .contacts-channel {
    flex-direction: column;
    align-items: flex-start;
  }

  .contacts-channel p {
    text-align: left;
  }

  .contacts-branch-card {
    padding: 22px 20px;
    border-radius: 24px;
  }

  .contacts-support-card__block {
    padding: 18px 20px;
    border-radius: 20px;
  }

  .legal-section {
    scroll-margin-top: 106px;
  }

  .legal-fact-row,
  .legal-hours-card,
  .supervisor-card,
  .legal-link-card,
  .paid-services-card,
  .vacancies-values-grid article,
  .vacancy-card {
    padding: 18px;
    border-radius: 20px;
  }

  .legal-fact-row__value {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-copy-button {
    min-height: 32px;
  }

  .chief-page-form input:not([type="checkbox"]),
  .chief-page-form select,
  .chief-page-form textarea,
  .career-form input:not([type="checkbox"]),
  .career-form select,
  .career-form textarea {
    min-height: 54px;
    padding: 16px;
    border-radius: 18px;
  }

  .chief-page-form__actions,
  .career-form__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .chief-page-form__actions .hero-button,
  .career-form__actions .hero-button {
    width: 100%;
  }
}

@media (max-width: 1023px) {
  .about-dynasty-bento,
  .about-dynasty-bento__grid,
  .about-dynasty-bento__card,
  .about-ref-timeline,
  .about-ref-timeline__content-shell,
  .about-ref-timeline__content-container,
  .about-ref-timeline__content-item,
  .about-ref-timeline__visual-shell,
  .about-ref-timeline__visual-stage {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .about-dynasty-bento__grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }


    .about-dynasty-bento__card†в,
  .about-dynasty-bento__card--wide {
    display: grid !important;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px !important;
    align-items: start !important;
    padding: 18px !important;
    border-radius: 24px !important;
  }

  .about-dynasty-bento__media,
  .about-dynasty-bento__card--wide .about-dynasty-bento__media {
    width: 72px !important;
    height: 72px !important;
    margin: 0 !important;
  }

  .about-dynasty-bento__badge,
  .about-dynasty-bento__card--wide .about-dynasty-bento__badge {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.7rem !important;
  }

  .about-dynasty-bento__body,
  .about-dynasty-bento__card--wide .about-dynasty-bento__body {
    display: grid;
    gap: 6px;
    text-align: left !important;
  }

  .about-dynasty-bento__name,
  .about-dynasty-bento__card--wide .about-dynasty-bento__name {
    font-size: 1rem !important;
    line-height: 1.06 !important;
  }

  .about-dynasty-bento__role,
  .about-dynasty-bento__card--wide .about-dynasty-bento__role {
    font-size: 0.74rem !important;
    line-height: 1.35 !important;
  }

  .about-dynasty-bento__desc {
    font-size: 0.72rem !important;
    line-height: 1.5 !important;
  }

  .about-ref-timeline-card {
    overflow: hidden !important;
    padding: 18px 14px 18px !important;
    border-radius: 24px !important;
  }

  .about-ref-timeline {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .about-ref-timeline__years-shell {
    display: block !important;
    height: auto !important;
  }

  .about-ref-timeline__mobile-years {
    display: flex !important;
    align-items: center !important;
    gap: 18px;
    height: auto !important;
    padding: 0 4px !important;
    overflow-x: auto !important;
    scroll-snap-type: x proximity;
  }

  .about-ref-timeline__mobile-year {
    flex: 0 0 auto;
    padding: 0 !important;
    font-size: clamp(1.9rem, 10vw, 2.9rem) !important;
    line-height: 1 !important;
    transform: none !important;
  }

  .about-ref-timeline__mobile-year.is-active {
    transform: none !important;
  }

  .about-ref-timeline__content-shell {
    display: block !important;
    min-height: 0 !important;
  }

  .about-ref-timeline__content-container {
    position: static !important;
    display: block !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  .about-ref-timeline__content-item {
    position: static !important;
    inset: auto !important;
    display: none !important;
    flex-direction: column !important;
    gap: 14px !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    z-index: auto !important;
  }

  .about-ref-timeline__content-item.is-active {
    display: flex !important;
  }

  .about-ref-timeline__content-text {
    display: grid;
    gap: 10px;
    max-width: none !important;
    padding: 0 !important;
  }

  .about-ref-timeline__content-tag {
    width: fit-content;
    min-height: 28px;
    padding: 0 12px;
    font-size: 0.72rem;
  }

  .about-ref-timeline__content-title {
    margin: 0 !important;
    font-size: clamp(1.55rem, 6vw, 2rem) !important;
    line-height: 1.04 !important;
    letter-spacing: -0.04em !important;
    word-break: normal;
    hyphens: auto;
  }

  .about-ref-timeline__content-desc {
    margin: 0 !important;
    display: block !important;
    overflow: visible !important;
    font-size: 0.88rem !important;
    line-height: 1.58 !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: initial !important;
  }

  .about-ref-timeline__visual-shell {
    max-width: none !important;
    margin-top: 0 !important;
  }

  .about-ref-timeline__visual-stage {
    aspect-ratio: 1.16 !important;
  }

  .about-ref-timeline__visual-backdrop {
    top: 10px !important;
    right: -10px !important;
    border-radius: 20px !important;
  }

  .about-ref-timeline__visual-frame {
    border-radius: 20px !important;
  }

  .about-ref-timeline__caption {
    margin-top: 12px !important;
    padding: 0 !important;
    font-size: 0.76rem !important;
    line-height: 1.45 !important;
  }

  .about-ref-timeline__controls {
    justify-content: flex-end !important;
    padding-top: 14px !important;
  }
}

@media (max-width: 640px) {
  .accessibility-panel {
    place-items: end stretch;
    padding: 10px;
  }

  .accessibility-panel__dialog {
    width: 100%;
    max-height: calc(100vh - 20px);
    padding: 20px 16px;
    border-radius: 22px;
  }

  .accessibility-panel__controls,
  .accessibility-panel__controls--grid {
    grid-template-columns: 1fr;
  }

  .accessibility-panel__controls button,
  .accessibility-panel__footer button {
    min-height: 52px;
  }

  .about-dynasty-bento__card,
  .about-dynasty-bento__card--wide {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px !important;
    padding: 16px !important;
  }

  .about-dynasty-bento__media,
  .about-dynasty-bento__card--wide .about-dynasty-bento__media {
    width: 64px !important;
    height: 64px !important;
  }

  .about-dynasty-bento__name,
  .about-dynasty-bento__card--wide .about-dynasty-bento__name {
    font-size: 0.94rem !important;
  }

  .about-dynasty-bento__role,
  .about-dynasty-bento__card--wide .about-dynasty-bento__role {
    font-size: 0.7rem !important;
  }

  .about-dynasty-bento__desc {
    font-size: 0.68rem !important;
  }

  .about-ref-timeline__mobile-years {
    gap: 14px;
  }

  .about-ref-timeline__mobile-year {
    font-size: clamp(1.75rem, 9.5vw, 2.4rem) !important;
  }

  .about-ref-timeline__content-title {
    font-size: clamp(1.4rem, 7vw, 1.8rem) !important;
  }

  .about-ref-timeline__content-desc {
    font-size: 0.84rem !important;
  }

  .about-ref-timeline__visual-stage {
    aspect-ratio: 1.05 !important;
  }
}

@media (max-width: 767px) {
  .about-ref-timeline-card {
    overflow: hidden !important;
    padding: 22px 16px 18px !important;
    border-radius: 28px !important;
  }

  .about-ref-timeline {
    gap: 18px !important;
  }

  .about-ref-timeline__years-shell {
    position: relative;
    height: 96px !important;
    overflow: hidden;
  }

  .about-ref-timeline__years-shell::before,
  .about-ref-timeline__years-shell::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 36px;
    z-index: 2;
    pointer-events: none;
  }

  .about-ref-timeline__years-shell::before {
    left: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 28%, rgba(255, 255, 255, 0) 100%);
  }

  .about-ref-timeline__years-shell::after {
    right: 0;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0.98) 28%, rgba(255, 255, 255, 0) 100%);
  }

  .about-ref-timeline__mobile-years {
    gap: 0 !important;
    height: 100% !important;
    padding-inline: calc(50% - 74px) !important;
    scroll-snap-type: x mandatory;
  }

  .about-ref-timeline__mobile-year {
    min-width: 148px;
    padding: 0 !important;
    color: #c7cec9;
    font-size: clamp(2.5rem, 13vw, 4rem) !important;
    font-weight: 800;
    letter-spacing: -0.065em;
    line-height: 1;
    opacity: 0.88;
    transform: scale(0.9) !important;
    transform-origin: center center;
    transition: color 0.28s ease, opacity 0.28s ease, transform 0.28s ease;
    scroll-snap-align: center;
  }

  .about-ref-timeline__mobile-year.is-active {
    color: #212925;
    opacity: 1;
    transform: scale(1.06) !important;
  }

  .about-ref-timeline__content-shell {
    gap: 0;
  }

  .about-ref-timeline__content-container {
    min-height: 0 !important;
  }

  .about-ref-timeline__content-item {
    gap: 16px !important;
  }

  .about-ref-timeline__content-title {
    font-size: clamp(1.7rem, 8vw, 2.2rem) !important;
    line-height: 1.04 !important;
  }

  .about-ref-timeline__content-desc {
    font-size: 0.92rem !important;
    line-height: 1.6 !important;
  }

  .about-ref-timeline__visual-stage {
    aspect-ratio: 1.08 !important;
  }

  .about-ref-timeline__controls {
    padding-top: 16px !important;
  }

  .about-principles-grid {
    display: grid !important;
    grid-template-columns: none !important;
    grid-auto-flow: column;
    grid-auto-columns: minmax(86%, 1fr);
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 70px;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .about-principles-grid::-webkit-scrollbar {
    display: none;
  }

  .about-principle-card {
    scroll-snap-align: start;
  }

  .about-team-card__gallery {
    display: grid !important;
    grid-template-columns: none !important;
    grid-auto-flow: column;
    grid-auto-columns: minmax(82%, 1fr);
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .about-team-card__gallery::-webkit-scrollbar {
    display: none;
  }

  .about-team-card__gallery figure,
  .about-team-card__gallery figure:first-child,
  .about-team-card__gallery figure:not(:first-child) {
    grid-column: auto;
    aspect-ratio: 0.92;
    scroll-snap-align: start;
  }
}

picture {
  display: contents;
}

.promotions-grid {
  align-items: stretch;
}

.promotion-card {
  height: 100%;
}

.promotion-card__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.promotion-card__top {
  min-height: 54px;
  flex-wrap: nowrap;
}

.promotion-card .eyebrow,
.promotion-card__dates {
  flex: 0 0 auto;
}

.promotion-card__dates {
  white-space: nowrap;
}

.promotion-card__title,
.promotion-card__desc {
  align-self: start;
}

.promotion-card__title {
  min-height: 3.4em;
}

.promotion-card__desc {
  min-height: 5.1em;
}

.promotion-card__body--has-price .promotion-card__price {
  align-self: flex-start;
  margin-top: auto;
}

.promotion-card__body--has-price .promotion-card__footer {
  margin-top: 2px;
}

.promotion-card__body:not(.promotion-card__body--has-price) .promotion-card__footer {
  margin-top: auto;
}

.hero-promo-slide__price {
  display: none;
}

.service-section-heading--row {
  width: 100%;
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.service-doctors-section .service-section-heading--row .slider-controls {
  margin-left: auto;
}

.doctors-showcase-shell {
  cursor: grab;
}

.doctors-showcase-shell.is-dragging,
.doctors-showcase.is-dragging {
  cursor: grabbing;
}

.map-placeholder--embed {
  min-height: 420px;
}

.map-placeholder--embed iframe,
.map-placeholder--embed > ymaps {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.checkbox-field a {
  color: inherit;
  font-weight: 800;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.cookie-banner {
  position: fixed;
  z-index: 1200;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  left: auto;
  width: min(440px, calc(100vw - 36px));
  display: none;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 56px rgba(32, 40, 37, 0.16);
  backdrop-filter: blur(16px);
}

.cookie-banner.is-visible {
  display: flex;
}

.cookie-banner p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.35;
}

.cookie-banner .hero-button {
  flex: 0 0 auto;
  min-height: 46px;
  padding-inline: 20px;
}

@media (max-width: 860px) {
  .promotion-card__body {
    display: grid;
  }

  .promotion-card__top {
    min-height: 0;
    flex-wrap: wrap;
  }

  .service-section-heading--row {
    align-items: flex-start;
  }

  .cookie-banner {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    width: min(420px, calc(100vw - 20px));
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 18px;
  }

  .cookie-banner p {
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .cookie-banner .hero-button {
    min-height: 38px;
    padding-inline: 14px;
    font-size: 0.9rem;
  }
}
  .promotion-card__title,
  .promotion-card__desc {
    min-height: 0;
  }

  .promotion-card__body--has-price .promotion-card__price,
  .promotion-card__body--has-price .promotion-card__footer,
  .promotion-card__body:not(.promotion-card__body--has-price) .promotion-card__footer {
    margin-bottom: 0;
  }

/* Targeted stability fixes: keep these after legacy responsive blocks. */
html,
body {
  max-width: 100%;
  overscroll-behavior-x: none;
}

body {
  overflow-x: clip;
}

@supports not (overflow: clip) {
  body {
    overflow-x: hidden;
  }
}

.slider-button,
.hero-specialists__button {
  -webkit-appearance: none;
  appearance: none;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: #31523d;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.slider-button svg,
.hero-specialists__button svg {
  stroke: currentColor;
}

.slider-button:focus-visible,
.hero-specialists__button:focus-visible {
  outline: 2px solid rgba(95, 133, 109, 0.42);
  outline-offset: 3px;
}

.hero-tag--more {
  background: #d8f3c9;
  color: #000000;
  box-shadow: 0 12px 24px rgba(49, 82, 61, 0.22);
}

.home-services-section.home-services-section--wide,
.home-services-section__list--wide.services-grid {
  overflow: visible;
}

.home-services-section__list--wide.services-grid {
  padding: 4px 4px 34px;
}

.home-services-section__list--wide.services-grid .card {
  box-shadow: 0 16px 34px rgba(32, 40, 37, 0.08);
}

.home-services-section__list--wide.services-grid .card:hover {
  box-shadow: 0 20px 42px rgba(32, 40, 37, 0.1);
}

@media (max-width: 640px) {
  .hero-visual,
  .hero-photo-panel {
    width: 100%;
    max-width: 100%;
  }

  .hero-tags {
    left: 14px;
    right: 14px;
    bottom: 14px;
    display: flex;
    width: auto;
    max-width: none;
    gap: 8px;
    transform: none;
  }

  .hero-tag {
    min-height: 34px;
    max-width: min(100%, 300px);
    padding: 0 14px;
    overflow: hidden;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  }

  .hero-tag--more {
    flex: 0 0 auto;
    max-width: none;
  }

  .section--services {
    overflow: visible;
    padding-bottom: 36px;
  }

  .home-services-section__list--wide.services-grid {
    padding: 4px 4px 34px;
  }

  .home-services-section__list--wide.services-grid .card {
    box-shadow: 0 16px 32px rgba(32, 40, 37, 0.1);
  }

  .doctors-showcase-shell {
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
    overflow: visible;
  }

  .doctors-showcase,
  .hero-specialists__strip,
  .hero-promo-slider__track {
    max-width: 100%;
    overscroll-behavior-x: contain;
  }
}

/* Blog */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 22px;
  color: var(--text-soft);
  font-size: 0.86rem;
}

.breadcrumbs a {
  color: inherit;
}

.blog-hero{padding-bottom: 0!important;}

.blog-hero .services-page-hero__content {
  padding-block: 34px 38px;
}

.blog-hero .breadcrumbs {
  margin-bottom: 16px;
}

.blog-hero .services-page-hero__title {
  margin-top: 16px;
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.blog-filters a,
.article-category {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(241, 245, 239, 0.94);
  color: #526159;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.blog-filters a:hover,
.blog-filters a.is-active {
  background: linear-gradient(135deg, rgba(214, 244, 186, 0.92), rgba(241, 250, 229, 0.96));
  color: #284235;
  box-shadow: 0 12px 24px rgba(32, 40, 37, 0.06);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.article-card {
  min-width: 0;
  border: 1px solid rgba(223, 232, 209, 0.92);
  border-radius: 26px;
  background: #fff;
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.article-card:hover,
.article-card:focus-within {
  transform: translateY(-5px);
  border-color: rgba(190, 217, 157, 0.98);
  box-shadow: 0 18px 36px rgba(32, 40, 37, 0.08);
}

.article-card__link {
  display: flex;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
  flex-direction: column;
}

.article-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  margin: 7px 7px 0;
  border-radius: 20px;
  background: #edf2eb;
  overflow: hidden;
}

.article-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1);
}

.article-card:hover .article-card__media img {
  transform: scale(1.035);
}

.article-card__badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  max-width: calc(100% - 66px);
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-card__arrow {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(244, 249, 241, 0.34));
  box-shadow:
    0 10px 18px rgba(32, 40, 37, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
  color: #61705f;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  place-items: center;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.article-card__arrow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.article-card:hover .article-card__arrow,
.article-card:focus-within .article-card__arrow {
  background: #e7f790;
  transform: rotate(4deg);
}

.article-card__body {
  display: flex;
  min-height: 132px;
  padding: 16px 18px 18px;
  flex: 1;
  flex-direction: column;
}

.article-card__title {
  display: block;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  text-wrap: pretty;
}

.article-card__date {
  display: block;
  margin-top: auto;
  padding-top: 16px;
  color: var(--text-soft);
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
}

.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 42px;
}

.blog-empty,
.preview-banner {
  padding: 24px;
  border-radius: 22px;
  background: #fff;
}

.home-blog {
  padding-block: 46px 24px;
}

.home-blog + .section--muted {
  padding-top: 32px;
}

.home-blog__shell {
  position: relative;
}

.home-blog__heading {
  display: flex;
  width: 100%;
  max-width: none;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.home-blog__heading h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.home-blog__controls {
  flex: 0 0 auto;
  margin-left: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.home-blog__shell.is-gallery-active .home-blog__controls {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.home-blog__viewport {
  overflow: visible;
  cursor: grab;
  touch-action: pan-x;
}

.home-blog__slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 300px);
  gap: 18px;
  margin: -18px;
  padding: 18px 18px 34px;
  overflow-x: auto;
  scroll-padding-inline: 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.home-blog__slider::-webkit-scrollbar {
  display: none;
}

.home-blog__viewport.is-dragging,
.home-blog__slider.is-dragging {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
}

.home-blog__slider.is-dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.home-blog__viewport,
.home-blog__viewport * {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.home-blog__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.article-page {
  color: var(--text);
}

.article-hero {
  padding: 38px 0 28px;
}

.article-hero__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  gap: 70px;
  padding: 34px;
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 24px 54px rgba(32, 40, 37, 0.06);
}

.article-hero__content {
  align-self: center;
  padding: 8px 0 8px 8px;
}

.article-hero h1 {
  max-width: 820px;
  margin: 18px 0 18px;
  font-size: clamp(2.35rem, 4.6vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.article-lead {
  max-width: 720px;
  margin: 0;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 24px;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.article-cover {
  min-width: 0;
  margin: 0;
}

.article-cover img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  border-radius: 26px;
  object-fit: cover;
}

.article-cover figcaption {
  margin: 9px 4px 0;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.article-reading-section {
  padding: 22px 0 34px;
}

.article-reading-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 800px);
  justify-content: start;
  align-items: start;
  gap: 54px;
  padding: 50px 34px 62px;
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(32, 40, 37, 0.045);
}

.article-reading-shell.has-no-toc {
  grid-template-columns: minmax(0, 860px);
}

.article-toc {
  position: sticky;
  top: 100px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, #edf4ea 0%, #f4f7f2 100%);
}

.article-toc strong {
  display: block;
  margin-bottom: 14px;
  font-size: 1rem;
}

.article-toc ol {
  margin: 0;
  padding-left: 20px;
}

.article-toc li {
  margin: 10px 0;
  color: var(--text-soft);
  line-height: 1.4;
}

.article-toc .level-3 {
  margin-left: 12px;
  font-size: 0.9rem;
}

.article-toc a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-content {
  min-width: 0;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.78;
}

.article-content > :first-child {
  margin-top: 0;
}

.article-content p,
.article-content li {
  text-wrap: pretty;
}

.article-content ul,
.article-content ol {
  display: grid;
  gap: 10px;
  margin: 1.25em 0 1.65em;
  padding-left: 1.5em;
}

.article-content ul {
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

.article-content li::marker {
  color: var(--sage-strong);
  font-weight: 700;
}

.article-content h2 {
  margin: 1.25em 0 0.65em;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.article-content h3 {
  margin: 1.8em 0 0.55em;
  font-size: 1.45rem;
  line-height: 1.2;
}

.article-content h4 {
  margin: 1.5em 0 0.5em;
  font-size: 1.18rem;
}

.article-content a {
  color: #31523d;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
}

.article-content blockquote {
  position: relative;
  margin: 30px 0;
  padding: 24px 28px 24px 82px;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(214, 244, 186, 0.72), rgba(241, 250, 229, 0.94));
  color: var(--text);
  font-weight: 700;
  line-height: 1.6;
}

.article-content blockquote::before {
  content: "+";
  position: absolute;
  top: 50%;
  left: 26px;
  display: grid;
  width: 34px;
  height: 42px;
  border: 2px solid var(--sage-strong);
  border-radius: 5px;
  color: var(--sage-strong);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-50%);
  place-items: center;
}

.article-content blockquote p {
  margin: 0;
}

.article-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.article-related-section {
  padding: 18px 0;
}

.article-panel {
  padding: 34px;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(32, 40, 37, 0.04);
}

.article-panel .section-heading {
  margin-bottom: 24px;
}

.article-related-services .home-services-section__list-item {
  opacity: 1;
}

.article-sources ol {
  margin-bottom: 0;
  line-height: 1.7;
}

.article-doctors {
  padding: 8px 4px 14px;
}

.preview-banner {
  margin-bottom: 20px;
  background: #fff3cd;
}

.article-card a:focus-visible,
.blog-filters a:focus-visible,
.article-toc a:focus-visible {
  outline: 3px solid var(--sage-strong);
  outline-offset: 3px;
}

@media (max-width: 1000px) {
  .article-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .article-hero__card {
    grid-template-columns: 1fr;
  }

  .article-cover img {
    min-height: 320px;
    max-height: 480px;
  }

  .article-reading-shell {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .article-toc {
    position: static;
  }
}

@media (max-width: 720px) {
  .blog-hero .services-page-hero__content {
    padding-block: 28px 30px;
  }

  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-blog {
    padding-block: 36px 44px;
  }

  .home-blog__heading {
    align-items: center;
  }

  .home-blog__heading h2 {
    font-size: 2rem;
  }

  .home-blog__slider {
    grid-auto-columns: minmax(246px, 82vw);
  }

  .article-hero {
    padding-top: 24px;
  }

  .article-hero__card {
    gap: 24px;
    padding: 24px;
    border-radius: 28px;
  }

  .article-hero__content {
    padding: 0;
  }

  .article-hero h1 {
    font-size: clamp(2.15rem, 11vw, 3.25rem);
  }

  .article-cover img {
    min-height: 230px;
    border-radius: 22px;
  }

  .article-reading-shell {
    padding: 30px 22px 38px;
    border-radius: 28px;
  }

  .article-content {
    font-size: 1rem;
  }

  .article-panel {
    padding: 26px 22px;
    border-radius: 26px;
  }

  .blog-pagination {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .article-grid {
    grid-template-columns: 1fr;
  }
}

/* Legal footer: license, required warning and optional developer credit. */
.footer-legal {
  display: grid;
  gap: 34px;
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-legal__meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: start;
  gap: 32px;
}

.footer-license,
.footer-legal__documents,
.footer-developer {
  min-width: 0;
}

.footer-license {
  max-width: 330px;
  margin: 0;
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: clamp(0.9rem, 1.25vw, 1.1rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.footer-legal__documents {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.footer-legal__documents a {
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(0.9rem, 1.25vw, 1.1rem);
  line-height: 1.45;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.34);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.footer-legal__documents a:hover {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 0.8);
}

.footer-developer {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 10px;
  white-space: nowrap;
}

.footer-developer__caption {
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.8rem;
}

.footer-developer__logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  color: #ffffff;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(1.125rem, 1.55vw, 1.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.footer-developer__logo > span {
  transition: color 180ms ease;
}

.footer-developer__accent {
  color: #9ee258;
}

.footer-developer__logo:hover > span:first-child,
.footer-developer__logo:focus-visible > span:first-child {
  color: #9ee258;
}

.footer-developer__logo:hover .footer-developer__accent,
.footer-developer__logo:focus-visible .footer-developer__accent {
  color: #ffffff;
}

.footer-legal__notice {
  display: grid;
  gap: 20px;
}

.footer-legal__warning {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin: 0;
  padding-inline: clamp(22px, 2.75vw, 56px);
  color: rgba(255, 255, 255, 0.58) !important;
  font-size: clamp(2rem, 4.15vw, 4rem);
  font-family: "Manrope", sans-serif;
  font-weight: 200;
  line-height: 1.04;
  letter-spacing: -0.055em;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
}

.footer-legal__notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-legal__notes p {
  max-width: 610px;
  margin: 0;
  color: rgba(255, 255, 255, 0.42) !important;
  font-size: 0.78rem;
  line-height: 1.55;
  text-wrap: pretty;
}

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

  .footer-developer {
    grid-column: 2;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .footer-legal {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 30px;
    padding-top: 26px;
  }

  .footer-legal__meta {
    display: contents;
  }

  .footer-legal__notes {
    grid-template-columns: 1fr;
  }

  .footer-license {
    order: 1;
    max-width: none;
    font-size: 0.9rem;
  }

  .footer-legal__documents {
    order: 2;
    gap: 7px;
  }

  .footer-legal__documents a {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .footer-legal__notice {
    order: 3;
    gap: 24px;
  }

  .footer-developer {
    order: 4;
    grid-column: auto;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .footer-legal__warning {
    padding-inline: 0;
    font-size: clamp(1.35rem, 6.4vw, 1.75rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
  }

  .footer-legal__notes {
    gap: 18px;
    padding-top: 22px;
  }

  .footer-legal__notes p {
    max-width: none;
    font-size: 0.8rem;
    line-height: 1.62;
  }

  .footer-developer__caption {
    font-family: "Manrope", sans-serif;
    font-size: 0.8rem;
  }
}

@media (min-width: 1600px) {
  .footer-legal__warning {
    padding-inline: 0;
    font-size: clamp(3.2rem, 3.08vw, 4rem);
    line-height: 1;
    letter-spacing: -0.08em;
    white-space: nowrap;
    text-wrap: nowrap;
  }
}
