.slide-section {
  background: white; /* Белый фон на всю ширину экрана */
  padding: 20px 0; /* Вертикальные отступы вместо margin у .result */
}

.result {
  display: grid;
  grid-template-columns: auto 1fr; /* Картинка слева, текст справа */
  gap: 20px;
  align-items: start;
  min-height: 50vh;
  height: auto;
  max-width: 1200px; /* Ограничиваем ширину контейнера */
  margin: 0 auto; /* Центрируем на странице */
  background-color: white;
}

.result img {
  margin-top: 80px;
  margin-right: 40px;
  width: 550px;
  border-radius: 30px;
  height: 350px;
  object-fit: cover; /* Для корректного отображения изображения */
}

.text-content {
  display: flex;
  flex-direction: column;
  gap: 5px; /* Расстояние между заголовком и текстом */
}

.result h1 {
  margin-top: 20%;
  text-align: left;
  font-family: 'Nekst-Bold', sans-serif;
  font-size: clamp(32px, 3.2vw, 128px);
  
}

.result p {
  font-family: 'Nekst-Light', sans-serif;
  font-size: clamp(24px, 1.7vw, 100px);
  
  
}







@font-face {
  font-family: 'Nekst-Bold';
  src: url('font/Nekst-Bold.woff2') format('woff2'),
       url('font/Nekst-Black.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}


@media (max-width: 768px) {
  .slide-section {
    padding: 15px 0;
  }

  .result {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 15px;
    padding: 0 15px;
  }

  .result img {
    width: 100%;
    max-width: 100%;
    height: 250px;
    margin: 20px 0 0 0;
    border-radius: 20px;
    order: 1; /* Перемещаем изображение под текст */
  }

  .text-content {
    order: 2;
    padding: 0 10px;
  }

  .result h1 {
    margin: 0;
    font-size: clamp(28px, 6vw, 32px);
    
  }

  .result p {
    font-size: clamp(18px, 4vw, 22px);
    margin-top: 10px;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.text-content h1, 
.text-content p {
  animation: fadeIn 0.8s ease forwards;
}

.text-content p {
  animation-delay: 0.2s;
}


@media (min-width: 1920px) {
  .result {
    max-width: 1600px;
    gap: 60px;
  }
  
  .result img {
    width: 750px;
    height: 500px;
  }
  
  .result h1 {
    font-size: clamp(48px, 4vw, 160px);
    
  }
  
  .result p {
    font-size: clamp(32px, 2vw, 120px);
    
  }
}

