Nanite destroys shadows

Ok, I found a solution: you need to enable “Preserve Area” in nanite settings of mesh