/* ================= HEADER ================= */

.header {
    position: fixed;
    /* 🔒 nieruchome */
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-bottom: 5px solid rgba(0, 51, 102, 0.08);
    top: 0;
    width: 100%;
    height: 75px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ================= LOGO ================= */
.logo {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.logo img {
    width: 100%;
    max-width: 1200px;
    height: auto;
}


/* ================= MENU ================= */
.nav-menu {
    grid-column: 2;
}

.nav-menu1 ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    /* 🔥 kluczowe */
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    gap: 20px;
    justify-content: center;
}

.nav-menu ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    /* wyśrodkowanie w pionie */
    justify-content: center;
    /* wyśrodkowanie w poziomie */
    min-height: 90px;
    /* większa wysokość belki */
    padding: 10px 20px;
}

.nav-menu li {
    list-style: none;
}

.nav-menu li a {
    padding: 8px 8px;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s;
    position: relative;
    font-size: clamp(13px, 1vw, 15px);
}

.nav-menu li a:hover {
    background: #08525a;
    border-radius: 4px;
}

.nav-menu .active {
    background: #c42a2a;
    border-radius: 4px;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.nav-menu a:hover::after {
    transform: scaleX(1);
}


/* ==== Hamburger (ukryty na desktopie) ====== */

.menu-toggle {
    display: none;
}

.hamburger-container {
    display: none;
    position: absolute;
    right: 20px;
    cursor: pointer;
    align-items: center;
    z-index: 5;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.4s ease;
}

.site-name, .mobile-bar {
    display: none;
}


/* ================= MOBILE – hamburger ================= */
/* --- RESPONSYWNOŚĆ --- */
@media (max-width: 768px) {

    /* Hamburger + nazwa po lewej */
    .hamburger-container {
        display: flex;
        height: 0px;          /* stała wysokość */
        align-items: center;
        justify-content: center;
    }

    /* pokazujemy hamburger */
    .menu-icon {
        display: flex;
    }

    .mobile-bar {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 15px;
    }

    .mobile-icon {
        width: 25px;
        height: 25px;
    }

    .site-name {
        display: flex;
        color: #fcfcfc;
        font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
            Catamaran, Roboto, Helvetica, sans-serif;
        letter-spacing: 2.5px;
        font-size: 100%;
    }

    /* menu jako dropdown */
    .nav-menu {
        position: absolute;
        top: 60px;
        right: 0;
        width: 290px;       /* stała szerokość */
        max-width: 100%;    /* ale nie wyjdzie poza ekran */
        background: var(--primary);
        opacity: 30;
        max-height: 0;
        overflow-y: auto;
        transition: max-height 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transition: 0.3s ease;
        flex-direction: column;
    }

    .nav-menu ul {
        flex-direction: column;
        padding: 10px;
        gap: 0;
    }

    .nav-menu li {
        width: 100%;
        text-align: right;
        border-bottom: 1px solid #124f51;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        letter-spacing: 2.5px;

    }

    .nav-menu li a {
        display: block;
        padding: 12px 20px;
    }

    /* otwieranie menu */
    .menu-toggle:checked~.nav-menu {
        max-height: 510px;
        opacity: 1;
    }

    /* Animacja hamburgera w krzyżyk */
    .menu-toggle:checked+.hamburger-container .hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .menu-toggle:checked+.hamburger-container .hamburger span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked+.hamburger-container .hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}