.hvs-section {
  /* margin: 48px 0; */
  padding: 70px 0 28px;
  background: #0b0b0b;
  color: #f5f5f5;
}

.hvs-shell {
  position: relative;
  overflow: hidden;
  padding: 0 10%;
  --hvs-nav-shift: -40px;
  --hvs-viewport-width: auto;
  --hvs-nav-gap: 18px;
}

.hvs-head {
  margin-bottom: 16px;
  padding: 0 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 18px;
}

.hvs-title {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: 0.02em;
}

.hvs-sub {
  color: #c7c7c7;
  margin: 6px 0 0;
}

.hvs-tabs {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.hvs-tab {
  position: relative;
  background: none;
  border: none;
  color: #e0e0e0;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 6px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.hvs-tab:hover {
  color: #ffffff;
}

.hvs-tab.active {
  color: #ffffff;
}

.hvs-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: #ffffff;
  border-radius: 4px;
}

.hvs-viewport {
  direction: ltr;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  padding: 4px 0 16px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.hvs-viewport.is-dragging {
  cursor: grabbing;
}

@media (min-width: 1200px) {
  html:not([dir="rtl"]) .hvs-viewport,
  html[dir="rtl"] .hvs-viewport {
    max-width: calc((clamp(240px, 18vw, 320px) * 4) + (20px * 3));
    margin-left: auto;
    margin-right: auto;
  }

  .hvs-shell {
    --hvs-viewport-width: calc((clamp(240px, 18vw, 320px) * 4) + (20px * 3));
    --hvs-nav-gap: 20px;
    --hvs-nav-shift: -52px;
  }

  .hvs-nav-left {
    left: calc(50% - (var(--hvs-viewport-width) / 2) - var(--hvs-nav-gap));
  }

  .hvs-nav-right {
    right: calc(50% - (var(--hvs-viewport-width) / 2) - var(--hvs-nav-gap));
  }

  html:not([dir="rtl"]) .hvs-shell {
    --hvs-nav-gap: 22px;
  }

  html:not([dir="rtl"]) .hvs-head {
    max-width: var(--hvs-viewport-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
  }
}

.hvs-viewport::-webkit-scrollbar {
  display: none;
}

.hvs-track {
  --hvs-gap: 20px;
  direction: ltr;
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  gap: var(--hvs-gap);
  padding: 6px 6px 10px;
}

.hvs-card {
  flex: 0 0 clamp(240px, 18vw, 320px);
  max-width: none;
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
  background: radial-gradient(120% 120% at 20% 20%, #1f1f1f 0%, #101010 80%);
  border-radius: 16px;
  padding: 22px 18px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.38);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 480px;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hvs-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.4);
}

.hvs-name {
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 2px;
  opacity: 0;
  animation: hvsFadeUp 0.5s ease forwards;
  animation-delay: 0.05s;
}

.hvs-caption {
  color: #dcdcdc;
  font-size: 14px;
  margin: 0 0 4px;
  opacity: 0;
  animation: hvsFadeUp 0.5s ease forwards;
  animation-delay: 0.15s;
}

.hvs-media {
  background: #f8f8f8;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  opacity: 0;
  animation: hvsFadeUp 0.5s ease forwards;
  animation-delay: 0.25s;
}

.hvs-media img {
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.hvs-card:hover .hvs-media img {
  transform: scale(1.04);
}

.hvs-price {
  margin: 4px 0 10px;
  color: #fff;
  opacity: 0;
  animation: hvsFadeUp 0.5s ease forwards;
  animation-delay: 0.35s;
}

.hvs-price small {
  display: block;
  font-size: 12px;
  color: #c0c0c0;
  letter-spacing: 0.05em;
}

.hvs-price strong {
  font-size: 22px;
  font-weight: 600;
}

.hvs-cta {
  display: inline-block;
  border-radius: 10px;
  padding: 12px 16px;
  background: #f5f5f5;
  color: #0f0f0f;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
  text-align: center;
  width: 100%;
  opacity: 0;
  animation: hvsFadeUp 0.5s ease forwards;
  animation-delay: 0.45s;
  pointer-events: none;
}

.hvs-card:hover .hvs-cta {
  background: #ffffff;
  color: #000;
  transform: translateY(-1px);
}

.hvs-nav {
  position: absolute;
  top: calc(50% + var(--hvs-nav-shift));
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  z-index: 12;
}

.hvs-nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hvs-nav:active {
  transform: translateY(-50%) scale(0.96);
}

.hvs-nav.disabled {
  opacity: 0.35;
  pointer-events: none;
}

.hvs-nav-left {
  left: 10%;
}

.hvs-nav-right {
  right: 10%;
}

.hvs-nav-left-ar {
  left: 6%;
}

.hvs-nav-right-ar {
  right: 6%;
}

@media (max-width: 1199px) {
  .hvs-card {
    flex-basis: clamp(240px, 22vw, 320px);
  }

  .hvs-shell {
    --hvs-viewport-width: calc((clamp(240px, 22vw, 320px) * 3) + (20px * 2));
    --hvs-nav-gap: 18px;
  }

  .hvs-viewport {
    max-width: var(--hvs-viewport-width);
    margin-left: auto;
    margin-right: auto;
  }

  .hvs-nav-left {
    left: calc(50% - (var(--hvs-viewport-width) / 2) - var(--hvs-nav-gap));
  }

  .hvs-nav-right {
    right: calc(50% - (var(--hvs-viewport-width) / 2) - var(--hvs-nav-gap));
  }
}

@media (max-width: 991px) {
  .hvs-card {
    flex-basis: clamp(240px, 30vw, 320px);
  }

  .hvs-shell {
    --hvs-nav-shift: -32px;
  }
}

@media (max-width: 767px) {
  .hvs-section {
    margin: 24px 0;
    padding: 12px 0 6px;
  }

  .hvs-shell {
    padding: 0 6%;
    --hvs-nav-shift: 0px;
    --hvs-viewport-width: clamp(280px, 80vw, 520px);
    --hvs-nav-gap: 32px;
  }

  .hvs-head {
    padding: 0 10px;
  }

  .hvs-title {
    font-size: 20px;
  }

  .hvs-viewport {
    padding: 2px 0 12px;
    max-width: var(--hvs-viewport-width);
    width: var(--hvs-viewport-width);
    margin-left: auto;
    margin-right: auto;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
  }

  .hvs-track {
    width: max-content;
    gap: 14px;
    padding: 2px 0;
  }

  .hvs-card {
    padding: 16px 14px;
    flex: 0 0 var(--hvs-viewport-width);
    max-width: var(--hvs-viewport-width);
  }

  .hvs-nav {
    width: 34px;
    height: 34px;
    top: 56%;
    background: rgba(255, 255, 255, 0.18);
  }

  .hvs-nav-left {
    left: calc(50% - (var(--hvs-viewport-width) / 2) - var(--hvs-nav-gap));
  }

  .hvs-nav-right {
    right: calc(50% - (var(--hvs-viewport-width) / 2) - var(--hvs-nav-gap));
  }

  .hvs-tabs {
    gap: 12px;
  }
}

html[dir="rtl"] .hvs-shell {
  direction: rtl;
}

html[dir="rtl"] .hvs-viewport,
html[dir="rtl"] .hvs-track {
  direction: ltr;
}

html[dir="rtl"] .hvs-card {
  text-align: right;
}

@keyframes hvsFadeUp {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
