:root {
    --dq-accent: #ea580c;
    --dq-accent-soft: #fb923c;
    --dq-accent-dark: #c2410c;
    --dq-text: #121212;
    --dq-muted: #777;
    --dq-border: #e0e0e0;
    --dq-panel: #f4f4f4;
}

.dq-root, .dq-root * { box-sizing: border-box; }
.dq-root { position: relative; z-index: 2147483000; font-family: Inter, Arial, Helvetica, sans-serif; color: var(--dq-text); }
.dq-root button, .dq-root input { font: inherit; }
.dq-root button { -webkit-tap-highlight-color: transparent; }

@keyframes dq-teaser-slide-in {
    from { transform: translateX(-140%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes dq-teaser-shine {
    0%, 45% { left: -75%; }
    65%, 100% { left: 125%; }
}
.dq-teaser-wrap {
    /* bottom-left: не перекрывает липкую шапку сверху и плавающий чат-виджет снизу справа */
    position: fixed; bottom: 24px; left: 24px; z-index: 2147483001;
    width: max-content; max-width: min(300px, calc(100vw - 60px));
    border-radius: 16px; overflow: visible;
    box-shadow: 0 8px 20px rgba(220,38,38,.4);
    animation: dq-teaser-slide-in .6s cubic-bezier(.16,1,.3,1) both;
}
.dq-teaser {
    position: relative; overflow: hidden; width: 100%; min-width: 0;
    border: 0; border-radius: 16px; background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff; display: flex; align-items: center; gap: 10px; padding: 10px 30px 10px 14px;
    cursor: pointer; text-align: left;
}
.dq-teaser::after {
    content: ""; position: absolute; top: 0; left: -75%; width: 45%; height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255,255,255,.55), transparent);
    animation: dq-teaser-shine 3.6s ease-in-out infinite;
    animation-delay: 1s;
}
.dq-teaser small { display: block; font-size: 9px; font-weight: 800; letter-spacing: .5px; line-height: 1.25; opacity: .9; text-transform: uppercase; }
.dq-teaser strong { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.25; font-weight: 700; }
.dq-teaser__icon { width: 22px; height: 22px; border: 1px solid rgba(255,255,255,.65); border-radius: 6px; display: grid; place-items: center; flex: 0 0 22px; font-size: 12px; }
.dq-teaser__text { position: relative; z-index: 1; min-width: 0; }
.dq-teaser__close {
    position: absolute; top: 4px; right: 4px; z-index: 2;
    width: 20px; height: 20px; border: 0; border-radius: 50%;
    background: transparent; color: #fff; font-size: 15px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.dq-teaser__close:hover { background: rgba(0,0,0,.15); }

.dq-overlay { position: fixed; inset: 0; z-index: 2147483002; background: rgba(0,0,0,.82); padding: clamp(10px, 4vh, 60px) clamp(8px, 4vw, 80px); overflow: auto; }
.dq-overlay[hidden], .dq-screen[hidden] { display: none !important; }
.dq-modal { position: relative; width: min(1200px, 100%); min-height: min(650px, calc(100vh - 80px)); margin: 0 auto; background: #fff; box-shadow: 0 28px 80px rgba(0,0,0,.35); overflow: visible; }
.dq-close { position: absolute; right: -28px; top: -34px; border: 0; background: transparent; color: #bbb; font-size: 40px; line-height: 1; cursor: pointer; z-index: 10; }

.dq-screen { min-height: inherit; }
.dq-screen--intro { display: grid; grid-template-columns: 42% 58%; }
.dq-intro__content { display: flex; flex-direction: column; min-height: inherit; background: #fff; }
.dq-brand { height: 70px; border-bottom: 1px solid #e7e7e7; display: flex; align-items: center; gap: 12px; padding: 0 32px; font-size: 16px; font-weight: 900; }
.dq-brand img { height: 36px; width: 36px; border-radius: .75rem; box-shadow: 0 4px 10px rgba(234,88,12,.15); }
.dq-brand span span { color: var(--dq-accent); }
.dq-intro__copy { padding: clamp(48px, 10vh, 110px) 32px 40px; }
.dq-intro__copy h2 { margin: 0 0 18px; font-size: clamp(31px, 3.1vw, 48px); line-height: 1.08; letter-spacing: -.7px; }
.dq-intro__copy p { margin: 0 0 22px; font-size: 18px; line-height: 1.45; color: #494949; }
.dq-primary { border: 0; border-radius: 999px; background: var(--dq-accent); color: #fff; min-height: 58px; padding: 0 32px; font-weight: 700; font-size: 18px; box-shadow: 0 6px 14px rgba(234,88,12,.25); cursor: pointer; }
.dq-primary:hover { background: var(--dq-accent-dark); }
.dq-intro__footer { margin-top: auto; padding: 24px 32px 28px; display: flex; justify-content: space-between; align-items: end; color: #999; }
.dq-intro__footer a { display: block; color: #111; text-decoration: none; font-size: 16px; }
.dq-intro__footer small { display: block; color: #666; margin-top: 3px; font-size: 10px; }
.dq-intro__visual { min-height: inherit; background: #dfe5e8; overflow: hidden; }
.dq-intro__visual img { width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; }

.dq-screen--quiz { display: grid; grid-template-columns: 1fr 260px; }
.dq-quiz__main { display: flex; min-width: 0; flex-direction: column; min-height: inherit; }
.dq-topline { height: 56px; display: flex; align-items: center; padding: 0 30px; border-bottom: 1px solid #e8e8e8; color: #555; font-size: 14px; }
.dq-question-wrap { padding: 14px 30px 24px; }
.dq-question { margin: 0 0 7px; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.15; }
.dq-question-hint { min-height: 31px; margin-bottom: 12px; font-size: 12px; font-weight: 700; color: #111; }
.dq-question-hint span { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--dq-accent); border-radius: 5px; padding: 4px 7px; }
.dq-options-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.dq-options { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }
.dq-option { min-height: 76px; display: flex; align-items: center; gap: 16px; padding: 15px 16px; border: 1px solid var(--dq-border); background: #fff; border-radius: 5px; cursor: pointer; text-align: left; font-size: 17px; line-height: 1.35; transition: border-color .18s, background .18s, transform .18s; }
.dq-option:hover { border-color: #b8b8b8; transform: translateY(-1px); }
.dq-option__input {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.dq-option__input:focus-visible ~ .dq-option__mark { outline: 2px solid var(--dq-accent); outline-offset: 2px; }
.dq-option__mark { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 5px; background: #e5e5e5; display: grid; place-items: center; color: #fff; font-size: 13px; }
.dq-option--radio .dq-option__mark { border-radius: 50%; }
.dq-option.is-selected { border-color: var(--dq-accent); background: #fff7ed; }
.dq-option.is-selected .dq-option__mark { background: var(--dq-accent); }
.dq-option__custom { flex: 1; border: 0; background: #f3f3f3; min-height: 42px; padding: 0 13px; font-size: 16px; outline: none; }
.dq-sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.dq-navigation { margin-top: auto; display: flex; justify-content: space-between; align-items: end; padding: 24px 30px 26px; }
.dq-step-counter { font-size: 14px; color: #555; }
.dq-dots { display: flex; gap: 5px; margin-top: 7px; }
.dq-dot { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--dq-accent); }
.dq-dot.is-active { background: var(--dq-accent); }
.dq-nav-actions { display: grid; grid-template-columns: 46px auto; gap: 14px; align-items: center; text-align: center; }
.dq-nav-actions small { grid-column: 2; margin-top: -7px; color: #999; font-size: 11px; }
.dq-back { width: 46px; height: 46px; border-radius: 50%; border: 1px solid #e4e4e4; background: #fff; color: #aaa; font-size: 24px; cursor: pointer; }
.dq-back:disabled { opacity: .35; cursor: default; }
.dq-next { min-width: 110px; height: 48px; border: 0; border-radius: 999px; background: var(--dq-accent); color: #fff; font-weight: 700; font-size: 17px; padding: 0 20px; cursor: pointer; box-shadow: 0 6px 16px rgba(234,88,12,.25); }
.dq-next:hover:not(:disabled) { background: var(--dq-accent-dark); }
.dq-next:disabled { opacity: .45; cursor: default; }
.dq-expert { display: flex; flex-direction: column; min-height: inherit; background: #fafafa; border-left: 1px solid #eee; padding: 18px 15px; }
.dq-expert__header { display: flex; align-items: center; gap: 11px; }
.dq-expert__header img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 10%; box-shadow: 0 0 0 2px #fff, 0 2px 9px rgba(0,0,0,.14); }
.dq-expert__header strong, .dq-expert__header small { display: block; }
.dq-expert__header small { color: #a4a4a4; margin-top: 2px; }
.dq-expert__message { margin-top: 14px; padding: 15px; border-radius: 16px; background: #ededed; font-size: 14px; line-height: 1.35; }
.dq-expert__footer { margin-top: auto; text-align: center; color: #aaa; font-size: 12px; }

.dq-screen--contact { display: grid; grid-template-columns: 58% 42%; }
.dq-result-copy { position: relative; padding: clamp(70px, 12vh, 145px) 46px 40px 66px; border-right: 1px solid #ddd; }
.dq-progress-label { display: flex; justify-content: space-between; align-items: center; color: #777; font-size: 15px; }
.dq-progress-label strong { color: var(--dq-accent); font-size: 16px; }
.dq-progress { height: 7px; margin: 8px 0 28px; border-radius: 99px; background: #ddd; overflow: hidden; box-shadow: 0 4px 9px rgba(234,88,12,.15); }
.dq-progress span { display: block; width: 95%; height: 100%; background: repeating-linear-gradient(-45deg,#ea580c 0 8px,#fb923c 8px 16px); }
.dq-summary { margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; background: #fafafa; border: 1px solid #ececec; }
.dq-summary:empty { display: none; }
.dq-summary dt { font-size: 12px; font-weight: 700; color: #777; }
.dq-summary dd { margin: 2px 0 10px; font-size: 15px; color: #222; }
.dq-summary dd:last-child { margin-bottom: 0; }
.dq-result-copy h2 { margin: 0 0 26px; font-size: clamp(32px, 4vw, 52px); line-height: 1.12; }
.dq-result-copy p, .dq-result-copy li { font-size: 17px; line-height: 1.55; color: #555; }
.dq-result-copy ul { padding-left: 22px; list-style: square; }
.dq-result-copy li { margin-bottom: 8px; }
.dq-contact-form { padding: clamp(72px, 12vh, 108px) 42px 42px; }
.dq-field { margin-bottom: 14px; }
.dq-field label { display: block; margin-bottom: 7px; color: #555; font-size: 18px; }
.dq-field > input, .dq-input-wrap, .dq-phone-wrap { width: 100%; min-height: 56px; border: 1px solid #cfcfcf; background: #fff; }
.dq-field > input { padding: 0 14px; font-size: 16px; }
.dq-input-wrap, .dq-phone-wrap { display: flex; align-items: center; }
.dq-input-wrap > span { width: 52px; color: #aaa; text-align: center; }
.dq-input-wrap input, .dq-phone-wrap input { min-width: 0; flex: 1; height: 54px; border: 0; outline: 0; padding: 0 12px; font-size: 16px; }
.dq-country { align-self: stretch; min-width: 120px; border-right: 1px solid #cfcfcf; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.dq-messenger-toggle { width: 100%; min-height: 44px; margin: 6px 0 10px; border: 0; border-radius: 999px; background: #ededed; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.dq-messenger-icons { display: inline-flex; align-items: center; }
.dq-messenger-icons img { width: 23px; height: 23px; margin-left: -4px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.1)); }
.dq-messenger-icons img:first-child { margin-left: 0; }
.dq-submit { width: 100%; min-height: 52px; border: 0; border-radius: 999px; background: var(--dq-accent); color: #fff; font-weight: 700; font-size: 18px; cursor: pointer; }
.dq-submit:hover:not(:disabled) { background: var(--dq-accent-dark); }
.dq-submit:disabled { opacity: .6; cursor: wait; }
.dq-consent { display: flex; gap: 9px; margin-top: 14px; font-size: 12px; line-height: 1.45; color: #333; }
.dq-consent input { accent-color: var(--dq-accent); margin: 1px 0 0; }
.dq-consent a, .dq-link-button { color: var(--dq-accent); }
.dq-error, .dq-form-error { display: block; min-height: 14px; color: #dc2626; font-size: 12px; margin-top: 4px; }
.dq-honeypot { position: absolute !important; left: -99999px !important; opacity: 0 !important; }

.dq-screen--messenger-picker, .dq-screen--messenger-form { display: flex; align-items: stretch; justify-content: flex-start; }
.dq-messenger-panel { width: min(560px, 100%); min-height: inherit; border-left: 1px solid #ddd; padding: 190px 40px 40px; }
.dq-messenger-panel h3 { font-size: 20px; font-weight: 400; margin: 0 0 13px; }
.dq-messenger-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.dq-messenger-grid button { min-height: 62px; border: 1px solid #e2e2e2; border-radius: 999px; background: #ededed; display: flex; align-items: center; gap: 11px; padding: 0 18px; font-size: 17px; cursor: pointer; }
.dq-icon { width: 36px; height: 36px; flex: 0 0 36px; display: block; }
.dq-link-button { border: 0; background: transparent; text-decoration: underline; cursor: pointer; padding: 0; margin: 32px 0 14px; font-size: 14px; }
.dq-consent--picker { max-width: 430px; }
.dq-meta-note { color: #aaa; font-size: 11px; margin-top: 36px; }
.dq-messenger-form { width: min(525px, 100%); min-height: inherit; border-left: 1px solid #ddd; padding: 60px 28px 30px; }
.dq-link-button--back { margin: 0 0 18px; text-decoration: none; }
.dq-selected-messenger { background: #f5f5f5; padding: 14px 16px; border-radius: 12px 12px 0 0; }
.dq-selected-messenger small { display: block; }
.dq-selected-messenger__value { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.dq-selected-messenger__value img { width: 22px; height: 22px; }
.dq-selected-messenger strong { display: block; font-weight: 400; }
.dq-messenger-form .dq-field { background: #f5f5f5; padding: 0 16px 8px; margin: 0; }
.dq-messenger-form .dq-field label { font-size: 18px; }
.dq-messenger-form .dq-consent { background: #f5f5f5; margin: 0; padding: 10px 16px 18px; }
.dq-messenger-form .dq-submit { margin-top: 18px; }

.dq-screen--success { display: grid; place-items: center; padding: 30px; background: #f7f7f7; }
.dq-success { width: min(650px, 100%); overflow: hidden; border-radius: 18px; background: #fff; text-align: center; box-shadow: 0 24px 55px rgba(0,0,0,.13); }
.dq-success__photo { width: 100%; height: 200px; display: block; object-fit: cover; object-position: center; }
.dq-success__body { padding: 30px 34px 36px; }
.dq-success__icon { width: 72px; height: 72px; margin: -66px auto 18px; border: 8px solid #fff; border-radius: 50%; background: #1fad5d; color: #fff; display: grid; place-items: center; font-size: 38px; position: relative; }
.dq-success h2 { font-size: clamp(34px, 5vw, 52px); margin: 0 0 15px; }
.dq-success p { color: #555; font-size: 18px; line-height: 1.5; }
.dq-success .dq-primary { margin-top: 15px; min-width: 180px; }

@media (max-width: 900px) {
    .dq-overlay { padding: 0; }
    .dq-modal { min-height: 100vh; width: 100%; }
    .dq-close { right: 12px; top: 8px; color: #666; }
    .dq-screen--intro { grid-template-columns: 1fr; }
    .dq-intro__content { min-height: 0; }
    .dq-intro__visual { min-height: 220px; order: -1; }
    .dq-brand { padding-right: 60px; }
    .dq-intro__footer { margin-top: 0; }
    .dq-screen--quiz { grid-template-columns: 1fr; }
    .dq-quiz__main { min-height: 0; }
    .dq-navigation { margin-top: 20px; }
    .dq-expert { min-height: 0; border-left: 0; border-top: 1px solid #eee; }
    .dq-expert__footer { display: none; }
    .dq-screen--contact { grid-template-columns: 1fr; }
    .dq-result-copy { border-right: 0; padding: 70px 28px 30px; }
    .dq-contact-form { padding: 20px 28px 44px; }
    .dq-messenger-panel, .dq-messenger-form { width: 100%; border-left: 0; padding: 90px 24px 30px; }
}

@media (max-width: 767px) {
    /* На мобильных тизер переезжает в «футер» — полноширинная плашка над панелью
       быстрых действий сайта (h-14, ~56px), а не плавающая пилюля. */
    .dq-teaser-wrap {
        left: 0; right: 0; bottom: 56px; width: 100%; max-width: 100%;
        border-radius: 0; animation-name: dq-teaser-slide-in;
        box-shadow: 0 -4px 14px rgba(0,0,0,.18);
    }
    .dq-teaser { padding: 12px 40px 12px 14px; border-radius: 0; }
    .dq-teaser__close { top: 6px; right: 8px; width: 26px; height: 26px; font-size: 18px; }
}

@media (max-width: 620px) {
    .dq-teaser small { font-size: 8px; }
    .dq-teaser strong { font-size: 12px; }
    .dq-intro__copy { padding: 38px 22px 28px; }
    .dq-intro__footer { padding: 18px 22px; }
    .dq-intro__footer > span { display: none; }
    .dq-question-wrap { padding: 20px 18px; }
    .dq-options { grid-template-columns: 1fr; gap: 9px; }
    .dq-option { min-height: 64px; font-size: 15px; }
    .dq-navigation { padding: 18px; }
    .dq-step-counter { display: none; }
    .dq-nav-actions { margin-left: auto; }
    .dq-expert { padding: 14px 18px; }
    .dq-messenger-grid { grid-template-columns: 1fr; }
    .dq-country { min-width: 108px; font-size: 15px; }
    .dq-success__photo { height: 150px; }
    .dq-success__body { padding: 28px 20px 32px; }
}
