Where does “поганий” come from?
поганий (Ukrainian) comes from Old East Slavic поганъ, from Old Church Slavonic поганъ, from Latin pāgānus, from Latin pāgus, from Proto-Italic pāgos, from Proto-Indo-European peh₂ǵos, from Proto-Indo-European peh₂ǵ- — to attach.
Ancestry of “поганий”, step by step