.academy {
  position: relative;
  padding: 140px 0;
}

.academy__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.academy__subtitle {
  margin-bottom: 40px;
  font-size: 28px;
  line-height: 34px;
}

.academy__inner {
  position: relative;
  z-index: 1;
  width: 50%;
}

.academy__img {
  width: 100%;
}

.academy__img-head {
  position: absolute;
  width: 100%;
  z-index: 2;
  animation: floating 10s ease-in-out infinite;
  will-change: transform;
}

@keyframes floating {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(5px, -10px) rotate(3deg);
  }
  50% {
    transform: translate(8px, -5px) rotate(-2deg);
  }
  75% {
    transform: translate(-6px, -12px) rotate(4deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

@media (max-width:1200px) {
  .academy {
    padding: 64px 0;
  }
}

@media (max-width:768px) {
  .academy__subtitle {
    margin-bottom: 36px;
    font-size: 18px;
    line-height: 24px;
  }
}

@media (max-width:520px) {
  .academy__content {
    flex-direction: column;
    gap: 0;
  }
  .academy__inner {
    width: 100%;
  }
  .academy__btn {
    width: 100%;
  }
  .academy__title {
    text-align: center;
  }
}