/* Кнопка гамбургера (скрыта по умолчанию) */
.mobile-menu-toggle {
    display: none;
    position: relative;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 1002;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #0044ff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Показываем только на мобильных */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
        margin-left: 10px;
        flex-shrink: 0;
    }
}

/* Оверлей меню */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 9998;
}

.mobile-menu-overlay.active {
    display: block;
}

/* Само меню */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

/* Хедер меню */
.mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    flex-shrink: 0;
}

.mobile-menu-logo {
    max-width: 150px;
}

.mobile-menu-logo img {
    max-width: 100%;
    height: auto;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #0044ff;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Навигация */
.mobile-nav {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav li {
    margin-bottom: 0;
}

.mobile-nav a {
    display: block;
    padding: 16px 0;
    font-size: 16px;
    color: #222;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    font-weight: 500;
    transition: color 0.2s ease;
}

.mobile-nav a:hover {
    color: #0044ff;
}

.mobile-nav li:last-child a {
    border-bottom: none;
}

/* Футер меню */
.mobile-menu-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: white;
    flex-shrink: 0;
}

.mobile-contact {
    margin-bottom: 20px;
}

.mobile-contact-label {
    font-size: 14px;
    color: #686868;
    margin-bottom: 5px;
}

.mobile-contact-value {
    font-size: 16px;
    color: #0044ff;
    font-weight: 500;
}

.mobile-contact-value a {
    color: #0044ff;
    text-decoration: none;
}

/* Языковые кнопки */
.mobile-lang-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.mobile-lang-tab {
    padding: 10px 16px;
    background: #f5f5f5;
    border: none;
    border-radius: 4px;
    color: #222;
    cursor: pointer;
    font-size: 14px;
    flex: 1;
    text-align: center;
    transition: all 0.2s ease;
}

.mobile-lang-tab.active {
    background: #e5ecff;
    color: #0044ff;
    font-weight: 500;
}

.mobile-lang-tab:hover {
    background: #e5e5e5;
}

/* Кнопка контактов в меню */
.mobile-contact-btn {
    width: 100%;
    margin-top: 10px;
    justify-content: center;
}

/* Анимация гамбургера */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Адаптация для очень маленьких экранов */
@media (max-width: 480px) {
    .mobile-menu {
        width: 90%;
        max-width: 280px;
    }
    
    .mobile-menu-toggle {
        width: 28px;
        height: 28px;
    }
    
    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
    }
    
    .mobile-menu-logo {
        max-width: 130px;
    }
}

