Auto-translated
I don't want to argue with anyone; I just want to express my opinion on this issue.
First of all, archers are stronger in the Castle, not in the Rampart, or maybe we're playing without level 5 creatures? Fanatics and archers completely destroy elves. Therefore, there's no point in defending the elves because they will simply be shot down. Of course, one could say: Pegasi and dragons will block the fanatics and archers (but this is the worst-case scenario because the Castle moves first, so, for example, you can easily cast mass slow, protecting the archers). In this case, the nearest warriors will destroy these creatures, and then archangels can resurrect some archer unit from the Castle, and the humans will again have an advantage in ranged combat. Therefore, the Rampart will have to attack, but all the Rampart's creatures are worse than the Castle's; they have no chance of winning in melee combat. Therefore, the Castle will win. The Rampart will only win if its army is twice as large or the hero's stats are better. Regarding magic, the Rampart has a slight advantage because what good magic can it have? Maybe only Explosion, but it's still hard to get. In general, the Rampart has little chance against the Castle.