have one's head screwed on

have one's head screwed on (right / the right way/etc.)
have one's head screwed on straight
(to have good judgment; if someone has their head screwed on the right way, they are sensible and do not do stupid things ) — иметь голову на плечах, быть рассудительным, здравомыслящим; с головой; быть смышлёным, сообразительным; ≈ голова хорошо варит

Example: Don't worry about Sal, she'll be all right - she's got her head screwed on the right way. (CID)

Example: If you have your head screwed on right, you don't complain when you have to work overtime. (Cambridge Dictionary of American Idioms )

Related vocabulary:
have a (good) head on one's shoulders
with a head on one's shoulders
иметь голову на плечах; быть смышлёным, сообразительным