&__form{ width: 100%; max-width: 545px; height: 57px !important; border:1px solid white; display: flex; margin-bottom: 57px; } I do not understand what is wrong: when you change the width of the window to a smaller one at a certain moment and when you switch to the site version for tablets and mobile phones, the height of the form is 0.