/* Правила проекта — минимализм с акцентами RedNet */

.rules-page .main-h1 {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px;
}

.rules-page .group-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.rules-page .group-buttons .custom-button-2.rules-obj.small {
    height: auto;
    min-height: 38px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.rules-page .group-buttons .custom-button-2.rules-obj.small:hover,
.rules-page .group-buttons .custom-button-2.rules-obj.small.active {
    background: rgba(240, 38, 75, 0.18);
    border-color: rgba(240, 38, 75, 0.45);
    color: #fff;
    outline: none;
    box-shadow: 0 0 20px rgba(240, 38, 75, 0.15);
}

.rules-page .groups-rules {
    position: relative;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0.25) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px 32px;
    margin-top: 22px;
    overflow: hidden;
}

.rules-page .groups-rules::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #F0264B 0%, rgba(240, 38, 75, 0.15) 100%);
    border-radius: 4px 0 0 4px;
}

.rules-page p.title-rules-text {
    color: #fff;
    font-family: 'Unbounded', sans-serif;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 12px;
    padding-left: 8px;
}

.rules-page ul.ul-rules-object {
    margin: 0 0 0 6px;
    padding-left: 18px;
    display: grid;
    gap: 10px;
    list-style: none;
}

.rules-page ul.ul-rules-object.rules-a {
    counter-reset: rules-counter;
}

.rules-page li.li-rules-object.rules-a {
    position: relative;
    padding-left: 4px;
    counter-increment: rules-counter;
}

.rules-page li.li-rules-object.rules-a::before {
    content: counter(rules-counter) '.';
    position: absolute;
    left: -22px;
    color: #F0264B;
    font-weight: 700;
    font-size: 12px;
}

.rules-page p.rules-object-text.rules-a {
    color: rgba(255, 255, 255, 0.68);
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.65;
    margin: 0;
}

.rules-page p.rules-object-text.rules-a cb,
.rules-page cb {
    color: #8ec8ff;
}

@media (max-width: 1175px) {
    .rules-page .groups-rules {
        padding: 20px 18px 20px 22px;
    }

    .rules-page .group-buttons .custom-button-2.rules-obj.small {
        flex: 1 1 calc(50% - 8px);
        text-align: center;
    }
}

@media (max-width: 640px) {
    .rules-page .group-buttons .custom-button-2.rules-obj.small {
        flex: 1 1 100%;
    }
}
