Phoenix AZ here (UPC).

My main 3" drain line is quite deep. To tie the rest of the fixtures into the horizontal main, can I roll a Y up 45 degrees to make the other lines more shallow?

Alternatively (or in addition to) can I use a 45 to make steep depth change and then level off before entering the Wye?