/*Блок Калькулятор
------------------------------------------------*/
.calculator {
    height: 100%;
    padding: 80px 0;
    @media (width <= 768px) {
        padding: 40px 0;
    }
}

.calculator h3 {
    text-align: center;
}

.calculator-flip {
    position: relative;
    height: 250px;
}

.calc-holder {
    padding: 20px 100px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    border: 2px solid #ccc;
    border-radius: 10px;
    background: #fff;
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    @media (width <= 768px) {
        padding: 20px;
    }
}

.calc-switch {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.calc-switch div {
    width: 150px;
    line-height: 40px;
    text-align: center;
    background: #13678A;
    color: #fff;
    margin: 5px;
    cursor: pointer;
}

.calc-switch div.active {
    background: #518da6;
}

.calc-holder .input-holder {
    margin: 15px 0;
}

.calc-holder label {
    width: 218px;
    display: block;
    float: left;
}

.calc-holder input[type="text"],
.calc-holder select {
    padding: 8px 5px;
    border: 1px solid #ccc;
    width: 210px;
    box-sizing: border-box;
    border-radius: 4px;
    @media (width <= 768px) {
        width: 100%;
    }
}

.jq-selectbox {
    width: 210px;
    @media (width <= 768px) {
        width: 100%;
    }
}

.jq-selectbox__select,
.jq-selectbox__select:hover {
    box-shadow: none;
    background: none;
    border: 1px solid #ccc;
}

.jq-selectbox__trigger {
    border-left: none;
}
.check-holder {
    margin: 15px 0 0 0;
}

.check-holder label {
    width: 250px;
    float: none;
    display: inline-block;
}

.go-calc-holder {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    margin: 40px 0 60px;
    border-radius: 10px;
}

.go-calc,
.send-manager {
    width: 300px;
    height: 55px;
    line-height: 55px;
    font-size: 16px;
    text-align: center;
    color: #fff;
    background: var(--secondary-color);
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
    transition: all .5s;
    .re-calc {
        display: none;
    }
}

.go-calc:hover {
    background: var(--primary-color);
}

.send-manager {
    display: none;
}

.result-is .send-manager{
    display: block;
    background: var(--green-color);
}

.result-is .go-calc {
    .re-calc {
        display: block;
    }
    .to-calc {
        display: none;
    }
}


.calc-result__holder {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 60px 100px;
    border: 2px solid #ccc;
    border-radius: 10px;
    column-gap: 20px;
    background: #fff;
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transform: rotateY(180deg);
    @media (width <= 768px) {
        padding: 60px 30px;
        flex-direction: column;
        justify-content: flex-start;
        gap: 0 20px;
    }
}

.calc-result__table {
    border-collapse: collapse;
    width: 100%;
}

.calc-result__table td {
    padding: 5px 12px;
    border: 1px solid #ccc;
    white-space: nowrap;
    @media (width <= 768px) {
        white-space: normal;
        padding: 15px 12px;
    }
}

.calc-result__table td:last-child {
    white-space: nowrap;
    @media (width <= 768px) {
        width: 80px;
    }
}

.calc-result__table .calc-result {
    font-size: 16px;
    font-weight: 700;
    border: none;
    padding: 10px 12px 0 12px;
    text-align: right;
}

@media (width <= 768px) {
    .calc-result__table.table-left tr:last-child td {border-bottom: 1px solid transparent;}
}

.flip-container {
    perspective: 1000px;
    width: 100%;
    height: 250px;
    @media (width <= 768px) {
        height: 580px;
    }
}

.flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flipped {
    transform: rotateY(180deg);
}