@-webkit-keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
@-webkit-keyframes bounce {
    0% {
        -webkit-transform: translateY(1800px);
                transform: translateY(1800px);
    }
    70% {
        -webkit-transform: translateY(-30px);
                transform: translateY(-30px);
    }
    90% {
        -webkit-transform: translateY(30px);
                transform: translateY(30px);
    }
    100% {
        -webkit-transform: translateY(0);
                transform: translateY(0);
    }
}
@keyframes bounce {
    0% {
        -webkit-transform: translateY(1800px);
                transform: translateY(1800px);
    }
    70% {
        -webkit-transform: translateY(-30px);
                transform: translateY(-30px);
    }
    90% {
        -webkit-transform: translateY(30px);
                transform: translateY(30px);
    }
    100% {
        -webkit-transform: translateY(0);
                transform: translateY(0);
    }
}
.lang-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 990;

    display: none;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, .6);
}
.lang-popup-overlay--visible {
    display: block;
    -webkit-animation: fadeIn 0.75s;
    animation: fadeIn 0.75s;
}
.lang-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 995;

    display: none;
    width: 410px;
    margin-top: -128px;
    margin-left: -205px;
    padding: 30px 50px 40px;

    background: #ffffff;
    border-radius: 6px;
}
.lang-popup--visible {
    display: block;
    -webkit-animation: bounce 0.75s;
    animation: bounce 0.75s;
}
.lang-popup__close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}
.lang-popup__close::before,
.lang-popup__close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 20px;
    margin-top: -10px;
    margin-left: -1px;
    background: #e51a4b;
}
.lang-popup__close::before {
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
}
.lang-popup__close::after {
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}
.lang-popup__text {
    margin: 0 0 30px; 
    font-size: 18px;
    line-height: 24px;
}
.lang-popup__text p {
    margin: 0;
}
.lang-popup__list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
}
.lang-popup__lang {
    position: relative;
    display: inline-block;
    width: 115px;
    padding-top: 85px;
    font-size: 18px;
    line-height: 24px;
    text-decoration: none !important;
    color: inherit;
}
.lang-popup__lang:hover,
.lang-popup__lang:active {
    color: #e51a4b;
}
.lang-popup__lang::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 115px;
    height: 72px;
    background: transparent no-repeat center;
    background-size: cover;
    border: 1px solid #bdbdbd;
}
.lang-popup__lang--ru::before {
    background-image: url("../images/lang-popup/flag-ru.png");
}
.lang-popup__lang--en::before {
    background-image: url("../images/lang-popup/flag-en.png");
}
@media screen and (max-width: 479px){
    .lang-popup {
        /*right: 34px;*/
        /*left: 34px;*/
        right: 7%;
        left: 7%;
        width: auto;
        margin-left: 0;
        padding-right: 7%;
        padding-left: 7%;
    }
    .lang-popup__text {
        margin-bottom: 20px;
        font-size: 16px;
        line-height: 20px;
    }
    .lang-popup__lang {
        width: 100px;
        padding-top: 75px;
        font-size: 16px;
        line-height: 20px;
    }
    .lang-popup__lang::before {
        width: 100px;
        height: 62px;
    }
}