/* Кнопка в стиле светящейся глазури с цветом #8F1E28 */
.yandex-popup-btn {
    background: linear-gradient(145deg, #8F1E28 0%, #a12731 50%, #8F1E28 100%);
    border: 0.5px solid #942730;
    padding: 10px 20px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 25px rgba(143, 30, 40, 0.6),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(120, 20, 25, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    margin-left: 5px;
}

.yandex-popup-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.yandex-popup-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(143, 30, 40, 0.8),
        inset 0 4px 8px rgba(255, 255, 255, 0.4),
        0 0 30px rgba(143, 30, 40, 0.6);
    background: linear-gradient(145deg, #9f2532 0%, #8F1E28 50%, #7a1a24 100%);
}

.yandex-popup-btn:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 
        0 5px 15px rgba(143, 30, 40, 0.4),
        inset 0 2px 8px rgba(120, 20, 25, 0.6);
}

/* Оверлей поп-апа */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

/* Контент поп-апа */
.popup-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    max-height: 90vh;
    width: 500px;
    height: 600px;
    position: relative;
    animation: popupSlideIn 0.3s ease-out;
    overflow: hidden;
    padding: 45px 10px 10px 10px;
    box-sizing: border-box; /* Чтобы padding не увеличивал ширину */
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Кнопка закрытия */
.popup-close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
    transform: rotate(90deg);
}

/* iframe формы */
.popup-content iframe {
    width: 100%;
    height: calc(100% - 1px);
    border: none;
    border-radius: 16px;
}

/* Адаптив для мобильных */
@media (max-width: 600px) {
    .popup-content {
        width: 95%;
        height: 85vh;
        border-radius: 12px;
    }
    
    .yandex-popup-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
}