.home-title-wrapper h1 {
    font: 600 26px/130% var(--title-font);
    color: var(--text-color);
    margin-bottom: 50px;
    margin-top: 30px;
}

.mortgage-hot-offer {
    padding: 0;
    margin: 60px 0;
}

@media screen and (min-width: 768px) {
    .home-title-wrapper h1 {
        margin-bottom: 94px;
    }

    .mortgage-hot-offer {
        padding: 0;
        margin: 80px 0;
    }
}

@media screen and (min-width: 1000px) {
    .home-title-wrapper h1 {
        font-size: 80px;
        line-height: 110%;
        letter-spacing: 0.04em;
        max-width: 820px;
        margin-bottom: 118px;
    }

    .mortgage-hot-offer {
        padding: 0;
        margin: 120px 0;
    }
}

/* services */

.services-otdel {
    padding: 0;
    margin-bottom: 60px;
}

.services-otdel .main-title {
    font: 600 12px/130% var(--title-font);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--grey-color);
    margin-bottom: 30px;
}

.service-item {
    display: block;
    position: relative;
    -webkit-transition: all 0.45s ease;
    -o-transition: all 0.45s ease;
    transition: all 0.45s ease;
}

.service-item .wrapper {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border-top: 1px solid var(--line-color);
    padding: 30px 89px 38px 0;
    -webkit-transition: all 0.45s ease;
    -o-transition: all 0.45s ease;
    transition: all 0.45s ease;
}

.service-item:last-child .wrapper {
    border-bottom: 1px solid var(--line-color);
}

.title-all .title {
    font: 500 18px/130% var(--title-font);
    color: var(--text-color);
    margin-bottom: 20px;
}

.title-all .subtitle {
    display: none;
    font: 400 14px/150% var(--text-font);
    color: var(--grey-color);
}

.service-item .description {
    font: 400 14px/150% var(--text-font);
    color: var(--dark-grey-color);
}

.arrow-container {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    position: absolute;
    top: 33px;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #C1C1C1;
    -webkit-transition: all 0.45s ease;
    -o-transition: all 0.45s ease;
    transition: all 0.45s ease;
}

.arrow-container .arrow {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    left: 45%;
    -webkit-transform: translate(-45%, -50%) rotate(-45deg);
    -ms-transform: translate(-45%, -50%) rotate(-45deg);
    transform: translate(-45%, -50%) rotate(-45deg);
    width: 7px;
    height: 7px;
    border-right: 1px solid var(--title-color);
    border-bottom: 1px solid var(--title-color);
    -webkit-transition: all 0.45s ease;
    -o-transition: all 0.45s ease;
    transition: all 0.45s ease;
}

.service-item:hover {
    -webkit-box-shadow: 2px 2px 10px rgba(209, 209, 209, 0.4);
    box-shadow: 2px 2px 10px rgba(209, 209, 209, 0.4);
}

.service-item:hover .wrapper {
    border-top: 1px solid var(--background);
}

.service-item:last-child:hover .wrapper {
    border-bottom: 1px solid var(--background);
}

.service-item:hover+.service-item .wrapper {
    border-top: 1px solid var(--background);
}

.service-item:hover .arrow-container {
    border: 1px solid var(--main-color);
    background-color: var(--main-color);
}

.service-item:hover .arrow {
    border-right: 1px solid var(--background);
    border-bottom: 1px solid var(--background);
}

@media screen and (max-width: 640px) {
    .service-item .wrapper {
        width: 100%;
        padding-left: 26px;
    }

    .arrow-container {
        right: 26px;
    }
}

@media screen and (max-width: 500px) {
    .service-item .wrapper {
        padding-left: 16px;
    }

    .arrow-container {
        right: 16px;
    }
}

@media screen and (min-width: 768px) {
    .services-otdel {
        padding: 0;
        margin-bottom: 80px;
    }

    .service-item>.wrapper {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-column-gap: 50px;
        -moz-column-gap: 50px;
        column-gap: 50px;
        padding: 30px 100px 40px 0px;
    }

    .title-all,
    .service-item .description {
        width: 270px;
    }

    .title-all .title {
        margin-bottom: 0;
    }

    .service-item .description {
        margin-top: 2px;
    }

    .arrow-container {
        right: 10px;
    }
}

@media screen and (min-width: 1000px) {
    .services-otdel {
        padding: 0;
        margin-bottom: 100px;
    }

    .services-otdel .main-title {
        font-size: 14px;
    }

    .service-item .wrapper {
        -webkit-column-gap: 112px;
        -moz-column-gap: 112px;
        column-gap: 112px;
        padding: 50px 100px 60px 0;
        min-height: 230px;
    }

    .title-all {
        width: 450px;
        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: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
    }

    .title-all .title {
        font-size: 26px;
        /* margin-bottom: 51px; */
    }

    .title-all .subtitle {
        display: block;
        visibility: hidden;
        position: absolute;
        bottom: 30px;
    }

    .subtitle span:not(:last-child)::after {
        content: "|";
        margin: 0 10px;
    }

    .service-item .description {
        width: 420px;
        font-size: 18px;
        color: var(--text-color);
        margin-top: 6px;
    }

    .arrow-container {
        top: 54px;
        width: 60px;
        height: 60px;
    }

    .arrow-container .arrow {
        width: 10px;
        height: 10px;
        border-right: 1.5px solid var(--title-color);
        border-bottom: 1.5px solid var(--title-color);
    }

    .service-item:hover {
        -webkit-box-shadow: 2px 2px 10px rgba(209, 209, 209, 0.25);
        box-shadow: 2px 2px 10px rgba(209, 209, 209, 0.25);
    }

    .service-item:hover .title-all .subtitle {
        visibility: visible;
    }

    .service-item:hover .arrow {
        border-right: 1.5px solid var(--background);
        border-bottom: 1.5px solid var(--background);
    }
}

/* expo */

.expo {
    padding-top: 50px;
    padding-bottom: 60px;
}

.expo .h3 {
    font-weight: 600;
    line-height: 32px;
    letter-spacing: -0.3px;
    color: var(--title-color);
    margin-bottom: 28px;
}

.expo p:not(.descr) {
    font: 500 21px/32px var(--title-font);
    color: var(--title-color);
    letter-spacing: -0.26px;
}

.expo .descr {
    width: 80%;
    margin-bottom: 25px;
}

.expo small {
    display: block;
    letter-spacing: 0.4px;
    margin-bottom: 5px;
}

.back-call a {
    font: 400 16px var(--text-font);
    color: var(--main-color);
    border-bottom: 1px solid var(--main-color);
    margin-left: 5px;
}

.back-call a:hover {
    border-bottom: 1px solid transparent;
}

.contacts {
    margin-bottom: 20px;
}

.expo .wrapper>.contacts:nth-child(5) {
    margin-bottom: 30px;
}

.expo .wrapper>.contacts:nth-child(6) {
    margin-bottom: 40px;
}

@media screen and (min-width: 999px) {
    .expo .h3 {
        font-size: 36px;
    }

    .expo .descr {
        font-size: 20px;
    }

    .contacts {
        float: left;
        width: calc(40% - 20px);
    }

    .expo .wrapper>.contacts:nth-child(3) {
        width: 100%;
    }

    .expo .wrapper>.contacts:nth-child(4) {
        width: 20%;
    }

    .expo small,
    .back-call span {
        font-size: 18px;
    }

    .big-link {
        font-size: 15px;
    }

    .expo p:not(.descr) {
        font: 500 26px/32px var(--title-font);
    }

    .big-link {
        margin-bottom: 30px;
    }

    .back-call a {
        font-size: 20px;
    }
}

@media screen and (min-width: 1200px) {
    .contacts {
        width: calc(33% - 20px);
    }
}

/* call-taxi */

.call-taxi {
    background-color: #F7F6F5;
    padding: 29px 5px 31px 5px;
}

.call-taxi .wrapper {
    z-index: 1;
}

.call-taxi .h4 {
    font: 700 14px var(--text-font);
    letter-spacing: 0.44px;
    color: var(--title-color);
    margin-bottom: 10px;
}

.call-taxi .l-r p {
    font: 400 13px/21px var(--text-font);
}

.call-taxi .big-link {
    margin-top: 18px;
    margin-bottom: 0;
}

.call-taxi-icon {
    position: absolute;
    top: 28px;
    left: -65px;
    background-image: url('/services/img/taxi.svg');
    background-repeat: no-repeat;
    background-position: center;
    width: 295px;
    height: 59px;
    z-index: -1;
}

@media screen and (min-width: 640px) {

    .call-taxi .h4 {
        font: 700 25px var(--text-font);
    }

    .call-taxi .l-r p {
        font: 400 17px/21px var(--text-font);
    }

    .call-taxi-icon {
        background-size: cover;
        top: 45px;
        left: -13px;
        width: 295px;
        height: 100px;
    }
}

@media screen and (min-width: 999px) {

    .call-taxi .l-l {
        width: calc(40% - 20px);
        float: left;
        margin-left: 90px;
    }

    .call-taxi .l-r {
        width: calc(50% - 20px);
        float: right;
    }

    .call-taxi .h4 {
        font: 700 28px var(--title-font);
    }

    .call-taxi {
        padding: 60px 0;
    }

    .call-taxi .btn {
        background-color: var(--main-color);
        color: var(--background);
        min-width: 230px;
        margin-top: 30px;
        border: 1px solid var(--background);
    }

    .call-taxi .btn:hover {
        background-color: var(--background);
        color: var(--main-color);
        border: 1px solidvar(--main-color)
    }

    .call-taxi-icon {
        top: 35px;
        left: 35px;
    }
}


/* страница КАСТОМИЗАЦИЯ */

section.custom {
    margin: 80px auto 60px;
}

.custom .wrapper {
    width: calc(100% - 32px);
}

.close__wrapper {
    width: 100%;
    position: relative;
}

.custom .close {
    position: absolute;
    width: 30px;
    height: 30px;
    top: -56px;
    right: 25px;
}

.custom .close .line {
    position: absolute;
    height: 2px;
    width: 16px;
    background-color: var(--dark-grey-color);
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    -webkit-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
}

.custom .close .line._line1 {
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.custom .close .line._line2 {
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.custom__title {
    margin-bottom: 30px;
    font: 600 18px var(--title-font);
    line-height: 150%;
    color: var(--text-color);
    text-transform: uppercase;
}

.custom__text {
    font: 400 16px var(--text-font);
    line-height: 150%;
    color: var(--text-color);
    margin: 30px 0 40px;
}

.custom__text p:not(:last-of-type) {
    margin-bottom: 20px;
}

.custom__text ul {
    margin-top: 30px;
}

.custom__text li {
    position: relative;
    margin-left: 26px;
}

.custom__text li:not(:last-of-type) {
    margin-bottom: 20px;
}

.custom__text li:before {
    content: "";
    position: absolute;
    left: -26px;
    top: 9px;
    width: 6px;
    height: 6px;
    background: var(--dark-grey-color);
    border-radius: 50%;
}

.btn-link_red {
    display: block;
    width: 100%;
    font: 500 12px/16px var(--text-font);
    color: var(--background);
    text-transform: uppercase;
    background-color: var(--main-color);
    text-align: center;
    letter-spacing: 0.08em;
    border: 1px solid var(--main-color);
    border-radius: 4px;
    padding: 9px 30px;
    margin-top: 40px;
    -webkit-transition: all 0.45s ease;
    -o-transition: all 0.45s ease;
    transition: all 0.45s ease;
}

.btn-link_red:hover {
    background-color: transparent;
    color: var(--main-color);
}

.grey-line {
    display: none;
}

@media (min-width: 768px) {
    section.custom {
        margin: 80px auto 80px;
    }

    .custom .wrapper {
        width: calc(100% - 60px);
    }

    .custom .close {
        top: -56px;
        right: 35px;
    }

    .custom__title {
        font-size: 26px;
    }

    .custom__text {
        font-size: 18px;
    }

    .custom__text li:before {
        top: 12px;
    }

    .btn-link_red {
        width: -webkit-fit-content;
        width: -moz-fit-content;
        width: fit-content;
    }
}

@media (min-width: 1000px) {
    section.custom {
        margin: 100px auto 85px;
    }

    .custom .close {
        top: -47px;
        right: 140px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--lk-background);
    }

    .custom .wrapper {
        width: calc(100% - 40px);
        max-width: 1000px;
    }

    .grey-line {
        display: block;
        height: 1px;
        width: 100%;
        background: var(--line-color);
        margin: 0 0 40px;
    }

    .custom__title {
        font-size: 36px;
        line-height: 130%;
        margin-bottom: 29px;
        text-transform: unset;
        max-width: 65%;
    }

    .custom__text {
        font-size: 16px;
        max-width: 763px;
        margin: 40px 0 40px;
    }

    .btn-link_red {
        width: 343px;
    }
}

/* блок ПОПУЛЯРНЫЕ ПРОЕКТЫ на странице КАСТОМИЗАЦИЯ */

section.popular {
    padding-top: 0;
    padding-bottom: 0;
    margin: 0 auto 60px;
}

@media screen and (min-width: 640px) {
    section.popular {
        margin: 0 auto 80px;
    }
}

@media (min-width: 960px) {

    .popular .wrapper {
        max-width: 1000px;
    }
}

@media screen and (min-width: 1200px) {
    section.popular {
        margin: 0 auto 90px;
    }
}

/* конец блок ПОПУЛЯРНЫЕ ПРОЕКТЫ */