/* Затемнение всей страницы при открытии окна */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    /* разрешаем прокрутку */
    background-color: rgba(0, 0, 0, 0.4);
}

/* Добавляется при открытии окна */
.modal-open {
    display: block;
}

/* Содержимое модального окна */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    /* отступ сверху и центрирование по горизонтали */
    padding: 20px;
    border: 1px solid #888;
    left: 50%;
    top: -10%;
    margin-left: -220px;
    width: 440px;
    position: fixed;
    border: 1px solid #f0f0f0;
    border-radius: 3px;
    color: #312e39;
}

@media (max-width: 767px) {
    .modal-content {
        top: 10%;
        width: 90%;
        margin-left: -45%;
    }
}

/* Кнопка закрытия модального окна */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    margin-top: -8px;
}

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

.regions-header {
    font-size: 20px;
    margin-bottom: 20px;
    text-align: left;
}

.regions-header-allcity {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
}

.regions-header-city {
    width: 50%;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: left;
}

.regions-header-city p {
    margin-block-start: 5px;
    margin-block-end: 5px;
    text-decoration: underline dotted;
}

.regions-header-city p:hover {
    text-decoration: none;
}