/* Fizjoterapia-Bartel
   Layout: a "spine" site. A rail of vertebrae on the right edge tracks the sections of the
   home page; luminous porcelain bands alternate with deep navy. Two accents mark the two
   therapists (navy = Mateusz, dusty rose = Katarzyna) and are always paired with a text label. */

:root {
  --porcelain: #f2f4f6;      /* page ground: cool marble white, like the clinic */
  --white: #ffffff;
  --mist: #e3e8ed;
  --ink: #0d1c2f;            /* brand navy */
  --ink-2: #14293f;
  --ink-3: #1e3c5a;
  --slate: #55667a;          /* 5.3:1 on porcelain, 5.9:1 on white */
  --line: rgba(13, 28, 47, .14);
  --sky: #63c4ff;            /* brand signal, used on navy only */
  --rose: #c79b91;           /* Katarzyna */
  --rose-tint: #f5e9e5;
  --rose-deep: #8d5347;
  --on-dark: #eef3f8;
  --on-dark-2: rgba(238, 243, 248, .72);
  --line-dark: rgba(238, 243, 248, .18);

  --f-sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  --ease: cubic-bezier(.2, .7, .1, 1);
  --expo: cubic-bezier(.16, 1, .3, 1);
  --r-lg: 28px;
  --r-md: 18px;
  --gut: clamp(16px, 4.2vw, 64px);
  --hdr: 76px;
  --mbar: 0px;               /* height of the mobile bottom bar (set below 900px) */

  --fg2: var(--slate);
  --ln: var(--line);
  color-scheme: light;
}

/* ---------- fonts (self-hosted) ---------- */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; src: url(fonts/instrument-sans-latin-ext-wdth-normal.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-stretch: 75% 100%; font-display: swap; src: url(fonts/instrument-sans-latin-wdth-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: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/instrument-serif-latin-ext-400-normal.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 Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/instrument-serif-latin-400-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: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/instrument-serif-latin-ext-400-italic.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 Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/instrument-serif-latin-400-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; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; padding-bottom: var(--mbar); background: var(--porcelain); color: var(--ink); font: 400 1.0625rem/1.6 var(--f-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--ink); color: var(--white); }
:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible { outline-color: var(--sky); }
[hidden] { display: none !important; }
section[id], footer[id], .anchor, .topic, .qa-item, .person { scroll-margin-top: calc(var(--hdr) + 8px); }
.anchor { display: block; height: 0; }

.wrap { max-width: 1480px; margin-inline: auto; padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 200; padding: .8em 1.2em; border-radius: 999px; background: var(--ink); color: var(--white); text-decoration: none; transition: top .3s; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.dark { background: var(--ink); color: var(--on-dark); --fg2: var(--on-dark-2); --ln: var(--line-dark); }

/* ---------- type ---------- */
.h2 { font-stretch: 80%; font-weight: 600; font-size: clamp(2.2rem, 5.2vw, 4.9rem); line-height: .98; letter-spacing: -.032em; text-wrap: balance; }
.h2 em, .hero__title em, .phero__title em, .person__name em, .foot__title em { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-stretch: 100%; letter-spacing: -.015em; font-size: 1.07em; }
.label { display: inline-flex; align-items: center; gap: .65em; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--fg2); }
.label__dot { width: .55em; height: .55em; border-radius: 50%; background: currentColor; flex: none; }

.sec-head { display: grid; gap: 1.1rem; max-width: 62rem; margin-bottom: clamp(28px, 4.4vw, 60px); justify-items: start; }
.sec-head__lead { max-width: 34em; color: var(--fg2); font-size: 1.1rem; }
.sec-head__lead a { font-weight: 600; }
.sec-head--split { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, auto); align-items: end; gap: 20px 56px; }
.sec-head--split > div:first-child { display: grid; gap: 1.1rem; justify-items: start; }
.sec-head--split .sec-head__lead { max-width: 26em; }

/* ---------- buttons ---------- */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .65em; min-height: 48px; padding: .9em 1.5em; border-radius: 999px; font-weight: 600; font-size: 1rem; line-height: 1.15; text-align: center; text-decoration: none; transition: color .45s var(--ease), box-shadow .45s var(--ease); }
.btn::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: var(--btn-hover); transform: translateY(102%); transition: transform .6s var(--expo); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--ink { background: var(--ink); color: var(--white); --btn-hover: var(--ink-3); }
.btn--line { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); --btn-hover: var(--ink); }
.btn--line:hover, .btn--line:focus-visible { color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); --btn-hover: var(--sky); }
.btn--sm { min-height: 44px; padding: .7em 1.25em; font-size: .94rem; }
.dark .btn--ink { background: var(--on-dark); color: var(--ink); --btn-hover: var(--sky); }
.dark .btn--line { box-shadow: inset 0 0 0 1.5px var(--line-dark); color: var(--on-dark); --btn-hover: rgba(255, 255, 255, .12); }
.dark .btn--line:hover, .dark .btn--line:focus-visible { color: var(--on-dark); }

.lnk { display: inline-flex; align-items: center; gap: .4em; min-height: 32px; border-bottom: 1px solid var(--line-dark); font-weight: 600; text-decoration: none; transition: border-color .3s, color .3s; }
.lnk:hover { color: var(--sky); border-color: var(--sky); }
.lnk svg { width: 1em; height: 1em; }
.lnk--ink { border-bottom-color: var(--line); }
.lnk--ink:hover { color: var(--ink-3); border-color: var(--ink); }

.media { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--mist); }
.media > img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- motion primitives (below the fold only; the hero is never hidden) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease) var(--d, 0s), transform 1s var(--expo) var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal="mask"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0 round var(--r-lg)); transition: clip-path 1.2s var(--expo) var(--d, 0s); }
.js [data-reveal="mask"].in { clip-path: inset(0 0 0 0 round var(--r-lg)); }
.js [data-reveal="mask"] > img { scale: 1.2; transition: scale 1.7s var(--expo) var(--d, 0s); }
.js [data-reveal="mask"].in > img { scale: 1; }
.js [data-reveal="scale"] { transform: translateY(26px) scale(.97); }
.js [data-reveal="scale"].in { transform: none; }
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .16em .09em .22em; margin: -.16em -.09em -.22em; }
.js [data-split] .wi { display: inline-block; transform: translateY(118%); transition: transform 1s var(--expo); transition-delay: calc(var(--i) * 60ms + var(--d, 0s)); }
.js [data-split].in .wi { transform: none; }

/* ---------- header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; z-index: 70; height: env(safe-area-inset-top, 0px); background: var(--porcelain); }
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 60; padding-top: env(safe-area-inset-top, 0px); color: var(--ink); transition: transform .6s var(--expo), background-color .4s, box-shadow .4s, color .3s; }
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--hdr); max-width: 1480px; margin-inline: auto; padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }
.hdr.is-solid, .sub .hdr { background-color: rgba(242, 244, 246, .88); -webkit-backdrop-filter: saturate(1.5) blur(18px); backdrop-filter: saturate(1.5) blur(18px); box-shadow: 0 1px 0 var(--line); }
.hdr.is-hidden { transform: translateY(-101%); }
.hdr.is-menu .btn--ink { background: var(--on-dark); color: var(--ink); --btn-hover: var(--sky); }
.hdr.is-menu { color: var(--on-dark); background-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; }

.brand { display: inline-flex; align-items: center; gap: 11px; min-height: 44px; text-decoration: none; color: inherit; }
.brand__mark { width: 12px; height: 42px; fill: currentColor; flex: none; }
.brand__txt { display: grid; white-space: nowrap; font-stretch: 78%; font-weight: 600; font-size: 1.04rem; line-height: 1.05; letter-spacing: .1em; text-transform: uppercase; }
.brand__txt small { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-stretch: 100%; font-size: .9rem; letter-spacing: 0; text-transform: none; color: var(--slate); }
.hdr.is-menu .brand__txt small { color: var(--on-dark-2); }

.hdr__nav { display: flex; gap: clamp(12px, 1.7vw, 30px); }
.hdr__nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; font-size: .96rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.hdr__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--expo); }
.hdr__nav a:hover::after, .hdr__nav a.is-on::after, .hdr__nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.hdr__cta { display: flex; align-items: center; gap: 16px; }
.hdr__tel { display: inline-flex; align-items: center; gap: .45em; min-height: 44px; font-weight: 600; font-size: .96rem; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hdr__tel svg { width: 17px; height: 17px; }
.burger { display: none; position: relative; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; }
.burger span { position: absolute; left: 13px; right: 13px; top: 50%; height: 1.6px; background: currentColor; transition: transform .5s var(--expo); }
.burger span:first-child { transform: translateY(-4px); }
.burger span:last-child { transform: translateY(4px); }
.burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; overflow-y: auto; padding-top: calc(var(--hdr) + 20px + env(safe-area-inset-top, 0px)); padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); background: var(--ink); color: var(--on-dark); clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--expo); }
.menu.is-open { clip-path: inset(0); }
.menu__nav { display: grid; }
.menu__nav a { padding: .2em 0; font-stretch: 78%; font-weight: 600; font-size: clamp(1.9rem, 8.4vw, 3rem); line-height: 1.14; letter-spacing: -.03em; text-decoration: none; }
.menu__nav a[aria-current="page"] { color: var(--sky); }
.menu__foot { display: grid; gap: 16px; justify-items: start; color: var(--on-dark-2); font-size: .98rem; }
.menu__foot a:not(.btn) { color: var(--on-dark); font-weight: 600; }

/* ---------- spine rail (home, wide screens) ---------- */
.rail { position: fixed; right: max(10px, env(safe-area-inset-right, 0px)); top: 50%; z-index: 40; display: none; flex-direction: column; align-items: center; padding: 10px 3px; border-radius: 999px; background: rgba(140, 152, 166, .1); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transform: translateY(-50%); }
.rail a { position: relative; display: grid; place-items: center; width: 30px; height: 26px; color: var(--ink); transform: translateX(var(--x)); transition: color .35s; }
.rail a.d { color: var(--on-dark); }
.rail a i { width: var(--s); height: var(--s); border-radius: 50%; background: currentColor; opacity: .3; transition: transform .55s var(--expo), opacity .35s, background-color .35s; }
.rail a.is-done i { opacity: .62; }
.rail a.is-on i { opacity: 1; transform: scale(1.3); }
.rail a.d.is-on i { background: var(--sky); }
.rail a:hover i { opacity: 1; }
.rail a span { position: absolute; right: 100%; margin-right: 8px; padding: .42em .8em; border-radius: 999px; background: var(--ink); color: var(--white); font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; opacity: 0; transform: translateX(8px); transition: opacity .3s, transform .45s var(--expo); pointer-events: none; }
.rail a.d span { background: var(--on-dark); color: var(--ink); }
.rail a:hover span, .rail a:focus-visible span { opacity: 1; transform: none; }
@media (min-width: 1280px) and (min-height: 560px) { .rail { display: flex; } }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: calc(var(--hdr) + clamp(16px, 3.6vw, 52px)); padding-bottom: clamp(20px, 3vw, 40px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.hero__copy { min-width: 0; }
.hero__title { margin: .34em 0 .38em; font-stretch: 78%; font-weight: 600; font-size: clamp(2.35rem, 6vw, 6rem); line-height: .96; letter-spacing: -.036em; text-wrap: balance; }
.hero__lead { max-width: 31em; color: var(--slate); font-size: clamp(1.08rem, 1.4vw, 1.32rem); line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 2.4vw, 34px); }
.hero__note { margin-top: 1.2em; max-width: 34em; color: var(--slate); font-size: .95rem; }
.hero__media { position: relative; padding-left: 9%; }
.hero__main { aspect-ratio: 4 / 5; max-height: min(78vh, 760px); width: 100%; }
.hero__names { position: absolute; left: 14px; bottom: 14px; display: grid; padding: .7em 1em; border-radius: 14px; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: .84rem; line-height: 1.3; color: var(--slate); }
.hero__names span:first-child { color: var(--ink); font-weight: 600; font-size: .95rem; }
.hero__names span:last-child { font-family: var(--f-serif); font-style: italic; font-size: 1rem; }
.hero__spine { position: absolute; left: 0; top: 6%; width: 21px; height: 110px; fill: var(--ink); }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(28px, 4vw, 60px); border-top: 1px solid var(--line); }
.facts li { display: grid; gap: .2em; align-content: start; padding: 1.1em 1.2em 0 0; }
.facts li + li { padding-left: 1.2em; border-left: 1px solid var(--line); }
.facts span { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.facts strong { font-weight: 600; font-size: 1.04rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.facts small { color: var(--slate); font-size: .86rem; line-height: 1.3; }

/* ---------- two paths ---------- */
.paths { padding-block: clamp(20px, 3vw, 40px) clamp(56px, 8vw, 120px); }
.paths__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.path { display: flex; flex-direction: column; gap: 1.1rem; padding: clamp(20px, 2.6vw, 36px); border-radius: var(--r-lg); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.path__top { display: flex; align-items: center; gap: 16px; }
.path__top img { width: 72px; height: 72px; border-radius: 50%; flex: none; }
.path__area, .pick__area, .card__who, .person__role, .tbox__area { display: flex; align-items: center; gap: .6em; font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.path__area i, .pick__area i, .card__who i, .person__role i, .tbox__area i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.path--k .path__area i, .pick--k .pick__area i, .card--k .card__who i, .person--k .person__role i, .tbox--k .tbox__area i { background: var(--rose); }
.path__name { margin-top: .2em; font-stretch: 80%; font-weight: 600; font-size: clamp(1.5rem, 2.5vw, 2.3rem); line-height: 1.04; letter-spacing: -.028em; }
.path__txt { max-width: 30em; font-size: 1.1rem; }
.path__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: .4rem; }
.path__note { color: var(--slate); font-size: .9rem; }

/* ---------- scope cards ---------- */
.scope { padding-block: clamp(64px, 9vw, 140px); background: var(--white); }
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: clamp(20px, 2.6vw, 36px); }
.filter__label { min-width: 4.6em; font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.filter__count { margin-left: auto; color: var(--slate); font-size: .9rem; }
.chip { display: inline-flex; align-items: center; gap: .55em; min-height: 44px; padding: .5em 1.15em; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: .94rem; font-weight: 500; transition: background-color .35s, color .35s, box-shadow .35s; }
.chip i { width: .62em; height: .62em; border-radius: 50%; background: var(--ink); transition: background-color .35s; }
.chip--k i { background: var(--rose); }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip.is-on { background: var(--ink); color: var(--white); box-shadow: none; }
.chip--m.is-on i { background: var(--sky); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 48px); }
.card { display: flex; flex-direction: column; gap: .6rem; padding: clamp(18px, 2vw, 28px) 0; border-top: 1px solid var(--line); }
.card.is-out { display: none; }
.card h3 { font-stretch: 81%; font-weight: 600; font-size: clamp(1.35rem, 2vw, 1.85rem); line-height: 1.06; letter-spacing: -.024em; }
.card > p:not(.card__who) { color: var(--slate); }
.card--k .card__who { color: var(--rose-deep); }
.card__lnk { display: inline-flex; align-items: center; gap: .45em; align-self: flex-start; min-height: 44px; margin-top: auto; font-weight: 600; text-decoration: none; }
.card__lnk svg { width: 1.05em; height: 1.05em; transition: transform .5s var(--expo); }
.card__lnk:hover svg { transform: translateX(4px); }
.card__lnk:hover { text-decoration: underline; }

/* ---------- team ---------- */
.team { padding-block: clamp(64px, 9vw, 140px); }
.team__intro { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 96px); }
.team__intro .sec-head { margin: 0; }
.team__text { display: grid; gap: 1em; max-width: 34em; color: var(--slate); font-size: 1.1rem; }
.people { display: grid; gap: clamp(56px, 8vw, 128px); }
.person { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 88px); align-items: start; }
.person--k { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.person--k .person__photo { order: 2; background: var(--rose-tint); }
.person__photo { position: sticky; top: calc(var(--hdr) + 24px); aspect-ratio: 4 / 5; max-height: calc(100vh - var(--hdr) - 56px); width: 100%; }
.person__body { min-width: 0; }
.person--k .person__role { color: var(--rose-deep); }
.person__name { margin: .22em 0 .26em; font-stretch: 78%; font-weight: 600; font-size: clamp(2.4rem, 6vw, 5.8rem); line-height: .92; letter-spacing: -.04em; }
.person__name em { display: block; line-height: 1.02; }
.person__meta { padding-bottom: 1.4em; border-bottom: 1px solid var(--line); color: var(--slate); font-size: .96rem; }
.person__bio { display: grid; gap: 1em; max-width: 40em; margin-top: 1.6em; font-size: 1.08rem; }
.person__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.6em; }
.person__more { margin-top: 1.6em; }
.fold { border-top: 1px solid var(--line); }
.fold summary { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: .8em 0; cursor: pointer; list-style: none; font-weight: 600; }
.fold summary::-webkit-details-marker, .qa-item summary::-webkit-details-marker { display: none; }
.fold summary b { margin-left: auto; color: var(--slate); font-weight: 500; font-variant-numeric: tabular-nums; }
.fold summary svg { width: 18px; height: 18px; transition: transform .5s var(--expo); }
.fold[open] summary svg { transform: rotate(45deg); }
.years { display: grid; gap: .6em; }
.years li { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); gap: 1em; color: var(--slate); font-size: .95rem; line-height: 1.4; }
.years li:last-child { padding-bottom: 1.5em; }
.years time { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.fold > ul, .qa-item__a { overflow: hidden; }

/* ---------- clinic gallery (a short grid, no horizontal scrolling) ---------- */
.clinic { padding-block: 0 clamp(64px, 9vw, 140px); }
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.g { grid-column: span 2; display: grid; gap: .7em; align-content: start; }
.g--wide { grid-column: span 3; }
.g .media { aspect-ratio: 1; }
.g--wide .media { aspect-ratio: 3 / 2; }
.g figcaption { color: var(--slate); font-size: .9rem; }

/* ---------- first visit ---------- */
.visit { padding-block: clamp(64px, 9vw, 140px); background: var(--white); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(44px, 5.4vw, 76px); border-top: 1px solid var(--line); }
.step { position: relative; display: grid; gap: .55em; align-content: start; padding-right: clamp(16px, 2.4vw, 40px); }
.step__n { display: grid; place-items: center; width: 46px; height: 46px; margin-top: -23px; margin-bottom: .9em; border-radius: 50%; background: var(--ink); color: var(--white); box-shadow: 0 0 0 8px var(--white); font-weight: 600; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.step h3 { font-stretch: 81%; font-weight: 600; font-size: clamp(1.35rem, 2.1vw, 1.95rem); line-height: 1.06; letter-spacing: -.025em; }
.step p { max-width: 20em; color: var(--slate); }
.visit__boxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); margin-top: clamp(36px, 4.6vw, 68px); }
.box { display: grid; gap: 1rem; align-content: start; padding: clamp(20px, 2.4vw, 32px); border-radius: var(--r-lg); background: var(--porcelain); }
.box h3 { font-stretch: 82%; font-weight: 600; font-size: 1.4rem; letter-spacing: -.02em; }
.ticks { display: grid; gap: .65em; }
.ticks li { display: flex; align-items: flex-start; gap: .7em; }
.ticks svg { flex: none; width: 20px; height: 20px; margin-top: .22em; color: var(--ink-3); }
.visit__cta { margin-top: clamp(24px, 3vw, 40px); }

/* ---------- physical therapy ---------- */
.tech { padding-block: clamp(64px, 9vw, 140px); }
.tech__top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px 64px; align-items: end; margin-bottom: clamp(32px, 4.6vw, 64px); }
.tech__top .sec-head { margin: 0; }
.tech__lead { max-width: 32em; color: var(--on-dark-2); font-size: 1.1rem; }
.tcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.tcard { display: flex; flex-direction: column; gap: .9rem; padding: clamp(20px, 2.4vw, 32px); border-radius: var(--r-lg); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line-dark); }
.tcard h3 { font-stretch: 81%; font-weight: 600; font-size: clamp(1.5rem, 2.2vw, 2.1rem); line-height: 1.05; letter-spacing: -.025em; }
.tcard > p { color: var(--on-dark-2); }
.tcard__prices { display: grid; gap: 0; margin-top: auto; padding-top: .6rem; }
.tcard__prices > div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: .6em 0; border-top: 1px solid var(--line-dark); }
.tcard__prices dt { color: var(--on-dark-2); font-size: .95rem; }
.tcard__prices dd { font-stretch: 80%; font-weight: 600; font-size: 1.35rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tech__call { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; margin-top: clamp(24px, 3vw, 44px); padding-top: clamp(20px, 2.4vw, 32px); border-top: 1px solid var(--line-dark); }
.tech__call p { max-width: 40em; color: var(--on-dark-2); }

/* ---------- knowledge ---------- */
.know { padding-block: clamp(64px, 9vw, 140px); }
.posts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.posts--kb { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post { display: flex; flex-direction: column; gap: .8rem; min-height: 220px; padding: clamp(18px, 2vw, 26px); border-radius: var(--r-md); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; transition: box-shadow .35s, transform .5s var(--expo); }
.post:hover { box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-3px); }
.post.is-out { display: none; }
.post__meta { display: flex; justify-content: space-between; gap: 12px; color: var(--slate); font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.post__meta span { display: inline-flex; align-items: center; gap: .6em; }
.post__meta i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.post--k .post__meta i { background: var(--rose); }
.post h2, .post h3 { font-stretch: 83%; font-weight: 600; font-size: 1.3rem; line-height: 1.15; letter-spacing: -.018em; text-wrap: balance; }
.post__txt { color: var(--slate); font-size: .96rem; }
.post__more { display: inline-flex; align-items: center; gap: .45em; margin-top: auto; font-weight: 600; font-size: .95rem; }
.post__more svg { width: 1.1em; height: 1.1em; }
.know__all { margin-top: clamp(20px, 2.6vw, 36px); }

/* ---------- prices ---------- */
.prices { padding-block: clamp(64px, 9vw, 140px); background: var(--white); }
.prices__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 96px); align-items: start; }
.prices__side { position: sticky; top: calc(var(--hdr) + 24px); }
.prices__side .sec-head { margin-bottom: 1.6rem; }
.prices__note { max-width: 27em; color: var(--slate); }
.prices__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.7em; }
.pgroup { padding-block: clamp(18px, 2vw, 28px); border-top: 1px solid var(--line); }
.pgroup h3 { margin-bottom: .7em; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.pgroup dl > div { display: flex; align-items: baseline; gap: 14px; padding: .58em 0; }
.pgroup dt { min-width: 0; font-weight: 500; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.25; letter-spacing: -.012em; }
.pgroup dt small { display: block; margin-top: .15em; color: var(--slate); font-weight: 400; font-size: .9rem; letter-spacing: 0; }
.pgroup dd { flex: 1; display: flex; align-items: baseline; gap: 14px; font-stretch: 80%; font-weight: 600; font-size: clamp(1.15rem, 1.7vw, 1.55rem); letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pgroup dd::before { content: ""; flex: 1; min-width: 16px; border-bottom: 1.5px dotted rgba(13, 28, 47, .32); transform: translateY(-.28em); }
.pgroup__note { margin-top: .9em; color: var(--slate); font-size: .95rem; }
.pgroup__note a { color: var(--ink); font-weight: 600; white-space: nowrap; }
.rules { display: grid; gap: .8em; }
.rules li { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 1em; color: var(--slate); }
.rules b { color: var(--ink); font-weight: 600; }

/* ---------- faq ---------- */
.faq { padding-block: clamp(64px, 9vw, 140px); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 96px); align-items: start; }
.faq .sec-head { position: sticky; top: calc(var(--hdr) + 24px); margin: 0; }
.faq__group + .faq__group { margin-top: clamp(28px, 3.4vw, 48px); }
.faq__group > h3 { margin-bottom: .9em; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.qa-item { border-top: 1px solid var(--line); }
.qa-item:last-child { border-bottom: 1px solid var(--line); }
.qa-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 56px; padding: clamp(14px, 1.6vw, 22px) 0; cursor: pointer; list-style: none; font-stretch: 83%; font-weight: 600; font-size: clamp(1.12rem, 1.7vw, 1.5rem); line-height: 1.18; letter-spacing: -.018em; }
.qa-item summary svg { flex: none; width: 22px; height: 22px; transition: transform .55s var(--expo); }
.qa-item[open] summary svg { transform: rotate(45deg); }
.qa-item__a { max-width: 42em; color: var(--slate); }
.qa-item__a > p:last-child { padding-bottom: clamp(16px, 1.8vw, 24px); }
.qa-item__a a { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }

/* ---------- AI assistant ---------- */
.talk { position: relative; overflow: hidden; padding-block: clamp(64px, 9vw, 140px); }
.talk::before { content: ""; position: absolute; inset: 0; background: radial-gradient(52% 62% at 78% 46%, rgba(99, 196, 255, .15), transparent 70%); pointer-events: none; }
.talk__grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 96px); align-items: center; }
.talk__copy { min-width: 0; }
.talk__copy .h2 { margin: 1.1rem 0 1.5rem; font-size: clamp(2.1rem, 4.6vw, 4.3rem); }
.talk__copy .h2 em { display: block; }
.talk__lead { max-width: 30em; color: var(--on-dark-2); font-size: 1.1rem; }
.talk__points { display: grid; gap: .7em; margin-top: 1.7em; }
.talk__points li { display: flex; align-items: flex-start; gap: .7em; max-width: 32em; }
.talk__points svg { flex: none; width: 20px; height: 20px; margin-top: .22em; color: var(--sky); }

.chat { display: flex; flex-direction: column; min-height: 520px; max-height: min(720px, 86vh); overflow: hidden; border-radius: var(--r-lg); background: var(--porcelain); color: var(--ink); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .1); }
.chat :focus-visible { outline-color: var(--ink); }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--white); border-bottom: 1px solid var(--line); }
.chat__ico, .fab__ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--white); }
.chat__ico svg, .fab__ico svg { width: 24px; height: 24px; }
.chat__who { display: grid; min-width: 0; line-height: 1.25; }
.chat__who strong { font-weight: 600; }
.chat__who span { color: var(--slate); font-size: .84rem; }
.chat__badge { margin-left: auto; padding: .34em .62em; border-radius: 8px; background: var(--ink); color: var(--white); font-size: .68rem; font-weight: 700; letter-spacing: .1em; }
.chat__log { flex: 1; display: flex; flex-direction: column; gap: 10px; min-height: 120px; overflow-y: auto; overscroll-behavior: contain; padding: 18px; }
.chat__log:focus-visible { outline-offset: -3px; }
.msg { display: grid; gap: 8px; max-width: 88%; animation: msgIn .5s var(--expo) both; }
.msg--bot { align-self: flex-start; justify-items: start; }
.msg--me { align-self: flex-end; justify-items: end; }
@keyframes msgIn { from { opacity: 0; transform: translateY(12px); } }
.msg__b { display: grid; gap: .6em; padding: .8em 1.05em; border-radius: 20px; font-size: .98rem; line-height: 1.5; overflow-wrap: anywhere; }
.msg--bot .msg__b { background: var(--white); border-bottom-left-radius: 6px; box-shadow: 0 0 0 1px var(--line); }
.msg--me .msg__b { background: var(--ink); color: var(--white); border-bottom-right-radius: 6px; }
.msg__b ul { display: grid; gap: .32em; padding-left: 1.15em; list-style: disc; }
.msg__b a { font-weight: 600; }
.msg__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.act { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; padding: .5em 1.05em; border-radius: 999px; background: var(--ink); color: var(--white); font-size: .92rem; font-weight: 600; text-decoration: none; transition: background-color .3s; }
.act:hover { background: var(--ink-3); }
.act svg { width: 1.1em; height: 1.1em; }
.act--ghost { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.act--ghost:hover { background: var(--mist); }
.typing { display: inline-flex; align-items: center; gap: 5px; height: 1.5em; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--slate); animation: blink 1.2s infinite both; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chat__sug { padding: 0 18px 12px; }
.chat__sug > p { margin-bottom: .6em; color: var(--slate); font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.chat__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.q { display: inline-flex; align-items: center; min-height: 44px; padding: .45em 1em; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-size: .93rem; line-height: 1.25; text-align: left; text-decoration: none; transition: background-color .3s, color .3s, box-shadow .3s; }
.q:hover { background: var(--ink); color: var(--white); box-shadow: none; }
.chat__form { display: grid; gap: 8px; padding: 0 14px 14px; }
.chat__warn { color: var(--slate); font-size: .82rem; line-height: 1.4; }
.chat__field { display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 18px; border-radius: 26px; background: var(--white); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .3s; }
.chat__field:focus-within { box-shadow: 0 0 0 2.5px var(--ink); }
.chat__field textarea { flex: 1; min-width: 0; max-height: 7.4em; padding: .55em 0; border: 0; outline: 0; resize: none; background: none; color: inherit; font: inherit; font-size: 1rem; line-height: 1.45; }
.chat__field textarea::placeholder { color: var(--slate); opacity: 1; }
.chat__field button { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--white); transition: opacity .3s, background-color .3s; }
.chat__field button svg { width: 20px; height: 20px; }
.chat__field button:hover:not(:disabled) { background: var(--ink-3); }
.chat__field button:disabled { opacity: .35; cursor: default; }

/* ---------- contact / footer ---------- */
.foot { position: relative; overflow: hidden; padding-top: clamp(64px, 9vw, 140px); padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
.foot__title { max-width: 12em; margin: .3em 0 .34em; font-stretch: 78%; font-weight: 600; font-size: clamp(2.4rem, 6.4vw, 6.4rem); line-height: .94; letter-spacing: -.04em; text-wrap: balance; }
.foot__title em { color: var(--sky); }
.foot__lead { max-width: 36em; color: var(--on-dark-2); font-size: 1.1rem; }

.picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.foot .picks { margin-top: clamp(28px, 3.6vw, 52px); }
.pick { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .3rem 16px; align-content: start; padding: clamp(18px, 2.2vw, 30px); border-radius: var(--r-lg); background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.pick img { grid-row: span 2; width: 64px; height: 64px; border-radius: 50%; }
.pick__area { align-self: end; }
.pick__name { font-stretch: 80%; font-weight: 600; font-size: clamp(1.35rem, 2vw, 1.9rem); line-height: 1.06; letter-spacing: -.026em; }
.pick__txt, .pick__acts, .pick__note { grid-column: 1 / -1; }
.pick__txt { margin-top: .5rem; color: var(--slate); }
.pick__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: .8rem; }
.pick__note { margin-top: .2rem; color: var(--slate); font-size: .9rem; }
.pick .btn--ink { background: var(--ink); color: var(--white); --btn-hover: var(--ink-3); }
.pick .btn--line { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); --btn-hover: var(--ink); }
.pick .btn--line:hover, .pick .btn--line:focus-visible { color: var(--white); }
.pick :focus-visible { outline-color: var(--ink); }

.foot__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; margin-top: clamp(40px, 6vw, 96px); padding-top: clamp(24px, 3vw, 40px); border-top: 1px solid var(--line-dark); }
.foot__col { display: grid; gap: .6em; align-content: start; justify-items: start; }
.foot__col h3 { margin-bottom: .3em; font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-2); }
.foot__col p { font-size: 1.08rem; line-height: 1.45; }
.foot__col .foot__small { color: var(--on-dark-2); font-size: .92rem; }
.copyline { display: flex; align-items: center; gap: .5em; }
.copyline a { text-decoration: none; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.copyline a:hover { color: var(--sky); }
.copy { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--on-dark-2); transition: color .3s, background-color .3s; }
.copy:hover { color: var(--on-dark); background: rgba(255, 255, 255, .08); }
.copy svg { width: 17px; height: 17px; }
.foot__mark { margin-top: clamp(40px, 6vw, 96px); font-stretch: 75%; font-weight: 600; font-size: clamp(2.2rem, 10.6vw, 10.4rem); line-height: .8; letter-spacing: .01em; text-transform: uppercase; white-space: nowrap; color: rgba(238, 243, 248, .09); user-select: none; }
.foot__mark::before { content: attr(data-text); }
.foot__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; margin-top: clamp(20px, 2.4vw, 36px); padding-top: 20px; border-top: 1px solid var(--line-dark); color: var(--on-dark-2); font-size: .86rem; }
.foot__base img { width: 170px; height: auto; }
.foot__base p { max-width: 46em; }
.foot__links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; }
.foot__links a:hover { color: var(--on-dark); }

/* ---------- booking dialog ---------- */
.dlg { width: min(900px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: clamp(20px, 3vw, 40px); border: 0; border-radius: var(--r-lg); background: var(--porcelain); color: var(--ink); overflow-y: auto; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.dlg::backdrop { background: rgba(8, 16, 28, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dlg__x { position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.dlg__x svg { width: 20px; height: 20px; }
.dlg__title { max-width: 14em; padding-right: 48px; font-stretch: 80%; font-weight: 600; font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.02; letter-spacing: -.03em; }
.dlg__lead { max-width: 40em; margin: .8rem 0 1.4rem; color: var(--slate); }
.dlg__foot { margin-top: 1.2rem; color: var(--slate); font-size: .92rem; }

/* ---------- mobile bottom bar + assistant button ---------- */
.mbar { display: none; }
.fab { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(var(--mbar) + var(--fab-gap, 18px) + env(safe-area-inset-bottom, 0px)); z-index: 45; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 5px 20px 5px 5px; border-radius: 999px; background: var(--white); color: var(--ink); box-shadow: 0 14px 34px -12px rgba(13, 28, 47, .5), 0 0 0 1px var(--line); font-weight: 600; font-size: .94rem; text-decoration: none; transform: translateY(calc(100% + var(--mbar) + var(--fab-gap, 18px) + 42px)); transition: transform .7s var(--expo); }
.fab.is-on, .fab:focus-visible { transform: none; }
/* Above Netlify's badge; the hidden offset follows the same gap so the button never peeks in. */
.has-nf-hud .fab { --fab-gap: 76px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--mbar) + 24px + env(safe-area-inset-bottom, 0px)); z-index: 90; padding: .7em 1.2em; border-radius: 999px; background: var(--white); color: var(--ink); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5), 0 0 0 1px var(--line); font-size: .92rem; font-weight: 600; opacity: 0; transform: translate(-50%, 20px); transition: opacity .3s, transform .5s var(--expo); pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- subpages ---------- */
.phero { padding-top: calc(var(--hdr) + clamp(24px, 4vw, 56px)); padding-bottom: clamp(40px, 6vw, 88px); }
.phero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.phero__copy { min-width: 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .6em; margin-bottom: 1.6rem; color: var(--slate); font-size: .9rem; }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink); font-weight: 600; }
.phero__title { margin: .34em 0 .38em; font-stretch: 78%; font-weight: 600; font-size: clamp(2.3rem, 5.6vw, 5.4rem); line-height: .97; letter-spacing: -.036em; text-wrap: balance; }
.phero__lead { max-width: 36em; color: var(--slate); font-size: clamp(1.08rem, 1.4vw, 1.3rem); line-height: 1.5; }
.phero__photo { aspect-ratio: 3 / 2; width: 100%; }
.phero__photo--tall { aspect-ratio: 4 / 5; max-height: min(72vh, 700px); background: var(--rose-tint); }

.topics { padding-block: clamp(48px, 7vw, 110px); background: var(--white); }
.topics__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(24px, 5vw, 88px); align-items: start; }
.toc { position: sticky; top: calc(var(--hdr) + 24px); display: grid; }
.toc__t { margin-bottom: .6em; font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.toc a { display: flex; align-items: center; min-height: 44px; border-top: 1px solid var(--line); font-weight: 500; text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.topics__note { max-width: 44em; margin-bottom: clamp(20px, 2.6vw, 36px); padding: 1em 1.2em; border-radius: var(--r-md); background: var(--porcelain); color: var(--slate); }
.topic { padding-block: clamp(22px, 2.8vw, 40px); border-top: 1px solid var(--line); }
.topic > h2 { margin-bottom: .7em; font-stretch: 80%; font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1.02; letter-spacing: -.03em; }
.topic__qa { max-width: 44em; }
.topic__qa + .topic__qa { margin-top: 1.2em; }
.topic__qa h3 { font-weight: 600; font-size: 1.12rem; line-height: 1.3; }
.topic__qa p { margin-top: .3em; color: var(--slate); }
.topic__mod { max-width: 44em; }
.topic__mod + .topic__mod, .topic__qa + .topic__mod { margin-top: 1.4em; }
.topic__mod h3 { font-weight: 600; font-size: 1.12rem; line-height: 1.3; }
.topic__mod p { margin-top: .3em; color: var(--slate); }
.topic__mod .ticks { margin-top: .5em; color: var(--slate); }
.tbox__meta a, .person__meta a { color: var(--ink); font-weight: 600; }
.access__info { color: var(--ink); }
.art__refs { margin-top: clamp(28px, 3.6vw, 48px); font-size: .98rem; }
.art__refs h2 { margin-bottom: .6em; font-stretch: 81%; font-weight: 600; font-size: 1.4rem; letter-spacing: -.02em; }
.art__refs ol { display: grid; gap: .5em; padding-left: 1.4em; list-style: decimal; color: var(--slate); overflow-wrap: anywhere; }
.art__refs a { color: var(--ink); font-weight: 600; }
.art__review { margin-top: 1.4em; color: var(--slate); font-size: .95rem; }
.art__review a { color: var(--ink); font-weight: 600; }
.topic__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.6em; }
.more { padding-block: clamp(48px, 7vw, 110px); }
.more__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 88px); }
.more__col { display: grid; gap: 1rem; align-content: start; justify-items: start; }
.more__t { font-stretch: 80%; font-weight: 600; font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.04; letter-spacing: -.03em; }
.more__col > p { max-width: 34em; color: var(--slate); }
.more__list { display: grid; width: 100%; }
.more__list li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: .8em 0; border-top: 1px solid var(--line); }
.more__list a { font-weight: 500; }
.more__list time { flex: none; color: var(--slate); font-size: .88rem; font-variant-numeric: tabular-nums; }
.kb { padding-block: 0 clamp(64px, 9vw, 140px); }
.kb__filters { display: grid; gap: 4px; margin-bottom: clamp(16px, 2vw, 28px); }
.kb__filters .filter { margin-bottom: 0; }
.kb__filters .filter__count { margin: .4em 0 0; }
.kb__empty { padding: 2em 0; color: var(--slate); }

/* ---------- visit facts line: "50 minut · 200 zł · bez skierowania" ---------- */
.quick { display: flex; flex-wrap: wrap; margin-top: 1.1em; font-weight: 600; font-size: 1.04rem; font-variant-numeric: tabular-nums; }
.quick li { display: inline-flex; align-items: center; white-space: nowrap; }
.quick li + li::before { content: "·"; margin: 0 .6em; color: var(--slate); }

/* ---------- video section (home): scroll-snap strip ---------- */
.vids { padding-block: clamp(64px, 9vw, 140px); overflow: hidden; --edge: max(var(--gut), calc((100vw - 1480px) / 2 + var(--gut))); }
.vids__head { display: grid; gap: 1.1rem; justify-items: center; max-width: 56rem; margin: 0 auto clamp(22px, 3vw, 40px); text-align: center; }
.vids__lead { max-width: 38em; color: var(--on-dark-2); font-size: 1.1rem; }
.vids__filter { justify-content: center; margin-bottom: clamp(18px, 2.2vw, 30px); }
.dark .chip { box-shadow: inset 0 0 0 1px var(--line-dark); color: var(--on-dark); }
.dark .chip:hover { box-shadow: inset 0 0 0 1.5px var(--on-dark); }
.dark .chip.is-on { background: var(--on-dark); color: var(--ink); box-shadow: none; }
.dark .chip--m i { background: var(--sky); }
.dark .chip--m.is-on i { background: var(--ink-3); }
.vids__track { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); scrollbar-width: none; }
.vids__track::-webkit-scrollbar { display: none; }
.vids__track:focus-visible { outline-offset: -4px; border-radius: 0; }
.vids__list { display: flex; gap: clamp(16px, 1.6vw, 24px); width: max-content; padding: 4px var(--edge); }
.vids__nav { display: flex; justify-content: center; gap: 10px; margin-top: clamp(18px, 2vw, 28px); }
.vids__btn { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-dark); color: var(--on-dark); transition: background-color .3s, color .3s, opacity .3s; }
.vids__btn svg { width: 22px; height: 22px; }
.vids__btn:hover:not(:disabled) { background: var(--on-dark); color: var(--ink); }
.vids__btn:disabled { opacity: .35; cursor: default; }
.vids__foot { display: grid; gap: 1rem; justify-items: center; margin-top: clamp(22px, 2.8vw, 38px); text-align: center; }
.vids__note { max-width: 40em; color: var(--on-dark-2); font-size: .92rem; }
html:not(.js) .vids__nav, html:not(.js) .vids__filter, html:not(.js) .cards__all { display: none; }

/* video card: dark in the strip, light inside lists on porcelain/white pages */
.vcard { --v-bg: var(--ink-2); --v-fg2: var(--on-dark-2); --v-ln: var(--line-dark); --v-dot: var(--sky); --v-on: var(--sky); position: relative; flex: none; display: flex; flex-direction: column; width: clamp(300px, 27vw, 400px); overflow: hidden; border-radius: var(--r-md); background: var(--v-bg); box-shadow: inset 0 0 0 1px var(--v-ln); scroll-snap-align: start; transition: box-shadow .35s; }
.vcard.is-out { display: none; }
.vcard:hover { box-shadow: inset 0 0 0 1.5px var(--v-on); }
.vcard__thumb { position: relative; aspect-ratio: 16 / 9; background: var(--ink-3); }
.vcard__thumb img { width: 100%; height: 100%; object-fit: cover; }
.vcard__play { position: absolute; left: 12px; bottom: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(13, 28, 47, .8); color: var(--white); }
.vcard__play svg { width: 22px; height: 22px; }
.vcard__body { flex: 1; display: flex; flex-direction: column; gap: .6rem; padding: clamp(16px, 1.6vw, 22px); }
.vcard__cat { display: flex; align-items: center; gap: .6em; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--v-fg2); }
.vcard__cat i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--v-dot); }
.vcard--k .vcard__cat i { background: var(--rose); }
.vcard__title { font-stretch: 83%; font-weight: 600; font-size: 1.22rem; line-height: 1.18; letter-spacing: -.016em; }
.vcard__txt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; color: var(--v-fg2); font-size: .95rem; line-height: 1.5; }
.vcard__by { color: var(--v-fg2); font-size: .86rem; font-variant-numeric: tabular-nums; }
.vcard__lnk { display: inline-flex; align-items: center; gap: .5em; align-self: flex-start; min-height: 44px; margin-top: auto; font-weight: 600; text-decoration: none; }
.vcard__lnk svg { width: 1.25em; height: 1.25em; }
.vcard__lnk::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
@supports selector(:has(a)) {
  .vcard__lnk:focus-visible { outline: none; }
  .vcard:has(.vcard__lnk:focus-visible) { outline: 2.5px solid var(--v-on); outline-offset: 3px; }
}
.posts .vcard, .vgrid .vcard { --v-bg: var(--white); --v-fg2: var(--slate); --v-ln: var(--line); --v-dot: var(--ink); --v-on: var(--ink); width: auto; color: var(--ink); }
.vgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); margin-top: 1.2em; }
.posts--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.2em; }
.posts--pair .post { min-height: 0; background: var(--porcelain); }

/* ---------- articles ---------- */
.art__wrap { max-width: 920px; }
.art .phero { padding-bottom: clamp(20px, 3vw, 36px); }
.art__title { margin: .4em 0 .5em; font-stretch: 80%; font-weight: 600; font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.03; letter-spacing: -.03em; text-wrap: balance; }
.art__meta { color: var(--slate); font-size: .95rem; }
.art__meta a { color: var(--ink); font-weight: 600; }
.art__hero { aspect-ratio: 16 / 9; margin-bottom: clamp(24px, 3.4vw, 48px); }
.prose { font-size: 1.1rem; line-height: 1.7; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.9em; font-stretch: 81%; font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.1; letter-spacing: -.025em; }
.prose h3 { margin-top: 1.6em; font-weight: 600; font-size: 1.28rem; line-height: 1.25; letter-spacing: -.012em; }
.prose h4 { margin-top: 1.4em; font-weight: 600; font-size: 1.1rem; line-height: 1.3; }
.prose ul, .prose ol { display: grid; gap: .45em; padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--slate); }
.prose a { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.prose blockquote { padding: .2em 0 .2em 1.1em; border-left: 3px solid var(--ink); color: var(--ink-3); }
.prose figure { margin-block: 1.6em; }
.prose figure img { border-radius: var(--r-md); }
.art__table { overflow-x: auto; }
.prose table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .96rem; line-height: 1.4; }
.prose th, .prose td { padding: .7em .8em; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-weight: 600; }
.art__note { margin-top: clamp(28px, 3.6vw, 48px); padding: 1em 1.2em; border-radius: var(--r-md); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); color: var(--slate); font-size: .96rem; }
.after { padding-block: clamp(36px, 5vw, 72px) clamp(64px, 9vw, 120px); }
.after__box { display: grid; gap: 20px; padding: clamp(20px, 2.6vw, 32px); border-radius: var(--r-lg); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.after__acts { display: flex; flex-wrap: wrap; gap: 10px; }
.after__rel { margin-top: clamp(32px, 4.4vw, 60px); }
.after__t { margin-bottom: .8em; font-stretch: 80%; font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.06; letter-spacing: -.026em; }

/* ---------- service pages, profiles, documents ---------- */
.tbox { display: flex; align-items: center; gap: 18px; }
.tbox img { flex: none; width: 84px; height: 84px; border-radius: 50%; }
.tbox > div { display: grid; gap: .3em; justify-items: start; min-width: 0; }
.tbox__name { font-stretch: 80%; font-weight: 600; font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.06; letter-spacing: -.026em; }
.tbox__meta { color: var(--slate); font-size: .95rem; }
.kv { display: grid; max-width: 46em; margin-top: 1.2em; }
.kv > div { display: grid; grid-template-columns: 13em minmax(0, 1fr); gap: 1em; padding: .8em 0; border-top: 1px solid var(--line); }
.kv > div:last-child { border-bottom: 1px solid var(--line); }
.kv dt { color: var(--slate); }
.kv dd { font-weight: 500; }
.kv dd a { font-weight: 600; white-space: nowrap; }
.limits { display: grid; gap: .55em; max-width: 44em; margin-top: 1.4em; padding: 1em 1.2em; border-radius: var(--r-md); background: var(--porcelain); color: var(--slate); }
.limits li { position: relative; padding-left: 1.1em; }
.limits li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--slate); }
.alert { max-width: 44em; margin-top: 1em; padding: 1em 1.2em; border-radius: var(--r-md); box-shadow: inset 0 0 0 1.5px var(--ink); }
.alert strong { font-weight: 600; }
.topic__more + .topic__qa, .topic__also + .topic__qa { margin-top: 1.2em; }
.topic__also { max-width: 44em; margin-top: 1.1em; color: var(--ink); font-weight: 500; }
.after__label { font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.topic__more { max-width: 44em; margin-top: 1.1em; color: var(--slate); }
.topic__more a { color: var(--ink); font-weight: 600; }
.rel { display: grid; max-width: 46em; }
.rel a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: .6em 0; border-top: 1px solid var(--line); font-weight: 600; text-decoration: none; }
.rel li:last-child a { border-bottom: 1px solid var(--line); }
.rel a:hover { text-decoration: underline; }
.rel svg { flex: none; width: 1.1em; height: 1.1em; }
.doc .topic > :is(p, ul) { max-width: 44em; color: var(--slate); }
.doc .topic > :is(p, ul) + :is(p, ul) { margin-top: .8em; }
.doc ul { display: grid; gap: .5em; padding-left: 1.2em; list-style: disc; }
.doc a:not(.btn) { color: var(--ink); font-weight: 600; }
.phero__photo--m { background: var(--mist); }
.fold--last { border-bottom: 1px solid var(--line); }
.kb__more { margin-top: clamp(20px, 2.6vw, 36px); }
.picks--k .pick--k { order: -1; }
.tech__acts { display: flex; flex-wrap: wrap; gap: 10px; }
.cards__all { margin-top: clamp(16px, 2vw, 28px); }
.cards__all svg { transition: transform .5s var(--expo); }
.cards__all [aria-expanded="true"] svg { transform: rotate(45deg); }
.js .cards:not(.is-all) .card--more { display: none; }
/* while the chat field has focus, the bottom bar and the floating button step aside */
body:has(.chat__field :focus) .mbar, body:has(.chat__field :focus) .fab { display: none; }

/* ---------- between visits, directions, compact contact, search ---------- */
.between { padding-block: clamp(64px, 9vw, 140px); }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.between .step__n { box-shadow: 0 0 0 8px var(--porcelain); }
.between__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(28px, 3.4vw, 48px); }
.access { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 4vw, 64px); align-items: center; margin-bottom: clamp(28px, 4vw, 56px); padding: clamp(14px, 1.6vw, 22px); border-radius: var(--r-lg); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.access__photo { aspect-ratio: 4 / 3; border-radius: var(--r-md); }
.access__txt { display: grid; gap: .8rem; justify-items: start; }
.access__txt h3 { font-stretch: 81%; font-weight: 600; font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.06; letter-spacing: -.026em; }
.access__txt p { max-width: 32em; color: var(--slate); }
.access__txt p:first-of-type { color: var(--ink); font-weight: 600; font-size: 1.1rem; }
.picks--one { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.picks__other { color: var(--on-dark-2); font-size: .98rem; }
.picks__other a { color: var(--on-dark); font-weight: 600; }
.vids__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.rel--in { margin-top: 1.2em; }
.limits--plain { color: var(--ink); }
.stages { display: grid; gap: .5em; margin-top: .5em; padding-left: 1.4em; list-style: decimal; color: var(--slate); }
.topic__qa .ticks { margin-top: .5em; color: var(--slate); }
.kb__search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.kb__input { flex: 1 1 260px; max-width: 440px; min-height: 44px; padding: .5em 1.1em; border: 0; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: inherit; font-size: 1rem; }
.kb__input::placeholder { color: var(--slate); opacity: 1; }
.kb__input:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 2px; }
html:not(.js) .kb__search { display: none; }

/* ---------- thematic FAQ on scope pages ---------- */
.qa-item summary h3 { margin: 0; font: inherit; letter-spacing: inherit; }
.topic--faq .qa-item { max-width: 46em; }
.topic--faq .qa-item summary { min-height: 52px; padding: 14px 0; font-size: clamp(1.05rem, 1.4vw, 1.22rem); }
.alert--top { margin: 0 0 clamp(8px, 1.4vw, 20px); }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .hdr__nav, .hdr__tel { display: none; }
  .burger { display: block; }
}
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tcards { grid-template-columns: minmax(0, 1fr); }
  .vcard { width: 44vw; }
  .posts .vcard, .vgrid .vcard { width: auto; }
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --hdr: 64px; --r-lg: 22px; --mbar: 72px; }
  .hero__grid, .phero__grid, .tech__top, .team__intro, .talk__grid, .prices__grid, .faq__grid, .sec-head--split, .topics__grid, .more__grid, .paths__grid, .picks, .visit__boxes, .after__box { grid-template-columns: minmax(0, 1fr); }
  .person, .person--k { grid-template-columns: minmax(0, 1fr); }
  .person--k .person__photo { order: 0; }
  .person__photo, .prices__side, .faq .sec-head, .toc { position: static; }
  .hero__media { max-width: 520px; padding-left: 0; }
  .hero__spine { display: none; }
  .hero__main { aspect-ratio: 5 / 4; max-height: none; }
  .phero__photo, .phero__photo--tall { max-width: 520px; aspect-ratio: 5 / 4; max-height: none; }
  .person__photo { aspect-ratio: 1; max-width: 460px; max-height: none; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3) { margin-top: 1.1em; border-top: 1px solid var(--line); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g, .g--wide { grid-column: span 1; }
  .g:first-child { grid-column: span 2; }
  .g .media, .g--wide .media { aspect-ratio: 4 / 3; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-left: 23px; border-top: 0; border-left: 1px solid var(--line); }
  .step { padding: 0 0 0 44px; }
  .step__n { position: absolute; left: -23px; top: -6px; margin: 0; }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .toc__t { grid-column: 1 / -1; }
  .filter__count { flex-basis: 100%; margin-left: 0; }
  .chat { max-height: none; }
  .chat__log { max-height: 46vh; }

  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; gap: 8px; padding: 10px max(12px, env(safe-area-inset-left, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-right, 0px)); background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 -1px 0 var(--line); }
  .mbar__btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 52px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); font-weight: 600; text-decoration: none; }
  .mbar__btn svg { width: 1.2em; height: 1.2em; }
  .mbar__btn--main { background: var(--ink); color: var(--white); box-shadow: none; }
  .fab { padding: 5px; }
  .fab__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  /* Netlify's free-plan badge occupies the bottom-right corner: lift the bar above it. */
  .has-nf-hud { --mbar: calc(72px + var(--nf-h, 64px)); }
  .has-nf-hud .mbar { bottom: var(--nf-h, 64px); }
  .has-nf-hud .mbar::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: var(--nf-h, 64px); background: rgba(255, 255, 255, .96); }
  .has-nf-hud .fab { --fab-gap: 18px; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .brand { gap: 9px; }
  .brand__mark { height: 36px; }
  .brand__txt { font-size: .86rem; letter-spacing: .07em; }
  .brand__txt small { font-size: .8rem; }
  .hdr__cta { gap: 10px; }
  .hdr__cta .btn--sm { padding: .6em 1em; font-size: .88rem; }
  .hero__actions .btn, .path__acts .btn, .pick__acts .btn, .person__cta .btn, .prices__cta .btn, .topic__acts .btn, .tech__call .btn { flex: 1 1 100%; }
  .cards, .posts, .posts--kb, .posts--pair, .vgrid, .access { grid-template-columns: minmax(0, 1fr); }
  .between__cta .btn, .vids__acts .btn { flex: 1 1 100%; }
  .vcard { width: max(240px, 78vw); }
  .posts .vcard, .vgrid .vcard { width: auto; }
  .kv > div { grid-template-columns: minmax(0, 1fr); gap: .1em; }
  .after__acts .btn, .tech__acts .btn, .cards__all .btn, .vids__foot .btn, .kb__more .btn { flex: 1 1 100%; width: 100%; }
  .prose { font-size: 1.04rem; }
  .tbox { align-items: flex-start; }
  .tbox img { width: 64px; height: 64px; }
  .post { min-height: 0; }
  .rules li { grid-template-columns: minmax(0, 1fr); gap: .1em; }
  .toc { grid-template-columns: minmax(0, 1fr); }
  .msg { max-width: 94%; }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .foot__base { flex-direction: column; align-items: flex-start; }
  .pick { grid-template-columns: minmax(0, 1fr); }
  .pick img { grid-row: auto; }
}
/* phones held sideways: a lower bar leaves more room for content */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 480px) {
  :root { --mbar: 58px; }
  .mbar { padding-top: 6px; padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)); }
  .mbar__btn { min-height: 46px; }
  .has-nf-hud { --mbar: calc(58px + var(--nf-h, 64px)); }
}
@media (max-width: 380px) {
  .hdr__cta .btn--sm { display: none; }
  .mbar__btn { font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js [data-reveal="mask"], .js [data-split] .wi { opacity: 1; transform: none; clip-path: none; transition: none; }
  .js [data-reveal="mask"] > img { scale: 1; transition: none; }
  .msg, .typing i { animation: none; }
  .btn::before, .post, .hdr, .menu, .fab, .vcard, .vids__btn { transition: none; }
}

/* spine page: massage module with a photo, numbered steps */
.topic__split { display: grid; gap: clamp(18px, 3vw, 40px); align-items: center; }
.topic__fig { overflow: hidden; border-radius: var(--r-md); aspect-ratio: 3 / 2; }
.topic__fig img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 760px) { .topic__split { grid-template-columns: 1.15fr .85fr; } }
.kroki { display: grid; gap: 1.1em; max-width: 44em; margin-top: .6em; counter-reset: krok; }
.kroki li { position: relative; padding-left: 2.6em; counter-increment: krok; }
.kroki li::before { content: counter(krok); position: absolute; left: 0; top: .05em; display: grid; place-items: center; width: 1.8em; height: 1.8em; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); font-weight: 600; font-size: .9em; }
.kroki h3 { font-weight: 600; font-size: 1.12rem; line-height: 1.3; }
.kroki p { margin-top: .2em; color: var(--slate); }
