.calculator {
    display: flex;
    align-items: center;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
    max-width: 1224px;
    box-sizing: border-box;
}

.calc-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    align-items: center;
    margin: 0 auto;
    padding: 0;
}

.money_wrapper {
    width: 100%;
    display: block;
    justify-content: space-between;
}

.calc-wrapper__box {
    padding: 0 13px 24px;
    width: 100%;
    padding-top: 48px;
}

.row-income {
    max-width: 210px;
}

.calc-wrapper__row {
    display: block;
    justify-content: space-between;
    overflow: visible;
    padding-bottom: 40px;
}


.calc-label {
    font-weight: 300;
    font-size: 32px;
    line-height: 39px;
    padding-bottom: 16px;
    overflow: visible;
    border: none;
    border-bottom: 1px solid silver;
}

.label-rate {
    box-sizing: content-box;
    min-width: auto;
    width: 100%
    opacity: 0.64;
}

.label-period {
    width: 100%;
}

.label-sum {
    width: 100% !important;
    position: relative;
}

.calc-label__block{
    padding: 16px 0;
}

.calc-small-text {
    font-style: normal;
    font-weight: normal;
    font-size: 12px;
    line-height: 20px;
    padding-bottom: 4px;
    font-weight: 500;
}

.calc-input.calc-sum{
    margin-bottom: 14px;
}

range-slider{
    position: absolute;
}

.lc-description__field {
    font-size: 16px;
    line-height: 150%;
    color: #302E2C;
    padding-top: 24px;
    display: none;
}
.lc-description__field_active {
    display: block;
}

.calc-small-text_black {
    color: #302E2C;
}

.calc-small-text:last-child {
    margin-bottom: 0;
}

.calc-cash {
    font-weight: 300;
    font-size: 42px;
    line-height: 78px;
}
.calc-result .calc-small-text {
    margin: 0;
}
.calc-text_green {
    color: #24AB52;
}
.calc-persents {
    font-weight: 300;
    font-size: 32px;
    line-height: 39px;
}

.calculator input, 
.calculator select {
    font-weight: 300;
    font-size: 32px;
    line-height: 39px;
    outline: none;
    border: none;
}

.calculator input {
    background-color: transparent;
}


.select-wrapper{
    position: relative;
    display: inline;
    width: auto;
}

.calculator select{
    padding-right: 16px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border-radius: 0;
    cursor: pointer;
}
.calculator .select-wrapper::after{
    content: " ";
    display: block;
    position: absolute;
    top: 50%;
    right: 0;
    width: 10px;
    height: 10px;
    background: url("../img/arrowcalc.png") no-repeat;
    pointer-events: none;

}

.calculator input[type=text]:focus {
    background: rgba(0, 0, 1, 0.01);
}


.calc-callback {
    display: flex;
    flex-direction: column-reverse;
}

.btn {
    margin: 15px auto 25px auto;
    height: 60px;
    width: 256px;
    background: #40BF6C;
    border-radius: 4px;
    color: white;
    border: none;
    transition: .1s ease;
    cursor: pointer;
}

.btn:hover {
    background: #24AB52;
}

.btn:active {
    background: rgba(48, 46, 44, 0.8);
}

.calculator .phone{
    text-align: left;
}

.lc-link__description,
.lc-link__question-mark {
    border-bottom: 1px dashed rgba(48, 46, 44, 0.24);
    padding-bottom: 4px;
    transition: 300ms ease;
    position: relative;
}

.lc-link__description {
    padding-right: 13px;
    display: flex;
    align-items: center;
}

.lc-link__question-mark {
    padding-right: 20px;
}
.lc-link__description::after,
.lc-link__question-mark::after {
    background-position: center right;
    background-repeat: no-repeat;
    content: '';
    position: absolute;
    right: 0;
    transform-origin: center;
}
.lc-link__description::after {
    background-image: url('../img/arrow-down-black.svg');
    width: 7px;
    height: 4px;
    top: 8px;
    position: static;
    margin-left: 5px;
}
.lc-link__question-mark::after {
    background-image: url('../img/question-mark.svg'); 
    top: auto;
    bottom: 6px;
    width: 14px;
    height: 14px;
    transition: 300ms ease;
}

.lc-link__description:hover,
.lc-link__question-mark:hover {
    border-color: rgba(48, 46, 44, 1);
}

.lc-link__question-mark:hover::after{
    background-image: url('../img/question-mark_hover.svg');
}

.lc-link_active{
    border-color: rgba(48, 46, 44, 1);
}

.lc-link__description.lc-link_active::after{
    transform: rotate(180deg);
}

.lc-link__question__description{
    padding: 8px 16px;
    position: absolute;
    background-color: #302E2C;
    border-radius: 4px;
    font-size: 11px;
    line-height: 16px;
    color: #FFFFFF;
    pointer-events: none;
    opacity: 0;
    width: 277px;
    transform: translate(0px, -90px);
    transition: 300ms ease;
}
.lc-link__question__description::after{
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: #302E2C;
    border-radius: 3px;
    top: calc(99% - 9px);
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    z-index: -1;
}
.calc-small-text.lc-link__question-trigger:hover ~ .lc-link__question__description{
    opacity: 1;
    transform: translate(0px, -100px);
} 
.calc-wrapper__row__text{
    max-width: 308px;
    font-size: 16px;
    line-height: 150%;
    color: #302E2C;
    padding: 34px 0 20px;
}

@media screen and (min-width: 400px){
    .lc-link__question__description{
        transform: translate(72px, -74px);
    }
    .calc-small-text.lc-link__question-trigger:hover ~ .lc-link__question__description{
        opacity: 1;
        transform: translate(72px, -80px);
    } 
}


@media screen and (min-width: 800px) {
    .lc-link__description {
        display: inline-block;
    }

    .calc-wrapper {
        padding: 0 100px;
    }
    
    .calc-wrapper__row{
        max-width: 462px;
        display: flex;
    }
    .label-rate {
        width: 66px;
    }
    .label-period {
        width: 76%;
    }
    .calc-small-text{
        font-size: 16px;
    }

    .lc-link__description::after {
        position: absolute;
        margin-left: 0;
    }
}

@media screen and (min-width: 1230px) {
    .money_wrapper {
        display: flex;
        justify-content: space-between;
    }


    .btn {
        margin: 0;
    }

    .calc-wrapper__box {
        width: 42%;
        padding: 0;
        min-width: 411px;
    }
    .calc-wrapper__box:first-child {
        width: 55%;
        padding: 0 13px;
        /*padding-right: 40px;*/
    }

    .calc-callback {
        margin-top: 45px;
    }

    .calc-wrapper__row:last-child {
        margin: 0;
    }

    .calc-callback {
        flex-direction: row;
        align-items: center;
        width: 100%;
        justify-content: flex-end;
    }
    .calc-cash {
        font-size: 64px;
        padding-top: 4px;
    }
}


.thumb {
    background: #40BF6C;
    border: 4px solid white;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    box-shadow: 0 0 10px -2px black;
}

range-slider::before {
    height: 4px;
    background: linear-gradient(#40BF6C, #40BF6C) 0/var(--value-percent, 0) 100% no-repeat rgba(48, 46, 44, 0.15);
}

range-slider:focus .thumb {
    box-shadow: 0 0 10px -2px black;
}

range-slider.touch-active .thumb-wrapper .thumb {
    transform: scale(1);
    box-shadow: 0 0 10px -2px black;
}

@media screen and (min-width: 800px){
    .main__article.calculator {
        margin: 0 auto;
        padding: 120px 0;
    }
}
@media screen and (max-width: 600px){
    .calculator .phone{
        text-align: center;
    }

}

.label-sum span{
    visibility: hidden;
}

.label-sum .incorrect{
    visibility: visible;
    padding-left: 15px;
    color: red;
}



