Educational and pedagogical activity of the spiritual and secular intelligentsia in the North Caucasus region