/* Страница «Новости компании» — макет Figma node 1:1875 */

.page-hero--news {
  padding: 0 0 32px;
  background: var(--color-white);
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
}

.news-hero__banner {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  aspect-ratio: 1440 / 360;
  min-height: 220px;
  background-color: #fff;
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.news-hero__banner .container {
  display: flex;
  align-self: stretch;
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
  min-height: 100%;
}

.news-hero__content {
  position: relative;
  z-index: 1;
  max-width: min(42%, 480px);
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-hero__title {
  margin: 0 0 12px;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-primary);
}

.news-hero__lead {
  margin: 0;
  max-width: 400px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--color-text);
  min-width: 550px;
}

.news-section {
  padding-top: 8px;
  padding-bottom: 72px;
}

.news-list {
  display: flex;
  flex-direction: column;
}

.news-card {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 28px;
  align-items: stretch;
  padding: 32px 0;
  border-bottom: 1px solid var(--color-border);
}

.news-card:last-child {
  border-bottom: none;
}

.news-card__image {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 210px;
  background: linear-gradient(145deg, #b8d0e8, #e8f2fa);
}

.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 210px;
}

.news-card__image--placeholder {
  min-height: 210px;
}

.news-card__body {
  display: flex;
  flex-direction: column;
  padding: 28px 32px;
  background: #eef2f7;
  border-radius: var(--radius-md);
}

.news-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 14px;
}

.news-card__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 600;
}

.news-card__title a {
  color: rgba(27, 27, 27, 1);
  text-decoration: none;
}

.news-card__title a:hover {
  color: var(--color-primary);
}

.news-card__date {
  flex-shrink: 0;
  padding: 6px 12px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-white);
  border-radius: 20px 0 0 20px;
  background: rgba(23, 127, 125, 1);
  position: relative;
  right: -32px;
  height: 42px;
  width: 149px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card__excerpt {
  margin: 0;
  color: rgba(40, 40, 40, 1);  ;
  font-size: 16px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__excerpt p {
  margin: 0;
}

.news-card__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 22px;
}

.news-empty {
  margin: 0;
  padding: 48px;
  text-align: center;
  color: var(--color-muted);
  background: #eef2f7;
  border-radius: var(--radius-md);
}

.news-section .pagination,
.news-section .nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
}

.news-section .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  color: var(--color-primary-dark);
  text-decoration: none;
  font-weight: 500;
}

.news-section .page-numbers.current,
.news-section .page-numbers:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

@media (max-width: 1024px) {
  .news-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .news-card {
    padding: 24px 0;
  }

  .news-card__body {
    padding: 22px 20px;
  }

  .news-card__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-card__footer {
    justify-content: stretch;
  }

  .news-card__footer .btn {
    width: 100%;
    text-align: center;
  }
}
