Budgetary determinants of ensuring the resilience of territorial communities: military adaptation and post-war recovery guidelines | Synapse