DETROIT — The Detroit Red Wings have agreed to terms with winger Tomas Tatar on a $21.2 million, four-year contract.

The 26-year-old Czech native led Detroit with 25 goals last season and also had 21 assist for 46 points. He has 20-plus goals in each of the past three seasons, and in 345 NHL games, he has 99 goals and 95 assists.

The team announced the deal Friday, a day after Tatar's arbitration hearing and before the ruling was to be handed down. Tatar will count $5.3 million against the salary cap through 2020-21.

Tatar's cap hit moving forward is the same as Tampa Bay Lightning winger Ondrej Palat, who also signed a long-term deal as a restricted free agent.