/**
 * Страницы новостей СБОР 73 — контент статьи внутри полного каркаса сайта
 * (header / menu / footer / FOS / calc / modals как на главной)
 */

/* ── Stage ─────────────────────────────────────────────── */
.page-news.news-article-page,
body.news-article-page.page-news {
  background:
    radial-gradient(ellipse 70% 40% at 10% 0%, color-mix(in srgb, #2CC919 10%, transparent), transparent 55%),
    radial-gradient(ellipse 50% 35% at 100% 20%, color-mix(in srgb, #2CC919 6%, transparent), transparent 50%),
    #F5F5F5;
}

.news-article-stage {
  width: 100%;
  padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(2.5rem, 5vw, 4rem);
  box-sizing: border-box;
  /* место под fixed mobile bottom bar */
  padding-bottom: calc(clamp(2.5rem, 5vw, 4rem) + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 767px) {
  .news-article-stage {
    padding-bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px));
  }
}

.news-article-stage__inner {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding-left: max(var(--section-pad-x, 24px), env(safe-area-inset-left, 0px));
  padding-right: max(var(--section-pad-x, 24px), env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

/* ── Breadcrumbs ───────────────────────────────────────── */
.news-article-page__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #666;
  line-height: 1.4;
}

.news-article-page__crumbs a {
  color: #2CC919;
  text-decoration: none;
  font-weight: 700;
}

.news-article-page__crumbs a:hover {
  text-decoration: underline;
}

.news-article-page__crumbs span[aria-hidden="true"] {
  color: #aaa;
  font-weight: 500;
}

.news-article-page__crumbs > span:last-child {
  color: #444;
  max-width: 100%;
}

/* ── Back link ─────────────────────────────────────────── */
.news-article-page__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.15rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #2CC919;
  text-decoration: none;
  transition: color 0.15s ease, gap 0.15s ease;
}

.news-article-page__back:hover {
  color: #1f9a12;
  gap: 0.55rem;
}

.news-article-page__back i {
  font-size: 0.75rem;
}

/* ── Article card ──────────────────────────────────────── */
.news-article {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(20, 20, 20, 0.08);
  box-shadow: 0 8px 28px rgba(20, 20, 20, 0.06);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-sizing: border-box;
}

.news-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.85rem;
}

.news-article__date {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #666;
}

.news-article__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: color-mix(in srgb, #2CC919 35%, #141414);
  background: color-mix(in srgb, #2CC919 14%, #fff);
  border: 1px solid color-mix(in srgb, #2CC919 28%, transparent);
}

.news-article__tag i {
  color: #2CC919;
  font-size: 0.65rem;
}

.news-article__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #141414;
}

.news-article__body {
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 500;
  color: #333;
}

.news-article__body p {
  margin: 0 0 1rem;
}

.news-article__body p:last-child {
  margin-bottom: 0;
}

.news-article__body ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.news-article__body li {
  margin-bottom: 0.4rem;
}

.news-article__body strong {
  font-weight: 800;
  color: #141414;
}

/* ── Source ────────────────────────────────────────────── */
.news-article__source {
  margin-top: 1.75rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(20, 20, 20, 0.08);
  font-size: 0.875rem;
  line-height: 1.5;
  color: #555;
}

.news-article__source strong {
  color: #141414;
  font-weight: 800;
}

.news-article__source a {
  color: #2CC919;
  font-weight: 700;
  text-decoration: none;
  word-break: break-word;
}

.news-article__source a:hover {
  text-decoration: underline;
}

/* ── Leadgen FOS block (как на всём сайте) ─────────────── */
.news-article__cta.site-leadgen,
.news-article__leadgen {
  margin-top: 1.5rem;
  margin-bottom: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* override old nested CTA look when using site-leadgen */
.news-article__cta.site-leadgen {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.news-article__cta-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #141414;
}

.news-article__cta-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #444;
}

/* Desktop: triple FOS in a row */
@media (min-width: 768px) {
  .news-article__leadgen .site-leadgen-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .news-article__cta-btns.site-leadgen__cta--triple,
  .news-article__leadgen .site-leadgen__cta--triple {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .news-article__cta-btns > .fos-btn,
  .news-article__cta-btns > .desktop-waste-cta {
    flex: 1 1 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
  }
}

/* ── Footer spacing on news (bottom bar on mobile) ─────── */
@media (max-width: 767px) {
  .page-news .site-footer {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }

  .news-article {
    padding: 1.1rem 1.05rem 1.2rem;
  }
}

/* Hub CMS: гиперссылки как цветной текст без видимого URL */
.news-article__body a,
.news-article__body a.article-inline-link {
  color: #0f766e;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.news-article__body a:hover {
  color: #115e59;
}
