/* Адаптивное меню с плавным появлением и задержкой */
.menu-container {
    position: relative;
    margin: 20px auto;
    max-width: 1200px;
    text-align: center;
}

/* Кнопка-гамбургер */
.menu-toggle {
    display: inline-block;
    background: linear-gradient(145deg, #ff6a00, #ee0979);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(238, 9, 121, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 15px;
    border: 2px solid rgba(255,255,255,0.2);
    min-width: 220px;
}

.menu-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(238, 9, 121, 0.6);
}

.menu-toggle i {
    margin-right: 10px;
    font-size: 1.4rem;
    vertical-align: middle;
}

/* Состояние загрузки */
.menu-toggle.loading {
    pointer-events: none;
    opacity: 0.8;
    background: linear-gradient(145deg, #555, #333);
    cursor: wait;
}

.menu-toggle.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Блок с кнопками (изначально скрыт) */
.menu-items {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.4s ease;
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 0 20px;
    margin: 0 auto;
    width: fit-content;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.menu-items.open {
    max-height: 500px;
    opacity: 1;
    padding: 20px;
}

/* Сетка кнопок */
.menu-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.menu-item {
    flex: 0 1 auto;
    min-width: 200px;
}

.menu-item .btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(145deg, #2a2a3a, #1a1a2a);
    color: white;
    border: 1px solid #ff6a00;
    border-radius: 40px;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    white-space: nowrap;
}

.menu-item .btn i {
    margin-right: 10px;
    color: #ffaa00;
    font-size: 1.2rem;
    vertical-align: middle;
}

.menu-item .btn:hover {
    background: linear-gradient(145deg, #ff6a00, #ee0979);
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(238, 9, 121, 0.5);
}

/* Стили для навигационной ракеты */
.rocket-button {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, #ff6a00, #ee0979);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(238, 9, 121, 0.5);
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.rocket-button:hover {
    transform: scale(1.1);
}

.rocket-button svg {
    width: 35px;
    height: 35px;
    fill: white;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    pointer-events: none;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .menu-grid {
        flex-direction: column;
        gap: 10px;
    }
    .menu-item {
        min-width: auto;
        width: 100%;
    }
    .menu-item .btn {
        white-space: normal;
        text-align: left;
        padding: 12px 15px;
    }
    .menu-toggle {
        width: 90%;
        font-size: 1rem;
    }
}

.dropdown-menu-right {
    right: 0;
    left: auto;
}
/* Для мобильных устройств */
@media (max-width: 767px) {
    .dropdown-menu-right {
        left: 0;
        right: auto;
    }
}