/* --- АККОРДЕОН ПРАВИЛ --- */
.rules-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rule-section {
    background: var(--card-gray);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.rule-section:hover {
    border-color: var(--gold);
}

.rule-header {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.rule-header:hover {
    background: rgba(255, 183, 3, 0.05);
}

.rule-header h3 {
    color: var(--gold);
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.toggle-icon {
    color: var(--gold);
    font-size: 14px;
    transition: transform 0.3s ease;
}

.toggle-icon.rotated {
    transform: rotate(180deg);
}

.rule-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 25px;
}

.rule-content.active {
    max-height: 2000px;
    padding: 0 25px 25px 25px;
}

.rule-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-gray);
}

.rule-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.rule-id {
    color: var(--gold);
    font-weight: 700;
    font-size: 14px;
    min-width: 40px;
    margin: 0;
}

.rule-text {
    flex: 1;
}

.rule-text p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 15px;
    margin: 0;
}

.rule-subitems {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.rule-subitems li {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 5px;
    padding-left: 20px;
    position: relative;
}

.rule-subitems li::before {
    content: "•";
    color: var(--gold);
    position: absolute;
    left: 0;
    font-size: 18px;
}

/* АДАПТИВНОСТЬ */
@media (max-width: 768px) {
    .rule-header {
        padding: 15px 20px;
    }

    .rule-header h3 {
        font-size: 16px;
    }

    .rule-content.active {
        padding: 0 20px 20px 20px;
    }

    .rule-item {
        flex-direction: column;
        gap: 5px;
    }

    .rule-id {
        min-width: auto;
    }
}