I live in Croatia which has extremely high taxes. 
I decided I might try to grab some job from Stackoverflow job ads. I see that many jobs offer remote and full-time contract. My question is, whom do I pay tax for my income? The country where company is, or Croatia?

If it is Croatia, is there any way to avoid it and pay to any other country? E.g. open bank account somewhere else and receive all income there and pay tax to the host, or else pay tax to the country offering me a job?