по́фиг (Russian) comes from Russian ПО, from Old East Slavic по, from Proto-Slavic po, from Proto-Indo-European h₂pó, from Proto-Indo-European h₂epo — from, off, back; off, away; off, from.
Ancestry of “по́фиг”, step by step
по́фиг traces back through two separate lines of ancestry.