/* === NAVBAR OGÓLNY === */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-bg);
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    font-weight: 700;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Segoe UI', sans-serif;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.2rem, 4vw, 2.2rem);
    line-height: 1.2;
}

.logo-white {
    color: var(--color-text);
}

.logo-yellow {
    color: var(--color-accent);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 3rem;
}

.nav-links a {
    text-transform: uppercase;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--focus-color);
}

/* === BURGER === */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle .hamburger {
    width: 28px;
    height: 3px;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animacja burgera w "X" */
.nav-toggle.open .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open .hamburger:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* === MEDIA QUERY === */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4.5px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }

    .nav-toggle span {
        width: 28px;
        height: 3px;
        background-color: var(--color-text);
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
        position: relative;
        transform-origin: center center;
    }

    .nav-toggle.open span:nth-child(1) {
        transform: rotate(45deg);
    }

    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.open span:nth-child(3) {
        transform: rotate(-45deg);
    }

    .nav-toggle:focus {
        outline: none;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: center;
        /* zamiast flex-end */
        position: absolute;
        top: 100%;
        /* zamiast np. 70px — przylega do nav */
        left: 0;
        width: 100%;
        background-color: #1a1a1a;
        padding: 2rem 1.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        gap: 1.2rem;
        border-radius: 0 0 12px 12px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: auto;
        text-align: center;
    }

    .nav-links a {
        color: #fff;
        font-size: 1.2rem;
        text-decoration: none;
        padding: 0.5rem 0;
        transition: background 0.3s ease;
        display: block;
    }

}