/* ============================================
   CSS для калькулятора опалубки
   ВСЕ СТИЛИ ВНУТРИ .quiz
   ============================================ */

/* ---------- ОБЩИЕ СТИЛИ ДЛЯ QUIZ ---------- */
.quiz {
    width: 100%;
    margin: auto;
    background: #fff;
    border: 4px solid #002e67;
    box-shadow: 0 20px 60px rgba(0, 46, 103, 0.15);
    margin-top: 50px;
    margin-bottom: 50px;
    -webkit-box-shadow:
        0 2px 2px 0 rgb(0 0 0 / 14%),
        0 3px 1px -2px rgb(0 0 0 / 12%),
        0 1px 5px 0 rgb(0 0 0 / 20%);
    box-shadow:
        0 2px 2px 0 rgb(0 0 0 / 14%),
        0 3px 1px -2px rgb(0 0 0 / 12%),
        0 1px 5px 0 rgb(0 0 0 / 20%);
    border-width: 0px;
    border-color: transparent;
    border-radius: 10px;
    border-style: solid;
}

.quiz .intec-content {
    max-width: 1280px;
    min-width: 320px;
    margin: 0 auto;
    clear: inherit !important;
    overflow: visible !important;
}

/* ---------- HEADER ---------- */
.quiz .quiz-header {
    background: #002e67;
    color: white;
    padding: 3px 38px;
    position: relative;
    overflow: hidden;
}

.quiz .quiz-header h1 {
    font-size: 30px;
    position: relative;
    z-index: 2;
    margin: 18px 0 18px 0;
}

.quiz .quiz-header p {
    margin-top: 14px;
    opacity: 0.9;
    font-size: 18px;
    position: relative;
    z-index: 2;
}

/* ---------- TABS ---------- */
.quiz .tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-bottom: 3px solid #002e67;
}

.quiz .tab {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    background: #fff;
    color: #002e67;
    border-right: 1px solid #d8e1ed;
    transition: 0.3s;
    opacity: 1;
    visibility: visible;
}

.quiz .tab:last-child {
    border-right: none;
}

.quiz .tab.active {
    background: #002e67;
    color: white;
}

/* ---------- BODY ---------- */
.quiz .quiz-body {
    background-color: #fff;
    padding: 40px 60px;
    min-height: 400px;
}

/* ---------- STEP ---------- */
.quiz .step {
    display: none;
    animation: fade 0.4s ease;
}

.quiz .step.active {
    display: block;
}

@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz .step__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
}

.quiz .step__right {
    /* стили для правой колонки */
}

.quiz .step-title {
    font-size: 33px;
    margin-bottom: 14px;
    line-height: 1.1;
}

.quiz .step-subtitle {
    color: #6f87a6;
    margin-bottom: 5px;
    font-size: 18px;
}

/* ---------- ЦВЕТА ---------- */
.quiz .red {
    color: #e53935;
}

.quiz .red,
.quiz .blue,
.quiz .yellow {
    margin-bottom: 15px;
    font-size: 14px;
}

.quiz .blue {
    color: #1565c0;
}

.quiz .yellow {
    color: #ffb300;
}

.quiz .green {
    color: green;
}

/* ---------- INPUT WRAP ---------- */
.quiz .input-wrap {
    position: relative;
    z-index: 1;
}

.quiz .input-wrap input {
    width: 100%;
    height: 50px;
    border: 2px solid #002e67;
    border-radius: 2px;
    font-size: 18px;
    font-weight: 600;
    color: #002e67;
    background: #f7fbff;
    padding: 0 20px;
    outline: none;
    margin-top: 10px;
    transition: 0.2s;
    margin: 30px 0;
}

.quiz .input-wrap input:focus {
    background: #edf5ff;
    box-shadow: 0 0 0 4px rgba(255, 180, 0, 0.15);
}

.quiz .unit {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: bold;
    color: #7d92ac;
    pointer-events: none;
}

/* ---------- RANGE ---------- */
.quiz .range-box {
    margin-top: 20px;
    position: relative;
}

.quiz .range-box input {
    width: 100%;
    accent-color: #002e67;
    height: 10px;
}

.quiz .range_value {
    margin-top: 0;
    font-size: 40px;
    font-weight: bold;
    position: relative;
    left: 0;
}

/* ---------- BUTTONS ---------- */
.quiz .buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.quiz .btn {
    min-width: 180px;
    border: none;
    background: #002e67;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    padding: 14px 22px;
    text-decoration: none !important;
    line-height: 1;
    display: inline-block;
    outline: none;
}

.quiz .btn:hover {
    background: #003f8f;
}

.quiz .btn.light {
    background: #dde7f3;
    color: #002e67 !important;
}

.quiz .btn.next {
    /* стили для кнопки "Далее" */
}

.quiz .btn.prev {
    /* стили для кнопки "Назад" */
}

/* ---------- FORM ---------- */
.quiz .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.quiz .form-grid input {
    height: 50px;
    border: none;
    border: 2px solid #002e67;
    background: #f7fbff;
    border-radius: 2px;
    padding: 0 20px;
    font-size: 18px;
    outline: none;
}

.quiz .form-grid .full {
    grid-column: 1/3;
}

/* ---------- AGREE ---------- */
.quiz .agree {
    margin: 10px 0;
    padding: 20px 4px;
    display: block;
}

.quiz .agree span {
    background-color: transparent !important;
}

/* ---------- RESULT ---------- */
.quiz .result {
    margin-top: 50px;
    border: 3px solid #002e67;
    display: none;
}

.quiz .result-header {
    background: #002e67;
    color: white;
    padding: 20px;
    font-size: 22px;
    font-weight: bold;
}

.quiz .result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 473px;
}

.quiz .result-item {
    padding: 25px 20px;
    border-right: 1px solid #d9e3ef;
}

.quiz .result-item:last-child {
    border-right: none;
}

.quiz .result-label {
    font-size: 14px;
    color: #7a8ca3;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.quiz .result-value {
    font-size: 26px;
    font-weight: bold;
}

.quiz .price {
    color: #002e67;
    font-size: 26px;
}

/* ---------- QUIZ IMG ---------- */
.quiz .quiz-img {
    margin: 0 auto;
    height: 320px;
    object-fit: contain;
    margin-left: auto;
}

.quiz .quiz-box_img {
    width: 100%;
    height: 100%;
}

/* ---------- QUIZ BOTTOM PRIM ---------- */
.quiz .quiz--bottom-prim {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    background-color: #002e67;
    padding: 12px 25px;
    color: #fff;
}

.quiz .quiz--item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.quiz .quiz--item__img {
    height: 62px;
    margin-bottom: 10px;
}

.quiz .quiz--title {
    /* стили для заголовков внизу */
}

/* ---------- CALC ---------- */
.quiz .calc {
    padding: 0;
}

/* ---------- ERRORS & SUCCESS ---------- */
.quiz #result_errors_cal {
    text-align: center;
    color: red;
}

.quiz #result_success3_cal {
    text-align: center;
    color: green;
}

/* ============================================
   АДАПТИВ (все стили внутри .quiz)
   ============================================ */
@media (max-width: 768px) {
    .quiz .quiz-body {
        padding: 35px 25px;
    }

    .quiz .quiz-header {
        padding: 35px 25px;
    }

    .quiz .quiz-header h1 {
        font-size: 30px;
    }

    .quiz .step-title {
        font-size: 24px;
    }

    .quiz .input-wrap input {
        height: 45px;
        font-size: 16px;
        padding: 0 16px;
    }

    .quiz .buttons button {
        min-width: inherit;
    }

    .quiz .buttons {
        gap: 15px;
    }

    .quiz .btn {
        height: 44px;
        font-size: 14px;
    }

    .quiz .form-grid {
        grid-template-columns: 1fr;
    }

    .quiz .form-grid .full {
        grid-column: auto;
    }

    .quiz .result-grid {
        grid-template-columns: 1fr;
    }

    .quiz .tab {
        font-size: 20px;
        height: 70px;
    }

    .quiz .quiz-header h1 {
        font-size: 21px;
        margin: 0;
    }

    .quiz .quiz-header p {
        margin-bottom: 0;
    }

    .quiz .quiz-header {
        padding: 10px 20px;
    }

    .quiz .tab {
        font-size: 16px;
        height: 45px;
    }

    .quiz .step-subtitle {
        color: #6f87a6;
        margin-bottom: 26px;
        font-size: 14px;
    }

    .quiz .range_value {
        left: 0 !important;
        font-size: 30px;
    }

    .quiz .form-grid input {
        height: 50px;
    }

    .quiz .quiz-body {
        min-height: 330px;
    }

    .quiz .result-item {
        padding: 8px 20px;
    }

    .quiz .result-label {
        margin-bottom: 3px;
    }

    .quiz .quiz-img {
        height: 270px;
    }

    .quiz .calc {
        margin-bottom: 10px;
    }

    .quiz .step__body {
        display: block;
    }

    .quiz .unit {
        font-size: 16px;
    }

    .quiz .quiz--bottom-prim {
        display: block;
        padding: 26px;
    }
}

@media (max-width: 390px) {
    .quiz .sl_rev__text {
        max-height: 60px !important;
    }
}
