/* =========================================================
   RUSTOFILYA — RULES
   Область действия: .rp-page
   ========================================================= */

.rp-page {
    --rp-bg: #101113;
    --rp-surface: #191b20;
    --rp-surface-raised: #212329;

    --rp-accent: #ff7547;
    --rp-text: #f4f2ee;
    --rp-muted: #96979f;

    --rp-line: rgba(255, 255, 255, 0.09);
    --rp-line-strong: rgba(255, 255, 255, 0.16);
    --rp-accent-rgb: 255, 117, 71;
    --rp-ease: cubic-bezier(.22, 1, .36, 1);

    min-width: 0;
    min-height: 72vh;
    padding: 40px 0 75px;
    background:
            radial-gradient(
                    ellipse at 90% 0,
                    rgba(var(--rp-accent-rgb), 0.045),
                    transparent 48%
            ),
            var(--rp-bg);
    color: var(--rp-text);
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* =========================================================
   БАЗА
   ========================================================= */

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

.rp-page [hidden] {
    display: none !important;
}

.rp-page :is(h1, h2, h3, p) {
    margin: 0;
}

.rp-page :is(h1, h2, h3) {
    font-family: inherit;
    text-wrap: balance;
}

.rp-page a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.rp-page button,
.rp-page input {
    font: inherit;
}

.rp-page button {
    cursor: pointer;
}

.rp-page button:disabled {
    cursor: not-allowed;
}

.rp-page :is(a, button, input):focus-visible,
.rp-page .rp-table-wrap:focus-visible {
    outline: 2px solid var(--rp-accent);
    outline-offset: 5px;
}

.rp-page ::selection {
    background: var(--rp-accent);
    color: var(--rp-bg);
}

/* =========================================================
   ОСНОВНАЯ СЕТКА
   ========================================================= */

.rp-page .rp-layout {
    display: grid;
    grid-template-columns: 235px minmax(0, 1fr);
    align-items: start;
    gap: 28px;
    width: min(1240px, calc(100% - 64px));
    margin-inline: auto;
}

.rp-page .rp-main {
    display: grid;
    min-width: 0;
    align-self: start;
    gap: 28px;
}

/* =========================================================
   БОКОВАЯ ПАНЕЛЬ
   ========================================================= */

.rp-page .rp-sidebar {
    position: static;
    align-self: start;
    min-width: 0;
    margin-top: 0;
    padding: 22px 13px 18px;
    border: 1px solid var(--rp-line);
    border-radius: 18px;
    background:
            linear-gradient(
                    145deg,
                    rgba(255, 255, 255, 0.018),
                    transparent 70%
            ),
            var(--rp-surface);
    box-shadow:
            inset 0 1px rgba(255, 255, 255, 0.025),
            0 15px 40px rgba(0, 0, 0, 0.07);
}

.rp-page .rp-side-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px 23px;
    color: var(--rp-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.rp-page .rp-side-brand > span:first-child {
    display: grid;
    place-items: center;
    width: 42px;
    height: 45px;
    flex-shrink: 0;
    padding-right: 3px;
    border: 1px solid rgba(var(--rp-accent-rgb), 0.3);
    border-radius: 11px;
    background: linear-gradient(
            145deg,
            rgba(var(--rp-accent-rgb), 0.12),
            rgba(var(--rp-accent-rgb), 0.035)
    );
    color: var(--rp-accent);
    box-shadow: inset 0 1px rgba(255, 199, 168, 0.05);
    font-size: 21px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -2px;
}

.rp-page .rp-side-brand small {
    display: block;
    margin-top: 6px;
    color: #7b7f89;
    font-size: 7px;
    font-weight: 400;
    letter-spacing: 1.3px;
    line-height: 1.7;
}

.rp-page .rp-nav-label {
    margin: 8px 10px 12px;
    color: #747984;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.3px;
    line-height: 1.8;
}

.rp-page .rp-sidebar nav {
    display: grid;
    gap: 5px;
}

.rp-page .rp-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #a0a3ad;
    font-size: 11px;
    line-height: 1.7;
    overflow-wrap: anywhere;
    transition:
            background 0.2s,
            color 0.2s,
            border-color 0.2s;
}

.rp-page .rp-sidebar nav a > span {
    flex-shrink: 0;
    color: #777e8c;
    font-family: monospace;
    font-size: 9px;
    letter-spacing: 0.5px;
}

.rp-page .rp-sidebar nav a.is-active,
.rp-page .rp-sidebar nav a[aria-current="location"] {
    border-color: rgba(var(--rp-accent-rgb), 0.2);
    background: linear-gradient(
            100deg,
            rgba(var(--rp-accent-rgb), 0.11),
            rgba(var(--rp-accent-rgb), 0.025)
    );
    color: #ffad88;
}

.rp-page .rp-sidebar nav a.is-active > span {
    color: #e49b79;
}

.rp-page .rp-side-note {
    margin: 24px 8px 0;
    padding-top: 19px;
    border-top: 1px solid var(--rp-line);
}

.rp-page .rp-side-note > span {
    display: block;
    color: #9698a3;
    font-size: 11px;
    line-height: 1.7;
}

.rp-page .rp-side-note > a {
    display: block;
    margin-top: 10px;
    color: #e1a080;
    font-size: 12px;
    line-height: 1.7;
}

.rp-page .rp-side-note > small {
    display: block;
    margin-top: 10px;
    color: #7c7f8c;
    font-size: 10px;
    line-height: 1.85;
}

/* =========================================================
   ГЛАВНЫЙ БЛОК
   ========================================================= */

.rp-page .rp-hero {
    position: relative;
    isolation: isolate;
    padding: 38px 38px 28px;
    overflow: hidden;
    border: 1px solid rgba(var(--rp-accent-rgb), 0.16);
    border-radius: 20px;
    background:
            radial-gradient(
                    ellipse at 100% 0,
                    rgba(var(--rp-accent-rgb), 0.11),
                    transparent 65%
            ),
            linear-gradient(125deg, #222126, #191b20);
    box-shadow:
            inset 0 1px rgba(255, 255, 255, 0.025),
            0 18px 45px rgba(0, 0, 0, 0.07);
}

.rp-page .rp-hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background-image:
            linear-gradient(
                    rgba(255, 255, 255, 0.02) 1px,
                    transparent 1px
            ),
            linear-gradient(
                    90deg,
                    rgba(255, 255, 255, 0.02) 1px,
                    transparent 1px
            );
    background-size: 46px 46px;
    mask-image: linear-gradient(
            90deg,
            transparent 20%,
            #000
    );
    pointer-events: none;
}

.rp-page .rp-watermark {
    position: absolute;
    z-index: -1;
    top: 7px;
    right: 20px;
    color: rgba(255, 168, 125, 0.045);
    font-size: 150px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -10px;
    line-height: 1;
    transform: rotate(-8deg);
    pointer-events: none;
    user-select: none;
}

.rp-page .rp-eyebrow {
    position: relative;
    color: var(--rp-accent);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1.8;
}

.rp-page h1 {
    position: relative;
    margin-top: 17px;
    color: var(--rp-text);
    font-size: clamp(34px, 3.8vw, 51px);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
}

.rp-page h1 > span {
    color: var(--rp-accent);
}

.rp-page .rp-lead {
    position: relative;
    max-width: 640px;
    margin-top: 21px;
    color: #a1a2ab;
    font-size: 14px;
    line-height: 1.9;
}

.rp-page .rp-hero-tags {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 25px;
}

.rp-page .rp-hero-tags > span {
    padding: 7px 10px;
    border: 1px solid rgba(var(--rp-accent-rgb), 0.17);
    border-radius: 7px;
    background: rgba(var(--rp-accent-rgb), 0.025);
    color: #c7a18b;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.7px;
    line-height: 1.7;
}

.rp-page .rp-hero-meta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--rp-line);
    color: #85818e;
    font-size: 10px;
    line-height: 1.8;
}

/* =========================================================
   УВЕДОМЛЕНИЕ О ЧЕРНОВИКЕ
   ========================================================= */

.rp-page .rp-draft {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 18px 20px;
    border: 1px solid rgba(var(--rp-accent-rgb), 0.18);
    border-radius: 12px;
    background: rgba(var(--rp-accent-rgb), 0.035);
}

.rp-page .rp-draft > span {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    border: 1px solid rgba(var(--rp-accent-rgb), 0.25);
    border-radius: 50%;
    background: rgba(var(--rp-accent-rgb), 0.055);
    color: #efab86;
    font-size: 12px;
    line-height: 1;
}

.rp-page .rp-draft p {
    color: #b39a8c;
    font-size: 12px;
    line-height: 1.9;
}

.rp-page .rp-draft strong {
    color: #e0b89f;
    font-weight: 600;
}

/* =========================================================
   ОСНОВНЫЕ ПРИНЦИПЫ
   ========================================================= */

.rp-page .rp-principles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 15px;
}

.rp-page .rp-principles > div {
    min-width: 0;
    padding: 23px;
    border: 1px solid var(--rp-line);
    border-radius: 14px;
    background:
            radial-gradient(
                    ellipse at 100% 0,
                    rgba(var(--rp-accent-rgb), 0.025),
                    transparent 70%
            ),
            var(--rp-surface);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.02);
    transition: border-color 0.25s;
}

.rp-page .rp-principles span {
    display: block;
    color: #cf9271;
    font-family: monospace;
    font-size: 9px;
    letter-spacing: 1px;
    line-height: 1.7;
}

.rp-page .rp-principles strong {
    display: block;
    margin-top: 14px;
    color: #e3dfe3;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
}

.rp-page .rp-principles p {
    margin-top: 8px;
    color: var(--rp-muted);
    font-size: 12px;
    line-height: 1.85;
}

/* =========================================================
   ПОИСК И ИНСТРУМЕНТЫ
   ========================================================= */

.rp-page .rp-tools {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.rp-page .rp-search {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 51px;
    flex: 1 1 240px;
    padding-inline: 15px;
    border: 1px solid var(--rp-line);
    border-radius: 10px;
    background: #17191d;
    box-shadow: inset 0 2px 7px rgba(0, 0, 0, 0.06);
    transition:
            border-color 0.2s,
            box-shadow 0.2s;
}

.rp-page .rp-search > span {
    flex-shrink: 0;
    color: #c88e70;
    font-size: 25px;
    line-height: 1;
}

.rp-page .rp-search input {
    width: 100%;
    min-width: 0;
    padding: 14px 0;
    border: 0;
    background: transparent;
    color: var(--rp-text);
    font-size: 13px;
    line-height: 1.7;
}

.rp-page .rp-search input::placeholder {
    color: #787c89;
    opacity: 1;
}

.rp-page .rp-search input:focus {
    outline: none;
}

.rp-page .rp-search:focus-within {
    border-color: rgba(var(--rp-accent-rgb), 0.6);
    outline: 2px solid var(--rp-accent);
    outline-offset: 3px;
    box-shadow: 0 0 0 5px rgba(var(--rp-accent-rgb), 0.035);
}

.rp-page .rp-tool-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 3px;
    border: 0;
    background: transparent;
    color: #dda080;
    font-size: 11px;
    line-height: 1.7;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s;
}

.rp-page .rp-search-status {
    color: #92919e;
    font-size: 11px;
    line-height: 1.8;
}

.rp-page .rp-search-status:empty {
    display: none;
}

.rp-page .rp-no-results {
    padding: 22px;
    border: 1px dashed rgba(var(--rp-accent-rgb), 0.25);
    border-radius: 12px;
    background: rgba(var(--rp-accent-rgb), 0.02);
    color: #c1a28f;
    font-size: 13px;
    line-height: 1.9;
}

/* =========================================================
   РАЗДЕЛЫ ПРАВИЛ
   ========================================================= */

.rp-page .rp-section {
    min-width: 0;
    scroll-margin-top: 170px;
}

.rp-page .rp-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 5px 0 20px;
}

.rp-page .rp-section-number {
    display: grid;
    place-items: center;
    width: 38px;
    height: 40px;
    flex-shrink: 0;
    border: 1px solid rgba(var(--rp-accent-rgb), 0.2);
    border-radius: 10px;
    background: rgba(var(--rp-accent-rgb), 0.035);
    color: #e1a07b;
    font-family: monospace;
    font-size: 12px;
    line-height: 1;
}

.rp-page .rp-section-heading > div {
    min-width: 0;
}

.rp-page .rp-section-heading h2 {
    color: var(--rp-text);
    font-size: 26px;
    font-weight: 750;
    letter-spacing: -0.8px;
    line-height: 1.3;
}

.rp-page .rp-section-heading p {
    margin-top: 7px;
    color: var(--rp-muted);
    font-size: 12px;
    line-height: 1.85;
}

/* =========================================================
   СПИСОК ПРАВИЛ
   ========================================================= */

.rp-page .rp-rule-list {
    overflow: hidden;
    border: 1px solid var(--rp-line);
    border-radius: 17px;
    background: var(--rp-surface);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.02);
}

.rp-page .rp-rule {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 19px;
    min-width: 0;
    padding: 27px;
    scroll-margin-top: 170px;
    transition: background 0.25s;
}

.rp-page .rp-rule + .rp-rule {
    border-top: 1px solid var(--rp-line);
}

.rp-page .rp-rule:target {
    background: rgba(var(--rp-accent-rgb), 0.06);
    box-shadow: inset 3px 0 var(--rp-accent);
}

.rp-page .rp-rule-number {
    min-width: 27px;
    flex-shrink: 0;
    padding-top: 3px;
    color: #d09271;
    font-family: monospace;
    font-size: 12px;
    line-height: 1.8;
}

.rp-page .rp-rule-body {
    min-width: 0;
    flex: 1;
}

.rp-page .rp-rule-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 13px;
}

.rp-page .rp-rule h3 {
    color: #e6e1e4;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.rp-page .rp-rule p {
    margin-top: 11px;
    color: #a1a1ad;
    font-size: 13px;
    line-height: 1.95;
    overflow-wrap: anywhere;
}

.rp-page .rp-rule p + p {
    margin-top: 12px;
}

.rp-page .rp-tag {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 4px 7px;
    border: 1px solid rgba(var(--rp-accent-rgb), 0.16);
    border-radius: 5px;
    background: rgba(var(--rp-accent-rgb), 0.035);
    color: #dba080;
    font-size: 8px;
    line-height: 1.7;
}

.rp-page .rp-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    flex-shrink: 0;
    padding: 3px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #7f808e;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition:
            color 0.2s,
            background 0.2s,
            border-color 0.2s;
}

/* =========================================================
   ТАБЛИЦА
   ========================================================= */

.rp-page .rp-table-wrap {
    min-width: 0;
    overflow-x: auto;
    border: 1px solid var(--rp-line);
    border-radius: 16px;
    background: var(--rp-surface);
    scrollbar-width: thin;
    scrollbar-color: #614239 #191b20;
    -webkit-overflow-scrolling: touch;
}

.rp-page .rp-table {
    width: 100%;
    min-width: 630px;
    border-collapse: collapse;
    text-align: left;
}

.rp-page .rp-table caption {
    padding: 17px 23px;
    border-bottom: 1px solid var(--rp-line);
    background: rgba(var(--rp-accent-rgb), 0.035);
    color: #c3a18d;
    font-size: 11px;
    line-height: 1.8;
    text-align: left;
}

.rp-page .rp-table th {
    padding: 19px 23px;
    background: rgba(255, 255, 255, 0.018);
    color: #d5b6a3;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.8;
    vertical-align: top;
}

.rp-page .rp-table td {
    padding: 21px 23px;
    border-top: 1px solid var(--rp-line);
    color: #a1a1ad;
    font-size: 12px;
    line-height: 1.9;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.rp-page .rp-table td:first-child {
    width: 27%;
    color: #ddd9e0;
}

.rp-page .rp-table td:nth-child(2) {
    width: 33%;
    color: #e3aa87;
}

/* =========================================================
   ПОЯСНЕНИЕ ПОД ТАБЛИЦЕЙ
   ========================================================= */

.rp-page .rp-fair-note {
    margin-top: 16px;
    padding: 23px;
    border: 1px solid rgba(var(--rp-accent-rgb), 0.15);
    border-radius: 12px;
    background: rgba(var(--rp-accent-rgb), 0.025);
}

.rp-page .rp-fair-note strong {
    color: #d7b09a;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.8;
}

.rp-page .rp-fair-note p {
    margin-top: 10px;
    color: #a29ba3;
    font-size: 12px;
    line-height: 1.95;
}

/* =========================================================
   БЛОК ОБРАЩЕНИЯ В ПОДДЕРЖКУ
   ========================================================= */

.rp-page .rp-appeal-banner {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 32px;
    overflow: hidden;
    border: 1px solid rgba(var(--rp-accent-rgb), 0.2);
    border-radius: 18px;
    background:
            radial-gradient(
                    ellipse at 100% 0,
                    rgba(var(--rp-accent-rgb), 0.09),
                    transparent 65%
            ),
            linear-gradient(125deg, #221e22, #191b20);
    box-shadow: inset 0 1px rgba(255, 199, 168, 0.025);
}

.rp-page .rp-appeal-banner > div {
    min-width: 0;
}

.rp-page .rp-appeal-banner h2 {
    margin-top: 10px;
    color: var(--rp-text);
    font-size: 29px;
    font-weight: 750;
    letter-spacing: -0.9px;
    line-height: 1.25;
}

.rp-page .rp-appeal-banner p:not(.rp-eyebrow) {
    max-width: 520px;
    margin-top: 14px;
    color: #a99fa4;
    font-size: 13px;
    line-height: 1.9;
}

/* =========================================================
   ОСНОВНАЯ КНОПКА
   ========================================================= */

.rp-page .rp-primary {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 47px;
    flex-shrink: 0;
    padding: 13px 19px;
    overflow: hidden;
    border: 1px solid rgba(255, 188, 157, 0.25);
    border-radius: 9px;
    background: linear-gradient(125deg, #ff936e, #ff7547 70%);
    color: #19110e;
    box-shadow:
            inset 0 1px rgba(255, 225, 209, 0.3),
            0 8px 25px rgba(var(--rp-accent-rgb), 0.1);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    transition:
            transform 0.25s var(--rp-ease),
            background 0.25s,
            box-shadow 0.25s;
}

.rp-page .rp-primary::before {
    position: absolute;
    z-index: 2;
    top: -100%;
    bottom: -100%;
    left: -45%;
    width: 18%;
    content: "";
    background: linear-gradient(
            100deg,
            transparent,
            rgba(255, 255, 255, 0.6),
            transparent
    );
    opacity: 0;
    transform: skewX(-18deg);
    pointer-events: none;
}

.rp-page .rp-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.rp-page .rp-primary:disabled::before {
    display: none;
}

/* =========================================================
   НИЖНЯЯ ПОДПИСЬ
   ========================================================= */

.rp-page .rp-bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    color: #777782;
    font-size: 10px;
    line-height: 1.9;
}

.rp-page .rp-bottom p {
    max-width: 650px;
}

.rp-page .rp-bottom a {
    color: #c4967c;
}

.rp-page .rp-bottom > span {
    font-size: 8px;
    letter-spacing: 1.2px;
}

/* =========================================================
   УВЕДОМЛЕНИЕ О КОПИРОВАНИИ
   ========================================================= */

.rp-page .rp-copy-feedback {
    position: fixed;
    z-index: 1000;
    bottom: 25px;
    left: 50%;
    max-width: calc(100% - 32px);
    padding: 14px 21px;
    border: 1px solid rgba(var(--rp-accent-rgb), 0.25);
    border-radius: 11px;
    background: #282125;
    color: #e2b094;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    font-size: 12px;
    line-height: 1.8;
    opacity: 0;
    transform: translate(-50%, 10px);
    pointer-events: none;
    transition:
            opacity 0.2s,
            transform 0.2s;
}

.rp-page .rp-copy-feedback.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* =========================================================
   НАВЕДЕНИЕ
   ========================================================= */

@media (hover: hover) {

    .rp-page .rp-sidebar nav a:hover {
        background: rgba(255, 255, 255, 0.035);
        color: var(--rp-text);
    }

    .rp-page .rp-sidebar nav a.is-active:hover {
        border-color: rgba(var(--rp-accent-rgb), 0.3);
        background: rgba(var(--rp-accent-rgb), 0.1);
        color: #ffb28e;
    }

    .rp-page .rp-side-note > a:hover,
    .rp-page .rp-tool-link:hover,
    .rp-page .rp-bottom a:hover {
        color: #ffb18c;
    }

    .rp-page .rp-principles > div:hover {
        border-color: rgba(var(--rp-accent-rgb), 0.22);
    }

    .rp-page .rp-rule:hover {
        background: rgba(255, 255, 255, 0.012);
    }

    .rp-page .rp-rule:target:hover {
        background: rgba(var(--rp-accent-rgb), 0.06);
    }

    .rp-page .rp-copy:hover {
        border-color: rgba(var(--rp-accent-rgb), 0.2);
        background: rgba(var(--rp-accent-rgb), 0.04);
        color: #f3a984;
    }

    .rp-page .rp-table tbody tr:hover {
        background: rgba(255, 255, 255, 0.012);
    }

    .rp-page .rp-primary:hover:not(:disabled) {
        background: linear-gradient(125deg, #ffa17e, #ff936e 70%);
        box-shadow:
                inset 0 1px rgba(255, 225, 209, 0.4),
                0 11px 30px rgba(var(--rp-accent-rgb), 0.17);
        transform: translateY(-2px);
    }

    .rp-page .rp-primary:hover:not(:disabled)::before {
        animation: rp-button-shine 0.48s var(--rp-ease) both;
    }

}

/* =========================================================
   АНИМАЦИЯ БЛИКА
   ========================================================= */

@keyframes rp-button-shine {
    0% {
        left: -45%;
        opacity: 0;
    }

    12% {
        opacity: 1;
    }

    85% {
        opacity: 0.7;
    }

    100% {
        left: 135%;
        opacity: 0;
    }
}

/* =========================================================
   АДАПТИВ — ДО 1100px
   ========================================================= */

@media (max-width: 1100px) {

    .rp-page .rp-layout {
        grid-template-columns: 210px minmax(0, 1fr);
        width: calc(100% - 40px);
        gap: 23px;
    }

    .rp-page .rp-sidebar {
        padding-inline: 10px;
    }

    .rp-page .rp-side-brand {
        gap: 9px;
        padding-inline: 5px;
        font-size: 12px;
    }

    .rp-page .rp-side-brand small {
        font-size: 6px;
        letter-spacing: 1px;
    }

    .rp-page .rp-hero {
        padding: 32px 30px 25px;
    }

    .rp-page .rp-principles {
        gap: 12px;
    }

    .rp-page .rp-principles > div {
        padding: 20px;
    }

    .rp-page .rp-principles strong {
        font-size: 13px;
    }

    .rp-page .rp-principles p {
        font-size: 11px;
    }

    .rp-page .rp-appeal-banner {
        align-items: flex-start;
        flex-direction: column;
        gap: 23px;
        padding: 29px;
    }

}

/* =========================================================
   АДАПТИВ — ДО 800px
   ========================================================= */

@media (max-width: 800px) {

    .rp-page {
        padding-top: 25px;
        padding-bottom: 55px;
    }

    .rp-page .rp-layout {
        grid-template-columns: 1fr;
        width: calc(100% - 32px);
        gap: 25px;
    }

    .rp-page .rp-sidebar {
        padding: 18px;
        border-radius: 16px;
    }

    .rp-page .rp-side-brand {
        padding: 0 0 14px;
        font-size: 14px;
    }

    .rp-page .rp-side-brand small {
        font-size: 7px;
        letter-spacing: 1.2px;
    }

    .rp-page .rp-nav-label {
        margin: 10px 0;
    }

    .rp-page .rp-sidebar nav {
        display: flex;
        flex-wrap: wrap;
        gap: 7px;
    }

    .rp-page .rp-sidebar nav a {
        min-height: 38px;
        padding: 8px 11px;
        border-color: rgba(255, 255, 255, 0.055);
        font-size: 10px;
    }

    .rp-page .rp-side-note {
        display: none;
    }

    .rp-page .rp-main {
        gap: 25px;
    }

    .rp-page h1 {
        font-size: 43px;
    }

    .rp-page .rp-rule {
        padding: 25px;
    }

    .rp-page .rp-appeal-banner {
        align-items: center;
        flex-direction: row;
    }

}

/* =========================================================
   АДАПТИВ — ДО 600px
   ========================================================= */

@media (max-width: 600px) {

    .rp-page .rp-principles {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .rp-page .rp-principles > div {
        padding: 21px 23px;
    }

    .rp-page .rp-principles strong {
        margin-top: 9px;
        font-size: 15px;
    }

    .rp-page .rp-principles p {
        font-size: 12px;
    }

    .rp-page .rp-appeal-banner {
        align-items: flex-start;
        flex-direction: column;
    }

    .rp-page .rp-tools {
        gap: 12px;
    }

    .rp-page .rp-search {
        flex-basis: 100%;
    }

}

/* =========================================================
   АДАПТИВ — ДО 520px
   ========================================================= */

@media (max-width: 520px) {

    .rp-page {
        padding-top: 20px;
        padding-bottom: 42px;
    }

    .rp-page .rp-layout {
        width: calc(100% - 24px);
        gap: 22px;
    }

    .rp-page .rp-sidebar {
        padding: 15px;
    }

    .rp-page .rp-side-brand > span:first-child {
        width: 37px;
        height: 40px;
        border-radius: 10px;
        font-size: 19px;
    }

    .rp-page .rp-nav-label {
        font-size: 7px;
        letter-spacing: 1px;
    }

    .rp-page .rp-sidebar nav {
        gap: 6px;
    }

    .rp-page .rp-sidebar nav a {
        gap: 7px;
        padding: 8px 9px;
        font-size: 10px;
    }

    .rp-page .rp-sidebar nav a > span {
        font-size: 8px;
    }

    .rp-page .rp-main {
        gap: 23px;
    }

    .rp-page .rp-hero {
        padding: 28px 24px 23px;
        border-radius: 17px;
    }

    .rp-page .rp-watermark {
        top: 22px;
        right: 7px;
        font-size: 115px;
        letter-spacing: -8px;
    }

    .rp-page .rp-eyebrow {
        font-size: 8px;
        letter-spacing: 1.1px;
    }

    .rp-page h1 {
        margin-top: 15px;
        font-size: 35px;
        letter-spacing: -1.5px;
    }

    .rp-page .rp-lead {
        margin-top: 18px;
        font-size: 13px;
    }

    .rp-page .rp-hero-tags {
        gap: 7px;
        margin-top: 22px;
    }

    .rp-page .rp-hero-tags > span {
        padding: 6px 8px;
        font-size: 7px;
        letter-spacing: 0.5px;
    }

    .rp-page .rp-hero-meta {
        gap: 8px;
        margin-top: 23px;
        padding-top: 16px;
        font-size: 9px;
    }

    .rp-page .rp-draft {
        gap: 11px;
        padding: 16px;
    }

    .rp-page .rp-draft p {
        font-size: 11px;
    }

    .rp-page .rp-search {
        gap: 10px;
        min-height: 49px;
        padding-inline: 12px;
    }

    .rp-page .rp-search input {
        font-size: 12px;
    }

    .rp-page .rp-tool-link,
    .rp-page .rp-search-status {
        font-size: 10px;
    }

    .rp-page .rp-section-heading {
        gap: 12px;
        margin-bottom: 17px;
    }

    .rp-page .rp-section-number {
        width: 33px;
        height: 36px;
        border-radius: 9px;
        font-size: 11px;
    }

    .rp-page .rp-section-heading h2 {
        font-size: 23px;
        letter-spacing: -0.6px;
    }

    .rp-page .rp-section-heading p {
        font-size: 11px;
    }

    .rp-page .rp-rule {
        gap: 13px;
        padding: 23px 18px;
    }

    .rp-page .rp-rule-number {
        min-width: 23px;
        font-size: 11px;
    }

    .rp-page .rp-rule h3 {
        font-size: 14px;
    }

    .rp-page .rp-rule p {
        font-size: 12px;
    }

    .rp-page .rp-rule-heading {
        gap: 8px 10px;
    }

    .rp-page .rp-tag {
        font-size: 7px;
    }

    .rp-page .rp-copy {
        width: 27px;
        height: 27px;
        font-size: 15px;
    }

    .rp-page .rp-table caption {
        padding: 15px 17px;
        font-size: 10px;
    }

    .rp-page .rp-table th {
        padding: 17px;
        font-size: 10px;
    }

    .rp-page .rp-table td {
        padding: 18px 17px;
        font-size: 11px;
    }

    .rp-page .rp-fair-note {
        padding: 20px;
    }

    .rp-page .rp-fair-note strong,
    .rp-page .rp-fair-note p {
        font-size: 11px;
    }

    .rp-page .rp-appeal-banner {
        gap: 22px;
        padding: 27px 24px;
        border-radius: 16px;
    }

    .rp-page .rp-appeal-banner h2 {
        font-size: 26px;
    }

    .rp-page .rp-appeal-banner p:not(.rp-eyebrow) {
        font-size: 12px;
    }

    .rp-page .rp-primary {
        min-height: 45px;
        padding: 12px 17px;
        font-size: 11px;
    }

    .rp-page .rp-bottom {
        gap: 12px;
        font-size: 9px;
    }

    .rp-page .rp-bottom > span {
        font-size: 7px;
        letter-spacing: 1px;
    }

}

/* =========================================================
   УМЕНЬШЕННОЕ ДВИЖЕНИЕ
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .rp-page,
    .rp-page *,
    .rp-page *::before,
    .rp-page *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .rp-page .rp-primary:hover {
        transform: none;
    }

}

/* =========================================================
   ПЕЧАТЬ
   ========================================================= */

@media print {

    body > .header,
    body > .footer,
    .rp-page .rp-sidebar,
    .rp-page .rp-tools,
    .rp-page .rp-copy,
    .rp-page .rp-copy-feedback,
    .rp-page .rp-no-results,
    .rp-page .rp-search-status,
    .rp-page .rp-appeal-banner,
    dialog,
    .toast,
    .portal-toast {
        display: none !important;
    }

    .rp-page {
        --rp-bg: #ffffff;
        --rp-surface: #ffffff;
        --rp-text: #111111;
        --rp-muted: #333333;
        --rp-accent: #111111;
        --rp-line: #cccccc;

        min-height: 0;
        padding: 0;
        background: #ffffff !important;
        color: #111111 !important;
    }

    .rp-page .rp-layout,
    .rp-page .rp-main {
        display: block;
        width: 100%;
    }

    .rp-page .rp-hero {
        padding: 0 0 20px;
        border: 0;
        background: #ffffff !important;
        box-shadow: none;
    }

    .rp-page .rp-hero::before,
    .rp-page .rp-watermark {
        display: none;
    }

    .rp-page .rp-section {
        margin-block: 25px;
    }

    .rp-page .rp-rule-list,
    .rp-page .rp-rule,
    .rp-page .rp-principles > div,
    .rp-page .rp-table-wrap,
    .rp-page .rp-fair-note {
        background: #ffffff !important;
        color: #111111 !important;
        box-shadow: none;
    }

    .rp-page .rp-rule {
        break-inside: avoid;
    }

    .rp-page :is(h1, h2, h3, p),
    .rp-page h1 > span,
    .rp-page .rp-principles strong,
    .rp-page .rp-rule-number,
    .rp-page .rp-table th,
    .rp-page .rp-table td {
        color: #222222 !important;
    }

    .rp-page .rp-section-heading h2 {
        break-after: avoid;
    }

    .rp-page .rp-principles {
        margin-block: 20px;
    }

    .rp-page .rp-table-wrap {
        overflow: visible;
    }

    .rp-page .rp-table {
        min-width: 0;
        table-layout: fixed;
    }

    .rp-page .rp-table th,
    .rp-page .rp-table td {
        padding: 10px;
        overflow-wrap: anywhere;
    }

    .rp-page .rp-table tr {
        break-inside: avoid;
    }

    .rp-page .rp-draft {
        margin-block: 15px;
        border-color: #888888;
        background: #ffffff;
    }

    .rp-page .rp-draft strong {
        color: #222222;
    }

}