Marketa Vondrousova edged a three-set battle to clinch her first title since winning Wimbledon in 2023.