On dynamics of multi-phase elastic-plastic media