.loyalty {
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding-block: 0 40px;
  color: var(--gray900);
  letter-spacing: -0.03em;
}
@media (width <= 1023.98px) {
  .loyalty {
    gap: 40px;
  }
}
@media (width <= 767.98px) {
  .loyalty {
    gap: 40px;
    padding-bottom: 24px;
  }
}

.loyalty__text--desktop {
  display: block;
}
@media (width <= 767.98px) {
  .loyalty__text--desktop {
    display: none;
  }
}
.loyalty__text--mobile {
  display: none;
}
@media (width <= 767.98px) {
  .loyalty__text--mobile {
    display: block;
  }
}

.loyalty-section-title {
  margin: 0 0 20px;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
}
@media (width <= 1023.98px) {
  .loyalty-section-title {
    font-size: 34px;
  }
}
@media (width <= 767.98px) {
  .loyalty-section-title {
    margin-bottom: 9px;
    font-size: 22px;
    line-height: 1;
    text-align: left;
  }
}

.loyalty-page {
  margin: 0;
}

.page-template-page-bonuses-loyalty .entry-title,
.page-template-page-bonuses-loyalty .page-title {
  display: none;
}

.page-template-page-bonuses-loyalty .wd-content-area.site-content {
  overflow: visible;
}

.loyalty-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 40px;
  background-color: var(--blue4);
}
.loyalty-hero::after {
  content: "";
  position: absolute;
  right: 140px;
  bottom: 0;
  width: 309px;
  height: 512px;
  background: url("../../../dist/img/loyalty/loyalty-hero.svg") no-repeat center center;
  background-size: contain;
  pointer-events: none;
}
@media (width <= 1023.98px) {
  .loyalty-hero {
    min-height: 350px;
    border-radius: 28px;
  }
  .loyalty-hero::after {
    right: 80px;
    width: 214px;
    height: 370px;
  }
}
@media (width <= 767.98px) {
  .loyalty-hero {
    min-height: 480px;
    border-radius: 28px;
  }
  .loyalty-hero::after {
    right: 0;
    left: 0;
    bottom: -26px;
    width: auto;
    height: 314px;
  }
}
.loyalty-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 30px;
  min-height: inherit;
  padding: 64px;
}
@media (width <= 1023.98px) {
  .loyalty-hero__inner {
    gap: var(--fo-space-m);
    padding: 64px;
  }
}
@media (width <= 767.98px) {
  .loyalty-hero__inner {
    justify-content: flex-start;
    gap: var(--fo-space-m);
    padding: 22px 24px 56px;
  }
}
.loyalty-hero__title {
  margin: 0;
  color: var(--white);
  font-size: 86px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -1px;
}
@media (width <= 1023.98px) {
  .loyalty-hero__title {
    font-size: 52px;
  }
}
@media (width <= 767.98px) {
  .loyalty-hero__title {
    font-size: 36px;
    letter-spacing: 0;
  }
}
.loyalty-hero__lead {
  max-width: 480px;
  margin: 0 0 5px;
  color: var(--white);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
}
@media (width <= 1023.98px) {
  .loyalty-hero__lead {
    max-width: 300px;
    font-size: 16px;
  }
}
@media (width <= 767.98px) {
  .loyalty-hero__lead {
    max-width: 100%;
    margin-bottom: 0;
    font-size: var(--font-size-base);
    line-height: 1.2;
  }
}
.loyalty-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 5px;
  background-color: var(--white);
  color: var(--gray800);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.loyalty-hero__cta:hover {
  opacity: 0.92;
  color: var(--gray800);
}
@media (width <= 767.98px) {
  .loyalty-hero__cta--inline {
    display: none;
  }
}
.loyalty-hero__cta--sticky {
  display: none;
}
@media (width <= 767.98px) {
  .loyalty-hero__cta--sticky {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: inline-flex;
    width: 100%;
  }
}

.loyalty-promo {
  padding: 28px 40px;
  border-radius: 28px;
  background-color: var(--gray50);
  text-align: center;
}
@media (width <= 767.98px) {
  .loyalty-promo {
    padding: 20px 24px;
    border-radius: 20px;
    text-align: left;
  }
}
.loyalty-promo__text {
  margin: 0;
  color: var(--gray900);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}
@media (width <= 1023.98px) {
  .loyalty-promo__text {
    font-size: 18px;
  }
}
@media (width <= 767.98px) {
  .loyalty-promo__text {
    font-size: 16px;
  }
}

.loyalty-benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (width <= 1023.98px) {
  .loyalty-benefits__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (width <= 767.98px) {
  .loyalty-benefits__grid {
    grid-template-columns: 1fr;
    gap: var(--fo-space-m);
  }
}

.loyalty-benefit-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 245px;
  padding: 31px 28px;
  overflow: hidden;
  border-radius: 40px;
  background-color: var(--gray50);
}
@media (width <= 1023.98px) {
  .loyalty-benefit-card {
    min-height: 210px;
    padding: 28px;
    border-radius: 28px;
  }
}
@media (width <= 767.98px) {
  .loyalty-benefit-card {
    min-height: 190px;
    padding: 24px;
    border-radius: 20px;
  }
}
.loyalty-benefit-card__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.loyalty-benefit-card__title {
  margin: 0;
  color: var(--gray900);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}
@media (width <= 1023.98px) {
  .loyalty-benefit-card__title {
    font-size: 17px;
  }
}
.loyalty-benefit-card__text {
  margin: 0;
  color: var(--gray900);
  font-size: 17px;
  line-height: 1.35;
}
@media (width <= 1023.98px) {
  .loyalty-benefit-card__text {
    font-size: var(--font-size-base);
  }
}
.loyalty-benefit-card__image {
  position: absolute;
  right: 25px;
  bottom: 0;
  z-index: 1;
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  pointer-events: none;
}
@media (width <= 1023.98px) {
  .loyalty-benefit-card__image {
    right: 5px;
  }
}
.loyalty-benefit-card--cashback .loyalty-benefit-card__image {
  width: 150px;
  bottom: -10px;
}
.loyalty-benefit-card--welcome .loyalty-benefit-card__image {
  width: 140px;
  bottom: 1px;
}
.loyalty-benefit-card--status .loyalty-benefit-card__image, .loyalty-benefit-card--cabinet .loyalty-benefit-card__image {
  width: 160px;
  bottom: -20px;
}
.loyalty-benefit-card--birthday .loyalty-benefit-card__image {
  width: 110px;
  bottom: 0;
}
.loyalty-benefit-card--merch .loyalty-benefit-card__image {
  width: 120px;
  bottom: 5px;
}

.loyalty-tiers {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.loyalty-tiers__head {
  width: 100%;
  margin-bottom: 0;
}
.loyalty-tiers__title {
  margin-bottom: 20px;
}
@media (width <= 767.98px) {
  .loyalty-tiers__title {
    margin-bottom: 0;
  }
}
.loyalty-tiers__track {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (width <= 767.98px) {
  .loyalty-tiers__track {
    justify-content: flex-start;
  }
}
.loyalty-tiers__item {
  flex: 0 0 auto;
  min-width: 0;
}
.loyalty-tiers__note {
  max-width: 720px;
  margin: 0;
  color: var(--gray700);
  font-size: var(--font-size-base);
  line-height: 1.45;
  text-align: center;
}
@media (width <= 767.98px) {
  .loyalty-tiers__note {
    text-align: left;
  }
}
.loyalty-tiers__shop {
  width: 100%;
  max-width: 320px;
  height: 48px;
  border-radius: 8px;
  font-size: 13px;
}
@media (width <= 767.98px) {
  .loyalty-tiers__shop {
    max-width: none;
  }
}

.loyalty-tier-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 320px;
  min-height: 0;
  padding: 28px 24px;
  border-radius: 40px;
  color: var(--white);
}
@media (width <= 767.98px) {
  .loyalty-tier-card {
    width: 284px;
    padding: 20px 24px;
    border-radius: 28px;
  }
}
.loyalty-tier-card--basic {
  background-color: var(--gray50);
  color: var(--gray900);
}
.loyalty-tier-card--pro {
  background-color: var(--blue4);
}
.loyalty-tier-card--wow, .loyalty-tier-card--ambassador {
  background: linear-gradient(258deg, var(--fo-primary) 51%, var(--fo-primary) 86%);
}
.loyalty-tier-card__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.loyalty-tier-card__tagline {
  margin: 0;
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1.3;
  opacity: 0.85;
}
.loyalty-tier-card__name {
  margin: 0;
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
}
@media (width <= 767.98px) {
  .loyalty-tier-card__name {
    font-size: 34px;
  }
}
.loyalty-tier-card__threshold {
  display: inline-flex;
  align-self: flex-start;
  margin: 12px 0 0;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}
.loyalty-tier-card--basic .loyalty-tier-card__threshold {
  background-color: var(--white);
  color: var(--gray800);
}
.loyalty-tier-card--pro .loyalty-tier-card__threshold, .loyalty-tier-card--ambassador .loyalty-tier-card__threshold {
  background-color: rgba(255, 255, 255, 0.16);
  color: var(--white);
}
.loyalty-tier-card__block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.loyalty-tier-card__label {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.9;
}
.loyalty-tier-card__list {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 16px;
  line-height: 1.4;
}
@media (width <= 1023.98px) {
  .loyalty-tier-card__list {
    font-size: var(--font-size-base);
  }
}
.loyalty-tier-card__list li + li {
  margin-top: 8px;
}
.loyalty-tier-card__list--perks {
  list-style: none;
  padding-left: 0;
}
.loyalty-tier-card__list--perks li {
  position: relative;
  padding-left: 22px;
}
.loyalty-tier-card__list--perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: currentcolor;
}
.loyalty-tier-card--basic .loyalty-tier-card__list--perks li::before {
  background-color: var(--green600);
}

.loyalty-join {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 80px 60px;
  overflow: hidden;
  border-radius: 40px;
  background: linear-gradient(258deg, var(--fo-primary) 51%, var(--fo-primary) 86%);
  color: var(--white);
}
@media (width <= 1023.98px) {
  .loyalty-join {
    padding: 80px 60px;
    border-radius: 28px;
  }
}
@media (width <= 767.98px) {
  .loyalty-join {
    gap: 24px;
    padding: 25px 20px;
    border-radius: 20px;
  }
}
.loyalty-join__title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
}
@media (width <= 1023.98px) {
  .loyalty-join__title {
    font-size: 34px;
  }
}
@media (width <= 767.98px) {
  .loyalty-join__title {
    font-size: 22px;
    line-height: 1;
    text-align: left;
  }
}
.loyalty-join__steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (width <= 1023.98px) {
  .loyalty-join__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}
@media (width <= 767.98px) {
  .loyalty-join__steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.loyalty-join__cta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  min-height: 44px;
  margin-inline: auto;
  padding: 10px var(--fo-space-m);
  border-radius: var(--wd-form-brd-radius);
  background-color: var(--white);
  color: var(--green600);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
@media (width <= 767.98px) {
  .loyalty-join__cta {
    max-width: none;
  }
}

.loyalty-step {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-inline-end: 16px;
  background-image: url("../../../dist/img/loyalty/arrow-desktop.svg");
  background-repeat: no-repeat;
  background-position: 80px 20px;
  background-size: 170px;
}
@media (width <= 1023.98px) {
  .loyalty-step {
    display: grid;
    grid-template-columns: 35px minmax(0, 1fr);
    column-gap: 20px;
    row-gap: 0;
    align-items: start;
    background: none;
    padding-inline-end: 0;
  }
}
.loyalty-step--last {
  background: none;
}
.loyalty-step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 30px;
  border-radius: 60px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
}
@media (width <= 1023.98px) {
  .loyalty-step__number {
    grid-column: 1;
    grid-row: 1/3;
    align-self: start;
    width: 35px;
    height: 35px;
    margin-bottom: 0;
    border-radius: 50%;
    font-size: 24px;
  }
}
.loyalty-step__title {
  max-width: 250px;
  margin: 0 0 8px;
  color: var(--white);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}
@media (width <= 1023.98px) {
  .loyalty-step__title {
    grid-column: 2;
    grid-row: 1;
    max-width: none;
    margin-bottom: 0;
    font-size: 17px;
  }
}
@media (width <= 1023.98px) {
  .loyalty-step__title br {
    display: none;
  }
}
.loyalty-step__text {
  max-width: 250px;
  margin: 0;
  color: var(--white);
  font-size: 17px;
  line-height: 1.4;
}
@media (width <= 1023.98px) {
  .loyalty-step__text {
    grid-column: 2;
    grid-row: 2;
    max-width: none;
    font-size: var(--font-size-base);
  }
}

.loyalty-faq {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.loyalty-faq__title {
  width: 100%;
}
@media (width <= 767.98px) {
  .loyalty-faq__title {
    margin-bottom: 0;
  }
}
.loyalty-faq__list {
  width: 100%;
  max-width: 792px;
}
