Hardy inequality in the generalized Lebesgue spaces