/* Современная сетка карточек архива новостей. */

body.category-novosti {
  background: #f5f7fa;
}

body.category-novosti #content {
  background: transparent;
}

body.category-novosti #main.site-main {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 38px 24px 72px;
}

body.category-novosti #main.site-main .page-header {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0 0 8px;
}

body.category-novosti #main.site-main .page-title {
  margin: 0;
  color: #182235;
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.1;
}

body.category-novosti .bx-news-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #e1e7ee;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(26, 39, 56, .07);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

body.category-novosti .bx-news-card:hover {
  border-color: #d4dce6;
  box-shadow: 0 18px 38px rgba(26, 39, 56, .12);
  transform: translateY(-4px);
}

body.category-novosti .bx-news-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef2f6;
}

body.category-novosti .bx-news-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  transition: transform .35s ease;
}

body.category-novosti .bx-news-card:hover .bx-news-card__media img {
  transform: scale(1.035);
}

body.category-novosti .bx-news-card__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1b2433, #c52127);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  place-items: center;
}

body.category-novosti .bx-news-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 24px 24px;
}

body.category-novosti .bx-news-card__date {
  display: block;
  margin-bottom: 10px;
  color: #c52127;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.3;
  text-transform: uppercase;
}

body.category-novosti .bx-news-card__title {
  margin: 0;
  color: #182235;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.28;
}

body.category-novosti .bx-news-card__title a {
  color: inherit;
  text-decoration: none;
}

body.category-novosti .bx-news-card__title a:hover {
  color: #c52127;
}

body.category-novosti .bx-news-card__excerpt {
  display: -webkit-box;
  flex: 1;
  margin: 14px 0 22px;
  overflow: hidden;
  color: #69778a;
  font-size: 14px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

body.category-novosti .bx-news-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 44px;
  padding: 11px 16px 11px 18px;
  border-radius: 10px;
  background: #c52127;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

body.category-novosti .bx-news-card__button:hover {
  background: #a91b21;
  box-shadow: 0 8px 18px rgba(197, 33, 39, .24);
  color: #fff;
  transform: translateY(-1px);
}

body.category-novosti .bx-news-card__button-icon {
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

body.category-novosti #main.site-main .navigation.pagination {
  grid-column: 1 / -1;
  margin: 8px 0 0;
}

@media (max-width: 1199px) {
  body.category-novosti #main.site-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body.category-novosti #main.site-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 28px 16px 52px;
  }

  body.category-novosti #main.site-main .page-header {
    padding-bottom: 4px;
  }

  body.category-novosti .bx-news-card {
    border-radius: 18px;
  }

  body.category-novosti .bx-news-card__body {
    padding: 19px 20px 20px;
  }

  body.category-novosti .bx-news-card__title {
    font-size: 19px;
  }
}
