/* Final responsive audit: preserve artwork, keep text readable at intermediate widths. */
html{scrollbar-gutter:stable}
body{overflow-wrap:break-word}
img{max-width:100%}
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #435d7b;outline-offset:4px}
:is(.home-pl,.home-en) .process-title h2{white-space:normal}
:is(.home-pl,.home-en) .contact-copy>p:not(.eyebrow){white-space:normal;font-size:1rem;line-height:1.65}
:is(.home-pl,.home-en) .package-card h3{line-height:1.2}
:is(.home-pl,.home-en) .package-outcomes strong{color:var(--ink)}
:is(.home-pl,.home-en) .footer-links a{min-height:44px}
.legal-page{max-width:820px;line-height:1.75}
.legal-page h1{font-family:'DM Serif Display',Georgia,serif;text-transform:none;line-height:1.12}
.legal-page h2{font-family:'DM Serif Display',Georgia,serif;text-transform:none;line-height:1.3}
.legal-page .document-nav a{min-height:44px;display:inline-flex;align-items:center}
.inner-page .compact-header{padding-inline:24px;gap:20px}
.header-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.header-actions a{min-height:44px;display:inline-flex;align-items:center}
.legal-page .withdrawal-form label{line-height:1.5}
@media(min-width:601px) and (max-width:900px){
 body:is(.home-pl,.home-en) .hero{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:24px;align-items:center;padding:32px;min-height:0}
 body:is(.home-pl,.home-en) .hero-card{position:relative;display:flex;flex-direction:column;grid-column:1;grid-row:1;width:100%;padding:0;margin:0;gap:18px}
 body:is(.home-pl,.home-en) .hero-card>*{position:static;width:100%;max-width:100%;margin:0;transform:none}
 body:is(.home-pl,.home-en) .hero h1{font-size:clamp(2rem,4.3vw,2.5rem);line-height:1.1;max-width:16ch;text-transform:none!important}
 body:is(.home-pl,.home-en) .hero-index{font-size:.875rem;line-height:1.5}
 body:is(.home-pl,.home-en) .hero-copy{font-size:1rem;line-height:1.65}
 body:is(.home-pl,.home-en) .hero-actions{display:flex;gap:16px;align-items:flex-start;flex-direction:column}
 body:is(.home-pl,.home-en) .hero-photo{position:relative!important;inset:auto!important;display:block!important;grid-column:2;grid-row:1;width:100%;height:100%!important;min-height:420px!important;max-height:620px;background-size:auto 100%!important;background-position:right center!important;aspect-ratio:auto;margin:0}
 body:is(.home-pl,.home-en) .hero-photo:before,body:is(.home-pl,.home-en) .hero-photo:after{display:none!important;content:none!important}
 body:is(.home-pl,.home-en) .package-card .package-top{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:0;min-height:0;gap:20px}
 body:is(.home-pl,.home-en) .package-card .package-top strong{font-size:2.5rem;white-space:nowrap}
 body:is(.home-pl,.home-en) .about-heading,body:is(.home-pl,.home-en) .about-copy{transform:none}
}
@media(min-width:1201px){
 body:is(.home-pl,.home-en) .hero h1{max-width:17ch}
 body:is(.home-pl,.home-en) .hero-copy{max-width:47ch}
}
@media(max-width:600px){
 .inner-page .compact-header{padding:12px 0;margin-inline:20px;min-height:88px;flex-wrap:nowrap}
 .inner-page .compact-header .brand-logo{width:145px}
 .inner-page .header-actions{gap:10px;flex-wrap:nowrap}
 .inner-page .back-link{font-size:.75rem}
 .inner-page .lang-switch{font-size:.8rem}
 .legal-page{width:calc(100% - 40px);padding-block:30px 48px;font-size:.9375rem}
 .legal-page h1{font-size:clamp(2rem,8.5vw,2.65rem)}
 .legal-page h2{font-size:1.4rem;margin-top:30px}
 .legal-page .document-nav{gap:8px;margin-bottom:24px}
 .legal-page .document-nav a{padding:8px 10px;font-size:.8125rem}
 .inner-page footer .footer-inner{font-size:.8125rem}
 .enquiry-page .form-intro h1{max-width:20ch}
 .enquiry-page .step-actions .button{min-height:48px}
}
@media print{
 .site-header,.document-nav,footer,.hosting-controls{display:none!important}
 .legal-page{width:100%;max-width:none;padding:0;color:#111;font-size:10pt}
 .legal-page h1{font-size:24pt}.legal-page h2{break-after:avoid;font-size:14pt}
 .legal-page p,.legal-page li{orphans:3;widows:3}
 body.inner-page{background:#fff}
}
/* Client forms and delivery use the same palette and readable headings. */
body:has(>.portal-header){--ink:#25334c;--paper:#eeece7;--line:#c5d1df;--card:#fff;--sage:#e1e8ef;--olive:#485b70;--rust:#934b3c;background:var(--paper);color:var(--ink)}
body:has(>.portal-header) :is(.intake-heading h1,.materials-intro h1,.intake-form h2,.known-data h2){font-family:'DM Serif Display',Georgia,serif;text-transform:none;letter-spacing:-.025em;line-height:1.2}
body:has(>.portal-header) .portal-header{background:var(--paper)}
body:has(>.portal-header) .intake-navigation #next-part{background:var(--ink)}
body:has(>.portal-header) .intake-form section>p{color:#485b70}
@media(max-width:600px){body:has(>.portal-header) .brand-logo{width:164px}body:has(>.portal-header) .intake-heading h1{font-size:2rem}}
body:has(>.portal-header) a{color:inherit;text-underline-offset:4px}
body:has(>.portal-header) .intake-shell>p a{display:inline-block;min-height:32px;line-height:1.6}
@media(min-width:901px){
 body:is(.home-pl,.home-en) .package-card,body:is(.home-pl,.home-en) .package-card:last-child{display:flex;flex-direction:column;gap:22px}
 body:is(.home-pl,.home-en) .package-card .package-top{display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:100%;gap:20px}
 body:is(.home-pl,.home-en) .package-card .package-top strong{font-size:2.6rem;white-space:nowrap}
 body:is(.home-pl,.home-en) .package-card h3{min-height:2.4em}
 body:is(.home-pl,.home-en) .package-card .package-outcomes{flex:1;width:100%}
 body:is(.home-pl,.home-en) .package-card .package-turnaround{align-self:stretch;margin:0}
 body:is(.home-pl,.home-en) .package-card .package-enquiry{width:100%;margin-top:0}
 body:is(.home-pl,.home-en) .package-card .package-enquiry .button{width:100%}
}
@media(min-width:1201px){body:is(.home-pl,.home-en) .hero-copy{max-width:40ch}}

/* Match the existing Polish landscape composition in English. */
@media (min-width:901px) and (max-width:1200px) and (orientation:landscape){
 body.home-en .site-header{position:relative;z-index:5;isolation:isolate;overflow:hidden;margin:0;padding-inline:clamp(24px,4vw,48px);background:transparent}
 body.home-en .site-header:before{content:"";position:absolute;inset:-18px;z-index:0;background:url("hero-jesienna-ulica-v23.webp") 76% 18%/cover no-repeat;filter:blur(12px) brightness(1.04);transform:scale(1.06);opacity:.9;pointer-events:none}
 body.home-en .site-header:after{content:"";position:absolute;inset:0;z-index:0;background:linear-gradient(180deg,rgba(238,236,231,.54) 0%,rgba(238,236,231,.46) 70%,rgba(238,236,231,.3) 100%);pointer-events:none}
 body.home-en .site-header>.brand,body.home-en .site-header>.menu-toggle,body.home-en .site-header>#main-nav{position:relative;z-index:1}
 body.home-en .hero{position:relative;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;width:100%;min-height:clamp(590px,72vw,680px);margin:0;padding:42px clamp(32px,5vw,64px);overflow:hidden;isolation:isolate;background:var(--paper)}
 body.home-en .hero-photo{position:absolute!important;inset:0!important;z-index:0;display:block!important;width:100%!important;height:100%!important;min-height:0!important;margin:0;aspect-ratio:auto!important;background:url("hero-jesienna-ulica-v23.webp") 76% center/cover no-repeat!important;opacity:1;filter:none;mix-blend-mode:normal;-webkit-mask-image:none!important;mask-image:none!important}
 body.home-en .hero-photo:before{content:""!important;display:block!important;position:absolute;inset:0;background:url("hero-jesienna-ulica-v23.webp") 76% center/cover no-repeat;filter:none;opacity:1;pointer-events:none}
 body.home-en .hero-photo:after{content:""!important;display:block!important;position:absolute;inset:0;background:linear-gradient(90deg,rgba(238,236,231,1) 0%,rgba(238,236,231,.98) 42%,rgba(238,236,231,.9) 55%,rgba(238,236,231,.48) 72%,rgba(238,236,231,.08) 88%,rgba(238,236,231,0) 100%);pointer-events:none}
 body.home-en .hero-card{position:relative;z-index:1;display:flex;flex:0 1 60%;flex-direction:column;align-items:flex-start;justify-content:center;gap:18px;width:60%;max-width:650px;min-height:0;margin:0;padding:0;background:transparent!important;isolation:auto}
 body.home-en .hero-card:before,body.home-en .hero-card:after{content:none!important;display:none!important}
 body.home-en .hero-card>*{position:relative;max-width:100%;margin-block:0;transform:none}
 body.home-en .hero-index{font-size:.98rem;line-height:1.5;margin:0}
 body.home-en .hero h1{display:block;width:100%;max-width:16ch;margin:0!important;padding:0;text-align:left;align-self:flex-start;font-size:clamp(2.2rem,4.1vw,3.2rem);line-height:1.08;text-wrap:balance}
 body.home-en .hero-copy{width:100%;max-width:48ch;margin:0;font-size:clamp(1rem,1.45vw,1.1rem);line-height:1.68;text-wrap:pretty}
 body.home-en .hero-actions{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:16px;margin:2px 0 0}
}

@media (min-width:901px) and (max-width:1200px){
 body.home-en .hero{min-height:clamp(540px,54vw,620px);padding-inline:clamp(40px,6vw,76px)}
 body.home-en .hero-card{flex-basis:56%;width:56%}
}

@media(min-width:1201px){body:is(.home-pl,.home-en) .hero-copy{max-width:37ch;color:var(--ink)}}
@media(min-width:901px){body:is(.home-pl,.home-en) .package-card .package-top{min-height:0;height:auto;margin:0;padding:0}body:is(.home-pl,.home-en) .package-card .package-top strong{line-height:1.1;margin:0}}
@media(min-width:601px) and (max-width:900px) and (max-height:500px){body:is(.home-pl,.home-en) .site-header{min-height:76px;padding-block:10px}body:is(.home-pl,.home-en) .site-header .brand-logo{width:164px}}

@media(max-width:600px){body:is(.home-pl,.home-en) .hero-card{grid-template-rows:auto minmax(200px,auto) auto}}
