:root {
  --dsh-red: #e60013;
  --dsh-navy: #1d2088;
  --dsh-ink: #171a2f;
  --dsh-muted: #6d7284;
  --dsh-line: #e9eaf0;
}

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

.dsh-menu {
  position: relative;
  z-index: 999;
  color: var(--dsh-ink);
  font-family: inherit;
}

.dsh-menu a,
.dsh-menu button {
  font: inherit;
}

.dsh-menu a:hover,
.dsh-menu a:focus,
.dsh-menu a:active,
.dsh-menu button:hover,
.dsh-menu button:focus,
.dsh-menu button:active {
  text-decoration: none;
  outline: none;
}

.dsh-menu svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dsh-menu-bar {
  display: flex;
  min-height: 58px;
  align-items: center;
}

.dsh-nav {
  display: flex;
  width: 100%;
  align-items: center;
}

.dsh-nav > ul {
  display: flex;
  gap: 5px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dsh-nav > ul > li {
  display: flex;
  align-items: center;
}

.dsh-nav > ul > li > a,
.dsh-has-mega > button {
  position: relative;
  display: flex;
  height: 44px;
  gap: 6px;
  align-items: center;
  padding: 0 15px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #272a3d;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.dsh-nav > ul > li > a::after,
.dsh-has-mega > button::after {
  content: "";
  position: absolute;
  right: 15px;
  bottom: 3px;
  width: 0;
  height: 2px;
  border-radius: 9px;
  background: var(--dsh-red);
  transition: width .25s ease;
}

.dsh-nav > ul > li > a:hover,
.dsh-nav > ul > li > a:focus,
.dsh-has-mega > button:hover,
.dsh-has-mega > button:focus,
.dsh-has-mega.is-open > button {
  background: #f5f6ff !important;
  color: var(--dsh-navy) !important;
}

.dsh-nav > ul > li > a:hover::after,
.dsh-nav > ul > li > a:focus::after,
.dsh-has-mega.is-open > button::after {
  width: 22px;
}

.dsh-has-mega > button svg {
  width: 14px;
  height: 14px;
  transition: transform .2s ease;
}

.dsh-has-mega.is-open > button svg {
  transform: rotate(180deg);
}

.dsh-home-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dsh-home-menu svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-2px);
}

.dsh-has-mega > button svg {
  transform: translateY(-2px);
}

.dsh-has-mega.is-open > button svg {
  transform: translateY(-2px) rotate(180deg);
}

.dsh-toggle,
.dsh-mobile-head {
  display: none;
}

.dsh-mega {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(940px, calc(100vw - 40px));
  padding: 20px;
  border: 1px solid rgba(29, 32, 136, .1);
  border-radius: 0 0 22px 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(18, 22, 54, .18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.dsh-mega::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--dsh-red), var(--dsh-navy));
}

.dsh-has-mega.is-open > .dsh-mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dsh-mega-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 2px 15px;
  border-bottom: 1px solid var(--dsh-line);
}

.dsh-mega-head div {
  display: grid;
  gap: 3px;
}

.dsh-mega-head small {
  color: var(--dsh-red);
  font-size: 11px;
  font-weight: 800;
}

.dsh-mega-head strong {
  font-size: 18px;
}

.dsh-mega-head > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: #f0f0ff;
  color: var(--dsh-navy);
}

.dsh-cars-scroll {
  max-height: 390px;
  margin: 0 -8px;
  padding: 0 8px 10px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.dsh-brand-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 8px;
  margin: 0 0 6px;
  padding: 16px 0 8px;
  background: #fff;
}

.dsh-brand-tabs button {
  display: flex;
  min-width: 100px;
  height: 38px;
  gap: 8px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e4e6ef;
  border-radius: 11px;
  background: #fff !important;
  color: #3b3e52 !important;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.dsh-brand-tabs button:hover,
.dsh-brand-tabs button:focus {
  border-color: #cdd2eb !important;
  background: #f5f7ff !important;
  color: var(--dsh-navy) !important;
}

.dsh-brand-tabs button.is-active,
.dsh-brand-tabs button.is-active:hover,
.dsh-brand-tabs button.is-active:focus {
  border-color: rgba(29, 32, 136, .28) !important;
  background: #eef1ff !important;
  color: var(--dsh-navy) !important;
}

.dsh-brand-logo {
  display: grid;
  width: 34px;
  height: 23px;
  flex: 0 0 34px;
  place-items: center;
}

.dsh-brand-logo img {
  display: block !important;
  width: 34px !important;
  height: 23px !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  object-fit: contain !important;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  transition: transform .18s ease !important;
}

.dsh-brand-tabs button:hover .dsh-brand-logo img,
.dsh-brand-tabs button:focus .dsh-brand-logo img {
  transform: scale(1.06) !important;
}

.dsh-tab-panel {
  display: none;
}

.dsh-tab-panel.is-active {
  display: block;
}

.dsh-tab-panel[hidden] {
  display: none !important;
}

.dsh-car-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 8px 2px 12px;
}

.dsh-car-card {
  min-width: 0;
  padding: 10px 8px 9px;
  overflow: hidden;
  border: 1px solid var(--dsh-line);
  border-radius: 15px;
  background: #fff;
  color: var(--dsh-ink);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: border-color .22s ease, color .22s ease, box-shadow .22s ease;
}

.dsh-car-card:hover,
.dsh-car-card:focus {
  border-color: rgba(230, 0, 19, .42) !important;
  background: #fff !important;
  color: var(--dsh-red) !important;
  box-shadow: 0 10px 24px rgba(25, 28, 60, .09);
}

.dsh-car-image {
  display: grid;
  height: 96px;
  place-items: center;
  margin-bottom: 7px;
  padding: 3px;
  overflow: hidden;
  border-radius: 11px;
  background: linear-gradient(145deg, #f8f9fc, #fff);
}

.dsh-car-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
}

.dsh-car-fallback {
  color: #a7a9b6;
}

.dsh-car-fallback svg {
  width: 38px;
  height: 38px;
}

.dsh-all {
  display: flex;
  min-height: 42px;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 13px;
  border-radius: 12px;
  background: #f6f6fa;
  color: var(--dsh-navy);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.dsh-all:hover,
.dsh-all:focus {
  background: var(--dsh-red) !important;
  color: #fff !important;
}

.dsh-parts {
  width: min(820px, calc(100vw - 40px));
  overflow-x: hidden;
}

.dsh-parts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  max-height: 340px;
  margin-top: 16px;
  padding: 7px 5px 10px;
  overflow-x: hidden;
  overflow-y: auto;
}

.dsh-part-link {
  display: grid;
  min-width: 0;
  min-height: 58px;
  grid-template-columns: minmax(0, 1fr) 22px;
  gap: 8px;
  align-items: center;
  padding: 7px 9px;
  overflow: hidden;
  border: 1px solid var(--dsh-line);
  border-radius: 13px;
  color: var(--dsh-ink);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.dsh-part-link.dsh-has-part-icon {
  grid-template-columns: 42px minmax(0, 1fr) 22px;
}

.dsh-part-link:hover,
.dsh-part-link:focus {
  border-color: rgba(29, 32, 136, .38) !important;
  background: #f6f7ff !important;
  color: var(--dsh-navy) !important;
}

.dsh-part-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: #f4f4fa;
  color: var(--dsh-red);
}

.dsh-part-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dsh-part-name {
  min-width: 0;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.dsh-part-arrow {
  display: grid;
  place-items: center;
  color: #aeb1be;
  transition: color .2s ease, transform .2s ease;
}

.dsh-part-arrow svg {
  width: 17px;
  height: 17px;
}

.dsh-part-link:hover .dsh-part-arrow,
.dsh-part-link:focus .dsh-part-arrow {
  color: var(--dsh-navy);
  transform: translateX(-2px);
}

.dsh-empty {
  grid-column: 1 / -1;
  color: var(--dsh-muted);
  text-align: center;
}

html.dsh-page-locked,
body.dsh-page-locked {
  overflow: hidden !important;
  overscroll-behavior: none;
}

body.dsh-page-locked {
  position: fixed !important;
  right: 0;
  left: 0;
  width: 100%;
}

@media (max-width: 1024px) {
  .dsh-menu-bar {
    min-height: 44px;
    justify-content: flex-end;
  }

  .dsh-toggle,
  .dsh-toggle:hover,
  .dsh-toggle:focus,
  .dsh-toggle:active {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--dsh-navy) !important;
    box-shadow: none !important;
    cursor: pointer;
  }

  .dsh-toggle .dsh-open-icon {
    display: grid;
    width: 28px;
    height: 24px;
    place-items: center;
  }

  .dsh-toggle .dsh-open-icon svg {
    width: 28px;
    height: 24px;
    stroke-width: 2.4;
  }

  .dsh-toggle .dsh-menu-lines path:nth-child(1),
  .dsh-toggle .dsh-menu-lines path:nth-child(3) {
    stroke: var(--dsh-red);
  }

  .dsh-toggle .dsh-menu-lines path:nth-child(2) {
    stroke: var(--dsh-navy);
  }

  .dsh-nav {
    position: fixed;
    z-index: 10001;
    inset: 0;
    display: block;
    width: 100vw;
    max-width: none;
    height: 100dvh;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    box-shadow: none;
    transform: translateX(102%);
    transition: transform .28s ease;
    -webkit-overflow-scrolling: touch;
  }

  .dsh-menu.is-menu-open .dsh-nav {
    transform: translateX(0);
  }

  .dsh-mobile-head {
    position: sticky;
    z-index: 50;
    top: 0;
    display: flex;
    height: 56px;
    align-items: center;
    justify-content: space-between;
    padding: max(0px, env(safe-area-inset-top)) 16px 0;
    border: 0;
    border-bottom: 1px solid var(--dsh-line);
    background: #fff;
  }

  .dsh-mobile-head strong {
    color: var(--dsh-navy);
    font-size: 16px;
    font-weight: 900;
  }

  .dsh-mobile-head button,
  .dsh-mobile-head button:hover,
  .dsh-mobile-head button:focus {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--dsh-red) !important;
    box-shadow: none !important;
    cursor: pointer;
  }

  .dsh-nav > ul {
    display: block;
    margin: 0;
    padding: 0 14px 24px;
  }

  .dsh-nav > ul > li {
    display: block;
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--dsh-line);
  }

  .dsh-nav > ul > li > a,
  .dsh-has-mega > button {
    width: 100%;
    height: 56px;
    justify-content: space-between;
    padding: 0 8px;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--dsh-ink) !important;
    box-shadow: none !important;
  }

  .dsh-nav > ul > li > a::after,
  .dsh-has-mega > button::after {
    display: none;
  }

  .dsh-nav > ul > li > a:hover,
  .dsh-nav > ul > li > a:focus,
  .dsh-has-mega > button:hover,
  .dsh-has-mega > button:focus,
  .dsh-has-mega.is-open > button {
    background: #f5f6ff !important;
    color: var(--dsh-navy) !important;
  }

  .dsh-mega {
    position: static;
    display: none;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .dsh-has-mega.is-open > .dsh-mega {
    display: block;
  }

  .dsh-mega::before,
  .dsh-mega-head {
    display: none;
  }

  .dsh-cars-scroll {
    position: static;
    max-height: none;
    margin: 0 -14px;
    padding: 0 14px 10px;
    overflow: visible;
  }

  .dsh-brand-tabs {
    position: sticky;
    z-index: 40;
    top: 56px;
    gap: 8px;
    margin: 0 -14px 10px;
    padding: 8px 14px;
    border: 0;
    border-bottom: 1px solid #edf0f6;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 8px 14px rgba(20, 23, 55, .06);
  }

  .dsh-brand-tabs button {
    flex: 1;
    min-width: 0;
    border: 0 !important;
    box-shadow: none !important;
  }

  .dsh-brand-tabs button.is-active {
    border-radius: 9px;
  }

  .dsh-car-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 8px 2px 10px;
  }

  .dsh-car-card,
  .dsh-car-card:hover,
  .dsh-car-card:focus {
    transform: none !important;
  }

  .dsh-car-image {
    height: 88px;
  }

  .dsh-parts-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    max-height: none;
    margin: 5px 0 0;
    padding: 5px 2px;
    overflow: visible;
  }

  .dsh-part-link,
  .dsh-part-link:hover,
  .dsh-part-link:focus {
    transform: none !important;
  }
}

@media (max-width: 900px) {
  .dsh-home-menu a {
    justify-content: space-between;
    flex-direction: row-reverse;
  }

  .dsh-home-menu svg {
    transform: translateY(-1px);
  }
}

@media (max-width: 600px) {
  .dsh-brand-logo {
    width: 36px;
    height: 22px;
    flex-basis: 36px;
  }

  .dsh-brand-tabs button {
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .dsh-nav > ul {
    padding-right: 12px;
    padding-left: 12px;
  }

  .dsh-cars-scroll {
    margin-right: -12px;
    margin-left: -12px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .dsh-brand-tabs {
    margin-right: -12px;
    margin-left: -12px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .dsh-car-image {
    height: 82px;
  }

  .dsh-car-card {
    font-size: 11.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dsh-menu * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
