
.luxury-animated-hero {
  --hero-bg: var(--background);
  --hero-text: var(--foreground);

  --hero-muted-text:
    color-mix(in srgb, var(--foreground) 58%, transparent);

  --hero-card-bg: var(--card-background);

  --hero-border:
    color-mix(in srgb, var(--border) 65%, transparent);

  --hero-button-bg: var(--button-background);
  --hero-button-text: var(--button-text);

  --hero-button-hover-bg:
    var(--menu-hover, var(--button-background));

  --hero-button-hover-text: var(--button-text);

  --hero-badge-bg: rgba(120, 120, 120, 0.62);
  --hero-badge-text: #ffffff;
  --hero-badge-border: rgba(255, 255, 255, 0.2);

  --hero-price-bg: rgba(150, 150, 150, 0.48);
  --hero-price-text: #ffffff;
  --hero-price-border: rgba(255, 255, 255, 0.18);

  --hero-empty-bg:
    color-mix(
      in srgb,
      var(--card-background) 75%,
      transparent
    );

  --hero-empty-text: var(--hero-muted-text);
  --hero-empty-border: var(--hero-border);

  --hero-radius: var(--radius);
  --hero-font: var(--font-family), sans-serif;

  --hero-image-overlay: #000000;
  --hero-image-overlay-opacity: 0.3;

  --hero-card-width: clamp(310px, 23vw, 430px);
  --hero-card-height: clamp(460px, 36vw, 620px);

  --hero-card-duration: 0.82s;
  --hero-fade-duration: 0.58s;
  --hero-motion: cubic-bezier(0.22, 1, 0.36, 1);

  position: relative;
  isolation: isolate;

  width: 100%;
  min-height: var(--hero-min-height-mobile, 650px);

  overflow: hidden;

  background: var(--hero-bg);
  color: var(--hero-text);

  direction: rtl;
  font-family: var(--hero-font);
}

.luxury-animated-hero,
.luxury-animated-hero * {
  box-sizing: border-box;
}

.luxury-animated-hero__inner {
  width: 100%;
  max-width: 1700px;
  min-height: inherit;
  margin-inline: auto;
  padding: 18px 24px 70px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.luxury-animated-hero__content {
  position: relative;
  z-index: 30;

  width: 100%;
  max-width: 920px;
  margin: 0 auto 34px;

  text-align: center;
}

.luxury-animated-hero__title {
  margin: 0;

  color: var(--hero-text);

  font-size: clamp(28px, 2.6vw, 44px);
  font-weight: 950;
  line-height: 1.18;
  letter-spacing: -0.04em;
  text-align: center;
}

.luxury-animated-hero__description {
  max-width: 760px;
  margin: 13px auto 0;

  color: var(--hero-muted-text);

  font-size: clamp(13px, 1vw, 16px);
  font-weight: 500;
  line-height: 1.9;
  text-align: center;
}

.luxury-animated-hero__stage {
  position: relative;

  width: 100%;
  max-width: 1540px;

  height: calc(var(--hero-card-height) + 80px);
  min-height: calc(var(--hero-card-height) + 80px);

  margin-inline: auto;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: visible;
}

.luxury-animated-hero__card {
  position: absolute;
  top: 50%;
  left: 50%;

  width: var(--hero-card-width);
  height: var(--hero-card-height);

  contain: layout paint style;
  overflow: hidden;

  border: 1px solid var(--hero-border);
  border-radius: max(4px, var(--hero-radius));

  background: var(--hero-card-bg);

  box-shadow: none;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform:
    translate3d(-50%, -50%, 0)
    translateX(0)
    scale(0.66);

  transform-origin: center;

  backface-visibility: hidden;

  transition:
    transform var(--hero-card-duration) var(--hero-motion),
    opacity var(--hero-fade-duration) ease,
    box-shadow var(--hero-fade-duration) ease;
}

.luxury-animated-hero__card[data-position="0"],
.luxury-animated-hero__card[data-position="1"],
.luxury-animated-hero__card[data-position="-1"],
.luxury-animated-hero__card[data-position="2"],
.luxury-animated-hero__card[data-position="-2"] {
  will-change: transform, opacity;
}

.luxury-animated-hero__card::after {
  content: "";

  position: absolute;
  inset: 0;
  z-index: 2;

  background: var(--hero-image-overlay);
  opacity: var(--hero-image-overlay-opacity);

  pointer-events: none;
}

.luxury-animated-hero__card picture,
.luxury-animated-hero__card img {
  width: 100%;
  height: 100%;

  display: block;
}

.luxury-animated-hero__card picture {
  position: relative;
  z-index: 1;
}

.luxury-animated-hero__card img {
  object-fit: cover;
  object-position: center;

  transform: translateZ(0);
}

.luxury-animated-hero__card[data-position="0"] {
  z-index: 20;

  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform:
    translate3d(-50%, -50%, 0)
    translateX(0)
    scale(1.08);

  box-shadow: none;
}

.luxury-animated-hero__card[data-position="1"] {
  z-index: 12;

  opacity: 0.54;
  visibility: visible;

  transform:
    translate3d(-50%, -50%, 0)
    translateX(82%)
    scale(0.9);
}

.luxury-animated-hero__card[data-position="-1"] {
  z-index: 12;

  opacity: 0.54;
  visibility: visible;

  transform:
    translate3d(-50%, -50%, 0)
    translateX(-82%)
    scale(0.9);
}

.luxury-animated-hero__card[data-position="2"] {
  z-index: 6;

  opacity: 0.23;
  visibility: visible;

  transform:
    translate3d(-50%, -50%, 0)
    translateX(158%)
    scale(0.76);
}

.luxury-animated-hero__card[data-position="-2"] {
  z-index: 6;

  opacity: 0.23;
  visibility: visible;

  transform:
    translate3d(-50%, -50%, 0)
    translateX(-158%)
    scale(0.76);
}

.luxury-animated-hero__card[data-position="hidden"] {
  z-index: 1;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform:
    translate3d(-50%, -50%, 0)
    translateX(0)
    scale(0.58);
}

.luxury-animated-hero__badges {
  position: absolute;
  top: 18px;
  right: 18px;
  left: 18px;
  z-index: 4;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;

  pointer-events: none;
}

.luxury-animated-hero__badges span {
  min-height: 34px;
  padding: 8px 12px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--hero-badge-border);
  border-radius: max(3px, var(--hero-radius));

  background: var(--hero-badge-bg);
  color: var(--hero-badge-text);

  box-shadow: none;

  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.luxury-animated-hero__price {
  position: absolute;
  right: 18px;
  bottom: 22px;
  z-index: 4;

  max-width: 180px;
  padding: 8px 12px;

  border: 1px solid var(--hero-price-border);
  border-radius: max(3px, var(--hero-radius));

  background: var(--hero-price-bg);
  color: var(--hero-price-text);

  box-shadow: none;

  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  text-align: right;
}

.luxury-animated-hero__badges,
.luxury-animated-hero__price {
  opacity: 0;

  transform: translate3d(0, 8px, 0);

  transition:
    opacity 0.36s ease,
    transform 0.36s ease;
}

.luxury-animated-hero__card[data-position="0"]
.luxury-animated-hero__badges,
.luxury-animated-hero__card[data-position="0"]
.luxury-animated-hero__price {
  opacity: 1;

  transform: translate3d(0, 0, 0);
}

.luxury-animated-hero__button {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 40;

  width: 66px;
  height: 66px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 999px;

  background: var(--hero-button-bg);
  color: var(--hero-button-text);

  text-decoration: none;

  box-shadow: none;

  transform: translate3d(-50%, 50%, 0);

  transition:
    transform 0.22s ease,
    background-color 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease;
}

.luxury-animated-hero__button svg {
  width: 27px;
  height: 27px;
}

.luxury-animated-hero__empty {
  width: calc(100% - 40px);
  max-width: 680px;
  min-height: 280px;
  margin-inline: auto;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px dashed var(--hero-empty-border);
  border-radius: max(8px, var(--hero-radius));

  background: var(--hero-empty-bg);
  color: var(--hero-empty-text);

  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

@media (hover: hover) and (pointer: fine) {
  .luxury-animated-hero__button:hover {
    background: var(--hero-button-hover-bg);
    color: var(--hero-button-hover-text);

    transform: translate3d(-50%, 42%, 0);

    box-shadow: none;
  }
}

@media (min-width: 768px) {
  .luxury-animated-hero {
    min-height:
      var(--hero-min-height-desktop, 720px);
  }
}

@media (max-width: 1180px) {
  .luxury-animated-hero {
    --hero-card-width:
      clamp(270px, 34vw, 380px);

    --hero-card-height:
      clamp(410px, 56vw, 560px);
  }

  .luxury-animated-hero__content {
    margin-bottom: 28px;
  }

  .luxury-animated-hero__card[data-position="0"] {
    transform:
      translate3d(-50%, -50%, 0)
      translateX(0)
      scale(1.04);
  }

  .luxury-animated-hero__card[data-position="1"] {
    opacity: 0.45;

    transform:
      translate3d(-50%, -50%, 0)
      translateX(76%)
      scale(0.86);
  }

  .luxury-animated-hero__card[data-position="-1"] {
    opacity: 0.45;

    transform:
      translate3d(-50%, -50%, 0)
      translateX(-76%)
      scale(0.86);
  }

  .luxury-animated-hero__card[data-position="2"] {
    opacity: 0.16;

    transform:
      translate3d(-50%, -50%, 0)
      translateX(138%)
      scale(0.72);
  }

  .luxury-animated-hero__card[data-position="-2"] {
    opacity: 0.16;

    transform:
      translate3d(-50%, -50%, 0)
      translateX(-138%)
      scale(0.72);
  }
}

@media (max-width: 767px) {
  .luxury-animated-hero {
    --hero-card-width: min(78vw, 380px);
    --hero-card-height: min(118vw, 560px);

    --hero-card-duration: 0.72s;
    --hero-fade-duration: 0.48s;
  }

  .luxury-animated-hero__inner {
    max-width: 100%;
    padding: 22px 0 0;

    overflow: hidden;
  }

  .luxury-animated-hero--has-button .luxury-animated-hero__inner {
    padding-bottom: 52px;
  }

  .luxury-animated-hero__content {
    margin-bottom: 22px;
    padding-inline: 18px;
  }

  .luxury-animated-hero__title {
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: -0.03em;
  }

  .luxury-animated-hero__description {
    max-width: 92%;
    margin-top: 10px;

    font-size: 12.5px;
    line-height: 1.8;
  }

  .luxury-animated-hero__stage {
    width: 100%;
    max-width: 100%;

    height:
      calc(var(--hero-card-height) + 76px);

    min-height:
      calc(var(--hero-card-height) + 76px);
  }

  .luxury-animated-hero__card {
    border-radius: 5px;

    box-shadow: none;
  }

  .luxury-animated-hero__card[data-position="0"] {
    z-index: 20;

    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform:
      translate3d(-50%, -50%, 0)
      translateX(0)
      scale(1);

    box-shadow: none;
  }

  .luxury-animated-hero__card[data-position="1"] {
    z-index: 8;

    opacity: 0.32;
    visibility: visible;
    pointer-events: none;

    transform:
      translate3d(-50%, -50%, 0)
      translateX(76%)
      scale(0.86);
  }

  .luxury-animated-hero__card[data-position="-1"] {
    z-index: 8;

    opacity: 0.32;
    visibility: visible;
    pointer-events: none;

    transform:
      translate3d(-50%, -50%, 0)
      translateX(-76%)
      scale(0.86);
  }

  .luxury-animated-hero__card[data-position="2"],
  .luxury-animated-hero__card[data-position="-2"],
  .luxury-animated-hero__card[data-position="hidden"] {
    z-index: 2;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform:
      translate3d(-50%, -50%, 0)
      translateX(0)
      scale(0.68);
  }

  .luxury-animated-hero__badges {
    top: 20px;
    right: 18px;
    left: 18px;
  }

  .luxury-animated-hero__badges span {
    min-height: 40px;
    padding: 9px 13px;

    border-radius: 3px;

    font-size: 13px;
  }

  .luxury-animated-hero__price {
    right: 18px;
    bottom: 24px;

    max-width: 150px;
    padding: 9px 12px;

    border-radius: 3px;

    font-size: 13px;
    line-height: 1.5;
  }

  .luxury-animated-hero__button {
    width: 64px;
    height: 64px;
  }

  .luxury-animated-hero__button svg {
    width: 25px;
    height: 25px;
  }
}

@media (max-width: 430px) {
  .luxury-animated-hero {
    --hero-card-width: min(78vw, 345px);
    --hero-card-height: min(118vw, 520px);
  }

  .luxury-animated-hero__title {
    font-size: 25px;
  }

  .luxury-animated-hero__description {
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .luxury-animated-hero {
    --hero-card-width: min(80vw, 315px);
    --hero-card-height: min(122vw, 475px);
  }

  .luxury-animated-hero__badges span {
    min-height: 34px;
    font-size: 11px;
  }

  .luxury-animated-hero__price {
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  .luxury-animated-hero {
    --hero-card-width: min(80vw, 270px);
    --hero-card-height: 380px;
  }
}

@media (hover: none), (pointer: coarse) {
  .luxury-animated-hero__button {
    transition:
      background-color 0.15s ease,
      color 0.15s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  .luxury-animated-hero__card,
  .luxury-animated-hero__badges,
  .luxury-animated-hero__price,
  .luxury-animated-hero__button {
    animation: none !important;
    transition: none !important;
  }

  .luxury-animated-hero__card {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .luxury-animated-hero__card[data-position="0"] {
    z-index: 20;

    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform:
      translate3d(-50%, -50%, 0) !important;
  }
}
