.sws-section-switch {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(560px, calc(100% - 40px));
  margin: 0 auto 62px;
  padding: 6px 16px;
  overflow: visible;
  transform: translateY(-28px);
  border: 1px solid rgba(28, 55, 66, .14);
  border-radius: 19px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 14px 34px rgba(16, 47, 59, .07);
  box-sizing: border-box;
}

.sws-section-switch--wide {
  width: min(940px, calc(100% - 40px));
}

.sws-section-switch--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(1040px, 100%);
}

.sws-section-switch--six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  width: min(1180px, calc(100% - 40px));
}

.sws-section-switch--six a {
  padding-right: 10px;
  padding-left: 10px;
  font-size: 14px;
  white-space: nowrap;
}

.sws-section-switch a {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 58px;
  padding: 11px 18px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #708087;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 16px;
  font-weight: 720;
  letter-spacing: -.012em;
  line-height: 1.22;
  text-align: center;
  text-decoration: none;
}

.sws-section-switch a::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 0;
  left: 20px;
  height: 2px;
  opacity: 0;
  transform: scaleX(.35);
  border-radius: 2px;
  background: linear-gradient(90deg, #d39a28, #655092);
  transition: opacity .2s ease, transform .2s ease;
}

.sws-section-switch a:hover { color: #655092; }

.sws-section-switch a:is(.is-active, .is-current, [aria-current="page"]) {
  color: #182d36;
}

.sws-section-switch a:is(.is-active, .is-current, [aria-current="page"])::after {
  opacity: 1;
  transform: scaleX(1);
}

.sws-section-switch a span {
  margin-left: 8px;
  color: #655092;
  font-size: 17px;
  font-weight: 400;
}

@media (max-width: 700px) {
  .sws-section-switch {
    width: calc(100% - 26px);
    margin-bottom: 42px;
    padding: 5px 7px;
    border-radius: 15px;
  }

  .sws-section-switch--three {
    width: calc(100% + 2px);
    margin-left: -1px;
  }

  .sws-section-switch--six {
    display: flex;
    width: calc(100% - 26px);
    padding: 5px 7px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .sws-section-switch--six::-webkit-scrollbar { display: none; }

  .sws-section-switch--six a {
    flex: 0 0 148px;
    min-height: 58px;
    scroll-snap-align: center;
    font-size: 13px;
  }

  .sws-section-switch a {
    min-height: 66px;
    padding: 10px 7px;
    font-size: 13.5px;
    overflow-wrap: normal;
    word-break: normal;
  }

  .sws-section-switch a::after {
    right: 9px;
    left: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sws-section-switch a::after { transition: none; }
}
