.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero {
  width: 100%;
}

.hero__content {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  -ms-border-radius: 20px;
  -o-border-radius: 20px;
}

.hero__content::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  background: rgba(0, 0, 0, 0.08);
  z-index: 5;
}

.hero__picture {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 5;
}

.hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__car-box {
  position: absolute;
  z-index: 4;
  width: 70%;
  bottom: 18%;
  left: 6%;
}

.hero__car {
  aspect-ratio: 16/9;
  object-fit: contain;
  width: 100%;
  bottom: 21%;
  transform-origin: 26% 72%;
  animation: car-lift 3.8s infinite ease-in-out;
  -webkit-animation: car-lift 3.8s infinite ease-in-out;
}

.hero__car-wheel {
  position: absolute;
  width: 16%;
  transform-origin: center;
  animation: wheel-spin 3.8s infinite linear;
  -webkit-animation: wheel-spin 3.8s infinite linear;
}

.hero__car-wheel_back {
  bottom: 14%;
  left: 24.5%;
}

.hero__car-wheel_front {
  bottom: 14%;
  right: 17.5%;
}

.hero__bird-box {
  z-index: 5;
  position: absolute;
  width: 25%;
  top: 10%;
  right: 10%;
}

.hero__bird {
  width: 100%;
  object-fit: contain;
  object-position: center;
  aspect-ratio: 1/1;
  transform-origin: center;
  animation: bird-soar 7.2s infinite ease-in-out;
  -webkit-animation: bird-soar 7.2s infinite ease-in-out;
}

.hero__pyramids-box {
  z-index: 2;
  position: absolute;
  width: 40%;
  bottom: 34%;
  left: -5%;
}

.hero__pyramids {
  width: 100%;
  object-fit: contain;
  object-position: bottom;
}

.hero__sfinx-box {
  display: block;
  z-index: 3;
  position: absolute;
  width: 20%;
  bottom: 35%;
  left: 22%;
  opacity: 0;
  animation: intro-drop 0.9s 0.85s ease-out forwards;
  -webkit-animation: intro-drop 0.9s 0.85s ease-out forwards;
}

.hero__sfinx {
  width: 100%;
  object-fit: contain;
  object-position: bottom;
}

/* начало анимации появления */
.hero__pyramids-box {
  opacity: 0;
  animation: intro-drop 0.9s 0.15s ease-out forwards;
  -webkit-animation: intro-drop 0.9s 0.15s ease-out forwards;
}

.hero__car-box {
  animation: intro-drive 1.8s linear forwards;
  -webkit-animation: intro-drive 1.8s linear forwards;
}

.hero__bird-box {
  opacity: 0;
  animation: intro-bird 0.95s 2.45s ease-out forwards;
  -webkit-animation: intro-bird 0.95s 2.45s ease-out forwards;
}

/* старые стили тексат  */
/* поменять класс  */
.hero__content-text {
  position: absolute;
  top: 110px;
  left: 20px;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  z-index: 5;

}

.hero__title {
  font-family: var(--unbounded);
  font-size: 20px;
  line-height: 120%;
  color: var(--color-secondary);
  line-height: 120%;
  /* margin-bottom: 25px; */
}

.hero__title>span {
  background-color: var(--color-pink);
  padding: 0 12px;
  margin-left: 6px;
}

.subtitle {
  font-family: var(--inter);
  font-size: 16px;
  color: var(--color-secondary);
  line-height: 120%;

}

.hero__btn-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

/* Текст появляется после картинок */
.hero__title,
.subtitle,
.hero__btn-box {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s ease forwards;
}

.hero__title {
  animation-delay: 1.2s;
}

.subtitle {
  animation-delay: 1.5s;
}

.hero__btn-box {
  animation-delay: 1.8s;
}

.hero__btn-box-pc-block {
  display: none;
}

.hero__btn-box-mb-block {
  position: absolute;
  bottom: 15px;
  left: 20px;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@keyframes intro-drop {
  0% {
    opacity: 0;
    transform: translateY(2.5%);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes intro-drive {
  0% {
    transform: translateX(-25%);
    -webkit-transform: translateX(-25%);
    -moz-transform: translateX(-25%);
    -ms-transform: translateX(-25%);
    -o-transform: translateX(-25%);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes intro-bird {
  0% {
    opacity: 0;
    transform: translate3d(70px, -90px, 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* конец анимации появления */


@keyframes wheel-spin {
  0% {
    transform: rotate(0deg);
  }

  18% {
    transform: rotate(140deg);
  }

  32% {
    transform: rotate(210deg);
  }

  52% {
    transform: rotate(520deg);
  }

  68% {
    transform: rotate(610deg);
  }

  82% {
    transform: rotate(920deg);
  }

  100% {
    transform: rotate(1080deg);
  }
}

@keyframes car-lift {

  0%,
  18%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  32% {
    transform: translateY(-0.2%) rotate(-0.5deg);
  }

  52% {
    transform: translateY(-0.5%) rotate(-1.2deg);
  }

  68% {
    transform: translateY(-0.25%) rotate(-0.7deg);
  }

  82% {
    transform: translateY(-0.65%) rotate(-1.6deg);
  }
}

@keyframes bird-soar {

  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-3deg);
  }

  20% {
    transform: translate3d(10px, -12px, 0) rotate(1deg);
  }

  45% {
    transform: translate3d(-8px, -22px, 0) rotate(-2deg);
  }

  70% {
    transform: translate3d(14px, -10px, 0) rotate(2deg);
  }

  85% {
    transform: translate3d(-4px, 4px, 0) rotate(-1deg);
  }
}

@media (min-width: 355px) {
  .hero__title {
    font-size: 25px;
  }
}

@media (min-width: 600px) {
  .hero__picture {
    aspect-ratio: 16 / 8;
  }

  .hero__car-box {
    width: 40%;
    bottom: 0%;
    left: 8%;
  }

  .hero__car-wheel {
    position: absolute;
    width: 15%;
  }

  .hero__car-wheel_back {
    bottom: 16.3%;
    left: 25%;
  }

  .hero__car-wheel_front {
    bottom: 16.3%;
    right: 18%;
  }

  .hero__bird-box {
    z-index: 5;
    width: 12%;
    top: 10%;
    right: 10%;
  }

  .hero__pyramids-box {
    z-index: 2;
    position: absolute;
    width: 20%;
    bottom: 37%;
    left: 8%;
  }

  .hero__sfinx-box {
    display: block;
    z-index: 3;
    position: absolute;
    width: 18%;
    bottom: 35%;
    left: 22%;
    opacity: 0;
    animation: intro-drop 0.9s 0.85s ease-out forwards;
    -webkit-animation: intro-drop 0.9s 0.85s ease-out forwards;
  }

  .hero__sfinx {
    width: 100%;
    object-fit: contain;
    object-position: bottom;
  }
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 30px;
  }

  .hero__title>span {
    margin-left: 0px;
    margin-right: 6px;
  }

  .hero__content-text {
    top: 105px;
    left: auto;

    right: 10px;
    max-width: 400px;

  }

  .hero__btn-box {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 10px;
  }

  .hero__btn-box-pc-block {
    display: flex;
  }

  .hero__content>.hero__btn-box-mb-block {
    display: none;
  }
}

@media (min-width: 1024px) {
  .hero__content-text {
    top: auto;
    left: auto;
    bottom: 40px;
    right: 20px;
    max-width: 520px;
  }
}

@media (min-width: 1200px) {
  .hero__content {
    border-radius: 30px;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    -ms-border-radius: 30px;
    -o-border-radius: 30px;
  }


  .hero__content-text {
    top: auto;
    left: auto;
    bottom: 40px;
    right: 20px;
    max-width: 600px;
  }

  /* старые стили тексат  */

  .hero__title {
    font-size: 50px;
  }

  .hero__title>span {
    padding: 0 15px;
    margin-right: 0px;
  }

  .subtitle {
    font-size: 18px;

  }

  .hero__btn-box {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
  }
}