then it will tend to take its hardness or softness from that consonant.
In Moscow it is always hard before a consonant, if there is no soft sign.