@font-face {
    font-family: "Lato";
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("../fonts/lato-300-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Lato";
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("../fonts/lato-300-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Lato";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/lato-400-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Lato";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/lato-400-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Lato";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/lato-700-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Lato";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/lato-700-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 500 800;
    font-display: swap;
    src: url("../fonts/montserrat-500-800-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 500 800;
    font-display: swap;
    src: url("../fonts/montserrat-500-800-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/**
 * Ekoinstal Header Enhancements
 * Fixed header, custom burger, sector buttons, fullscreen menu overlay.
 *
 * Extracted from inline <style> in ekoinstal-seo-engine.php to reduce
 * page weight by ~15KB per page and enable browser caching.
 */

/* === FIXED HEADER — override Astra's "position:absolute" on transparent header === */
#masthead,
.ast-theme-transparent-header #masthead,
body #masthead {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background: #ffffff;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Offset body content so it doesn't hide behind fixed header */
body:not(.home) {
    padding-top: 80px;
}

.ast-primary-header-bar {
    transition: background 0.3s ease, box-shadow 0.3s ease;
    border: none !important;
}

/* Remove backgrounds/borders from header inner containers for true transparency */
.ast-primary-header-bar .site-primary-header-wrap,
.ast-primary-header-bar .ast-builder-grid-row,
.ast-primary-header-bar .ast-builder-layout-element,
.ast-primary-header-bar .site-header-primary-section-left,
.ast-primary-header-bar .site-header-primary-section-center,
.ast-primary-header-bar .site-header-primary-section-right,
.ast-primary-header-bar .ast-header-primary-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* === LOGO: bigger and proportional === */
.ast-site-identity .custom-logo-link img,
.site-logo-img .custom-logo,
.ast-header-custom-item .custom-logo,
.custom-logo {
    max-height: 60px !important;
    width: auto !important;
    height: auto !important;
    max-width: 200px !important;
}

@media (min-width: 769px) {
    .custom-logo {
        max-height: 70px !important;
        max-width: 240px !important;
    }
}

/* === HOMEPAGE: transparent initially === */
body.home #masthead {
    background: transparent;
    box-shadow: none;
}
body.home .ast-primary-header-bar {
    background: transparent !important;
}

body.home:not(.ast-main-header-nav-open) #masthead:not(.header-scrolled),
body.home:not(.ast-main-header-nav-open) .ast-primary-header-bar:not(.header-scrolled):not(.ast-header-sticked) {
    background: transparent !important;
    box-shadow: none !important;
    border-bottom: 0 !important;
}

/* === HOMEPAGE: white on scroll === */
body.home #masthead.header-scrolled {
    background: #ffffff;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,0.15);
}
.home .ast-primary-header-bar.ast-header-sticked,
.home .ast-primary-header-bar.header-scrolled {
    background: #ffffff !important;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,0.15) !important;
}

/* Homepage hero overlaps the header */
.home .hero-section {
    margin-top: -64px !important;
}

/* Hero dim overlay: lighter for more vibrant image */
.hero-section .wp-block-cover__background {
    opacity: 0.35 !important;
}

/* Logo must NOT be dimmed by hero overlay */
.home .ast-primary-header-bar .custom-logo {
    opacity: 1 !important;
    filter: none !important;
}

/* Homepage top state: logo floats directly on the hero, no plate/background. */
body.home #masthead:not(.header-scrolled) .custom-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

body.home #masthead.header-scrolled .custom-logo-link {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

/* Opening the menu should use the same compact header height as the scrolled
   state, otherwise the first menu item starts under an oversized top bar. */
body.home.ast-main-header-nav-open #masthead,
body.home.ast-main-header-nav-open .ast-primary-header-bar,
body.home.ast-main-header-nav-open .ast-primary-header-bar .site-primary-header-wrap,
body.home.ast-main-header-nav-open .ast-primary-header-bar .ast-builder-grid-row {
    height: 71px !important;
    min-height: 71px !important;
    max-height: 71px !important;
}

body.home.ast-main-header-nav-open #masthead,
body.home.ast-main-header-nav-open .ast-primary-header-bar {
    background: #ffffff !important;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,0.15) !important;
}

body.home.ast-main-header-nav-open #masthead:not(.header-scrolled) .custom-logo-link {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

body.home.ast-main-header-nav-open .custom-logo {
    max-height: 55px !important;
    max-width: 200px !important;
}

/* Non-home menu-open state should align to the same compact header rhythm as
   the scrolled state; otherwise the drawer starts under an oversized bar. */
body:not(.home).ast-main-header-nav-open #masthead,
body:not(.home).ast-main-header-nav-open .ast-primary-header-bar,
body:not(.home).ast-main-header-nav-open .ast-primary-header-bar .site-primary-header-wrap,
body:not(.home).ast-main-header-nav-open .ast-primary-header-bar .ast-builder-grid-row {
    height: 71px !important;
    min-height: 71px !important;
    max-height: 71px !important;
}

body:not(.home).ast-main-header-nav-open #masthead,
body:not(.home).ast-main-header-nav-open .ast-primary-header-bar {
    background: #ffffff !important;
    box-shadow: 0 .5rem 1rem rgba(0,7,63,0.12) !important;
}

body:not(.home).ast-main-header-nav-open .custom-logo {
    max-height: 55px !important;
    max-width: 200px !important;
}

@media (min-width: 922px) {
    body:not(.home).ast-main-header-nav-open .eko-burger span,
    body:not(.home) .ast-mobile-menu-trigger-minimal.toggled .eko-burger span {
        background: #00073F !important;
    }
}

#ekoinstal-cookie-banner button {
    min-height: 44px !important;
}

/* Hero section: full width edge-to-edge */
.hero-section.alignfull {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
}

.hero-section .wp-block-cover__image-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-section > picture {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

.hero-section > picture > .wp-block-cover__image-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 480px) {
    body.home .hero-section {
        align-items: flex-start !important;
        min-height: 700px !important;
        padding-bottom: 42px !important;
        padding-left: 24px !important;
        padding-right: 24px !important;
        padding-top: 112px !important;
    }

    body.home .hero-section .wp-block-cover__inner-container {
        max-width: 100% !important;
    }

    body.home .hero-section h1.wp-block-heading {
        font-size: 34px !important;
        line-height: 1.12 !important;
        margin-bottom: 18px !important;
    }

    body.home .hero-section p.has-text-align-center {
        max-width: 100% !important;
    }

    body.home .hero-section p.has-text-align-center:first-of-type {
        font-size: 17px !important;
        line-height: 1.45 !important;
        margin-bottom: 18px !important;
    }

    body.home .hero-section p.has-text-align-center:nth-of-type(2) {
        font-size: 14px !important;
        line-height: 1.55 !important;
        margin-bottom: 0 !important;
        margin-top: 0 !important;
    }

    body.home .hero-section .wp-block-buttons {
        gap: 12px !important;
        margin-top: 18px !important;
    }

    body.home .hero-section .wp-block-button__link {
        font-size: 14px !important;
        min-height: 44px !important;
        padding: 12px 20px !important;
    }
}

@media (max-width: 380px) {
    body.home .hero-section {
        min-height: 680px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        padding-top: 106px !important;
    }

    body.home .hero-section h1.wp-block-heading {
        font-size: 31px !important;
        line-height: 1.12 !important;
    }

    body.home .hero-section p.has-text-align-center:first-of-type {
        font-size: 16px !important;
    }

    body.home .hero-section p.has-text-align-center:nth-of-type(2) {
        font-size: 13px !important;
    }
}

/* Hero outline button: ensure white border + text */
.hero-section .wp-block-button.is-style-outline .wp-block-button__link {
    color: #ffffff !important;
    border-color: #ffffff !important;
    border-width: 2px !important;
    background: transparent !important;
}

.hero-section .wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: rgba(255,255,255,0.15) !important;
    color: #ffffff !important;
}

/* Solution-sector hero images: generated assets for /rozwiazania/ pages. */
body.page-id-13 .entry-content > .wp-block-cover:first-of-type {
    background-image: url("../img/heroes/services-overview.webp") !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    min-height: 430px !important;
    padding-bottom: 96px !important;
    padding-top: 96px !important;
}

body.page-id-13 .entry-content > .wp-block-cover:first-of-type .wp-block-cover__background {
    background:
        linear-gradient(90deg, rgba(0, 7, 63, 0.86), rgba(0, 7, 63, 0.58) 48%, rgba(0, 126, 200, 0.18)) !important;
    opacity: 1 !important;
}

body.page-id-13 .entry-content > .wp-block-cover:first-of-type h1,
body.page-id-13 .entry-content > .wp-block-cover:first-of-type p {
    text-shadow: 0 4px 24px rgba(0, 7, 63, 0.46);
}

body.page-id-7 .entry-content > .wp-block-cover:first-of-type {
    background-color: #00073F !important;
    background-image:
        linear-gradient(90deg, rgba(0, 7, 63, 0.82), rgba(0, 7, 63, 0.54) 47%, rgba(0, 126, 200, 0.10)),
        url("../img/heroes/about-team.webp") !important;
    background-position: center 56% !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    min-height: 500px !important;
    padding-bottom: 108px !important;
    padding-top: 116px !important;
}

body.page-id-7 .entry-content > .wp-block-cover:first-of-type .wp-block-cover__background {
    background: transparent !important;
    opacity: 0 !important;
}

body.page-id-7 .entry-content > .wp-block-cover:first-of-type h1,
body.page-id-7 .entry-content > .wp-block-cover:first-of-type p {
    color: #ffffff !important;
    text-shadow: 0 4px 24px rgba(0, 7, 63, 0.52);
}

body.page-id-7 .entry-content .wp-block-group.has-background[style*="background-color:#00073F"] .wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent !important;
    border-color: #70B221 !important;
    color: #ffffff !important;
}

body.page-id-7 .entry-content .wp-block-group.has-background[style*="background-color:#00073F"] .wp-block-button.is-style-outline .wp-block-button__link:hover,
body.page-id-7 .entry-content .wp-block-group.has-background[style*="background-color:#00073F"] .wp-block-button.is-style-outline .wp-block-button__link:focus {
    background: rgba(112, 178, 33, 0.16) !important;
    color: #ffffff !important;
}

body.page-id-1497 .entry-content > .wp-block-cover:first-of-type,
body.page-id-1498 .entry-content > .wp-block-cover:first-of-type,
body.page-id-1499 .entry-content > .wp-block-cover:first-of-type {
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    min-height: 430px !important;
    padding-bottom: 92px !important;
    padding-top: 92px !important;
}

body.page-id-1497 .entry-content > .wp-block-cover:first-of-type {
    background-image:
        linear-gradient(90deg, rgba(0, 7, 63, 0.78), rgba(0, 7, 63, 0.50) 48%, rgba(0, 7, 63, 0.24)),
        url("../img/heroes/solutions-home.webp") !important;
}

body.page-id-1498 .entry-content > .wp-block-cover:first-of-type {
    background-image:
        linear-gradient(90deg, rgba(0, 7, 63, 0.66), rgba(0, 7, 63, 0.32) 50%, rgba(0, 126, 200, 0.10)),
        url("../img/heroes/solutions-business.webp") !important;
}

body.page-id-1499 .entry-content > .wp-block-cover:first-of-type {
    background-image:
        linear-gradient(90deg, rgba(0, 7, 63, 0.64), rgba(0, 7, 63, 0.30) 50%, rgba(112, 178, 33, 0.10)),
        url("../img/heroes/solutions-agriculture-mazurian-farm.webp") !important;
}

body.page-id-1497 .entry-content > .wp-block-cover:first-of-type .wp-block-cover__background,
body.page-id-1498 .entry-content > .wp-block-cover:first-of-type .wp-block-cover__background,
body.page-id-1499 .entry-content > .wp-block-cover:first-of-type .wp-block-cover__background {
    background: transparent !important;
    opacity: 0 !important;
}

body.page-id-1497 .entry-content > .wp-block-cover:first-of-type h1,
body.page-id-1498 .entry-content > .wp-block-cover:first-of-type h1,
body.page-id-1499 .entry-content > .wp-block-cover:first-of-type h1,
body.page-id-1497 .entry-content > .wp-block-cover:first-of-type p,
body.page-id-1498 .entry-content > .wp-block-cover:first-of-type p,
body.page-id-1499 .entry-content > .wp-block-cover:first-of-type p {
    text-shadow: 0 4px 24px rgba(0, 7, 63, 0.42);
}

@media (max-width: 768px) {
    body.page-id-7 .entry-content > .wp-block-cover:first-of-type {
        background-position: center center !important;
        min-height: 390px !important;
        padding-bottom: 72px !important;
        padding-top: 78px !important;
    }

    body.page-id-13 .entry-content > .wp-block-cover:first-of-type {
        background-position: 58% center !important;
        min-height: 360px !important;
        padding-bottom: 64px !important;
        padding-top: 64px !important;
    }

    body.page-id-1497 .entry-content > .wp-block-cover:first-of-type,
    body.page-id-1498 .entry-content > .wp-block-cover:first-of-type,
    body.page-id-1499 .entry-content > .wp-block-cover:first-of-type {
        min-height: 360px !important;
        padding-bottom: 64px !important;
        padding-top: 64px !important;
    }
}

/* Homepage service cards: equal visual rhythm even when copy length varies. */
body.home .wp-block-column > .service-card {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 377px !important;
}

body.home .service-card > p:first-child {
    flex: 0 0 auto;
    margin: 0 0 64px !important;
}

body.home .service-card > p.service-card-media:first-child {
    align-items: center;
    display: flex !important;
    height: 132px;
    justify-content: center;
    line-height: 0;
    margin: 0 0 40px !important;
    padding: 0;
    width: 100%;
}

body.home .service-card > p.service-card-media:first-child img {
    display: block;
    height: 132px;
    max-width: 84%;
    object-fit: contain;
    width: 210px;
}

body.home .service-card > h3 {
    flex: 0 0 auto;
    margin: 0 0 24px !important;
}

body.home .service-card > p.has-text-color {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    flex: 0 0 auto;
    margin: 0 !important;
    overflow: hidden;
}

body.home .service-card > p:last-child {
    flex: 0 0 auto;
    margin: auto 0 0 !important;
}

/* Homepage proof photos: real team images attached to supporting text blocks,
   separate from the service-card media above. */
body.home .wp-block-columns:has(.eko-home-proof-media) {
    align-items: stretch !important;
}

body.home .eko-home-proof-column-with-image {
    align-self: stretch !important;
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
}

body.home .eko-home-proof-media {
    display: block !important;
    line-height: 0;
    margin: auto 0 0 !important;
    overflow: hidden;
    padding: 0;
    padding-top: 22px;
    width: 100%;
}

body.home .eko-home-proof-media img {
    aspect-ratio: 3 / 2;
    border-radius: 8px;
    box-shadow: 0 18px 34px rgba(0, 7, 63, 0.14);
    display: block;
    height: auto !important;
    object-fit: cover;
    width: 100% !important;
}

@media (max-width: 768px) {
    body.home .wp-block-column > .service-card {
        min-height: 330px !important;
    }

    body.home .service-card > p.service-card-media:first-child {
        height: 108px;
        margin-bottom: 28px !important;
    }

    body.home .service-card > p.service-card-media:first-child img {
        height: 108px;
        width: 172px;
    }

    body.home .eko-home-proof-media {
        margin-top: 18px !important;
    }
}

/* Solution sector service cards: SEO-tagged media for recommended services. */
body.page-id-1497 .entry-content .service-card.eko-sector-service-card-with-image,
body.page-id-1498 .entry-content .service-card.eko-sector-service-card-with-image,
body.page-id-1499 .entry-content .service-card.eko-sector-service-card-with-image {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 392px !important;
}

body.page-id-1497 .eko-sector-service-media,
body.page-id-1498 .eko-sector-service-media,
body.page-id-1499 .eko-sector-service-media {
    align-items: center;
    display: flex !important;
    flex: 0 0 auto;
    height: 124px;
    justify-content: center;
    line-height: 0;
    margin: 0 0 26px !important;
    padding: 0;
    width: 100%;
}

body.page-id-1497 .eko-sector-service-image-link,
body.page-id-1498 .eko-sector-service-image-link,
body.page-id-1499 .eko-sector-service-image-link {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
    width: 100%;
}

body.page-id-1497 .eko-sector-service-media img,
body.page-id-1498 .eko-sector-service-media img,
body.page-id-1499 .eko-sector-service-media img {
    display: block;
    height: 124px;
    max-width: 86%;
    object-fit: contain;
    width: 196px;
}

body.page-id-1497 .entry-content .eko-sector-service-card-with-image h3,
body.page-id-1498 .entry-content .eko-sector-service-card-with-image h3,
body.page-id-1499 .entry-content .eko-sector-service-card-with-image h3 {
    flex: 0 0 auto;
    margin: 0 0 24px !important;
}

body.page-id-1497 .entry-content .eko-sector-service-card-with-image p.has-text-color,
body.page-id-1498 .entry-content .eko-sector-service-card-with-image p.has-text-color,
body.page-id-1499 .entry-content .eko-sector-service-card-with-image p.has-text-color {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    flex: 0 0 auto;
    overflow: hidden;
}

body.page-id-1497 .entry-content .eko-sector-service-card-with-image p:last-child,
body.page-id-1498 .entry-content .eko-sector-service-card-with-image p:last-child,
body.page-id-1499 .entry-content .eko-sector-service-card-with-image p:last-child {
    flex: 0 0 auto;
    margin-top: auto !important;
}

@media (max-width: 768px) {
    body.page-id-1497 .entry-content .service-card.eko-sector-service-card-with-image,
    body.page-id-1498 .entry-content .service-card.eko-sector-service-card-with-image,
    body.page-id-1499 .entry-content .service-card.eko-sector-service-card-with-image {
        min-height: 340px !important;
    }

    body.page-id-1497 .eko-sector-service-media,
    body.page-id-1498 .eko-sector-service-media,
    body.page-id-1499 .eko-sector-service-media {
        height: 104px;
        margin-bottom: 22px !important;
    }

    body.page-id-1497 .eko-sector-service-media img,
    body.page-id-1498 .eko-sector-service-media img,
    body.page-id-1499 .eko-sector-service-media img {
        height: 104px;
        width: 164px;
    }
}

/* === NON-HOMEPAGE: always white with shadow === */
body:not(.home) #masthead {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,7,63,0.08);
}
body:not(.home) .ast-primary-header-bar {
    background: #ffffff !important;
    box-shadow: none !important;
}

/* === CUSTOM BURGER MENU (OHK style — staggered lines) === */
/* Hide default Astra hamburger SVG/icon */
.ast-mobile-menu-trigger-minimal .mobile-menu-toggle-icon,
.ast-mobile-menu-trigger-minimal .ast-mobile-svg,
.ast-mobile-menu-trigger-minimal svg,
.menu-toggle .mobile-menu-toggle-icon,
.menu-toggle .ast-mobile-svg,
.menu-toggle svg,
[data-type="dropdown"] > svg,
.ast-button-wrap .menu-toggle .mobile-menu-wrap {
    display: none !important;
}

/* Hide any duplicate toggle buttons — keep only the first one */
.ast-mobile-header-wrap .ast-button-wrap:nth-of-type(n+2) .menu-toggle {
    display: none !important;
}

/* Style the toggle button */
.ast-mobile-menu-trigger-minimal,
.menu-toggle.main-header-menu-toggle {
    width: 40px !important;
    height: 30px !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    cursor: pointer;
}

/* Custom burger lines (injected by JS) */
.eko-burger { display: flex; flex-direction: column; justify-content: space-between; height: 24px; }
.eko-burger span { display: block; height: 3.5px; border-radius: 12px; transition: all 0.3s ease; background: #00073F; }
.eko-burger .eko-line-1 { width: 34px; }
.eko-burger .eko-line-2 { width: 26px; }
.eko-burger .eko-line-3 { width: 18px; }

/* Non-home: always navy burger */
body:not(.home) .eko-burger span { background: #00073F !important; }

/* Homepage (transparent header): white burger */
body.home .eko-burger span { background: #ffffff; }

/* Homepage scrolled (white header): navy burger — must override the white above */
body.home .ast-header-sticked .eko-burger span,
body.home .header-scrolled .eko-burger span { background: #00073F !important; }

/* Menu OPEN on DESKTOP: white burger on navy bg */
@media (min-width: 922px) {
    body.ast-main-header-nav-open .eko-burger span,
    .ast-mobile-menu-trigger-minimal.toggled .eko-burger span {
        background: #ffffff !important;
    }
}

/* Menu OPEN on MOBILE: navy burger on white header */
@media (max-width: 921px) {
    body.ast-main-header-nav-open .eko-burger span,
    .ast-mobile-menu-trigger-minimal.toggled .eko-burger span {
        background: #00073F !important;
    }
}

/* === INLINE MENU (Astra Header Builder): Desktop & Mobile === */
/* Prevent body scroll when menu open */
body.ast-main-header-nav-open {
    overflow: hidden !important;
}

/* When menu open: header bar gets navy bg */
body.ast-main-header-nav-open .ast-primary-header-bar {
    background: #00073F !important;
}

/* The dropdown content area — make it scrollable within the viewport */
.ast-desktop-header-content,
.ast-mobile-header-content {
    max-height: calc(100vh - 71px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    background: #00073F !important;
}

/* Desktop can still scroll on short screens, but the native scrollbar makes
   the drawer look like an unfinished browser pane. Keep wheel/trackpad scroll
   support and hide the chrome. */
@media (min-width: 922px) {
    .ast-desktop-header-content {
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }

    .ast-desktop-header-content::-webkit-scrollbar {
        display: none !important;
        height: 0 !important;
        width: 0 !important;
    }
}

body.ast-main-header-nav-open .ast-desktop-header-content,
body.ast-main-header-nav-open .ast-mobile-header-content {
    left: 0 !important;
    position: fixed !important;
    right: auto !important;
    top: 71px !important;
    z-index: 9999 !important;
}

@media (min-width: 922px) {
    body.ast-main-header-nav-open .ast-desktop-header-content {
        width: 360px !important;
    }
}

@media (max-width: 921px) {
    body.ast-main-header-nav-open .ast-mobile-header-content {
        width: 100vw !important;
    }
}

/* Menu list styling when toggled open */
.main-header-bar-navigation .main-header-menu {
    background: #00073F !important;
}

/* Menu items styling */
body.ast-main-header-nav-open .main-header-menu .menu-item > .menu-link {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 14px 24px !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    height: auto !important;
}

/* Submenu toggle arrow — grid keeps text + arrow on one line at any width */
body.ast-main-header-nav-open .menu-item-has-children {
    display: grid !important;
    grid-template-columns: 1fr 40px !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}
body.ast-main-header-nav-open .menu-item-has-children > .menu-link {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    border-bottom: none !important;
}
body.ast-main-header-nav-open .menu-item-has-children > .ast-menu-toggle {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    cursor: pointer !important;
    position: static !important;
    padding: 0 !important;
}
body.ast-main-header-nav-open .menu-item-has-children > .sub-menu {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
}
body.ast-main-header-nav-open .menu-item-has-children .dropdown-menu-toggle {
    color: #ffffff !important;
    font-size: 12px !important;
}

/* Submenus: hidden by default when menu is open */
body.ast-main-header-nav-open .main-header-menu .sub-menu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Submenus: visible when parent toggled (gets .ast-submenu-expanded) */
body.ast-main-header-nav-open .ast-submenu-expanded > .sub-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: rgba(0,0,0,0.3) !important;
    border-left: 3px solid #70B221 !important;
    padding: 5px 0 !important;
}

/* Submenu links */
body.ast-main-header-nav-open .sub-menu .menu-item > .menu-link {
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 10px 24px 10px 32px !important;
    text-transform: none !important;
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}

/* Active menu items */
body.ast-main-header-nav-open .current-menu-item > .menu-link {
    color: #70B221 !important;
}

/* Services landing page: reuse generated service images in the main cards. */
body.page-id-13 .entry-content .eko-service-card-with-image {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 318px !important;
    width: 100% !important;
}

body.page-id-13 .entry-content .eko-service-card-column {
    display: flex !important;
}

body.page-id-13 .eko-service-section-media {
    align-items: center;
    display: flex;
    height: 132px;
    justify-content: center;
    line-height: 0;
    margin: 0 0 22px !important;
    padding: 0;
    width: 100%;
}

body.page-id-13 .eko-service-section-image-link {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
    width: 100%;
}

body.page-id-13 .eko-service-section-media img {
    display: block;
    height: 132px;
    max-width: 92%;
    object-fit: contain;
    width: 210px;
}

body.page-id-13 .entry-content .eko-service-card-with-image h3 {
    margin-top: 0 !important;
}

body.page-id-13 .entry-content .eko-service-card-with-image h3 a {
    color: #00073F !important;
    text-decoration: none !important;
}

body.page-id-13 .entry-content .eko-service-card-with-image h3 a:hover,
body.page-id-13 .entry-content .eko-service-card-with-image h3 a:focus-visible {
    color: #70B221 !important;
}

@media (max-width: 921px) {
    body.page-id-13 .entry-content .eko-service-card-with-image {
        min-height: 300px !important;
    }
}

@media (max-width: 560px) {
    body.page-id-13 .eko-service-section-media {
        height: 112px;
        margin-bottom: 18px !important;
    }

    body.page-id-13 .eko-service-section-media img {
        height: 112px;
        width: 178px;
    }
}

/* About page benefit cards: replace emoji markers with generated image assets. */
body.page-id-7 .eko-about-benefit-card-with-image {
    align-items: center;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 278px !important;
    text-align: center;
}

body.page-id-7 .eko-about-benefit-media {
    align-items: center;
    display: flex !important;
    flex: 0 0 auto;
    height: 138px;
    justify-content: center;
    line-height: 0;
    margin: 0 0 20px !important;
    padding: 0;
    width: 100%;
}

body.page-id-7 .eko-about-benefit-media img {
    border-radius: 8px;
    display: block;
    height: auto !important;
    max-height: 138px !important;
    max-width: 88% !important;
    object-fit: contain !important;
    width: 176px !important;
}

body.page-id-7 .eko-about-benefit-card-with-image h3 {
    margin-top: 0 !important;
}

@media (max-width: 768px) {
    body.page-id-7 .eko-about-benefit-card-with-image {
        min-height: 250px !important;
    }

    body.page-id-7 .eko-about-benefit-media {
        height: 118px;
        margin-bottom: 18px !important;
    }

    body.page-id-7 .eko-about-benefit-media img {
        max-height: 118px !important;
        width: 152px !important;
    }
}

/* === MOBILE-SPECIFIC ADJUSTMENTS === */
@media (max-width: 921px) {
    /* Mobile header stays WHITE when menu open */
    body.ast-main-header-nav-open #ast-mobile-header .ast-primary-header-bar {
        background: #ffffff !important;
    }

    body.home.ast-main-header-nav-open #masthead:not(.header-scrolled) #ast-mobile-header .ast-primary-header-bar {
        background: #00073F !important;
    }

    body.home.ast-main-header-nav-open #masthead:not(.header-scrolled) .eko-burger span {
        background: #ffffff !important;
    }

    /* Mobile menu content scrollable */
    .ast-mobile-header-content {
        max-height: calc(100vh - 70px) !important;
    }

    /* Hide sector buttons when menu is open */
    body.ast-main-header-nav-open .eko-sector-buttons {
        display: none !important;
    }
}

/* === "DLA DOMU" / "DLA BIZNESU" — OHK Energy style === */

/* --- DESKTOP: connected pill in header right area (OHK style) --- */
@media (min-width: 769px) {
    .eko-sector-buttons {
        position: fixed;
        top: 14px;
        right: 24px;
        z-index: 10000;
        display: flex;
        flex-direction: row;
        gap: 0;
        border-radius: 22px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        transition: top 0.3s ease;
    }

    .eko-sector-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        writing-mode: horizontal-tb;
        text-orientation: initial;
        padding: 10px 18px;
        font-family: "Montserrat", sans-serif;
        font-weight: 700;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.35px;
        text-decoration: none;
        border: none;
        cursor: pointer;
        transition: background 0.3s ease;
        border-radius: 0;
        min-height: auto;
        white-space: nowrap;
    }

    .eko-sector-btn--dom {
        background: #70B221;
        color: #ffffff;
    }

    .eko-sector-btn--dom:hover {
        background: #5a9a18;
        color: #ffffff;
    }

    .eko-sector-btn--rol {
        background: #16875E;
        color: #ffffff;
    }

    .eko-sector-btn--rol:hover {
        background: #116B4B;
        color: #ffffff;
    }

    .eko-sector-btn--biz {
        background: #007EC8;
        color: #ffffff;
    }

    .eko-sector-btn--biz:hover {
        background: #006ba8;
        color: #ffffff;
    }
}

/* --- MOBILE: vertical floating tabs on right side (OHK style) --- */
@media (max-width: 768px) {
    .eko-sector-buttons {
        position: fixed;
        right: 0;
        top: auto;
        bottom: 132px;
        transform: none;
        z-index: 9998;
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .eko-sector-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        writing-mode: vertical-lr;
        text-orientation: mixed;
        padding: 10px 7px;
        font-family: "Montserrat", sans-serif;
        font-weight: 700;
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.7px;
        text-decoration: none;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
        border-radius: 24px 0 0 24px;
        min-height: 72px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    }

    #ekoinstal-cookie-banner {
        background: #00073F !important;
        border-top: 1px solid rgba(255,255,255,0.14) !important;
        padding: 11px 12px calc(11px + env(safe-area-inset-bottom)) !important;
        box-shadow: 0 -12px 28px rgba(0,7,63,0.28) !important;
        font-size: 12px !important;
        line-height: 1.35 !important;
    }

    #ekoinstal-cookie-banner > div {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        align-items: stretch !important;
        max-width: 100% !important;
    }

    #ekoinstal-cookie-banner p {
        line-height: 1.35 !important;
    }

    #ekoinstal-cookie-banner p:first-child {
        font-size: 13px !important;
        margin-bottom: 2px !important;
    }

    #ekoinstal-cookie-banner > div > div:last-child {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    #ekoinstal-cookie-banner button {
        min-height: 44px !important;
        padding: 8px 10px !important;
        border-radius: 8px !important;
        font-size: 12px !important;
        line-height: 1.15 !important;
    }

    body.ekoinstal-cookie-visible .eko-sector-buttons {
        bottom: calc(132px + env(safe-area-inset-bottom));
    }

    .eko-sector-btn--dom {
        background: #70B221;
        color: #ffffff;
    }

    .eko-sector-btn--dom:hover {
        background: #5a9a18;
        padding-right: 12px;
        color: #ffffff;
    }

    .eko-sector-btn--rol {
        background: #16875E;
        color: #ffffff;
    }

    .eko-sector-btn--rol:hover {
        background: #116B4B;
        padding-right: 12px;
        color: #ffffff;
    }

    .eko-sector-btn--biz {
        background: #007EC8;
        color: #ffffff;
    }

    .eko-sector-btn--biz:hover {
        background: #006ba8;
        padding-right: 12px;
        color: #ffffff;
    }
}

@media (max-width: 480px) {
    .eko-sector-buttons {
        left: auto;
        right: 0;
        top: auto;
        bottom: 132px;
        flex-direction: column;
        gap: 3px;
        border-radius: 0;
        box-shadow: none;
    }

    .eko-sector-btn {
        writing-mode: vertical-lr;
        text-orientation: mixed;
        flex: 0 0 auto;
        min-height: 72px;
        min-width: 34px;
        padding: 10px 7px;
        font-size: 10px;
        letter-spacing: 0.7px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    }

    .eko-sector-btn--dom,
    .eko-sector-btn--rol,
    .eko-sector-btn--biz {
        border-radius: 24px 0 0 24px;
    }

    .eko-sector-btn--dom:hover,
    .eko-sector-btn--rol:hover,
    .eko-sector-btn--biz:hover {
        padding: 10px 7px;
    }

    body.ekoinstal-cookie-visible .eko-sector-buttons {
        bottom: calc(132px + env(safe-area-inset-bottom));
    }
}

/* === SITE FOOTER: cleaner navigation surface === */
.site-footer {
    --eko-footer-bg: #00073F;
    --eko-footer-bg-deep: #020626;
    --eko-footer-text: #dbeafe;
    --eko-footer-muted: #94a3b8;
    --eko-footer-line: rgba(148, 163, 184, 0.18);
    --eko-footer-accent: #70B221;
    --eko-footer-accent-soft: #a3d75a;
    font-family: "Montserrat", "Outfit", system-ui, -apple-system, sans-serif !important;
    background: var(--eko-footer-bg) !important;
    color: var(--eko-footer-text) !important;
    border-top: 1px solid rgba(112, 178, 33, 0.35) !important;
}

.site-footer .site-above-footer-wrap {
    background:
        radial-gradient(ellipse 720px 260px at 50% 0%, rgba(112, 178, 33, 0.12), transparent 65%),
        linear-gradient(180deg, #00073F 0%, #030a3f 100%) !important;
    padding: 56px 24px 48px !important;
}

.site-footer .site-above-footer-wrap .ast-builder-grid-row-container-inner,
.site-footer .site-below-footer-wrap .ast-builder-grid-row-container-inner {
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.site-footer .ast-builder-footer-grid-columns.site-above-footer-inner-wrap {
    display: grid !important;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr) minmax(0, 1fr) !important;
    gap: clamp(36px, 5vw, 84px) !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.site-footer .site-footer-section,
.site-footer .footer-widget-area,
.site-footer .ast-header-html,
.site-footer .ast-builder-html-element {
    margin: 0 !important;
    padding: 0 !important;
}

.site-footer .ast-builder-html-element > div {
    padding: 0 !important;
}

body .site-footer .ast-builder-html-element h4 {
    color: var(--eko-footer-accent-soft) !important;
    font-family: "Montserrat", "Outfit", system-ui, sans-serif !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    letter-spacing: -0.01em !important;
    margin: 0 0 18px !important;
}

body .site-footer .ast-builder-html-element p {
    color: var(--eko-footer-text) !important;
    font-size: 15px !important;
    line-height: 1.75 !important;
    margin: 0 !important;
    max-width: 40ch !important;
}

.site-footer .site-footer-above-section-2,
.site-footer .site-footer-above-section-3 {
    border-left: 1px solid var(--eko-footer-line) !important;
    padding-left: clamp(24px, 3vw, 44px) !important;
}

body .site-footer .ast-builder-html-element ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid !important;
    gap: 10px !important;
}

body .site-footer .ast-builder-html-element li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
}

body .site-footer .ast-builder-html-element li::marker {
    content: "" !important;
}

body .site-footer .ast-builder-html-element a {
    color: #e2e8f0 !important;
    text-decoration: none !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    transition: color 0.2s ease, transform 0.2s ease, border-color 0.2s ease !important;
}

.site-footer .site-footer-above-section-2 a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 4px 0 !important;
}

.site-footer .site-footer-above-section-2 a::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--eko-footer-accent);
    opacity: 0.85;
    flex: 0 0 auto;
}

body .site-footer .ast-builder-html-element a:hover,
body .site-footer .ast-builder-html-element a:focus-visible {
    color: var(--eko-footer-accent-soft) !important;
    transform: translateX(2px);
}

body .site-footer .site-footer-above-section-3 .ast-builder-html-element p {
    color: var(--eko-footer-text) !important;
    line-height: 1.8 !important;
}

.site-footer .site-footer-above-section-3 a {
    display: inline-flex !important;
    width: max-content !important;
    max-width: 100% !important;
    color: var(--eko-footer-accent-soft) !important;
    font-weight: 700 !important;
    overflow-wrap: anywhere !important;
}

.site-footer .site-footer-above-section-3 a[href^="mailto:"] {
    margin-top: 10px !important;
    color: #e2e8f0 !important;
    font-weight: 600 !important;
}

.site-footer .site-footer-above-section-3 a[href*="/kontakt/"] {
    margin-top: 14px !important;
    padding-bottom: 3px !important;
    border-bottom: 1px solid rgba(163, 215, 90, 0.45) !important;
}

.site-footer .site-below-footer-wrap {
    background: var(--eko-footer-bg-deep) !important;
    border-top: 1px solid var(--eko-footer-line) !important;
    padding: 16px 24px !important;
}

.site-footer .ast-builder-footer-grid-columns.site-below-footer-inner-wrap {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.site-footer .ast-footer-copyright,
.site-footer .ast-footer-copyright p {
    color: var(--eko-footer-muted) !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    text-align: left !important;
}

@media (max-width: 921px) {
    .site-footer .ast-builder-footer-grid-columns.site-above-footer-inner-wrap {
        grid-template-columns: 1fr 1fr !important;
        gap: 34px 44px !important;
    }

    .site-footer .site-footer-above-section-1 {
        grid-column: 1 / -1 !important;
    }

    .site-footer .site-footer-above-section-2 {
        border-left: 0 !important;
        padding-left: 0 !important;
    }
}

/* Services and sector pages: match homepage transparent header over image hero. */
body.page-id-7,
body.page-id-13,
body.page-id-1497,
body.page-id-1498,
body.page-id-1499 {
    padding-top: 0 !important;
}

body.page-id-7:not(.ast-main-header-nav-open) #masthead:not(.header-scrolled),
body.page-id-13:not(.ast-main-header-nav-open) #masthead:not(.header-scrolled),
body.page-id-1497:not(.ast-main-header-nav-open) #masthead:not(.header-scrolled),
body.page-id-1498:not(.ast-main-header-nav-open) #masthead:not(.header-scrolled),
body.page-id-1499:not(.ast-main-header-nav-open) #masthead:not(.header-scrolled),
body.page-id-7:not(.ast-main-header-nav-open) .ast-primary-header-bar:not(.header-scrolled):not(.ast-header-sticked),
body.page-id-13:not(.ast-main-header-nav-open) .ast-primary-header-bar:not(.header-scrolled):not(.ast-header-sticked),
body.page-id-1497:not(.ast-main-header-nav-open) .ast-primary-header-bar:not(.header-scrolled):not(.ast-header-sticked),
body.page-id-1498:not(.ast-main-header-nav-open) .ast-primary-header-bar:not(.header-scrolled):not(.ast-header-sticked),
body.page-id-1499:not(.ast-main-header-nav-open) .ast-primary-header-bar:not(.header-scrolled):not(.ast-header-sticked) {
    background: transparent !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

body.page-id-7 #masthead.header-scrolled,
body.page-id-13 #masthead.header-scrolled,
body.page-id-1497 #masthead.header-scrolled,
body.page-id-1498 #masthead.header-scrolled,
body.page-id-1499 #masthead.header-scrolled,
body.page-id-7 .ast-primary-header-bar.ast-header-sticked,
body.page-id-13 .ast-primary-header-bar.ast-header-sticked,
body.page-id-1497 .ast-primary-header-bar.ast-header-sticked,
body.page-id-1498 .ast-primary-header-bar.ast-header-sticked,
body.page-id-1499 .ast-primary-header-bar.ast-header-sticked,
body.page-id-7 .ast-primary-header-bar.header-scrolled,
body.page-id-13 .ast-primary-header-bar.header-scrolled,
body.page-id-1497 .ast-primary-header-bar.header-scrolled,
body.page-id-1498 .ast-primary-header-bar.header-scrolled,
body.page-id-1499 .ast-primary-header-bar.header-scrolled {
    background: #ffffff !important;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,0.15) !important;
}

body.page-id-7 #masthead .custom-logo-link,
body.page-id-13 #masthead .custom-logo-link,
body.page-id-1497 #masthead .custom-logo-link,
body.page-id-1498 #masthead .custom-logo-link,
body.page-id-1499 #masthead .custom-logo-link {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

body.page-id-7:not(.ast-main-header-nav-open) #masthead:not(.header-scrolled) .eko-burger span,
body.page-id-13:not(.ast-main-header-nav-open) #masthead:not(.header-scrolled) .eko-burger span,
body.page-id-1497:not(.ast-main-header-nav-open) #masthead:not(.header-scrolled) .eko-burger span,
body.page-id-1498:not(.ast-main-header-nav-open) #masthead:not(.header-scrolled) .eko-burger span,
body.page-id-1499:not(.ast-main-header-nav-open) #masthead:not(.header-scrolled) .eko-burger span {
    background: #ffffff !important;
}

body.page-id-7 .ast-primary-header-bar .site-header-primary-section-left,
body.page-id-8 .ast-primary-header-bar .site-header-primary-section-left,
body.page-id-13 .ast-primary-header-bar .site-header-primary-section-left,
body.page-id-1497 .ast-primary-header-bar .site-header-primary-section-left,
body.page-id-1498 .ast-primary-header-bar .site-header-primary-section-left,
body.page-id-1499 .ast-primary-header-bar .site-header-primary-section-left,
body.page-id-7 .ast-primary-header-bar .site-header-section-left,
body.page-id-8 .ast-primary-header-bar .site-header-section-left,
body.page-id-13 .ast-primary-header-bar .site-header-section-left,
body.page-id-1497 .ast-primary-header-bar .site-header-section-left,
body.page-id-1498 .ast-primary-header-bar .site-header-section-left,
body.page-id-1499 .ast-primary-header-bar .site-header-section-left {
    padding-left: clamp(28px, 3vw, 48px) !important;
}

body.page-id-7 .ast-primary-header-bar .site-header-primary-section-right,
body.page-id-8 .ast-primary-header-bar .site-header-primary-section-right,
body.page-id-13 .ast-primary-header-bar .site-header-primary-section-right,
body.page-id-1497 .ast-primary-header-bar .site-header-primary-section-right,
body.page-id-1498 .ast-primary-header-bar .site-header-primary-section-right,
body.page-id-1499 .ast-primary-header-bar .site-header-primary-section-right,
body.page-id-7 .ast-primary-header-bar .site-header-section-right,
body.page-id-8 .ast-primary-header-bar .site-header-section-right,
body.page-id-13 .ast-primary-header-bar .site-header-section-right,
body.page-id-1497 .ast-primary-header-bar .site-header-section-right,
body.page-id-1498 .ast-primary-header-bar .site-header-section-right,
body.page-id-1499 .ast-primary-header-bar .site-header-section-right {
    padding-right: clamp(16px, 2vw, 32px) !important;
}

@media (max-width: 768px) {
    body.ast-header-break-point #masthead .site-header-primary-section-left,
    body.ast-header-break-point #masthead .site-header-section-left,
    body.ast-header-break-point #masthead .site-header-section--primary.site-header-section-left {
        padding-left: 0 !important;
    }

    body.ast-header-break-point #masthead .ast-button-wrap,
    body.ast-header-break-point #masthead .ast-mobile-menu-trigger-minimal,
    body.ast-header-break-point #masthead .menu-toggle.main-header-menu-toggle {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
}

body.page-id-7 .entry-content > .wp-block-cover:first-of-type,
body.page-id-13 .entry-content > .wp-block-cover:first-of-type,
body.page-id-1497 .entry-content > .wp-block-cover:first-of-type,
body.page-id-1498 .entry-content > .wp-block-cover:first-of-type,
body.page-id-1499 .entry-content > .wp-block-cover:first-of-type {
    margin-top: -64px !important;
}

body.page-id-7 #masthead.header-scrolled .eko-burger span,
body.page-id-13 #masthead.header-scrolled .eko-burger span,
body.page-id-1497 #masthead.header-scrolled .eko-burger span,
body.page-id-1498 #masthead.header-scrolled .eko-burger span,
body.page-id-1499 #masthead.header-scrolled .eko-burger span,
body.page-id-7 .ast-primary-header-bar.header-scrolled .eko-burger span,
body.page-id-13 .ast-primary-header-bar.header-scrolled .eko-burger span,
body.page-id-1497 .ast-primary-header-bar.header-scrolled .eko-burger span,
body.page-id-1498 .ast-primary-header-bar.header-scrolled .eko-burger span,
body.page-id-1499 .ast-primary-header-bar.header-scrolled .eko-burger span {
    background: #00073F !important;
}

@media (max-width: 560px) {
    body.page-id-8 .entry-content h1.wp-block-heading {
        font-size: 34px !important;
        line-height: 1.15 !important;
        letter-spacing: 0 !important;
    }

    body.home .entry-content h2.wp-block-heading,
    body.page-id-7 .entry-content h2.wp-block-heading,
    body.page-id-13 .entry-content h2.wp-block-heading {
        font-size: 30px !important;
        line-height: 1.18 !important;
        letter-spacing: 0 !important;
    }
}

@media (max-width: 640px) {
    .site-footer .site-above-footer-wrap {
        padding: 40px 22px 34px !important;
    }

    .site-footer .ast-builder-footer-grid-columns.site-above-footer-inner-wrap {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }

    .site-footer .site-footer-above-section-2,
    .site-footer .site-footer-above-section-3 {
        border-left: 0 !important;
        border-top: 1px solid var(--eko-footer-line) !important;
        padding-left: 0 !important;
        padding-top: 26px !important;
    }

    body .site-footer .ast-builder-html-element ul {
        grid-template-columns: 1fr 1fr !important;
        column-gap: 18px !important;
    }

    body .site-footer .ast-builder-html-element a,
    body .site-footer .ast-builder-html-element p {
        font-size: 14px !important;
    }

    .site-footer .site-below-footer-wrap {
        padding: 14px 22px !important;
    }
}

@media (max-width: 420px) {
    body .site-footer .ast-builder-html-element ul {
        grid-template-columns: 1fr !important;
    }
}

/* Hide sector buttons when scrolled to footer */
.eko-sector-buttons.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease;
}

/* === HIDE AUTHOR BOX & COMMENTS === */
.ast-author-box,
.author-box,
.ast-single-author-box,
.about-author,
.entry-author-box { display: none !important; }

.comments-area,
.comment-respond,
#comments,
.ast-comment-list { display: none !important; }

/* === HIDE POST METADATA (date/author) ON SEO PAGES === */
/* service_location, location_page, realizacja — date/author not relevant */
body.single-service_location .entry-meta,
body.single-service_location .posted-on,
body.single-service_location .byline,
body.single-location_page .entry-meta,
body.single-location_page .posted-on,
body.single-location_page .byline,
body.post-type-archive-location_page .ast-blog-meta-container,
body.post-type-archive-location_page .entry-meta,
body.post-type-archive-location_page .posted-on,
body.post-type-archive-location_page .posted-by,
body.post-type-archive-location_page .byline,
body.single-realizacja .entry-meta,
body.single-realizacja .posted-on,
body.single-realizacja .byline,
body.ast-custom-post-type .entry-meta,
body.ast-custom-post-type .ast-single-post-meta { display: none !important; }

/* Also hide post navigation on SEO pages (prev/next post links) */
body.single-service_location .ast-single-post-nav,
body.single-service_location .post-navigation,
body.single-location_page .ast-single-post-nav,
body.single-location_page .post-navigation,
body.single-realizacja .ast-single-post-nav,
body.single-realizacja .post-navigation { display: none !important; }

/* Powiat accordion on service hub pages: links remain in HTML for SEO. */
.ekoinstal-powiat-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 12px;
}

.ekoinstal-powiat-accordion {
    border: 1px solid #dde5ee;
    border-radius: 8px;
    background: #ffffff;
    margin: 0;
    overflow: hidden;
}

.ekoinstal-powiat-summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    list-style: none;
    min-height: 58px;
    padding: 14px 16px;
    color: #00073F;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ekoinstal-powiat-summary span:first-child {
    min-width: 0;
}

.ekoinstal-powiat-summary::-webkit-details-marker {
    display: none;
}

.ekoinstal-powiat-summary::after {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid #70B221;
    border-bottom: 2px solid #70B221;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex: 0 0 auto;
}

.ekoinstal-powiat-accordion[open] .ekoinstal-powiat-summary::after {
    transform: rotate(225deg);
}

.ekoinstal-powiat-count {
    margin-left: auto;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}

.ekoinstal-powiat-gminy {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 24px;
    list-style: none;
    margin: 0;
    padding: 0 16px 16px;
    font-size: 14px;
    line-height: 1.7;
}

.ekoinstal-powiat-gminy a {
    color: #00073F;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ekoinstal-powiat-gminy a:hover,
.ekoinstal-powiat-gminy a:focus-visible {
    color: #70B221;
}

@media (max-width: 980px) {
    .ekoinstal-powiat-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .ekoinstal-powiat-list {
        gap: 8px;
    }

    .ekoinstal-powiat-summary {
        gap: 8px;
        min-height: 52px;
        padding: 11px 12px;
        font-size: 12px;
        letter-spacing: 0.25px;
    }

    .ekoinstal-powiat-count {
        font-size: 11px;
    }

    .ekoinstal-powiat-gminy {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 0 12px 14px;
    }
}

/* Service card images: preserve source aspect ratio inside fixed media slots. */
body.home .service-card > p.service-card-media:first-child img,
body.page-id-13 .eko-service-section-media img,
body.page-id-1497 .eko-sector-service-media img,
body.page-id-1498 .eko-sector-service-media img,
body.page-id-1499 .eko-sector-service-media img {
    aspect-ratio: auto !important;
    height: auto !important;
    max-height: 132px !important;
    object-fit: contain !important;
    width: auto !important;
}

body.home .service-card > p.service-card-media:first-child img {
    max-width: 84% !important;
}

body.page-id-13 .eko-service-section-media img {
    max-width: 92% !important;
}

body.page-id-1497 .eko-sector-service-media img,
body.page-id-1498 .eko-sector-service-media img,
body.page-id-1499 .eko-sector-service-media img {
    max-height: 124px !important;
    max-width: 86% !important;
}

@media (max-width: 768px) {
    body.home .service-card > p.service-card-media:first-child img {
        max-height: 108px !important;
        max-width: 84% !important;
    }

    body.page-id-1497 .eko-sector-service-media img,
    body.page-id-1498 .eko-sector-service-media img,
    body.page-id-1499 .eko-sector-service-media img {
        max-height: 104px !important;
        max-width: 86% !important;
    }
}

@media (max-width: 560px) {
    body.page-id-13 .eko-service-section-media img {
        max-height: 112px !important;
        max-width: 92% !important;
    }
}

/* Astra's sticky add-on fixes the inner header bar separately on archives.
   Keep it inside our already-fixed masthead to avoid a doubled header. */
#masthead .ast-primary-header-bar.ast-header-sticked {
    left: auto !important;
    position: relative !important;
    right: auto !important;
    top: auto !important;
    width: 100% !important;
}

body.post-type-archive-location_page #primary.content-area,
body.post-type-archive-realizacja #primary.content-area {
    margin-top: 12px !important;
}

@media (max-width: 768px) {
    body.post-type-archive-location_page #primary.content-area,
    body.post-type-archive-realizacja #primary.content-area {
        margin-top: 9px !important;
    }
}

/* Phone scrolled header: reclaim vertical space without shrinking touch targets. */
@media (max-width: 768px) {
    body #masthead.mobile-header-compact {
        height: 60px !important;
        max-height: 60px !important;
        min-height: 60px !important;
    }

    body #masthead.mobile-header-compact .ast-main-header-wrap,
    body #masthead.mobile-header-compact .ast-mobile-header-wrap,
    body #masthead.mobile-header-compact #ast-mobile-header,
    body #masthead.mobile-header-compact .ast-primary-header-bar,
    body #masthead.mobile-header-compact .site-primary-header-wrap,
    body #masthead.mobile-header-compact .ast-builder-grid-row {
        height: 60px !important;
        max-height: 60px !important;
        min-height: 60px !important;
    }

    body #masthead.mobile-header-compact .site-branding,
    body #masthead.mobile-header-compact .ast-site-identity {
        align-items: center !important;
        display: flex !important;
        min-height: 60px !important;
        padding-bottom: 0 !important;
        padding-top: 0 !important;
    }

    body #masthead.mobile-header-compact .custom-logo {
        max-height: 42px !important;
        max-width: 150px !important;
    }

    body #masthead.mobile-header-compact .ast-mobile-menu-trigger-minimal,
    body #masthead.mobile-header-compact .menu-toggle.main-header-menu-toggle {
        height: 28px !important;
        min-height: 28px !important;
        width: 36px !important;
    }

    body #masthead.mobile-header-compact .eko-burger {
        height: 20px !important;
    }

    body #masthead.mobile-header-compact .eko-burger span {
        height: 3px !important;
    }

    body #masthead.mobile-header-compact .eko-burger .eko-line-1 {
        width: 30px !important;
    }

    body #masthead.mobile-header-compact .eko-burger .eko-line-2 {
        width: 23px !important;
    }

    body #masthead.mobile-header-compact .eko-burger .eko-line-3 {
        width: 16px !important;
    }

    body.mobile-header-compact.ast-main-header-nav-open .ast-mobile-header-content {
        max-height: calc(100vh - 60px) !important;
        top: 60px !important;
    }

    body.mobile-header-compact.ast-main-header-nav-open #masthead.mobile-header-compact,
    body.mobile-header-compact.ast-main-header-nav-open #masthead.mobile-header-compact .ast-main-header-wrap,
    body.mobile-header-compact.ast-main-header-nav-open #masthead.mobile-header-compact .ast-mobile-header-wrap,
    body.mobile-header-compact.ast-main-header-nav-open #masthead.mobile-header-compact #ast-mobile-header,
    body.mobile-header-compact.ast-main-header-nav-open #masthead.mobile-header-compact .ast-primary-header-bar,
    body.mobile-header-compact.ast-main-header-nav-open #masthead.mobile-header-compact .site-primary-header-wrap,
    body.mobile-header-compact.ast-main-header-nav-open #masthead.mobile-header-compact .ast-builder-grid-row {
        height: 60px !important;
        max-height: 60px !important;
        min-height: 60px !important;
    }
}

/* Service detail pages: override legacy page-specific CSS that made the
   masthead static and left only Astra's inner bar sticky while scrolling. */
html body.wp-singular.page.page-child.parent-pageid-13 {
    padding-top: 0 !important;
}

html body.wp-singular.page.page-child.parent-pageid-13 #primary {
    margin-top: 0 !important;
}

html body.wp-singular.page.page-child.parent-pageid-13 #masthead,
html body.wp-singular.page.page-child.parent-pageid-13 .site-header,
html body.wp-singular.page.page-child.parent-pageid-13 header.site-header {
    background: transparent !important;
    box-shadow: none !important;
    left: 0 !important;
    position: fixed !important;
    right: 0 !important;
    top: 0 !important;
    transform: none !important;
    width: 100% !important;
    z-index: 9999 !important;
}

html body.wp-singular.page.page-child.parent-pageid-13 #masthead .ast-primary-header-bar,
html body.wp-singular.page.page-child.parent-pageid-13 #masthead .ast-primary-header-bar.ast-primary-header,
html body.wp-singular.page.page-child.parent-pageid-13 #masthead .main-header-bar {
    background: transparent !important;
    box-shadow: none !important;
    left: auto !important;
    position: relative !important;
    right: auto !important;
    top: auto !important;
}

html body.wp-singular.page.page-child.parent-pageid-13:not(.ast-main-header-nav-open) #masthead:not(.header-scrolled),
html body.wp-singular.page.page-child.parent-pageid-13:not(.ast-main-header-nav-open) #masthead:not(.header-scrolled) .ast-primary-header-bar,
html body.wp-singular.page.page-child.parent-pageid-13:not(.ast-main-header-nav-open) #masthead:not(.header-scrolled) .ast-primary-header-bar.ast-header-sticked,
html body.wp-singular.page.page-child.parent-pageid-13:not(.ast-main-header-nav-open) #masthead:not(.header-scrolled) .main-header-bar {
    background: transparent !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

html body.wp-singular.page.page-child.parent-pageid-13 #masthead.header-scrolled,
html body.wp-singular.page.page-child.parent-pageid-13 #masthead.header-scrolled .ast-primary-header-bar,
html body.wp-singular.page.page-child.parent-pageid-13 #masthead .ast-primary-header-bar.header-scrolled {
    background: #ffffff !important;
    box-shadow: 0 .5rem 1rem rgba(0, 7, 63, 0.12) !important;
}

@media (max-width: 768px) {
    html body.wp-singular.page.page-child.parent-pageid-13.ast-header-break-point #masthead .ast-button-wrap,
    html body.wp-singular.page.page-child.parent-pageid-13.ast-header-break-point #masthead .ast-mobile-menu-trigger-minimal,
    html body.wp-singular.page.page-child.parent-pageid-13.ast-header-break-point #masthead .menu-toggle.main-header-menu-toggle {
        margin-left: 20px !important;
        padding-left: 0 !important;
    }
}

/* Service detail pages: keep the hero readable and remove accidental vertical
   compression from legacy inline page CSS. */
html body.wp-singular.page.page-id-15 .entry-content[data-ast-blocks-layout] > .eim-page.eim-hero,
html body.wp-singular.page.page-id-15 .entry-content[data-ast-blocks-layout] > .eim-page.eim-stats {
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    max-width: 100vw !important;
    width: 100vw !important;
}

html body.wp-singular.page.page-child.parent-pageid-13 .eim-hero .eim-hero__lead {
    color: #e8f2ff !important;
    margin: 0 0 26px !important;
}

html body.wp-singular.page.page-child.parent-pageid-13 .eim-hero .eim-trust-bullets {
    color: #dbeafe !important;
    gap: 14px 24px !important;
    margin: 0 0 28px !important;
}

html body.wp-singular.page.page-child.parent-pageid-13 .eim-hero .eim-cta-row {
    margin-top: 0 !important;
}

html body.wp-singular.page.page-child.parent-pageid-13 .eim-sol-card--feature {
    justify-content: flex-start !important;
}

html body.wp-singular.page.page-child.parent-pageid-13 .eim-sol-card--feature p {
    flex: 0 0 auto !important;
    margin: 0 0 24px !important;
    max-width: 58ch !important;
}

html body.wp-singular.page.page-child.parent-pageid-13 .eim-sol-card--feature ul {
    flex: 0 0 auto !important;
    margin-top: 0 !important;
}

/* Put sector buttons on the side before they collide with the centered logo. */
@media (min-width: 769px) and (max-width: 1279px) {
    .eko-sector-buttons {
        border-radius: 0 !important;
        bottom: auto !important;
        box-shadow: none !important;
        flex-direction: column !important;
        gap: 3px !important;
        overflow: visible !important;
        right: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    .eko-sector-btn {
        border-radius: 24px 0 0 24px !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.22) !important;
        font-size: 11px !important;
        letter-spacing: 0.7px !important;
        min-height: 88px !important;
        padding: 10px 8px !important;
        text-orientation: mixed !important;
        writing-mode: vertical-lr !important;
    }
}

@media (max-width: 921px) {
    html body.wp-singular.page.page-child.parent-pageid-13 {
        padding-top: 89px !important;
    }
}

@media (max-width: 560px) {
    html body.wp-singular.page.page-child.parent-pageid-13 .eim-hero .eim-hero__lead {
        font-size: 17px !important;
        line-height: 1.55 !important;
        margin-bottom: 22px !important;
    }

    html body.wp-singular.page.page-child.parent-pageid-13 .eim-hero .eim-trust-bullets {
        gap: 10px !important;
        margin-bottom: 22px !important;
    }

    html body.wp-singular.page.page-child.parent-pageid-13 .eim-sol-card--feature p {
        max-width: none !important;
    }
}

/* SEO/internal-link cards for grant pages and services hub. */
.ekoinstal-money-links {
    background: #f5f9f3;
    margin: 56px calc(50% - 50vw) 0;
    padding: 56px 20px;
}

.ekoinstal-money-links__inner {
    margin: 0 auto;
    max-width: 1160px;
}

.ekoinstal-money-links__eyebrow {
    color: #5ea914;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.8px;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.ekoinstal-money-links h2 {
    color: #00073f;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    margin: 0 0 14px;
}

.ekoinstal-money-links p {
    color: #344054;
    font-size: 18px;
    line-height: 1.65;
    margin: 0 0 24px;
    max-width: 820px;
}

.ekoinstal-money-links__grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.ekoinstal-money-card {
    background: #ffffff;
    border: 1px solid rgba(0, 7, 63, 0.08);
    border-radius: 10px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    color: #00073f;
    display: block;
    min-height: 150px;
    padding: 24px;
    text-decoration: none !important;
}

.ekoinstal-money-card span {
    color: #5ea914;
    display: block;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.1px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.ekoinstal-money-card strong {
    display: block;
    font-size: 22px;
    line-height: 1.25;
}

.ekoinstal-money-card:hover {
    border-color: rgba(94, 169, 20, 0.38);
    transform: translateY(-2px);
}

.ekoinstal-money-links__cta a {
    color: #5ea914;
    font-weight: 800;
}

/* Realizacje proof-page enrichment. */
.ekoinstal-realizacja-enrichment {
    background: #f8fafc;
    border: 1px solid rgba(0, 7, 63, 0.08);
    border-radius: 12px;
    margin: 48px 0 0;
    padding: clamp(28px, 4vw, 44px);
}

.ekoinstal-realizacja-enrichment__eyebrow {
    color: #5ea914;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.6px;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.ekoinstal-realizacja-enrichment h2,
.ekoinstal-realizacja-enrichment h3 {
    color: #00073f;
    line-height: 1.16;
    margin: 0 0 16px;
}

.ekoinstal-realizacja-enrichment h2 {
    font-size: clamp(28px, 3vw, 40px);
}

.ekoinstal-realizacja-enrichment h3 {
    font-size: 20px;
}

.ekoinstal-realizacja-enrichment p,
.ekoinstal-realizacja-enrichment li,
.ekoinstal-realizacja-enrichment td,
.ekoinstal-realizacja-enrichment th {
    color: #344054;
    font-size: 16px;
    line-height: 1.65;
}

.ekoinstal-realizacja-enrichment a {
    color: #5ea914;
    font-weight: 800;
}

.ekoinstal-realizacja-enrichment__grid {
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
    margin-top: 28px;
}

.ekoinstal-realizacja-enrichment__table {
    border-collapse: collapse;
    width: 100%;
}

.ekoinstal-realizacja-enrichment__table th,
.ekoinstal-realizacja-enrichment__table td {
    border-bottom: 1px solid rgba(0, 7, 63, 0.08);
    padding: 12px 0;
    text-align: left;
    vertical-align: top;
}

.ekoinstal-realizacja-enrichment__table th {
    color: #00073f;
    font-weight: 800;
    padding-right: 18px;
    width: 36%;
}

.ekoinstal-realizacja-enrichment__links ul {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
}

.ekoinstal-realizacja-enrichment__links li + li {
    margin-top: 9px;
}

.ekoinstal-related-realizacje {
    background: #f8fafc;
    border: 1px solid rgba(0, 7, 63, 0.08);
    border-radius: 12px;
    margin: clamp(40px, 6vw, 72px) auto 0;
    max-width: 1180px;
    padding: clamp(26px, 4vw, 42px);
}

.eim-service-page .ekoinstal-related-realizacje {
    margin-left: auto;
    margin-right: auto;
    width: min(1180px, calc(100% - 40px));
}

.ekoinstal-related-realizacje__head {
    max-width: 760px;
}

.ekoinstal-related-realizacje__kicker {
    color: #5ea914;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.ekoinstal-related-realizacje h2 {
    color: #00073f;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.14;
    margin: 0 0 12px;
}

.ekoinstal-related-realizacje__head p:not(.ekoinstal-related-realizacje__kicker) {
    color: #475467;
    font-size: 17px;
    line-height: 1.65;
    margin: 0;
}

.ekoinstal-related-realizacje__grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
}

.ekoinstal-related-realizacje__card {
    background: #fff;
    border: 1px solid rgba(0, 7, 63, 0.08);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color .22s ease, transform .22s ease;
}

.ekoinstal-related-realizacje__card:hover {
    border-color: rgba(94, 169, 20, 0.34);
    transform: translateY(-2px);
}

.ekoinstal-related-realizacje__card a {
    color: inherit;
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 100%;
    text-decoration: none;
}

.ekoinstal-related-realizacje__card figure {
    aspect-ratio: 16 / 10;
    background: #e9eef5;
    margin: 0;
    overflow: hidden;
}

.ekoinstal-related-realizacje__image {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.ekoinstal-related-realizacje__card span {
    color: #5ea914;
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .6px;
    line-height: 1.35;
    padding: 18px 20px 0;
    text-transform: uppercase;
}

.ekoinstal-related-realizacje__card h3 {
    color: #00073f;
    font-size: clamp(19px, 1.7vw, 24px);
    line-height: 1.2;
    margin: 0;
    padding: 10px 20px 22px;
}

.ekoinstal-related-realizacje__card--text a {
    padding-top: 24px;
}

.ekoinstal-related-realizacje__archive {
    margin: 24px 0 0;
}

.ekoinstal-related-realizacje__archive a {
    color: #5ea914;
    font-weight: 800;
}

.ekoinstal-home-realizacje-cta {
    align-items: center;
    background: #00073f;
    background: linear-gradient(135deg, #00073f 0%, #061a52 62%, #0b4770 100%);
    border: 0;
    border-radius: 12px;
    box-shadow: 0 22px 48px rgba(0, 7, 63, 0.18);
    color: #ffffff;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin: clamp(36px, 5vw, 64px) auto 0;
    max-width: 1180px;
    padding: clamp(28px, 4vw, 42px);
}

.ekoinstal-home-realizacje-cta__content {
    max-width: 790px;
}

.ekoinstal-home-realizacje-cta__kicker {
    color: #a8e562;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.4px;
    line-height: 1.25;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.ekoinstal-home-realizacje-cta__title {
    color: #ffffff;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.12;
    margin: 0 0 12px;
}

.ekoinstal-home-realizacje-cta__text {
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.55;
    margin: 0;
}

.ekoinstal-home-realizacje-cta__button {
    align-items: center;
    background: #70B221;
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(112, 178, 33, 0.28);
    color: #ffffff !important;
    display: inline-flex;
    font-size: 17px;
    font-weight: 900;
    justify-content: center;
    min-height: 54px;
    padding: 0 28px;
    text-decoration: none !important;
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
    white-space: nowrap;
}

.ekoinstal-home-realizacje-cta__button:hover,
.ekoinstal-home-realizacje-cta__button:focus {
    background: #5ea914;
    box-shadow: 0 14px 30px rgba(112, 178, 33, 0.34);
    color: #ffffff !important;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .ekoinstal-money-links {
        margin-top: 36px;
        padding: 40px 16px;
    }

    .ekoinstal-money-links h2 {
        font-size: 30px;
    }

    .ekoinstal-money-links p {
        font-size: 16px;
    }

    .ekoinstal-money-card {
        min-height: 0;
        padding: 20px;
    }

    .ekoinstal-realizacja-enrichment__grid {
        grid-template-columns: 1fr;
    }

    .ekoinstal-realizacja-enrichment {
        border-radius: 8px;
        margin-top: 34px;
        padding: 24px 18px;
    }

    .ekoinstal-related-realizacje,
    .eim-service-page .ekoinstal-related-realizacje {
        border-radius: 8px;
        margin-top: 34px;
        padding: 24px 16px;
        width: auto;
    }

    .ekoinstal-related-realizacje__grid {
        grid-template-columns: 1fr;
    }

    .ekoinstal-home-realizacje-cta {
        align-items: flex-start;
        grid-template-columns: 1fr;
        margin-top: 34px;
    }

    .ekoinstal-home-realizacje-cta__button {
        min-height: 52px;
        width: 100%;
    }
}
