.hero {
  position: relative;
  height: 108rem;
  overflow: hidden;
  color: var(--color-white);
  background-color: var(--color-dark);
}

/* Slides (decorative background layer)
   ========================================================================== */

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__slide::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 33rem;
  background-image: linear-gradient(182.51deg, rgba(56, 57, 67, 0) 22.292%, var(--color-dark) 88.588%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero__glass {
  position: absolute;
  top: 0;
  left: calc(50% + 56.6rem);
  z-index: 2;
  width: 34rem;
  height: 100%;
  -webkit-backdrop-filter: blur(0.2rem) brightness(0.9);
  backdrop-filter: blur(0.2rem) brightness(0.9);
}

.hero__glass-texture {
  width: 100%;
  height: 100%;
  opacity: 0.2;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.hero__glass-texture--photo {
  background-position: 96.65% 0;
  background-size: cover;
}

/* Content
   ========================================================================== */

.hero__inner {
  z-index: 3;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hero__body {
  display: grid;
  flex-grow: 1;
  grid-template-columns: minmax(0, 1fr) 34rem 5.4rem;
}

.hero__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding-left: 16.8rem;
}

.hero__heading {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: 100%;
  margin-left: 25rem;
}

.hero__title {
  padding-top: 1.32rem;
  font-size: 7rem;
  font-weight: 500;
  line-height: 1.218;
}

.hero__title em {
  font-family: var(--font-accent);
  font-size: 1.3714em;
  font-weight: 400;
  line-height: 1.006;
  /* Chrome turns Caveat's contextual alternates off when letter-spacing is set; Figma keeps them */
  font-feature-settings: "calt" 1;
}

.hero__title-line {
  display: block;
  padding-left: 3.751em;
}

.hero__offer {
  margin-top: 2.4rem;
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: right;
}

.hero__perks {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.6rem;
}

.hero__perk {
  padding: 0.7rem 1.6rem;
  font-size: max(1.4rem, 13px);
  font-weight: 500;
  line-height: 1.2;
  background-color: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 2rem;
  -webkit-backdrop-filter: blur(0.4rem);
  backdrop-filter: blur(0.4rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.6rem;
  margin-top: 3.2rem;
}

.hero__actions .btn {
  padding: 0 2.6rem;
  font-size: max(1.3rem, 13px);
}

/* Advantages and the reviews badge share the bottom row of the first screen */
.hero__bottom {
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: auto;
  padding-bottom: 5.9rem;
}

.hero__features {
  display: grid;
  grid-template-columns: 26rem 29.9rem 30.2rem auto;
}

.hero__rating {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin: -0.5rem 2.4rem 0 auto;
  color: inherit;
}

.hero__rating-value {
  font-size: 5.2rem;
  font-weight: 500;
  line-height: 1;
}

.hero__rating-stars {
  display: block;
  font-size: 1.8rem;
  letter-spacing: 0.15em;
  color: #f5b301;
}

.hero__rating-label {
  display: block;
  margin-top: 0.2rem;
  font-size: max(1.2rem, 11px);
  font-weight: 300;
  line-height: 1.2;
  white-space: nowrap;
}

.hero__feature-num {
  display: block;
  font-size: 3rem;
  font-style: italic;
  line-height: 1.2333;
  color: var(--color-sand);
}

.hero__feature-text {
  display: block;
  margin-top: 0.4rem;
  padding-right: 2rem;
  font-size: max(2rem, 14px);
  font-weight: 300;
  line-height: 1.2;
}

.hero__aside {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero__presentation {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  min-height: 17.2rem;
  padding: 2.2rem 2rem 2rem 3.8rem;
  color: var(--color-dark);
  background-color: var(--color-sand);
  transition: background-color var(--transition);
}

.hero__presentation:hover {
  background-color: #d6c4a7;
}

.hero__presentation-title {
  display: block;
  font-size: max(2rem, 14px);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero__presentation-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 3.5rem;
}

.hero__presentation-arrow {
  flex-shrink: 0;
  width: 7.7rem;
  height: 1.473rem;
  transition: transform var(--transition);
}

.hero__presentation:hover .hero__presentation-arrow {
  transform: translateX(0.8rem);
}

.hero__presentation-text {
  font-size: max(1.5rem, 12px);
  line-height: 1.2;
  text-transform: lowercase;
}

/* Tablet & mobile
   ========================================================================== */

@media (max-width: 1279.98px) {
  /* Below the desktop layout the badge moves under the advantages */
  .hero__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 3.2rem;
  }

  .hero__rating {
    margin: 0;
  }

  .hero {
    height: auto;
  }

  .hero__slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    height: 22rem;
    background-image: linear-gradient(180deg, rgba(35, 37, 42, 0.6), rgba(35, 37, 42, 0));
  }

  .hero__slide::after {
    height: 70%;
  }

  .hero__bg {
    background-position: 35% center;
  }

  .hero__glass {
    display: none;
  }

  .hero__inner {
    min-height: min(100svh, 110rem);
  }

  .hero__body {
    display: flex;
    flex-direction: column;
  }

  .hero__main {
    flex-grow: 1;
    padding: 6rem var(--gutter) 0;
  }

  .hero__heading {
    align-items: flex-start;
    margin-left: 0;
  }

  .hero__title {
    padding: 0;
    font-size: 6rem;
    line-height: 1.15;
  }

  .hero__title em {
    margin-left: 0;
    line-height: 1;
  }

  .hero__title-line {
    padding-left: 1.5em;
  }

  .hero__offer {
    margin-top: 2rem;
    text-align: left;
  }

  .hero__perks,
  .hero__actions {
    justify-content: flex-start;
  }

  .hero__features {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.4rem;
    width: 100%;
    padding: 8rem 0 4rem;
  }

  .hero__feature-num {
    font-size: 2.6rem;
  }

  .hero__feature-text {
    padding-right: 0;
    font-size: 1.6rem;
  }

  .hero__presentation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem 3.2rem;
    min-height: 0;
    padding: 2.4rem var(--gutter);
  }

  .hero__presentation-title {
    font-size: 1.8rem;
  }

  .hero__presentation-row {
    margin-top: 0;
  }

  .hero__presentation-text {
    font-size: 1.4rem;
  }
}

@media (max-width: 767.98px) {
  .hero__main {
    padding-top: 4rem;
  }

  .hero__title {
    font-size: 3.6rem;
    display: contents;
  }

  .hero__title-line {
    padding-left: 0;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero__features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.6rem;
    padding-top: 6rem;
    padding-bottom: 0;
  }

  .hero__feature-num {
    font-size: 2.2rem;
  }

  .hero__feature-text {
    font-size: 1.4rem;
  }

  .hero__presentation {
    flex-direction: column;
    align-items: flex-start;
  }
}
