KYIV, Ukraine — The surgeons had made the long incision down the middle of the child’s chest, cut the breastbone to spread the rib cage and reach the heart when the lights went out at the Heart Institute in Kyiv.
Generators kicked on to keep life-support equipment running on Wednesday night as nurses and surgical assistants held flashlights over the operating table, guiding the surgeons as they snipped and cut, working to save a life under the most trying of conditions.
“The electricity went out completely in the operating room,” said Borys Todurov, the institute’s director, who posted a video of the procedure online to illustrate the difficulties doctors are facing.
“So far we are coping on our own,” he said. “But every hour is getting harder. There has been no water for several hours now. We continue to do only emergency operations.”
Russia’s attacks on Ukraine’s energy grid are taking a growing toll on the nation as the damage adds up. After each strike, repairs become more challenging, blackouts can last longer and the danger for the public increases.
The scene in the Kyiv hospital echoes those in medical facilities around the country, a vivid illustration of the cascading toll Russia’s attacks are having on civilians far from the front lines.
Two kidney transplant operations were being performed at the Cherkasy Regional Cancer Center in central Ukraine when the lights went out, Kyrylo Tymoshenko, the deputy head of the Ukrainian president’s office, said on the Telegram messaging app. The generators were switched on, and the transplants were successful, he said.
“Ukrainian doctors are invincible!” he said.
In the central city of Dnipro, an aeronautics and industrial hub with a population of around one million people, the strikes caused Mechnikov Hospital to lose power, a first since the war began, doctors said.
“We’ve been preparing for this moment for two years,” said one doctor, who requested anonymity because the doctor was not authorized to talk to the news media.
The hospital’s I.C.U. and operating rooms are working on generators, the doctor added, but the living quarters are without power.
Christopher Stokes, the head of Doctors Without Borders in Ukraine, said that the strikes on infrastructure were putting “millions of civilians in danger.” They can feed a vicious loop, in which people living without heat and clean water are more likely to need medical care but that care itself is harder to deliver.
“Energy cuts and water disruptions also will affect people’s access to health care as hospitals and health centers struggle to operate,” he said.
At the Kyiv hospital, surgeons donned headlamps and continued to work in the dark. The operation was a success, Mr. Todurov said.
“Thanks to all the staff for their well-coordinated and selfless work,” he said. “In this unusual situation, we did not lose a single patient.”
Natalia Yermak contributed reporting from Dnipro, Ukraine.