/* Ten fragment zapewnia, że całe menu jest na wierzchu */
div[data-v-45f50332].z-100 {
    transform: translateZ(1px);
    z-index: 9999 !important;
}

/* Style dla przycisku-flagi w menu desktopowym */
.language-button img {
    height: 50px;
    width: auto;
    border-radius: 5px;
    transition: opacity 0.2s ease-in-out;
    vertical-align: middle;
}

.language-button:hover img {
    opacity: 0.9;
}

/* === POCZĄTEK STYLI MENU MOBILNEGO === */

:root {
    --protech-green-medium: #225848; 
    --protech-green-light-hover: #1A6B4E; 
    --protech-white: #ffffff;
    --font-primary: "articulat-cf", sans-serif;
    --font-weight-bold: 700;
    --transition-speed: 0.2s;
    /* Zmienna breakpoint-sm została usunięta, bo powodowała błąd */
}

.hamburger-button {
    width: 2.5rem; 
    height: 2.5rem; 
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    
    /* === Spróbujmy z !important === */
    position: fixed !important; 
    /* ============================ */

    top: 2rem;  
    right: 1.5rem; 
    /* Zwiększmy z-index na wszelki wypadek */
    z-index: 9999 !important; 

    display: flex; 
    flex-direction: column;
    justify-content: space-around;
}

.hamburger-button:focus {
    outline: 2px solid var(--protech-white);
    outline-offset: 2px;
}

.hamburger-button__line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--protech-white); 
    border-radius: 10px;
    transition: all var(--transition-speed) ease-in-out;
    border: 1px solid rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

/* Animacja do 'X' */
.hamburger-button.is-active .hamburger-button__line {
    background-color: var(--protech-white);
    border: none;
}
.hamburger-button.is-active .hamburger-button__line:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}
.hamburger-button.is-active .hamburger-button__line:nth-child(2) {
    opacity: 0;
}
.hamburger-button.is-active .hamburger-button__line:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Panel nawigacji */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 320px; 
    height: 100dvh;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform var(--transition-speed) ease-in-out;
    padding-top: 5rem;
    visibility: hidden;

    /* === STYLE TŁA === */
    background-image: url('/assets/blueprint-bg.png'); 
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    
    /* * === POPRAWKA ===
     * Zmieniono krycie z 0.95 (95%) na 0.90 (90%)
     */
    box-shadow: inset 0 0 0 100vh rgba(34, 88, 72, 0.90); 
}

.mobile-nav.is-active {
    transform: translateX(0);
    visibility: visible;
}

/* Linki w menu */
.mobile-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobile-nav__item {
    text-align: center;
}
.mobile-nav__link {
    display: block;
    padding: 1.5rem 2rem;
    color: var(--protech-white);
    text-decoration: none;
    font-size: 1.2rem;
    font-family: var(--font-primary);
    font-weight: var(--font-weight-bold);
    transition: background-color var(--transition-speed) ease-in-out;
}
.mobile-nav__link:hover,
.mobile-nav__link:focus {
    background-color: var(--protech-green-light-hover);
    color: var(--protech-white);
    outline: none;
}

/* Style dla flagi w menu mobilnym */
.mobile-nav__flag {
    height: 40px;
    width: auto;
    border-radius: 4px;
    display: inline-block;
}


/* === TO ROZWIĄZUJE PROBLEM WIDOCZNOŚCI NA DESKTOP === */

/* Domyślnie (mobile) nawigacja desktopowa jest ukryta */
.desktop-nav {
    display: none;
}

/* * POPRAWKA:
 * Usunięto zmienną 'var(--breakpoint-sm)' i wstawiono '640px'.
 * Zmienne nie działają w zapytaniach @media. To była przyczyna błędu.
 */
@media (min-width: 640px) {
    
    /* ...pokazujemy nawigację desktopową */
    .desktop-nav {
        display: flex;
    }

    /* ...i ukrywamy przycisk hamburgera oraz jego panel */
    .hamburger-button {
        display: none;
    }
    .mobile-nav {
        display: none;
    }
}

/* === KONIEC STYLI MENU MOBILNEGO === */