The formation of professional giftedness in conditions of varying degrees of freedom in activity