/* Попап согласия на cookies в стиле глассморфизм iOS26 */
.cookie-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    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.85);
    backdrop-filter: blur(50px) saturate(180%);
    -webkit-backdrop-filter: blur(50px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 28px;
    padding: 36px;
    margin: 20px;
    max-width: 560px;
    width: 90%;
    box-shadow: 
        0 24px 80px rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.03);
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    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: 56px;
    margin-bottom: 24px;
    display: block;
    text-align: center;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    animation: cookieBounce 2s ease-in-out infinite;
}

@keyframes cookieBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-4px) scale(1.05);
    }
}

.cookie-popup-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 20px;
    line-height: 1.3;
    text-align: center;
    letter-spacing: -0.02em;
}

.cookie-popup-text {
    font-size: 0.95rem;
    color: #1D1D1F;
    line-height: 1.6;
    margin-bottom: 24px;
    text-align: left;
}

.cookie-popup-text p {
    margin-bottom: 16px;
}

.cookie-popup-text p:last-child {
    margin-bottom: 0;
}

.cookie-popup-link {
    color: #007AFF;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 122, 255, 0.3);
    transition: all 0.2s ease;
}

.cookie-popup-link:hover {
    color: #0051D5;
    border-bottom-color: rgba(0, 122, 255, 0.6);
}

.cookie-popup-warning {
    background: rgba(255, 193, 7, 0.15);
    border-left: 3px solid rgba(255, 193, 7, 0.6);
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 0.9rem;
    color: #1D1D1F;
}

.age-restriction {
    display: inline-block;
    background: rgba(255, 59, 48, 0.15);
    color: #FF3B30;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 4px;
}

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

.cookie-popup-button {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.95) 0%, rgba(0, 100, 220, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 18px;
    padding: 16px 32px;
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 10px 30px rgba(0, 122, 255, 0.35),
        0 4px 12px rgba(0, 122, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    min-width: 160px;
    letter-spacing: 0.01em;
}

.cookie-popup-button:hover {
    background: linear-gradient(135deg, rgba(0, 122, 255, 1) 0%, rgba(0, 100, 220, 1) 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 14px 40px rgba(0, 122, 255, 0.45),
        0 6px 16px rgba(0, 122, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.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);
}
