.loyalty-header {
  width: 100%;
  height: calc(100vh - var(--header-offset, 0px));
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 70px 70px 50px 70px;
  border-radius: 20px;
  background: url("../../img/loyalty/header/background-desktop.svg") no-repeat,
    linear-gradient(135deg, #9e0917 0%, #580910 100%);
  background-size: auto;
  background-position: right -220px top -40px, center;
  overflow: hidden;
}

.loyalty-header__title {
  display: flex;
  flex-direction: column;
}

.loyalty-header__title-text {
  font-family: var(--font-family-secondary);
  font-size: var(--font-size-7xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-white);
}

.loyalty-header__title-accent {
  color: var(--color-secondary);
}

.loyalty-header__subtitle {
  font-size: 22px;
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-tight);
  color: var(--color-white);
}

.loyalty-header__main-content {
  display: flex;
  justify-content: space-between;
}

.loyalty-header__privileges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-bottom: 30px;
}

.loyalty-header__privilege-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.loyalty-header__privilege-title {
  font-family: var(--font-family-secondary);
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-white);
  text-wrap: nowrap;
}

.loyalty-header__privilege-title-accent {
  color: var(--color-secondary);
}

.loyalty-header__privilege-description {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-tight);
  color: var(--color-secondary);
  width: 60%;
}

.loyalty-header__link {
  background-color: var(--color-white);
  border-radius: 100px;
  color: var(--color-black-soft);
  text-decoration: none;
  padding: 12px 32px;
  align-self: flex-end;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.loyalty-header__link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}


@media (max-width: 1700px) {
  .loyalty-header {
    max-height: 500px;
    min-height: 350px;
    background: url("../../img/loyalty/header/background.svg") no-repeat,
      linear-gradient(135deg, #9e0917 0%, #580910 100%);
    background-size: auto;
    background-position: right -150px top -40px, center;
  }
}

@media (max-width: 1024px) {
  .loyalty-header {
    padding: 35px 25px 20px 25px;
    background: url("../../img/loyalty/header/background-mobile.svg") no-repeat,
      linear-gradient(135deg, #9e0917 0%, #580910 100%);
    background-position: right -200px bottom -250px, center;
    justify-content: flex-start;
    gap: 25px;
  }

  .loyalty-header__main-content {
    flex-direction: column;
    height: 100%;
  }

  .loyalty-header__privilege-description {
    width: 100%;
  }

  .loyalty-header__privileges {
    padding-bottom: 0;
    gap: 15px;
  }

  .loyalty-header__title-text {
    font-size: 88px;
  }

  .loyalty-header__subtitle {
    font-size: 20px;
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-tight);
  }

  .loyalty-header__link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    font-weight: var(--font-weight-normal);
  }
}
