/* AleBudka360 v2 — „Kadr po kadrze”. Studio jasne + czerwony dywan + tusz.
   Kroje: Gabarito (tytuły, gigant, ciasny) + Rethink Sans (tekst). */
@font-face { font-family: 'Gabarito'; src: url(/fonts/gabarito-latin.woff2) format('woff2'); font-weight: 400 900; font-display: swap; 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: 'Gabarito'; src: url(/fonts/gabarito-latin-ext.woff2) format('woff2'); font-weight: 400 900; font-display: swap; 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: 'Rethink Sans'; src: url(/fonts/rethink-latin.woff2) format('woff2'); font-weight: 400 800; font-display: swap; 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: 'Rethink Sans'; src: url(/fonts/rethink-latin-ext.woff2) format('woff2'); font-weight: 400 800; font-display: swap; 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; }

:root {
  --tlo: #eceaf0; --tusz: #161219; --czer: #e3112f; --czer-c: #b70c25; --bialy: #fff; --szary: #6c6673; --lila: #dcd8e4;
  --f1: 'Gabarito', 'Arial Narrow', system-ui, sans-serif; --f2: 'Rethink Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: clamp(18px, 4.4vw, 64px); --max: 1360px; --nav: 76px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 90px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
body { margin: 0; background: var(--tlo); color: var(--tusz); font: 400 clamp(16px, 1.08vw, 18px)/1.6 var(--f2); -webkit-font-smoothing: antialiased; overflow-x: clip; }
main, .stopka { overflow-x: clip; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--czer); outline-offset: 3px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--tusz); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
#tresc:focus { outline: none; }
.czer { color: var(--czer); }

/* ---------- typografia ---------- */
.h2 { font: 900 clamp(40px, 6.4vw, 104px)/.9 var(--f1); letter-spacing: -.045em; margin: 0 0 .35em; text-wrap: balance; }
.lead { font-size: clamp(17px, 1.35vw, 22px); line-height: 1.5; max-width: 34em; margin: 0 0 1.2em; }
.etyk { display: inline-flex; align-items: center; gap: .6em; font: 700 13px/1 var(--f2); letter-spacing: .2em; text-transform: uppercase; color: var(--czer); margin: 0 0 1.4em; }
.etyk--jasna { color: #fff; }
.kropka { width: .72em; height: .72em; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 .22em color-mix(in srgb, currentColor 22%, transparent); animation: rec 1.2s steps(2, jump-none) infinite; }
@keyframes rec { 50% { opacity: .25; } }

/* ---------- przyciski ---------- */
.btn { display: inline-flex; align-items: center; gap: .6em; min-height: 54px; padding: 0 1.5em; border-radius: 999px; font: 800 16px/1 var(--f2); text-decoration: none; border: 2px solid transparent; transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .3s; white-space: nowrap; }
.btn svg { width: 20px; height: 20px; flex: none; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:hover { transform: translateY(-2px); }
.btn--czer { background: var(--czer); color: #fff; box-shadow: 0 10px 30px -10px rgba(227, 17, 47, .7); }
.btn--czer:hover { background: var(--czer-c); }
.btn--obrys { border-color: var(--tusz); color: var(--tusz); background: rgba(255, 255, 255, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--obrys:hover { background: var(--tusz); color: #fff; }
.btn--obrys-ciemny { border-color: #fff; color: #fff; }
.btn--obrys-ciemny:hover { background: #fff; color: var(--czer); }
.btn--bialy { background: #fff; color: var(--tusz); }
.btn--bialy:hover { background: var(--tusz); color: #fff; }

/* ---------- nawigacja ---------- */
.nav { position: fixed; z-index: 60; top: 12px; left: 12px; right: 12px; height: 60px; display: flex; align-items: center; gap: 18px; padding: 0 10px 0 14px; border-radius: 18px; transition: background .4s, box-shadow .4s, backdrop-filter .4s; }
.nav, .nav.is-scroll { background: rgba(236, 234, 240, .82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 8px 30px -14px rgba(22, 18, 25, .35); }
.nav__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.nav__logo img { width: 34px; height: auto; }
.nav__logo b { font: 900 22px/1 var(--f1); letter-spacing: -.04em; }
.nav__logo span { color: var(--czer); }
.nav__l { display: flex; gap: 2px; }
.nav__l a { position: relative; padding: 10px 12px; font: 700 15px/1 var(--f2); text-decoration: none; border-radius: 10px; transition: background .25s; }
.nav__l a:hover { background: rgba(22, 18, 25, .07); }
.nav__tel { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--czer); color: #fff; font: 800 15px/1 var(--f2); text-decoration: none; }
.nav__tel svg { width: 18px; height: 18px; }
.nav__burger { display: none; width: 48px; height: 48px; border: 0; border-radius: 14px; background: var(--tusz); position: relative; }
.nav__burger i { position: absolute; left: 14px; right: 14px; height: 2.5px; background: #fff; border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.nav__burger i:first-child { top: 19px; } .nav__burger i:last-child { top: 27px; }
.menu-otw .nav__burger i:first-child { top: 23px; transform: rotate(45deg); }
.menu-otw .nav__burger i:last-child { top: 23px; transform: rotate(-45deg); }
@media (max-width: 1180px) { .nav__l { display: none; } .nav__burger { display: block; } }
@media (max-width: 759px) { .nav { top: 8px; left: 8px; right: 8px; height: 56px; } .nav__tel { width: 48px; padding: 0; justify-content: center; } .nav__tel span { display: none; } .nav__logo b { font-size: 20px; } }

.menu-m { position: fixed; inset: 0; z-index: 55; background: var(--czer); color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 96px var(--pad) calc(28px + env(safe-area-inset-bottom)); clip-path: circle(0% at calc(100% - 44px) 40px); transition: clip-path .55s cubic-bezier(.7, 0, .2, 1); overflow-y: auto; }
.menu-m.is-otw { clip-path: circle(150% at calc(100% - 44px) 40px); }
.menu-m nav { display: flex; flex-direction: column; }
.menu-m nav a { display: flex; align-items: baseline; gap: 14px; padding: 6px 0; font: 900 clamp(34px, 9.5vw, 60px)/1.04 var(--f1); letter-spacing: -.04em; text-decoration: none; opacity: 0; transform: translateY(24px); transition: opacity .4s, transform .5s var(--ease); }
.menu-m nav a small { font: 700 13px/1 var(--f2); letter-spacing: .1em; opacity: .7; }
.menu-m.is-otw nav a { opacity: 1; transform: none; }
.menu-m.is-otw nav a:nth-child(2) { transition-delay: .04s; } .menu-m.is-otw nav a:nth-child(3) { transition-delay: .08s; } .menu-m.is-otw nav a:nth-child(4) { transition-delay: .12s; } .menu-m.is-otw nav a:nth-child(5) { transition-delay: .16s; } .menu-m.is-otw nav a:nth-child(6) { transition-delay: .2s; } .menu-m.is-otw nav a:nth-child(7) { transition-delay: .24s; }
.menu-m__dol { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 30px; }
.menu-m__dol .btn { background: #fff; color: var(--czer); box-shadow: none; }
.menu-m__dol > a:not(.btn) { font-weight: 700; }
.menu-otw .nav { background: transparent; box-shadow: none; backdrop-filter: none; color: #fff; }
.menu-otw .nav__logo span { color: #fff; }
.menu-otw .nav__burger { background: #fff; } .menu-otw .nav__burger i { background: var(--czer); }
.menu-otw .nav__tel { background: #fff; color: var(--czer); }

/* ---------- REC: znak strony (pasek postępu + zegar) ---------- */
.rec { position: fixed; z-index: 50; left: 18px; bottom: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 46px; padding: 12px 0; border-radius: 999px; background: var(--tusz); color: #fff; font: 700 10px/1 var(--f2); letter-spacing: .08em; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5); }
.rec__k { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.rec__k i { width: 10px; height: 10px; border-radius: 50%; background: var(--czer); animation: rec 1s steps(2, jump-none) infinite; }
.rec__szyna { position: relative; width: 3px; height: 120px; border-radius: 3px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.rec__szyna i { position: absolute; inset: 0; background: var(--czer); transform-origin: 50% 0; transform: scaleY(0); }
.rec__czas { writing-mode: vertical-rl; transform: rotate(180deg); font-variant-numeric: tabular-nums; letter-spacing: .06em; font-size: 11px; }
.bez-rec .rec { display: none; }
@media (max-width: 759px) {
  .rec { left: auto; right: 10px; bottom: auto; top: 76px; width: auto; flex-direction: row; padding: 6px 10px; gap: 8px; }
  .rec__k { flex-direction: row; } .rec__szyna { width: 38px; height: 3px; } .rec__szyna i { transform-origin: 0 50%; }
  .rec__czas { writing-mode: horizontal-tb; transform: none; font-size: 10px; }
  .rec { opacity: 0; transition: opacity .4s; pointer-events: none; }
  .za-startem .rec { opacity: 1; }
}

/* ============ HISTORIA (świat kart 3D) ============ */
.story { position: relative; background: var(--tlo); }
.kotwica { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; }
canvas#gl { display: none; }
.stat-foto { display: none; }

/* tryb 3D (decyzja w <head>, zanim cokolwiek się narysuje) */
html.js:not(.bez-3d) .story { height: calc(15.2 * 100vh); }
html.js:not(.bez-3d) .stage { background: var(--tlo); position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
html.js:not(.bez-3d) canvas#gl { display: block; position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s .1s; }
html.js.swiat-gotowy:not(.bez-3d) canvas#gl { opacity: 1; }
html.js:not(.bez-3d) .scena { position: absolute; inset: 0; padding: calc(var(--nav) + 40px) var(--pad) 48px; opacity: var(--v, 0); visibility: hidden; pointer-events: none; }
html.js:not(.bez-3d) .scena.is-on { visibility: visible; }
html.js:not(.bez-3d) .scena.is-pelna > * { pointer-events: auto; }
html.js:not(.bez-3d) .s-hero { --v: 1; }
html.js:not(.bez-3d):not(.gotowe) .s-hero { visibility: visible; }

/* litery w nagłówkach sceny: wyrastają po kolei przy wejściu sceny */
.rozbij .w { display: inline-block; white-space: nowrap; }
.rozbij .l { display: inline-block; }
html.js:not(.bez-3d) .scena .rozbij .l { transform: translateY(.9em) rotate(6deg); opacity: 0; transition: transform .7s var(--ease), opacity .45s; transition-delay: calc(var(--i) * 22ms); }
html.js:not(.bez-3d) .scena.is-pelna .rozbij .l { transform: none; opacity: 1; }

/* --- hero --- */
.s-hero { display: grid; grid-template-rows: auto 1fr auto auto; }
.s-hero .etyk { color: var(--tusz); align-self: start; justify-self: start; position: relative; z-index: 2; background: rgba(236, 234, 240, .9); padding: 7px 14px 7px 10px; border-radius: 99px; margin-left: -10px; }
.s-hero .etyk .kropka { color: var(--czer); }
.hero__t { margin: 0; font: 900 clamp(64px, 13.4vw, 236px)/.8 var(--f1); letter-spacing: -.06em; align-self: center; display: flex; flex-direction: column; text-transform: none; }
.hero__l { align-self: flex-start; }
.hero__r { align-self: flex-end; text-align: right; }
.hero__dol { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 40px; align-items: end; }
.hero__lead { margin: 0; font-size: clamp(17px, 1.4vw, 22px); line-height: 1.45; max-width: 30em; font-weight: 500; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; grid-row: span 2; }
.hero__male { margin: 0; color: var(--szary); font-size: 14px; font-weight: 600; }
.hero__przewin { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; margin: 0; display: flex; align-items: center; gap: 10px; font: 700 12px/1 var(--f2); letter-spacing: .16em; text-transform: uppercase; opacity: calc(1 - var(--wyj, 0) * 4); }
.hero__przewin span { width: 22px; height: 34px; border: 2px solid currentColor; border-radius: 12px; position: relative; }
.hero__przewin span::after { content: ''; position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--czer); animation: kolko 1.6s var(--ease) infinite; }
@keyframes kolko { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }
html.js:not(.bez-3d) .hero__t { mix-blend-mode: difference; color: #fff; }
html.js:not(.bez-3d) .hero__l { translate: calc(var(--wyj, 0) * -60vw) 0; }
html.js:not(.bez-3d) .hero__r { translate: calc(var(--wyj, 0) * 60vw) 0; }
html.js:not(.bez-3d) .hero__dol { translate: 0 calc(var(--wyj, 0) * 30vh); opacity: calc(1 - var(--wyj, 0) * 2.2); }
html.js:not(.bez-3d) .s-hero .etyk { opacity: calc(1 - var(--wyj, 0) * 3); }
html.js:not(.bez-3d) .s-hero { opacity: 1; }
/* w trybie 3D litery hero są widoczne od razu, a wejście robi lot kart */
html.js:not(.bez-3d) .s-hero .rozbij .l { transform: none; opacity: 1; transition: none; }
html.js:not(.bez-3d) .gotowe .s-hero .rozbij .l, html.gotowe:not(.bez-3d) .s-hero .rozbij .l { animation: litera-wej .9s var(--ease) both; animation-delay: calc(var(--i) * 35ms + .15s); }
@keyframes litera-wej { from { transform: translateY(.7em) rotate(8deg); opacity: 0; } }

/* --- orbita (jak to działa) --- */
.s-orbita .kol, .s-liczby .kol { max-width: min(560px, 38vw); height: 100%; display: flex; flex-direction: column; justify-content: center; }
.s-orbita .lead { font-size: clamp(16px, 1.2vw, 19px); }
.kroki { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 14px; }
.kroki li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: start; }
.kroki b { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--czer); color: #fff; font: 900 20px/1 var(--f1); }
.kroki span { font-size: 15.5px; line-height: 1.45; }
.kroki strong { display: block; font: 800 19px/1.2 var(--f1); letter-spacing: -.01em; margin-bottom: 2px; }
.s-orbita__podpis { position: absolute; right: var(--pad); bottom: 34px; margin: 0; max-width: 330px; text-align: right; font: 700 14px/1.4 var(--f2); color: var(--szary); }
.s-orbita__kat { position: absolute; right: var(--pad); top: calc(var(--nav) + 34px); display: flex; align-items: flex-start; font: 900 clamp(60px, 7vw, 120px)/.8 var(--f1); letter-spacing: -.05em; color: var(--czer); font-variant-numeric: tabular-nums; }
.s-orbita__kat span { font-size: .5em; }
.s-orbita__kat b { min-width: 2.2ch; text-align: right; }

/* --- liczby --- */
.liczby { margin: 10px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.liczby div { border-top: 3px solid var(--tusz); padding-top: 10px; }
.liczby dt { font: 900 clamp(44px, 4.6vw, 80px)/.9 var(--f1); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.liczby dt::after { content: ''; }
.liczby dd { margin: 6px 0 0; font-weight: 600; font-size: 15px; color: var(--szary); }
.liczby div:first-child dt { color: var(--czer); }

/* --- atrakcje --- */
.s-atrakcje { display: flex; flex-direction: column; justify-content: center; }
.atr { list-style: none; margin: 0; padding: 0; max-width: 46vw; }
.atr a { display: flex; align-items: baseline; gap: 16px; text-decoration: none; padding: 2px 0; }
.atr__n { font: 800 14px/1 var(--f2); color: var(--szary); width: 26px; flex: none; }
.atr__t { font: 900 clamp(34px, 4.3vw, 72px)/.98 var(--f1); letter-spacing: -.045em; color: transparent; -webkit-text-stroke: 1.5px rgba(22, 18, 25, .45); transition: color .4s, -webkit-text-stroke-color .4s, transform .5s var(--ease); display: inline-block; transform-origin: 0 60%; }
.atr li.is-akt .atr__t { color: var(--czer); -webkit-text-stroke-color: var(--czer); transform: translateX(10px); }
.atr li.is-akt .atr__n { color: var(--czer); }
.atr a:hover .atr__t { -webkit-text-stroke-color: var(--tusz); }
.atr__opisy { position: relative; margin-top: 22px; max-width: 520px; min-height: 120px; }
.atr__opis { position: absolute; inset: 0 auto auto 0; opacity: 0; transform: translateY(14px); visibility: hidden; pointer-events: none; transition: opacity .4s, transform .5s var(--ease), visibility 0s .4s; }
.atr__opis.is-akt { opacity: 1; transform: none; visibility: inherit; pointer-events: auto; transition-delay: 0s; }
.atr__opis p { margin: 0 0 10px; font-size: clamp(16px, 1.25vw, 20px); font-weight: 500; }
.atr__opis b { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--tusz); color: #fff; font: 800 15px/1 var(--f2); }

/* --- taśma z hasłem --- */
.s-tasma { display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 9vh !important; }
.mq { overflow: hidden; margin: 0 calc(var(--pad) * -1); }
.mq__in { display: flex; width: max-content; translate: calc(var(--tasma, 0) * -1vw) 0; }
.mq span { font: 900 clamp(70px, 13vw, 220px)/1 var(--f1); letter-spacing: -.055em; color: var(--czer); white-space: nowrap; padding-right: .25em; }
.mq i { font-style: normal; font: 900 clamp(40px, 6vw, 100px)/1 var(--f1); color: var(--tusz); align-self: center; padding-right: .4em; }
.s-tasma__p { margin: 10px 0 0; font: 800 clamp(14px, 1.2vw, 18px)/1.4 var(--f2); letter-spacing: .14em; text-transform: uppercase; text-align: center; }
html.js:not(.bez-3d) .story { --tasma: 0; }
html.js:not(.bez-3d) .s-tasma .mq__in { translate: calc(var(--tasma) * -1vw) 0; }
.story .mq__in { translate: calc(var(--tasma, 0) * -1vw) 0; }

/* tekst w scenach 3D: czytelna podkładka tam, gdzie karty mogą przelecieć */
html.js:not(.bez-3d) .scena .kol, html.js:not(.bez-3d) .s-atrakcje > * { position: relative; }

/* --- tryb bez 3D: historia jako zwykłe sekcje ze zdjęciami --- */
html.bez-3d .scena, html:not(.js) .scena { padding: 120px var(--pad) 60px; max-width: var(--max); margin: 0 auto; }
html.bez-3d .s-hero, html:not(.js) .s-hero { min-height: 92vh; }
html.bez-3d .hero__t, html:not(.js) .hero__t { color: var(--tusz); }
html.bez-3d .hero__r, html:not(.js) .hero__r { color: var(--czer); }
html.bez-3d .s-orbita__kat, html:not(.js) .s-orbita__kat, html.bez-3d .hero__przewin, html:not(.js) .hero__przewin { display: none; }
html.bez-3d .s-orbita__podpis, html:not(.js) .s-orbita__podpis { position: static; text-align: left; margin-top: 20px; }
html.bez-3d .kol, html:not(.js) .kol { max-width: 760px !important; }
html.bez-3d .atr, html:not(.js) .atr { max-width: none; }
html.bez-3d .atr__t, html:not(.js) .atr__t { color: var(--tusz); -webkit-text-stroke: 0; }
html.bez-3d .atr__opisy, html:not(.js) .atr__opisy { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; max-width: none; }
html.bez-3d .atr__opis, html:not(.js) .atr__opis { position: static; opacity: 1; transform: none; visibility: inherit; pointer-events: auto; padding: 18px; background: #fff; border-radius: 16px; }
html.bez-3d .stat-foto, html:not(.js) .stat-foto { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding: 0 var(--pad) 60px; max-width: var(--max); margin: 0 auto; }
.stat-foto img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 12px; min-height: 0; }
html.bez-3d .stat-foto img:nth-child(even) { translate: 0 20px; }

/* ============ SEKCJE ============ */
.sek { position: relative; padding: clamp(80px, 11vw, 170px) 0; }
.sek__in { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.sek__gl { margin-bottom: clamp(30px, 4vw, 60px); }

/* glitch nagłówka przy wejściu (sygnał przerywany jak w podglądzie kamery) */
.js .glitch { position: relative; }
.js .glitch.gl-on:not(.gl-po) { animation: gl .85s steps(1) both; }
@keyframes gl {
  0% { opacity: .2; }
  8% { opacity: 1; text-shadow: -6px 0 #ff2a55, 6px 0 #18e0ff; clip-path: inset(10% 0 55% 0); translate: -8px 0; }
  18% { text-shadow: 4px 0 #ff2a55, -4px 0 #18e0ff; clip-path: inset(55% 0 8% 0); translate: 10px 0; }
  28% { text-shadow: -3px 0 #ff2a55, 3px 0 #18e0ff; clip-path: inset(0 0 0 0); translate: 0 0; }
  40% { text-shadow: 7px 0 #ff2a55, -7px 0 #18e0ff; clip-path: inset(30% 0 30% 0); translate: -5px 0; }
  52% { text-shadow: none; clip-path: inset(0 0 0 0); translate: 0 0; }
  64% { text-shadow: -2px 0 #ff2a55, 2px 0 #18e0ff; }
  76%, 100% { text-shadow: none; clip-path: inset(-20% -5% -20% -5%); translate: 0 0; opacity: 1; }
}
/* nagłówek widoczny od razu — glitch tylko „przeszywa” go przy wejściu (bez stanu ukrytego, gdyby obserwator się spóźnił) */

/* --- film (tusz) --- */
.film { background: var(--tusz); color: #fff; overflow: hidden; }
.film__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(30px, 6vw, 100px); align-items: center; }
.film .lead { color: rgba(255, 255, 255, .78); }
.kanaly { list-style: none; padding: 0; margin: 0 0 34px; display: flex; flex-wrap: wrap; gap: 10px; }
.kanaly li { padding: 10px 16px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .3); font-weight: 700; font-size: 15px; }
.kanaly li:nth-child(odd) { background: var(--czer); border-color: var(--czer); }
.film__tel { display: grid; place-items: center; }
.tel { position: relative; width: min(360px, 78vw); aspect-ratio: 9/18.5; border-radius: 46px; padding: 12px; background: linear-gradient(145deg, #3a3340, #0b090d); box-shadow: 0 0 0 2px #4a4250, 0 50px 90px -30px rgba(227, 17, 47, .55), 0 30px 60px -20px rgba(0, 0, 0, .7); min-height: 0; overflow: hidden; rotate: -4deg; transition: rotate .8s var(--ease); }
.film.is-in .tel { rotate: 3deg; }
.tel video { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: cover; border-radius: 36px; background: #000; }
.tel__rec { position: absolute; top: 30px; left: 30px; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: rgba(0, 0, 0, .55); font: 800 12px/1 var(--f2); letter-spacing: .1em; }
.tel__rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--czer); animation: rec 1s steps(2, jump-none) infinite; }
.tel__dzwiek { position: absolute; bottom: 30px; left: 50%; translate: -50% 0; border: 0; padding: 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--tusz); font: 800 14px/1 var(--f2); white-space: nowrap; }

/* --- cennik (czerwony dywan) --- */
.cennik { background: var(--czer); color: #fff; }
.cennik .h2 { color: #fff; }
.zakl { display: inline-flex; padding: 6px; border-radius: 999px; background: rgba(0, 0, 0, .2); margin-bottom: 34px; position: relative; }
.zakl button { position: relative; z-index: 1; border: 0; background: transparent; padding: 14px 26px; border-radius: 999px; font: 800 17px/1 var(--f2); color: #fff; transition: color .3s, background .3s; }
.zakl button[aria-selected="true"] { background: #fff; color: var(--czer); }
.pakiety { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pakiet { position: relative; display: flex; flex-direction: column; padding: 30px 28px 26px; border-radius: 26px; background: #fff; color: var(--tusz); min-width: 0; transition: transform .45s var(--ease); }
.pakiet:hover { transform: translateY(-6px) rotate(-.6deg); }
.pakiet--hit { background: var(--tusz); color: #fff; }
.pakiet__hit { position: absolute; top: -14px; right: 22px; padding: 8px 14px; border-radius: 999px; background: #ffd23f; color: var(--tusz); font: 800 12px/1 var(--f2); letter-spacing: .08em; text-transform: uppercase; rotate: 3deg; }
.pakiet h3 { margin: 0 0 18px; font: 900 32px/1 var(--f1); letter-spacing: -.03em; }
.pakiet__cena { margin: 0; font: 400 20px/1 var(--f2); }
.pakiet__cena b { font: 900 clamp(64px, 6.4vw, 96px)/.85 var(--f1); letter-spacing: -.06em; }
.pakiet__cena small { font-size: 14px; opacity: .6; }
.pakiet__czas { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 24px; }
.pakiet__czas span { padding: 8px 12px; border-radius: 10px; background: rgba(22, 18, 25, .07); font-weight: 700; font-size: 14.5px; }
.pakiet--hit .pakiet__czas span { background: rgba(255, 255, 255, .12); }
.pakiet__btn { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; text-decoration: none; color: var(--czer); }
.pakiet--hit .pakiet__btn { color: #ffd23f; }
.pakiet__btn svg { width: 18px; height: 18px; }
.wkazdym { margin-top: 30px; padding: 28px; border-radius: 26px; border: 2px dashed rgba(255, 255, 255, .5); }
.wkazdym h3 { margin: 0 0 14px; font: 900 24px/1 var(--f1); }
.wkazdym ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 36px; }
.wkazdym li { break-inside: avoid; padding: 5px 0 5px 28px; position: relative; font-weight: 600; }
.wkazdym li::before { content: ''; position: absolute; left: 0; top: .72em; width: 14px; height: 8px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; rotate: -45deg; }
.cennik__dop { margin: 22px 0 0; font-size: 15px; opacity: .85; }

/* --- retro (biel) --- */
.retro { background: #fff; overflow: hidden; }
.retro__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 90px); align-items: center; }
.ptaszki { list-style: none; padding: 0; margin: 20px 0 30px; display: grid; gap: 8px; }
.ptaszki li { padding-left: 30px; position: relative; font-weight: 600; }
.ptaszki li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 14px; height: 8px; border-left: 3px solid var(--czer); border-bottom: 3px solid var(--czer); rotate: -45deg; }
.retro__pasek { position: relative; height: clamp(440px, 46vw, 640px); }
.odbitka { position: absolute; margin: 0; width: 46%; padding: 10px 10px 40px; background: #fff; box-shadow: 0 24px 50px -20px rgba(22, 18, 25, .45), 0 0 0 1px rgba(22, 18, 25, .06); transition: transform .8s var(--ease), translate .8s var(--ease); }
.odbitka img { display: block; width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; min-height: 0; }
.o0 { left: 2%; top: 4%; rotate: -8deg; } .o1 { left: 28%; top: 0; rotate: 4deg; z-index: 2; } .o2 { right: 0; top: 10%; rotate: 10deg; }
.o3 { left: 12%; bottom: 0; rotate: 6deg; z-index: 3; } .o4 { right: 6%; bottom: 3%; rotate: -5deg; z-index: 4; }
.js .retro:not(.is-in) .odbitka { translate: 0 120px; transform: rotate(-14deg); }
.js .retro .odbitka:nth-child(2) { transition-delay: .08s; } .js .retro .odbitka:nth-child(3) { transition-delay: .16s; } .js .retro .odbitka:nth-child(4) { transition-delay: .24s; } .js .retro .odbitka:nth-child(5) { transition-delay: .32s; }
.odbitka:hover { z-index: 9; transform: scale(1.04) rotate(-2deg); }

/* --- opinie (jasna lila) --- */
.opinie { background: var(--lila); padding-bottom: 0; }
.opinie__gl { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; }
.opinie__ocena { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; }
.opinie__ocena b { font: 900 84px/.8 var(--f1); letter-spacing: -.05em; color: var(--czer); }
.gw { color: #f4a300; font-size: 26px; letter-spacing: 2px; }
.opinie__ocena small { font-weight: 700; color: var(--szary); max-width: 12em; line-height: 1.3; }
.cytat { margin: 10px 0 50px; }
.cytat blockquote { margin: 0; }
.cytat p { margin: 0; font: 800 clamp(26px, 3.3vw, 52px)/1.08 var(--f1); letter-spacing: -.03em; text-wrap: balance; }
.cytat p::before { content: '„'; color: var(--czer); }
.cytat p::after { content: '”'; color: var(--czer); }
.cytat figcaption { margin-top: 18px; font-weight: 800; }
.cytat figcaption span { font-weight: 500; color: var(--szary); }
.opinie__lista { list-style: none; padding: 0; margin: 0; columns: 3 300px; column-gap: 18px; }
.opinie__lista li { break-inside: avoid; margin: 0 0 18px; padding: 22px; border-radius: 20px; background: #fff; }
.opinie__lista li:nth-child(3n+2) { background: var(--tusz); color: #fff; }
.opinie__lista li:nth-child(3n+2) span { color: rgba(255, 255, 255, .65); }
.opinie__lista p { margin: 0 0 12px; font-size: 16px; }
.opinie__lista span { font-weight: 800; font-size: 14px; color: var(--szary); }
.wyr { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.wyr li { padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .7); font-weight: 700; font-size: 14.5px; }
.wyr a { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; color: var(--czer); }
.wyr svg { width: 16px; height: 16px; }
.klienci { margin-top: clamp(60px, 8vw, 110px); padding: 34px 0 40px; background: #fff; }
.klienci__t { margin: 0 0 18px; text-align: center; font: 800 13px/1 var(--f2); letter-spacing: .2em; text-transform: uppercase; color: var(--szary); }
.klienci__tor { overflow: hidden; mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.klienci__in { display: flex; width: max-content; gap: 70px; align-items: center; animation: tor 32s linear infinite; padding-right: 70px; }
.klienci__in img { height: 52px; width: auto; max-width: 180px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.klienci__in img:hover { filter: grayscale(0); opacity: 1; }
@keyframes tor { to { transform: translateX(-50%); } }

/* --- galeria (tusz) --- */
.galeria { background: var(--tusz); color: #fff; }
.gal__gl { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; }
.gal__gl .h2 { margin: 0; }
.gal__gl .etyk { width: 100%; margin-bottom: 0; }
.gal { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gal li { min-width: 0; }
.gal li:nth-child(4n+2) { translate: 0 40px; } .gal li:nth-child(4n+4) { translate: 0 -24px; }
.gal__b { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: #000; aspect-ratio: 3/4; min-height: 0; }
.gal__b img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .3s; }
.gal li p { margin: 10px 2px 0; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .72); }
.gal__glitch { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: repeating-linear-gradient(0deg, rgba(255, 42, 85, .55) 0 3px, transparent 3px 9px, rgba(24, 224, 255, .45) 9px 11px, transparent 11px 19px); mix-blend-mode: screen; }
@media (hover: hover) {
  .gal__b:hover img { transform: scale(1.06); }
  .gal__b:hover .gal__glitch { animation: pasy .5s steps(4) 1; }
}
@keyframes pasy { 0% { opacity: .9; transform: translateY(-8px); } 50% { opacity: .6; transform: translateY(6px) skewX(-6deg); } 100% { opacity: 0; transform: none; } }

.lb { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 10, 14, .94); color: #fff; }
.lb[open] { display: grid; place-items: center; }
.lb::backdrop { background: rgba(12, 10, 14, .7); }
.lb figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 60px 70px; max-width: 100%; }
.lb img { max-height: calc(100dvh - 160px); max-width: min(92vw, 900px); width: auto; height: auto; border-radius: 12px; animation: lb-wej .45s var(--ease); }
@keyframes lb-wej { from { transform: scale(.9); opacity: 0; } }
.lb figcaption { font-weight: 600; text-align: center; }
.lb button { position: absolute; border: 0; width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--tusz); font: 700 30px/1 var(--f2); display: grid; place-items: center; }
.lb__x { top: 18px; right: 18px; font-size: 22px !important; background: var(--czer) !important; color: #fff !important; }
.lb__p { left: 18px; top: 50%; translate: 0 -50%; } .lb__n { right: 18px; top: 50%; translate: 0 -50%; }

/* --- zasięg (czerwień) --- */
.zasieg { background: var(--czer); color: #fff; }
.zasieg__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 90px); }
.zasieg .h2 { font-size: clamp(36px, 4.8vw, 80px); }
.zasieg__h { margin: 0 0 14px; font: 900 22px/1 var(--f1); }
.zasieg__h + .chipy { margin-bottom: 34px; }
.chipy { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chipy li { padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-weight: 700; font-size: 15px; }
.chipy--czer li { background: #fff; color: var(--czer); }

/* --- FAQ (jasne studio) --- */
.faq { background: var(--tlo); }
.faq__in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 6vw, 90px); }
.faq__gl { position: sticky; top: 110px; align-self: start; }
.faq__l details { border-bottom: 2px solid rgba(22, 18, 25, .14); }
.faq__l summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 22px 0; font: 800 clamp(18px, 1.5vw, 23px)/1.25 var(--f1); letter-spacing: -.01em; }
.faq__l summary::-webkit-details-marker { display: none; }
.faq__l summary i { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--tusz); position: relative; transition: background .3s, rotate .4s var(--ease); }
.faq__l summary i::before, .faq__l summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 2.5px; margin: -1.25px 0 0 -7px; background: #fff; border-radius: 2px; }
.faq__l summary i::after { rotate: 90deg; }
.faq__l details[open] summary i { background: var(--czer); rotate: 45deg; }
.faq__l details p { margin: 0 0 22px; max-width: 40em; }

/* --- kontakt (czerwień + biały formularz) --- */
.kontakt { background: var(--czer); color: #fff; }
.kontakt__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); align-items: start; }
.kontakt .lead { color: rgba(255, 255, 255, .88); }
.wielki-tel { display: block; font: 900 clamp(44px, 5.4vw, 88px)/.9 var(--f1); letter-spacing: -.05em; text-decoration: none; margin: 10px 0 26px; white-space: nowrap; transition: color .3s; }
.wielki-tel:hover { color: var(--tusz); }
.kontakt__dane { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-weight: 700; }
.kontakt__dane a { text-decoration-thickness: 2px; text-underline-offset: 4px; }
.form { background: #fff; color: var(--tusz); border-radius: 28px; padding: clamp(22px, 3vw, 40px); display: grid; gap: 14px; box-shadow: 0 40px 80px -40px rgba(60, 0, 10, .6); }
.form h3 { margin: 0 0 4px; font: 900 30px/1 var(--f1); letter-spacing: -.03em; }
.form__2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; min-width: 0; }
.form input, .form textarea { width: 100%; min-width: 0; font: 500 16px/1.3 var(--f2); color: var(--tusz); padding: 13px 14px; border: 2px solid #d9d5df; border-radius: 12px; background: #faf9fc; transition: border-color .2s; -webkit-appearance: none; appearance: none; }
.form input[type="date"] { min-height: 50px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--czer); background: #fff; }
.form__atr { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.form__atr legend { font-weight: 700; font-size: 14px; margin-bottom: 8px; padding: 0; }
.chip-r { display: inline-flex !important; cursor: pointer; }
.chip-r input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-r span { padding: 9px 14px; border-radius: 999px; border: 2px solid #d9d5df; font-weight: 700; font-size: 14.5px; transition: background .2s, border-color .2s, color .2s; }
.chip-r input:checked + span { background: var(--tusz); border-color: var(--tusz); color: #fff; }
.chip-r input:focus-visible + span { outline: 3px solid var(--czer); outline-offset: 2px; }
.form__www { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.zgoda { display: grid !important; grid-template-columns: 22px minmax(0, 1fr); gap: 10px !important; align-items: start; font-weight: 500 !important; font-size: 13.5px !important; }
.zgoda input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--czer); -webkit-appearance: auto; appearance: auto; padding: 0; }
.form__wyslij { justify-content: center; background: var(--tusz); color: #fff; border: 0; width: 100%; }
.form__wyslij:hover { background: var(--czer); color: #fff; }
.form__wyslij:disabled { opacity: .6; }
.form__stan { margin: 0; min-height: 1.3em; font-weight: 700; }
.form__stan.is-ok { color: #11804a; } .form__stan.is-blad { color: var(--czer); }
.blysk::after { content: ''; position: fixed; inset: 0; z-index: 300; background: #fff; pointer-events: none; animation: blysk .7s ease-out forwards; }
@keyframes blysk { from { opacity: .9; } to { opacity: 0; } }

/* --- stopka (zygzak + gigantyczne logo) --- */
.stopka { position: relative; background: var(--tusz); color: #fff; padding: 70px 0 0; }
.zyg { position: absolute; left: 0; top: -39px; width: 100%; height: 40px; color: var(--tusz); }
.stopka__in { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .8fr); gap: 30px; }
.stopka__has { margin: 0 0 12px; font: 900 clamp(28px, 2.8vw, 44px)/1 var(--f1); letter-spacing: -.03em; color: var(--czer); }
.stopka__mail { font-weight: 700; }
.stopka__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; align-content: start; }
.stopka__nav a, .stopka__kol a { text-decoration: none; font-weight: 600; opacity: .8; transition: opacity .2s, color .2s; }
.stopka__nav a:hover, .stopka__kol a:hover { opacity: 1; color: var(--czer); }
.stopka__kol { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.stopka__logo { margin: 50px 0 0; display: flex; justify-content: center; font: 900 clamp(70px, 19.5vw, 330px)/.78 var(--f1); letter-spacing: -.07em; white-space: nowrap; overflow: hidden; padding: 0 0 .06em; user-select: none; }
.stopka__logo span { display: inline-block; transition: transform .6s var(--ease); }
.stopka__logo:hover span:nth-child(2) { transform: translateY(-.08em) rotate(-3deg); }
.stopka__dol { max-width: var(--max); margin: 0 auto; padding: 22px var(--pad) calc(26px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; }

/* podpis Bogate Ananasy — 1:1 z WDK */
.m-only { display: none; }
@media (max-width: 767px) { .m-only { display: inline; } .d-only { display: none; } }
.made-by { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; transition: color .3s; margin-left: auto; }
.made-by:hover { color: var(--czer); }
.made-by img { height: 1.75rem; width: auto; display: block; }
.logo-wrap { position: relative; top: -3px; z-index: 1; display: block; transform-origin: 50% 50%; animation: logo-spin 5s ease-in-out infinite; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .made-by:hover .logo-wrap { animation: logo-spin-loop 1.6s linear infinite; }
  .made-by:hover img { animation: logo-shine-loop 1.6s ease-in-out infinite; }
  .made-by:hover .glint { animation: logo-glint-loop 1.6s linear infinite; }
}
.made-by img { animation: logo-shine 5s ease-in-out infinite; }
.glint { position: absolute; inset: 0; pointer-events: none; -webkit-mask: url(/img/site/bogate-ananasy-logo.webp) center / contain no-repeat; mask: url(/img/site/bogate-ananasy-logo.webp) center / contain no-repeat; background: linear-gradient(115deg, transparent 35%, rgba(255, 246, 200, .95) 50%, transparent 65%) 0 0 / 300% 100% no-repeat; mix-blend-mode: screen; animation: logo-glint 5s ease-in-out infinite; }
@keyframes logo-spin { 0%, 80% { transform: perspective(200px) rotateY(0); } 100% { transform: perspective(200px) rotateY(360deg); } }
@keyframes logo-spin-loop { from { transform: perspective(200px) rotateY(0); } to { transform: perspective(200px) rotateY(360deg); } }
@keyframes logo-shine-loop { 0%, 100% { filter: brightness(1.25) saturate(1.2); } 50% { filter: brightness(1.7) saturate(1.35); } }
@keyframes logo-glint-loop { 0% { background-position: 100% 0; opacity: 1; } 100% { background-position: 0 0; opacity: 1; } }
/* bez filter: none i drop-shadow — WebKit (Playwright) wywalał całą stronę */
@keyframes logo-shine { 0%, 80%, 100% { filter: brightness(1) saturate(1); } 90% { filter: brightness(1.6) saturate(1.3); } }
@keyframes logo-glint { 0%, 80% { background-position: 100% 0; opacity: 0; } 82% { opacity: 1; } 98% { background-position: 0 0; opacity: 1; } 100% { background-position: 0 0; opacity: 0; } }
.to-top { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; margin: -0.5rem 0; border-radius: 999px; color: inherit; transition: color .3s; }
.to-top:hover { color: var(--czer); }
.to-top:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.to-top path { animation: fly-up 1.6s cubic-bezier(.4, 0, .2, 1) infinite; }
.to-top path:nth-child(2) { animation-delay: .2s; }
.to-top path:nth-child(3) { animation-delay: .4s; }
.to-top:hover path { animation-duration: .9s; }
@media (max-width: 767px) { .to-top path { animation-duration: 2.6s; } .to-top path:nth-child(2) { animation-delay: .35s; } .to-top path:nth-child(3) { animation-delay: .7s; } }
@keyframes fly-up { 0% { transform: translateY(6px); opacity: 0; } 35% { opacity: 1; } 100% { transform: translateY(-10px); opacity: 0; } }

/* dolny pasek akcji (telefon) */
.pasek-m { display: none; }
@media (max-width: 759px) {
  .pasek-m { position: fixed; z-index: 45; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: 20px; background: var(--tusz); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5); translate: 0 140%; transition: translate .5s cubic-bezier(.2, .9, .3, 1.2); }
  .za-startem .pasek-m { translate: 0 0; }
  .menu-otw .pasek-m { translate: 0 140%; }
  .pasek-m a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 15px; color: #fff; font: 800 15px/1 var(--f2); text-decoration: none; }
  .pasek-m__tel { background: var(--czer); }
  .pasek-m svg { width: 18px; height: 18px; }
  .stopka__dol { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
}

/* polityka prywatności */
.pp { background: #fff; }
.pp__in { max-width: 760px; margin: 0 auto; padding: 60px 22px 80px; }
.pp h1 { font: 900 clamp(40px, 6vw, 72px)/.95 var(--f1); letter-spacing: -.04em; }
.pp h2 { font: 800 24px/1.2 var(--f1); margin-top: 36px; }

/* ============ TABLET / TELEFON ============ */
@media (max-width: 1100px) {
  .pakiety { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .film__in, .retro__in, .zasieg__in, .faq__in, .kontakt__in { grid-template-columns: minmax(0, 1fr); }
  .faq__gl { position: static; }
  .gal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gal li:nth-child(n) { translate: none; }
  .gal li:nth-child(3n+2) { translate: 0 30px; }
}
@media (max-width: 759px) {
  :root { --nav: 64px; }
  .h2 { font-size: clamp(38px, 11.4vw, 56px); }
  .sek { padding: 84px 0; }
  /* hero: tytuł na całą szerokość, karty latają wokół */
  html.js:not(.bez-3d) .scena { padding: calc(var(--nav) + 26px) 18px 22px; }
  .hero__t { font-size: clamp(60px, 21vw, 110px); line-height: .82; }
  .hero__dol { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .hero__cta { justify-content: flex-start; grid-row: auto; }
  .hero__cta .btn { min-height: 50px; padding: 0 1.1em; font-size: 15px; }
  .hero__cta .btn--obrys { display: none; }
  .hero__lead { font-size: 16px; }
  .hero__male { font-size: 12.5px; }
  .hero__przewin { display: none !important; }
  /* sceny: formacja kart u góry (do ~54% ekranu), tekst na dole */
  html.js:not(.bez-3d) .s-orbita, html.js:not(.bez-3d) .s-liczby, html.js:not(.bez-3d) .s-atrakcje { padding-top: 56vh; padding-top: 56svh; }
  html.js:not(.bez-3d) .s-orbita .kol, html.js:not(.bez-3d) .s-liczby .kol { max-width: none; height: auto; justify-content: flex-start; }
  html.js:not(.bez-3d) .s-orbita .etyk, html.js:not(.bez-3d) .s-liczby .etyk, html.js:not(.bez-3d) .s-atrakcje .etyk { display: none; }
  html.js:not(.bez-3d) .scena .h2 { font-size: clamp(32px, 9.4vw, 46px); margin-bottom: .3em; }
  html.js:not(.bez-3d) .s-orbita .lead { display: none; }
  .kroki { gap: 8px; }
  .kroki li { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; }
  .kroki b { width: 38px; height: 38px; font-size: 15px; }
  .kroki strong { font-size: 16px; } .kroki span { font-size: 13.5px; line-height: 1.35; }
  html.js:not(.bez-3d) .s-orbita__podpis { display: none; }
  html.js:not(.bez-3d) .s-orbita__kat { top: calc(var(--nav) + 52px); right: 16px; font-size: 44px; }
  .liczby { gap: 12px 16px; }
  .liczby dt { font-size: clamp(36px, 11vw, 52px); }
  .liczby dd { font-size: 13px; }
  .atr { max-width: none; }
  .atr__t { font-size: clamp(25px, 7.6vw, 36px); -webkit-text-stroke-width: 1.2px; }
  .atr a { gap: 10px; padding: 1px 0; }
  .atr__n { width: 20px; font-size: 12px; }
  .atr__opisy { margin-top: 14px; min-height: 104px; }
  .atr__opis p { font-size: 15px; margin-bottom: 8px; }
  html.js:not(.bez-3d) .atr__opis b { display: none; }
  html.js:not(.bez-3d) .atr__opisy { min-height: 64px; }
  .s-tasma { padding-bottom: 14vh !important; }
  .mq span { font-size: 84px; }
  .s-tasma__p { font-size: 12px; letter-spacing: .1em; }
  html.bez-3d .stat-foto, html:not(.js) .stat-foto { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html.bez-3d .scena, html:not(.js) .scena { padding: 100px 18px 40px; }
  .tel { width: min(300px, 76vw); border-radius: 40px; }
  .tel video { border-radius: 30px; }
  .zakl { display: flex; }
  .zakl button { flex: 1; padding: 13px 10px; font-size: 15px; }
  .pakiet { padding: 26px 22px 22px; }
  .wkazdym { padding: 22px; }
  .wkazdym ul { columns: 1; }
  .retro__pasek { height: 118vw; }
  .opinie__ocena b { font-size: 64px; }
  .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gal li:nth-child(n) { translate: none; }
  .gal li:nth-child(even) { translate: 0 28px; }
  .gal li p { font-size: 12.5px; }
  .lb figure { padding: 70px 12px 90px; }
  .lb img { max-height: calc(100dvh - 200px); }
  .lb__p, .lb__n { top: auto !important; bottom: 20px; translate: none !important; }
  .form__2 { grid-template-columns: minmax(0, 1fr); }
  .stopka__in { grid-template-columns: minmax(0, 1fr); }
  .stopka__dol { justify-content: center; text-align: center; }
  .made-by { margin-left: 0; }
  .wielki-tel { font-size: clamp(40px, 12vw, 64px); }
}
@media (max-width: 759px) and (max-height: 700px) {
  html.js:not(.bez-3d) .s-orbita, html.js:not(.bez-3d) .s-liczby, html.js:not(.bez-3d) .s-atrakcje { padding-top: 52svh; }
  .kroki span { font-size: 0; line-height: 0; } .kroki strong { font-size: 16px; line-height: 1.2; margin: 0; } .kroki li { align-items: center; } .kroki b { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .klienci__in { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .to-top path { animation: none; opacity: 1; }
  .logo-wrap, .made-by img, .glint { animation: none; }
  .glint { opacity: 0; }
  .js .glitch:not(.gl-on):not(.gl-po) { opacity: 1; }
}
