A theory is developed for the effect of coherent population trapping (CPT) in 'hot' atoms under pulsed pumping in an optically dense medium with a buffer gas. The case is considered when the excited level is not degenerate. Based on an analysis of the shape of Ramsey resonances, we show that with increasing optical density of the medium, the dependence of the light shifts of the CPT resonance becomes more and more nontrivial. The dependence of the light shifts of the CPT resonance on the magnitude of the hyperfine splitting of the excited level, concentration of active atoms, temperature, and duration of the dark pause is constructed.