Kirk Cousins threw for a career-high 509 yards and four touchdowns, including a 45-yard match-winning pass, to give Atlanta a 36-30 NFL win over Tampa Bay.