/* Попап согласия на cookies в стиле глассморфизм iOS26 */
.cookie-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cookie-popup {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    padding: 32px;
    margin: 20px;
    max-width: 500px;
    width: 90%;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cookie-popup-overlay.show .cookie-popup {
    transform: scale(1) translateY(0);
}

.cookie-popup-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.cookie-popup-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1D1D1F;
    margin-bottom: 16px;
    line-height: 1.3;
}

.cookie-popup-text {
    font-size: 1rem;
    color: rgba(29, 29, 31, 0.8);
    line-height: 1.5;
    margin-bottom: 24px;
    text-align: center;
}

.cookie-popup-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.cookie-popup-button {
    background: rgba(0, 122, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 122, 255, 0.3);
    border-radius: 16px;
    padding: 14px 28px;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 24px rgba(0, 122, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    min-width: 140px;
}

.cookie-popup-button:hover {
    background: rgba(0, 122, 255, 1);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 32px rgba(0, 122, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cookie-popup-button:active {
    transform: translateY(0);
    background: rgba(0, 100, 220, 0.9);
}

.cookie-popup-button.secondary {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #1D1D1F;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cookie-popup-button.secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .cookie-popup {
        padding: 24px;
        margin: 16px;
        border-radius: 20px;
    }
    
    .cookie-popup-title {
        font-size: 1.3rem;
    }
    
    .cookie-popup-text {
        font-size: 0.95rem;
    }
    
    .cookie-popup-button {
        padding: 12px 24px;
        font-size: 0.95rem;
        min-width: 120px;
    }
    
    .cookie-popup-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .cookie-popup {
        padding: 20px;
        margin: 12px;
    }
    
    .cookie-popup-title {
        font-size: 1.2rem;
    }
    
    .cookie-popup-text {
        font-size: 0.9rem;
    }
    
    .cookie-popup-button {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: 100px;
    }
}

/* Анимация появления */
@keyframes cookiePopupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.cookie-popup-overlay.show .cookie-popup {
    animation: cookiePopupSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
