/* 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;
    min-height: 300px;
    border-radius: 16px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center bottom;
    text-align: left;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

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

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

.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 {
    position: relative;
    margin-bottom: 10px;
    margin-left: 32px;
}

.mortgage-hot-offer__item .text ul>li:before {
    content: "";
    position: absolute;
    top: -1px;
    left: -32px;
    width: 20px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
}

.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%;
        -webkit-box-sizing: border-box;
            box-sizing: border-box;
    border: 2px solid var(--background);
    border-radius: 100%;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.mortgage-hot-offer__btn::after {
    content: "";
    position: absolute;
    display: inline-block;
    width: 9px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='16' viewBox='0 0 9 16' fill='none'%3E%3Cpath d='M1 1L8 8L1 15' stroke='%23121212' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-39%, -50%) scale(0.85);
        -ms-transform: translate(-39%, -50%) scale(0.85);
            transform: translate(-39%, -50%) scale(0.85);
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.mortgage-hot-offer__item:hover .mortgage-hot-offer__btn {
    background-color: transparent;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.mortgage-hot-offer__item:hover .mortgage-hot-offer__btn::after {
    -webkit-filter: brightness(0) saturate(100%) invert(1);
            filter: brightness(0) saturate(100%) invert(1);
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

@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 + 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;
    }

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

@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;
        margin-right: 70px;
    }

    .mortgage-hot-offer__item .text li br {
        display: none;
    }

    .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);
    }
}

@media screen and (min-width: 1280px) {
    .mortgage-hot-offer__item .text {
        margin-right: 0;
    }

    .mortgage-hot-offer__item .text li br {
        display: block;
    }
}

@media screen and (max-width: 925px) {
    .mortgage-hot-offer__item .text {
        font-size: 13px;
    }
    .mortgage-hot-offer__item .text li:last-child {
        margin-right: 70px;
    }

    .mortgage-hot-offer__item .text li br {
        display: none;
    }

    .mortgage-hot-offer__item .title p {
        margin-top: 12px;
        margin-bottom: 10px;
        margin-top: 10px !important;
    }
}