Protesters blockading key parts of Hong Kong have accepted talks with the government, hours after Chief Executive CY Leung rejected calls to step down.

Mr Leung offered the talks late on Thursday, responding to a deadline.

Protesters have been occupying parts of the city for several days. They are angry at China's plan to vet candidates for elections in 2017.

Beijing has thrown its full support behind Mr Leung, calling the protests illegal and "doomed to fail".

On Friday Hong Kong temporarily closed government offices in the main protest-hit area, saying staff should work from home because access roads to central offices were blocked.

Protest numbers have been swelling at night and falling during the day. On Friday morning, smaller groups remained on the streets.

'Serious consequences'

Late on Thursday, shortly before a deadline set by protesters for his resignation, Mr Leung said his government would hold talks with student leaders.

Hong Kong's top civil servant, Chief Secretary Carrie Lam, would open a dialogue as soon as possible, he said, without giving a time frame.

"I will not resign because I have to continue with the work for elections," he said, adding that any attempts by protesters to occupy buildings would lead to "serious consequences".

Protesters – a mixture of students, supporters of the Occupy Central democracy movement and others – have been blockading three areas of Hong Kong, including the Central business district, since Sunday.

They had threatened to seize buildings, but now say they will join the government talks.

The Hong Kong Federation of Students (HKFS) said it would have a public meeting with Ms Lam, but insisted that Mr Leung should step down, saying he had "lost his integrity".

Occupy Central, meanwhile, issued a statement saying it hoped "the talks can provide a turning point in the current political stalemate".

But it also called for Mr Leung's resignation, saying he was "the one responsible for the stalemate".

Pro-democracy protesters keep a road open outside government offices in Hong Kong on 3 October 2014 Transport has been disrupted but these protesters kept a road open near government HQ
A boy takes pictures as he sits next to a wall covered with messages written by protesters outside the government headquarters in Hong Kong on 2 October 2014
Protesters have covered the wall of this government building with messages

'Sensible way'

At the heart of the row is how Hong Kong elects its next leader. In August, Beijing ruled that while Hong Kong residents would have a vote, their choice of candidates would be restricted by a committee.

The protesters say this falls short of the free elections they are seeking.

These protests are being seen as a major challenge to Beijing's rule. Senior Chinese leaders have described them as illegal.

Communist Party mouthpiece People's Daily, in its latest piece, said Beijing's ruling in August was "the necessary decision, and the only decision".

Reports citing Hong Kong government sources suggest officials plan to wait the protesters out and hope their campaign loses steam, after witnessing how the police use of tear gas at the weekend brought more people out.

Writing in the South China Morning Post, Hong Kong's last British governor before the territory was handed back to China in 1997, Chris Patten, said that transparent consultations were the way forward now.

"Under the existing plans, there is supposed to be a second phase of consultations on democratic development to follow what turned out to be a counterfeit start to the process," he wrote.

"Hong Kong's government should now offer its people a proper second round of consultation, one that is open and honest.

"Dialogue is the only sensible way forward. Hong Kong's citizens are not irresponsible or unreasonable. A decent compromise that allows for elections that people can recognise as fair, not fixed, is surely available."

Grey line

Hong Kong democracy timeline

  • 1997: UK gives Hong Kong back to China under a 1984 agreement giving it "a high degree of autonomy" for 50 years
  • 2004: China says it must approve any changes to Hong Kong's election laws
  • June-July 2014: Pro-democracy activists hold an unofficial referendum on political reform; both sides hold large rallies
  • 31 August 2014: China says it will allow direct elections in 2017 but will pre-approve candidates
  • 22 September 2014: Student groups launch a week-long boycott of classes
  • 28 September 2014: Occupy Central and student protests join forces and take over central Hong Kong
  • 2017: Direct elections for chief executive due to take place
  • 2047: Expiry of current agreements