.mortgage-map {
    position: relative;
    padding: 0;
}

.mortgage-map .bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    z-index: 0;
}

.mortgage-map .bg img {
    width: 100%;
    height: 100%;
}

.mortgage-map .bg .bg__img {
    display: none;
}

.mortgage-map .bg .bg__img--mob {
    display: block;
}

.mortgage-map .bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(161.81deg, rgba(255, 255, 255, 0.6) 13.71%, rgba(255, 255, 255, 0) 47.49%);
    z-index: 1;
}

.mortgage-map__inner {
    position: relative;
    padding: 30px;
    z-index: 1;
}

.mortgage-map__title {
    font: 600 26px/130% var(--title-font);
    color: var(--title-color);
}

.mortgage-map__subtitle {
    margin-top: 22px;
    font: 400 18px/130% var(--title-font);
    color: var(--title-color);
}

.mortgage-map__link {
    margin-top: 170px;
}

.mortgage-map__link a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: calc(100% - 20px);
    height: fit-content;
    text-align: center;
    white-space: nowrap;
    border-radius: 30px;
    outline-offset: 10px;
    font: 500 14px / 130% var(--text-font);
    letter-spacing: .1em;
    padding: 16px 30px;
    text-transform: uppercase;
    margin: 10px;
    background-color: var(--background);
    color: var(--title-color);
    outline: 1px solid var(--background);
    transition: outline-color 0.2s linear;
}

.mortgage-map__link a:hover {
    outline: 1px solid transparent;
}

@media screen and (min-width: 600px) {
    .mortgage-map .bg .bg__img {
        display: block;
    }

    .mortgage-map .bg .bg__img--mob {
        display: none;
    }

    .mortgage-map .bg::after {
        background: linear-gradient(to left, rgba(0, 0, 0, 0) 0.67%, rgba(0, 0, 0, 0.7) 99.18%);
    }

    .mortgage-map__link a {
        margin-left: auto;
        max-width: 270px;
    }

    .mortgage-map__inner {
        padding-bottom: 20px;
    }

    .mortgage-map__title {
        max-width: 470px;
        color: var(--background);
    }

    .mortgage-map__subtitle {
        max-width: 335px;
        color: var(--background);
    }

    .mortgage-map__link {
        margin-top: 53px;
    }
}

@media screen and (min-width: 1000px) {
    .mortgage-map .bg::after {
        background: linear-gradient(to left, rgba(0, 0, 0, 0) 23.22%, rgba(0, 0, 0, 0.7) 99.18%);
    }

    .mortgage-map__inner {
        padding: 60px;
    }

    .mortgage-map__title {
        max-width: 565px;
        font-size: 36px;
    }

    .mortgage-map__subtitle {
        margin-top: 20px;
        max-width: 570px;
        font-size: 21px;
        letter-spacing: 0.4px;
    }

    .mortgage-map__link {
        margin-top: 50px;
    }

    .mortgage-map__link a {
        margin-left: 10px;
        margin-bottom: 9px;
    }
}