A conceptual and mathematical framework for the singularity-free modeling of non-equilibrium solidification/melting and non-isothermal dynamic wetting is developed where both processes are embedded into a broader class of physical phenomena as particular cases. This allows one to consider problems describing fluid flows with phase transitions and dynamic wetting occurring independently or interactively in a regular conceptually consistent way without ad hoc assumptions. The simplest model formulated on the basis of this approach explains, at this stage qualitatively, the arrest of the moving contact line observed experimentally in the impact and spreading of a molten drop on a cold substrate. The classical Stefan problem and the model of isothermal dynamic wetting as an interface formation process are recovered as limiting cases.