.romashka-loyalty,
.romashka-guest-account {
    box-sizing: border-box;
    max-width: 1192px;
    margin: 0 auto;
    color: #333333;
    font-family: "Roboto", Arial, sans-serif;
}

.romashka-loyalty *,
.romashka-loyalty *::before,
.romashka-loyalty *::after,
.romashka-guest-account *,
.romashka-guest-account *::before,
.romashka-guest-account *::after {
    box-sizing: border-box;
}

.romashka-loyalty__intro {
    margin-bottom: 48px;
}

.romashka-loyalty__title,
.romashka-loyalty__rules h3 {
    margin: 0 auto 32px;
    color: #336e5c;
    font-family: "Caveat", Arial, sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
}

.romashka-loyalty p,
.romashka-loyalty__rules li {
    font-size: 16px;
    line-height: 1.8;
}

.romashka-loyalty p {
    margin: 0;
}

.romashka-loyalty__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    margin: 0 auto 54px;
    padding: 0;
    list-style: none;
}

.romashka-loyalty-card {
    min-width: 0;
}

.romashka-loyalty-card__image,
.romashka-loyalty-card__placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 380 / 247;
    border-radius: 20px;
}

.romashka-loyalty-card__image {
    height: auto;
    object-fit: cover;
}

.romashka-loyalty-card__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid rgba(51, 110, 92, 0.24);
    background: #eef5f2;
    color: #1f4338;
}

.romashka-loyalty-card__placeholder span {
    font-size: 28px;
    font-weight: 700;
}

.romashka-loyalty-card__placeholder strong {
    font-size: 44px;
    line-height: 1;
}

.romashka-loyalty-card__body {
    padding: 18px 5px 0;
}

.romashka-loyalty-card__header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    color: #1f4338;
    font-family: "Caveat", Arial, sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.05;
}

.romashka-loyalty-card__header strong {
    color: #336e5c;
    font-weight: 700;
    text-align: right;
}

.romashka-loyalty-card__advantages {
    margin: 0;
    padding-left: 20px;
}

.romashka-loyalty-card__advantages li {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.4;
}

.romashka-loyalty-card__advantages span {
    color: #336e5c;
    font-weight: 700;
}

.romashka-loyalty__actions {
    display: flex;
    justify-content: center;
    margin: 0 auto 40px;
}

.romashka-loyalty__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 30px;
    border: 1px solid #1f4338;
    border-radius: 30px;
    background: transparent;
    color: #1f4338 !important;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.romashka-loyalty__button:hover,
.romashka-loyalty__button:focus {
    background: #1f4338;
    color: #ffffff !important;
}

.romashka-loyalty__button--primary {
    background: #1f4338;
    color: #ffffff !important;
}

.romashka-loyalty__button--primary:hover,
.romashka-loyalty__button--primary:focus {
    background: #2e6050;
}

.romashka-loyalty__rules {
    margin-bottom: 36px;
}

.romashka-loyalty__rules ol {
    margin: 0;
    padding-left: 22px;
}

.romashka-loyalty__rules li {
    margin-bottom: 10px;
}

.romashka-guest-account {
    max-width: 1440px;
}

.romashka-guest-account__widget {
    min-height: 420px;
}

@media (max-width: 900px) {
    .romashka-loyalty__cards {
        grid-template-columns: 1fr;
        max-width: 430px;
    }
}

@media (max-width: 480px) {
    .romashka-loyalty__title,
    .romashka-loyalty__rules h3 {
        font-size: 28px;
    }

    .romashka-loyalty-card__header {
        flex-direction: column;
        gap: 6px;
        font-size: 28px;
    }

    .romashka-loyalty-card__header strong {
        text-align: left;
    }

    .romashka-loyalty__button {
        width: 100%;
        max-width: 320px;
        font-size: 16px;
    }
}
