.banner {
  padding-top: 80px;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
  color: #fff;
  text-align: center;
  min-height: 70vh; /* Оптимизируем высоту для мобильных */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-bottom: 60px; /* Добавляем отступ снизу */
}

/* Современный градиентный фон */
.banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 20% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(168, 85, 247, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(14, 165, 233, 0.04) 0%, transparent 60%);
  animation: gentle-flow 25s ease-in-out infinite;
  z-index: 0;
}

/* Плавная анимация современного фона */
@keyframes gentle-flow {
  0%, 100% {
    background: 
      radial-gradient(ellipse at 20% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
      radial-gradient(ellipse at 80% 70%, rgba(168, 85, 247, 0.06) 0%, transparent 50%),
      radial-gradient(ellipse at 50% 50%, rgba(14, 165, 233, 0.04) 0%, transparent 60%);
  }
  33% {
    background: 
      radial-gradient(ellipse at 70% 20%, rgba(59, 130, 246, 0.10) 0%, transparent 55%),
      radial-gradient(ellipse at 30% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 55%),
      radial-gradient(ellipse at 60% 40%, rgba(14, 165, 233, 0.06) 0%, transparent 65%);
  }
  66% {
    background: 
      radial-gradient(ellipse at 40% 70%, rgba(59, 130, 246, 0.06) 0%, transparent 45%),
      radial-gradient(ellipse at 70% 30%, rgba(168, 85, 247, 0.10) 0%, transparent 60%),
      radial-gradient(ellipse at 20% 60%, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
  }
}

/* Минималистичные акцентные элементы */
.banner .accent {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
  animation: float-accent 20s ease-in-out infinite;
  z-index: 1;
  backdrop-filter: blur(1px);
}

.banner .accent1 {
  top: 15%;
  left: 10%;
  width: 150px;
  height: 150px;
  animation-delay: 0s;
}

.banner .accent2 {
  bottom: 20%;
  right: 15%;
  width: 100px;
  height: 100px;
  animation-delay: 10s;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.05) 0%, transparent 70%);
}

@keyframes float-accent {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-20px) scale(1.1);
    opacity: 0.8;
  }
}

/* Десктопные стили - как раньше */
.banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

.banner-text {
  flex: 1;
  max-width: 600px;
  padding-right: 60px;
  text-align: left;
}

/* Изображение для мобильных - скрыто по умолчанию */
.banner-image-mobile {
  display: none;
}

/* Изображение для десктопа - как раньше */
.banner-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 700px;
  position: relative;
}

/* Современный минималистичный заголовок */
.banner-title {
  font-size: 4.2rem;
  font-weight: 200;
  line-height: 1.1;
  margin: 0 0 2rem;
  color: #ffffff;
  position: relative;
  display: inline-block;
  letter-spacing: -0.03em;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Тонкая акцентная линия */
.banner-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
  border-radius: 2px;
  animation: subtle-pulse 4s ease-in-out infinite;
}

@keyframes subtle-pulse {
  0%, 100% {
    opacity: 0.7;
    transform: scaleX(1);
  }
  50% {
    opacity: 1;
    transform: scaleX(1.2);
  }
}

.banner-lead {
  font-size: 1.4rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1.5rem;
  line-height: 1.7;
  max-width: 520px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Стили для subtitle */
.banner-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.6;
  margin: 0 0 3rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 450px;
  font-style: italic;
}

/* Современная минималистичная кнопка */
.banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  padding: 18px 36px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-decoration: none;
  color: #ffffff;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.banner-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.banner-btn:hover::before {
  left: 100%;
}

.banner-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.2);
}

.banner-btn svg {
  transition: transform 0.3s ease;
}

.banner-btn:hover svg {
  transform: translateX(2px) translateY(-2px);
}

.banner-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 700px;
  position: relative;
}

/* Сохраняем красивую анимацию изображения */
.banner-image img {
  width: 100%;
  max-width: 600px;
  animation: elegant-float 8s ease-in-out infinite;
  filter: drop-shadow(0 10px 30px rgba(59, 130, 246, 0.15));
}

@keyframes elegant-float {
  0%, 100% { 
    transform: translateY(0) rotate(0deg); 
  }
  25% { 
    transform: translateY(-12px) rotate(0.5deg); 
  }
  50% { 
    transform: translateY(-8px) rotate(0deg); 
  }
  75% { 
    transform: translateY(-16px) rotate(-0.5deg); 
  }
}

/* Тонкий свет на тексте */
.banner-title {
  animation: soft-glow 6s ease-in-out infinite alternate;
}

@keyframes soft-glow {
  from {
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
  }
  to {
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
  }
}

/* Адаптивные стили для планшетов */
@media (max-width: 1024px) {
  .banner {
    padding-top: 80px;
    min-height: 90vh; /* Оптимизируем высоту для планшетов */
    padding-bottom: 30px;
  }
  
  .banner-content {
    flex-direction: column;
    padding: 0 40px;
    align-items: center;
    gap: 25px;
    min-height: 80vh; /* Минимальная высота контента */
    justify-content: space-evenly; /* Равномерное распределение */
  }
  
  .banner-text {
    text-align: center;
    padding: 0;
    max-width: 95%;
    order: 1;
  }
  
  .banner-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  /* Показываем мобильное изображение */
  .banner-image-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.8rem 0 1.5rem;
    max-width: 100%;
    flex-shrink: 0; /* Не сжимать изображение */
  }
  
  .banner-image-mobile img {
    max-width: 450px;
    width: 100%;
    height: auto;
    animation: elegant-float 8s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(59, 130, 246, 0.15));
  }
  
  /* Скрываем десктопное изображение */
  .banner-image {
    display: none;
  }
  
  .banner-title {
    font-size: 3.4rem;
    margin-bottom: 1rem;
  }
  
  .banner-lead {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 1rem;
  }
  
  .banner-subtitle {
    font-size: 1.05rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .banner {
    padding-top: 80px;
    min-height: 65vh; /* Значительно уменьшаем высоту для мобильных */
    padding-bottom: 20px;
  }
  
  .banner-content {
    padding: 0 24px;
    gap: 15px; /* Уменьшаем gap для экономии места */
    justify-content: space-around; /* Равномерное распределение */
  }
  
  .banner-text {
    max-width: 100%;
  }
  
  .banner-image-mobile {
    margin: 1rem 0 0.8rem; /* Уменьшаем отступы вокруг изображения */
  }
  
  .banner-image-mobile img {
    max-width: 350px;
  }
  
  .banner-title {
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
  }
  
  .banner-lead {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    line-height: 1.6;
  }
  
  .banner-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem; /* Уменьшаем отступ до кнопки */
  }
  
  .banner-btn {
    font-size: 0.95rem;
    padding: 16px 32px;
    gap: 10px;
  }
  
  /* Уменьшаем акценты на мобильных */
  .banner .accent1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 5%;
    opacity: 0.5;
  }
  
  .banner .accent2 {
    width: 60px;
    height: 60px;
    bottom: 25%;
    right: 10%;
    opacity: 0.5;
  }
}

@media (max-width: 480px) {
  .banner {
    padding-top: 80px;
    min-height: 60vh; /* Значительно уменьшаем высоту для маленьких экранов */
    padding-bottom: 15px;
  }
  
  .banner-content {
    padding: 0 20px;
    gap: 18px; /* Увеличиваем gap */
    justify-content: space-around;
  }
  
  .banner-image-mobile {
    margin: 1.2rem 0 1rem; /* Увеличиваем отступы */
  }
  
  .banner-image-mobile img {
    max-width: 280px;
  }
  
  .banner-title {
    font-size: 2.2rem;
    margin-bottom: 0.6rem;
  }
  
  .banner-lead {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  
  .banner-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.8rem; /* Увеличиваем отступ до кнопки */
  }
  
  .banner-btn {
    font-size: 0.9rem;
    padding: 14px 28px;
    gap: 8px;
  }
  
  /* Скрываем акценты на маленьких экранах для чистоты */
  .banner .accent {
    display: none;
  }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 360px) {
  .banner {
    padding-top: 70px;
    min-height: 55vh; /* Максимально уменьшаем высоту */
    padding-bottom: 10px;
  }
  
  .banner-content {
    padding: 0 15px;
    gap: 15px; /* Увеличиваем gap */
    justify-content: space-around;
  }
  
  .banner-image-mobile {
    margin: 1rem 0 0.8rem; /* Увеличиваем отступы */
  }
  
  .banner-image-mobile img {
    max-width: 250px;
  }
  
  .banner-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  
  .banner-lead {
    font-size: 1rem;
    margin-bottom: 0.4rem;
  }
  
  .banner-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem; /* Увеличиваем отступ до кнопки */
  }
  
  .banner-btn {
    font-size: 0.85rem;
    padding: 12px 24px;
    gap: 6px;
  }
}

/* Дополнительные современные эффекты */
.banner-content {
  animation: fade-in-up 1.2s ease-out;
}

/* Упрощенные анимации для мобильных устройств */
@media (max-width: 768px) {
  .banner-content,
  .banner-title,
  .banner-lead,
  .banner-subtitle,
  .banner-btn,
  .banner-image {
    animation-duration: 0.8s; /* Быстрее на мобильных */
  }
  
  /* Отключаем плавающие анимации на мобильных для производительности */
  .banner-image img {
    animation: none;
  }
  
  .banner::before {
    animation-duration: 30s; /* Медленнее фоновая анимация */
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.banner-title {
  animation-delay: 0.2s;
  animation-fill-mode: both;
}

.banner-lead {
  animation: fade-in-up 1.2s ease-out 0.4s both;
}

.banner-subtitle {
  animation: fade-in-up 1.2s ease-out 0.6s both;
}

.banner-btn {
  animation: fade-in-up 1.2s ease-out 0.8s both;
}

.banner-image {
  animation: fade-in-left 1.4s ease-out 0.3s both;
}

@keyframes fade-in-left {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Улучшенная типографика */
@media (min-width: 1400px) {
  .banner-title {
    font-size: 4.8rem;
  }
  
  .banner-lead {
    font-size: 1.5rem;
  }
}