/* Стили всплывающего окна */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.popup-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: popupFadeIn 0.5s ease;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    cursor: pointer;
    color: white;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: rotate(90deg);
}

.popup-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.popup-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.popup-text-content {
    position: relative;
    z-index: 2;
    padding: 50px 40px 40px;
    color: white;
    text-align: center;
}

.popup-title {
    font-size: 32px;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.popup-text {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    opacity: 0.95;
}

.popup-actions {
    display: flex;
    justify-content: center;
}

.telegram-btn {
    display: inline-block;
    background: linear-gradient(135deg, #0088cc, #006699);
    color: white;
    padding: 16px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.telegram-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.6);
    background: linear-gradient(135deg, #0099e6, #0077b3);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .popup-content {
        max-width: 95%;
        margin: 0 auto;
    }
    
    .popup-text-content {
        padding: 40px 25px 30px;
    }
    
    .popup-title {
        font-size: 26px;
        margin-bottom: 15px;
    }
    
    .popup-text {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .telegram-btn {
        padding: 14px 30px;
        font-size: 16px;
    }
    
    .popup-close {
        top: 10px;
        right: 15px;
        font-size: 28px;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .popup-text-content {
        padding: 30px 20px 25px;
    }
    
    .popup-title {
        font-size: 22px;
    }
    
    .popup-text {
        font-size: 15px;
    }
}