Water Sorting Puzzle

Sorting puzzles are not as easy as it seems at first glance. At first, you are offered only four bottles, in which liquids of different colors are poured in layers. The point is to separate the liquids and get three bottles of pure liquids and one empty. With each level, there are more and more layers. The point of no return is getting closer, after which it is no longer possible to win.