/* /novosti — наша сетка карточек 3/2/1 поверх T854 */
:root{
  --brand-color:#0ea5e9;
  --brand-dark:#0284c7;
  --font-main:"Montserrat","Inter",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

/* делаем контейнер пошире */
[data-record-type="854"] .t-container{ max-width:1240px !important; }

/* сетка */
.nf-grid{ display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
@media (max-width:1200px){ .nf-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; } }
@media (max-width:640px){  .nf-grid{ grid-template-columns:1fr; gap:16px; } }

/* карточка */
.nf-item{
  background:#fff; border:1px solid rgba(0,0,0,.06); border-radius:16px;
  box-shadow:0 6px 20px rgba(0,0,0,.06);
  overflow:hidden; transition:transform .2s ease, box-shadow .2s ease;
  font-family:var(--font-main);
}
.nf-item:hover{ transform:translateY(-2px); box-shadow:0 10px 28px rgba(0,0,0,.10); }

/* медиа 16:9 */
.nf-imgwrap{ position:relative; width:100%; aspect-ratio:16/9; overflow:hidden; background:#f4f6f8; }
.nf-imgwrap>img{ width:100%; height:100%; object-fit:cover; object-position:center; display:block; }

/* контент */
.nf-body{ padding:14px 16px 18px; }
.nf-date{ font:500 12px/1.4 var(--font-main); color:rgba(0,0,0,.55); margin:0 0 8px; display:block; }
.nf-title{
  font:700 16px/1.35 var(--font-main); color:#0f172a; margin:0 0 8px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.nf-text{
  font:400 14px/1.55 var(--font-main); color:#475569;
  display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden;
  overflow-wrap:anywhere; word-break:normal;
}
.nf-more{ display:inline-flex; gap:6px; margin-top:10px; font:700 13px/1 var(--font-main); color:var(--brand-color); text-decoration:none; }
.nf-more:hover{ color:var(--brand-dark); text-decoration:underline; }

/* фирменная кнопка блока (если оставим) */
[data-record-type="854"] .t-btn,[data-record-type="854"] .t854__btn{
  display:inline-flex; align-items:center; justify-content:center;
  min-height:44px; padding:0 18px; border-radius:999px;
  background:var(--brand-color); color:#fff !important; font:700 14px/1 var(--font-main);
  border:1px solid color-mix(in srgb, var(--brand-color) 15%, transparent);
  box-shadow:0 6px 18px color-mix(in srgb, var(--brand-color) 25%, transparent);
  transition:all .15s ease;
}
[data-record-type="854"] .t-btn:hover,[data-record-type="854"] .t854__btn:hover{
  background:var(--brand-dark); box-shadow:0 10px 26px color-mix(in srgb, var(--brand-color) 35%, transparent);
}

/* тёмная тема */
@media (prefers-color-scheme:dark){
  .nf-item{ background:#0b1220; border-color:rgba(255,255,255,.08); box-shadow:none; }
  .nf-title{ color:#e5e7eb; } .nf-text{ color:#a1a1aa; }
}
