.tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 16px 72px;
}

.tabs::before {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #d8d8d8;
  content: "";
}

.tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  color: #6f6f6f;
  background: transparent;
  font-size: 16px;
  line-height: 1;
  font-weight: 600;
  text-align: center;
}

.tab.is-active {
  color: #018cff;
}

.tab.is-active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 3px;
  background: #018cff;
  content: "";
}

.tab-label {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.tab-badge {
  position: absolute;
  top: -20px;
  right: -38px;
  display: block;
  padding: 2px 8px 3px;
  border-radius: 32px;
  color: #fff;
  background: #49adff;
  font-size: 12px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
}

[data-lang="en"] .tab-badge {
  top: -16px;
  right: -26px;
}

.sort-rule {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin: 0 0 34px 18px;
  padding: 6px 16px 6px 0;
  border-radius: 999px;
  color: var(--blue-text);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 28px rgba(36, 51, 80, 0.05);
  font-size: 27px;
  line-height: 1;
  font-weight: 520;
}

.sort-rule > span:not(.filter-icon) {
  white-space: nowrap;
}

.sort-buttons {
  display: inline-flex;
  gap: 8px;
}

.sort-button {
  min-height: 34px;
  padding: 0 14px;
  border: 2px solid rgba(58, 164, 255, 0.2);
  border-radius: 999px;
  color: var(--blue-text);
  background: #fff;
  font-size: 20px;
  font-weight: 700;
}

.sort-button.is-active {
  color: #fff;
  background: var(--blue-text);
}

.filter-icon {
  position: relative;
  width: 29px;
  height: 29px;
  border: 3px solid var(--blue-text);
  border-bottom: 0;
  border-radius: 4px 4px 1px 1px;
  transform: perspective(20px) rotateX(-24deg);
}

.filter-icon::after {
  position: absolute;
  bottom: -15px;
  left: 9px;
  width: 8px;
  height: 18px;
  border: 3px solid var(--blue-text);
  border-top: 0;
  border-radius: 0 0 5px 5px;
  content: "";
}
