/* Shared B2B header: one navigation, Academy brand matching the B2C shell. */
.site-header .nav{min-height:88px;gap:28px;flex-wrap:nowrap}
.site-header .b2b-brand{gap:12px;flex:0 0 auto;font-size:17px;font-weight:800;letter-spacing:.8px;color:#f1f5f8}
.site-header .b2b-brand-mark{display:grid;place-items:center;flex:0 0 auto;padding:5px;border-radius:5px;background:#f4f6f5}
.site-header .b2b-brand-mark img{display:block;width:43px;height:33px;object-fit:contain}
.site-header .b2b-brand-wordmark{line-height:1.2;white-space:nowrap}
.site-header .b2b-brand-wordmark small{display:block;margin-top:5px;font-size:9px;font-weight:600;letter-spacing:3.9px;color:#83d8d9}
.site-header .nav-links,body.home-v3-page .site-header .nav-links{gap:24px;margin-left:auto;flex-wrap:nowrap}
.site-header .nav-links>a{white-space:nowrap;font-size:14px}
.site-header .academy-menu-toggle{margin:0}

/* Three categories share the same centred row; no empty fourth column. */
.home-v3 .category-grid-v3{grid-template-columns:repeat(3,minmax(0,1fr));max-width:1200px;margin-inline:auto}
.home-v3 .category-grid-v3>.category-v3{min-width:0}
.home-v3 :is(#demo,#jak-to-dziala,#kategorie){scroll-margin-top:112px}

@media(max-width:1100px){
 .site-header .nav{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding-block:18px;min-height:88px}
 .site-header .brand{grid-column:1;grid-row:1;justify-self:start}
 .academy-nav-ready .site-header .academy-menu-toggle{display:inline-flex;grid-column:2;grid-row:1;justify-self:end;align-items:center;justify-content:center;min-height:44px}
 .site-header .nav-links,body.home-v3-page .site-header .nav-links{grid-column:1/-1;grid-row:2;width:100%;margin:0;display:flex;flex-direction:column;align-items:stretch;gap:4px;padding-top:8px}
 .academy-nav-ready .site-header .nav-links:not(.is-open){display:none}
 .academy-nav-ready .site-header .nav-links.is-open{display:flex}
 .site-header .nav-links>a{display:flex;align-items:center;min-height:44px;padding:12px 16px;border-radius:9px;white-space:normal}
}
@media(max-width:960px) and (min-width:681px){
 .home-v3 .category-grid-v3{grid-template-columns:repeat(2,minmax(0,1fr))}
 .home-v3 .category-grid-v3>.category-v3:last-child{grid-column:1/-1;width:calc((100% - 24px)/2);justify-self:center}
}
@media(max-width:680px){
 .home-v3 .category-grid-v3{grid-template-columns:minmax(0,1fr);max-width:520px}
 .home-v3 :is(#demo,#jak-to-dziala,#kategorie){scroll-margin-top:24px}
}
@media(max-width:600px){
 .site-header .nav{min-height:76px;padding-block:14px;gap:10px}
 .site-header .b2b-brand{gap:9px;font-size:13px}
 .site-header .b2b-brand-mark img{width:34px;height:26px}
 .site-header .b2b-brand-wordmark small{font-size:8px;letter-spacing:2.5px}
 .site-header .academy-menu-toggle{width:76px;padding:9px 10px;font-size:13px;line-height:1.15;white-space:normal}
}
@media(max-width:360px){
 .site-header .b2b-brand{font-size:12px}
 .site-header .b2b-brand-wordmark small{font-size:7px}
}
