:root {
  --white: #ffffff;
  --terracotta: #e65100;
}

/* Основной контейнер баннера */
.wrap_center {
  height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Контент — центрированный, но с контролем выравнивания */
.wrap_midlee_content {
  max-width: 1920px;
  color: var(--white);
  display: flex;
  flex-flow: column;
  margin: auto;
  align-items: flex-start; /* ← ВАЖНО: теперь всё слева */
  justify-content: center;
  padding: 0 120px;
  width: 100%;
  transition: transform 0.3s ease;
  will-change: transform;
}

/* Заголовок "серия РГ 18" */
.top_banners_text {
  text-align: left;
  width: 70%;
  text-transform: uppercase;
  color: var(--terracotta);
  padding-top: 40px;
  font-size: 60px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}


.fly_text {
  position: relative;
  font-size: 96px;
  line-height: 1.2;
  text-align: left;
  text-transform: uppercase;
  font-weight: 300;
  max-width: 1720px;
  width: 70%;
  padding-bottom: 20px;
  padding-top: 30px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.fly_text p {
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

/* Контейнер искр */
.sparks {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
  will-change: opacity;
}

/* Одна искра */
.spark {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #ff5c01;
  border-radius: 50%;
  filter: drop-shadow(0 0 2px rgba(255, 92, 1, 0.7)) drop-shadow(0 0 4px rgba(255, 92, 1, 0.5));
  opacity: 0.9;
  z-index: 1;
  animation: fly-spark linear infinite;
}

/* Анимация искр */
@keyframes fly-spark {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translate(100px, -100px) rotate(720deg);
    opacity: 0;
  }
}

/* Описание под текстом */
.feature_text {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
  color: #e0e0e0;
  max-width: 800px;
  margin: 20px 0 0 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature_text .highlight {
  color: #ff5c01;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Кнопка "Купить" */
.wrap_bottom_text {
  width: 100%;
  max-width: 1920px;
  padding: 0 120px;
  box-sizing: border-box;
  margin: 40px auto 0;
  display: flex;
  justify-content: flex-start;
}

.bottom_right .button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 276px;
  height: 49px;
  background: var(--terracotta);
  border: none;
  color: var(--white);
  text-transform: uppercase;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 9;
}

.bottom_right .button:hover {
  background: #cc4900;
}

.bottom_right .button p {
  margin: 0;
}



.banner_image_wrap {
  position: absolute;
  left: 65%;
  transform: translateX(-50%);
  width: 100%;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
   bottom: 0;
  transition: opacity 1.2s ease-out;
}

.banner_image {
  max-height: 60vh;
  max-width: 75%;
  height: auto;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.3));
}



/* Адаптив для экранов > 1920px */
@media (min-width: 1921px) {
  .wrap_center {
    height: 60vh !important;
  }

  .wrap_midlee_content {
    transform: translateY(-20px) !important;
  }
}
/* === Мобильные устройства (до 768px) === */
@media (max-width: 768px) {
  .wrap_center {
    padding: 20px;
    text-align: center;
  }

  .top_banners_text {
    font-size: 2rem !important; /* было 3.5rem */
    letter-spacing: -0.5px;
  }

  .fly_text {
    font-size: 1.5rem !important; /* было 2.5rem */
    gap: 5px;
  }

  .fly_text p {
    line-height: 1.2;
  }

  .feature_text {
    font-size: 0.9rem !important; /* мелкий, но читаемый */
    padding: 0 10px;
    margin-top: 10px;
  }

  .button {
    padding: 12px 24px !important;
    font-size: 1rem !important;
  }

  .banner_image_wrap {
    left: 50% !important;
    bottom: 10px !important;
    transform: translateX(-50%) !important;
    width: 80% !important;
    max-width: 280px;
    opacity: 0;
    transition: opacity 1.2s ease-out;
  }

  .banner_image {
    width: 100%;
    height: auto;
  }

  .sparks {
    top: -10px !important;
  }

  /* Убираем искры, если тормозит на слабых устройствах */
  .spark {
    display: none;
  }
  .sparks {
    display: none;
  }
}
