Raman scattering study of the phase transition sequence in the system