pavit I was able to find out what the problem was. I created css classes to hide modules on different screens, I had to create new ones, because standard hidden or visible bootstrap classes did not work for such purposes.
Now the page looks fine only on PC, and on mobile devices is still crooked.
In order to hide the modules, I used such classes as none-xs none-sm none-md none-lg with the value display: none, because standard classes like these do not work on this template.
Tell me, what and how can replace such classes-if they do not work?