@charset "UTF-8";
/* ============================================================
   QUIZ
   ============================================================ */

.quiz {
    position: relative;
    padding-top: 100px;
    z-index: 2;
   
}

.quiz__wrap {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    padding: 60px 16px ;
}

/* ── Прогресс-бар ── */
.quiz__progress {
    width: 100%;
}

.quiz__progress-bar {
    width: 100%;
    height: 3px;
    background: var(--linii);
    border-radius: 2px;
    overflow: hidden;
}

.quiz__progress-fill {
    height: 100%;
    background: var(--gradient-zheltyj);
    border-radius: 2px;
    transition: width .4s ease;
}

/* ── Шаг ── */
.quiz__step {
    display: none;
    flex-direction: column;
    gap: 40px;
}

.quiz__step.is-active {
    display: flex;
    width: 100%;
}

/* ── Шапка шага ── */
.quiz__step-head {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.quiz__question {
    background: var(--gradient-svetlyj);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-bebas);
    font-size: 38px;
    line-height: 41px;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.quiz__counter {
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: baseline;
    flex-shrink: 0;
}

.quiz__counter-current {
    font-family: var(--font-bebas);
    font-size: 38px;
    line-height: 41px;
    font-weight: 700;
}

.quiz__counter-sep {
    font-family: var(--font-bebas);
    font-size: 34px;
    line-height: 29px;
    font-weight: 400;
}

.quiz__counter-total {
    font-family: var(--font-bebas);
    font-size: 38px;
    line-height: 41px;
    font-weight: 700;
}

/* ── Карточки ── */
.quiz__cards {
    display: flex;
    flex-direction: row;
    gap: 26px;
    align-items: stretch;
    flex-wrap: wrap;
}

.quiz__cards--2 .quiz__card {
    max-width: 220px;
}

.quiz__card {
    flex: 1;
    min-width: 160px;
    cursor: pointer;
    position: relative;
}

.quiz__card-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.quiz__card-inner {
    border-radius: 20px;
    border: 1px solid var(--linii);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    height: 100%;
    position: relative;
    transition: border-color .2s ease;
    box-sizing: border-box;
}

.quiz__card-input:checked + .quiz__card-inner {
    border-color: #FFDB73;
    background: rgba(255, 219, 115, .05);
}

.quiz__card-img {
    border-radius: 10px;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.quiz__card-label {
    background: var(--gradient-svetlyj);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-bebas);
    font-size: 22px;
    line-height: 25px;
    font-weight: 700;
}

/* Чекбокс-индикатор */
.quiz__card-check {
    position: absolute;
    right: 10px;
    top: 9px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--linii);
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(2px);
    transition: background .2s, border-color .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz__card-check::after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='12' viewBox='0 0 18 12' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M17.0859 1.5026L7.16928 11.4192C6.75434 11.8342 6.08157 11.8342 5.66667 11.4192L0 5.75256L1.5026 4.25004L6.41802 9.16531L15.5833 0L17.0859 1.5026Z' fill='%23050505'/%3E%3C/svg%3E");
    width: 100%;
    height: 100%;
    border-radius: 50%;
    opacity: 0;
    transition: opacity .2s;
    background:  var(--gradient-zheltyj) ;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz__card-input:checked + .quiz__card-inner .quiz__card-check {
    border-color: #FFDB73;
    background: rgba(255,219,115,.15);
}

.quiz__card-input:checked + .quiz__card-inner .quiz__card-check::after {
    opacity: 1;
}

/* ── Радио-кнопки ── */
.quiz__radios {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quiz__radio {
    display: flex;
    flex-direction: row;
    gap: 14px;
    align-items: center;
    cursor: pointer;
}

.quiz__radio-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.quiz__radio-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--linii);
    background: rgba(0,0,0,.55);
    flex-shrink: 0;
    position: relative;
    transition: border-color .2s;
}

.quiz__radio-dot::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gradient-zheltyj);
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    opacity: 0;
    transition: opacity .2s;
}

.quiz__radio-input:checked ~ .quiz__radio-dot {
    border-color: #FFDB73;
}

.quiz__radio-input:checked ~ .quiz__radio-dot::after {
    opacity: 1;
}

.quiz__radio-label {
    background: var(--gradient-svetlyj);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-myriad);
    font-size: 18px;
    line-height: 24px;
    font-weight: 400;
}

/* ── Контакты (шаг 7) ── */
.quiz__contacts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quiz__contacts-fields {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.quiz__input {
    flex: 1;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--linii);
    border-radius: 6px;
    padding: 16px 20px;
    color: rgba(232,232,232,.8);
    font-family: var(--font-myriad);
    font-size: 16px;
    line-height: 1;
    outline: none;
    transition: border-color .2s;
}

.quiz__input::placeholder {
    color: rgba(232,232,232,.35);
}

.quiz__input:focus {
    border-color: rgba(255,219,115,.5);
    color: #FFDB73;
}

.quiz__input:hover {

    background: #282828 url('/wp-content/uploads/2026/05/input-hover.png') left center / 100% auto no-repeat;
}



/* Согласие */
.quiz__agree {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
}

.quiz__agree-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.quiz__agree-box {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid var(--linii);
    background: rgba(0,0,0,.4);
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
    transition: border-color .2s, background .2s;
}

.quiz__agree-box::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 8px;
    height: 12px;
    border: 2px solid #050505;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity .2s;
}

.quiz__agree-input:checked + .quiz__agree-box {
    background: var(--gradient-zheltyj);
    border-color: #FFDB73;
}

.quiz__agree-input:checked + .quiz__agree-box::after {
    opacity: 1;
}

.quiz__agree-text {
    font-family: var(--font-myriad);
    font-size: 14px;
    line-height: 20px;
    color: rgba(232,232,232,.5);
}

.quiz__agree-link {
    color: rgba(255,219,115,.7);
    text-decoration: underline;
}

/* Скрываем CF7 форму — используем только для отправки */
.quiz__contacts .wpcf7 {
    display: none;
}

/* ── Навигация ── */
.quiz__nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.quiz__nav-right {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
}

.quiz__nav-btn {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    border-radius: 5px;
    padding: 16px 20px;
    border: none;
    cursor: pointer;
    font-family: var(--font-bebas);
    font-size: 23px;
    line-height: 20px;
    font-weight: 700;
    transition: transform .15s, opacity .2s;
    white-space: nowrap;
}

.quiz__nav-btn:hover {
    background: linear-gradient(180deg, #C7A21B 0%, #FFDB73 100%);

    color: var(--color-black);
    -webkit-text-fill-color: var(--color-black);
}

/* Назад */
.quiz__nav-btn--prev {
    background: var(--gradient-svetlyj);
    color: var(--color-black);
    -webkit-text-fill-color: var(--color-black);
}

.quiz__nav-btn--prev.is-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Помощь */
.quiz__nav-btn--help {
    background: transparent;
    border: 1px solid #FFDB73;
    color: transparent;
    background: var(--gradient-zheltyj);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 16px 20px;
}

.quiz__nav-btn--help svg {
    color: #FFDB73;
}

.quiz__nav-btn--help:hover svg {
    color: var(--color-black);
}

/* Далее / Отправить */
.quiz__nav-btn--next {
    background: var(--gradient-zheltyj);
    color: var(--color-black);
    -webkit-text-fill-color: var(--color-black);
    position: relative;
    overflow: hidden;
    min-width: 131px;
    justify-content: space-between;
}



/* ── Экран успеха ── */
.quiz__success {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    text-align: center;
    padding: 60px 20px;
}

.quiz__success[hidden] {
    display: none;
}

.quiz__success-icon {
    width: 48px;
    height: 36px;
}

.quiz__success-title {
    font-family: var(--font-bebas);
    font-size: 38px;
    line-height: 41px;
    font-weight: 700;
    margin: 0;
    background: var(--gradient-svetlyj);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.quiz__success-subtitle {
    font-family: var(--font-myriad);
    font-size: 18px;
    line-height: 26px;
    margin: 0;
    background: var(--gradient-svetlyj);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.quiz__success-btn {
    background: var(--gradient-zheltyj);
    border-radius: 5px;
    padding: 16px 28px;
    border: none;
    cursor: pointer;
    font-family: var(--font-bebas);
    font-size: 20px;
    line-height: 20px;
    font-weight: 700;
    color: var(--color-black);
    -webkit-text-fill-color: var(--color-black);
    margin-top: 10px;
    transition: transform .15s;
}

.quiz__success-btn:hover {
    transform: translateY(-1px);
}

/* ── Адаптив ── */



@media (max-width: 1024px) {
    .quiz__question {
        font-size: clamp(24px, 3vw, 38px);
        line-height: 1.1;
    }

    .quiz__cards {
        gap: 16px;
    }
}

@media (max-width: 767px) {
    .quiz__cards {
        flex-wrap: wrap;
    }

    .quiz__card {
        flex: 0 0 calc(50% - 8px);
        min-width: 0;
    }

    .quiz__contacts-fields {
        flex-direction: column;
    }

    .quiz__nav {
        flex-wrap: wrap;
        gap: 10px;
    }

    .quiz__nav-right {
        flex-wrap: wrap;
        gap: 10px;
    }

    .quiz__nav-btn--help {
        font-size: 16px;
    }
}

@media (max-width: 479px) {


    .quiz__step-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .quiz__nav {
      
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    
    }
    .quiz__nav-right {
        flex-direction: column-reverse;
        align-items: flex-end;
    }

    .quiz {
     
        padding-top: 70px;
    }


    .quiz__card-label {
        font-size: 20px;  
    }
    .quiz__nav-btn{
        padding: 10px 16px;
        font-size: 20px;
    }
    quiz__wrap {
        padding: 40px 16px;
    }


    .quiz__nav-btn--help{ font-size: 14px; padding: 8px 14px;}
}









.quiz__input.is-error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, .2);
}

.quiz__agree.is-error .quiz__agree-box {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, .2);
}


@keyframes quiz-shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-6px); }
    40%       { transform: translateX(6px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}

.quiz__input.is-error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, .2);
    animation: quiz-shake .4s ease;
}

.quiz__agree.is-error .quiz__agree-box {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, .2);
    animation: quiz-shake .4s ease;
}