.popup-banner {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 998;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.44);
    box-sizing: border-box;
}

.popup-banner.popup-banner--visible {
    display: flex;
}

.popup-banner__card {
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 580px;
    height: 491px;
    padding: 50px 30px 0;
    background: #fff;
}

.popup-banner__close {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.popup-banner__close img {
    display: block;
    width: 20px;
    height: 20px;
}

.popup-banner__photo {
    width: 520px;
    height: 212px;
    overflow: hidden;
    flex-shrink: 0;
}

.popup-banner__photo img {
    display: block;
    width: 520px;
    height: 212px;
}

.popup-banner__title {
    margin: 20px 0 0;
    width: 520px;
    font-family: Montserrat, Arial, sans-serif;
    font-weight: 700;
    font-size: 25px;
    line-height: normal;
    text-align: center;
    color: #000;
}

.popup-banner__btn {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 202px;
    height: 44px;
    margin-top: 30px;
    padding: 0 26px;
    border: 0;
    border-radius: 100px;
    background: #415287;
    font-family: Montserrat, Arial, sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: normal;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
}

.popup-banner__btn:hover {
    background: #8699d0;
}

@media (max-width: 767px) {
    .popup-banner.popup-banner--visible {
        align-items: flex-end;
    }

    .popup-banner__card {
        width: 100%;
        height: 521px;
        padding: 50px 0 0;
    }

    .popup-banner__close {
        right: 40px;
    }

    .popup-banner__photo {
        width: 100%;
    }

    .popup-banner__photo img {
        width: 100%;
        height: 212px;
        object-fit: cover;
        object-position: center;
    }

    .popup-banner__title {
        box-sizing: border-box;
        width: 100%;
        padding: 0 20px;
    }
}
