Steel frame, which
If necessary, the staircase can be strengthened with a steel frame, which is also attached to the wall, and then to the wooden beam of the stairs.
If the stairs you make are folding, then in the attic opening you need to install special mounts to which it will be attached in a folded state.