A late goal from substitute Branislav Ivanovic enabled Serbia and Montenegro to survive a rousing Croatian fightback and record a 3-2 victory in the opening match of the UEFA European Under-21 Championship.