:root {
  --forest-950: #0b2b24;
  --forest-900: #123d32;
  --forest-800: #185342;
  --forest-700: #23705a;
  --sage-500: #72b59a;
  --sage-300: #b7d9ca;
  --sage-100: #e6f1ec;
  --cream: #f6f3ec;
  --paper: #fbfaf6;
  --white: #ffffff;
  --ink: #17211d;
  --muted: #65716c;
  --line: rgba(18, 61, 50, 0.16);
  --accent: #d8a96b;
  --display: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: Aptos, Inter, "Segoe UI", Arial, sans-serif;
  --shadow: 0 24px 80px rgba(11, 43, 36, 0.14);
  --radius-sm: 12px;
  --radius-md: 24px;
  --radius-lg: 38px;
  --header-h: 84px;
  --shell: min(1280px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }
::selection { color: var(--white); background: var(--forest-700); }

.shell { width: var(--shell); margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 1000;
  left: 16px;
  top: 12px;
  transform: translateY(-160%);
  background: var(--white);
  color: var(--forest-950);
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-h);
  background: rgba(251, 250, 246, 0.88);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  background: rgba(251, 250, 246, 0.96);
  border-color: var(--line);
  box-shadow: 0 10px 35px rgba(11, 43, 36, 0.06);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; min-height: 52px; flex: 0 0 auto; }
.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 5px 18px rgba(11, 43, 36, .08);
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-copy { display: block; min-width: 0; }
.brand strong { display: block; color: var(--forest-950); font-size: .91rem; letter-spacing: .085em; line-height: 1.05; white-space: nowrap; }
.brand small { display: block; color: var(--muted); font-size: .62rem; letter-spacing: .14em; line-height: 1.1; text-transform: uppercase; margin-top: 5px; white-space: nowrap; }
.primary-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-left: auto; }
.primary-nav a {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 44px;
  color: #33413b;
  font-size: .86rem;
  font-weight: 650;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 5px;
  height: 1px;
  background: var(--forest-700);
  transition: right .25s ease;
}
.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after { right: 0; }
.primary-nav a[aria-current="page"] { color: var(--forest-900); }
.primary-nav a[data-nav="rejestracja"] { color: var(--forest-800); font-weight: 800; }
.header-cta { margin-left: 4px; }
.menu-toggle { display: none; }

.button {
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: .9rem;
  font-weight: 750;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button svg { width: 19px; height: 19px; fill: currentColor; }
.button-primary, .button-call { color: var(--white); background: var(--forest-900); box-shadow: 0 12px 24px rgba(18, 61, 50, .16); }
.button-primary:hover, .button-call:hover { background: var(--forest-800); box-shadow: 0 15px 30px rgba(18, 61, 50, .22); }
.button-secondary { color: var(--forest-900); background: transparent; border-color: rgba(18, 61, 50, .35); }
.button-secondary:hover { color: var(--white); background: var(--forest-900); border-color: var(--forest-900); }
.button-light { color: var(--forest-950); background: var(--white); }
.button-ghost-light { color: var(--white); border-color: rgba(255,255,255,.5); }
.button-ghost-light:hover { color: var(--forest-950); background: var(--white); }
.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--forest-900);
  font-weight: 750;
  border-bottom: 1px solid var(--sage-500);
}
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translate(3px, -3px); }

main { padding-top: var(--header-h); }
.route-page { min-height: 60vh; }
.route-page.route-enter { animation: pageIn .38s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.eyebrow {
  margin: 0 0 16px;
  color: var(--forest-700);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.3;
  text-transform: uppercase;
}
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  padding: clamp(50px, 7vw, 94px) 0 72px;
  display: grid;
  align-items: center;
  overflow: clip;
}
.hero-ambient {
  position: absolute;
  width: 700px;
  height: 700px;
  left: -250px;
  top: -330px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(183,217,202,.75), rgba(230,241,236,.1) 65%, transparent 70%);
  filter: blur(4px);
  animation: ambientFloat 12s ease-in-out infinite alternate;
}
@keyframes ambientFloat { to { transform: translate(80px, 40px) scale(1.06); } }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .75fr); gap: clamp(50px, 7vw, 110px); align-items: center; }
.hero-copy { max-width: 790px; }
.hero-kicker { display: flex; align-items: center; gap: 10px; opacity: 0; animation: revealUp .7s .08s ease forwards; }
.hero-kicker span { width: 34px; height: 1px; background: var(--forest-700); }
.hero-title {
  margin: 0;
  color: var(--forest-950);
  font-family: var(--display);
  font-size: clamp(3.05rem, 5.35vw, 5.9rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .93;
}
.hero-title span { display: block; overflow: visible; padding-bottom: .08em; opacity: 0; transform: translateY(70%); animation: titleReveal .92s cubic-bezier(.22,.76,.2,1) forwards; }
.hero-title span:nth-child(2) { animation-delay: .14s; color: var(--forest-700); }
.hero-title .hero-support { margin-top: .08em; color: var(--forest-700); font-size: .78em; line-height: 1.02; animation-delay: .24s; }
@keyframes titleReveal { to { opacity: 1; transform: translateY(0); } }
.hero-lead { max-width: 650px; margin: 28px 0 30px; color: #4c5954; font-size: clamp(1.02rem, 1.5vw, 1.25rem); opacity: 0; animation: revealUp .7s .35s ease forwards; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; opacity: 0; animation: revealUp .7s .45s ease forwards; }
@keyframes revealUp { to { opacity: 1; transform: translateY(0); } }
.hero-kicker, .hero-lead, .hero-actions { transform: translateY(18px); }
.hero-facts { margin: 46px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; opacity: 0; animation: revealUp .7s .58s ease forwards; transform: translateY(18px); }
.hero-facts div { padding-top: 17px; border-top: 1px solid var(--line); }
.hero-facts dt { color: var(--forest-900); font-family: var(--display); font-size: 1.55rem; font-weight: 600; }
.hero-facts dd { margin: 4px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.hero-visual { position: relative; min-width: 0; transform: translate3d(0, var(--parallax-y, 0), 0); will-change: transform; }
.hero-photo { margin: 0; position: relative; min-height: 560px; overflow: hidden; border-radius: 48% 48% 26px 26px; box-shadow: var(--shadow); background: var(--sage-100); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 58%, rgba(11,43,36,.58)); }
.hero-photo img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; object-position: 52% 50%; }
.hero-photo figcaption { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 24px; color: var(--white); display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.hero-photo figcaption span { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.hero-photo figcaption strong { font-size: .9rem; letter-spacing: .08em; }
.hero-note {
  position: absolute;
  left: -78px;
  top: 50%;
  width: 155px;
  min-height: 168px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  color: var(--white);
  background: var(--forest-900);
  border-radius: 50%;
  font-family: var(--display);
  font-size: .95rem;
  line-height: 1.15;
  text-align: center;
  box-shadow: 0 20px 45px rgba(11,43,36,.25);
}
.hero-note svg { width: 100%; fill: none; stroke: var(--sage-300); stroke-width: 1.4; }

.trust-strip { color: var(--white); background: var(--forest-950); overflow: hidden; }
.marquee { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; white-space: nowrap; }
.marquee span { font-size: .68rem; font-weight: 800; letter-spacing: .14em; }
.marquee i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

.section { padding: clamp(82px, 10vw, 150px) 0; }
.light-section { background: var(--cream); }
.split-heading { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .75fr); gap: clamp(50px, 9vw, 150px); align-items: start; }
.split-heading h2, .section-heading h2, .page-hero h2 {
  margin: 0;
  color: var(--forest-950);
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.2vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.03;
}
.prose p, .section-heading > p, .page-hero > p { color: var(--muted); font-size: 1.04rem; }
.prose p { margin: 0 0 24px; }
.section-heading { max-width: 820px; margin-bottom: 50px; }
.section-heading > p { max-width: 640px; }
.section-heading.compact { max-width: 700px; }

.service-map-section { background: var(--forest-950); color: var(--white); overflow: hidden; }
.service-map-section .eyebrow { color: var(--sage-300); }
.service-map-section .section-heading h2 { color: var(--white); }
.service-map-section .section-heading > p { color: rgba(255,255,255,.68); }
.service-map { display: grid; grid-template-columns: 170px minmax(360px, 1fr) minmax(350px, .86fr); gap: clamp(22px, 3vw, 46px); align-items: stretch; }
.service-map-controls { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.service-map-controls button {
  min-height: 54px;
  padding: 12px 18px;
  color: rgba(255,255,255,.58);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  text-align: left;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.service-map-controls button:hover { color: var(--white); }
.service-map-controls button[aria-selected="true"] { color: var(--white); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }
.service-constellation { position: relative; min-height: 490px; display: grid; place-items: center; }
.constellation-orbit { position: absolute; border: 1px solid rgba(183,217,202,.2); border-radius: 50%; }
.orbit-one { width: 72%; aspect-ratio: 1; }
.orbit-two { width: 43%; aspect-ratio: 1; }
.constellation-center { width: 90px; height: 90px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: rgba(255,255,255,.06); box-shadow: 0 0 0 14px rgba(255,255,255,.025); }
.constellation-center span { font-family: var(--display); font-size: 1.25rem; }
.service-nodes { position: absolute; inset: 0; }
.service-node {
  position: absolute;
  min-width: 120px;
  min-height: 48px;
  padding: 10px 16px;
  color: var(--white);
  background: #174b3d;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(0,0,0,.18);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.service-node:hover, .service-node[aria-pressed="true"] { background: var(--sage-500); color: var(--forest-950); border-color: var(--sage-300); transform: translate(-50%, -50%) scale(1.05); }
.service-node:nth-child(1) { left: 50%; top: 12%; }
.service-node:nth-child(2) { left: 82%; top: 38%; }
.service-node:nth-child(3) { left: 70%; top: 76%; }
.service-node:nth-child(4) { left: 28%; top: 76%; }
.service-node:nth-child(5) { left: 17%; top: 38%; }
.service-detail { min-height: 510px; padding: 28px 24px 30px 26px; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 16px; align-items: end; color: var(--forest-950); background: var(--cream); border-radius: var(--radius-lg); overflow: hidden; }
.service-detail > div { min-width: 0; }
.service-number { align-self: start; margin: 0; color: var(--forest-700); font-family: var(--display); font-size: 1.55rem; }
.service-detail h3 { margin: 6px 0 13px; max-width: 100%; font-family: var(--display); font-size: clamp(1.65rem, 2.15vw, 2.55rem); font-weight: 500; line-height: 1.08; overflow-wrap: anywhere; }
.service-detail p:not(.eyebrow):not(.service-number) { color: #53605b; line-height: 1.55; overflow-wrap: break-word; }
.service-detail .button { margin-top: 14px; }

.process-list { list-style: none; margin: 60px 0 0; padding: 0; border-top: 1px solid var(--line); }
.process-list li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 34px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.process-list > li > span { color: var(--forest-700); font-family: var(--display); font-size: 1.4rem; }
.process-list h3 { margin: 0 0 6px; font-family: var(--display); font-size: 2rem; font-weight: 500; }
.process-list p { max-width: 680px; margin: 0; color: var(--muted); }

.team-contact-proof { padding-top: 0; }
.proof-grid { display: grid; grid-template-columns: minmax(250px, .62fr) minmax(330px, 1fr) minmax(330px, .78fr); align-items: stretch; }
.doctor-portrait { margin: 0; min-height: 640px; position: relative; overflow: hidden; border-radius: var(--radius-lg) 0 0 var(--radius-lg); background: var(--sage-100); }
.doctor-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: saturate(.78) contrast(1.02); }
.doctor-portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 68%, rgba(11,43,36,.68)); }
.doctor-portrait figcaption { position: absolute; z-index: 2; left: 24px; bottom: 20px; color: var(--white); font-weight: 750; }
.proof-copy { padding: clamp(44px, 6vw, 84px); background: var(--cream); }
.proof-copy h2 { margin: 0; color: var(--forest-950); font-family: var(--display); font-size: clamp(2.25rem, 3.7vw, 4.2rem); font-weight: 500; line-height: 1.03; letter-spacing: -.04em; }
.proof-copy > p:not(.eyebrow) { color: var(--muted); }
.proof-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.proof-badges span { padding: 8px 12px; color: var(--forest-800); background: var(--sage-100); border-radius: 999px; font-size: .76rem; font-weight: 700; }
.contact-card { padding: clamp(38px, 5vw, 64px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; color: var(--white); background: var(--forest-900); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.contact-card .eyebrow { color: var(--sage-300); }
.contact-card h3 { margin: 0 0 28px; font-family: var(--display); font-size: 2.35rem; font-weight: 500; line-height: 1.08; }
.contact-card a:not(.button) { min-height: 38px; display: inline-flex; align-items: center; color: rgba(255,255,255,.84); }
.contact-card-main { color: var(--white) !important; font-family: var(--display); font-size: 1.9rem; }
.contact-card p:not(.eyebrow) { margin: 24px 0; color: rgba(255,255,255,.68); font-size: .9rem; }
.contact-card-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.home-faq { background: var(--cream); }
.faq-mini details, .faq-list details { border-top: 1px solid var(--line); }
.faq-mini details:last-of-type, .faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-mini summary, .faq-list summary {
  min-height: 60px;
  padding: 18px 44px 18px 0;
  display: flex;
  align-items: center;
  position: relative;
  color: var(--forest-950);
  font-weight: 720;
  cursor: pointer;
  list-style: none;
}
.faq-mini summary::-webkit-details-marker, .faq-list summary::-webkit-details-marker { display: none; }
.faq-mini summary::after, .faq-list summary::after { content: "+"; position: absolute; right: 3px; top: 50%; transform: translateY(-50%); color: var(--forest-700); font-family: var(--display); font-size: 1.7rem; font-weight: 400; }
.faq-mini details[open] summary::after, .faq-list details[open] summary::after { content: "−"; }
.faq-mini details p, .faq-list details p { margin: 0; padding: 0 38px 22px 0; color: var(--muted); }
.faq-list .faq-checklist { margin: -8px 38px 18px 0; padding-left: 20px; color: var(--muted); }
.faq-list .faq-checklist li { margin: 7px 0; line-height: 1.6; }
.faq-list details a { color: var(--forest-800); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.faq-mini .text-link { margin-top: 24px; }

.page-hero { min-height: 440px; padding: 100px 0 76px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .65fr); gap: clamp(50px, 10vw, 160px); align-items: end; border-bottom: 1px solid var(--line); }
.page-hero > p { margin: 0; }
.oxygen-feature-section { padding-top: 24px; background: linear-gradient(180deg, var(--paper), var(--cream)); }
.oxygen-feature { display: grid; grid-template-columns: minmax(0, .82fr) minmax(420px, 1.18fr); gap: clamp(42px, 7vw, 100px); align-items: center; }
.oxygen-copy h2 { margin: 0; color: var(--forest-950); font-family: var(--display); font-size: clamp(2.7rem, 4.8vw, 5.2rem); font-weight: 500; line-height: 1; letter-spacing: -.045em; }
.oxygen-copy > p:not(.eyebrow) { max-width: 640px; color: var(--muted); }
.medical-note-inline { padding: 16px 18px; border-left: 3px solid var(--sage-500); background: rgba(255,255,255,.65); font-size: .88rem; }
.oxygen-actions { margin-top: 28px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.chamber-photo {
  position: relative;
  min-height: 520px;
  margin: 0;
  padding: clamp(24px, 4vw, 54px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(18,61,50,.12);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 34% 24%, rgba(255,255,255,.98), rgba(255,255,255,.2) 38%, transparent 64%),
    linear-gradient(145deg, #edf5f1, #d8e8e1 58%, #c3ddd2);
  box-shadow: var(--shadow);
}
.chamber-photo::before {
  content: "";
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  right: -22%;
  top: -38%;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  filter: blur(3px);
}
.chamber-photo img {
  position: relative;
  z-index: 1;
  width: min(100%, 860px);
  height: auto;
  object-fit: contain;
  transform: translateY(-2%);
}
.chamber-photo figcaption {
  position: absolute;
  z-index: 2;
  left: 24px;
  bottom: 18px;
  margin: 0;
  padding: 8px 12px;
  color: var(--forest-800);
  border: 1px solid rgba(18,61,50,.1);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  font-size: .75rem;
  line-height: 1.3;
  backdrop-filter: blur(8px);
}

.page-content { padding-top: 94px; }
.editorial-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .42fr); gap: clamp(50px, 9vw, 130px); }
.editorial-main h3 { margin: 0 0 28px; font-family: var(--display); font-size: clamp(2.3rem, 3.8vw, 4.3rem); font-weight: 500; line-height: 1.04; letter-spacing: -.035em; }
.editorial-main p { color: #4f5c57; font-size: 1.05rem; }
.editorial-main blockquote { margin: 46px 0 0; padding: 26px 0 26px 30px; color: var(--forest-900); border-left: 3px solid var(--sage-500); font-family: var(--display); font-size: 1.8rem; line-height: 1.2; }
.editorial-aside { padding: 34px; background: var(--cream); border-radius: var(--radius-md); }
.value-list { list-style: none; margin: 0; padding: 0; }
.value-list li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.value-list li:last-child { border-bottom: 0; }
.value-list strong, .value-list span { display: block; }
.value-list strong { color: var(--forest-900); }
.value-list span { margin-top: 6px; color: var(--muted); font-size: .9rem; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.stat-grid div { padding: 28px 0; border-top: 1px solid var(--line); }
.stat-grid strong { display: block; color: var(--forest-900); font-family: var(--display); font-size: 3rem; font-weight: 500; }
.stat-grid span { color: var(--muted); }

.service-groups { display: grid; gap: 30px; }
.service-group { padding: clamp(32px, 5vw, 60px); display: grid; grid-template-columns: 70px minmax(240px, .65fr) minmax(0, 1fr); gap: 30px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.service-group-index { color: var(--forest-700); font-family: var(--display); font-size: 1.45rem; }
.service-group h3 { margin: 0; font-family: var(--display); font-size: clamp(2rem, 3.3vw, 3.5rem); font-weight: 500; line-height: 1.04; }
.service-group ul { list-style: none; margin: 0; padding: 0; }
.service-group li { padding: 17px 0; border-bottom: 1px solid var(--line); }
.service-group li:first-child { padding-top: 0; }
.service-group li:last-child { border-bottom: 0; }
.service-group strong, .service-group span { display: block; }
.service-group strong { color: var(--forest-900); }
.service-group span { margin-top: 4px; color: var(--muted); font-size: .9rem; }
.medical-note { grid-column: 3; margin: 8px 0 0; padding: 16px; color: #46534e; background: var(--sage-100); border-radius: var(--radius-sm); font-size: .82rem; }

.pricing-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.pricing-table { border-top: 1px solid var(--line); }
.pricing-row { min-height: 92px; padding: 20px 8px; display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 24px; align-items: center; border-bottom: 1px solid var(--line); }
.pricing-row span strong, .pricing-row span small { display: block; }
.pricing-row span strong { color: var(--forest-950); }
.pricing-row span small { margin-top: 4px; color: var(--muted); }
.pricing-row b { color: var(--forest-900); font-family: var(--display); font-size: 1.65rem; font-weight: 500; text-align: right; }
.pricing-head { min-height: 56px; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.pricing-head span:last-child { text-align: right; }
.pricing-aside { position: sticky; top: calc(var(--header-h) + 28px); padding: 32px; background: var(--cream); border-radius: var(--radius-md); }
.pricing-aside h3 { margin: 0 0 16px; font-family: var(--display); font-size: 2.2rem; font-weight: 500; line-height: 1.08; }
.pricing-aside p { color: var(--muted); }
.pricing-aside .button { width: 100%; margin-top: 10px; }
.small-print { font-size: .76rem; }

.lead-team-card { display: grid; grid-template-columns: minmax(260px, .42fr) minmax(0, 1fr); overflow: hidden; background: var(--cream); border-radius: var(--radius-lg); }
.lead-team-card figure { margin: 0; min-height: 620px; }
.lead-team-card figure img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: saturate(.8); }
.lead-team-card > div { padding: clamp(40px, 7vw, 92px); align-self: center; }
.lead-team-card h3 { margin: 0; font-family: var(--display); font-size: clamp(2.8rem, 5vw, 5.4rem); font-weight: 500; line-height: 1; }
.lead-team-card .role { color: var(--forest-700); font-weight: 750; }
.lead-team-card p:not(.eyebrow):not(.role) { color: var(--muted); }
.team-links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px; }
.team-links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--forest-900); font-weight: 750; border-bottom: 1px solid var(--sage-500); }
.role-grid { margin-top: 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.role-grid article { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-md); }
.role-grid article > span { color: var(--forest-700); font-family: var(--display); }
.role-grid h3 { margin: 45px 0 10px; font-family: var(--display); font-size: 2rem; font-weight: 500; line-height: 1.08; }
.role-grid p { color: var(--muted); font-size: .9rem; }

.gallery-grid { display: grid; grid-template-columns: 1.25fr .75fr; grid-template-rows: 330px 330px; gap: 20px; }
.gallery-item { position: relative; padding: 0; overflow: hidden; border: 0; border-radius: var(--radius-md); background: var(--sage-100); cursor: zoom-in; }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(11,43,36,.72)); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery-item:hover img { transform: scale(1.035); }
.gallery-item span { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 22px; color: var(--white); text-align: left; }
.gallery-item strong, .gallery-item small { display: block; }
.gallery-item strong { font-size: 1.05rem; }
.gallery-item small { color: rgba(255,255,255,.72); }
.gallery-wide { grid-row: 1 / 3; }
.gallery-crop-one img { object-position: 68% 42%; transform: scale(1.3); }
.gallery-crop-one:hover img { transform: scale(1.34); }
.gallery-crop-two img { object-position: 42% 72%; transform: scale(1.45); }
.gallery-crop-two:hover img { transform: scale(1.49); }
.gallery-portrait { display: none; }
.gallery-modal { width: min(980px, calc(100% - 36px)); padding: 0; border: 0; border-radius: var(--radius-md); background: var(--forest-950); box-shadow: var(--shadow); }
.gallery-modal::backdrop { background: rgba(4,18,15,.8); backdrop-filter: blur(8px); }
.gallery-modal img { width: 100%; max-height: 78vh; object-fit: contain; }
.gallery-modal p { margin: 0; padding: 16px 22px; color: var(--white); }
.modal-close { position: absolute; z-index: 2; right: 12px; top: 12px; width: 48px; height: 48px; border: 0; border-radius: 50%; color: var(--white); background: rgba(11,43,36,.84); font-size: 1.8rem; cursor: pointer; }

.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 60px; align-items: start; }
.faq-list summary { min-height: 78px; font-size: 1.03rem; }
.faq-aside { position: sticky; top: calc(var(--header-h) + 28px); padding: 30px; color: var(--white); background: var(--forest-900); border-radius: var(--radius-md); }
.faq-aside .eyebrow { color: var(--sage-300); }
.faq-aside h3 { margin: 0; font-family: var(--display); font-size: 2.25rem; font-weight: 500; }
.faq-aside p { color: rgba(255,255,255,.7); }
.faq-aside .button { width: 100%; margin-top: 10px; }
.faq-aside .button-secondary { color: var(--white); border-color: rgba(255,255,255,.4); }
.faq-aside .button-secondary:hover { color: var(--forest-950); background: var(--white); }

.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: stretch; }
.contact-primary { padding: clamp(38px, 6vw, 72px); color: var(--white); background: var(--forest-900); border-radius: var(--radius-lg); }
.contact-primary .eyebrow { color: var(--sage-300); }
.contact-primary h3 { margin: 0; font-family: var(--display); font-size: clamp(2.6rem, 4.4vw, 4.7rem); font-weight: 500; line-height: 1.04; }
.route-note { color: rgba(255,255,255,.7); }
.contact-options { margin-top: 38px; border-top: 1px solid rgba(255,255,255,.18); }
.contact-options a { min-height: 72px; padding: 13px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid rgba(255,255,255,.18); }
.contact-options a span { color: rgba(255,255,255,.62); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.contact-options a strong { text-align: right; }
.location-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--cream); }
.location-graphic { position: relative; min-height: 500px; overflow: hidden; background: linear-gradient(135deg, #e6eee8, #f5f0e6); }
.location-graphic::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(18,61,50,.08) 1px, transparent 1px); background-size: 22px 22px; }
.road { position: absolute; display: block; background: rgba(255,255,255,.9); box-shadow: 0 0 0 1px rgba(18,61,50,.06); }
.road-one { width: 140%; height: 38px; left: -18%; top: 46%; transform: rotate(-18deg); }
.road-two { width: 46px; height: 130%; left: 57%; top: -12%; transform: rotate(7deg); }
.road-three { width: 80%; height: 24px; left: -10%; top: 22%; transform: rotate(24deg); }
.location-pin { position: absolute; left: 59%; top: 43%; width: 58px; height: 58px; display: grid; place-items: center; transform: translate(-50%,-50%) rotate(45deg); border-radius: 50% 50% 50% 0; background: var(--forest-900); box-shadow: 0 14px 30px rgba(18,61,50,.24); }
.location-pin i { width: 17px; height: 17px; display: block; border-radius: 50%; background: var(--white); }
.street { position: absolute; color: var(--forest-800); background: rgba(251,250,246,.86); padding: 5px 8px; border-radius: 6px; font-size: .74rem; font-weight: 750; }
.street-a { left: 14%; top: 38%; transform: rotate(-18deg); }
.street-b { left: 63%; top: 18%; transform: rotate(7deg); }
.location-caption { padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.location-caption strong, .location-caption span { display: block; }
.location-caption span { color: var(--muted); }
.contact-meta { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-meta > div { padding-top: 24px; border-top: 1px solid var(--line); }
.contact-meta p:not(.eyebrow) { color: var(--muted); }
.contact-meta a { color: var(--forest-900); font-weight: 700; }

.booking-layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 34px; align-items: start; }
.booking-picker { position: sticky; top: calc(var(--header-h) + 24px); padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.booking-tabs { display: grid; gap: 8px; }
.booking-tabs button { min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--forest-900); background: var(--paper); text-align: left; font-weight: 750; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.booking-tabs button:hover { transform: translateX(3px); border-color: var(--sage-500); }
.booking-tabs button[aria-selected="true"] { color: var(--white); border-color: var(--forest-900); background: var(--forest-900); }
.booking-help { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.booking-help h3 { margin: 0; font-family: var(--display); font-size: 1.7rem; font-weight: 500; }
.booking-help p { color: var(--muted); font-size: .88rem; }
.booking-frame-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); box-shadow: 0 20px 55px rgba(11,43,36,.08); }
.booking-frame-head { padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.booking-frame-head h3 { margin: 0; font-family: var(--display); font-size: clamp(1.7rem, 2.7vw, 2.7rem); font-weight: 500; line-height: 1.08; }
.booking-frame-card iframe { display: block; width: 100%; min-height: 760px; border: 0; background: var(--white); }
.booking-confirmation { padding: 18px 24px; display: grid; grid-template-columns: 220px 1fr; gap: 20px; color: var(--forest-950); background: var(--sage-100); }
.booking-confirmation span { color: #4c5a54; }

.callback-panel { margin-top: 74px; padding: clamp(34px, 5vw, 68px); display: grid; grid-template-columns: minmax(0, .78fr) minmax(420px, 1.22fr); gap: clamp(40px, 7vw, 90px); align-items: start; border-radius: var(--radius-lg); background: var(--cream); }
.callback-copy h3 { margin: 0; color: var(--forest-950); font-family: var(--display); font-size: clamp(2.4rem, 4vw, 4.4rem); font-weight: 500; line-height: 1.02; }
.callback-copy p { color: var(--muted); }
.callback-copy ul { margin: 24px 0 0; padding-left: 20px; color: var(--forest-800); }
.callback-form { display: grid; gap: 18px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.callback-form label:not(.consent-field) { display: grid; gap: 7px; }
.callback-form label > span { color: var(--forest-950); font-size: .82rem; font-weight: 800; letter-spacing: .03em; }
.callback-form input, .callback-form select { width: 100%; min-height: 52px; padding: 11px 13px; border: 1px solid rgba(18,61,50,.22); border-radius: 12px; color: var(--ink); background: var(--white); }
.callback-form input:focus, .callback-form select:focus { border-color: var(--forest-700); box-shadow: 0 0 0 4px rgba(114,181,154,.16); outline: 0; }
.consent-field { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.consent-field input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--forest-800); }
.consent-field span { color: var(--muted) !important; font-size: .84rem !important; font-weight: 500 !important; }
.callback-form .button { width: fit-content; }
.form-note { margin: 0; color: var(--muted); font-size: .75rem; }
.form-status { min-height: 24px; margin: -8px 0 0; color: var(--forest-800); font-weight: 750; }

.site-footer { padding: 82px 0 110px; color: rgba(255,255,255,.75); background: var(--forest-950); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .75fr 1fr 1.15fr; gap: 50px; }
.brand-light strong { color: var(--white); }
.brand-light small { color: rgba(255,255,255,.55); }
.footer-brand > p { max-width: 300px; margin-top: 22px; }
.footer-title { color: var(--white); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid > div:not(.footer-brand) a { min-height: 38px; display: flex; align-items: center; width: fit-content; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom { margin-top: 60px; padding-top: 24px; display: flex; justify-content: space-between; gap: 30px; border-top: 1px solid rgba(255,255,255,.14); font-size: .76rem; }
.mobile-contact-bar { display: none; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .65s ease, transform .65s cubic-bezier(.22,.72,.21,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1180px) {
  :root { --shell: min(100% - 36px, 1080px); }
  .brand-mark { width: 48px; height: 48px; flex-basis: 48px; }
  .brand strong { font-size: .82rem; }
  .primary-nav { gap: 11px; }
  .primary-nav a { font-size: .76rem; }
  .header-cta { padding-inline: 17px; }
  .service-map { grid-template-columns: 145px minmax(360px, 1fr); }
  .service-detail { grid-column: 1 / -1; min-height: auto; grid-template-columns: 50px 1fr; }
  .proof-grid { grid-template-columns: .7fr 1fr; }
  .contact-card { grid-column: 1 / -1; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
  .doctor-portrait { border-radius: var(--radius-lg) 0 0 0; }
  .proof-copy { border-radius: 0 var(--radius-lg) 0 0; }
}

@media (max-width: 980px) {
  :root { --header-h: 72px; }
  .header-inner { gap: 16px; }
  .header-cta { margin-left: auto; }
  .menu-toggle {
    order: 3;
    width: 48px;
    height: 48px;
    padding: 0;
    display: grid;
    place-content: center;
    gap: 7px;
    border: 0;
    border-radius: 50%;
    background: var(--sage-100);
    cursor: pointer;
  }
  .menu-toggle span:not(.sr-only) { width: 20px; height: 2px; background: var(--forest-900); transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(1) { transform: translateY(4.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(-4.5px) rotate(-45deg); }
  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    min-height: calc(100svh - var(--header-h));
    padding: 34px 24px 110px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
    overflow-y: auto;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { min-height: 58px; justify-content: flex-start; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 1.55rem; font-weight: 500; }
  .primary-nav a::after { display: none; }
  .hero-grid { grid-template-columns: 1fr 420px; gap: 40px; }
  .hero-title { font-size: clamp(3.4rem, 7.4vw, 5.4rem); }
  .hero-facts { grid-template-columns: 1fr; gap: 10px; }
  .hero-facts div { display: grid; grid-template-columns: 85px 1fr; gap: 14px; align-items: baseline; }
  .hero-photo, .hero-photo img { min-height: 510px; }
  .hero-note { left: -45px; width: 132px; min-height: 145px; font-size: .82rem; }
  .marquee span:nth-of-type(even), .marquee i:nth-of-type(even) { display: none; }
  .split-heading, .page-hero, .editorial-grid { grid-template-columns: 1fr; gap: 32px; }
  .page-hero { min-height: 400px; align-content: end; }
  .service-group { grid-template-columns: 55px 1fr; }
  .service-group ul, .medical-note { grid-column: 2; }
  .pricing-layout, .faq-layout { grid-template-columns: 1fr; }
  .pricing-aside, .faq-aside { position: static; }
  .role-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-meta { grid-template-columns: 1fr 1fr; }
  .oxygen-feature { grid-template-columns: 1fr; }
  .chamber-photo { min-height: 470px; }
  .booking-layout { grid-template-columns: 1fr; }
  .booking-picker { position: static; }
  .booking-tabs { grid-template-columns: 1fr 1fr; }
  .callback-panel { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2 / 4; }
}

@media (max-width: 760px) {
  :root { --shell: calc(100% - 28px); --radius-lg: 28px; --radius-md: 20px; }
  body { font-size: 16px; padding-bottom: 70px; }
  .site-header { background: rgba(251,250,246,.96); }
  .brand-mark { width: 42px; height: 42px; flex-basis: 42px; box-shadow: none; }
  .brand strong { font-size: .75rem; }
  .brand small { font-size: .56rem; margin-top: 3px; }
  .header-cta { display: none; }
  .hero { min-height: auto; padding: 46px 0 54px; }
  .hero-grid { grid-template-columns: 1fr; gap: 46px; }
  .hero-title { font-size: clamp(3rem, 15vw, 4.6rem); }
  .hero-lead { margin-top: 20px; }
  .hero-actions { align-items: stretch; gap: 12px; }
  .hero-actions .button { flex: 1; }
  .hero-actions .text-link { flex: 1 0 100%; width: fit-content; }
  .hero-facts { margin-top: 34px; }
  .hero-visual { width: calc(100% - 12px); margin-left: auto; }
  .hero-photo { min-height: 450px; border-radius: 46% 46% 24px 24px; }
  .hero-photo img { min-height: 450px; }
  .hero-note { left: -12px; top: auto; bottom: 44px; width: 118px; min-height: 118px; padding: 14px; }
  .trust-strip { display: none; }
  .section { padding: 76px 0; }
  .split-heading h2, .section-heading h2, .page-hero h2 { font-size: clamp(2.35rem, 11vw, 3.5rem); }
  .service-map { grid-template-columns: 1fr; }
  .service-map-controls { flex-direction: row; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .service-map-controls::-webkit-scrollbar { display: none; }
  .service-map-controls button { flex: 0 0 auto; min-height: 46px; text-align: center; }
  .service-constellation { min-height: 410px; }
  .orbit-one { width: 85%; }
  .orbit-two { width: 52%; }
  .service-node { min-width: 102px; max-width: 132px; min-height: 46px; padding: 8px 12px; font-size: .78rem; line-height: 1.2; }
  .service-node:nth-child(1) { top: 10%; }
  .service-node:nth-child(2) { left: 80%; top: 34%; }
  .service-node:nth-child(3) { left: 71%; top: 76%; }
  .service-node:nth-child(4) { left: 28%; top: 76%; }
  .service-node:nth-child(5) { left: 19%; top: 34%; }
  .service-detail { min-height: auto; padding: 24px 20px; grid-template-columns: 34px minmax(0, 1fr); border-radius: var(--radius-md); }
  .process-list li { grid-template-columns: 48px 1fr; gap: 18px; }
  .process-list h3 { font-size: 1.7rem; }
  .proof-grid { grid-template-columns: 1fr; }
  .doctor-portrait { min-height: 480px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .proof-copy { padding: 38px 28px; border-radius: 0; }
  .contact-card { padding: 38px 28px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
  .contact-card-main { font-size: 1.58rem; }
  .page-hero { min-height: 360px; padding: 74px 0 54px; }
  .page-content { padding-top: 66px; }
  .stat-grid { grid-template-columns: 1fr; gap: 14px; }
  .service-group { padding: 26px 22px; grid-template-columns: 38px 1fr; gap: 20px; }
  .service-group ul, .medical-note { grid-column: 1 / -1; }
  .service-group h3 { font-size: 2.3rem; }
  .pricing-row { grid-template-columns: 1fr 92px; gap: 12px; }
  .pricing-row b { font-size: 1.4rem; }
  .lead-team-card { grid-template-columns: 1fr; }
  .lead-team-card figure { min-height: 480px; }
  .lead-team-card > div { padding: 36px 26px; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: repeat(4, 300px); }
  .gallery-wide { grid-row: auto; }
  .gallery-portrait { display: block; }
  .contact-primary { padding: 38px 25px; }
  .contact-options a { align-items: flex-start; flex-direction: column; justify-content: center; gap: 1px; }
  .contact-options a strong { text-align: left; overflow-wrap: anywhere; }
  .location-graphic { min-height: 390px; }
  .location-caption { align-items: flex-start; flex-direction: column; }
  .contact-meta { grid-template-columns: 1fr; }
  .oxygen-feature-section { padding-top: 0; }
  .oxygen-feature { gap: 36px; }
  .oxygen-copy h2 { font-size: clamp(2.55rem, 12vw, 3.7rem); }
  .oxygen-actions { align-items: stretch; }
  .oxygen-actions .button { width: 100%; }
  .chamber-photo { min-height: 330px; padding: 22px 12px 52px; }
  .chamber-photo img { width: 100%; transform: none; }
  .chamber-photo figcaption { left: 14px; right: 14px; bottom: 14px; width: fit-content; max-width: calc(100% - 28px); }
  .booking-tabs { grid-template-columns: 1fr; }
  .booking-frame-head { align-items: flex-start; flex-direction: column; }
  .booking-frame-card iframe { min-height: 650px; }
  .booking-confirmation { grid-template-columns: 1fr; gap: 6px; }
  .callback-panel { margin-top: 54px; padding: 30px 22px; }
  .field-grid { grid-template-columns: 1fr; }
  .callback-form .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .mobile-contact-bar {
    position: fixed;
    z-index: 120;
    inset: auto 0 0;
    min-height: 68px;
    display: grid;
    grid-template-columns: 1.1fr .8fr .8fr .8fr;
    color: var(--white);
    background: var(--forest-950);
    box-shadow: 0 -10px 30px rgba(11,43,36,.18);
  }
  .mobile-contact-bar a { min-height: 68px; display: flex; align-items: center; justify-content: center; gap: 6px; border-right: 1px solid rgba(255,255,255,.14); font-size: .72rem; font-weight: 750; }
  .mobile-contact-bar a:first-child { background: var(--forest-700); }
  .mobile-contact-bar svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
  .site-footer { padding-bottom: 54px; }
}

@media (max-width: 390px) {
  :root { --shell: calc(100% - 22px); }
  .brand { gap: 8px; }
  .brand-mark { width: 38px; height: 38px; flex-basis: 38px; }
  .brand strong { font-size: .68rem; letter-spacing: .055em; }
  .brand small { font-size: .5rem; letter-spacing: .1em; }
  .menu-toggle { width: 44px; height: 44px; }
  .hero-title { font-size: 3.15rem; }
  .hero-facts div { grid-template-columns: 72px 1fr; }
  .hero-photo, .hero-photo img { min-height: 410px; }
  .service-node { min-width: 94px; max-width: 115px; font-size: .72rem; }
  .constellation-center { width: 76px; height: 76px; }
  .contact-card-actions .button { width: 100%; }
  .pricing-row { padding-inline: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .hero-title span, .hero-kicker, .hero-lead, .hero-actions, .hero-facts, .reveal { opacity: 1 !important; transform: none !important; }
  .hero-visual { transform: none !important; }
}

/* =========================================================
   v4 — extended navigation, FMT, external services, location
   ========================================================= */

:root { --header-h: 118px; }
.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
}
.primary-nav {
  min-width: 0;
  margin-left: 0;
  display: grid;
  align-self: stretch;
  align-content: center;
  gap: 0;
}
.nav-row {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  white-space: nowrap;
}
.nav-row-main { min-height: 52px; border-bottom: 1px solid var(--line); }
.nav-row-main a { font-size: .77rem; }
.nav-row-ecosystem { min-height: 42px; gap: 16px; }
.nav-row-ecosystem a { min-height: 38px; color: var(--muted); font-size: .71rem; font-weight: 650; }
.nav-row-ecosystem a::after { bottom: 2px; }
.header-cta { margin-left: 0; }

.ecosystem-strip { border-block: 1px solid var(--line); background: rgba(255,255,255,.62); }
.ecosystem-links {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}
.ecosystem-links::-webkit-scrollbar { display: none; }
.ecosystem-links a {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 9px 14px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--forest-800);
  background: var(--paper);
  font-size: .78rem;
  font-weight: 750;
}
.ecosystem-links a:hover { border-color: var(--sage-500); background: var(--sage-100); }

.service-deep-link { grid-column: 2; width: fit-content; }

.fmt-page-hero { align-items: end; }
.fmt-intro-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); gap: 24px; }
.fmt-lead-card,
.fmt-source-card,
.fmt-safety-grid article {
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--cream);
}
.fmt-lead-card h3,
.fmt-source-card h3,
.fmt-safety-grid h3,
.fmt-steps h3 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(2rem, 3.2vw, 3.35rem);
  font-weight: 500;
  line-height: 1.04;
}
.fmt-lead-card p:not(.eyebrow), .fmt-source-card p, .fmt-safety-grid p { color: var(--muted); }
.medical-note-inline { margin-top: 26px; padding: 18px 20px; border-left: 3px solid var(--sage-500); background: rgba(255,255,255,.7); }
.fmt-source-card { background: var(--sage-100); }
.fmt-product { padding: 17px 0; border-top: 1px solid rgba(18,61,50,.13); }
.fmt-product:first-of-type { margin-top: 8px; }
.fmt-product strong, .fmt-product span { display: block; }
.fmt-product strong { color: var(--forest-900); font-size: 1rem; }
.fmt-product span { margin-top: 5px; color: var(--muted); font-size: .87rem; line-height: 1.55; }
.fmt-steps { margin-top: 70px; }
.section-heading.compact { max-width: 850px; margin-bottom: 30px; }
.fmt-process { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fmt-process li {
  min-width: 0;
  padding: 26px;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
}
.fmt-process li > span { color: var(--sage-700); font-family: var(--display); font-size: 1.25rem; }
.fmt-process h4 { margin: 0 0 8px; color: var(--forest-950); font-family: var(--display); font-size: 1.55rem; font-weight: 500; }
.fmt-process p { margin: 0; color: var(--muted); font-size: .91rem; }
.fmt-safety-grid { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.fmt-safety-grid article { background: var(--paper); }
.fmt-safety-grid h3 { font-size: 2rem; }
.fmt-cta { color: var(--white); background: var(--forest-900) !important; }
.fmt-cta .eyebrow { color: var(--sage-300); }
.fmt-cta h3 { color: var(--white); }
.fmt-cta p { color: rgba(255,255,255,.7); }
.fmt-cta .button { width: 100%; margin-top: 8px; }
.fmt-cta .button-secondary { color: var(--white); border-color: rgba(255,255,255,.4); }
.fmt-cta .button-secondary:hover { color: var(--forest-950); background: var(--white); }

.external-price-card { margin-top: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.external-price-card strong, .external-price-card span { display: block; }
.external-price-card strong { color: var(--forest-950); line-height: 1.35; }
.external-price-card span { margin-top: 7px; color: var(--muted); font-size: .83rem; line-height: 1.5; }
.external-price-card .button { margin-top: 15px; }
.external-price-card.compact-card { background: var(--sage-100); }

.booking-tabs button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.booking-tabs button span { min-width: 0; }
.booking-tabs button strong { color: var(--forest-700); font-size: .76rem; font-weight: 800; line-height: 1.25; text-align: right; white-space: nowrap; }
.booking-tabs button[aria-selected="true"] strong { color: var(--sage-200); }
.booking-selected-price { margin: 8px 0 0; color: var(--forest-800); font-size: 1rem; font-weight: 800; }
.booking-selected-note { max-width: 720px; margin: 4px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.5; }

.arrival-photo { position: relative; overflow: hidden; background: var(--sage-100); }
.arrival-photo img { width: 100%; aspect-ratio: 16 / 9; display: block; object-fit: cover; }
.arrival-photo-caption {
  position: absolute;
  inset: auto 18px 18px;
  width: min(440px, calc(100% - 36px));
  padding: 14px 16px;
  border-radius: 14px;
  color: var(--white);
  background: rgba(11,43,36,.9);
  backdrop-filter: blur(8px);
}
.arrival-photo-caption strong, .arrival-photo-caption span { display: block; }
.arrival-photo-caption span { margin-top: 3px; color: rgba(255,255,255,.76); font-size: .78rem; }
.map-embed-wrap { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--sage-100); }
.map-embed { width: 100%; height: 330px; display: block; border: 0; }

.gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, 310px); }
.gallery-wide { grid-row: auto; }
.gallery-portrait { display: block; }
.gallery-exterior img { object-position: center; }
.gallery-chamber { background: #101010; }
.gallery-chamber img { object-fit: contain; padding: 16px; }

.contact-card-actions { flex-wrap: wrap; }
.contact-card-actions .button { flex: 1 1 170px; }

@media (max-width: 1240px) and (min-width: 1121px) {
  .header-inner { gap: 14px; }
  .brand strong { font-size: .8rem; }
  .brand small { font-size: .54rem; }
  .brand-mark { width: 46px; height: 46px; flex-basis: 46px; }
  .nav-row { gap: 10px; }
  .nav-row-main a { font-size: .69rem; }
  .nav-row-ecosystem { gap: 12px; }
  .nav-row-ecosystem a { font-size: .65rem; }
  .header-cta { padding-inline: 14px; font-size: .78rem; }
}

@media (max-width: 1120px) {
  :root { --header-h: 72px; }
  .header-inner { display: flex; align-items: center; gap: 16px; }
  .header-cta { margin-left: auto; }
  .menu-toggle {
    order: 3;
    width: 48px;
    height: 48px;
    padding: 0;
    display: grid;
    place-content: center;
    gap: 7px;
    border: 0;
    border-radius: 50%;
    background: var(--sage-100);
    cursor: pointer;
  }
  .menu-toggle span:not(.sr-only) { width: 20px; height: 2px; background: var(--forest-900); transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(1) { transform: translateY(4.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(-4.5px) rotate(-45deg); }
  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    min-height: calc(100svh - var(--header-h));
    max-height: calc(100svh - var(--header-h));
    padding: 22px 24px 110px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
    overflow-y: auto;
  }
  .primary-nav.is-open { display: flex; }
  .nav-row { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; white-space: normal; }
  .nav-row-main { min-height: 0; border-bottom: 0; }
  .nav-row-ecosystem { min-height: 0; margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--line); }
  .primary-nav .nav-row-main a {
    min-height: 52px;
    display: flex;
    justify-content: flex-start;
    border-bottom: 1px solid var(--line);
    font-family: var(--display);
    font-size: 1.28rem;
    font-weight: 500;
  }
  .primary-nav .nav-row-ecosystem a {
    min-height: 45px;
    display: flex;
    justify-content: flex-start;
    border-bottom: 1px solid rgba(18,61,50,.08);
    color: var(--muted);
    font-family: var(--body);
    font-size: .88rem;
    font-weight: 700;
  }
  .primary-nav a::after { display: none; }
  body.menu-open { overflow: hidden; }
  .fmt-safety-grid { grid-template-columns: 1fr 1fr; }
  .fmt-cta { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .fmt-intro-grid { grid-template-columns: 1fr; }
  .fmt-process { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 290px); }
}

@media (max-width: 760px) {
  .ecosystem-links { min-height: 62px; }
  .ecosystem-links a { min-height: 40px; padding-inline: 12px; font-size: .74rem; }
  .service-deep-link { grid-column: 1 / -1; }
  .fmt-steps { margin-top: 48px; }
  .fmt-process li { grid-template-columns: 38px 1fr; padding: 22px 18px; gap: 13px; }
  .fmt-process h4 { font-size: 1.4rem; }
  .fmt-safety-grid { grid-template-columns: 1fr; }
  .fmt-cta { grid-column: auto; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: repeat(6, 290px); }
  .gallery-chamber img { padding: 10px; }
  .booking-tabs button { grid-template-columns: minmax(0, 1fr) auto; }
  .booking-tabs button strong { max-width: 130px; white-space: normal; }
  .arrival-photo-caption { position: static; width: 100%; border-radius: 0; background: var(--forest-900); }
  .map-embed { height: 310px; }
  .contact-card-actions .button { flex-basis: 100%; }
}

@media (max-width: 390px) {
  .primary-nav { padding-inline: 18px; }
  .primary-nav .nav-row-main a { min-height: 49px; font-size: 1.18rem; }
  .primary-nav .nav-row-ecosystem a { min-height: 43px; font-size: .82rem; }
  .booking-tabs button { gap: 8px; }
  .booking-tabs button strong { max-width: 112px; font-size: .7rem; }
  .mobile-contact-bar a { gap: 4px; font-size: .66rem; }
  .mobile-contact-bar svg { width: 17px; height: 17px; }
}
.pricing-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--forest-700);
  font-size: .8rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: right;
}
.pricing-link:hover { color: var(--forest-950); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) {
  .pricing-external-row { grid-template-columns: minmax(0, 1fr) 112px; }
  .pricing-link { font-size: .74rem; }
}


/* v5 — registration legibility, In-Vein contact, compact address, YouTube education */
.oxygen-contact {
  margin: 22px 0 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
}
.oxygen-contact span { color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.oxygen-contact a { color: var(--forest-900); font-family: var(--display); font-size: 1.45rem; font-weight: 600; }

.service-partner-contact {
  grid-column: 3;
  margin-top: 10px;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  border-radius: 14px;
  background: var(--sage-100);
}
.service-partner-contact span { flex: 1 1 100%; color: var(--muted); font-size: .8rem; }
.service-partner-contact a { min-height: 44px; display: inline-flex; align-items: center; color: var(--forest-900); font-weight: 800; }
.service-partner-contact a:last-child { color: var(--forest-700); font-size: .82rem; }
.inline-phone { color: var(--forest-900); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

.booking-tabs button {
  min-height: 64px;
  padding: 13px 15px;
  grid-template-columns: 1fr;
  align-content: center;
  gap: 4px;
}
.booking-tabs button span { display: block; font-size: .96rem; line-height: 1.2; }
.booking-tabs button strong {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 5px;
  max-width: none;
  color: var(--forest-700);
  font-size: .75rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
}
.booking-tabs button strong em { font-style: normal; font-weight: 650; opacity: .8; }
.booking-tabs button strong i { font-style: normal; opacity: .55; }
.booking-tabs .booking-tab-featured { min-height: 92px; padding-block: 16px; }
.booking-tabs .booking-tab-featured span { font-family: var(--display); font-size: 1.25rem; font-weight: 600; }
.booking-tabs button[aria-selected="true"] strong { color: var(--sage-200); }

.contact-primary .contact-address {
  margin: 0;
  display: grid;
  gap: 4px;
  font-size: clamp(1.9rem, 3.15vw, 3rem);
  line-height: 1.08;
}
.contact-address span { display: block; white-space: nowrap; }

.youtube-education-section { background: var(--cream); }
.youtube-education-grid {
  display: grid;
  grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr);
  gap: clamp(42px, 7vw, 100px);
  align-items: start;
}
.youtube-intro { position: sticky; top: calc(var(--header-h) + 34px); }
.youtube-intro h2 {
  max-width: 680px;
  margin: 0 0 22px;
  color: var(--forest-950);
  font-family: var(--display);
  font-size: clamp(2.7rem, 4.5vw, 4.8rem);
  font-weight: 500;
  line-height: .99;
}
.youtube-intro > p:not(.eyebrow) { max-width: 620px; color: var(--muted); }
.youtube-proof { margin: 28px 0 30px; padding-top: 24px; display: flex; align-items: baseline; gap: 14px; border-top: 1px solid var(--line); }
.youtube-proof strong { color: var(--forest-900); font-family: var(--display); font-size: 2.15rem; font-weight: 600; line-height: 1; }
.youtube-proof span { color: var(--muted); font-size: .82rem; }
.youtube-featured { display: grid; gap: 12px; }
.youtube-featured > .eyebrow { margin-bottom: 4px; }
.video-card {
  min-height: 158px;
  padding: 24px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.video-card:hover { transform: translateY(-3px); border-color: rgba(35,112,90,.4); box-shadow: 0 18px 44px rgba(11,43,36,.08); }
.video-index { align-self: start; color: var(--sage-700); font-family: var(--display); font-size: 1.05rem; }
.video-card strong { display: block; color: var(--forest-950); font-family: var(--display); font-size: clamp(1.35rem, 2vw, 1.8rem); font-weight: 600; line-height: 1.12; }
.video-card div span { display: block; margin-top: 9px; color: var(--muted); font-size: .87rem; line-height: 1.5; }
.video-play { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: var(--forest-800); font-size: .85rem; }
.video-card-channel { background: var(--sage-100); }

@media (max-width: 1020px) {
  .youtube-education-grid { grid-template-columns: 1fr; }
  .youtube-intro { position: static; }
  .service-partner-contact { grid-column: 2; }
}

@media (max-width: 760px) {
  .service-partner-contact { grid-column: 1 / -1; }
  .booking-tabs button { min-height: 68px; padding: 14px 15px; }
  .booking-tabs .booking-tab-featured { min-height: 98px; }
  .booking-tabs button strong { max-width: none; font-size: .76rem; }
  .contact-primary .contact-address { font-size: clamp(1.75rem, 8vw, 2.25rem); }
  .youtube-intro h2 { font-size: clamp(2.55rem, 12vw, 3.7rem); }
  .video-card { min-height: 0; padding: 20px 18px; grid-template-columns: 34px minmax(0, 1fr) 40px; gap: 12px; }
  .video-index { font-size: .95rem; }
  .video-play { width: 40px; height: 40px; }
}

@media (max-width: 390px) {
  .contact-address span { white-space: nowrap; }
  .contact-primary .contact-address { font-size: 1.72rem; }
  .video-card { grid-template-columns: 28px minmax(0, 1fr); }
  .video-play { grid-column: 2; justify-self: start; margin-top: 4px; }
  .youtube-proof { align-items: flex-start; flex-direction: column; gap: 5px; }
}


/* =========================================================
   v6 — server contact form, visit preparation, education hub
   ========================================================= */
.youtube-actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.youtube-featured-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.video-thumb-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.video-thumb-card:hover { transform: translateY(-3px); border-color: rgba(35,112,90,.38); box-shadow: 0 18px 44px rgba(11,43,36,.09); }
.video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--forest-950); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.video-thumb-card:hover .video-thumb img { transform: scale(1.025); }
.video-thumb-play { position: absolute; inset: 50% auto auto 50%; width: 50px; height: 50px; translate: -50% -50%; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: rgba(11,43,36,.88); box-shadow: 0 8px 30px rgba(0,0,0,.22); }
.video-thumb-copy { min-height: 116px; padding: 20px; display: block; }
.video-thumb-copy strong { display: block; color: var(--forest-950); font-family: var(--display); font-size: 1.35rem; line-height: 1.12; }
.video-thumb-copy small { margin-top: 9px; display: block; color: var(--muted); font-size: .78rem; line-height: 1.45; }

.education-page-hero { padding-bottom: 42px; }
.education-library { padding-top: 42px; background: linear-gradient(180deg, var(--paper), var(--cream)); }
.education-lead { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(36px,7vw,100px); align-items: end; }
.education-lead h3 { margin: 0; max-width: 720px; color: var(--forest-950); font-family: var(--display); font-size: clamp(2.6rem,4.5vw,4.9rem); font-weight: 500; line-height: 1; }
.education-lead > div:last-child > p { margin: 0 0 24px; color: var(--muted); }
.education-video-grid { margin-top: 64px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.education-video { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); transition: transform .2s ease, box-shadow .2s ease; }
.education-video:hover { transform: translateY(-4px); box-shadow: 0 22px 52px rgba(11,43,36,.09); }
.education-video-image { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--forest-950); }
.education-video-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.education-video-image > span { position: absolute; right: 18px; bottom: 18px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: rgba(11,43,36,.9); }
.education-video > div { padding: 24px; }
.education-video h3 { margin: 6px 0 12px; color: var(--forest-950); font-family: var(--display); font-size: 1.55rem; line-height: 1.13; }
.education-video p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: .88rem; }
.education-more { margin-top: 28px; padding: 32px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--sage-100); }
.education-more h3 { margin: 0 0 8px; color: var(--forest-950); font-family: var(--display); font-size: 1.8rem; font-weight: 600; }
.education-more p:not(.eyebrow) { margin: 0; max-width: 720px; color: var(--muted); }
.education-more .button { flex: 0 0 auto; }

.visit-prep-section { background: var(--cream); }
.visit-prep-head { display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,.72fr); gap: clamp(34px,7vw,90px); align-items: end; }
.visit-prep-head h2 { margin: 0; max-width: 820px; color: var(--forest-950); font-family: var(--display); font-size: clamp(2.7rem,4.8vw,5rem); font-weight: 500; line-height: .99; }
.visit-prep-head > p { margin: 0; color: var(--muted); }
.visit-prep-grid { margin-top: 46px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.visit-prep-grid article, .visit-prep-grid aside { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.visit-prep-grid article > span { color: var(--sage-700); font-family: var(--display); font-size: 1rem; }
.visit-prep-grid h3 { margin: 18px 0 10px; color: var(--forest-950); font-family: var(--display); font-size: 1.45rem; font-weight: 600; }
.visit-prep-grid p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.visit-prep-grid aside { grid-column: span 2; display: grid; align-content: center; background: var(--forest-900); }
.visit-prep-grid aside strong { margin-bottom: 10px; color: var(--white); font-family: var(--display); font-size: 1.6rem; font-weight: 600; }
.visit-prep-grid aside p { color: rgba(255,255,255,.76); }

.callback-form label > span small { color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: 0; }
.callback-form input[type="email"] { width: 100%; min-height: 52px; padding: 11px 13px; border: 1px solid rgba(18,61,50,.22); border-radius: 12px; color: var(--ink); background: var(--white); }
.callback-form input[type="email"]:focus { border-color: var(--forest-700); box-shadow: 0 0 0 4px rgba(114,181,154,.16); outline: 0; }
.callback-form button[disabled] { opacity: .6; cursor: wait; }
.honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
.form-status:not(:empty) { padding: 12px 14px; border-radius: 10px; color: var(--forest-950); background: var(--sage-100); font-weight: 700; }

@media (max-width: 1180px) {
  .nav-row-main { gap: 10px; }
  .nav-row-main a { font-size: .69rem; }
  .education-video-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 860px) {
  .youtube-featured-thumbs, .education-lead, .visit-prep-head { grid-template-columns: 1fr; }
  .education-video-grid { grid-template-columns: 1fr; }
  .education-more { align-items: flex-start; flex-direction: column; }
  .visit-prep-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .visit-prep-grid aside { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .youtube-featured-thumbs, .visit-prep-grid { grid-template-columns: 1fr; }
  .video-thumb-copy { min-height: 0; }
  .education-video > div, .visit-prep-grid article, .visit-prep-grid aside { padding: 22px; }
  .education-more { padding: 24px; }
  .education-more .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .video-thumb-card:hover, .education-video:hover { transform: none; }
  .video-thumb-card:hover .video-thumb img { transform: none; }
}


/* v8 — mobile navigation, FMT methods, preparation resources */
.nav-group-label { display: none; }
.constellation-center span {
  font-size: .76rem;
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: .08em;
  text-align: center;
}
.fmt-method-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.fmt-method-card {
  padding: clamp(28px, 4vw, 46px);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.fmt-method-card h3 { margin: 6px 0 16px; font-family: var(--display); font-size: clamp(1.8rem, 2.7vw, 2.8rem); font-weight: 500; line-height: 1.06; }
.fmt-method-card p { color: var(--muted); }
.fmt-method-card ul { margin: 18px 0 0; padding-left: 20px; color: var(--forest-800); }
.fmt-method-card li + li { margin-top: 8px; }
.fmt-caps-card { background: var(--sage-100); }

.exam-prep-resources { background: var(--cream); }
.prep-resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.prep-resource-card { min-width: 0; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 18px 45px rgba(18,61,50,.06); }
.prep-thumb { position: relative; min-height: 190px; display: block; overflow: hidden; background: var(--forest-950); }
.prep-thumb img { width: 100%; height: 100%; aspect-ratio: 16 / 9; display: block; object-fit: cover; transition: transform .25s ease; }
.prep-thumb:hover img { transform: scale(1.025); }
.prep-thumb span { position: absolute; left: 16px; bottom: 14px; padding: 8px 12px; color: var(--white); background: rgba(11,43,36,.9); border-radius: 999px; font-size: .76rem; font-weight: 800; }
.prep-resource-copy { padding: 24px; }
.prep-resource-copy h3 { margin: 4px 0 10px; font-family: var(--display); font-size: 1.7rem; font-weight: 500; line-height: 1.08; }
.prep-resource-copy > p:not(.eyebrow) { color: var(--muted); }
.prep-resource-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.prep-resource-actions .button { min-height: 44px; padding: 10px 14px; font-size: .76rem; }
.prep-resource-actions .text-link { min-height: 44px; display: inline-flex; align-items: center; font-size: .76rem; }
.prep-resource-note { margin: 22px 0 0; padding: 18px 20px; color: var(--forest-800); background: var(--sage-100); border-radius: var(--radius-md); }

@media (max-width: 1120px) {
  .primary-nav {
    padding: 14px 18px 72px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .nav-row-main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
  .primary-nav .nav-row-main a {
    min-height: 42px;
    padding: 7px 4px;
    font-size: 1.03rem;
    line-height: 1.12;
  }
  .nav-row-ecosystem {
    margin-top: 12px;
    padding-top: 9px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 0;
  }
  .nav-group-label {
    grid-column: 1 / -1;
    min-height: 28px;
    display: flex;
    align-items: center;
    color: var(--forest-700);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  .primary-nav .nav-row-ecosystem a {
    min-height: 38px;
    padding: 6px 4px;
    font-size: .78rem;
    line-height: 1.15;
  }
  .prep-resource-grid { grid-template-columns: 1fr 1fr; }
  .prep-resource-card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(260px,.85fr) 1fr; }
}

@media (max-width: 760px) {
  .fmt-method-grid { grid-template-columns: 1fr; }
  .prep-resource-grid { grid-template-columns: 1fr; }
  .prep-resource-card:last-child { grid-column: auto; display: block; }
  .mobile-contact-bar { min-height: 52px; }
  .mobile-contact-bar a { min-height: 52px; font-size: .72rem; gap: 4px; }
  .mobile-contact-bar svg { width: 16px; height: 16px; }
  .site-footer { padding-bottom: 48px; }
}

@media (max-width: 430px) {
  .primary-nav { padding: 10px 14px 64px; }
  .nav-row-main { column-gap: 9px; }
  .primary-nav .nav-row-main a { min-height: 40px; padding: 6px 2px; font-size: .96rem; }
  .nav-row-ecosystem { column-gap: 9px; margin-top: 8px; padding-top: 7px; }
  .primary-nav .nav-row-ecosystem a { min-height: 36px; padding: 5px 2px; font-size: .74rem; }
  .mobile-contact-bar a { font-size: .72rem; }
  .prep-resource-copy { padding: 20px 18px; }
  .prep-resource-copy h3 { font-size: 1.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  .prep-thumb img { transition: none; }
}

.booking-prep-quick {
  margin: 0 24px 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--forest-900);
  background: var(--sage-100);
  border-radius: var(--radius-md);
}
.booking-prep-quick[hidden] { display: none; }
.booking-prep-quick strong { font-size: .82rem; }
.booking-prep-quick > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 14px; }
.booking-prep-quick a { min-height: 36px; display: inline-flex; align-items: center; color: var(--forest-700); font-size: .76rem; font-weight: 800; }
@media (max-width: 760px) {
  .booking-prep-quick { margin: 0 16px 14px; align-items: flex-start; flex-direction: column; }
  .booking-prep-quick > div { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .mobile-contact-bar { transition: transform .18s ease; }
  body.menu-open .mobile-contact-bar { transform: translateY(100%); pointer-events: none; }
  .site-footer { padding-bottom: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-contact-bar { transition: none; }
}

/* v12: stacjonarne wizyty + wyróżnienie endoskopii w znieczuleniu */
.onsite-only {
  margin: 18px 0 0;
  padding: 13px 16px;
  display: inline-grid;
  gap: 2px;
  max-width: 560px;
  border-left: 3px solid var(--sage-500);
  color: var(--forest-900);
  background: rgba(255,255,255,.56);
  border-radius: 0 12px 12px 0;
  opacity: 0;
  transform: translateY(18px);
  animation: revealUp .7s .55s ease forwards;
}
.onsite-only strong { font-size: .94rem; }
.onsite-only span { color: var(--muted); font-size: .84rem; line-height: 1.45; }
.anesthesia-highlight { padding-top: 0; }
.anesthesia-highlight-card {
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
  gap: clamp(28px,5vw,72px);
  align-items: center;
  border: 1px solid rgba(19,76,62,.18);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--sage-100), var(--white));
}
.anesthesia-highlight-card h2 { margin: 0; font-family: var(--display); font-size: clamp(2rem,3.6vw,3.8rem); font-weight: 500; line-height: 1.02; }
.anesthesia-highlight-card > div:last-child p { margin-top: 0; color: var(--muted); }
.anesthesia-service { margin: 8px -12px 0; padding: 18px 12px !important; background: var(--sage-100); border-radius: 12px; border-bottom: 0 !important; }
.anesthesia-service strong { color: var(--forest-950); }
.contact-onsite { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--sage-100); }
.contact-onsite p { margin: 0; }
.contact-onsite .eyebrow { margin-bottom: 8px; }
@media (max-width: 768px) {
  .onsite-only { width: 100%; max-width: none; }
  .anesthesia-highlight-card { grid-template-columns: 1fr; }
}


/* v15: urządzenia diagnostyczne + materiały przygotowujące */
.gallery-device {
  background: linear-gradient(145deg, #f6f7f3, #e9eee8);
}
.gallery-device::after {
  background: linear-gradient(180deg, rgba(11,43,36,0) 36%, rgba(11,43,36,.12) 57%, rgba(11,43,36,.86) 100%);
}
.gallery-device img {
  object-fit: contain;
  padding: 22px 26px 76px;
  transform: none;
}
.gallery-device:hover img { transform: scale(1.025); }
.gallery-device span { bottom: 18px; }
.gallery-device small { max-width: 95%; }
.equipment-note {
  margin-top: 18px;
  padding: 0 4px;
}
.equipment-note p {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.65;
}
.equipment-note a,
.inline-resource-links a,
.pricing-resource-links a,
.prep-faq-links a {
  color: var(--forest-700);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.inline-resource-links {
  margin-top: 10px;
  display: flex !important;
  flex-wrap: wrap;
  gap: 7px 15px;
}
.inline-resource-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  font-size: .76rem;
}
.pricing-resource-links {
  margin-top: 9px;
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px 8px;
}
.pricing-resource-links a {
  min-height: 34px;
  padding: 5px 9px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(19,76,62,.18);
  border-radius: 999px;
  background: var(--sage-100);
  font-size: .7rem;
  text-decoration: none;
}
.education-link-actions,
.education-more-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.education-link-actions { margin-top: 20px; }
.education-more-actions { justify-content: flex-end; }
.prep-faq-links a { display: inline; }

@media (max-width: 768px) {
  .gallery-device img { padding: 18px 22px 70px; }
  .equipment-note { margin-top: 14px; }
  .education-link-actions,
  .education-more-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }
  .education-link-actions .button,
  .education-more-actions .button,
  .education-link-actions .text-link,
  .education-more-actions .text-link {
    width: 100%;
    justify-content: center;
  }
  .pricing-resource-links { gap: 6px; }
  .pricing-resource-links a { font-size: .68rem; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-device img { transition: none; }
}


/* v16 — dopracowanie mapy usług, CTA materiałów i informacji organizacyjnych */
.onsite-only {
  grid-template-columns: minmax(0, 1fr);
  width: fit-content;
}
.onsite-only > span,
.onsite-only > strong {
  display: block;
  width: 100%;
}

@media (min-width: 1181px) {
  .service-map {
    grid-template-columns: 160px minmax(330px, 1fr) minmax(390px, .96fr);
    gap: clamp(20px, 2.4vw, 36px);
    align-items: start;
  }
  .service-detail {
    min-height: 490px;
    height: auto;
    padding: 27px 18px 28px 22px;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 13px;
    align-items: start;
    align-content: end;
    overflow: visible;
  }
  .service-detail > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .service-detail h3 {
    margin: 5px 0 11px;
    font-size: clamp(1.45rem, 1.75vw, 2.05rem);
    line-height: 1.08;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
  }
  .service-detail p:not(.eyebrow):not(.service-number) {
    margin: 0;
    font-size: .91rem;
    line-height: 1.5;
    overflow-wrap: break-word;
  }
  .service-detail .button {
    margin-top: 15px;
    max-width: 100%;
  }
}

/* Materiały przygotowujące mają wyglądać jak ważna akcja, nie zwykły link. */
.inline-resource-links a,
.pricing-resource-links a,
.prep-faq-links a,
.booking-prep-quick a {
  font-weight: 850;
  text-decoration: none;
}
.inline-resource-links a,
.pricing-resource-links a {
  padding: 7px 11px;
  border: 1px solid rgba(19,76,62,.24);
  border-radius: 999px;
  background: var(--sage-100);
  box-shadow: 0 4px 12px rgba(11,43,36,.05);
}
.inline-resource-links a[href*="youtube.com"],
.pricing-resource-links a[href*="youtube.com"] {
  color: var(--white);
  background: var(--forest-800);
  border-color: var(--forest-800);
}
.prep-faq-links a {
  padding: 3px 7px;
  border-radius: 7px;
  background: var(--sage-100);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.prep-faq-links a[href*="youtube.com"] {
  color: var(--forest-950);
  background: rgba(183,217,202,.58);
}
.booking-prep-quick a {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--sage-100);
}
.booking-prep-quick a[href*="youtube.com"] {
  color: var(--white);
  background: var(--forest-800);
}

@media (max-width: 1180px) {
  .service-detail {
    height: auto;
    overflow: visible;
    align-items: start;
    align-content: start;
  }
  .service-detail h3 {
    font-size: clamp(1.55rem, 3.2vw, 2rem);
    overflow-wrap: break-word;
    word-break: normal;
  }
}

@media (max-width: 760px) {
  .inline-resource-links a,
  .pricing-resource-links a {
    min-height: 38px;
    padding: 7px 10px;
    font-size: .72rem;
  }
}
.service-detail { box-sizing: border-box; width: 100%; max-width: 100%; }
.service-detail > div, .service-detail h3, .service-detail p { max-width: 100%; }


/* v17 — własne zdjęcia placówki, spójne etykiety materiałów i poprawa panelu mapy usług */
.inline-resource-links,
.pricing-resource-links,
.prep-resource-actions,
.booking-prep-quick > div {
  gap: 10px 16px;
}

.inline-resource-links a,
.pricing-resource-links a,
.prep-faq-links a,
.booking-prep-quick a,
.prep-resource-actions .button {
  font-weight: 850;
  letter-spacing: .01em;
}

.prep-resource-actions .button {
  min-height: 46px;
  padding: 11px 16px;
}

.prep-resource-actions .button-secondary,
.prep-resource-actions a[href*="youtube.com"],
.booking-prep-quick a[href*="youtube.com"],
.inline-resource-links a[href*="youtube.com"],
.pricing-resource-links a[href*="youtube.com"],
.prep-faq-links a[href*="youtube.com"] {
  background: var(--forest-800);
  border-color: var(--forest-800);
  color: var(--white);
}

.prep-resource-actions .button-primary {
  background: var(--sage-100);
  color: var(--forest-900);
  border-color: rgba(19,76,62,.24);
}

.service-map {
  align-items: start;
}

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

.service-detail {
  min-width: 0;
  width: 100%;
  min-height: 520px;
  height: auto;
  overflow: visible;
  align-items: start;
  align-content: start;
}

.service-detail h3 {
  font-size: clamp(1.32rem, 1.55vw, 1.85rem);
  line-height: 1.14;
  margin: 4px 0 10px;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.service-detail p:not(.eyebrow):not(.service-number) {
  max-width: 100%;
  font-size: .92rem;
  line-height: 1.56;
  overflow-wrap: anywhere;
}

@media (min-width: 1181px) {
  .service-map {
    grid-template-columns: 150px minmax(300px, 1fr) minmax(320px, .88fr);
    gap: 18px 28px;
  }
  .service-detail {
    min-height: 540px;
    padding: 24px 18px 24px 20px;
    grid-template-columns: 34px minmax(0, 1fr);
  }
}

.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 320px;
  gap: 18px;
}

.gallery-item {
  min-width: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-wide {
  grid-column: span 2;
}

.gallery-portrait img,
.gallery-device img,
.gallery-chamber img,
.gallery-exterior img {
  object-fit: cover;
}

.booking-photos-section {
  background: var(--white);
}

.booking-photos-grid {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: stretch;
  gap: 20px;
  align-items: start;
}

.booking-photo-card {
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 38px rgba(11,43,36,.06);
}

.booking-photo-card img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  display: block;
  object-fit: contain;
}

.booking-photo-card figcaption {
  padding: 16px 18px 18px;
  display: grid;
  gap: 6px;
}

.booking-photo-card figcaption strong {
  color: var(--forest-900);
  font-size: .95rem;
}

.booking-photo-card figcaption span {
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.55;
}

@media (max-width: 1040px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .booking-photos-grid {
    grid-template-columns: repeat(2, minmax(0, 300px));
  }
  .gallery-wide {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .booking-photos-grid {
    grid-template-columns: minmax(0, 300px);
    justify-content: center;
  }
  .gallery-wide {
    grid-column: auto;
  }
  .service-detail {
    min-height: auto;
  }
}

/* v18 — spójne linki materiałów w Usługach i Cenniku */
.inline-resource-links,
.pricing-resource-links {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 2.5em; /* ok. 5 wizualnych spacji */
  row-gap: 8px;
}

.inline-resource-links a,
.pricing-resource-links a {
  min-height: auto;
  padding: 0;
  display: inline-flex;
  align-items: center;
  color: var(--forest-700) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none;
  font-size: .78rem;
  font-weight: 850;
  line-height: 1.35;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.inline-resource-links a[href*="youtube.com"],
.pricing-resource-links a[href*="youtube.com"] {
  color: var(--forest-700) !important;
  background: transparent !important;
  border: 0 !important;
}

@media (max-width: 760px) {
  .inline-resource-links,
  .pricing-resource-links {
    column-gap: 2em;
  }
  .inline-resource-links a,
  .pricing-resource-links a {
    font-size: .76rem;
  }
}


/* v19 — finalne wymuszenie wyglądu linków przygotowania w Usługach i Cenniku */
.resource-link-pair {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  gap: 8px 5ch !important; /* wizualny odstęp ok. pięciu spacji */
  margin-top: 12px !important;
}

.resource-link-pair > a {
  display: inline-block !important;
  flex: 0 0 auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  color: var(--forest-700) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: .88rem !important;
  font-weight: 900 !important;
  line-height: 1.45 !important;
  text-decoration-line: underline !important;
  text-decoration-style: solid !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 3px !important;
  white-space: normal !important;
}

.resource-link-pair > a:focus-visible {
  outline: 3px solid var(--sage-500) !important;
  outline-offset: 4px !important;
  border-radius: 3px !important;
}

@media (max-width: 760px) {
  .resource-link-pair {
    gap: 8px 3ch !important;
  }
  .resource-link-pair > a {
    font-size: .84rem !important;
  }
}


/* v22 — certyfikat jakości FMT */
.fmt-certificate-card {
  margin: 18px 0 14px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(19,76,62,.18);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(183,217,202,.28), rgba(255,255,255,.96));
}
.fmt-certificate-card h4 {
  margin: 4px 0 9px;
  color: var(--forest-900);
  font-family: var(--display);
  font-size: 1.16rem;
  line-height: 1.25;
}
.fmt-certificate-card p:not(.eyebrow) {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.58;
}
.fmt-certificate-card .button {
  width: 100%;
  justify-content: center;
  text-align: center;
}


/* v23 — e-booki połączone z materiałami YouTube */
.ebook-education-section {
  margin-top: 72px;
  padding-top: 46px;
  border-top: 1px solid var(--line);
}
.ebook-education-head {
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(320px,1.1fr);
  gap: clamp(28px,5vw,72px);
  align-items: end;
}
.ebook-education-head h3 {
  margin: 5px 0 0;
  color: var(--forest-950);
  font-family: var(--display);
  font-size: clamp(2rem,3vw,3.05rem);
  font-weight: 500;
  line-height: 1.04;
}
.ebook-education-head > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.ebook-video-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 20px;
}
.ebook-video-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(190px,.88fr) minmax(0,1.12fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 18px 45px rgba(18,61,50,.06);
}
.ebook-video-thumb {
  position: relative;
  min-height: 245px;
  display: block;
  overflow: hidden;
  background: var(--forest-950);
}
.ebook-video-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .25s ease;
}
.ebook-video-thumb:hover img { transform: scale(1.025); }
.ebook-video-thumb > span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: rgba(11,43,36,.92);
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
}
.ebook-video-copy {
  padding: 24px 24px 22px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ebook-video-copy h4 {
  margin: 4px 0 9px;
  color: var(--forest-950);
  font-family: var(--display);
  font-size: 1.42rem;
  font-weight: 550;
  line-height: 1.13;
}
.ebook-video-copy > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.6;
}
.ebook-card-actions {
  margin-top: auto;
  padding-top: 17px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.ebook-card-actions a {
  color: var(--forest-700);
  font-size: .78rem;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.ebook-library-note {
  margin-top: 22px;
  padding: 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  border-radius: var(--radius-md);
  background: var(--forest-950);
  color: var(--white);
}
.ebook-library-note > div {
  display: grid;
  gap: 5px;
}
.ebook-library-note strong { font-size: 1rem; }
.ebook-library-note span {
  max-width: 760px;
  color: rgba(255,255,255,.72);
  font-size: .84rem;
  line-height: 1.55;
}
.ebook-library-note .button { flex: 0 0 auto; }

/* dodatkowe zdjęcie w galerii zachowuje ten sam premium crop */
.gallery-item[data-gallery-src="assets/gabinet-stanowiska-pacjentow.png"] img {
  object-position: center 58%;
}

@media (max-width: 1100px) {
  .ebook-video-card { grid-template-columns: 1fr; }
  .ebook-video-thumb { min-height: 220px; aspect-ratio: 16/9; }
}
@media (max-width: 860px) {
  .ebook-education-head { grid-template-columns: 1fr; gap: 16px; }
  .ebook-video-grid { grid-template-columns: 1fr; }
  .ebook-video-card { grid-template-columns: minmax(190px,.78fr) minmax(0,1.22fr); }
  .ebook-library-note { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 620px) {
  .ebook-education-section { margin-top: 54px; padding-top: 34px; }
  .ebook-video-card { grid-template-columns: 1fr; }
  .ebook-video-thumb { min-height: 0; aspect-ratio: 16/9; }
  .ebook-video-copy { padding: 21px 18px 20px; }
  .ebook-video-copy h4 { font-size: 1.28rem; }
  .ebook-library-note { padding: 22px 18px; }
  .ebook-library-note .button { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .ebook-video-thumb img { transition: none; }
}


/* v24 — prywatność, cookies, treści zewnętrzne i kontakt bez formularza */
.external-content-gate {
  min-height: 240px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  color: var(--forest-900);
  background: linear-gradient(145deg, var(--sage-100), var(--cream));
  border: 1px solid rgba(19,76,62,.14);
  border-radius: var(--radius-md);
}
.external-content-gate[hidden] { display: none !important; }
.external-content-gate > div { display: grid; gap: 7px; }
.external-content-gate strong { font-family: var(--display); font-size: 1.35rem; font-weight: 600; }
.external-content-gate span { max-width: 58ch; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.map-consent-gate { min-height: 330px; border-radius: 0; }
.booking-consent-gate { margin: 0 24px 20px; min-height: 360px; }

.access-panel { margin-top: 28px; }
.access-panel-head { margin-bottom: 16px; }
.access-panel-head h3 { margin: 3px 0 0; font-family: var(--display); font-size: clamp(1.45rem, 2vw, 2rem); font-weight: 500; }
.access-highlights { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.access-highlights > div { padding: 18px; display: grid; gap: 5px; background: var(--sage-100); border: 1px solid rgba(19,76,62,.12); border-radius: var(--radius-md); }
.access-highlights strong { color: var(--forest-900); font-size: .9rem; }
.access-highlights span { color: var(--muted); font-size: .78rem; line-height: 1.45; }

.direct-contact-panel { margin-top: 34px; padding: clamp(24px,4vw,44px); display: grid; grid-template-columns: 1.2fr .8fr; gap: 34px; align-items: center; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.direct-contact-panel h3 { margin: 4px 0 12px; font-family: var(--display); font-size: clamp(1.6rem,2.6vw,2.4rem); font-weight: 500; }
.direct-contact-panel p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.65; }
.direct-contact-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.privacy-page { background: var(--cream); }
.privacy-layout { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(260px,.65fr); gap: clamp(28px,5vw,70px); align-items: start; }
.privacy-content { padding: clamp(24px,4vw,46px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.privacy-content h3 { margin: 30px 0 10px; color: var(--forest-900); font-family: var(--display); font-size: 1.45rem; font-weight: 600; }
.privacy-content h3:first-child { margin-top: 0; }
.privacy-content p, .privacy-content li { color: var(--muted); line-height: 1.7; }
.privacy-content ul { padding-left: 22px; }
.privacy-content a { color: var(--forest-700); font-weight: 750; }
.privacy-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.privacy-summary { position: sticky; top: 150px; padding: 24px; background: var(--forest-950); color: var(--white); border-radius: var(--radius-lg); }
.privacy-summary h3 { margin: 5px 0 12px; font-family: var(--display); font-size: 1.55rem; font-weight: 500; }
.privacy-summary > p:not(.eyebrow) { color: rgba(255,255,255,.72); line-height: 1.6; }
.privacy-summary > div { padding: 14px 0; display: grid; gap: 4px; border-top: 1px solid rgba(255,255,255,.12); }
.privacy-summary strong { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--sage-300); }
.privacy-summary span, .privacy-summary a { color: var(--white); font-size: .86rem; line-height: 1.5; }

.footer-privacy-button { padding: 0; min-height: 36px; display: block; color: inherit; background: transparent; border: 0; text-align: left; font: inherit; cursor: pointer; opacity: .86; }
.footer-privacy-button:hover { opacity: 1; text-decoration: underline; }
.footer-company { margin-top: 12px !important; font-size: .72rem !important; line-height: 1.55 !important; opacity: .65; }

.cookie-banner { position: fixed; z-index: 1200; left: 20px; right: 20px; bottom: 20px; max-width: 1180px; margin: 0 auto; padding: 18px 20px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 22px; align-items: center; background: rgba(255,255,255,.98); border: 1px solid rgba(19,76,62,.18); border-radius: 18px; box-shadow: 0 24px 70px rgba(7,35,28,.22); backdrop-filter: blur(10px); }
.cookie-banner[hidden] { display: none !important; }
.cookie-banner-copy { display: grid; gap: 5px; }
.cookie-banner-copy strong { color: var(--forest-900); font-size: .94rem; }
.cookie-banner-copy span { color: var(--muted); font-size: .78rem; line-height: 1.5; }
.cookie-banner-copy a { width: fit-content; color: var(--forest-700); font-size: .74rem; font-weight: 800; text-decoration: underline; }
.cookie-banner-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.cookie-banner-actions .button { min-height: 42px; padding: 9px 14px; font-size: .74rem; }
.cookie-settings-link { min-height: 42px; padding: 8px 12px; color: var(--forest-800); background: transparent; border: 0; font-weight: 800; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.privacy-dialog { width: min(720px, calc(100vw - 32px)); max-height: min(760px, calc(100vh - 40px)); padding: 0; color: var(--forest-950); background: var(--white); border: 0; border-radius: 22px; box-shadow: 0 30px 100px rgba(0,0,0,.26); overflow: auto; }
.privacy-dialog::backdrop { background: rgba(4,24,19,.6); backdrop-filter: blur(3px); }
.privacy-dialog-head { padding: 30px 30px 20px; border-bottom: 1px solid var(--line); }
.privacy-dialog-head h2 { margin: 4px 0 8px; font-family: var(--display); font-size: 2rem; font-weight: 500; }
.privacy-dialog-head > p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.55; }
.privacy-dialog-close { position: sticky; top: 12px; float: right; margin: 12px 12px -54px 0; z-index: 2; }
.privacy-option { margin: 0 30px; padding: 20px 0; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 20px; align-items: center; border-bottom: 1px solid var(--line); }
.privacy-option > div { display: grid; gap: 5px; }
.privacy-option strong { color: var(--forest-900); }
.privacy-option span { color: var(--muted); font-size: .8rem; line-height: 1.5; }
.privacy-option input { width: 44px; height: 24px; accent-color: var(--forest-700); }
.privacy-option.is-required { background: transparent; }
.privacy-status { padding: 6px 9px; background: var(--sage-100); border-radius: 999px; color: var(--forest-800) !important; font-size: .7rem !important; font-weight: 800; }
.privacy-dialog-actions { padding: 24px 30px 30px; display: flex; flex-wrap: wrap; gap: 10px; }

@media (min-width: 1180px) {
  .site-footer .footer-grid { grid-template-columns: 1.2fr .7fr .9fr .85fr 1fr; }
}

@media (max-width: 980px) {
  .access-highlights { grid-template-columns: 1fr 1fr; }
  .privacy-layout { grid-template-columns: 1fr; }
  .privacy-summary { position: static; }
  .direct-contact-panel { grid-template-columns: 1fr; }
  .cookie-banner { grid-template-columns: 1fr; }
  .cookie-banner-actions { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .access-highlights { grid-template-columns: 1fr; }
  .cookie-banner { left: 10px; right: 10px; bottom: 62px; padding: 15px; border-radius: 15px; }
  .cookie-banner-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cookie-banner-actions .button { width: 100%; justify-content: center; }
  .cookie-settings-link { grid-column: 1 / -1; width: 100%; text-align: center; }
  .privacy-dialog-head { padding: 24px 20px 18px; }
  .privacy-option { margin: 0 20px; }
  .privacy-dialog-actions { padding: 20px; flex-direction: column; }
  .privacy-dialog-actions .button { width: 100%; justify-content: center; }
  .booking-consent-gate { margin: 0 16px 16px; min-height: 300px; }
}


/* v25 — uproszczony, praktyczny model prywatności */
.cookie-banner-copy span { max-width: 70ch; }
.privacy-summary h3 { margin-bottom: 10px; }


/* v26 — funkcjonalny prompt prywatności i dyskretny link w stopce */
.footer-privacy-button {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 3px 0 !important;
  min-height: 0 !important;
  display: inline !important;
  color: inherit !important;
  background: none !important;
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font: inherit !important;
  line-height: inherit !important;
  text-align: left !important;
  cursor: pointer;
  opacity: .78;
}
.footer-privacy-button:hover,
.footer-privacy-button:focus-visible {
  opacity: 1;
  color: inherit !important;
  background: transparent !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Pierwszy komunikat pojawia się od razu w polu widzenia, a nie przy dolnej krawędzi strony. */
.cookie-banner {
  position: fixed !important;
  z-index: 1500 !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  width: min(680px, calc(100vw - 32px)) !important;
  max-width: 680px !important;
  margin: 0 !important;
  padding: 26px 28px 24px !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 20px !important;
  align-items: stretch !important;
  transform: translate(-50%, -50%) !important;
  background: rgba(255,255,255,.99) !important;
  border: 1px solid rgba(19,76,62,.20) !important;
  border-radius: 22px !important;
  box-shadow:
    0 0 0 100vmax rgba(5,30,24,.38),
    0 30px 100px rgba(5,30,24,.28) !important;
  backdrop-filter: blur(12px);
}
.cookie-banner[hidden] { display: none !important; }

.cookie-banner-copy {
  display: grid;
  gap: 7px;
}
.cookie-banner-copy .eyebrow {
  margin: 0 0 2px;
}
.cookie-banner-copy strong {
  color: var(--forest-950);
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.12;
}
.cookie-banner-copy span {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.62;
}
.cookie-banner-copy a {
  margin-top: 2px;
  width: fit-content;
  color: var(--forest-700);
  font-size: .78rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr auto !important;
  gap: 10px !important;
  align-items: center;
  justify-content: stretch !important;
}
.cookie-banner-actions .button {
  width: 100%;
  min-height: 46px;
  justify-content: center;
}
.cookie-settings-link {
  min-height: 46px;
  padding: 8px 12px;
  color: var(--forest-800);
  background: transparent;
  border: 0;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Po odrzuceniu mapy sekcja pozostaje użyteczna i wizualnie spójna. */
.map-consent-gate {
  min-height: 330px;
  padding: 30px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  text-align: center;
  background:
    radial-gradient(circle at 25% 20%, rgba(183,217,202,.42), transparent 38%),
    linear-gradient(135deg, #f4f7f1, #e8f0ea);
}
.map-consent-gate > div {
  max-width: 540px;
  display: grid;
  gap: 8px;
}
.map-consent-gate strong {
  color: var(--forest-900);
  font-family: var(--display);
  font-size: 1.35rem;
}
.map-consent-gate span {
  color: var(--muted);
  line-height: 1.58;
}

@media (max-width: 680px) {
  .cookie-banner {
    width: calc(100vw - 20px) !important;
    padding: 21px 18px 18px !important;
    border-radius: 18px !important;
  }
  .cookie-banner-actions {
    grid-template-columns: 1fr !important;
  }
  .cookie-settings-link {
    width: 100%;
    text-align: center;
  }
}


/* v27 — galeria: marka w jednej linii i bardziej ogólny opis */
.nowrap-brand { white-space: nowrap; }
.page-hero .nowrap-brand { font-size: .96em; }
.page-hero h2 .nowrap-brand { letter-spacing: -0.01em; }
@media (max-width: 760px) {
  .page-hero h2 { font-size: clamp(1.8rem, 7vw, 2.35rem); }
  .page-hero .nowrap-brand { font-size: .92em; }
}


/* v28 — galeria: nagłówek w 3 liniach */
.page-hero .gallery-title-line{display:block;}
.page-hero .gallery-title-brand{white-space:nowrap;font-size:.92em;letter-spacing:-.01em;}
@media (max-width:760px){.page-hero .gallery-title-brand{font-size:.88em;}}


/* v29 — karta przygotowania do rektoskopii bez filmu YouTube */
.prep-thumb-pdf {
  min-height: 210px;
  padding: 28px 22px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: linear-gradient(135deg, rgba(183,217,202,.5), rgba(245,249,246,.98));
  color: var(--forest-900);
  text-align: center;
}
.prep-thumb-pdf::after { display:none !important; }
.prep-thumb-pdf .prep-pdf-mark {
  width: 70px;
  height: 82px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(19,76,62,.35);
  border-radius: 8px 18px 8px 8px;
  background: #fff;
  color: var(--forest-800);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.prep-thumb-pdf strong { font-family: var(--display); font-size: 1.15rem; }
.prep-thumb-pdf small { color: var(--muted); font-size: .76rem; }


/* v32 — pełne logo bez generowania dodatkowego overflow */
.brand-mark {
  overflow: hidden !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 2px !important;
}
.brand-mark img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}


/* v32 — brak dodatkowego paska przewijania podczas pierwszego komunikatu prywatności */
html.privacy-prompt-open,
body.privacy-prompt-open {
  overflow: hidden !important;
}

/* Przy otwartym oknie ustawień przewijana jest treść samego okna, nie strona pod spodem. */
html.privacy-modal-open,
body.privacy-modal-open {
  overflow: hidden !important;
}


/* v37 — materiały przygotowujące: YouTube ma ten sam jasny styl co PDF */
.prep-resource-actions .button-secondary,
.prep-resource-actions a[href*="youtube.com"] {
  color: var(--forest-900) !important;
  background: var(--sage-100) !important;
  border-color: rgba(19,76,62,.24) !important;
  box-shadow: none !important;
}

.booking-prep-quick a[href*="youtube.com"],
.prep-faq-links a[href*="youtube.com"] {
  color: var(--forest-900) !important;
  background: var(--sage-100) !important;
  border-color: rgba(19,76,62,.24) !important;
}

/* W Usługach i Cenniku oba odnośniki pozostają identycznymi jasnymi,
   pogrubionymi i podkreślonymi linkami bez ciemnego tła. */
.inline-resource-links a[href*="youtube.com"],
.pricing-resource-links a[href*="youtube.com"],
.resource-link-pair > a[href*="youtube.com"] {
  color: var(--forest-700) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  text-decoration-line: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 3px !important;
}


/* v41 — ważna informacja o potwierdzeniu rezerwacji przed terminarzem MP.pl */
.booking-confirmation-before-calendar {
  margin: 0 16px 14px;
  padding: 13px 16px;
  border: 1px solid rgba(19,76,62,.18);
  border-radius: 14px;
  background: var(--sage-100);
}
.booking-confirmation-before-calendar strong {
  display: block;
  margin-bottom: 3px;
  color: var(--forest-900);
}
.booking-confirmation-before-calendar span {
  color: var(--muted);
  line-height: 1.5;
}
@media (max-width:760px) {
  .booking-confirmation-before-calendar {
    margin: 0 12px 12px;
    padding: 12px 14px;
  }
}


/* v42 — responsywna wysokość terminarza MP.pl
   Desktop: krótszy panel, żeby nie zajmował całego ekranu.
   Mobile: większa część ekranu pozostaje dla terminarza, ale bez nadmiernej wysokości. */
.booking-frame-card iframe[data-booking-frame] {
  width: 100% !important;
  height: clamp(500px, 62vh, 640px) !important;
  min-height: 0 !important;
  max-height: 640px !important;
  overflow: auto;
}

@supports (height: 1dvh) {
  .booking-frame-card iframe[data-booking-frame] {
    height: clamp(500px, 62dvh, 640px) !important;
  }
}

@media (max-width: 900px) {
  .booking-frame-card iframe[data-booking-frame] {
    height: clamp(520px, 68vh, 640px) !important;
    max-height: 640px !important;
  }
  @supports (height: 1dvh) {
    .booking-frame-card iframe[data-booking-frame] {
      height: clamp(520px, 68dvh, 640px) !important;
    }
  }
}

@media (max-width: 600px) {
  .booking-frame-head {
    padding: 18px 16px;
    gap: 12px;
  }
  .booking-frame-card iframe[data-booking-frame] {
    height: clamp(500px, 72vh, 620px) !important;
    max-height: 620px !important;
  }
  @supports (height: 1dvh) {
    .booking-frame-card iframe[data-booking-frame] {
      height: clamp(500px, 72dvh, 620px) !important;
    }
  }
}


/* v46 — krótszy terminarz MP.pl, aby ograniczyć podwójne przewijanie */
.booking-frame-card iframe[data-booking-frame] {
  height: clamp(420px, 50vh, 520px) !important;
  max-height: 520px !important;
  min-height: 0 !important;
}

@supports (height: 1dvh) {
  .booking-frame-card iframe[data-booking-frame] {
    height: clamp(420px, 50dvh, 520px) !important;
  }
}

/* mniejsze laptopy i tablety */
@media (max-width: 1100px) {
  .booking-frame-card iframe[data-booking-frame] {
    height: clamp(400px, 48vh, 500px) !important;
    max-height: 500px !important;
  }
  @supports (height: 1dvh) {
    .booking-frame-card iframe[data-booking-frame] {
      height: clamp(400px, 48dvh, 500px) !important;
    }
  }
}

/* telefon: trochę więcej miejsca na sam terminarz, ale nadal bez bardzo długiego panelu */
@media (max-width: 600px) {
  .booking-frame-card iframe[data-booking-frame] {
    height: clamp(430px, 58vh, 540px) !important;
    max-height: 540px !important;
  }
  @supports (height: 1dvh) {
    .booking-frame-card iframe[data-booking-frame] {
      height: clamp(430px, 58dvh, 540px) !important;
    }
  }
}


/* v47 — większe główne nagłówki H1 na wszystkich podstronach */
.page-hero h1 {
  margin: 0;
  color: var(--forest-950);
  font-family: var(--display);
  font-size: clamp(2.8rem, 4.3vw, 4.7rem);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.02;
  text-wrap: balance;
}

/* Dłuższe tytuły mogą naturalnie przejść do kolejnego wiersza,
   bez zmniejszania czytelności na mniejszych ekranach. */
@media (max-width: 760px) {
  .page-hero h1 {
    font-size: clamp(2.4rem, 10vw, 3.35rem);
    line-height: 1.04;
  }
}

/* Zachowanie ustalonego wcześniej układu tytułu galerii */
.page-hero h1 .gallery-title-brand {
  white-space: nowrap;
  font-size: .92em;
  letter-spacing: -.01em;
}
@media (max-width: 760px) {
  .page-hero h1 .gallery-title-brand {
    font-size: .88em;
  }
}


/* =========================================================
   v48 — rozwijane Usługi + szczegółowe podstrony świadczeń
   ========================================================= */
.nav-dropdown { position: relative; display: flex; align-items: stretch; }
.nav-dropdown-head { display: flex; align-items: center; min-height: 52px; }
.nav-dropdown-head > a { min-height: 52px; }
.nav-dropdown-toggle {
  width: 28px; min-height: 44px; padding: 0; margin-left: -4px;
  display: grid; place-items: center; border: 0; background: transparent;
  color: var(--forest-800); cursor: pointer;
}
.nav-dropdown-toggle span { display: block; font-size: 1rem; line-height: 1; transition: transform .18s ease; }
.nav-dropdown.is-open .nav-dropdown-toggle span { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% - 2px); left: 0; z-index: 120;
  width: min(330px, calc(100vw - 32px)); padding: 10px;
  display: none; border: 1px solid var(--line); border-radius: 16px;
  background: rgba(255,255,255,.98); box-shadow: 0 22px 55px rgba(18,61,50,.15);
  white-space: normal;
}
.nav-dropdown:is(:hover,:focus-within) .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu { display: grid; }
.primary-nav .nav-dropdown-menu a {
  min-height: 42px; padding: 9px 11px; display: flex; align-items: center;
  border-radius: 10px; color: var(--forest-850); font-family: var(--body);
  font-size: .78rem; font-weight: 720; line-height: 1.25;
}
.primary-nav .nav-dropdown-menu a::after { display: none; }
.primary-nav .nav-dropdown-menu a:hover,
.primary-nav .nav-dropdown-menu a[aria-current="page"] { background: var(--sage-100); color: var(--forest-950); }
.primary-nav .nav-dropdown-menu .nav-service-fmt { margin-top: 5px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; }

.service-page-nav {
  margin-top: 4px; padding: 10px; display: flex; gap: 7px; overflow-x: auto;
  border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.72);
  scrollbar-width: none;
}
.service-page-nav::-webkit-scrollbar { display: none; }
.service-page-nav a {
  flex: 0 0 auto; min-height: 40px; padding: 8px 12px; display: inline-flex; align-items: center;
  border-radius: 999px; color: var(--forest-800); background: var(--sage-100);
  font-size: .75rem; font-weight: 760;
}
.service-page-nav a:hover { background: var(--sage-200); }

.service-detail-page .page-hero { padding-bottom: 34px; }
.procedure-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.procedure-main { min-width: 0; display: grid; gap: 18px; }
.procedure-section {
  min-width: 0; padding: clamp(24px,3vw,38px); border: 1px solid var(--line);
  border-radius: var(--radius-md); background: var(--paper);
}
.procedure-section:nth-child(even) { background: var(--cream); }
.procedure-section h2 { margin: 4px 0 16px; font-family: var(--display); font-size: clamp(1.8rem,2.7vw,2.65rem); font-weight: 500; line-height: 1.08; }
.procedure-section p:not(.eyebrow) { color: var(--muted); line-height: 1.72; }
.procedure-section p + p { margin-top: 12px; }
.procedure-aside { position: sticky; top: calc(var(--header-h) + 20px); }
.procedure-aside-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--sage-100); }
.procedure-aside-card h3 { margin: 4px 0 12px; color: var(--forest-950); font-family: var(--display); font-size: 2rem; font-weight: 500; line-height: 1.05; }
.procedure-aside-card p { color: var(--muted); font-size: .88rem; line-height: 1.6; }
.procedure-aside-card a { margin-top: 10px; display: block; color: var(--forest-800); font-weight: 800; }
.procedure-facts { margin-top: 18px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.procedure-facts > div { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.72); }
.procedure-facts strong,.procedure-facts span { display: block; }
.procedure-facts strong { color: var(--forest-900); font-family: var(--display); font-size: 1.35rem; font-weight: 600; }
.procedure-facts span { margin-top: 5px; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.procedure-list { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.procedure-list li { padding: 16px 0; display: grid; grid-template-columns: minmax(180px,.8fr) minmax(0,1.2fr); gap: 20px; border-top: 1px solid var(--line); }
.procedure-list li:first-child { border-top: 0; }
.procedure-list strong { color: var(--forest-900); line-height: 1.4; }
.procedure-list span { color: var(--muted); font-size: .88rem; line-height: 1.58; }
.info-chip-grid { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.info-chip-grid span { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--forest-800); background: var(--sage-100); font-size: .78rem; font-weight: 720; }
.procedure-resource-links { margin-top: 18px; }
.procedure-link-row { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.procedure-steps { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.procedure-steps li { padding: 16px 0; display: grid; grid-template-columns: 42px 1fr; gap: 14px; border-top: 1px solid var(--line); }
.procedure-steps li:first-child { border-top: 0; }
.procedure-steps > li > span { color: var(--sage-700); font-family: var(--display); font-size: 1.2rem; }
.procedure-steps strong { color: var(--forest-900); }
.procedure-steps p { margin: 4px 0 0; font-size: .87rem; }
.procedure-cta-row { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.procedure-price { margin-left: auto; color: var(--forest-900); font-weight: 850; }
.small-note { color: var(--muted); font-size: .8rem !important; line-height: 1.55 !important; }
.service-group strong a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

@media (max-width:1120px) {
  .nav-row-main .nav-dropdown { grid-column: 1 / -1; display: block; border-bottom: 1px solid var(--line); }
  .nav-dropdown-head { display: grid; grid-template-columns: minmax(0,1fr) 44px; min-height: 42px; }
  .primary-nav .nav-dropdown-head > a { min-height: 42px; padding: 7px 4px; border-bottom: 0; font-size: 1.03rem; }
  .nav-dropdown-toggle { width: 44px; min-height: 42px; margin: 0; background: var(--sage-100); border-radius: 10px; }
  .nav-dropdown-menu { position: static; width: 100%; padding: 4px 0 8px 12px; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
  .nav-dropdown:not(.is-open) .nav-dropdown-menu { display: none; }
  .nav-dropdown.is-open .nav-dropdown-menu { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3px 10px; }
  .nav-dropdown:is(:hover,:focus-within):not(.is-open) .nav-dropdown-menu { display: none; }
  .primary-nav .nav-dropdown-menu a { min-height: 36px; padding: 6px 8px; border-bottom: 0; font-size: .78rem; }
  .primary-nav .nav-dropdown-menu .nav-service-fmt { grid-column: 1 / -1; margin-top: 3px; padding-top: 8px; border-top: 1px solid var(--line); }
  .procedure-layout { grid-template-columns: 1fr; }
  .procedure-aside { position: static; }
  .procedure-aside-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 18px; align-items: start; }
  .procedure-aside-card .eyebrow,.procedure-aside-card h3,.procedure-aside-card p { grid-column: 1; }
  .procedure-aside-card a { grid-column: 2; }
}
@media (max-width:760px) {
  .service-page-nav { margin-inline: -2px; border-radius: 13px; }
  .procedure-section { padding: 22px 18px; }
  .procedure-section h2 { font-size: clamp(1.7rem,8vw,2.15rem); }
  .procedure-facts { grid-template-columns: 1fr; }
  .procedure-list li { grid-template-columns: 1fr; gap: 5px; }
  .procedure-cta-row .button { flex: 1 1 150px; }
  .procedure-price { width: 100%; margin-left: 0; padding-top: 4px; }
  .procedure-aside-card { display: block; }
  .procedure-aside-card a { margin-top: 8px; }
}
@media (max-width:430px) {
  .nav-dropdown.is-open .nav-dropdown-menu { grid-template-columns: 1fr; }
  .primary-nav .nav-dropdown-head > a { font-size: .96rem; }
}


/* v49 — podglądy filmów są lokalne; YouTube otwiera się dopiero po kliknięciu */
.procedure-video-previews { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:18px 0 16px; }
.procedure-video-previews:has(.procedure-video-preview:only-child) { grid-template-columns:minmax(0,620px); }
.procedure-video-preview { position:relative; display:block; overflow:hidden; border-radius:18px; border:1px solid rgba(19,76,62,.14); background:#eef4ef; text-decoration:none; box-shadow:0 12px 30px rgba(23,57,47,.07); }
.procedure-video-preview img { width:100%; aspect-ratio:16/9; object-fit:cover; display:block; transition:transform .25s ease; }
.procedure-video-preview span { display:block; padding:12px 14px; color:var(--forest-900); font-weight:850; line-height:1.35; background:#fff; }
.procedure-video-preview:hover img { transform:scale(1.018); }
.procedure-booking-note { margin:14px 0 0; max-width:720px; color:var(--muted); font-size:.94rem; line-height:1.55; }
.service-detail-actions { display:flex; align-items:center; gap:18px; flex-wrap:wrap; margin-top:18px; }

/* v49 — InBody */
.inbody-aside img { width:100%; height:auto; max-height:370px; object-fit:contain; margin:0 auto 18px; border-radius:16px; background:var(--sage-100); }
.inbody-facts { grid-template-columns:repeat(2,minmax(0,1fr)); }

/* v49 — terminarz MP.pl: panel dopasowany do wysokości typowego laptopa */
.booking-frame-card iframe[data-booking-frame] { height:clamp(360px,46vh,430px)!important; max-height:430px!important; min-height:360px!important; }
@supports (height:1dvh) { .booking-frame-card iframe[data-booking-frame] { height:clamp(360px,46dvh,430px)!important; } }
.booking-fullscreen-link { flex:0 0 auto; white-space:normal; text-align:center; }
@media (max-width:1100px) and (min-width:601px) {
  .booking-frame-card iframe[data-booking-frame] { height:clamp(350px,44vh,410px)!important; min-height:350px!important; max-height:410px!important; }
  @supports (height:1dvh) { .booking-frame-card iframe[data-booking-frame] { height:clamp(350px,44dvh,410px)!important; } }
}
@media (max-width:600px) {
  .booking-frame-card iframe[data-booking-frame] { height:clamp(400px,55vh,480px)!important; min-height:400px!important; max-height:480px!important; }
  @supports (height:1dvh) { .booking-frame-card iframe[data-booking-frame] { height:clamp(400px,55dvh,480px)!important; } }
  .procedure-video-previews,.inbody-facts { grid-template-columns:1fr; }
  .booking-fullscreen-link { width:100%; justify-content:center; }
}


/* v50 — terminarz MP.pl nieco wyższy niż w v49 + cel głębokiego linku */
#terminy { scroll-margin-top: calc(var(--header-h) + 18px); }
.booking-frame-card iframe[data-booking-frame] { height:clamp(430px,53vh,520px)!important; min-height:430px!important; max-height:520px!important; }
@supports (height:1dvh) { .booking-frame-card iframe[data-booking-frame] { height:clamp(430px,53dvh,520px)!important; } }
@media (max-width:1100px) and (min-width:601px) {
  .booking-frame-card iframe[data-booking-frame] { height:clamp(420px,52vh,500px)!important; min-height:420px!important; max-height:500px!important; }
  @supports (height:1dvh) { .booking-frame-card iframe[data-booking-frame] { height:clamp(420px,52dvh,500px)!important; } }
}
@media (max-width:600px) {
  .booking-frame-card iframe[data-booking-frame] { height:clamp(430px,58vh,520px)!important; min-height:430px!important; max-height:520px!important; }
  @supports (height:1dvh) { .booking-frame-card iframe[data-booking-frame] { height:clamp(430px,58dvh,520px)!important; } }
}


/* v53 — dwie lokalne miniatury w karcie kolonoskopii */
.prep-thumb-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: var(--forest-950);
}
.prep-thumb-stack .prep-thumb {
  min-height: 0;
}
.prep-thumb-stack .prep-thumb span {
  left: 10px;
  right: 10px;
  bottom: 10px;
  width: fit-content;
  max-width: calc(100% - 20px);
  white-space: normal;
}
@media (max-width: 430px) {
  .prep-thumb-stack {
    grid-template-columns: 1fr;
  }
}


.education-block { margin-top: 56px; }
.education-block:first-of-type { margin-top: 52px; }
.education-section-head { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: clamp(24px,5vw,68px); align-items: end; }
.education-section-head h3 { margin: 0; color: var(--forest-950); font-family: var(--display); font-size: clamp(2rem,3.8vw,3.4rem); line-height: 1.02; }
.education-section-head > p { margin: 0; color: var(--muted); }
.education-video-grid--procedures { margin-top: 28px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.education-video-grid--topics { margin-top: 28px; }
.education-video-grid--procedures .education-video h3 { font-size: 1.7rem; }
@media (max-width: 1180px) {
  .education-section-head { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .education-video-grid--procedures { grid-template-columns: 1fr; }
}


/* =========================================================
   v57 — mobile, prywatność, miniatury i linki zewnętrzne
   ========================================================= */

/* Spójny sygnał, że link otwiera serwis zewnętrzny. */
.external-link-arrow {
  display: inline-block;
  margin-left: .22em;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-.04em);
  transition: transform .18s ease;
}
.external-link-mark:hover .external-link-arrow,
.external-link-mark:focus-visible .external-link-arrow {
  transform: translate(.14em,-.16em);
}

/* Banner prywatności zawsze mieści się w krótkim ekranie telefonu. */
.cookie-banner {
  max-height: calc(100vh - 24px) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}
@supports (height: 100dvh) {
  .cookie-banner { max-height: calc(100dvh - 24px) !important; }
}

/* Miniatury na podstronach usług nie powinny dominować nad treścią. */
.procedure-video-previews {
  width: 100%;
  max-width: 900px;
  grid-template-columns: repeat(2,minmax(0,430px));
  justify-content: start;
}
.procedure-video-previews:has(.procedure-video-preview:only-child) {
  width: 100%;
  max-width: 470px;
  grid-template-columns: minmax(0,470px);
}
.procedure-video-preview span { font-size: .88rem; }
.youtube-featured-thumbs { max-width: 1040px; }
.education-video-grid--procedures { max-width: 1040px; }

@media (max-width: 760px) {
  /* Defensywne ograniczenie szerokości pierwszych sekcji i długich napisów. */
  html, body { width: 100%; max-width: 100%; overflow-x: clip; }
  .site-header, .header-inner, main, .route-page, .page-hero, .page-content, .shell {
    max-width: 100%;
  }
  .header-inner > *,
  .hero-grid > *,
  .page-hero > *,
  .service-group > *,
  .procedure-layout > *,
  .education-lead > *,
  .education-section-head > *,
  .fmt-intro-grid > *,
  .fmt-method-grid > * { min-width: 0; }
  main h1, main h2, main h3, main p, main a, .site-footer a {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .page-hero {
    width: var(--shell);
    grid-template-columns: minmax(0,1fr) !important;
    gap: 22px;
    min-height: 0;
    padding-top: 52px;
    padding-bottom: 42px;
  }
  .page-hero h1 { text-wrap: pretty; }
  .page-hero .gallery-title-brand { white-space: normal; }
  .contact-address span { white-space: normal; }

  /* Lista podstron usług: bez ukrytego przewijania w bok. */
  .service-page-nav {
    margin-top: 10px;
    padding: 9px;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 7px;
    overflow: visible;
  }
  .service-page-nav a {
    width: 100%;
    min-height: 46px;
    padding: 8px 9px;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.25;
  }
  .service-page-nav a:last-child { grid-column: 1 / -1; }

  /* Kategorie mapy usług: 2 x 2 zamiast poziomego scrolla. */
  .service-map-controls {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
    overflow: visible !important;
    padding-bottom: 0 !important;
  }
  .service-map-controls button {
    width: 100%;
    min-width: 0;
    justify-content: center;
    text-align: center;
  }

  /* Serwisy powiązane na stronie głównej: widoczne od razu, bez gestu w bok. */
  .ecosystem-links {
    padding: 10px 0;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
    overflow: visible;
  }
  .ecosystem-links > span { grid-column: 1 / -1; }
  .ecosystem-links a {
    width: 100%;
    min-width: 0;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.25;
  }

  /* Podglądy YouTube: kompaktowe i zawsze 16:9. */
  .procedure-video-previews,
  .procedure-video-previews:has(.procedure-video-preview:only-child) {
    width: min(100%,470px);
    max-width: 470px;
    grid-template-columns: minmax(0,1fr);
    gap: 12px;
  }
  .procedure-video-preview { border-radius: 14px; }
  .procedure-video-preview span { padding: 10px 12px; font-size: .82rem; }
}

@media (max-width: 390px) {
  .service-page-nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .service-page-nav a { font-size: .7rem; padding-inline: 7px; }
  .ecosystem-links { grid-template-columns: 1fr; }
  .ecosystem-links > span { grid-column: auto; }
}


/* =========================================================
   v58 — nawigacja, mobile hero, kompaktowe wideo
   ========================================================= */

/* Usługi są kontrolką rozwijającą, a Zakres usług pozostaje pierwszym linkiem submenu. */
.nav-dropdown-head { width: 100%; }
.nav-services-trigger {
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: #33413b;
  font: inherit;
  font-size: .86rem;
  font-weight: 650;
  cursor: pointer;
}
.nav-services-hint { display: none; }
.nav-services-mark {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--forest-800);
  background: var(--sage-100);
  font-size: .82rem;
  font-weight: 800;
  line-height: 1;
  transition: transform .18s ease, background .18s ease;
}
.nav-dropdown.is-open .nav-services-mark { transform: rotate(45deg); background: var(--sage-200); }
.nav-services-trigger:hover,
.nav-services-trigger.is-active { color: var(--forest-900); }

/* Desktop: samo najechanie rozwija menu, kliknięcie również działa. */
@media (min-width: 1121px) {
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu,
  .nav-dropdown.is-open .nav-dropdown-menu { display: grid; }
}

/* Film na podstronie usługi ma skalę podobną do kart na stronie głównej. */
.procedure-video-previews {
  width: 100%;
  max-width: 690px;
  grid-template-columns: repeat(2,minmax(0,335px));
  gap: 12px;
  justify-content: start;
}
.procedure-video-previews:has(.procedure-video-preview:only-child) {
  width: 100%;
  max-width: 335px;
  grid-template-columns: minmax(0,335px);
}
.procedure-video-preview { border-radius: 16px; }
.procedure-video-preview span { padding: 9px 11px; font-size: .8rem; }

@media (max-width: 1120px) {
  .primary-nav {
    height: calc(100svh - var(--header-h));
    min-height: 0;
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .nav-row-main .nav-dropdown { width: 100%; }
  .nav-dropdown-head { min-height: 52px; }
  .nav-services-trigger {
    width: 100%;
    min-height: 52px;
    padding: 7px 4px;
    justify-content: flex-start;
    border-bottom: 1px solid var(--line);
    color: #33413b;
    font-family: var(--display);
    font-size: 1.28rem;
    font-weight: 500;
    text-align: left;
  }
  .nav-services-hint {
    margin-left: auto;
    display: inline;
    color: var(--muted);
    font-family: var(--body);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .02em;
  }
  .nav-services-mark { flex: 0 0 24px; width: 24px; height: 24px; margin-left: 5px; }
  .nav-dropdown-menu {
    position: static !important;
    width: 100%;
    max-height: none;
    margin: 0;
    padding: 8px 0 12px 12px;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .nav-dropdown.is-open .nav-dropdown-menu {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 4px 10px;
  }
  .nav-dropdown:not(.is-open) .nav-dropdown-menu { display: none !important; }
  .primary-nav .nav-dropdown-menu a {
    min-height: 40px;
    padding: 7px 8px;
    border-bottom: 0;
    font-family: var(--body);
    font-size: .79rem;
    font-weight: 740;
  }
  .nav-row-ecosystem { flex: 0 0 auto; }
}

@media (max-width: 760px) {
  /* Mniejszy i bardziej czytelny tytuł główny na telefonie. */
  .home-page .hero-title {
    font-size: clamp(2.45rem, 11.2vw, 3.35rem);
    line-height: .98;
    letter-spacing: -.045em;
  }
  .home-page .hero-title span { overflow: visible; }

  /* Podglądy filmów w usługach są wyraźnie mniejsze niż szerokość sekcji. */
  .procedure-video-previews,
  .procedure-video-previews:has(.procedure-video-preview:only-child) {
    width: min(100%, 310px);
    max-width: 310px;
    grid-template-columns: minmax(0,1fr);
    gap: 10px;
  }
  .procedure-video-preview { border-radius: 13px; }
  .procedure-video-preview span { padding: 8px 10px; font-size: .76rem; }
}

@media (max-width: 430px) {
  .nav-dropdown.is-open .nav-dropdown-menu { grid-template-columns: 1fr; }
  .nav-services-trigger { font-size: 1.12rem; }
  .home-page .hero-title { font-size: clamp(2.3rem, 10.8vw, 3rem); }
  .procedure-video-previews,
  .procedure-video-previews:has(.procedure-video-preview:only-child) {
    width: min(100%, 292px);
    max-width: 292px;
  }
}


/* =========================================================
   v59 — karty YouTube na podstronach usług
   ========================================================= */
/*
   Karty usług używają teraz tej samej zasady co Edukacja:
   osobny kontener obrazu 16:9 + przycisk play na obrazie + krótki podpis.
   height:auto jest celowe: bez niego atrybut height="720" z HTML mógł
   zostać zachowany jako wysokość renderowana po zmianie szerokości obrazu.
*/
.procedure-video-previews {
  width: 100%;
  max-width: 720px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  justify-content: start;
  margin: 24px 0 18px;
}
.procedure-video-previews:has(.procedure-video-preview:only-child) {
  width: 100%;
  max-width: 350px;
  grid-template-columns: minmax(0, 1fr);
}
.procedure-video-preview {
  min-width: 0;
  overflow: hidden;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: none;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.procedure-video-preview:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 46px rgba(11,43,36,.08);
}
.procedure-video-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--forest-950);
}
.procedure-video-preview .procedure-video-image img {
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}
.procedure-video-preview:hover .procedure-video-image img { transform: scale(1.018); }
.procedure-video-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: rgba(11,43,36,.9);
  font-size: .9rem;
  line-height: 1;
  box-shadow: 0 5px 16px rgba(0,0,0,.16);
}
.procedure-video-title {
  display: block;
  padding: 14px 16px 15px;
  color: var(--forest-950);
  background: var(--white);
  font-family: var(--body);
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .procedure-video-previews,
  .procedure-video-previews:has(.procedure-video-preview:only-child) {
    width: 100%;
    max-width: 360px;
    grid-template-columns: minmax(0,1fr);
    gap: 14px;
  }
  .procedure-video-preview { border-radius: var(--radius-md); }
  .procedure-video-title { padding: 12px 14px 13px; font-size: .8rem; }
  .procedure-video-play { right: 12px; bottom: 12px; width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .procedure-video-preview,
  .procedure-video-preview .procedure-video-image img { transition: none; }
  .procedure-video-preview:hover { transform: none; }
  .procedure-video-preview:hover .procedure-video-image img { transform: none; }
}


/* v64 — stały kontekst wybranej usługi bezpośrednio nad terminarzem MP.pl */
.booking-context-bar {
  position: relative;
  z-index: 4;
  margin: 0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(19,76,62,.14);
  border-bottom: 1px solid rgba(19,76,62,.16);
  background: #f7faf7;
}
.booking-context-copy { min-width: 0; }
.booking-context-label {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.booking-context-copy strong {
  display: inline;
  color: var(--forest-950);
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.12;
}
.booking-context-price {
  margin-left: 10px;
  color: var(--forest-700);
  font-size: .83rem;
  font-weight: 850;
  white-space: normal;
}
.booking-context-copy small {
  display: block;
  margin-top: 5px;
  max-width: 760px;
  color: #4c5a54;
  font-size: .78rem;
  line-height: 1.4;
}
.booking-context-change {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid rgba(19,76,62,.26);
  border-radius: 999px;
  color: var(--forest-900);
  background: var(--white);
  font: inherit;
  font-size: .78rem;
  font-weight: 850;
  cursor: pointer;
}
.booking-context-change:hover { border-color: var(--forest-700); background: var(--sage-100); }
.booking-context-change:focus-visible { outline: 3px solid rgba(81,128,105,.28); outline-offset: 2px; }

@media (max-width: 760px) {
  .booking-frame-card { overflow: visible; }
  .booking-frame-card iframe[data-booking-frame] {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }
  .booking-context-bar {
    position: sticky;
    top: calc(var(--header-h) + 4px);
    padding: 11px 12px;
    gap: 10px;
    box-shadow: 0 9px 22px rgba(11,43,36,.09);
  }
  .booking-context-label { font-size: .65rem; }
  .booking-context-copy strong {
    display: block;
    font-size: 1.12rem;
  }
  .booking-context-price {
    display: block;
    margin: 3px 0 0;
    font-size: .75rem;
  }
  .booking-context-copy small {
    margin-top: 4px;
    font-size: .72rem;
    line-height: 1.3;
  }
  .booking-context-change {
    min-height: 40px;
    padding: 8px 10px;
    font-size: .7rem;
  }
  .booking-picker { scroll-margin-top: calc(var(--header-h) + 12px); }
}

@media (max-width: 390px) {
  .booking-context-bar { align-items: flex-start; }
  .booking-context-change { padding-inline: 9px; }
}
