Thermodynamics of Gaussian fluctuations and paraconductivity in layered superconductors