/*!
Theme Name: calc
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: calc
*/

html,
body {
    min-height: 100%;
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    font-style: normal;
}

.field-label {
    font-weight: 400;
    font-size: 10px;
    line-height: 14px;
    color: #7C7C7C;
}

.site-header {
    height: 55px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.entry-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.entry-title-wrap {
    height: 178px;
    background: #EBEBEB;
    display: flex;
    align-items: center;
    justify-content: center;
}

.entry-title {
    font-weight: 700;
    width: 870px;
    font-size: 24px;
    line-height: 36px;
    text-align: center;
    text-transform: uppercase;
    color: #42A9FB;
}

.entry-text {
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #7C7C7C;
    height: 90px;

}

.calc-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 1280px;
}

.section {
    box-sizing: border-box;
}

.section.params {
    border: 1px solid #42A9FB;
    padding: 27px;
    width: 45%;
}

.section.params h2 {
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    text-align: center;
    color: #42A9FB;
    margin-top: 0;
    height: 50px;
}

.section.params h2.red {
    font-weight: 600;
    color: red;
}

.section.params h2.green {
    font-weight: 600;
    color: #00E2C6;
}


.params-wrap{
    display: flex;
    flex-wrap: wrap;
    margin-top: 14px;
    justify-content: space-between;
}

.params-item{
    width: 46%;
    box-sizing: border-box;
    margin-bottom: 30px;
    position: relative;
}

.params-item__title{
    font-weight: 400;
    font-size: 11px;
    line-height: 15px;
    color: #7C7C7C;
    height: 70px;
}

.params-item__range-slider{
    width: 100%;
}

.params-item__range{
    display: flex;
    justify-content: space-between;
    font-weight: 400;
    font-size: 11px;
    line-height: 15px;
    display: flex;
    align-items: center;
    color: #011629;
    margin-top: 5px;
}

.disabled.params-item::before{
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 100;
    background: #fff;
    opacity: 0.1;
}

.params-item__range-val{
    font-weight: 700;
    font-size: 16px;
    line-height: 22px;
    color: #011629;
    margin-bottom: 5px;
}



.section.results {
    background: linear-gradient(180deg, #00E2C6 0%, #2196F3 100%);
    padding: 40px;
    width: 53%;
}

.section.results h2 {
    font-weight: 700;
    font-size: 20px;
    line-height: 36px;
    text-transform: uppercase;
    color: #FFFFFF;
    margin: 0 0 40px;
}

.results-wrap{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.result-item-wrap{
    width: calc(50% - 3.5px);
    height: 270px;
    background: #FFFFFF;
    border: 1px solid #42A9FB;
    padding: 30px;
    box-sizing: border-box;
    margin-bottom: 7px;
    position: relative;
}

.result-item-wrap:hover{
    cursor: pointer;
}
/*
.result-item-wrap:hover .result-item-desc{
    opacity: 1;
    visibility: visible;
}
*/
.result-item{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}


.result-item h3{
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    color: #011629;
    text-align: center;
    margin-top: 0;
}

.results-note{
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #FFFFFF;
    text-align: center;
    margin-top: 10px;
}

.result-item-desc h3{
    font-weight: 700;
    font-size: 16px;
    line-height: 22px;
    display: flex;
    align-items: center;
    text-align: center;
    color: #FFFFFF;
    margin: 0;
}



.result-item-desc{
    opacity: 0;
    visibility: hidden;
    background: #42A9FB;
    font-size: 10px;
    line-height: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #FFFFFF;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    padding: 5px;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
}

.result-val{
    font-weight: 700;
    font-size: 24px;
    line-height: 33px;
    display: flex;
    justify-content: center;
    color: #011629;
}

.result-val::after{
    font-family: 'Open Sans', sans-serif;
    content: "₽";
    margin-left: 10px;
}

label.for-input {
    width: 70%;
    display: block;
    margin: 15px 0 10px;
    font-weight: bold;
    font-size: 16px;
}

label.for-result {
    margin: 45px 0 10px;
    font-weight: bold;
    font-size: 22px;
    text-transform: uppercase;
}

.measure-result {
    font-size: 32px;
    font-weight: bold;
}

.measure-result::after {
    content: "руб.";
    margin-left: 10px;
}

.site-main {
    margin-bottom: 50px;
}

.step h2 {
    text-align: center;
    margin-bottom: 10px;
}

.steps-wrap {
    position: relative;
    margin-top: 30px;
}

section.step {
    position: absolute;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    align-items: center;
    z-index: 100;
}

section.step.show {
    opacity: 1;
    visibility: visible;
}

.step-control-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    top: 500px;
    position: absolute;
    width: 100%;
}

.step-control-wrap button {
    margin: 0 10px;
    border: 2px solid #FFF;
    padding: 5px 15px;
    display: flex;
    border-radius: 40px;
    line-height: 30px;
    color: #fff;
    font-size: 1em;
    align-items: center;
    background: -moz-linear-gradient(top, rgba(67, 192, 176, 0.7) 0%, rgba(33, 150, 243, 0.7) 100%);
    background: -webkit-linear-gradient(top, rgba(67, 192, 176, 0.7) 0%, rgba(33, 150, 243, 0.7) 100%);
    background: linear-gradient(to bottom, rgba(67, 192, 176, 0.7) 0%, rgba(33, 150, 243, 0.7) 100%);
}

.step-control-wrap button:hover {
    cursor: pointer;
}

.hidden {
    display: none;
}

.disabled {
    filter: grayscale(1);
    opacity: 0.3;
}

input[type=text] {
    width: 100%;
    margin: 0;
    background-color: #fff;
    border: 0;
}

input:focus-visible {
    outline: 2px solid #e5e4e4;
}

.support-measures {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
}

.support-measures .measure-wrap {
    display: flex;
    width: 50%;
}

.support-measures h3 {
    color: #fff;
    display: flex;
    padding: 20px;
    margin: 20px;
    height: 100px;
    border: 2px solid #fff;
    border-radius: 20px;
    box-shadow: 0 15px 30px -10px rgb(0 0 0 / 10%);
    background: -moz-linear-gradient(top, rgba(67, 192, 176, 0.7) 0%, rgba(33, 150, 243, 0.7) 100%);
    background: -webkit-linear-gradient(top, rgba(67, 192, 176, 0.7) 0%, rgba(33, 150, 243, 0.7) 100%);
    background: linear-gradient(to bottom, rgba(67, 192, 176, 0.7) 0%, rgba(33, 150, 243, 0.7) 100%);
}

.support-measures h3:hover {
    cursor: pointer;
    background: -moz-linear-gradient(top, rgba(67, 192, 176, 0.7) 0%, rgba(33 150 243) 100%);
    background: -webkit-linear-gradient(top, rgba(67, 192, 176, 0.7) 0%, rgba(33 150 243) 100%);
    background: linear-gradient(to bottom, rgba(67, 192, 176, 0.7) 0%, rgba(33 150 243) 100%);
}

.select-box {
    position: relative;
    display: block;
    width: 100%;
    margin: 0 auto;
    font-size: 18px;
    color: #60666d;
    width: 100%;
    background: #42A9FB;
    z-index: 100000;
}

.select-box__current {
    position: relative;
    cursor: pointer;
    outline: none;
    background: #42A9FB;
    height: 100px;
}

.select-box__list li{
    background: #fff;
    font-family: 'Open Sans', sans-serif;
}

.select-box__current:focus+.select-box__list {
    opacity: 1;
    -webkit-animation-name: none;
    animation-name: none;
}

.select-box__current:focus+.select-box__list .select-box__option {
    cursor: pointer;
}

.select-box__current:focus .select-box__icon {
    transform: translateY(-50%) rotate(180deg);
}

.select-box__icon {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    transition: 0.2s ease;
}

.select-box__value {
    display: flex;
}

.select-box__input {
    display: none;
}

.select-box__input:checked+.select-box__input-text {
    display: block;
}

.select-box__input-text {
    display: none;
    width: 100%;
    margin: 0;
    padding: 20px;
    background: #42A9FB;
    font-weight: 400;
    font-size: 14px;
    line-height: 19px;
    align-items: center;
    text-align: center;

    color: #FFFFFF;
}

.select-box__list {
    position: absolute;
    width: 100%;
    padding: 0;
    list-style: none;
    opacity: 0;
    -webkit-animation-name: HideList;
    animation-name: HideList;
    -webkit-animation-duration: 0.5s;
    animation-duration: 0.5s;
    -webkit-animation-delay: 0.5s;
    animation-delay: 0.5s;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
    -webkit-animation-timing-function: step-start;
    animation-timing-function: step-start;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.1);
    height: 300px;
    overflow-y: scroll;
    background-color: #fff;
    font-family: 'Open Sans', sans-serif;
}

.select-box__option {
    display: block;
    padding: 10px 15px;
    background-color: #fff;
    line-height: 1.2;
    font-family: 'Open Sans', sans-serif;
    text-align: center;
    font-size: 16px;
}

.select-box__option:hover, .select-box__option:focus {
    color: #fff;
    background: -moz-linear-gradient(top, rgba(67, 192, 176, 0.7) 0%, rgba(33, 150, 243, 0.7) 100%);
    background: -webkit-linear-gradient(top, rgba(67, 192, 176, 0.7) 0%, rgba(33, 150, 243, 0.7) 100%);
    background: linear-gradient(to bottom, rgba(67, 192, 176, 0.7) 0%, rgba(33, 150, 243, 0.7) 100%);
}

@-webkit-keyframes HideList {
    from {
        transform: scaleY(1);
    }

    to {
        transform: scaleY(0);
    }
}

@keyframes HideList {
    from {
        transform: scaleY(1);
    }

    to {
        transform: scaleY(0);
    }
}


.site-footer {
    color: #cf3152;
    font-weight: bold;
    text-align: center;
}


@media (max-width: 1360px) {
    .calc-wrap{
        width: 100%;
        padding: 0 16px;
        box-sizing: border-box;
    }
    .entry-title, .entry-text{
        padding: 0 16px;
    }
}

@media (max-width: 1200px) {
    .calc-wrap{
        align-items: center;
        justify-content: center;
    }
    .section.params, .section.results{
        width: 70%;
    }
}

@media (max-width: 1024px) {
    .section.params, .section.results{
        width: 80%;
    }
}

@media (max-width: 756px) {
    .section.params, .section.results{
        width: 100%;
    }
    .entry-title {
        width: auto;
        font-size: 18px;
        line-height: 24px;
    }

    .entry-title-wrap {
        height: 130px;
    }
    .entry-text {
        font-size: 14px;
    }
}
@media (max-width: 576px) {
    .entry-title {
        font-size: 14px;
        line-height: 18px;
    }
    .entry-text {
        font-size: 12px;
        line-height: 16px;
    }
    .section.params h2{
        font-size: 12px;
    }
    .entry-title-wrap {
        height: 100px;
    }
    .params-item__title {
        font-size: 9px;
        line-height: 9px;
    }
    .section.results {
        padding: 10px;
    }
    .result-item h3 {
        font-size: 13px;
        line-height: 14px;
    }
    .result-item-wrap {
        height: 170px;
        padding: 10px;
    }
    .section.results h2 {
        font-size: 16px;
        line-height: 20px;
        margin: 0 0 10px;
    }
}