/* Podróż przez układ krążenia: ciemna scena w palecie Atlasu (śliwka #302638, piasek, fiolet) + liquid glass. */
:root{color-scheme:dark;--forest:#eee5d4;--sand:#1d1420;--violet:#a98bf7;--line:#eee5d433;--muted:#d9cdbb;scroll-padding-top:20px}
html{background:#1d1420}body{background:transparent!important}
.nav,.nav nav a,.brand{color:#f3eadb}
.nav nav{border-color:#f3eadb44;background:#ffffff12;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
.nav nav a:hover,.nav nav a[aria-current=page]{background:#f3eadb;color:#1d1420}
.preview-note{display:none}
.pdz{position:relative}
.pdz .world{position:fixed;inset:0;z-index:-1;background:radial-gradient(ellipse at 68% 46%,#4a1f26,#8f3f34 34%,#6a2c2a 60%,#24141a)}
.pdz .world canvas{width:100%;height:100%;display:block;opacity:0;transition:opacity .6s ease}
.gl-ready .pdz .world canvas{opacity:1}
.pdz .widok-narzadu{position:absolute;inset:0;background-size:cover;background-position:65% center;transform-origin:67% 50%;pointer-events:none}
.gl-ready .pdz .widok-narzadu{background-size:cover}
.pdz-main section{position:relative;min-height:115svh;display:flex;align-items:center;padding:8vh 6vw 20vh;pointer-events:none;color:#fff6ed}
.pdz-main section:first-child{padding-top:10vh}
.pdz article{pointer-events:auto;width:min(510px,40vw);padding:clamp(22px,2.6vw,40px);border-radius:34px;background:#302638f2;color:#fff6ed;text-shadow:0 2px 14px #160d12;transition:opacity .5s ease,transform .6s cubic-bezier(.2,.7,.2,1)}
.pdz article h1,.pdz article h2{font:430 clamp(40px,4.4vw,74px)/1.02 Fraunces,Georgia,serif;letter-spacing:-.04em;margin:0;text-wrap:balance;color:#fff6ed}
.pdz article p{font-size:17px;line-height:1.55;margin:16px 0;color:#f3eadb}
.pdz .loc{font:italic 19px/1.4 Fraunces,Georgia,serif;color:#f1c6a4!important;margin:12px 0!important}
.pdz em{color:#f1c6a4}
.pdz .actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:8px 18px;margin-top:22px}
.pdz .actions>a{display:inline-flex;align-items:center;min-height:44px;font-size:17px;color:#fff6ed;text-decoration:underline;text-underline-offset:.25em}
.pdz .cta{background:#8b5cf6;color:#fff!important;text-decoration:none!important;border-radius:12px;padding:10px 22px;font-weight:650}
.pdz .cta:hover{background:#7a48ea}
.pdz .actions .row{flex:1 0 100%;justify-content:space-between;border-top:1px solid #fff3;padding:10px 0;text-decoration:none;font-size:19px}
.pdz .actions .row:hover{color:#f1c6a4}
.pdz details{border-top:1px solid #fff3;flex:1 0 100%}
.pdz summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-weight:600;list-style:none}
.pdz summary::-webkit-details-marker{display:none}
.pdz summary::before{content:"+";width:1.2em;color:#f1c6a4;font-weight:700}
.pdz details[open]>summary::before{content:"−"}
.pdz details p{margin:4px 0 14px 1.2em}
.pdz .kroki{margin:0;padding:0;list-style:none;counter-reset:k}
.pdz .kroki li{counter-increment:k;display:flex;gap:14px;align-items:baseline;border-top:1px solid #fff3;padding:10px 0}
.pdz .kroki li::before{content:counter(k,decimal-leading-zero);font:600 13px sans-serif;color:#f1c6a4}
.pdz .ekg svg{width:100%;height:auto;display:block;margin:6px 0 14px;background:#fffaf2;padding:10px;border-radius:12px}
.pdz a:focus-visible,.pdz summary:focus-visible,.pdz button:focus-visible{outline:3px solid #ffe8b1;outline-offset:3px;border-radius:4px}
.pdz-main section:not(.widoczna) article{opacity:0;transform:translateY(28px)}
.no-js .pdz-main section article{opacity:1!important;transform:none!important}
.pdz aside{position:fixed;right:2.6vw;top:110px;bottom:auto;z-index:4;display:grid;justify-items:center;gap:4px;color:#f3eadb;border-radius:24px;width:150px;padding:12px 12px 10px;background:#2a171e99}
.pdz .map-title{font-size:15px}
.pdz .mapa{display:block;min-width:44px;min-height:44px}
.pdz aside svg{width:64px;height:128px;display:block}
.pdz #pin{transition:cx .25s ease,cy .25s ease;fill:#f1c6a4}
.pdz #region{max-width:132px;text-align:center;line-height:1.3;font-size:13px;letter-spacing:.08em;text-transform:uppercase}
.pdz #flow{font-size:13px;text-align:center;color:#f1d8bf;line-height:1.3;max-width:132px}
.pdz .travel{position:fixed;bottom:16px;right:2.6vw;z-index:5;display:flex;align-items:center;gap:10px;background:#251b20ed;border:1px solid #d1b29877;border-radius:40px;padding:2px 5px;color:#fff;font-variant-numeric:tabular-nums}
.pdz .travel button{background:transparent;border:0;color:#fff;font-size:21px;width:44px;height:44px;cursor:pointer}
.pdz .travel button:disabled{opacity:.3}
.pdz .meter{height:3px;background:#e8b18d;position:fixed;bottom:0;left:0;width:100%;transform-origin:0 50%;transform:scaleX(var(--done,0));z-index:6}
.pdz-end{position:relative;background:#1d1420;color:#f3eadb;padding:28px 5vw 40px;border-top:1px solid #fff3}
.pdz-end nav{display:flex;flex-wrap:wrap;gap:4px 20px;align-items:center}
.pdz-end nav a{min-height:44px;display:inline-flex;align-items:center;font-size:16px}
.pdz-end strong{font:22px Fraunces,Georgia,serif;flex-basis:100%}
.pdz-end .disclaimer{font-size:15px;color:#d9cdbb;max-width:68ch}
.widok-narzadu[data-region="ekg"],#ekg{background-size:auto 320vh;background-position:72% 61%}
.widok-narzadu[data-region="komora"],#komora{background-size:auto 300vh;background-position:58% 61%}
.gl-ready #ekg,.gl-ready #komora{background-size:cover;background-position:center}
.pdz-main section{background:radial-gradient(ellipse at 17% 49%,#21141970,transparent 65%)}
body > footer.shell,.atlas-chrome footer{background:#1d1420;color:#f3eadb}
@supports (backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px)){
 .pdz article,.pdz aside,.pdz .travel{background:linear-gradient(135deg,#ffe7d31f,#33212a2b 45%,#180c1459),#1c121a4a;-webkit-backdrop-filter:blur(14px) saturate(1.15);backdrop-filter:blur(14px) saturate(1.15);border:1px solid #ffe7d34f;box-shadow:inset 1px 1px 1px #fff1df66,inset -1px -1px 2px #ffe3d022,0 12px 32px #180c1826}
}
@media(max-width:1100px){.pdz aside{display:none}}
@media(max-width:700px){
 .pdz-main section{min-height:100svh;align-items:flex-end;padding:38svh 4vw 84px;background:linear-gradient(0deg,#1d1420 27%,#1d1420ad 46%,transparent 62%)}
 .pdz article{width:100%;border-radius:26px;padding:20px}
 .pdz article h1,.pdz article h2{font-size:clamp(34px,9.5vw,48px)}
 .pdz .widok-narzadu{bottom:40%;background-size:auto 100%;background-position:71% center;background-repeat:no-repeat}
 .widok-narzadu[data-region="ekg"],#ekg{background-size:auto 160svh;background-position:71% 61%}
 .widok-narzadu[data-region="komora"],#komora{background-size:auto 150svh;background-position:56% 61%}
 .pdz .travel{bottom:8px}
}
@media (prefers-reduced-motion:reduce){.pdz *{transition-duration:.01ms!important}.pdz-main section:not(.widoczna) article{opacity:1;transform:none}}
/* katalog lekcji pod podróżą */
.pdz-katalog{position:relative;background:#1d1420;color:#f3eadb;padding:12vh 6vw}
.pdz-katalog>div{width:min(860px,100%);margin:0 auto}
.pdz-katalog h2{font:430 clamp(36px,4vw,58px)/1.05 Fraunces,Georgia,serif;letter-spacing:-.04em;margin:0 0 12px}
.pdz-katalog p{color:#d9cdbb}.pdz-katalog p a{text-decoration:underline}
.pdz-kurs{border-top:1px solid #fff3}
.pdz-kurs summary{display:flex;justify-content:space-between;align-items:center;min-height:56px;font-size:22px;font-family:Fraunces,Georgia,serif;cursor:pointer;list-style:none}
.pdz-kurs summary::-webkit-details-marker{display:none}
.pdz-kurs summary small{font:600 13px sans-serif;border:1px solid #fff4;border-radius:20px;padding:3px 10px}
.pdz-kurs ul{list-style:none;margin:0 0 16px;padding:0}
.pdz-kurs li a{display:flex;justify-content:space-between;gap:20px;min-height:44px;align-items:center;padding:8px 12px;border-radius:12px}
.pdz-kurs li a:hover{background:#ffffff14}
.pdz-kurs li small{color:#d9cdbb;white-space:nowrap}
/* lekcja na środku, podróż jako rozmyte tło */
.pdz-lekcja-otwarta body{overflow:hidden}
.pdz-modal{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:clamp(8px,3vw,40px);background:radial-gradient(ellipse at 50% 45%,#1d142040,#1d1420a6);-webkit-backdrop-filter:blur(10px) saturate(1.1);backdrop-filter:blur(10px) saturate(1.1);animation:pdz-wejscie .45s cubic-bezier(.2,.7,.2,1) both}
.pdz-okno{width:min(1060px,100%);height:min(100%,900px);display:flex;flex-direction:column;border-radius:34px;overflow:hidden;background:linear-gradient(135deg,#ffe7d31f,#33212a99 45%,#180c14cc),#1c121a99;-webkit-backdrop-filter:blur(18px) saturate(1.15);backdrop-filter:blur(18px) saturate(1.15);border:1px solid #ffe7d34f;box-shadow:0 30px 100px #000a,inset 1px 1px 1px #fff1df66,inset -1px -1px 2px #ffe3d022}
.pdz-okno-bar{display:flex;justify-content:space-between;align-items:center;padding:6px 10px 6px 24px;color:#f3eadb;font-size:14px;border-bottom:1px solid #ffffff1f}
.pdz-pelne{color:#f3eadb;text-decoration:underline;min-height:44px;display:inline-flex;align-items:center}
.pdz-zamknij{width:44px;height:44px;border:0;border-radius:50%;background:#ffffff1f;color:#fff;font-size:26px;cursor:pointer}
.pdz-zamknij:hover{background:#ffffff40}
.pdz-okno iframe{flex:1;width:100%;border:0;background:transparent;color-scheme:dark}
@keyframes pdz-wejscie{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.pdz-modal{animation:none}}
@media(max-width:700px){.pdz-modal{padding:0}.pdz-okno{height:100%;border-radius:0}}
/* Układ jak w prototypie: szeroki szklany pasek, lista etapów po prawej, mapa nad przyciskami */
body:has(.pdz) .atlas-chrome header.nav{display:none}
.pdz-pasek{position:sticky;top:10px;z-index:8;display:flex;align-items:center;gap:28px;justify-content:space-between;height:78px;margin:10px 2.5vw -88px;padding:0 28px 0 34px;border-radius:28px;background:#2b1d24d9;border:1px solid #ffe7d34f;color:#f3eadb}
.pdz-pasek a{display:inline-flex;align-items:center;min-height:44px;color:inherit;text-decoration:none}
.pdz-pasek .brand{display:flex;align-items:center;gap:12px;font:500 26px Fraunces,Georgia,serif;letter-spacing:-.02em;white-space:nowrap}
.pdz-pasek .brand svg{width:38px;height:38px;stroke:currentColor;fill:none;stroke-width:1.6}
.pdz-pasek nav{display:flex;gap:28px;margin-left:auto;font-size:18px}
.pdz-pasek nav a:hover{text-decoration:underline}
.pdz-pasek .topcta{background:#93442f;color:#fff;border-radius:30px;padding:10px 26px;font-weight:700;font-size:18px}
.pdz-pasek .topcta:hover{background:#7d3826}
@supports (backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px)){.pdz-pasek{background:linear-gradient(135deg,#ffe7d31f,#33212a2b 45%,#180c1459),#1c121a4a;-webkit-backdrop-filter:blur(14px) saturate(1.15);backdrop-filter:blur(14px) saturate(1.15);box-shadow:inset 1px 1px 1px #fff1df66,inset -1px -1px 2px #ffe3d022,0 12px 32px #180c1826}}
.pdz .etapy{position:fixed;right:2.6vw;top:150px;z-index:4}
.pdz .etapy ol,.etapy ol{list-style:none;margin:0;padding:0;display:grid;gap:0}
.etapy a{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-height:44px;min-width:44px;padding:0 0 0 8px;color:#fff;text-decoration:none;font-size:14px}
.etapy a span{display:inline-grid;place-items:center;width:28px;height:28px;border:1px solid #f7f1e680;border-radius:50%;font-size:11px;order:2;background:#35232a;color:#fff}
.etapy a .t{order:1;font-weight:400;padding:3px 10px;border-radius:5px;background:#35232a;opacity:0}
.etapy a:hover .t,.etapy a:focus-visible .t,.etapy a[aria-current] .t{opacity:1}
.etapy a[aria-current] span{background:#93442f;border-color:#ffe8b1}
.pdz aside{top:auto;bottom:76px;max-width:150px}
.pdz .cta{background:#93442f}.pdz .cta:hover{background:#7d3826}
.pdz-main section:first-child{align-items:flex-start;padding-top:max(110px,calc(100svh - 447px));padding-left:3vw}
.pdz article{width:min(640px,46vw)}
@media(max-width:1100px){.pdz .etapy{display:none}}
@media(max-width:700px){.pdz-pasek{height:62px;padding:0 14px 0 18px;gap:10px;margin-bottom:-72px;border-radius:22px}.pdz-pasek nav{display:none}.pdz-pasek .brand{font-size:20px}.pdz-pasek .brand svg{width:30px;height:30px}.pdz-pasek .topcta{font-size:15px;padding:8px 16px}.pdz-main section:first-child{align-items:flex-end;padding-top:38svh}.pdz article{width:100%}}
.pdz-pasek nav a[aria-current]{text-decoration:underline;text-underline-offset:6px}
.logo-ksiazka{display:inline-block;flex:none;width:54px;height:30px;background:currentColor;-webkit-mask:url(/brand/ksiazka-naczynia.png) center/contain no-repeat;mask:url(/brand/ksiazka-naczynia.png) center/contain no-repeat}.pdz-pasek .logo-ksiazka{width:68px;height:38px}
@media(max-width:700px){.pdz-pasek .topcta{white-space:nowrap;font-size:14px;padding:8px 14px}}
.pdz-pasek nav{margin:0 0 0 auto}
/* Mapa krążenia i numery etapów: mniejsze, wyżej, bez nakładania */
.pdz .etapy{top:104px}
.etapy a{min-height:34px;gap:6px}
.etapy a span{width:24px;height:24px;font-size:10px}
.pdz aside{bottom:72px;width:136px;padding:10px 10px 8px;gap:3px}
.pdz aside .map-title{font-size:13px}
.pdz aside svg{width:52px;height:104px}
.pdz aside #region{font-size:9.5px}
.pdz aside #flow{font-size:10px;line-height:1.25}
@media(max-height:760px){.pdz aside #flow{display:none}.pdz aside svg{height:80px;width:40px}}
@media(max-height:640px){.pdz aside{display:none}}
