.bar {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
  @media (max-width: 480px) {
    flex-direction: column;
  }
}

.bar__link {
  color: currentColor;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .3s ease;
  white-space: nowrap;
}

.bar__link:hover {
  background-size: 100% 1px;
}