
/* Wspólny nagłówek: wzór RODO / Praca / Wynajem.
   Identyfikator layoutu rozstrzyga konflikt ze stylami strony głównej i bloga.
   Reguły nagłówka nie zmieniają treści ani metadanych stron. */
#gb-frontend #gb-site-header {
    --gb-nav-width: 1024px;
    color: #fff;
    font-family: 'Epilogue', sans-serif;
    font-size: 16px;
    line-height: 1.5;
}
#gb-frontend #gb-site-header *,
#gb-frontend #gb-site-header *::before,
#gb-frontend #gb-site-header *::after { box-sizing: border-box; }

#gb-frontend #gb-site-header .gb-top-contact {
    position: absolute;
    inset: 0 0 auto;
    z-index: 40;
    width: 100%;
    height: 60px;
    min-height: 0;
    background: #111;
    border-bottom: 1px solid rgba(255,255,255,.12);
    color: #fff;
}
#gb-frontend #gb-site-header .gb-top-contact__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: calc(100% - 48px);
    max-width: var(--gb-nav-width);
    height: 60px;
    min-height: 0;
    margin: 0 auto;
    padding: 0;
    gap: 30px;
}
#gb-frontend #gb-site-header .gb-top-contact__links {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: auto;
    gap: 28px;
}
#gb-frontend #gb-site-header .gb-top-contact__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    height: auto;
    padding: 0;
    gap: 9px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
}
#gb-frontend #gb-site-header .gb-top-contact__icon {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    color: #f6b900;
}
#gb-frontend #gb-site-header .gb-top-contact__meta {
    display: block;
    color: #d1d1d1;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    text-align: right;
}
#gb-frontend #gb-site-header section.nav {
    position: absolute;
    top: 60px !important;
    left: 0;
    z-index: 40;
    display: block;
    width: 100%;
}
#gb-frontend #gb-site-header section.nav nav {
    position: relative;
    top: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    width: calc(100% - 48px);
    max-width: var(--gb-nav-width);
    margin: 0 auto;
    padding: 40px 0 0;
    gap: 32px;
    color: #fff;
}
#gb-frontend #gb-site-header section.nav nav > a:first-child {
    display: block;
    flex: 0 1 500px;
    width: 500px !important;
    min-width: 250px;
    max-width: 500px;
}
#gb-frontend #gb-site-header section.nav nav > a:first-child img {
    display: block;
    width: 250px;
    max-width: 100% !important;
    height: auto;
}
#gb-frontend #gb-site-header section.nav nav > ul {
    position: static;
    display: flex !important;
    flex: 0 0 auto;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    height: auto;
    max-height: none;
    margin: 0;
    padding: 0;
    gap: 32px;
    overflow: visible;
    border: 0;
    background: transparent;
    list-style: none;
}
#gb-frontend #gb-site-header section.nav nav > ul li {
    width: auto;
    margin: 0;
    padding: 0;
}
#gb-frontend #gb-site-header section.nav nav > ul a {
    display: inline-flex;
    align-items: center;
    width: auto !important;
    min-height: 44px;
    padding: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
}
#gb-frontend #gb-site-header section.nav .btnCta {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: auto !important;
    padding: 4px 4px 4px 16px;
    border: 2px solid #fdc200;
    background: #fdc200;
    color: #202022;
    transform: skewX(-12deg);
}
#gb-frontend #gb-site-header section.nav .btnCta span {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    color: #202022;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
    transform: skewX(12deg);
}
#gb-frontend #gb-site-header section.nav .btnCta span::after {
    content: '';
    display: block;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    background: #202022;
    transform: skewX(-12deg);
}
#gb-frontend #gb-site-header section.nav .btnCta img {
    position: absolute !important;
    top: 8px;
    right: 8px;
    z-index: 1;
    width: 24px;
    height: 24px;
    max-width: none !important;
    margin: 0;
}
#gb-frontend #gb-site-header section.nav .btnCta:hover { background: #202022; }
#gb-frontend #gb-site-header section.nav .btnCta:hover span { color: #fdc200; }
#gb-frontend #gb-site-header section.nav .btnCta:hover span::after { background: #fdc200; }
#gb-frontend #gb-site-header .gb-top-contact__link:hover,
#gb-frontend #gb-site-header section.nav nav > ul a:hover { color: #f6b900; }
#gb-frontend #gb-site-header a:focus-visible,
#gb-frontend #gb-site-header button:focus-visible { outline: 3px solid #f6b900; outline-offset: 4px; }
#gb-frontend #gb-site-header .gb-nav-toggle,
#gb-frontend #gb-site-header section.nav .btn--hamburger { display: none; }

/* Strona główna mierzy ten element, aby odsunąć tekst pod menu. */
#gb-frontend #gb-site-header.gb-nav-home .gb-top-contact { position: relative; inset: auto; }
#gb-frontend #gb-site-header.gb-nav-home section.nav { position: relative; top: auto !important; }
#gb-frontend #gb-home:not([data-ready="1"]) .gb-home-header { background: #191919; }

@media (min-width: 1280px) { #gb-frontend #gb-site-header { --gb-nav-width: 1280px; } }
@media (min-width: 1536px) { #gb-frontend #gb-site-header { --gb-nav-width: 1536px; } }
@media (min-width: 1800px) { #gb-frontend #gb-site-header { --gb-nav-width: 1800px; } }

/* Mniejsze komputery: numer telefonu i nazwy pozostają w jednym wierszu. */
@media (min-width: 1121px) and (max-width: 1599px) {
    #gb-frontend #gb-site-header section.nav nav { gap: 24px; }
    #gb-frontend #gb-site-header section.nav nav > a:first-child { flex-basis: 300px; min-width: 220px; }
    #gb-frontend #gb-site-header section.nav nav > a:first-child img { width: 220px; }
    #gb-frontend #gb-site-header section.nav nav > ul { gap: 24px; }
    #gb-frontend #gb-site-header section.nav nav > ul a,
    #gb-frontend #gb-site-header section.nav .btnCta span { font-size: 14px; }
}
@media (min-width: 1121px) and (max-width: 1279px) {
    #gb-frontend #gb-site-header section.nav nav { gap: 20px; }
    #gb-frontend #gb-site-header section.nav nav > a:first-child { flex-basis: 210px; min-width: 190px; }
    #gb-frontend #gb-site-header section.nav nav > a:first-child img { width: 190px; }
    #gb-frontend #gb-site-header section.nav nav > ul { gap: 16px; }
    #gb-frontend #gb-site-header section.nav nav > ul a,
    #gb-frontend #gb-site-header section.nav .btnCta span { font-size: 13px; }
    #gb-frontend #gb-site-header .gb-top-contact__meta { font-size: 12px; }
}

@media (max-width: 1120px) {
    #gb-frontend #gb-site-header {
        position: relative;
        z-index: 50;
        width: 100%;
        background: #191919;
    }
    #gb-frontend #gb-site-header .gb-top-contact { position: relative; inset: auto; height: auto; }
    #gb-frontend #gb-site-header .gb-top-contact__inner {
        width: 100%;
        max-width: 1320px;
        height: auto;
        min-height: 56px;
        padding: 6px 16px;
    }
    #gb-frontend #gb-site-header .gb-top-contact__links {
        flex-wrap: wrap;
        justify-content: space-between;
        width: 100%;
        gap: 4px 12px;
    }
    #gb-frontend #gb-site-header .gb-top-contact__link { gap: 7px; font-size: 13px; }
    #gb-frontend #gb-site-header .gb-top-contact__icon { width: 18px; height: 18px; flex-basis: 18px; }
    #gb-frontend #gb-site-header .gb-top-contact__meta { display: none; }
    #gb-frontend #gb-site-header section.nav { position: relative; top: auto !important; }
    #gb-frontend #gb-site-header section.nav nav {
        display: grid;
        grid-template-columns: minmax(0,1fr) auto;
        width: 100%;
        max-width: 1320px;
        padding: 12px 16px;
        gap: 12px;
    }
    #gb-frontend #gb-site-header section.nav nav > a:first-child { width: 176px !important; min-width: 0; max-width: 100%; }
    #gb-frontend #gb-site-header section.nav nav > a:first-child img { width: 100%; }
    #gb-frontend #gb-site-header section.nav nav > .btnCta { display: none !important; }
    #gb-frontend #gb-site-header .gb-nav-toggle,
    #gb-frontend #gb-site-header section.nav .btn--hamburger {
        position: relative;
        inset: auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 46px !important;
        height: 46px;
        min-height: 46px;
        margin: 0;
        padding: 9px;
        border: 1px solid #737373;
        border-radius: 3px;
        background: transparent;
        color: #fff;
        cursor: pointer;
    }
    #gb-frontend #gb-site-header .gb-nav-toggle svg,
    #gb-frontend #gb-site-header section.nav .btn--hamburger svg { width: 28px; height: 28px; stroke-width: 2; }
    #gb-frontend #gb-site-header section.nav .btn--hamburger[aria-expanded="true"] svg { visibility: hidden; }
    #gb-frontend #gb-site-header section.nav .btn--hamburger[aria-expanded="true"]::before,
    #gb-frontend #gb-site-header section.nav .btn--hamburger[aria-expanded="true"]::after {
        content: '';
        position: absolute;
        width: 23px;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
        transform: rotate(45deg);
    }
    #gb-frontend #gb-site-header section.nav .btn--hamburger[aria-expanded="true"]::after { transform: rotate(-45deg); }
    #gb-frontend #gb-site-header section.nav nav > ul {
        position: static;
        grid-column: 1 / -1;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        width: 100%;
        padding: 8px;
        gap: 2px;
        border: 1px solid #414141;
        background: #191919;
    }
    /* Bez JavaScriptu linki są widoczne; działające menu otwiera się nad treścią. */
    #gb-frontend #gb-site-header[data-menu-ready="1"] section.nav nav > ul,
    #gb-frontend #gb-home[data-ready="1"] #gb-site-header section.nav nav > ul {
        position: absolute;
        top: 100%;
        right: 16px;
        left: 16px;
        z-index: 60;
        width: auto;
        max-height: 60vh;
        overflow-y: auto;
        box-shadow: 0 12px 28px rgba(0,0,0,.3);
    }
    #gb-frontend #gb-site-header[data-menu-ready="1"] section.nav nav > ul:not(.gb-menu-open),
    #gb-frontend #gb-home[data-ready="1"] #gb-site-header section.nav nav > ul:not(.show--mobile) { display: none !important; }
    #gb-frontend #gb-site-header section.nav nav > ul li { width: 100%; }
    #gb-frontend #gb-site-header section.nav nav > ul a {
        display: flex;
        width: 100% !important;
        max-width: none;
        padding: 10px 12px;
        font-size: 16px;
    }
    #gb-frontend #gb-site-header section.nav nav > ul a:hover { background: #2b2b2b; }
}
/* Referencje: wysokość i typografia hero zgodne z Pracą / Wynajmem.
   Zachowane oryginalne zdjęcia, nagłówki, opis i lista referencji. */
#gb-frontend[data-gb-page="references"] section.slider {
    position: relative;
    isolation: isolate;
    width: 100%;
    height: 590px;
    min-height: 590px;
    overflow: hidden;
    background-color: #191919;
    color: #fff;
    font-family: 'Epilogue', sans-serif;
}
#gb-frontend[data-gb-page="references"] section.slider::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,rgba(15,15,15,.88),rgba(15,15,15,.65) 55%,rgba(15,15,15,.3));
    opacity: 1;
    transform: none;
    pointer-events: none;
}
#gb-frontend[data-gb-page="references"] section.slider::after,
#gb-frontend[data-gb-page="references"] .slider--single::before,
#gb-frontend[data-gb-page="references"] .slider--single::after { content: none; }
#gb-frontend[data-gb-page="references"] .slider--single {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    max-width: 1320px;
    height: 100%;
    margin: 0 auto;
    padding: 175px 24px 55px;
    gap: 16px;
    overflow: visible;
    font-family: 'Epilogue', sans-serif;
}
#gb-frontend[data-gb-page="references"] .slider--single h1 {
    margin: 0;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.12;
}
#gb-frontend[data-gb-page="references"] .slider--single h2 {
    max-width: 680px;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.35;
}
#gb-frontend[data-gb-page="references"] .slider--single p {
    display: block;
    max-width: 650px;
    margin: 0;
    color: #ddd;
    font-size: 15px;
    line-height: 1.7;
}
@media (max-width: 1120px) {
    #gb-frontend[data-gb-page="references"] section.slider { height: 500px; min-height: 500px; }
    #gb-frontend[data-gb-page="references"] .slider--single { padding: 40px 24px; }
    #gb-frontend[data-gb-page="references"] .slider--single h1 { font-size: 40px; }
}
@media (max-width: 700px) {
    #gb-frontend[data-gb-page="references"] section.slider { height: auto; min-height: 430px; }
    #gb-frontend[data-gb-page="references"] .slider--single { height: auto; min-height: 430px; padding: 32px 16px 40px; }
    #gb-frontend[data-gb-page="references"] .slider--single h1 { font-size: 30px; line-height: 1.15; }
    #gb-frontend[data-gb-page="references"] .slider--single h2 { font-size: 21px; }
    #gb-frontend[data-gb-page="references"] .slider--single p { font-size: 14px; line-height: 1.65; }
}
    