I agree with TATY, that's what I learned as well.

Another general rule that I was told, was that Г devoices to Х before К

f.ex. легко - I was taught to pronounce леХко


.... but maybe there...