Complex geometry of nuclei and atoms