You need to take care when you apply the principle of conservation of momentum, as it always holds true only for an entire system of interacting bodies, and not for a subset of them. If a body accelerates down a ramp fixed to the Earth, its own momentum is clearly not fixed; however, its acceleration imparts an infinitesimal recoil to the ramp and the Earth, so the overall momentum is conserved.
You also need to take account of friction. At a macroscopic level, if a body is decelerated by frictional forces such as air resistance, the macroscopic momentum of the body is not conserved; however, were you able to observe and measure the effects of the countless collisions between the body and the individual molecules of air, you would find that the momentum lost by the body had been transferred to the air molecules, so momentum overall was conserved.