The next time you lose power, measure with a volt meter at the main breaker before you touch anything else. Measure from line to load on each pole. If it's tripped you will read 120V, if it's still closed you should read 0V.
This will tell you if the main breaker has gone bad. Sometimes they trip internally but the handle doesn't move.
This will tell you if the main breaker has gone bad. Sometimes they trip internally but the handle doesn't move.