Ferromagnetic domain patterns and three-dimensional domain-wall configurations in thin CoCrPt films with perpendicular magnetic anisotropy were studied in detail by combining magnetic force microscopy and polarized neutron reflectometry with micromagnetic simulations. With the first method, lateral dimension of domains with alternative magnetization directions normal to the surface and separated by domain walls in 20-nm-thick CoCrPt films were determined in good agreement with micromagnetic simulations. Quantitative analysis of data on reflectometry shows that domain walls consist of a Bloch wall in the center of the thin film, which is gradually transformed into a pair of Néel caps at the surfaces. The width and in-depth thickness of the Bloch wall element, transition region, and Néel caps are found consistent with micromagnetic calculations. A complex structure of domain walls serves to compromise a competition between exchange interactions, keeping spins parallel, magnetic anisotropy orienting magnetization normal to the surface, and demagnetizing fields, promoting in-plane magnetization. It is shown that the result of such competition strongly depends on the film thickness, and in the thinner CoCrPt film (10 nm thick), simple Bloch walls separate domains. Their lateral dimensions estimated from neutron scattering experiments agree with micromagnetic simulations.