/* ==========================================================================
   RULES — страница правил проекта
   ========================================================================== */

.rules-widget {
    margin-bottom: 20px;
}

.rules-widget .widget__title i {
    color: var(--c-accent);
    margin-right: 6px;
}

.rules-intro {
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--c-text-dim);
    background: rgba(182, 255, 60, .06);
    border: 1px dashed rgba(182, 255, 60, .3);
    border-radius: var(--r-sm);
}

.rules-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: rule;
}

.rules-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 12px 4px;
    border-bottom: 1px dashed rgba(255, 255, 255, .08);
    counter-increment: rule;
}

.rules-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.rules-item__text {
    position: relative;
    flex: 1 1 auto;
    min-width: 220px;
    margin: 0;
    padding-left: 34px;
    font-size: 13px;
    line-height: 1.55;
    color: #e6e6e6;
}

.rules-item__text::before {
    content: counter(rule);
    position: absolute;
    left: 0;
    top: -1px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    font-size: 11px;
    font-weight: 700;
    color: #10241f;
    background: var(--c-accent);
    border-radius: 50%;
}

.rules-item .badge {
    flex: 0 0 auto;
    align-self: center;
}

.rules-item .badge i {
    margin-right: 4px;
}

.badge--info {
    color: #dfe9c8;
    background: rgba(124, 181, 24, .22);
    border: 1px dashed rgba(182, 255, 60, .45);
}
