/* Alpha Race Rivals */

/* Есть только начертание Druk Wide Medium — используем его для всех весов, чтобы браузер не синтезировал жирное. */
@font-face {
    font-family: "Druk Wide";
    src: url("../fonts/DrukWide-Medium.woff2") format("woff2");
    font-weight: 500 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --rv-red: #ff1400;
    --rv-purple: #7000ff;
    --rv-gray: #a0a0a0;
    --rv-dark: #222;
    --rv-darker: #151515;
    --rv-border: #646464;
    --rv-radius: 21.5px;
    --rv-gutter: 40px;
    --rv-font: "Montserrat", Arial, sans-serif;
    --rv-font-display: "Druk Wide", "Montserrat", Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 115px;
    -webkit-text-size-adjust: 100%;
}

.rv-body {
    margin: 0;
    background: var(--rv-dark);
    color: #fff;
    font: 400 16px/1.5 var(--rv-font);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* :where — чтобы сброс не перебивал отступы, заданные классами блоков. */
:where(.rv-body) :where(h1, h2, h3, h4, p, ul, ol) {
    margin: 0;
}

:where(.rv-body) :where(ul, ol) {
    padding: 0;
}

.rv-body ul {
    list-style: none;
}

.rv-body img {
    max-width: 100%;
    height: auto;
}

.rv-body a {
    color: inherit;
}

/* Сброс глобальных правил из «Дополнительных стилей» сайта (::marker, table, td, скроллбар). */
.rv-body ::marker {
    color: inherit;
}

.rv-only-mobile {
    display: none;
}

/* Кнопки */

.rv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 30px;
    border: 1px solid transparent;
    border-radius: 100px;
    font: 500 16px/1.5 var(--rv-font);
    color: #fff;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s;
}

.rv-btn--red {
    background: var(--rv-red);
}

.rv-btn--red:hover {
    background: #d91100;
}

.rv-btn--ghost {
    border-color: #939393;
    background: rgba(255, 255, 255, .05);
    -webkit-backdrop-filter: blur(6.5px);
    backdrop-filter: blur(6.5px);
}

.rv-btn--ghost:hover {
    border-color: var(--rv-red);
    color: var(--rv-red);
}

.rv-btn--lg {
    width: 300px;
    max-width: 100%;
    height: 56px;
    font-size: 18px;
    line-height: 1.3;
}

.rv-btn:focus-visible,
.rv-body a:focus-visible,
.rv-body button:focus-visible,
.rv-join__input:focus-visible,
.rv-board__scroll:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Hero */

.rv-hero {
    position: relative;
    min-height: 792px;
    padding: 270px var(--rv-gutter) 62px;
    background: var(--rv-darker) url("../images/hero-bg.jpg") center top / auto 792px no-repeat;
    text-align: center;
}

.rv-hero::after {
    content: "";
    position: absolute;
    inset: 40% 0 0;
    background: linear-gradient(to bottom, rgba(21, 21, 21, 0) 0%, rgba(21, 21, 21, .85) 55%, var(--rv-darker) 88%);
    pointer-events: none;
}

/* Шапка закреплена при прокрутке и не шире контейнера секций. */
.rv-header {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: calc(100% - var(--rv-gutter) * 2);
    max-width: 1360px;
    height: 75px;
    margin: 0 auto;
    padding: 0 40px;
    border: 1px solid #c0c0c0;
    border-radius: 20px;
    background: rgba(200, 200, 200, .1);
    -webkit-backdrop-filter: blur(40.65px);
    backdrop-filter: blur(40.65px);
}

.rv-header__logo {
    display: block;
    flex: none;
    line-height: 0;
}

.rv-nav ul {
    display: flex;
    gap: 40px;
}

.rv-nav a {
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s;
}

.rv-nav a:hover {
    color: var(--rv-red);
}

.rv-header__back {
    flex: none;
    min-width: 216px;
    height: 45px;
    padding: 0 21px;
    font-size: 18px;
}

.rv-burger {
    display: none;
    flex: none;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.rv-burger span {
    display: block;
    height: 2px;
    margin: 6px 0;
    border-radius: 1px;
    background: #fff;
    transition: transform .2s, opacity .2s;
}

.rv-burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.rv-burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.rv-burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.rv-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rv-hero__title {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 601px;
    max-width: 100%;
    aspect-ratio: 601 / 245;
    font: 500 60.4px/1 var(--rv-font-display);
    color: var(--rv-red);
    text-transform: uppercase;
    white-space: nowrap;
}

.rv-hero__rivals {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.rv-hero__name {
    position: relative;
    margin-top: -2px;
}

.rv-hero__name img {
    position: absolute;
    right: 100%;
    top: 50%;
    width: 1.33em;
    margin-right: -.12em;
    transform: translateY(-58%);
}

/* В макете текст начинается чуть выше нижнего края контура RIVALS. */
.rv-hero__text {
    max-width: 900px;
    margin-top: -25px;
}

.rv-hero__text p + p {
    margin-top: 0;
}

.rv-hero__cta {
    width: 195px;
    margin-top: 32px;
}

/* Бегущая строка */

.rv-ticker {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: var(--rv-dark);
}

.rv-ticker__track {
    display: flex;
    width: max-content;
    animation: rv-ticker var(--rv-ticker-duration, 40s) linear infinite;
}

.rv-ticker__group {
    display: flex;
    flex: none;
    align-items: center;
    gap: 30px;
    height: 58px;
    padding-right: 30px;
}

.rv-ticker__item {
    font: italic 700 16px/1.25 var(--rv-font-display);
    color: #f3f3f3;
    text-transform: uppercase;
    white-space: nowrap;
}

.rv-ticker__star {
    flex: none;
    width: 46px;
    height: 26px;
}

@keyframes rv-ticker {
    to {
        transform: translateX(-50%);
    }
}

/* Основная часть */

.rv-main {
    position: relative;
    padding: 63px 0 100px;
    background: var(--rv-dark);
}

/* Фон из макета — фрейм Back (текстура + маски фракций одной картинкой, 2713×2706) в натуральную величину,
   по центру и на всю ширину страницы. Затемнение уже есть в самой картинке (экспорт дизайнера).
   Фон прокручивается вместе со страницей и не прилипает: ниже него (Terms) — серый фон, как в Figma. */
.rv-bg {
    position: absolute;
    inset: 0;
    overflow: clip;
    pointer-events: none;
}

/* Размытая тёмная полоса на стыке hero и основной части (Rectangle 1795851709 в макете).
   В макете она #151515 и сверху её ещё притемняет вуаль (~30%), отсюда #0f0f0f. */
.rv-bg::after {
    content: "";
    position: absolute;
    top: -160px;
    left: 50%;
    width: 1718px;
    height: 301px;
    background: #0f0f0f;
    filter: blur(25px);
    transform: translateX(-50%);
}

.rv-bg__inner {
    height: 2706px;
    margin-top: -337px;
    background: url("../images/bg-rivals.webp") center top / 2713px auto no-repeat;
}

.rv-container {
    position: static;
    max-width: calc(1360px + var(--rv-gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--rv-gutter);
}

.rv-stack > * + * {
    margin-top: 65px;
}

.rv-stack > .rv-cta {
    margin-top: 40px;
}

.rv-panel {
    position: relative;
    z-index: 1;
    padding: 40px;
    border: 1px solid var(--rv-border);
    border-radius: var(--rv-radius);
    background: rgba(34, 34, 34, .6);
}

.rv-panel--plain {
    border-color: transparent;
}

.rv-panel--glass {
    background: rgba(34, 34, 34, .21);
    -webkit-backdrop-filter: blur(5.65px);
    backdrop-filter: blur(5.65px);
}

.rv-title {
    font: 500 32px/1.2 var(--rv-font-display);
    text-align: center;
    text-transform: uppercase;
}

.rv-title--sm {
    font-size: 24px;
}

.rv-subtitle {
    text-align: center;
}

.rv-heading {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rv-cta {
    position: relative;
    z-index: 1;
    display: flex;
    margin-left: auto;
    margin-right: auto;
}

/* Выбор фракции */

.rv-factions {
    padding-top: 28px;
    padding-bottom: 28px;
}

.rv-join {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.rv-factions__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 38px;
}

.rv-faction {
    --rv-faction-color: var(--rv-red);
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 21px;
    border: 1px solid var(--rv-gray);
    border-radius: 21px;
    color: var(--rv-gray);
    cursor: pointer;
    transition: border-color .2s, color .2s;
}

.rv-faction--wolves {
    --rv-faction-color: var(--rv-purple);
    flex-direction: row-reverse;
    text-align: right;
}

.rv-faction.is-selected,
.rv-faction:has(.rv-faction__input:checked) {
    border-color: var(--rv-faction-color);
    color: var(--rv-faction-color);
}

.rv-faction__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rv-faction__input:focus-visible ~ .rv-faction__radio {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.rv-faction__radio {
    flex: none;
    align-self: flex-start;
    width: 29px;
    height: 29px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: currentColor;
    box-shadow: inset 0 0 0 3px var(--rv-dark);
    transition: background-color .2s;
}

.rv-faction__mask {
    position: relative;
    flex: none;
    width: 170px;
    height: 230px;
}

.rv-faction__mask-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity .2s;
}

.rv-faction__mask-img--active,
.rv-faction.is-selected .rv-faction__mask-img--inactive,
.rv-faction:has(.rv-faction__input:checked) .rv-faction__mask-img--inactive {
    opacity: 0;
}

.rv-faction.is-selected .rv-faction__mask-img--active,
.rv-faction:has(.rv-faction__input:checked) .rv-faction__mask-img--active {
    opacity: 1;
}

/* Наведение подсвечивает карточку так же, как выбор. Только для мыши (на тач-экранах hover «залипает»)
   и не во время отправки формы. */
@media (hover: hover) {
    .rv-join:not(.is-loading) .rv-faction:hover {
        border-color: var(--rv-faction-color);
        color: var(--rv-faction-color);
    }

    .rv-join:not(.is-loading) .rv-faction:hover .rv-faction__mask-img--inactive {
        opacity: 0;
    }

    .rv-join:not(.is-loading) .rv-faction:hover .rv-faction__mask-img--active {
        opacity: 1;
    }
}

.rv-faction__info {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    margin-left: -6px;
}

.rv-faction--wolves .rv-faction__info {
    margin: 0 -6px 0 0;
}

.rv-faction__name {
    font: 500 33.8px/1 var(--rv-font-display);
    text-transform: uppercase;
}

.rv-faction__tagline {
    font-size: 17px;
    color: #fff;
}

.rv-faction__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 21px;
}

.rv-faction--wolves .rv-faction__tags {
    justify-content: flex-end;
}

.rv-faction__tag {
    padding: 5px 14px;
    border: 1px solid currentColor;
    border-radius: 100px;
    font-size: 17px;
    line-height: 1.5;
    text-transform: uppercase;
}

.rv-join__box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 1px solid var(--rv-border);
    border-radius: 20px;
}

.rv-join__about {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.rv-join__heading {
    font: 400 16px/1.5 var(--rv-font);
    text-transform: uppercase;
}

.rv-join__form {
    display: flex;
    flex: none;
    flex-direction: column;
    gap: 10px;
    width: 592px;
    padding-left: 20px;
    border-left: 1px solid var(--rv-border);
}

.rv-join__note {
    font-size: 12px;
    opacity: .5;
}

.rv-join__row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rv-join__trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.rv-join__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.rv-join__input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 20px;
    border: 1px solid #817f7f;
    border-radius: 25px;
    background: #f2f2f2;
    font: 400 16px/1.5 var(--rv-font);
    color: var(--rv-dark);
}

.rv-join__input::placeholder {
    color: #817f7f;
    opacity: 1;
}

.rv-join__input.is-invalid {
    border-color: var(--rv-red);
}

.rv-join__submit {
    position: relative;
    flex: none;
    width: 202px;
}

/* Отправка формы: спиннер вместо текста кнопки (ширина не меняется), поля заблокированы. */
.rv-join.is-loading .rv-join__submit {
    border-color: #939393;
    color: #fff;
    cursor: progress;
}

.rv-join.is-loading .rv-join__submit-text {
    visibility: hidden;
}

.rv-join.is-loading .rv-join__submit::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: rv-spin .7s linear infinite;
}

.rv-join.is-loading .rv-join__input {
    opacity: .6;
    cursor: progress;
}

.rv-join.is-loading .rv-faction {
    cursor: progress;
}

@keyframes rv-spin {
    to {
        transform: rotate(360deg);
    }
}

.rv-join__error {
    font-size: 12px;
    color: var(--rv-red);
}

.rv-join__selected {
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

.rv-join__dot {
    flex: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--rv-red);
    transition: background-color .2s;
}

.rv-join[data-faction="wolves"] .rv-join__dot {
    background: var(--rv-purple);
}

/* Шаги */

.rv-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rv-steps__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.rv-step {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 265px;
    padding: 20px;
    border: 1px solid var(--rv-border);
    border-radius: var(--rv-radius);
    background: rgba(34, 34, 34, .21);
    -webkit-backdrop-filter: blur(13.9px);
    backdrop-filter: blur(13.9px);
}

.rv-step__number {
    font-size: 21px;
    font-weight: 600;
}

.rv-step__toggle {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    text-align: left;
    cursor: default;
}

.rv-step__title {
    font: 700 16px/1.25 var(--rv-font-display);
    text-transform: uppercase;
}

.rv-step__chevron {
    display: none;
}

.rv-step__description {
    margin-top: auto;
}

.rv-step__description p + p {
    margin-top: 0;
}

.rv-step__description a {
    color: var(--rv-red);
}

/* Призовой фонд */

.rv-prize {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
}

/* Красное и фиолетовое свечение за краями заголовка. */
.rv-prize::before,
.rv-prize::after {
    content: "";
    position: absolute;
    top: 72px;
    width: 47px;
    height: 47px;
    border-radius: 50%;
    background: var(--rv-red);
    filter: blur(29.4px);
    pointer-events: none;
}

.rv-prize::before {
    left: 71px;
}

.rv-prize::after {
    right: 77px;
    background: var(--rv-purple);
}

.rv-prize__head {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.rv-prize__title {
    font: italic 700 clamp(28px, 4.85vw, 72px)/1.2 var(--rv-font-display);
    text-transform: uppercase;
}

.rv-prize__label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    line-height: 1.2;
    text-transform: uppercase;
}

.rv-prize__label::before,
.rv-prize__label::after {
    content: "";
    flex: none;
    width: 107px;
    height: 2px;
    border-radius: 1px;
    background: var(--rv-red);
}

.rv-prize__label::after {
    background: var(--rv-purple);
}

.rv-prize__label span {
    width: 294px;
}

.rv-prize__text {
    line-height: 1.2;
}

/* The race doesn't stand still */

.rv-boosts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.rv-boosts__list {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.rv-boost {
    --rv-boost-line: linear-gradient(to right, var(--rv-red), #6115fa 80.8%);
    display: flex;
    flex: 0 1 409px;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    min-height: 265px;
    padding: 20px;
    border: 1px solid var(--rv-border);
    border-radius: var(--rv-radius);
    background: rgba(34, 34, 34, .21);
    -webkit-backdrop-filter: blur(13.9px);
    backdrop-filter: blur(13.9px);
}

.rv-boost:first-child {
    --rv-boost-line: var(--rv-red);
}

.rv-boost:last-child:not(:first-child) {
    --rv-boost-line: var(--rv-purple);
}

.rv-boost__head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 600;
    color: #838487;
}

.rv-boost__head img {
    flex: none;
    width: 60px;
    height: 60px;
}

.rv-boost__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
}

.rv-boost__body::before {
    content: "";
    height: 2px;
    border-radius: 1px;
    background: var(--rv-boost-line);
}

.rv-boost__title {
    font: 700 16px/1.25 var(--rv-font-display);
    text-transform: uppercase;
}

/* Очки и бренды */

.rv-points {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.rv-points .rv-title {
    margin-bottom: 14px;
}

.rv-points__brands {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
}

.rv-brand {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 264px;
    height: 169px;
    padding: 40px;
    border: 1px solid #979797;
    border-radius: 20px;
    background: #fff;
}

.rv-brand__label {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 10px;
    border-radius: 62px;
    background: linear-gradient(to bottom, var(--rv-red), #aa002d);
    font-size: 8px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    text-transform: uppercase;
    white-space: nowrap;
}

.rv-brand__name {
    width: 170px;
    font: 500 25.5px/1 var(--rv-font-display);
    color: #000;
    text-align: center;
    text-transform: uppercase;
}

.rv-brand__logo {
    display: block;
    max-width: 184px;
    max-height: 54px;
    width: auto;
    object-fit: contain;
}

.rv-points__text {
    font-size: 16px;
    text-align: center;
}

.rv-points__text p + p {
    margin-top: 10px;
}

.rv-points__text strong,
.rv-points__text b {
    font-weight: 600;
}

/* Красные вставки (названия брендов) в макете полужирные и без подчёркивания. */
.rv-points__text a,
.rv-points__text span[style*="color"] {
    font-weight: 600;
    color: var(--rv-red);
    text-decoration: none;
}

.rv-points__text a:hover {
    text-decoration: underline;
}

/* Лидерборд */

.rv-leaders {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 58px;
    padding: 60px 40px 48px;
}

.rv-leaders__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.rv-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.rv-timer__label {
    font-size: 21px;
    text-transform: uppercase;
}

.rv-timer--display {
    gap: 20px;
}

.rv-timer--display .rv-timer__label {
    font: 500 24px/1.2 var(--rv-font-display);
}

.rv-timer__grid {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.rv-timer__cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 72px;
}

.rv-timer__value,
.rv-timer__sep {
    font: 500 30px/1.2 var(--rv-font-display);
    color: var(--rv-red);
    letter-spacing: .09em;
    font-variant-numeric: tabular-nums;
}

.rv-timer__value {
    margin-right: -.09em;
}

.rv-timer__unit {
    margin-top: -2px;
    font-size: 14px;
    text-transform: uppercase;
}

.rv-board {
    width: 100%;
    max-width: 1262px;
    padding: 26px 22px 0 52px;
    border-radius: 20px;
    background: #fff;
    color: #000;
}

.rv-board__title {
    padding-right: 30px;
    font: 500 24px/1.2 var(--rv-font-display);
    color: var(--rv-dark);
    text-align: center;
    text-transform: uppercase;
}

.rv-board__scroll {
    max-height: 560px;
    margin-top: 14px;
    padding-right: 24px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d7d7d7 transparent;
}

.rv-board__scroll::-webkit-scrollbar {
    width: 6px;
}

.rv-board__scroll::-webkit-scrollbar-track {
    background: transparent;
}

.rv-board__scroll::-webkit-scrollbar-thumb,
.rv-board__scroll::-webkit-scrollbar-thumb:hover {
    border-radius: 3px;
    background: #d7d7d7;
}

.rv-board__table {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    font-size: 16px;
    line-height: 1.25;
    letter-spacing: .04em;
}

.rv-board__table td {
    height: 56px;
    padding: 0 17px;
    border: 0;
    border-bottom: 1px solid #d7d7d7;
    vertical-align: middle;
}

.rv-board__table tr:last-child td {
    border-bottom: 0;
}

.rv-board__place {
    width: 27%;
}

.rv-board__aff {
    width: 28%;
    white-space: nowrap;
}

.rv-board__aff img {
    width: 21px;
    height: 30px;
    margin-right: 10px;
    vertical-align: middle;
}

.rv-board__points {
    white-space: nowrap;
}

.rv-board__prize {
    text-align: right;
}

.rv-board__prize--highlighted {
    color: var(--rv-red);
}

/* Лидерборд фракций */

.rv-icon {
    display: inline-block;
    flex: none;
    width: 24px;
    height: 24px;
    background: currentColor;
    -webkit-mask: center / contain no-repeat;
    mask: center / contain no-repeat;
}

.rv-icon--lightning {
    -webkit-mask-image: url("../images/icon-lightning.svg");
    mask-image: url("../images/icon-lightning.svg");
}

.rv-icon--checkpoint {
    width: 36px;
    height: 36px;
    -webkit-mask-image: url("../images/icon-checkpoint.svg");
    mask-image: url("../images/icon-checkpoint.svg");
}

.rv-fboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px 49px 44px;
    color: var(--rv-dark);
}

.rv-fboard .rv-board__title {
    padding: 0;
}

.rv-fboard__subtitle {
    margin-top: 12px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: .04em;
    text-align: center;
    text-transform: uppercase;
}

.rv-fboard__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.rv-fcard {
    --rv-faction-color: var(--rv-red);
    --rv-faction-tint: #fef8f8;
    --rv-faction-border: #ffcfcf;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--rv-faction-border);
    border-radius: 20px;
    background: #fff;
}

.rv-fcard--wolves {
    --rv-faction-color: var(--rv-purple);
    --rv-faction-tint: #f8f3fd;
    --rv-faction-border: #e1cbff;
}

.rv-fcard__head {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 34px 21px 24px 48px;
    background: var(--rv-faction-tint);
}

.rv-fcard__icon {
    flex: none;
    width: 95px;
    height: 135px;
}

.rv-fcard__info {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    color: var(--rv-faction-color);
}

.rv-fcard__name {
    font: 500 32px/1 var(--rv-font-display);
    text-transform: uppercase;
}

.rv-fcard__points {
    margin-top: 10px;
    font: 500 24px/1.2 var(--rv-font-display);
    white-space: nowrap;
}

.rv-fcard__bonus {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 56px;
    margin-top: 16px;
    padding: 10px 20px;
    border: 1px solid #8c8c8c;
    border-radius: 20px;
    background: #fff;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: .09em;
    color: #8c8c8c;
    text-transform: uppercase;
    white-space: nowrap;
}

.rv-fcard__bonus.is-active {
    border-color: var(--rv-faction-color);
    color: var(--rv-faction-color);
}

.rv-fcard__bonus-name,
.rv-fcard__bonus-state {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rv-fcard__bonus-dot {
    flex: none;
    width: 15px;
    height: 15px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
}

.rv-fcard__bonus.is-active .rv-fcard__bonus-dot {
    background: currentColor;
    box-shadow: inset 0 0 0 2.5px #fff;
}

.rv-fcard__leader {
    position: absolute;
    top: 34px;
    right: 21px;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 37px;
    padding: 0 10px;
    border-radius: 100px;
    background: var(--rv-faction-color);
    letter-spacing: .04em;
    color: #fff;
}

.rv-fcard__leader img {
    width: 27px;
    height: 27px;
}

.rv-fcard__scroll.rv-board__scroll {
    max-height: 180px;
    margin: 0 14px 0 30px;
    padding: 6px 16px 0 0;
}

.rv-body .rv-fcard__list {
    list-style: none;
}

.rv-fcard__row {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 12px 0 16px;
    border-bottom: 1px solid #d7d7d7;
    line-height: 1.25;
    letter-spacing: .04em;
}

.rv-fcard__row:last-child {
    border-bottom: 0;
}

.rv-fcard__rank {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 5px;
    min-height: 30px;
    padding: 3px 20px;
    border-radius: 100px;
    background: var(--rv-faction-color);
    color: #fff;
}

.rv-fcard__rank img {
    width: 24px;
    height: 24px;
    margin-left: -10px;
}

.rv-fcard__aff {
    text-align: center;
}

.rv-checkpoint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 45px;
    min-height: 56px;
    padding: 8px 20px;
    border-radius: 20px;
    background: #f0f1f3;
    color: #5f5f5f;
}

.rv-checkpoint__name {
    display: flex;
    align-items: center;
    gap: 28px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.rv-checkpoint__time {
    padding: 4px 18px;
    border: solid #9b9b9b;
    border-width: 0 2px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .09em;
    white-space: nowrap;
}

.rv-checkpoint__note {
    font-size: 14px;
    letter-spacing: .09em;
    color: #8c8c8c;
}

.rv-chart__head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
}

.rv-chart__title {
    margin: 0;
    font: 600 16px/1.25 var(--rv-font);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.rv-body .rv-chart__legend {
    position: absolute;
    top: 50%;
    right: 0;
    display: flex;
    gap: 20px;
    transform: translateY(-50%);
}

.rv-chart__legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.rv-chart__legend-item::before {
    content: "";
    width: 34px;
    height: 2px;
    background: var(--rv-red);
}

.rv-chart__legend-item--wolves::before {
    background: var(--rv-purple);
}

.rv-chart__body {
    position: relative;
    height: 142px;
    margin: 24px 0 26px 46px;
}

.rv-chart__grid {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: #e3e3e3;
}

.rv-chart__grid:first-child {
    height: 2px;
    background: #c9c9c9;
}

.rv-chart__tick {
    position: absolute;
    right: 100%;
    top: 50%;
    margin-right: 14px;
    font-size: 11px;
    line-height: 1;
    color: #5f5f5f;
    transform: translateY(-50%);
}

.rv-chart__plot {
    position: absolute;
    inset: 0 16% 0 0;
}

.rv-chart__lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.rv-chart__line {
    fill: none;
    stroke: var(--rv-red);
    stroke-width: 2;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.rv-chart__line--wolves {
    stroke: var(--rv-purple);
}

.rv-chart__x {
    position: absolute;
    top: 100%;
    margin-top: 10px;
    font-size: 11px;
    line-height: 1;
    letter-spacing: .04em;
    color: #5f5f5f;
    text-transform: uppercase;
    white-space: nowrap;
    transform: translateX(-50%);
}

.rv-chart__x:first-of-type {
    transform: none;
}

.rv-chart__dot {
    position: absolute;
    width: 12px;
    height: 12px;
    margin: 0 0 -6px -6px;
    border-radius: 50%;
    background: var(--rv-red);
    color: var(--rv-red);
}

.rv-chart__dot--wolves {
    background: var(--rv-purple);
    color: var(--rv-purple);
}

.rv-chart__dot--last {
    box-shadow: 0 0 0 6px color-mix(in srgb, currentColor 25%, transparent);
}

.rv-chart__value {
    position: absolute;
    left: 100%;
    top: 50%;
    margin-left: 14px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transform: translateY(-50%);
}

/* Подписи последних точек разводим по вертикали, когда линии сходятся. */
.rv-chart__value--up {
    transform: translateY(-115%);
}

.rv-chart__value--down {
    transform: translateY(15%);
}

.rv-chart__flag {
    position: absolute;
    width: 0;
    height: 28px;
    margin-bottom: 8px;
    border-left: 2px dashed var(--rv-red);
    color: var(--rv-red);
}

.rv-chart__flag--wolves {
    border-left-color: var(--rv-purple);
    color: var(--rv-purple);
}

.rv-chart__flag-label {
    position: absolute;
    bottom: 100%;
    left: -1px;
    padding: 5px 10px;
    border-radius: 100px;
    background: color-mix(in srgb, currentColor 14%, #fff);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
    transform: translateX(-50%);
}

.rv-fboard__note {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 40px 14px 70px;
    border-radius: 20px;
    background: #f0f1f3;
    line-height: 1.25;
    letter-spacing: .09em;
    color: #5f5f5f;
}

.rv-fboard__note img {
    flex: none;
    width: 24px;
    height: 24px;
}

.rv-fboard__note strong {
    font-weight: 600;
}

/* Terms */

.rv-terms {
    position: relative;
    z-index: 1;
    max-width: calc(1114px + var(--rv-gutter) * 2);
    margin: 70px auto 0;
    padding: 0 var(--rv-gutter);
}

.rv-terms__title {
    font: 500 32px/1.2 var(--rv-font-display);
    text-align: center;
}

.rv-terms__text {
    margin-top: 40px;
    line-height: 1.25;
    color: #e0e0e0;
}

.rv-body .rv-terms__text ol,
.rv-body .rv-terms__text ul {
    padding-left: 32px;
}

.rv-body .rv-terms__text ul {
    list-style: disc;
}

.rv-terms__text li + li,
.rv-terms__text p + p,
.rv-terms__text li > ol,
.rv-terms__text li > ul,
.rv-terms__text li > p,
.rv-terms__text ol + p,
.rv-terms__text p + ol {
    margin-top: 18px;
}

.rv-terms__text li {
    padding-left: 4px;
}

/* Нумерация с учётом вложенности: 1., 2.1., 2.1.1. Номер висит слева от текста. */
.rv-body .rv-terms__text ol {
    list-style: none;
    counter-reset: rv-terms;
}

.rv-terms__text ol > li {
    position: relative;
    counter-increment: rv-terms;
}

.rv-terms__text ol > li::before {
    content: counters(rv-terms, ".") ".";
    position: absolute;
    right: 100%;
    margin-right: 6px;
    white-space: nowrap;
}

.rv-body .rv-terms__text li ol {
    padding-left: 2.6em;
}

.rv-terms__text h3,
.rv-terms__text h4 {
    margin: 32px 0 14px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
}

/* Таблицы: !important перебивает ширину из вставки (Google Docs/Word) и глобальные стили table/td сайта. */
.rv-terms__text table {
    width: 100% !important;
    height: auto !important;
    margin: 18px 0;
    border: 0;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.35;
}

.rv-terms__text th,
.rv-terms__text td {
    width: auto !important;
    height: auto !important;
    padding: 10px 14px;
    border: 1px solid var(--rv-border);
    text-align: center;
    vertical-align: middle;
}

/* Первая строка — заголовок, даже если в редакторе это обычные ячейки. */
.rv-terms__text th,
.rv-terms__text tr:first-child td {
    background: rgba(255, 255, 255, .06);
    font-weight: 600;
    color: #fff;
}

.rv-terms__text td p {
    margin: 0;
}

/* Модалки регистрации */

.rv-modal {
    width: min(494px, calc(100% - 40px));
    max-width: none;
    max-height: calc(100% - 40px);
    margin: auto;
    padding: 40px;
    border: 0;
    border-radius: var(--rv-radius);
    background: rgba(34, 34, 34, .6);
    color: #fff;
    text-align: center;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

/* Пока модалка открыта, страница не прокручивается; место под скроллбар сохраняем, чтобы вёрстка не прыгала. */
html:has(.rv-modal[open]) {
    overflow: hidden;
    scrollbar-gutter: stable;
}

/* При открытии фокус получает само окно (autofocus), рамка ему не нужна. */
.rv-modal:focus {
    outline: none;
}

.rv-modal[open] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.rv-modal::backdrop {
    background: rgba(0, 0, 0, .6);
}

.rv-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.rv-modal__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.rv-modal__icons {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 10px;
}

.rv-modal__icon {
    width: 48px;
    height: 68px;
}

/* В «You're in!» показываем только маску выбранной фракции. */
.rv-modal[data-faction="foxes"] .rv-modal__icon[data-faction="wolves"],
.rv-modal[data-faction="wolves"] .rv-modal__icon[data-faction="foxes"] {
    display: none;
}

.rv-modal__title {
    font: 500 32px/1.2 var(--rv-font-display);
    text-transform: uppercase;
}

.rv-modal__note {
    max-width: 368px;
    font-size: 14px;
    color: #9e9e9e;
}

.rv-modal__btn {
    width: 280px;
    max-width: 100%;
    border-color: #fff;
}

/* Планшет */

@media (max-width: 1280px) {
    .rv-header {
        gap: 24px;
        padding: 0 24px;
    }

    .rv-nav ul {
        gap: 24px;
    }

    .rv-nav a,
    .rv-header__back {
        font-size: 16px;
    }

    .rv-header__back {
        min-width: 0;
    }

    .rv-prize::before {
        left: 30px;
    }

    .rv-prize::after {
        right: 30px;
    }

    .rv-boosts__list {
        flex-wrap: wrap;
    }

    .rv-boost {
        flex: 1 1 260px;
        max-width: 409px;
    }

    .rv-factions__cards {
        gap: 20px;
    }

    .rv-faction__mask {
        width: 120px;
        height: 163px;
    }

    .rv-faction__name {
        font-size: 28px;
    }

    .rv-faction__tag {
        padding: 4px 14px;
        font-size: 14px;
    }

    .rv-join__form {
        width: 46%;
    }

    .rv-join__submit {
        width: 140px;
    }

    .rv-steps__list {
        grid-template-columns: repeat(2, 1fr);
    }

    .rv-step {
        min-height: 220px;
    }
    .rv-fboard {
        padding-left: 24px;
        padding-right: 24px;
    }

    .rv-fcard__head {
        padding-left: 24px;
    }

    .rv-fcard__bonus-text {
        display: none;
    }

    .rv-checkpoint {
        gap: 24px;
    }

    .rv-checkpoint__name {
        gap: 14px;
    }
}

@media (max-width: 1023px) {
    .rv-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        display: none;
        padding: 20px;
        border: 1px solid rgba(255, 255, 255, .35);
        border-radius: 20px;
        background: rgba(34, 34, 34, .92);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }

    .rv-nav.is-open {
        display: block;
    }

    .rv-nav ul {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }

    .rv-header__logo {
        margin-right: auto;
    }

    .rv-burger {
        display: block;
    }

    .rv-factions__cards {
        grid-template-columns: 1fr;
    }

    .rv-faction--wolves {
        flex-direction: row;
        text-align: left;
    }

    .rv-faction--wolves .rv-faction__tags {
        justify-content: flex-start;
    }

    .rv-faction__radio {
        order: 3;
    }

    .rv-join__box {
        flex-direction: column;
        align-items: stretch;
    }

    .rv-join__form {
        width: auto;
        padding: 20px 0 0;
        border-top: 1px solid var(--rv-border);
        border-left: 0;
    }


    .rv-fboard__cards {
        grid-template-columns: 1fr;
    }

    .rv-fcard__bonus-text {
        display: inline;
    }

    .rv-checkpoint {
        flex-direction: column;
        gap: 10px;
        padding: 16px 20px;
        text-align: center;
    }

    .rv-checkpoint__note {
        order: -1;
    }

    .rv-checkpoint__time {
        border: 0;
    }
}

/* Мобильная версия */

@media (max-width: 767px) {
    :root {
        --rv-gutter: 20px;
    }

    .rv-body {
        font-size: 12px;
    }

    .rv-only-desktop {
        display: none;
    }

    .rv-only-mobile {
        display: inline;
    }

    .rv-btn--lg {
        width: 270px;
        height: 44px;
        font-size: 16px;
    }

    html {
        scroll-padding-top: 90px;
    }

    .rv-hero {
        min-height: 578px;
        padding: 185px var(--rv-gutter) 40px;
        background-size: auto 578px;
    }

    .rv-header {
        top: 10px;
        gap: 12px;
        width: calc(100% - 20px);
        height: 70px;
        padding: 0 20px;
    }

    .rv-header__logo img {
        width: 86px;
    }

    .rv-header__back {
        height: 40px;
        padding: 0 18px;
        font-size: 16px;
    }

    .rv-hero__title {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        width: 281px;
        aspect-ratio: auto;
        height: 110px;
        font-size: 37px;
        line-height: .98;
        white-space: normal;
    }

    /* Контур RIVALS прижат к верху блока, ALPHA RACE — чуть ниже его верхнего края. */
    .rv-hero__rivals {
        inset: 0 0 auto;
        height: auto;
    }

    .rv-hero__name {
        width: 185px;
        margin: 16px 0 0 49px;
        text-align: left;
    }

    .rv-hero__name img {
        top: 0;
        width: 49px;
        margin-right: -2px;
        transform: translateY(4px);
    }

    .rv-hero__text {
        margin-top: 32px;
    }

    .rv-hero__cta {
        width: 100%;
        max-width: 280px;
        margin-top: 50px;
    }

    .rv-main {
        padding: 60px 0;
    }

    .rv-stack > * + * {
        margin-top: 60px;
    }

    /* Призовой фонд, выбор фракции и шаги в макете идут одной группой с шагом 20px. */
    .rv-stack > .rv-cta,
    .rv-stack > .rv-prize + .rv-factions,
    .rv-stack > .rv-factions + .rv-steps {
        margin-top: 20px;
    }

    .rv-panel {
        padding: 0;
        border: 0;
        border-radius: 0;
        background: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .rv-title,
    .rv-title--sm,
    .rv-terms__title {
        font-size: 21px;
    }

    .rv-subtitle {
        font-size: 16px;
    }

    .rv-prize.rv-panel {
        gap: 20px;
        padding: 30px 20px;
        border-radius: var(--rv-radius);
        background: rgba(34, 34, 34, .6);
    }

    .rv-prize::before {
        top: 15px;
        left: 21px;
    }

    .rv-prize::after {
        top: 20px;
        right: 10px;
    }

    .rv-prize__title {
        font-size: 28px;
    }

    .rv-prize__label {
        gap: 0;
        font-size: 16px;
    }

    .rv-prize__label::before,
    .rv-prize__label::after {
        width: 49px;
    }

    .rv-prize__label span {
        width: 143px;
    }

    .rv-prize__text {
        font-size: 16px;
    }

    .rv-timer--display {
        gap: 10px;
    }

    .rv-timer--display .rv-timer__label {
        font: 400 21px/1.5 var(--rv-font);
    }

    .rv-timer--display .rv-timer__value,
    .rv-timer--display .rv-timer__sep {
        font-size: 21px;
    }

    .rv-join {
        gap: 10px;
        margin-top: 20px;
    }

    .rv-factions__cards {
        gap: 10px;
    }

    .rv-faction {
        gap: 10px;
        padding: 10px;
        border-radius: 10px;
    }

    .rv-faction__radio {
        position: absolute;
        top: 13px;
        right: 13px;
        width: 23px;
        height: 23px;
    }

    .rv-faction__mask {
        width: 65px;
        height: 101px;
    }

    .rv-faction__info,
    .rv-faction--wolves .rv-faction__info {
        margin: 0;
    }

    .rv-faction__name {
        font-size: 21px;
    }

    .rv-faction__tagline {
        margin-top: 5px;
        font-size: 10px;
    }

    .rv-faction__tags {
        gap: 5px;
        margin-top: 12px;
    }

    .rv-faction__tag {
        padding: 0 8px;
        font-size: 8px;
    }

    .rv-join__box {
        gap: 20px;
        padding: 0;
        border: 0;
    }

    .rv-join__about {
        gap: 5px;
        font-size: 12px;
    }

    .rv-join__heading {
        font-size: 12px;
    }

    .rv-join__form {
        gap: 6px;
        padding: 10px 20px 14px;
        border: 1px solid var(--rv-border);
        border-radius: 20px;
        background: rgba(34, 34, 34, .21);
    }

    .rv-join__form .rv-join__heading {
        display: none;
    }

    .rv-join__hint {
        order: 5;
        font-size: 10px;
    }

    .rv-join__note {
        font-size: 10px;
    }

    .rv-join__row {
        flex-direction: column;
        align-items: stretch;
    }

    .rv-join__label {
        position: static;
        width: auto;
        height: auto;
        clip-path: none;
        font-size: 12px;
    }

    .rv-join__input {
        flex: none;
        height: 40px;
        font-size: 14px;
    }

    .rv-join__submit {
        width: 100%;
    }

    .rv-join__error {
        font-size: 10px;
    }

    .rv-join__selected {
        order: 4;
        font-size: 10px;
    }

    .rv-join__dot {
        width: 12px;
        height: 12px;
    }

    .rv-steps__list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .rv-step {
        gap: 20px;
        min-height: 0;
        padding: 20px;
    }

    .rv-step__toggle {
        flex-direction: column;
        align-items: stretch;
        cursor: pointer;
    }

    .rv-step__title {
        font-size: 14px;
    }

    .rv-step__chevron {
        display: block;
        align-self: center;
        width: 18px;
        height: 7px;
        transition: transform .2s;
    }

    .rv-step__toggle[aria-expanded="true"] .rv-step__chevron {
        transform: rotate(180deg);
    }

    .rv-step__description {
        display: none;
        margin-top: -10px;
    }

    .rv-step__description.is-open {
        display: block;
    }

    .rv-boosts .rv-title {
        font-size: 24px;
    }

    .rv-boosts .rv-subtitle {
        font-size: 16px;
    }

    .rv-boosts__list {
        flex-direction: column;
    }

    .rv-boost {
        flex: none;
        max-width: none;
    }

    .rv-boost__text {
        font-size: 14px;
    }

    .rv-points {
        gap: 20px;
        padding: 36px 20px;
        border: 1px solid var(--rv-border);
        border-radius: 20px;
        background: rgba(34, 34, 34, .21);
        -webkit-backdrop-filter: blur(19.5px);
        backdrop-filter: blur(19.5px);
    }

    .rv-points__brands {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .rv-brand {
        width: 100%;
        max-width: 232px;
        height: 148px;
        margin: 0 auto;
    }

    .rv-points__text {
        font-size: 14px;
        line-height: 1.2;
    }

    .rv-points__text a,
    .rv-points__text span[style*="color"] {
        font-weight: 400;
    }

    .rv-points__text p + p {
        margin-top: 18px;
    }

    .rv-leaders {
        gap: 40px;
        padding: 0;
    }

    .rv-leaders__head {
        gap: 24px;
    }

    .rv-timer {
        gap: 4px;
    }

    .rv-timer__grid {
        gap: 2px;
    }

    .rv-timer__cell {
        min-width: 58px;
    }

    .rv-timer__value,
    .rv-timer__sep {
        font-size: 24px;
    }

    .rv-board {
        padding: 24px 6px 0 12px;
    }

    .rv-board__title {
        padding-right: 6px;
        font-size: 21px;
    }

    .rv-board__scroll {
        max-height: 420px;
        margin-top: 24px;
        padding-right: 10px;
    }

    .rv-board__table,
    .rv-board__table tbody {
        display: block;
    }

    .rv-board__table tr {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 4px 10px;
        padding: 10px 8px;
        border-bottom: 1px solid #d7d7d7;
        font-size: 12px;
    }

    .rv-board__table tr:last-child {
        border-bottom: 0;
    }

    .rv-board__table td {
        display: block;
        width: auto;
        height: auto;
        padding: 0;
        border: 0;
    }

    .rv-board__aff,
    .rv-board__prize {
        text-align: right;
    }

    .rv-board__aff img {
        width: 15px;
        height: 21px;
        margin-right: 6px;
    }

    /* На мобильной версии общей белой карточки нет: заголовок на тёмном фоне, блоки — отдельными плашками. */
    .rv-fboard {
        gap: 20px;
        padding: 0;
        border-radius: 0;
        background: none;
        color: #fff;
    }

    .rv-fboard .rv-board__title {
        color: #fff;
    }

    .rv-fboard__subtitle {
        margin-top: 4px;
    }

    .rv-fcard,
    .rv-chart {
        color: var(--rv-dark);
    }

    .rv-chart {
        padding: 16px 10px 10px;
        border-radius: 20px;
        background: #fff;
    }

    .rv-fboard__cards {
        gap: 20px;
    }

    .rv-fcard__head {
        gap: 10px;
        padding: 14px 12px;
    }

    .rv-fcard__icon {
        width: 60px;
        height: 85px;
    }

    .rv-fcard__name {
        font-size: 21px;
    }

    .rv-fcard__points {
        margin-top: 4px;
        font-size: 15px;
    }

    .rv-fcard__bonus {
        align-self: flex-start;
        max-width: 100%;
        min-height: 40px;
        margin-top: 8px;
        padding: 6px 12px;
        font-size: 11px;
        letter-spacing: .06em;
    }

    .rv-fcard__bonus-name {
        gap: 6px;
    }

    .rv-fcard__bonus-text {
        display: none;
    }

    .rv-fcard__bonus .rv-icon {
        width: 16px;
        height: 16px;
    }

    .rv-fcard__leader {
        top: 14px;
        right: 12px;
        justify-content: center;
        top: 10px;
        right: 10px;
        width: 24px;
        height: 24px;
        padding: 0;
    }

    .rv-fcard__leader img {
        width: 14px;
        height: 14px;
    }

    .rv-fcard__leader span {
        display: none;
    }

    .rv-fcard__scroll.rv-board__scroll {
        max-height: 160px;
        margin: 0 4px 0 10px;
        padding: 4px 8px 0 0;
    }

    .rv-fcard__row {
        grid-template-columns: 70px 1fr auto;
        min-height: 52px;
        padding: 0;
        font-size: 12px;
    }

    .rv-fcard__rank {
        min-height: 24px;
        padding: 2px 14px;
        font-size: 10px;
    }

    .rv-fcard__rank img {
        width: 16px;
        height: 16px;
        margin-left: -6px;
    }

    .rv-checkpoint__name {
        flex-direction: column;
        gap: 8px;
        font-size: 14px;
    }

    .rv-checkpoint__note {
        padding-bottom: 12px;
        background: linear-gradient(#9b9b9b, #9b9b9b) center bottom / 40px 2px no-repeat;
        font-size: 12px;
    }

    .rv-checkpoint__time {
        padding: 0;
        font-size: 16px;
    }

    .rv-chart__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .rv-chart__title {
        font-size: 12px;
    }

    .rv-body .rv-chart__legend {
        position: static;
        transform: none;
    }

    .rv-chart__legend-item {
        font-size: 10px;
    }

    .rv-chart__legend-item::before {
        width: 16px;
    }

    .rv-chart__body {
        height: 150px;
        margin: 40px 0 24px 34px;
    }

    .rv-chart__plot {
        right: 78px;
    }

    .rv-chart__tick {
        margin-right: 8px;
        font-size: 9px;
    }

    .rv-chart__x {
        font-size: 9px;
    }

    .rv-chart__dot {
        width: 8px;
        height: 8px;
        margin: 0 0 -4px -4px;
    }

    .rv-chart__dot--last {
        box-shadow: none;
    }

    .rv-chart__value {
        margin-left: 6px;
        font-size: 9px;
    }

    .rv-chart__flag {
        height: 20px;
    }

    .rv-chart__flag-label {
        padding: 4px 8px;
        font-size: 8px;
    }

    .rv-fboard__note {
        gap: 12px;
        padding: 12px 16px;
        font-size: 12px;
    }

    .rv-cta--final {
        display: none;
    }

    .rv-terms {
        margin-top: 60px;
    }

    .rv-modal {
        padding: 30px 20px;
    }

    .rv-modal[open] {
        gap: 24px;
    }

    .rv-modal__title {
        font-size: 21px;
    }

    .rv-modal__text {
        font-size: 14px;
    }

    .rv-modal__note {
        font-size: 12px;
    }

    .rv-terms__text {
        margin-top: 24px;
    }

    .rv-terms__text table {
        display: block;
        overflow-x: auto;
        font-size: 12px;
    }

    .rv-terms__text th,
    .rv-terms__text td {
        min-width: 110px;
        padding: 8px 10px;
    }

    .rv-body .rv-terms__text ol,
    .rv-body .rv-terms__text ul {
        padding-left: 24px;
    }

    .rv-terms__text li + li,
    .rv-terms__text p + p {
        margin-top: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .rv-ticker__track {
        animation: none;
    }

    /* Спиннер — единственный признак, что запрос идёт, поэтому не отключаем, а замедляем. */
    .rv-join.is-loading .rv-join__submit::after {
        animation-duration: 1.6s;
    }
}
