Hearts denied Dunfermline their first win in 11 games with a 2-1 victory at East End Park in the Clydesdale Bank Premier League.
The defeat leaves Dunfermline still searching for their first home league victory of the season and six points behind Hibs with only five games left to play.
Gary Glen and Darren Barr scored within three minutes of each other at the start of a disastrous second half for the home side.
Hearts seemed to coasting to victory before a late Marius Zaliukas own goal ensured a nervy final ten minutes, but the visitors held on.
Dunfermline, managed by former Hearts boss Jim Jefferies, enjoyed the better of the attacking play in the opening stages, but ultimately paid the price for failing to do enough with their possession and wilting at the pressure from Hearts.
The hosts had the game’s first meaningful opportunity but Kirk could only nod Austin McCann’s left-wing cross over the bar.
Andy Kirk was unlucky to see an ambitious effort from the corner of the penalty area swerve just past the front post.
Right on the stroke of half-time the visitors passed up the best chance from the opening 45 minutes. Austin McCann’s attempt to head the ball back to Chris Smith came up short with Glen intercepting and trying to round the goalkeeper. The striker managed to knock the ball past Smith but put too much on the touch and Dunfermline were able to clear.
Hearts’ first-half performance reinforced the theory they were just at East End Park to make up the numbers; the game being supposedly meaningless for Hearts with little left to fight for in the league and a cup semi-final on the horizon. The opening six minutes of the second half erased that notion.
Three minutes after the restart a Scott Robinson cross was knocked down for Rudi Skacel to unleash a first-time volley that stung the palms of Smith and went out for a corner.
From the resulting set-piece Dunfermline failed to clear and Glen was able to slide the ball into the far corner of the net from a tight angle.
Three minutes later Hearts had another. Ryan McGowan’s header at the back post was cleared off the line by Alex Keddie, but when the ball was knocked back into the six yard box the defender lost the aerial battle with his counterpart Barr who headed Hearts into a two-goal advantage.
Hearts continued to knock the ball around with confidence and a slick move saw Smith have to be alert again to deny Glen netting his second of the game.
The match looked to be petering out to an inevitable conclusion until suddenly Dunfermline found themselves back in with a chance.
A cross to the back post found substitute Joe Cardle in space. The winger fired the ball back across goal and appeared to be turned in via a deflection off Hearts captain Zaliukas.
The full time whistle appeared imminent when Dunfermline were awarded a free-kick right on the edge of the penalty area, but Cardle could only lift his effort over the crossbar.
Dunfermline: Smith, McMillan, Dowie, Keddie, McCann, Willis (Buchanan 75), Hutton, Mason, Kerr (McDougall 63), Graham, Kirk (Cardle 63). Subs Not Used: Fernandez, Thomson, Young.
Hearts MacDonald, McGowan, Barr, Zaliukas, Grainger, Hamill, Robinson, Black (Prychynenko 89), Driver (Novikovas 83), Glen (Santana 72), Skacel. Subs Not Used: Ridgers, Gordon Smith, Morton, Holt.
Referee: Stephen Finnie.