.rules-container {
    margin: 60px auto;
    padding: 0 30px;
    max-width: 950px;
}

.rules-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 36px;
    font-weight: 900;
    color: white;
    margin: 0;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    border-radius: 2px;
}

.rules-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rule-item {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.rule-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
    border-color: rgba(59, 130, 246, 0.2);
}

.rule-item.active {
    border-color: var(--accent-color);
    box-shadow: 0 15px 45px rgba(59, 130, 246, 0.15);
}

.rule-header {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    gap: 20px;
}

.rule-header:hover {
    background: rgba(59, 130, 246, 0.06);
}

.rule-number {
    font-size: 13px;
    font-weight: 800;
    color: var(--accent-color);
    background: rgba(59, 130, 246, 0.1);
    padding: 6px 14px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rule-title {
    font-size: 17px;
    font-weight: 700;
    color: white;
    flex: 1;
    text-align: left;
}

.rule-icon {
    font-size: 18px;
    color: var(--text-muted);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}

.rule-item.active .rule-icon {
    transform: rotate(180deg);
    color: var(--accent-color);
}

.rule-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.5s ease;
    background: rgba(0, 0, 0, 0.18);
}

.rule-item.active .rule-content {
    max-height: none;
}

.rule-list {
    padding: 24px;
}

.rule-point {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 14px 0;
    margin-bottom: 16px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    transition: all 0.3s ease;
    border-left: 2px solid rgba(59, 130, 246, 0.3);
}

.rule-point:hover {
    background: rgba(59, 130, 246, 0.08);
    border-left-color: var(--accent-color);
    transform: translateX(4px);
}

.point-number {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-color);
    grid-column: 1;
}

.point-text {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    grid-column: 2;
}

.point-sub-list {
    grid-column: 2;
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.point-sub-item {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    padding-left: 30px;
    position: relative;
}

.point-sub-item::before {
    content: '—';
    position: absolute;
    left: 10px;
    color: var(--accent-color);
    font-weight: 600;
}

@media (max-width: 600px) {
    .rules-container {
        padding: 0 20px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .rule-header {
        padding: 16px 18px;
    }
    
    .rule-number {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .rule-title {
        font-size: 15px;
    }
    
    .rule-list {
        padding: 18px;
    }
    
    .rule-point {
        padding: 12px 14px;
    }
    
    .point-number {
        font-size: 14px;
        min-width: 40px;
    }
    
    .point-text {
        font-size: 14px;
    }
}
