.header .main-tabs {
  box-sizing: border-box;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(111, 132, 154, 0.34);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.42);
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

.header .main-tabs::-webkit-scrollbar {
  display: none;
}

.header .main-tabs > .main-tab-item {
  appearance: none;
  box-sizing: border-box;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  height: 38px;
  margin: 0;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 4px;
  outline: 0;
  background: transparent;
  color: #344255;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease;
}

.header .main-tabs > .main-tab-item:hover {
  border-color: #c8d3df;
  background: rgba(255, 255, 255, 0.7);
  color: #24364a;
}

.header .main-tabs > .main-tab-item.active,
.header .main-tabs > .main-tab-item[aria-selected='true'] {
  border-color: #7f9db9;
  background: #fff;
  color: #174d78;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(26, 54, 82, 0.14);
}

.header .main-tabs > .main-tab-item:focus-visible {
  border-color: #3978ad;
  box-shadow: 0 0 0 3px rgba(57, 120, 173, 0.18);
}

.header .main-tabs > .main-tab-item:active {
  background: #edf3f8;
}

@media (max-width: 1100px) {
  .header .main-tabs > .main-tab-item {
    min-width: 96px;
    padding: 0 12px;
  }
}

@media (max-width: 900px) {
  .header .main-tabs {
    width: 100%;
    justify-content: flex-start;
    padding: 3px;
    border-top: 1px solid rgba(111, 132, 154, 0.34);
    scroll-snap-type: x proximity;
  }

  .header .main-tabs > .main-tab-item {
    scroll-snap-align: start;
  }
}

@media (max-width: 640px) {
  .header .main-tabs > .main-tab-item {
    min-width: 92px;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }
}
