.loyalty-page,
.loyalty-page * {
    box-sizing: border-box;
}

.loyalty-page {
    --loyalty-button-hover-color: #003f77;

    padding-bottom: 128px;
}

.loyalty-page--s2 {
    --loyalty-button-hover-color: #bca36b;
}

.loyalty-page--h1 {
    --loyalty-button-hover-color: #264972;
}

.loyalty-page--h2 {
    --loyalty-button-hover-color: #335126;
}

.loyalty-page__page-title {
    margin: 0 0 40px;
    font: inherit;
    font-size: 48px;
    font-weight: 500;
    line-height: 1.15;
}

.loyalty-page__promo {
    display: flex;
    min-height: 560px;
    margin-bottom: 64px;
    padding: 64px;
    overflow: hidden;
    border-radius: 16px;
    background-color: #001c63;
    background-position: right top;
    background-repeat: no-repeat;
    color: #fff;
}

.loyalty-page__promo-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    width: min(655px, 100%);
    min-height: 432px;
}

.loyalty-page__promo-logo {
    display: block;
    width: min(361px, 100%);
    max-height: 96px;
    margin: 0 0 32px;
    object-fit: contain;
    object-position: left center;
}

.loyalty-page__promo-title {
    margin: 0;
    color: inherit;
    font: inherit;
    font-size: 56px;
    font-weight: 500;
    line-height: 1.15;
}

.loyalty-page__promo-subtitle {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.35;
}

.loyalty-page__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    margin: auto 0 24px;
    padding: 16px 32px;
    border-radius: 999px;
    background: #fff;
    color: #001c63;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.25;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.loyalty-page__button:hover,
.loyalty-page__button:focus-visible {
    color: var(--loyalty-button-hover-color);
    opacity: 0.8;
    text-decoration: none;
}

.loyalty-page__brands-title {
    margin: 0 0 24px;
    font: inherit;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.15;
}

.loyalty-page__brand-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.loyalty-page__brand {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    min-height: 257px;
    padding: 32px;
    overflow: hidden;
    border-radius: 16px;
    background-color: #31556d;
    background-image: linear-gradient(135deg, #31556d, #001c63);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
    text-align: center;
}

.loyalty-page__brand-logo,
.loyalty-page__brand-title {
    position: relative;
    z-index: 1;
}

.loyalty-page__brand-logo {
    display: block;
    max-width: min(240px, 90%);
    max-height: 92px;
    margin: 0;
    object-fit: contain;
}

.loyalty-page__brand--white-logo .loyalty-page__brand-logo {
    filter: brightness(0) invert(1);
}

.loyalty-page__brand-title {
    margin: 0;
    color: inherit;
    font: inherit;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
}

.loyalty-page__brand-link {
    position: absolute;
    z-index: 2;
    inset: 0;
    border-radius: inherit;
}

.loyalty-page__brand-link:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -6px;
}

@media (max-width: 991px) {
    .loyalty-page__brand-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .loyalty-page {
        padding-bottom: 64px;
    }

    .loyalty-page__page-title {
        margin-bottom: 24px;
        font-size: 32px;
    }

    .loyalty-page__promo-logo {
        margin-bottom: 0;
    }

    .loyalty-page__promo-title {
        font-size: 32px;
        line-height: 1.15;
    }

    .loyalty-page__promo-subtitle {
        font-size: 20px;
    }

}

@media (max-width: 575px) {
    .loyalty-page__promo {
        min-height: 0;
        margin-bottom: 64px;
        padding: 16px;
    }

    .loyalty-page__promo-content {
        min-height: 0;
    }

    .loyalty-page__promo-logo {
        width: 100%;
    }

    .loyalty-page__button {
        margin-bottom: 0;
    }

    .loyalty-page__brand-grid {
        grid-template-columns: 1fr;
    }

    .loyalty-page__brand {
        min-height: 0;
        gap: 32px;
    }

    .loyalty-page__brand-title {
        font-size: 20px;
    }
}
