.mbn,
.mbn-panel,
.mbn-spacer {
  display: none;
}

@media (max-width: 767px) {
  :root {
    --mbn-bg: rgba(255, 255, 255, 0.92);
    --mbn-text: #141414;
    --mbn-muted: #777;
    --mbn-line: rgba(20, 20, 20, 0.1);
    --mbn-shadow: 0 18px 46px rgba(0, 0, 0, 0.14);
    --mbn-wa: #25d366;
  }

  .mbn,
  .mbn-panel,
  .mbn button,
  .mbn-panel button,
  .mbn-panel input {
    font-family: inherit;
  }

  body.mbn-lock {
    overflow: hidden;
  }

  .mbn-spacer {
    display: block;
    height: calc(74px + env(safe-area-inset-bottom));
  }

  .mbn {
    position: fixed;
    z-index: 99990;
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    height: 66px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    gap: 2px;
    padding: 7px 8px 8px;
    border: 1px solid var(--mbn-line);
    border-radius: 50px;
    background: var(--mbn-bg);
    box-shadow: var(--mbn-shadow);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
  }

  .mbn__item {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--mbn-text);
    min-width: 0;
    min-height: 50px;
    padding: 4px 2px;
    border-radius: 18px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    font-weight: 700;
    font-size: 10.5px;
    line-height: 1.05;
    letter-spacing: -0.01em;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
  }

  .mbn__item:active {
    transform: scale(0.94) translateY(1px);
    background: rgba(0, 0, 0, 0.045);
  }

  .mbn__item svg {
    width: 24px;
    height: 24px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mbn__item--wa {
    color: var(--mbn-wa);
  }

  .mbn__item--wa svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
    stroke: none;
    filter: drop-shadow(0 5px 10px rgba(37, 211, 102, 0.22));
  }

  .mbn-panel {
    position: fixed;
    inset: 0;
    z-index: 99989;
    display: block;
    padding: 18px 12px calc(94px + env(safe-area-inset-bottom));
    background: rgba(245, 245, 245, 0.34);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
  }

  .mbn-panel:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
  }

  .mbn-panel__sheet {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: calc(86px + env(safe-area-inset-bottom));
    max-height: min(72vh, 640px);
    overflow: auto;
    border: 1px solid var(--mbn-line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
    padding: 22px 18px 18px;
    transform: translateY(18px) scale(0.98);
    transition: transform 0.24s ease;
  }

  .mbn-panel:not([hidden]) .mbn-panel__sheet {
    transform: translateY(0) scale(1);
  }

  .mbn-panel__close {
    appearance: none;
    border: 1px solid var(--mbn-line);
    background: #fff;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    position: absolute;
    top: 16px;
    right: 16px;
    color: #111;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  }

  .mbn-panel__close svg {
    width: 18px;
    height: 18px;
    fill: #111;
  }

  .mbn-panel__eyebrow {
    margin: 0 46px 8px 0;
    color: var(--mbn-muted);
    font-weight: 800;
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .mbn-panel h2 {
    margin: 0 46px 18px 0;
    color: #111;
    font-weight: 750;
    font-size: 26px;
    line-height: 1.05;
    letter-spacing: -0.04em;
  }

  .mbn-panel form {
    display: flex;
    gap: 8px;
  }

  .mbn-panel input[type="search"],
  .mbn-panel input[type="text"] {
    min-height: 48px;
    width: 100%;
    border: 1px solid var(--mbn-line);
    border-radius: 999px;
    background: #f7f7f7;
    padding: 0 16px;
    font-size: 16px;
    outline: none;
  }

  .mbn-panel input[type="submit"],
  .mbn-panel button[type="submit"] {
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    background: #111;
    color: #fff;
    padding: 0 18px;
    font-weight: 800;
  }

  .mbn-cats {
    display: grid;
    gap: 9px;
  }

  .mbn-group {
    border: 1px solid var(--mbn-line);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.045);
  }

  .mbn-group__button {
    appearance: none;
    width: 100%;
    min-height: 58px;
    border: 0;
    background: transparent;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 13px;
    text-align: left;
    cursor: pointer;
  }

  .mbn-group__button span {
    min-width: 0;
    display: grid;
    gap: 3px;
  }

  .mbn-group__button strong {
    font-weight: 850;
    font-size: 14px;
    line-height: 1.1;
    letter-spacing: -0.02em;
  }

  .mbn-group__button em {
    color: var(--mbn-muted);
    font-weight: 650;
    font-size: 10.5px;
    line-height: 1.2;
    font-style: normal;
  }

  .mbn-group__button i {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #f5f5f5;
    color: #111;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 18px;
    line-height: 1;
    font-style: normal;
    transition: transform 0.22s ease, background-color 0.22s ease;
  }

  .mbn-group.is-open .mbn-group__button i {
    transform: rotate(45deg);
    background: #111;
    color: #fff;
  }

  .mbn-group__body {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 0 9px 10px;
  }

  .mbn-group.is-open .mbn-group__body {
    display: grid;
  }

  .mbn-cat {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--mbn-line);
    border-radius: 18px;
    background: #fff;
    padding: 8px;
    color: #111;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
  }

  .mbn-cat__image {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #f4f4f4;
  }

  .mbn-cat__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .mbn-cat__image svg {
    width: 22px;
    height: 22px;
    stroke: #111;
    fill: none;
  }

  .mbn-cat__text {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  .mbn-cat strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
    font-size: 12.5px;
    line-height: 1.15;
  }

  .mbn-cat em {
    color: var(--mbn-muted);
    font-weight: 650;
    font-size: 10px;
    line-height: 1.2;
    font-style: normal;
  }

  .mbn-panel__all {
    margin-top: 14px;
    min-height: 46px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 850;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .mbn-empty {
    margin: 0;
    color: var(--mbn-muted);
    font-size: 14px;
  }
}
