/* Модалка «Оставить заявку» — улучшенный макет */
.consult-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 14050;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.consult-modal.is-open { display: flex; }
.consult-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .55);
}
.consult-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    max-height: min(94vh, 820px);
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    border: 1px solid rgba(26, 43, 72, .1);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
    padding: 24px 26px 20px;
    border-radius: 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}
.consult-modal__dialog::-webkit-scrollbar {
    width: 5px;
}
.consult-modal__dialog::-webkit-scrollbar-track {
    background: transparent;
}
.consult-modal__dialog::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 4px;
}
.consult-modal__dialog::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.55);
}
.consult-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #94a3b8;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}
.consult-modal__close:hover {
    color: #0f172a;
    background: #f1f5f9;
}
.consult-modal__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #c45c4a;
    margin-bottom: 6px;
    padding-right: 36px;
}
.consult-modal__dialog h3 {
    margin: 0 0 6px;
    padding-right: 36px;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #0f172a;
    line-height: 1.25;
}
.consult-modal__lead {
    margin: 0 0 12px;
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.45;
}
.consult-modal__card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 8px;
}
.consult-modal__card span {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}
.consult-modal__card strong {
    display: block;
    font-size: 14.5px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.consult-modal__phone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    position: relative;
    z-index: 3;
    width: 100%;
    min-height: 48px;
    margin-bottom: 12px;
    padding: 8px 14px;
    box-sizing: border-box;
    background: #c45c4a;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}
.consult-modal__phone:hover {
    background: #b04d3d;
    color: #fff;
}
.consult-modal__phone:active {
    background: #9a4335;
}
.consult-modal__phone.is-disabled {
    opacity: .55;
    cursor: not-allowed;
    pointer-events: none;
}
.consult-modal__phone-row {
    display: block;
    pointer-events: none;
}
.consult-modal__phone-sub {
    font-size: 11px;
    font-weight: 600;
    opacity: .9;
    letter-spacing: .02em;
    pointer-events: none;
}
.consult-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.consult-form__field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
}
.consult-form__control {
    position: relative;
}
.consult-form input,
.consult-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(15, 23, 42, .14);
    background: #fff;
    padding: 9px 12px;
    font: inherit;
    font-size: 14px;
    color: #0f172a;
    border-radius: 8px;
}
.consult-form textarea {
    resize: vertical;
    min-height: 64px;
}
.consult-form input:focus,
.consult-form textarea:focus {
    outline: 2px solid rgba(196, 92, 74, .28);
    outline-offset: 1px;
    border-color: rgba(196, 92, 74, .45);
}
.consult-form__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.consult-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    background: #0f172a;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    margin-top: 2px;
}
.consult-form__submit:hover { background: #1e293b; }
.consult-form__submit:disabled { opacity: .55; cursor: wait; }
.consult-form__status {
    min-height: 1.2em;
    font-size: 13px;
    margin: 0;
}
.consult-form__status.is-ok { color: #15803d; }
.consult-form__status.is-err { color: #b91c1c; }
.consult-form__hint {
    margin: 0;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.45;
}

@media (max-width: 480px) {
    .consult-modal { padding: 10px; align-items: flex-end; }
    .consult-modal__dialog {
        width: 100%;
        max-height: 92vh;
        padding: 22px 18px 18px;
        border-radius: 14px 14px 0 0;
    }
    .consult-modal__dialog h3 { font-size: 20px; }
}
