Urban environment as a space of diversity (in the conditions of open and totalitarian societies)