Relativistic effects in photoabsorption of the outer atomic shells