

/* Start:/local/templates/itach.by/components/itach/task.construction/.default/style.css?179533875113257*/
/* Квиз «Рассчитайте стоимость работ» (2026-11-22): шаги сверху, понятные варианты,
   подсказки, итог с выбором и оценкой. Все правила — внутри .section-constructor. */

.section-constructor {
    --tq-red: #e8473a;
    --tq-red-dark: #d23a2e;
    --tq-text: #222;
    --tq-muted: #6f6f6f;
    --tq-line: #e6e6e6;
    --tq-soft: #fff4f0
}

/* ---------- Шаги ---------- */
.section-constructor .tq-steps {
    display: flex;
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
    counter-reset: none
}

.section-constructor .tq-steps__item {
    position: relative;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 0 8px 0 0;
    list-style: none;
    color: #9a9a9a;
    font-size: 14px;
    line-height: 1.2
}

.section-constructor .tq-steps__item::after {
    content: "";
    position: absolute;
    top: 15px;
    left: 40px;
    right: 8px;
    height: 2px;
    border-radius: 1px;
    background: var(--tq-line)
}

.section-constructor .tq-steps__item:last-child::after {
    display: none
}

.section-constructor .tq-steps__item.is-done::after {
    background: var(--tq-red)
}

.section-constructor .tq-steps__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 2px solid var(--tq-line);
    border-radius: 50%;
    background: #fff;
    font-family: "Gilroy Bold", sans-serif;
    font-size: 14px;
    color: #9a9a9a
}

.section-constructor .tq-steps__item.is-active {
    color: var(--tq-text)
}

.section-constructor .tq-steps__item.is-active .tq-steps__num {
    border-color: var(--tq-red);
    background: var(--tq-red);
    color: #fff
}

.section-constructor .tq-steps__item.is-done {
    color: var(--tq-text);
    cursor: pointer
}

.section-constructor .tq-steps__item.is-done .tq-steps__num {
    border-color: var(--tq-red);
    color: transparent;
    position: relative
}

.section-constructor .tq-steps__item.is-done .tq-steps__num::before {
    content: "";
    position: absolute;
    width: 6px;
    height: 11px;
    margin-top: -3px;
    border: solid var(--tq-red);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg)
}

.section-constructor .tq-steps__item.is-done:hover .tq-steps__name {
    color: var(--tq-red)
}

.section-constructor .tq-steps__name {
    font-family: "Gilroy SemiBold", sans-serif
}

/* ---------- Заголовки и подсказки шагов ---------- */
.section-constructor .form-swiper {
    background: none
}

.section-constructor .form-swiper .form-step__title {
    margin-top: 28px
}

.section-constructor .tq-lead {
    margin: 10px 0 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--tq-muted)
}

.section-constructor .form-step__content {
    margin-top: 28px
}

.section-constructor .form-step__btns-wrap {
    gap: 12px
}

.section-constructor .tq-loading {
    padding: 48px 0;
    font-size: 16px;
    color: #999
}

/* ---------- Варианты ответа ---------- */
.section-constructor .form__radio-btn {
    position: relative
}

/* поле не скрываем совсем, чтобы работала клавиатура */
.section-constructor .form__radio-btn input[type='radio'],
.section-constructor .form__radio-btn input[type='checkbox'] {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none
}

.section-constructor .form__radio-btn label {
    padding: 14px 22px;
    border: 1px solid #d2d2d2;
    border-radius: 10px;
    background: #fff;
    font-family: "Gilroy SemiBold", sans-serif;
    font-size: 15px;
    line-height: 1.3;
    color: var(--tq-text);
    transition: border-color .15s, background .15s, color .15s
}

@media (hover: hover) {
    .section-constructor .form__radio-btn:hover label {
        border-color: var(--tq-red);
        background: var(--tq-soft)
    }
}

/* идёт загрузка следующего шага */
.section-constructor #task .form__radio-btn.is-loading label {
    position: relative;
    padding-right: 46px;
    cursor: progress
}

.section-constructor .form__radio-btn.is-loading label::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: tq-spin .7s linear infinite
}

@keyframes tq-spin {
    to {
        transform: rotate(360deg)
    }
}

.section-constructor .form__radio-btn input[type]:checked + label {
    border-color: var(--tq-red);
    background: var(--tq-red);
    color: #fff
}

.section-constructor .form__radio-btn input[type]:focus-visible + label {
    outline: 2px solid var(--tq-red);
    outline-offset: 2px
}

.section-constructor #first-step .form__radio-btn label {
    padding: 20px 28px;
    font-size: 16px
}

/* ---------- Шаг «Детали»: вопросы ---------- */
.section-constructor #third-step {
    counter-reset: tq-q
}

.section-constructor #third-step .form-step__inner {
    counter-increment: tq-q
}

.section-constructor #third-step .form-step__inner:not(:first-child) {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--tq-line)
}

.section-constructor #third-step .form-step__subtitle {
    position: relative;
    margin-bottom: 16px;
    padding-left: 40px;
    font-family: "Gilroy SemiBold", sans-serif;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.35;
    text-transform: none;
    color: var(--tq-text)
}

.section-constructor #third-step .form-step__subtitle::before {
    content: counter(tq-q);
    position: absolute;
    left: 0;
    top: -2px;
    width: 28px;
    height: 28px;
    border: 2px solid var(--tq-line);
    border-radius: 50%;
    font-family: "Gilroy Bold", sans-serif;
    font-size: 13px;
    line-height: 24px;
    text-align: center;
    color: #9a9a9a;
    box-sizing: border-box
}

.section-constructor #third-step .form-step__inner.is-answered .form-step__subtitle::before {
    content: "";
    border-color: var(--tq-red);
    background: var(--tq-red)
}

.section-constructor #third-step .form-step__inner.is-answered .form-step__subtitle::after {
    content: "";
    position: absolute;
    left: 10px;
    top: 4px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg)
}

/* ---------- Подсказка и навигация ---------- */
.section-constructor .tq-hint {
    margin-top: 28px;
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--tq-soft);
    font-size: 15px;
    line-height: 1.4;
    color: #b0362b
}

.section-constructor .tq-hint[hidden],
.section-constructor .tq-hint:empty {
    display: none
}

.section-constructor .form-swiper .slider-nav-wrap {
    margin-top: 32px
}

.section-constructor .slider-nav-wrap .slider-nav__title,
.section-constructor .swiper-counter {
    display: none
}

/* прогресс уже показан шагами сверху */
.section-constructor .swiper-pagination-form {
    visibility: hidden
}

/* «Далее», когда можно идти дальше, — заметная */
.section-constructor .swiper-btn-form-next:not(.swiper-button-disabled) .slider-nav-text {
    color: var(--tq-red);
    font-family: "Gilroy Bold", sans-serif
}

.section-constructor .swiper-btn-form-next:not(.swiper-button-disabled).after-right::after {
    border-color: var(--tq-red)
}

/* ---------- Итог ---------- */
.section-constructor .tq-summary {
    margin-bottom: 20px;
    padding: 20px 24px;
    border: 1px solid var(--tq-line);
    border-radius: 16px
}

.section-constructor .tq-summary[hidden] {
    display: none
}

.section-constructor .tq-summary__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px
}

.section-constructor .tq-summary__title {
    font-family: "Gilroy Bold", sans-serif;
    font-size: 18px;
    color: var(--tq-text)
}

.section-constructor .tq-summary__edit {
    padding: 0;
    border: 0;
    background: none;
    font-family: "Gilroy SemiBold", sans-serif;
    font-size: 15px;
    color: var(--tq-red);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer
}

.section-constructor .tq-summary__edit:hover {
    text-decoration: none
}

.section-constructor .tq-summary dl {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 8px 20px;
    margin: 0
}

.section-constructor .tq-summary dt {
    font-size: 14px;
    line-height: 1.4;
    color: var(--tq-muted)
}

.section-constructor .tq-summary dd {
    margin: 0;
    font-family: "Gilroy SemiBold", sans-serif;
    font-size: 15px;
    line-height: 1.4;
    color: var(--tq-text)
}

.section-constructor .tq-estimate {
    padding: 22px 26px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff4ef 0%, #ffe8e1 100%)
}

.section-constructor .tq-estimate__label {
    margin-bottom: 8px;
    font-family: "Gilroy Bold", sans-serif;
    font-size: 13px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--tq-red)
}

.section-constructor .tq-estimate .form-step__text-result {
    font-size: 16px;
    line-height: 1.55;
    color: var(--tq-text)
}

.section-constructor .tq-price {
    font-family: "Gilroy Bold", sans-serif;
    font-weight: 700;
    color: var(--tq-red);
    white-space: nowrap
}

/* ---------- Форма заявки ---------- */
.section-constructor .form-step__content-inner.form-order {
    margin-top: 36px
}

.section-constructor .form-order__inner:nth-child(2) {
    margin-top: 28px
}

.section-constructor .form-order__inner:nth-child(2) .input-item-file {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    min-height: 0;
    padding: 16px 20px;
    border-radius: 12px;
    text-align: left
}

.section-constructor .form-order__inner:nth-child(2) .input-item-file .input-item__label {
    min-height: 0;
    flex: 1 1 200px;
    margin: 0
}

.section-constructor .input-item-file .input-item-file__btn {
    margin: 0;
    padding: 10px 20px;
    border-radius: 8px
}

.section-constructor .form__btn {
    margin-top: 24px;
    padding: 16px 48px;
    border: 0;
    border-radius: 8px;
    background: var(--tq-red);
    color: #fff;
    font-size: 16px
}

.section-constructor .form__btn:hover {
    background: var(--tq-red-dark);
    color: #fff
}

/* ---------- Сообщения об ошибках ---------- */
.section-constructor .task-form-error {
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #fff1ec;
    color: #c8372b;
    font-size: 15px;
    line-height: 1.45
}

.section-constructor .task-form-error[hidden] {
    display: none
}

.section-constructor .task-form-load-error {
    padding: 16px 18px;
    border-radius: 8px;
    background: #fff1ec;
    color: #c8372b;
    font-size: 16px;
    line-height: 1.45
}

.section-constructor .form__btn:disabled {
    opacity: .6;
    cursor: wait
}

/* Плавающая кнопка «Наверх» перекрывает варианты на узких экранах — прячем, пока калькулятор на экране */
@media screen and (max-width:1199px) {
    body.tq-in-view .scrollToTop_inner,
    body.tq-in-view div:has(> .scrollToTop_inner) {
        visibility: hidden;
        pointer-events: none
    }
}

/* ---------- Телефон ---------- */
@media screen and (max-width:600px) {
    .section-constructor .tq-steps__item {
        font-size: 12px
    }

    .section-constructor .tq-steps__num {
        width: 28px;
        height: 28px;
        font-size: 13px
    }

    .section-constructor .tq-steps__item::after {
        top: 13px;
        left: 34px
    }

    .section-constructor .tq-lead {
        font-size: 15px
    }

    .section-constructor .form-step__btns-wrap {
        gap: 10px
    }

    .section-constructor .form__radio-btn {
        flex: 1 1 calc(50% - 5px)
    }

    .section-constructor .form__radio-btn label {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        padding: 14px 12px;
        box-sizing: border-box
    }

    .section-constructor #first-step .form__radio-btn,
    .section-constructor #second-step .form__radio-btn {
        flex-basis: 100%
    }

    .section-constructor #first-step .form__radio-btn label {
        padding: 18px 16px
    }

    .section-constructor #third-step .form-step__subtitle {
        font-size: 17px
    }

    .section-constructor .tq-summary {
        padding: 16px 18px
    }

    .section-constructor .tq-summary dl {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px
    }

    .section-constructor .tq-summary dd {
        margin-bottom: 8px
    }

    .section-constructor .tq-estimate {
        padding: 18px 20px
    }

    .section-constructor .form__btn {
        width: 100%
    }
}

/* End */
/* /local/templates/itach.by/components/itach/task.construction/.default/style.css?179533875113257 */
