/*==================================
   СТИЛИ МОДАЛЬНОГО ОКНА
==================================*/
/* Темный фон поверх всего сайта */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px); /* Эффект размытия заднего фона */
    z-index: 10000; /* Должно быть больше, чем у меню (9999) */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Скрыто по умолчанию */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Класс для показа окна */
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Само окно */
.modal-window {
    background: #ffffff;
    width: 90%;
    max-width: 800px; /* Максимальная ширина */
    border-radius: 16px;
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    
    /* Анимация всплытия */
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
}

/* Анимация при активном классе */
.modal-overlay.active .modal-window {
    transform: translateY(0) scale(1);
}

/* Кнопка закрытия (Крестик) */
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #64748b;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #ef4444; /* Краснеет при наведении */
}

/* Заголовок окна */
.modal-header h2 {
    margin: 0 0 20px 0;
    color: #1e293b;
    font-family: Arial, sans-serif;
    font-size: 24px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}

/* Контейнер для колонок */
.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две равные колонки */
    gap: 30px;
    align-items: start;
}

/* Левая часть (Изображение) */
.modal-left img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Правая часть (Текст) */
.modal-right p {
    margin: 0;
    color: #334155;
    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

/* Адаптивность для мобильных телефонов (меньше 768px) */
@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr; /* Колонки выстраиваются в один ряд */
        gap: 20px;
    }
    .modal-window {
        padding: 20px;
    }
}