A laser system for ophthalmic surgery includes a laser source, to generate a pulsed laser beam, an XY scanner, to receive the pulsed laser beam, and to output an XY-scanning beam, scanned in two directions transverse to a Z axis, a Z scanner, to receive the XY-scanning beam, and to output an XYZ-scanning beam, scanned in addition along the Z axis, the Z scanner including a first lens group to output a beam having an intermediate focal plane, and a movable lens group to receive the beam through the intermediate focal plane and to collimate the beam in a variable manner, and an objective to receive the collimated beam from the Z scanner and to focus the beam into a focal spot in a target region.