/* rules.css — Правила TREALSIDE */

.rules-wrap {
    max-width: 800px;
}

/* Спецификация тяжести */
.rules-severity-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: #1e1e1e;
    border: 1px solid #1e1e1e;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 20px;
}

.rules-severity-item {
    background: #111;
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.sev-badge {
    font-size: 1.1rem;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
    line-height: 1.4;
}

.sev-title {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.sev-desc {
    font-size: 0.8rem;
    color: #555;
    line-height: 1.5;
}

/* Цвета тяжести */
.sev-a .sev-badge, .rule-badge.sev-a { color: #e03c3c; }
.sev-a .sev-title { color: #e03c3c; }
.sev-a { border-left: 2px solid rgba(224, 60, 60, 0.3); }

.sev-b .sev-badge, .rule-badge.sev-b { color: #e07a3c; }
.sev-b .sev-title { color: #e07a3c; }
.sev-b { border-left: 2px solid rgba(224, 122, 60, 0.3); }

.sev-c .sev-badge, .rule-badge.sev-c { color: #e0c43c; }
.sev-c .sev-title { color: #e0c43c; }
.sev-c { border-left: 2px solid rgba(224, 196, 60, 0.3); }

.sev-d .sev-badge, .rule-badge.sev-d { color: #6aaa6a; }
.sev-d .sev-title { color: #6aaa6a; }
.sev-d { border-left: 2px solid rgba(106, 170, 106, 0.3); }

/* Разделитель между разделами */
.rules-section-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 48px 0 40px;
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #333;
}

.rules-section-divider::before,
.rules-section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #1e1e1e;
}

.rules-section-divider span {
    white-space: nowrap;
    color: #444;
}

/* Список правил */
.rules-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: #1e1e1e;
    border: 1px solid #1e1e1e;
    border-radius: 4px;
    overflow: hidden;
}

.rule-item {
    background: #111;
    transition: background 0.2s;
}

.rule-item:hover {
    background: #131313;
}

.rule-zero .rule-header {
    border-left: 2px solid var(--accent-color);
}

.rule-header {
    padding: 16px 20px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #161616;
}

.rule-num {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent-color);
    opacity: 0.6;
    width: 16px;
    flex-shrink: 0;
}

.rule-title {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}

.rule-body {
    padding: 12px 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rule-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.83rem;
    color: #555;
    line-height: 1.6;
}

.rule-badge {
    font-size: 0.95rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    margin-top: 1px;
}

.rule-note {
    font-size: 0.78rem;
    color: #3a3a3a;
    line-height: 1.5;
    margin: 0 0 4px;
    font-style: italic;
}
