/* Fundacja Aktywni Dłużej — CSS bez bibliotek i zewnętrznych fontów. */
:root{--yellow:#fbb800;--ink:#243238;--muted:#526067;--paper:#faf9f5;--white:#fff;--line:#d9ddd7;--soft:#f0f1eb;--focus:#145ec2;--max:1340px;color-scheme:light}
*{box-sizing:border-box}
html{font-size:100%;scroll-padding-top:1.5rem}
body{margin:0;background:var(--paper);color:var(--ink);font-family:Arial,Helvetica,sans-serif;font-size:1.125rem;line-height:1.65;-webkit-font-smoothing:antialiased}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-underline-offset:.24em;text-decoration-thickness:1.5px}
a:hover{text-decoration:underline}
button,summary{font:inherit;color:inherit}
button{cursor:pointer}
button,a,summary{-webkit-tap-highlight-color:transparent}
:focus-visible{outline:3px solid var(--focus);outline-offset:5px;box-shadow:0 0 0 8px var(--white)}
[tabindex="-1"]:focus{outline:0}
::selection{background:var(--yellow);color:var(--ink)}
h1,h2,h3,p,ul,figure{margin:0}
h1,h2,h3{line-height:1.12}
h1,h2{letter-spacing:-.045em;font-weight:700}
h2{font-size:clamp(2.3rem,4.2vw,4.1rem)}
h3{font-size:1.5rem;letter-spacing:-.02em}
ul{padding:0;list-style:none}
.wrap{width:min(calc(100% - 6rem),var(--max));margin-inline:auto}
.section-space{padding-block:6.5rem}
.skip-link{position:fixed;left:1rem;top:-8rem;z-index:100;background:var(--ink);color:white;padding:1rem 1.5rem}
.skip-link:focus{top:1rem}
.utility-bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding-block:.6rem;border-bottom:1px solid var(--line);font-size:.8125rem}
.utility-bar p{color:var(--muted)}
summary{cursor:pointer}
.accessibility-tools{position:relative;z-index:30}
.accessibility-tools>summary{list-style:none;padding:.5rem 0;min-height:44px;display:flex;align-items:center;gap:1rem}
summary::-webkit-details-marker{display:none}
.tools-panel{position:absolute;right:0;top:100%;width:20rem;background:var(--white);padding:1.25rem;border:1px solid var(--ink);box-shadow:0 12px 28px #2432381a;border-radius:.5rem}
.tools-panel button{display:none;background:var(--paper);border:1px solid var(--muted);border-radius:.3rem;padding:.65rem 1rem;min-height:44px;width:100%;margin-bottom:.75rem;text-align:left;font-size:1rem}
.js .tools-panel button{display:block}
.tools-panel button[aria-pressed="true"]{background:var(--yellow);font-weight:700}
.tools-panel p{font-size:.875rem}
.header-main{display:flex;align-items:center;justify-content:space-between;gap:2rem;padding-block:1.2rem}
.brand{flex-shrink:0;max-width:32%;padding:.25rem 0}
.brand img{width:264px}
.desktop-nav>ul{display:flex;gap:1.75rem;align-items:center;flex-wrap:wrap;justify-content:flex-end;font-size:1rem;font-weight:600}
.desktop-nav a,.nav-dropdown>summary{display:inline-flex;align-items:center;gap:.75rem;min-height:44px;text-decoration:none;padding:.35rem 0}
.desktop-nav a:hover,.nav-dropdown>summary:hover{text-decoration:underline}
.desktop-nav .nav-contact{border:1px solid var(--ink);border-radius:100px;padding:.65rem 1.2rem}
.nav-dropdown{position:relative;z-index:20}
.nav-dropdown>ul{position:absolute;top:100%;left:-1rem;background:var(--white);width:15rem;padding:.65rem 1.1rem;border:1px solid var(--ink);border-radius:.5rem;box-shadow:0 12px 28px #2432381a}
.nav-dropdown>ul a{display:flex;padding:.55rem .25rem}
.mobile-menu{display:none}
.hero{padding-top:2.7rem}
.hero-grid{display:grid;grid-template-columns:1.06fr 1fr;align-items:center;gap:4rem;min-height:590px}
.eyebrow{font-size:.8125rem;text-transform:uppercase;letter-spacing:.13em;font-weight:600;display:flex;align-items:center;gap:.65rem}
.small-dot{width:.6rem;height:.6rem;background:var(--yellow);border-radius:50%;display:inline-block}
.hero h1{font-size:clamp(3.4rem,5.5vw,5.5rem);margin-block:1.65rem 1.5rem}
.hero h1 span{position:relative;display:inline-block;isolation:isolate}
.hero h1 span:after{content:"";position:absolute;left:0;right:0;bottom:.07em;height:.16em;background:var(--yellow);z-index:-1}
.hero-lead{max-width:32rem;font-size:1.1875rem;color:var(--muted);line-height:1.7}
.hero-actions{display:flex;gap:1.75rem;align-items:center;flex-wrap:wrap;margin-top:2rem}
.button{display:inline-flex;align-items:center;justify-content:space-between;gap:1.8rem;font-size:1rem;line-height:1.5;font-weight:700;min-height:56px;padding:1rem 1.5rem;border-radius:100px;text-decoration:none;border:1px solid transparent}
.button-yellow{background:var(--yellow);color:#243238}
.button-yellow:hover{background:#ffd151;color:#243238}
.button span{font-size:1.35rem}
.text-link{display:inline-flex;align-items:center;gap:1rem;min-height:44px;font-size:1rem;font-weight:700;text-decoration:underline}
.hero-note{margin-top:2rem;font-size:.875rem;color:var(--muted)}
.hero-visual{position:relative;margin:0;padding-bottom:2.25rem;isolation:isolate}
.hero-visual>img{width:100%;height:520px;object-fit:cover;object-position:54% center;border-radius:11rem 1.1rem 1.1rem 1.1rem}
.hero-visual figcaption{position:absolute;bottom:0;left:-1.75rem;background:var(--yellow);padding:1.3rem 1.75rem;display:flex;gap:1rem;align-items:center;font-size:1.2rem;line-height:1.4;border-radius:.65rem;max-width:90%}
.caption-symbol{font-size:2.8rem;line-height:1}
.photo-orbit{position:absolute;width:100px;height:100px;border:18px solid var(--yellow);border-radius:50%;top:-22px;right:-22px;z-index:-1}
.hero-bottom{display:flex;justify-content:space-between;gap:2rem;padding-block:2.5rem 1.7rem;border-bottom:1px solid var(--ink);margin-top:1rem;font-size:.875rem}
.hero-bottom p{color:var(--muted)}
.hero-bottom a{min-height:44px;display:flex;gap:1.5rem;align-items:center;text-decoration:none;font-weight:700}
.section-label{display:flex;gap:1.5rem;text-transform:uppercase;letter-spacing:.12em;font-size:.75rem;font-weight:700;margin-bottom:2.6rem}
.section-label>span{color:var(--muted)}
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:6rem}
.highlight{background:linear-gradient(transparent 77%,var(--yellow) 77%,var(--yellow) 93%,transparent 93%)}
.about-copy p+p{margin-top:1.1rem}
.about-copy p:not(.lead){font-size:1.0625rem;color:var(--muted)}
.lead{font-size:1.5rem;line-height:1.5;letter-spacing:-.025em}
.about-copy .text-link{margin-top:1.3rem}
.values-list{display:grid;grid-template-columns:repeat(3,1fr);gap:3rem;border-top:1px solid var(--line);padding-top:2.4rem;margin-top:4rem}
.values-list>li{display:flex;gap:1.1rem}
.values-list>li>span{font-size:1.7rem;font-weight:700;background:var(--yellow);width:44px;min-width:44px;height:44px;display:grid;place-items:center;border-radius:50%}
.values-list h3{font-size:1.125rem;margin-bottom:.35rem}
.values-list p{font-size:.9375rem;color:var(--muted)}
.programs{background:var(--soft)}
.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:3rem;margin-bottom:3.2rem}
.section-heading>p{font-size:1.0625rem;color:var(--muted);max-width:29rem}
.program-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem}
.program-card{background:var(--white);border-radius:.9rem;padding:2rem 2.4rem 2.2rem;display:flex;flex-direction:column;align-items:flex-start;scroll-margin-top:2rem}
.program-top{display:flex;align-items:center;justify-content:space-between;width:100%;margin-bottom:1.8rem}
.program-number{font-size:.875rem;color:var(--muted)}
.program-top svg{width:44px;height:44px;fill:none;stroke:var(--ink);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.program-type{font-size:.75rem;text-transform:uppercase;letter-spacing:.085em;color:var(--muted);margin-bottom:.6rem}
.program-card h3{font-size:2rem;margin-bottom:1rem}
.program-card>p:not(.program-type){font-size:1.0625rem;color:var(--muted);max-width:31rem;margin-bottom:1.5rem}
.program-card>.text-link{margin-top:auto}
.program-yellow{background:var(--yellow)}
.program-yellow p,.program-yellow .program-number{color:var(--ink)}
.erasmus-section{background:var(--ink);color:var(--white)}
.erasmus-grid{display:grid;grid-template-columns:1.35fr .7fr;gap:9rem;align-items:center}
.erasmus-section .eyebrow{color:var(--yellow);margin-bottom:1.75rem}
.erasmus-section h2{font-size:clamp(2.5rem,4.4vw,4.5rem)}
.erasmus-section h2 span{color:var(--yellow)}
.erasmus-grid>div:first-child>p:not(.eyebrow){max-width:34rem;font-size:1.125rem;color:#e0e5e6;margin-top:1.8rem}
.erasmus-section .button{margin-top:2rem}
.erasmus-date{position:relative;border-left:1px solid #839097;padding:1rem 0 1rem 3rem}
.erasmus-date>p{color:var(--white);font-size:.75rem;letter-spacing:.05em}
.date-arrow{position:absolute;top:-1rem;right:0;color:var(--yellow);font-size:4rem;line-height:1}
.erasmus-date .date-day{font-size:5.8rem;color:var(--yellow);letter-spacing:-.065em;font-weight:700;line-height:1.2;margin-top:2rem}
.date-day span{font-size:4rem}
.erasmus-date .date-year{font-size:2.1rem;letter-spacing:-.035em}
.erasmus-date .date-caption{font-size:1.125rem;letter-spacing:0;margin-top:2rem;color:#e0e5e6}
.news-grid{display:grid;grid-template-columns:1.05fr 1fr;gap:3rem}
.news-photo{display:block;border-radius:.8rem;overflow:hidden}
.news-photo img{width:100%;height:310px;object-fit:cover;object-position:55% center}
.news-body{padding-top:1.5rem}
.news-meta{display:flex;align-items:center;justify-content:space-between;gap:1rem;font-size:.75rem;color:var(--muted);margin-bottom:1rem;flex-wrap:wrap}
.news-meta>span:first-child{font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.news h3{font-size:1.8rem}
.news h3 a{text-decoration:none}
.news h3 a:hover{text-decoration:underline}
.news-card p{color:var(--muted);font-size:1.0625rem;margin-top:1rem}
.news-card .text-link{margin-top:1rem}
.news-side{display:flex;flex-direction:column;justify-content:space-between;border-top:1px solid var(--ink)}
.news-compact{padding-block:1.8rem;border-bottom:1px solid var(--line)}
.news-expanded{margin-top:3.5rem;border-top:1px solid var(--ink)}
.news-expanded details{border-bottom:1px solid var(--line);scroll-margin-top:2rem}
.news-expanded summary{list-style:none;font-size:1rem;font-weight:700;min-height:60px;padding:1.2rem 2rem 1.2rem 0;position:relative}
.news-expanded summary:after{content:"＋";position:absolute;right:0;top:1rem;font-size:1.2rem}
.news-expanded details[open] summary:after{content:"−"}
.article-content{max-width:52rem;padding-bottom:1.8rem}
.article-content p{margin-bottom:1rem;font-size:1.0625rem;color:var(--muted)}
.team{background:#f0f1eb}
.team-grid{display:grid;grid-template-columns:1fr 1fr;gap:6rem}
.team-copy>p+p{color:var(--muted);font-size:1.0625rem;margin-top:1.2rem}
.person-line{display:flex;align-items:center;gap:1.2rem;margin-top:2rem;margin-bottom:1.5rem}
.person-monogram{width:68px;min-width:68px;height:68px;display:grid;place-items:center;border-radius:50%;background:var(--yellow);font-size:1.35rem;font-weight:700}
.person-line h3{font-size:1.125rem;margin-bottom:.35rem}
.person-line p{font-size:.9375rem;color:var(--muted)}
.contact-box{background:var(--yellow);border-radius:1.1rem;padding:3.8rem;display:grid;grid-template-columns:1.15fr 1fr;gap:4rem;align-items:center}
.contact h2{font-size:clamp(2.3rem,3.6vw,3.6rem);margin-block:1.5rem}
.contact-box>div>p:last-child{font-size:1.0625rem}
address{font-style:normal}
.contact-phone{display:flex;justify-content:space-between;gap:1rem;font-size:clamp(1.8rem,2.9vw,2.8rem);font-weight:700;letter-spacing:-.04em;text-decoration:none;padding-block:.5rem;border-bottom:1px solid var(--ink);overflow-wrap:anywhere}
.contact-email{display:block;min-height:44px;padding-block:1rem;font-size:1.1875rem;overflow-wrap:anywhere}
address p{font-size:1rem;margin-top:.5rem}
.site-footer{border-top:1px solid var(--line);padding-top:3.5rem;background:var(--white)}
.footer-grid{display:grid;grid-template-columns:1.4fr .75fr .9fr 1fr;gap:2.5rem}
.footer-brand img{width:245px}
.footer-brand p{font-size:.9375rem;color:var(--muted);margin-top:1.5rem}
.site-footer h2{font-size:.9375rem;letter-spacing:0;margin-bottom:1.2rem}
.site-footer nav a{font-size:.9375rem;min-height:44px;display:inline-flex;align-items:center;text-decoration:none}
.site-footer nav a:hover{text-decoration:underline}
.footer-accessibility p{font-size:.9375rem;color:var(--muted)}
.footer-accessibility .text-link{font-size:.9375rem;margin-top:.5rem}
.footer-bottom{margin-top:3.5rem;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:2rem;flex-wrap:wrap;font-size:.75rem;padding-block:1.2rem;color:var(--muted)}
.footer-bottom a{display:inline-flex;align-items:center;min-height:44px}
body.large-text{font-size:1.3rem}
body.large-text p,body.large-text a,body.large-text summary,body.large-text button{font-size:1.2em}
body.large-text h3{font-size:1.75rem}
body.high-contrast{--paper:#fff;--soft:#fff;--ink:#000;--muted:#000;--line:#000;--focus:#0050a4}
body.high-contrast .erasmus-section{background:#000}
body.high-contrast .program-card{border:2px solid #000}
body.high-contrast .erasmus-grid p,body.high-contrast .erasmus-date p{color:#fff}
@media(min-width:1600px){.hero-grid{min-height:660px}.hero-visual>img{height:590px}}
@media(max-width:1150px){.wrap{width:calc(100% - 4rem)}.desktop-nav>ul{gap:1.1rem;font-size:.9375rem}.brand img{width:230px}.header-main{gap:1rem}.hero-grid{gap:2.75rem}.hero h1{font-size:4.3rem}.hero-visual>img{height:480px}.hero-actions{gap:1rem}.about-grid,.team-grid{gap:3rem}.erasmus-grid{gap:4rem}.contact-box{padding:3rem;gap:2.5rem}.footer-grid{gap:1.5rem}.footer-brand img{width:210px}}
@media(max-width:950px){.desktop-nav{display:none}.brand{max-width:75%}.mobile-menu{display:block;position:relative;z-index:20}.mobile-menu>summary{list-style:none;display:flex;gap:1rem;align-items:center;min-height:48px;border:1px solid var(--ink);padding:.55rem 1rem;border-radius:100px;font-size:1rem}.mobile-menu nav{position:absolute;right:0;top:calc(100% + .75rem);width:18rem;max-width:calc(100vw - 4rem);padding:1rem 1.5rem;background:var(--white);border:1px solid var(--ink);border-radius:.6rem;box-shadow:0 12px 28px #2432381a}.mobile-menu a{display:flex;align-items:center;min-height:44px;font-size:1rem;padding:.35rem 0}.hero-grid{gap:2rem}.hero h1{font-size:3.4rem}.hero-visual>img{height:440px}.hero-actions{flex-direction:column;align-items:flex-start}.hero-lead{font-size:1.0625rem}.hero-visual figcaption{left:-.5rem;font-size:1rem;padding:1rem}.section-space{padding-block:4.8rem}.values-list{gap:1.5rem}.values-list>li{gap:.7rem}.values-list h3{font-size:1rem}.program-card{padding:1.75rem}.program-card h3{font-size:1.8rem}.erasmus-grid{gap:3rem;grid-template-columns:1.2fr .8fr}.erasmus-date{padding-left:2rem}.erasmus-date .date-day{font-size:4.6rem}.date-day span{font-size:3rem}.date-arrow{top:-2rem}.news-grid{gap:2rem}.news-meta{gap:.5rem}.news h3{font-size:1.55rem}.contact-box{grid-template-columns:1fr;gap:2rem}.contact-box address{max-width:32rem}.footer-grid{grid-template-columns:1.2fr 1fr 1fr}.footer-accessibility{grid-column:1/-1;max-width:36rem}.footer-accessibility p{max-width:34rem}}
@media(max-width:700px){.wrap{width:calc(100% - 2.5rem)}.utility-bar{font-size:.75rem;gap:.5rem}.utility-bar>p{max-width:12rem}.accessibility-tools>summary{font-size:.75rem;gap:.3rem}.tools-panel{width:17rem}.header-main{padding-block:1rem}.brand img{width:225px}.mobile-menu>summary{font-size:.875rem;padding:.45rem .8rem;gap:.5rem}.hero{padding-top:2rem}.hero-grid{grid-template-columns:1fr;gap:2.4rem;min-height:0}.hero h1{font-size:clamp(2.75rem,9.2vw,4.8rem);margin-block:1.3rem}.hero-lead{max-width:33rem;font-size:1.125rem}.hero-actions{flex-direction:row;gap:1rem 1.5rem;margin-top:1.6rem}.hero-note{margin-top:1.3rem}.hero-visual{padding-bottom:1.7rem;margin-right:.8rem}.hero-visual>img{height:380px;border-top-left-radius:7rem}.hero-visual figcaption{left:.75rem;font-size:1.1rem}.photo-orbit{width:80px;height:80px;border-width:14px;right:-12px;top:-12px}.hero-bottom{margin-top:1.2rem;gap:1rem;align-items:center;padding-top:1.5rem;font-size:.8125rem}.hero-bottom p{max-width:12rem}.hero-bottom a{gap:.5rem;max-width:11rem}.section-space{padding-block:4rem}.section-label{margin-bottom:1.7rem}.about-grid,.team-grid{grid-template-columns:1fr;gap:2rem}.about-grid h2 br{display:none}.about-copy .lead{font-size:1.375rem}.values-list{grid-template-columns:1fr;gap:1.75rem;margin-top:2.5rem;padding-top:2rem}.values-list h3{font-size:1.125rem}.section-heading{display:block;margin-bottom:2rem}.section-heading>p{margin-top:1.4rem}.program-grid{grid-template-columns:1fr}.program-card{padding:1.75rem 1.6rem}.program-top{margin-bottom:1.5rem}.program-card h3{font-size:2rem}.erasmus-grid{grid-template-columns:1fr;gap:3.5rem}.erasmus-section h2{font-size:clamp(2.5rem,8vw,3.8rem)}.erasmus-date{padding:0 0 0 1.6rem;margin-right:1rem}.erasmus-date .date-day{font-size:5rem;margin-top:1rem}.date-arrow{top:0}.erasmus-date .date-caption{margin-top:1rem}.news-grid{grid-template-columns:1fr;gap:2rem}.news-photo img{height:300px}.news h3{font-size:1.7rem}.news-expanded{margin-top:2rem}.news-expanded summary{font-size:.9375rem}.person-line{align-items:flex-start}.contact-box{padding:2rem 1.6rem;border-radius:.75rem}.contact h2{font-size:2.5rem}.contact-phone{font-size:2rem}.contact-email{font-size:1.0625rem}.footer-grid{grid-template-columns:1fr 1fr;gap:2rem}.footer-brand{grid-column:1/-1}.footer-brand img{width:245px}.footer-bottom{margin-top:2rem;gap:.5rem 1.5rem}.footer-bottom>p:first-child{width:100%}}
@media(max-width:380px){.wrap{width:calc(100% - 2rem)}.brand img{width:185px}.header-main{gap:.5rem}.utility-bar>p{max-width:9rem}.hero h1{font-size:2.75rem}.hero-visual>img{height:300px}.contact-box{padding:1.75rem 1.2rem}.contact h2{font-size:2.2rem}.footer-grid{gap:1.5rem 1rem}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(forced-colors:active){.button,.program-card,.contact-box,.person-monogram,.hero-visual figcaption{border:1px solid CanvasText}.highlight{background:none}.program-top svg{stroke:CanvasText}.photo-orbit{display:none}:focus-visible{outline:3px solid Highlight;box-shadow:none}}
@media print{.site-header,.skip-link,.hero-actions,.hero-bottom,.photo-orbit,.site-footer{display:none}.wrap{width:100%}.section-space{padding-block:1.5rem}.hero-grid,.about-grid,.team-grid,.erasmus-grid,.contact-box{display:block}.hero-visual{display:none}.program-card,.contact-box,.erasmus-section{background:white;color:black;border:1px solid #777;padding:1rem}.erasmus-section p,.erasmus-section h2 span,.erasmus-date p{color:black!important}a{color:black}.program-grid{gap:1rem}.news-photo{display:none}h2{font-size:2rem}h1{font-size:3rem!important}.news-expanded details>.article-content{display:block}.accessibility-tools{display:none}}

/* Dodatkowe fotografie: podpisy i skalowanie bez tekstu na zdjęciu. */
.hero-visual figcaption small{display:block;font-size:.6875rem;font-weight:400;margin-top:.45rem;letter-spacing:.02em}
.about-photo{margin-top:3rem}
.about-photo img{width:100%;height:420px;object-fit:cover;object-position:center 20%;border-radius:.9rem}
.about-photo figcaption{display:flex;justify-content:space-between;flex-wrap:wrap;gap:.4rem 1.5rem;margin-top:.85rem;font-size:.875rem;color:var(--muted)}
.program-photo{width:100%;margin-bottom:1.35rem}
.program-photo img{width:100%;height:220px;object-fit:cover;object-position:center 20%;border-radius:.5rem}
.program-photo figcaption,.news-card-figure figcaption{font-size:.75rem;line-height:1.5;margin-top:.5rem;color:var(--muted)}
.program-yellow .program-photo figcaption{color:var(--ink)}
.program-top{margin-bottom:1.3rem}
.news-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:2rem}
.news-side{display:contents}
.news-compact{padding:0;border:0}
.news-photo img{height:250px}
.news-body{padding-top:1.1rem}
.news-compact>.news-meta{margin-top:1.1rem}
.news-meta{justify-content:flex-start;gap:.5rem 1rem}
.news h3{font-size:1.65rem}
@media(max-width:950px){.news-grid{gap:1.5rem}.news-photo img{height:200px}.news h3{font-size:1.4rem}.about-photo img{height:350px}.program-photo img{height:200px}}
@media(max-width:700px){.news-grid{grid-template-columns:1fr;gap:2.5rem}.news-photo img{height:270px}.news h3{font-size:1.7rem}.about-photo{margin-top:2rem}.about-photo img{height:300px}.program-photo img{height:240px}}
@media print{.about-photo,.program-photo,.news-card-figure{display:none}.news-side{display:contents}}

/* Spójna ikona rozwijanego menu i podpis wykonawcy. */
.nav-dropdown>summary{list-style:none}
.nav-dropdown>summary::marker{content:""}
.nav-chevron{display:block;flex:0 0 14px;width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nav-dropdown[open] .nav-chevron{transform:rotate(180deg)}
.footer-credit{display:flex;align-items:center;gap:.35rem;flex-wrap:wrap}
.footer-credit a{font-weight:700}

/* Film na otwarciu i podstrony projektów. */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.video-hero{position:relative;isolation:isolate;display:grid;align-items:end;background:#182422 url("assets/media/hero-kadr.webp") 55% center/cover no-repeat;color:#fff;min-height:clamp(32rem,76svh,56rem);--hero-gutter:3rem;--hero-copy-max:min(58vw,51rem);--hero-shade-end:calc(max(var(--hero-gutter),(100% - var(--max))/2) + var(--hero-copy-max));--hero-pad-end:clamp(2rem,5vh,4.5rem);--hero-shade:rgba(12,23,24,.74)}
.hero-film{position:absolute;inset:0;width:100%;height:100%;z-index:-2;object-fit:cover;object-position:55% center}
/* Ciemna część dochodzi do maksymalnej szerokości nagłówka; dalej kadr odzyskuje pełne kolory. */
.video-hero::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(to right,rgba(12,23,24,.84),var(--hero-shade) var(--hero-shade-end),rgba(12,23,24,0) calc(var(--hero-shade-end) + 18%))}
.video-hero h1{font-size:clamp(3.2rem,8vw,8.7rem);line-height:1.02;letter-spacing:-.065em;margin:.55rem 0 0;overflow-wrap:anywhere}
.video-hero h1 span{color:#ffcf45}
.video-hero .eyebrow{color:#fff}
.video-hero-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem}
.video-toggle{display:inline-flex;align-items:center;justify-content:center;gap:.65rem;min-height:48px;padding:.65rem 1rem;border:1px solid #fff;border-radius:100px;background:#243238;color:#fff;font-size:.9rem;line-height:1.3}
.video-toggle[hidden]{display:none}
.video-toggle:hover{background:#111b1e}
.video-toggle:focus-visible,.video-scroll:focus-visible{outline:3px solid #fff;outline-offset:4px;box-shadow:0 0 0 7px #111b1e}
.video-scroll svg,.video-toggle svg{flex-shrink:0}
.video-scroll{gap:1rem}
body.high-contrast .video-hero::before{display:block;background:rgba(0,0,0,.84)}
#o-nas .about-copy>p:first-child{font-weight:700;color:var(--ink)}
.program-photo img{height:clamp(12.5rem,19vw,17rem)}
.program-art,.news-project-art{position:relative;display:flex;flex-direction:column;justify-content:space-between;gap:.7rem;width:100%;padding:clamp(1.1rem,2vw,2rem);background:#253638;color:#fff;border-radius:.5rem}
.program-art{min-height:clamp(12.5rem,19vw,17rem);margin-bottom:1.35rem}
.program-art strong,.news-project-art strong{font-size:clamp(1.75rem,3.25vw,3.75rem);line-height:1;letter-spacing:-.045em;color:#ffcd3b}
.program-art span,.news-project-art span{font-size:.8rem;font-weight:700;letter-spacing:.08em}
.news-project-art{min-height:250px;text-decoration:none}
.news-project-art:hover strong{text-decoration:underline}
.news-compact>.news-project-art+.news-meta{margin-top:1.65rem}
.program-wide{grid-column:1/-1;display:grid;grid-template-columns:1.05fr 1fr;gap:clamp(1.3rem,4vw,3.5rem);align-items:center}
.program-wide .program-photo{margin:0}
.program-wide .program-photo img{height:clamp(15rem,27vw,26rem)}
.program-wide-copy>p:not(.program-type){color:var(--muted);margin-bottom:1rem}
.erasmus-date .date-day{font-size:clamp(2rem,4.4vw,5rem);line-height:1.05}
.nav-dropdown>ul{width:clamp(16rem,28vw,22rem)}
.mobile-menu nav{max-height:calc(100dvh - 11rem);overflow-y:auto}
.project-header{background:var(--soft);border-top:1px solid var(--line);padding:2rem 0 clamp(3rem,7vw,6rem)}
.breadcrumb{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;margin-bottom:clamp(2rem,5vw,4rem);font-size:.875rem;color:var(--muted)}
.breadcrumb a{display:inline-flex;align-items:center;min-height:44px}
.project-header h1{font-size:clamp(2.3rem,6vw,6rem);max-width:17ch;margin:.7rem 0 1.2rem;overflow-wrap:break-word}
.project-lead{max-width:54ch;font-size:clamp(1.1rem,2vw,1.55rem);color:var(--muted)}
.project-time{margin-top:1.35rem;font-weight:700}
.project-time>span{display:block;font-size:.8rem;letter-spacing:.065em;text-transform:uppercase;color:var(--muted);margin-bottom:.3rem}
.project-main{padding-block:clamp(2.8rem,7vw,6rem)}
.project-prose{max-width:72ch}
.project-prose h2,.funding h2,.photo-gallery h2{font-size:clamp(1.65rem,3.2vw,2.8rem);margin:0 0 1.2rem}
.project-prose p+p,.funding p+p{margin-top:1rem}
.project-prose p,.funding p{max-width:73ch}
.funding{border:1px solid var(--line);border-radius:.75rem;padding:clamp(1.1rem,3vw,2.3rem);margin-top:2.5rem;background:var(--white)}
.funding p{font-size:1rem}
.asy-logo{width:min(100%,17rem);aspect-ratio:3.2/1;margin-bottom:1rem;background:#fff}
.asy-logo img{width:100%;height:100%;object-fit:cover}
.photo-gallery{margin-top:clamp(2.5rem,6vw,4.8rem)}
.gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.gallery-grid figure{margin:0;min-width:0}
.gallery-grid img{width:100%;height:auto;max-height:28rem;object-fit:contain;object-position:center!important;background:var(--soft);border-radius:.55rem}
.gallery-grid figcaption{font-size:.85rem;color:var(--muted);padding:.5rem 0}
.project-links{display:flex;align-items:center;flex-wrap:wrap;gap:1rem 1.6rem;margin-top:3rem}
.team-bios{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.1rem;margin-top:2.3rem}
.team-bio{background:var(--white);border:1px solid var(--line);border-radius:.8rem;padding:clamp(1rem,2.4vw,1.8rem);display:grid;grid-template-columns:clamp(4.8rem,10vw,8rem) minmax(0,1fr);gap:1rem;align-content:start}
.team-portrait{aspect-ratio:1;background:var(--soft);border-radius:.55rem;position:relative;overflow:hidden}
.team-portrait img,.team-portrait span{position:absolute;inset:0;width:100%;height:100%}
.team-portrait img{object-fit:cover;object-position:center 35%;background:var(--soft)}
.team-portrait span{display:grid;place-items:center;font-weight:700;color:var(--ink)}
.team-bio h3{font-size:clamp(1.2rem,2vw,1.65rem);margin-bottom:.35rem}
.team-role{font-weight:700;font-size:.9rem;color:var(--muted)}
.team-bio p:last-child{margin-top:.8rem;font-size:1rem;line-height:1.55}
@media(max-width:950px){.news-project-art{min-height:200px}}
@media(max-width:1150px){.video-hero{--hero-gutter:2rem}}
@media(max-width:700px){
 .video-hero{min-height:clamp(28rem,72svh,41rem);overflow:clip;--hero-gutter:1.25rem;--hero-copy-max:100%;--hero-fade:clamp(4rem,20vw,6rem)}
 .video-hero::before{display:none}
 .video-hero-content{position:relative}
 /* Gradient podąża za początkiem tekstu, także gdy nagłówek się zawija. */
 .video-hero-content::before{content:"";position:absolute;inset:calc(-1 * var(--hero-fade)) calc(-1 * var(--hero-gutter)) calc(-1 * var(--hero-pad-end));z-index:-1;pointer-events:none;background:linear-gradient(to bottom,rgba(12,23,24,0),var(--hero-shade) var(--hero-fade),rgba(12,23,24,.82))}
 body.high-contrast .video-hero-content::before{display:none}
 .video-hero h1{font-size:clamp(2.35rem,10.2vw,5rem)}
 .program-wide,.team-bios{grid-template-columns:1fr}
 .program-wide .program-photo img{height:clamp(12.5rem,65vw,19rem)}
 .news-project-art{min-height:16rem}
 .project-links .button{width:fit-content;max-width:100%}
}
@media(max-width:380px){.video-hero{--hero-gutter:1rem}}
@media(max-width:420px){.gallery-grid{grid-template-columns:1fr}.team-bio{grid-template-columns:3.7rem minmax(0,1fr)}.video-toggle{width:fit-content}}
@media(forced-colors:active){.video-hero{background:Canvas;color:CanvasText}.video-hero h1 span,.video-hero .eyebrow,.news-project-art strong,.program-art strong{color:CanvasText}.video-toggle{border:1px solid ButtonText}}
@media print{.video-hero{min-height:0;background:white;color:black}.video-hero:before,.hero-film,.video-hero-actions{display:none!important}.video-hero h1 span,.video-hero .eyebrow{color:black}.team-bio,.funding{break-inside:avoid}}
.team-portrait img[hidden]{display:none}

/* Sterowanie filmem i dostępny dla wszystkich opis ujęć. */
.video-hero-inner{display:flex;flex-direction:column;min-height:inherit;padding-block:clamp(1rem,3vw,2rem) var(--hero-pad-end)}
.video-controls-line{display:flex;justify-content:flex-end;margin-bottom:auto;padding-bottom:2rem}
.video-hero-copy{max-inline-size:min(100%,var(--hero-copy-max));padding-block:.3rem;margin-bottom:clamp(1rem,2vw,1.6rem)}
.film-description-wrap{border-bottom:1px solid var(--line)}
.film-description{max-width:75ch;padding-block:.45rem}
.film-description summary{min-height:44px;padding:.65rem 0;font-weight:700}
.film-description-content{padding:.1rem 0 1.15rem}
.film-description-content p+p{margin-top:.75rem}
.funding-eu-logo{width:min(100%,15rem);height:auto;margin:0 0 1.15rem;padding:.7rem;background:#fff}
@media(forced-colors:active){.video-hero-copy{background:Canvas}.video-toggle:focus-visible,.video-scroll:focus-visible{outline-color:Highlight}}
@media print{.video-controls-line,.video-hero-content::before{display:none}.video-hero-inner{padding-block:1rem}.video-hero-copy{padding:0;margin:0}}

/* Zdjęcia nagłówków, jeden wyróżniony wpis oraz równe kadry galerii. */
.project-header-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.03fr);gap:clamp(1.6rem,5vw,5rem);align-items:center}
.project-header-grid h1{font-size:clamp(2.3rem,4.6vw,5rem);max-width:none}
.project-hero-photo{margin:0;min-width:0}
.project-hero-photo img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;object-position:var(--photo-position,center);border-radius:1rem;background:var(--white)}
.project-hero-photo figcaption,.news-single figcaption{padding-top:.45rem;font-size:.85rem;color:var(--muted)}
#erasmus-kafel .program-photo img{object-position:var(--photo-position,center)}
.news-single{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(1.25rem,4vw,3.5rem);align-items:center;border:1px solid var(--line);border-radius:1rem;background:var(--white);padding:clamp(1rem,3vw,2.25rem)}
.news-single .news-card-figure{margin:0}
.news-single .news-card-figure img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;object-position:var(--photo-position,center);border-radius:.75rem}
.news-single .news-body{padding:0;min-width:0}
.news-single h3{font-size:clamp(1.6rem,3.1vw,2.7rem)}
.news-single details{margin-top:1rem;scroll-margin-top:2rem}
.news-single summary{display:list-item;min-height:44px;padding:.65rem .25rem .65rem 0;font-weight:700;cursor:pointer}
.news-single summary:hover{text-decoration:underline}
.news-single .article-content{padding:0 0 .6rem}
.news-single .article-content p{margin-top:.65rem}
.footer-socials{display:flex;align-items:center;flex-wrap:wrap;gap:.85rem 1.5rem;margin-top:2.2rem;padding-top:1.5rem;border-top:1px solid var(--line)}
.site-footer .footer-socials h2{margin:0}
.footer-socials ul{display:flex;flex-wrap:wrap;gap:.65rem;padding:0;margin:0;list-style:none}
.site-footer .footer-socials a{display:inline-flex;gap:.65rem;border:1px solid var(--line);padding:.45rem .8rem;border-radius:.45rem;font-weight:650}
.footer-socials a svg{flex:none}
.footer-socials + .footer-bottom{margin-top:1.5rem}
.gallery-grid .gallery-link{display:block;position:relative;aspect-ratio:4/3;border-radius:.65rem;overflow:hidden;background:var(--soft)}
.gallery-grid .gallery-link img{width:100%;height:100%;max-height:none;object-fit:cover;object-position:var(--photo-position,center)!important;border-radius:0}
.gallery-zoom{position:absolute;right:.7rem;bottom:.7rem;display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--ink);border-radius:.45rem;background:var(--white);color:var(--ink)}
.gallery-link:hover .gallery-zoom{background:var(--yellow)}
.gallery-dialog{border:1px solid var(--ink);border-radius:.85rem;background:var(--paper);color:var(--ink);width:min(72rem,calc(100% - 1.5rem));max-width:none;max-height:calc(100dvh - 1.5rem);padding:clamp(.8rem,2.4vw,1.5rem);overflow:auto}
.gallery-dialog::backdrop{background:rgba(0,0,0,.8)}
.gallery-dialog-top{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.55rem 1rem;margin-bottom:.85rem}
.gallery-dialog-top h2{font-size:1.15rem;margin:0}
.gallery-dialog-close{display:inline-flex;align-items:center;min-height:44px;border:1px solid var(--ink);border-radius:.45rem;padding:.45rem .8rem;background:var(--white);color:var(--ink);font:inherit;font-weight:650;cursor:pointer}
.gallery-dialog img{width:auto;height:auto;max-width:100%;max-height:72dvh;margin:auto;object-fit:contain}
.gallery-dialog figcaption{margin-top:.65rem;color:var(--muted);font-size:.875rem}
.gallery-dialog figcaption[hidden]{display:none}
body:has(.gallery-dialog[open]){overflow:hidden}
@media(max-width:700px){.project-header-grid,.news-single{grid-template-columns:1fr}.project-header-grid h1{font-size:clamp(2.25rem,8vw,3.8rem)}}
@media print{.gallery-zoom,.gallery-dialog{display:none!important}}
