1. Disconnect the negative battery cable.
2. Remove the headliner.
3. Disconnect the connector.
4. Remove the screws, and then remove the sunroof motor.

Sunroof unit disassembly/assembly
Sunroof motor installationMazda 6 Service Manual: Seat Belt Precautions
Seat belts help to decrease the possibility of severe injury during accidents and sudden stops. Mazda recommends that the driver and all passengers always wear seat belts.
(U.S.A. and Canada)
All of the seat belt retractors are designed to keep the lap/shoulder belts out of the way when ...
Mazda 6 Service Manual: Expansion valve removal/installation
1. Disconnect the negative battery cable.
2. Discharge the refrigerant from the system. (See RECOVERY.) (See CHARGING.)
Caution
If moisture or foreign material enters the refrigeration cycle,
cooling ability will be lowered and abnormal noise will occur. Always
immediately plug open fitt ...