/* Стилі для бургер-меню */

/* Кнопка бургер-меню */
.burger-menu-btn {
    display: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
    margin-left: auto;
}

.burger-menu-btn span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background-color: #FFD700;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.burger-menu-btn span:nth-child(1) {
    top: 0px;
}

.burger-menu-btn span:nth-child(2) {
    top: 10px;
}

.burger-menu-btn span:nth-child(3) {
    top: 20px;
}

/* Анімація кнопки при активації */
.burger-menu-btn.active span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.burger-menu-btn.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.burger-menu-btn.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

/* Мобільне меню */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    overflow: hidden;
    transition: height 0.4s ease-in-out;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.mobile-menu.active {
    height: 100vh;
    overflow-y: auto;
}

/* Стилі для пунктів меню в мобільній версії */
.mobile-menu .main-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.mobile-menu .main-menu li {
    margin: 15px 0;
    opacity: 1;
    transform: none;
    animation: none;
}

.mobile-menu .main-menu a {
    font-size: 1.2rem;
    padding: 10px 0;
    display: block;
}

/* Стилі для мовного перемикача в мобільній версії */
.mobile-menu .language-switcher {
    display: flex;
    opacity: 1;
    transform: none;
    animation: none;
    margin-top: 20px;
}

/* Блокування прокрутки при відкритому меню */
body.menu-open {
    overflow: hidden;
}

/* Медіа-запити для відображення бургер-меню */
@media (max-width: 768px) {
    .burger-menu-btn {
        display: block;
    }
    
    .header-content .main-menu,
    .header-content .language-switcher {
        display: none;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
    }
    
    .logo {
        margin-bottom: 0;
    }
}

/* Анімація появи пунктів меню */
.mobile-menu.active .main-menu li {
    animation: fadeInDown 0.4s ease forwards;
    opacity: 0;
}

.mobile-menu.active .main-menu li:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu.active .main-menu li:nth-child(2) { animation-delay: 0.2s; }
.mobile-menu.active .main-menu li:nth-child(3) { animation-delay: 0.3s; }
.mobile-menu.active .main-menu li:nth-child(4) { animation-delay: 0.4s; }
.mobile-menu.active .main-menu li:nth-child(5) { animation-delay: 0.5s; }
.mobile-menu.active .main-menu li:nth-child(6) { animation-delay: 0.6s; }

.mobile-menu.active .language-switcher {
    animation: fadeInDown 0.4s ease forwards 0.7s;
    opacity: 0;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}