South Africa produces remarkable fightback