.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  border-bottom: 1px solid var(--line);
}

.tabs__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 2px;
  color: var(--mut);
  font-weight: 600;
  text-decoration: none;
}

.tabs__link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--acc);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease-out);
}

.tabs__link:hover,
.tabs__link[aria-current] {
  color: var(--fg);
}

.tabs__link[aria-current]::after {
  transform: none;
}

@media (max-width: 759.98px) {
  .tabs {
    flex-wrap: nowrap;
    gap: 0 18px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .tabs__link {
    white-space: nowrap;
  }
}
