A nonlinear equation for the gap parameter of the spatially inhomogeneous superconductor near TC is considered. The kernels of the equation are classical trajectories functionals. Conditions for the quasiclassical description of quasiparticles in a superconductor are established. A wave function behaviour near the turning points of Andreev type is considered.