Polyhedral complexes and topology of projective varieties