Улучшенный Header без поиска

Sometimes Russian grammar can drive you crazy, especially when you see the soft sign in the end of the word:

день – day (masculine),
ночь – night (feminine)

Where is the logic in that? I’m explaining it in my new lesson: