In problem 5, RMO 2003 a specific part of the solution depends on the following $$\dfrac{BD}{DC} = \dfrac{AE}{EC} = \dfrac{AF}{FB} = \dfrac{DC}{BD}$$
It is proven that $AB \parallel DE \: , BC \parallel FE \:, AC \parallel FD \:\:\:$ So I can see that $$\Delta EDC \sim \Delta ABC \implies \dfrac{BC}{DC} - 1 = \dfrac{AC}{EC} - 1$$
But how come this ratio continues to the next line $FD$?
All equalities directly follow from the intercept theorem (take a look at https://en.wikipedia.org/wiki/Intercept_theorem) . You don't need to search for similar triangles.