.exit-popup {
    position: fixed;
    inset: 0;
    z-index: 99980;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(18px, env(safe-area-inset-top, 0px)) 18px max(18px, env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    background: rgba(2, 16, 32, 0.62);
    backdrop-filter: blur(12px) saturate(0.9);
    -webkit-backdrop-filter: blur(12px) saturate(0.9);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 260ms ease, visibility 260ms ease;
}

.exit-popup.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

html.exit-popup-is-open {
    overflow: hidden;
}

.exit-popup__dialog {
    position: relative;
    width: min(100%, 570px);
    max-height: calc(100dvh - 36px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 38px 40px 34px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid rgba(215, 224, 233, 0.78);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 13, 30, 0.3), 0 8px 24px rgba(1, 30, 65, 0.1);
    color: #011e41;
    text-align: center;
    opacity: 0;
    transform: translateY(16px) scale(0.965);
    transition: opacity 260ms ease, transform 340ms cubic-bezier(0.2, 0.8, 0.25, 1);
}

.exit-popup.is-visible .exit-popup__dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.exit-popup__close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: #66778a;
    background: #f2f5f8;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.exit-popup__close:hover,
.exit-popup__close:focus-visible {
    color: #011e41;
    background: #e8eef3;
    transform: scale(1.04);
}

.exit-popup__close:focus-visible,
.exit-popup__phone:focus-visible,
.exit-popup__submit:focus-visible,
.exit-popup__consent input:focus-visible + .exit-popup__checkbox {
    outline: 3px solid rgba(1, 30, 65, 0.24);
    outline-offset: 2px;
}

.exit-popup__close svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.exit-popup__offer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    margin: 0 auto 12px;
    padding: 5px 11px;
    color: #6d5425;
    background: #f8f4ea;
    border: 1px solid #eadfc9;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.05px;
    text-align: center;
}

.exit-popup__title {
    max-width: 470px;
    margin: 0 auto 12px;
    color: #011e41;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.17;
    letter-spacing: -0.35px;
    text-align: center;
}

.exit-popup__title-main,
.exit-popup__title-accent {
    display: block;
}

.exit-popup__title-accent {
    margin-top: 2px;
    color: #16734a;
    font-weight: 700;
}

.exit-popup__text {
    max-width: 450px;
    margin: 0 auto 21px;
    color: #526579;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}

.exit-popup__trust {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 6px;
    margin: 0 0 23px;
    padding: 0;
    list-style: none;
    background: transparent;
    border: 0;
}

.exit-popup__trust li {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 6px 8px 6px 7px;
    color: #35495f;
    background: #f5f8fa;
    border: 1px solid #e7edf2;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
}

.exit-popup__trust-icon {
    display: inline-flex;
    flex: 0 0 18px;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #16734a;
    background: #e1f4e9;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
}

.exit-popup .header-modal__call,
.exit-popup .header-modal__call form {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.exit-popup .section-home__form--item,
.exit-popup .section-home__form--submit {
    display: block;
    width: 100%;
    margin: 0;
}

.exit-popup__phone-label {
    display: block;
    margin: 0 0 8px;
    color: #263a51;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
}

.exit-popup__phone-control {
    position: relative;
    display: block;
}

.exit-popup__phone-icon {
    position: absolute;
    top: 1px;
    bottom: 1px;
    left: 1px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: auto;
    color: #294f70;
    background: #f3f7fa;
    border-right: 1px solid #dbe4eb;
    border-radius: 14px 0 0 14px;
    pointer-events: none;
}

.exit-popup__phone-icon svg {
    width: 22px;
    height: 22px;
}

.exit-popup .exit-popup__phone-control .exit-popup__phone {
    width: 100%;
    height: 56px;
    margin: 0;
    padding: 0 18px 0 66px;
    box-sizing: border-box;
    color: #011e41;
    background: #fff;
    border: 1px solid #b7c6d4;
    border-radius: 16px;
    box-shadow: 0 5px 16px rgba(1, 30, 65, 0.06);
    font: inherit;
    font-size: 17px;
    text-align: left;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.exit-popup .exit-popup__phone-control .exit-popup__phone:hover {
    border-color: #9cafc1;
}

.exit-popup .exit-popup__phone-control .exit-popup__phone:focus {
    background: #fff;
    border-color: #2b587b;
    box-shadow: 0 0 0 4px rgba(43, 88, 123, 0.11), 0 8px 20px rgba(1, 30, 65, 0.08);
}

.exit-popup__phone-control:focus-within .exit-popup__phone-icon {
    color: #011e41;
    background: #edf3f7;
    border-right-color: #cbd9e4;
}

.exit-popup .exit-popup__phone-control .exit-popup__phone.success {
    border-color: #23965f;
}

.exit-popup .exit-popup__phone-control .exit-popup__phone.error {
    border-color: #ed1b24;
}

.exit-popup .comment-form__checkbox {
    display: block;
    margin-bottom: 0;
}

.exit-popup .comment-form__checkbox .exit-popup__consent {
    display: flex !important;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    margin: 14px 2px 17px;
    padding-left: 0;
    margin-right: 2px;
    color: #5c6e80;
    font-size: 12.5px;
    line-height: 1.38;
    text-align: left;
    cursor: pointer;
}

.exit-popup .comment-form__checkbox .exit-popup__consent input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    inset: auto;
    z-index: -1;
}

.exit-popup__checkbox {
    position: relative;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: 0;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #9fb0c0;
    border-radius: 6px;
}

.exit-popup__consent input:checked + .exit-popup__checkbox {
    background: #011e41;
    border-color: #011e41;
}

.exit-popup__consent input:checked + .exit-popup__checkbox::after {
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    content: '';
    transform: rotate(45deg);
}

.exit-popup__consent a {
    color: #294f70;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.exit-popup .section-home__form--submit .exit-popup__submit {
    width: 100%;
    min-height: 54px;
    padding: 14px 20px;
    box-sizing: border-box;
    color: #fff;
    background: linear-gradient(135deg, #0b3158 0%, #011e41 100%);
    border: 1px solid #011e41;
    border-radius: 16px;
    box-shadow: 0 12px 26px rgba(1, 30, 65, 0.2);
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.1px;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.exit-popup .section-home__form--submit .exit-popup__submit:hover,
.exit-popup .section-home__form--submit .exit-popup__submit:focus-visible {
    color: #fff;
    background: linear-gradient(135deg, #12456f 0%, #082a50 100%);
    border-color: #082a50;
    filter: none;
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(1, 30, 65, 0.26);
}

.exit-popup .section-home__form--submit .exit-popup__submit:active {
    transform: translateY(0) scale(0.985);
    box-shadow: 0 7px 17px rgba(1, 30, 65, 0.2);
}

.exit-popup .formError {
    z-index: 99990;
}

.exit-popup__success {
    padding: 18px 12px 4px;
    color: #2d3748;
    font-size: 15px;
    line-height: 1.5;
}

.exit-popup__success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    color: #fff;
    background: #23965f;
    border-radius: 50%;
    font-size: 26px;
    font-weight: 700;
}

.exit-popup__success .res-send__application {
    color: #ed1b24;
    font-weight: 700;
}

@media (max-width: 480px) {
    .exit-popup {
        padding: max(8px, env(safe-area-inset-top, 0px)) 8px max(8px, env(safe-area-inset-bottom, 0px));
    }

    .exit-popup__dialog {
        max-height: calc(100dvh - 16px);
        padding: 30px 16px 20px;
        border-radius: 23px;
    }

    .exit-popup__close {
        top: 9px;
        right: 9px;
        width: 36px;
        height: 36px;
    }

    .exit-popup__offer {
        min-height: 28px;
        margin-bottom: 10px;
        padding: 4px 9px;
        font-size: 11.5px;
    }

    .exit-popup__title {
        max-width: 320px;
        margin-bottom: 10px !important;
        font-size: 22px !important;
        line-height: 1.18;
        letter-spacing: -0.25px;
    }

    .exit-popup__title-main,
    .exit-popup__title-accent {
        white-space: nowrap;
    }

    .exit-popup__title-accent {
        margin-top: 3px;
        font-size: clamp(18.5px, 5.95vw, 23px);
        letter-spacing: -0.45px;
    }

    .exit-popup__text {
        max-width: 330px;
        margin-bottom: 16px;
        font-size: 14.5px;
        line-height: 1.48;
    }

    .exit-popup__trust {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 4px;
        margin-bottom: 17px;
        padding: 9px 10px;
        background: #f6f9fb;
        border: 1px solid #e7edf2;
        border-radius: 14px;
    }

    .exit-popup__trust li {
        gap: 8px;
        width: 100%;
        padding: 3px 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        font-size: 13px;
        line-height: 1.3;
    }

    .exit-popup__trust-icon {
        flex-basis: 20px;
        width: 20px;
        height: 20px;
        font-size: 12px;
    }

    .exit-popup__phone-label {
        margin-bottom: 7px;
        font-size: 13px;
    }

    .exit-popup .exit-popup__phone-control .exit-popup__phone {
        height: 56px;
        padding-right: 14px;
        padding-left: 64px;
        border-radius: 14px;
        font-size: 17px;
    }

    .exit-popup__phone-icon {
        left: 1px;
        width: 49px;
        border-radius: 13px 0 0 13px;
    }

    .exit-popup .comment-form__checkbox .exit-popup__consent {
        margin: 13px 1px 15px;
        font-size: 12px;
    }

    .exit-popup .section-home__form--submit .exit-popup__submit {
        min-height: 56px;
        padding: 12px 16px;
        border-radius: 14px;
        font-size: 16px;
        font-weight: 700;
    }
}

@media (max-width: 340px) {
    .exit-popup__dialog {
        padding-right: 14px;
        padding-left: 14px;
    }

    .exit-popup__title {
        font-size: 21px !important;
    }

    .exit-popup__text {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .exit-popup,
    .exit-popup__dialog,
    .exit-popup__close,
    .exit-popup__submit {
        transition: none;
    }
}

