/* Лента новостей — равные карточки */
.section-news{padding-top:2rem}
.page-hero--news{padding-bottom:1.25rem}
.section-news .posts-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1.35rem;
  align-items:stretch;
}
.section-news .post-card{
  display:flex;flex-direction:column;height:100%;min-height:0;
  margin:0;padding:0;overflow:hidden;
  border:1px solid var(--tm-line);border-radius:14px;
  background:var(--tm-card);
  transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease;
}
.section-news .post-card:hover{
  transform:translateY(-3px);border-color:var(--tm-accent);
  box-shadow:0 10px 28px rgba(15,23,42,.08);
}
.section-news .post-card .post-thumb{
  display:block;margin:0;border-radius:0;
  aspect-ratio:16/10;height:auto;max-height:none;width:100%;
  background:var(--tm-soft);overflow:hidden;flex:0 0 auto;
}
.section-news .post-card .post-thumb img{
  display:block;width:100%;height:100%;max-height:none;object-fit:cover;
}
.section-news .post-thumb-placeholder{
  display:flex;align-items:center;justify-content:center;
  width:100%;aspect-ratio:16/10;
  background:linear-gradient(135deg,var(--tm-soft),var(--tm-line));
  color:var(--tm-muted);font-weight:800;letter-spacing:.08em;
  text-transform:uppercase;font-size:.78rem;
}
.section-news .post-card .post-body{
  padding:1.15rem 1.2rem 1.25rem;display:flex;flex-direction:column;gap:.45rem;
  flex:1 1 auto;min-height:9.5rem;
}
.section-news .post-meta{
  display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;
  font-size:.82rem;color:var(--tm-muted);
}
.section-news .post-badge{
  font-size:.68rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em;
  padding:.15rem .45rem;border-radius:999px;background:var(--tm-soft);color:var(--tm-accent);
}
.section-news .post-card .post-body h2{
  font-size:1.05rem;line-height:1.35;margin:0;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
  min-height:calc(1.35em * 3);
}
.section-news .post-card .post-body h2 a{color:var(--tm-text)}
.section-news .post-card .post-body > p{
  margin:0;font-size:.92rem;color:var(--tm-muted);line-height:1.55;flex:1 1 auto;
  display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;
  min-height:calc(1.55em * 4);
}
.section-news .news-empty{
  padding:1.5rem;border-radius:12px;background:var(--tm-soft);border:1px dashed var(--tm-line);
}
.section-news .pagination{margin-top:2rem}
.pagination .nav-links{display:flex;gap:.5rem;flex-wrap:wrap;justify-content:center}
.pagination a,.pagination span{
  padding:.45rem .85rem;border-radius:8px;border:1px solid var(--tm-line);
  color:var(--tm-text);font-weight:600;font-size:.9rem;
}
.pagination .current{background:var(--tm-accent);color:#fff!important;border-color:var(--tm-accent)}
@media (max-width:1024px){
  .section-news .posts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
  .section-news .posts-grid{grid-template-columns:minmax(0,1fr)}
  .section-news .post-card .post-body h2{font-size:1.1rem;-webkit-line-clamp:4;min-height:calc(1.35em * 4)}
  .section-news .post-card .post-body > p{-webkit-line-clamp:3;min-height:calc(1.55em * 3)}
}
/* Одиночная новость */
.entry-source{
  margin-top:2rem;padding:1rem 1.15rem;border-radius:12px;
  background:var(--tm-soft);border:1px solid var(--tm-line);font-size:.92rem;
}
.entry-source a{font-weight:700;color:var(--tm-accent)}
.post-nav{margin-top:2.5rem;padding-top:1.5rem;border-top:1px solid var(--tm-line)}
.post-nav-links{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:1.25rem}
.post-nav-item{
  display:flex;flex-direction:column;gap:.35rem;padding:.85rem 1rem;border-radius:12px;
  border:1px solid var(--tm-line);background:var(--tm-soft);text-decoration:none;color:var(--tm-text);
  transition:border-color .2s,transform .2s;
}
.post-nav-item:hover{border-color:var(--tm-accent);transform:translateY(-1px)}
.post-nav-item--next{text-align:right;margin-left:auto}
.post-nav-item--empty{border:none;background:transparent}
.post-nav-label{font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--tm-muted)}
.post-nav-title{font-size:.92rem;font-weight:600;line-height:1.35;color:var(--tm-text)}
.post-nav .back-link{margin:0;font-size:.95rem}
.post-nav .back-link a{color:var(--tm-accent);font-weight:600}
.entry-thumb{margin:1.25rem 0;border-radius:14px;overflow:hidden}
.entry-thumb img{width:100%;height:auto;display:block}
@media (max-width:640px){
  .post-nav-links{grid-template-columns:1fr}
  .post-nav-item--next{text-align:left}
}