.input,
.ft_string input,
textarea,
select,
.field .chosen-container-single .chosen-single,
.field .chosen-container-active.chosen-with-drop .chosen-single {
    display: block;
    line-height: 1;
    height: auto;
    box-shadow: none;
    border: 1px solid var(--color-gray);
    border-radius: 2px;
    background: var(--color-bg-gray);
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: bold;
}

textarea {
    font-weight: normal;
}

.field .chosen-container .chosen-drop {
    border: 1px solid var(--color-brand);
    border-top: none;
    background: var(--color-bg-gray);
}

.field .chosen-container .chosen-results li.highlighted {
    background: var(--color-brand);
}

.field .chosen-container-single .chosen-single div b {
    display: block;
    width: 0;
    height: 0;
    border: 5px solid transparent;
    border-top: 5px solid currentColor;
    position: absolute;
    top: 5px;
    bottom: 0;
    right: 0.5rem;
    margin: auto;
    transition: transform .25s ease;
    transform-origin: 50% 20%;
}

.field .chosen-with-drop .chosen-single div b {
    transform: rotate(180deg);
}

.error_text {
    display:inline-block;
    position:absolute;
    top:100%; left:0;
    font-size:.75rem;
    color: var(--color-danger)
}

.field_error {
    position: relative;
    top: 0;
    right: 0;
}

.field_error .form-control {
    border: 1px solid var(--color-danger-50);
}
.form-inline-sm .error_text {
    left:1rem;
}


.field .hint {
    margin: 0;
    opacity: .75;
    font-size: .875rem;
}

legend {
    margin: 1rem 0;
    font-weight: bold;
}
.ft_htmlhint label{display:none;}
.field-select:focus,
.field-input:focus,
.field input[type=text]:focus,
input[type=password]:focus,
.field .chosen-container-active.chosen-with-drop .chosen-single {
    border: 1px solid var(--color-brand);
}

.field-label {
    display: block;
    margin-bottom: 8px;
}

.textarea {
    height: 300px;
    resize: none;
}

.form-agreement {
    font-size: .875rem;
    text-align: center;
    margin: 0 0 1rem;
}

.callback-form .form-agreement {
    max-width: 38rem;
    margin: 1rem auto;
}

.form-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.form-tabs .field {
    margin-bottom: 2rem;
}

.form-success {
    font-size: 1.6rem;
    animation: .2s scale ease;
    font-weight: bold;
    text-align: center;
    color: var(--color-brand)
}

.message-field textarea {
    resize: none;
}

.field-file input[type="file"] {
    display: none;
}

.field .file-upload {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.file-upload .field-label {
    width: 200px;
    padding: 10px;
    vertical-align: middle;
}

.file-upload .field-label .icon {
    position: relative;
    top: 10px;
}

.file-title {
    max-width: 100px;
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 10px;
    display: block;
}

.file-ext {
    width: 24px;
    height: 24px;
    top: 7px;
    margin-right: 10px;
    background: url(../img/file.svg) no-repeat 50% 50%;
    position: relative;
    float: left;
}

.file-ext i {
    position: absolute;
    top: 50%;
    left: 2px;
    margin-top: -2px;
    background: var(--color-bg);
    color: var(--color-bg-accent);
    border-radius: 1px;
    font-size: 6px;
    font-style: normal;
    font-weight: 500;
    line-height: 1;
    padding: 0;
    text-transform: uppercase;
}

.ft_date {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.ft_date .date-input {
    width: 140px!important;
    margin-right: 10px;
}

.ft_date select {
    width: 90px;
    margin-right: 10px;
}

.ft_date .hint,
.ft_date label {
    display: block;
    width: 100%;
    flex-basis: 100%;
}

.ft_number {
    position: relative;
}

.input-number-units {
    font-weight: bold;
    padding: .8rem 1rem;
    position: absolute;
    bottom: 0;
    right: 0;
}

.ft_hidden {
    margin: 0;
    display: none;
}

.form-inline-sm .field,
.form-inline-sm .btn-primary {
    display: block;
    width: 100%;
}

.form-inline-sm .field {
    padding: 0 1rem;
}
.callback-form {
    max-width: 60rem;
    margin: auto;
}

.callback-form__desc {
    max-width: 35rem;
    text-align: center;
    margin: -1rem auto 1rem;
}

.callback-form form {
    display: block;
    max-width: 30rem;
    margin: auto;
}

.form-view .button-submit {
    min-width: 18rem;
    display: block;
    margin: 1rem auto;
}

.input-group {
    position: relative;
    background: var(--color-bg-gray);
}

.input-short {
    width: auto;
}

.slider-range__field,
.slider-range__translate {
    display: flex;
    vertical-align: middle;
    font-weight: bold;
    font-size: 1.5rem;
}

.slider-range-hint {
    justify-content: space-between;
    display: flex;
    align-items: center;
}

.slider-range__amount {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: .25rem 0;
    padding-right: 1rem;
    line-height: 1;
}

.slider-range__input {
    font-size: inherit;
    width: auto;
    display: none;
    padding: .25rem 0;
    line-height: 1;
    background: transparent!important;
}

.slider-range__input:focus {
    outline: none!important;
    box-shadow: none!important;
    border: none!important;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Для Firefox */
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.calc-total {
    background: var(--color-bg-gray);
    padding: 1rem;
    position: fixed;
    bottom: 0;
    z-index: 99;
    left: 0;
    right: 0;
}

.calc-total__title {
    font-size: 2rem;
    line-height: 1.2;
    margin: 0;
}

.calc-total__result,
.calc-total__title,
.show-quiz--button {
    display: none;
}

.calc-form {
    counter-reset: count;
}

.calc-form .tab {
    counter-increment: count;
}

.calc-form .form-check {
    display: flex;
}

.calc-form fieldset {
    border-bottom: 2px solid var(--color-gray-opacity);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.calc-hint {
    font-size: 12px;
    line-height: 1.2;
    margin-top: 1rem;
}

.calc-total__footer {
    align-items: end;
}

.calc-total__footer .btn {
    padding: 1rem;
}

label {
    display: block;
    margin-bottom: .5rem;
    line-height:1;
}

#fset_0 {
    display: flex;
    flex-wrap: wrap;
}

#fset_0 .field {
    width: 100%;
}

#fset_0 .ft_number {
    width: 48%;
}

#f_length {
    margin-left: auto;
}

fieldset legend {
    font-size: 1.375rem;
    line-height: 1;
    position: relative;
}

.ft_projects {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.ft_projects label {
    flex-basis: 100%;
}

.ft_projects .hint {
    font-size: 1.25rem;
    opacity: 1;
    margin: 1rem 0;
    line-height: 1;
    font-weight: bold;
    order: -1;
    padding-right: 1rem;
}

fieldset legend::before {
    left: -2rem;
    content: counter(count, decimal-leading-zero);
    margin-right: .5rem;
    color: var(--color-brand);
    opacity: 0.75;
}

#f_foundation>label,
#f_options>label {
    display: none;
}

.form-check-input,
.custom-control-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    flex-shrink: 0;
    border-radius: 0;
    border: 0;
    outline: 0;
    width: 1.5rem;
    height: 1.5rem;
    margin-right: .75rem;
    background: no-repeat 50%;
    pointer-events: none;
}

.custom-control {
    position: relative;
    display: inline-block;
}

.custom-control-input {
   /*  opacity: 0;
    position: absolute; */
}

.custom-control-label {
    display: inline-block;
    border: 1px solid var(--color-gray);
    padding: .5rem 1.25rem;
    margin-bottom: .5rem;
    margin-right: .35rem;
    min-width: 7rem;
    text-align: center;
    cursor: pointer;
}

.custom-control-input:checked+.custom-control-label {
    background: var(--color-bg-accent);
    border: 1px solid var(--color-bg-accent);
}

.form-check,
.ft_checkbox label {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
}

.form-check-inline {
    display: inline-flex;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.form-check-input:not(:checked) {
    border: 1px solid var(--color-gray);
}

.form-check-input:checked {
    background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC4zMTQ1IDUuNzA3MTFDMTQuNzA1MSA1LjMxNjU4IDE0LjcwNTEgNC42ODM0MiAxNC4zMTQ1IDQuMjkyODlDMTMuOTI0IDMuOTAyMzcgMTMuMjkwOCAzLjkwMjM3IDEyLjkwMDMgNC4yOTI4OUw3LjI0MzA0IDkuOTUwMTdMMy43MDcxMSA2LjQxNDIzQzMuMzE2NTggNi4wMjM3MSAyLjY4MzQyIDYuMDIzNzEgMi4yOTI4OSA2LjQxNDIzQzEuOTAyMzcgNi44MDQ3NiAxLjkwMjM3IDcuNDM3OTIgMi4yOTI4OSA3LjgyODQ0TDYuNTM1NTMgMTIuMDcxMUM2LjU0Mzc2IDEyLjA3OTMgNi41NTIxIDEyLjA4NzQgNi41NjA1NCAxMi4wOTUzTDcuMjQzNDYgMTIuNzc4MkwxNC4zMTQ1IDUuNzA3MTFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K);
    background-color: var(--color-brand);
}

.dialog-right {
    position: fixed;
    height: 100%;
    max-height: 100%;
    margin: 0;
    margin-left: auto;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 9999;
    padding: 1rem;
    background: var(--color-bg);
    padding-top: 0;
}

.dialog-right__header {
    position: sticky;
    top: 0;
    left: 0;
    padding: .5rem 0;
    background: var(--color-bg)
}

.dialog-right::backdrop {
    width: 100%;
    height: 100%;
    position: fixed;
    background: rgba(0, 0, 0, .3);
    opacity: 0.75;
}

.content-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
}

.content-item__photo {
    width: 6rem;
}

.content-item__title {
    padding-left: 1rem;
}

.content-item__area {
    font-weight: bold
}

.content-item--selected {
    background: var(--color-bg-accent);
}

.list-child {
    font-size: .875rem;
    padding: 0 0 0 2rem;
}

.list-child li {
    margin-bottom: .25rem;
}

.calc-price__value {
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1;
}

.calc-price__title {
    font-weight: bold;
}

.calc-list-output {
    list-style: none;
    padding: 0;
}

.calc-list-output__item {
    margin: 0;
    line-height:1.2;
    margin-bottom: .75rem;
    display: flex;
    align-items: center;
}

.calc-list-output__title {
    opacity: .5;
    display: inline-block;
    width: 12rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 2rem;
}

.output-options {
    align-items: start;
    display: block;
    cursor: pointer;
}

.output-options .list-child {
    display: none;
}

.output-options.is-show .list-child {
    display: block;
    max-height: 150px;
    overflow: hidden;
    overflow-y: auto;
}

.output-options .calc-list-output__title {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding-right: 0;
}

.output-options .calc-list-output__title:after {
    content: '+';
    font-size: 1.5em;
    line-height: 1;
    color: currentColor;
}

.output-options.is-show .calc-list-output__title:after {
    content: '−';
}

.ft_projects__result,
.ft_projects label {
    display: none;
    --color-danger: red
}

.ft_projects--selected label {
    display: block;
}

.ft_projects--selected .ft_projects__result {
    display: flex;
    border: 1px solid var(--color-gray);
    padding: .5rem 1.25rem;
    align-items: center;
    justify-content: space-between;
}

.ft_projects__remove {
    margin-left: 1rem;
    cursor: pointer;
}

.ft_projects__name {
    font-weight: bold;
    cursor: pointer;
}

.ft_projects__remove:hover {
    color: var(--color-danger)
}

.ft_projects--selected button,
.ft_projects--selected .hint {
    display: none;
}

.ft_number {
    display: flex;
    flex-wrap: wrap;
}

.ft_number label {
    width: 100%;
    flex-basis: 100%;
    order: -1;
}

.ft_number button {
    padding: 1rem;
    font-size: 2rem;
    line-height: .75;
    border: 1px solid var(--color-gray);
}

.input-size {
    width: 36%;
    max-width: 4rem;
    text-align: center;
    appearance: none;
    min-height: 2rem;
}

.ft_number .js-decrement,
.ft_number .js-increment {
    width: 32%;
    max-width: 4rem;
}

.ft_number input::-webkit-outer-spin-button,
.ft_number input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ft_number .js-decrement {
    border-right: 0;
}

.ft_number .js-increment {
    border-left: 0;
}

.ft_number .js-decrement.disabled,
.ft_number .js-increment.disabled {
    opacity: .3;
    pointer-events: none;
}

.hide_field {
    display: none;
}

#jivo-iframe-container {
    display: none!important;
}

@media screen and (max-width:47em) {
    .calc-total__footer .btn {
        font-size: .875rem;
        white-space: nowrap;
    }
    .calc-hint {
        margin-top: .5rem;
    }
}

@media screen and (min-width:47em) {
    #fset_0 .ft_number {
        width: auto;
    }
    #f_length {
        margin-left: 1rem;
    }
}

@media screen and (min-width:63em) {
    .callback-form form {
        display: block;
        max-width: none;
        margin: 0;
    }
    .form-inline-sm .field,
    .form-inline-sm .field input {
        margin-bottom: 0;
    }
    .calc-total {
        position: sticky;
        top: 7rem;
        padding: 2rem;
        z-index: 35;
    }
    .calc-price__value {
        font-size: 2rem;
    }
    .calc-total__result,
    .calc-total__title,
    .show-quiz--button {
        display: block;
    }
    .dialog-right__header {
        padding: 1rem 0;
    }
    .custom-control-label {
        min-width: 10rem;
    }
    .form-inline-sm .field {
        padding: 0 1rem;
    }

    .form-agreement{font-size:.75rem;}
    
}