A teenager who collapsed into the road near a primary school is fighting for her life after being hit by a car, police said.