@media (max-width: 767px) {
  .models-header__bar {
    min-height: 52px;
    padding: 0 18px;
    gap: 12px;
  }

  .models-header__primary,
  .models-header__secondary,
  .models-header__locale {
    display: none;
  }

  .models-header__actions {
    gap: 10px;
  }

  .catalog-filter-toolbar {
    width: 100%;
    justify-content: flex-start;
  }

  .models-page__main .grid > * {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .models-header__menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: #0f172a;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 3px;
    cursor: pointer;
  }

  .models-header__menu-toggle:hover,
  .models-header__menu-toggle:focus-visible {
    border-color: #cbd5e1;
    background: #f8fafc;
  }

  .models-header__menu-toggle svg,
  .models-mobile-drawer__close svg {
    width: 20px;
    height: 20px;
  }

  .models-mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: block;
    pointer-events: none;
  }

  .models-mobile-drawer.is-open {
    pointer-events: auto;
  }

  .models-mobile-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .models-mobile-drawer.is-open .models-mobile-drawer__backdrop {
    opacity: 1;
  }

  .models-mobile-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(86%, 340px);
    box-sizing: border-box;
    padding: 20px 22px 26px;
    overflow-y: auto;
    background: #fff;
    border-left: 1px solid #e2e8f0;
    box-shadow: -24px 0 60px rgba(15, 23, 42, 0.16);
    transform: translateX(100%);
    transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .models-mobile-drawer.is-open .models-mobile-drawer__panel {
    transform: translateX(0);
  }

  .models-mobile-drawer__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    color: #64748b;
    font-family: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .models-mobile-drawer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-right: -6px;
    padding: 0;
    color: #64748b;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 3px;
    cursor: pointer;
  }

  .models-mobile-drawer__nav {
    display: flex;
    flex-direction: column;
    margin-bottom: 26px;
  }

  .models-mobile-drawer__nav a {
    display: flex;
    align-items: center;
    min-height: 42px;
    color: #0f172a;
    border-bottom: 1px solid #f1f5f9;
    font-size: 15px;
    text-decoration: none;
  }

  .models-mobile-drawer__nav a::after {
    margin-left: auto;
    color: #94a3b8;
    content: "→";
  }

  .models-mobile-drawer__nav a:hover,
  .models-mobile-drawer__nav a:focus-visible {
    color: #2563eb;
  }

  .models-mobile-drawer__section-label {
    margin-bottom: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .models-page *,
  .models-page *::before,
  .models-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
