Finally finished assembling the bed. It turned out pretty decent. The cost is around 10k, so here's a life hack if you want to save a bit when furnishing your apartment.

I used 40x20 profile and M10 bolts, so the bed can easily support five 150-kilogram people.

Not that it was the main goal, but it's better to over-engineer in such matters.