/* Consultation sheet header: calm contact strip above the form. */
.lead-modal__heading-mobile,
.lead-modal__mobile-subtitle { display: none; }
@media (max-width: 640px) {
  .lead-modal__left {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    grid-template-rows: auto auto auto;
    align-items: center;
    column-gap: 12px;
    row-gap: 0;
    padding: 17px 18px 14px;
    background: #edf4ff;
    border-bottom: 1px solid #d8e5fa;
  }
  .lead-modal__left-content { display: contents; }
  .lead-modal__heading {
    grid-column: 2;
    grid-row: 1;
    display: block;
    align-self: end;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    color: #172b4d;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.02em;
    text-wrap: balance;
  }
  .lead-modal__heading-desktop { display: none; }
  .lead-modal__heading-mobile { display: block; }
  .lead-modal__mobile-subtitle {
    grid-column: 2;
    grid-row: 2;
    display: block;
    min-width: 0;
    margin: 4px 0 0;
    color: #657996;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
  }
  .lead-modal__mgr {
    position: static;
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    margin: 0;
    padding: 0;
  }
  .lead-modal__mgr-photo {
    width: 44px;
    height: 44px;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #c9dbfa;
  }
  .lead-modal__close {
    top: 16px;
    right: 18px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid #d4e1f5;
    background: #fff;
  }
  .lead-modal__close svg { stroke: #50627f; }
  .lead-modal__close:hover { background: #f7faff; }
  .lead-modal__direct-call {
    grid-column: 1 / -1;
    grid-row: 3;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    gap: 8px;
    margin: 13px 0 0;
    padding: 10px 0 0;
    border: 0;
    border-top: 1px solid #d1def2;
    border-radius: 0;
    background: transparent;
    color: #0759dc;
  }
  .lead-modal__direct-call strong {
    order: 1;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.2;
    white-space: nowrap;
  }
  .lead-modal__direct-call span {
    order: 2;
    display: block;
    margin-left: auto;
    color: #5a78a4;
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
  }
}
@media (max-width: 360px) {
  .lead-modal__left { grid-template-columns: 40px minmax(0, 1fr) 44px; padding-inline: 16px; }
  .lead-modal__heading { font-size: 17px; }
  .lead-modal__mgr-photo { width: 40px; height: 40px; }
  .lead-modal__direct-call span { display: none; }
}
