DETROIT -- Matthew Stafford looked like his old self and gave the Detroit Lions a desperately needed victory.
Stafford had three touchdown passes, including a one-yard game-winner to Titus Young with 20 seconds remaining, to give the Lions a 28-24 victory over the Seattle Seahawks at Ford Field on Sunday.
Stafford also ran for a score and finished with 352 yards passing while completing 34 of 49 attempts. Stafford tossed 41 touchdown passes last season but had just five in Detroit's first six games this season.
Young, replacing the injured Nate Burleson, caught nine passes for 100 yards and two scores.
Seattle running back Marshawn Lynch, who entered the game as the league's fourth-leading rusher with 652 yards, had a career-long 77-yard touchdown run in the first half. He finished with 105 yards on 12 carries.
Rookie Seattle quarterback Russell Wilson completed 24 of 34 passes for 217 yards and two touchdowns.
Stafford scored on a one-yard bootleg, his third rushing touchdown this season, with 11:35 remaining to give the Lions (3-4) a 21-17 lead. That completed a nine-play, 56-yard drive set up by Ricardo Silva's first career interception.
Wilson then led Seattle on a 12-play, 87-yard drive, capped by a 16-yard scoring pass to tight end Zach Miller, to give his team a 24-21 lead. Wilson extended the drive by finding Golden Tate for a six-yard gain on a fourth-and-two from the Lions' 32-yard line. Miller made a one-handed grab with 5:27 remaining to complete the drive.
But Stafford spoiled Seattle's bid for a road victory by engineering a 16-play, 80-yard drive. He finished it off with his third-down scoring pass to Young.
The Seahawks (4-4) scored two touchdowns early in the second quarter to take a 17-14 halftime lead.
Seattle benefited from an illegal formation penalty against Detroit on a punt attempt for its first points. That extended the Seahawks' first possession, and they cashed in on Steven Hauschka's 23-yard field goal. The Lions responded with a nine-play, 82-yard drive that ended with Stafford's six-yard scoring pass to rookie Ryan Broyles as the first quarter expired.
Detroit's lead lasted just 17 seconds as Lynch took a pitch from Wilson, burst through a big hole on the right side and outran the defense on his 77-yard score. Seattle increased its lead to 17-7 with 11:39 left in the half on Wilson's nine-yard pass to Sidney Rice. That drive was aided by a 41-yard pass interference penalty against Lions rookie Jonte Green.
Stafford pulled the Lions within three when he connected with Young on a 46-yard scoring pass. Young beat Seahawks cornerback Richard Sherman down the right sideline for his second touchdown this season.
NOTES: The longest previous run by Lynch was 67 yards during the 2010-11 playoffs against New Orleans. His previous best during the regular season was a 56-yard gain against Philadelphia on Dec. 30, 2007. ... Injuries sidelined three Lions defensive starters -- linebacker DeAndre Levy (hamstring) and defensive backs Jacob Lacey (concussion) and Amari Spievey (concussion). Backup Seahawks wide receivers Doug Baldwin (ankle) and Braylon Edwards (knee) were also inactive. ... The Lions play their next two games on the road against Jacksonville and Minnesota. The Seahawks have home games against the Vikings and New York Jets prior to their bye week.