/* === ПАЛИТРА (BLACK EDITION) === */
:root {
    --black-950: #000000;
    --black-900: #0a0a0a;
    --black-850: #0e0e0e;
    --black-800: #111111;
    --black-750: #161616;
    --black-700: #1f1f1f;
    --black-600: #2a2a2a;

    --text-main: #ffffff;
    --text-soft: #cfcfcf;
    --text-muted: #8a8a8a;

    --border-soft: #1e1e1e;

    /* нейтральный акцент */
    --accent-color: #e6e6e6;
}

/* === STICKY === */
.rules_sticky {
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

/* === МЕНЮ ПУНКТОВ (СТАБИЛЬНОЕ) === */
.rules_menu {
    display: flex;
    align-items: center;
    gap: 8px;

    height: 42px;
    min-height: 42px;

    padding: 0 14px;
    font-weight: 500;
    cursor: pointer;

    color: var(--text-soft);
    background: var(--black-850);
    border-radius: 8px;
    border: 1px solid var(--border-soft);

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    transition: 0.25s ease;
}

.rules_menu:hover {
    background: var(--black-750);
    color: var(--text-main);
    box-shadow: 0 3px 10px rgba(0,0,0,.9);
}

/* текст внутри меню */
.rules_menu span,
.rules_menu p,
.rules_menu div {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* иконка */
.rules_menu svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    fill: var(--text-soft);
    transition: 0.25s ease;
}

.rules_menu:hover svg {
    fill: var(--text-main);
}

/* === АКТИВНЫЙ ПУНКТ === */
.rules_active {
    background: var(--black-750);
    color: var(--text-main);
    border-color: var(--black-600);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}

/* === КОНТЕНТНЫЕ БЛОКИ === */
.rules_block {
    display: none;
    padding: 16px 20px;
    width: 100%;

    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.65;

    background: var(--black-900);
    border-radius: 12px;
    border: 1px solid var(--border-soft);

    box-shadow:
        0 0 0 1px rgba(255,255,255,.03),
        0 12px 30px rgba(0,0,0,.85);

    transition: 0.25s ease;
}

.rules_block > a {
    display: flex;
    justify-content: center;
    margin-top: 10px;

    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s ease;
}

.rules_block > a:hover {
    color: var(--text-main);
}

/* === ТЕКСТ === */
.rules_text {
    color: var(--text-soft);
    font-weight: 500;
    font-size: 14px;
}

.rules_text_punishment,
.rules_warning {
    color: var(--text-main);
    font-weight: 700;
}

/* === ХЕДЕР === */
.rules_header {
    margin: 28px 0;
    padding: 20px;

    background:
        linear-gradient(90deg, var(--black-850), transparent 60%),
        linear-gradient(270deg, var(--black-850), transparent 60%);

    border-left: 2px solid var(--black-600);
    border-right: 2px solid var(--black-600);
    border-radius: 14px;

    box-shadow: 0 10px 25px rgba(0,0,0,.85);
}

.rules_header h5 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: var(--text-main);
    text-align: center;
    text-transform: uppercase;
}

.rules_header h6 {
    margin-top: -6px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* === КАРТОЧКА === */
.rules_card {
    background: var(--black-850);
    border-radius: 14px;
    padding: 22px;
    width: 100%;

    display: flex;
    justify-content: center;

    border: 1px solid var(--border-soft);
    box-shadow:
        0 0 0 1px rgba(255,255,255,.03),
        0 15px 35px rgba(0,0,0,.9);
}

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

/* === ГЛАВЫ === */
.rules_chapter {
    display: flex;
    align-items: center;
    gap: 8px;

    color: var(--text-main);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;

    margin: 10px 12px;
}

.rules_chapter svg {
    height: 14px;
    fill: var(--text-muted);
    transition: 0.25s ease;
}

.rules_chapter:hover svg {
    fill: var(--text-main);
}

.rules_number {
    background: var(--black-700);
    color: var(--text-main);

    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;

    box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}

.rules_title {
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
}

/* === АДАПТИВ === */
@media (max-width: 768px) {
    .rules_card {
        display: block;
        padding: 16px;
    }

    .rules_choose {
        display: none;
    }

    .rules_header h5 {
        font-size: 18px;
    }

    .rules_header h6 {
        font-size: 11px;
    }
}
