Сергей Ракипов,
<!DOCTYPE html>
<html lang="ru_RU">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<style>
body{
background: #000;
font-family: Verdana;
font-size: 16px;
}
.blok {
margin: 40px 40px 40px 40px;
display: flex;
align-items: center;
}
.tekst {
margin: 0px 20px 0px 0px;
}
.tekst a {
color:#22AD1D;
}
.tekst a:hover {
color:#fff;
}
.ikonka {
width: 94px;
height: 94px;
}
.ikonka_pryas {
background-image: url(http://rakipov.ru/files/prays_94.png);
background-repeat: no-repeat;
background-position:0px ;
}
.ikonka_pryas:hover {
background-image: url(http://rakipov.ru/files/prays_94.png);
background-repeat: no-repeat;
background-position:-94px;
}
@media (max-width:640px){
.ikonka {
width: 64px;
height: 64px;
}
.ikonka_pryas {
background-image: url(http://rakipov.ru/files/prays_64.png);
background-repeat: no-repeat;
background-position:0px;
}
.ikonka_pryas:hover {
background-image: url(http://rakipov.ru/files/prays_64.png);
background-repeat: no-repeat;
background-position:-64px;
}
}
</style>
</head>
<body>
<div class="blok">
<div class="tekst">
<a href="#" class="ssilka_prays">ПРАЙС ЛИСТ</a>
</div>
<div class="ikonka ikonka_pryas">
</div>
</div>
<script>
jQuery(document).ready(function($) {
$('.ssilka_prays').on('mouseenter mouseleave', function(event) {
let backgroundPositionX = event.type === 'mouseleave' ? '' : window.matchMedia('(min-width: 640px)').matches ? '-94px' : '-64px';
$('.ikonka_pryas').css({backgroundPositionX});
})
});
</script>
</body>
</html>