CSS переполнен скрытый абсолютный ребенок

It's completely impossible to do what you want with both
overflow: hidden and position: relative on the parent div.
Instead you can introduce an extra child div and move overflow: hidden to that.
Index out of bounds