You can take a hero with a ballista at the beginning. Heroes with ballistas, as you know, deal with neutral creatures more easily.
In battles with enemy ranged units, the Dungeon is the easiest.
Use invisible stalkers and shoot them down with заклы (zakly), followed by finishing them off with your first units.
When playing as Inferno or Academy, etc., you deploy thick troops, such as demons, gargoyles, zombies, armored units, etc., and then shoot with a ballista/заклы (zakly)/or engage your troops in melee combat. Therefore, at the early stages of the game, these seemingly less useful troops play a crucial role and die in huge numbers. Although it's not a pity to lose them.
The Necromancers are very lucky here; the new skeletons are great for dealing with ranged units.
To deal with mages, again, you need to deploy thick troops, preferably with magic resistance. Although this is more difficult.