What is the ruling on performing istinja' after passing wind from the anus?
Ablution is invalidated by passing wind from the anus, even without a smell. Only ablution becomes obligatory from it. Istinja' is not obligatory nor recommended. And Allah the Almighty knows best.
What is the ruling on the cessation of blood after (40) days from delivery, but later continued sporadically during two days of Ramadan?
Once postpartum bleeding (Nifas) ceases, and the woman is certain that it won`t reoccur, then she becomes ritually pure and so she is free to make Ghusl (purificatory bath), pray, and fast. If the bleeding reoccurs before fifteen days from its cessation, and before the end of (60) days after delivery, then the ruling on postpartum bleeding is effective, and her fasting and prayer are null and void, thus she must make up the fasting that she missed and not the prayer during those particular days.
Is the marriage contract considered valid if concluded at home by the marriage official (Ma`zon)?
Yes, it is valid as long as it is registered at the court.
Does nosebleed during the day in Ramadan affect the validity of fasting?
A nosebleed does not affect the validity of fasting unless some of the blood reaches the body cavity or the person intentionally swallows it. In such a case, their fast is invalid, and they must refrain from eating and drinking for the rest of the day and make up for that day later.