.idrcalc,
.idrcalc *,
.idrcalc :before,
.idrcalc :after {
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
}
.idrcalc *:focus {
    outline: none;
}

.idrcalc {
    margin: 0 0 20px;
}

.idrcalc_headline {
    margin: 0 0 20px;
    font-size: 18px;
    line-height: 26px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    color: #34495e;
}

.idrcalc_form {
    margin: 0 auto;
    width: 100%;
    max-width: 600px;
    font-size: 17px;
    color: #283644;
}

.idrcalc_data {
    margin: 0 40px 0 0;
    width: 100%;
    max-width: 250px;
}
.idrcalc_result {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
        -ms-flex-pack: center;
            justify-content: center;
    width: 100%;
    max-width: 250px;
    border: 2px solid #34495e;
}
.idrcalc_output {
    display: none;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
        -ms-flex-align: center;
            align-items: center;
    height: 25%;
}
.idrcalc_output.idrcalc_show {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
}
.idrcalc_output1 {
    font-size: 30px;
    text-align: center;
    background: #34495e;
    color: #fff;
}
.idrcalc_output2 {
    font-size: 14px;
    text-align: center;
    color: #000;
}
.idrcalc_output3 {
    font-size: 30px;
    text-align: center;
    background: #34495e;
    color: #fff;
}
.idrcalc_output4 {
    font-size: 14px;
    text-align: center;
    color: #000;
}

.idrcalc_form {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
}

.idrcalc_input {
    position: relative;
    margin: 0 0 20px;
}
.idrcalc_input:last-child {
    margin-bottom: 0;
}
.idrcalc_postfix {
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 0 10px;
    height: 35px;
    border: 1px solid #9a9a9a;
    border-left: none;
    font-size: 14px;
    line-height: 35px;
    background: #f7f7f7;
}
.idrcalc_input label {
    display: block;
    margin: 0 0 5px;
    color: #000;
}
.idrcalc_input input {
    display: block;
    padding: 0 10px;
    width: 100%;
    height: 35px;
    border: 1px solid #9a9a9a;
    line-height: 35px;
    background: #f7f7f7;
}

.idrcalc_switch {
    margin: 0 0 20px;
    cursor: pointer;
}
.idrcalc_switch label {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
        -ms-flex-pack: justify;
            justify-content: space-between;
    color: #000;
    cursor: pointer;
}
.idrcalc_switch input {
    opacity: 0;
    cursor: pointer;
}
.idrcalc_switchmark {
    width: 80px;
    height: 20px;
    border: 1px solid rgba(0,0,0,.3);
    border-radius: 50px;
    background: #fff;
    background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0,0,0,.2)), to(transparent)), -webkit-gradient(linear, left top, right top, color-stop(50%, #3A4267), color-stop(50%, transparent));
    background-image: -webkit-linear-gradient(rgba(0,0,0,.2), transparent), -webkit-linear-gradient(left, #3A4267 50%, transparent 50%);
    background-image: -o-linear-gradient(rgba(0,0,0,.2), transparent), -o-linear-gradient(left, #3A4267 50%, transparent 50%);
    background-image: linear-gradient(rgba(0,0,0,.2), transparent), linear-gradient(90deg, #3A4267 50%, transparent 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    background-origin: border-box;
    background-clip: border-box;
    overflow: hidden;
    -webkit-transition-duration: .4s;
         -o-transition-duration: .4s;
            transition-duration: .4s;
    -webkit-transition-property: padding, width, background-position, text-indent;
    -o-transition-property: padding, width, background-position, text-indent;
    transition-property: padding, width, background-position, text-indent;
}
.idrcalc_switch input:checked + .idrcalc_switchmark {
    padding-left: 60px;
    background-position: 0 0;
}
.idrcalc_switchmark:before {
    content: "Часы";
    float: left;
    margin: -1px;
    width: 18px;
    height: 18px;
    color: #fff;
    text-indent: -55px;
    -webkit-box-sizing: initial;
            box-sizing: initial;
    border: 1px solid rgba(0, 0, 0, 0.35);
    -webkit-border-image: initial;
         -o-border-image: initial;
            border-image: initial;
    border-radius: inherit;
    background: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.2)), to(transparent)) white;
    background: -webkit-linear-gradient(rgba(0, 0, 0, 0.2), transparent) white;
    background: -o-linear-gradient(rgba(0, 0, 0, 0.2), transparent) white;
    background: linear-gradient(rgba(0, 0, 0, 0.2), transparent) white;
    font: bold 60%/1.9 sans-serif;
    text-transform: uppercase;
}
.idrcalc_switchmark:after {
    content: "Минуты";
    font: bold 60%/1.9 sans-serif;
    text-transform: uppercase;
    float: left;
    text-indent: 1em;
    color: rgba(0, 0, 0, 0.45);
}
.idrcalc button[type="reset"] {
    display: block;
    margin: 0 auto;
    padding: 5px 10px;
    height: 35px;
    border: none;
    text-transform: uppercase;
    background: #78BBE6;
    color: #fff;
    cursor: pointer;
}
.idrcalc button[type="reset"]:hover {
    background: #283644;
}

@media (max-width: 600px) {
    .idrcalc_form {
        flex-direction: column;
    }
    .idrcalc_data {
        margin: 0 auto 40px;
        width: 100%;
    }
    .idrcalc_result {
        margin: 0 auto;
        width: 100%;
        height: 180px;
    }
}
