/* =========================================================

   ОСНОВА

========================================================== */



.rr-quiz {
    container-type: inline-size;
    --rr-radius: 22px;
    --rr-border-color: rgba(255, 255, 255, 0.09);
    --rr-bg-1: #111113;
    --rr-bg-2: #070708;
    --rr-bg-3: #030303;
    --rr-shine-alpha: 0.075;
    --rr-shine-left-alpha: 0.12;
    --rr-shine-right-alpha: 0.09;
    --rr-white: #f3f3f3;
    --rr-silver: #c6c7ca;
    --rr-muted: #92949a;

    --rr-quiz-white: var(--rr-white, #f3f3f3);
    --rr-quiz-silver: var(--rr-silver, #c6c7ca);
    --rr-quiz-muted: var(--rr-muted, #92949a);
    --rr-quiz-border: rgba(255, 255, 255, 0.1);
    --rr-quiz-shade-1: rgba(8, 8, 10, 0.42);
    --rr-quiz-shade-2: rgba(6, 6, 8, 0.55);
    --rr-quiz-shade-3: rgba(4, 4, 5, 0.68);
    --rr-quiz-shade-accent: rgba(220, 40, 40, 0.08);
    --rr-quiz-intro-brightness: 0.85;
    --rr-quiz-intro-saturate: 0.95;
    --rr-quiz-plaque-bg: rgba(255, 255, 255, 0.025);
    --rr-quiz-plaque-border: rgba(255, 255, 255, 0.075);
    --rr-quiz-plaque-radius: 12px;
    --rr-quiz-plaque-icon-1: #ffffff;
    --rr-quiz-plaque-icon-2: #95989d;
    --rr-quiz-plaque-title: #eeeeef;
    --rr-quiz-plaque-text: #85888e;
    --rr-quiz-panel-bg-1: rgba(29, 29, 33, 0.93);
    --rr-quiz-panel-bg-2: rgba(8, 8, 9, 0.98);
    --rr-quiz-panel-radius: 18px;



    position: relative;



    width: 100%;

    min-width: 0;



    overflow: hidden;

    isolation: isolate;



    color: var(--rr-quiz-white);



    background:

        radial-gradient(

            circle at 50% -15%,

            rgba(255, 255, 255, var(--rr-shine-alpha, 0.075)),

            transparent 36%

        ),

        linear-gradient(145deg, var(--rr-bg-1, #111113) 0%, var(--rr-bg-2, #070708) 52%, var(--rr-bg-3, #030303) 100%);



    border: 1px solid var(--rr-border-color, rgba(255, 255, 255, 0.09));

    border-radius: var(--rr-radius, 22px);



    box-shadow:

        0 28px 70px rgba(0, 0, 0, 0.42),

        inset 0 1px 0 rgba(255, 255, 255, 0.055);



    font-family: inherit;

}



.rr-quiz,

.rr-quiz * {

    box-sizing: border-box;

}



.rr-quiz button,

.rr-quiz input,

.rr-quiz select {

    font: inherit;

}



.rr-quiz__inner {

    position: relative;

    z-index: 2;



    padding: clamp(22px, 3.5vw, 42px);

}



/* =========================================================

   ФОНОВОЕ СВЕЧЕНИЕ

========================================================== */



.rr-quiz__glow {

    position: absolute;

    z-index: 0;



    width: 340px;

    height: 340px;



    pointer-events: none;

    border-radius: 50%;

    filter: blur(22px);

}



.rr-quiz__glow--left {

    top: -230px;

    left: -180px;



    background:

        radial-gradient(

            circle,

            rgba(255, 255, 255, var(--rr-shine-left-alpha, 0.12)),

            transparent 70%

        );

}



.rr-quiz__glow--right {

    right: -230px;

    bottom: -240px;



    background:

        radial-gradient(

            circle,

            rgba(140, 144, 153, var(--rr-shine-right-alpha, 0.09)),

            transparent 70%

        );

}



/* =========================================================

   КОМПОЗИЦИЯ

========================================================== */



.rr-quiz__layout {

    display: grid;

    grid-template-columns:

        minmax(280px, 0.72fr)

        minmax(0, 1.28fr);



    gap: clamp(20px, 3vw, 34px);

    align-items: stretch;

}



/* =========================================================

   ЛЕВАЯ ЧАСТЬ

========================================================== */



.rr-quiz__intro {

    display: flex;

    flex-direction: column;



    min-width: 0;

    padding: clamp(18px, 2.5vw, 27px);



    background: transparent;



    border: 1px solid var(--rr-quiz-border);

    border-radius: 18px;



    box-shadow:

        inset 0 1px 0 rgba(255, 255, 255, 0.05),

        0 20px 45px rgba(0, 0, 0, 0.25);

}



.rr-quiz__label {

    display: flex;

    align-items: center;

    gap: 10px;



    margin-bottom: 12px;



    color: var(--rr-quiz-silver);

    font-size: 12px;

    font-weight: 600;

    line-height: 1;

    letter-spacing: 0.18em;

    text-transform: uppercase;

}



.rr-quiz__label > span {

    width: 28px;

    height: 1px;



    background:

        linear-gradient(

            90deg,

            #ffffff,

            transparent

        );

}



.rr-quiz__title {

    margin: 0;



    color: var(--rr-quiz-white);

    font-size: clamp(28px, 3.4vw, 44px);

    font-weight: 400;

    line-height: 1.04;

    letter-spacing: -0.05em;

}



.rr-quiz__title strong {

    display: block;



    color: transparent;

    font-weight: 500;



    background:

        linear-gradient(

            90deg,

            #ffffff,

            #a2a4a9 52%,

            #e7e7e8

        );



    -webkit-background-clip: text;

    background-clip: text;

}



.rr-quiz__description {

    margin: 15px 0 0;



    color: var(--rr-quiz-muted);

    font-size: 15px;

    line-height: 1.65;

}



.rr-quiz__benefits {

    display: grid;

    gap: 10px;



    margin-top: 24px;

}



.rr-quiz__benefit {

    display: grid;

    grid-template-columns: auto minmax(0, 1fr);

    gap: 11px;

    align-items: start;



    padding: 13px;



    background: var(--rr-quiz-plaque-bg, rgba(255, 255, 255, 0.025));

    border: 1px solid var(--rr-quiz-plaque-border, rgba(255, 255, 255, 0.075));

    border-radius: var(--rr-quiz-plaque-radius, 12px);

}



.rr-quiz__benefit-icon {

    display: flex;

    align-items: center;

    justify-content: center;



    width: 28px;

    height: 28px;



    color: #080808;



    background:

        linear-gradient(

            145deg,

            var(--rr-quiz-plaque-icon-1, #ffffff),

            var(--rr-quiz-plaque-icon-2, #95989d)

        );



    border-radius: 50%;

}



.rr-quiz__benefit-icon svg {

    width: 14px;

    height: 14px;



    fill: none;

    stroke: currentColor;

    stroke-width: 2.3;

    stroke-linecap: round;

    stroke-linejoin: round;

}



.rr-quiz__benefit strong {

    display: block;



    margin-bottom: 4px;



    color: var(--rr-quiz-plaque-title, #eeeeef);

    font-size: 15px;

    font-weight: 500;

    line-height: 1.35;

}



.rr-quiz__benefit p {

    margin: 0;



    color: var(--rr-quiz-plaque-text, #85888e);

    font-size: 12px;

    line-height: 1.5;

}



.rr-quiz__privacy-note {

    display: flex;

    align-items: center;

    gap: 9px;



    margin-top: auto;

    padding-top: 22px;



    color: #74777d;

    font-size: 11px;

    line-height: 1.45;

}



.rr-quiz__privacy-note svg {

    flex: 0 0 20px;



    width: 20px;

    height: 20px;



    fill: none;

    stroke: #97999f;

    stroke-width: 1.5;

    stroke-linecap: round;

    stroke-linejoin: round;

}



/* =========================================================

   ПАНЕЛЬ КВИЗА

========================================================== */



.rr-quiz__panel {

    position: relative;



    min-width: 0;

    min-height: 620px;

    padding: clamp(18px, 2.5vw, 26px);



    background:

        linear-gradient(

            145deg,

            var(--rr-quiz-panel-bg-1, rgba(29, 29, 33, 0.93)),

            var(--rr-quiz-panel-bg-2, rgba(8, 8, 9, 0.98))

        );



    border: 1px solid var(--rr-quiz-border);

    border-radius: var(--rr-quiz-panel-radius, 18px);



    box-shadow:

        inset 0 1px 0 rgba(255, 255, 255, 0.05),

        0 22px 50px rgba(0, 0, 0, 0.28);

}



/* =========================================================

   ПРОГРЕСС

========================================================== */



.rr-quiz__progress {

    margin-bottom: 24px;

}



.rr-quiz__progress-top {

    display: flex;

    align-items: center;

    justify-content: space-between;



    margin-bottom: 9px;

}



.rr-quiz__progress-top span {

    color: #a7a9ae;

    font-size: 9px;

    font-weight: 600;

    line-height: 1;

    letter-spacing: 0.12em;

    text-transform: uppercase;

}



.rr-quiz__progress-top strong {

    color: #e8e8e9;

    font-size: 10px;

    font-weight: 500;

}



.rr-quiz__progress-line {

    height: 4px;

    overflow: hidden;



    background: rgba(255, 255, 255, 0.07);

    border-radius: 999px;

}



.rr-quiz__progress-line span {

    display: block;



    width: 20%;

    height: 100%;



    background:

        linear-gradient(

            90deg,

            #ffffff,

            #8f9297

        );



    border-radius: inherit;



    transition:

        width 0.45s

        cubic-bezier(0.22, 1, 0.36, 1);

}



/* =========================================================

   ШАГИ

========================================================== */



.rr-quiz__form {

    display: flex;

    flex-direction: column;

    min-height: 520px;

}



.rr-quiz__step {

    display: none;

}



.rr-quiz__step.is-active {

    display: block;



    animation:

        rrQuizStepIn

        0.4s

        cubic-bezier(0.22, 1, 0.36, 1);

}



@keyframes rrQuizStepIn {

    from {

        opacity: 0;

        transform: translateX(14px);

    }



    to {

        opacity: 1;

        transform: translateX(0);

    }

}



.rr-quiz__step-heading {

    display: flex;

    align-items: flex-start;

    gap: 13px;



    margin-bottom: 20px;

}



.rr-quiz__step-number {

    display: flex;

    flex: 0 0 38px;

    align-items: center;

    justify-content: center;



    width: 38px;

    height: 38px;



    color: #080808;

    font-size: 8px;

    font-weight: 700;

    letter-spacing: 0.12em;



    background:

        linear-gradient(

            145deg,

            #ffffff,

            #96999e

        );



    border-radius: 11px;

}



.rr-quiz__step-heading small {

    display: block;



    margin-bottom: 5px;



    color: #86898f;

    font-size: 8px;

    font-weight: 600;

    line-height: 1;

    letter-spacing: 0.14em;

    text-transform: uppercase;

}



.rr-quiz__step-heading h3 {

    margin: 0;



    color: #f1f1f2;

    font-size: clamp(20px, 2.4vw, 29px);

    font-weight: 450;

    line-height: 1.1;

    letter-spacing: -0.04em;

}



/* =========================================================

   ВЫБОР СТРАНЫ

========================================================== */



.rr-quiz__choice-grid {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 9px;

}



.rr-quiz__choice {

    position: relative;



    display: grid;

    grid-template-columns: auto minmax(0, 1fr) auto;

    gap: 11px;

    align-items: center;



    min-width: 0;

    min-height: 72px;

    padding: 12px;



    color: #96989e;

    cursor: pointer;



    background: rgba(255, 255, 255, 0.025);

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 13px;



    transition:

        color 0.25s ease,

        background 0.25s ease,

        border-color 0.25s ease,

        transform 0.25s ease;

}



.rr-quiz__choice:hover {

    color: #ffffff;



    background: rgba(255, 255, 255, 0.045);

    transform: translateY(-1px);

}



.rr-quiz__choice.is-active {

    color: #ffffff;



    background:

        linear-gradient(

            145deg,

            rgba(255, 255, 255, 0.11),

            rgba(255, 255, 255, 0.03)

        );



    border-color: rgba(255, 255, 255, 0.2);

}



.rr-quiz__choice input,

.rr-quiz__budget input,

.rr-quiz__engine input,

.rr-quiz__time input,

.rr-quiz__contact-method input {

    position: absolute;



    opacity: 0;

    pointer-events: none;

}



.rr-quiz__choice-code {

    display: flex;

    flex: 0 0 38px;

    align-items: center;

    justify-content: center;



    width: 38px;

    height: 38px;



    color: #d4d5d7;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 0.08em;



    background:

        linear-gradient(

            145deg,

            rgba(255, 255, 255, 0.11),

            rgba(255, 255, 255, 0.025)

        );



    border: 1px solid rgba(255, 255, 255, 0.11);

    border-radius: 10px;

}



.rr-quiz__choice-content {

    display: flex;

    flex-direction: column;



    min-width: 0;

}



.rr-quiz__choice-content strong {

    color: inherit;

    font-size: 15px;

    font-weight: 500;

    line-height: 1.3;

}



.rr-quiz__choice-content small {

    margin-top: 3px;



    color: #73767c;

    font-size: 10px;

    line-height: 1.35;

}



.rr-quiz__choice-check {

    display: flex;

    align-items: center;

    justify-content: center;



    width: 19px;

    height: 19px;



    color: #080808;

    opacity: 0;



    background:

        linear-gradient(

            145deg,

            #ffffff,

            #95989d

        );



    border-radius: 50%;



    transform: scale(0.7);



    transition:

        opacity 0.25s ease,

        transform 0.25s ease;

}



.rr-quiz__choice.is-active

.rr-quiz__choice-check {

    opacity: 1;

    transform: scale(1);

}



.rr-quiz__choice-check svg {

    width: 11px;

    height: 11px;



    fill: none;

    stroke: currentColor;

    stroke-width: 2.5;

    stroke-linecap: round;

    stroke-linejoin: round;

}



/* =========================================================

   ПОЛЯ

========================================================== */



.rr-quiz__fields {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 15px;

}



.rr-quiz__field {

    min-width: 0;

}



.rr-quiz__field--full {

    grid-column: 1 / -1;

}



.rr-quiz__field label,

.rr-quiz__field-title {

    display: block;



    margin-bottom: 8px;



    color: #d5d6d8;

    font-size: 10px;

    font-weight: 500;

    line-height: 1.35;

}



.rr-quiz__input-wrap,

.rr-quiz__select-wrap {

    position: relative;

}



.rr-quiz__input-wrap input,

.rr-quiz__select-wrap select {

    width: 100%;

    height: 48px;



    color: #eeeeef;

    font-size: 11px;



    background:

        linear-gradient(

            145deg,

            rgba(255, 255, 255, 0.055),

            rgba(255, 255, 255, 0.018)

        );



    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 11px;

    outline: none;



    transition:

        border-color 0.25s ease,

        background 0.25s ease,

        box-shadow 0.25s ease;

}



.rr-quiz__input-wrap input {

    padding: 0 14px 0 43px;

}



.rr-quiz__select-wrap select {

    padding: 0 40px 0 14px;



    cursor: pointer;

    appearance: none;

    -webkit-appearance: none;

}



.rr-quiz__input-wrap input::placeholder {

    color: #66696f;

}



.rr-quiz__input-wrap input:focus,

.rr-quiz__select-wrap select:focus {

    background: rgba(255, 255, 255, 0.06);

    border-color: rgba(255, 255, 255, 0.28);



    box-shadow:

        0 0 0 3px rgba(255, 255, 255, 0.035);

}



.rr-quiz__input-wrap input.is-error,

.rr-quiz__select-wrap select.is-error {

    border-color: rgba(255, 165, 165, 0.55);

}



.rr-quiz__select-wrap select option {

    color: #f4f4f4;

    background: #111113;

}



.rr-quiz__input-icon {

    position: absolute;

    top: 50%;

    left: 14px;



    display: flex;

    align-items: center;

    justify-content: center;



    color: #8f9196;

    pointer-events: none;



    transform: translateY(-50%);

}



.rr-quiz__input-icon svg {

    width: 18px;

    height: 18px;



    fill: none;

    stroke: currentColor;

    stroke-width: 1.5;

    stroke-linecap: round;

    stroke-linejoin: round;

}



.rr-quiz__select-arrow {

    position: absolute;

    top: 50%;

    right: 13px;



    display: flex;

    align-items: center;

    justify-content: center;



    color: #8f9196;

    pointer-events: none;



    transform: translateY(-50%);

}



.rr-quiz__select-arrow svg {

    width: 16px;

    height: 16px;



    fill: none;

    stroke: currentColor;

    stroke-width: 1.6;

    stroke-linecap: round;

    stroke-linejoin: round;

}



/* =========================================================

   БЮДЖЕТ

========================================================== */



.rr-quiz__budget-grid {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 8px;

}



.rr-quiz__budget,

.rr-quiz__engine,

.rr-quiz__time,

.rr-quiz__contact-method {

    position: relative;



    cursor: pointer;

}



.rr-quiz__budget > span,

.rr-quiz__engine > span,

.rr-quiz__time > span,

.rr-quiz__contact-method > span {

    display: flex;

    align-items: center;

    justify-content: center;



    min-height: 43px;

    padding: 9px 11px;



    color: #85888e;

    font-size: 10px;

    font-weight: 500;

    line-height: 1.3;

    text-align: center;



    background: rgba(255, 255, 255, 0.025);

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 10px;



    transition:

        color 0.25s ease,

        background 0.25s ease,

        border-color 0.25s ease;

}



.rr-quiz__budget:hover > span,

.rr-quiz__engine:hover > span,

.rr-quiz__time:hover > span,

.rr-quiz__contact-method:hover > span {

    color: #eeeeef;

}



.rr-quiz__budget.is-active > span,

.rr-quiz__engine.is-active > span,

.rr-quiz__time.is-active > span,

.rr-quiz__contact-method.is-active > span {

    color: #ffffff;



    background:

        linear-gradient(

            145deg,

            rgba(255, 255, 255, 0.12),

            rgba(255, 255, 255, 0.035)

        );



    border-color: rgba(255, 255, 255, 0.18);

}



.rr-quiz__field--engine {

    margin-top: 20px;

}



.rr-quiz__engine-grid {

    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 7px;

}



/* =========================================================

   ВРЕМЯ ПОКУПКИ

========================================================== */



.rr-quiz__time-grid {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 8px;

}



/* =========================================================

   ФИНАЛЬНЫЙ ШАГ

========================================================== */



.rr-quiz__final-layout {

    display: grid;

    grid-template-columns: minmax(0, 1.08fr) minmax(210px, 0.92fr);

    gap: 13px;

}



.rr-quiz__contact-fields {

    display: grid;

    gap: 13px;

}



.rr-quiz__contact-methods {

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 6px;

}



.rr-quiz__summary {

    padding: 15px;



    background:

        linear-gradient(

            145deg,

            rgba(255, 255, 255, 0.07),

            rgba(255, 255, 255, 0.02)

        );



    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 13px;

}



.rr-quiz__summary-label {

    margin-bottom: 11px;



    color: #92949a;

    font-size: 8px;

    font-weight: 600;

    letter-spacing: 0.14em;

    text-transform: uppercase;

}



.rr-quiz__summary-items {

    display: grid;

    gap: 9px;

}



.rr-quiz__summary-items > div {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 12px;



    padding-bottom: 8px;



    border-bottom: 1px solid rgba(255, 255, 255, 0.07);

}



.rr-quiz__summary-items > div:last-child {

    padding-bottom: 0;

    border-bottom: 0;

}



.rr-quiz__summary-items span {

    color: #777a80;

    font-size: 8px;

    line-height: 1.4;

}



.rr-quiz__summary-items strong {

    color: #e7e7e8;

    font-size: 9px;

    font-weight: 500;

    line-height: 1.4;

    text-align: right;

}



.rr-quiz__consent {

    position: relative;



    display: grid;

    grid-template-columns: auto minmax(0, 1fr);

    gap: 9px;

    align-items: start;



    margin-top: 15px;



    cursor: pointer;

}



.rr-quiz__consent input {

    position: absolute;



    opacity: 0;

    pointer-events: none;

}



.rr-quiz__consent-box {

    display: flex;

    align-items: center;

    justify-content: center;



    width: 19px;

    height: 19px;



    color: #080808;



    background: rgba(255, 255, 255, 0.04);

    border: 1px solid rgba(255, 255, 255, 0.15);

    border-radius: 5px;

}



.rr-quiz__consent-box svg {

    width: 11px;

    height: 11px;



    opacity: 0;



    fill: none;

    stroke: currentColor;

    stroke-width: 2.5;

    stroke-linecap: round;

    stroke-linejoin: round;

}



.rr-quiz__consent input:checked +

.rr-quiz__consent-box {

    background:

        linear-gradient(

            145deg,

            #ffffff,

            #96999e

        );

}



.rr-quiz__consent input:checked +

.rr-quiz__consent-box svg {

    opacity: 1;

}



.rr-quiz__consent-text {

    color: #777a80;

    font-size: 8px;

    line-height: 1.5;

}



.rr-quiz__consent-text a {

    color: #c9cace;

    text-decoration: underline;

    text-underline-offset: 2px;

}



/* =========================================================

   СООБЩЕНИЕ

========================================================== */



.rr-quiz__message {

    display: none;



    margin-top: 14px;

    padding: 10px 12px;



    color: #d6d7d9;

    font-size: 9px;

    line-height: 1.45;



    background: rgba(255, 255, 255, 0.045);

    border: 1px solid rgba(255, 255, 255, 0.11);

    border-radius: 9px;

}



.rr-quiz__message.is-visible {

    display: block;

}



.rr-quiz__message.is-error {

    color: #f0c2c2;

    border-color: rgba(255, 165, 165, 0.28);

}



/* =========================================================

   НАВИГАЦИЯ

========================================================== */



.rr-quiz__navigation {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;



    margin-top: auto;

    padding-top: 22px;

}



.rr-quiz__back,

.rr-quiz__next,

.rr-quiz__submit {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;



    min-height: 46px;

    padding: 11px 16px;



    font-size: 10px;

    font-weight: 600;

    line-height: 1.3;

    cursor: pointer;



    border-radius: 10px;



    transition:

        transform 0.25s ease,

        background 0.25s ease,

        border-color 0.25s ease,

        opacity 0.25s ease;

}



.rr-quiz__back {

    color: #c6c7ca;



    background: rgba(255, 255, 255, 0.035);

    border: 1px solid rgba(255, 255, 255, 0.1);

}



.rr-quiz__back:disabled {

    opacity: 0.3;

    cursor: default;

}



.rr-quiz__next,

.rr-quiz__submit {

    margin-left: auto;



    color: #080808;



    background:

        linear-gradient(

            135deg,

            #ffffff,

            #9da0a5

        );



    border: 0;



    box-shadow:

        0 11px 27px rgba(255, 255, 255, 0.08),

        inset 0 1px 0 rgba(255, 255, 255, 0.75);

}



.rr-quiz__submit {

    display: none;

}



.rr-quiz__navigation.is-final

.rr-quiz__next {

    display: none;

}



.rr-quiz__navigation.is-final

.rr-quiz__submit {

    display: inline-flex;

}



.rr-quiz__back:not(:disabled):hover,

.rr-quiz__next:hover,

.rr-quiz__submit:hover {

    transform: translateY(-2px);

}



.rr-quiz__navigation svg {

    width: 16px;

    height: 16px;



    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;

    stroke-linejoin: round;

}



/* =========================================================

   УСПЕШНАЯ ОТПРАВКА

========================================================== */



.rr-quiz__success {

    display: none;



    min-height: 520px;



    flex-direction: column;

    align-items: center;

    justify-content: center;



    padding: 30px;



    text-align: center;

}



.rr-quiz__success.is-visible {

    display: flex;

}



.rr-quiz__success-icon {

    display: flex;

    align-items: center;

    justify-content: center;



    width: 65px;

    height: 65px;



    color: #080808;



    background:

        linear-gradient(

            145deg,

            #ffffff,

            #999ca1

        );



    border-radius: 50%;



    box-shadow:

        0 18px 45px rgba(255, 255, 255, 0.1);

}



.rr-quiz__success-icon svg {

    width: 30px;

    height: 30px;



    fill: none;

    stroke: currentColor;

    stroke-width: 2.2;

    stroke-linecap: round;

    stroke-linejoin: round;

}



.rr-quiz__success > span {

    margin-top: 19px;



    color: #97999f;

    font-size: 8px;

    font-weight: 600;

    letter-spacing: 0.15em;

    text-transform: uppercase;

}



.rr-quiz__success h3 {

    max-width: 470px;

    margin: 9px 0 0;



    color: #f3f3f3;

    font-size: clamp(25px, 3.2vw, 38px);

    font-weight: 450;

    line-height: 1.05;

    letter-spacing: -0.045em;

}



.rr-quiz__success p {

    max-width: 450px;

    margin: 13px 0 0;



    color: #8d9095;

    font-size: 12px;

    line-height: 1.6;

}



.rr-quiz__restart {

    margin-top: 20px;

    padding: 11px 15px;



    color: #dddddf;

    font-size: 10px;

    font-weight: 500;

    cursor: pointer;



    background: rgba(255, 255, 255, 0.045);

    border: 1px solid rgba(255, 255, 255, 0.12);

    border-radius: 9px;

}



/* =========================================================

   АДАПТАЦИЯ

========================================================== */



@media (max-width: 1050px) {

    .rr-quiz__layout {

        grid-template-columns: 1fr;

    }



    .rr-quiz__privacy-note {

        margin-top: 20px;

    }



    .rr-quiz__benefits {

        grid-template-columns: repeat(3, minmax(0, 1fr));

    }

}



@media (max-width: 767px) {

    .rr-quiz {

        border-radius: 18px;

    }



    .rr-quiz__inner {

        padding: 18px;

    }



    .rr-quiz__title {

        font-size: 30px;

    }



    .rr-quiz__title strong {

        display: inline;

    }



    .rr-quiz__benefits {

        grid-template-columns: 1fr;

    }



    .rr-quiz__panel {

        min-height: 0;

        padding: 17px;

    }



    .rr-quiz__form {

        min-height: 510px;

    }



    .rr-quiz__choice-grid,

    .rr-quiz__fields,

    .rr-quiz__budget-grid,

    .rr-quiz__time-grid,

    .rr-quiz__final-layout {

        grid-template-columns: 1fr;

    }



    .rr-quiz__field--full {

        grid-column: auto;

    }



    .rr-quiz__engine-grid {

        grid-template-columns: repeat(2, minmax(0, 1fr));

    }



    .rr-quiz__contact-methods {

        grid-template-columns: repeat(3, minmax(0, 1fr));

    }

}



@media (max-width: 430px) {

    .rr-quiz__inner {

        padding: 15px;

    }



    .rr-quiz__intro,

    .rr-quiz__panel {

        padding: 15px;

        border-radius: 15px;

    }



    .rr-quiz__choice-grid {

        gap: 7px;

    }



    .rr-quiz__choice {

        min-height: 66px;

        padding: 10px;

    }



    .rr-quiz__choice-code {

        width: 34px;

        height: 34px;

        flex-basis: 34px;

    }



    .rr-quiz__step-heading h3 {

        font-size: 21px;

    }



    .rr-quiz__navigation {

        display: grid;

        grid-template-columns: auto minmax(0, 1fr);

    }



    .rr-quiz__next,

    .rr-quiz__submit {

        width: 100%;

    }

}



@media (prefers-reduced-motion: reduce) {

    .rr-quiz *,

    .rr-quiz *::before,

    .rr-quiz *::after {

        transition-duration: 0.01ms !important;

        animation-duration: 0.01ms !important;

    }

}




/* --- intro dual-bg (Style: Intro · двойной фон) --- */
.rr-quiz__intro {
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate;
    background: transparent !important;
}
.rr-quiz__intro-photo {
    position: absolute;
    z-index: 0;
    inset: 0;
    background-image: url('https://ai-assistent.site/wp-content/uploads/2026/07/avto-rr/bg-lead-bmw-black.png');
    background-position: center 35%;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(1.6px) saturate(var(--rr-quiz-intro-saturate, 0.95)) brightness(var(--rr-quiz-intro-brightness, 0.85));
    transform: scale(1.06);
    pointer-events: none;
}
.rr-quiz__intro-shade {
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            165deg,
            var(--rr-quiz-shade-1, rgba(8, 8, 10, 0.42)) 0%,
            var(--rr-quiz-shade-2, rgba(6, 6, 8, 0.55)) 48%,
            var(--rr-quiz-shade-3, rgba(4, 4, 5, 0.68)) 100%
        ),
        radial-gradient(circle at 78% 30%, var(--rr-quiz-shade-accent, rgba(220, 40, 40, 0.08)), transparent 48%);
}
.rr-quiz__intro > .rr-quiz__label,
.rr-quiz__intro > .rr-quiz__title,
.rr-quiz__intro > .rr-quiz__description,
.rr-quiz__intro > .rr-quiz__benefits,
.rr-quiz__intro > .rr-quiz__ai-cta,
.rr-quiz__intro > .rr-quiz__privacy-note,
.rr-quiz__intro > *:not(.rr-quiz__intro-photo):not(.rr-quiz__intro-shade) {
    position: relative;
    z-index: 2;
}
.rr-quiz__intro .rr-quiz__title,
.rr-quiz__intro .rr-quiz__description,
.rr-quiz__intro .rr-quiz__benefit strong,
.rr-quiz__intro .rr-quiz__benefit p,
.rr-quiz__intro .rr-quiz__label {
    text-shadow: 0 1px 10px rgba(0,0,0,0.55);
}

/* --- AI chat CTA (left intro only) --- */
.rr-quiz__ai-cta {
    margin-top: 18px;
}

.rr-quiz__ai-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    background: linear-gradient(145deg, #fff8e6, #f3df9b);
    border: 1px solid rgba(201, 162, 39, 0.65);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.rr-quiz__ai-cta-btn:hover {
    color: #0f172a;
    background: linear-gradient(145deg, #fffdf7, #ffe9a8);
    border-color: #c9a227;
    transform: translateY(-1px);
}
