/** popup **/
#popup_bg {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 3;
    left: 0;
    top: 0;
    overflow: hidden;
}

#popup_bg.show {
    background: rgba(9, 28, 61, 0.16);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup, .flash {
    display: block;
    /*left: 20%;*/
    max-height: 100%;
    max-width: 1000px;
    min-width: 300px;
    padding: 0;
    position: fixed;
    top: max(10px, calc((100vh - 500px) / 2)); /* Вычисление отступа сверху, не меньше 10px */
    width: auto;
    z-index: 3;
    left: 50%;         /* Сдвигаем левый край элемента к центру экрана */
    transform: translateX(-50%); /* Смещаем элемент обратно на 50% его ширины */
    background-color: #ffffff;
    /*box-shadow: 0 0 15px 0 #282828;*/
}

.flash {
    z-index: 4;
}

.popup > .main{
    margin: 60px;
    font-size: 16px;
    display: block;
    position: relative;
}

.popup i.icon.close ,.popupMap i.icon.close{
    background-image: url("../images/main/i/close.svg");
    background-size: 24px auto;
    background-position: center;
    cursor: pointer;
    height: 45px;
    position: absolute;
    right: 0;
    top: 0;
    width: 45px;
    z-index: 1;
}

.popup > .main > i.icon.close{

}

.popup > .main > .title {
    padding-right: 70px;
}

/** end popup **/

@media handheld, only screen and (max-width: 700px) {
    .popup > .main{
        margin: 30px;
    }
}
