/* Fizja – Gabinet Fizjoterapii Marek Janecki
   Layout: siatka 12 kol. (max 1200px), treść wyrównana do lewej; zdjęcia prowadzą sekcje;
   cienkie linie zamiast kart; promienie 4–6px; jeden akcent (zieleń z logo) tylko na CTA. Mobile-first. */

/* Jeden, jasny motyw (świadomie bez trybu ciemnego – strona gabinetu ma wyglądać tak samo u każdego).
   60% jasne tło · 30% jasna/ciemna zieleń (pasy, przyciski) · 10% zieleń z logo (CTA). Logo: #6DC7A6 + #666. */
:root {
  interpolate-size: allow-keywords;
  color-scheme: light;
  --bg: #FBFCFA;          /* tło – prawie biel */
  --surface: #FFFFFF;
  --tint: #EEF9F5;        /* jasna zieleń – sekcje naprzemienne */
  --tint-2: #E0F3EC;      /* mocniejsza zieleń – pas CTA */
  --sand: #FBF3E6;        /* ciepły akcent tła (wyróżnienia) */
  --ink: #1B2E24;
  --muted: #4F5E55;
  --line: #DAE5DD;
  --line-strong: #93A69A;
  --primary: #2D765B;     /* ciemna zieleń marki – przyciski drugorzędne, zaznaczenia (kontrast 5,8:1) */
  --primary-deep: #2A6F56;
  --link: #2D765B;
  --on-primary: #FFFFFF;
  --accent: #6DC7A6;      /* zieleń z logo Fizja – wyłącznie główne akcje */
  --accent-hover: #5BB896;
  --on-accent: #0E2416;
  --focus: #B4530A;
  --error: #B42318;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-sm: .875rem; --fs-0: 1.0625rem; --fs-1: 1.25rem; --fs-2: 1.625rem;
  --fs-3: clamp(1.875rem, 1.5rem + 1.7vw, 2.75rem);
  --fs-4: clamp(2.25rem, 1.6rem + 3vw, 3.75rem);
  --gutter: 1rem;
  --r: 6px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6.5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: var(--fs-0); line-height: 1.62;
  padding-bottom: calc(4.4rem + env(safe-area-inset-bottom, 0px));
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
h1 { font-size: var(--fs-4); }
h2 { font-size: var(--fs-3); }
h3 { font-size: var(--fs-1); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; line-height: 1.3; }
p, ul, ol, dl { margin: 0; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 100; background: var(--surface); color: var(--ink); padding: .75rem 1rem; border: 2px solid var(--focus); }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + .5rem); }

.wrap { width: 100%; max-width: 75rem; margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 40rem; }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section + .section { border-top: 1px solid var(--line); }
.tint { background: var(--tint); }
.kicker { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); margin-bottom: .9rem; }
.lead { font-size: var(--fs-1); line-height: 1.55; color: var(--muted); max-width: 36rem; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); color: var(--muted); }
.stack { display: grid; gap: 1.1rem; align-content: start; min-width: 0; }
.todo { background: var(--sand); outline: 1px dashed #D9A55C; padding: 0 .25em; border-radius: 3px; font-size: .92em; }

/* Przyciski – min. 44 px */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 2.9rem; padding: .7rem 1.3rem; border-radius: var(--r); border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-lg { min-height: 3.25rem; padding: .85rem 1.6rem; font-size: 1.0625rem; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 12px 22px -12px rgba(45, 118, 91, .55); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-deep); transform: translateY(-2px); }
.btn-line { color: var(--ink); border-color: var(--line); background: transparent; }
.btn-line:hover { border-color: var(--ink); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr, .more:hover .arr { transform: translateX(3px); }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.more { display: inline-flex; gap: .4rem; font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }
.arr { display: inline-block; }

/* Pasek informacyjny + nagłówek */
.topbar { background: var(--tint); color: var(--muted); font-size: var(--fs-sm); display: none; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-block: .45rem; }
.topbar a { color: var(--link); font-weight: 600; text-decoration: none; }
.topbar p > a + a::before { color: var(--muted); font-weight: 400; }
.topbar p > a + a::before, .topbar span + span::before { content: "·"; margin: 0 .6rem; }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
/* Logotyp: oryginalne logo gabinetu (znak + „Fizja”), wektor odrysowany z pliku logo – img/logo-fizja.svg */
.wordmark { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--ink); line-height: 1; }
.wm-logo { display: block; height: 2.6rem; width: auto; transition: transform .45s var(--ease); }
.wordmark:hover .wm-logo { transform: translateY(-2px); }
.wm-sub { display: grid; gap: .3rem; padding-left: .85rem; border-left: 1.5px solid var(--line-strong); font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.wm-sub span:last-child { color: var(--ink); }
.wm-lg .wm-logo { height: 3.4rem; }
.wm-lg .wm-sub { font-size: .75rem; }
.nav-toggle { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.9rem; padding: 0 .9rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); font: 600 .95rem var(--font-body); cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 1.1rem; height: 2px; background: currentColor; position: relative; transition: transform .25s var(--ease), background-color .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -5px; } .bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-5px) rotate(-45deg); }
.nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: .25rem var(--gutter) 1.25rem; display: none; }
.nav.open { display: block; }
.nav ul { list-style: none; padding: 0; display: grid; }
.nav a.tab { display: block; padding: .85rem 0; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.nav a.tab[aria-current="page"] { color: var(--link); }
.nav .nav-cta { margin-top: 1rem; width: 100%; }
.tab-ind { display: none; }

/* Hero */
.hero { padding-block: 1.75rem 3rem; }
.hero-grid { display: grid; gap: 2rem; }
.hero h1 { max-width: 15ch; }
.hero .loc { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.trust { display: flex; flex-wrap: wrap; gap: .4rem 0; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--muted); }
.trust li { list-style: none; padding-right: 1rem; margin-right: 1rem; border-right: 1px solid var(--line); }
.trust li:last-child { border: 0; }
.trust strong { color: var(--ink); }
.trust { padding-left: 0; }
.hero-img { margin: 0; position: relative; }
.hero-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.credit { font-size: .75rem; color: var(--muted); margin-top: .5rem; }

.two-col, .reviews { display: grid; gap: 2rem; }
@media (max-width: 420px) { .site-header .wm-sub span:first-child { display: none; } .site-header .wm-logo { height: 2.2rem; } .wordmark { gap: .6rem; } .wm-sub { padding-left: .6rem; } }

/* Lista problemów (zamiast kart) */
.issues { list-style: none; padding: 0; display: grid; border-top: 1px solid var(--line); }
.issues li { border-bottom: 1px solid var(--line); }
.issues a { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; padding: 1.25rem 0; color: var(--ink); text-decoration: none; }
.issues h3 { grid-column: 1; }
.issues p { grid-column: 1; color: var(--muted); }
.issues .arr { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--link); font-size: 1.25rem; transition: transform .2s var(--ease); }
.issues a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.issues a:hover .arr { transform: translateX(4px); }

/* Układ tekst + zdjęcie */
.split { display: grid; gap: 2rem; align-items: center; }
.split figure { margin: 0; }
.split img { width: 100%; object-fit: cover; border-radius: 4px; }
.r45 { aspect-ratio: 4 / 5; }
.r32 { aspect-ratio: 3 / 2; }

/* Opinie */
.quote-main { font-family: var(--font-display); font-size: var(--fs-3); line-height: 1.2; margin: 0; max-width: 24ch; }
.quote-main p::before { content: "„"; }
.quote-main p::after { content: "”"; }
.who { font-size: var(--fs-sm); color: var(--muted); margin-top: 1rem; }
.quotes-more { list-style: none; padding: 0; display: grid; gap: 1.5rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.quotes-more blockquote { margin: 0; font-size: var(--fs-1); }
.rating { display: flex; align-items: baseline; gap: .6rem; }
.rating b { font: 500 3.5rem/1 var(--font-display); }

/* Pas CTA */
.cta-band { background: var(--tint-2); color: var(--ink); }
.cta-band .wrap { display: grid; gap: 1.5rem; padding-block: clamp(3rem, 7vw, 5rem); }
.cta-band p { color: var(--muted); }
.cta-band .phone { font: 500 var(--fs-4)/1 var(--font-display); color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }

/* Nagłówek podstrony */
.page-head { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.page-head .wrap { display: grid; gap: 1rem; }
.crumbs { font-size: var(--fs-sm); color: var(--muted); }
.crumbs a { color: var(--muted); }

/* O mnie – zasady pracy */
.principles { list-style: none; padding: 0; display: grid; gap: 2rem; }
.principles li { border-top: 2px solid var(--ink); padding-top: 1rem; display: grid; gap: .5rem; }
.principles p { color: var(--muted); }
.facts-list { display: grid; border-top: 1px solid var(--line); }
.facts-list div { display: grid; gap: .2rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.facts-list dt { font-size: var(--fs-sm); color: var(--muted); }
.facts-list dd { margin: 0; font-weight: 600; }

/* Usługi */
.service { display: grid; gap: 1.5rem; align-items: start; padding-block: clamp(2.5rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line); }
.service:last-of-type { border-bottom: 0; }
.service figure { margin: 0; }
.service img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.service .num { font: 500 1rem var(--font-display); color: var(--muted); }
.ticks { list-style: none; padding: 0; display: grid; gap: .45rem; }
.ticks li { padding-left: 1.6rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: .15rem; top: .55em; width: .7rem; height: .38rem; border-left: 2px solid var(--link); border-bottom: 2px solid var(--link); transform: rotate(-45deg); }
.meta { font-size: var(--fs-sm); color: var(--muted); }
.meta strong { color: var(--ink); }

/* Kroki */
.steps { list-style: none; padding: 0; display: grid; gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3.5rem 1fr; gap: .3rem 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font: 500 1.75rem/1 var(--font-display); color: var(--link); }
.steps p { color: var(--muted); }

/* Cennik */
.table-wrap { overflow-x: auto; }
.prices { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; border-top: 2px solid var(--ink); }
.prices th, .prices td { padding: 1rem .75rem 1rem 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prices thead th { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.prices tbody th { font-weight: 600; }
.prices tbody th small { display: block; font-weight: 400; color: var(--muted); font-size: var(--fs-sm); }
.prices td:last-child { text-align: right; white-space: nowrap; font-weight: 600; padding-right: 0; }

.prices tbody .grp th { padding: 1.6rem 0 .5rem; font: 600 var(--fs-sm)/1.3 var(--font-body, inherit); text-transform: uppercase; letter-spacing: .08em; color: var(--link); border-bottom: 1px solid var(--line-strong, var(--line)); }
.prices tbody:first-of-type .grp th { padding-top: 1rem; }
.prices td { white-space: nowrap; }
.prices tbody th small { max-width: 40rem; line-height: 1.5; margin-top: .25rem; }

/* O mnie: liczby, tagi kursów, tekst */
.bio-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: .5rem 0 0; border-top: 2px solid var(--ink); padding-top: 1rem; }
.bio-stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .35rem; }
.bio-stats dd { margin: 0; font: 500 clamp(2.25rem, 1.8rem + 2vw, 3.25rem)/1 var(--font-display); color: var(--primary); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.bio-stats dt { font-size: var(--fs-sm); color: var(--muted); line-height: 1.35; }
.prose { max-width: 40rem; }
.prose p { font-size: var(--fs-0); line-height: 1.7; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li { padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: var(--fs-sm); line-height: 1.35; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .95rem; font: 400 1.6rem/1 var(--font-body); color: var(--link); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 1.25rem; color: var(--muted); max-width: 40rem; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

/* Kontakt */
.contact-grid { display: grid; gap: 3rem; }
.big-phone { font: 500 var(--fs-4)/1 var(--font-display); color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
address { font-style: normal; }
.hours { border-collapse: collapse; font-variant-numeric: tabular-nums; width: 100%; max-width: 24rem; }
.hours th, .hours td { padding: .55rem 0; border-bottom: 1px solid var(--line); text-align: left; }
.hours th { font-weight: 400; color: var(--muted); }
.hours td { text-align: right; font-weight: 600; }
.form { display: grid; gap: 1.15rem; align-content: start; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.25rem, 3vw, 2rem); }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; }
.hint, .opt { font-weight: 400; color: var(--muted); font-size: var(--fs-sm); }
input, textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--muted); border-radius: var(--r); padding: .7rem .85rem; min-height: 2.9rem; width: 100%; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
[aria-invalid="true"] { border-color: var(--error); }
.check { grid-template-columns: auto 1fr; gap: .75rem; align-items: start; }
.check input { width: 1.35rem; height: 1.35rem; min-height: 0; margin-top: .2rem; accent-color: var(--primary); }
.check label { font-weight: 400; font-size: var(--fs-sm); color: var(--muted); }
.form-error { color: var(--error); font-weight: 600; }
.form-ok { color: var(--link); font-weight: 600; }

/* Stopka */
.site-footer { background: var(--tint); color: var(--muted); font-size: var(--fs-sm); padding-block: 3rem 2rem; border-top: 1px solid var(--line); }
.site-footer a { color: var(--ink); }
.footer-grid { display: grid; gap: 2rem; }
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: .4rem; }
.footer-grid h2 { font: 600 .75rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }


.footer-note { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.25rem; display: grid; gap: .5rem; }

/* Dolny pasek CTA (mobile) */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .55rem var(--gutter) calc(.55rem + env(safe-area-inset-bottom, 0px)); background: var(--bg); border-top: 1px solid var(--line); }
.mobile-bar .btn { width: 100%; }


@media (min-width: 640px) {
  :root { --gutter: 1.5rem; }
  .quotes-more { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .principles { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .facts-list div { grid-template-columns: 14rem 1fr; gap: 1.5rem; }
}
@media (min-width: 960px) {
  :root { --gutter: 2rem; }
  body { padding-bottom: 0; }
  .mobile-bar, .nav-toggle { display: none; }
  .topbar { display: block; }
  .header-row { min-height: 5rem; }
  .nav { position: static; display: flex !important; align-items: center; gap: 2rem; padding: 0; border: 0; background: none; }
  .nav ul { display: flex; gap: 1.6rem; }
  .nav a.tab { border: 0; padding: 1.75rem 0 1.6rem; position: relative; font-weight: 600; font-size: .98rem; }
  .nav a.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
  .nav a.tab:hover::after { transform: scaleX(.4); }
  .nav a.tab[aria-current="page"]::after { transform: scaleX(0); }
  .tab-ind { display: block; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--primary); view-transition-name: tab-ind; }
  .nav a.tab[aria-current="page"] { color: var(--ink); }
  .nav .nav-cta { margin: 0; width: auto; }
  .hero { padding-block: 3.5rem 5rem; }
  .hero-grid { grid-template-columns: 7fr 5fr; gap: 4rem; align-items: end; }
  .issues { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
  .split { grid-template-columns: 5fr 6fr; gap: 5rem; }
  .split.rev { grid-template-columns: 6fr 5fr; }
  .split.rev figure { order: 2; }
  .reviews { display: grid; grid-template-columns: 4fr 8fr; gap: 4rem; align-items: start; }
  .cta-band .wrap { grid-template-columns: 1fr auto; align-items: end; }
  .service { grid-template-columns: 6fr 5fr; gap: 4rem; align-items: center; }
  .service.rev figure { order: 2; }
  .service.rev { grid-template-columns: 5fr 6fr; }
  .steps { grid-template-columns: repeat(4, 1fr); border-top: 0; gap: 2rem; }
  .steps li { grid-template-columns: 1fr; border-bottom: 0; border-top: 2px solid var(--ink); padding-top: 1.25rem; }
  .steps li::before { grid-row: auto; margin-bottom: .75rem; }
  .contact-grid { grid-template-columns: 5fr 6fr; gap: 5rem; }
  .two-col { display: grid; grid-template-columns: 4fr 8fr; gap: 4rem; }
}
@media (min-width: 960px) and (max-width: 1140px) { .nav ul { gap: 1.1rem; } .nav a.tab { font-size: .92rem; } .nav .nav-cta { padding-inline: 1rem; } }


/* ===== RUCH =====
   Wszystkie animacje: tylko transform i opacity. Klasa .anim na <html> dodawana tylko bez prefers-reduced-motion. */
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes wordUp { from { transform: translateY(110%); } to { transform: none; } }
@keyframes curtain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes settle { from { transform: scale(1.36); } to { transform: scale(1.16); } }
@keyframes pop { 0% { transform: scale(.86); } 60% { transform: scale(1.06); } 100% { transform: none; } }
.page-enter { animation: pageIn .5s var(--ease); }

/* Nagłówek: cień i pasek postępu przy przewijaniu */
.site-header { transition: box-shadow .3s var(--ease); }
.site-header.scrolled { box-shadow: 0 10px 26px -20px rgba(27, 46, 36, .55); }
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.anim.first .site-header .header-row > * { animation: fadeDown .7s var(--ease) both; }
.anim.first .site-header .header-row > :nth-child(2), .anim.first .site-header .header-row > :nth-child(3) { animation-delay: .12s; }
.anim.first .topbar .wrap { animation: fadeDown .6s var(--ease) both; }
.anim.first .mobile-bar { animation: barUp .7s var(--ease) .9s both; }
@keyframes barUp { from { transform: translateY(110%); } to { transform: none; } }

/* Hero i nagłówki podstron: słowa wyjeżdżają spod linii, reszta dołącza po kolei */
.h1w .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.h1w .w > span { display: inline-block; }
.anim .h1w .w > span { animation: wordUp .95s var(--ease) calc(.15s + var(--i) * 55ms) both; }
.anim .hero .loc, .anim .page-head .crumbs { animation: fadeUp .7s var(--ease) .05s both; }
.anim .hero .lead, .anim .page-head .lead { animation: fadeUp .8s var(--ease) .55s both; }
.anim .hero .cta-row { animation: fadeUp .8s var(--ease) .7s both; }
.anim .hero .trust { animation: fadeUp .8s var(--ease) .85s both; }

/* Zdjęcia: kurtyna przy wejściu + paralaksa (JS przesuwa .para-in) */
.para { position: relative; overflow: hidden; border-radius: 4px; isolation: isolate; }
.para-in { display: block; will-change: transform; }
.para img { border-radius: 0; transform: scale(1.16); transition: transform 1.6s var(--ease), scale 1.1s var(--ease); }
.para::after { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--tint-2); transform: scaleX(0); transform-origin: right; pointer-events: none; }
.para.pre::after { transform: scaleX(1); }
.para.pre img { transform: scale(1.34); }
.para.pre.in::after { transform: scaleX(0); transition: transform 1.05s var(--ease) var(--d, 0ms); }
.para.pre.in img { transform: scale(1.16); }
.para.fu.pre { opacity: 1; transform: none; }
.anim .hero-img::after { animation: curtain 1.15s var(--ease) .4s backwards; }
.anim .hero-img img { animation: settle 1.9s var(--ease) .4s backwards; }
@media (hover: hover) { .para:hover img { scale: 1.035; } }

/* Nagłówki sekcji: tekst wysuwa się spod maski */
.mask { overflow: hidden; padding-bottom: .1em; }
.mask-in { display: inline-block; }
.mask.pre .mask-in { transform: translateY(112%); }
.mask.pre.in .mask-in { transform: none; transition: transform 1s var(--ease); }

/* Listy i bloki: kolejne elementy dołączają z opóźnieniem */
.pre.st, .pre.fu { opacity: 0; transform: translateY(24px); }
.pre.in.st, .pre.in.fu { opacity: 1; transform: none; transition: opacity .7s var(--ease) var(--d, 0ms), transform .85s var(--ease) var(--d, 0ms); }

/* Lista problemów: tło wysuwa się przy najechaniu */
.issues li { position: relative; isolation: isolate; }
.issues a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tint); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.issues a:hover::before { transform: scaleX(1); }
.issues a { transition: padding .35s var(--ease); }
@media (min-width: 960px) { .issues a:hover { padding-left: .75rem; padding-right: .75rem; } }

/* Kroki: linia nad krokiem rysuje się przy wejściu */
.steps li { position: relative; }

/* Rezerwacja: wybór dnia i świeże godziny */
.bk-day.sel { animation: pop .35s var(--ease); }
.bk-times.fresh .bk-slot, .bk-times.fresh .bk-group-h, .bk-times.fresh .bk-times-h { animation: fadeUp .45s var(--ease) calc(var(--k, 0) * 28ms) both; }
.bk-service-body { transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .25s var(--ease); }
.bk-service:hover .bk-service-body { transform: translateY(-2px); }
.bk-slot { transition: background-color .15s var(--ease), color .15s var(--ease), transform .2s var(--ease); }
.bk-slot:hover:not(:disabled) { transform: translateY(-2px); }
.bk-progress span { transition: background-color .3s var(--ease), border-color .3s var(--ease); }


/* ===== Strona główna: efekty związane z przewijaniem (zmienna --p od 0 do 1 ustawiana przez JS) ===== */
[data-scroll] { --p: 1; }
.hero[data-scroll] { --p: 0; }

/* Hero odjeżdża w górę i blednie, gdy przewijasz dalej */
.hero .hero-grid > .stack { transform: translate3d(0, calc(var(--p) * -80px), 0); opacity: calc(1 - var(--p) * .75); }

/* „Z czym przychodzą pacjenci”: nagłówek zostaje na miejscu, lista przewija się obok */
@media (min-width: 960px) { .sticky-head { position: sticky; top: 8rem; align-self: start; } }

/* Sekcja „Jedna osoba”: zdjęcie rośnie do pełnego rozmiaru, tekst dojeżdża z prawej */
.solo figure { scale: calc(.86 + var(--p) * .14); transform-origin: left center; }
.solo .stack { translate: calc((1 - var(--p)) * 60px) 0; }

/* Pierwsza wizyta: linia rysuje się z przewijaniem, kolejne kroki zapalają się */
.journey-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem; }
.journey-track { position: relative; }
.journey-steps { list-style: none; padding: 0; display: grid; gap: 1.75rem; position: relative; }
.journey-steps li { display: grid; gap: .35rem; padding-left: 2.25rem; position: relative;
  opacity: clamp(.28, calc(var(--p) * 5 - var(--i)), 1); transform: translate3d(0, calc((1 - clamp(0, calc(var(--p) * 5 - var(--i)), 1)) * 14px), 0); }
.journey-steps p { color: var(--muted); }
.journey-steps .dot { position: absolute; left: 0; top: .3rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--bg); border: 2px solid var(--primary);
  transform: scale(calc(.7 + clamp(0, calc(var(--p) * 5 - var(--i)), 1) * .3)); }
.journey-steps .dot::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: var(--primary); opacity: clamp(0, calc(var(--p) * 5 - var(--i)), 1); }
.journey-line { position: absolute; left: calc(.5rem - 1px); top: .5rem; bottom: .5rem; width: 2px; background: var(--primary); transform-origin: top; transform: scaleY(var(--p)); }
.journey-track::before { content: ""; position: absolute; left: calc(.5rem - 1px); top: .5rem; bottom: .5rem; width: 2px; background: var(--line); }
@media (min-width: 960px) {
  .journey-steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .journey-steps li { padding-left: 0; padding-top: 2rem; }
  .journey-steps .dot { top: 0; }
  .journey-line, .journey-track::before { left: 0; right: 0; top: calc(.5rem - 1px); bottom: auto; width: auto; height: 2px; }
  .journey-line { transform-origin: left; transform: scaleX(var(--p)); }
}

/* Pas z liczbami: liczniki odliczają, kolumny podjeżdżają kolejno */
.facts-band { background: var(--tint); border-block: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; padding-block: clamp(2.5rem, 6vw, 4rem); }
.facts-grid > div { display: grid; gap: .4rem; align-content: start; transform: translate3d(0, calc((1 - var(--p)) * (30px + var(--i) * 18px)), 0); }
.facts-grid b { font: 500 clamp(2.5rem, 1.8rem + 3vw, 4.25rem)/1 var(--font-display); color: var(--primary); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.facts-grid span { font-size: var(--fs-sm); color: var(--muted); max-width: 16rem; }
@media (min-width: 760px) { .facts-grid { grid-template-columns: repeat(4, 1fr); } }

/* Cytat: słowa podświetlają się po kolei podczas przewijania */
.qw { opacity: clamp(.16, calc(var(--p) * (var(--n) + 3) - var(--i)), 1); }

/* Pas „Umów wizytę”: koło rozlewa się w tle */
.cta-band { position: relative; overflow: hidden; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; z-index: -1; width: 140vmax; height: 140vmax; border-radius: 50%; background: var(--tint); left: 85%; top: 50%;
  transform: translate(-50%, -50%) scale(calc(.08 + var(--p) * .92)); }


/* ===== Zakładka „Pierwsza wizyta” ===== */
.visit-hero { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5rem); border-bottom: 1px solid var(--line); }
.visit-hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.visit-hero h1 { max-width: 14ch; }
.visit-img { margin: 0; }
.visit-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.visit-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; border-top: 1px solid var(--line); }
.visit-facts div { padding: .8rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .1rem; }
.visit-facts dt { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.visit-facts dd { margin: 0; font-weight: 600; }
.anim .visit-facts > div { animation: fadeUp .7s var(--ease) both; }
.anim .visit-facts > div:nth-child(1) { animation-delay: .65s; } .anim .visit-facts > div:nth-child(2) { animation-delay: .72s; }
.anim .visit-facts > div:nth-child(3) { animation-delay: .79s; } .anim .visit-facts > div:nth-child(4) { animation-delay: .86s; }
.anim .visit-hero .cta-row { animation: fadeUp .8s var(--ease) .95s both; }
.anim .visit-hero .lead { animation: fadeUp .8s var(--ease) .5s both; }
.anim .visit-img::after { animation: curtain 1.15s var(--ease) .35s backwards; }
.anim .visit-img img { animation: settle 1.9s var(--ease) .35s backwards; }
.arr-down { transition: transform .25s var(--ease); }
a:hover .arr-down { transform: translateY(3px); }
@media (min-width: 960px) { .visit-hero-grid { grid-template-columns: 7fr 5fr; gap: 4rem; } }

/* Historia wizyty: zdjęcie przykleja się, kroki przewijają obok, zdjęcia przenikają */
.story { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2rem, 5vw, 3rem); }
.story-head { display: grid; gap: .75rem; max-width: 40rem; margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.story-grid { display: grid; gap: 2rem; }
.story-media { display: none; }
.story-frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: var(--tint); }
.story-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.1); transition: opacity .8s var(--ease), transform 1.6s var(--ease); }
.story-img.is-on { opacity: 1; transform: scale(1); }
.story-badge { position: absolute; left: 1rem; bottom: 1rem; display: flex; align-items: baseline; gap: .75rem; padding: .7rem 1.1rem; background: var(--surface); border-radius: 4px; box-shadow: 0 12px 30px -18px rgba(27, 46, 36, .6); }
.story-num { font: 500 1.75rem/1 var(--font-display); color: var(--primary); font-variant-numeric: tabular-nums; }
.story-name { font-weight: 600; }
.story-badge.swap { animation: badgeIn .55s var(--ease); }
@keyframes badgeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.story-progress { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; font-size: var(--fs-sm); color: var(--muted); font-variant-numeric: tabular-nums; }
.sp-track { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.sp-fill { position: absolute; inset: 0; background: var(--primary); transform-origin: left; transform: scaleX(var(--sp, 0)); }
.sp-count b { color: var(--ink); font-size: 1rem; }
.story-steps { list-style: none; padding: 0; display: grid; }
.story-step { display: grid; gap: 1rem; align-content: center; padding-block: 2.5rem; border-top: 1px solid var(--line); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.story-step .num { font: 500 clamp(2.5rem, 2rem + 2vw, 4rem)/1 var(--font-display); color: var(--line-strong); transition: color .5s var(--ease); letter-spacing: -.02em; }
.story-step h3 { font: 500 var(--fs-3)/1.1 var(--font-display); }
.story-txt { font-size: var(--fs-1); line-height: 1.5; max-width: 32rem; }
.story-inline { margin: 0; }
.story-inline img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.story.js .story-step { opacity: .3; }
.story.js .story-step.is-active { opacity: 1; }
.story.js .story-step.is-active .num { color: var(--primary); }
.story.js .story-step .ticks li { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.story.js .story-step:not(.is-active) .ticks li { opacity: .5; transform: translateX(-6px); }
.story.js .story-step.is-active .ticks li:nth-child(2) { transition-delay: .06s; } .story.js .story-step.is-active .ticks li:nth-child(3) { transition-delay: .12s; } .story.js .story-step.is-active .ticks li:nth-child(4) { transition-delay: .18s; }
@media (min-width: 960px) {
  .story-grid { grid-template-columns: 5fr 6fr; gap: 5rem; align-items: start; }
  .story-media { display: block; position: sticky; top: 7rem; }
  .story-inline { display: none; }
  .story-step { min-height: 64vh; padding-block: 3rem; }
  .story-step:first-child { border-top: 0; padding-top: 0; min-height: 52vh; align-content: start; }
  .story-step:last-child { min-height: 70vh; }
}

/* Lista „Przygotuj się” */
.prep-list { list-style: none; padding: 0; display: grid; gap: .7rem; }
.prep-list label { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; padding: 1rem 1.25rem; background: var(--surface); border: 1.5px solid var(--line); border-radius: 6px; cursor: pointer;
  transition: border-color .25s var(--ease), background-color .25s var(--ease), transform .3s var(--ease); }
.prep-list label:hover { border-color: var(--line-strong); transform: translateX(4px); }
.prep-list input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.box { width: 1.75rem; height: 1.75rem; border-radius: 6px; border: 2px solid var(--line-strong); display: grid; place-items: center; color: var(--on-primary); background: var(--surface); transition: background-color .25s var(--ease), border-color .25s var(--ease); }
.box svg { width: 1.05rem; height: 1.05rem; transform: scale(0) rotate(-25deg); transition: transform .4s var(--ease); }
.prep-list input:checked + .box { background: var(--primary); border-color: var(--primary); animation: pop .4s var(--ease); }
.prep-list input:checked + .box svg { transform: scale(1) rotate(0); }
.prep-list input:focus-visible + .box { outline: 3px solid var(--focus); outline-offset: 2px; }
.prep-list label:has(input:checked) { border-color: var(--primary); }
.pl-t { display: grid; gap: .1rem; }
.pl-t small { color: var(--muted); font-size: var(--fs-sm); }
.prep-meter { display: grid; gap: .5rem; max-width: 20rem; margin-top: .5rem; }
.pm-bar { display: block; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.pm-bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--pm, 0)); transition: transform .6s var(--ease); }
.pm-txt { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.prep-meter.done .pm-txt { color: var(--link); }
.prep-meter.done .pm-bar i { background: var(--primary); }

/* W dniu wizyty */
.visit-day { display: grid; border-top: 2px solid var(--ink); }
.visit-day div { display: grid; gap: .3rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.visit-day dt { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.visit-day dd { margin: 0; font-size: var(--fs-1); line-height: 1.45; }
@media (min-width: 640px) { .visit-day div { grid-template-columns: 13rem 1fr; gap: 1.5rem; align-items: baseline; } }

/* FAQ: treść wjeżdża po otwarciu */
.faq details[open] > div { animation: fadeUp .45s var(--ease); }
.faq summary { transition: color .2s var(--ease), padding-left .3s var(--ease); }
.faq summary:hover { color: var(--link); padding-left: .35rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pre, .pre .mask-in, .mask.pre .mask-in { opacity: 1 !important; transform: none !important; }
  .para img { transform: none !important; }
  .para::after { display: none; }
  .scroll-progress { display: none; }
  .story-img { transition: none; }
  .story.js .story-step { opacity: 1; }
  [data-scroll], .hero[data-scroll] { --p: 1 !important; }
  .hero[data-scroll] .hero-grid > .stack { transform: none; opacity: 1; }
}

/* ===== Rezerwacja online ===== */
.booking-wrap { padding-block: 2rem clamp(3rem, 7vw, 5rem); }
.bk-progress { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-bottom: 1.75rem; font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.bk-progress li { display: flex; align-items: center; gap: .5rem; }
.bk-progress span { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-strong); font-size: .8rem; }
.bk-progress .cur { color: var(--ink); }
.bk-progress .cur span { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.bk-progress .done span { background: var(--tint-2); border-color: var(--tint-2); color: var(--link); }
.bk-grid { display: grid; gap: 1.5rem; align-items: start; }
.bk-main { display: grid; gap: 1.5rem; min-width: 0; }
.bk-services { border: 0; padding: 0; margin: 0; display: grid; gap: .6rem; min-width: 0; }
.bk-services legend { font-weight: 600; margin-bottom: .6rem; padding: 0; }
.bk-service { position: relative; display: block; cursor: pointer; }
.bk-service input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bk-service-body { display: grid; gap: .1rem; padding: .85rem 1rem .85rem 2.6rem; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface); transition: border-color .2s var(--ease), background-color .2s var(--ease); position: relative; }
.bk-service-body::before { content: ""; position: absolute; left: 1rem; top: 1.05rem; width: 1rem; height: 1rem; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface); }
.bk-service input:checked + .bk-service-body { border-color: var(--primary); background: var(--tint); }
.bk-service input:checked + .bk-service-body::before { border: 5px solid var(--primary); }
.bk-service input:focus-visible + .bk-service-body { outline: 3px solid var(--focus); outline-offset: 2px; }
.bk-service:hover .bk-service-body { border-color: var(--line-strong); }
.bk-service small { color: var(--muted); font-size: var(--fs-sm); }
.bk-service-meta { font-variant-numeric: tabular-nums; }
.bk-services:disabled .bk-service { opacity: .6; cursor: default; }

.bk-picker { display: grid; gap: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1rem, 3vw, 1.5rem); }
.bk-cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.bk-cal-head h3 { font: 500 1.4rem var(--font-display); text-transform: capitalize; }
.bk-cal-head h3 span { color: var(--muted); }
.bk-cal-nav { display: flex; gap: .4rem; }
.bk-nav { width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.bk-nav:hover:not(:disabled) { border-color: var(--ink); }
.bk-nav:disabled { opacity: .35; cursor: default; }
.bk-week, .bk-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3rem; }
.bk-week span { text-align: center; font-size: .75rem; font-weight: 600; color: var(--muted); padding-bottom: .3rem; }
.bk-day { position: relative; aspect-ratio: 1; min-height: 2.75rem; border: 0; border-radius: var(--r); background: transparent; color: #8A9C90; font: 500 1rem var(--font-body); font-variant-numeric: tabular-nums; cursor: default; display: grid; place-items: center; }
.bk-day.has { background: var(--tint); color: var(--ink); font-weight: 600; cursor: pointer; transition: background-color .15s var(--ease), transform .15s var(--ease); }
.bk-day.has:hover { background: var(--tint-2); }
.bk-day.has i { position: absolute; bottom: 18%; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--primary); }
.bk-day.today span { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.bk-day.sel { background: var(--primary); color: var(--on-primary); }
.bk-day.sel i { background: var(--on-primary); }
.bk-day.sel:hover { background: var(--primary-deep); }
.bk-legend { margin-top: .75rem; display: flex; align-items: center; gap: .4rem; }
.bk-legend i { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); display: inline-block; }
.bk-times { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.bk-times-h { font: 500 1.4rem var(--font-display); }
.bk-times-h::first-letter { text-transform: uppercase; }
.bk-group { display: grid; gap: .45rem; }
.bk-group-h { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.2rem, 1fr)); gap: .45rem; }
.bk-slot { min-height: 2.75rem; border: 1.5px solid var(--primary); border-radius: var(--r); background: var(--surface); color: var(--link); font: 600 1rem var(--font-body); font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color .15s var(--ease), color .15s var(--ease); }
.bk-slot:hover:not(:disabled) { background: var(--tint); }
.bk-slot.sel { background: var(--primary); color: var(--on-primary); }
.bk-slot:disabled { border-color: var(--line); color: #8A9C90; background: var(--bg); cursor: default; }
.bk-slot.taken { text-decoration: line-through; }
.bk-next { margin-top: .5rem; justify-self: start; }
.bk-next:disabled { opacity: .45; cursor: not-allowed; }

.bk-form { display: grid; gap: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.25rem, 3vw, 2rem); }
.bk-form-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.bk-form-head h3 { font: 500 1.6rem var(--font-display); }
.bk-link { background: none; border: 0; padding: .5rem 0; color: var(--link); font: 600 1rem var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 2.75rem; }
.bk-fields { display: grid; gap: 1.1rem; }

.bk-summary { background: var(--sand); border-radius: var(--r); padding: 1.25rem 1.4rem; display: grid; gap: 1rem; }
.bk-sum-h { font: 500 1.35rem var(--font-display); }
.bk-summary dl { display: grid; gap: .65rem; }
.bk-summary dl div { display: grid; gap: .05rem; }
.bk-summary dt { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bk-summary dd { margin: 0; font-weight: 600; }
.bk-mode { margin-top: 1rem; }

.bk-done { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.5rem, 4vw, 3rem); display: grid; gap: 1rem; justify-items: start; max-width: 44rem; animation: pageIn .4s var(--ease); }
.bk-done-mark { width: 3rem; height: 3rem; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-size: 1.5rem; }
.bk-done h3 { font: 500 var(--fs-3) var(--font-display); }

.bk-alt { display: grid; gap: 1.5rem; padding-top: 2.5rem; margin-top: 2.5rem; border-top: 1px solid var(--line); }
.owner-panel { margin-top: 2.5rem; padding: 1.25rem; border: 2px dashed var(--line-strong); border-radius: var(--r); display: grid; gap: 1rem; }
.owner-panel table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.owner-panel th, .owner-panel td { text-align: left; padding: .5rem .5rem .5rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }

@media (min-width: 760px) {
  .bk-services { grid-template-columns: repeat(3, 1fr); }
  .bk-picker { grid-template-columns: 1.15fr 1fr; gap: 2rem; }
  .bk-times { border-left: 1px solid var(--line); padding-left: 2rem; }
  .bk-fields { grid-template-columns: 1fr 1fr; }
  .bk-fields .field:last-child { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .bk-grid { grid-template-columns: 1fr 17rem; gap: 2rem; }
  .bk-summary { position: sticky; top: 7rem; }
}
.methods dt { font-size: var(--fs-0); font-weight: 600; color: var(--ink); }
.methods dd { font-weight: 400; color: var(--muted); }
@media (max-width: 759px) {
  .bk-service-body { padding-block: .65rem; }
  .bk-service small:not(.bk-service-meta) { display: none; }
}
.solo { overflow: hidden; }
html, body { overflow-x: clip; }

/* Znak z logo jako znak wodny w nagłówkach podstron (jak na papierze firmowym) */
@media (min-width: 760px) {
  .page-head::after { content: ""; position: absolute; z-index: -1; right: max(1rem, calc(50% - 38rem)); top: 50%; width: clamp(16rem, 28vw, 24rem); aspect-ratio: 328 / 304; transform: translateY(-50%); background: url(img/znak-tlo.svg) center / contain no-repeat; pointer-events: none; }
  .page-head { isolation: isolate; }
}

/* ===== v4.5: przejścia między podstronami, menu, przyciski, rezerwacja ===== */

/* Przejście między podstronami (View Transitions API: Chrome/Edge 126+, Safari 18.2+; inne przeglądarki – zwykłe przejście).
   Nagłówek, pasek górny i dolny pasek CTA stoją w miejscu; treść blednie i podjeżdża; znacznik aktywnej zakładki przesuwa się do nowej. */
@view-transition { navigation: auto; }
.topbar { view-transition-name: topbar; }
.site-header { view-transition-name: site-header; }
.mobile-bar { view-transition-name: mobile-bar; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-14px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(22px); } }
::view-transition-old(root) { animation: vtOut .28s cubic-bezier(.4,0,1,1) both; }
::view-transition-new(root) { animation: vtIn .55s var(--ease) .08s both; }
::view-transition-group(tab-ind) { animation-duration: .5s; animation-timing-function: var(--ease); }
::view-transition-group(site-header), ::view-transition-group(topbar), ::view-transition-group(mobile-bar) { animation-duration: 0s; }
/* Po przejściu słowa nagłówka startują chwilę później, żeby nie zginęły pod przenikaniem */
.anim:not(.first) .h1w .w > span { animation-delay: calc(.3s + var(--i) * 55ms); }

/* Menu mobilne: rozwija się z góry, pozycje dołączają kolejno, tło strony przygasa */
@keyframes navIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@media (max-width: 959px) {
  .nav { box-shadow: 0 24px 40px -28px rgba(27, 46, 36, .45); }
  .anim .nav.open { animation: navIn .32s var(--ease); }
  .anim .nav.open li, .anim .nav.open .nav-cta { animation: fadeUp .45s var(--ease) both; }
  .anim .nav.open li:nth-child(2) { animation-delay: .04s; } .anim .nav.open li:nth-child(3) { animation-delay: .08s; }
  .anim .nav.open li:nth-child(4) { animation-delay: .12s; } .anim .nav.open li:nth-child(5) { animation-delay: .16s; }
  .anim .nav.open li:nth-child(6) { animation-delay: .2s; } .anim .nav.open .nav-cta { animation-delay: .26s; }
  .nav a.tab { transition: padding-left .25s var(--ease), color .2s var(--ease); }
  .nav a.tab:active { padding-left: .4rem; }
  .nav-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(27, 46, 36, .28); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
  .nav-open .nav-scrim { opacity: 1; pointer-events: auto; }
}
@media (min-width: 960px) { .nav-scrim { display: none; } }

/* Główny przycisk: delikatny połysk przechodzi przy najechaniu */
.btn-accent { position: relative; overflow: hidden; isolation: isolate; }
.btn-accent::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); pointer-events: none; }
@media (hover: hover) { .btn-accent:hover::after { transform: translateX(120%); transition: transform .75s var(--ease); } }

/* Telefon w pasku CTA: podkreślenie rysuje się przy najechaniu */
.cta-band .phone, .big-phone { background: linear-gradient(currentColor, currentColor) left bottom / 0 2px no-repeat; transition: background-size .45s var(--ease); padding-bottom: .08em; }
.cta-band .phone:hover, .big-phone:hover { background-size: 100% 2px; }

/* Stopka: linki z podkreśleniem rysowanym od lewej */
.footer-grid ul a { text-decoration: none; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.footer-grid ul a:hover { background-size: 100% 1px; }

/* Rezerwacja: przejścia między krokami i miesiącami */
@keyframes stepFwd { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes doneMark { 0% { transform: scale(0) rotate(-40deg); } 60% { transform: scale(1.15) rotate(6deg); } 100% { transform: none; } }
.anim .bk-go-fwd .bk-form, .anim .bk-go-fwd .bk-picker { animation: stepFwd .5s var(--ease) both; }
.anim .bk-go-back .bk-picker { animation: stepBack .5s var(--ease) both; }
.anim .bk-m-next .bk-days { animation: stepFwd .4s var(--ease) both; }
.anim .bk-m-prev .bk-days { animation: stepBack .4s var(--ease) both; }
.anim .bk-done-mark { animation: doneMark .7s var(--ease) .15s both; }
.anim .bk-done > :not(.bk-done-mark) { animation: fadeUp .6s var(--ease) both; }
.anim .bk-done > :nth-child(2) { animation-delay: .25s; } .anim .bk-done > :nth-child(3) { animation-delay: .32s; }
.anim .bk-done > :nth-child(4) { animation-delay: .39s; } .anim .bk-done > :nth-child(5) { animation-delay: .46s; }
.bk-summary dd { transition: color .3s var(--ease); }
.bk-summary dd.flash { animation: sumFlash .9s var(--ease); }
@keyframes sumFlash { 0% { color: var(--primary); transform: translateX(4px); } 100% { transform: none; } }
.form-error { animation: shake .4s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* Formularze: pole w trakcie wpisywania wyraźniej obramowane */
input, textarea { transition: border-color .2s var(--ease), box-shadow .25s var(--ease); }
input:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(45, 118, 91, .12); }

/* Przycisk „do góry” po dłuższym przewinięciu */
.to-top { position: fixed; right: var(--gutter); bottom: calc(5.2rem + env(safe-area-inset-bottom, 0px)); z-index: 55; width: 2.9rem; height: 2.9rem; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 1.15rem; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 10px 24px -14px rgba(27, 46, 36, .5); opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; transition: opacity .3s var(--ease), transform .35s var(--ease), border-color .2s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--ink); }
@media (min-width: 960px) { .to-top { bottom: 1.5rem; } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .solo figure { scale: 1; } .solo .stack { translate: none; }
  .btn-accent::after { display: none; }
}
main:focus { outline: none; }
.field { align-content: start; }
html.nav-open { overflow: hidden; }
.nav-open .to-top { opacity: 0; pointer-events: none; }

/* ===== O mnie v4.6: więcej zdjęć, nowy układ ===== */
.sec-head { display: grid; gap: .75rem; max-width: 40rem; }
.r34 { aspect-ratio: 3 / 4; }
.duo img, .pcards img, .tiles img { width: 100%; object-fit: cover; display: block; }

/* Kim jestem: tekst + dwa nachodzące na siebie zdjęcia */
.bio-grid { display: grid; gap: 3rem; align-items: center; }
.duo { display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; }
.duo > figure:first-child { grid-column: 1 / 10; grid-row: 1; margin: 0; }
.duo-b { grid-column: 6 / 13; grid-row: 1; margin: 0 0 -2.5rem; z-index: 2; border: 6px solid var(--bg); border-radius: 8px; box-shadow: 0 22px 40px -26px rgba(27, 46, 36, .55); }
.duo-cap { grid-column: 1 / 6; grid-row: 2; margin-top: 1rem; padding-right: 1rem; }
@media (min-width: 960px) { .bio-grid { grid-template-columns: 6fr 5fr; gap: 5rem; } }

/* Jak pracuję: zasady ze zdjęciami */
.pcards { list-style: none; padding: 0; display: grid; gap: 1.75rem; counter-reset: none; }
.pcards li { display: grid; grid-template-columns: 7.5rem 1fr; column-gap: 1.1rem; row-gap: .3rem; align-content: start; }
.pcards figure { grid-row: 1 / span 3; margin: 0; align-self: start; }
.pcards p:not(.pc-num) { color: var(--muted); }
.pc-num { font: 500 1.35rem/1 var(--font-display); color: var(--primary); }
@media (min-width: 760px) {
  .pcards { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .pcards li { grid-template-columns: 1fr; row-gap: .5rem; }
  .pcards figure { grid-row: auto; margin-bottom: .9rem; }
}

/* Z kim pracuję: kafle ze zdjęciem i podpisem */
.tiles { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.tiles a { position: relative; display: block; color: #fff; text-decoration: none; border-radius: 4px; overflow: hidden; isolation: isolate; }
.tiles figure { margin: 0; }
.tiles a::after { content: ""; position: absolute; inset: 0; z-index: 3; background: linear-gradient(to top, rgba(10, 30, 18, .88) 0%, rgba(10, 30, 18, .45) 38%, rgba(10, 30, 18, 0) 65%); pointer-events: none; transition: opacity .4s var(--ease); }
.tile-t { position: absolute; left: .9rem; right: 2.4rem; bottom: .9rem; z-index: 4; display: grid; gap: .15rem; line-height: 1.25; }
.tile-t strong { font: 500 clamp(1.05rem, .95rem + .5vw, 1.35rem)/1.15 var(--font-display); }
.tile-t small { font-size: .8125rem; opacity: .88; }
.tiles .arr { position: absolute; right: .9rem; bottom: .9rem; z-index: 4; transition: transform .3s var(--ease); }
.tiles a:hover .arr { transform: translateX(4px); }
@media (hover: hover) { .tiles a:hover img { scale: 1.06; } }
.tiles a:focus-visible { outline-offset: 3px; }
@media (min-width: 960px) { .tiles { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } .tile-t { left: 1.15rem; bottom: 1.15rem; } .tiles .arr { right: 1.15rem; bottom: 1.15rem; } }

/* Kwalifikacje */
.kw-split figure { margin: 0; }
.kw-split img { aspect-ratio: 4 / 5; }
@media (min-width: 960px) { .kw-split { align-items: start; } .kw-split figure { position: sticky; top: 8rem; } }

/* Kursy i staże: dwie karty */
.cv-grid { display: grid; gap: 1.25rem; align-items: start; }
.cv-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1.25rem; }
.cv-card h3 { display: flex; align-items: baseline; gap: .6rem; font: 500 var(--fs-2)/1.1 var(--font-display); }
.cv-n { font-size: clamp(2.5rem, 2rem + 2vw, 3.25rem); line-height: 1; color: var(--primary); font-variant-numeric: tabular-nums; }
.tags li { transition: border-color .25s var(--ease), background-color .25s var(--ease); }
.tags li:hover { border-color: var(--primary); background: var(--tint); }
.places { list-style: none; padding: 0; margin: 0; display: grid; counter-reset: pl; }
.places li { counter-increment: pl; display: grid; grid-template-columns: 2.4rem 1fr; gap: .1rem 0; padding: .85rem 0; border-top: 1px solid var(--line); }
.places li::before { content: counter(pl, decimal-leading-zero); grid-row: span 2; font: 500 1.15rem/1.3 var(--font-display); color: var(--primary); }
.places small { color: var(--muted); font-size: var(--fs-sm); }
@media (min-width: 960px) { .cv-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 639px) { .duo-cap { grid-column: 1 / 7; } .duo-b { margin-bottom: -1.75rem; border-width: 4px; } }

/* ===== Kursy i staże v4.7 ===== */
.sub-h { font: 600 .8125rem/1.3 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cv-banner { position: relative; }
.cv-banner figure { margin: 0; }
.cv-banner img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 45%; }
.cv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: -2.75rem .75rem 0; position: relative; z-index: 3; background: var(--surface); border-radius: var(--r); padding: 1rem 1.1rem; box-shadow: 0 24px 44px -28px rgba(27, 46, 36, .55); }
.cv-stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .25rem; }
.cv-stats dd { margin: 0; font: 500 clamp(2rem, 1.6rem + 2vw, 3.25rem)/1 var(--font-display); color: var(--primary); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.cv-stats dt { font-size: .8125rem; color: var(--muted); line-height: 1.3; }
@media (min-width: 760px) {
  .cv-banner img { aspect-ratio: 21 / 9; }
  .cv-stats { position: absolute; left: 1.5rem; bottom: 1.5rem; margin: 0; padding: 1.25rem 1.75rem; gap: 2.25rem; grid-template-columns: repeat(3, auto); }
}

.cgroups { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.cg { display: grid; gap: .6rem; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.35rem 1.35rem 1.5rem; position: relative; overflow: hidden;
  transition: border-color .3s var(--ease), box-shadow .35s var(--ease), translate .35s var(--ease); }
.cg::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.cg:hover { border-color: var(--line-strong); box-shadow: 0 20px 36px -28px rgba(27, 46, 36, .6); translate: 0 -3px; }
.cg:hover::before { transform: scaleX(1); }
.cg .ico { width: 2.75rem; height: 2.75rem; padding: .55rem; border-radius: 50%; background: var(--tint); color: var(--primary); transition: transform .45s var(--ease), background-color .3s var(--ease); }
.cg:hover .ico { transform: rotate(-8deg) scale(1.08); background: var(--tint-2); }
.cg h4 { margin: .35rem 0 0; font: 500 1.4rem/1.15 var(--font-display); }
.cg > p { color: var(--muted); font-size: var(--fs-sm); }
.cg .ticks { margin-top: .4rem; padding-top: .9rem; border-top: 1px solid var(--line); gap: .55rem; font-size: .95rem; line-height: 1.45; }
@media (min-width: 640px) { .cgroups { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .cgroups { grid-template-columns: repeat(4, 1fr); } }

.cities { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.city-h { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.city-h .ico { width: 1.35rem; height: 1.35rem; color: var(--primary); flex: none; }
.city-h strong { font: 500 1.5rem/1.1 var(--font-display); }
.city-h span { margin-left: auto; font-size: .8125rem; color: var(--muted); background: var(--tint); border-radius: 999px; padding: .15rem .6rem; }
.city ul { list-style: none; padding: 0; margin: 0; display: grid; }
.city ul li { padding: .7rem 0 .7rem 1.95rem; border-bottom: 1px solid var(--line); position: relative; line-height: 1.45; }
.city ul li::before { content: ""; position: absolute; left: .55rem; top: 1.25rem; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
@media (min-width: 960px) { .cities { grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; } }
.cgroups > .cg.pre.in { transition: opacity .7s var(--ease) var(--d, 0ms), transform .85s var(--ease) var(--d, 0ms), border-color .3s var(--ease), box-shadow .35s var(--ease), translate .35s var(--ease); }

/* ===== v4.8: portret, nowe zdjęcia, czytelność ===== */
/* Odznaka z portretem na zdjęciu głównym */
.hero-badge { position: absolute; left: .9rem; bottom: .9rem; right: .9rem; z-index: 4; display: flex; align-items: center; gap: .75rem; max-width: 20rem;
  padding: .55rem .9rem .55rem .55rem; background: rgba(255,255,255,.94); border-radius: 999px; box-shadow: 0 16px 34px -20px rgba(27,46,36,.6); backdrop-filter: blur(6px); }
.hero-badge img { width: 2.9rem; height: 2.9rem; border-radius: 50%; object-fit: cover; flex: none; transform: none !important; }
.hero-badge span { display: grid; line-height: 1.25; }
.hero-badge strong { font-size: .95rem; }
.hero-badge small { font-size: .78rem; color: var(--muted); }
.anim .hero-badge { animation: fadeUp .8s var(--ease) 1.3s both; }

/* Lista dolegliwości z miniaturami */
.issues a { grid-template-columns: 4.5rem 1fr auto; column-gap: 1rem; align-items: center; }
.iss-img { grid-row: 1 / span 2; grid-column: 1; width: 4.5rem; height: 4.5rem; border-radius: 6px; overflow: hidden; background: var(--tint); }
.iss-img img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease); }
.issues a:hover .iss-img img { scale: 1.12; }
.issues h3 { grid-column: 2; align-self: end; }
.issues p { grid-column: 2; align-self: start; font-size: .95rem; }
.issues .arr { grid-column: 3; }

/* Zabiegi: trzy karty ze zdjęciem */
.gal3 { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem; }
.gal3 li { display: grid; gap: .5rem; align-content: start; }
.gal3 figure { margin: 0 0 .6rem; }
.gal3 img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.gal3 p { color: var(--muted); }
@media (min-width: 640px) { .gal3 { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } .gal3 img { aspect-ratio: 3 / 4; } }
@media (min-width: 960px) { .gal3 { gap: 2rem; } }

/* Cennik: zdjęcie i podpowiedź z portretem */
.price-fig { margin: .75rem 0 0; }
.price-fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.price-note, .who-call { display: flex; align-items: center; gap: .85rem; }
.price-note img, .who-call img { width: 3.25rem; height: 3.25rem; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px var(--tint-2); }
.price-note { font-size: .95rem; background: var(--tint); border-radius: var(--r); padding: .8rem 1rem; }
.who-call { color: var(--muted); line-height: 1.45; }
.who-call strong { color: var(--ink); }
@media (max-width: 959px) { .price-fig { display: none; } }

/* Portret: delikatna rama i miękki cień */
.visit-img img[src*="marek-portret"], .solo img[src*="marek-portret"] { object-position: 50% 20%; }
.about-hero .visit-img { box-shadow: 0 30px 60px -36px rgba(27,46,36,.65); border-radius: 6px; }

/* Czytelność: krótsze wiersze, mocniejszy kontrast pomocniczego tekstu */
:root { --muted: #45544B; }
.section .muted, .sec-head p { max-width: 42rem; }
.lead { line-height: 1.5; }
p, li, dd { overflow-wrap: break-word; }
::view-transition-group(marek) { animation-duration: .65s; animation-timing-function: cubic-bezier(.2,.7,.2,1); z-index: 10; }
::view-transition-old(marek), ::view-transition-new(marek) { height: 100%; object-fit: cover; }
.about-hero img[data-vt] { view-transition-name: marek; }

/* =====================================================================
   v5 – własny styl Fizji: bezszeryfowe fonty, zaokrąglone karty,
   ciemnozielone panele, pływające menu. Nadpisuje wcześniejsze reguły.
   ===================================================================== */
:root {
  --font-display: "Bricolage Grotesque", "Figtree", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --deep: #0F2E1C; --deep-2: #17432A; --on-deep: #EAF6EE; --on-deep-muted: #B6CDBF; --neon: #6DC7A6;
  --r: 14px; --r-lg: 24px;
  --bg: #F7FAF7;
}
h1, h2 { font-weight: 650; letter-spacing: -0.03em; }
h1 { line-height: 1.04; }
h2 { line-height: 1.08; }
h3 { font-weight: 650; }
main h2:not([style])::before { content: ""; display: block; width: 2.4rem; height: 5px; border-radius: 3px; background: var(--accent); margin-bottom: 1rem; }
.btn { border-radius: 999px; }
.btn-primary { background: var(--deep); }
.btn-primary:hover { background: var(--deep-2); }

/* Menu: bez paska z danymi, pływająca „pigułka” */
.topbar { display: none !important; }
.site-header { background: transparent; border-bottom: 0; top: calc(env(safe-area-inset-top, 0px) + .5rem); margin-top: .5rem; }
.site-header .header-row { background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 999px; min-height: 3.75rem; padding: .35rem .45rem .35rem 1.1rem; width: calc(100% - 2 * var(--gutter) + 1.5rem); max-width: 76.5rem; transition: box-shadow .3s var(--ease); }
.site-header.scrolled { box-shadow: none; }
.site-header.scrolled .header-row { box-shadow: 0 16px 36px -24px rgba(15,46,28,.55); }
.scroll-progress { left: 1.5rem; right: 1.5rem; bottom: -4px; height: 3px; border-radius: 3px; }
.wm-logo { height: 2.25rem; }
.site-header .wm-sub { border-left: 0; padding-left: 0; letter-spacing: .04em; text-transform: none; font-size: .78rem; gap: .1rem; }
.site-header .wm-sub span:first-child { font-weight: 500; }
.nav-toggle { border-radius: 999px; }
@media (max-width: 959px) {
  .nav { top: calc(100% + .5rem); left: var(--gutter); right: var(--gutter); border: 1px solid var(--line); border-radius: 22px; padding: .5rem 1.1rem 1.1rem; box-shadow: 0 24px 50px -28px rgba(15,46,28,.55); }
  .nav a.tab { border-bottom-color: var(--line); }
}
@media (min-width: 960px) {
  .header-row { min-height: 4rem; }
  .nav ul { gap: .2rem; }
  .nav a.tab { padding: .6rem .95rem; border-radius: 999px; isolation: isolate; transition: background-color .25s var(--ease), color .2s; }
  .nav a.tab::after { display: none; }
  .nav a.tab:hover { background: var(--tint); }
  .nav a.tab[aria-current="page"] { color: var(--deep); }
  .tab-ind { inset: 0; top: 0; bottom: 0; height: auto; z-index: -1; border-radius: 999px; background: var(--tint-2); }
}
@media (min-width: 960px) and (max-width: 1140px) { .nav a.tab { padding: .55rem .6rem; } }

/* Ciemne panele: strona główna, nagłówki podstron, „Pierwsza wizyta”, „O mnie” */
.hero { padding-block: 1rem 3rem; }
.hero .hero-grid, .page-head .wrap, .visit-hero .visit-hero-grid { background: radial-gradient(120% 140% at 100% 0%, var(--deep-2) 0%, var(--deep) 55%); color: var(--on-deep); border-radius: var(--r-lg); padding: clamp(1.5rem, 4.5vw, 3.75rem); width: calc(100% - 2 * var(--gutter)); max-width: 73rem; }
.hero h1, .page-head h1, .visit-hero h1 { color: #fff; }
.hero .loc, .page-head .crumbs, .visit-hero .crumbs, .page-head .crumbs a, .visit-hero .crumbs a { color: var(--neon); }
.hero .lead, .page-head .lead, .visit-hero .lead, .page-head .small { color: var(--on-deep-muted); }
.hero .trust { border-top-color: rgba(255,255,255,.14); color: var(--on-deep-muted); }
.hero .trust li { border-right-color: rgba(255,255,255,.14); }
.hero .trust strong { color: #fff; }
.hero .btn-line, .visit-hero .btn-line { color: #fff; border-color: rgba(255,255,255,.35); }
.hero .btn-line:hover, .visit-hero .btn-line:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.page-head { border-bottom: 0; padding-block: 1rem clamp(1.5rem, 4vw, 2.5rem); }
.page-head::after { content: none !important; }
.visit-hero { border-bottom: 0; padding-block: 1rem clamp(2rem, 5vw, 3.5rem); }
.visit-facts { border-top: 0; gap: .6rem; }
.visit-facts div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: .75rem 1rem; }
.visit-facts dt { color: var(--neon); }
.visit-facts dd { color: #fff; }
.visit-hero .todo, .hero .todo { color: var(--ink); }
.about-hero .visit-img { box-shadow: none; }
@media (min-width: 960px) { .hero .hero-grid { align-items: center; } }

/* Zdjęcia: większe zaokrąglenia */
.para, .story-frame, .hero-img img, .story-inline img, .tiles a, .iss-img, .cv-banner figure { border-radius: 20px; }
.visit-img.para, .hero-img.para { border-radius: 20px; }
.duo-b { border-radius: 18px; }

/* Lista dolegliwości jako karty */
.issues { border-top: 0; gap: .75rem; }
.issues li { border-bottom: 0; }
.issues a { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: .85rem 1rem .85rem .85rem; transition: border-color .3s var(--ease), translate .35s var(--ease), box-shadow .35s var(--ease); }
.issues a::before { border-radius: inherit; }
.issues a:hover { border-color: var(--primary); translate: 0 -3px; box-shadow: 0 18px 34px -26px rgba(15,46,28,.5); }
@media (min-width: 960px) { .issues { column-gap: .75rem; } .issues a:hover { padding-left: .85rem; padding-right: 1rem; } }
.iss-img { border-radius: 12px; }

/* Pierwsza wizyta (strona główna): kroki jako karty */
.journey-steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem 1.25rem 1.25rem 3rem; }
.journey-steps .dot { left: 1.1rem; top: 1.5rem; }
.journey-track::before, .journey-line { display: none; }
@media (min-width: 960px) { .journey-steps li { padding: 3rem 1.25rem 1.4rem; } .journey-steps .dot { left: 1.25rem; top: 1.25rem; } }

/* Pas z liczbami: ciemny */
.facts-band { background: var(--deep); border: 0; color: var(--on-deep); }
.facts-grid b { color: var(--neon); }
.facts-grid span { color: var(--on-deep-muted); }

/* Pas rezerwacji: zaokrąglony ciemny panel */
.cta-band { background: transparent; padding-block: clamp(2rem, 5vw, 3.5rem); }
.cta-band .wrap { background: var(--deep); color: var(--on-deep); border-radius: var(--r-lg); padding: clamp(1.75rem, 5vw, 3.5rem); width: calc(100% - 2 * var(--gutter)); max-width: 73rem; position: relative; overflow: hidden; isolation: isolate; }
.cta-band::before { content: none; }
.cta-band .wrap::before { content: ""; position: absolute; z-index: -1; width: 70vmax; height: 70vmax; border-radius: 50%; background: radial-gradient(circle, rgba(109,199,166,.22), rgba(109,199,166,0) 60%); right: -25vmax; top: -30vmax; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--on-deep-muted); }
.cta-band .phone { color: #fff; }
.cta-band .btn-line { color: #fff; border-color: rgba(255,255,255,.35); }

/* Karty: cennik, FAQ, informacje praktyczne, formularz */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: .25rem clamp(.9rem, 2.5vw, 1.75rem) .75rem; }
.prices { border-top: 0; }
.faq { border-top: 0; display: grid; gap: .6rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 1.15rem; transition: border-color .25s var(--ease); }
.faq details[open] { border-color: var(--primary); }
.faq summary:hover { padding-left: 0; }
.visit-day { border-top: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: .25rem 1.4rem; }
.visit-day div:last-child { border-bottom: 0; }
.form, .bk-picker, .bk-form, .bk-done, .cv-card, .cg { border-radius: 20px; }
.bk-summary { border-radius: 20px; }
.bk-service-body, .bk-slot, .bk-day, .prep-list label { border-radius: 14px; }
input, textarea { border-radius: 12px; }
.principles li, .steps li { border-top-width: 0; background: var(--surface); border-radius: 18px; padding: 1.25rem; }
.facts-list { border-top: 0; }
.bio-stats { border-top: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem 1.25rem; }
.cities { border-top: 0; }
.tags li { border-radius: 999px; }

/* Stopka i dolny pasek na telefonie */
.site-footer { border-top: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.mobile-bar { left: .6rem; right: .6rem; bottom: calc(.6rem + env(safe-area-inset-bottom, 0px)); padding: .45rem; border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 18px 40px -20px rgba(15,46,28,.55); background: rgba(255,255,255,.95); backdrop-filter: blur(10px); }
.to-top { bottom: calc(5.6rem + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 960px) { .to-top { bottom: 1.5rem; } }

/* Ruch: panele nagłówków lekko „wjeżdżają” przy wejściu na stronę */
@keyframes panelIn { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
.anim .hero .hero-grid, .anim .page-head .wrap, .anim .visit-hero .visit-hero-grid { animation: panelIn .8s var(--ease) both; }
.hero-badge { color: var(--ink); }
.site-header .header-row { position: relative; }
.site-header .scroll-progress { left: 1.75rem; right: 1.75rem; bottom: -1px; height: 2px; border-radius: 2px; }

/* ===== v5.1: fakty z ikonami zamiast kafelków; lista „Co zabrać” jako jedna karta ===== */
.visit-meta { list-style: none; margin: 0; padding: 1.25rem 0 0; display: grid; gap: .9rem 1.75rem; border-top: 1px solid rgba(255,255,255,.12); }
.visit-meta li { display: flex; align-items: center; gap: .8rem; color: #fff; font-weight: 500; line-height: 1.35; }
.visit-meta svg { width: 2.5rem; height: 2.5rem; padding: .55rem; border-radius: 50%; background: rgba(109,199,166,.12); color: var(--neon); flex: none; }
@media (min-width: 640px) { .visit-meta { grid-template-columns: 1fr 1fr; } }
.anim .visit-meta li { animation: fadeUp .7s var(--ease) both; }
.anim .visit-meta li:nth-child(1) { animation-delay: .6s; } .anim .visit-meta li:nth-child(2) { animation-delay: .68s; }
.anim .visit-meta li:nth-child(3) { animation-delay: .76s; } .anim .visit-meta li:nth-child(4) { animation-delay: .84s; }

.prep-fig { margin: 1rem 0 0; }
.prep-fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
@media (max-width: 959px) { .prep-fig { display: none; } }
.prep-sheet { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 34px 60px -44px rgba(15,46,28,.5); overflow: hidden; align-self: start; }
.prep-sheet .prep-meter { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .7rem 1rem; max-width: none; margin: 0; padding: 1.3rem 1.5rem 1.2rem; border-bottom: 1px solid var(--line); }
.pm-title { font: 650 1.25rem/1.2 var(--font-display); letter-spacing: -.02em; }
.prep-sheet .pm-txt { grid-column: 2; grid-row: 1; font-variant-numeric: tabular-nums; }
.prep-sheet .pm-bar { grid-column: 1 / -1; height: 5px; }
.prep-sheet .prep-list { gap: 0; padding: .3rem 0 .4rem; }
.prep-sheet .prep-list li + li label { border-top: 1px solid var(--line); }
.prep-sheet .prep-list label { border: 0; border-radius: 0; background: transparent; padding: 1.05rem 1.5rem; transform: none !important; transition: background-color .25s var(--ease); }
.prep-sheet .prep-list label:hover { background: var(--tint); }
.prep-sheet .box { border-radius: 50%; width: 1.9rem; height: 1.9rem; }
.prep-sheet .pl-t strong { transition: color .3s var(--ease); text-decoration-line: line-through; text-decoration-color: transparent; text-decoration-thickness: 2px; transition: text-decoration-color .35s var(--ease), color .3s var(--ease); }
.prep-sheet input:checked ~ .pl-t strong { color: var(--muted); text-decoration-color: var(--primary); }
.prep-sheet input:checked ~ .pl-t small { opacity: .7; }

/* ===== v5.2: jasne nagłówki stron zamiast ciemnych paneli ===== */
.hero .hero-grid, .page-head .wrap, .visit-hero .visit-hero-grid { background: none; color: inherit; border-radius: 0; padding: 0 var(--gutter); width: 100%; max-width: 75rem; }
.anim .hero .hero-grid, .anim .page-head .wrap, .anim .visit-hero .visit-hero-grid { animation: none; }
.hero h1, .page-head h1, .visit-hero h1 { color: var(--ink); }
.hero .loc, .page-head .crumbs, .visit-hero .crumbs { color: var(--muted); }
.page-head .crumbs a, .visit-hero .crumbs a { color: var(--muted); }
.hero .lead, .page-head .lead, .visit-hero .lead, .page-head .small { color: var(--muted); }
.hero .trust { border-top-color: var(--line); color: var(--muted); }
.hero .trust li { border-right-color: var(--line); }
.hero .trust strong { color: var(--ink); }
.hero .btn-line, .visit-hero .btn-line { color: var(--ink); border-color: var(--line-strong); }
.hero .btn-line:hover, .visit-hero .btn-line:hover { border-color: var(--ink); background: transparent; }
.visit-meta { border-top-color: var(--line); }
.visit-meta li { color: var(--ink); }
.visit-meta svg { background: var(--tint-2); color: var(--primary); }

/* Strona główna: nagłówek na całą szerokość, panorama pod spodem */
.hero { padding-block: clamp(2rem, 6vw, 4.5rem) 2rem; }
.hero h1 { font-size: clamp(2.6rem, 1.6rem + 4.6vw, 5.6rem); max-width: 17ch; letter-spacing: -.04em; }
.hero-img img { aspect-ratio: 4 / 3; }
@media (min-width: 960px) {
  .hero .hero-grid { grid-template-columns: 1.15fr 1fr; grid-template-areas: "loc loc" "h1 h1" "lead act" "lead trust" "img img"; column-gap: 4.5rem; row-gap: 1.4rem; align-items: start; }
  .hero .hero-grid > .stack { display: contents; }
  .hero .loc { grid-area: loc; }
  .hero h1 { grid-area: h1; margin-bottom: .6rem; }
  .hero .lead { grid-area: lead; max-width: 34rem; }
  .hero .cta-row { grid-area: act; justify-self: start; }
  .hero .trust { grid-area: trust; padding-top: 1rem; }
  .hero-img { grid-area: img; margin-top: 2rem; }
  .hero-img img { aspect-ratio: 21 / 9; }
  .hero-img .hero-badge { left: 1.5rem; bottom: 1.5rem; }
}

/* O mnie / Pierwsza wizyta: zdjęcie dochodzi do prawej krawędzi ekranu */
.visit-hero { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2.5rem, 6vw, 4.5rem); }
@media (min-width: 960px) {
  .visit-hero .visit-hero-grid { grid-template-columns: 6fr 5fr; gap: 4.5rem; }
  .visit-hero .visit-img { margin-right: calc((min(100vw, 75rem) - 100vw) / 2 - var(--gutter)); border-radius: 28px 0 0 28px; }
  .visit-hero .visit-img img { aspect-ratio: 5 / 6; }
}

/* Pozostałe podstrony: tytuł po lewej, opis po prawej */
.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem); }
.page-head h1 { font-size: clamp(2.6rem, 1.8rem + 3.6vw, 4.75rem); letter-spacing: -.04em; }
@media (min-width: 960px) {
  .page-head .wrap { grid-template-columns: 1.1fr 1fr; column-gap: 4rem; align-items: end; }
  .page-head .crumbs { grid-column: 1 / -1; }
  .page-head .lead, .page-head .small { grid-column: 2; grid-row: 2; padding-bottom: .45rem; }
}
@media (min-width: 960px) { .hero .cta-row { justify-self: stretch; flex-wrap: nowrap; } .hero h1 { font-size: clamp(2.6rem, 1.4rem + 4vw, 5rem); } }
@media (min-width: 960px) { .hero .hero-grid { grid-template-columns: 1fr 1fr; column-gap: 3.5rem; } .hero .cta-row { flex-wrap: wrap; } .hero .cta-row .btn { white-space: nowrap; } }

/* ===== v5.3: granat zamiast ciemnej zieleni (kontrast z zielenią logo, kolor zaufania) ===== */
:root {
  --deep: #1C2541;        /* granat – pasy i ciemne przyciski */
  --deep-2: #283463;
  --on-deep: #EEF1F8;
  --on-deep-muted: #B8C1D9;
  --ink: #1B2232;         /* tekst: chłodna grafitowo-granatowa czerń */
  --muted: #4A5468;
  --line: #DCE3EA;
  --line-strong: #98A3B5;
}
.site-header.scrolled .header-row, .issues a:hover, .mobile-bar, .prep-sheet, .hero-badge { box-shadow: 0 18px 38px -26px rgba(28,37,65,.55); }
.cta-band .wrap::before { background: radial-gradient(circle, rgba(109,199,166,.2), rgba(109,199,166,0) 60%); }

/* ===== v5.4: jasne pasy (lodowy błękit) zamiast granatu ===== */
:root { --sky: #EAF0FB; --sky-2: #DCE6F8; }
.facts-band { background: var(--sky); color: var(--ink); }
.facts-grid b { color: var(--primary); }
.facts-grid span { color: var(--muted); }
.cta-band .wrap { background: var(--sky); color: var(--ink); }
.cta-band .wrap::before { background: radial-gradient(circle, rgba(109,199,166,.28), rgba(109,199,166,0) 62%); }
.cta-band h2, .cta-band .phone { color: var(--ink); }
.cta-band p { color: var(--muted); }
.cta-band .btn-line { color: var(--ink); border-color: var(--line-strong); }
.cta-band .btn-line:hover { border-color: var(--ink); }
.btn-primary { background: var(--sky-2); color: var(--ink); }
.btn-primary:hover { background: #CCDAF4; }

/* ===== v5.6: kolory liczone od zieleni z wizytówki (#6DC7A6, ten sam odcień i nasycenie) ===== */
:root { --brand: #6DC7A6; --brand-strong: #399372; }
.facts-grid b, .bio-stats dd, .cv-stats dd, .cv-n, .pc-num, .story-num, .story.js .story-step.is-active .num, .steps li::before, .journey-steps .dot { color: var(--brand-strong); }
.journey-steps .dot { border-color: var(--brand); }
.journey-steps .dot::after, .prep-list input:checked + .box, .bk-day.sel, .bk-slot.sel, .bk-service input:checked + .bk-service-body::before { background: var(--brand); border-color: var(--brand); }
.bk-day.sel, .bk-slot.sel { color: var(--ink); }
.bk-service input:checked + .bk-service-body { border-color: var(--brand); }
.prep-sheet input:checked ~ .pl-t strong { text-decoration-color: var(--brand); }
.pm-bar i, .prep-meter.done .pm-bar i, .sp-fill, .journey-line, .scroll-progress { background: var(--brand); }
.box { color: var(--ink); }
.faq details[open] { border-color: var(--brand); }
.issues a:hover { border-color: var(--brand); }
.visit-meta svg { color: var(--brand-strong); }
.tags li:hover { border-color: var(--brand); }
.city-h .ico, .cg .ico { color: var(--brand-strong); }
/* pasy w jasnej mięcie z palety klienta zamiast błękitu */
:root { --sky: #E0F3EC; --sky-2: #CFEDE2; }
.btn-primary:hover { background: #BFE6D7; }

/* ===== v5.9: bliżej wizytówki – pełna zieleń #6DC7A6 z białym tekstem, czysta biel, neutralne szarości ===== */
:root {
  --bg: #FFFFFF; --surface: #FFFFFF;
  --ink: #1E1E1E; --muted: #5C5C5C; --line: #E3E8E6; --line-strong: #A5ACA9;
  --accent: #6DC7A6; --accent-hover: #5DBB98; --on-accent: #FFFFFF;
  --tint: #F0F8F5; --tint-2: #E2F3EC;
}
.btn-accent { color: #fff; font-weight: 700; }
.btn-accent:hover { box-shadow: 0 12px 24px -12px rgba(109,199,166,.75); }
.site-header .header-row { background: rgba(255,255,255,.95); }
/* Pasy jak dolny pas wizytówki */
.facts-band { background: var(--brand); color: #fff; }
.facts-grid b { color: #fff; }
.facts-grid span { color: rgba(255,255,255,.92); }
.cta-band .wrap { background: var(--brand); color: #fff; }
.cta-band .wrap::before { background: radial-gradient(circle, rgba(255,255,255,.22), rgba(255,255,255,0) 60%); }
.cta-band h2, .cta-band .phone { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); }
.cta-band h2::before { background: #fff; }
.cta-band .btn-accent { background: #fff; color: #2D765B; }
.cta-band .btn-accent:hover { background: #F3FBF8; }
.cta-band .btn-line { color: #fff; border-color: rgba(255,255,255,.7); }
.cta-band .btn-line:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-primary { background: var(--tint-2); color: var(--ink); }
.site-footer { background: var(--tint); }
.hero .loc, .wm-sub, .site-header .wm-sub span:first-child { color: #818181; }
