Please tell me what could be the problem of the following nature?
Media queries overwrite the styles of the elements from a given container. In the debugger, styles, media queries below are installed initially and are therefore not applied. Other containers, this is not a problem.
When the layout is built using SASS, for the test moved the problematic piece of code in pure css and it worked.