/* ============================================================
   NEWS — экспертный editorial-блок «Полезные материалы»
   Featured-статья слева + компактный список из 3 статей справа.
   ============================================================ */
.news {
  background: var(--bg-primary-bg);
  padding: clamp(42px, 4.2vw, 53px) 0;
}
.news__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 2.4vw, 30px);
}

/* ---- шапка ---- */
.news__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.news__heading { display: flex; flex-direction: column; max-width: 620px; }
.news__title {
  margin: 0;
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}
.news__intro {
  margin: 14px 0 0;
  font: 400 clamp(14px, 1.2vw, 16px)/1.55 'Geologica', sans-serif;
  color: var(--text-secondary);
  max-width: 560px;
}
.news__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  font: 600 15px/1 'Geologica', sans-serif;
  color: var(--teal);
  white-space: nowrap;
  transition: gap .16s ease, opacity .16s ease;
}
.news__all svg { transition: transform .16s ease; }
.news__all:hover { opacity: .85; }
.news__all:hover svg { transform: translateX(3px); }

/* ---- общий бейдж-категория ---- */
.news__badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--bg-accent-subdued);
  color: var(--teal);
  font: 600 11px/1 'Geologica', sans-serif;
  letter-spacing: .4px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---- общая дата (вторичная, но читаемая) ---- */
.news__date {
  margin: 0;
  font: 400 13px/1.3 'Geologica', sans-serif;
  color: rgba(30, 32, 37, 0.5);
}

/* ============================================================
   LAYOUT: featured + список
   ============================================================ */
.news__layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(20px, 2.2vw, 28px);
  align-items: stretch;
}

/* ---- featured-статья ---- */
.news__feat {
  display: flex;
  flex-direction: column;
  background: var(--bg-tertiary);
  border-radius: var(--radius-24);
  border: 1px solid rgba(27, 29, 34, .06);
  box-shadow: var(--shadow-s);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.news__feat:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(60, 83, 135, .14);
  border-color: rgba(24, 162, 176, .28);
}
.news__feat-media {
  position: relative;
  display: block;
  aspect-ratio: 5 / 2;
  background: #eef3f5;
  overflow: hidden;
}
.news__feat-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.news__feat:hover .news__feat-media img { transform: scale(1.04); }
.news__feat-media .news__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 2px 10px rgba(20, 40, 60, .10);
}
.news__feat-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(18px, 1.7vw, 22px);
  flex: 1;
}
.news__feat-title {
  margin: 2px 0 0;
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.28;
  letter-spacing: -0.2px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.news__feat-title a { color: var(--text-primary); transition: color .16s ease; }
.news__feat-title a:hover { color: var(--teal); }
.news__feat-excerpt {
  margin: 0;
  font: 400 14.5px/1.55 'Geologica', sans-serif;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.news__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 6px;
  font: 600 15px/1 'Geologica', sans-serif;
  color: var(--teal);
  transition: gap .16s ease;
}
.news__link svg { transition: transform .16s ease; }
.news__link:hover { gap: 11px; }
.news__link:hover svg { transform: translateX(2px); }

/* ---- список компактных статей ---- */
.news__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.news__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: clamp(16px, 1.6vw, 20px);
  background: var(--bg-tertiary);
  border-radius: var(--radius-24);
  border: 1px solid rgba(27, 29, 34, .06);
  box-shadow: var(--shadow-s);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  flex: 1;
}
.news__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(60, 83, 135, .12);
  border-color: rgba(24, 162, 176, .28);
}
.news__item-text {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  flex: 1;
}
.news__item-title {
  margin: 0;
  font: 500 16px/1.32 'Geologica', sans-serif;
  letter-spacing: -0.1px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  transition: color .16s ease;
}
.news__item:hover .news__item-title { color: var(--teal); }
.news__item-arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-accent-subdued);
  color: var(--teal);
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.news__item:hover .news__item-arrow {
  background: var(--teal);
  color: #fff;
  transform: translateX(2px);
}

/* кнопка «Все статьи» снизу — только на мобиле */
.news__more { display: none; justify-content: center; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .news__layout { grid-template-columns: 1fr; }
  .news__all { display: none; }
  .news__more { display: flex; }
}
@media (max-width: 480px) {
  .news__feat-media { aspect-ratio: 16 / 11; }
  .news__item { padding: 14px; gap: 12px; }
}
