Why do you assume the costs have been enormous and the gains very small in the eyes of the Kremlin? Ukraine has been devastated, big chunks of the country occupied, no way Ukraine will become a member of NATO while this conflict lingers on. That's probably considered a smashing success by some...