Diagnostics Of Vulnerability Of Dwellings And Companies And Adaptation Recommendations