.od-quiz {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000001;
    font-family: "DINRoundPro", Arial, sans-serif;
}
.od-quiz.is-active { display: block; }
.od-quiz__overlay { position: absolute; inset: 0; background: rgba(24, 49, 78, .72); backdrop-filter: blur(3px); }
.od-quiz__dialog {
    position: relative;
    z-index: 2;
    width: calc(100% - 32px);
    max-width: 760px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    margin: 20px auto;
    padding: 34px 42px 32px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}
.od-quiz__close {
    position: absolute;
    z-index: 4;
    top: 14px;
    right: 16px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f2f5f8;
    color: #315b81;
    font: 32px/36px Arial, sans-serif;
    cursor: pointer;
}
.od-quiz__close:hover { background: #e8eef4; }
.od-quiz__header { padding-right: 24px; }
.od-quiz__badge { display: inline-block; padding: 7px 12px; border-radius: 999px; background: #fff0e4; color: #ef7100; font: 700 13px/1.2 Arial, sans-serif; text-transform: uppercase; letter-spacing: .03em; }
.od-quiz__title { margin: 14px 0 7px; color: #255a86; font-size: 30px; line-height: 1.16; }
.od-quiz__subtitle { margin: 0 0 18px; color: #647789; font: 16px/1.45 Arial, sans-serif; }
.od-quiz__progress { height: 7px; overflow: hidden; border-radius: 10px; background: #eaf0f5; }
.od-quiz__progress-bar { display: block; width: 16.666%; height: 100%; border-radius: inherit; background: #ff7100; transition: width .25s ease; }
.od-quiz__counter { margin-top: 7px; text-align: right; color: #8091a1; font: 13px/1 Arial, sans-serif; }
.od-quiz__step { display: none; padding-top: 18px; }
.od-quiz__step.is-active { display: block; }
.od-quiz__question { margin: 0 0 14px; color: #243f58; font-size: 22px; line-height: 1.25; }
.od-quiz__hint { margin: -7px 0 14px; color: #8091a1; font: 14px/1.35 Arial, sans-serif; }
.od-quiz__options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.od-quiz__options--3 { grid-template-columns: repeat(3, 1fr); }
.od-quiz__options--days { grid-template-columns: repeat(2, 1fr); }
.od-quiz__option { display: block; margin: 0; cursor: pointer; }
.od-quiz__option input { position: absolute; opacity: 0; pointer-events: none; }
.od-quiz__option span {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 66px;
    padding: 13px 16px 13px 46px;
    border: 2px solid #e5edf3;
    border-radius: 14px;
    box-sizing: border-box;
    background: #fff;
    color: #31536f;
    font: 600 16px/1.25 Arial, sans-serif;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.od-quiz__option span:before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    width: 19px;
    height: 19px;
    margin-top: -10px;
    border: 2px solid #b9c8d5;
    border-radius: 50%;
    box-sizing: border-box;
    background: #fff;
}
.od-quiz__option input[type="checkbox"] + span:before { border-radius: 5px; }
.od-quiz__option input:checked + span { border-color: #ff7100; background: #fff8f2; box-shadow: 0 4px 18px rgba(255, 113, 0, .08); }
.od-quiz__option input:checked + span:before { border-color: #ff7100; background: #ff7100; box-shadow: inset 0 0 0 4px #fff; }
.od-quiz__option input[type="checkbox"]:checked + span:before { box-shadow: none; }
.od-quiz__option input[type="checkbox"]:checked + span:after { content: '✓'; position: absolute; left: 19px; top: 50%; margin-top: -9px; color: #fff; font: 700 13px/18px Arial, sans-serif; }
.od-quiz__option small { margin-top: 3px; color: #7b8c9b; font: 13px/1.25 Arial, sans-serif; }
.od-quiz__option--accent span { border-color: #f2d9c2; }
.od-quiz__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.od-quiz__field { display: block; margin: 0; color: #405d75; font: 600 14px/1.25 Arial, sans-serif; }
.od-quiz__field:last-child { grid-column: 1 / -1; }
.od-quiz__field > span { display: block; margin-bottom: 6px; }
.od-quiz__field input {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 2px solid #e1eaf0;
    border-radius: 12px;
    box-sizing: border-box;
    outline: 0;
    background: #fff;
    color: #263f54;
    font: 16px Arial, sans-serif;
}
.od-quiz__field input:focus { border-color: #8eb6d6; }
.od-quiz__field input.is-error { border-color: #d94b4b; }
.od-quiz__field small { display: block; margin-top: 5px; color: #8a99a6; font: 12px/1.3 Arial, sans-serif; }
.od-quiz__consent { display: flex; gap: 9px; align-items: flex-start; margin-top: 14px; color: #6c7d8b; font: 12px/1.4 Arial, sans-serif; cursor: pointer; }
.od-quiz__consent input { margin: 2px 0 0; flex: 0 0 auto; }
.od-quiz__consent a { color: #ef7100; text-decoration: underline; }
.od-quiz__error { min-height: 18px; margin-top: 8px; color: #c83d3d; font: 13px/1.3 Arial, sans-serif; }
.od-quiz__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.od-quiz__btn {
    min-height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font: 700 15px/1 Arial, sans-serif;
    transition: background .15s, opacity .15s, transform .15s;
}
.od-quiz__btn:hover { transform: translateY(-1px); }
.od-quiz__btn:disabled { opacity: .6; cursor: default; transform: none; }
.od-quiz__btn--back { background: #edf2f6; color: #42647f; }
.od-quiz__btn--next, .od-quiz__btn--submit { background: #ff7100; color: #fff; }
.od-quiz__btn--next:hover, .od-quiz__btn--submit:hover { background: #23619c; }
.od-quiz__btn--submit { min-width: 275px; }
.od-quiz__hp { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
body.od-quiz-lock { overflow: hidden; }
.od-quiz__result { padding: 28px 4px 8px; text-align: center; }
.od-quiz__result[hidden] { display: none !important; }
.od-quiz__success-icon { display: flex; width: 64px; height: 64px; margin: 0 auto 14px; align-items: center; justify-content: center; border-radius: 50%; background: #e9f8ec; color: #2d9342; font: 700 34px Arial, sans-serif; }
.od-quiz__result h3 { margin: 0 0 14px; color: #255a86; font-size: 26px; }
.od-quiz__result-text { color: #425d73; font: 15px/1.6 Arial, sans-serif; text-align: left; }
.od-quiz__result-text p { margin: 0 0 12px; }
.od-quiz__result-text strong { color: #2d526f; }
.od-quiz__result-highlight { padding: 13px 15px; border-radius: 12px; background: #fff5ec; border-left: 4px solid #ff7100; }

@media (max-width: 767px) {
    .od-quiz__dialog { width: calc(100% - 16px); max-height: calc(100vh - 16px); margin: 8px auto; padding: 24px 16px 18px; border-radius: 18px; }
    .od-quiz__close { top: 9px; right: 9px; width: 35px; height: 35px; font-size: 28px; }
    .od-quiz__header { padding-right: 25px; }
    .od-quiz__badge { padding: 6px 9px; font-size: 10px; }
    .od-quiz__title { margin-top: 10px; font-size: 21px; line-height: 1.18; }
    .od-quiz__subtitle { margin-bottom: 13px; font-size: 13px; }
    .od-quiz__step { padding-top: 13px; }
    .od-quiz__question { margin-bottom: 11px; font-size: 18px; }
    .od-quiz__options, .od-quiz__options--3, .od-quiz__options--days { grid-template-columns: 1fr; gap: 7px; }
    .od-quiz__option span { min-height: 52px; padding: 10px 12px 10px 42px; border-radius: 11px; font-size: 14px; }
    .od-quiz__option span:before { left: 13px; }
    .od-quiz__option input[type="checkbox"]:checked + span:after { left: 17px; }
    .od-quiz__option small { font-size: 11px; }
    .od-quiz__fields { grid-template-columns: 1fr; gap: 9px; }
    .od-quiz__field:last-child { grid-column: auto; }
    .od-quiz__field input { height: 45px; font-size: 15px; }
    .od-quiz__actions { margin-top: 8px; }
    .od-quiz__btn { flex: 1 1 auto; min-height: 45px; padding: 0 13px; font-size: 13px; }
    .od-quiz__btn--submit { min-width: 0; }
    .od-quiz__result { padding-top: 22px; }
    .od-quiz__result h3 { font-size: 22px; }
}
