/* ── Nagłówek: O NAS i rozwijane menu OFERTA ─────────────────────────────── */
#header-links {
    overflow: visible;
}

.header-offer {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.header-offer > summary {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    list-style: none;
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}

.header-offer > summary::-webkit-details-marker {
    display: none;
}

.header-offer > summary:hover,
.header-offer[open] > summary {
    color: var(--orange-2);
}

.header-offer__arrow {
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform var(--transition);
}

.header-offer[open] .header-offer__arrow {
    transform: translateY(2px) rotate(-135deg);
}

.header-offer__menu {
    position: absolute;
    z-index: 1500;
    top: calc(100% + 17px);
    right: 0;
    width: max-content;
    min-width: 235px;
    max-width: min(330px, calc(100vw - 32px));
    padding: 0.55rem;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    background: #151519;
    box-shadow: 0 22px 55px rgba(0,0,0,0.46);
}

.header-offer__menu::before {
    content: "";
    position: absolute;
    right: 22px;
    top: -7px;
    width: 12px;
    height: 12px;
    border-top: 1px solid rgba(255,255,255,0.10);
    border-left: 1px solid rgba(255,255,255,0.10);
    background: #151519;
    transform: rotate(45deg);
}

.header-offer__menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-offer__menu li {
    position: relative;
    margin: 0;
    padding: 0;
}

#header-links .header-offer__menu a {
    position: relative;
    z-index: 1;
    display: block;
    padding: 0.72rem 0.85rem;
    border-radius: 11px;
    color: var(--text-soft);
    font-size: 0.88rem;
    line-height: 1.25;
    white-space: normal;
}

#header-links .header-offer__menu a:hover,
#header-links .header-offer__menu a:focus-visible,
#header-links .header-offer__menu .current-menu-item > a,
#header-links .header-offer__menu .current-menu-ancestor > a {
    color: #fff;
    background: rgba(255,122,0,0.11);
    outline: none;
}

.header-offer__menu .sub-menu {
    margin: 0.22rem 0 0.35rem 0.68rem;
    padding-left: 0.55rem;
    border-left: 1px solid rgba(255,122,0,0.24);
}

#header-links .header-offer__menu .sub-menu a {
    padding: 0.58rem 0.72rem;
    font-size: 0.82rem;
}

.header-offer__menu .menu-item-has-children > a::after {
    content: "›";
    float: right;
    margin-left: 0.75rem;
    color: var(--orange-2);
}

/* ── Stopka: Facebook i TikTok ───────────────────────────────────────────── */
.footer-socials {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: 0.25rem;
}

.footer-social-link {
    width: 38px;
    height: 38px;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    background: rgba(255,255,255,0.045);
    color: #fff;
    font-size: 0 !important;
    line-height: 0 !important;
    text-decoration: none !important;
    overflow: hidden;
    transition: var(--transition);
}

.footer-social-link svg {
    display: block;
    width: 19px;
    height: 19px;
    fill: currentColor;
    pointer-events: none;
}

.footer-social-link--facebook:hover,
.footer-social-link--facebook:focus-visible {
    background: #1877f2;
    border-color: #1877f2;
}

.footer-social-link--tiktok:hover,
.footer-social-link--tiktok:focus-visible {
    background: #111;
    border-color: rgba(255,255,255,0.38);
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
    color: #fff !important;
    border-color: rgba(255,122,0,0.42);
    background: rgba(255,122,0,0.13);
    transform: translateY(-1px);
    outline: none;
}

@media (max-width: 760px) {
    .footer-links {
        row-gap: 0.55rem;
    }

    .footer-socials {
        width: 100%;
        justify-content: flex-start;
        margin: 0.25rem 0 0;
    }
}

/* v7: stopka — regulamin i polityka prywatności na tej samej wysokości */
#site-footer {
    align-items: center;
}

#site-footer .footer-brand,
#site-footer .footer-contact,
#site-footer .footer-links {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem 0.9rem;
    margin: 0;
}

#site-footer .footer-contact a,
#site-footer .footer-address,
#site-footer .footer-links > a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    line-height: 1.2;
}

#site-footer .footer-contact svg,
#site-footer .footer-address svg {
    flex: 0 0 auto;
}

#site-footer .footer-links {
    align-self: center;
}

#site-footer .footer-links > a {
    padding: 0;
}

#site-footer .footer-socials {
    display: inline-flex;
    align-items: center;
    width: auto;
    margin: 0 0 0 0.1rem;
}

@media (max-width: 760px) {
    #site-footer {
        justify-content: center;
        text-align: center;
    }

    #site-footer .footer-brand,
    #site-footer .footer-contact,
    #site-footer .footer-links {
        justify-content: center;
    }

    #site-footer .footer-socials {
        width: auto;
        justify-content: center;
        margin: 0;
    }
}
