.page-intro{
  background:linear-gradient(180deg,#f7f9fc 0%,#f2f6fb 100%);
  border-bottom:1px solid #dde6ef;
}
.page-intro .wrap{max-width:1180px}
.page-intro .intro{max-width:720px}

.news-grid{
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:30px;
  align-items:start;
}
.news-card{
  grid-column:span 6;
  display:grid;
  grid-template-rows:auto 1fr;
  border:1px solid #dfe7f0;
  border-radius:26px;
  overflow:hidden;
  background:var(--paper);
  box-shadow:0 18px 45px rgba(18,41,69,.06);
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.news-card:hover{
  transform:translateY(-4px);
  box-shadow:0 24px 54px rgba(18,41,69,.11);
  border-color:#cdd9e6;
}
.news-card.featured{
  grid-column:1 / -1;
  grid-template-columns:minmax(320px,1.05fr) minmax(360px,.95fr);
  grid-template-rows:none;
}
.news-media{
  position:relative;
  min-height:260px;
  background:linear-gradient(145deg,#eff4f9,#e4ebf4);
  overflow:hidden;
}
.news-card.featured .news-media{min-height:420px}
.news-media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.news-media::after{
  content:'';
  position:absolute;
  inset:auto 0 0 0;
  height:45%;
  background:linear-gradient(180deg,rgba(8,23,43,0) 0%,rgba(8,23,43,.32) 100%);
  pointer-events:none;
}
.news-fallback{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  padding:30px;
  text-align:center;
  color:#17345e;
  font-size:34px;
  line-height:1.05;
  font-weight:700;
  letter-spacing:-.03em;
}
.news-badges{
  position:absolute;
  left:22px;
  right:22px;
  top:22px;
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:10px;
  z-index:2;
}
.news-badge,
.news-count{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:8px 14px;
  border-radius:999px;
  font-size:11px;
  line-height:1;
  letter-spacing:.06em;
  text-transform:uppercase;
  font-weight:800;
}
.news-badge{
  background:rgba(255,255,255,.95);
  color:#16335a;
  border:1px solid rgba(255,255,255,.9);
  box-shadow:0 10px 24px rgba(16,34,56,.10);
}
.news-count{
  background:rgba(18,41,69,.84);
  color:#fff;
}
.news-body{
  display:flex;
  flex-direction:column;
  gap:18px;
  padding:32px 34px 30px;
}
.news-card.featured .news-body{
  justify-content:center;
  padding:38px 40px;
}
.news-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 14px;
}
.news-date{
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#6d8197;
  font-weight:700;
}
.news-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background:#f4f7fb;
  color:#264667;
  border:1px solid #dce6f1;
  font-size:12px;
  font-weight:700;
}
.news-card h2{
  margin:0;
  font-size:clamp(1.8rem,2.3vw,2.5rem);
  line-height:1.08;
  letter-spacing:-.045em;
  color:var(--ink);
}
.news-card:not(.featured) h2{font-size:clamp(1.55rem,1.8vw,2rem)}
.news-summary{
  margin:0;
  color:#5f7387;
  font-size:16px;
  line-height:1.8;
}
.news-divider{
  height:1px;
  background:linear-gradient(90deg,#dbe4ee 0%,rgba(219,228,238,0) 100%);
}
.news-details{
  margin-top:auto;
  border:1px solid #e0e8f1;
  background:#fbfdff;
  border-radius:18px;
  padding:0 20px;
}
.news-details summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px 0;
  font-weight:800;
  color:#142c63;
}
.news-details summary::-webkit-details-marker{display:none}
.news-details summary::after{
  content:'+';
  width:28px;
  height:28px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:#edf3f9;
  color:#183763;
  font-size:20px;
  line-height:1;
  flex:0 0 auto;
}
.news-details[open] summary::after{content:'−'}
.news-full{
  padding:0 0 20px;
  color:#5a6f84;
  line-height:1.86;
  font-size:15px;
}
.news-full p{margin:0 0 14px}
.news-gallery{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(96px,1fr));
  gap:10px;
  margin:4px 0 18px;
}
.news-gallery img{
  width:100%;
  height:84px;
  object-fit:cover;
  border-radius:14px;
  border:1px solid #dfe7f0;
  background:#eef3f8;
}
.news-empty-image{
  margin-top:2px;
  font-size:12px;
  color:#7a8ea3;
}
.empty-state{
  grid-column:1/-1;
  padding:54px 32px;
  border:1px solid #dfe7f0;
  border-radius:24px;
  background:linear-gradient(180deg,#fbfdff 0%,#f4f8fc 100%);
  text-align:center;
  box-shadow:0 16px 44px rgba(18,41,69,.05);
}
.empty-state h2{
  margin:0 0 12px;
  font-size:clamp(1.7rem,2.2vw,2.1rem);
  letter-spacing:-.04em;
}
.empty-state p{max-width:560px;margin:0 auto 18px;color:#617487;line-height:1.8}

:root[data-theme="dark"] .page-intro{
  background:linear-gradient(180deg,#122338 0%,#0f1e32 100%);
  border-bottom-color:#1d3552;
}
:root[data-theme="dark"] .news-card{
  border-color:#223a56;
  box-shadow:none;
}
:root[data-theme="dark"] .news-media{
  background:linear-gradient(145deg,#152942,#0e2034);
}
:root[data-theme="dark"] .news-badge{
  background:rgba(14,27,43,.92);
  color:#f4f7fb;
  border-color:rgba(255,255,255,.06);
  box-shadow:none;
}
:root[data-theme="dark"] .news-count{background:rgba(255,255,255,.12)}
:root[data-theme="dark"] .news-chip{
  background:#14283f;
  border-color:#223b58;
  color:#cbd8e6;
}
:root[data-theme="dark"] .news-summary,
:root[data-theme="dark"] .news-full,
:root[data-theme="dark"] .empty-state p,
:root[data-theme="dark"] .news-empty-image{color:#96abc1}
:root[data-theme="dark"] .news-details{
  border-color:#233c58;
  background:#112135;
}
:root[data-theme="dark"] .news-details summary,
:root[data-theme="dark"] .news-fallback{color:#f5f8fc}
:root[data-theme="dark"] .news-details summary::after{background:#1b314a;color:#f4f7fb}
:root[data-theme="dark"] .news-gallery img{border-color:#27415d;background:#102131}
:root[data-theme="dark"] .empty-state{
  border-color:#233a57;
  background:linear-gradient(180deg,#12253b 0%,#102035 100%);
  box-shadow:none;
}

@media(max-width:1080px){
  .news-card,.news-card.featured{grid-column:1 / -1}
  .news-card.featured{grid-template-columns:1fr}
  .news-card.featured .news-media{min-height:340px}
}
@media(max-width:760px){
  .news-grid{gap:22px}
  .news-card,.news-card.featured{border-radius:22px}
  .news-body,.news-card.featured .news-body{padding:24px 22px 22px}
  .news-media,.news-card.featured .news-media{min-height:230px}
  .news-badges{left:14px;right:14px;top:14px}
  .news-badge,.news-count{min-height:31px;padding:7px 12px;font-size:10px}
  .news-summary{font-size:15px;line-height:1.72}
  .news-details{padding:0 16px;border-radius:16px}
  .news-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
}
