.dq {
    --fp-acc: #6d4cf0;
    --fp-soft: #f1eeff;
    --fp-line: #eae9f1;
    --dq-ink: #0d0c18;
    --dq-ok: #12a26b;
}

.dq-hero {
    position: relative;
    isolation: isolate;
    margin-top: -64px;
    padding: 150px 0 40px;
    overflow: clip;
    background: linear-gradient(180deg, #f5f3ff 0%, #fbfaff 55%, #fff 100%);
}

.dq-hero__bg i {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(rgba(13, 12, 24, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(13, 12, 24, .045) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 60% 55% at 30% 30%, #000 10%, transparent 75%);
}

.dq-hero__bg span {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(70px);
}

.dq-hero__bg span:nth-child(2) {
    top: 4%;
    left: -6%;
    width: 520px;
    height: 420px;
    background: rgba(155, 123, 255, .22);
}

.dq-hero__bg span:nth-child(3) {
    right: -4%;
    bottom: 10%;
    width: 420px;
    height: 360px;
    background: rgba(255, 170, 120, .16);
}

.dq-grid {
    display: grid;
    grid-template-columns: 1fr minmax(0, 480px);
    gap: 0 64px;
    align-items: start;
}

.dq-grid > * {
    min-width: 0;
}

.dq-copy {
    grid-column: 1;
    grid-row: 1;
}

.dq-extra {
    grid-column: 1;
    grid-row: 2;
}

.dq-side {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.dq-perks {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 30px 0 0;
    padding: 0;
}

.dq-perks li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--fp-line);
    background: rgba(255, 255, 255, .8);
    font-size: 14px;
    font-weight: 550;
}

.dq-perks span {
    width: 34px;
    height: 34px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--fp-soft);
    color: var(--fp-acc);
}

.dq-perks .fp-ico {
    width: 17px;
    height: 17px;
}

.dq-photo {
    position: relative;
    margin-top: 28px;
}

.dq-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: 0 50px 100px -60px rgba(40, 20, 90, .55);
}

.dq-live {
    position: absolute;
    left: 16px;
    top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(13, 12, 24, .78);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
}

.dq-live i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff5a5a;
    box-shadow: 0 0 0 0 rgba(255, 90, 90, .6);
    animation: dq-ping 1.6s ease-out infinite;
}

@keyframes dq-ping {
    to { box-shadow: 0 0 0 9px rgba(255, 90, 90, 0); }
}

.dq-side {
    position: sticky;
    top: 96px;
}

.dq-card {
    padding: 28px;
    border-radius: 28px;
    border: 1px solid var(--fp-line);
    background: #fff;
    box-shadow: 0 60px 120px -70px rgba(40, 20, 90, .55), 0 1px 0 rgba(255, 255, 255, .8) inset;
}

.dq-steps {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
}

.dq-step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: #9a99a8;
    cursor: pointer;
}

.dq-step b {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ecebf2;
    color: #6b6b7b;
    font-size: 12.5px;
    transition: background .3s, color .3s;
}

.dq-step.is-on {
    color: var(--dq-ink);
}

.dq-step.is-on b {
    background: var(--dq-ink);
    color: #fff;
}

.dq-steps__bar {
    height: 4px;
    border-radius: 99px;
    background: #ecebf2;
    overflow: hidden;
}

.dq-steps__bar span {
    display: block;
    width: 50%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #6d4cf0, #b06bff);
    transition: width .5s cubic-bezier(.3, .7, .2, 1);
}

[data-step="2"] .dq-steps__bar span {
    width: 100%;
}

.dq-alert {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fdecec;
    color: #b42318;
    font-size: 13.5px;
}

.dq-alert .fp-ico {
    width: 18px;
    height: 18px;
}

.dq-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.dq-pane {
    display: none;
    gap: 16px;
    margin: 22px 0 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

[data-step="1"] [data-dq-pane="1"],
[data-step="2"] [data-dq-pane="2"] {
    display: grid;
    animation: dq-in .45s cubic-bezier(.3, .7, .2, 1) both;
}

@keyframes dq-in {
    from { opacity: 0; transform: translateX(12px); }
}

.dq-pane legend {
    display: grid;
    gap: 4px;
    float: left;
    width: 100%;
    margin-bottom: 4px;
    padding: 0;
}

.dq-pane legend b {
    font-size: 19px;
    font-weight: 650;
    letter-spacing: -.015em;
}

.dq-pane legend small {
    font-size: 13.5px;
    color: #6b6b7b;
}

.dq-field {
    display: grid;
    gap: 7px;
}

.dq-field > span:first-child {
    font-size: 13px;
    font-weight: 600;
}

.dq-field input[type="text"],
.dq-field input[type="email"],
.dq-field input[type="tel"] {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 15px;
    border-radius: 14px;
    border: 1px solid #e3e2ea;
    background: #fafafc;
    font: inherit;
    font-size: 14.5px;
    color: var(--dq-ink);
    outline: none;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

.dq-field input:focus {
    border-color: var(--fp-acc);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(109, 76, 240, .12);
}

.dq-tel {
    display: flex;
    border-radius: 14px;
    border: 1px solid #e3e2ea;
    background: #fafafc;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}

.dq-tel:focus-within {
    border-color: var(--fp-acc);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(109, 76, 240, .12);
}

.dq-tel b {
    display: grid;
    place-items: center;
    padding: 0 14px;
    border-right: 1px solid #e3e2ea;
    font-size: 14px;
    color: #6b6b7b;
}

.dq-field .dq-tel input {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.dq-field em {
    display: none;
    font-style: normal;
    font-size: 12.5px;
    color: #c4321f;
}

.dq-field.is-err em {
    display: block;
}

.dq-field.is-err input,
.dq-field.is-err .dq-tel,
.dq-field.is-err .dq-dd__btn,
.dq-field.is-err .dq-choice button {
    border-color: #e5533d;
}

.dq-next {
    margin-top: 4px;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.dq-choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.dq-choice button {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid #e3e2ea;
    background: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #3a3a48;
    cursor: pointer;
    transition: border-color .2s, background .2s, color .2s, box-shadow .2s;
}

.dq-choice button .fp-ico {
    width: 18px;
    height: 18px;
    color: #9a99a8;
}

.dq-choice button.is-on {
    border-color: var(--fp-acc);
    background: var(--fp-soft);
    color: var(--fp-acc);
    box-shadow: inset 0 0 0 1px var(--fp-acc);
}

.dq-choice button.is-on .fp-ico {
    color: var(--fp-acc);
}

.dq-more {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .4s cubic-bezier(.3, .7, .2, 1);
}

.dq-more > div {
    display: grid;
    gap: 16px;
    overflow: hidden;
    min-height: 0;
}

.dq-more.is-open {
    grid-template-rows: 1fr;
}

.dq-dd {
    position: relative;
}

.dq-dd__btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 15px;
    border-radius: 14px;
    border: 1px solid #e3e2ea;
    background: #fafafc;
    font: inherit;
    font-size: 14.5px;
    color: var(--dq-ink);
    cursor: pointer;
}

.dq-dd__btn.is-empty span {
    color: #9a99a8;
}

.dq-dd__btn .fp-ico {
    width: 16px;
    height: 16px;
    transition: transform .25s;
}

.dq-dd.is-open .dq-dd__btn {
    border-color: var(--fp-acc);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(109, 76, 240, .12);
}

.dq-dd.is-open .dq-dd__btn .fp-ico {
    transform: rotate(180deg);
}

.dq-dd__menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 5;
    max-height: 260px;
    overflow: auto;
    list-style: none;
    margin: 0;
    padding: 6px;
    border-radius: 16px;
    border: 1px solid var(--fp-line);
    background: #fff;
    box-shadow: 0 30px 60px -24px rgba(13, 12, 24, .3);
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity .2s, transform .2s;
}

.dq-dd.is-open .dq-dd__menu {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.dq-dd__menu li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 11px;
    font-size: 14px;
    cursor: pointer;
}

.dq-dd__menu li .fp-ico {
    width: 16px;
    height: 16px;
    color: var(--fp-acc);
    opacity: 0;
}

.dq-dd__menu li:hover,
.dq-dd__menu li.is-hl {
    background: #f6f5fa;
}

.dq-dd__menu li[aria-selected="true"] {
    font-weight: 600;
}

.dq-dd__menu li[aria-selected="true"] .fp-ico {
    opacity: 1;
}

.dq-check {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.dq-check input {
    position: absolute;
    opacity: 0;
    width: 22px;
    height: 22px;
    margin: 0;
}

.dq-check i {
    flex: none;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    margin-top: 1px;
    border-radius: 7px;
    border: 1.5px solid #cfcdda;
    background: #fff;
    color: #fff;
    transition: background .2s, border-color .2s;
}

.dq-check i .fp-ico {
    width: 14px;
    height: 14px;
    transform: scale(0);
    transition: transform .2s cubic-bezier(.3, 1.6, .5, 1);
}

.dq-check input:checked + i {
    background: var(--fp-acc);
    border-color: var(--fp-acc);
}

.dq-check input:checked + i .fp-ico {
    transform: scale(1);
}

.dq-check input:focus-visible + i {
    box-shadow: 0 0 0 4px rgba(109, 76, 240, .18);
}

.dq-check > span {
    font-size: 13.5px;
    line-height: 1.55;
    color: #3a3a48;
}

.dq-check span button {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 600;
    color: var(--fp-acc);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.dq-field.is-err .dq-check i {
    border-color: #e5533d;
}

.dq-acts {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    margin-top: 4px;
}

.dq-acts button {
    cursor: pointer;
    font-family: inherit;
}

.dq-acts .fp-btn {
    border: 0;
}

.dq-acts .fp-ghost .fp-ico {
    width: 16px;
    height: 16px;
}

.dq-login {
    margin: 18px 0 0;
    text-align: center;
    font-size: 13.5px;
    color: #6b6b7b;
}

.dq-login a {
    font-weight: 600;
    color: var(--dq-ink);
}

.dq-done {
    text-align: center;
    padding: 44px 32px;
}

.dq-done__ic {
    display: inline-grid;
    width: 76px;
    height: 76px;
}

.dq-done__ic svg {
    width: 100%;
    height: 100%;
}

.dq-done__ic circle {
    fill: #e9f9f1;
    stroke: var(--dq-ok);
    stroke-width: 2;
    stroke-dasharray: 160;
    stroke-dashoffset: 160;
    animation: dq-draw .7s ease forwards;
}

.dq-done__ic path {
    fill: none;
    stroke: var(--dq-ok);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: dq-draw .45s .55s ease forwards;
}

@keyframes dq-draw {
    to { stroke-dashoffset: 0; }
}

.dq-done h2 {
    margin: 22px 0 0;
    font-size: 26px;
    font-weight: 650;
    letter-spacing: -.02em;
}

.dq-done p {
    margin: 10px auto 0;
    max-width: 360px;
    font-size: 15px;
    line-height: 1.6;
    color: #6b6b7b;
}

.dq-done .fp-btn {
    margin-top: 26px;
}

.dq-next-sec {
    padding-top: 72px;
}

.dq-flow {
    position: relative;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    counter-reset: dq;
}

.dq-flow::before {
    content: "";
    position: absolute;
    left: 6%;
    right: 6%;
    top: 31px;
    height: 2px;
    background: repeating-linear-gradient(90deg, #d9d6ea 0 8px, transparent 8px 16px);
}

.dq-flow::after {
    content: "";
    position: absolute;
    left: 6%;
    top: 31px;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, #6d4cf0, #b06bff);
    transition: width 2.4s cubic-bezier(.3, .7, .2, 1);
}

.dq-flow.is-in::after {
    width: 88%;
}

.dq-flow li {
    position: relative;
    display: grid;
    gap: 6px;
    justify-items: center;
    text-align: center;
}

.dq-flow__ic {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--fp-line);
    color: var(--dq-ink);
    box-shadow: 0 20px 40px -26px rgba(40, 20, 90, .5);
    transition: background .4s, color .4s, transform .4s;
}

.dq-flow__ic .fp-ico {
    width: 24px;
    height: 24px;
}

.dq-flow__ic b {
    position: absolute;
    right: -6px;
    top: -6px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--fp-acc);
    color: #fff;
    font-size: 11px;
}

.dq-flow.is-in li .dq-flow__ic {
    background: var(--dq-ink);
    color: #fff;
}

.dq-flow li:nth-child(1) .dq-flow__ic { transition-delay: .2s; }
.dq-flow li:nth-child(2) .dq-flow__ic { transition-delay: .8s; }
.dq-flow li:nth-child(3) .dq-flow__ic { transition-delay: 1.4s; }
.dq-flow li:nth-child(4) .dq-flow__ic { transition-delay: 2s; }

.dq-flow strong {
    font-size: 16px;
    font-weight: 620;
}

.dq-flow small {
    max-width: 240px;
    font-size: 14px;
    line-height: 1.55;
    color: #6b6b7b;
}

.dq-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(13, 12, 24, .45);
    backdrop-filter: blur(4px);
}

.dq-modal[hidden] {
    display: none;
}

.dq-modal__box {
    width: min(540px, 100%);
    max-height: 86vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 50px 100px -30px rgba(13, 12, 24, .5);
    overflow: hidden;
    animation: dq-pop .3s cubic-bezier(.3, .7, .2, 1);
}

@keyframes dq-pop {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
}

.dq-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px 8px;
}

.dq-modal__head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 650;
    line-height: 1.35;
}

.dq-x {
    width: 34px;
    height: 34px;
    flex: none;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #f3f2f8;
    color: var(--dq-ink);
    cursor: pointer;
}

.dq-modal__body {
    overflow: auto;
    padding: 6px 24px 8px;
    font-size: 14.5px;
    line-height: 1.65;
    color: #3a3a48;
}

.dq-modal__body a {
    font-weight: 600;
    color: var(--fp-acc);
}

.dq-modal__foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px 22px;
    border-top: 1px solid #f0eff5;
}

.dq-modal__foot button {
    cursor: pointer;
    font-family: inherit;
}

.dq-modal__foot .fp-btn {
    border: 0;
}

@media (max-width: 1024px) {
    .dq-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .dq-perks {
        margin-top: 0;
    }

    .dq-side {
        position: static;
        grid-column: 1;
        grid-row: 2;
    }

    .dq-extra {
        grid-row: 3;
    }

    .dq-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 34px;
    }

    .dq-flow::before,
    .dq-flow::after {
        display: none;
    }
}

@media (max-width: 720px) {
    .dq-hero {
        padding: 112px 0 24px;
    }

    .dq-card {
        padding: 20px;
        border-radius: 24px;
    }

    .dq-perks {
        grid-template-columns: 1fr;
    }

    .dq-photo img {
        aspect-ratio: 4 / 3;
    }

    .dq-flow {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .dq-flow li {
        grid-template-columns: auto 1fr;
        justify-items: start;
        text-align: left;
        column-gap: 16px;
        width: 100%;
    }

    .dq-flow__ic {
        grid-row: span 2;
        width: 52px;
        height: 52px;
        margin: 0;
        border-radius: 16px;
    }

    .dq-modal {
        align-items: end;
        padding: 0;
    }

    .dq-modal__box {
        width: 100%;
        border-radius: 24px 24px 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dq-live i,
    .dq-pane,
    .dq-modal__box {
        animation: none !important;
    }
}

.dq-modal__body p {
    margin: 0 0 12px;
}
