@media (max-width: 900px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  html {
    overflow-x: clip;
  }

  body {
    min-width: 0;
    padding-top: 64px;
    padding-bottom: calc(55px + env(safe-area-inset-bottom, 0px));
    overflow-x: clip;
  }

  .site-header {
    position: fixed !important;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    max-width: 100%;
    background: #edf3f8;
  }

  .site-header__main {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 12px;
    height: 64px;
    min-height: 64px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-inline: 16px;
    box-sizing: border-box;
  }

  .site-header .logo {
    width: 116px;
  }

  .site-header__phone {
    display: none !important;
  }

  .search input {
    height: 34px;
    padding: 0 14px 0 38px;
    font-size: 12px;
  }

  .search button {
    right: auto;
    left: 8px;
    width: 22px;
    height: 22px;
  }

  .search img {
    width: 17px;
    height: 18px;
  }

  .site-header::after {
    position: fixed;
    z-index: 998;
    right: 0;
    bottom: 0;
    left: 0;
    height: calc(55px + env(safe-area-inset-bottom, 0px));
    content: "";
    background: #fff;
    box-shadow: 0 -2px 12px rgba(0, 38, 79, .08);
  }

  .site-header__catalog {
    position: fixed !important;
    z-index: 999;
    bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    display: inline-flex !important;
    width: clamp(122px, calc(100vw - 202px), 180px);
    min-width: 0;
    min-height: 42px;
    padding: 7px 18px;
    white-space: nowrap;
  }

  .mobile-catalog {
    position: fixed;
    z-index: 997;
    top: 64px;
    right: 0;
    bottom: calc(55px + env(safe-area-inset-bottom, 0px));
    left: 0;
    display: grid;
    align-content: start;
    padding: 8px 22px 24px;
    overflow-y: auto;
    color: var(--color-navy);
    background: #fff;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 220ms ease;
  }

  .mobile-catalog[hidden] {
    display: none;
  }

  .mobile-catalog.is-open {
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-catalog a {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 76px;
    border-bottom: 2px solid #edf3f8;
    font-size: 24px;
    line-height: 1.1;
  }

  .mobile-catalog img {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: 10px;
    background: #edf3f8;
  }

  body.has-mobile-catalog-open {
    overflow: hidden;
  }

  .user-nav {
    position: fixed !important;
    z-index: 999;
    right: 6px;
    bottom: 0;
    display: flex !important;
    align-items: center;
    gap: clamp(4px, 2vw, 8px);
    height: calc(55px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .user-nav > :not(:first-child) {
    display: grid !important;
  }

  .user-nav > :first-child {
    display: none !important;
  }

  .user-nav > a[href^="mailto:"] {
    position: fixed !important;
    z-index: 1001;
    top: 17px;
    right: 14px;
    display: grid !important;
    width: 30px;
    height: 30px;
    padding: 0;
    place-items: center;
  }

  .user-nav a,
  .user-nav button {
    width: 30px;
    height: 30px;
    padding: 3px;
  }

  .user-nav__divider {
    display: block !important;
    width: 1px;
    height: 42px;
    margin: 0 2px 0 0;
  }

  .catalog-page,
  .product-page,
  .account-page,
  main,
  section,
  footer,
  .site-footer,
  .container {
    max-width: 100%;
  }
}

@media (max-width: 340px) {
  .site-header__catalog {
    width: 116px;
    padding-inline: 12px;
    font-size: 13px;
  }

  .user-nav {
    gap: 3px;
    right: 4px;
  }

  .user-nav a,
  .user-nav button {
    width: 28px;
    height: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-catalog {
    transition: none;
  }
}
