/* Podstawowe style dla nagłówka */
.site-header {
    width: 100%;
    background-color: #fff;
    padding: 0;
    height: 100px;
    position: relative;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.site-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.header-content {
    display: grid;
    grid-template-columns: 2fr 10fr 2fr; /* Logo (2), Menu (10), CTA (2) */
    align-items: center;
    width: 100%;
    height: 100%;
}

/* Styl dla logo */
.logo img {
    max-height: 50px;
    width: auto;
    height: auto;
    aspect-ratio: 450 / 150;
    display: block;
}

/* Menu */
.main-nav {
    transition: all 0.3s ease;
}

.mod-menu.nav {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.mod-menu.nav li {
    margin: 0 15px;
    list-style: none;
}

.mod-menu.nav li a,
.mod-menu.nav li span {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    font-size: 16px;
    padding: 5px 0;
    display: block;
}

.mod-menu.nav li a:hover {
    color: #007bff;
}

/* Podmenu */
.mod-menu__sub {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px;
    z-index: 999;
    min-width: 150px;
}

.mod-menu.nav li.deeper:hover .mod-menu__sub {
    display: block;
}

.mod-menu__sub li {
    margin: 5px 0;
    list-style: none;
}

.mod-menu__sub li a {
    color: #000;
    font-size: 14px;
}

.mod-menu__sub li a:hover {
    color: #007bff;
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #000;
    position: absolute;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 8px; }
.hamburger span:nth-child(3) { top: 16px; }

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 8px;
}

.hamburger.active span:nth-child(2) { opacity: 0; }

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 8px;
}

/* CTA */
.cta-button-wrapper {
    text-align: right;
}

.cta-button {
    background-color: #0056b3;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #003087;
}

/* Responsywność */
@media (max-width: 1000px) {
    .header-content {
        grid-template-columns: 1fr 1fr 1fr; /* Logo (1), Hamburger (1), CTA (1) */
        grid-template-areas: 
            "logo hamburger cta";
    }

    .logo { grid-area: logo; }
    .hamburger { 
        display: block; 
        grid-area: hamburger; 
        justify-self: center;
    }
    .cta-button-wrapper { 
        grid-area: cta; 
        text-align: right; 
        margin: 0;
    }
    .main-nav { 
        display: none; 
        position: absolute;
        top: 100px;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
        z-index: 999;
        padding: 10px 0;
    }

    .main-nav.active {
        display: block;
    }

    .mod-menu.nav {
        flex-direction: column;
        padding: 10px 20px;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }

    .mod-menu.nav li {
        margin: 5px 0;
        list-style: none;
    }

    .mod-menu.nav li a,
    .mod-menu.nav li span {
        color: #fff;
        font-size: 16px;
        padding: 6px 0;
        transition: color 0.3s ease;
    }

    .mod-menu.nav li a:hover {
        color: #00c4ff;
    }

    .mod-menu__sub {
        position: static;
        background: rgba(255, 255, 255, 0.1);
        padding: 5px 15px;
        display: block;
        box-shadow: none;
    }

    .mod-menu__sub li {
        margin: 4px 0;
        list-style: none;
    }

    .mod-menu__sub li a {
        color: #e0e0e0;
        font-size: 15px;
    }

    .mod-menu__sub li a:hover {
        color: #00c4ff;
    }

    .logo img {
        max-height: 35px;
    }
}

@media (max-width: 480px) {
    .logo img {
        max-height: 40px;
    }
}

body.sticky-menu-active {
    padding-top: 100px;
}