html, body {
    scroll-padding: 60px;
}

@media (max-width: 768px) {
    html, body {
        scroll-padding: 80px;
    }  
}