Magnetic structures in the locally inverted interlayer coupling region of a bilayer magnetic system