/* =========================================================================
   Gabinet Kto tam? – arkusz stylów strony
   ========================================================================= */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin.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: "Montserrat";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin-ext-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: "Montserrat";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin-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;
}

:root {
  --navy: #353668;
  --navy-soft: #5b5c8a;
  --muted: #73748f;
  --cyan: #00b8d8;
  --cyan-strong: #0095b3;
  --cyan-light: #56c6e3;
  --cyan-tint: #e6f7fb;
  --peach: #ffa17e;
  --peach-tint: #fff1eb;
  --purple: #7071b9;
  --line: #e3e3ec;
  --line-strong: #cecece;
  --soft: #f6f7fb;
  --white: #fff;
  --radius: 16px;
  --wrap: min(1600px, 80%);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --header-h: 104px;
  color-scheme: light;
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}
body {
  min-width: 320px;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; cursor: pointer; }
ul[class], ol[class] { list-style: none; }
strong, b { font-weight: 600; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--peach); color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 18px; border-radius: 999px;
  background: var(--navy); color: #fff; transition: top .2s;
}
.skip-link:focus { top: 16px; }
.icon { width: 1.2em; height: 1.2em; flex: none; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px;
  background: var(--cyan-strong); color: #fff;
  font-size: 15px; font-weight: 500; letter-spacing: .02em; line-height: 1.2;
  box-shadow: 0 10px 24px -12px rgba(0, 149, 179, .75);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s, color .25s, border-color .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); background: #0089a5; box-shadow: 0 16px 30px -14px rgba(0, 137, 165, .8); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .icon { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--cyan); box-shadow: none; padding: 13px 26px; }
.btn-outline:hover { background: var(--cyan-tint); color: var(--navy); box-shadow: none; }
.btn-ghost { background: var(--soft); color: var(--navy); box-shadow: none; }
.btn-small { padding: 10px 18px; font-size: 14px; }

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.5) blur(12px);
  backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid var(--line-strong);
  transition: box-shadow .4s var(--ease-soft);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(53, 54, 104, .35); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-right: clamp(16px, 3vw, 60px);
}
.logo { display: block; padding: 40px clamp(20px, 4.2vw, 80px); transition: padding .5s var(--ease); }
.logo img { width: 226px; transition: width .5s var(--ease); }
.is-scrolled .logo { padding-top: 14px; padding-bottom: 14px; }
.is-scrolled .logo img { width: 176px; }

.site-nav { display: flex; align-items: center; }
.site-nav ul { display: flex; align-items: center; list-style: none; }
.site-nav ul a {
  position: relative; display: block;
  padding: 10px clamp(12px, 1.8vw, 35px);
  font-size: 18px; font-weight: 400; text-transform: uppercase; letter-spacing: .01em;
  transition: color .25s;
}
.site-nav ul a::after {
  content: ""; position: absolute; left: clamp(12px, 1.8vw, 35px); right: clamp(12px, 1.8vw, 35px); bottom: 2px;
  height: 3px; border-radius: 3px; background: var(--peach);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.site-nav ul a:hover::after, .site-nav ul a[aria-current]::after { transform: scaleX(1); }
.site-nav ul a[aria-current] { font-weight: 600; }
.nav-fb {
  display: grid; place-items: center; width: 44px; height: 44px; margin-left: 12px;
  border-radius: 50%; background: var(--navy); color: #fff;
  transition: transform .35s var(--ease), background-color .25s;
}
.nav-fb:hover { transform: translateY(-2px) rotate(-6deg); background: var(--cyan-strong); }
.nav-fb .icon { width: 22px; height: 22px; }
.nav-contact { display: none; }

.nav-toggle { display: none; position: relative; z-index: 70; width: 48px; height: 48px; border-radius: 50%; }
.nav-toggle-box { position: absolute; inset: 15px 12px; }
.nav-toggle-box span {
  position: absolute; left: 0; width: 100%; height: 2.5px; border-radius: 2px; background: var(--navy);
  transition: transform .45s var(--ease), opacity .25s, top .45s var(--ease);
}
.nav-toggle-box span:nth-child(1) { top: 0; }
.nav-toggle-box span:nth-child(2) { top: 8px; }
.nav-toggle-box span:nth-child(3) { top: 16px; }
.nav-open .nav-toggle-box span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.nav-open .nav-toggle-box span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.nav-open .nav-toggle-box span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

/* ---------- Układ ---------- */
.page { position: relative; overflow-x: clip; }
main { position: relative; z-index: 5; display: flex; flex-direction: column; align-items: center; }
.content-main { width: var(--wrap); padding: 50px 0 100px; position: relative; }
.content-main + .content-main { padding-top: 0; }

.section-title { position: relative; padding-bottom: 40px; }
.section-title::after {
  content: ""; position: absolute; left: 0; bottom: 30px; width: 100px; height: 5px; border-radius: 3px;
  background: var(--peach); transform-origin: left;
}
.section-title h1, .section-title h2 { font-size: clamp(30px, 3.4vw, 48px); font-weight: 400; line-height: 1.15; letter-spacing: -.01em; }
.section-title.light::after { background: #fff; }

/* ---------- Dekoracyjne linie ---------- */
.decor { position: absolute; z-index: 0; pointer-events: none; fill: none; stroke-width: 18; stroke-linecap: round; overflow: visible; }
.decor-left { top: 100px; left: min(0px, calc(10vw - 176px)); width: 169px; height: 756px; }
.decor-bottom { right: 0; bottom: 0; width: 550px; height: 380px; }
.d-purple { stroke: var(--purple); }
.d-cyan { stroke: var(--cyan); }
.d-peach { stroke: var(--peach); }

/* ---------- Treść z edytora ---------- */
.rich { font-size: 18px; hyphens: auto; -webkit-hyphens: auto; }
.rich > :last-child { padding-bottom: 0; margin-bottom: 0; }
.rich p { line-height: 1.78; padding-bottom: 14px; font-weight: 300; text-align: justify; }
.rich strong { font-weight: 600; }
.rich em { font-style: italic; }
.rich u { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rich a { color: var(--cyan-strong); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(0, 149, 179, .35); text-underline-offset: 4px; transition: text-decoration-color .25s; }
.rich a:hover { text-decoration-color: currentColor; }
.rich h2 { font-size: clamp(24px, 2.2vw, 30px); font-weight: 500; line-height: 1.25; margin: 26px 0 12px; }
.rich h3 { font-size: clamp(20px, 1.8vw, 24px); font-weight: 500; line-height: 1.3; margin: 22px 0 10px; }
.rich h4 { font-size: 19px; font-weight: 600; line-height: 1.35; margin: 18px 0 8px; }
.rich > :first-child { margin-top: 0; }
.rich ul, .rich ol { padding: 4px 0 28px 18px; }
.rich li { position: relative; padding: 7px 0 7px 30px; line-height: 1.6; text-align: left; font-weight: 300; list-style: none; }
.rich ul > li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 2.5px, var(--peach) 3px 4.5px, #fff 5px 5.5px, var(--purple) 6px 7px);
}
.rich ol { counter-reset: li; }
.rich ol > li { counter-increment: li; }
.rich ol > li::before {
  content: counter(li); position: absolute; left: 0; top: 8px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 600; color: #fff; background: var(--peach);
}
.rich li ul, .rich li ol { padding-bottom: 0; padding-top: 4px; }
.rich .ta-center { text-align: center; }
.rich .ta-right { text-align: right; }
.rich .ta-justify { text-align: justify; }
.c-cyan { color: #0098b6; }
.c-purple { color: #6b6cb5; }
.c-peach { color: #e9805a; }
.c-gray { color: #73748f; }
.lead p { font-size: 19px; }

/* ---------- Strona główna ---------- */
.hero { width: 100%; display: flex; align-items: center; justify-content: space-between; overflow: hidden; position: relative; z-index: 2; }
.hero-text { width: 50%; max-width: 760px; padding: 40px 40px 40px clamp(24px, 13.9vw, 200px); }
.hero-heading { font-weight: 400; }
.hero-overname { display: block; font-size: 20px; font-weight: 500; letter-spacing: .04em; line-height: 1.6; }
.hero-title { display: block; font-size: clamp(34px, 3.2vw, 48px); font-weight: 400; line-height: 1.2; padding: 20px 0; letter-spacing: -.01em; }
.hero-desc { padding-bottom: 32px; }
.hero-desc p { font-size: 18px; line-height: 28px; text-align: left; font-weight: 300; }
.hero-desc strong { font-weight: 600; }
.hero-image { width: 50%; }
.hero-image img { width: 100%; }

.blue-box { width: 100%; position: relative; z-index: 5; color: #fff; background: #00b8d8 url("../img/blue-bg.jpg") center / cover no-repeat; overflow: hidden; }
.blue-inner { width: var(--wrap); margin: 0 auto; padding: 50px 0 20px; }
.blue-desc p { font-size: 18px; line-height: 36px; font-weight: 500; padding-bottom: 16px; text-align: left; }
.blue-desc strong { font-weight: 700; }
.features { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 20px; padding: 24px 0 0; }
.features li { display: flex; flex-direction: column; align-items: center; padding-bottom: 50px; text-align: center; }
.features img { width: clamp(110px, 11vw, 188px); transition: transform .6s var(--ease); }
.features li:hover img { transform: translateY(-8px) rotate(-4deg) scale(1.04); }
.features h3 { font-size: 18px; font-weight: 500; line-height: 1.35; max-width: 210px; padding-top: 15px; }

.strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; padding: 30px 0 0; }
.strip a { position: relative; display: block; height: 250px; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.strip img, .gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .5s; }
.strip a:hover img, .gallery-grid a:hover img { transform: scale(1.06); }
.strip a::after, .gallery-grid a::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(to top, rgba(53, 54, 104, .35), transparent 55%); opacity: 0; transition: opacity .4s;
}
.strip a:hover::after, .gallery-grid a:hover::after { opacity: 1; }

/* ---------- Oferta ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 10px 0 36px; }
.chips a {
  padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 14px; font-weight: 500;
  transition: background-color .25s, border-color .25s, color .25s, transform .3s var(--ease);
}
.chips a:hover { border-color: var(--cyan); background: var(--cyan-tint); transform: translateY(-2px); }
.offer-list { border-top: 1px solid var(--line); }
.offer-item { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 20px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.offer-num { font-size: 44px; font-weight: 300; line-height: 1; color: var(--peach); font-variant-numeric: tabular-nums; }
.offer-item h2 { font-size: clamp(21px, 1.8vw, 26px); font-weight: 500; line-height: 1.3; margin-bottom: 12px; }
.offer-item .rich p { font-size: 17px; }
.offer-item:target { animation: flash 2s var(--ease-soft); }
.cta { padding-top: 44px; }
@keyframes flash { 0%, 30% { background: var(--peach-tint); } 100% { background: transparent; } }

/* ---------- Cennik ---------- */
.price-table { margin: 6px 0 36px; }
.price-head {
  display: flex; justify-content: space-between; gap: 20px; padding: 0 6px 12px;
  border-bottom: 5px solid var(--peach); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.price-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: 20px 6px; border-bottom: 1px solid var(--line); background: #fff; transition: background-color .3s;
}
.price-row:hover { background: var(--soft); }
.price-name { font-size: 18px; font-weight: 400; line-height: 1.45; }
.price-meta { display: flex; align-items: baseline; gap: 18px; flex: none; white-space: nowrap; }
.price-dur { font-size: 15px; color: var(--muted); }
.price-val { min-width: 6.5ch; font-size: 20px; font-weight: 600; text-align: right; color: var(--navy); }
.price-section { display: flex; align-items: center; gap: 18px; padding: 44px 0 12px; }
.price-section h2 { font-size: 22px; font-weight: 500; flex: none; max-width: 80%; }
.price-section::before, .price-section::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--peach), rgba(255, 161, 126, .2)); }
.price-section.align-left::before { display: none; }
.price-section.align-right::after { display: none; }
.price-section.align-right::before { background: linear-gradient(90deg, rgba(255, 161, 126, .2), var(--peach)); }
.price-section.align-center::before { background: linear-gradient(90deg, rgba(255, 161, 126, .2), var(--peach)); }
.price-section.is-empty { padding: 24px 0 0; }
.price-section.is-empty::before { display: block; }
.price-section.is-empty::after { display: none; }
.price-note { font-size: 16px; color: var(--navy-soft); }

/* ---------- O nas ---------- */
.team-nav { display: flex; flex-wrap: wrap; gap: 14px; padding: 4px 0 30px; }
.team-nav a {
  display: grid; grid-template-columns: 64px auto; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  padding: 10px 22px 10px 10px; border-radius: 999px; background: var(--soft);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .3s;
}
.team-nav a:hover { transform: translateY(-3px); background: #fff; box-shadow: 0 14px 30px -18px rgba(53, 54, 104, .45); }
.team-nav-photo { grid-row: 1 / 3; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--cyan-tint); }
.team-nav-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.avatar-fallback { display: grid; place-items: center; width: 100%; height: 100%; font-size: 26px; font-weight: 500; color: var(--cyan-strong); }
.team-nav-name { font-weight: 600; font-size: 15px; align-self: end; }
.team-nav-role { font-size: 13px; color: var(--muted); align-self: start; }

.group-title { padding-top: 70px; }
.person { display: grid; grid-template-columns: minmax(220px, 340px) minmax(0, 1fr); gap: clamp(28px, 4vw, 70px); padding: 60px 0; border-top: 1px solid var(--line); }
.team-nav + .person, .section-title + .person { border-top: 0; }
.person-aside { position: relative; }
.person-photo { position: sticky; top: calc(var(--header-h) + 28px); }
.person-photo::before {
  content: ""; position: absolute; inset: 18px -14px -14px 18px; border-radius: 26px; border: 3px solid var(--peach); z-index: -1;
  transition: transform .8s var(--ease);
}
.person:hover .person-photo::before { transform: translate(-6px, -6px); }
.person-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 24px; background: var(--soft); }
.person-head { padding-bottom: 22px; }
.person-name { font-size: clamp(26px, 2.4vw, 34px); font-weight: 500; line-height: 1.2; }
.person-role { margin-top: 8px; font-size: 16px; font-weight: 500; color: var(--purple); text-transform: uppercase; letter-spacing: .05em; line-height: 1.5; }
.person-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 600; color: var(--cyan-strong); }
.person-link .icon { width: 16px; height: 16px; }
.booking { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 22px; }
.btn-book { padding: 16px 30px; font-size: 16px; font-weight: 600; position: relative; overflow: hidden; }
.btn-book::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg);
  animation: shine 5s var(--ease-soft) 2s infinite;
}
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.booking-via { font-size: 13px; color: var(--muted); }
.person-bio p { font-size: 17px; }
.practice { margin-top: 18px; padding: 26px 28px 14px; border-radius: 20px; background: var(--peach-tint); }
.practice h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.practice ul, .qual-group ul, .safe-toc ol { list-style: none; }
.practice ul { columns: 2 280px; column-gap: 32px; }
.practice li { position: relative; break-inside: avoid; padding: 6px 0 6px 28px; font-size: 16px; line-height: 1.5; }
.practice li::before {
  content: ""; position: absolute; left: 2px; top: 11px; width: 13px; height: 13px; border-radius: 50%;
  background: radial-gradient(circle, var(--peach-tint) 0 2.5px, var(--peach) 3px 6.5px);
}
.quals { margin-top: 26px; }
.quals-toggle {
  display: inline-flex; align-items: center; gap: 14px; min-width: min(300px, 100%); justify-content: space-between;
  padding: 13px 22px; border-radius: 14px; background: var(--cyan-light); color: #fff;
  font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  transition: background-color .3s, border-radius .4s var(--ease), transform .3s var(--ease);
}
.quals-toggle:hover { background: var(--cyan-strong); }
.quals-toggle .icon { width: 20px; height: 20px; transition: transform .5s var(--ease); }
.quals-toggle[aria-expanded="true"] { background: var(--cyan-strong); }
.quals-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.quals-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.quals-panel.is-open { grid-template-rows: 1fr; }
.quals-inner { overflow: hidden; }
.quals-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; padding-top: 18px;
  opacity: 0; transform: translateY(-10px); transition: opacity .45s var(--ease-soft), transform .6s var(--ease);
}
.quals-panel.is-open .quals-grid { opacity: 1; transform: none; transition-delay: .12s; }
.qual-group { padding: 20px 22px; border-radius: 18px; background: var(--soft); }
.qual-group h4 { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan-strong); margin-bottom: 8px; }
.qual-group li { position: relative; padding: 6px 0 6px 18px; font-size: 15px; line-height: 1.5; }
.qual-group li::before { content: ""; position: absolute; left: 0; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--peach); }

/* ---------- Galeria ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 28px; padding-top: 24px; }
.gallery-grid figure { position: relative; }
.gallery-grid a { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.gallery-grid a::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--peach); z-index: 2; transform: scaleX(.0); transform-origin: left; transition: transform .6s var(--ease); }
.gallery-grid a:hover::before { transform: scaleX(1); }
.gallery-grid figcaption { padding: 10px 2px 0; font-size: 15px; font-weight: 500; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;
  background: transparent; color: #fff; overflow: hidden;
}
.lightbox::backdrop { background: rgba(28, 28, 52, .94); }
.lightbox[open] { animation: lbIn .35s var(--ease-soft); }
.lightbox.is-closing { animation: lbOut .25s var(--ease-soft) forwards; }
.lightbox[open]::backdrop { animation: lbIn .35s var(--ease-soft); }
@keyframes lbIn { from { opacity: 0; } }
@keyframes lbOut { to { opacity: 0; } }
.lb-stage { position: absolute; inset: 64px 72px 84px; display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.lb-stage img {
  max-width: min(100%, calc(100vw - 144px)); max-height: min(100%, calc(100dvh - 148px)); width: auto; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  transition: opacity .3s var(--ease-soft), transform .45s var(--ease); user-select: none; -webkit-user-drag: none;
}
.lb-stage img.is-loading { opacity: 0; transform: scale(.97); }
.lb-caption { position: absolute; left: 72px; right: 72px; bottom: 24px; min-height: 40px; text-align: center; font-size: 16px; font-weight: 500; }
.lb-count { position: absolute; left: 24px; top: 22px; font-size: 14px; letter-spacing: .1em; opacity: .8; }
.lb-btn {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff; transition: background-color .25s, transform .3s var(--ease);
}
.lb-btn:hover { background: rgba(255, 255, 255, .24); }
.lb-btn svg { width: 24px; height: 24px; }
.lb-close { top: 12px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) translateX(-3px); }
.lb-next:hover { transform: translateY(-50%) translateX(3px); }
.lb-single .lb-prev, .lb-single .lb-next, .lb-single .lb-count { display: none; }
html.lb-lock, html.nav-lock { overflow: hidden; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.contact-card { padding: clamp(24px, 3vw, 40px); border-radius: 24px; background: var(--soft); }
.contact-name { font-size: 24px; font-weight: 600; margin-bottom: 18px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; padding: 12px 0; font-size: 18px; line-height: 1.5; }
.contact-list .icon { width: 46px; height: 46px; padding: 12px; border-radius: 50%; background: #fff; color: var(--cyan-strong); box-shadow: 0 8px 20px -14px rgba(53, 54, 104, .5); }
.contact-list small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-list a { font-weight: 500; }
.contact-list a:hover { color: var(--cyan-strong); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 22px; }
.contact-actions .btn { padding: 12px 20px; font-size: 14px; }
.contact-extra { margin-top: 24px; }
.contact-extra p { font-size: 16px; text-align: left; }
.map-frame { position: relative; min-height: 440px; border-radius: 24px; overflow: hidden; background: var(--soft); box-shadow: 0 30px 60px -40px rgba(53, 54, 104, .5); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Dokumenty / standardy ---------- */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; padding-top: 18px; }
.doc-grid-single { grid-template-columns: 1fr; padding-top: 0; margin-bottom: 20px; }
.doc-card {
  display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: 20px; background: #fff;
  border: 1.5px solid var(--line); position: relative;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.doc-card:hover { transform: translateY(-4px); border-color: var(--cyan); box-shadow: 0 22px 40px -28px rgba(53, 54, 104, .55); }
.doc-icon {
  position: relative; display: grid; place-items: center; flex: none; width: 58px; height: 64px; border-radius: 14px;
  background: var(--peach-tint); color: #e9805a;
}
.doc-icon .icon { width: 30px; height: 30px; }
.doc-icon span { position: absolute; bottom: -7px; padding: 1px 6px; border-radius: 6px; background: #e9805a; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.doc-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.doc-text strong { font-size: 16px; font-weight: 600; line-height: 1.35; }
.doc-desc { font-size: 14px; line-height: 1.5; color: var(--navy-soft); }
.doc-meta { font-size: 13px; color: var(--muted); }
.doc-go { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--soft); color: var(--cyan-strong); transition: background-color .3s, color .3s, transform .4s var(--ease); }
.doc-go .icon { width: 20px; height: 20px; }
.doc-card:hover .doc-go { background: var(--cyan-strong); color: #fff; transform: translateY(2px); }
.doc-featured { grid-column: 1 / -1; background: linear-gradient(120deg, #00a6c6, #00b8d8 55%, #4fc9e4); color: #fff; border-color: transparent; }
.doc-featured .doc-icon { background: rgba(255, 255, 255, .2); color: #fff; }
.doc-featured .doc-desc, .doc-featured .doc-meta { color: rgba(255, 255, 255, .88); }
.doc-featured .doc-text strong { font-size: 19px; }
.doc-featured .doc-go { background: rgba(255, 255, 255, .22); color: #fff; }
.doc-featured:hover { border-color: transparent; }
.doc-featured:hover .doc-go { background: #fff; color: var(--cyan-strong); transform: translateX(3px); }

.safe-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); gap: clamp(28px, 4vw, 64px); align-items: start; }
.safe-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.safe-box { position: relative; padding: 26px 26px 18px; border-radius: 20px; background: var(--cyan-tint); }
.safe-box p { font-size: 15px; line-height: 1.65; text-align: left; }
.safe-box-icon { width: 36px; height: 36px; color: var(--cyan-strong); margin-bottom: 10px; }
.safe-toc { margin-top: 30px; padding: 28px 30px; border-radius: 20px; border: 1.5px solid var(--line); }
.safe-toc h2 { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.safe-toc ol { counter-reset: toc; }
.safe-toc li { counter-increment: toc; position: relative; padding: 8px 0 8px 40px; border-bottom: 1px dashed var(--line); font-size: 16px; }
.safe-toc li:last-child { border-bottom: 0; }
.safe-toc li::before { content: counter(toc); position: absolute; left: 0; top: 8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--peach-tint); color: #e9805a; font-size: 13px; font-weight: 700; }

.not-found { min-height: 50vh; }

/* ---------- Stopka ---------- */
.site-footer {
  position: relative; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 0 40px; background: #fff; border-top: 1px solid var(--line-strong); font-size: 14px;
}
.footer-left, .footer-right { width: 49%; padding: 46px 0 34px; }
.site-footer p { padding-bottom: 15px; }
.footer-right { text-align: right; }
.footer-right p { text-align: right; }
.site-footer a { font-weight: 500; transition: color .25s; }
.site-footer a:hover { color: var(--cyan-strong); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; padding-bottom: 15px; }
.footer-safe a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--cyan-tint); }
.footer-safe .icon { width: 18px; height: 18px; color: var(--cyan-strong); }
.footer-credits p { padding-bottom: 15px; }

/* =========================================================================
   Animacje (tylko gdy JS działa i użytkownik nie wyłączył ruchu)
   ========================================================================= */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0; transform: translateY(30px);
    transition: opacity 1s var(--ease), transform 1.1s var(--ease);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .js [data-reveal="left"] { transform: translateX(-40px); }
  .js [data-reveal="right"] { transform: translateX(40px); }
  .js [data-reveal="pop"] { transform: translateY(22px) scale(.9); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .section-title::after { transform: scaleX(0); transition: transform 1.1s var(--ease) .3s; }
  .js .section-title.is-in::after { transform: scaleX(1); }

  .js [data-intro] { opacity: 0; animation: introUp 1.1s var(--ease) forwards; animation-delay: calc(.15s + var(--i, 0) * .13s); }
  .js [data-intro="image"] { animation: introImage 1.5s var(--ease) .05s forwards; }
  @keyframes introUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
  @keyframes introImage { from { opacity: 0; transform: translateX(70px) scale(1.03); } to { opacity: 1; transform: none; } }

  .js .decor path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s var(--ease); }
  .js .decor path:nth-child(2) { transition-delay: .25s; }
  .js .decor path:nth-child(3) { transition-delay: .5s; }
  .js .decor.is-in path { stroke-dashoffset: 0; }

  .site-nav ul a, .btn, .doc-card { will-change: auto; }
}

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

/* =========================================================================
   Responsywność
   ========================================================================= */
@media (max-width: 1700px) {
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1360px) {
  .logo { padding: 30px 32px; }
  .logo img { width: 196px; }
  .site-nav ul a { font-size: 16px; padding: 10px 14px; }
  .site-nav ul a::after { left: 14px; right: 14px; }
}

@media (max-width: 1200px) {
  .hero { flex-direction: column; align-items: flex-end; }
  .hero-image { width: 80%; order: 0; }
  .hero-text { width: 100%; max-width: 100%; order: 1; padding: 40px 10% 80px; }
  .strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .strip a { height: 200px; }
  .safe-layout { grid-template-columns: 1fr; }
  .safe-aside { position: static; }
}

@media (max-width: 1100px) {
  :root { --header-h: 76px; }
  .logo, .is-scrolled .logo { padding: 14px 20px; }
  .logo img, .is-scrolled .logo img { width: 150px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 0; z-index: 65; flex-direction: column; align-items: stretch; justify-content: center;
    padding: 96px 32px 40px; background: #fff;
    clip-path: circle(0 at calc(100% - 44px) 38px);
    visibility: hidden; transition: clip-path .7s var(--ease), visibility 0s linear .7s;
  }
  .nav-open .site-nav { clip-path: circle(150% at calc(100% - 44px) 38px); visibility: visible; transition: clip-path .8s var(--ease), visibility 0s; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; }
  .site-nav ul a { font-size: clamp(24px, 6vw, 32px); font-weight: 500; padding: 10px 0; }
  .site-nav ul a::after { left: 0; right: auto; width: 60px; bottom: 6px; }
  .site-nav ul li { opacity: 0; transform: translateX(30px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
  .nav-open .site-nav ul li { opacity: 1; transform: none; transition-delay: calc(.15s + var(--i, 0) * .06s); }
  .nav-fb { margin: 26px 0 0; }
  .nav-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 28px; }
  .nav-contact .btn { font-size: 15px; }
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
}

@media (max-width: 900px) {
  :root { --wrap: calc(100% - 40px); }
  .content-main { padding: 36px 0 70px; }
  .decor-left { display: none; }
  .decor-bottom { width: 300px; height: 207px; }
  .decor { stroke-width: 16; }
  .blue-inner { padding: 40px 0 10px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .features li { padding-bottom: 36px; }
  .features h3 { font-size: 16px; }
  .strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -20px; padding: 24px 20px 6px; scrollbar-width: none; }
  .strip::-webkit-scrollbar { display: none; }
  .strip a { flex: 0 0 72%; height: 240px; scroll-snap-align: center; }
  .person { grid-template-columns: 1fr; padding: 44px 0; }
  .person-aside { max-width: 360px; width: 86%; }
  .person-photo { position: relative; top: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .map-frame { min-height: 340px; }
  .site-footer { flex-direction: column; align-items: stretch; gap: 0; padding: 0 20px; }
  .footer-left, .footer-right { width: 100%; text-align: center; }
  .footer-left { padding-bottom: 10px; }
  .footer-right { padding-top: 10px; border-top: 1px solid var(--line); }
  .footer-right p { text-align: center; }
  .footer-nav { justify-content: center; }
}

@media (max-width: 700px) {
  .hero-image { width: 92%; }
  .hero-text { padding: 26px 20px 56px; }
  .hero-overname { font-size: 16px; }
  .hero-desc p { font-size: 17px; }
  .section-title { padding-bottom: 34px; }
  .section-title::after { bottom: 24px; width: 80px; }
  .rich { font-size: 16.5px; }
  .rich p { text-align: left; line-height: 1.72; }
  .rich ul, .rich ol { padding-left: 0; }
  .lead p { font-size: 17px; }
  .blue-desc p { font-size: 17px; line-height: 1.7; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 6px 20px 30px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chips a { flex: none; }
  .offer-item { grid-template-columns: 1fr; gap: 6px; padding: 28px 0; }
  .offer-num { font-size: 32px; }
  .price-head span:last-child { display: none; }
  .price-row { flex-direction: column; align-items: stretch; gap: 6px; padding: 16px 2px; }
  .price-name { font-size: 16.5px; }
  .price-meta { justify-content: space-between; }
  .price-val { font-size: 18px; }
  .price-section { padding-top: 34px; }
  .price-section h2 { font-size: 19px; }
  .team-nav { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 4px 20px 26px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .team-nav::-webkit-scrollbar { display: none; }
  .team-nav a { flex: none; scroll-snap-align: start; }
  .practice { padding: 22px 20px 10px; }
  .booking { flex-direction: column; align-items: stretch; }
  .btn-book { width: 100%; }
  .booking-via { text-align: center; }
  .quals-toggle { width: 100%; }
  .gallery-grid { gap: 16px; }
  .lb-stage { inset: 60px 8px 96px; }
  .lb-stage img { max-width: calc(100vw - 16px); max-height: calc(100dvh - 156px); }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
  .lb-prev:hover, .lb-next:hover { transform: none; }
  .lb-prev { left: 16px; } .lb-next { right: 16px; }
  .lb-caption { left: 80px; right: 80px; bottom: 26px; font-size: 14px; }
  .contact-list li { font-size: 16.5px; }
  .contact-actions .btn { flex: 1 1 auto; }
  .doc-card { padding: 16px; gap: 14px; }
  .doc-go { display: none; }
}
