@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300&display=swap");

/*
 * One canonical header and footer for every EO24 page.
 * Selectors are deliberately scoped to the two global Elementor widgets so
 * these rules never leak into the page-specific sections below them.
 */
.eo24-site--eo24-header,
.eo24-site--eo24-footer {
    --eo24-red: #b20b17;
    --eo24-red-bright: #d01924;
    --eo24-red-dark: #79060d;
    --eo24-text-light: #c9c9c9;
    --eo24-focus: #ffce45;
    width: 100% !important;
    color: #ffffff !important;
    font-family: Tahoma, Arial, sans-serif !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
}

/*
 * Page-specific styles are also present in Elementor Theme Builder previews.
 * The Aktualności stylesheet intentionally hides overflow on its content
 * modules, but the global header must remain open so the mobile navigation
 * can extend below the header widget.
 */
.eo24-site--eo24-header.eo24-site--elementor {
    overflow: visible !important;
}

.eo24-site--eo24-header,
.eo24-site--eo24-header *,
.eo24-site--eo24-footer,
.eo24-site--eo24-footer * {
    box-sizing: border-box !important;
}

.eo24-site--eo24-header a,
.eo24-site--eo24-footer a {
    color: inherit !important;
}

.eo24-site--eo24-header svg,
.eo24-site--eo24-footer svg {
    flex: 0 0 auto !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.eo24-site--eo24-header .eo24-container,
.eo24-site--eo24-footer .eo24-container {
    width: 100% !important;
    max-width: 1450px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding-right: 18px !important;
    padding-left: 18px !important;
}

.eo24-site--eo24-header .eo24-topbar {
    color: #ffffff !important;
    background: linear-gradient(180deg, var(--eo24-red-bright), var(--eo24-red) 60%, #980711) !important;
    border-bottom: 1px solid var(--eo24-red-dark) !important;
}

.eo24-site--eo24-header .eo24-topbar__inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding-top: 9px !important;
    padding-bottom: 9px !important;
    gap: 8px !important;
}

.eo24-site--eo24-header .eo24-topbar p {
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-family: "Open Sans", sans-serif !important;
    font-size: 0.74rem !important;
    font-weight: 300 !important;
    line-height: 1.3 !important;
    letter-spacing: 0.05em !important;
    text-align: center !important;
    text-transform: uppercase !important;
}

.eo24-site--eo24-header .eo24-topbar__contact {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px 17px !important;
}

.eo24-site--eo24-header .eo24-topbar__contact a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    color: #ffffff !important;
    font-family: "Open Sans", sans-serif !important;
    font-size: 0.78rem !important;
    font-weight: 300 !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
}

.eo24-site--eo24-header .eo24-topbar__contact a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

.eo24-site--eo24-header .eo24-header {
    position: relative !important;
    z-index: 100 !important;
    color: #ffffff !important;
    background-color: #65696c !important;
    background-image: url("https://e-office24.pl/wp-content/uploads/2026/08/bg-1-e1785922232601.jpg") !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-bottom: 1px solid #171717 !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16) !important;
}

.eo24-site--eo24-header .eo24-header::before,
.eo24-site--eo24-header .eo24-header::after {
    background: none !important;
    box-shadow: none !important;
}

.eo24-site--eo24-header .eo24-header__inner {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    min-height: 94px !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    gap: 20px !important;
}

.eo24-site--eo24-header .eo24-logo,
.eo24-site--eo24-footer .eo24-logo {
    display: block !important;
    width: 250px !important;
    max-width: 100% !important;
    height: 82px !important;
    flex: 0 0 250px !important;
    background: transparent url("https://e-office24.pl/wp-content/uploads/2026/08/Logo_biuro_new.jpg") left center / contain no-repeat !important;
    text-decoration: none !important;
}

.eo24-site--eo24-header .eo24-logo .eo24-logo__main,
.eo24-site--eo24-header .eo24-logo > small,
.eo24-site--eo24-footer .eo24-logo .eo24-logo__main,
.eo24-site--eo24-footer .eo24-logo > small {
    display: none !important;
}

.eo24-site--eo24-header .eo24-header__toggle {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 52px !important;
    height: 52px !important;
    padding: 0 !important;
    gap: 5px !important;
    color: #ffffff !important;
    background: linear-gradient(180deg, var(--eo24-red-bright), var(--eo24-red)) !important;
    border: 1px solid var(--eo24-red-dark) !important;
    border-radius: 5px !important;
    cursor: pointer !important;
}

.eo24-site--eo24-header .eo24-header__toggle > span {
    display: block !important;
    width: 24px !important;
    height: 2px !important;
    background: #ffffff !important;
    border-radius: 99px !important;
}

.eo24-site--eo24-header .eo24-header__toggle[aria-expanded="true"] > span:nth-child(1) {
    transform: translateY(7px) rotate(45deg) !important;
}

.eo24-site--eo24-header .eo24-header__toggle[aria-expanded="true"] > span:nth-child(2) {
    opacity: 0 !important;
}

.eo24-site--eo24-header .eo24-header__toggle[aria-expanded="true"] > span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg) !important;
}

.eo24-site--eo24-header .eo24-header__panel {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: 0 !important;
    display: none !important;
    width: 100% !important;
    max-height: calc(100vh - 94px) !important;
    overflow-y: auto !important;
    padding: 20px 18px 25px !important;
    background-color: #65696c !important;
    background-image: url("https://e-office24.pl/wp-content/uploads/2026/08/bg-1-e1785922232601.jpg") !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    border-bottom: 3px solid var(--eo24-red) !important;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.35) !important;
}

.eo24-site--eo24-header .eo24-header__panel.is-open {
    display: block !important;
}

.eo24-site--eo24-header .eo24-header__nav ul {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 4px !important;
    list-style: none !important;
}

.eo24-site--eo24-header .eo24-header__nav li {
    margin: 0 !important;
    padding: 0 !important;
}

.eo24-site--eo24-header .eo24-header__nav a {
    display: flex !important;
    align-items: center !important;
    min-height: 48px !important;
    padding: 13px 15px !important;
    color: #ffffff !important;
    background: transparent !important;
    border-left: 3px solid transparent !important;
    font-family: "Open Sans", sans-serif !important;
    font-size: 0.91rem !important;
    font-weight: 300 !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
}

.eo24-site--eo24-header .eo24-header__nav a:hover,
.eo24-site--eo24-header .eo24-header__nav a.is-current {
    color: #ffffff !important;
    background: rgba(178, 11, 23, 0.18) !important;
    border-left-color: var(--eo24-red-bright) !important;
}

.eo24-site--eo24-header .eo24-button {
    position: relative !important;
    display: inline-flex !important;
    align-items: stretch !important;
    justify-content: center !important;
    min-height: 56px !important;
    padding: 0 !important;
    overflow: hidden !important;
    color: #ffffff !important;
    background: linear-gradient(180deg, var(--eo24-red-bright), var(--eo24-red) 54%, #8f0710) !important;
    border: 1px solid var(--eo24-red-dark) !important;
    border-radius: 5px !important;
    box-shadow: 0 14px 32px rgba(178, 11, 23, 0.27), inset 0 1px 0 rgba(255, 255, 255, 0.27) !important;
    font-family: "Open Sans", sans-serif !important;
    font-size: 0.94rem !important;
    font-weight: 300 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.eo24-site--eo24-header .eo24-button > span:first-child {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 54px !important;
    padding: 16px 24px !important;
    color: #ffffff !important;
}

.eo24-site--eo24-header .eo24-button__arrow {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 52px !important;
    width: 52px !important;
    min-height: 54px !important;
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.18) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.16) !important;
}

.eo24-site--eo24-header .eo24-button:hover {
    color: #ffffff !important;
    background: linear-gradient(180deg, #e12934, #c8101d 54%, #9b0712) !important;
    transform: translateY(-2px) !important;
}

.eo24-site--eo24-header a:focus-visible,
.eo24-site--eo24-header button:focus-visible,
.eo24-site--eo24-footer a:focus-visible {
    outline: 3px solid var(--eo24-focus) !important;
    outline-offset: 4px !important;
}

.eo24-site--eo24-footer .eo24-footer {
    color: #ffffff !important;
    background-color: #65696c !important;
    background-image: url("https://e-office24.pl/wp-content/uploads/2026/08/bg-e1785922201830.jpg") !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    border-top: 5px solid var(--eo24-red) !important;
}

.eo24-site--eo24-footer .eo24-footer__top {
    display: grid !important;
    grid-template-columns: 1fr !important;
    padding-top: 58px !important;
    padding-bottom: 44px !important;
    gap: 37px !important;
}

.eo24-site--eo24-footer .eo24-footer__brand > p {
    max-width: 390px !important;
    margin: 18px 0 0 !important;
    color: var(--eo24-text-light) !important;
    font-size: 0.85rem !important;
    line-height: 1.68 !important;
}

.eo24-site--eo24-footer .eo24-footer__contact {
    display: grid !important;
    margin-top: 20px !important;
    gap: 10px !important;
}

.eo24-site--eo24-footer .eo24-footer__contact a,
.eo24-site--eo24-footer .eo24-footer__contact > span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #ffffff !important;
    font-size: 0.82rem !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
    text-decoration: none !important;
}

.eo24-site--eo24-footer .eo24-footer__contact > span {
    color: var(--eo24-text-light) !important;
}

.eo24-site--eo24-footer .eo24-footer__contact a:hover {
    color: #ff5c66 !important;
}

.eo24-site--eo24-footer .eo24-footer__column h2 {
    margin: 0 0 17px !important;
    padding-bottom: 9px !important;
    color: #ffffff !important;
    border-bottom: 2px solid var(--eo24-red) !important;
    font-family: "Open Sans", sans-serif !important;
    font-size: 0.83rem !important;
    font-weight: 300 !important;
    line-height: 1.3 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

.eo24-site--eo24-footer .eo24-footer__column ul {
    display: grid !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 10px !important;
    list-style: none !important;
}

.eo24-site--eo24-footer .eo24-footer__column li {
    margin: 0 !important;
    padding: 0 !important;
}

.eo24-site--eo24-footer .eo24-footer__column a,
.eo24-site--eo24-footer .eo24-footer__column p {
    margin: 0 !important;
    color: var(--eo24-text-light) !important;
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 0.81rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    text-decoration: none !important;
}

.eo24-site--eo24-footer .eo24-footer__column a:hover {
    color: #ffffff !important;
    transform: translateX(3px) !important;
}

.eo24-site--eo24-footer .eo24-footer__subheading {
    margin-top: 25px !important;
    padding-top: 18px !important;
}

.eo24-site--eo24-footer .eo24-footer__bottom {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 20px 0 !important;
    gap: 11px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.11) !important;
}

.eo24-site--eo24-footer .eo24-footer__bottom p {
    margin: 0 !important;
    color: #929292 !important;
    font-size: 0.71rem !important;
    line-height: 1.5 !important;
}

.eo24-site--eo24-footer .eo24-footer__bottom div {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
}

.eo24-site--eo24-footer .eo24-footer__bottom a {
    color: #a9a9a9 !important;
    font-size: 0.71rem !important;
    line-height: 1.5 !important;
    text-decoration: none !important;
}

.eo24-site--eo24-footer .eo24-footer__bottom a:hover {
    color: #ffffff !important;
}

@media (min-width: 600px) {
    .eo24-site--eo24-header .eo24-container,
    .eo24-site--eo24-footer .eo24-container {
        padding-right: 28px !important;
        padding-left: 28px !important;
    }

    .eo24-site--eo24-header .eo24-topbar__inner {
        flex-direction: row !important;
        justify-content: space-between !important;
    }

    .eo24-site--eo24-header .eo24-header__panel {
        padding-right: 28px !important;
        padding-left: 28px !important;
    }

    .eo24-site--eo24-footer .eo24-footer__top {
        grid-template-columns: 1.5fr 1fr !important;
    }
}

@media (min-width: 960px) {
    .eo24-site--eo24-header .eo24-topbar__inner {
        min-height: 36px !important;
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }

    .eo24-site--eo24-header .eo24-header__inner {
        min-height: 90px !important;
        padding-top: 4px !important;
        padding-bottom: 4px !important;
    }

    .eo24-site--eo24-footer .eo24-footer__top {
        grid-template-columns: 1.65fr repeat(3, 1fr) !important;
    }

    .eo24-site--eo24-footer .eo24-footer__bottom {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
}

@media (min-width: 1240px) {
    .eo24-site--eo24-header .eo24-container,
    .eo24-site--eo24-footer .eo24-container {
        padding-right: 32px !important;
        padding-left: 32px !important;
    }

    .eo24-site--eo24-header .eo24-header__inner {
        grid-template-columns: 285px minmax(0, 1fr) !important;
    }

    .eo24-site--eo24-header .eo24-header__toggle {
        display: none !important;
    }

    .eo24-site--eo24-header .eo24-header__panel {
        position: static !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: center !important;
        width: 100% !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 0 !important;
        gap: 18px !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .eo24-site--eo24-header .eo24-header__nav ul {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 1px !important;
    }

    .eo24-site--eo24-header .eo24-header__nav a {
        min-height: 43px !important;
        padding: 12px 7px !important;
        border-right: 0 !important;
        border-bottom: 3px solid transparent !important;
        border-left: 0 !important;
        font-size: 0.78rem !important;
        white-space: nowrap !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35) !important;
    }

    .eo24-site--eo24-header .eo24-header__nav a:hover,
    .eo24-site--eo24-header .eo24-header__nav a.is-current {
        background: rgba(255, 255, 255, 0.05) !important;
        border-bottom-color: var(--eo24-red-bright) !important;
    }

    .eo24-site--eo24-header .eo24-header__cta {
        width: auto !important;
        min-height: 52px !important;
        margin-top: 0 !important;
    }

    .eo24-site--eo24-header .eo24-header__cta > span:first-child {
        min-height: 50px !important;
        padding: 14px 18px !important;
        font-size: 0.82rem !important;
    }

    .eo24-site--eo24-header .eo24-header__cta .eo24-button__arrow {
        flex-basis: 45px !important;
        width: 45px !important;
        min-height: 50px !important;
    }
}

@media (min-width: 1380px) {
    .eo24-site--eo24-header .eo24-header__inner {
        grid-template-columns: 300px minmax(0, 1fr) !important;
    }

    .eo24-site--eo24-header .eo24-header__nav a {
        padding-right: 9px !important;
        padding-left: 9px !important;
        font-size: 0.83rem !important;
    }

    .eo24-site--eo24-header .eo24-header__panel {
        gap: 24px !important;
    }
}

@media (min-width: 1514px) {
    .eo24-site--eo24-header .eo24-container,
    .eo24-site--eo24-footer .eo24-container {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }
}

@media (max-width: 959px) {
    .eo24-site--eo24-header .eo24-logo,
    .eo24-site--eo24-footer .eo24-logo {
        width: 205px !important;
        height: 68px !important;
        flex-basis: 205px !important;
    }
}

@media (max-width: 599px) {
    .eo24-site--eo24-header .eo24-container,
    .eo24-site--eo24-footer .eo24-container {
        padding-right: 17px !important;
        padding-left: 17px !important;
    }

    .eo24-site--eo24-header .eo24-logo,
    .eo24-site--eo24-footer .eo24-logo {
        width: 170px !important;
        height: 58px !important;
        flex-basis: 170px !important;
    }

    .eo24-site--eo24-header .eo24-topbar p,
    .eo24-site--eo24-header .eo24-topbar__contact a[href^="mailto:"] {
        display: none !important;
    }

    .eo24-site--eo24-footer .eo24-footer__top {
        grid-template-columns: 1fr !important;
    }

    .eo24-site--eo24-footer .eo24-footer__bottom {
        align-items: flex-start !important;
        flex-direction: column !important;
    }

    .eo24-site--eo24-footer .eo24-footer__bottom div {
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 7px !important;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .eo24-site--eo24-header .eo24-button,
    .eo24-site--eo24-header .eo24-header__toggle > span,
    .eo24-site--eo24-header .eo24-header__nav a,
    .eo24-site--eo24-footer a {
        transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease, opacity 220ms ease, transform 260ms ease, box-shadow 260ms ease !important;
    }
}
