/* === HOME NEWS BLOCK 2026-09-24 ===
   Mid-column «Сейчас в городе» — denser list, clearer date, alive hover,
   stronger footer CTA so the digest does not feel cut off.
   Scoped to .home-top-row .last_news_widget (homepage mid column).
   Respects home-city-fill stretch + column-height-balance peer.
   Do NOT edit lock sheets / adaptive tip / veterans / city-dir peers. */

.home-top-row .last_news_widget.home-news-block {
  --hnb-ink: #24344d;
  --hnb-muted: #5a6a82;
  --hnb-accent: #4563ad;
  --hnb-line: rgba(36, 52, 77, 0.1);
  --hnb-wash: #f2f6ff;
  --hnb-wash-hot: #e8eefc;
  position: relative;
}

.home-top-row .last_news_widget.home-news-block > h4 {
  margin: 0 0 10px 0 !important;
  padding: 0 0 8px 0 !important;
  border-bottom: 2px solid var(--hnb-accent) !important;
  color: var(--hnb-ink) !important;
  font-size: 18px !important;
  line-height: 1.25 !important;
  letter-spacing: 0.02em;
}

.home-top-row .last_news_widget.home-news-block .last_news_list {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1 1 auto;
  min-height: 0;
}

.home-top-row .last_news_widget.home-news-block a.last_news {
  display: grid !important;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-rows: auto;
  column-gap: 10px;
  align-items: start;
  float: none !important;
  padding: 7px 8px 7px 6px !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--hnb-line);
  border-radius: 2px;
  background: transparent;
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.home-top-row .last_news_widget.home-news-block .last_news_list a.last_news:last-of-type {
  border-bottom-color: transparent;
}

.home-top-row .last_news_widget.home-news-block a.last_news:hover {
  background: var(--hnb-wash) !important;
  box-shadow: inset 3px 0 0 var(--hnb-accent);
  text-decoration: none !important;
}

.home-top-row .last_news_widget.home-news-block .last_time {
  grid-column: 1;
  grid-row: 1;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  line-height: 1.15;
  color: var(--hnb-accent);
  font-variant-numeric: tabular-nums;
}

.home-top-row .last_news_widget.home-news-block .last_day {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--hnb-muted);
}

.home-top-row .last_news_widget.home-news-block .last_hm {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--hnb-accent);
}

.home-top-row .last_news_widget.home-news-block .last_news_title {
  grid-column: 2;
  grid-row: 1;
  display: block !important;
  color: var(--hnb-ink) !important;
  font-size: 13.5px !important;
  line-height: 1.28 !important;
  font-weight: 500;
  text-decoration: none !important;
  max-width: 100%;
}

.home-top-row .last_news_widget.home-news-block a.last_news:hover .last_news_title {
  color: var(--hnb-accent) !important;
  text-decoration: none !important;
}

.home-top-row .last_news_widget.home-news-block a.last_news.imp .last_news_title {
  font-weight: 700;
}

.home-top-row .last_news_widget.home-news-block .post_img {
  grid-column: 2;
  float: right !important;
  width: 48px !important;
  height: 34px !important;
  margin: 1px 0 0 8px !important;
  border-radius: 2px;
  background-size: cover !important;
  background-position: center !important;
}

.home-top-row .last_news_widget.home-news-block .photo_icon,
.home-top-row .last_news_widget.home-news-block .video_icon,
.home-top-row .last_news_widget.home-news-block .exclusive,
.home-top-row .last_news_widget.home-news-block .doc,
.home-top-row .last_news_widget.home-news-block .updated {
  grid-column: 2;
  justify-self: start;
  margin-top: 2px;
}

/* Footer CTA — reads as continuation, not abrupt end */
.home-top-row .last_news_widget.home-news-block > a.all_news.last_news_more,
.home-top-row .last_news_widget.home-news-block > a.all_news {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100% !important;
  box-sizing: border-box !important;
  margin-top: auto !important;
  margin-bottom: 0 !important;
  padding: 0 14px !important;
  height: 44px !important;
  line-height: 44px !important;
  border: 1px solid rgba(69, 99, 173, 0.45) !important;
  border-radius: 3px;
  background: linear-gradient(180deg, #ffffff 0%, var(--hnb-wash) 55%, var(--hnb-wash-hot) 100%) !important;
  color: var(--hnb-accent) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  text-align: center !important;
  text-decoration: none !important;
  box-shadow: 0 1px 0 rgba(36, 52, 77, 0.06);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}

.home-top-row .last_news_widget.home-news-block > a.all_news.last_news_more::after,
.home-top-row .last_news_widget.home-news-block > a.all_news::after {
  content: "→";
  font-weight: 700;
  opacity: 0.85;
  transition: transform 0.15s ease;
}

.home-top-row .last_news_widget.home-news-block > a.all_news.last_news_more:hover,
.home-top-row .last_news_widget.home-news-block > a.all_news:hover {
  background: var(--hnb-wash-hot) !important;
  color: #314a8a !important;
  border-color: var(--hnb-accent) !important;
  transform: translateY(-1px);
}

.home-top-row .last_news_widget.home-news-block > a.all_news.last_news_more:hover::after,
.home-top-row .last_news_widget.home-news-block > a.all_news:hover::after {
  transform: translateX(3px);
}

@media (max-width: 980px) {
  .home-top-row .last_news_widget.home-news-block > h4 {
    font-size: 17px !important;
  }
  .home-top-row .last_news_widget.home-news-block a.last_news {
    padding: 8px 4px !important;
  }
  .home-top-row .last_news_widget.home-news-block .last_news_title {
    font-size: 14px !important;
    line-height: 1.3 !important;
  }
  .home-top-row .last_news_widget.home-news-block .post_img {
    display: none !important;
  }
  .home-top-row .last_news_widget.home-news-block > a.all_news {
    margin-top: 12px !important;
    height: 44px !important;
    line-height: 44px !important;
  }
}
/* === end HOME NEWS BLOCK === */
