.nso {
  padding: 3rem 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nso__title {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--tx-grey-blue);
  margin: 0 auto 32px;
  padding: 0 16px;
  max-width: 320px;
}

.nso__wrap {
  position: relative;
}

.nso__track {
  display: flex;
  gap: 16px;
  padding: 4px 16px 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nso__track::-webkit-scrollbar {
  display: none;
}

.nso__item {
  flex: 0 0 calc(100% - 64px);
  scroll-snap-align: start;
}

.nso-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  transition: box-shadow 0.2s ease;
}

.nso-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}

.nso-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #e9ecf3;
  user-select: none;
}

.nso-card__title {
  padding: 16px 12px 18px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
}

/* arrows: only desktop */
.nso__arrow {
  display: none;
}

.nso__dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.nso__dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d4d4d4;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.nso__dot.is-active {
  width: 32px;
  border-radius: 8px;
  background: #9b9b9b;
}

@media (min-width: 768px) {
  .nso__title {
    max-width: none;
    font-size: 28px;
  }

  .nso__item {
    flex-basis: calc((100% - 16px) / 2);
  }
}

@media (min-width: 992px) {
  .nso {
    padding: 3rem 16px 2rem;
  }

  .nso__track {
    padding: 4px 4px 8px;
    scroll-padding: 0;
    gap: 20px;
  }

  .nso__item {
    flex-basis: calc((100% - 60px) / 4);
  }

  .nso-card__title {
    font-size: 18px;
  }

  .nso__dots {
    display: none;
  }

  /* arrows only when there is something to scroll (JS toggles .has-scroll) */
  .nso__wrap.has-scroll .nso__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 38%;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    color: var(--blue);
    font-size: 20px;
    cursor: pointer;
    z-index: 2;
  }

  .nso__arrow.--prev {
    left: -20px;
  }

  .nso__arrow.--next {
    right: -20px;
  }

  .nso__arrow:disabled {
    opacity: 0.4;
    cursor: default;
  }
}
