Vassili Berezoutski headed a dramatic 87th-minute winner as CSKA Moscow secured their place in the last 16 of the UEFA Champions League with a dramatic 2-1 win at Group B winners Inter Milan.
The Russians started the night not only needing a win to have any hope of progressing beyond the group stage, but also banking on group rivals Lille and Trabzonspor playing out a draw in France.
While the Lille game ended goalless, CSKA seized their chance with seconds to spare when Berezoutski headed home a corner by Aleksandrs Cauna to confirm his side's remarkable escape.
Against a side whose qualification as winners was already assured, the visitors had pressed from the start with Vagner Love having a third minute shot blocked in the box by the busy Andrea Ranocchia.
Ranocchia also blocked an effort from 12 yards from Seydou Doumbia, and as the Russians continued to press forward in the early stages, a drive from Pavel Mamaev was blocked by Cristian Chivu.
Inter did not manage to threaten the Moscow goal until the 12th minute when, shortly after Diego Milito had been ruled offside, Yuto Nagamoto saw his shot saved by visiting keeper Vladimir Gabulov.
A spell of Inter pressure was soaked up by the Russian defence, with Deividas Semberas booting clear a Philippe Coutinho corner before Love saw a 25-yard effort flash past the post at the other end.
Love had a shot parried on the half-hour and Nagatomo's effort was saved by Gabulov as the action swung from end to end with neither side managing to take a firm grip on proceedings.
Love had one of the best chances of the night in the 34th minute when Love headed Alan Dzagoev's free-kick over the bar from six yards, and CSKA almost paid when Nagamoto saw a long-range effort tipped round by the post by Gabulov.
Love missed with another point-blank header just before the break and there was still chance for Inter to almost claim an interval lead when Davide Faraoni saw his cross punched away by the busy Gabulov.
The visitors finally made their breakthrough five minutes into the second half when Love crossed from the right and Doumbia pounced to send a right-foot shot into the bottom corner of the net.
But the Russians' hopes were swiftly dampened by a lightning Inter response, Esteban Cambiasso equalising less than a minute later after Ranocchia headed into his path in the penalty area.
Moscow went straight back on the offensive with Love's close-range shot blocked by Ranocchia and Dzagoev's follow-up from six yards brilliant tipped around the post by Castellazzi.
Milito and Ranocchia both forced saves out of Gabulov from headers and after Love had shot wide Inter had a glorious chance to take the lead when Milito headed Javier Zanetti's cross against the bar.
CSKA seized their lifeline when Berezutsky headed home Cauna's corner three minutes from time, leaving only the final whistle in Lille to confirm their place in the last 16.