There is a multi-level list.
Those. if the list is not opened, empty space remains under the footer. If you add styles to the popup <ul> lists:
max-height: 500px; overflow-x: hidden; overflow-y: auto; then an anomaly appears in the form of empty space below the list. Under the footer, respectively, disappears.
Help me to understand.