Can I set an agreement with the client about a certain number of paid working hours?
It is all you and client to decide on wages and output of order.
But doesnt such terms of cooperation violate the rules of the platform?
Not really ! Negotiation on your wages isn't violation of any rule. Though you might have to judge if it is required. Most of the orders come with pre-defined budget