.site-chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
}

body {
  padding-top: var(--site-chrome-h, var(--header));
}

.site-header {
  position: relative;
  z-index: 40;
  height: var(--header);
  background: rgba(246, 244, 240, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 8px 24px rgba(20, 18, 14, 0.08);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.72) 0%,
      rgba(255, 255, 255, 0.46) 48%,
      rgba(246, 244, 240, 0.58) 100%
    );
  backdrop-filter: blur(28px) saturate(1.65);
  -webkit-backdrop-filter: blur(28px) saturate(1.65);
}

.site-header > *:not(.nav-primary) {
  position: relative;
  z-index: 1;
}

.header-inner {
  height: var(--header);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  padding: 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 8px 22px rgba(20, 18, 14, 0.08);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  display: block;
  height: 5.1rem;
  width: auto;
  object-fit: contain;
}

.logo-img-footer {
  height: 4.75rem;
  max-width: 100%;
}

.nav-primary {
  margin-left: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.header-actions .btn {
  min-height: 50px;
  height: 50px;
  padding: 0 1.05rem;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1;
}

.nav-list {
  display: flex;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-list a,
.nav-list .nav-drop-trigger {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.3;
}

.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .nav-drop.is-current .nav-drop-trigger,
.nav-list .nav-drop.is-open .nav-drop-trigger,
.nav-list .nav-drop-trigger:hover {
  color: var(--accent);
}

.nav-drop {
  position: relative;
}

.nav-drop-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
}

.nav-drop-chevron {
  font-size: 0.65rem;
  opacity: 0.55;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-drop.is-open .nav-drop-chevron {
  transform: rotate(180deg);
}

.nav-drop-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  background:
    linear-gradient(
      180deg,
      rgba(20, 18, 14, 0.18) 0%,
      rgba(20, 18, 14, 0.42) 100%
    );
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 420ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 420ms;
}

html.has-nav-drop-open .nav-drop-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-drop-panel {
  position: fixed;
  left: 50%;
  top: calc(var(--site-chrome-h, var(--header)) + 0.65rem);
  z-index: 110;
  width: min(22.5rem, calc(100vw - 1.5rem));
  max-height: min(72vh, 34rem);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -1.15rem) scale(0.98);
  transition:
    opacity 380ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 380ms;
}

.nav-drop.is-open .nav-drop-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.nav-drop-panel[hidden] {
  display: block !important;
}

.nav-drop-sheet {
  display: flex;
  flex-direction: column;
  max-height: inherit;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.78) 0%,
      rgba(246, 244, 240, 0.92) 100%
    );
  backdrop-filter: blur(28px) saturate(1.45);
  -webkit-backdrop-filter: blur(28px) saturate(1.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 28px 64px rgba(20, 18, 14, 0.18);
}

.nav-drop-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.05rem 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.nav-drop-sheet-title {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-3);
}

.nav-drop-close {
  position: relative;
  flex-shrink: 0;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0;
}

.nav-drop-close span,
.nav-drop-close span::before {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.85rem;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
}

.nav-drop-close span {
  transform: translate(-50%, -50%) rotate(45deg);
}

.nav-drop-close span::before {
  content: "";
  transform: translate(-50%, -50%) rotate(-90deg);
}

.nav-drop-close:hover,
.nav-drop-close:focus-visible {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(17, 17, 17, 0.18);
}

.nav-drop-sheet-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.35rem 0.55rem 0.7rem;
  -webkit-overflow-scrolling: touch;
}

.nav-drop-panel a {
  display: block;
  padding: 0.78rem 0.85rem;
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  border-radius: 14px;
  opacity: 0;
  transform: translateY(10px);
  transition:
    background 220ms var(--ease),
    color 220ms var(--ease),
    opacity 420ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-drop.is-open .nav-drop-panel a {
  opacity: 1;
  transform: translateY(0);
}

.nav-drop.is-open .nav-drop-sheet-body > a:nth-child(1) { transition-delay: 60ms; }
.nav-drop.is-open .nav-drop-sheet-body > a:nth-child(2),
.nav-drop.is-open .nav-drop-sheet-body > .nav-drop-divider + a { transition-delay: 95ms; }
.nav-drop.is-open .nav-drop-sheet-body > a:nth-child(3) { transition-delay: 130ms; }
.nav-drop.is-open .nav-drop-sheet-body > a:nth-child(4) { transition-delay: 165ms; }
.nav-drop.is-open .nav-drop-sheet-body > a:nth-child(5) { transition-delay: 200ms; }
.nav-drop.is-open .nav-drop-sheet-body > a:nth-child(6) { transition-delay: 235ms; }
.nav-drop.is-open .nav-drop-sheet-body > a:nth-child(7) { transition-delay: 270ms; }
.nav-drop.is-open .nav-drop-sheet-body > a:nth-child(8) { transition-delay: 305ms; }
.nav-drop.is-open .nav-drop-sheet-body > a:nth-child(9) { transition-delay: 340ms; }
.nav-drop.is-open .nav-drop-sheet-body > a:nth-child(n + 10) { transition-delay: 375ms; }

.nav-drop-panel a:hover,
.nav-drop-panel a:focus-visible {
  background: rgba(17, 17, 17, 0.05);
  color: var(--accent);
}

.nav-drop-panel a small {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-3);
  margin-top: 0.12rem;
}

.nav-drop-sheet-body > a:first-of-type {
  font-weight: 600;
}

.nav-drop-divider {
  height: 1px;
  background: rgba(17, 17, 17, 0.08);
  margin: 0.3rem 0.85rem;
}

html.has-nav-drop-open,
html.has-nav-drop-open body {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .nav-drop-backdrop,
  .nav-drop-panel,
  .nav-drop-panel a,
  .nav-drop-chevron {
    transition: none !important;
  }

  .nav-drop-panel a {
    opacity: 1;
    transform: none;
  }
}

.compliance-ribbon {
  margin-top: 1.35rem;
  font-size: 0.84rem;
  color: var(--text-3);
}

.compliance-ribbon a {
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 0.14em;
  text-decoration-color: var(--border);
}

.compliance-ribbon a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.compliance-ribbon-sep {
  margin: 0 0.45rem;
  opacity: 0.45;
}

.legal-hub-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 2rem;
}

.legal-hub-card {
  background: var(--bg-accent);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.15rem 1.1rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.legal-hub-card:hover {
  border-color: var(--accent-soft);
  color: inherit;
}

.legal-hub-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  margin: 0 0 0.65rem;
}

.legal-hub-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.legal-hub-card-list li {
  font-size: 0.84rem;
  color: var(--text-2);
  padding: 0.22rem 0;
}

.legal-hub-card-list li::before {
  content: "·";
  margin-right: 0.35rem;
  color: var(--text-3);
}

.page-hero--legal {
  padding: 2rem 0 0;
}

.page-hero--legal h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.page-hero--legal .lead {
  max-width: 42rem;
  font-size: 0.98rem;
  font-weight: 400;
  margin-bottom: 0;
}

.legal-hub-grid {
  margin-top: 1.35rem;
  margin-bottom: 0.5rem;
}

.legal-page .section {
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
}

.legal-page .section h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  margin-bottom: 0.55em;
}

.legal-page .section h3 {
  font-size: 1.1rem;
  margin: 1.1em 0 0.4em;
}

.legal-toc-sticky {
  position: sticky;
  top: var(--chrome);
  z-index: 25;
  background: rgba(244, 243, 241, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 0 0.75rem;
}

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: 0;
}

.legal-toc-label {
  width: 100%;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.25rem;
}

.legal-toc a {
  font-size: 0.88rem;
  color: var(--text-2);
  text-decoration: none;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.legal-doc-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.legal-doc-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
}

.legal-doc-list li:last-child {
  border-bottom: 0;
}

.legal-doc-list a {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.14em;
  text-decoration-color: var(--border);
}

.legal-doc-list a:hover {
  text-decoration-color: var(--accent);
}

.legal-doc-link a {
  font-weight: 600;
}

.legal-doc-download {
  margin-top: 1.5rem;
}

.nav-drop-mobile-label {
  display: none;
}

.header-phone {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.08);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(17, 17, 17, 0.14);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  position: relative;
  margin: 0 auto;
  pointer-events: none;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.hero {
  padding-block: clamp(1.5rem, 4vw, 2.75rem) clamp(2rem, 5vw, 3.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.25rem;
  align-items: center;
}

.hero-kicker {
  margin: 0 0 0.85rem;
  color: var(--text-2);
  font-size: 0.92rem;
}

.hero-copy h1 {
  max-width: 22ch;
}

.hero-lead {
  max-width: 38rem;
}

.hero-lead p,
.hero-lead {
  margin-bottom: 0;
}

/* Hero поверх фонового видео: только видео + надпись справа снизу */
.hero--cinema {
  position: relative;
  min-height: calc(100svh - var(--site-chrome-h, var(--chrome)));
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding-block: 0 clamp(1.25rem, 3vw, 2.25rem);
  box-sizing: border-box;
}

.hero--cinema .hero-cinema {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.hero--cinema .hero-caption {
  margin: 0;
  max-width: min(18rem, 72vw);
  padding: 0.7rem 0.95rem;
  border: 1px solid rgba(244, 243, 241, 0.88);
  background: rgba(16, 16, 16, 0.28);
  backdrop-filter: blur(8px) saturate(1.05);
  -webkit-backdrop-filter: blur(8px) saturate(1.05);
  color: #f4f3f1;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-wrap: balance;
  animation: hero-copy-in 700ms var(--ease) both;
}

@keyframes hero-copy-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero--cinema .hero-caption {
    animation: none;
  }
}

@media (max-width: 720px) {
  .hero--cinema {
    min-height: calc(100svh - var(--site-chrome-h, var(--chrome)));
    padding-block: 0 5.75rem;
  }

  .hero--cinema .hero-caption {
    max-width: min(16.5rem, 88vw);
    font-size: clamp(1rem, 4.6vw, 1.2rem);
    padding: 0.65rem 0.8rem;
  }
}

.hero-stage {
  position: relative;
  min-height: 26rem;
}

.hero-photo {
  position: relative;
  z-index: 1;
  margin: 0;
  width: 78%;
  margin-left: auto;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  filter: grayscale(0.42) contrast(1.06);
  background: var(--bg-2, #eceae4);
}

.site-bg-video {
  position: fixed;
  /* На весь экран, включая зону под прозрачной шапкой */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  max-height: none;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-color: #111;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.site-bg-video__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center;
  opacity: 1;
  filter: none;
  transform: none;
}

body:has(.site-bg-video) {
  background: #f4f3f1;
}

body:has(.site-bg-video) .site-chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
}

body:has(.site-bg-video) .a11y-bar {
  background: #111111;
}

body:has(.site-bg-video) .site-header {
  background: rgba(255, 255, 255, 0.2);
}

body:has(.site-bg-video) .site-header::before {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.4) 0%,
      rgba(255, 255, 255, 0.16) 52%,
      rgba(255, 255, 255, 0.22) 100%
    );
  backdrop-filter: blur(32px) saturate(1.75);
  -webkit-backdrop-filter: blur(32px) saturate(1.75);
}

body:has(.site-bg-video) .site-main,
body:has(.site-bg-video) .site-footer {
  position: relative;
  z-index: 1;
}

/* .sticky-cta stays position:fixed (see the mobile rule below); its own
   z-index: 30 already paints above the z-index: 0 background video, so it
   doesn't need repositioning — doing so used to drop it into normal flow
   and leave an uncovered gap at the end of the document. */

/* Фоновое видео работает только как первый экран; контент ниже читается
   на сплошной поверхности независимо от текущего кадра ролика. */
.home:has(.site-bg-video) .hero ~ .section:not(.section-alt):not(.section-ink) {
  background: var(--bg);
}

body:has(.site-bg-video) .hero-kicker,
body:has(.site-bg-video) .hero-lead,
body:has(.site-bg-video) .section:not(.section-ink) .section-head .muted,
body:has(.site-bg-video) .section:not(.section-ink) .lead {
  color: #111;
}

body:has(.site-bg-video) .section:not(.section-ink) .section-head .muted,
body:has(.site-bg-video) .section:not(.section-ink) .lead:not(.hero-lead) {
  text-shadow: 0 1px 2px rgba(244, 243, 241, 0.85);
}

html.is-a11y .site-bg-video {
  display: none;
}

.hero-photo-small {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 8%;
  width: 42%;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid var(--bg);
}

.hero-photo-small img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 14%;
  display: block;
  filter: grayscale(0.22) contrast(1.05);
}

.hero .actions {
  flex-wrap: wrap;
}

.trust-row {
  border-top: 1px solid var(--border);
  padding-block: 0;
}

.trust-line {
  max-width: 48rem;
  color: var(--text-2);
}

.trust-line strong {
  color: var(--text);
  font-weight: 600;
}

.visit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.visit-card {
  background: var(--bg-accent);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.visit-card:has(.visit-card-photo) {
  padding: 0 0 1.4rem;
}

.visit-card:has(.visit-card-photo) h3,
.visit-card:has(.visit-card-photo) p {
  padding-left: 1.4rem;
  padding-right: 1.4rem;
}

.visit-card:has(.visit-card-photo) h3 {
  margin: 1.1rem 0 0.4rem;
}

.visit-card-photo {
  margin: 0;
}

.visit-card-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  filter: grayscale(0.35) contrast(1.05);
}

.doctor-ph {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #ebe8e2 0%, #ddd8d0 100%);
  color: #6f6b63;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: 0.04em;
}

.doctor-ph::after {
  content: "Фото скоро";
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a857c;
}

.editorial-doctor-photo,
.doctor-profile-photo,
.index-row-media,
.card-media {
  position: relative;
}

.reel-nav {
  display: flex;
  gap: 0.45rem;
  flex-shrink: 0;
}

.reel-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: var(--r-md);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  line-height: 1;
}

.reel-btn:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.doctor-reel {
  margin-top: 2rem;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  mask-image: linear-gradient(90deg, transparent, #000 3rem, #000 calc(100% - 3rem), transparent);
}

.review-reel {
  touch-action: pan-x;
}

.review-band.is-native-scroll .review-reel {
  overflow-x: auto;
  overflow-y: hidden;
  cursor: default;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  mask-image: none;
}

.review-band.is-native-scroll .review-reel::-webkit-scrollbar {
  display: none;
}

.review-band.is-native-scroll .doctor-reel-track {
  transform: none !important;
  animation: none !important;
  will-change: auto;
}

.review-band.is-native-scroll .doctor-reel-set[aria-hidden="true"] {
  display: none;
}

.review-band.is-native-scroll .review-card-film {
  scroll-snap-align: center;
}

.doctor-reel.is-dragging {
  cursor: grabbing;
}

.doctor-reel.is-dragging a,
.doctor-reel.is-dragging button {
  pointer-events: none;
}

.doctor-reel-meter {
  position: relative;
  height: 1px;
  margin-top: 1.6rem;
  background: var(--border);
}

.doctor-reel-meter-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 28%;
  height: 1px;
  background: var(--accent);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.doctor-reel-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: doctor-reel 42s linear infinite;
}

.doctor-band.is-manual .doctor-reel-track {
  animation: none;
}

.doctor-reel-set {
  display: flex;
  gap: 1.1rem;
  padding-right: 1.1rem;
}

.doctor-reel .visit-card {
  flex: 0 0 min(68vw, 220px);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

@keyframes doctor-reel {
  to {
    transform: translateX(-50%);
  }
}

.clinic-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 1.5rem;
  height: auto;
  aspect-ratio: 2 / 1;
}

.clinic-mosaic figure {
  margin: 0;
  min-height: 0;
  height: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-accent);
}

.clinic-mosaic a {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.clinic-mosaic img,
.page-hero .clinic-mosaic-wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 0;
  filter: grayscale(0.38) contrast(1.05);
}

.page-hero .clinic-mosaic-wide {
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.page-hero .clinic-mosaic .clinic-mosaic-wide img {
  min-height: 0;
  aspect-ratio: auto;
}

.clinic-mosaic-wide {
  grid-row: span 2;
}

.clinic-mosaic-wide img {
  min-height: 380px;
}

.clinic-mosaic .clinic-mosaic-wide img {
  min-height: 0;
}

.device-mosaic {
  display: grid;
  gap: 0.7rem;
  width: 100%;
}

.device-mosaic[data-count="1"] {
  grid-template-columns: 1fr;
  height: min(52vh, 560px);
}

.device-mosaic[data-count="2"] {
  grid-template-columns: 1.12fr 1fr;
  height: min(46vh, 500px);
}

.device-mosaic[data-count="3"] {
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: min(58vh, 640px);
}

.device-mosaic[data-count="3"] .device-tile:nth-child(1) {
  grid-row: 1 / 3;
}

.device-mosaic[data-count="4"] {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: min(64vh, 700px);
}

.device-mosaic[data-count="5"] {
  grid-template-columns: 1.25fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: min(62vh, 680px);
}

.device-mosaic[data-count="5"] .device-tile:nth-child(1) {
  grid-row: 1 / 3;
}

.device-mosaic[data-count="6"] {
  grid-template-columns: 1.12fr 1.12fr 1fr;
  grid-template-rows: 1.12fr 1.12fr 1fr;
  height: min(74vh, 820px);
}

.device-mosaic[data-count="6"] .device-tile:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.device-mosaic[data-count="6"] .device-tile:nth-child(2) {
  grid-column: 3;
  grid-row: 1;
}

.device-mosaic[data-count="6"] .device-tile:nth-child(3) {
  grid-column: 3;
  grid-row: 2;
}

.device-mosaic[data-count="7"] {
  grid-template-columns: 1.12fr 1.12fr 1fr;
  grid-template-rows: 1.08fr 1.08fr 0.92fr 0.82fr;
  height: min(86vh, 940px);
}

.device-mosaic[data-count="7"] .device-tile:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.device-mosaic[data-count="7"] .device-tile:nth-child(2) {
  grid-column: 3;
  grid-row: 1;
}

.device-mosaic[data-count="7"] .device-tile:nth-child(3) {
  grid-column: 3;
  grid-row: 2;
}

.device-mosaic[data-count="7"] .device-tile:nth-child(7) {
  grid-column: 1 / -1;
}

.device-mosaic-pack {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(200px, 26vh);
}

.device-mosaic-pack .device-tile:last-child:nth-child(3n + 1) {
  grid-column: 1 / -1;
}

.device-mosaic-pack .device-tile:last-child:nth-child(3n + 2) {
  grid-column: span 2;
}

.device-tile {
  position: relative;
  display: block;
  min-height: 0;
  height: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-accent);
  color: inherit;
  text-decoration: none;
}

.device-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  filter: grayscale(0.4) contrast(1.05);
  transition: filter 0.35s ease;
}

.device-tile:hover img {
  filter: grayscale(0.12) contrast(1.06);
}

.device-tile-lead img,
.device-tile--ultraformer-mrt img {
  object-position: 40% 28%;
}

.device-tile--volnewmer img {
  object-position: 28% 42%;
}

.device-tile--r-sleek img,
.device-tile--b-flexy img {
  object-position: center 52%;
}

.device-tile-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: #f3f2ef;
}

.device-tile-body .index-row-title {
  color: #f3f2ef;
}

.device-tile-lead .device-tile-body {
  padding: 1.4rem 1.5rem;
}

.device-tile-lead .index-row-title {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.review-reel {
  margin-top: 2rem;
}

.review-reel .review-card {
  position: relative;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #161616;
}

.review-reel .review-card-film {
  flex: 0 0 min(54vw, 214px);
  aspect-ratio: 9 / 15;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.review-card img,
.review-film-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-film-video {
  background: #111;
  pointer-events: none;
}

.review-film-video::-webkit-media-controls {
  display: none !important;
}

.review-quotes {
  margin-top: 2.4rem;
}

.review-quotes .doctor-reel {
  margin-top: 0;
  mask-image: none;
}

.review-quote {
  flex: 0 0 min(80vw, 36rem);
  margin: 0;
  padding: 0 2.2rem 0 0;
  border: 0;
}

.review-quote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.4;
  color: #f3f2ef;
}

.review-quote p::before {
  content: "« ";
}

.review-quote p::after {
  content: " »";
}

.review-quote .review-author {
  margin-top: 0.9rem;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a9a9a;
}

.review-film-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 1rem 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  background: linear-gradient(180deg, transparent 42%, rgba(10, 10, 10, 0.55) 100%);
  color: #f3f2ef;
  cursor: pointer;
  text-align: left;
}

.review-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: max(0.75rem, env(safe-area-inset-top)) 0.75rem max(0.75rem, env(safe-area-inset-bottom));
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
}

.review-overlay[hidden] {
  display: none;
}

.review-overlay-frame {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: calc(100vw - 1.5rem);
}

.review-overlay-stage {
  position: relative;
  height: min(88dvh, calc(100dvh - 4.5rem));
  width: fit-content;
  max-width: min(100vw, calc(100vw - 7.2rem));
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 28px 64px rgba(0, 0, 0, 0.45);
}

.review-overlay-video {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  background: #000;
  object-fit: contain;
}

.review-overlay-close,
.review-overlay-nav {
  z-index: 2;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 10px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px) saturate(1.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.review-overlay-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.75rem;
  height: 2.75rem;
  font-family: var(--font-sans);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
}

.review-overlay-nav {
  width: 2.75rem;
  height: 2.75rem;
}

.review-overlay-nav svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.review-overlay-close:hover,
.review-overlay-nav:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.04);
}

.review-overlay.is-single .review-overlay-nav {
  display: none;
}

.photo-overlay-image {
  display: block;
  height: min(88dvh, calc(100dvh - 4.5rem));
  width: auto;
  max-width: min(92vw, 1100px);
  object-fit: contain;
  background: #111;
}

@media (max-width: 720px) {
  .review-overlay-frame {
    gap: 0.55rem;
  }

  .review-overlay-stage {
    max-width: calc(100vw - 5.5rem);
    border-radius: 20px;
  }

  .review-overlay-close {
    top: 0.7rem;
    right: 0.7rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  .review-overlay-nav {
    width: 2.5rem;
    height: 2.5rem;
  }
}

html.is-review-open,
html.is-review-open body {
  overflow: hidden;
}

.review-film-play:hover .review-play-mark {
  background: #f3f2ef;
  color: #111;
}

.review-play-mark {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: auto;
  min-width: 3.4rem;
  height: 2rem;
  padding: 0 0.7rem;
  border: 1px solid rgba(243, 242, 239, 0.55);
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(12, 12, 12, 0.42);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.review-film-caption {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.15;
}

.section-ink .doctor-reel-meter {
  background: rgba(243, 242, 239, 0.16);
}

.section-ink .doctor-reel-meter-bar {
  background: #f3f2ef;
}

.glass-card {
  background: rgba(255, 255, 255, 0.82);
  border-radius: var(--r-lg);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow);
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.site-footer {
  padding: 3.5rem 0 2rem;
  background: var(--bg-ink);
  color: #bdbdbd;
  border-top: 0;
  position: relative;
  z-index: 1;
}

.site-footer .logo-img {
  filter: invert(1);
}

.site-footer a {
  color: #f3f2ef;
}

.site-footer a:hover {
  color: #ffffff;
}

.site-footer .muted,
.site-footer .small,
.site-footer .disclaimer {
  color: #8f8f8f;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem 2.5rem;
  align-items: start;
}

.footer-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-brand .logo {
  display: inline-flex;
  width: fit-content;
}

.footer-tagline {
  margin: 0;
  max-width: 16rem;
  line-height: 1.55;
  color: #8f8f8f;
  overflow-wrap: break-word;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 0.15rem;
}

.footer-socials a {
  font-size: 0.92rem;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: #f3f2ef;
  margin: 0;
  line-height: 1.2;
}

.footer-links,
.footer-contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-links a,
.footer-contacts a {
  text-decoration: none;
}

.footer-links a:hover,
.footer-contacts a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.footer-contacts li {
  line-height: 1.45;
}

.footer-cta-text {
  margin: 0;
  color: #8f8f8f;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 16rem;
}

.footer-cta .btn {
  align-self: flex-start;
  margin-top: 0.1rem;
}

.footer-cta-phone {
  font-size: 0.95rem;
  text-decoration: none;
}

.footer-cta-phone:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.site-footer .btn-primary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
}

.site-footer .btn-primary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.42);
}

.footer-meta {
  margin-top: 2.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid #2a2a2a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem 2rem;
}

.footer-meta .disclaimer {
  margin: 0;
  max-width: 34rem;
  font-size: 0.85rem;
  line-height: 1.45;
}

.footer-meta-side {
  display: none;
}

.footer-bottom {
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid #2a2a2a;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.85rem 1.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #8f8f8f;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
}

.footer-bottom a {
  white-space: nowrap;
}

.footer-tools,
.footer-tools-search {
  display: none;
}

.footer-maker-link {
  display: inline-block;
  flex-shrink: 0;
  margin: 0;
  line-height: 0;
  text-decoration: none !important;
  color: inherit;
  border: 0;
  outline-offset: 3px;
}

.footer-maker-link:hover,
.footer-maker-link:focus-visible {
  text-decoration: none !important;
  color: inherit;
}

.footer-maker-logo {
  display: none;
  width: 9.5rem;
  height: auto;
  max-width: 42vw;
}

.footer-maker-logo--light {
  display: block;
  width: 9.5rem;
  height: auto;
  max-width: 42vw;
}

.page-hero {
  padding: 2.25rem 0 0.75rem;
}

.service-hero-media {
  min-height: 360px;
  border-radius: var(--r-lg);
  overflow: hidden;
}

/* Компактные каталоги: услуги, аппараты, врачи */
.post-type-archive-service,
.post-type-archive-device,
.post-type-archive-specialist,
.tax-service_cat,
.single-service,
.single-device,
.single-specialist {
  --fs-h1: clamp(1.55rem, 2.8vw, 1.9rem);
  --fs-h2: clamp(1.2rem, 2vw, 1.45rem);
  --fs-h3: 1.05rem;
  --section: clamp(1.35rem, 2.5vw, 2rem);
  --fs-body: 0.9375rem;
}

.post-type-archive-service .archive-intro,
.post-type-archive-device .archive-intro,
.post-type-archive-specialist .archive-intro,
.tax-service_cat .archive-intro,
.single-service .page-hero,
.single-device .page-hero,
.single-specialist .page-hero {
  padding: 1.15rem 0 0;
}

.post-type-archive-service .lead,
.post-type-archive-device .lead,
.post-type-archive-specialist .lead,
.tax-service_cat .lead,
.single-service .page-hero .lead,
.single-device .page-hero .lead,
.single-specialist .page-hero .lead {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.post-type-archive-service h1,
.post-type-archive-device h1,
.post-type-archive-specialist h1,
.tax-service_cat h1 {
  margin-bottom: 0.35em;
}

.catalog-group-title {
  margin: 1.35rem 0 0.35rem;
  font-size: var(--fs-h2);
}

.catalog-group-title:first-child {
  margin-top: 0;
}

.post-type-archive-service .index-row,
.tax-service_cat .index-row {
  grid-template-columns: minmax(7.5rem, 11rem) 1fr auto;
  gap: 0.65rem 1rem;
  padding: 0.55rem 0;
  font-size: 0.9375rem;
}

.post-type-archive-specialist .index-row--doctor {
  grid-template-columns: 3.5rem minmax(8rem, 14rem) 1fr;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.7rem 0;
  font-size: 0.9375rem;
}

.post-type-archive-specialist .index-row-media {
  display: block;
  width: 3.5rem;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-alt);
}

.post-type-archive-specialist .index-row-media img,
.post-type-archive-specialist .index-row-media .doctor-ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: auto;
  font-size: 1rem;
  filter: grayscale(0.35) contrast(1.05);
}

.post-type-archive-service .index-row-title,
.post-type-archive-specialist .index-row-title,
.tax-service_cat .index-row-title {
  font-size: 0.98rem;
}

.post-type-archive-service .protocol-gallery-frame {
  min-height: 20rem;
}

.post-type-archive-service .protocol-split {
  gap: 1.5rem;
  align-items: start;
}

.post-type-archive-device .device-row {
  grid-template-columns: 3.75rem minmax(6rem, 9rem) 1fr;
  gap: 0.75rem 1rem;
  padding: 0.55rem 0;
  font-size: 0.9375rem;
}

.post-type-archive-device .device-thumb {
  aspect-ratio: 1;
}

.post-type-archive-device .index-row-title {
  font-size: 0.98rem;
}

.single-service .page-hero,
.single-device .page-hero,
.single-specialist .page-hero {
  padding-bottom: 0.35rem;
}

.single-service .service-top {
  padding: 1.15rem 0 0;
}

.single-service .service-top-grid {
  display: grid;
  grid-template-columns: minmax(15rem, 22rem) minmax(0, 1fr);
  grid-template-areas:
    "media copy"
    "media prose";
  gap: 1rem 2rem;
  align-items: start;
}

.single-service .service-hero-media {
  grid-area: media;
  min-height: 0;
  height: 100%;
  aspect-ratio: auto;
  max-height: none;
  position: sticky;
  top: calc(var(--header) + 1rem);
  overflow: hidden;
  border-radius: var(--r-lg);
  align-self: stretch;
}

.single-service .service-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: cover;
  object-position: center 28%;
  display: block;
  filter: grayscale(0.35) contrast(1.05);
}

.single-service .service-top-copy {
  grid-area: copy;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

.single-service .service-top-copy h1 {
  margin: 0;
  line-height: 1.15;
}

.single-service .service-top-copy .lead {
  font-size: 1rem;
  line-height: 1.45;
  margin: 0;
  max-width: 36rem;
}

.single-service .service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.75rem;
  margin: 0.1rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.single-service .service-meta > div {
  margin: 0;
}

.single-service .service-meta dt,
.single-specialist .meta-list dt {
  font-size: 0.75rem;
}

.single-service .meta-list,
.single-specialist .meta-list {
  gap: 0.55rem;
  margin: 0.85rem 0;
}

.single-service .service-book {
  margin-top: 0.25rem;
  padding-top: 0;
  border-top: 0;
}

.single-service .service-prose {
  grid-area: prose;
  max-width: 40rem;
  margin: 0;
  padding-top: 0.15rem;
}

.single-service .service-prose > *:first-child {
  margin-top: 0;
}

.single-service .service-prose p {
  margin: 0 0 0.85em;
}

.single-service .section h2,
.single-specialist .section h2,
.single-device .page-hero h1 {
  font-size: var(--fs-h2);
}

.single-service .disclaimer {
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 0.78rem;
}

.archive-intro {
  padding: 1.15rem 0 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.split:not(:has(img)):not(:has(iframe)) {
  grid-template-columns: minmax(0, 40rem);
}

.protocol-split {
  align-items: stretch;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 2.2rem;
}

.protocol-copy .section-head {
  margin-bottom: 1.5rem;
}

.protocol-gallery {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.protocol-gallery-frame {
  position: relative;
  flex: 1 1 auto;
  min-height: 26rem;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-accent);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.protocol-gallery-frame.is-dragging {
  cursor: grabbing;
}

.protocol-gallery-track {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 0.7rem;
  will-change: transform;
}

.protocol-slide {
  flex: 0 0 calc(100% - 1.35rem);
  height: 100%;
  margin: 0;
}

.protocol-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  filter: grayscale(0.38) contrast(1.05);
  pointer-events: none;
}

.protocol-gallery .doctor-reel-meter {
  margin-top: 1rem;
}

.home .section-protocols {
  padding-block: clamp(1.5rem, 3vw, 2.4rem);
}

.home .section-protocols .protocol-split {
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 1.4rem;
  align-items: start;
}

.home .section-protocols .protocol-gallery-frame {
  min-height: 16rem;
  aspect-ratio: 4 / 5;
  max-height: 22rem;
}

.home .section-protocols .protocol-gallery .doctor-reel-meter {
  margin-top: 0.65rem;
}

.home .section-protocols .section-head {
  margin-bottom: 0.75rem;
}

.home .section-protocols .section-head h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  margin-bottom: 0.35em;
}

.home .section-protocols .section-head .muted {
  font-size: 0.9rem;
}

.home .section-protocols .index-row,
.home .section-protocols .index-row--plain {
  grid-template-columns: minmax(7.5rem, 11rem) 1fr;
  gap: 0.55rem 0.9rem;
  padding: 0.55rem 0;
  font-size: 0.92rem;
}

.home .section-protocols .index-row-title {
  font-size: 0.98rem;
}

.home .section-protocols .index-row-text {
  font-size: 0.875rem;
}

.meta-list {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0;
}

.meta-list dt {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-2);
}

.meta-list dd {
  margin: 0.2rem 0 0;
}

.map {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--bg-alt);
}

.map--fill {
  display: block;
  height: 100%;
  min-height: 0;
}

.map--contacts {
  display: block;
  width: 100%;
  height: clamp(22rem, 48vh, 32rem);
  min-height: 22rem;
  border-radius: 0;
}

.map--home {
  display: block;
  width: 100%;
  height: clamp(18rem, 42vh, 28rem);
  min-height: clamp(18rem, 42vh, 28rem);
  border-radius: 0;
}

.contacts-page {
  padding: 1.5rem 0 0;
}

.contacts-head {
  margin-bottom: 1.75rem;
}

.contacts-head h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.contacts-lead {
  margin: 0;
  max-width: 40rem;
  color: var(--text-2);
  font-size: 1.05rem;
}

.contacts-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.contacts-fact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.15rem 1.1rem 1.2rem;
  text-decoration: none;
  color: inherit;
  border-right: 1px solid var(--border);
  min-width: 0;
  transition: background var(--dur) var(--ease);
}

.contacts-fact:last-child {
  border-right: 0;
}

a.contacts-fact:hover {
  background: var(--bg-accent);
}

.contacts-fact-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
}

.contacts-fact-value {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  word-break: break-word;
}

.contacts-fact-hint {
  margin-top: 0.15rem;
  font-size: 0.88rem;
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.contacts-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.35rem 0 1.75rem;
}

.contacts-toolbar--compact {
  margin: 1rem 0 0;
}

.contacts-map-band {
  padding: 0;
  margin: 0;
}

.contacts-bottom {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2rem 3rem;
  padding: 2.25rem 0 3rem;
  align-items: start;
}

.contacts-howto h2,
.contacts-form-block h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
}

.contacts-howto-list {
  margin: 0 0 1.25rem;
  padding-left: 1.1rem;
  color: var(--text-2);
}

.contacts-howto-list li + li {
  margin-top: 0.35rem;
}

.contacts-howto-photo {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-accent);
  aspect-ratio: 3 / 2;
  max-width: 28rem;
}

.contacts-howto-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.22) contrast(1.04);
}

.contacts-form-block .muted {
  margin: 0 0 1rem;
}

.contacts-home {
  padding-bottom: 0;
}

.contacts-home-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
}

.contacts-home-info {
  padding-bottom: 1.5rem;
}

.contacts-home-info h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.2;
}

.contacts-home-phone {
  margin: 0.75rem 0 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.contacts-home-map {
  width: 100%;
  min-width: 0;
}

.sticky-cta {
  display: none;
}

.site-main {
  min-height: 50vh;
}

.prose {
  max-width: var(--measure);
}

.prose h2 {
  margin-top: 2rem;
}

.privacy-prose {
  max-width: 48rem;
}

.privacy-prose h3 {
  margin-top: 1.5rem;
  font-size: 1.15rem;
}

.privacy-prose ul {
  margin: 0.75rem 0 1.1rem;
  padding-left: 1.2rem;
}

.privacy-prose li + li {
  margin-top: 0.35rem;
}

.privacy-scans {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.privacy-scan {
  margin: 0;
  background: var(--bg-accent);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.privacy-scan a {
  display: block;
}

.privacy-scan img {
  display: block;
  width: 100%;
  height: auto;
}

.privacy-scan figcaption {
  padding: 0.55rem 0.85rem 0.7rem;
}

.disclaimer {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-2);
}

@media (max-width: 960px) {
  .hero-grid,
  .split,
  .cta-inner,
  .visit-grid,
  .contacts-bottom,
  .service-top-grid {
    grid-template-columns: 1fr;
  }

  .single-service .service-top-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "copy"
      "prose";
    gap: 1rem;
  }

  .single-service .service-hero-media {
    position: static;
    aspect-ratio: 16 / 10;
    max-height: 16rem;
    height: auto;
  }

  .single-service .service-hero-media img {
    min-height: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 1.5rem;
  }

  .contacts-facts {
    grid-template-columns: 1fr 1fr;
  }

  .contacts-fact:nth-child(2n) {
    border-right: 0;
  }

  .contacts-fact:nth-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

  .map--contacts {
    height: min(58dvh, 24rem);
    min-height: 18rem;
    border-radius: 0;
  }

  .map--home {
    height: min(52dvh, 22rem);
    min-height: min(52dvh, 22rem);
  }

  .contacts-howto-photo {
    max-width: none;
  }

  .clinic-mosaic {
    aspect-ratio: 2 / 1;
    height: auto;
    gap: 0.45rem;
  }

  .doctor-reel {
    mask-image: linear-gradient(90deg, transparent, #000 1.2rem, #000 calc(100% - 1.2rem), transparent);
  }

  .device-mosaic,
  .device-mosaic[data-count] {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    grid-auto-rows: auto;
    height: auto;
  }

  .device-mosaic .device-tile,
  .device-mosaic[data-count] .device-tile:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .device-mosaic .device-tile:nth-child(1) {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }

  .review-reel .review-card-film {
    flex: 0 0 auto;
    width: min(46vw, 176px);
    height: auto;
    max-height: min(52dvh, 22rem);
    aspect-ratio: 9 / 15;
  }

  .review-quote {
    flex-basis: min(86vw, 34rem);
  }

  .hero-stage {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 0.7rem;
    min-height: 0;
    align-items: stretch;
  }

  .hero-photo {
    width: 100%;
    margin: 0;
  }

  .protocol-split,
  .home .section-protocols .protocol-split {
    grid-template-columns: 1fr;
  }

  .protocol-gallery-frame {
    min-height: 22rem;
  }

  .home .section-protocols .index-row,
  .home .section-protocols .index-row--plain {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.15rem;
  }

  .hero-photo-small {
    position: static;
    width: 100%;
    border-width: 0;
  }

  .clinic-mosaic-wide img {
    min-height: 220px;
  }

  .clinic-mosaic .clinic-mosaic-wide img {
    min-height: 0;
  }

  .header-phone {
    display: none;
  }
}

@media (max-width: 720px) {
  .post-type-archive-service .index-row,
  .tax-service_cat .index-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.25rem 0.75rem;
  }

  .post-type-archive-service .index-row-text,
  .tax-service_cat .index-row-text {
    grid-column: 1 / -1;
  }

  .post-type-archive-service .index-row-meta,
  .tax-service_cat .index-row-meta {
    grid-column: 2;
    grid-row: 1;
    white-space: nowrap;
  }

  .post-type-archive-device .device-row {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    grid-template-areas:
      "media title"
      "media text";
    gap: 0.2rem 0.75rem;
    align-items: start;
  }

  .post-type-archive-device .device-thumb {
    grid-area: media;
    width: 4.5rem;
  }

  .post-type-archive-device .index-row-title {
    grid-area: title;
  }

  .post-type-archive-device .index-row-text {
    grid-area: text;
  }

  .post-type-archive-specialist .index-row--doctor {
    grid-template-columns: 3.5rem minmax(0, 1fr);
    grid-template-areas:
      "media title"
      "media text";
    gap: 0.2rem 0.75rem;
    align-items: start;
  }

  .post-type-archive-specialist .index-row-media {
    grid-area: media;
  }

  .post-type-archive-specialist .index-row-title {
    grid-area: title;
  }

  .post-type-archive-specialist .index-row-text {
    grid-area: text;
  }

  .price-row > div:first-child {
    grid-column: 1;
    grid-row: 1 / span 2;
    min-width: 0;
  }

  .price-row > .small {
    grid-column: 2;
    grid-row: 2;
    text-align: right;
  }

  .price-row > strong {
    grid-column: 2;
    grid-row: 1;
    white-space: nowrap;
  }

  .footer-tools {
    flex-wrap: wrap;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .contacts-facts {
    grid-template-columns: 1fr;
  }

  .contacts-fact {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .contacts-fact:last-child {
    border-bottom: 0;
  }

  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta-side {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .footer-meta-side .site-search {
    min-width: 0;
    flex: 1 1 12rem;
  }

  .footer-maker-link {
    margin-left: auto;
  }

  .footer-maker-logo,
  .footer-maker-logo--light {
    width: 8rem;
    height: auto;
  }

  .review-band {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
  }

  .review-reel {
    mask-image: none;
    padding-inline: var(--gutter);
  }

  .review-band.is-native-scroll .review-reel {
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
  }

  .review-reel .doctor-reel-set {
    gap: 0.75rem;
    padding-right: 0.75rem;
  }

  .review-reel .review-card {
    border-radius: 18px;
  }

  .review-reel .review-card-film {
    flex: 0 0 auto;
    width: min(44vw, 158px);
    max-width: 158px;
    height: auto;
    max-height: min(48dvh, 20rem);
    aspect-ratio: 9 / 15;
  }

  .review-band .doctor-reel-meter {
    margin-inline: var(--gutter);
  }
}

@media (max-width: 520px) {
  .hero-stage {
    grid-template-columns: 1fr;
  }

  .legal-hub-grid {
    grid-template-columns: 1fr;
  }

  .device-mosaic,
  .device-mosaic[data-count] {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .device-mosaic .device-tile:nth-child(1) {
    grid-column: auto;
    aspect-ratio: 5 / 4;
  }

  .device-mosaic .device-tile:nth-child(n + 2) {
    aspect-ratio: 16 / 10;
  }

  .clinic-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    aspect-ratio: auto;
  }

  .clinic-mosaic-wide {
    grid-row: auto;
  }

  .clinic-mosaic figure {
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 820px) {
  .site-chrome,
  body:has(.site-bg-video) .site-chrome {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    isolation: auto;
  }

  .header-tools {
    margin-left: auto;
  }

  .header-actions {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-inner .btn {
    display: none;
  }

  .nav-primary {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--site-chrome-h, var(--header));
    z-index: 120;
    width: 100%;
    max-height: calc(100vh - var(--site-chrome-h, var(--header)));
    max-height: calc(100dvh - var(--site-chrome-h, var(--header)));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.72) 0%,
        rgba(246, 244, 240, 0.88) 100%
      );
    backdrop-filter: blur(28px) saturate(1.45);
    -webkit-backdrop-filter: blur(28px) saturate(1.45);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.55),
      0 24px 48px rgba(20, 18, 14, 0.14);
    padding: 1.15rem var(--gutter) calc(6.75rem + env(safe-area-inset-bottom));
  }

  .is-nav-open .nav-primary,
  html.has-nav-open .nav-primary {
    display: block;
  }

  .is-nav-open .nav-primary[hidden],
  html.has-nav-open .nav-primary[hidden] {
    display: block;
  }

  html.has-nav-open .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 1.65rem;
  }

  html.has-nav-open .nav-list > li:not(.nav-drop) > a {
    display: block;
    padding: 0.35rem 0;
    font-size: 1.08rem;
    font-weight: 500;
    letter-spacing: -0.01em;
  }

  html.has-nav-open,
  html.has-nav-open body {
    overflow: hidden;
  }

  .is-nav-open .nav-toggle span,
  html.has-nav-open .nav-toggle span {
    background: transparent;
  }

  .is-nav-open .nav-toggle span::before,
  html.has-nav-open .nav-toggle span::before {
    top: 0;
    transform: rotate(45deg);
  }

  .is-nav-open .nav-toggle span::after,
  html.has-nav-open .nav-toggle span::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .nav-drop-backdrop {
    display: none !important;
  }

  .nav-drop-panel {
    position: static;
    left: auto;
    top: auto;
    width: auto;
    min-width: 0;
    max-height: none;
    margin-top: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: none;
  }

  .nav-drop-panel[hidden] {
    display: block !important;
  }

  .nav-drop.is-open .nav-drop-panel {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-drop-sheet {
    display: block;
    max-height: none;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }

  .nav-drop-sheet-head {
    display: none;
  }

  .nav-drop-sheet-body {
    overflow: visible;
    padding: 0;
  }

  .nav-list .nav-drop {
    width: 100%;
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
  }

  .nav-drop-mobile-label {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-3);
    margin: 0 0 0.55rem;
    font-weight: 500;
  }

  .nav-drop-trigger {
    display: none;
  }

  .nav-drop-panel a {
    display: block;
    font-weight: 400;
    font-size: 1.02rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--text);
    padding: 0.48rem 0;
    border-radius: 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
    background: transparent;
    opacity: 1;
    transform: none;
    transition: color 220ms var(--ease);
  }

  .nav-drop-panel a:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .nav-drop-sheet-body > a:first-of-type,
  .nav-drop-panel a:first-child {
    font-weight: 600;
    color: var(--text);
  }

  .nav-drop-panel a:hover,
  .nav-drop-panel a:focus-visible {
    background: transparent;
    color: var(--accent);
  }

  .nav-drop-divider {
    display: none;
  }

  html.has-nav-drop-open,
  html.has-nav-drop-open body {
    overflow: unset;
  }

  .legal-hub-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sticky-cta {
    display: block;
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 30;
  }

  html.has-nav-open .sticky-cta {
    visibility: hidden;
    pointer-events: none;
  }

  .sticky-cta .btn {
    width: 100%;
    box-shadow: none;
  }

  /* Clearance for the fixed CTA bar lives on the footer's own opaque
     background, not on bare body — body padding here is transparent and
     lets the fixed .site-bg-video hero layer show through beneath the
     footer once scrolled to the bottom. */
  .site-footer {
    padding-bottom: 7.5rem;
  }
}

html.has-block-scroll .block-in:not(.is-inview) > .container {
  opacity: 0;
  transform: translate3d(0, 2.25rem, 0);
}

html.has-block-scroll .block-in.is-inview > .container {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 820px) {
  html.has-block-scroll {
    scroll-snap-type: y proximity;
  }

  body.is-front .site-main > section,
  body.is-front .site-footer {
    scroll-snap-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.has-block-scroll .block-in:not(.is-inview) > .container,
  html.has-block-scroll .block-in.is-inview > .container {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .site-bg-video__media {
    display: none;
  }

  body:has(.site-bg-video) {
    background: var(--bg);
  }
}
