.rmc-page {
    --rmc-yellow: #ffb81c;
    --rmc-yellow-deep: #f5a300;
    --rmc-ink: #141515;
    --rmc-dark: #333333;
    --rmc-muted: #555555;
    --rmc-line: #e6e6e6;
    color: var(--rmc-muted);
    display: flex;
    flex-direction: column;
    gap: 64px;
    padding-bottom: 24px;
}

.rmc-page a {
    color: var(--rmc-ink);
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, text-decoration-color 0.2s ease, box-shadow 0.2s ease;
}

.rmc-page a:not(.rmc-btn):hover,
.rmc-page a:not(.rmc-btn):focus-visible {
    color: #000;
}

.rmc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 26px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none !important;
    box-sizing: border-box;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.rmc-btn--dark {
    background: var(--rmc-dark);
    color: #fff !important;
}

.rmc-btn--dark:hover,
.rmc-btn--dark:focus-visible {
    background: var(--rmc-ink);
    color: var(--rmc-yellow) !important;
}

.rmc-btn--outline {
    border: 1px solid var(--rmc-ink);
    color: var(--rmc-ink) !important;
    background: transparent;
}

.rmc-btn--outline:hover,
.rmc-btn--outline:focus-visible {
    background: var(--rmc-ink);
    color: #fff !important;
    border-color: var(--rmc-ink);
}

.rmc-btn--accent {
    background: var(--rmc-yellow);
    color: var(--rmc-ink) !important;
}

.rmc-btn--accent:hover,
.rmc-btn--accent:focus-visible {
    background: var(--rmc-yellow-deep);
    color: var(--rmc-ink) !important;
}

.rmc-hero .rmc-btn {
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.rmc-hero .rmc-btn--dark {
    background: #141515;
    border: 1px solid #141515;
    color: #fff !important;
    box-shadow: none;
}

.rmc-hero .rmc-btn--dark:hover,
.rmc-hero .rmc-btn--dark:focus-visible {
    background: #292a2a;
    border-color: #292a2a;
    color: #fff !important;
    box-shadow: 0 3px 8px rgba(20, 21, 21, 0.15);
}

.rmc-hero .rmc-btn--outline {
    background: transparent;
    border: 1px solid #141515;
    color: #141515 !important;
    box-shadow: none;
}

.rmc-hero .rmc-btn--outline:hover,
.rmc-hero .rmc-btn--outline:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    border-color: #141515;
    color: #141515 !important;
    box-shadow: none;
}

.rmc-hero .rmc-btn:focus-visible {
    outline: 2px solid #141515;
    outline-offset: 3px;
}

.rmc-hero {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: var(--rmc-yellow);
    padding: 40px 44px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
    gap: 40px;
    color: var(--rmc-ink);
}

.rmc-hero__shade {
    position: absolute;
    right: 0;
    top: 0;
    width: 42%;
    height: 100%;
    background: var(--rmc-yellow-deep);
    clip-path: polygon(26% 0, 100% 0, 100% 100%, 0 100%);
    pointer-events: none;
}

.rmc-hero__main,
.rmc-hero__aside {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.rmc-page .rmc-hero__logo {
    width: 176px;
    height: 36px;
    display: block;
    object-fit: contain;
    margin: 0 !important;
    align-self: flex-start;
}

.rmc-page .rmc-hero__name {
    margin: 36px 0 0;
    padding-bottom: 24px;
    font-size: 48px;
    line-height: 1.08;
    font-weight: 800;
    color: var(--rmc-ink);
    text-transform: uppercase;
}

.rmc-page p.rmc-hero__lead {
    margin: 0 !important;
    padding: 0;
    max-width: 540px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    color: var(--rmc-ink);
}

.rmc-hero__actions {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.rmc-hero__note {
    margin: 16px 0 0;
    font-size: 13px;
    color: var(--rmc-ink);
}

.rmc-hero__note a {
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--rmc-yellow);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.rmc-hero__note a:hover,
.rmc-hero__note a:focus-visible {
    color: #000;
    text-decoration-color: var(--rmc-ink);
}

.rmc-hero__actions--mobile,
.rmc-hero__note--mobile {
    display: none;
}

.rmc-hero__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    text-align: right;
}

.rmc-hero__kicker {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #3a3320;
}

.rmc-hero__figure {
    margin-top: 12px;
    font-size: 120px;
    line-height: 0.86;
    font-weight: 800;
    color: var(--rmc-ink);
    letter-spacing: -0.05em;
}

.rmc-hero__figure--compact {
    font-size: 56px;
    line-height: 1;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.rmc-hero__figure-caption {
    margin-top: 10px;
    font-size: 22px;
    line-height: 28px;
    font-weight: 700;
    color: var(--rmc-ink);
}

.rmc-hero__hint {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #3a3320;
}

.rmc-hero__badge {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    background: var(--rmc-ink);
    border-radius: 3px;
    font-size: 13px;
    font-weight: 700;
    color: var(--rmc-yellow);
}

.rmc-hero--member .rmc-hero__badge {
    margin-top: 0;
}

.rmc-how__title,
.rmc-rules__title {
    margin: 0;
    font-size: 26px;
    line-height: 1.15;
    font-weight: 500;
    color: var(--rmc-dark);
}

.rmc-how__grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.rmc-card {
    border-radius: 4px;
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.rmc-card--light {
    border: 1px solid var(--rmc-line);
    background: #fff;
}

.rmc-card--dark {
    background: var(--rmc-dark);
    color: #d9d9d9;
}

.rmc-card__label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #707070;
}

.rmc-card--dark .rmc-card__label {
    color: #bdbdbd;
}

.rmc-card__dot {
    width: 8px;
    height: 8px;
    background: var(--rmc-yellow);
}

.rmc-page .rmc-card__title {
    margin: 14px 0 0;
    padding-bottom: 16px;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--rmc-ink);
}

.rmc-card--dark .rmc-card__title {
    color: #fff;
}

.rmc-page p.rmc-card__text {
    margin: 0 !important;
    padding: 0;
    font-size: 14px;
    line-height: 22px;
}

.rmc-bars {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.rmc-bar__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    font-size: 14px;
    line-height: 20px;
    color: var(--rmc-dark);
}

.rmc-bar__row strong {
    font-size: 20px;
    font-weight: 800;
    color: var(--rmc-ink);
}

.rmc-bar__track {
    margin-top: 8px;
    height: 10px;
    border-radius: 5px;
    background: #f1f1f1;
    overflow: hidden;
}

.rmc-bar__fill {
    display: block;
    height: 100%;
    border-radius: 5px;
    background: var(--rmc-yellow);
}

.rmc-card__foot {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px dashed #d4d4d4;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    font-size: 13px;
    color: var(--rmc-muted);
}

.rmc-card--dark .rmc-card__foot {
    border-top-color: #4a4a4a;
    border-top-style: solid;
}

.rmc-card__foot--muted {
    color: #bdbdbd;
    display: block;
    line-height: 1.45;
    overflow: visible;
    white-space: normal;
}

.rmc-example {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rmc-example__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 14px;
}

.rmc-example__row strong {
    color: #fff;
}

.rmc-example__track {
    display: flex;
    height: 14px;
    border-radius: 3px;
    overflow: hidden;
}

.rmc-example__money {
    width: 70%;
    background: #5a5a5a;
}

.rmc-example__points {
    width: 30%;
    background: var(--rmc-yellow);
}

.rmc-example__row--split {
    gap: 8px 12px;
    flex-wrap: wrap;
}

.rmc-example__row--split .rmc-example__accent {
    margin-left: auto;
    text-align: right;
}

.rmc-example__accent {
    font-weight: 700;
    color: var(--rmc-yellow);
}

.rmc-join {
    border: 1px solid var(--rmc-line);
    border-radius: 4px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.rmc-join__info {
    flex: 1 1 auto;
    min-width: 0;
}

.rmc-join__title {
    margin: 0 0 18px;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--rmc-ink);
}

.rmc-join__ways {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.rmc-join__way {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.rmc-join__icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #fff1cc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rmc-ink);
}

.rmc-join__way-title {
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    color: var(--rmc-ink);
}

.rmc-join__way-text {
    font-size: 13px;
    line-height: 19px;
}

.rmc-join__way-text a {
    color: inherit;
    font-weight: 400;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.rmc-join__way-text a:hover,
.rmc-join__way-text a:focus-visible {
    color: var(--rmc-ink);
    text-decoration-color: var(--rmc-yellow);
    text-decoration-thickness: 2px;
}

.rmc-join__cta {
    flex-shrink: 0;
}

.rmc-rules {
    max-width: 880px;
}

.rmc-rules__lead {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 22px;
    color: #707070;
}

.rmc-rules__group {
    margin: 22px 0 0;
    padding-top: 22px;
    border-top: 1px solid var(--rmc-line);
}

.rmc-rules__summary,
.rmc-rules__heading {
    margin: 0;
    font-size: 18px;
    line-height: 24px;
    font-weight: 600;
    color: var(--rmc-dark);
}

.rmc-rules__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 32px;
    list-style: none;
    cursor: pointer;
}

.rmc-rules__summary::-webkit-details-marker {
    display: none;
}

.rmc-rules__sign {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #f4f4f4;
    position: relative;
}

.rmc-rules__sign::before,
.rmc-rules__sign::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: var(--rmc-ink);
}

.rmc-rules__sign::before {
    width: 12px;
    height: 2px;
    transform: translate(-50%, -50%);
}

.rmc-rules__sign::after {
    width: 2px;
    height: 12px;
    transform: translate(-50%, -50%);
}

.rmc-rules__group[open] .rmc-rules__sign::after {
    display: none;
}

.rmc-rules__body {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 18px 0 4px;
}

.rmc-rules__item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 16px;
    font-size: 15px;
    line-height: 25px;
}

.rmc-rules__num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--rmc-yellow);
    color: var(--rmc-ink);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rmc-rules__text p {
    margin: 0 0 8px;
}

.rmc-rules__text p:last-child {
    margin-bottom: 0;
}

.rmc-rules__bullets {
    margin: 0 0 8px;
    padding: 0 0 0 4px;
    list-style: none;
}

.rmc-rules__bullets li {
    padding-left: 12px;
    position: relative;
}

.rmc-rules__bullets li::before {
    content: "—";
    position: absolute;
    left: 0;
}

.rmc-rules__offer {
    text-decoration: underline;
    text-decoration-color: var(--rmc-yellow);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.rmc-rules__offer:hover,
.rmc-rules__offer:focus-visible {
    color: #000;
    text-decoration-color: var(--rmc-ink);
}

.rmc-page .rmc-rules__summary:hover .rmc-rules__summary-text {
    color: var(--rmc-ink);
}

.rmc-page .rmc-rules__summary:hover .rmc-rules__sign {
    background: #ffe08a;
}

.rmc-rules--lk {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 16px 32px;
}

.rmc-rules--lk .rmc-rules__group {
    border-top: 0;
    padding-top: 0;
}

.rmc-rules--lk .rmc-rules__heading {
    margin-bottom: 8px;
}

@media (min-width: 992px) {
    .rmc-page .rmc-rules__summary {
        pointer-events: none;
        cursor: default;
    }

    .rmc-page .rmc-rules__sign {
        display: none;
    }
}

@media (max-width: 991px) {
    .rmc-page {
        gap: 48px;
    }

    .rmc-hero {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
        border-radius: 14px;
    }

    .rmc-hero__shade {
        display: none;
    }

    .rmc-hero__main {
        padding: 24px 20px 0;
    }

    .rmc-page .rmc-hero__logo {
        width: 150px;
        height: 31px;
    }

    .rmc-hero__name {
        margin-top: 26px;
        font-size: 32px;
    }

    .rmc-hero__lead {
        font-size: 14px;
        line-height: 22px;
    }

    .rmc-hero__main .rmc-hero__actions:not(.rmc-hero__actions--mobile),
    .rmc-hero__main .rmc-hero__note:not(.rmc-hero__note--mobile) {
        display: none;
    }

    .rmc-hero__aside {
        margin-top: 8px;
        padding: 52px 20px 24px;
        align-items: flex-start;
        text-align: left;
        background: transparent;
        clip-path: none;
        overflow: visible;
    }

    .rmc-hero__aside::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        background: var(--rmc-yellow-deep);
        clip-path: polygon(0 36px, 100% 0, 100% 100%, 0 100%);
        pointer-events: none;
    }

    .rmc-hero__aside > * {
        position: relative;
        z-index: 1;
    }

    .rmc-hero__kicker {
        line-height: 1.3;
        overflow: visible;
    }

    .rmc-hero__figure {
        font-size: 96px;
    }

    .rmc-hero__figure-caption {
        font-size: 18px;
        line-height: 22px;
    }

    .rmc-hero__aside .rmc-hero__mobile-actions {
        width: 100%;
    }

    .rmc-how__grid,
    .rmc-join__ways {
        grid-template-columns: 1fr;
    }

    .rmc-how__title,
    .rmc-rules__title {
        font-size: 24px;
    }

    .rmc-card {
        padding: 22px;
    }

    .rmc-card__title {
        font-size: 24px;
    }

    .rmc-join {
        flex-direction: column;
        align-items: stretch;
        padding: 22px;
        gap: 16px;
    }

    .rmc-join__cta {
        width: 100%;
        min-height: 50px;
    }

    .rmc-rules__summary {
        min-height: 58px;
        font-size: 16px;
    }

    .rmc-rules__item {
        grid-template-columns: 26px minmax(0, 1fr);
        gap: 12px;
        font-size: 14px;
        line-height: 22px;
    }

    .rmc-rules__num {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}

@media (max-width: 991px) {
    .rmc-hero__actions--mobile {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        margin-top: 22px;
    }

    .rmc-hero__actions--mobile .rmc-btn {
        width: 100%;
        min-height: 50px;
    }

    .rmc-hero__note--mobile {
        display: block;
        margin-top: 14px;
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 359px) {
    .rmc-hero__figure {
        font-size: 72px;
    }
}

.rmc-page--offer {
    gap: 0;
    max-width: 860px;
    margin: 0 auto;
}

.rmc-offer {
    color: var(--rmc-muted);
    font-size: 15px;
    line-height: 1.65;
}

.rmc-offer__kicker {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rmc-ink);
}

.rmc-offer__title {
    margin: 0 0 12px;
    color: var(--rmc-ink);
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
}

.rmc-offer__lead {
    margin: 0 0 28px;
    font-size: 16px;
    color: var(--rmc-dark);
}

.rmc-offer__l1 {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: rmc-l1;
}

.rmc-offer__l1 > li {
    counter-increment: rmc-l1;
    margin: 0 0 28px;
}

.rmc-offer h2 {
    margin: 0 0 12px;
    color: var(--rmc-ink);
    font-size: 22px;
    line-height: 1.3;
}

.rmc-offer h2::before {
    content: counter(rmc-l1) ". ";
}

.rmc-offer ol ol {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: rmc-l2;
}

.rmc-offer ol ol > li {
    counter-increment: rmc-l2;
    margin: 0 0 10px;
    padding-left: 2.4em;
    position: relative;
}

.rmc-offer ol ol > li::before {
    content: counter(rmc-l1) "." counter(rmc-l2) ".";
    position: absolute;
    left: 0;
    color: var(--rmc-ink);
    font-weight: 700;
    font-size: 13px;
}

.rmc-offer ol ol ol {
    counter-reset: rmc-l3;
    margin-top: 8px;
}

.rmc-offer ol ol ol > li {
    counter-increment: rmc-l3;
    padding-left: 3em;
}

.rmc-offer ol ol ol > li::before {
    content: counter(rmc-l1) "." counter(rmc-l2) "." counter(rmc-l3) ".";
}

.rmc-offer ul {
    margin: 8px 0;
    padding-left: 2.4em;
}

.rmc-offer ul > li {
    margin: 0 0 8px;
    padding-left: 0;
    list-style: disc;
}

.rmc-offer a {
    text-decoration: underline;
    text-decoration-color: var(--rmc-yellow);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.rmc-offer a:hover,
.rmc-offer a:focus-visible {
    color: #000;
    text-decoration-color: var(--rmc-ink);
}

@media (max-width: 991px) {
    .rmc-offer__title {
        font-size: 26px;
    }

    .rmc-offer h2 {
        font-size: 20px;
    }
}
