The Harnack inequality and related properties for solutions to elliptic and parabolic equations with divergence-free lower-order coefficients