@media screen and (max-width: 1023px) {
  .panel.header .button.icon.menu {
    display: inline-flex;
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }

  .panel.header .button.icon.menu:hover,
  .panel.header .button.icon.menu:focus-visible {
    background: #f1f5ec;
  }

  .panel.header .button.icon.menu:focus-visible {
    outline: 2px solid #68af1b !important;
    outline-offset: 2px;
  }

  .panel.header .button.icon.menu svg {
    width: 27px;
    height: 27px;
    flex: none;
  }

  .panel.header .button.icon.menu.active,
  .panel.header .button.icon.menu.opening,
  .panel.header .button.icon.menu.closing {
    position: fixed;
    z-index: 33;
    top: 14px;
    right: 18px;
    visibility: hidden;
    pointer-events: none;
    background: #fff;
    box-shadow: 0 4px 16px rgba(46, 46, 46, 0.12);
  }

  .mobile-menu-backdrop {
    display: none;
    position: fixed;
    z-index: 30;
    inset: 0;
    background: rgba(25, 31, 28, 0.58);
  }

  .panel.menu {
    display: none;
    position: fixed;
    z-index: 32;
    /* responsiveDropdown calculates an offset below the header inline.
       The mobile navigation is a viewport drawer, so it must always start
       at the top edge and occupy the whole screen. */
    top: 0 !important;
    right: auto;
    bottom: 0;
    left: 0;
    width: min(100%, 420px);
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh;
    max-height: 100dvh;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    box-shadow: 14px 0 36px rgba(25, 31, 28, 0.18);
  }

  .panel.menu,
  .panel.menu * {
    box-sizing: border-box;
  }

  .panel.menu > .flex.vertical {
    min-height: 100%;
    gap: 0;
    padding: 0 0 32px;
  }

  .panel.menu .mobile-menu-heading {
    position: sticky;
    z-index: 2;
    top: 0;
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 18px 14px 24px;
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
    color: #2e2e2e;
    font: 700 22px/30px Montserrat, Helvetica, sans-serif;
  }

  .panel.menu .mobile-menu-close {
    display: inline-flex;
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: #2e2e2e;
    font: 300 36px/1 Arial, Helvetica, sans-serif;
  }

  .panel.menu .mobile-menu-close:hover,
  .panel.menu .mobile-menu-close:focus-visible {
    background: #f1f5ec;
  }

  .panel.menu .mobile-menu-close:focus-visible {
    outline: 2px solid #68af1b !important;
    outline-offset: 2px;
  }

  .panel.menu .wrapper {
    width: 100%;
    max-width: none;
    padding-right: 24px;
    padding-left: 24px;
  }

  .panel.menu .form.search {
    margin: 20px 0;
  }

  .panel.menu .form.search .input {
    height: 52px;
    padding-right: 56px;
    border-radius: 28px;
    font-size: 16px;
  }

  .panel.menu .form.search .button.submit {
    right: 18px;
    width: 44px;
    height: 44px;
  }

  .panel.menu .navigation.header {
    width: 100%;
    flex: 1 0 auto;
    overflow: visible;
    font-size: 22px;
    font-weight: 600;
    line-height: 30px;
  }

  .panel.menu .navigation.header nav,
  .panel.menu .navigation.header ul.level-1 {
    width: 100%;
  }

  .panel.menu .navigation.header li > span {
    display: flex;
    min-height: 66px;
    align-items: center;
    padding: 16px 24px 15px;
  }

  .panel.menu .navigation.header li > span > a {
    display: flex;
    min-width: 0;
    min-height: 30px;
    flex: 1;
    align-items: center;
  }

  .panel.menu .navigation.header li.parent > span::after {
    right: 26px;
    width: 7px;
    background-size: 7px 14px;
  }

  .panel.menu .navigation.header ul.level-1 > li.parent.services > span {
    padding-left: 60px !important;
  }

  .panel.menu .navigation.header ul.level-1 > li.parent.services > span::before {
    left: 26px;
  }

  .panel.menu .navigation.header li.return > span {
    min-height: 58px;
  }

  .panel.menu .navigation.header .sublist {
    min-height: 100%;
    background: #fff;
  }

  .panel.menu .navigation.header + .wrapper {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
  }

  .panel.menu .wrapper.flex.vertical {
    align-items: flex-start;
    gap: 12px;
  }

  .panel.menu .block.address,
  .panel.menu .block.contact {
    font-size: 16px;
    line-height: 26px;
  }

  .panel.menu .link.phone {
    font-size: 20px;
    line-height: 30px;
  }

  .panel.menu .button.callback {
    min-height: 48px;
  }

  .panel.menu .block.buttons.flex {
    gap: 14px;
    padding-top: 18px;
  }
}

@media screen and (max-width: 420px) {
  .panel.menu {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .panel.menu,
  .mobile-menu-backdrop {
    scroll-behavior: auto;
  }
}
