/* Shared navigation alignment on all pages and language versions. */
.sds-site-header{background:#fff!important}
.sds-site-header .sds-utility{background:#fff!important}
.sds-site-header .sds-header,.sds-site-header .sds-utility-inner{width:100%!important;max-width:none!important;box-sizing:border-box!important;margin-left:auto!important;margin-right:auto!important;padding-left:30px!important;padding-right:30px!important}
.sds-site-header .sds-header{background:#fff!important}
@media(max-width:1100px){.sds-site-header .sds-header,.sds-site-header .sds-utility-inner{padding-left:24px!important;padding-right:24px!important}}
@media(max-width:650px){.sds-site-header .sds-header,.sds-site-header .sds-utility-inner{padding-left:16px!important;padding-right:16px!important}}
/* Keep the utility tagline visually unchanged when used as the homepage H1. */
body.home .sds-utility-inner>h1{font-family:inherit;font-size:13px!important;font-weight:400!important;line-height:1.65;letter-spacing:.01em;margin:0!important;white-space:nowrap;color:inherit}
/* Service links change colour without changing their weight. */
.sds-site-header .sds-primary-nav li:has(>a[href="/oferta/"]) a:is(:hover,:focus-visible),
.sds-site-header .sds-primary-nav li:has(>a[href="/oferta/"]) a:is(:hover,:focus-visible) span{color:#c74300!important;font-weight:400!important}
main .sds-service-tile h3 a:is(:hover,:focus-visible),main .sds-service-tile h3 a:is(:hover,:focus-visible) *{color:#c74300!important;font-weight:inherit!important;text-decoration:none!important}
/* Wide-screen mega menus cover the triggers instead of drifting to the centre. */
@media(min-width:1280px){
html body .sds-site-header .sds-primary-nav .sds-mega-root>li.has-child>.wp-block-navigation__submenu-container{left:30px!important;right:30px!important;width:calc(100vw - 60px)!important;max-width:none!important;transform:none!important;top:var(--sds-mega-top,140px)!important}
html body .sds-site-header .sds-primary-nav .sds-mega-root>li.has-child:hover::after{content:'';position:fixed!important;left:30px!important;right:30px!important;top:calc(var(--sds-mega-top,140px) - 24px)!important;height:25px!important;width:auto!important;transform:none!important;background:transparent;z-index:1099}
html body .sds-site-header .sds-primary-nav .sds-mega-root>li.has-child>.wp-block-navigation__submenu-container a:is(:hover,:focus-visible),html body .sds-site-header .sds-primary-nav .sds-mega-root>li.has-child>.wp-block-navigation__submenu-container a:is(:hover,:focus-visible) span{color:#c74300!important;font-weight:400!important}
}
/* Services hover: light beige with medium weight. */
html body .sds-site-header .sds-primary-nav li:has(>a[href="/oferta/"]) a:is(:hover,:focus-visible),
html body .sds-site-header .sds-primary-nav li:has(>a[href="/oferta/"]) a:is(:hover,:focus-visible) span,
html body .sds-site-header .sds-primary-nav .sds-mega-root>li.has-child:has(>a[href="/oferta/"])>.wp-block-navigation__submenu-container a:is(:hover,:focus-visible),
html body .sds-site-header .sds-primary-nav .sds-mega-root>li.has-child:has(>a[href="/oferta/"])>.wp-block-navigation__submenu-container a:is(:hover,:focus-visible) span,
html body main .sds-service-tile h3 a:is(:hover,:focus-visible),html body main .sds-service-tile h3 a:is(:hover,:focus-visible) *{color:#b7a586!important;font-weight:500!important;text-decoration:none!important}
/* One page gutter for the navigation, section headings and media. */
:root{--sds-page-gutter:30px}
@media(max-width:1100px){:root{--sds-page-gutter:24px}}
@media(max-width:650px){:root{--sds-page-gutter:16px}}
html body.home main>.wp-block-post-content> :is(.sds-section,.sds-audiences,.sds-partners,.sds-cooperation){width:100%!important;max-width:none!important;box-sizing:border-box!important;margin-left:0!important;margin-right:0!important;padding-left:var(--sds-page-gutter)!important;padding-right:var(--sds-page-gutter)!important}
html body.home .sds-products-black.sds-popular-first{padding-left:var(--sds-page-gutter)!important;padding-right:var(--sds-page-gutter)!important}
html body.home :is(.sds-section-head,.sds-popular-head,.sds-partners-head,.sds-coop-head){max-width:none!important;margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important}
html body:not(.home):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .wp-site-blocks>main{width:100%!important;max-width:none!important;box-sizing:border-box;padding-left:var(--sds-page-gutter)!important;padding-right:var(--sds-page-gutter)!important}
html body:not(.home) main>.wp-block-post-content{width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important}
html body:not(.home) main>.wp-block-post-content> :is(.sds-detail-title,.sds-detail-intro,.sds-detail-body,.sds-detail-banner,.sds-section){max-width:none!important;margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important;box-sizing:border-box}
html body :is(.sds-section-head,.sds-popular-head,.sds-partners-head,.sds-coop-head,.sds-detail-title,.sds-detail-intro)>:is(h1,h2,h3){margin-left:0!important;padding-left:0!important}
/* Align service photos with the same content edge as the logo and headings. */
html body:not(.home) .wp-site-blocks>main .wp-block-post-content>.sds-detail-banner{position:relative!important;left:0!important;right:auto!important;transform:none!important;width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important;box-sizing:border-box}
html body .sds-site-header :is(.sds-header,.sds-utility-inner){padding-left:var(--sds-page-gutter)!important;padding-right:var(--sds-page-gutter)!important}
html body:not(.home) .wp-site-blocks>main .wp-block-post-content>:is(h1,h2,h3,.sds-detail-title,.sds-detail-intro,.sds-detail-body){margin-left:0!important;margin-right:0!important}
html body.home .sds-section>.sds-section-head,html body.home .sds-section>.sds-popular-head,html body.home .sds-section>h2,html body.home .sds-partners>.sds-partners-head{margin-left:0!important;padding-left:0!important}
/* Use the footer's 1280px content column throughout the site. */
:root{--sds-page-gutter:max(24px,calc((100vw - 1280px)/2))}
@media(max-width:1100px){:root{--sds-page-gutter:24px}}
@media(max-width:650px){:root{--sds-page-gutter:24px}}
html body .sds-footer.sds-footer-expanded{padding-left:var(--sds-page-gutter)!important;padding-right:var(--sds-page-gutter)!important;box-sizing:border-box}
html body .sds-site-header :is(.sds-header,.sds-utility-inner){padding-left:var(--sds-page-gutter)!important;padding-right:var(--sds-page-gutter)!important}
html body.woocommerce-cart .wp-site-blocks>main,html body.woocommerce-checkout .wp-site-blocks>main,html body.woocommerce-account .wp-site-blocks>main{width:100%!important;max-width:none!important;box-sizing:border-box;padding-left:var(--sds-page-gutter)!important;padding-right:var(--sds-page-gutter)!important}
html body.home .sds-slider.sds-cinematic{width:calc(100% - 2 * var(--sds-page-gutter))!important;max-width:1280px!important;margin-left:auto!important;margin-right:auto!important}
html body.home .sds-slider .sds-banner-copy{margin-left:0!important;max-width:650px}
@media(min-width:1280px){
html body .sds-site-header .sds-primary-nav .sds-mega-root>li.has-child>.wp-block-navigation__submenu-container{left:var(--sds-page-gutter)!important;right:var(--sds-page-gutter)!important;width:calc(100vw - 2 * var(--sds-page-gutter))!important}
html body .sds-site-header .sds-primary-nav .sds-mega-root>li.has-child:hover::after{left:var(--sds-page-gutter)!important;right:var(--sds-page-gutter)!important}
}
/* Full-bleed hero photographs with copy aligned to the shared content column. */
html body.home .sds-slider.sds-cinematic{width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important}
html body.home .sds-slider.sds-cinematic .sds-banner>.sds-banner-copy{margin-left:var(--sds-page-gutter)!important;margin-right:var(--sds-page-gutter)!important;box-sizing:border-box;max-width:min(650px,calc(100% - 2 * var(--sds-page-gutter)))!important}
/* Absolute-positioned caption: use one left offset, never offset plus margin. */
html body.home .sds-slider.sds-cinematic .sds-banner>.sds-banner-copy{left:var(--sds-page-gutter)!important;right:auto!important;margin-left:0!important;margin-right:0!important;transform:none!important;width:min(650px,calc(100% - 2 * var(--sds-page-gutter)))!important;max-width:calc(100% - 2 * var(--sds-page-gutter))!important}
@media(min-width:1280px){
html body .sds-site-header .sds-primary-nav .sds-mega-root>li.has-child.sds-menu-held>.wp-block-navigation__submenu-container{display:grid!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;height:auto!important}
}

/* Align standalone chapter icons with the headings beneath them, including WP constrained groups. */
html body main .sds-detail-chapter > .sds-about-icon,
html body main .sds-editorial-icon {
  margin-left:0!important;
  margin-right:auto!important;
  justify-self:start;
  align-self:flex-start;
}
html body main .sds-editorial-icon {display:flex!important;justify-content:flex-start!important;}
html body main .sds-editorial-icon > svg {margin-left:0!important;margin-right:0!important;}

/* Compact two-line section links and truly circular mobile product controls. */
@media(max-width:600px){
  html body.home :is(.sds-service-heading-actions,.sds-popular-heading-actions,.sds-product-heading-actions)>a.sds-see-all {
    white-space:normal!important;
    inline-size:min-content;
    flex:0 0 auto;
    line-height:1.25;
    text-align:right;
  }
  html body.home .sds-popular-heading-actions .sds-product-carousel-controls button {
    width:32px!important;
    height:32px!important;
    min-width:32px!important;
    min-height:32px!important;
    max-width:32px!important;
    max-height:32px!important;
    flex:0 0 32px;
    border-radius:50%!important;
  }
}

/* B2B editorial panel: image left, copy and existing actions right. */
html body .sds-b2b-plan {max-width:1280px!important;margin:80px auto!important;background:#f7f6f3;}
html body .sds-b2b-plan>.sds-b2b-plan-columns {display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0!important;margin:0!important;align-items:stretch!important;}
html body .sds-b2b-plan .wp-block-column {min-width:0;margin:0!important;}
html body .sds-b2b-plan-media {position:relative;}
html body .sds-b2b-plan-media figure {height:100%;margin:0!important;}
html body .sds-b2b-plan-media img {display:block;width:100%;height:100%;min-height:460px;object-fit:cover;object-position:center;}
html body .sds-b2b-plan .sds-b2b-plan-copy {display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:clamp(28px,4vw,56px);box-sizing:border-box;}
html body .sds-b2b-plan-copy h2 {font-size:clamp(32px,3.3vw,46px);font-weight:400;line-height:1.12;letter-spacing:-.04em;margin:0 0 24px!important;}
html body .sds-b2b-plan-copy p {font-size:17px;line-height:1.7;font-weight:300;margin:0 0 30px!important;}
html body .sds-b2b-plan-copy .wp-block-buttons {display:flex;flex-wrap:wrap;gap:12px;margin:0!important;}
html body .sds-b2b-plan-copy .wp-block-button {margin:0!important;}
html body .sds-b2b-plan-copy .wp-block-button__link {white-space:normal;}
@media(max-width:781px){
html body .sds-b2b-plan {margin:48px auto!important;}
html body .sds-b2b-plan>.sds-b2b-plan-columns {grid-template-columns:minmax(0,1fr);}
html body .sds-b2b-plan-media img {height:auto;min-height:0;aspect-ratio:4/3;}
html body .sds-b2b-plan .sds-b2b-plan-copy {padding:32px 24px;}
html body .sds-b2b-plan-copy .wp-block-button {width:100%;}
html body .sds-b2b-plan-copy .wp-block-button__link {box-sizing:border-box;width:100%;}
}

/* Keep the dimensional wall sign visible in the contact banner crop. */
html body.page-id-16 .sds-detail-banner img {object-position:center top!important;}

/* Keep the white wall signs inside the crop on the About and price pages. */
html body:is(.page-id-13,.page-id-236) .sds-detail-banner img,
html body.page-id-236 .sds-price-section-banner[data-price-section="kalkulator-inwestycji"] img {object-position:center top!important;}
