Long-term planning formation of safety fundamentals in the middle group; methodological development in life safety (middle group)