/* Альтернативный вариант - центрированный дизайн */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    padding: 20px;
    box-sizing: border-box;
}

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

.english-popup {
    background: linear-gradient(135deg, #fef6e4, #fff3d9);
    border-radius: 20px;
    padding: 50px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    max-width: 850px;
    width: 100%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s;
    box-sizing: border-box;
}

.popup-overlay.active .english-popup {
    transform: scale(1);
}

.popup-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
}

.text-block {
    flex: 1;
    text-align: center;
}

.text-block h1 {
    font-size: 2.4rem;
    color: #ff6b00;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 800;
}

.subtitle {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 25px;
    line-height: 1.5;
}

.cta-btn {
    background-color: #ff8c00;
    color: #fff;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    transition: 0.3s;
    display: inline-block;
    margin: 0 auto;
}

.cta-btn:hover {
    background-color: #ff6b00;
    transform: scale(1.05);
}

.image-block {
    flex: 0 0 auto;
}

.image-block img {
    width: 250px;
    max-width: 100%;
    animation: 3s ease-in-out infinite float;
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.5);
    color: #ff6b00;
    transform: scale(1.1);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Адаптивность для попапа */
@media (max-width: 768px) {
    .popup-overlay {
        padding: 15px;
    }
    
    .english-popup {
        padding: 40px 25px;
    }
    
    .popup-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .text-block h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .image-block img {
        width: 200px;
    }
    
    .popup-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 24px;
        background: rgba(0, 0, 0, 0.5);
    }
}

@media (max-width: 480px) {
    .english-popup {
        padding: 30px 20px;
    }
    
    .text-block h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .image-block img {
        width: 160px;
    }
    
    .popup-close {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 20px;
    }
}