Interference waves in layered media. Part I