@keyframes arrow {
    from {
        left: -11px;
    }
    50% {
        left: -15px;
    }
    to {
        left: -11px;
    }
  }

.card__icon-button{
   /* — для кнопки, оборачивающей иконку */
  border: none;
  padding: 0;
  height: 34px;
  background: transparent;
  transition: outline 0.3s ease;
  
  &:focus {
    outline: none;
  }

  &:focus-visible {
    outline: 2px solid var(--color-text);
  }
}

.sparks {
  opacity: 0;
}

.contour{
  fill: var(--color-text);
  transition: 0.1s linear;
}

.like-icon .core {
  fill: transparent;
  transition: fill 0.3s 0.03s linear;
}

.like-icon:hover .core {
  fill: var(--color-text);
  transition: fill 0.3s linear;
}

.like-icon .main-body {
  fill: transparent;
  transition: 0.3s linear;
}

.like-icon:hover .main-body {
  fill: var(--color-text);
  transition: 0.3s 0.05s linear;
}

.like-icon:active .core {
  fill: var(--filling);
  transition: 0.3s linear;
}
  
.like-icon:active .main-body {
  fill: var(--filling);
  transition: 0.3s 0.05s linear;
}

.like-icon.is-liked .core {
  fill: var(--filling);
  transition: fill 0.3s linear;
}

.like-icon.is-liked .main-body {
  fill: var(--filling);
  transition: fill 0.3s 0.05s linear;
}

.like-icon.is-liked .contour {
  fill: var(--filling);
  transition: 0.3s 0.06s linear;
}

.like-icon.is-liked .heart {
  animation: heartbeat 0.3s ease-in 0.1s alternate;
}

@keyframes heartbeat {
  from {
    scale: 1;
  }
  50% {
    scale: 1.5;
    translate: -25% -25%;
  }
  to {
    scale: 1;
  }
}

.like-icon.is-liked .sparks {
  animation: sparks 0.3s ease-in 0.3s alternate;
}

@keyframes sparks {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes filter-image {
  to {
    filter: hue-rotate(360deg);
  }
}
