A string of political victories and deep-strike successes has bolstered confidence in Ukraine amid its long-running war with Russia.