.news-page {
  background:
    radial-gradient(circle at 50% 0, rgba(237, 241, 246, 0.92), transparent 34%),
    linear-gradient(180deg, #fdfefe 0%, #ffffff 100%);
}

.news-page .container {
  width: min(1320px, calc(100% - 64px));
}

.news-page-heading {
  margin-bottom: 28px;
}

.news-page-heading h1 {
  margin: 0;
  color: #1f2a39;
  font-size: clamp(34px, 3.8vw, 48px);
  line-height: 1.18;
  font-weight: 700;
}

.news-page-heading p {
  margin: 12px 0 0;
  color: #7b8696;
  font-size: 16px;
  line-height: 1.7;
}

.news-list {
  border-top: 1px solid #edf1f5;
}

.news-list-shell {
  position: relative;
  min-height: 60vh;
}

.news-list-loading {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  min-height: 60vh;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #687385;
  background: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  font-weight: 600;
}

.news-list-loading[hidden] {
  display: none;
}

.news-list-error,
.news-list-empty {
  display: flex;
  min-height: 60vh;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  color: #687385;
  text-align: center;
}

.news-list-error p,
.news-list-empty p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.news-list-retry {
  min-width: 112px;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 4px;
  color: #ffffff;
  background: var(--color-brand);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.news-list-retry:hover {
  background: #b30712;
}

.news-list-loading-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(216, 12, 24, 0.18);
  border-top-color: var(--color-brand);
  border-radius: 50%;
  animation: newsListLoadingSpin 0.8s linear infinite;
}

@keyframes newsListLoadingSpin {
  to {
    transform: rotate(360deg);
  }
}

.news-list-item {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  padding: 34px 0 40px;
  border-bottom: 1px solid #edf1f5;
}

.news-item-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: #f4f7fb;
  box-shadow: 0 16px 34px rgba(30, 48, 78, 0.06);
  aspect-ratio: 248 / 140;
}

.news-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.news-list-item:hover .news-item-thumb img {
  transform: scale(1.04);
}

.news-item-body {
  min-width: 0;
  padding-top: 2px;
}

.news-item-body h2 {
  margin: 0;
  color: #1f2a39;
  font-size: clamp(28px, 2.8vw, 36px);
  line-height: 1.28;
  font-weight: 700;
}

.news-item-body h2 a {
  transition: color 0.2s ease;
}

.news-item-body h2 a:hover {
  color: var(--color-brand);
}

.news-item-body p {
  display: -webkit-box;
  margin: 16px 0 0;
  overflow: hidden;
  color: #5e6978;
  font-size: 16px;
  line-height: 1.9;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-item-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  margin-top: 22px;
  color: #a3acb7;
  font-size: 15px;
  line-height: 1;
}

.news-item-meta time,
.news-item-views {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.news-item-meta time::before,
.news-item-views::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #c0c7d1;
  font-size: 14px;
  line-height: 1;
}

.news-item-meta time::before {
  content: "🗓";
}

.news-item-views::before {
  content: "👁";
  font-size: 15px;
}

.news-list-item.is-hidden {
  display: none;
}

.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding-top: 42px;
  flex-wrap: wrap;
}

.news-page-btn,
.news-page-arrow {
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #8a94a3;
  font-size: 24px;
  font-weight: 400;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.news-page-btn:hover,
.news-page-arrow:hover {
  color: var(--color-brand);
}

.news-page-btn.is-active {
  color: #ffffff;
  background: var(--color-brand);
  box-shadow: 0 14px 30px rgba(216, 12, 24, 0.22);
}

.news-page-arrow {
  min-width: 32px;
  font-size: 30px;
  line-height: 1;
}

.news-page-arrow.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

.news-page-ellipsis {
  min-width: 40px;
  color: #9ea8b5;
  font-size: 24px;
  line-height: 1;
  text-align: center;
}

.section {
  padding: 20px 0 124px;
}

@media (max-width: 1080px) {
  .news-list-item {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
  }

  .news-item-body h2 {
    font-size: clamp(24px, 3vw, 30px);
  }

  .news-item-meta {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 780px) {
  .news-page .container {
    width: min(100% - 28px, 1320px);
  }

  .news-page-heading {
    margin-bottom: 18px;
  }

  .news-page-heading h1 {
    font-size: 28px;
  }

  .news-page-heading p {
    font-size: 14px;
  }

  .news-list-item {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 0 28px;
  }

  .news-item-thumb {
    aspect-ratio: 16 / 9;
  }

  .news-item-body h2 {
    font-size: 24px;
  }

  .news-item-body p {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.8;
    -webkit-line-clamp: 3;
  }

  .news-item-meta {
    gap: 18px;
    margin-top: 18px;
    font-size: 13px;
  }

  .news-pagination {
    gap: 12px;
    padding-top: 30px;
  }

  .news-page-btn,
  .news-page-arrow {
    min-width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .news-page-arrow {
    min-width: 28px;
    font-size: 24px;
  }

  .news-page-ellipsis {
    min-width: 28px;
    font-size: 20px;
  }
}
