/* Общий сброс и настройка шрифтов */
.news,
.other_news {
  font-family: "Cygre Medium", Helvetica, Arial, sans-serif;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.3;
}

/* Основной контейнер новостей */
.news {
  background-color: #1e1e1e;
  padding: 40px 0;
}

.news_title {
  font-size: 52px;
  letter-spacing: -1.04px;
  margin: 15px 0 24px;
}

/* Информационный блок с градиентом */
.news_info_container {
  width: 254px;
  margin: 60px 0 15px;
  padding: 20px 44px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: linear-gradient(
    90deg,
    rgba(215, 69, 72, 1) 0%,
    rgba(200, 54, 112, 1) 25%,
    rgba(169, 56, 144, 1) 50%,
    rgba(127, 56, 140, 1) 75%,
    rgba(82, 54, 113, 1) 100%
  );
}

.news_info_text {
  font-family: "Cygre Medium", Helvetica, Arial, sans-serif;
  font-size: 20px;
  letter-spacing: -0.4px;
  color: #ffffff;
}

.news_frame {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap; /* чтобы не ломалось на малых экранах */
  justify-content: center;
  padding: 20px 0;
}

.news_element {
  width: 100%;
  max-width: 691px;
  height: auto;
  aspect-ratio: 691 / 440; /* сохраняем пропорции */
  object-fit: cover;
  border-radius: 8px;
}

.equipment-item {
  width: 100%;
  max-width: 949px;
  margin: 20px 0 0;
  font-size: 18px;
  letter-spacing: -0.36px;
  color: #ffffff; /* исправлено с transparent */
}

.text-wrapper,
.span,
.text-wrapper-2 {
  letter-spacing: -0.06px;
}

.text-wrapper {
  color: #ffffff;
}

.text-wrapper img{
  max-width: 50vw;
  height: auto;
}

.span {
  color: #ffffff;
  text-decoration: underline;
}

.text-wrapper-2 {
  color: #ffffff80; /* полупрозрачный белый — нормально */
}

.other_news {
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  max-width: 1680px;
  padding: 0 20px;
  box-sizing: border-box;
}

.other_news_title {
  font-size: 40px;
  letter-spacing: -0.8px;
  width: 100%;
  color: #ffffff;
}

.other_news_wrap {
  display: flex;
  align-items: stretch; /* чтобы карточки были одной высоты */
  gap: 16px;
  width: 100%;
  flex-wrap: wrap; /* адаптивность */
}

.other_news_element {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 408px;
  flex: 1 1 300px; /* резиновые карточки */
  gap: 22px;
  height: auto;
}

.other_news_element .img {
  all: unset;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  overflow: hidden;
}

.address {
  font-size: 24px;
  letter-spacing: -0.48px;
  line-height: 1.2;
}

.group {
  width: 100%;
  aspect-ratio: 408 / 260;
  position: relative;
}

/* Планшеты и меньше */
@media (max-width: 1024px) {
  .news_title {
    font-size: 42px;
    letter-spacing: -0.84px;
  }

  .other_news_title {
    font-size: 32px;
    letter-spacing: -0.64px;
  }

  .news_frame {
    gap: 20px;
    justify-content: center;
  }

  .news_element {
    max-width: 100%;
    aspect-ratio: 16 / 9;
  }

  .equipment-item {
    max-width: 100%;
    font-size: 16px;
  }
}

/* Мобильные устройства */
@media (max-width: 768px) {
  .news_info_container {
    padding: 15px 20px;
    margin: 40px 0 15px;
  }

  .news_info_text {
    font-size: 18px;
  }

  .other_news_wrap {
    flex-direction: column;
    align-items: center;
  }

  .other_news_element {
    max-width: 100%;
    flex: 1 1 auto;
  }

  .img {
    aspect-ratio: 16 / 9;
  }

  .address {
    font-size: 20px;
  }
  .text-wrapper img{
    max-width: 100%;
  }
}