/* section mortgage-hot-offer*/

section.mortgage-hot-offer {
    margin-top: 40px;
}

.mortgage-hot-offer__container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

.mortgage-hot-offer__item {
    position: relative;
    padding: 30px;
    height: 300px;
    border-radius: 16px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position-x: center;
    background-position-y: bottom;
}

.mortgage-hot-offer__item:nth-child(3n + 1).no-image,
.mortgage-hot-offer__item:nth-child(3n + 2).no-image {
    background: linear-gradient(316.22deg, #570724 2.04%, #930338 100%);
}

.mortgage-hot-offer__item:nth-child(3n + 3).no-image {
    background: linear-gradient(317.67deg, #55B9FF -11.26%, #00558B 96.31%);
}

.mortgage-hot-offer__item * {
    color: var(--background);
}

.mortgage-hot-offer__item .title div {
    font: 600 21px/130% var(--title-font);
}

.mortgage-hot-offer__item .title p {
    margin-top: 12px;
    font: 400 14px/150% var(--text-font);
}

.mortgage-hot-offer__item .text {
    margin-top: 20px;
    font: 400 14px/150% var(--text-font);
}

.mortgage-hot-offer__item .text ul li {
    margin-bottom: 10px;
}

.mortgage-hot-offer__item .text ul>li:before {
    top: -1px;
    width: 20px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.4);
}

.mortgage-hot-offer__item .text ul>li:after {
    content: "";
    background: url('img/arrow_li.png') no-repeat;
    position: absolute;
    top: 6px;
    left: -23px;
    width: 4px;
    height: 7px;
}

.mortgage-hot-offer__btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--background);
    border-radius: 50%;
}

.mortgage-hot-offer__btn::after {
    content: "";
    position: absolute;
    background: url(img/arrow_btn.png) no-repeat;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 16px;
    transform: translate(-39%, -50%) scale(0.85);
}

@media screen and (min-width: 570px) {
    .mortgage-hot-offer__item {
        background-position-x: center;
        background-position-y: bottom;
    }
}

@media screen and (min-width: 745px) {
    .mortgage-hot-offer__container {
        grid-template-areas:
            "first third"
            "second second";
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .mortgage-hot-offer__item:nth-child(3n + 1) {
        grid-area: first;
    }

    .mortgage-hot-offer__item:nth-child(3n + 2) {
        grid-area: second;
    }

    .mortgage-hot-offer__item:nth-child(3n + 3) {
        grid-area: third;
    }

    .mortgage-hot-offer__item:nth-child(3n + 2) .title div {
        font-size: 26px;
    }

    .mortgage-hot-offer__item:nth-child(3n + 2) .title p,
    .mortgage-hot-offer__item:nth-child(3n + 2) .text * {
        font-size: 18px;
    }
}

@media screen and (min-width: 1224px) {
    .mortgage-hot-offer__container {
        grid-template-columns: repeat(3, 1fr);
        grid-template-areas: none;
    }

    .mortgage-hot-offer__item {
        grid-area: auto !important;
    }

    .mortgage-hot-offer__item {
        padding: 40px;
        height: auto;
        max-height: 420px;
        aspect-ratio: 1;
    }

    .mortgage-hot-offer__item .title div {
        font-size: 24px !important;
    }

    .mortgage-hot-offer__item .title p {
        font-size: 14px !important;
    }


    .mortgage-hot-offer__item.second-item .title p {
        margin-top: 18px;
        font-size: 16px !important;
    }

    .mortgage-hot-offer__item .text {
        margin-top: 30px;
    }

    .mortgage-hot-offer__item .text * {
        font-size: 14px !important;
    }

    .mortgage-hot-offer__item .text ul li {
        margin-bottom: 16px;
        margin-left: 35px;
    }

    .mortgage-hot-offer__item .text ul>li:before {
        left: -35px;
    }

    .mortgage-hot-offer__item .text ul>li:after {
        left: -26px;
    }

    .mortgage-hot-offer__btn {
        bottom: 40px;
        right: 40px;
        width: 60px;
        height: 60px;
    }

    .mortgage-hot-offer__btn::after {
        transform: translate(-39%, -50%) scale(1);
    }
}