Risk of the processes in the aspect of quality, natural environment and occupational safety