A nonlinear model of a scalar field coupled to its gradient is proposed. The model is shown to be suitable for the description of phase transitions accompanied by the formation of spatially inhomogeneous distributions of the scalar field in the ground state. Some solutions of the proposed model are obtained; these can be related, e.g., to the cosmological scenario or the spinodal decomposition. The proposed model is analogical to the mechanical nonlinear oscillator with coordinate-dependent mass or velocity-dependent elastic modulus. This analogy is employed to reveal the existence of limit cycles and destruction of new phase bubbles.