.popup {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    display: none;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .5)
}

.popup.show {
    display: block;
}

.popup__dialog {
    max-width: 1000px;
    margin: 60px auto;
    box-sizing: border-box;
}

.popup__content {
    position: relative;
    width: 100%;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: 4px;
    max-height: 85vh;
    overflow-y: auto;
    transform: scale(.9);
}

.popup-close {
    position: absolute;
    top: 8px;
    right: 14px;
    font-size: 30px;
    color: #000;
    opacity: .5;
    font-weight: 700;
    border: none;
    background-color: transparent;
    cursor: pointer;
}

.popup .callback {
    margin: 0px !important;
}

input[type="checkbox"].input_error ~ label {
    color: red;
}

.mobiles {
    display: flex;
    gap: 5px;
    flex-direction: column;
}

@media (max-width: 998px) {
    .popup__dialog {
        margin: 40px auto;
    }
    .popup .callback__title {
        margin-bottom: 20px;
        padding: 15px 15px 0 15px;
    }
    .popup__content {
        max-height: 90vh;
    }
}

.header__bottom {
    display: none !important;
}
.site-lead-popup[hidden] {
    display: none;
}

.site-lead-popup {
    align-items: center;
    background: rgba(15, 23, 42, .58);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    z-index: 11000;
}

.site-lead-popup__dialog {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
    max-width: 460px;
    padding: 28px;
    position: relative;
    width: 100%;
}

.site-lead-popup__close {
    align-items: center;
    background: #f1f5f9;
    border: 0;
    border-radius: 50%;
    color: #334155;
    cursor: pointer;
    display: flex;
    font-size: 28px;
    height: 36px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 14px;
    top: 14px;
    width: 36px;
}

.site-lead-popup__dialog h2 {
    color: #020617;
    font-size: 26px;
    line-height: 1.15;
    margin: 0 42px 10px 0;
}

.site-lead-popup__dialog p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 18px;
}

.site-lead-popup__form {
    display: grid;
    gap: 9px;
    margin: 0 !important;
}

.site-lead-popup__form .input {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    min-height: 44px;
    padding: 0 14px;
    width: 100%;
}

.site-lead-popup__form .btn {
    background: #2563eb;
    border: 0;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    min-height: 50px;
    padding: 12px 16px;
    width: 100%;
}

.site-lead-popup__form .btn:disabled {
    cursor: wait;
    opacity: .65;
}

.site-lead-popup__form .callback__message:empty {
    display: none;
}

.site-lead-popup__form .callback__message:not(:empty) {
    display: flex;
    margin-top: 0;
    padding: 10px 12px;
}

body.site-lead-popup-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .site-lead-popup {
        align-items: flex-end;
        padding: 10px;
    }

    .site-lead-popup__dialog {
        border-radius: 16px;
        max-height: calc(100vh - 20px);
        overflow-y: auto;
        padding: 22px 16px 16px;
    }

    .site-lead-popup__dialog h2 {
        font-size: 21px;
    }
}

.site-lead-popup__field {
    display: grid;
    gap: 5px;
}

.site-lead-popup__field span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 640px) {
    .site-lead-popup {
        align-items: center;
    }
}
