ul.menu-items__list-desktop {
  list-style-type: none;
  display: flex;
}

li.menu-items__list-item-desktop {
  display: flex;
}

.menu-items__spacer {
  width: 4vw;
  max-width: 40px;
}

li.menu-items__list-item-desktop:last-of-type .menu-items__spacer {
  display: none;
}

.menu-items__list-main-link {
  color: var(--text-color-primary);
  text-decoration: none;
}

.main_links__wrapper .main_links__menu {
  display: none;
}

.main_links__wrapper:hover .main_links__menu {
  display: flex;
  justify-content: center;
  position: absolute;
  bottom: 0;
  right: 0;
  transform: translateY(100%);
}

ul.main_links__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  row-gap: 30px;
  -moz-column-gap: 44px;
  column-gap: 44px;
}

.menu_item_name__wrapper {
  position: relative;
  display: flex;
  gap: 4px;
}

.menu_item_name__wrapper::after {
  position: relative;
  z-index: 1;
  top: -1px;
  width: 8px;
  height: 4px;
  content: url("data:image/svg+xml,%3Csvg width='8' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='black' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
}

.menu_item__hover_helper {
  display: none;
}

.links_menu_title {
  font-family: var(--primary-font-family)
  font-size: 1.125rem;
  margin-bottom: 36px;
}

.main_links__menu-title {
  font-weight: bold;
  color: var(--color-black-2);
}

.menu__items_icon {
  font-size: 1.5rem;
  color: var(--color-black-1);
}

a.main_link__wrapper {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: var(--color-black-3);
  max-width: 236px;
}

a.main_link__wrapper:hover {
  color: var(--color-black-1);
}

.main_link__title {
  font-family: var(--primary-font-family);
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.64;
}

.main_links__wrapper .menu_item__hover_diamond {
  display: none;
}

.main_links__wrapper:hover .menu_item__hover_diamond {
  display: inherit;
  background: white;
  z-index: 1;
  border-radius: 5px;
  bottom: -49px;
  height: 30px;
  left: 0;
  margin: 0 auto;
  position: absolute;
  right: 0;
  transform: rotate(45deg);
  width: 30px;
  box-shadow: -3px -3px 5px 0px rgb(22 0 0 / 2%);
}

.main_links__wrapper:hover .menu_item__hover_helper {
  display: inherit;
  position: absolute;
  height: 80px;
  width: 350px;
  bottom: 0;
  transform: translate3d(-40%, 100%, 0);
}

.main_links__menu {
  display: flex;
}

.main_links__wrapper .main_links__menu-card {
  padding: 62px 88px;
  background-color: white;
  filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.15));
  border-radius: 16px;
  min-width: 850px;
}

.main_link__description {
  font-size: 0.875rem;
  color: var(--color-black-4);
}

.main_links__menu-divider {
  width: 1px;
  background-color: #efefef;
  margin: 0 56px;
  margin-bottom: -62px;
}

.secondary_links__description {
  max-width: 196px;
  font-size: 0.875rem;
  color: var(--color-black-4);
  margin-bottom: 32px;
}

.secondary_links__list-wrapper {
  display: flex;
  gap: 36px;
}

ul.secondary_links__list {
  font-weight: bold;
  font-size: 0.875rem;
  color: var(--color-black-3);
}

ul.secondary_links__list > li {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

ul.secondary_links__list > li::before {
  width: 16px;
  height: 16px;
  content: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='8' fill='black'/%3E%3Cpath d='M7 6L9 8L7 10' stroke='white' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
}

.menu-items__list-mobile {
  display: none;
}

@media (max-width: 768px) {
  ul.menu-items__list-mobile {
    display: block;
    margin-top: 40px;
  }

  ul.menu-items__list-mobile > li {
    margin-bottom: 42px;
  }

  ul.menu-items__list-mobile > li:last-child {
    margin-bottom: 0;
  }

  .menu-items__list-desktop {
    display: none !important;
  }

  .mobile__menu-items__list-main-link {
    color: var(--color-black-3);
    font-weight: bold;
    font-size: 1rem;
  }

  .mobile_menu_item_name__wrapper {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 4px;
    border: none;
    background: none;
  }

  .accordion-button .mobile_menu_item_name__arrow::after {
    display: inline-block;
    position: relative;
    top: -1px;
    height: 8px;
    height: 100%;

    content: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='black' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
    transform-origin: center;
    transition: transform 0.2s ease-in-out;
  }

  .accordion-button.expanded .mobile_menu_item_name__arrow::after {
    transform: translateY(25%) rotate(180deg);
  }

  ul.mobile__main_links {
    padding: 40px 0;
  }

  .mobile__main_links > li {
    margin-bottom: 28px;
  }

  .mobile__main_links > li:last-child {
    margin-bottom: 0;
  }

  a.mobile_main_link__wrapper {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    color: var(--color-black-3);
    /* max-width: 236px; */
  }

  a.mobile_main_link__wrapper:hover {
    color: var(--color-black-1);
  }

  .mobile__main_link__title {
    font-family: var(--primary-font-family);
    font-weight: bold;
    font-size: 0.875rem;
    margin-bottom: 4px;
  }
  .mobile__main_link__description {
    font-size: 0.75rem;
  }

  .accordion-content {
    max-height: 0;
    transition: max-height 0.4s ease-in-out;
    overflow: hidden;
  }

  h3.mobile__secondary_links__menu-title {
    font-family: var(--primary-font-family);
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-black-5);
  }

  .mobile__secondary_links__description {
    margin-top: 16px;
    font-size: 0.75rem;
    color: var(--color-black-4);
  }

  ul.mobile__secondary_links__list {
    padding-top: 32px;
    font-weight: bold;
    font-size: 1rem;
    color: var(--color-black-3);
  }

  ul.mobile__secondary_links__list > li {
    margin-bottom: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
  }

  ul.mobile__secondary_links__list > li:last-child {
    margin-bottom: 0;
  }

  ul.mobile__secondary_links__list > li::before {
    content: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='8' fill='black'/%3E%3Cpath d='M7 6L9 8L7 10' stroke='white' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
  }
}
