/* News Hub + Article — san-control.ru */
.sc-news-page {
  --n-primary: #277A58;
  --n-accent: #20A063;
  --n-deep: #0F291E;
  --n-text: #111827;
  --n-muted: #6B7280;
  --n-border: #E2E8F0;
  --n-mint: #F0F9F5;
  --n-container: 1280px;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--n-text);
  background: #fff;
}
.sc-news-page .block_left { display: none !important; }
.sc-news-wrap {
  width: 100%;
  max-width: var(--n-container);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 983px) {
  .sc-news-wrap { padding: 0 24px; }
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

.sc-news-hero {
  padding: 8px 0 28px;
  background:
    radial-gradient(900px 280px at 90% -20%, rgba(32,160,99,.12), transparent 60%),
    linear-gradient(180deg, #F8FAFC 0%, #fff 100%);
}
.sc-news-page .breadcrumbs {
  padding: 16px 0 12px;
  font-size: 13px;
  color: var(--n-muted);
}
.sc-news-hero__title {
  margin: 0 0 10px;
  font-family: "Exo 2", "Manrope", sans-serif;
  font-size: clamp(1.7rem, 2.4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--n-text);
}
.sc-news-hero__sub {
  margin: 0 0 20px;
  max-width: 720px;
  color: var(--n-muted);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
}
.sc-news-tools { display: grid; gap: 14px; }
.sc-news-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 520px;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--n-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(17,24,39,.04);
}
.sc-news-search svg { width: 18px; height: 18px; color: var(--n-muted); flex-shrink: 0; }
.sc-news-search input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: var(--n-text);
}
.sc-news-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sc-news-tabs button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--n-border);
  background: #fff;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: .15s ease;
}
.sc-news-tabs button:hover { border-color: var(--n-accent); color: var(--n-primary); }
.sc-news-tabs button.is-active {
  background: var(--n-accent);
  border-color: var(--n-accent);
  color: #fff;
}

.sc-news-section { padding: 12px 0 36px; }
.sc-news-section-label {
  margin: 0 0 14px;
  font-family: "Exo 2", "Manrope", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
}

.sc-news-featured {
  display: grid;
  gap: 0;
  border: 1px solid var(--n-border);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(17,24,39,.05);
}
@media (min-width: 900px) {
  .sc-news-featured { grid-template-columns: 1.15fr 1fr; }
}
.sc-news-featured__media {
  display: block;
  min-height: 240px;
  background: #F1F5F9;
}
.sc-news-featured__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 280px;
}
.sc-news-featured__body { padding: 24px 22px 26px; }
.sc-news-featured__badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--n-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  margin-bottom: 10px;
}
.sc-news-featured__cat {
  color: var(--n-primary);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}
.sc-news-featured__title {
  margin: 0 0 10px;
  font-family: "Exo 2", "Manrope", sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
}
.sc-news-featured__title a { color: inherit !important; text-decoration: none !important; }
.sc-news-featured__excerpt {
  margin: 0 0 14px;
  color: var(--n-muted);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 600;
}
.sc-news-featured__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 18px;
  color: var(--n-muted);
  font-size: 13px;
  font-weight: 700;
}

.sc-news-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 700px) {
  .sc-news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .sc-news-grid { grid-template-columns: repeat(3, 1fr); }
}
.sc-news-grid--related { margin-top: 8px; }
.sc-news-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--n-border);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.sc-news-card.is-hidden { display: none !important; }
.sc-news-card:hover {
  transform: translateY(-6px);
  border-color: #C8E6D6;
  box-shadow: 0 12px 25px rgba(32,160,99,.12);
}
.sc-news-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: #F1F5F9;
}
.sc-news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sc-news-card__tag {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(15,41,30,.88);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.sc-news-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 14px 16px;
  flex: 1;
}
.sc-news-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--n-muted);
  font-size: 12px;
  font-weight: 700;
}
.sc-news-card__title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}
.sc-news-card__title a { color: inherit !important; text-decoration: none !important; }
.sc-news-card__excerpt {
  margin: 0;
  color: var(--n-muted);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}
.sc-news-card__more {
  margin-top: auto;
  color: var(--n-primary) !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
}
.sc-news-empty {
  margin-top: 16px;
  padding: 18px;
  border-radius: 14px;
  background: var(--n-mint);
  color: var(--n-primary);
  font-weight: 700;
  text-align: center;
}
.sc-news-pager-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}
.sc-news-pager {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.sc-news-page .pagination,
.sc-news-pager .pagination {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: auto;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.sc-news-page .pagination .page-item,
.sc-news-page .pagination > li,
.sc-news-pager .pagination > li {
  display: block !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  background: transparent !important;
  border: 0 !important;
  line-height: 1 !important;
}
.sc-news-page .pagination .page-link,
.sc-news-page .pagination > li > a,
.sc-news-page .pagination > li > span,
.sc-news-pager .pagination a,
.sc-news-pager .pagination span {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 44px;
  width: auto !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  line-height: 1 !important;
  border: 1px solid var(--n-border) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: var(--n-text) !important;
  font-size: 15px !important;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: none !important;
}
.sc-news-page .pagination .page-item.active .page-link,
.sc-news-page .pagination > li.active > a,
.sc-news-page .pagination > li.active > span,
.sc-news-pager .pagination > li.active > a,
.sc-news-pager .pagination > li.active > span {
  background: var(--n-primary) !important;
  border-color: var(--n-primary) !important;
  color: #fff !important;
}
.sc-news-page .pagination .page-item.disabled .page-link,
.sc-news-page .pagination > li.disabled > a,
.sc-news-page .pagination > li.disabled > span,
.sc-news-pager .pagination > li.disabled > a {
  opacity: .45;
  pointer-events: none;
  background: #F8FAFC !important;
}

.sc-news-lead {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--n-deep) 0%, #1A4A35 55%, var(--n-primary) 100%);
  color: #fff;
}
@media (min-width: 860px) {
  .sc-news-lead {
    grid-template-columns: 1.3fr auto;
    align-items: center;
  }
}
.sc-news-lead__label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .8;
  margin-bottom: 6px;
}
.sc-news-lead__title {
  margin: 0 0 8px;
  font-family: "Exo 2", "Manrope", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
}
.sc-news-lead__text {
  margin: 0;
  opacity: .9;
  font-weight: 600;
  line-height: 1.45;
}
.sc-news-lead__form {
  display: grid;
  gap: 10px;
  min-width: 260px;
}
.sc-news-lead__field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
}

.sc-news-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none !important;
  cursor: pointer;
}
.sc-news-btn--primary { background: var(--n-accent); color: #fff !important; border: 0; }
.sc-news-btn--ghost { background: #fff; color: var(--n-primary) !important; border-color: var(--n-border); }
.sc-news-btn--light { background: #fff; color: var(--n-deep) !important; }
.sc-news-btn--ghost-light { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.35); }
.sc-news-btn--block { width: 100%; }

/* Article layout */
.sc-news-article-hero { padding-top: 4px; }
.sc-news-layout {
  display: grid;
  gap: 24px;
  padding: 8px 0 48px;
  overflow: visible;
}
@media (min-width: 1024px) {
  .sc-news-layout {
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, .7fr);
    align-items: stretch; /* колонка aside = высота статьи → sticky работает */
  }
}
.sc-news-cat {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--n-primary);
  font-size: 13px;
  font-weight: 800;
}
.sc-news-h1 {
  margin: 0 0 14px;
  font-family: "Exo 2", "Manrope", sans-serif;
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
}
.sc-news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 18px;
  color: var(--n-muted);
  font-size: 13px;
  font-weight: 700;
}
.sc-news-cover {
  margin: 0 0 22px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--n-border);
}
.sc-news-cover img { width: 100%; display: block; }
.sc-news-cover figcaption {
  padding: 10px 14px;
  background: #F8FAFC;
  color: var(--n-muted);
  font-size: 13px;
  font-weight: 600;
}
.sc-news-content {
  font-size: 16px;
  line-height: 1.7;
  font-weight: 500;
}
.sc-news-content p { margin: 0 0 14px; }
.sc-news-content h2, .sc-news-content h3 {
  margin: 28px 0 12px;
  font-family: "Exo 2", "Manrope", sans-serif;
  font-weight: 800;
}
.sc-news-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.sc-news-gallery { margin: 28px 0; }
.sc-news-gallery__grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) {
  .sc-news-gallery__grid { grid-template-columns: repeat(3, 1fr); }
}
.sc-news-gallery__item {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--n-border);
  aspect-ratio: 4 / 3;
}
.sc-news-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}
.sc-news-gallery__item:hover img { transform: scale(1.04); }

.sc-news-b2b {
  margin: 28px 0;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(145deg, #0F291E 0%, #1A4A35 55%, #277A58 100%);
  color: #fff;
}
.sc-news-b2b__label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: .8;
  margin-bottom: 8px;
}
.sc-news-b2b__title {
  margin: 0 0 8px;
  font-family: "Exo 2", "Manrope", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
}
.sc-news-b2b__text {
  margin: 0 0 16px;
  opacity: .92;
  font-weight: 600;
  line-height: 1.45;
}
.sc-news-b2b__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sc-news-share-wrap { margin: 24px 0; }
.sc-news-more { margin-top: 28px; }

.sc-news-aside { display: block; }
@media (min-width: 1024px) {
  .sc-news-aside {
    align-self: stretch;
    min-height: 100%;
  }
}
.sc-news-sticky {
  position: static;
  display: grid;
  gap: 14px;
}
@media (min-width: 1024px) {
  .sc-news-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 96px; /* под фиксированной шапкой */
    z-index: 4;
    max-height: calc(100vh - 112px);
    overflow: auto;
  }
}
.sc-news-passport,
.sc-news-aside-cta {
  padding: 16px;
  border: 1px solid var(--n-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.04);
}
.sc-news-passport__title,
.sc-news-aside-cta__title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 800;
}
.sc-news-passport__list { margin: 0; }
.sc-news-passport__list > div {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-top: 1px solid #F1F5F9;
}
.sc-news-passport__list > div:first-child { border-top: 0; padding-top: 0; }
.sc-news-passport__list dt {
  font-size: 12px;
  color: var(--n-muted);
  font-weight: 700;
}
.sc-news-passport__list dd {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}
.sc-news-aside-cta p {
  margin: 0 0 12px;
  color: var(--n-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}
.sc-news-aside-cta .sc-news-btn + .sc-news-btn { margin-top: 8px; }
