/* ===== Новости/статьи — стили страницы (из макета avas-news.html) ===== */
/* filter-pill */
.filter-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font); font-size: 13px; font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.filter-pill:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: white;
}
.filter-pill.active {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}
.filter-pill.active:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  color: white;
}
.filter-pill svg { flex-shrink: 0; }

/* empty-state */
.empty-state {
  text-align: center;
  padding: var(--s16) var(--s4);
  display: flex; flex-direction: column; align-items: center;
  gap: var(--s4);
}
.empty-state[hidden] { display: none; }
.empty-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: grid; place-items: center;
  color: var(--text-muted);
}
.empty-state h3 {
  font-size: 22px; font-weight: 700;
  margin: 0;
}
.empty-state p {
  font-size: 14px; color: var(--text-muted);
  max-width: 360px;
}
/* NEWS PAGE STYLES */

/* HERO (compact) */
.news-hero {
  padding: var(--s10) 0 var(--s8);
}
.news-hero .section-tag {
  display: inline-flex;
  margin-bottom: var(--s4);
}
.news-hero-title {
  font-size: 56px; font-weight: 800; line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: var(--s4);
}
.news-hero-sub {
  font-size: 18px; color: var(--text-soft);
  line-height: 1.6;
  max-width: 760px;
}

/* FEATURED ARTICLE */
.section-tight { padding: var(--s2) 0 var(--s8); }

.featured-article {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: all .3s;
}
.featured-article:hover {
  border-color: var(--brand);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.fa-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.fa-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.fa-placeholder {
  width: 100%; height: 100%;
  background:
    radial-gradient(circle at 70% 30%, rgba(91, 177, 255, 0.20), transparent 60%),
    linear-gradient(135deg, #1a3a7a 0%, #224A98 100%);
  position: relative;
  align-items: center;
  justify-content: center;
}
.fa-cat-overlay {
  position: absolute;
  top: var(--s5); left: var(--s5);
  font-family: var(--mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand);
  border-radius: 999px;
}

.fa-body {
  padding: var(--s8);
  display: flex; flex-direction: column;
  justify-content: center;
}
.fa-meta {
  display: flex; align-items: center; gap: var(--s2);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: var(--s4);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.fa-cat {
  color: var(--brand);
  font-weight: 700;
}
.fa-sep { color: var(--text-dim); }
.fa-read {
  display: inline-flex; align-items: center; gap: 4px;
}
.fa-title {
  font-size: 32px; font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--s4);
  color: var(--text);
}
.fa-excerpt {
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: var(--s5);
}
.fa-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700;
  color: var(--brand);
  transition: gap .2s;
}
.featured-article:hover .fa-link { gap: 12px; }

/* NEWS FILTER */
.news-filter {
  padding: 0 0 var(--s5);
}
.nf-bar {
  display: flex; flex-wrap: wrap;
  gap: var(--s2);
}

/* ARTICLES GRID */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
}
.article-card {
  display: flex; flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: all .25s;
}
.article-card:hover {
  border-color: var(--brand);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.ac-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.ac-bg-icon {
  width: 50%; max-width: 120px;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Category-themed backgrounds */
.bg-case {
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.10), transparent 60%),
    linear-gradient(135deg, #224A98 0%, #1a3a7a 100%);
}
.bg-analytics {
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.10), transparent 60%),
    linear-gradient(135deg, #6d28d9 0%, #4c1d95 100%);
}
.bg-tech {
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.10), transparent 60%),
    linear-gradient(135deg, #047857 0%, #064e3b 100%);
}
.bg-company {
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.12), transparent 60%),
    linear-gradient(135deg, #c2410c 0%, #9a3412 100%);
}
.bg-safety {
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.10), transparent 60%),
    linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
}

.ac-cat-pill {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  z-index: 2;
}

.ac-body {
  padding: var(--s5);
  display: flex; flex-direction: column;
  gap: var(--s3);
  flex: 1;
}
.ac-meta {
  display: flex; align-items: center; gap: var(--s2);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.ac-sep { color: var(--text-dim); }
.ac-title {
  font-size: 17px; font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}
.ac-excerpt {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

/* Empty state inherits from catalog */

/* PAGINATION */
.news-pagination {
  text-align: center;
  margin-top: var(--s10);
}

/* NEWSLETTER */
.newsletter-section {
  padding: var(--s8) 0 var(--s16);
}
.newsletter-wrap {
  background: linear-gradient(135deg, #1a3a7a 0%, #224A98 100%);
  border-radius: var(--r-2xl);
  padding: var(--s10) var(--s8);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s8);
  align-items: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.newsletter-wrap::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(91, 177, 255, 0.20), transparent 60%);
  pointer-events: none;
}
.newsletter-content { position: relative; z-index: 1; }
.newsletter-content .section-tag {
  color: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  margin-bottom: var(--s3);
}
.newsletter-content .section-tag::before { background: rgba(255, 255, 255, 0.5); }
.newsletter-title {
  font-size: 36px; font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--s4);
  color: white;
}
.newsletter-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}
.newsletter-form { position: relative; z-index: 1; }
.nl-input-wrap {
  position: relative;
  margin-bottom: var(--s3);
}
.nl-input-wrap svg {
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
}
.nl-input {
  width: 100%;
  padding: 16px 18px 16px 50px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--r-md);
  color: white;
  font-family: var(--font);
  font-size: 15px;
  outline: none;
  transition: all .2s;
}
.nl-input::placeholder { color: rgba(255, 255, 255, 0.5); }
.nl-input:focus {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.50);
}
.nl-submit {
  width: 100%;
  padding: 14px;
  background: white;
  color: var(--brand);
  border-color: white;
  font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.nl-submit:hover {
  background: var(--brand-deep);
  color: white;
  border-color: var(--brand-deep);
}
.nl-consent {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin-top: var(--s3);
}
.nl-consent a { color: white; text-decoration: underline; }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .featured-article { grid-template-columns: 1fr; }
  .fa-body { padding: var(--s6); }
  .fa-title { font-size: 26px; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter-wrap { grid-template-columns: 1fr; }
  .news-hero-title { font-size: 44px; }
}
@media (max-width: 720px) {
  .news-hero { padding: var(--s6) 0 var(--s5); }
  .news-hero-title { font-size: 32px; }
  .fa-title { font-size: 22px; }
  .fa-body { padding: var(--s5); }
  .articles-grid { grid-template-columns: 1fr; }
  .newsletter-wrap { padding: var(--s6) var(--s4); }
  .newsletter-title { font-size: 24px; }
}


/* ===== show-more + детальная статья ===== */
.article-card.is-extra { display: none; }
.article-detail { padding: var(--s12) 0 var(--s16); }
.article-detail-wrap { max-width: 820px; }
.ad-meta { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--text-muted); margin-bottom:var(--s4); font-family:var(--mono); flex-wrap:wrap; }
.ad-meta .fa-read { display:inline-flex; align-items:center; gap:5px; }
.ad-title { font-size:clamp(26px,3.5vw,40px); font-weight:700; line-height:1.15; letter-spacing:-0.02em; margin-bottom:var(--s6); color:var(--text); }
.ad-cover { border-radius:var(--r-xl); overflow:hidden; margin-bottom:var(--s8); border:1px solid var(--border); }
.ad-cover img { width:100%; height:auto; display:block; }
.ad-content { font-size:16px; line-height:1.75; color:var(--text-soft); }
.ad-content p { margin-bottom:var(--s4); }
.ad-content h2,.ad-content h3 { color:var(--text); font-weight:700; margin:var(--s8) 0 var(--s3); }
.ad-content ul,.ad-content ol { margin:0 0 var(--s4) var(--s5); }
.ad-content li { margin-bottom:var(--s2); }
.ad-content img { max-width:100%; height:auto; border-radius:var(--r-lg); margin:var(--s4) 0; }
.ad-content a { color:var(--brand); text-decoration:underline; }
.ad-back { margin-top:var(--s10); }
