.container-contact {
    margin: 50px auto;
    width: 100%;
    max-width: 1500px;
}

.row-contact {
    display: flex;
    justify-content: space-between; /* Распределяет изображения равномерно */
    align-items: center; /* Центрирует изображения по вертикали */
}

.map {
    width: 47%;
    height: 400px;
}

.info {
    height: 50%;
    width: 50%;
}

.contact-info {
    display: flex;
    align-items: center;
    font-size: 24px;
    margin-bottom: 10px;
    margin-left: 15%;
}

.div-button {
    margin-top: 40px;
    margin-left: 15%;
    height: 100px;
    width: 429px;
}

.cta-button {
    width: 429px;
    padding: 10px 20px;
    background: #03030366;
    border: 2px solid #F3F3F3;
    color: white;
    cursor: pointer;
    margin-bottom: 30px;
    font-size: 24px;
    border-radius: 15px;
    text-decoration: none;
}

/* Стили для модального окна */
.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed; /* Оставаться на месте */
    z-index: 1; /* Сидеть на вершине */
    left: 0;
    top: 0;
    width: 100%; /* Полная ширина */
    height: 100%; /* Полная высота */
    overflow: auto; /* Включите прокрутку, если это необходимо */
    background-color: rgb(0,0,0); /* Цвет запасной вариант */
    background-color: rgba(0,0,0,0.4); /* Черный с непрозрачностью */
    padding-top: 60px;
}

.modal-video {
    background-color: #2b2b2b;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: 5% auto; /* 5% сверху и по центру */
    padding: 5px 10px 20px 10px;
    border: 1px solid #888;
    width: 80%; /* Может быть больше или меньше, в зависимости от размера экрана */
    max-width: 800px; /* Увеличим максимальную ширину для видео */
    text-align: center; /* Центрируем содержимое */
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    height: 30px;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

iframe {
    width: 100%;
    height: 405px; /* Фиксированная высота для видео */
    border: none;
}

@media (max-width: 768px) {
    .container-contact {
        margin: 20px auto;
        width: 90%;
        max-width: 100%;
    }

    .row-contact {
        flex-direction: column; /* Переход на вертикальное выравнивание */
        justify-content: center;
        align-items: center;
    }

    .map {
        width: 100%; /* Делаем карту на всю ширину */
        margin: 20px 0;
    }

    .info {
        width: 100%; /* Также на всю ширину */
        margin-bottom: 20px; /* Добавим отступ снизу для разделения */
    }

    .contact-info {
        font-size: 24px; /* Уменьшаем размер шрифта */
        text-align: center;
        flex-direction: column; /* Располагаем элементы друг под другом */
        margin-bottom: 20px;
    }

    .div-button {
        margin-top: 20px;
        margin-left: 0;
        width: 100%; /* На всю ширину */
        display: flex;
        justify-content: center; /* Центрируем кнопку */
    }

    .cta-button {
        width: 100%;
        padding: 15px 20px;
        font-size: 24px; /* Уменьшаем размер шрифта */
    }
}
