.modal.modal-dialog-telegram__subscribe {
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
}

.modal__overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.modal__content {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    width: 100%;
    max-width: 380px;
    opacity: 0;
    transition: opacity .3s ease;
}

.content-modal::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #0088CC;
    z-index: 1;
}

.modal__close {
    position: absolute;
    right: 15px;
    top: 15px;
    border: none;
    padding: 0;
    width: 18px;
    height: 18px;
    background-color: transparent;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
}

.modal__close::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 1px;
    width: 2px;
    height: 100%;
    background-color: #FFFFFF;
    transform: translate(-50%, -50%) rotate(45deg);
}

.modal__close::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 1px;
    width: 2px;
    height: 100%;
    background-color: #FFFFFF;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.content-modal__header {
    height: 176px;
    background: #0088CC url('../images/header-modal-image.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.content-modal__body {
    padding: 40px 70px;
    background-color: #FFFFFF;
}

.content-modal__title {
    display: block;
    margin: 0 0 28px 0;
    font-weight: 700;
    font-size: 24px;
    line-height: 28px;
    text-align: center;
    color: #333333;
    opacity: 0;
}

.content-modal__button {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #333333;
    border-radius: 3px;
    margin: 0;
    padding: 12px;
    text-decoration: none;
    color: #333333;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
}

.modal.modal--visible {
    pointer-events: unset;
    opacity: 1;
}

.modal--visible .modal__content {
    opacity: 1;
}

.modal--visible .modal__content::before {
    animation: resizeBefore .3s ease-in-out .5s forwards, opacityBefore .3s ease-in-out 1s forwards;
}

.modal--visible .content-modal__title {
    animation: opacityText .3s ease-in-out 1.5s forwards;
}

.modal--visible .modal__close,
.modal--visible .content-modal__button {
    animation: opacityConrols .3s ease-in-out 2s forwards;
}

@media screen and (max-width: 575px) {
    .content-modal__body {
        padding: 40px 30px;
        background-color: #FFFFFF;
    }

    .content-modal__header {
        height: 140px;
    }
}

.lock-scroll {
    overflow: hidden!important;
}

@keyframes resizeBefore {
    0% {
        height: 100%;
    }

    100% {
        height: 176px;
    }
}

@keyframes opacityBefore {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        pointer-events: none;
    }
}

@keyframes opacityText {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes opacityConrols {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
        pointer-events: unset;
    }
}

@media screen and (max-width: 575px) {
    @keyframes resizeBefore {
        0% {
            height: 100%;
        }

        100% {
            height: 140px;
        }
    }
}