/* =========================================================
   HÖFER — news-list.css
   Горизонтальный список новостей (news.php)
   ========================================================= */

.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
}

/* ---------- Карточка-строка ---------- */
.news-line {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 0;
  background: var(--c-white);
  border: 1px solid var(--c-gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--tr-base), box-shadow var(--tr-base),
              border-color var(--tr-base);
}

.news-line:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-red);
}

/* ---------- Картинка: пропорции 600 × 225 ---------- */
.news-line__media {
  position: relative;
  background: var(--c-gray-50);
  overflow: hidden;
  aspect-ratio: 600 / 225;
}

.news-line__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .6s ease;
}

.news-line:hover .news-line__img {
  transform: scale(1.05);
}

.news-line__img--empty {
  background: repeating-linear-gradient(
    45deg,
    var(--c-gray-100) 0 10px,
    var(--c-gray-50) 10px 20px
  );
}

/* ---------- Текстовая часть ---------- */
.news-line__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 64px 24px 28px;
}

.news-line__date {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-red);
}

.news-line__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.25;
  color: var(--c-text);
  margin: 0;
  transition: color var(--tr-fast);
}

.news-line:hover .news-line__title {
  color: var(--c-red);
}

.news-line__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--c-text-muted);
  margin: 0;
}

.news-line__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

/* ---------- Стрелка ---------- */
.news-line__arrow {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--c-gray-50);
  color: var(--c-gray-600);
  transition: background var(--tr-fast), color var(--tr-fast),
              transform var(--tr-base);
}

.news-line:hover .news-line__arrow {
  background: var(--c-red);
  color: var(--c-white);
  transform: translateY(-50%) translateX(4px);
}

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .news-line {
    grid-template-columns: 390px 1fr;
  }
  .news-line__title {
    font-size: 20px;
  }
  .news-line__body {
    padding: 20px 56px 20px 22px;
  }
}

@media (max-width: 768px) {
  .news-line {
    grid-template-columns: 330px 1fr;
  }
  .news-line__title {
    font-size: 17px;
  }
  .news-line__text {
    font-size: 13px;
  }
  .news-line__body {
    padding: 16px 48px 16px 18px;
    gap: 8px;
  }
  .news-line__arrow {
    right: 14px;
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  /* На узких экранах — картинка сверху, 16:9 */
  .news-line {
    grid-template-columns: 1fr;
  }
  .news-line__media {
    aspect-ratio: 16 / 9;
  }
  .news-line__body {
    padding: 14px 44px 14px 16px;
  }
  .news-line__title {
    font-size: 16px;
  }
  .news-line__text {
    font-size: 13px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .news-line,
  .news-line__img,
  .news-line__arrow {
    transition: none;
  }
  .news-line:hover {
    transform: none;
  }
  .news-line:hover .news-line__img {
    transform: none;
  }
}