Kostornaia won both short (76.55) and free routines (159.45), with 236.00 points total.
Zagitova won silver medal with a total of 216.06 points, while US competitor Mariah Bell got bronze with 212.89.
Another representative of Russia, Maria Sotskova, was 11th with 144.89 points.