A busy road in Gourock is set to close for more than two weeks to allow maintenance work to be carried out on a railway bridge.