What contributed to the gradual transition of the initiative in the Northern War to the Russian army?

In 1700, the Russian army suffered a heavy defeat from the Swedes at Narva. This defeat clearly demonstrated Russia’s military backwardness. European countries have come to the conclusion that Russia no longer poses a military threat to them.

Peter I drew the right conclusions from this defeat. Foreign officers began to be replaced by Russian officers, since foreigners surrendered en masse to the Swedes near Narva. Industry developed to meet the needs of the army (weapons, ammunition, etc.). The army was reorganized following the example of the Semyonovsky and Preobrazhensky regiments, which showed themselves from the very best side.

One of the components of a person's success in our time is receiving modern high-quality education, mastering the knowledge, skills and abilities necessary for life in society. A person today needs to study almost all his life, mastering everything new and new, acquiring the necessary professional qualities.