By Alastair Macdonald and Pavel Polityuk
BRUSSELS/KIEV (Reuters) - Russia, Ukraine and the European Union are likely to conclude an accord on Thursday that would see Moscow resume gas supplies to its ex-Soviet neighbour over the winter, EU and Ukrainian officials said.
Nothing is certain after months of hard bargaining. But Russian negotiators, who broke off three-way talks overnight saying a deal depended on firmer EU commitments to Kiev to help it pay, returned to Brussels to renew trilateral discussions.
European Commission President Jose Manuel Barroso, in a passing comment during formal remarks ahead of his departure from office on Friday, said: "Apparently we have a deal."
Energy Minister Alexander Novak, who flew back from Moscow with Alexei Miller, the head of state gas firm Gazprom, was quoted by Russian news agencies as saying he hoped all the necessary documents would be signed at meetings that began in the EU executive's headquarters after 7 p.m. (1800 GMT).
His Ukrainian counterpart Yuri Prodan was quoted saying: "In all likelihood, all the documents will be signed today."
EU officials said both Russia and Ukraine had bargained hard for commitments from the Western bloc, with Moscow looking for EU cash to help Ukraine pay off debts to Gazprom and the Kiev authorities anxious to get a deal that they could present to domestic voters as not overpaying for vital Russian supplies.
After breaking off the talks in the early hours, Novak and Miller said that an outline accord was in place but they wanted the European Union to guarantee Ukraine's advance payments. Novak said a deal could be signed later in the day.
Ukrainian Prime Minister Arseny Yatseniuk said in Kiev that the EU had agreed to serve as guarantor for Kiev in holding Russia to an agreement, notably on the price Ukraine would pay.
Joint documents laying down a common understanding have been prepared and are now with the governments in Moscow and Kiev for approval, the Brussels-based European Commission said in a statement.
Yatseniuk, in figures later confirmed by Moscow, said Ukraine would pay $378 per 1,000 cubic metres to the end of 2014 and $365 in the first quarter of 2015. He said Kiev was ready to pay off debts for gas immediately after any deal was signed.
A total of $1.45 billion (875 million pounds) would be paid immediately and a further $1.65 billion paid by the end of the year, he said.
Novak insisted that Ukraine would still have to pay up front for new deliveries to see its 45 million people through winter. Moscow expects some $1.6 billion for gas to be supplied.
Some critics of Russia question whether its motivation is financial or whether prolonging the wrangling with ex-Soviet Ukraine and its Western allies suits Moscow's diplomatic agenda.
Ukraine is in discussions with existing creditors the EU and the IMF.
German Chancellor Angela Merkel, concerned about Russian gas supplies to the rest of Europe which come via Ukraine, has spoken of bridging finance for Kiev. Russian negotiators said they wanted to see a signed agreement.
TEMPERATURES DROP
The gas cut-off has had little impact for months. But pressure is mounting for a deal as temperatures start to drop below freezing.
European Energy Commissioner Guenther Oettinger, who has been mediating, leaves office on Friday, making way for a new European Commission.
If he cannot broker a solution, it will be down to his Slovak successor, Maros Sefcovic, who takes office on Saturday.
The two sides came close to an agreement in September, but last week differences were wide.
Weekend elections returned a pro-Western parliament in Kiev, potentially stoking tensions with Moscow, although Russia's EU envoy, Vladimir Chizhov, said on Thursday the mood could be more relaxed now the vote had taken place.
Ukraine's Naftogaz company has set aside $3.1 billion in a special escrow account to pay the debt.
Kiev says it is working to raise more money from all possible sources of financing, including the EU. The Commission is considering Ukraine's request, made last week, for a further loan of 2 billion euros.
Russia provides around a third of the European Union's gas, roughly half of which is pumped via Ukraine.
Ukraine in turn relies on Russia for around 50 percent of its own gas and despite storage has a winter shortfall of around 3 billion to 4 billion cubic metres, depending on the weather.
For Russia, the gas sector contributes approximately a fifth of the national budget.
Sanctions on Russia, which EU officials decided to leave unchanged on Tuesday while the conflict in Ukraine continues, are sapping an already weak economy.
(Additional reporting by Katya Golubkova, Lidia Kelly and Vladimir Soldatkin in Moscow and Tom Koerkemeier, Phil Blenkinsop, and Foo Yun Chee in Brussels; Writing by Dale Hudson and Alastair Macdonald; Editing by Dominic Evans)