Elements of cosmological thermodynamics. (2018)