:root{--accent:#800000;--ink:#231f20;--muted:#5e5557;--line:#eadfe0;--tint:#faf5f5}
*{box-sizing:border-box}
body{margin:0;color:var(--ink);background:#fff;font:1rem/1.7 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
img{max-width:100%;height:auto;display:block}
a{color:var(--accent);text-underline-offset:.22em}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.shell{width:min(1160px,calc(100% - 3rem));margin-inline:auto}
.header{background:#fff;border-bottom:1px solid var(--line)}
.header-inner,.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:1.3rem;padding-block:1.1rem}
.brand{flex:0 0 215px}
.header nav,.footer-inner div{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem 1.25rem}
.header nav a{color:var(--ink);font-size:.875rem;text-decoration:none;font-weight:600}
.header nav a:hover{color:var(--accent);text-decoration:underline}
.header nav .language{color:var(--accent);padding:.2rem .55rem;border:1px solid var(--line)}
.hero{color:#fff;background:linear-gradient(90deg,rgba(32,15,17,.96),rgba(46,14,17,.78) 45%,rgba(55,20,20,.22)),url('/assets/hero.jpg') center 46%/cover;min-height:clamp(400px,59vw,620px);display:grid;align-items:center;padding-block:4rem}
.hero p{font-size:.95rem;font-weight:650;letter-spacing:.1em;text-transform:uppercase;margin:0 0 1.2rem}
h1,h2,h3{line-height:1.13;text-wrap:balance}
h1,h2{font-family:Georgia,"Times New Roman",serif;font-weight:500}
h1{font-size:clamp(2.5rem,6.4vw,5.2rem);margin:0 0 1.9rem;max-width:14ch}
h2{font-size:clamp(2rem,4vw,3.15rem);margin:0 0 1.6rem}
h3{font-size:1.2rem}
.hero .button{display:inline-block;background:var(--accent);border:1px solid #ba6464;color:#fff;padding:.65rem 1.6rem;text-decoration:none;font-weight:650}
.hero .button:hover{background:#a00000}
.hero .button:focus-visible{outline-color:#fff}
.section{padding-block:clamp(3rem,6vw,5.3rem);border-bottom:1px solid var(--line)}
.tint{background:var(--tint)}
.split,.steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.4rem 2.4rem}
.card,.person,.steps>div{background:#fff;border:1px solid var(--line);padding:clamp(1rem,3vw,2rem);border-top:3px solid var(--accent)}
.card img{width:auto;max-width:min(225px,100%);height:42px;object-fit:contain;object-position:left;margin-bottom:1.35rem}
.card p:empty,.card div:empty{display:none}
#ofunduszu img{width:100%;aspect-ratio:2/1;object-fit:cover}
#ofunduszu ul,#zasadyinwestycji ul{padding-left:1.3rem}
li::marker{color:var(--accent)}
#wartoscdlaprzed .shell>p,#wartoscdlaprzed .shell>div,#wartoscdlaprzed .shell>ul{max-width:75ch}
.steps p:first-child,.person p:first-child{margin-top:0}
.steps p:last-child,.person p:last-child,.card p:last-child{margin-bottom:0}
#kontakt{background:#291e20;color:#fff}
#kontakt a{color:#fff}
.contact{max-width:68ch}
footer{background:#fff;color:var(--muted);font-size:.9rem}
.document{max-width:830px;min-height:60vh;padding-block:clamp(3rem,7vw,6rem);overflow-wrap:anywhere}
.document h1{max-width:none;font-size:clamp(2.4rem,5vw,4rem);border-bottom:1px solid var(--line);padding-bottom:1.25rem}
.document table{max-width:100%;display:block;overflow-x:auto}
@media(max-width:850px){.header-inner{align-items:flex-start;flex-direction:column;gap:.85rem}.brand{flex-basis:auto;width:190px}}
@media(max-width:650px){.shell{width:calc(100% - 2rem)}.split,.steps{grid-template-columns:1fr}.hero{min-height:430px;background-position:61% center}.footer-inner{align-items:flex-start;flex-direction:column}.header nav{gap:.5rem .9rem}}
