/* Основной оверлей модального окна */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Контент модального окна */
.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1400px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Кнопка закрытия */
.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: #f8f9fa;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: #e9ecef;
    transform: scale(1.1);
}

/* Заголовок */
.modal-header {
    margin-bottom: 20px;
    padding-right: 60px; /* Место для кнопки закрытия */
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.modal-description {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 6px;
    border-left: 4px solid #007bff;
    font-size: 14px;
    line-height: 1.4;
    color: #666;
}
/* Контейнер для iframe */
.modal-container {
    flex: 1;
    min-height: 0; /* Важно для flex-растягивания */
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    overflow: auto;
}




/* Адаптивность */
@media (max-width: 768px) {
    .modal-content {
        padding: 15px;
    }
}