.page__section--products {
  padding-top: 2.2vw;
  padding-bottom: 4vw;
}

.showcase__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2vw;
  margin-bottom: 1.8vw;
}

.showcase__head .title {
  max-width: 14em;
}

.showcase__nav {
  display: flex;
  flex-shrink: 0;
  gap: 0.6vw;
  padding-bottom: 0.3vw;
}

.showcase__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.2vw;
  height: 3.2vw;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-pill);
  background: var(--color-blue);
  color: var(--color-white);
}

.showcase__btn:hover {
  background: color-mix(in srgb, var(--color-blue) 85%, #000);
}

.showcase__btn:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
}

.showcase__btn:disabled {
  background: var(--color-gray-5);
  color: var(--color-gray);
}

.showcase__viewport {
  overflow: hidden;
  touch-action: pan-y;
}

.showcase__track {
  display: flex;
  gap: 1.2vw;
  transition: transform 0.45s ease;
}

.showcase__card {
  position: relative;
  display: flex;
  flex: 0 0 calc((100% - 2.4vw) / 3);
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 1;
  padding: 1.6vw;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(80% 70% at 80% 20%, rgba(50, 50, 243, 0.55), transparent 60%),
    var(--color-dark-blue);
  color: var(--color-white);
}

.showcase__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase__card:has(.showcase__photo)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(13, 31, 81, 0.75) 100%);
}

.showcase__title {
  position: relative;
  z-index: 1;
  max-width: 8em;
  font-family: var(--font-display);
  font-size: 2.15vw;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

@media (max-width: 1024px) {
  .page__section--products {
    padding-top: 28px;
    padding-bottom: 56px;
  }

  .showcase__head {
    gap: 20px;
    margin-bottom: 24px;
  }

  .showcase__nav {
    gap: 8px;
    padding-bottom: 4px;
  }

  .showcase__btn {
    width: 48px;
    height: 48px;
  }

  .showcase__track {
    gap: 16px;
  }

  .showcase__card {
    flex-basis: calc((100% - 32px) / 3);
    padding: 20px;
  }

  .showcase__title {
    font-size: 24px;
  }
}

@media (max-width: 576px) {
  .showcase__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
  }

  .showcase__head .title {
    max-width: none;
  }

  .showcase__nav {
    padding-bottom: 0;
  }

  .showcase__card {
    flex-basis: 100%;
    padding: 24px;
  }

  .showcase__title {
    max-width: 7em;
    font-size: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .showcase__track {
    transition: none;
  }
}
