.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  grid-column: span 2;
  @media (min-width: 768px) {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 20px;
  }
}

.footer-menu__item {
  order: 3;
}

.footer-menu__item a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  text-decoration-color: transparent;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .footer-menu__item a:hover {
    text-decoration-color: white;
  }
}

.footer-menu__item.catalog-item {
  order: 1;
}

.footer-menu__item.services-item {
  order: 2;
}

.footer-menu__link {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.28571;
  @media (min-width: 1900px) {
    font-size: 16px;
    line-height: 1.375;
  }
}

.footer-submenu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  margin-top: 10px;
  @media (min-width: 768px) {
    margin-top: 20px;
    gap: 12px;
  }
  @media (min-width: 1900px) {
    margin-top: 30px;
    gap: 16px;
  }
}

.footer-submenu__link {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.28571;
  @media (min-width: 1900px) {
    font-size: 16px;
    line-height: 1.375;
  }
}
.footer-menu__link-arrow {
  display: none;
}

@media (max-width: 768px) {
  .footer-submenu {
    display: none;
  }
  .footer-menu__item:has(.active) .footer-submenu {
    display: flex;
  }
  .footer-menu__link:has(+ .footer-submenu) {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .footer-menu__link-arrow {
    display: inline-block;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 16L6 8H18L12 16Z' fill='white'/%3E%3C/svg%3E%0A");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    cursor: pointer;
  }
  .footer-menu__link-arrow.active {
    transform: rotate(180deg);
  }
}
