Thank you very much for everyone, I've read all your posts and calculated some values of impedances for the circuit for various frequencies, and finally understood how it works. The gain in the plots Ericgibbs posted look a lot like the results of my calculations for the given values of capacitances.