Hyperbolic KAM theory, flow-box coordinates, Poincar\'e--Melnikov method