.page-top {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: visible;
}

.page-top__bg,
.page-top__texture {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: calc(-1 * (var(--page-sheet-gap) + var(--page-sheet-texture-underlap) + var(--page-top-texture-extra)));
  width: 100%;
  pointer-events: none;
}

.page-top__bg {
  z-index: 0;
  background-color: var(--color-bg);
}

.page-top__texture {
  z-index: 1;
  background-image: url("../img/texture.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
  mix-blend-mode: luminosity;
}

.page-top > :not(.page-top__bg):not(.page-top__texture) {
  position: relative;
  z-index: 2;
}

.page-top--inner {
  display: flex;
  flex-direction: column;
  min-height: calc(
    var(--texture-display-height) - var(--page-sheet-gap) - var(--page-sheet-texture-underlap)
  );
}

.hero {
  padding-top: clamp(3.5rem, calc(96 / var(--design-width) * 100vw), 6.5rem);
  padding-bottom: clamp(2rem, calc(48 / var(--design-width) * 100vw), 3rem);
}

.hero__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
}

.hero__title {
  width: fit-content;
  max-width: 100%;
  font-size: var(--text-hero-title);
  font-weight: 500;
  line-height: 1.15;
  color: var(--color-text);
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, calc(16 / var(--design-width) * 100vw), 1rem);
  width: 100%;
  max-width: 100%;
  margin-top: clamp(1rem, calc(24 / var(--design-width) * 100vw), 1.5rem);
  font-size: var(--text-hero-body);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(1.5rem, calc(40 / var(--design-width) * 100vw), 2.5rem);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  column-gap: clamp(1rem, calc(24 / var(--design-width) * 100vw), 2rem);
  margin-top: clamp(1.5rem, calc(32 / var(--design-width) * 100vw), 2.5rem);
}

.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  text-align: center;
  gap: clamp(0.5rem, calc(12 / var(--design-width) * 100vw), 0.75rem);
}

.hero__stat-value {
  font-size: var(--text-hero-stat);
  font-weight: 400;
  line-height: 1;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__stat-label {
  margin-top: 0;
  font-size: var(--text-hero-stat-label);
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(1rem, calc(24 / var(--design-width) * 100vw), 1.5rem);
  margin-top: clamp(1.5rem, calc(32 / var(--design-width) * 100vw), 2.5rem);
}

.hero__btn {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: clamp(2.75rem, calc(52 / var(--design-width) * 100vw), 3.25rem);
  padding: clamp(0.875rem, calc(14 / var(--design-width) * 100vw), 1rem)
    clamp(1.75rem, calc(36 / var(--design-width) * 100vw), 2.25rem);
  font-size: clamp(0.9375rem, calc(18 / var(--design-width) * 100vw), 1.125rem);
  font-weight: 400;
  line-height: 1.2;
  border-radius: var(--radius-btn);
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.hero__btn:hover {
  opacity: 0.88;
}

.hero__btn--primary {
  color: #ffffff;
  background: var(--gradient-gold);
}

.hero__btn--secondary {
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-gold-border);
}

.hero__slider {
  position: relative;
}

.hero__slider-viewport {
  container-type: inline-size;
  overflow: hidden;
  border-radius: clamp(1rem, calc(24 / var(--design-width) * 100vw), 1.5rem);
  touch-action: pan-y pinch-zoom;
  cursor: grab;
}

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

.hero__slider-track {
  display: flex;
  transition: transform 0.45s ease;
}

.hero__slider-track.no-transition {
  transition: none;
}

.hero__slide {
  flex: 0 0 100cqi;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #d8c3a5;
}

.hero__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__slider-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(2rem, calc(40 / var(--design-width) * 100vw), 2.5rem);
  height: clamp(2rem, calc(40 / var(--design-width) * 100vw), 2.5rem);
  background: var(--gradient-gold);
  border-radius: 50%;
  box-shadow: 0 2px 10px rgb(43 43 43 / 10%);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.hero__slider-btn--prev {
  left: 0;
  transform: translate(-50%, -50%);
}

.hero__slider-btn--prev:hover {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 6px 18px rgb(201 169 110 / 40%);
}

.hero__slider-btn--prev:active {
  transform: translate(-50%, -50%) scale(0.96);
}

.hero__slider-btn--next {
  right: 0;
  transform: translate(50%, -50%);
}

.hero__slider-btn--next:hover {
  transform: translate(50%, -50%) scale(1.08);
  box-shadow: 0 6px 18px rgb(201 169 110 / 40%);
}

.hero__slider-btn--next:active {
  transform: translate(50%, -50%) scale(0.96);
}

.hero__slider-btn-icon {
  display: block;
  width: clamp(0.875rem, calc(23 / var(--design-width) * 100vw), 1.4375rem);
  height: auto;
}

.hero__slider-btn--next .hero__slider-btn-icon {
  transform: scaleX(-1);
}

@media (max-width: 900px) {
  .page-top__texture {
    background-size: cover;
    background-position: center top;
  }

  .hero {
    padding-top: clamp(1.5rem, calc(32 / var(--design-width) * 100vw), 2.5rem);
  }

  .hero__grid {
    display: flex;
    flex-direction: column;
    gap: clamp(1.25rem, calc(28 / var(--design-width) * 100vw), 2rem);
  }

  .hero__content {
    display: contents;
  }

  .hero__intro {
    display: contents;
  }

  .hero__title {
    order: 1;
    width: 100%;
    font-size: clamp(1.375rem, calc(32 / var(--design-width) * 100vw), 1.75rem);
  }

  .hero__slider {
    order: 2;
    width: 100%;
  }

  .hero__text {
    order: 3;
    margin-top: 0;
  }

  .hero__stats {
    order: 4;
    width: 100% !important;
    margin-top: 0;
  }

  .hero__actions {
    order: 5;
    width: 100% !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 0;
  }

  .hero__btn {
    width: min(100%, 20rem);
  }

  .hero__btn--secondary {
    width: auto;
    min-width: clamp(10rem, calc(220 / var(--design-width) * 100vw), 13.75rem);
    min-height: clamp(2.5rem, calc(48 / var(--design-width) * 100vw), 3rem);
    padding: clamp(0.75rem, calc(12 / var(--design-width) * 100vw), 0.875rem)
      clamp(1.5rem, calc(32 / var(--design-width) * 100vw), 2rem);
    font-size: clamp(0.875rem, calc(16 / var(--design-width) * 100vw), 1rem);
  }

  .hero__slider-btn--prev {
    left: clamp(0.75rem, calc(16 / var(--design-width) * 100vw), 1rem);
    transform: translate(0, -50%);
  }

  .hero__slider-btn--prev:hover {
    transform: translate(0, -50%) scale(1.08);
  }

  .hero__slider-btn--prev:active {
    transform: translate(0, -50%) scale(0.96);
  }

  .hero__slider-btn--next {
    right: clamp(0.75rem, calc(16 / var(--design-width) * 100vw), 1rem);
    transform: translate(0, -50%);
  }

  .hero__slider-btn--next:hover {
    transform: translate(0, -50%) scale(1.08);
  }

  .hero__slider-btn--next:active {
    transform: translate(0, -50%) scale(0.96);
  }
}

@media (max-width: 900px) {
  .page-top > .header.is-menu-open {
    z-index: 500;
  }
}
