.calc {
    background: #FAFAFA;
    padding: 30px;
    margin: 50px auto;
    box-shadow: 1px 1px 25px rgba(0, 0, 0, 0.35);
    border-radius: 10px;
    border: 6px solid #305A72;
    display: flex;
}

.calc__left {
    width: 50%;
}

.calc__right {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calc__head {
    text-align: center;
    color: #2980b9;
}

.calc__fieldset {
    /*padding-bottom: 10px;*/
}

.calc__money {
    display: flex;
}

.calc__number {
    padding: 5px;
    text-align: center;
    border-radius: 5px;
    border-top: 1px solid #bfbfbf;
    border-left: none;
    width: 70px;
    margin-bottom: 10px;
    margin-right: 5px;
}

input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button {
    opacity: 1
}

.calc__rub {
    padding-right: 10px;
    padding-left: 10px;
}

.calc__total {
    width: 95%;
    font-weight: 800;
    font-size: 20px;
}

.calc__money {
    background-color: #2980b9;
    color: white;
    padding: 5px;
}

.calc__intotal {
    padding: 5px 5px 5px 10px;
}

.calc__pre {
    vertical-align: super;
    font-size: 12px;
}

.calc__picture {
    height: 375px;
    /*width: 100%;*/
    margin: 0;
}

.calc__img {
    /*width: 100%;*/
    height: 100%;
    object-fit: cover;
}

.radio {
    margin: 0.5rem 0.5rem 0.5rem 0;
}

.radio input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio input[type="radio"] + .radio-label:before {
    content: '';
    background: #f4f4f4;
    border-radius: 100%;
    border: 1px solid #b4b4b4;
    display: inline-block;
    width: 1em;
    height: 1em;
    position: relative;
    top: 0.3em;
    margin-right: 0.5em;
    vertical-align: top;
    cursor: pointer;
    text-align: center;
    -webkit-transition: all 250ms ease;
    transition: all 250ms ease;
}

.radio input[type="radio"]:checked + .radio-label:before {
    background-color: #3197EE;
    box-shadow: inset 0 0 0 4px #f4f4f4;
}

.radio input[type="radio"]:focus + .radio-label:before {
    outline: none;
    border-color: #3197EE;
}

.radio input[type="radio"]:disabled + .radio-label:before {
    box-shadow: inset 0 0 0 4px #f4f4f4;
    border-color: #b4b4b4;
    background: #b4b4b4;
}

.radio input[type="radio"] + .radio-label:empty:before {
    margin-right: 0;
}

.calc__texture {
    display: flex;
}

.custom-radios {
    padding-bottom: 10px;
}

.custom-radios div {
    display: inline-block;
    padding-bottom: 10px;
}

.custom-radios input[type="radio"] {
    display: none;
}

.custom-radios input[type="radio"] + label {
    color: #333;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.custom-radios input[type="radio"] + label span {
    display: inline-block;
    width: 40px;
    height: 40px;
    margin: -1px 4px 0 0;
    vertical-align: middle;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.33);
    background-repeat: no-repeat;
    background-position: center;
    text-align: center;
    line-height: 44px;
}

.custom-radios input[type="radio"] + label span img {
    opacity: 0;
    transition: all .3s ease;
}

.custom-radios input[type="radio"]#color-1 + label span {
    background-color: white;
}

.custom-radios input[type="radio"]#color-2 + label span {
    background-color: red;
}

.custom-radios input[type="radio"]#color-3 + label span {
    background-color: orange;
}

.custom-radios input[type="radio"]#color-4 + label span {
    background-color: yellow;
}

.custom-radios input[type="radio"]#color-5 + label span {
    background-color: green;
}

.custom-radios input[type="radio"]#color-6 + label span {
    background-color: blue;
}

.custom-radios input[type="radio"]#color-7 + label span {
    background-color: purple;
}

.custom-radios input[type="radio"]#color-8 + label span {
    background-color: black;
}

.custom-radios input[type="radio"]:checked + label span img {
    opacity: 1;
}

.calc__title {
    padding-right: 10px;
    padding-top: 4px;
}

.calc__block {
    display: flex;
}

@media only screen and (min-device-width: 768px) and (max-width: 1199px) {
    .calc {
        flex-direction: column;
        width: 100%;
        padding: 15px;
        margin: 20px auto;
    }

    .calc__left, .calc__right {
        width: 100%;
    }

    .calc__picture {
        height: 100%;
    }

    .calc__right {
        padding-top: 20px;
        order: -1;
    }

    .calc__texture {
        flex-direction: row;
    }

    .radio {
        margin: 0;
        padding-right: 10px;
    }

    .calc__block {
        flex-direction: column;
    }

    .custom-radios {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: wrap;
        align-content: center;
    }

    .custom-radios div {
        padding-bottom: 10px;
    }

    .calc__title {
        padding-bottom: 10px;
    }

    .calc__label {
        font-size: 18px;
    }

    .calc__total {
        width: 100%;
    }
}

@media only screen and (max-width: 767px) {
    .calc {
        flex-direction: column;
        width: 100%;
        padding: 15px;
        margin: 20px auto;
    }

    .calc__left, .calc__right {
        width: 100%;
    }

    .calc__picture {
        height: 100%;
    }

    .calc__right {
        padding-top: 20px;
        order: -1;
    }

    .calc__texture {
        flex-direction: column;
    }

    .radio {
        margin: 0;
    }

    .calc__block {
        flex-direction: column;
    }

    .custom-radios {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        align-content: center;
    }

    .custom-radios div {
        padding-bottom: 10px;
        width: 25%;
    }

    .calc__title {
        padding-bottom: 10px;
    }

    .calc__label {
        font-size: 3.6vw;
    }

    .calc__total {
        width: 100%;
    }

}