works incorrectly with links to the sections on the current page. Navbar has become sticky, but now when clicking on any link, the desired section appears at the top of the page, partly covered by navbar, like this:
Try adding a div inside your section to which you want to jump.
Add ID to that div rather than to the section. Make sure your section is relative and then position the div “Absolute” and offset it on top for “-100px” (100 is an example for whatever the height of your nav is) and then it will scroll just the way you want.