We introduce and study (metrically) quarter-stratifiable spaces and then apply them to generalize Rudin and Kuratowski-Montgomery theorems about the Baire and Borel complexity of separately continuous functions. The starting point for writing this paper was the desire to improve the results of V.K. Maslyuchenko et al. [MMMS], [MS], [KM], [KMM] who generalized a classical theorem of W.Rudin [Ru]...