tracić głowę

Etymology
lit. 'to lose one's head'.

Verb

 * 1)  to lose one's head