Ferromagnetic resonance in a system of magnetic films with different Curie temperatures