The Declaration of Independence of the Republic of Crimea written in 2014 explicitly mentions Kosovo as a precedent for unilateral declarations of independence. This declaration of independence was immediately recognized by Russia.
We, the members of the parliament of the Autonomous Republic of Crimea and the Sevastopol City Council, with regard to the charter of the United Nations and a whole range of other international documents and taking into consideration the confirmation of the status of Kosovo by the United Nations International Court of Justice on July 22, 2010, which says that unilateral declaration of independence by a part of the country does not violate any international norms, make this decision jointly:
Despite this, Russia does not recognize Kosovo as independent from Serbia, and has been rather vocal about this fact.
How does Russia justify following a precedent that it does not agree with? Why doesn't Russia now recognize Kosovo, given that it apparently now has no issue with unilateral declarations of independence?