/* Ипотечный калькулятор */

.mortgage .mortgage_row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.mortgage .mortgage_col {
    border-radius: 15px;
    background-color: #F0F3F5;
    padding: 15px;
}

.mortgage .mortgage_row > .mortgage_col:nth-child(odd) {
    width: calc(33% - 8px);
    display: flex;
}

.mortgage .section-title {
    font-weight: 500;
}

.mortgage .mortgage_row > .mortgage_col:nth-child(even) {
    width: calc(67% - 8px);
}

.mortgage .calc-title {
    font-size: 16px;
}

.mortgage .mortgage-input-box {
    margin-bottom: 30px;
}

.mortgage .mortgage-input-range-wrap {
    position: relative;
}

.mortgage .mortgage-input-text {
    width: 100%;
    height: 40px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #C1D6E4;
    background-color: #F0F3F5;
    padding-left: 10px;
}

.mortgage .mortgage-input-desc {
    position: absolute;
    top: -7px;
    font-size: 12px;
    left: 5px;
    background-color: #F0F3F5;
    padding: 0px 6px;
}

.mortgage_calc_form {
    width: 100%;
}

.mortgage-range-wrap-box {
    position: absolute;
    bottom: -4px;
    width: 100%;
    left: -1px;
}

.mortgage-range-wrap-box output {
    position: absolute;
}

.mortgage .mortgage-input-range {
    position: relative;
    width: 100%;
    left: -1px;
    height: 4px;
    background: #C1D6E4;
    -webkit-appearance: none;
    outline: none;
    border-radius: 1px;
}

.mortgage .mortgage-input-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 20px;
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 0 2px #222;
    position: relative;
}

.mortgage-input-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mortgage-input-row .mortgage-first-buttons input[type=radio] {
    display: none;
}

.mortgage-input-row .mortgage-first-buttons {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: 100%;
    margin-left: 8px;
}

.mortgage-first-wrap {
    margin-bottom: -30px;
}

.mortgage-first-wrap,
.mortgage-date-wrap {
    display: inline-flex;
    width: 100%;
    justify-content: space-between;
}

.mortgage-first-button-box {
    height: 100%;
}

.mortgage-input-row .mortgage-first-buttons .mortgage-first-button {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 10px;
    padding-bottom: 9px;
    box-sizing: border-box;
    height: 100%;
    font-weight: 500;
    border-bottom: 4px solid #c1d6e4;
    border-top: 1px solid #c1d6e4;
    border-left: 1px solid #c1d6e4;
    border-right: 1px solid #c1d6e4;
    background-color: transparent;
}

.first-mod:checked ~ .mortgage-first-button {
    background-color: #d4eeff;
}

.mortgage-first-button {
    transition: background 0.3s ease-in-out;
}

.mortgage-first-wrap-box,
.mortgage-date-wrap-box {
    width: 100%;
}

.mortgage-percent-box,
.mortgage-buttons-wrap-box {
    min-width: 90px;
}

.mortgage-percent-box .mortgage-input-range-wrap {
    margin-left: 8px;
}

.credit-summ-wrap {
    margin: 1px 0 4px;
    font-weight: 500;
}

.credit-summ-wrap .credit-summ {
    font-weight: bold;
}

.mortgage-main-button {
    cursor: pointer;
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 10px;
    padding-bottom: 9px;
    box-sizing: border-box;
    /* border-bottom: 4px solid #c1d6e4;
    border-top: 1px solid #c1d6e4;
    border-left: 1px solid #c1d6e4;
    border-right: 1px solid #c1d6e4; */
}

.mortgage-main-button,
.mortgage-main-button:hover {
    transition: all 0.3s ease-in-out;
}

.mortgage-main-button-wrap {
    display: flex;
    justify-content: center;
}

.mortgage-title-col {
    font-size: 18px;
    font-weight: 700;
    width: 100%;
    text-align: center;
}

.mortgage-month-summ > .text,
.mortgage-items > .mortgage-item > .text {
    font-size: 14px;
    opacity: 0.7;
}

.mortgage-month-summ > .value,
.mortgage-items > .mortgage-item > .value {
    font-size: 16px;
    font-weight: bold;
    display: inline;
}

.mortgage-month-summ > .value:after,
.mortgage-items > .mortgage-item > .value:after {
    content: " ₽";
    display: inline;
    font-weight: normal;
    opacity: 0.9;
    font-size: 14px;
}

.percent-credit-summ > .value:after {
    content: " %" !important;
}

.date-credit-summ > .value:after {
    content: " г." !important;
}

.mortgage-items > .mortgage-item {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #cccccc;
    padding: 10px 0;
    align-items: center;
}

.mortgage-items .full-credit-summ .text,
.mortgage-items .first-credit-summ .text,
.mortgage-items .unlimit-credit-summ .text {
    display: inline-flex;
    align-items: center;
}


.mortgage-items .full-credit-summ .text:before,
.mortgage-items .first-credit-summ .text:before,
.mortgage-items .unlimit-credit-summ .text:before {
    content: "";
    display: inline-flex;
    border-radius: 50%;
    width: 11px;
    height: 11px;
    margin-right: 7px;
}

.mortgage-items .full-credit-summ .text:before {
    background-color: #74BB16;
}

.mortgage-items .first-credit-summ .text:before {
    background-color: #EB9134;
}

.mortgage-items .unlimit-credit-summ .text:before {
    background-color: #00948D;
}

.mortgage-diagramm {
    margin: 20px auto;
    width: 230px;
    height: 230px;
    position: relative;
}

.mortgage-diagramm > canvas {
    max-width: 230px;
    max-height: 230px;
}

.mortgage-month-summ {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(0, -50%);
}

.mortgage_calc_form .mortgage-title-col {
    text-align: left;
    margin-bottom: 20px;
}

/* выберите дом с выгодной ипотекой */

.new-orange-button {
    display: flex;
    color: #fff;
    background-image: linear-gradient(90deg, #F6BF5B, #EB9033);
    padding: 10px 30px;
    text-align: center;
    font-weight: bold;
    flex-wrap: wrap;
    min-width: 160px;
    justify-content: center;
    align-items: center;
    text-shadow: 1px 1px 1px rgba(150, 150, 150, 0.67);
    box-sizing: border-box;
    border-radius: 5px;
}

.new-orange-button:hover {
    background-image: linear-gradient(90deg, #e0af53, #d8832e);
}

#mortgage_init_button {
    display: none;
    opacity: 0;
    visibility: hidden;
}

.new-orange-button:hover,
.new-orange-button {
    transition: all 0.3s ease-in-out;
}

.houses-mortgage {
    margin: 40px 0;
}

.houses-mortgage .title-box {
    display: flex;

}

.houses-mortgage .button-box .new-orange-button {
    margin-left: 20px;
}

.houses-mortgage .title-box .section-title {
    margin-bottom: 0;
    font-weight: 500;
}

.houses-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 40px;
    align-items: stretch;
}

.houses-item {
    width: calc(33% - (40px / 2));
}

.houses-item .houses-img-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 20px;
    transition: all 0.3s ease-in-out;
}

.houses-item .houses-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: all 0.3s ease-in-out;
}

.houses-item:hover .houses-img-box {
    box-shadow: 3px 3px 8px 0px rgba(73, 73, 73, 0.3);
}

.houses-item:hover .houses-img-box img {
    transform: scale(120%);
}

.houses-item .houses-title-box {
    font-weight: 500;
    color: #282828;
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.houses-item .houses-square-box {
    color: #282828;
    opacity: 0.7;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 5px;
}

.houses-item .houses-mortgage-box {
    font-weight: 700;
    font-size: 14px;
    color: #74C191;
}

#mortgage-textarea {
    display: none;
    visibility: hidden;
    opacity: 0;
}

/* какие дома мы строим */

.how-building .houses-item {
    width: calc(20% - (30px / 2));
}

.how-building .houses-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.how-building .houses-item .new-orange-button {
    display: block;
    width: 100%;
}

/* ипотека от лучших банков */

.bast-banks-wrap {
    display: flex;
    flex-direction: column;
    margin-top: 40px;
}

.best-bank-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 25px;
    box-shadow: 3px 3px 8px 0px rgba(73, 73, 73, 0.116);
    background-color: #F0F3F5;
    padding: 15px;
    border-radius: 7px;
    border: 2px solid transparent;
}

.best-bank-item:hover {
    border: 2px solid #e1994d;
}


.best-bank-item:hover .best-bank-button a {
    background-image: -webkit-linear-gradient(90deg, #e1994d 0%, #e6a959 56%, #eab864 100%);
}

.best-bank-head {
    display: flex;
    flex-direction: row;
    width: 100%;
    margin-bottom: 10px;
}

.best-bank-body {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
}

.best-bank-logo {
    display: flex;
    align-items: flex-start;
    width: 3.5%;
    aspect-ratio: 1 / 1;
}

.best-bank-logo img {
    width: 100%;
}

.best-bank-content {
    display: flex;
    flex-direction: row;
    width: 85%;
}

.best-bank-button {
    display: flex;
    width: 12%;
}

.best-bank-button a {
    display: flex;
    align-items: center;
    color: #fff;
    background-image: -webkit-linear-gradient(90deg, #e1994d 0%, #e6a959 56%, #eab864 100%);
    padding: 5px 10px;
    width: 100%;
    height: 100%;
    border-radius: 7px;
}

.best-bank-label {
    background-color: #fff;
    border-radius: 4px;
    font-weight: 500;
    padding: 7px;
    margin-right: 7px;
    font-size: 12px;
}

.best-bank-content-col.col-1 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 35%;
    padding-left: 7px;
}

.best-bank-content-row {
    display: flex;
    align-items: end;
}

.best-bank-content-col.col-2,
.best-bank-content-col.col-3,
.best-bank-content-col.col-4 {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 27%;
}


.best-bank-content-title {
    font-weight: bold;
    font-size: 15px;
}

.best-bank-content-license {
    opacity: 0.7;
    padding-left: 7px;
    font-size: 11px;
}

.best-bank-content-dess {
    font-size: 12px;
    font-weight: bold;
    opacity: 0.9;
    text-transform: uppercase;
}

.best-bank-content-start {
    margin-left: 5px;
    margin-right: 5px;
    font-size: 12px;
}

.best-bank-content-start::before {
    content: "";
    display: inline-flex;
    width: 12px;
    height: 12px;
    mask-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAMCAYAAAC0qUeeAAAAt0lEQVQokYXRPWqCURCF4cefUnAHiq2CjYJgE9DC2tRimUWInQgWIZ1LENxCrLUzVVbgBgQhRZqA3HCFj+8HD0wz83LvmTOl99OLHNXwk26Xs5wBtpluAbzGDJ1n8Ajj2F+l4SrmGKKHbmI2xQVfOGMf4D+8oZQxRCNWHR/hux0WeQtFfeMVvw/PG3wWwMHOrSiNwhCScPAWdI1LPdTMg8PVlmihjwmOiUf+owuqoJ068SFWSALcARYAGJzXOLmYAAAAAElFTkSuQmCC);
    -webkit-mask-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAMCAYAAAC0qUeeAAAAt0lEQVQokYXRPWqCURCF4cefUnAHiq2CjYJgE9DC2tRimUWInQgWIZ1LENxCrLUzVVbgBgQhRZqA3HCFj+8HD0wz83LvmTOl99OLHNXwk26Xs5wBtpluAbzGDJ1n8Ajj2F+l4SrmGKKHbmI2xQVfOGMf4D+8oZQxRCNWHR/hux0WeQtFfeMVvw/PG3wWwMHOrSiNwhCScPAWdI1LPdTMg8PVlmihjwmOiUf+owuqoJ068SFWSALcARYAGJzXOLmYAAAAAElFTkSuQmCC);
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    background: #ef9e40;

}

.best-bank-content-reviews {
    font-size: 11px;
}

.best-bank-content-header {
    font-size: 12px;
}

.best-bank-content-value {
    font-size: 16px;
    font-weight: bold;
}

.best-bank-item,
.best-bank-item:hover {
    transition: border 0.3s ease-in-out;
}

.best-bank-item:hover .best-bank-button a,
.best-bank-button a {
    transition: background 0.3s ease-in-out;
}

@media (max-width: 1250px) and (min-width: 769px) {
    .best-bank-content-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .best-bank-content-col.col-2, .best-bank-content-col.col-3, .best-bank-content-col.col-4 {
        justify-content: start;
    }

    .best-bank-content-col.col-2 {
        width: 15%;
    }

    .best-bank-content-col.col-4 {
        width: 40%;
    }

    .best-bank-content-header {
        margin-bottom: 5px;
    }

    .best-bank-button {
        width: 25%;
    }

    .best-bank-button, .best-bank-button a {
        display: block;
    }

    .best-bank-button a {
        padding: 15px 7px;
        height: auto;
        text-align: center;
    }

}

@media (max-width: 768px) {

    .best-banks {
        display: none;
    }

    .houses-box {
        flex-direction: column;
    }

    .houses-item {
        width: 100%;
        margin-bottom: 30px;
    }

    .mortgage .mortgage_row {
        flex-direction: column;
    }

    .mortgage .mortgage_row > .mortgage_col {
        width: 100% !important;
    }

    .mortgage .mortgage_row > .mortgage_col:nth-child(odd) {
        margin-bottom: 30px;
    }

    .button-box {
        margin-left: 10px;
    }

    .how-building .houses-item {
        width: 100%;
    }

    .best-bank-head {
        align-items: center;
    }

    .best-bank-content > div {
        width: 100% !important;
    }

    .best-bank-content, .best-bank-head {
        flex-direction: column;
    }

    .best-bank-content, .best-bank-button {
        width: 100%;
    }

    .best-bank-logo {
        min-width: 100px;
        width: 10%;
    }

    .best-bank-content-col.col-1 {
        align-items: center;
        padding: 10px 0;
    }

    .best-bank-content-col.col-2, .best-bank-content-col.col-3, .best-bank-content-col.col-4 {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
        padding: 3px 0;
    }

    .best-bank-button {
        margin-top: 10px;
    }

    .best-bank-button, .best-bank-button a {
        text-align: center;
    }

    .best-bank-button a {
        padding: 5px 0;
        justify-content: center;
    }

}


/* карточки банков мобильные без кнопки*/
.best-banks-mobile {
    display: none;
}

@media screen and (max-width: 790px) {
    .best-banks-mobile {
        display: block;
    }

}


.bank-name {
    min-width: 90px;
    font-weight: bold;
}

.mortgage-type {
    text-align: right;
    font-size: 10px;
}

.best-banks-logo {
    max-width: 100px;
    display: flex;
    margin: 10px;
    justify-content: center;
}

.best-banks-logo img {
    width: 100%;
    border-radius: 10px;
}

.best-bank-mobile-card {
    background: #F0F3F5;
    box-shadow: 3px 3px 8px 0px rgba(73, 73, 73, 0.116);
    display: flex;
    height: auto;
    flex-direction: column;
    border-radius: 15px;
}

.best-banks-additional-info {
    margin-top: 10px;
    display: flex;
    gap: 5px;
    flex-direction: column;
}

.best-banks-main-part {
    display: flex;
    width: 100%;
}

.best-banks-row {
    display: flex;
    justify-content: space-between;
}

.row-type {
    font-size: 12px;
    opacity: 0.9;
}

.row-value {
    font-weight: bold;
    font-size: 14px;
}

.info {
    width: 100%;
    margin: 10px;
}

.best-banks-tags {
    margin-top: 10px;
    margin-left: 10px;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag-item {
    font-size: 10px;
    padding: 5px;
    background: white;
    border-radius: 5px;
}

.best-banks-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.all-best {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    flex-direction: column;
}

.best-banks-main-part a {
    display: flex;
    align-items: center;
}

.best-banks-top-row a {
    color: #00afff;
}

/* карточки банков с кнопкой оставить заявку*/
@media screen and (max-width: 600px) {

    .cards {
        margin-right: 0;
        margin-left: 0;
        gap: 20px;
        flex-direction: column;
    }
}

@media (max-width: 719px) and (min-width: 600px) {

    .cards {
        display: flex;
        gap: 20px;

    }
}


@media screen and (min-width: 750px) {
}
    .cards {
        justify-content: center;
        display: flex;
        gap: 20px;
}

.bank-card {
    padding: 1em;
    font-family: Arial, sans-serif;
    width: 100%;
    background: #F0F3F5;
    max-height: 300px;
    box-shadow: 3px 3px 8px 0px rgba(73, 73, 73, 0.116);
    border-radius: 15px;
}

.bank-card-logo img {
    width: 100%;
    border-radius: 10px;
}

.bank-card-logo {
    border-radius: 10px;
    width: 15%;
}

.bank-card-top {
    min-height: 66px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.bank-card-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.title-bold {
    font-weight: bold;
}

.title-small {
    font-size: 10px;
}

.bank-card-info {
    gap: 8px;
    display: grid;
    grid-template-columns: 64% 35%;
}

.bank-card-info-cell {
    margin-top: 13px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.cell-text {
    display: flex;
    align-items: center;
    gap: 3px;
    opacity: 0.8;
    font-size: 12px;
}

.cell-text img {
    width: 19px;
    opacity: 0.8;
}

.cell-value {
    font-weight: bold;
    font-size: 14px;
    max-width: 160px
}

.bank-card-button {
    font-size: 14px;
    background-image: -webkit-linear-gradient(90deg, #e1994d 0%, #e6a959 56%, #eab864 100%);
    margin-top: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    font-weight: bold;
    border-radius: 6px;
}

.bank-card-button span {
    padding: 6px;
    color: white;
}

.tooltip {
    margin-top: -20em;
    max-width: 560px;
    border-radius: 10px;
    color: white;
    background: black;
    display: none;
    position: absolute;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

