/* =====================================================================
   PROJEKT D — strona gabinetu od nowa
   Styl: grafika referencyjna „CENNIK” (kubizm, faktura farby, złoto).
   Zasada: bez JS i przy ograniczeniu ruchu cała treść jest widoczna;
   klasy is-* / js-motion dokłada dopiero skrypt.
   ===================================================================== */

/* ---------- Fonty (hostowane lokalnie, bez CDN — RODO) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-500-normal-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-500-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-600-normal-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-600-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-500-italic-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-500-italic.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-normal-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokeny z grafiki referencyjnej ---------- */
:root {
  --ink: #0b3036; /* petrol, napisy „CENNIK” */
  --ink-deep: #071f24;
  --teal: #1e4e60;
  --paper: #efe6d6; /* kremowe tło */
  --cream: #e4d8c0;
  --sand: #c4b199;
  --rose: #d89c7e;
  --rose-deep: #a8644b; /* róż do większych napisów na jasnym tle (kontrast) */
  --rose-label: #8a4a35; /* drobny tekst na kremie, duży na szałwii */
  --rose-label-sage: #7a3f2c; /* drobny tekst na szałwii */
  --rose-soft: #ead1c0;
  --rose-light: #ead1c0; /* jasny róż = tło planszy „Badanie” (Izabela 2026-10-13); petrol 9,7:1 */
  --rose-dark: #934f40; /* ciemny róż: tło bloków z kremowym tekstem (4,9:1) */
  --sage: #6c847e;
  --sage-soft: #b9c4bb;
  --gold: #b48448;
  --gold-text: #6f5a35; /* złoto do drobnych napisów na jasnym tle (≥ 4.5:1) */
  --gold-ink: #5c4a2b; /* ciemniejsze złoto: podpis pod nazwą w nagłówku */
  --gold-light: #dcbb80; /* złoto do napisów na ciemnym tle */
  --black: #0c1920;

  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --body: "Instrument Sans", -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --impasto: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cfilter id='i' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.014 .038' numOctaves='4' seed='11' stitchTiles='stitch'/%3E%3CfeDiffuseLighting lighting-color='%23fff' surfaceScale='2.6'%3E%3CfeDistantLight azimuth='235' elevation='42'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23i)'/%3E%3C/svg%3E");
  --paint: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.05 0 0 0 0 0.12 0 0 0 0 0.13 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Baza ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
html.lenis,
html.lenis body {
  height: auto;
}
html.lenis {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
body {
  margin: 0;
  background: var(--paper) var(--paint);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.02;
  text-wrap: balance;
}
em {
  font-style: italic;
}
h2 em,
h1 em,
.footer__big em {
  color: var(--rose-deep);
}
::selection {
  background: var(--rose);
  color: var(--ink-deep);
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

/* Jasny fokus na ciemnych sekcjach; jasne tła używają petrolu. */
:is(.menu, .contact, .footer, .cta, .cards--ink, .gbt, .tour) :focus-visible {
  outline-color: var(--paper);
}

.wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
}
.skip-link:focus {
  top: 16px;
}

/* Drobne złote wersaliki, jak „GABINET STOMATOLOGICZNY” na grafice */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font: 600 0.72rem/1.2 var(--body);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.eyebrow::before {
  content: "";
  width: 44px;
  height: 1px;
  background: currentColor;
  transform-origin: left;
}
.eyebrow--light {
  color: var(--gold-light);
}

/* Przyciski i linki */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 30px;
  border-radius: 999px;
  font: 600 0.95rem/1 var(--body);
  text-decoration: none;
  transition:
    background-color 0.35s var(--ease),
    color 0.35s var(--ease);
}
.btn--primary {
  background: var(--ink);
  color: var(--paper);
}
.btn--primary:hover {
  background: var(--teal);
}
.btn i {
  font-style: normal;
  transition: transform 0.45s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
.btn:hover i {
  transform: translateX(5px);
}
}
.link-arrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font: 600 0.78rem/1.2 var(--body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px
    no-repeat;
  padding-bottom: 6px;
  transition: background-size 0.5s var(--ease);
}
.link-arrow:hover {
  background-size: 100% 1px;
}
.link-arrow i {
  font-style: normal;
}
.link-arrow--light {
  color: var(--gold-light);
}

/* ---------- Intro, kurtyna, kursor (tylko gdy ruch włączony) ---------- */
.curtain {
  display: none;
}

.curtain {
  position: fixed;
  inset: 0;
  z-index: 190;
  pointer-events: none;
  align-items: center;
  justify-content: center;
  background: var(--ink) var(--paint);
  color: var(--gold-light);
}
.curtain__logo {
  width: 84px;
  height: 88px;
  object-fit: contain;
}
.js-motion .curtain {
  display: flex;
  transform: translateY(100%);
}
.curtain-in .curtain {
  transform: none;
}

html.motion-failsafe:not(.motion-ready) .curtain {
  display: none !important;
}

.cursor {
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .js-motion .cursor {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 180;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    border: 1px solid var(--rose); /* kursor w różu zamiast złota (Izabela 2026-10-14) */
    opacity: 0;
    transition:
      width 0.45s var(--ease),
      height 0.45s var(--ease),
      margin 0.45s var(--ease),
      background-color 0.45s var(--ease);
  }
  .cursor.is-link {
    width: 46px;
    height: 46px;
    margin: -23px 0 0 -23px;
    background: rgba(216, 156, 126, 0.16);
  }
  .cursor.is-label {
    width: 92px;
    height: 92px;
    margin: -46px 0 0 -46px;
    background: var(--rose);
    border-color: var(--rose);
  }
  .cursor__label {
    font: 600 0.62rem/1 var(--body);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-deep);
    opacity: 0;
    transition: opacity 0.25s;
  }
  .cursor.is-label .cursor__label {
    opacity: 1;
  }
}

/* Elementy pierwszego ekranu czekają na wejście (tylko z ruchem) */
.js-motion .nav {
  opacity: 0;
}
html.motion-failsafe:not(.motion-ready) .nav {
  opacity: 1 !important;
}

/* Maski linii SplitText: zapas na ogonki i kursywę */
/* SplitText nazywa maski „<klasa>-mask” (split-line-mask, char-mask, word-mask)
   i ustawia overflow: clip — bez zapasu ucina ogonki g, ę, y, j w Cormorancie. */
[class$="-mask"] {
  padding-block: 0.08em 0.2em;
  margin-block: -0.08em -0.2em;
}

/* ---------- Nawigacja ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 120;
  transition: transform 0.7s var(--ease);
}
.nav.is-hidden {
  transform: translateY(-190%);
}
.nav__bar {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0 auto;
  padding: 22px var(--gutter);
  transition:
    margin 0.7s var(--ease),
    padding 0.7s var(--ease),
    max-width 0.7s var(--ease),
    background-color 0.7s var(--ease),
    border-radius 0.7s var(--ease),
    box-shadow 0.7s var(--ease);
}
.nav.is-pill .nav__bar,
body:has(.cta--404) .nav__bar /* 404: ciemne tło od góry, więc nagłówek od razu jako jasna pigułka */ {
  max-width: 1180px;
  margin-top: 12px;
  padding: 12px 14px 12px 24px;
  border-radius: 999px;
  background: rgba(239, 230, 214, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 20px 50px -30px rgba(7, 31, 36, 0.6),
    inset 0 0 0 1px rgba(11, 48, 54, 0.1);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}
/* Znak gabinetu (wariant H, Izabela 2026-10-13): ząb jedną linią z zamkniętym okiem z okładki CENNIK */
.brand__mark {
  width: 42px;
  height: 44px;
  object-fit: contain;
  transition: transform 0.6s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
.brand:hover .brand__mark {
  transform: rotate(-6deg) scale(1.05);
}
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand__name {
  font: 600 1.6rem/1 var(--display);
  color: var(--ink);
  white-space: nowrap;
}
.brand__sub {
  margin-top: 6px;
  font: 600 0.7rem/1 var(--body);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.nav__links ul {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  position: relative;
  font: 500 0.9rem/1 var(--body);
  text-decoration: none;
  color: var(--ink);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav__links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav__call {
  display: inline-flex;
  white-space: nowrap;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 600 0.85rem/1 var(--body);
  text-decoration: none;
}
.nav__toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
}
.nav__toggle span {
  position: absolute;
  left: 15px;
  right: 15px;
  height: 1.5px;
  background: var(--paper);
  transition:
    transform 0.5s var(--ease),
    top 0.5s var(--ease);
}
.nav__toggle span:first-child {
  top: 20px;
}
.nav__toggle span:last-child {
  top: 27px;
}
.nav__toggle[aria-expanded="true"] span:first-child {
  top: 23.5px;
  transform: rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:last-child {
  top: 23.5px;
  transform: rotate(-45deg);
}

/* Menu pełnoekranowe */
.menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 36px;
  padding: 110px var(--gutter) 40px;
  overflow-y: auto;
  background: var(--ink) var(--paint);
  color: var(--paper);
  clip-path: circle(0% at calc(100% - 44px) 44px);
  visibility: hidden;
  transition:
    clip-path 0.55s cubic-bezier(0.76, 0, 0.24, 1),
    visibility 0s 0.55s;
}
.menu.is-open {
  clip-path: circle(150% at calc(100% - 44px) 44px);
  visibility: visible;
  transition:
    clip-path 0.55s cubic-bezier(0.76, 0, 0.24, 1),
    visibility 0s;
}
.menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu__list li {
  overflow: hidden;
  border-bottom: 1px solid rgba(239, 230, 214, 0.14);
}
.menu__list a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 10px 0;
  text-decoration: none;
  transform: translateY(110%) rotate(4deg);
  transform-origin: 0 100%;
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.2, 1);
}
.menu.is-open .menu__list a,
.menu.is-open .menu__accbtn {
  transform: none;
}
.menu.is-open .menu__list li:nth-child(2) :is(a, .menu__accbtn) {
  transition-delay: 0.036s;
}
.menu.is-open .menu__list li:nth-child(3) :is(a, .menu__accbtn) {
  transition-delay: 0.072s;
}
.menu.is-open .menu__list li:nth-child(4) :is(a, .menu__accbtn) {
  transition-delay: 0.108s;
}
.menu.is-open .menu__list li:nth-child(5) :is(a, .menu__accbtn) {
  transition-delay: 0.144s;
}
.menu__num {
  font: 600 0.7rem/1 var(--body);
  letter-spacing: 0.2em;
  color: var(--gold-light);
}
.menu__word {
  font: 500 clamp(2.4rem, 11vw, 4.5rem)/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.menu__contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font: 500 1.6rem/1.2 var(--display);
}
.menu__contact a {
  text-decoration: none;
  color: var(--gold-light);
}
.menu > nav,
.menu__contact {
  position: relative;
  z-index: 1;
}
.menu__shapes {
  position: absolute;
  inset: 0;
  overflow: clip; /* kształty wystają za krawędź: bez tego menu dostawało przewijanie w bok i w dół */
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
/* Otwarte menu ma ciemne tło: nazwa gabinetu w kremie, podpis w jasnym złocie (wcześniej ciemny tekst znikał) */
html:has(.menu.is-open) .brand__name {
  color: var(--paper);
}
html:has(.menu.is-open) .brand__sub {
  color: var(--gold-light);
}
/* …i jasny znak zęba (ciemny prawie znikał na petrolu; przegląd Gemini 2026-11-25) */
html:has(.menu.is-open) .brand__mark {
  content: url("../img/logo/znak-jasny.webp");
}
/* Rozwinięta lista zabiegów wypełnia ekran: kształty chowają się, żeby nie leżały na tekście (2026-10-23) */
.menu:has(.menu__acc.is-open) .menu__shapes {
  opacity: 0;
}
.menu__shapes .s {
  position: absolute;
  pointer-events: none;
}
/* Kształty tylko na krawędziach, poza kolumną tekstu (Izabela 2026-10-23): wcześniej ochrowe koło leżało na liście
   zabiegów, a różowa ćwiartka na nazwie gabinetu; koło szałwiowe zamiast ochry (bez złotych kół) */
.menu__shapes .s--arch {
  right: -110px;
  bottom: -70px;
  width: 180px;
  height: 300px;
  border-radius: 90px 90px 0 0;
  background: var(--teal);
}
.menu__shapes .s--sun {
  right: 34px;
  bottom: 26px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--sage);
}
.menu__shapes .s--quarter {
  right: -36px;
  bottom: 120px;
  width: 120px;
  height: 120px;
  border-radius: 120px 0 0 0;
  background: var(--rose);
  opacity: 0.85;
}

/* ---------- Faktura farby: drobne ziarno + pociągnięcia pędzla ---------- */
.paint-tex {
  overflow: hidden;
}
.paint-tex::before,
.paint-tex::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.paint-tex::before {
  background: var(--impasto);
  background-size: 360px 360px;
  mix-blend-mode: soft-light;
  opacity: 0.6;
  filter: contrast(1.6) brightness(0.82);
}
.paint-tex::after {
  background: var(--paint);
  mix-blend-mode: multiply;
  opacity: 0.7;
}

/* ---------- Pierwsza wizyta: przypięte słowa ---------- */
.steps__stage {
  position: relative;
  overflow: hidden;
}
.steps__bg {
  position: absolute;
  inset: 0;
  background: var(--paper);
}
.steps__head {
  position: relative;
  z-index: 2;
  padding-top: clamp(80px, 10vw, 130px);
}
.steps__title {
  margin-top: 16px;
  font-size: clamp(2rem, 4vw, 3.6rem);
}
.steps__shape {
  display: none;
}
.steps__panels {
  position: relative;
  z-index: 2;
}
.steps__panel {
  padding: 60px var(--gutter);
}
.steps__panel--rose {
  background: var(--rose-soft);
}
.steps__panel--sage {
  background: var(--sage-soft);
}
.steps__panel--ink {
  background: var(--ink);
  color: var(--paper);
}
.steps__count {
  font: 600 0.72rem/1 var(--body);
  letter-spacing: 0.28em;
  color: var(--gold-text);
}
.steps__panel--ink .steps__count {
  color: var(--gold-light);
}
.steps__count span {
  color: inherit;
}
.steps__word {
  /* Miejsce w masce na polskie znaki nad literami (Ó, Ś): padding-top, a ujemny
     margines zachowuje dotychczasowy układ */
  margin: calc(14px - 0.2em) 0 18px;
  font-size: clamp(3.6rem, 15vw, 15rem);
  line-height: 0.86;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  overflow: hidden;
  padding-top: 0.2em;
  padding-bottom: 0.06em;
}
.steps__word > span {
  display: inline-block;
}
.steps__text {
  max-width: 30rem;
  font-size: 1.15rem;
}
.steps__progress {
  display: none;
}

/* malarski obraz kroku: łuk jak oprawiona grafika */
.steps__art {
  width: min(100%, 420px);
  aspect-ratio: 1;
  margin: 0 0 30px;
  padding: 10px;
  border-radius: 999px 999px 6px 6px;
  background: var(--paper);
  box-shadow:
    0 2px 0 1px rgba(180, 132, 72, 0.55),
    0 44px 80px -30px rgba(7, 31, 36, 0.55),
    0 16px 28px -12px rgba(7, 31, 36, 0.3);
}
.steps__art picture,
.steps__art img {
  display: block;
  width: 100%;
  height: 100%;
}
.steps__art picture {
  overflow: hidden;
  border-radius: 999px 999px 2px 2px;
}
.steps__art img {
  object-fit: cover;
}

/* tryb przypięty (JS): sekcja zajmuje ekran, panele leżą na sobie */
.steps.is-pinned .steps__stage {
  height: 100svh;
}
.steps.is-pinned .steps__panels {
  position: absolute;
  inset: 0;
}
.steps.is-pinned .steps__panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gutter) clamp(60px, 10vh, 110px);
  background: none;
}
.steps.is-pinned .steps__head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}
.steps.is-pinned .steps__shape {
  display: block;
  position: absolute;
  z-index: 1;
  right: 8%;
  top: 22%;
  width: clamp(160px, 26vw, 400px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--rose-dark);
  opacity: 0.9;
}
.steps.is-pinned .steps__art {
  position: absolute;
  z-index: 0;
  right: 17%;
  top: 13%;
  width: clamp(220px, 27vw, 430px);
  margin: 0;
  will-change: transform, clip-path;
}
.steps.is-pinned .steps__count,
.steps.is-pinned .steps__word,
.steps.is-pinned .steps__text {
  position: relative;
  z-index: 1;
}
.steps.is-pinned .steps__progress {
  display: block;
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 34px;
  height: 1px;
  background: rgba(11, 48, 54, 0.18);
}
.steps__progress span {
  display: block;
  height: 100%;
  background: var(--gold);
  transform-origin: left;
  transform: scaleX(0);
}

/* ---------- Spacer po gabinecie ---------- */
.tour {
  background: var(--ink) var(--paint);
  color: var(--paper);
}
.tour__stage {
  position: relative;
  padding: clamp(90px, 12vw, 150px) var(--gutter) clamp(70px, 9vw, 130px);
}
.tour__head h2 {
  margin-top: 18px;
  max-width: 16ch;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  color: var(--paper);
}
.tour__head h2 em {
  color: var(--rose);
}
/* Komputer: nagłówek po lewej, film obok po prawej (Izabela 2026-10-15: nagłówek nie zostawia reszty pustej) */
@media (min-width: 901px) {
  .tour__stage {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 9fr); /* film większy (Izabela 2026-10-16) */
    gap: clamp(24px, 2.5vw, 44px);
    align-items: center;
    padding-block: clamp(40px, 4.5vw, 72px);
  }
  .tour__head h2 {
    max-width: none;
    font-size: clamp(2.4rem, 4vw, 4.6rem);
  }
  .tour__film {
    margin: 0;
    width: 100%;
  }
}
/* Film v8 (2026-10-04): na telefonie pod nagłówkiem, przesunięty w prawo — asymetria albumu */
.tour__film {
  position: relative;
  margin: clamp(36px, 5vw, 64px) 0 0 auto;
  width: min(100%, 1180px);
}
.tour__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  background: var(--teal);
}
.tour__video--9x16 {
  display: none;
}
/* 9:16 tylko na telefonie w pionie (to samo zapytanie w site.js); poziomo zostaje 16:9.
   Szerokość z wysokości ekranu, żeby cały kadr mieścił się bez przycinania. */
@media (max-width: 760px) and (orientation: portrait) {
  .tour__film {
    margin-inline: auto;
    width: min(100%, calc(82svh * 9 / 16));
  }
  .tour__video--16x9 {
    display: none;
  }
  .tour__video--9x16 {
    display: block;
    aspect-ratio: 9 / 16;
  }
}
.tour__toggle {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 11px 16px;
  border: 1px solid rgba(239, 230, 214, 0.35);
  border-radius: 999px;
  background: rgba(11, 48, 54, 0.72);
  color: var(--paper);
  font: 600 0.68rem/1 var(--body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.tour__toggle:hover {
  background: rgba(11, 48, 54, 0.9);
}
.tour__toggle:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--ink); /* dwa kolory: pierścień widać też na jasnych klatkach */
}

/* ---------- Pytania pacjentów ---------- */
.faq {
  padding: clamp(72px, 14vw, 180px) 0;
  background: var(--rose-soft);
}
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(30px, 6vw, 100px);
  align-items: start;
}
.faq__head {
  position: sticky;
  top: 120px;
}
.faq__head h2 {
  margin-top: 18px;
  font-size: clamp(2.3rem, 4.4vw, 4.2rem);
}
.faq__lead {
  margin-top: 22px;
  max-width: 26rem;
}
.faq__item {
  border-bottom: 1px solid rgba(11, 48, 54, 0.2);
}
.faq__q {
  font: inherit;
}
.faq__q button {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 30px;
  align-items: center;
  gap: 22px;
  padding: 26px 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.faq__num {
  font: 500 clamp(2.4rem, 4vw, 3.8rem)/0.9 var(--display);
  color: var(--rose-deep);
  min-width: 2.2ch;
}
.faq__label {
  font: 500 clamp(1.3rem, 2.2vw, 1.75rem)/1.2 var(--display);
}
.faq__icon {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(11, 48, 54, 0.3);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 14px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.5s var(--ease);
}
.faq__icon::after {
  transform: rotate(0);
}
.js .faq__item:not(.is-open) .faq__icon::after {
  transform: rotate(90deg);
}
.faq__a {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.7s var(--ease);
}
.faq__a > div {
  overflow: hidden;
  padding-left: calc(2.2ch + 22px);
}
.faq__a p {
  padding-bottom: 14px;
  max-width: 34rem;
}
.faq__a .link-arrow {
  margin-bottom: 28px;
}
.js .faq__item:not(.is-open) .faq__a {
  grid-template-rows: 0fr;
  visibility: hidden; /* zwinięta odpowiedź nie przyjmuje fokusu klawiatury */
  transition: grid-template-rows 0.7s var(--ease), visibility 0s 0.7s;
}

/* ---------- Zespół ---------- */
.team {
  padding: clamp(72px, 14vw, 190px) 0;
  background: var(--sage-soft);
}
.team__head h2 em,
.team .person__name span:last-child {
  color: var(--rose-label);
}
.team .person__role {
  color: var(--rose-label-sage);
}
.team__head h2 {
  margin-top: 18px;
  font-size: clamp(2.6rem, 5.6vw, 5.4rem);
}
.team__lead {
  margin-top: 24px;
  max-width: 40rem;
}
.team__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
  margin-top: 80px;
  align-items: start;
}
.person--2 {
  margin-top: 140px;
}
.person--3 {
  margin-top: 60px;
}
.person__photo {
  margin: 0;
  overflow: hidden;
  border-radius: 999px 999px 4px 4px;
  aspect-ratio: 3/4;
  background: var(--sage);
}
.person__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
.person:hover .person__photo img {
  transform: scale(1.06);
}
}
.person__name {
  position: relative;
  z-index: 2;
  margin-top: 22px;
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  line-height: 0.95;
}
.person__name span {
  display: block;
}
.person__name span:last-child {
  padding-left: 0.8em;
  font-style: italic;
  color: var(--rose-deep);
}
.person__role {
  margin-top: 16px;
  font: 600 0.7rem/1.3 var(--body);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.person__bio {
  margin-top: 12px;
  font-size: 0.97rem;
}

/* ---------- Kontakt ---------- */
.contact {
  position: relative;
  padding: clamp(120px, 15vw, 200px) 0 clamp(90px, 10vw, 140px);
  background: var(--ink) var(--paint);
  color: var(--paper);
  overflow: hidden;
}
.contact__bgword {
  position: absolute;
  top: 8%;
  left: 0;
  white-space: nowrap;
  pointer-events: none;
  font: italic 500 clamp(7rem, 22vw, 22rem)/1 var(--display);
  color: rgba(239, 230, 214, 0.045);
}
.contact__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 6vw, 100px);
}
.contact__title {
  margin-top: 18px;
  /* „I GODZINY” ma ok. 5,3 em: przy 9vw wychodziło poza kolumnę i było ucinane (2026-10-23) */
  font-size: clamp(3.4rem, 7vw, 6.8rem);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--paper);
}
.contact__lead {
  margin-top: 26px;
  max-width: 30rem;
  color: rgba(239, 230, 214, 0.8);
}
.contact__phones {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 44px;
}
.phone {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 30px;
  border-radius: 999px;
  border: 1px solid rgba(220, 187, 128, 0.45);
  text-decoration: none;
  transition:
    background-color 0.4s var(--ease),
    color 0.4s var(--ease);
}
.phone:hover {
  background: var(--gold-light);
  color: var(--ink-deep);
}
.phone__label {
  font: 600 0.62rem/1 var(--body);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.phone:hover .phone__label {
  color: var(--ink-deep);
}
.phone__num {
  font: 500 clamp(1.7rem, 3vw, 2.4rem)/1 var(--display);
}
/* E-mail tak samo widoczny jak telefony, w osobnym wierszu pod nimi (Izabela 2026-10-26) */
.phone--mail {
  flex-basis: 100%;
  max-width: max-content;
}
.phone--mail .phone__num {
  font-size: clamp(1.25rem, 2.6vw, 2.1rem);
  overflow-wrap: anywhere;
}
.contact__urgent {
  margin-top: 30px;
  max-width: 30rem;
  font-size: 0.95rem;
  color: rgba(239, 230, 214, 0.72);
}
.contact__facts {
  margin: 0;
  display: grid;
  gap: 24px;
}
.contact__facts dt {
  font: 600 0.65rem/1 var(--body);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.contact__facts dd {
  margin: 8px 0 0;
  font: 500 1.15rem/1.45 var(--body);
}
.contact__facts dd .link-arrow {
  margin-top: 10px;
  font-family: var(--body);
}
.hours {
  width: 100%;
  margin-top: 34px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.hours caption {
  text-align: left;
  padding-bottom: 12px;
  font: 600 0.65rem/1 var(--body);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.hours th,
.hours td {
  padding: 9px 0;
  border-bottom: 1px solid rgba(239, 230, 214, 0.12);
  text-align: left;
  font-weight: 400;
}
.hours td {
  text-align: right;
  color: rgba(239, 230, 214, 0.8);
}
.contact__local {
  margin: 28px 0 22px;
  font-size: 0.95rem;
  color: rgba(239, 230, 214, 0.72);
}

/* ---------- Stopka ---------- */
.footer {
  position: relative;
  overflow: hidden;
  background: var(--ink-deep);
  color: var(--paper);
}
.footer__inner {
  padding: clamp(80px, 10vw, 140px) var(--gutter) 34px;
  max-width: 1320px;
  margin: 0 auto;
}
.footer__logo {
  display: block;
  width: 84px;
  height: 88px;
  object-fit: contain;
}
.footer__big {
  margin: 24px 0 70px;
  font: 500 clamp(3.2rem, 9.5vw, 9.5rem)/0.92 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.footer__big em {
  display: block;
  text-transform: none;
  color: var(--rose);
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  padding-top: 34px;
  border-top: 1px solid rgba(239, 230, 214, 0.14);
  font-size: 0.92rem;
  color: rgba(239, 230, 214, 0.75);
}
.footer__cols a {
  text-decoration: none;
}
.footer__cols a:hover {
  color: var(--gold-light);
}
.footer__copy {
  margin-top: 40px;
  font-size: 0.78rem;
  color: rgba(239, 230, 214, 0.65);
}

/* ---------- Pływający telefon ---------- */
.float-call {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px 18px 20px;
  border-radius: 999px;
  /* 2026-10-03: petrol zamiast złota (Izabela: „ma być ładny”) — jak przycisk w menu,
     kremowy napis, złoty ząb i cienki złoty obrys */
  background: var(--ink) var(--paint);
  color: var(--paper);
  text-decoration: none;
  font: 600 1rem/1 var(--body);
  letter-spacing: 0.02em;
  box-shadow:
    inset 0 0 0 1px rgba(216, 156, 126, 0.55),
    0 22px 44px -18px rgba(7, 31, 36, 0.7);
  overflow: hidden;
  transition:
    transform 0.7s var(--ease),
    opacity 0.5s;
}
/* Ruch zachęcający do kontaktu (Izabela 2026-10-14): napis zmienia się w pętli
   („Zadzwoń” → „Umów wizytę” → numer), logo pulsuje różowym blaskiem, a co kilka
   sekund przez pasek przesuwa się smuga światła. Pętla 9 s, 3 s na napis. */
.float-call__words {
  display: grid;
  margin-left: 40px; /* miejsce na słuchawkę, gdy ząb ją trzyma */
  overflow: hidden;
  padding-block: 0.3em 0.35em;
  margin-block: -0.3em -0.35em; /* zapas na ogonki (ę) i kreski nad literami (ń, ó) */
}
.float-call__words > span {
  grid-area: 1 / 1;
  text-align: center;
  white-space: nowrap;
}
.float-call__words > span:not(:first-child) {
  display: none; /* bez ruchu (lub bez JS) widać tylko „Zadzwoń” */
}
.js-motion .float-call__words > span:not(:first-child) {
  display: block;
}
.js-motion .float-call__words > span {
  transform: translateY(190%);
  animation: float-word 9s var(--ease) infinite;
}
.js-motion .float-call__words > span:nth-child(2) { animation-delay: 3s; }
.js-motion .float-call__words > span:nth-child(3) { animation-delay: 6s; }
@keyframes float-word {
  0% { transform: translateY(190%); }
  5%, 17% { transform: translateY(0); }
  22%, 100% { transform: translateY(-190%); } /* słowo znika, zanim słuchawka poleci do zęba (23–34%) */
}
.float-call__mark {
  display: block;
  line-height: 0;
  transform-origin: 50% 90%;
}
.js-motion .float-call__mark {
  animation: float-tooth 9s ease-in-out infinite;
}
.js-motion .float-call__icon {
  animation: float-glow 3s ease-in-out infinite;
}
/* Historia pętli (9 s): słychać dzwonek, słuchawka drży przy prawym brzegu (1–2 s), leci do zęba
   (2–3 s), ząb pochyla się do niej i „rozmawia” (3–7 s), na koniec słuchawka odjeżdża. Przesunięcie
   --phone-dx liczy skrypt z położenia zęba i paska. */
.float-call__phone {
  display: none;
}
.js-motion .float-call {
  padding-right: 56px; /* słuchawka przy prawym brzegu nie zasłania napisu */
}
.js-motion .float-call__phone {
  display: block;
  position: absolute;
  right: 16px;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  color: var(--rose);
  opacity: 0;
  pointer-events: none;
  animation: float-phone 9s ease-in-out infinite;
}
.js-motion .float-call__arcs {
  animation: float-arcs 1.1s ease-in-out infinite;
}
@keyframes float-phone {
  0%, 9% { opacity: 0; transform: translateX(0) rotate(0); }
  11% { opacity: 1; transform: translateX(0) rotate(-14deg); }
  13% { transform: translateX(0) rotate(14deg); }
  15% { transform: translateX(0) rotate(-14deg); }
  17% { transform: translateX(0) rotate(14deg); }
  19%, 23% { opacity: 1; transform: translateX(0) rotate(0); }
  34% { opacity: 1; transform: translateX(var(--phone-dx, -90px)) rotate(-24deg); }
  38%, 74% { opacity: 1; transform: translateX(var(--phone-dx, -90px)) rotate(-24deg) translateY(-1px); }
  82% { opacity: 0; transform: translateX(var(--phone-dx, -90px)) rotate(-24deg) scale(0.6); }
  100% { opacity: 0; transform: translateX(0) rotate(0); }
}
@keyframes float-arcs {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}
@keyframes float-tooth {
  0%, 30% { transform: rotate(0) scale(1); }
  36%, 72% { transform: rotate(-9deg) scale(1.08); }
  82%, 100% { transform: rotate(0) scale(1); }
}
@keyframes float-glow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(216, 156, 126, 0)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 7px rgba(216, 156, 126, 0.95)); transform: scale(1.1); }
}
.js-motion .float-call::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  background: linear-gradient(100deg, transparent, rgba(239, 230, 214, 0.2), transparent);
  transform: translateX(-120%) skewX(-18deg);
  animation: float-shine 6s ease-in-out infinite 1.5s;
  pointer-events: none;
}
@keyframes float-shine {
  0%, 62% { transform: translateX(-120%) skewX(-18deg); }
  100% { transform: translateX(380%) skewX(-18deg); }
}

.float-call__icon {
  width: 24px;
  height: 25px;
  object-fit: contain;
}
.float-call:hover,
.float-call:focus-visible {
  background-color: var(--teal);
}
.js-motion .float-call {
  transform: translateY(160%);
}
.js-motion .float-call.is-visible {
  transform: none;
}

/* ---------- Telefony i tablety ---------- */
@media (max-width: 1080px) {
  .nav__links,
  .nav__call {
    display: none;
  }
  .nav__toggle {
    display: block;
  }
}
@media (max-width: 900px) {
  /* Telefon i tablet w pionie: obraz kroku na całą szerokość i wysoki (pion), słowo-tytuł wchodzi na jego dół
     (Izabela 2026-10-13: „grafiki nieco małe, napisy mogłyby na nie nachodzić”). Do 2026-11-25 próg był 760 px,
     a tablety 761–900 px dostawały mały obrazek w rogu i pustą połowę ekranu (przegląd Gemini). */
  .steps.is-pinned .steps__art {
    top: clamp(190px, 23svh, 210px); /* pod nagłówkiem „Od badania do planu” (tytuł kończy się ok. 156 px) */
    left: var(--gutter);
    right: var(--gutter);
    bottom: clamp(170px, 27svh, 270px);
    width: auto;
    aspect-ratio: auto;
    padding: 8px;
    border-radius: 40vw 40vw 6px 6px;
  }
  .steps.is-pinned .steps__art picture {
    border-radius: 40vw 40vw 2px 2px;
  }
  /* tekst kroku nad pływającym „Zadzwoń” (56 px + 14 px odstępu) */
  .steps.is-pinned .steps__panel {
    padding-bottom: 96px;
  }
  .steps.is-pinned .steps__word {
    margin-bottom: 14px;
    text-shadow: 0 0 22px rgba(239, 230, 214, 0.9), 0 0 3px rgba(239, 230, 214, 0.9);
  }
  .steps.is-pinned .steps__panel--ink .steps__word {
    text-shadow: 0 0 22px rgba(11, 48, 54, 0.9), 0 0 3px rgba(11, 48, 54, 0.9);
  }  /* pasek postępu nad pływającym „Zadzwoń” (dół przycisku 14 px + ok. 56 px wysokości) */
  .steps.is-pinned .steps__progress {
    bottom: 84px;
  }
}
@media (max-width: 900px) {
  .faq__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }
  .faq__head {
    position: static;
  }
  .team__grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .person--2,
  .person--3 {
    margin-top: 0;
  }
  .person--2 {
    padding-left: 14%;
  }
  .person--3 {
    padding-right: 14%;
  }
  .footer__cols {
    grid-template-columns: 1fr;
  }
  .steps.is-pinned .steps__shape {
    right: -10%;
    top: 30%;
  }
  .float-call {
    left: 14px;
    right: 14px;
    bottom: 14px;
    justify-content: center;
    padding: 16px;
  }
  /* Pływający „Zadzwoń” (ok. 56 px + 14 px odstępu) nie zasłania ostatnich linijek stopki */
  .footer__inner {
    padding-bottom: 104px;
  }
}

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

html.no-motion *,
html.no-motion *::before,
html.no-motion *::after {
  animation-duration: 0.001ms !important;
  animation-delay: 0s !important;
  transition-duration: 0.001ms !important;
  transition-delay: 0s !important;
  scroll-behavior: auto !important;
}

/* Telefon: nazwa w nagłówku w jednej linii; poniżej ~375 px zmniejsza się
   razem z ekranem, żeby obok zmieścił się przycisk menu */
@media (max-width: 600px) {
  .nav__bar { gap: 16px; }
  .brand__name { font-size: clamp(13px, calc(8.2vw - 12px), 1.12rem); white-space: nowrap; }
  .nav__toggle { flex-shrink: 0; }
  .brand__sub { font-size: .75rem; letter-spacing: .14em; white-space: nowrap; } /* 12 px, nie 10 (przegląd 2026-10-23) */
  .brand__mark { width: 30px; height: 32px; }
}
@media (max-width: 359px) {
  .brand__sub { letter-spacing: .12em; }
}

/* =====================================================================
   PODSTRONY (etap 2)
   ===================================================================== */

/* ---------- Długi tekst: przypięty spis treści ---------- */
.doc {
  padding: clamp(70px, 10vw, 140px) 0 clamp(72px, 14vw, 180px);
  border-top: 1px solid rgba(11, 48, 54, 0.14);
}
.doc__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 110px);
  align-items: start;
}
.doc__grid > * {
  min-width: 0;
  overflow-wrap: anywhere;
}
.doc__toc {
  position: sticky;
  top: 120px;
}
.doc__toc ol {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
.doc__toc li {
  counter-increment: toc;
  border-bottom: 1px solid rgba(11, 48, 54, 0.14);
}
.doc__toc a {
  display: grid;
  grid-template-columns: 2.6ch minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  font: 500 1rem/1.35 var(--body);
  text-decoration: none;
  transition: color 0.3s var(--ease), transform 0.45s var(--ease);
}
.doc__toc a::before {
  content: counter(toc, decimal-leading-zero);
  font: 600 0.7rem/1.9 var(--body);
  letter-spacing: 0.12em;
  color: var(--gold-text);
}
.doc__toc a:hover,
.doc__toc a.is-active {
  color: var(--rose-label); /* 16 px tekst: ≥ 4,5:1 na kremie (Codex 2026-11-25: --rose-deep miał 3,7:1) */
  transform: translateX(8px);
}
.doc__block {
  scroll-margin-top: 110px;
  padding-bottom: clamp(36px, 5vw, 64px);
}
.doc__block + .doc__block {
  padding-top: clamp(36px, 5vw, 64px);
  border-top: 1px solid rgba(11, 48, 54, 0.14);
}
.doc__block h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.9rem);
  margin-bottom: 20px;
}
.doc__block p {
  max-width: 44rem;
}
.doc__block ul {
  padding-left: 1.5em;
  margin: 1em 0;
  list-style: disc;
}
.doc__block li + li {
  margin-top: .5em;
}
.doc__block p + p {
  margin-top: 1em;
}

@media (max-width: 900px) {
  .doc__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .doc__toc {
    position: static;
  }
}

/* ---------- Karty odwracane (lista „warto wiedzieć”, wyposażenie) ---------- */
.cards {
  position: relative;
  padding: clamp(72px, 14vw, 180px) 0;
  overflow: hidden;
}
.cards--rose {
  background: var(--rose-soft);
}
.cards__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(30px, 6vw, 100px);
  align-items: start;
}
.cards__head {
  position: sticky;
  top: 120px;
}
.cards__head h2 {
  margin-top: 18px;
  font-size: clamp(2.3rem, 4.4vw, 4.2rem);
}
.cards__lead {
  margin-top: 22px;
  max-width: 28rem;
}
.cards__list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  perspective: 1100px;
}
.card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 24px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 4px 40px 4px 4px;
  background: rgba(239, 230, 214, 0.82);
  box-shadow:
    0 1px 0 rgba(180, 132, 72, 0.5),
    0 26px 44px -30px rgba(7, 31, 36, 0.45);
}
.cards--paper .card {
  background: #f5eee2;
}
.card__num {
  grid-row: span 2;
  font: 500 clamp(2.2rem, 3.6vw, 3.2rem)/0.9 var(--display);
  color: var(--rose-deep);
  min-width: 2.2ch;
}
.card__title {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.15;
}
.card p {
  max-width: 36rem;
  align-self: center;
}

/* ---------- Pasek „Umów wizytę” na końcu podstrony ---------- */
.cta {
  position: relative;
  padding: clamp(72px, 15vw, 200px) 0;
  overflow: hidden;
  background: var(--ink) var(--paint);
  color: var(--paper);
}
.cta__inner {
  position: relative;
  z-index: 1;
}
.cta__title {
  max-width: 14ch;
  font-size: clamp(2.8rem, 7vw, 7rem);
  line-height: 0.98;
  color: var(--paper);
}
.cta__title em {
  color: var(--gold-light);
}
.cta__text {
  max-width: 34rem;
  margin-top: 28px;
  color: rgba(239, 230, 214, 0.86);
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px 32px;
  margin-top: 40px;
}
.btn--light {
  background: var(--paper);
  color: var(--ink);
}
.btn--light:hover {
  background: var(--gold-light);
}

@media (max-width: 900px) {
  .cards__grid {
    grid-template-columns: 1fr;
  }
  .cards__head {
    position: static;
  }
}

/* ---------- Mapa (ładowana po kliknięciu) ---------- */
.map {
  padding: clamp(100px, 13vw, 170px) 0;
}
.map__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
}
.map__head h2 {
  margin: 18px 0 20px;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
}
.map__local {
  max-width: 28rem;
  margin-bottom: 26px;
}
.map__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 999px 999px 6px 6px;
  overflow: hidden;
  background: var(--cream) var(--paint);
  box-shadow:
    0 2px 0 1px rgba(180, 132, 72, 0.55),
    0 48px 90px -40px rgba(7, 31, 36, 0.55);
}
.map__frame.is-loaded {
  border-radius: 24px;
}
.map__consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18% 12% 8%;
  text-align: center;
}
.map__consent strong {
  font: 500 1.8rem/1.1 var(--display);
}
.map__consent p {
  max-width: 26rem;
}
.map__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 900px) {
  .map__grid {
    grid-template-columns: 1fr;
  }
  .map__frame {
    aspect-ratio: 3 / 4;
  }
}

/* =====================================================================
   PODSTRONY ZABIEGÓW
   ===================================================================== */
.cards--ink {
  background: var(--ink) var(--paint);
  color: var(--paper);
}
.cards--ink h2 {
  color: var(--paper);
}
.cards--ink h2 em {
  color: var(--gold-light);
}
.cards--ink .eyebrow {
  color: var(--gold-light);
}
.cards--ink .card {
  background: rgba(239, 230, 214, 0.06);
  box-shadow: inset 0 0 0 1px rgba(220, 187, 128, 0.28);
}
.cards--ink .card__num {
  color: var(--rose);
}
.card__title + p {
  grid-column: 2;
}

/* „Na czym polega”: obraz w łuku + tekst czytany przewijaniem */
.story {
  padding: clamp(72px, 14vw, 190px) 0;
  background: var(--rose-soft);
  overflow: hidden;
}
.story__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(30px, 6vw, 100px);
  align-items: center;
}
.story__art {
  margin: 0;
  aspect-ratio: 3 / 4;
  padding: 10px;
  border-radius: 999px 999px 6px 6px;
  background: var(--paper);
  box-shadow:
    0 2px 0 1px rgba(180, 132, 72, 0.55),
    0 48px 90px -40px rgba(7, 31, 36, 0.55);
  overflow: hidden;
}
.story__art img {
  width: 100%;
  height: 118%;
  object-fit: cover;
  border-radius: 999px 999px 2px 2px;
}
.story__body h2 {
  margin: 18px 0 28px;
  font-size: clamp(2.3rem, 4.4vw, 4.2rem);
}
.story__text p {
  max-width: 40rem;
  font: 400 clamp(1.05rem, 1.5vw, 1.2rem)/1.65 var(--body);
}
.story__text p + p {
  margin-top: 1em;
}

/* Dwie ścieżki (estetyka uśmiechu) */
.paths {
  padding: clamp(100px, 13vw, 170px) 0;
}
.paths__head {
  max-width: 44rem;
}
.paths__head h2 {
  margin: 18px 0 20px;
  font-size: clamp(2.3rem, 4.4vw, 4.2rem);
}
.paths__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
  perspective: 1100px;
}
.path {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 4px 60px 4px 4px;
  background: #f5eee2;
  text-decoration: none;
  box-shadow:
    0 1px 0 rgba(180, 132, 72, 0.5),
    0 30px 50px -34px rgba(7, 31, 36, 0.5);
  transition: background-color 0.4s var(--ease);
}
.path:hover {
  background: var(--rose-soft);
}
.path__title {
  transition: transform 0.6s var(--ease);
}
.path:hover .path__title {
  transform: translateX(6px);
}
.path__eyebrow {
  font: 600 0.72rem/1.2 var(--body);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.path__title {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
}
.path .link-arrow {
  margin-top: auto;
}

/* Kolejne zabiegi */
.related {
  padding: clamp(64px, 12vw, 150px) 0;
}
.related h2 {
  margin-top: 18px;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
}

@media (max-width: 900px) {
  .story__grid,
  .paths__grid {
    grid-template-columns: 1fr;
  }
  .story__art {
    max-width: 360px;
  }
}

/* ---------- Etapy GBT: poziomy pas przewijany scrollem ---------- */
.gbt {
  position: relative;
  background: var(--ink) var(--paint);
  color: var(--paper);
  overflow: hidden;
}
.gbt__stage {
  padding: clamp(100px, 12vw, 150px) 0;
}
.gbt__head h2 {
  margin: 18px 0 16px;
  max-width: 18ch;
  font-size: clamp(2.3rem, 4.6vw, 4.4rem);
  color: var(--paper);
}
.gbt__lead {
  max-width: 34rem;
  color: rgba(239, 230, 214, 0.8);
}
.gbt__guide {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
  font: 600 0.75rem/1.5 var(--body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.gbt__hint {
  margin: 0;
}
.gbt__count {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  visibility: hidden;
}
.js .gbt__count {
  visibility: visible;
}
.gbt__track {
  display: flex;
  gap: clamp(18px, 2vw, 28px);
  margin: 16px 0 0;
  padding: 0 var(--gutter);
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.gbt__card {
  flex: 0 0 min(78vw, 420px);
  scroll-snap-align: start;
}
.gbt__img {
  position: relative;
  margin: 0 0 18px;
  aspect-ratio: 3 / 2;
  border-radius: 999px 999px 6px 6px;
  overflow: hidden;
  /* Oprawa i cień: obraz „wisi” przed tłem zamiast zlewać się z ciemną zielenią
     (Izabela 2026-10-14: „bardziej wymiarowe, nie leżące na płaszczyźnie”) */
  box-shadow:
    0 2px 0 1px rgba(216, 156, 126, 0.55),
    0 38px 60px -26px rgba(0, 0, 0, 0.8),
    0 14px 22px -10px rgba(0, 0, 0, 0.55);
}
.gbt__img::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 7px var(--paper), inset 0 0 0 8px rgba(11, 48, 54, 0.25);
  pointer-events: none;
}
.gbt__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gbt__num {
  font: 500 2.4rem/1 var(--display);
  color: var(--rose);
}
.gbt__title {
  margin: 6px 0 8px;
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  color: var(--paper);
}
.gbt__card p:last-child {
  max-width: 30rem;
  color: rgba(239, 230, 214, 0.82);
}
.gbt__progress {
  display: none;
}
/* tryb przypięty (JS, komputer): pas jedzie w poziomie razem z przewijaniem */
.gbt.is-pinned .gbt__stage {
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px 0 40px;
}
.gbt.is-pinned .gbt__track {
  overflow: visible;
  width: max-content;
  scroll-snap-type: none;
  margin-top: 16px;
}
.gbt.is-pinned .gbt__card {
  flex-basis: min(30vw, 440px);
}
.gbt.is-pinned .gbt__progress {
  display: block;
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 30px;
  height: 1px;
  background: rgba(239, 230, 214, 0.2);
}
.gbt__progress span {
  display: block;
  height: 100%;
  background: var(--gold-light);
  transform-origin: left;
}

/* ---------- Dotyk: większy obszar kliknięcia bez zmiany układu ----------
   Linki tekstowe ze strzałką i okruszki mają 16–26 px wysokości; na ekranach
   dotykowych niewidoczna warstwa ::after powiększa cel do ok. 44 px. */
@media (pointer: coarse) {
  .link-arrow,
  .fly__go,
  .crumbs-album a {
    position: relative;
  }
  .link-arrow::after,
  .fly__go::after,
  .crumbs-album a::after {
    content: "";
    position: absolute;
    inset: -12px -4px;
  }
  .crumbs-album a::after {
    inset: -10px -4px;
  }
  .tour__toggle {
    min-height: 44px;
  }
  /* górne menu (tablet w poziomie) ma 18 px wysokości: niewidoczny pas do ok. 42 px */
  .nav__links a {
    position: relative;
  }
  /* ::before, bo ::after to złota kreska pod linkiem (ma height: 1px) — uwaga Codexa do PR #35 */
  .nav__links a::before {
    content: "";
    position: absolute;
    inset: -12px -6px;
  }
  /* telefony i e-mail w stopce: osobne linijki, więc większy odstęp zamiast nakładających się pasów */
  .footer__cols a {
    display: inline-block;
    padding-block: 6px;
  }
  /* logo (nazwa gabinetu) ma 34 px wysokości: niewidoczny pas powiększa cel do 44 px */
  .brand {
    position: relative;
  }
  .brand::after {
    content: "";
    position: absolute;
    inset: -5px 0;
  }
}

/* ---------- Strona 404: blok wezwania na cały pierwszy ekran ---------- */
.cta--404 {
  min-height: 100svh;
  display: flex;
  align-items: center;
}

/* Menu na telefonie: „Zabiegi” rozwijają listę zabiegów */
.menu__accbtn {
  display: flex;
  align-items: baseline;
  gap: 18px;
  width: 100%;
  padding: 10px 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transform: translateY(110%) rotate(4deg);
  transform-origin: 0 100%;
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.2, 1);
}
.menu__plus {
  position: relative;
  align-self: center;
  width: 18px;
  height: 18px;
  margin-left: auto;
  flex: none;
}
.menu__plus::before,
.menu__plus::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  background: var(--gold-light);
  transition: transform 0.3s var(--ease);
}
.menu__plus::after {
  transform: rotate(90deg);
}
.menu__accbtn[aria-expanded="true"] .menu__plus::after {
  transform: rotate(0deg);
}
.menu__sub {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.35s var(--ease), visibility 0s 0.35s;
}
.menu__acc.is-open .menu__sub {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.35s var(--ease), visibility 0s;
}
.menu__sub > ul {
  min-height: 0;
  margin: 0;
  padding: 0 0 0 36px;
  overflow: hidden;
  list-style: none;
}
.menu__sub li {
  border: 0;
}
.menu__sub a {
  display: block;
  padding: 9px 0;
  font: 500 1.2rem/1.25 var(--body);
  color: var(--paper);
  text-decoration: none;
  transform: none;
  transition: none;
}
.menu__sub li:first-child a {
  color: var(--gold-light);
}
.menu > nav { margin-top: auto; }
.menu__contact { margin-bottom: auto; }

/* Niski ekran telefonu (ok. 550 px): akapit kroku nie nachodzi na grafikę */
@media (max-width: 900px) and (max-height: 600px) {
  .steps.is-pinned .steps__art {
    bottom: 208px;
  }
}


/* Audyt 2026-10-16 (Claude + Codex): pływający przycisk ma stały napis „Zadzwoń”; ząb i słuchawka dalej się ruszają */
.js-motion .float-call__words > span { transform: none; animation: none; }
.js-motion .float-call { padding-right: 26px; } /* słuchawka jest przy zębie, nie przy prawym brzegu */
.js-motion .float-call__phone { position: relative; right: auto; top: auto; margin: 0 0 0 -4px; flex: 0 0 28px; }
.js-motion .float-call__words { margin-left: 0; }


/* Spacer po gabinecie, komputer (Izabela 2026-10-17: film i napisy za małe):
   film dochodzi do prawej krawędzi ekranu i jest wyższy, nagłówek większy */
@media (min-width: 901px) {
  .tour__stage {
    grid-template-columns: minmax(0, 32fr) minmax(0, 68fr);
    gap: clamp(32px, 3.5vw, 64px);
    padding: clamp(48px, 6vw, 96px) 0 clamp(48px, 6vw, 96px) var(--gutter);
  }
  .tour__head h2 { font-size: clamp(2.6rem, 5.1vw, 6.4rem); line-height: 1.02; }
  .tour .eyebrow { font-size: 0.9rem; }
  .tour__video--16x9 { aspect-ratio: 3 / 2; max-height: 82svh; border-radius: 4px 0 0 4px; }
}

/* Podział tekstu (SplitText z tag: "span", 2026-10-23 — bez <div> w nagłówkach): GSAP nie nadaje wtedy display,
   a wjazd linii/słów (transform + maska z overflow: clip) wymaga bloków */
.split-line,
.split-line-mask {
  display: block;
  position: relative;
}
.split-word,
.split-word-mask {
  display: inline-block;
  position: relative;
}
/* Otwarte menu po przewinięciu: kremowa „pigułka” nawigacji byłaby pod jasną nazwą gabinetu */
html:has(.menu.is-open) .nav.is-pill .nav__bar {
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
