.hero-pages {
  --hero-pages-accent: var(--accent, #b59f7e);
  --hero-pages-font: var(--font-display, inherit);
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: clamp(420px, 70vh, 760px);
  padding:0;
  overflow: hidden;
  overflow: clip;
  overflow-clip-margin: content-box;
  background: #fff;
}
@media screen and (max-width: 767px) {
  .hero-pages {
    padding:0 30px;
  }
  .hero-pages__cta {
    display: none!important;
  }
}

.hero-pages__track {
  position: relative;
  display: flex;
  gap: 15px;
  height: 100%;
  transition: transform 1.1s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}

.hero-pages__item {
  position: relative;
  flex: 0 0 auto;
  width: auto;
  height: 100%;
  overflow: hidden;
  border-radius: 10px;
  text-decoration: none;
  isolation: isolate;
}

.hero-pages__item img {
  display: block;
  width: auto;
  max-width: none;
  height: 100%;
  object-fit: cover;
}

.hero-pages__veil {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 45%;
  background: linear-gradient(to top, rgba(17, 17, 17, 0.62) 0%, rgba(17, 17, 17, 0) 100%);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.hero-pages__cta {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  color: #fff;
  font-family: var(--hero-pages-font);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-pages__cta span {
  color: var(--hero-pages-accent);
}

.hero-pages__item:hover .hero-pages__veil,
.hero-pages__item:focus-visible .hero-pages__veil {
  opacity: 1;
}

.hero-pages__item:hover .hero-pages__cta,
.hero-pages__item:focus-visible .hero-pages__cta {
  opacity: 1;
  transform: none;
}

.hero-pages__item:focus-visible {
  outline: 2px solid var(--hero-pages-accent);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .hero-pages {
    height: clamp(300px, 52vh, 480px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-pages__track,
  .hero-pages__veil,
  .hero-pages__cta {
    transition: none;
  }
}
