@media (min-width: 801px) {
  .desktop-nav {
    display: block;
    position: relative;
  }

  .desktop-nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .desktop-nav-list > li {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .desktop-nav-list > li > a,
  .desktop-products-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #403f3f;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .desktop-products-toggle {
    gap: 8px;
  }

  .desktop-nav-list > li > a:hover,
  .desktop-products-toggle:hover,
  .desktop-products-item.is-open .desktop-products-toggle {
    background: #161541;
    color: #fff;
  }

  .desktop-nav-list > li > a[aria-current="page"] {
    color: #d41414;
    font-weight: 700;
  }

  .desktop-products-item.has-current-page:not(.is-open) .desktop-products-toggle {
    color: #d41414;
    font-weight: 700;
  }

  .desktop-nav-list > li > a:focus-visible,
  .desktop-products-toggle:focus-visible,
  .desktop-mega-menu a:focus-visible {
    outline: 3px solid rgba(212, 20, 20, 0.35);
    outline-offset: 2px;
  }

  .desktop-menu-chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
  }

  .desktop-products-toggle[aria-expanded="true"] .desktop-menu-chevron {
    transform: rotate(180deg);
  }

  .desktop-mega-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 20000;
    width: min(780px, calc(100vw - 32px));
    overflow: hidden;
    border: 1px solid #e7e7eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(22, 21, 65, 0.18);
    color: #333;
    opacity: 0;
    transform: translateY(-6px);
  }

  .desktop-mega-menu.is-open {
    opacity: 1;
    transform: translateY(0);
    animation: desktop-menu-enter 0.18s ease-out;
  }

  .desktop-mega-menu[hidden] {
    display: none;
  }

  .desktop-mega-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 20px;
    border-bottom: 1px solid #ececf1;
    background: linear-gradient(135deg, #f7f7fa 0%, #fff 100%);
  }

  .desktop-mega-menu-header > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .desktop-mega-menu-header strong {
    color: #161541;
    font-size: 16px;
  }

  .desktop-mega-menu-header span {
    color: #777;
    font-size: 12px;
  }

  .desktop-mega-menu-header > a {
    flex: 0 0 auto;
    padding: 7px 12px;
    border: 1px solid #dedee7;
    border-radius: 8px;
    color: #4b4a61;
    font-size: 12px;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
  }

  .desktop-mega-menu-header > a:hover {
    border-color: #d41414;
    color: #d41414;
  }

  .desktop-mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 8px;
  }

  .desktop-menu-group {
    min-width: 0;
    padding: 14px 16px 16px;
    border-radius: 10px;
  }

  .desktop-menu-group:hover,
  .desktop-menu-group:focus-within {
    background: #f8f8fa;
  }

  .desktop-menu-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    color: #23223f;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
  }

  .desktop-menu-icon {
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #eeeef4;
  }

  .desktop-menu-icon img {
    display: block;
    max-width: 18px;
    max-height: 27px;
  }

  .desktop-menu-group ul {
    margin: 8px 44px 0 0;
    padding: 0;
    list-style: none;
  }

  .desktop-menu-group li {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .desktop-menu-group li + li {
    margin-top: 2px;
  }

  .desktop-menu-group li a {
    display: block;
    padding: 5px 0;
    color: #62616d;
    font-size: 13px;
    line-height: 1.65;
    text-decoration: none;
    transition: color 0.15s ease, transform 0.15s ease;
  }

  .desktop-menu-group li a::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-left: 8px;
    border-radius: 50%;
    background: #c9c8d1;
    vertical-align: middle;
  }

  .desktop-menu-group li a:hover,
  .desktop-menu-group a[aria-current="page"] {
    color: #d41414;
  }

  .desktop-menu-group li a:hover {
    transform: translateX(-2px);
  }

  .desktop-menu-group p {
    margin: 8px 44px 0 0;
    color: #777681;
    font-size: 12px;
    line-height: 1.7;
  }

  @keyframes desktop-menu-enter {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (min-width: 801px) and (max-width: 920px) {
  .desktop-nav-list > li > a,
  .desktop-products-toggle {
    padding-inline: 10px;
    font-size: 14px;
  }

  .desktop-mega-menu {
    width: calc(100vw - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .desktop-menu-chevron,
  .desktop-nav-list > li > a,
  .desktop-products-toggle,
  .desktop-mega-menu,
  .desktop-menu-group li a {
    animation: none;
    transition: none;
  }
}
