Gradient on borders

Dear friends,

Could you please help, how to make the gradient on the borders like on an illustration?