Solution by Sergey Gogolev

Yandex.School.2013: 2-css