.rsp-popup,
.rsp-popup * {
    box-sizing: border-box;
}

.rsp-popup {
    --rsp-primary: #213f8f;
    --rsp-secondary: #8fb9ff;
    --rsp-bg: #a8c8ff;
    --rsp-overlay: rgba(9, 31, 42, 0.74);
    --rsp-card: #ffffff;
    --rsp-text: #07111f;
    --rsp-muted: #3b4a5c;
    --rsp-button-text: #ffffff;
    --rsp-radius: 28px;
    --rsp-font: inherit;

    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    color: var(--rsp-text);
    font-family: var(--rsp-font), inherit;
}

.rsp-popup.is-open {
    display: block;
}

.rsp-popup__overlay {
    position: absolute;
    inset: 0;
    background: var(--rsp-overlay);
    backdrop-filter: blur(5px);
}

.rsp-popup__dialog {
    position: relative;
    width: min(92vw, 1180px);
    min-height: min(78vh, 760px);
    max-height: calc(100dvh - 44px);
    margin: 5.5vh auto 0;
    padding: clamp(30px, 5vw, 64px) clamp(20px, 5vw, 70px) 58px;
    background:
        radial-gradient(circle at 18% 82%, rgba(255,255,255,.34), transparent 34%),
        linear-gradient(135deg, color-mix(in srgb, var(--rsp-bg) 90%, white 10%), color-mix(in srgb, var(--rsp-secondary) 70%, white 30%));
    border-radius: var(--rsp-radius);
    box-shadow: 0 32px 90px rgba(0, 0, 0, .32);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

.rsp-popup__inner {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rsp-popup__step {
    display: none;
    width: 100%;
    text-align: center;
}

.rsp-popup__step.is-active {
    display: block;
    animation: rspFadeUp .24s ease-out;
}

@keyframes rspFadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rsp-popup__controls {
    position: absolute;
    top: 22px;
    right: 24px;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    max-width: calc(100% - 48px);
}

.rsp-popup__control-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .84);
    color: var(--rsp-text);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
    backdrop-filter: blur(8px);
}

.rsp-popup__language {
    position: relative;
    flex: 0 0 auto;
}

.rsp-popup__language-toggle,
.rsp-popup__lang-choice,
.rsp-popup__close {
    font-family: var(--rsp-font), inherit;
}

.rsp-popup__language-toggle {
    height: 38px;
    min-width: 72px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--rsp-text);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .04em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    line-height: 1;
}

.rsp-popup__language-toggle:hover,
.rsp-popup__language-toggle:focus-visible {
    background: rgba(255, 255, 255, .9);
    outline: none;
}

.rsp-popup__language-toggle[aria-expanded="true"] {
    background: rgba(255, 255, 255, .98);
}

.rsp-popup__globe {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
}

.rsp-popup__globe svg {
    width: 18px;
    height: 18px;
    display: block;
}

.rsp-popup__language-current {
    display: inline-block;
    min-width: 20px;
    text-align: left;
}

.rsp-popup__control-separator {
    width: 1px;
    height: 24px;
    margin: 0 2px;
    background: rgba(7, 17, 31, .16);
}

.rsp-popup__close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--rsp-text);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 2px;
    flex: 0 0 auto;
}

.rsp-popup__close:hover,
.rsp-popup__close:focus-visible {
    background: rgba(255, 255, 255, .92);
    outline: none;
}

.rsp-popup__language-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 178px;
    padding: 8px;
    border-radius: 18px;
    background: #ffffff;
    color: var(--rsp-text);
    box-shadow: 0 18px 48px rgba(13, 34, 54, .23);
    z-index: 45;
}

.rsp-popup__language-menu[hidden] {
    display: none !important;
}

.rsp-popup__lang-choice {
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: 12px;
    padding: 8px 10px;
    background: transparent;
    color: var(--rsp-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    text-align: left;
}

.rsp-popup__lang-choice strong {
    min-width: 28px;
    font-size: 14px;
    letter-spacing: .04em;
}

.rsp-popup__lang-choice span {
    font-size: 13px;
    font-weight: 750;
    color: var(--rsp-muted);
}

.rsp-popup__lang-choice:hover,
.rsp-popup__lang-choice:focus-visible {
    background: color-mix(in srgb, var(--rsp-secondary) 24%, white 76%);
    outline: none;
}

.rsp-popup__lang-choice.is-active,
.rsp-popup__lang-choice[aria-selected="true"] {
    background: var(--rsp-primary);
    color: var(--rsp-button-text);
}

.rsp-popup__lang-choice.is-active span,
.rsp-popup__lang-choice[aria-selected="true"] span {
    color: var(--rsp-button-text);
    opacity: .88;
}

.rsp-popup__title {
    max-width: 820px;
    margin: 0 auto 18px;
    color: var(--rsp-text);
    font-size: clamp(35px, 4.7vw, 58px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: .02em;
}

.rsp-popup__title--question {
    max-width: 980px;
    font-size: clamp(31px, 4.1vw, 52px);
}

.rsp-popup__step--first .rsp-popup__title {
    margin-bottom: 18px;
}

.rsp-popup__step--first .rsp-popup__subtitle {
    margin-bottom: 18px;
}

.rsp-popup__step--first .rsp-popup__title--question {
    max-width: 860px;
    margin-top: 0;
    margin-bottom: 22px;
    font-size: clamp(18px, 2.1vw, 25px);
    line-height: 1.36;
    letter-spacing: .01em;
}

.rsp-popup__nav--first {
    margin-top: 2px;
}

.rsp-popup__subtitle,
.rsp-popup__result-text,
.rsp-popup__email-intro {
    max-width: 810px;
    margin: 0 auto 28px;
    color: var(--rsp-muted);
    font-size: clamp(17px, 1.8vw, 22px);
    line-height: 1.55;
    font-weight: 650;
}

.rsp-popup__start,
.rsp-popup__next,
.rsp-popup__submit {
    min-width: 190px;
    height: 58px;
    padding: 0 32px;
    border: 0;
    border-radius: 999px;
    background: var(--rsp-primary);
    color: var(--rsp-button-text);
    font-size: 19px;
    font-weight: 850;
    letter-spacing: .01em;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .15);
    transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease;
}

.rsp-popup__start:hover,
.rsp-popup__next:hover,
.rsp-popup__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .18);
}

.rsp-popup__next:disabled,
.rsp-popup__submit:disabled {
    cursor: not-allowed;
    opacity: .48;
    transform: none;
    box-shadow: none;
}

.rsp-popup__select-count {
    width: fit-content;
    margin: 0 auto 34px;
    padding: 9px 20px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 999px;
    color: color-mix(in srgb, var(--rsp-text) 75%, white 25%);
    background: rgba(255, 255, 255, .16);
    font-weight: 800;
    font-size: 15px;
}

.rsp-popup__answers {
    display: grid;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto 34px;
}

.rsp-popup__answers--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rsp-popup__answers--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1040px;
}

.rsp-popup__card {
    position: relative;
    min-height: 220px;
    padding: 28px 18px 24px;
    border: 3px solid transparent;
    border-radius: 28px;
    background: var(--rsp-card);
    color: var(--rsp-text);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    box-shadow: 0 18px 48px rgba(13, 34, 54, .16);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.rsp-popup__card:hover,
.rsp-popup__card:focus-visible {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--rsp-primary) 46%, transparent);
    outline: none;
}

.rsp-popup__card.is-selected {
    border-color: var(--rsp-primary);
    box-shadow: 0 20px 58px rgba(13, 34, 54, .22);
}

.rsp-popup__card.is-selected::after {
    content: "✓";
    position: absolute;
    top: 14px;
    right: 16px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--rsp-primary);
    color: var(--rsp-button-text);
    font-weight: 900;
    font-size: 18px;
}

.rsp-popup__icon {
    width: 118px;
    height: 118px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: var(--rsp-primary);
    background:
        radial-gradient(circle at 30% 24%, rgba(255,255,255,.85), transparent 23%),
        color-mix(in srgb, var(--rsp-secondary) 56%, white 44%);
    box-shadow: inset 0 -8px 14px rgba(0, 0, 0, .08);
}

.rsp-popup__icon svg {
    width: 70px;
    height: 70px;
}

.rsp-popup__label {
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 850;
}

.rsp-popup__nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.rsp-popup__back {
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--rsp-primary) 88%, white 12%);
    color: var(--rsp-button-text);
    font-size: 44px;
    font-weight: 300;
    line-height: .8;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 7px;
}

.rsp-popup__back:hover,
.rsp-popup__back:focus-visible {
    filter: brightness(1.06);
    outline: 3px solid color-mix(in srgb, var(--rsp-primary) 34%, transparent);
}

.rsp-popup__register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    min-height: 44px;
    padding: 0 4px;
    color: var(--rsp-primary);
    font-size: 22px;
    line-height: 1.35;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.rsp-popup__register::before {
    content: "↗";
    margin-right: 8px;
    text-decoration: none;
}

.rsp-popup__form {
    max-width: 820px;
    margin: 0 auto;
}

.rsp-popup__field-label {
    display: block;
    text-align: left;
    margin: 0 0 7px;
    font-size: 15px;
    color: var(--rsp-muted);
    font-weight: 800;
}

.rsp-popup__email {
    width: 100%;
    height: 64px;
    border: 2px solid rgba(255, 255, 255, .8);
    border-radius: 14px;
    background: rgba(255, 255, 255, .19);
    color: var(--rsp-text);
    padding: 0 20px;
    font-size: 20px;
    font-weight: 700;
    outline: none;
}

.rsp-popup__email::placeholder {
    color: color-mix(in srgb, var(--rsp-muted) 70%, white 30%);
}

.rsp-popup__email:focus {
    border-color: #fff;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--rsp-primary) 22%, transparent);
}

.rsp-popup__privacy {
    margin: 14px auto 14px;
    color: var(--rsp-muted);
    font-size: 14px;
    line-height: 1.4;
    font-weight: 650;
}

.rsp-popup__message {
    min-height: 24px;
    margin: 8px 0 16px;
    font-weight: 800;
}

.rsp-popup__message.is-error {
    color: #a51515;
}

.rsp-popup__message.is-success {
    color: #0e6335;
}

.rsp-popup__form.is-submitted .rsp-popup__field-label,
.rsp-popup__form.is-submitted .rsp-popup__email,
.rsp-popup__form.is-submitted .rsp-popup__privacy,
.rsp-popup__form.is-submitted .rsp-popup__nav--final {
    display: none;
}

.rsp-popup__form.is-submitted .rsp-popup__message.is-success {
    max-width: 720px;
    margin: 22px auto 0;
    padding: 22px 24px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .74);
    color: #0e6335;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.45;
    box-shadow: 0 14px 36px rgba(13, 34, 54, .12);
}

.rsp-popup__hp {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
}

.rsp-popup__progress {
    position: absolute;
    left: 52px;
    right: 52px;
    bottom: 28px;
    height: 8px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .32);
    overflow: hidden;
}

.rsp-popup__progress span {
    display: block;
    width: 16%;
    height: 100%;
    border-radius: inherit;
    background: rgba(255, 255, 255, .82);
    transition: width .25s ease;
}

body.rsp-popup-open {
    overflow: hidden;
}

@supports not (color: color-mix(in srgb, white, black)) {
    .rsp-popup__dialog {
        background: var(--rsp-bg);
    }
    .rsp-popup__icon {
        background: var(--rsp-secondary);
    }
    .rsp-popup__back {
        background: var(--rsp-primary);
    }
}

@media (max-width: 1100px) {
    .rsp-popup__dialog {
        width: min(94vw, 900px);
        min-height: auto;
        margin-top: 4vh;
        padding: 78px 24px 56px;
    }

    .rsp-popup__inner {
        min-height: auto;
    }

    .rsp-popup__answers,
    .rsp-popup__answers--3,
    .rsp-popup__answers--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 680px;
        gap: 16px;
    }

    .rsp-popup__card {
        min-height: 184px;
        border-radius: 22px;
    }

    .rsp-popup__icon {
        width: 94px;
        height: 94px;
    }

    .rsp-popup__icon svg {
        width: 58px;
        height: 58px;
    }

    .rsp-popup__title {
        font-size: clamp(29px, 6vw, 44px);
    }
}

@media (max-width: 680px) {
    .rsp-popup__dialog {
        width: 100vw;
        min-height: 100dvh;
        max-height: 100dvh;
        margin: 0;
        border-radius: 0;
        padding: 82px 16px 54px;
    }

    .rsp-popup__controls {
        top: 16px;
        right: 14px;
        max-width: calc(100% - 28px);
    }

    .rsp-popup__control-pill {
        min-height: 42px;
        padding: 0 5px;
    }

    .rsp-popup__language-toggle {
        min-width: 68px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }

    .rsp-popup__close {
        width: 36px;
        height: 36px;
        font-size: 28px;
    }

    .rsp-popup__language-menu {
        width: 164px;
        right: -42px;
    }

    .rsp-popup__title {
        font-size: clamp(28px, 10vw, 39px);
        line-height: 1.12;
        margin-bottom: 14px;
    }

    .rsp-popup__title--question {
        font-size: clamp(25px, 8.5vw, 34px);
    }


    .rsp-popup__step--first .rsp-popup__title--question {
        font-size: clamp(16px, 5vw, 20px);
        margin-bottom: 16px;
    }

    .rsp-popup__subtitle,
    .rsp-popup__result-text,
    .rsp-popup__email-intro {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .rsp-popup__select-count {
        margin-bottom: 18px;
    }

    .rsp-popup__answers,
    .rsp-popup__answers--3,
    .rsp-popup__answers--4 {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 12px;
        margin-bottom: 22px;
    }

    .rsp-popup__card {
        min-height: 124px;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        padding: 16px;
        gap: 14px;
    }

    .rsp-popup__card:hover,
    .rsp-popup__card:focus-visible {
        transform: none;
    }

    .rsp-popup__icon {
        flex: 0 0 auto;
        width: 68px;
        height: 68px;
    }

    .rsp-popup__icon svg {
        width: 42px;
        height: 42px;
    }

    .rsp-popup__label {
        justify-content: flex-start;
        min-height: auto;
        font-size: 16px;
    }

    .rsp-popup__start,
    .rsp-popup__next,
    .rsp-popup__submit {
        min-width: 150px;
        height: 52px;
        font-size: 16px;
        padding: 0 24px;
    }

    .rsp-popup__back {
        width: 52px;
        height: 52px;
        font-size: 38px;
    }

    .rsp-popup__email {
        height: 58px;
        font-size: 17px;
    }

    .rsp-popup__progress {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
}

@media (max-width: 380px) {
    .rsp-popup__dialog {
        padding-left: 12px;
        padding-right: 12px;
    }

    .rsp-popup__language-toggle {
        min-width: 64px;
        padding: 0 8px;
    }

    .rsp-popup__close {
        width: 34px;
        height: 34px;
    }

    .rsp-popup__language-menu {
        right: -38px;
    }

    .rsp-popup__card {
        padding: 14px;
    }

    .rsp-popup__icon {
        width: 60px;
        height: 60px;
    }

    .rsp-popup__icon svg {
        width: 38px;
        height: 38px;
    }
}
