Kostyuk defeated Mirra Andreeva to win the Madrid Open and capture her first WTA 1000 title of her career