/* Блок «Последние статьи» на страницах сайта.
   Пока данные не пришли, блок скрыт: если блог недоступен, на странице
   не останется пустой рамки. */
.cmr-feed { display: none; }
.cmr-feed.is-ready { display: block; }

.cmr-feed__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.cmr-feed__card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: #0f172a;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.cmr-feed__card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .07);
}

.cmr-feed__thumb { aspect-ratio: 16 / 9; background: #f8fafc; overflow: hidden; }
.cmr-feed__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cmr-feed__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }

.cmr-feed__cat {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #5D6FD1;
  margin-bottom: 9px;
}

.cmr-feed__title {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  margin: 0 0 9px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cmr-feed__excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: #64748b;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cmr-feed__foot {
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #64748b;
}
.cmr-feed__more { color: #5D6FD1; font-weight: 600; }

@media (max-width: 700px) {
  .cmr-feed__grid { grid-template-columns: 1fr; gap: 18px; }
}
