/* Nagłówek: wspólne wyrównanie, lżejsze menu i czytelne narzędzia. */
.site-utility{font-size:.75rem;color:#e4eaf5}
.utility-inner{min-height:32px;gap:20px}
.utility-inner span{letter-spacing:0}
.utility-links{gap:24px}
.utility-links a{display:inline-flex;align-items:center;min-height:32px}
.site-header{background:#fff;border-bottom:1px solid #dbe2ed;box-shadow:0 3px 12px #1d2e5906}
.header-main{min-height:88px;gap:22px;justify-content:flex-start}
.header-main .brand{flex:none;max-width:226px;min-width:0}
.header-main .official-brand{align-items:flex-start;padding:10px 0;gap:3px;min-width:0;width:100%}
.header-main .brand-logo{width:226px;height:auto;max-width:100%;object-fit:contain}
.header-main .publisher-label{font-size:.75rem;line-height:1.4;letter-spacing:.025em;font-weight:650;text-align:left}
.site-nav{gap:2px;flex:none;margin-left:auto}
.site-nav a{position:relative;min-height:44px;padding:10px 10px;font-size:.87rem;line-height:1.4;font-weight:600;border-radius:5px}
.site-nav a:hover{background:#f3f6fa;color:var(--navy)}
.site-nav a[aria-current="page"]{background:transparent;color:var(--navy);font-weight:700}
.site-nav a[aria-current="page"]::after{content:"";position:absolute;bottom:2px;left:10px;right:10px;height:2px;border-radius:2px;background:var(--accent)}
.header-actions{gap:10px;padding:0;border:0;flex:none;margin-left:0}
.header-tools{display:flex;align-items:center;gap:2px;padding:3px;background:#f7f9fc;border:1px solid #e3e8f0;border-radius:10px}
.header-actions .icon-btn{width:44px;height:44px;min-width:44px;min-height:44px;flex:none;border-radius:7px;background:transparent;color:var(--navy);gap:5px}
.header-actions .icon-btn:hover,.header-actions .icon-btn[aria-pressed="true"]{background:#e9eff8;border-color:#c5d1e4}
.header-actions .icon-btn strong{font-size:.88rem;line-height:1}
.header-actions a.icon-btn{text-decoration:none}
.header-actions .icon{width:20px;height:20px}
.header-tool-label{display:none}
.header-actions .counter{right:0;top:0}
.header-actions .menu-toggle{border:1px solid #d3ddea}
.high-contrast .header-tools{background:#fff;border-color:#111}
.high-contrast .site-header{border-color:#111;box-shadow:none}
.high-contrast .site-nav a[aria-current="page"]::after{background:#111}
@media(min-width:1201px){
 .site-nav{display:flex;position:static;max-height:none;overflow:visible;padding:0;border:0;box-shadow:none;flex-direction:row;align-items:center}
 .header-actions .menu-toggle{display:none}
}
@media(max-width:1200px){
 .header-main{gap:18px}
 .header-actions{margin-left:auto}
 .header-actions .menu-toggle{display:inline-flex}
 .site-nav{display:none;position:absolute;top:100%;left:0;right:0;max-height:calc(100dvh - 100px);overflow-y:auto;padding:14px max(30px,calc((100% - 1236px)/2));border-bottom:1px solid var(--border);box-shadow:0 12px 24px #1d2e5912;flex-direction:column;align-items:stretch;gap:4px;background:#fff}
 .site-nav.open{display:flex}
 .site-nav a{font-size:.95rem;padding:12px 14px;justify-content:flex-start;white-space:normal}
 .site-nav a[aria-current="page"]{background:#edf2f9}
 .site-nav a[aria-current="page"]::after{top:12px;bottom:12px;left:0;right:auto;width:3px;height:auto;background:var(--navy)}
}
/* Powiększony tekst otrzymuje zwijane menu zanim zabraknie miejsca. */
@media(min-width:1201px) and (max-width:1400px){
 html.large-1 .header-actions,html.large-2 .header-actions{margin-left:auto}
 html.large-1 .header-actions .menu-toggle,html.large-2 .header-actions .menu-toggle{display:inline-flex}
 html.large-1 .site-nav,html.large-2 .site-nav{display:none;position:absolute;top:100%;left:0;right:0;max-height:calc(100dvh - 110px);overflow-y:auto;padding:14px 30px;border-bottom:1px solid var(--border);box-shadow:0 12px 24px #1d2e5912;flex-direction:column;align-items:stretch;gap:4px;background:#fff}
 html.large-1 .site-nav.open,html.large-2 .site-nav.open{display:flex}
 html.large-1 .site-nav a,html.large-2 .site-nav a{justify-content:flex-start;padding:12px 14px;white-space:normal}
 html.large-1 .site-nav a[aria-current="page"],html.large-2 .site-nav a[aria-current="page"]{background:#edf2f9}
 html.large-1 .site-nav a[aria-current="page"]::after,html.large-2 .site-nav a[aria-current="page"]::after{top:12px;bottom:12px;left:0;right:auto;width:3px;height:auto;background:var(--navy)}
}
@media(max-width:900px){.utility-links{display:none}}
@media(max-width:600px){
 .site-utility{display:none}
 .header-main{display:grid;grid-template-columns:minmax(0,1fr) 44px;grid-template-areas:"brand menu" "tools tools";gap:5px 14px;padding-block:10px;min-height:0}
 .header-main .brand{grid-area:brand;max-width:210px}
 .header-main .official-brand{padding:0;gap:2px}
 .header-main .brand-logo{width:210px;height:auto}
 .header-main .publisher-label{font-size:.72rem;letter-spacing:.02em}
 .header-actions{display:contents}
 .header-actions .menu-toggle{grid-area:menu;justify-self:end;display:inline-flex;width:44px;height:44px}
 .header-tools{grid-area:tools;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:2px;background:transparent;border:0;border-top:1px solid #e3e8f0;border-radius:0;margin-top:4px;padding-top:6px}
 .header-tools .icon-btn{width:100%;min-width:0;gap:6px;min-height:44px;height:auto;padding:8px 3px;border-radius:6px;background:#f5f7fb}
 .header-tool-label{display:inline;font-size:.7rem;line-height:1.3;font-weight:600}
 .site-nav{padding:12px 16px;max-height:calc(100dvh - 180px)}
 .high-contrast .header-tools{border-color:#111}
 .high-contrast .header-tools .icon-btn{background:#fff;border-color:#111}
 html{scroll-padding-top:175px}
 #main{scroll-margin-top:175px}
}
@media print{.site-utility,.site-header{display:none}}
