/* ============================================
   MOBILE MENU (HAMBURGER)
   ============================================ */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: #2D1B4E;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #2D1B4E 0%, #5C3D7A 100%);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    transition: right 0.4s ease;
    z-index: 1000;
    overflow-y: auto;
    padding: 80px 30px 30px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 999;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.mobile-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-links li {
    margin-bottom: 5px;
}

.mobile-menu-links a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-links a:hover,
.mobile-menu-links a:active {
    background: linear-gradient(135deg, #FF6B9D 0%, #C239B3 100%);
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
}

/* ============================================
   КНОПКА "ВВЕРХ"
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FF6B9D 0%, #C239B3 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 998;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.5);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2D1B4E 0%, #5C3D7A 100%);
    color: white;
    padding: 25px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: none;
    animation: slideUp 0.5s ease;
}

.cookie-consent.show {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-content {
    display: flex;
    gap: 20px;
    align-items: center;
}

.cookie-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.cookie-text {
    flex: 1;
}

.cookie-text strong {
    font-size: 20px;
    display: block;
    margin-bottom: 8px;
}

.cookie-text p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
    line-height: 1.6;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.cookie-accept {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
}

.cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.cookie-decline {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cookie-decline:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cookie-link {
    color: #4ECDC4;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.cookie-link:hover {
    border-bottom-color: #4ECDC4;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .cookie-consent {
        padding: 20px 15px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
    }
}

/* ============================================
   FAQ ACCORDION
   ============================================ */

.faq-item {
    transition: all 0.3s ease;
}

.faq-item.collapsed .faq-answer {
    display: none;
}

.faq-toggle {
    font-size: 28px;
    font-weight: 700;
    color: #FF6B9D;
    margin-left: auto;
    cursor: pointer;
    transition: transform 0.3s;
    user-select: none;
}

.faq-question {
    cursor: pointer;
    user-select: none;
}

.faq-question:hover {
    color: #FF6B9D;
}

.faq-answer {
    overflow: hidden;
    transition: max-height 0.4s ease;
}

/* Анимация для иконки */
.faq-item:not(.collapsed) .faq-toggle {
    transform: rotate(180deg);
}

/* ============================================
   LOADING SPINNER
   ============================================ */

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #FFE8F5 0%, #E8D7FF 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 107, 157, 0.2);
    border-top-color: #FF6B9D;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    margin-top: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #2D1B4E;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 9998;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FF6B9D 0%, #C239B3 50%, #4ECDC4 100%);
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 2px 10px rgba(255, 107, 157, 0.5);
}
