/* Базовые стили для элементов */
.fade-up, .fade-down, .fade-left, .fade-right, .fade-in {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}


/* Анимация для up */
/* .animate-up {
  animation: fadeInUp 0.5s forwards;
} */

@keyframes fadeInUpSmall {
  from {
    opacity: 0;
    transform: translateY(150px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUpMedium {
  from {
    opacity: 0;
    transform: translateY(250px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUpLarge {
  from {
    opacity: 0;
    transform: translateY(350px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px){
.animate-up {
  animation: fadeInUpSmall 0.5s forwards;
}
}
@media (min-width: 768px) and (max-width: 1919px){
.animate-up {
  animation: fadeInUpMedium 0.5s forwards;
}
}

@media (min-width: 1920px){

	.animate-up {
		animation: fadeInUpLarge 0.5s forwards;
	}
}



/* Анимация для down */
/* .animate-down {
  animation: fadeInDown 0.5s forwards;
} */

@keyframes fadeInDownSmall {
  from {
    opacity: 0;
    transform: translateY(-150px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInDownMedium {
  from {
    opacity: 0;
    transform: translateY(-250px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInDownLarge {
  from {
    opacity: 0;
    transform: translateY(-350px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px){
.animate-down {
  animation: fadeInDownSmall 0.5s forwards;
}
}
@media (min-width: 768px) and (max-width: 1919px){
.animate-down {
  animation: fadeInDownMedium 0.5s forwards;
}
}

@media (min-width: 1920px){

	.animate-down {
		animation: fadeInDownLarge 0.5s forwards;
	}
}

/* Анимация для left */


@keyframes fadeInLeftSmall {
  from {
    opacity: 0;
    transform: translateX(150px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fadeInLeftMedium {
  from {
    opacity: 0;
    transform: translateX(250px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fadeInLeftLarge {
  from {
    opacity: 0;
    transform: translateX(350px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 767px){
.animate-left {
  animation: fadeInLeftSmall 0.5s forwards;
}
}
@media (min-width: 768px) and (max-width: 1919px){
.animate-left {
  animation: fadeInLeftMedium 0.5s forwards;
}
}

@media (min-width: 1920px){

	.animate-left {
		animation: fadeInLeftLarge 0.5s forwards;
	}
}

/* Анимация для right */

@keyframes fadeInRightSmall {
	from {
		opacity: 0;
		transform: translateX(-150px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes fadeInRightMedium {
	from {
		opacity: 0;
		transform: translateX(-250px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes fadeInRightLarge {
	from {
		opacity: 0;
		transform: translateX(-350px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@media (max-width: 767px) {
  .animate-right {
    animation: fadeInRightSmall 0.5s forwards;
  }
}

@media (min-width: 768px) and (max-width: 1919px) {
  .animate-right {
    animation: fadeInRightMedium 0.5s forwards;
  }
}

@media (min-width: 1920px) {
  .animate-right {
    animation: fadeInRightLarge 0.5s forwards;
  }
}



/* Анимация появления */
.animate-fade-in {
  animation: fadeIn 3s forwards; 
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}