/* ============================================================
 * Exit-intent попап «Уже уходите?». Палитра case-v6.
 * ============================================================ */
.exit-popup {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.exit-popup.is-open { display: flex; }
html.exit-popup-lock { overflow: hidden; }

.exit-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 20, 25, 0.55);
    backdrop-filter: blur(2px);
}

.exit-popup-window {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 720px;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(15, 20, 25, 0.35);
    animation: exitPopupIn .35s ease-out;
}
@keyframes exitPopupIn {
    from { opacity: 0; transform: translateY(16px) scale(.98); }
    to   { opacity: 1; transform: none; }
}

.exit-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: #0F1419;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, color .2s ease;
}
.exit-popup-close:hover { background: #E43F6F; color: #fff; }

.exit-popup-grid {
    display: grid;
    grid-template-columns: 40% 60%;
}

.exit-popup-media {
    background: #EEF1F3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.exit-popup-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.exit-popup-body {
    padding: 36px 34px 32px;
}
.exit-popup-title {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 700;
    color: #1A1F25;
}
.exit-popup-subtitle {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 23px;
    color: #5E7480;
}

/* Поля компактные (контекстно, глобальные .form-input не трогаем) */
.exit-popup .form-input { margin: 12px 0; }
.exit-popup .form-input input {
    height: 52px;
    padding: 22px 18px 8px 18px;
}
.exit-popup .form-input > span { left: 18px; top: 16px; font-size: 15px; }
.exit-popup .form-input.focus > span,
.exit-popup .form-input.focus-always > span,
.exit-popup .form-input.full > span { top: 9px; font-size: 12px; }

.exit-popup .form-input-captcha { margin: 12px 0; }
.exit-popup .smart-captcha { max-width: 100%; overflow: hidden; }
.exit-popup .smart-captcha iframe { max-width: 100% !important; }

.exit-popup .form-submit { margin-top: 16px; }
.exit-popup .form-submit .btn { width: 100%; }
.exit-popup .form-notice {
    margin-top: 14px;
    font-size: 13px;
    line-height: 18px;
    color: #5E7480;
    text-align: center;
}
.exit-popup .form-notice a { color: #2F80ED; }

@media (max-width: 700px) {
    .exit-popup-window { max-width: 420px; }
    .exit-popup-grid { grid-template-columns: 1fr; }
    .exit-popup-media { max-height: 160px; }
    .exit-popup-body { padding: 24px 20px 24px; }
    .exit-popup-title { font-size: 24px; }
}
