A distinctive feature of layered conductors is the presence of low-energy electronic collective modes of the conduction electrons. This affects the dynamic screening properties of the Coulomb interaction in a layered material. We study the consequences of the existence of these collective modes for superconductivity. General equations for the superconducting order parameter are derived within the strong-coupling phonon-plasmon scheme that account for the screened Coulomb interaction. Specifically, we calculate the superconducting critical temperature Tc taking into account the full temperature, frequency and wave-vector dependence of the dielectric function. We show that low-energy plasmons may contribute constructively to superconductivity. Three classes of layered superconductors are discussed within our model: metal-intercalated halide nitrides, layered organic materials and high-Tc oxides. In particular, we demonstrate that the plasmon contribution (electronic mechanism) is dominant in the first class of layered materials. The theory shows that the description of so-called "quasi-two-dimensional superconductors" cannot be reduced to a purely 2D model, as commonly assumed. While the transport properties are strongly anisotropic, it remains essential to take into account the screened interlayer Coulomb interaction to describe the superconducting state of layered materials.