Classical and quantum reflections of X-rays