/* ============================================
   БУРГЕР-МЕНЮ ДЛЯ МОБИЛЬНОЙ ВЕРСИИ
   Современный дизайн 2025: glassmorphism, 
   плавные анимации, backdrop blur
   ============================================ */

/* ===== Кнопка бургер-меню ===== */
.burger-menu-btn {
    display: none; /* По умолчанию скрыта, показывается только на мобильных */
    position: relative;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(106, 90, 205, 0.1), rgba(147, 51, 234, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.burger-menu-btn:hover {
    background: linear-gradient(135deg, rgba(106, 90, 205, 0.2), rgba(147, 51, 234, 0.2));
    transform: scale(1.05);
}

.burger-menu-btn:active {
    transform: scale(0.95);
}

/* Линии бургера */
.burger-menu-btn__line {
    position: absolute;
    left: 50%;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, #6A5ACD, #9333EA);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.burger-menu-btn__line:nth-child(1) {
    top: 12px;
}

.burger-menu-btn__line:nth-child(2) {
    top: 50%;
    transform: translate(-50%, -50%);
}

.burger-menu-btn__line:nth-child(3) {
    bottom: 12px;
}

/* Анимация при открытии меню */
.burger-menu-btn.active .burger-menu-btn__line:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.burger-menu-btn.active .burger-menu-btn__line:nth-child(2) {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

.burger-menu-btn.active .burger-menu-btn__line:nth-child(3) {
    bottom: 50%;
    transform: translate(-50%, 50%) rotate(-45deg);
}

/* ===== Overlay (затемнённый фон) ===== */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* ===== Панель меню ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 250, 252, 0.95) 100%
    );
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow-y: auto;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 80px 24px 24px;
}

.mobile-menu.active {
    left: 0;
}

/* Скроллбар */
.mobile-menu::-webkit-scrollbar {
    width: 6px;
}

.mobile-menu::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.mobile-menu::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6A5ACD, #9333EA);
    border-radius: 10px;
}

/* ===== Заголовок меню ===== */
.mobile-menu__header {
    margin-bottom: 32px;
    padding-top: 8px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mobile-menu__logo {
    width: 160px;
    height: auto;
    display: block;
    margin-top: 8px;
}

.mobile-menu__title {
    font-family: 'Coolvetica', 'Yanone Kaffeesatz', sans-serif;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #6A5ACD, #9333EA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

/* ===== Навигационный список ===== */
.mobile-menu__nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu__item {
    margin-bottom: 8px;
    animation: slideInLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

/* Анимация появления элементов */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Задержка анимации для каждого элемента */
.mobile-menu__item:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu__item:nth-child(2) { animation-delay: 0.1s; }
.mobile-menu__item:nth-child(3) { animation-delay: 0.15s; }
.mobile-menu__item:nth-child(4) { animation-delay: 0.2s; }
.mobile-menu__item:nth-child(5) { animation-delay: 0.25s; }
.mobile-menu__item:nth-child(6) { animation-delay: 0.3s; }

/* ===== Ссылки меню ===== */
.mobile-menu__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    font-family: 'Coolvetica', 'Yanone Kaffeesatz', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #1e293b;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mobile-menu__link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(106, 90, 205, 0.1), transparent);
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu__link:hover::before,
.mobile-menu__link:active::before {
    left: 100%;
}

.mobile-menu__link:hover {
    background: rgba(106, 90, 205, 0.1);
    border-color: rgba(106, 90, 205, 0.3);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(106, 90, 205, 0.15);
}

.mobile-menu__link:active {
    transform: translateX(2px) scale(0.98);
}

/* Активная ссылка */
.mobile-menu__link.active {
    background: linear-gradient(135deg, rgba(106, 90, 205, 0.15), rgba(147, 51, 234, 0.15));
    border-color: rgba(106, 90, 205, 0.4);
    color: #6A5ACD;
    font-weight: 600;
}

/* Иконка стрелки */
.mobile-menu__link-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu__link:hover .mobile-menu__link-icon {
    transform: translateX(4px);
}

/* ===== Выпадающее подменю для "О Нас" ===== */
.mobile-menu__item--has-submenu > .mobile-menu__link {
    cursor: pointer;
}

.mobile-menu__submenu {
    max-height: 0;
    overflow: hidden;
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu__item--has-submenu.open .mobile-menu__submenu {
    max-height: 300px;
}

.mobile-menu__item--has-submenu.open > .mobile-menu__link .mobile-menu__chevron {
    transform: rotate(180deg);
}

.mobile-menu__chevron {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu__submenu-item {
    padding-left: 20px;
    margin-bottom: 4px;
    animation: fadeInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu__submenu-link {
    display: block;
    padding: 12px 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #475569;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.4);
    border-left: 3px solid transparent;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu__submenu-link:hover {
    background: rgba(106, 90, 205, 0.08);
    border-left-color: #6A5ACD;
    color: #6A5ACD;
    transform: translateX(4px);
}

/* ===== Кнопка Чат-бот (особая кнопка) ===== */
.mobile-menu__chatbot-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px 24px;
    margin-top: 24px;
    font-family: 'Coolvetica', 'Yanone Kaffeesatz', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #6A5ACD 0%, #9333EA 100%);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(106, 90, 205, 0.3);
    position: relative;
    overflow: hidden;
}

.mobile-menu__chatbot-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.mobile-menu__chatbot-btn:hover::before {
    width: 300px;
    height: 300px;
}

.mobile-menu__chatbot-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(106, 90, 205, 0.4);
}

.mobile-menu__chatbot-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(106, 90, 205, 0.3);
}

.mobile-menu__chatbot-icon {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
}

.mobile-menu__chatbot-text {
    position: relative;
    z-index: 1;
}

/* ===== Кнопка "Забронировать" ===== */
.mobile-menu__booking-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 18px 24px;
    margin-top: 16px;
    font-family: 'Coolvetica', 'Yanone Kaffeesatz', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background: #2f2f2f;
    border: 2px solid #2f2f2f;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu__booking-btn:hover {
    background: #1f1f1f;
    border-color: #1f1f1f;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(47, 47, 47, 0.4);
}

.mobile-menu__booking-btn:active {
    transform: translateY(0);
    background: #0f0f0f;
    border-color: #0f0f0f;
}

/* ===== Адаптивность ===== */
@media (max-width: 768px) {
    .burger-menu-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    /* Скрываем стандартное меню на мобильных */
    .header .nav,
    .header .address-block,
    .header .booking-button {
        display: none;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 90%;
        padding: 60px 20px 20px;
    }
    
    .mobile-menu__title {
        font-size: 24px;
    }
    
    .mobile-menu__link {
        font-size: 16px;
        padding: 14px 16px;
    }
}

/* ===== Запрет прокрутки body при открытом меню ===== */
body.mobile-menu-open {
    overflow: hidden;
}

