.modal-header {
    padding: 0!important;
    border-bottom: none!important;
}

.pd-quiz {
    font-family: 'Gilroy', sans-serif !important;
}
.quiz-card.js-quiz-option {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 5px 15px!important;
}
.quiz-bonuses-final {
    display: flex;
    gap: 15px;
}
#quiz-btn-next {
    background: #75e312;
}
.quiz-media__item.quiz-media__video {
    display: flex;
    justify-content: center;
}
.quiz-media__video video {
    max-width: 100%;
    height: 100%;
    max-height: 340px;
}
.quiz-card__img {
    width: 150px;
}

/* Скрываем блок на всех шагах */
.quiz-step .quiz-discount {
    display: none;
}

/* Показываем только на первом шаге */
.quiz-step[data-step-index="1"] .quiz-discount {
    display: block;
}


/* Контейнер менеджера */
.quiz-media__manager {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 10px;
    padding: 12px 16px;
    background: #f3f3f3;
    border-radius: 12px;
    /* box-shadow: 0 3px 10px rgba(0,0,0,0.08); */
    position: relative;
    max-width: 340px;
}

/* Фото менеджера */
.quiz-manager__photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: burlywood;
}

/* Текстовое облачко */
.quiz-manager__text {
    background: #ffffff;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.25;
    color: #2e2e2e;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    max-width: 250px;
    position: relative;
}

/* Хвостик “облачка” */
.quiz-manager__text::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 18px;
    width: 14px;
    height: 14px;
    background: #ffffff;
    border-radius: 3px;
    transform: rotate(45deg);
    /* box-shadow: -2px -2px 3px rgba(0,0,0,0.03); */
}

/* ---------------------------------------------
   Основной контейнер
---------------------------------------------- */
.pd-quiz {
    width: 100%;
    /* background: #f6f6f6;
    padding: 30px 0 30px; */
}

.pd-quiz-body {
    /* max-width: 1260px; */
    margin: 0 auto;
    background: #fff;
    /* border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.06);
    padding: 20px 30px 20px; */
}

/* ---------------------------------------------
   Шаги
---------------------------------------------- */
.quiz-step {
    display: block;
    opacity: 1;
    transition: opacity .3s ease;
}

.quiz-step[hidden] {
    display: none !important;
    opacity: 0;
}

.quiz-step__content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.quiz-step__content--final {
    align-items: flex-start;
}

/* ---------------------------------------------
   Левая колонка
---------------------------------------------- */
.quiz-step__left {
    flex: 1 1 65%;
}

.quiz-step__subtitle {
    font-size: 16px;
    color: #888;
    margin-bottom: 10px;
}

.quiz-step__title {
    font-size: 22px;
    line-height: 1.25;
    margin: 0 0 20px;
    font-weight: 600;
}

/* ---------------------------------------------
   Правая колонка (картинка + бонусы)
---------------------------------------------- */
.quiz-step__right {
    flex: 1 1 35%;
    max-width: 400px;
    display: flex;
    align-items: stretch;
}

.quiz-side-image img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 3px 20px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.quiz-sidebar {
    background: #fff;
    padding: 16px;
    border-radius: 14px;
    box-shadow: 0 3px 20px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Скидка */
.quiz-discount {
    background: #ffce4a;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.quiz-discount__label {
    color: #222;
    font-size: 18px;
    text-align: center;
}
.quiz-discount__value {
    color: #1a7d1a;
    font-weight: 700;
}

/* Бонусы */
.quiz-bonus {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 18px;
    position: relative;
    box-shadow: 0 3px 18px rgba(0,0,0,0.08);
}

.quiz-bonus img {
    width: 100%;
    display: block;
}

.quiz-bonus__title {
    padding: 10px 14px;
    font-size: 16px;
    font-weight: 600;
}

/* ---------------------------------------------
   Карточки выбора
---------------------------------------------- */
.quiz-step__cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.quiz-card {
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all .25s ease;
    text-align: left;
    padding: 0;
}

.quiz-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    border-color: #57a957;
}

.quiz-card.is-active {
    border-color: #3a8d3a;
    box-shadow: 0 8px 26px rgba(0,0,0,0.14);
    border: 1px solid rgb(58 141 58 / 40%);
}

.quiz-card__img img {
    width: 100%;
    display: block;
    border-radius: 10px;
}

.quiz-card__body {
    padding: 10px 0;
}

.quiz-card__title {
    text-transform: none;
}

.quiz-card__text {
    font-size: 15px;
    color: #666;
}

/* ---------------------------------------------
   Варианты списком
---------------------------------------------- */
.quiz-options--list .quiz-option {
    display: flex;
    align-items: center;
    border: 2px solid #e5e5e5;
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 14px;
    cursor: pointer;
    transition: all .25s ease;
    background: #fff;
    width: 100%;
    justify-content: flex-start;
}

.quiz-option:hover {
    border-color: #57a957;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.quiz-option.is-active {
    border-color: #3a8d3a;
    background: #f3fff3;
}

.quiz-option__radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #bbb;
    margin-right: 12px;
    transition: all .25s ease;
}

.quiz-option.is-active .quiz-option__radio {
    border-color: #3a8d3a;
    background: #3a8d3a;
}

/* ---------------------------------------------
   Прогресс-бар
---------------------------------------------- */
.quiz-footer {
    /* margin-top: 40px; */
    border-top: 1px solid #e7e7e7;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quiz-progress {
    width: 60%;
}

.quiz-progress__label {
    font-size: 16px;
    margin-right: 8px;
}

.quiz-progress__percent {
    font-size: 16px;
    font-weight: 600;
}

.quiz-progress__bar {
    width: 100%;
    height: 10px;
    background: #dedede;
    border-radius: 20px;
    margin-top: 8px;
    overflow: hidden;
}

.quiz-progress__bar-fill {
    height: 10px;
    width: 0;
    background: #3a8d3a;
    border-radius: 20px;
    transition: width .35s ease;
}

/* ---------------------------------------------
   Кнопки навигации
---------------------------------------------- */
.quiz-nav {
    display: flex;
    gap: 14px;
}

.quiz-nav__btn {
    padding: 12px 24px;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all .25s ease;
}

.quiz-nav__btn--prev {
    background: #ececec;
    color: #333;
}

.quiz-nav__btn--prev:hover {
    background: #ddd;
}

.quiz-nav__btn--next {
    background: #1f7a1f;
    color: #fff;
}

.quiz-nav__btn--next:hover {
    background: #176017;
    color: #fff!important;
}

/* ---------------------------------------------
   Финальный шаг – форма
---------------------------------------------- */
.quiz-form {
    background: #fff;
    padding: 28px 30px;
    border-radius: 16px;
    box-shadow: 0 6px 22px rgba(0,0,0,0.1);
}

.quiz-form__discount {
    background: #ffce4a;
    padding: 12px 16px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 14px;
    margin-bottom: 24px;
    text-align: center;
}

.quiz-form__field {
    margin-bottom: 18px;
}

.quiz-form__field label {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 600;
}

.quiz-form__field input {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: 2px solid #dcdcdc;
    font-size: 16px;
    transition: all .25s ease;
}

.quiz-form__field input:focus {
    border-color: #3a8d3a;
    box-shadow: 0 0 0 3px rgba(58,141,58,0.2);
}

.quiz-submit-btn {
    width: 100%;
    background: #1f7a1f;
    color: #fff;
    padding: 16px 0;
    border-radius: 14px;
    border: none;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background .3s ease;
}

.quiz-submit-btn:hover {
    background: #166016;
    color: #fff!important;
}

.quiz-form__agreement {
    font-size: 14px;
    color: #666;
    margin-top: 16px;
    line-height: 1.4;
}

/* ---------------------------------------------
   Финальная фраза о моделях
---------------------------------------------- */
.quiz-result-text {
    font-size: 20px;
    line-height: 1.4;
    margin: 26px 0;
    font-weight: 600;
}

.quiz-result-text span {
    color: #1f7a1f;
    font-weight: 700;
    font-size: 22px;
}

/* -------------------------
   MOBILE ADAPTATION
   (до 767px)
-------------------------- */
@media (max-width: 767px) {
    
    .pd-quiz {
        padding: 20px 0 40px;
    }

    .pd-quiz-body {
        padding: 24px 18px 36px;
        border-radius: 12px;
    }

    /* Контейнер шага */
    .quiz-step__content {
        flex-direction: column;
        gap: 10px;
    }

    /* Левая колонка */
    .quiz-step__left {
        flex: none;
        width: 100%;
    }

    .quiz-step__title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .quiz-step__subtitle {
        font-size: 14px;
    }

    /* Правая колонка */
    .quiz-step__right {
        flex: none;
        width: 100%;
        max-width: 100%;
        display: block;
    }

    .quiz-side-image img {
        margin-bottom: 14px;
        border-radius: 12px;
    }

    .quiz-sidebar {
        padding: 14px;
        border-radius: 12px;
    }

    /* Скидка */
    .quiz-discount {
        font-size: 16px;
        padding: 10px 14px;
        margin-bottom: 16px;
    }

    /* Карточки — 2 колонка */
    .quiz-step__cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .quiz-card {
        border-radius: 12px;
    }

    .quiz-card__body {
        padding: 14px 0;
    }

    .quiz-card__title {
        font-size: 16px;
    }

    .quiz-card__text {
        font-size: 14px;
    }

    /* Список опций */
    .quiz-options--list .quiz-option {
        padding: 12px 14px;
        border-radius: 12px;
    }

    .quiz-option__label {
        font-size: 14px;
    }

    /* Прогресс-бар */
    .quiz-footer {
        flex-direction: column;
        gap: 20px;
        margin-top: 30px;
        padding-top: 20px;
    }

    .quiz-progress {
        width: 100%;
    }

    .quiz-progress__bar {
        height: 8px;
    }

    .quiz-progress__bar-fill {
        height: 8px;
    }

    /* Навигация */
    .quiz-nav {
        width: 100%;
        display: flex;
        gap: 10px;
    }

    .quiz-nav__btn {
        flex: 1;
        font-size: 16px;
        padding: 12px 0;
        border-radius: 12px;
    }

    /* Финальная форма */
    .quiz-form {
        padding: 20px;
        border-radius: 12px;
    }

    .quiz-form__discount {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .quiz-form__field label {
        font-size: 14px;
    }

    .quiz-form__field input {
        padding: 12px;
        font-size: 15px;
        border-radius: 12px;
    }

    .quiz-submit-btn {
        padding: 14px 0;
        font-size: 17px;
        border-radius: 12px;
    }

    .quiz-form__agreement {
        font-size: 13px;
        margin-top: 12px;
    }

    /* Текст о моделях */
    .quiz-result-text {
        font-size: 18px;
        margin: 20px 0;
    }

    .quiz-result-text span {
        font-size: 20px;
    }
}
@media (max-width: 480px) {

    .pd-quiz-body {
        padding: 18px 14px 28px;
    }

    .quiz-step__title {
        font-size: 22px;
    }

    .quiz-card__title {
        font-size: 13px;
    }

    .quiz-card__text {
        font-size: 13px;
    }

    .quiz-option {
        padding: 10px 12px;
    }

    .quiz-form {
        padding: 18px;
    }

    .quiz-submit-btn {
        font-size: 16px;
        padding: 12px 0;
    }
    div#quizModal {
    background: #fff;
}
}
@media (max-width: 375px) {

    .quiz-step__title {
        font-size: 20px;
    }

    .quiz-nav__btn {
        font-size: 15px;
        padding: 10px 0;
    }

    .quiz-card__body {
        padding: 12px 0;
    }
}



/* @media (min-width: 1024px) {

    .pd-quiz-body {
        height: calc(100vh - 260px);
        display: flex;
        flex-direction: column;
    }

    .quiz-step {
        flex: 1;
        overflow-y: auto; 
        padding-right: 10px; 
    }
    .quiz-step__content {
        flex: 1;
    }
} */
@media (min-width: 1024px) {

    .pd-quiz-body {
        height: clamp(580px, 80vh, 630px);
        display: flex;
        flex-direction: column;
    }

    .quiz-step {
        flex: 1;
        overflow-y: auto;
        padding-right: 10px;
    }

    .quiz-step__content {
        flex: 1;
    }
}
