/* CuraDent Mobil - visual system derived from the Heltro template, translated to the CuraDent palette */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Colour: Heltro distribution (ocean-blue / sky accent / midnight / cloud) mapped to CuraDent green + lime */
  --c-ink: #0a3326;          /* headings, Heltro ocean-blue role */
  --c-brand: #0b5138;        /* logo green, primary buttons */
  --c-midnight: #05170f;     /* dark panels, footer, button hover fill */
  --c-lime: #a6db4f;         /* the single accent: every button, active states; always with dark text */
  --c-lime-strong: #8fc63a;  /* hover state of the accent */
  --c-lime-soft: #e9f5d3;
  --c-body: #475750;         /* body copy, Heltro blue-gray role */
  --c-muted: #6b7a73;
  --c-fade: #b8c9bf;         /* unrevealed heading words, Heltro powder-blue role */
  --c-cloud: #f3f6f4;        /* alternate section surface */
  --c-line: #d8e0db;
  --c-white: #ffffff;
  --c-error: #a3261b;

  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;

  /* Type scale: Heltro sizes, body enlarged for an older audience */
  --fs-h1: clamp(2.375rem, 1.35rem + 3.4vw, 4.0625rem);
  --fs-h2: clamp(2rem, 1.3rem + 2.2vw, 2.8125rem);
  --fs-h3: clamp(1.625rem, 1.2rem + 1.3vw, 2.125rem);
  --fs-h4: clamp(1.375rem, 1.15rem + 0.7vw, 1.75rem);
  --fs-h5: clamp(1.25rem, 1.1rem + 0.45vw, 1.5625rem);
  --fs-h6: 1.25rem;
  --fs-body: 1.125rem;
  --fs-small: 1rem;
  --fs-big: clamp(3.5rem, 1rem + 11vw, 10.5rem);

  --ls-h1: -0.2rem;
  --ls-h2: -0.1rem;
  --ls-h3: -0.09rem;
  --ls-h4: -0.06rem;
  --ls-body: -0.01rem;

  /* Layout */
  --container: 120rem;
  --container-sm: 73rem;
  --container-xl: 120rem;
  --gutter: clamp(2.5rem, 6.25vw, 5.625rem);
  --section: clamp(4.5rem, 2rem + 7vw, 8.125rem);
  --radius: 0.625rem;
  --radius-btn: 0.3125rem;
  --header-h: 5rem;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.32, 0.72, 0, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.7;
  font-weight: 500;
  letter-spacing: var(--ls-body);
  color: var(--c-body);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font);
  color: var(--c-ink);
  font-weight: 600;
  hyphens: manual;
  overflow-wrap: break-word;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 1.12; letter-spacing: var(--ls-h1); }
h2 { font-size: var(--fs-h2); line-height: 1.2; letter-spacing: var(--ls-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.28; letter-spacing: var(--ls-h3); font-weight: 500; }
h4 { font-size: var(--fs-h4); line-height: 1.25; letter-spacing: var(--ls-h4); }
h5 { font-size: var(--fs-h5); line-height: 1.35; letter-spacing: -0.04rem; }
h6 { font-size: var(--fs-h6); line-height: 1.5; letter-spacing: -0.02rem; font-weight: 500; }

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--c-lime);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--c-ink);
  border-radius: 4px;
}

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

.skip-link {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--c-midnight);
  color: var(--c-white);
  border-radius: var(--radius-btn);
  transform: translateY(-200%);
  transition: transform 0.3s var(--ease);
}
.skip-link:focus { transform: none; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: currentColor;
}

/* Containers (Heltro: container-small 73rem, medium 82.625rem, extra-large 112.5rem) */
.container,
.container-sm,
.container-xl {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container { max-width: var(--container); }
.container-sm { max-width: var(--container-sm); }
.container-xl { max-width: var(--container-xl); }

.section { padding-block: var(--section); }
.section--cloud { background: var(--c-cloud); }

/* Heltro "sub-text": small medium-weight label above headings */
.label {
  display: inline-block;
  font-size: var(--fs-small);
  line-height: 1.35;
  font-weight: 500;
  color: var(--c-ink);
  margin-bottom: 1rem;
}
.label--light { color: var(--c-lime); }

.lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--c-ink);
  font-weight: 500;
  letter-spacing: -0.02rem;
}

.muted { color: var(--c-muted); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--wide { max-width: none; }
@media (min-width: 62rem) { .section-head--wide h2 { white-space: nowrap; } }
.section-head h2 + p { margin-top: 1.25rem; }

/* ============================================================
   Buttons (Heltro rt-button: 5px radius, ocean fill, circular overlay fill, text roll)
   ============================================================ */
.btn {
  --btn-bg: var(--c-lime);
  --btn-fg: var(--c-midnight);
  --btn-border: var(--c-lime);
  --btn-fill: var(--c-lime-strong);
  --btn-fill-fg: var(--c-midnight);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.84rem 1.6rem 0.97rem;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-btn);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 1.0625rem;
  line-height: 1.33;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease), transform 0.2s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: var(--mx, 50%);
  top: var(--my, 50%);
  width: 260%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--btn-fill);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.6s var(--ease);
}
.btn__text {
  position: relative;
  display: inline-grid;
  overflow: hidden;
}
.btn__text > span {
  grid-area: 1 / 1;
  transition: transform 0.5s var(--ease);
}
.btn__text > span + span { transform: translateY(110%); }
.btn .icon { transition: transform 0.45s var(--ease); }

@media (hover: hover) {
  .btn:hover { color: var(--btn-fill-fg); border-color: var(--btn-fill); }
  .btn:hover::before { transform: translate(-50%, -50%) scale(1); }
  .btn:hover .btn__text > span:first-child { transform: translateY(-110%); }
  .btn:hover .btn__text > span + span { transform: translateY(0); }
  .btn:hover .icon { transform: translate(2px, -2px); }
}
.btn:active { transform: scale(0.98); }

/* Secondary buttons stay neutral and take the accent only on hover */
.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--c-ink);
  --btn-border: var(--c-ink);
  --btn-fill: var(--c-lime);
}
.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: var(--c-white);
  --btn-border: rgba(255, 255, 255, 0.6);
  --btn-fill: var(--c-lime);
}
.btn--wide { padding-inline: clamp(2rem, 1rem + 8vw, 9.9rem); }

/* Heltro "Read more ->" text link */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--c-ink);
  min-height: 2.75rem;
}
.text-link .icon { width: 1.1em; height: 1.1em; transition: transform 0.4s var(--ease); }
.text-link span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--ease); }
@media (hover: hover) {
  .text-link:hover span { background-size: 100% 1px; }
  .text-link:hover .icon { transform: translateX(4px); }
}

/* ============================================================
   Header (Heltro rt-navbar: cloud background, divided columns, phone block, CTA)
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(243, 246, 244, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(10, 51, 38, 0.12);
  transition: transform 0.5s var(--ease-soft), background-color 0.3s;
}
.header.is-hidden { transform: translateY(-100%); }

/* Page-to-page navigation: soft cross-fade, header stays in place (supported browsers; others navigate normally) */
@view-transition { navigation: auto; }
.header { view-transition-name: site-header; }
::view-transition-old(root) { animation: 0.28s var(--ease) both vt-out; }
::view-transition-new(root) { animation: 0.42s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(0.75rem); } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}
.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  height: var(--header-h);
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.header__logo {
  display: flex;
  align-items: center;
  padding-right: clamp(1rem, 3vw, 3rem);
  border-right: 1px solid rgba(10, 51, 38, 0.18);
}
.header__logo img { width: 10.5rem; max-width: none; height: auto; flex: none; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-inline: clamp(1.5rem, 4vw, 4.3rem) clamp(1rem, 2.5vw, 2.3rem);
  border-right: 1px solid rgba(10, 51, 38, 0.18);
}
.nav__list { display: flex; align-items: center; gap: clamp(1.25rem, 2.2vw, 2.25rem); white-space: nowrap; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--c-ink);
  font-weight: 500;
  transition: color 0.3s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.45rem;
  height: 2px;
  background: var(--c-lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav__link:hover { color: var(--c-brand); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__phone {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--c-ink);
  text-align: right;
}
.nav__phone small { display: block; font-size: 0.9375rem; color: var(--c-body); line-height: 1.2; }
.nav__phone strong { display: block; font-weight: 600; line-height: 1.3; }
.nav__phone .icon { width: 1.75rem; height: 1.75rem; color: var(--c-brand); }
.nav__phone { white-space: nowrap; }
.header__cta { display: flex; align-items: center; padding-left: clamp(1rem, 2vw, 1.5rem); }

.menu-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  color: var(--c-ink);
  border-radius: var(--radius-btn);
}
.menu-toggle .icon { width: 1.75rem; height: 1.75rem; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem var(--gutter) 2.5rem;
  background: var(--c-white);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-0.75rem);
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0s linear 0.45s;
}
.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0s;
}
.mobile-menu__list li { border-bottom: 1px solid var(--c-line); }
.mobile-menu__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.05rem;
  color: var(--c-ink);
}
.mobile-menu__list a .icon { color: var(--c-brand); }
.mobile-menu__list li { opacity: 0; transform: translateY(1rem); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease); }
.mobile-menu.is-open .mobile-menu__list li { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 60ms + 80ms); }
.mobile-menu__foot { display: grid; gap: 0.75rem; margin-top: auto; }
.mobile-menu__foot .btn { width: 100%; }

/* ============================================================
   Hero (Heltro rt-hero: full-bleed photo, left headline, right trust cards, bottom-left chips)
   ============================================================ */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(100dvh, 62rem);
  padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 7.7rem));
  padding-bottom: clamp(2.5rem, 4vw, 5.9rem);
  color: var(--c-white);
  background: var(--c-midnight);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  transform: scaleX(-1); /* photo mirrored on client request */
}
.hero__media picture { display: contents; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  animation: hero-zoom 2.4s var(--ease) both;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 23, 15, 0.9) 0%, rgba(5, 23, 15, 0.74) 36%, rgba(5, 23, 15, 0.2) 66%, rgba(5, 23, 15, 0.05) 100%),
    linear-gradient(0deg, rgba(5, 23, 15, 0.55) 0%, rgba(5, 23, 15, 0) 40%);
}
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 28rem);
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  min-height: calc(min(100dvh, 62rem) - var(--header-h) - clamp(5.5rem, 11vw, 13.6rem));
}
.hero__content { display: flex; flex-direction: column; justify-content: space-between; height: 100%; gap: 3rem; }
.hero h1 { color: var(--c-white); margin-bottom: 1.1rem; max-width: 48rem; }
.hero h1 em { font-style: normal; color: var(--c-lime); }
.hero__text { max-width: 37.875rem; font-size: 1.25rem; line-height: 1.6; color: rgba(255, 255, 255, 0.92); margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9375rem; }

.hero__chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip { white-space: nowrap; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem 0.45rem 0.5rem;
  border-radius: var(--radius-btn);
  background: var(--c-white);
  color: var(--c-ink);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.4;
}
.chip__icon {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--c-lime-soft);
  color: var(--c-brand);
}
.chip__icon .icon { width: 1.1rem; height: 1.1rem; }

.hero__cards { display: grid; gap: 0.9375rem; }
.hero-card {
  padding: 1rem 1.4rem 1.1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--c-ink);
}
.hero-card--wide { display: flex; align-items: center; gap: 1.1rem; }
.hero-card__thumbs { display: flex; flex: none; }
.hero-card__thumbs img {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--c-white);
}
.hero-card__thumbs img + img { margin-left: -0.7rem; }
.hero-card strong { display: block; font-weight: 600; line-height: 1.35; white-space: nowrap; }
.hero-card span { display: block; font-size: 0.9375rem; color: var(--c-body); line-height: 1.45; }
.hero-card__pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.9375rem; }
.hero-card .hero-card__big {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.06rem;
  line-height: 1.1;
  color: var(--c-ink);
  margin-bottom: 0.4rem;
}

/* ============================================================
   Services slider (Heltro rt-slider-section: image left, copy right, plus list, divider, link)
   ============================================================ */
.services__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
.slider-nav { display: flex; gap: 0.75rem; }
.slider-nav[hidden] { display: none; }
.slider-nav button {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  border: 1px solid var(--c-ink);
  color: var(--c-ink);
  transition: background-color 0.3s, color 0.3s, opacity 0.3s;
}
.slider-nav button:hover { background: var(--c-lime); border-color: var(--c-lime); color: var(--c-midnight); }
.slider-nav button:disabled { opacity: 0.3; pointer-events: none; }

.service-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(47.25rem, calc(100vw - 2 * var(--gutter) - 2rem));
  gap: 2.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--track-pad);
  padding-inline: var(--track-pad);
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  --track-pad: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}
.service-track::-webkit-scrollbar { display: none; }
@media (hover: hover) and (pointer: fine) { .service-track { cursor: grab; } }
.service-track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.service-track.is-dragging a { pointer-events: none; }
.service-track img { -webkit-user-drag: none; }

.service-card {
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 23.25rem minmax(0, 1fr);
  min-height: 32rem;
  border-radius: var(--radius);
  background: var(--c-white);
  overflow: hidden;
}
.service-card--feature { outline: 2px solid var(--c-lime); outline-offset: -2px; }
.service-card__media { position: relative; overflow: hidden; }
.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.service-card:hover .service-card__media img { transform: scale(1.05); }
.service-card__body {
  display: flex;
  flex-direction: column;
  padding: 3.4rem 3rem 2.6rem;
}
.service-card__tag { font-size: var(--fs-small); color: var(--c-body); margin-bottom: 1.1rem; }
.service-card h3 { font-size: var(--fs-h5); line-height: 1.38; letter-spacing: -0.05rem; font-weight: 600; margin-bottom: 1.75rem; }
.plus-list { display: grid; gap: 0.45rem; margin-top: auto; }
.plus-list li { display: flex; gap: 0.5rem; line-height: 1.45; color: var(--c-body); }
.plus-list li::before { content: "+"; color: var(--c-brand); font-weight: 600; }
.service-card__foot {
  margin-top: 2rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--c-line);
}

/* ============================================================
   Cooperation (Heltro about-us DNA: split heading, sticky photo, numbered rows grouped by phase)
   ============================================================ */
.koop-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem clamp(2rem, 5vw, 6rem);
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--c-line);
}
.koop-head h2 { max-width: 44rem; }
.koop-head > :first-child { flex: 1 1 34rem; min-width: 0; }
.koop-head__aside { flex: 0 1 38rem; max-width: 100%; margin-left: auto; }
.koop-head__aside p { margin-bottom: 1.75rem; }

.koop {
  display: grid;
  grid-template-columns: minmax(0, 30rem) minmax(0, 1fr);
  gap: clamp(3rem, 7vw, 7.5rem);
  align-items: start;
}
.koop__aside {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  display: grid;
  gap: 1.25rem;
}
.koop__image {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
}
.koop__image img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 72%; }
.koop__note {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: var(--c-cloud);
}
.koop__note .icon {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.6rem;
  border-radius: 50%;
  background: var(--c-lime);
  color: var(--c-midnight);
}
.koop__note p { font-size: 1rem; line-height: 1.6; }
.koop__note strong { display: block; color: var(--c-ink); font-weight: 600; margin-bottom: 0.15rem; }

.phase + .phase { margin-top: clamp(2.5rem, 4vw, 3.5rem); }
.phase__title {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: var(--fs-h5);
  font-weight: 600;
  letter-spacing: -0.05rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--c-ink);
}
.phase__title span {
  flex: none;
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-btn);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--c-body);
}
.kstep {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.6rem 0 1.5rem;
  border-bottom: 1px solid var(--c-line);
}
.kstep__num {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.12rem;
  line-height: 1;
  color: var(--c-fade);
  transition: color 0.4s var(--ease);
}
.kstep:hover .kstep__num { color: var(--c-brand); }
.kstep h4 { font-size: 1.3125rem; font-weight: 600; letter-spacing: -0.03rem; line-height: 1.35; margin-bottom: 0.4rem; }
.kstep p { max-width: 36rem; font-size: 1.0625rem; line-height: 1.65; }

/* ============================================================
   Scroll-filled heading (Heltro "Who we are" / "Why choose us" word reveal)
   ============================================================ */
.fill-heading .word { color: var(--c-ink); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .fill-heading .word {
      animation: word-fill linear both;
      animation-timeline: view();
      animation-range: cover calc(8% + var(--w) * 0.22%) cover calc(18% + var(--w) * 0.22%);
    }
  }
}
@keyframes word-fill { from { color: var(--c-fade); } to { color: var(--c-ink); } }

/* ============================================================
   On-site treatment (Heltro video section + service index without prices)
   ============================================================ */
.onsite { padding-top: 0; }
.onsite__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 36rem);
  grid-template-areas: "label ." "title lead" ". cta";
  column-gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.onsite__head .label { grid-area: label; justify-self: start; margin-bottom: 1.25rem; }
.onsite__head h2 { grid-area: title; white-space: nowrap; font-size: clamp(2.25rem, 0.6rem + 3.6vw, 4.0625rem); letter-spacing: var(--ls-h1); line-height: 1.12; }
.onsite__lead { grid-area: lead; justify-self: end; margin: 0; text-align: right; font-size: clamp(1rem, 0.25rem + 0.95vw, 1.125rem); }
.onsite__cta { grid-area: cta; justify-self: end; margin-top: 1.75rem; }
@media (max-width: 72rem) {
  .onsite__head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "label" "title" "lead" "cta"; }
  .onsite__head h2 { white-space: normal; }
  .onsite__lead { width: min(100%, 36rem); margin-top: 1.5rem; font-size: 1.125rem; }
}

.media-wide {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr);
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 4vw, 3rem);
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 62rem) {
    .media-wide {
      animation: media-open linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }
  }
}
@keyframes media-open { from { transform: scale(0.88); } to { transform: scale(1); } }
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--c-cloud);
}
.media-frame img,
.media-frame video { width: 100%; height: 100%; object-fit: cover; }
.media-frame--land { aspect-ratio: 16 / 10.5; }
.media-frame--land img { object-position: 50% 40%; }
.media-frame--video { aspect-ratio: auto; }
.media-frame--video video { position: absolute; inset: 0; }
.video-toggle {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--c-lime);
  color: var(--c-midnight);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7);
  transition: transform 0.4s var(--ease), background-color 0.3s;
}
.video-toggle:hover { transform: scale(1.06); background: var(--c-lime-strong); }
.video-toggle:active { transform: scale(0.96); }
.video-toggle .icon { width: 1.15rem; height: 1.15rem; }
.video-toggle .icon-play { display: none; }
.video-toggle[data-playing="false"] .icon-play { display: block; }
.video-toggle[data-playing="false"] .icon-pause { display: none; }
.media-frame__tag {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-btn);
  background: rgba(255, 255, 255, 0.92);
  color: var(--c-ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

.treat-head {
  margin-top: clamp(4rem, 3rem + 3vw, 6rem);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--c-line);
}
.treat-head__title { font-size: var(--fs-h5); line-height: 1.35; letter-spacing: -0.04rem; font-weight: 600; }
.treat-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
}
.treat {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.75rem, 1rem + 1.6vw, 2.5rem) clamp(1.5rem, 1rem + 1.6vw, 2.5rem) clamp(2rem, 1rem + 2vw, 2.75rem);
  border-bottom: 1px solid var(--c-line);
}
.treat:not(:nth-child(3n + 1)) { border-left: 1px solid var(--c-line); }
.treat:nth-child(3n + 1) { padding-left: 0; }
.treat__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--c-lime-soft);
  color: var(--c-brand);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.treat__icon .icon { width: 1.5rem; height: 1.5rem; }
.treat h4 { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.04rem; line-height: 1.3; color: var(--c-ink); }
.treat p { font-size: 1rem; line-height: 1.65; color: var(--c-body); max-width: 24rem; }
@media (hover: hover) {
  .treat:hover .treat__icon { background: var(--c-lime); color: var(--c-midnight); }
}

.onsite__note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem 1.75rem;
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem) clamp(1.5rem, 1rem + 2vw, 2.75rem);
  border-radius: var(--radius);
  background: var(--c-cloud);
}
.onsite__note-icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--c-white); color: var(--c-brand); }
.onsite__note-icon .icon { width: 1.5rem; height: 1.5rem; }
.onsite__note p { max-width: 50rem; font-size: 1rem; line-height: 1.65; }
.onsite__note strong { display: block; margin-bottom: 0.2rem; color: var(--c-ink); font-weight: 600; }

/* ============================================================
   CTA split (Heltro rt-home-cta: full-bleed photo with two information panels)
   ============================================================ */
.cta-split {
  position: relative;
  isolation: isolate;
  min-height: clamp(36rem, 30rem + 20vw, 56rem);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
}
.cta-split__media { position: absolute; inset: 0; z-index: -1; }
.cta-split__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; } /* 05.11: обличчя лікарки біля верхнього краю */
.cta-split__panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 24rem));
  width: auto;
}
.cta-panel { padding: clamp(2rem, 3vw, 2.75rem) clamp(1.75rem, 3vw, 2.5rem) clamp(2.25rem, 3vw, 3rem); }
.cta-panel h2 { font-size: var(--fs-h5); line-height: 1.35; letter-spacing: -0.05rem; margin-bottom: 0.9rem; }
.cta-panel p { margin-bottom: 1.75rem; font-size: 1rem; }
.cta-panel--dark { background: var(--c-midnight); color: rgba(255, 255, 255, 0.84); }
.cta-panel--dark h2 { color: var(--c-white); }
.cta-panel--light { background: var(--c-white); }
.cta-panel__phone { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1rem; font-weight: 600; color: var(--c-ink); min-height: 2.75rem; }
.cta-panel__phone .icon { color: var(--c-brand); }

/* Two-column section head: title left, intro right (same rhythm as Kooperation / Vor Ort) */
.split-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1.5rem clamp(2rem, 6vw, 7rem);
  align-items: end;
  margin-bottom: clamp(3rem, 2rem + 3vw, 5rem);
}
.split-head .label { margin-bottom: 1.25rem; }
.split-head > p { justify-self: end; width: min(100%, 32rem); padding-bottom: 0.4rem; }
/* Intro text and its button sit on the right edge, right-aligned (desktop and tablet) */
.koop-head__aside, .split-head > p { text-align: right; }
.koop-head__aside p { margin-left: auto; }

/* ============================================================
   Equipment story (custom, Heltro DNA: sticky media + numbered rows)
   ============================================================ */
.equip {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.equip__sticky {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}
.equip__stage {
  position: relative;
  aspect-ratio: 4 / 4.6;
  max-height: calc(100dvh - var(--header-h) - 4rem);
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-white);
}
.equip__stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s var(--ease), transform 1.2s var(--ease);
}
.equip__stage img.is-active { opacity: 1; transform: none; }
.equip__progress {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
}
.equip__progress span {
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.45);
  overflow: hidden;
}
.equip__progress span::after {
  content: "";
  display: block;
  height: 100%;
  background: var(--c-lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.equip__progress span.is-done::after { transform: scaleX(1); }

.equip__steps { display: grid; gap: 1rem; }
.equip-step {
  min-height: 46vh;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  column-gap: clamp(1rem, 2vw, 2rem);
  align-content: center;
  padding: clamp(2rem, 1.5rem + 1.5vw, 3rem);
  border: 1px solid transparent;
  border-radius: var(--radius);
  opacity: 0.4;
  transition: opacity 0.6s var(--ease), background-color 0.6s var(--ease), border-color 0.6s var(--ease);
}
.equip-step > :not(.equip-step__num):not(.equip-step__img) { grid-column: 2; }
.equip-step.is-active { opacity: 1; background: var(--c-white); border-color: var(--c-line); }
.no-js .equip-step { opacity: 1; }
.no-js .equip__stage img:first-of-type { opacity: 1; transform: none; }
.equip-step__num {
  grid-column: 1;
  grid-row: 1 / span 4;
  align-self: start;
  font-size: clamp(2.5rem, 1.8rem + 1.6vw, 3.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.15rem;
  color: var(--c-fade);
  transition: color 0.6s var(--ease);
}
.equip-step.is-active .equip-step__num { color: var(--c-brand); }
.equip-step__num em { font-style: normal; color: var(--c-brand); }
.equip-step h3 { font-size: var(--fs-h3); font-weight: 600; margin-bottom: 1rem; padding-top: 0.15rem; }
.equip-step p { max-width: 36rem; }
.equip-step__img { display: none; }
.spec-list { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.spec-list li {
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--c-ink);
  border-radius: var(--radius-btn);
  color: var(--c-ink);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  background: var(--c-white);
}

/* ============================================================
   Team (Heltro rt-doctor-porfolio: large photo + dark statement card + image card + icon columns)
   ============================================================ */
.portfolio {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 1.25rem;
}
.portfolio__photo {
  grid-row: 1 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 32rem;
}
.portfolio__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 35%; }
.statement {
  position: relative;
  overflow: hidden;
  padding: clamp(2.25rem, 1.5rem + 2vw, 3.5rem) clamp(2rem, 1.25rem + 2vw, 3.25rem) clamp(2.25rem, 1.5rem + 2vw, 3.25rem) ;
  border-radius: var(--radius);
  background: var(--c-midnight);
  color: var(--c-white);
}
.statement p { max-width: 30rem; font-size: clamp(1.1875rem, 1rem + 0.45vw, 1.4375rem); line-height: 1.5; font-weight: 500; letter-spacing: -0.03rem; color: var(--c-white); }
.statement footer { margin-top: 2.5rem; color: rgba(255, 255, 255, 0.85); font-size: 1rem; line-height: 1.5; }
.statement footer strong { display: block; color: var(--c-lime); font-weight: 600; font-size: 1.0625rem; }
.statement__mark {
  position: absolute;
  right: -1.5rem;
  top: -1.5rem;
  width: 8rem;
  height: 8rem;
  color: rgba(255, 255, 255, 0.07);
  fill: currentColor;
}
.area-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 19rem;
  padding: clamp(2rem, 1.25rem + 2vw, 3.25rem);
  border-radius: var(--radius);
  color: var(--c-white);
}
.area-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.area-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5, 23, 15, 0.85), rgba(5, 23, 15, 0.15)); }
.area-card { container-type: inline-size; }
.area-card strong { display: block; white-space: nowrap; font-size: min(clamp(2rem, 1.6rem + 1.8vw, 3.2rem), 9.4cqi); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; color: var(--c-white); }
.area-card span { display: block; max-width: 24rem; margin-top: 1rem; font-size: 1.0625rem; line-height: 1.5; color: rgba(255, 255, 255, 0.9); }

.doctors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: clamp(4rem, 6vw, 6rem);
}
.doctor { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.doctor__photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--c-cloud); }
.doctor__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform 0.9s var(--ease); }
.doctor:hover .doctor__photo img { transform: scale(1.04); }
.doctor__role { font-size: var(--fs-small); color: var(--c-brand); font-weight: 600; margin-bottom: 0.4rem; }
.doctor h3 { font-size: var(--fs-h4); font-weight: 600; margin-bottom: 1.25rem; }
.doctor__facts div { padding: 0.8rem 0; border-top: 1px solid var(--c-line); }
.doctor__facts dt { font-size: 0.9375rem; color: var(--c-muted); line-height: 1.4; }
.doctor__facts dd { color: var(--c-ink); line-height: 1.5; font-weight: 500; }
.doctor__facts dd.is-pending { color: var(--c-muted); font-style: italic; font-weight: 400; }

.org-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(4rem, 6vw, 5.6rem);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.org-cols > div { padding: clamp(1.75rem, 1rem + 1.6vw, 2.5rem) clamp(1.25rem, 0.75rem + 1.4vw, 2.25rem); }
.org-cols > div + div { border-left: 1px solid var(--c-line); }
.org-cols > div:first-child { padding-left: 0; }
.org-cols__icon { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; margin-bottom: 1.25rem; border-radius: 50%; background: var(--c-lime-soft); color: var(--c-brand); }
.org-cols .icon { width: 1.5rem; height: 1.5rem; }
.org-cols h3 { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.04rem; color: var(--c-ink); margin-bottom: 0.6rem; }
.org-cols p { font-size: 1rem; line-height: 1.65; max-width: 20rem; }

/* ============================================================
   CTA with floating portraits (Heltro rt-cta)
   ============================================================ */
.cta-orbit { position: relative; overflow: hidden; }
.cta-orbit__inner {
  position: relative;
  min-height: 34rem;
  display: grid;
  place-items: center;
  text-align: center;
}
.cta-orbit__copy { position: relative; z-index: 1; max-width: 38rem; }
.cta-orbit__copy h2 { margin-bottom: 1.1rem; }
.cta-orbit__copy p { margin-bottom: 1.9rem; }
.cta-orbit__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9375rem; }
.orb {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  width: var(--s);
  height: var(--s);
  left: var(--x);
  top: var(--y);
}
.orb img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .orb { animation: orb-drift 9s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
}
@keyframes orb-drift { from { transform: translateY(-6px); } to { transform: translateY(6px); } }

/* ============================================================
   Marquee (Heltro rt-marquee: giant words + accent asterisk)
   ============================================================ */
.marquee {
  overflow: hidden;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  user-select: none;
}
.marquee__track {
  display: flex;
  width: max-content;
}
.marquee__group {
  display: flex;
  align-items: center;
  flex: none;
}
.marquee__group span {
  font-size: clamp(3.25rem, 1.5rem + 7vw, 8.4rem);
  font-weight: 600;
  letter-spacing: -0.3rem;
  line-height: 1.1;
  color: var(--c-ink);
  white-space: nowrap;
  padding-inline: 0.15em;
}
.marquee__group .icon {
  width: clamp(2.5rem, 1.2rem + 5vw, 7.5rem);
  height: clamp(2.5rem, 1.2rem + 5vw, 7.5rem);
  margin-inline: clamp(1rem, 2vw, 2.25rem);
  color: var(--c-lime);
}
@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: marquee 48s linear infinite; }
  .marquee:hover .marquee__track { animation-play-state: paused; }
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   Advantages (Heltro rt-counter-v1: icon, big figure, rule, title, text; words instead of numbers)
   ============================================================ */
.adv-section { padding-top: clamp(2rem, 4vw, 3.5rem); }
.adv-head { margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.adv-head h2 { font-size: var(--fs-h2); letter-spacing: var(--ls-h2); line-height: 1.18; max-width: 56rem; text-wrap: balance; }

/* Key advantages: asymmetric 2x2 bento (wide / narrow, narrow / wide) */
.adv-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem;
}
.adv {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
  min-height: 21rem;
  padding: clamp(1.75rem, 1rem + 2vw, 2.75rem);
  border-radius: var(--radius);
  background: var(--c-cloud);
  color: var(--c-body);
}
.adv-bento > .adv:nth-child(1),
.adv-bento > .adv:nth-child(4) { grid-column: span 7; }
.adv__icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--c-white);
  color: var(--c-brand);
}
.adv__icon .icon { width: 1.6rem; height: 1.6rem; }
.adv__body { container-type: inline-size; }
.adv__big {
  display: block;
  white-space: nowrap;
  font-size: min(clamp(1.875rem, 1.3rem + 1.5vw, 2.625rem), 8.8cqi);
  font-weight: 600;
  letter-spacing: -0.1rem;
  line-height: 1.1;
  color: var(--c-ink);
  margin-bottom: 1.25rem;
}
.adv__big em { font-style: normal; color: var(--c-brand); }
.adv h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02rem; line-height: 1.4; color: var(--c-ink); margin-bottom: 0.4rem; }
.adv p { font-size: 1rem; line-height: 1.65; max-width: 30rem; }

.adv--dark { background: var(--c-midnight); color: rgba(255, 255, 255, 0.78); }
.adv--dark .adv__icon { background: var(--c-lime); color: var(--c-midnight); }
.adv--dark .adv__big, .adv--dark h3 { color: var(--c-white); }

/* On a cloud section the cards turn white with a hairline so they read as containers;
   icon discs switch to the soft lime tint so they stay visible on white */
.section--cloud .adv:not(.adv--dark) { background: var(--c-white); box-shadow: inset 0 0 0 1px var(--c-line); }
.section--cloud .adv:not(.adv--dark) .adv__icon { background: var(--c-lime-soft); }

.adv--media { position: relative; display: block; padding: 0; overflow: hidden; }
.adv--media .adv__content { display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; height: 100%; width: 62%; padding: clamp(1.75rem, 1rem + 2vw, 2.75rem); }
.adv__img { position: absolute; top: 0; right: 0; bottom: 0; width: 38%; height: 100%; object-fit: cover; object-position: 30% 55%; }

/* Further advantages: two aligned columns of icon rows */
.adv-more { margin-top: clamp(4rem, 3rem + 3vw, 6rem); }
.adv-more__title { font-size: var(--fs-h5); line-height: 1.35; letter-spacing: -0.04rem; font-weight: 600; padding-bottom: 1.25rem; }
.adv-rows {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(2rem, 6vw, 6rem);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--c-line);
}
.adv-row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-content: start;
  column-gap: 1.25rem;
  row-gap: 0.3rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--c-line);
}
.adv-row__icon {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--c-lime-soft);
  color: var(--c-brand);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.adv-row__icon .icon { width: 1.4rem; height: 1.4rem; }
.adv-row h4 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.03rem; line-height: 1.35; color: var(--c-ink); padding-top: 0.2rem; }
.adv-row p { font-size: 1rem; line-height: 1.65; max-width: 32rem; }
@media (hover: hover) {
  .adv-row:hover .adv-row__icon { background: var(--c-lime); color: var(--c-midnight); }
}

/* ============================================================
   FAQ (custom: Heltro location tabs + numbered border rows)
   ============================================================ */
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.7rem 1.6rem;
  border: 1px solid var(--c-ink);
  border-radius: var(--radius-btn);
  color: var(--c-ink);
  font-weight: 600;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.tab small { font-size: 0.8125rem; font-weight: 500; opacity: 0.7; }
.tab:hover { background: var(--c-cloud); }
.tab[aria-selected="true"] { background: var(--c-lime); border-color: var(--c-lime); color: var(--c-midnight); }
.tab__icon { display: none; }  /* shown only in the mobile segmented control */

.faq-panel[hidden] { display: none; }
.faq-panel { max-width: 56rem; margin-inline: auto; }
@media (prefers-reduced-motion: no-preference) {
  .faq-panel:not([hidden]) { animation: panel-in 0.5s var(--ease) both; }
}
@keyframes panel-in { from { opacity: 0; transform: translateY(0.75rem); } to { opacity: 1; transform: none; } }

.acc__h { margin: 0; font: inherit; letter-spacing: inherit; }
.acc { border-bottom: 1px solid var(--c-fade); }
.acc:first-child { border-top: 1px solid var(--c-fade); }
.acc__btn {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) 2.75rem;
  gap: 0.5rem;
  align-items: center;
  width: 100%;
  min-height: 4.5rem;
  padding: 1.1rem 0;
  text-align: left;
}
.acc__num { font-size: 0.875rem; color: var(--c-body); }
.acc__q { font-size: 1.25rem; font-weight: 600; line-height: 1.4; color: var(--c-ink); letter-spacing: -0.03rem; }
.acc__sign {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--c-line);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.acc__sign::before,
.acc__sign::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.875rem;
  height: 2px;
  margin: -1px 0 0 -0.4375rem;
  background: var(--c-ink);
  transition: transform 0.4s var(--ease);
}
.acc__sign::after { transform: rotate(90deg); }
.acc__btn[aria-expanded="true"] .acc__sign { background: var(--c-lime); border-color: var(--c-lime); }
.acc__btn[aria-expanded="true"] .acc__sign::after { transform: rotate(0deg); }
.acc__btn:hover .acc__q { color: var(--c-brand); }
.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease-soft);
}
.acc__panel > div { overflow: hidden; min-height: 0; }
.acc__content { opacity: 0; transform: translateY(-0.5rem); transition: opacity 0.3s var(--ease), transform 0.5s var(--ease-soft); }
.acc.is-open .acc__panel { grid-template-rows: 1fr; }
.acc.is-open .acc__content { opacity: 1; transform: none; transition-delay: 0.08s; }
.acc__sign::before, .acc__sign::after { transition: transform 0.4s var(--ease-soft); }
.acc__sign { transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease); }
@media (prefers-reduced-motion: reduce) { .acc__panel, .acc__content { transition: none; } }
.acc__content { padding: 0 3.25rem 1.75rem 2.75rem; display: grid; gap: 0.9rem; }
.no-js .acc__panel { grid-template-rows: 1fr; }
.no-js .acc__content { opacity: 1; transform: none; }

/* ============================================================
   Subpages: page hero, jump nav, feature split, practices, contact form, legal prose
   ============================================================ */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(2rem, 1.5rem + 2vw, 3.5rem));
  padding-bottom: clamp(3rem, 2rem + 3vw, 5rem);
  background: var(--c-cloud);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); font-size: 0.9375rem; color: var(--c-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--c-fade); }
.breadcrumb a { color: var(--c-ink); text-decoration: underline; text-decoration-color: var(--c-fade); text-underline-offset: 0.2em; }
.breadcrumb a:hover { text-decoration-color: currentColor; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.page-hero--media .page-hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.page-hero h1 { max-width: 46rem; text-wrap: balance; }
.page-hero__lead { max-width: 38rem; margin-top: 1.5rem; font-size: 1.1875rem; line-height: 1.6; }
/* Kontakt: lead set in two balanced lines */
.page-hero--lead-2 .page-hero__lead { max-width: 42rem; text-wrap: balance; }

/* Über uns: heading in two fixed lines and lead in two lines; sizes follow the text column */
@media (min-width: 64.01rem) {
  .page-hero--about.page-hero--media .page-hero__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}
.page-hero--about .page-hero__copy { container-type: inline-size; }
.page-hero--about .h1-line { display: block; }
@media (min-width: 64.01rem) {
  .page-hero--about h1 { max-width: none; font-size: min(var(--fs-h1), calc(5.9cqi + 0.4rem)); }
  .page-hero--about .h1-line { white-space: nowrap; }
  .page-hero--about .page-hero__lead { max-width: none; text-wrap: balance; font-size: min(1.1875rem, 2.85cqi); }
}

.page-hero__actions { display: flex; flex-wrap: wrap; gap: 0.9375rem; margin-top: 2.25rem; }
.page-hero__media { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3.4; }
.page-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.section--first { padding-top: clamp(3.5rem, 2.5rem + 3vw, 6rem); }
.onsite--page { padding-top: var(--section); }
.adv-section--page { padding-top: var(--section); }

.jump { position: relative; border-bottom: 1px solid var(--c-line); background: var(--c-white); }
.jump__list { display: flex; gap: 0.5rem; overflow-x: auto; padding-block: 1rem; scrollbar-width: none; }
.jump__list::-webkit-scrollbar { display: none; }
.jump__list a {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.5rem 1rem;
  border: 1px solid var(--c-line); border-radius: var(--radius-btn); white-space: nowrap;
  font-size: 1rem; font-weight: 500; color: var(--c-ink);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.jump__list a:hover { background: var(--c-lime); border-color: var(--c-lime); }
.jump__list .icon { width: 1.15rem; height: 1.15rem; color: var(--c-brand); }
.jump__list a:hover .icon { color: var(--c-midnight); }
.jump .container { position: relative; }

/* Swipe hint (cut2earn pattern): a hand drifting left and right just below a horizontally scrollable
   row, right-aligned so it never covers the pills; shown only while the row overflows, fades out after a swipe */
.swipe-hint {
  position: absolute; top: 100%; right: var(--gutter); z-index: 1;
  display: none; place-items: center; width: 2.5rem; height: 2.5rem; margin-top: 0.75rem; border-radius: 50%;
  background: var(--c-midnight); pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.swipe-hint img { width: 1.5rem; height: 1.5rem; translate: -0.5rem 0; }
.is-overflowing + .swipe-hint { display: grid; }
.is-swiped + .swipe-hint { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .swipe-hint img { animation: swipe-hint 3s infinite; }
}
@keyframes swipe-hint {
  0% { translate: -0.5rem 0; animation-timing-function: cubic-bezier(0, 0, 0.58, 1); }
  50% { translate: 0.5rem 0; animation-timing-function: cubic-bezier(0.42, 0, 0.58, 1); }
  100% { translate: -0.5rem 0; }
}

.feature-split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.feature-split__media { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 4.6; }
.feature-split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-split__copy h2 { margin-bottom: 1.5rem; }
.feature-split__copy > p { max-width: 36rem; margin-bottom: 1rem; }
.topic-grid { margin-top: 2rem; padding: 1.75rem 2rem; border-radius: var(--radius); background: var(--c-cloud); }
.topic-grid__title { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02rem; margin-bottom: 1rem; }
.topic-grid .plus-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 1.5rem; }
.feature-split__actions { margin-top: 2.25rem; }

.practices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.practice { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.75rem, 1rem + 2vw, 2.5rem); border-radius: var(--radius); background: var(--c-white); border: 1px solid var(--c-line); }
.practice__icon { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; margin-bottom: 1.5rem; border-radius: 50%; background: var(--c-lime-soft); color: var(--c-brand); }
.practice__icon .icon { width: 1.5rem; height: 1.5rem; }
.practice h3 { font-size: var(--fs-h5); font-weight: 600; margin-bottom: 0.75rem; }
.practice address { font-style: normal; line-height: 1.6; color: var(--c-body); }
.practice__tel { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; margin-top: 1rem; font-weight: 600; color: var(--c-ink); }
.practice__tel .icon { color: var(--c-brand); }
.practice__tel:hover { color: var(--c-brand); }
.practice__appt { margin-top: auto; padding-top: 1rem; font-size: 1rem; color: var(--c-brand); font-weight: 500; }
.practice--services { background: var(--c-midnight); border-color: var(--c-midnight); color: rgba(255, 255, 255, 0.8); }
.practice--services h3 { color: var(--c-white); margin-bottom: 1.5rem; }
.practice--services .plus-list li { color: rgba(255, 255, 255, 0.85); }
.practice--services .plus-list li::before { color: var(--c-lime); }
.section:not(.section--cloud) .practice { background: var(--c-cloud); border-color: transparent; }
.section:not(.section--cloud) .practice--services { background: var(--c-midnight); }

.contact { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact__aside { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 0.75rem; }
.contact-card { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--c-cloud); color: var(--c-ink); transition: background-color 0.25s var(--ease); }
a.contact-card:hover { background: var(--c-lime-soft); }
.contact-card > span:last-child { display: grid; gap: 0.15rem; min-width: 0; }
.contact-card small { font-size: 0.875rem; color: var(--c-muted); }
.contact-card strong { font-weight: 600; overflow-wrap: anywhere; }
.contact-card a { font-weight: 600; color: var(--c-brand); }
.contact-card__icon { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--c-white); color: var(--c-brand); }
.contact-card__icon .icon { width: 1.4rem; height: 1.4rem; }
.contact-card--primary { background: var(--c-midnight); color: var(--c-white); }
.contact-card--primary small { color: rgba(255, 255, 255, 0.7); }
.contact-card--primary strong { font-size: 1.375rem; }
.contact-card--primary .contact-card__icon { background: var(--c-lime); color: var(--c-midnight); }
a.contact-card--primary:hover { background: var(--c-ink); }
.contact__appt { padding: 0.5rem 0.25rem; font-size: 1rem; color: var(--c-brand); font-weight: 500; }
.contact__form { padding: clamp(1.75rem, 1rem + 2.5vw, 3.25rem); border: 1px solid var(--c-line); border-radius: var(--radius); }
.contact__form h2 { font-size: var(--fs-h3); }
.contact__intro { margin: 0.75rem 0 2rem; font-size: 1rem; }

.form { display: grid; gap: 1.5rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.field { display: grid; gap: 0.5rem; align-content: start; min-width: 0; border: 0; padding: 0; margin: 0; }
.field > label, .field legend { font-size: 1rem; font-weight: 600; color: var(--c-ink); }
.field legend { margin-bottom: 0.75rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; min-height: 3.25rem; padding: 0.8rem 1rem;
  border: 1px solid #9fb1a7; border-radius: var(--radius-btn); background: var(--c-white);
  font: inherit; font-size: 1.0625rem; color: var(--c-ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 9rem; line-height: 1.55; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--c-ink); box-shadow: 0 0 0 3px var(--c-lime); }
.field__help { font-size: 0.9375rem; line-height: 1.5; color: var(--c-muted); }
.field__error { font-size: 0.9375rem; line-height: 1.4; color: var(--c-error); font-weight: 500; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--c-error); }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.choice-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.55rem 1rem; border: 1px solid #9fb1a7; border-radius: var(--radius-btn); font-size: 1rem; font-weight: 500; color: var(--c-ink); transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease); }
.choice:hover span { border-color: var(--c-ink); }
.choice input:checked + span { background: var(--c-lime); border-color: var(--c-lime); color: var(--c-midnight); }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px var(--c-ink); }
.check { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 1rem; line-height: 1.55; cursor: pointer; }
.check input { flex: none; width: 1.375rem; height: 1.375rem; margin-top: 0.1rem; accent-color: var(--c-brand); }
.check a { color: var(--c-brand); text-decoration: underline; text-underline-offset: 0.2em; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form__submit[disabled] { opacity: 0.6; pointer-events: none; }
.form__status { padding: 1rem 1.25rem; border-radius: var(--radius-btn); font-size: 1rem; line-height: 1.55; }
.form__status.is-success { background: var(--c-lime-soft); color: var(--c-ink); }
.form__status.is-error { background: #fbeceb; color: var(--c-error); }
.form__status a { font-weight: 600; text-decoration: underline; }

.prose { max-width: 46rem; }
.prose h2 { font-size: var(--fs-h5); line-height: 1.35; letter-spacing: -0.04rem; font-weight: 600; margin: 2.5rem 0 0.75rem; }
.prose h2:first-of-type { margin-top: 0; }
.prose p { margin-bottom: 0.75rem; }
.prose a { color: var(--c-brand); text-decoration: underline; text-underline-offset: 0.2em; }
.prose__notice { margin-bottom: 2.5rem !important; padding: 1rem 1.25rem; border-left: 3px solid var(--c-lime); background: var(--c-cloud); font-size: 1rem; }
.is-pending { color: var(--c-muted); font-style: italic; }

/* ============================================================
   Footer (Heltro rt-footer: midnight, contact block, columns, giant wordmark)
   ============================================================ */
.footer {
  background: var(--c-midnight);
  color: rgba(255, 255, 255, 0.82);
  padding-top: clamp(4.5rem, 7vw, 8.4rem);
  overflow: hidden;
}
.footer a { transition: color 0.3s; }
.footer a:hover { color: var(--c-lime); }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}
.footer h2 { font-size: 1.375rem; color: var(--c-white); font-weight: 500; letter-spacing: -0.04rem; margin-bottom: 1.5rem; }
.footer__logo { width: clamp(13rem, 10rem + 6vw, 17rem); filter: brightness(0) invert(1); margin-bottom: clamp(2rem, 1.5rem + 1.5vw, 3rem); }
.footer__contact { max-width: 34rem; }
.footer__contact h2 { font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.25rem); font-weight: 600; letter-spacing: -0.07rem; line-height: 1.2; max-width: 26rem; margin-bottom: 1rem; }
.footer__lead { max-width: 28rem; font-size: 1.0625rem; line-height: 1.6; color: rgba(255, 255, 255, 0.7); }
.footer__reach { display: grid; gap: 0.75rem; margin-top: 2rem; }
.footer__reach a { display: inline-flex; align-items: center; gap: 1rem; color: var(--c-white); }
.footer__reach a > span:last-child { display: grid; font-size: clamp(1.1875rem, 1rem + 0.5vw, 1.4375rem); font-weight: 600; letter-spacing: -0.03rem; line-height: 1.3; }
.footer__reach small { font-size: 0.875rem; font-weight: 500; letter-spacing: 0; color: rgba(255, 255, 255, 0.6); }
.footer__reach-icon { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%; color: var(--c-lime); transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease); }
.footer__reach-icon .icon { width: 1.3rem; height: 1.3rem; }
.footer__reach a:hover .footer__reach-icon { background: var(--c-lime); border-color: var(--c-lime); color: var(--c-midnight); }
.footer__reach a:hover > span:last-child { color: var(--c-lime); }
.footer__list { display: grid; gap: 0.45rem; }
.footer__list a, .footer__list span { display: inline-flex; min-height: 2rem; align-items: center; color: rgba(255, 255, 255, 0.86); font-size: 1rem; }
.footer address { font-style: normal; font-size: 1rem; line-height: 1.7; }
.footer address a { display: inline-block; color: var(--c-white); font-weight: 600; margin-top: 0.5rem; }
.footer address .appt { display: block; margin-top: 0.5rem; color: var(--c-lime); font-weight: 500; }
.footer__word {
  margin-top: clamp(2rem, 4vw, 3rem);
  font-size: calc((min(100vw, var(--container)) - 2 * var(--gutter)) * 0.235);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.82;
  color: #e7ede9;
  white-space: nowrap;
  text-align: center;
  transform: translateY(0.06em);
}
.footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.72);
  position: relative;
  background: var(--c-midnight);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer__legal a, .footer__legal button { color: rgba(255, 255, 255, 0.86); min-height: 2rem; }

/* ============================================================
   Mobile sticky contact bar
   ============================================================ */
.mobile-cta {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: calc(0.75rem + env(safe-area-inset-bottom));
  z-index: 40;
  display: none;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 0.75rem;
  background: var(--c-white);
  box-shadow: 0 12px 32px -12px rgba(5, 23, 15, 0.35), 0 0 0 1px rgba(10, 51, 38, 0.08);
  transition: transform 0.5s var(--ease-soft), opacity 0.3s;
}
.mobile-cta.is-hidden { transform: translateY(160%); opacity: 0; }
.mobile-cta .btn { min-height: 3.25rem; }
.mobile-cta__call {
  transition: background-color 0.3s, border-color 0.3s;
  display: grid;
  place-items: center;
  width: 3.25rem;
  border-radius: var(--radius-btn);
  border: 1px solid var(--c-ink);
  color: var(--c-ink);
}
.mobile-cta__call:active { background: var(--c-lime); border-color: var(--c-lime); }

/* ============================================================
   Intro (reload or entry from outside; not on internal navigation or anchor arrivals)
   A lime route travels from Berlin to Brandenburg; the destination opens into the page's hero photo.
   Shown only while <html> has .intro-on (set by the head script) or .intro-out (closing fade).
   ============================================================ */
.intro { display: none; }
.intro-on .intro,
.intro-out .intro {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow: hidden;
  background: var(--c-cloud);
  color: var(--c-ink);
  contain: strict;
}
.intro-on { overflow: hidden; }
.intro-on .hero__media img,
.intro-done .hero__media img { animation: none; }  /* the intro window plays the zoom instead */

.intro__stage { position: absolute; inset: 0; }
.intro__map { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.intro__guide { fill: none; stroke: var(--c-fade); stroke-width: 1; stroke-dasharray: 1 7; stroke-linecap: round; opacity: 0; }
.intro__route { fill: none; stroke: var(--c-lime-strong); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.intro__origin { fill: var(--c-cloud); stroke: var(--c-ink); stroke-width: 1.5; opacity: 0; }
.intro__target { fill: var(--c-cloud); stroke: var(--c-ink); stroke-width: 1.5; opacity: 0; }

.intro__place {
  position: absolute; left: 0; top: 0; margin: 0;
  font-size: 0.8125rem; line-height: 1.45; letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap; opacity: 0;
}
.intro__place strong { display: block; font-weight: 600; }
.intro__place span { display: block; color: var(--c-muted); font-variant-numeric: tabular-nums; }

.intro__words {
  position: absolute; left: var(--gutter); bottom: 15vh; margin: 0;
  font-size: clamp(2.75rem, min(5.4vw, 10.5vh), 6.75rem);
  font-weight: 600; line-height: 1.02; letter-spacing: -0.045em;
}
.intro__line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.intro__line:nth-child(2) { padding-left: 0.9em; }
.intro__line:nth-child(3) { padding-left: 1.8em; }
.intro__line > span { display: block; transform: translateY(112%); }

.intro__brand {
  position: absolute; right: var(--gutter); bottom: 9vh;
  display: grid; justify-items: end; gap: 0.9rem; text-align: right; opacity: 0;
}
.intro__brand img { width: clamp(9.5rem, 12vw, 12.5rem); height: auto; }
.intro__brand span { font-size: 0.8125rem; line-height: 1.6; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-muted); }

.intro__dot {
  position: absolute; left: 0; top: 0;
  width: 0.75rem; height: 0.75rem; margin: -0.375rem 0 0 -0.375rem;
  border-radius: 50%; background: var(--c-lime); box-shadow: 0 0 0 1.5px var(--c-ink);
  opacity: 0; will-change: transform;
}
.intro__count {
  position: absolute; left: 1.1rem; bottom: 0.9rem;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em; color: var(--c-muted);
  font-variant-numeric: tabular-nums;
}

.intro__window { position: absolute; inset: 0; visibility: hidden; clip-path: inset(50%); }
.intro__frame { position: absolute; left: 0; top: 0; overflow: hidden; background: var(--c-midnight); }  /* hero section (home) or hero figure (subpages) */
.intro__media { position: absolute; left: 0; top: 0; }  /* hero photo rect, mirrored like the hero */
.intro__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 47.99rem) {
  .intro__words {
    left: calc(var(--gutter) + 1.75rem); top: 30vh; bottom: auto;
    font-size: min(9.4vw, 6.4vh);
  }
  .intro__line:nth-child(2) { padding-left: 0.45em; }
  .intro__line:nth-child(3) { padding-left: 0.9em; }
  .intro__brand {
    left: calc(var(--gutter) + 1.75rem); right: auto; bottom: calc(7vh + env(safe-area-inset-bottom));
    justify-items: start; text-align: left;
  }
  .intro__brand img { width: 9rem; }
}

/* ============================================================
   Reveal on scroll
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 0.9s var(--ease), transform 1s var(--ease);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .js [data-reveal="img"] {
    transform: none;
    clip-path: inset(12% 6% 12% 6% round var(--radius));
    transition: opacity 0.9s var(--ease), clip-path 1.2s var(--ease);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js [data-reveal="img"].is-in { clip-path: inset(0 0 0 0 round var(--radius)); }
}

.no-reveal [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }

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

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 96rem) {
  .nav { padding-inline: 2.5rem 1.5rem; }
  .nav__list { gap: 1.6rem; }
  .nav__phone > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav__phone {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--c-line);
    border-radius: 50%;
    transition: border-color 0.3s, background-color 0.3s;
  }
  .nav__phone:hover { border-color: var(--c-lime); background: var(--c-lime); color: var(--c-midnight); }
  .nav__phone:hover .icon { color: var(--c-midnight); }
  .nav__phone .icon { width: 1.25rem; height: 1.25rem; }
}

@media (max-width: 85rem) {
  .nav__phone { display: none; }
}

@media (max-width: 80rem) {
  :root { --header-h: 4.5rem; }
  .nav, .header__cta { display: none; }
  .header__logo { border-right: 0; padding-right: 0; }
  .header__inner { grid-template-columns: 1fr auto; }
  .menu-toggle { display: inline-flex; align-self: center; margin-right: -0.625rem; }
}

@media (max-width: 64rem) {
  .page-hero--media .page-hero__grid, .feature-split, .contact { grid-template-columns: minmax(0, 1fr); }
  .page-hero__media { aspect-ratio: 16 / 9; }
  .feature-split__media { aspect-ratio: 16 / 10; }
  .practices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .practice--services { grid-column: 1 / -1; }
  .contact__aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__appt { grid-column: 1 / -1; }
  :root { --gutter: 2.5rem; }

  .hero__grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hero__cards { max-width: 30rem; }
  .hero__content { gap: 2rem; }

  .koop { grid-template-columns: minmax(0, 1fr); }
  .koop-head__aside { margin-left: 0; }
  .koop-head__aside, .split-head > p { justify-self: start; text-align: left; }
  .onsite__lead, .onsite__cta { justify-self: start; text-align: left; }
  .treat-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .treat:nth-child(n) { border-left: 1px solid var(--c-line); padding-left: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); }
  .treat:nth-child(2n + 1) { border-left: 0; padding-left: 0; }
  .koop__aside { position: static; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; }
  .koop__image { aspect-ratio: 4 / 3; }
  .cta-split__media img { object-position: 35% 0%; }

  .equip { grid-template-columns: minmax(0, 1fr); }
  .equip__sticky { display: none; }
  .split-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .equip__steps { gap: 1.25rem; }
  .equip-step { min-height: 0; opacity: 1; background: var(--c-white); border-color: var(--c-line); }
  .equip-step__img { grid-column: 1 / -1; }
  .equip-step .equip-step__num { grid-row: 2 / span 4; color: var(--c-brand); }
  .equip-step__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.75rem; }
  .equip-step > :not(.equip-step__num):not(.equip-step__img):not(h3) { grid-column: 1 / -1; }

  .portfolio { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .portfolio__photo { grid-column: 1 / -1; grid-row: auto; min-height: 0; aspect-ratio: 16 / 9; }

  .doctors { grid-template-columns: minmax(0, 1fr); }
  .org-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .org-cols > div:nth-child(n) { padding-left: clamp(1.25rem, 0.75rem + 1.4vw, 2.25rem); border-left: 1px solid var(--c-line); }
  .org-cols > div:nth-child(2n + 1) { padding-left: 0; border-left: 0; }
  .org-cols > div:nth-child(n + 3) { border-top: 1px solid var(--c-line); }
  .adv-bento > .adv:nth-child(n) { grid-column: span 6; }
  .adv-bento > .adv:nth-child(1), .adv-bento > .adv:nth-child(4) { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__grid > :first-child { grid-column: 1 / -1; }

  .cta-split { min-height: 0; flex-direction: column; align-items: stretch; }
  .cta-split__media { position: relative; aspect-ratio: 16 / 9; }
  .cta-split__panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }

}

@media (max-width: 47.99rem) {
  .page-hero__lead { font-size: 1.0625rem; }
  .page-hero__actions .btn, .feature-split__actions .btn, .form__submit { width: 100%; }
  .page-hero__media { aspect-ratio: 4 / 3; }
  .topic-grid { padding: 1.5rem; }
  .topic-grid .plus-list { grid-template-columns: minmax(0, 1fr); }
  .practices, .contact__aside, .form__row { grid-template-columns: minmax(0, 1fr); }
  .contact__form { padding: 1.5rem 1.25rem; }
  .choice-row { display: grid; }
  .choice span { width: 100%; }
  :root { --gutter: 1rem; --fs-body: 1.0625rem; }
  h1 { letter-spacing: -0.08rem; }
  h2, .onsite__head h2, .adv-head h2 { letter-spacing: -0.05rem; }
  h3, h4 { hyphens: auto; -webkit-hyphens: auto; }
  .footer__bar { padding-bottom: calc(1.75rem + env(safe-area-inset-bottom)); }  /* the sticky contact bar hides over the footer, no reserve needed */
  .mobile-cta { display: grid; }

  .hero { min-height: 0; padding-top: calc(var(--header-h) + 2.5rem); }
  .hero::before {
    background: linear-gradient(180deg, rgba(5, 23, 15, 0.82) 0%, rgba(5, 23, 15, 0.7) 50%, rgba(5, 23, 15, 0.86) 100%);
  }
  .hero__grid { min-height: 0; }
  .hero__text { font-size: 1.125rem; }
  .hero__actions .btn { width: 100%; }
  .hero__chips { display: none; }
  .hero-card .hero-card__big { font-size: 1.3rem; letter-spacing: -0.04rem; }
  .hero-card strong { white-space: normal; }
  .hero__media img { object-position: 42% 50%; }
  .hero-card { padding: 0.9rem 1rem 1rem; }

  .services__top { flex-direction: column; align-items: flex-start; }
  .slider-nav { display: none; }
  .service-track { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; gap: 1.25rem; padding-inline: var(--gutter); }
  .service-card { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .service-card__media { aspect-ratio: 16 / 10; }
  .service-card__body { padding: 1.75rem 1.5rem 1.25rem; }
  .service-card h3 { margin-bottom: 1.25rem; }

  .koop__aside { grid-template-columns: minmax(0, 1fr); }
  .koop-head__aside .btn { width: 100%; }
  .kstep { grid-template-columns: 2.75rem minmax(0, 1fr); gap: 0.9rem; padding: 1.3rem 0 1.2rem; }
  .kstep__num { font-size: 1.75rem; letter-spacing: -0.06rem; }
  .kstep h4 { font-size: 1.1875rem; }
  .kstep p { font-size: 1rem; }
  .phase__title { flex-wrap: wrap; gap: 0.6rem; }

  .onsite__cta { justify-self: stretch; }
  .onsite__cta .btn { width: 100%; }
  .media-wide { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0.75rem; }
  .media-wide .media-frame { aspect-ratio: auto; height: 17rem; }
  .media-frame--land img { object-position: 38% 50%; }
  .media-frame__tag { left: 0.6rem; bottom: 0.6rem; font-size: 0.8125rem; }
  .video-toggle { left: 0.6rem; bottom: 0.6rem; width: 2.75rem; height: 2.75rem; }
  .treat-list { grid-template-columns: minmax(0, 1fr); }
  .treat:nth-child(n) {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr);
    column-gap: 1rem;
    row-gap: 0.35rem;
    padding: 1.5rem 0;
    border-left: 0;
  }
  .treat__icon { grid-row: 1 / span 2; width: 2.75rem; height: 2.75rem; margin: 0; }
  .treat__icon .icon { width: 1.3rem; height: 1.3rem; }
  .treat h4 { font-size: 1.1875rem; }
  .onsite__note { grid-template-columns: minmax(0, 1fr); }
  .onsite__note-icon { display: none; }
  .onsite__note .btn { width: 100%; }

  .cta-split__panels { grid-template-columns: minmax(0, 1fr); }
  .cta-panel .btn { width: 100%; }

  .portfolio { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .statement { padding: 2.25rem 1.75rem 2rem; }
  .statement p { font-size: 1.1875rem; }
  .area-card { padding: 2rem 1.75rem; min-height: 15rem; }
  .doctor { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .doctor__photo { aspect-ratio: 4 / 4.2; }
  .org-cols { grid-template-columns: minmax(0, 1fr); border-bottom: 0; }
  .org-cols > div:nth-child(n) { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 0.25rem 1rem; padding: 1.5rem 0; border-left: 0; border-top: 0; border-bottom: 1px solid var(--c-line); }
  .org-cols__icon { grid-row: 1 / 3; width: 2.75rem; height: 2.75rem; margin: 0; }
  .org-cols .icon { width: 1.3rem; height: 1.3rem; }
  .equip-step { grid-template-columns: 3rem minmax(0, 1fr); padding: 1.25rem 1.25rem 1.75rem; }
  .equip-step__num { font-size: 2rem; letter-spacing: -0.08rem; }
  .equip-step h3 { font-size: var(--fs-h4); }
  .org-cols h3 { margin-bottom: 0.25rem; }
  .org-cols p { margin: 0; max-width: none; }

  .cta-orbit__inner { min-height: 0; padding-block: 1rem; }
  .orb { display: none; }
  .orb--keep { display: block; position: relative; left: auto; top: auto; margin: 0 auto 2rem; }
  .cta-orbit__actions .btn { width: 100%; }

  .adv-bento { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .adv-bento > .adv:nth-child(n) { grid-column: auto; }
  .adv { min-height: 0; gap: 2rem; }
  .adv--media { display: flex; flex-direction: column-reverse; }
  .adv--media .adv__content { width: auto; height: auto; gap: 2rem; }
  .adv--media .adv__img { position: static; width: 100%; height: 14rem; }
  .adv-rows { grid-template-columns: minmax(0, 1fr); }
  .adv-row { grid-template-columns: 2.75rem minmax(0, 1fr); column-gap: 1rem; padding: 1.5rem 0; }
  .adv-row__icon { width: 2.75rem; height: 2.75rem; }
  .adv-row h4 { font-size: 1.1875rem; }

  .tabs { display: grid; grid-template-columns: minmax(0, 1fr); }
  .tab { justify-content: space-between; width: 100%; }
  .acc__btn { grid-template-columns: minmax(0, 1fr) 2.75rem; }
  .acc__num { display: none; }
  .acc__q { font-size: 1.125rem; }
  .acc__content { padding: 0 0 1.5rem; }

  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .footer__bar { flex-direction: column; }
}

/* ============================================================
   Mobile composition (< 768px only): heading -> image -> text -> full-width button at the end,
   80px between blocks. Reorders existing markup with flex order + display: contents,
   so desktop and tablet layouts stay untouched.
   ============================================================ */
@media (max-width: 47.99rem) {
  :root {
    --section: 5rem;
    --m-head-media: 1.75rem;   /* heading to its image */
    --m-media-text: 1.5rem;    /* image to the text below */
    --m-to-btn: 2rem;          /* content to the closing button */
  }

  /* Block rhythm: every block is separated by 80px */
  .section--first { padding-top: var(--section); }
  .page-hero { padding-bottom: var(--section); }
  .marquee { padding-block: 0.25rem; }  /* room for descenders (g, p) inside the clipped strip */
  .marquee__group span { line-height: 1.3; }
  .adv-section { padding-top: var(--section); }
  .section:not(.section--cloud) + .cta-orbit { padding-top: 0; }  /* after a white section: one 80px gap, not two */
  .jump { padding-top: var(--section); border-bottom: 0; }  /* 80px from the hero, 80px to the next block */
  .jump__list { padding-block: 0.125rem; }
  .footer { padding-top: var(--section); }

  /* Every button in page content spans the full width */
  main .btn { width: 100%; }

  /* Hero: portrait photo as full background, headline, text, facts, buttons last */
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100svh;
    padding: calc(var(--header-h) + min(52vh, 24rem)) var(--gutter) 2.5rem;
  }
  .hero::before {
    display: block;
    background: linear-gradient(180deg, rgba(5, 23, 15, 0.3) 0, rgba(5, 23, 15, 0) calc(var(--header-h) + 3rem), rgba(5, 23, 15, 0) calc(var(--header-h) + 13rem), rgba(5, 23, 15, 0.86) calc(var(--header-h) + 25rem), var(--c-midnight) 177.7vw);
  }
  .hero > .container-xl,
  .hero__grid,
  .hero__content,
  .hero__content > div { display: contents; }
  .hero__media { inset: 0 0 auto 0; height: 177.7vw; transform: none; }  /* full portrait photo at screen width */
  .hero__media img { object-position: 50% 0; }
  .hero h1 { order: 1; margin-bottom: 1rem; }
  .hero__text { order: 2; margin-bottom: 1.75rem; }
  .hero__cards { order: 3; max-width: none; margin-bottom: var(--m-to-btn); }
  .hero__actions { order: 4; display: grid; gap: 0.75rem; }

  /* Service cards: tag + title, image, list, link as a full-width row */
  .service-card { display: flex; flex-direction: column; padding: 1.75rem 1.5rem 1rem; }
  .service-card__body { display: contents; }
  .service-card__tag { order: 1; margin-bottom: 0.75rem; }
  .service-card h3 { order: 2; margin-bottom: var(--m-head-media); }
  .service-card__media { order: 3; aspect-ratio: 16 / 10; border-radius: var(--radius); margin-bottom: var(--m-media-text); }
  .service-card .plus-list { order: 4; margin-top: 0; }
  .service-card__foot { order: 5; margin-top: 1.5rem; }
  .service-card__foot .text-link { display: flex; justify-content: space-between; width: 100%; }

  /* Cooperation: title, photo, intro, steps, note, button */
  .container:has(> .koop-head) { display: flex; flex-direction: column; }
  .koop-head, .koop-head__aside, .koop, .koop__aside { display: contents; }
  .koop-head > :first-child { order: 1; flex: none; margin-bottom: var(--m-head-media); }
  .koop__image { order: 2; aspect-ratio: 4 / 3; margin-bottom: var(--m-media-text); }
  .koop-head__aside p { order: 3; margin: 0 0 2rem; }
  .koop__phases { order: 4; }
  .koop__note { order: 5; margin-top: 2rem; }
  .koop-head__aside .btn { order: 6; margin-top: var(--m-to-btn); }

  /* On-site treatment: title, media, lead, treatments, note, button */
  .onsite > .container { display: flex; flex-direction: column; }
  .onsite__head { display: contents; }
  .onsite__head .label { order: 1; align-self: flex-start; }
  .onsite__head h2 { order: 2; margin-bottom: var(--m-head-media); }
  .media-wide { order: 3; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; margin-top: 0; }
  .media-wide .media-frame--land { height: auto; aspect-ratio: 16 / 10; }
  .media-wide .media-frame--video { height: auto; aspect-ratio: 4 / 5; }
  .media-frame__tag, .video-toggle { left: 0.875rem; bottom: 0.875rem; }
  .media-frame__tag { font-size: 0.875rem; }
  .video-toggle { width: 3.25rem; height: 3.25rem; }
  .onsite__lead { order: 4; width: auto; margin-top: var(--m-media-text); }
  .treat-head { order: 5; margin-top: 3rem; }
  .treat-list { order: 6; }
  .onsite__note { order: 7; display: contents; }
  .onsite__note p {
    order: 7;
    margin-top: 2.5rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--c-cloud);
  }
  .onsite__cta { order: 8; margin-top: var(--m-to-btn); }
  .onsite__note .btn { order: 9; margin-top: 0.75rem; }

  /* CTA split (Heltro "our care" on mobile): full-bleed photo on top, then a full-width dark panel
     rounded only at the top-left corner, then the light panel; buttons close each panel */
  .cta-split {
    --cta-photo: min(112vw, 32rem);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: var(--cta-photo) 0 0;
    background: var(--c-white);
  }
  .cta-split__media {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: -1;
    height: calc(var(--cta-photo) + 2rem);
    aspect-ratio: auto;
  }
  .cta-split__media { overflow: hidden; }
  /* Oversized by 24% so the parallax shift (up to 12% each way) never reveals an edge */
  .cta-split__media img {
    position: absolute;
    left: 0;
    top: -12%;
    height: 124%;
    object-position: 45% 35%;
    will-change: transform;
  }
  .cta-split__panels { display: grid; grid-template-columns: minmax(0, 1fr); }
  .cta-panel { padding: 2.5rem var(--gutter) 3rem; }
  .cta-panel--dark { border-radius: 1rem 0 0 0; }
  .cta-panel h2 { font-size: 1.5rem; line-height: 1.3; letter-spacing: -0.05rem; margin-bottom: 0.9rem; }
  .cta-panel p { margin-bottom: var(--m-to-btn); }
  .cta-panel--light { display: flex; flex-direction: column; padding-bottom: 3.5rem; }
  .cta-panel--light .label { align-self: flex-start; }
  .cta-panel--light p { margin-bottom: 1.25rem; }
  .cta-panel__phone { order: 1; align-self: flex-start; margin: 0 0 1.5rem; }
  .cta-panel--light .btn { order: 2; }

  /* Equipment steps: number + title, image, text */
  .equip-step { grid-template-columns: auto minmax(0, 1fr); column-gap: 0.9rem; align-items: baseline; }
  .equip-step .equip-step__num { grid-row: 1; grid-column: 1; }
  .equip-step > :not(.equip-step__num):not(.equip-step__img) { grid-column: 1 / -1; }
  .equip-step > h3:not(.equip-step__num):not(.equip-step__img) { grid-row: 1; grid-column: 2; padding-top: 0; margin-bottom: var(--m-head-media); }
  .equip-step__img { grid-row: 2; margin-bottom: var(--m-media-text); }

  /* Doctors: role + name, portrait, facts */
  .doctor { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .doctor > :not(.doctor__photo) { display: contents; }
  .doctor__role { order: 1; }
  .doctor h3 { order: 2; margin-bottom: var(--m-head-media); }
  .doctor__photo { order: 3; margin-bottom: var(--m-media-text); }
  .doctor__facts { order: 4; }

  /* Partner CTA: the desktop orbit condensed into a scattered cluster of all six photos
     above a centred title, text and full-width buttons */
  .cta-orbit__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 16rem 0 0;
  }
  .cta-orbit__copy { display: contents; }
  .cta-orbit .orb,
  .cta-orbit .orb--keep { display: block; position: absolute; margin: 0; }
  .cta-orbit .orb:nth-child(1) { width: 6rem; height: 6rem; left: 0; top: 0; }
  .cta-orbit .orb:nth-child(2) { width: 3.75rem; height: 3.75rem; left: calc(50% - 1.875rem); top: 9.5rem; }
  .cta-orbit .orb:nth-child(3) { width: 4.5rem; height: 4.5rem; left: 1.75rem; top: 8.25rem; }
  .cta-orbit .orb:nth-child(4) { width: 5.5rem; height: 5.5rem; left: calc(100% - 6.5rem); top: 8rem; }
  .cta-orbit .orb:nth-child(5) { width: 5rem; height: 5rem; left: calc(100% - 5rem); top: 1.5rem; }
  .cta-orbit .orb:nth-child(6) { width: 7rem; height: 7rem; left: calc(50% - 3.5rem); top: 1rem; }
  .cta-orbit__inner { text-align: center; }  /* partner CTA stays centred, like the desktop orbit */
  .cta-orbit__copy h2 {
    order: 1;
    margin-bottom: 1rem;
    font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.125rem);
    line-height: 1.2;
  }
  .cta-orbit__copy p { order: 2; margin-bottom: var(--m-to-btn); }
  .cta-orbit__actions { order: 3; display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; gap: 0.75rem; }

  /* Advantages: the photo card leads, inside it title, image, text */
  .adv--media {
    order: -1;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 1.75rem;
    container-type: inline-size;
  }
  .adv--media .adv__content, .adv--media .adv__body { display: contents; }
  .adv--media .adv__icon { order: 1; margin-bottom: 2rem; }
  .adv--media .adv__big { order: 2; }
  .adv--media h3 { order: 3; margin-bottom: var(--m-head-media); }
  .adv--media .adv__img {
    order: 4;
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    margin-bottom: var(--m-media-text);
  }
  .adv--media p { order: 5; }

  /* Subpage hero: label, title, image, lead, buttons */
  .page-hero--media .page-hero__grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .page-hero--media .page-hero__copy { display: contents; }
  .page-hero--media .label { order: 1; align-self: flex-start; }
  .page-hero--media h1 { order: 2; margin-bottom: var(--m-head-media); }
  .page-hero--media .page-hero__media { order: 3; margin: 0; }
  .page-hero--media .page-hero__lead { order: 4; margin-top: var(--m-media-text); }
  .page-hero__actions { order: 5; display: grid; gap: 0.75rem; margin-top: var(--m-to-btn); }

  /* Feature split: label, title, image, copy, button */
  .feature-split { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .feature-split__copy { display: contents; }
  .feature-split__copy > * { order: 4; }
  .feature-split__copy > .label { order: 1; align-self: flex-start; }
  .feature-split__copy > h2 { order: 2; margin-bottom: var(--m-head-media); }
  .feature-split__media { order: 3; margin: 0 0 var(--m-media-text); }
  .feature-split__copy > .feature-split__actions { order: 5; margin-top: var(--m-to-btn); }

  /* ---- Heltro mobile patterns ---- */

  /* Section labels, titles and intros are left-aligned on mobile */
  .services__top { align-items: flex-start; text-align: left; }
  .section-head--center { text-align: left; }
  .section-head--center { margin-inline: 0; }
  .split-head { justify-items: start; text-align: left; }
  .split-head > p { justify-self: start; text-align: left; }

  /* Icon lists as two centred columns: icon, title, text (Heltro counters / care icons) */
  .treat-head { border-bottom: 0; padding-bottom: 0; text-align: center; }
  .treat-list,
  .org-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 1rem;
    margin-top: 2rem;
    border: 0;
  }
  .treat:nth-child(n),
  .org-cols > div:nth-child(n) {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0;
    border: 0;
    text-align: center;
  }
  .treat__icon, .org-cols__icon { width: 3.5rem; height: 3.5rem; margin: 0 0 0.6rem; }
  .treat__icon .icon, .org-cols .icon { width: 1.6rem; height: 1.6rem; }
  .treat h4, .org-cols h3 { font-size: 1.0625rem; letter-spacing: -0.02rem; margin: 0; text-wrap: wrap; hyphens: manual; -webkit-hyphens: manual; }  /* plain wrapping: balance + auto hyphens split short words (Aku-te) */
  .treat p, .org-cols p { font-size: 1rem; line-height: 1.55; max-width: none; hyphens: manual; -webkit-hyphens: manual; text-wrap: wrap; }
  .org-cols { margin-top: 3.5rem; }

  /* FAQ tabs as a segmented control: one panel, three equal segments with icon + two-line label */
  .tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.25rem;
    padding: 0.3rem;
    margin-bottom: 2rem;
    border: 1px solid var(--c-line);
    border-radius: 0.875rem;
    background: var(--c-white);
    box-shadow: 0 10px 28px -18px rgba(5, 23, 15, 0.35);
  }
  .tab {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    width: auto;
    min-height: 5.5rem;
    padding: 0.9rem 0.3rem 0.8rem;
    border: 0;
    border-radius: 0.625rem;
    color: var(--c-body);
    font-size: 0.875rem;
    line-height: 1.25;
    text-align: center;
    hyphens: manual;
  }
  .tab small { display: none; }
  .tab__icon { display: block; width: 1.5rem; height: 1.5rem; color: var(--c-brand); transition: color 0.35s var(--ease); }
  .tab__label { text-wrap: balance; }
  .tab:not([aria-selected="true"]):hover { background: transparent; }  /* sticky :hover after a tap must not hide the active fill */
  .tab[aria-selected="true"],
  .tab[aria-selected="true"]:hover { background: var(--c-lime); color: var(--c-midnight); }
  .tab[aria-selected="true"] .tab__icon { color: var(--c-midnight); }
  .tab:not([aria-selected="true"]):active { background: var(--c-cloud); }

  /* Footer centred: contact block, page links in a row, both practices side by side, legal bar */
  .footer { text-align: center; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.25rem; }
  .footer__grid > :first-child, .footer__grid > nav { grid-column: 1 / -1; }
  .footer__contact { max-width: none; }
  .footer__logo { margin-inline: auto; }
  .footer__contact h2, .footer__lead { margin-inline: auto; }
  .footer__reach { justify-items: start; width: max-content; max-width: 100%; margin-inline: auto; }
  .footer__reach a { text-align: left; }
  .footer h2 { font-size: 1.1875rem; margin-bottom: 1rem; }
  .footer__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.5rem; }
  .footer__bar { align-items: center; text-align: center; }
  .footer__bar .container { flex-direction: column; align-items: center; }
  .footer__legal { justify-content: center; gap: 0.5rem 1.5rem; }
  .footer__bar .container > :not(.footer__legal) { order: 2; }  /* copyright is the last line of the page */
}

/* Contact form, mobile: compact rhythm (tighter padding and gaps, 46px inputs, topic chips at their
   natural width instead of full-width rows); tap targets stay at least 44px, inputs stay 16px (no iOS zoom) */
@media (max-width: 47.99rem) {
  .contact__form { padding: 1.25rem 1rem 1.5rem; }
  .contact__form h2 { margin-bottom: 0; }
  .contact__intro { margin: 0.5rem 0 1.25rem; font-size: 0.9375rem; }
  .form, .form__row { gap: 1rem; }
  .field { gap: 0.375rem; }
  .field > label, .field legend { font-size: 0.9375rem; }
  .field legend { margin-bottom: 0.5rem; }
  .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
    min-height: 2.875rem; padding: 0.6rem 0.875rem; font-size: 1rem;
  }
  .field textarea { min-height: 6.5rem; }
  .field__help, .field__error { font-size: 0.875rem; }
  .choice-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .choice span { width: auto; padding: 0.45rem 0.875rem; font-size: 0.9375rem; }
  .field > .check { gap: 0.625rem; font-size: 0.9375rem; font-weight: 400; line-height: 1.5; color: var(--c-body); }
}

/* ============================================================
   Правки 29.10.2026
   ============================================================ */

/* Label above headings: more air between label and title */
.label { margin-bottom: 1.5rem; }
.onsite__head .label, .split-head .label { margin-bottom: 1.75rem; }

/* Heading to photo / content below it */
.section-head { margin-bottom: clamp(3rem, 2.25rem + 2.6vw, 5.25rem); }

/* Larger line height in headings */
h2 { line-height: 1.28; }
.adv-head h2 { line-height: 1.26; }
.cta-orbit__copy h2 { line-height: 1.3; margin-bottom: 1.4rem; }
.page-hero h1, .hero h1 { line-height: 1.16; }

/* Marquee: white 3D tooth instead of the asterisk */
.marquee__tooth {
  flex: none;
  width: clamp(2.5rem, 1.1rem + 5.2vw, 7.25rem);
  height: auto;
  margin-inline: clamp(1rem, 2vw, 2.25rem);
  filter: drop-shadow(0 0.4rem 0.7rem rgba(10, 51, 38, 0.2));
  transform: rotate(-6deg);
}
@media (prefers-reduced-motion: no-preference) {
  .marquee__tooth { animation: tooth-sway 5s var(--ease-soft) infinite alternate; }
  .marquee__group .marquee__tooth:nth-of-type(2n) { animation-delay: -2.5s; }
}
@keyframes tooth-sway {
  from { transform: rotate(-8deg) translateY(2%); }
  to { transform: rotate(7deg) translateY(-4%); }
}

/* ---------- Two phone numbers: popover in header and sticky bar ---------- */
.phone-pop { position: relative; }
.phone-pop > summary { list-style: none; cursor: pointer; }
.phone-pop > summary::-webkit-details-marker { display: none; }
.nav .phone-pop > summary.nav__phone {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--c-line); border-radius: 50%;
  transition: border-color 0.3s, background-color 0.3s;
}
.nav .phone-pop > summary.nav__phone .icon { width: 1.25rem; height: 1.25rem; }
.nav .phone-pop > summary.nav__phone:hover,
.nav .phone-pop[open] > summary.nav__phone { border-color: var(--c-lime); background: var(--c-lime); color: var(--c-midnight); }
.nav .phone-pop > summary.nav__phone:hover .icon,
.nav .phone-pop[open] > summary.nav__phone .icon { color: var(--c-midnight); }
.phone-pop__panel {
  position: absolute; right: 0; top: calc(100% + 0.75rem); z-index: 60;
  display: grid; gap: 0.25rem; min-width: 15.5rem; padding: 0.5rem;
  border-radius: var(--radius); background: var(--c-white);
  box-shadow: 0 1.25rem 2.5rem rgba(5, 23, 15, 0.16), 0 0 0 1px var(--c-line);
}
.phone-pop__panel a {
  display: grid; gap: 0.05rem; padding: 0.7rem 0.9rem; border-radius: var(--radius-btn);
  color: var(--c-ink); line-height: 1.3; text-align: left;
  transition: background-color 0.25s var(--ease);
}
.phone-pop__panel a:hover { background: var(--c-lime-soft); }
.phone-pop__panel small { font-size: 0.875rem; color: var(--c-muted); font-weight: 500; }
.phone-pop__panel strong { font-size: 1.125rem; font-weight: 600; white-space: nowrap; }
.phone-pop--up .phone-pop__panel { top: auto; bottom: calc(100% + 0.75rem); left: 0; right: auto; }
.mobile-cta .phone-pop > summary.mobile-cta__call { height: 100%; min-height: 3.25rem; }
@media (max-width: 85rem) { .nav .phone-pop { display: none; } }

/* Phone pairs in buttons and panels */
.cta-panel__phones { display: grid; gap: 0.1rem; margin-top: 1rem; }
.cta-panel__phones .cta-panel__phone { margin-top: 0; }
.footer__reach small b { font-weight: 500; }
.contact-card--phones > span:last-child { gap: 0.2rem; }
.contact-card--phones a { color: var(--c-white); font-size: 1.375rem; font-weight: 600; line-height: 1.3; }
.contact-card--phones a:hover { color: var(--c-lime); }
.contact-card--phones a small { display: inline; margin-left: 0.4rem; font-size: 0.875rem; color: rgba(255, 255, 255, 0.6); font-weight: 500; }

/* ---------- Team: four people, photo then name and role ---------- */
.team-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.4vw, 2.25rem);
  margin-top: clamp(4rem, 6vw, 6rem);
}
.member__photo { overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--c-cloud); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform 0.9s var(--ease); }
.member:hover .member__photo img { transform: scale(1.04); }
.member h3 { margin-top: 1.25rem; font-size: var(--fs-h5); font-weight: 600; letter-spacing: -0.04rem; line-height: 1.3; }
.member__role { margin-top: 0.35rem; font-size: var(--fs-small); line-height: 1.45; color: var(--c-brand); font-weight: 600; }
@media (max-width: 64rem) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.75rem; } }
@media (max-width: 30rem) { .team-grid { gap: 2.25rem 0.9rem; } .member h3 { font-size: 1.125rem; margin-top: 0.9rem; } .member__role { font-size: 0.9375rem; } }

/* ---------- Cooperation: seven steps grouped into three visual phases ---------- */
.phase {
  position: relative;
  padding: clamp(1.5rem, 1rem + 1.6vw, 2.5rem) clamp(1.5rem, 1rem + 1.8vw, 2.75rem) clamp(0.5rem, 0.25rem + 0.8vw, 1rem);
  border-radius: var(--radius);
  background: var(--c-cloud);
}
.section--cloud .phase { background: var(--c-white); }
.phase + .phase { margin-top: 1.25rem; }
.phase::before {
  content: ""; position: absolute; left: 0; top: 1.5rem; bottom: 1.5rem; width: 4px;
  border-radius: 0 4px 4px 0; background: var(--c-lime);
}
.phase--2::before { background: var(--c-lime-strong); }
.phase--3::before { background: var(--c-brand); }
.phase__title {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0.25rem 1.1rem;
  padding-bottom: 1.25rem; border-bottom: 1px solid var(--c-line);
  font-size: var(--fs-h4); letter-spacing: -0.06rem; line-height: 1.2;
}
.phase__title .phase__num {
  grid-row: 1 / 3; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; padding: 0;
  border: 0; border-radius: 50%; background: var(--c-lime); color: var(--c-midnight);
  font-size: 1.375rem; font-weight: 700; letter-spacing: -0.04rem;
}
.phase--3 .phase__title .phase__num { background: var(--c-brand); color: var(--c-white); }
.phase__title .phase__kicker {
  padding: 0; border: 0; border-radius: 0; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.02rem;
  text-transform: uppercase; color: var(--c-muted); align-self: end;
}
.phase__title .phase__name { padding: 0; border: 0; font-size: inherit; font-weight: 600; letter-spacing: inherit; color: var(--c-ink); align-self: start; }
.phase .kstep:last-child { border-bottom: 0; }
@media (max-width: 47.99rem) {
  .phase { padding: 1.4rem 1.25rem 0.25rem; }
  .phase__title { flex-wrap: nowrap; gap: 0.15rem 0.9rem; font-size: 1.375rem; }
  .phase__title .phase__num { width: 2.75rem; height: 2.75rem; font-size: 1.125rem; }
}

/* ---------- Home: the clinic as its own direction ---------- */
.praxis-band { background: var(--c-midnight); color: rgba(255, 255, 255, 0.82); overflow: hidden; }
.praxis-band .label { color: var(--c-lime); }
.praxis-band h2 { color: var(--c-white); }
.praxis-band__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 6vw, 6.5rem); align-items: center; }
.praxis-band__lead { margin-top: 1.5rem; max-width: 36rem; font-size: 1.1875rem; line-height: 1.65; }
.praxis-band__services { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.praxis-band__services li {
  padding: 0.45rem 0.95rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.9375rem; line-height: 1.4; color: var(--c-white); white-space: nowrap;
}
.praxis-band__places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2.25rem; }
.praxis-band__places div { padding: 1.1rem 1.25rem; border-radius: var(--radius); background: rgba(255, 255, 255, 0.06); line-height: 1.5; font-size: 1rem; }
.praxis-band__places strong { display: block; color: var(--c-white); font-weight: 600; margin-bottom: 0.2rem; }
.praxis-band__places a { color: var(--c-lime); font-weight: 600; }
.praxis-band__actions { display: flex; flex-wrap: wrap; gap: 0.9375rem; margin-top: 2.25rem; }
.praxis-band .btn--outline { --btn-fg: var(--c-white); --btn-border: rgba(255, 255, 255, 0.5); }
.praxis-band__media { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 1rem; }
.praxis-band__media figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: rgba(255, 255, 255, 0.05); }
.praxis-band__media img { width: 100%; height: 100%; object-fit: cover; }
.praxis-band__media figure:first-child { grid-row: 1 / 3; aspect-ratio: 3 / 4.2; }
.praxis-band__media figure:nth-child(2), .praxis-band__media figure:nth-child(3) { aspect-ratio: 4 / 3.3; }
@media (max-width: 64rem) { .praxis-band__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 47.99rem) {
  .praxis-band__places { grid-template-columns: minmax(0, 1fr); }
  .praxis-band__actions .btn { width: 100%; }
  .praxis-band__services li { white-space: normal; }
}

/* ---------- Praxis page ---------- */
.praxis-services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.praxis-service { display: flex; flex-direction: column; gap: 0.6rem; padding: clamp(1.5rem, 1rem + 1.4vw, 2.25rem); border-radius: var(--radius); background: var(--c-white); border: 1px solid var(--c-line); }
.section:not(.section--cloud) .praxis-service { background: var(--c-cloud); border-color: transparent; }
.praxis-service .treat__icon { margin-bottom: 0.5rem; }
.praxis-service h3 { font-size: 1.3125rem; font-weight: 600; letter-spacing: -0.04rem; line-height: 1.3; }
.praxis-service p { font-size: 1rem; line-height: 1.6; }
@media (max-width: 72rem) { .praxis-services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 30rem) { .praxis-services { grid-template-columns: minmax(0, 1fr); } }

.praxis-videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.praxis-video { margin: 0; }
.praxis-video .media-frame { aspect-ratio: 9 / 16; }
.praxis-video--scan .media-frame { aspect-ratio: 4 / 5; }
.praxis-video figcaption { margin-top: 1rem; }
.praxis-video figcaption strong { display: block; color: var(--c-ink); font-weight: 600; font-size: 1.125rem; }
.praxis-video figcaption span { font-size: 1rem; }
.media-frame--video video[controls] + .video-toggle { display: none; }
@media (max-width: 64rem) { .praxis-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 47.99rem) { .praxis-videos { grid-template-columns: minmax(0, 1fr); } .praxis-video .media-frame { max-height: 80vh; } }

.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; }
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); grid-column: span 4; aspect-ratio: 4 / 3; background: var(--c-cloud); }
.gallery figure.is-tall { grid-row: span 2; aspect-ratio: auto; }
.gallery figure.is-wide { grid-column: span 8; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.gallery figure:hover img { transform: scale(1.03); }
@media (max-width: 47.99rem) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .gallery figure, .gallery figure.is-wide { grid-column: span 1; aspect-ratio: 1; }
  .gallery figure.is-tall { grid-row: auto; aspect-ratio: 1; }
}

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.4vw, 2rem); }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--c-white); border: 1px solid var(--c-line); transition: border-color 0.3s var(--ease), transform 0.5s var(--ease); }
.section:not(.section--cloud) .post-card { background: var(--c-cloud); border-color: transparent; }
.post-card:hover { border-color: var(--c-lime); transform: translateY(-4px); }
.post-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-cloud); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__badge { position: absolute; left: 0.875rem; bottom: 0.875rem; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.7rem; border-radius: var(--radius-btn); background: rgba(255, 255, 255, 0.92); color: var(--c-ink); font-size: 0.875rem; font-weight: 600; }
.post-card__badge .icon { width: 0.9rem; height: 0.9rem; }
.post-card__body { display: flex; flex-direction: column; gap: 0.7rem; flex: 1; padding: clamp(1.4rem, 1rem + 1vw, 1.9rem); }
.post-card__meta { font-size: 0.9375rem; color: var(--c-muted); }
.post-card h3 { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.04rem; line-height: 1.3; }
.post-card p { font-size: 1rem; line-height: 1.6; }
.post-card .text-link { margin-top: auto; padding-top: 0.5rem; }
.blog-empty { padding: 2.5rem; border-radius: var(--radius); background: var(--c-cloud); text-align: center; }
.blog-more { display: flex; justify-content: center; margin-top: clamp(2.5rem, 4vw, 3.5rem); }
@media (max-width: 64rem) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 47.99rem) { .blog-grid { grid-template-columns: minmax(0, 1fr); } }

.post { max-width: 50rem; margin-inline: auto; }
.post__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 1.5rem; font-size: 1rem; color: var(--c-muted); }
.post__cover { margin: 0 0 clamp(2rem, 4vw, 3rem); overflow: hidden; border-radius: var(--radius); }
.post__cover img { width: 100%; height: auto; }
.post__body { font-size: 1.1875rem; line-height: 1.75; }
.post__body > * + * { margin-top: 1.1rem; }
.post__body h2 { margin-top: 2.5rem; font-size: var(--fs-h4); }
.post__body h3 { margin-top: 2rem; font-size: var(--fs-h5); font-weight: 600; }
.post__body ul { list-style: disc; padding-left: 1.4rem; }
.post__body ol { list-style: decimal; padding-left: 1.4rem; }
.post__body li + li { margin-top: 0.35rem; }
.post__body a { color: var(--c-brand); text-decoration: underline; text-underline-offset: 0.2em; }
.post__body blockquote { margin-inline: 0; padding: 1rem 1.5rem; border-left: 3px solid var(--c-lime); background: var(--c-cloud); border-radius: 0 var(--radius) var(--radius) 0; }
.post__media { display: grid; gap: 1rem; margin-top: clamp(2rem, 4vw, 3rem); }
.post__media video, .post__media iframe { width: 100%; border-radius: var(--radius); background: #000; }
.post__media video { max-height: 85vh; }
.post__media iframe { aspect-ratio: 16 / 9; height: auto; border: 0; }
.post__gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.post__gallery a { display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--c-cloud); }
.post__gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.post__gallery a:hover img { transform: scale(1.04); }
.post__back { margin-top: clamp(2.5rem, 4vw, 3.5rem); padding-top: 2rem; border-top: 1px solid var(--c-line); }
@media (max-width: 47.99rem) { .post__gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } .post__body { font-size: 1.0625rem; } }

.lightbox { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; padding: 1rem; background: rgba(5, 23, 15, 0.92); }
.lightbox.is-open { display: grid; }
.lightbox img { max-width: min(100%, 90rem); max-height: 88vh; width: auto; height: auto; border-radius: var(--radius); }
.lightbox button { position: absolute; top: 1rem; right: 1rem; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--c-white); color: var(--c-ink); }
.lightbox button .icon { width: 1.25rem; height: 1.25rem; }

/* ---------- Legal pages ---------- */
.prose h3 { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.02rem; margin: 1.75rem 0 0.5rem; }
.prose ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 0.9rem; }
.prose li + li { margin-top: 0.3rem; }
.footer__legal button { font: inherit; cursor: pointer; }
.footer__legal button:hover, .footer__legal a:hover { color: var(--c-lime); }

/* ---------- Cookie consent ---------- */
.consent {
  position: fixed; left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 120;
  max-width: 34rem; padding: 1.5rem 1.6rem 1.4rem; border-radius: var(--radius);
  background: var(--c-white); color: var(--c-body);
  box-shadow: 0 1.5rem 3.5rem rgba(5, 23, 15, 0.22), 0 0 0 1px var(--c-line);
  transform: translateY(calc(100% + 2rem)); opacity: 0; visibility: hidden;
  transition: transform 0.6s var(--ease), opacity 0.4s var(--ease), visibility 0s linear 0.6s;
}
.consent.is-open { transform: none; opacity: 1; visibility: visible; transition: transform 0.6s var(--ease), opacity 0.4s var(--ease); }
.consent__title { display: flex; align-items: center; gap: 0.6rem; font-size: 1.25rem; font-weight: 600; color: var(--c-ink); letter-spacing: -0.03rem; }
.consent__title img { width: 1.9rem; height: auto; }
.consent p { margin-top: 0.6rem; font-size: 0.9875rem; line-height: 1.6; }
.consent p a { color: var(--c-brand); text-decoration: underline; text-underline-offset: 0.2em; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; }
.consent__actions .btn { flex: 1 1 auto; min-height: 3rem; }
@media (max-width: 47.99rem) {
  .consent { left: 0.75rem; right: 0.75rem; padding: 1.25rem 1.2rem 1.15rem; }
  .consent__actions .btn { width: 100%; }
}
.onsite__note-tels { display: grid; gap: 0.5rem; }
.cta-orbit__copy { max-width: 46rem; }
.cta-orbit__copy h2, .cta-orbit__copy p { max-width: 38rem; margin-inline: auto; }
.post-page { padding-top: calc(var(--header-h) + clamp(2rem, 1.5rem + 2vw, 3.5rem)); }
.post-page .breadcrumb { margin-bottom: 0; }
.practice--services p { color: rgba(255, 255, 255, 0.82); }
.cta-panel__phones .cta-panel__phone { margin: 0; }
@media (max-width: 47.99rem) { .cta-panel__phones { order: 1; align-self: flex-start; margin: 0 0 1.25rem; } }

/* ---------- 26.11.2026 ---------- */
/* Нове фото hero (клієнт): не дзеркалимо, бо на кейсі напис «Dentalone» */
.hero__media { transform: none; }
.hero__media img { object-position: 50% 50%; }
@media (max-width: 47.99rem) { .hero__media img { object-position: 50% 30%; } }
/* Кроки співпраці без номерів 01–07: лишаються тільки фази */
.kstep { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 47.99rem) { .kstep { grid-template-columns: minmax(0, 1fr); } }
/* Фото замість відео в блоці «Was wir vor Ort leisten» */
.media-frame--photo img { position: absolute; inset: 0; object-position: 50% 45%; }
/* Новий кадр у CTA-split: люди ліворуч від панелей */
.cta-split__media img { object-position: 50% 0%; }
/* Marquee на телефоні: слово вміщується в екран, пробіл між словами видно */
@media (max-width: 47.99rem) {
  .marquee { padding-block: 0.75rem; }
  .marquee__group span { font-size: clamp(1.75rem, 0.5rem + 6vw, 2.5rem); letter-spacing: -0.04em; line-height: 1.3; padding-inline: 0.2em; }
  .marquee__tooth { width: 2.25rem; margin-inline: 0.75rem; }
  .marquee__track { animation-duration: 32s; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { width: auto; flex-wrap: wrap; justify-content: center; }
  .marquee__group + .marquee__group { display: none; }
  .marquee__group { flex-wrap: wrap; justify-content: center; }
}
/* Praxis-Galerie ohne Kempinski: letzte Reihe aus zwei halben Kacheln */
@media (min-width: 48rem) { .gallery figure.is-half { grid-column: span 6; aspect-ratio: 3 / 2; } }
/* Praxis: drei Ansprechpartner statt vier */
@media (min-width: 64.01rem) { .team-grid:has(> .member:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 58rem; } }
@media (max-width: 64rem) { .team-grid:has(> .member:nth-child(3):last-child) > .member:nth-child(3) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 0.45rem); } }
/* 27.11.2026: кадрування фото на мобільних/планшеті — обличчя в кадрі (перевірено детектором облич на 360/390/430/768) */
@media (max-width: 64rem) {
  .koop__image img { object-position: 50% 6%; }                                   /* team-tuer: було видно лише тулуби */
  .praxis-band__media img[src*="praxis-team"] { object-position: 100% 50% !important; } /* інлайн 30% 50% різав лікаря справа */
  .page-hero__media img[src*="praxis-team"] { object-position: 100% 50% !important; } /* інлайн 35% 50% */
}
@media (max-width: 47.99rem) {
  .service-card__media img[src*="behandlung-sessel"] { object-position: 50% 12%; } /* голова асистентки */
  .service-card__media img[src*="praxis-behandlung"] { object-position: 50% 34%; } /* голови не впритул до краю */
}
/* 27.11: на телефоні фото CTA-split менше збільшене і зсунуте нижче — голова лікарки не обрізається (паралакс ±3% у main.js) */
@media (max-width: 47.99rem) {
  .cta-split__media img { top: -3.5%; height: 107%; object-position: 45% 0%; }
}
/* 01.12.2026 (тред 7440): кадрування нових фото — обличчя в кадрі */
.koop__image img[src*="team-autos-v2"] { object-position: 24% 50%; } /* 02.12: усі четверо по центру на десктопі */
@media (max-width: 64rem) { .koop__image img[src*="team-autos-v2"] { object-position: 50% 55%; } }
.cta-split__media img[src*="behandlung-schwarz"] { object-position: 50% 20%; }
