.mobile-lead-trigger,
.mobile-lead-dialog:not([open]) {
  display: none;
}

@media (max-width: 700px) {
  #contacts.mobile-lead-ready {
    background: #0a0b0d;
    scroll-margin-top: 64px;
  }

  #contacts.mobile-lead-ready::before {
    content: none;
  }

  .mobile-lead-ready .universal-lead-form-module__RSz_5W__visual {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 4;
    object-position: 57% center;
    mask-image: linear-gradient(#000 78%, transparent);
  }

  .mobile-lead-ready .universal-lead-form-module__RSz_5W__shell {
    display: block;
    min-height: 0;
    padding: 22px 18px 34px;
  }

  .mobile-lead-ready .universal-lead-form-module__RSz_5W__shell > .universal-lead-form-module__RSz_5W__card {
    display: none;
  }

  .mobile-lead-ready .mobile-lead-trigger {
    display: flex;
    width: 100%;
    min-height: 60px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
    padding: 10px 14px;
    text-align: left;
  }

  .mobile-lead-trigger .mobile-lead-arrow {
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: #ffffff38;
    font-size: 22px;
  }

  .mobile-lead-dialog[open] {
    --lead-available-height: min(100dvh, var(--lead-viewport-height, 100dvh));
    position: fixed;
    inset: calc(var(--lead-viewport-top, 0px) + var(--lead-available-height) / 2) 0 auto;
    transform: translateY(-50%);
    box-sizing: border-box;
    width: min(440px, calc(100% - 24px));
    max-height: calc(var(--lead-available-height) - 24px);
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #f7f7f3;
    overflow: auto;
    overscroll-behavior: contain;
    scroll-padding-block: 16px;
  }

  .mobile-lead-dialog::backdrop {
    background: #090b0dc2;
  }

  html:has(.mobile-lead-dialog[open]) {
    overflow: hidden;
  }

  .mobile-lead-dialog .universal-lead-form-module__RSz_5W__card {
    padding: 4px 20px 24px;
    border: 0;
    box-shadow: none;
  }

  .mobile-lead-dialog input {
    font-size: 16px;
  }

  .mobile-lead-close {
    display: block;
    width: 44px;
    height: 44px;
    margin: 4px 4px 0 auto;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #20272b;
    font-family: inherit;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
  }
}
