/* Product categories stay visible at every screen size. */
html:has(body.energy-store){scroll-padding-top:116px;scroll-behavior:auto}
.energy-store .header-inner{position:relative;display:flex;gap:16px;min-height:104px;padding-block:14px}
.energy-store .header-inner>.fe-brand>.fe-logo-frame{width:178px}
.energy-store .header-inner #product-nav{display:flex;flex:1;align-items:stretch;justify-content:space-between;gap:5px;min-width:0}
.energy-store #product-nav a{display:flex;flex-direction:column;justify-content:center;min-height:48px;padding:8px 7px;border-radius:8px;font-size:12px;line-height:1.45;font-weight:750;white-space:nowrap;color:#142b27}
.energy-store #product-nav a span{display:block;font-size:10px;font-weight:500;color:#53695e}
.energy-store #product-nav a:hover,.energy-store #product-nav a:focus-visible{background:#eaf0e2;color:#a63c1d}
.energy-store #product-nav a::after{display:none}
.energy-store .header-inner>.button{flex-shrink:0;margin-left:0;padding:12px 14px;font-size:11px;gap:10px;min-height:44px}
.energy-store .header-inner #brand-menu{display:flex;flex-shrink:0;align-items:center;justify-content:center;flex-direction:column;gap:2px;width:46px;height:48px;flex-basis:46px;border:0;background:transparent;border-radius:8px;font-size:21px}
.energy-store #brand-menu .menu-label{font-size:10px;font-weight:600}
.energy-store .header-inner #brand-menu:hover{background:#eaf0e2}
.energy-store .header-inner #brand-nav{display:none;position:absolute;left:auto;right:0;top:100%;width:280px;max-height:calc(100dvh - 210px);overflow-y:auto;overscroll-behavior:contain;padding:10px;background:#fbfaf6;border:1px solid #cbd8ce;border-radius:12px;box-shadow:0 14px 35px #142b271a;z-index:30}
.energy-store .header-inner #brand-nav.is-open{display:flex;flex-direction:column;align-items:stretch;gap:0}
.energy-store .header-inner #brand-nav a{font-size:14px;min-height:44px;padding:12px;border-radius:7px}
.energy-store .header-inner #brand-nav a:hover{background:#eaf0e2}
.energy-store #product-nav a:focus-visible{outline:3px solid #a2381c;outline-offset:2px}
.business-pv-link{display:inline-flex;min-height:44px;align-items:center;font-weight:700;text-decoration:underline;text-underline-offset:5px;margin:0 0 14px}
.finance-section{padding-block:72px;color:#142b27}
.finance-heading{max-width:680px;margin-bottom:30px}
.finance-heading .eyebrow{color:#ab3d1b;margin-bottom:16px}
.finance-heading h2{font-size:clamp(32px,4vw,46px);margin-bottom:20px}
.finance-heading h2 span{color:#cc4c24}
.finance-heading>p:last-child{font-size:17px;line-height:1.8;color:#53695e}
.finance-options{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.finance-options article{padding:30px;border:1px solid #d1ddce;border-radius:18px;background:#eef3e9}
.finance-options article:nth-child(2){background:#fff1e4}
.finance-number{display:block;color:#687b60;font-size:13px;margin-bottom:22px}
.finance-options h3{font-size:26px;margin-bottom:14px}
.finance-options p{font-size:15px;line-height:1.8;color:#53695e;margin-bottom:20px;max-width:440px}
.finance-options a{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding-top:14px;border-top:1px solid #bccbb7;font-weight:700;font-size:14px}
.finance-options a:hover{color:#a63c1d}
.finance-contact{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-top:22px;color:#53695e;font-size:12px}
.finance-contact p:first-child{font-size:14px;flex-shrink:0}.finance-contact a{font-weight:700;text-decoration:underline;text-underline-offset:4px;display:inline-flex;align-items:center;min-height:44px}
@media(max-width:1199px){
 html:has(body.energy-store){scroll-padding-top:204px}
 .energy-store .header-inner{display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-rows:auto auto;gap:8px 18px;min-height:0;padding-block:12px}
 .energy-store .header-inner>.fe-brand{grid-column:1;grid-row:1}
 .energy-store .header-inner>.button{grid-column:2;grid-row:1;align-self:center;justify-self:end}
 .energy-store .header-inner>#brand-menu{grid-column:3;grid-row:1;align-self:center;justify-self:end}
 .energy-store .header-inner #product-nav{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding-top:8px;border-top:1px solid #dde4d9}
 .energy-store #product-nav a{padding:6px 10px;min-height:45px;text-align:center;white-space:normal;background:#f0f3eb}
 .energy-store .header-inner #brand-nav{grid-column:auto}
}
@media(max-width:620px){
 html:has(body.energy-store){scroll-padding-top:202px}
 .energy-store .header-inner{gap:6px 8px;padding-block:10px}
 .energy-store .header-inner>.fe-brand>.fe-logo-frame{width:150px}
 .energy-store .header-inner>.button{font-size:10px;padding:10px;gap:5px}
 .energy-store #product-nav a{font-size:11px;min-height:47px;padding:5px 4px;line-height:1.35}
 .energy-store #product-nav a span{font-size:9px;line-height:1.4}
 .energy-store .header-inner #brand-nav{width:min(280px,100%)}
 .finance-section{padding-block:45px}.finance-options{grid-template-columns:minmax(0,1fr);gap:16px}.finance-options article{padding:24px}.finance-contact{flex-direction:column;align-items:flex-start;gap:10px}.finance-heading>p:last-child{font-size:15px}
}
@media(max-width:360px){
 .energy-store .header-inner>.fe-brand>.fe-logo-frame{width:126px}
 .energy-store .header-inner>.button{padding-inline:8px}
 .energy-store #product-nav a{font-size:10px}.energy-store #product-nav a span{font-size:9px}
}

/* Direct entry points at the top of the home page, one equal column per link. */
.energy-store .top-shortcuts{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px;padding:8px;margin-bottom:16px;border:1px solid #dce5d7;border-radius:12px;background:#f0f3eb}
.energy-store .top-shortcuts a{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:10px 18px;border-radius:7px;color:#142b27;font-size:14px;line-height:1.4;font-weight:700}
.energy-store .top-shortcuts a:hover{background:#e3ebd9;color:#a63c1d}
.energy-store .top-shortcuts a:focus-visible{outline:3px solid #a2381c;outline-offset:1px;background:#e3ebd9}
.energy-store .top-shortcuts a>span:last-child{flex-shrink:0;font-size:18px}
@media(max-width:620px){
 .energy-store .top-shortcuts{gap:4px;padding:4px;margin-bottom:8px}
 .energy-store .top-shortcuts a{justify-content:center;min-height:56px;padding:8px 5px;font-size:12px;text-align:center;gap:5px}
 .energy-store .top-shortcuts a>span:last-child{display:none}
}

/* Seven offer departments: two compact rows on smaller displays. */
@media(min-width:1200px) and (max-width:1399px){.energy-store .header-inner{gap:10px}.energy-store .header-inner>.fe-brand>.fe-logo-frame{width:155px}.energy-store #product-nav a{font-size:11px;padding-inline:5px}.energy-store #product-nav a span{font-size:9px}.energy-store .header-inner>.button{font-size:10px;padding-inline:10px}}
@media(max-width:1199px){.energy-store .header-inner #product-nav{grid-template-columns:repeat(4,minmax(0,1fr))}.energy-store #product-nav>a:last-child{grid-column:3/5}}

/* Phones: a low sticky header. Logo, "Twój zestaw" and the menu share one row and the seven offer
   departments one row that scrolls sideways, so with the bottom button the fixed parts cover about a fifth
   of an iPhone screen instead of almost two fifths. Phones held sideways get a single row. */
@media(max-width:620px),(max-width:1199px) and (max-height:520px){
 html:has(body.energy-store){scroll-padding-top:100px}
 .energy-store .header-inner{display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-rows:auto auto;gap:2px 8px;min-height:0;padding-block:3px}
 .energy-store .header-inner>.fe-brand{grid-column:1;grid-row:1;align-self:center}
 .energy-store .header-inner>.fe-brand>.fe-logo-frame{width:96px}
 .energy-store .header-inner>.button{grid-column:2;grid-row:1;align-self:center;padding:8px 12px;font-size:11px;gap:6px}
 .energy-store .header-inner>#brand-menu{grid-column:3;grid-row:1;align-self:center;width:44px;height:44px;flex-basis:44px}
 .energy-store .header-inner #product-nav{grid-column:1/-1;grid-row:2;display:flex;gap:5px;padding:0;border-top:0;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 26px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 26px),transparent)}
 .energy-store .header-inner #product-nav::-webkit-scrollbar{display:none}
 .energy-store .header-inner #product-nav::after{content:'';flex:0 0 22px}
 .energy-store #product-nav a{flex:0 0 auto;min-height:32px;padding:5px 12px;border-radius:99px;font-size:12px;line-height:1.2;white-space:nowrap;scroll-snap-align:start;background:#f0f3eb}
 .energy-store #product-nav a span{display:none}
 .energy-store #product-nav>a:last-child{grid-column:auto}
 .energy-store #product-nav a:focus-visible{outline-offset:-3px}
 .energy-store .header-inner #brand-nav{max-height:calc(100vh - 110px);max-height:calc(100dvh - 110px)}
 .energy-store .top-shortcuts a{min-height:44px;padding-block:6px}
}
@media(min-width:621px) and (max-width:1199px) and (max-height:520px){
 html:has(body.energy-store){scroll-padding-top:64px}
 .energy-store .header-inner{grid-template-columns:auto minmax(0,1fr) auto auto;grid-template-rows:auto;gap:0 10px}
 .energy-store .header-inner #product-nav{grid-column:2;grid-row:1}
 .energy-store .header-inner>.button{grid-column:3}
 .energy-store .header-inner>#brand-menu{grid-column:4}
}
/* The bottom "Oblicz instalację" button: slimmer, hidden while the calculator is on screen (brand-offer.js),
   and the page ends with room for it so it never covers the footer. */
@media(max-width:560px){
 body.energy-store{padding-bottom:64px}
 .energy-store .mobile-cta{min-height:44px;padding:10px 18px;bottom:10px;transition:opacity .2s,transform .2s,visibility 0s}
 .energy-store .mobile-cta.is-away{opacity:0;visibility:hidden;transform:translateY(16px);pointer-events:none;transition:opacity .2s,transform .2s,visibility 0s .2s}
}
@media(prefers-reduced-motion:reduce){.energy-store .mobile-cta,.energy-store .mobile-cta.is-away{transition:none}}
