Rohit Sharma and Ravindra Jadeja slammed centuries under pressure in a 204-run partnership as India recovered from a jittery start to pile 326/5 on the opening day of the third Test.