.news-catalog .catalog-card[href="show_news.html"] {
  overflow: hidden;
  transition: border-color .2s ease;
}

body .news-catalog .catalog-card[href="show_news.html"] h2,
body .news-catalog .catalog-card[href="show_news.html"]:hover h2 {
  color: #202428;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.news-catalog .catalog-card[href="show_news.html"] img {
  transition: transform .35s ease;
}

.news-catalog .catalog-card[href="show_news.html"]:focus-visible {
  outline: 2px solid #202428;
  outline-offset: 4px;
}

.news-catalog .catalog-card[href="show_news.html"]:focus-visible h2 {
  text-decoration-line: underline;
}

@media (hover: hover) {
  .news-catalog .catalog-card[href="show_news.html"]:hover {
    border-color: #aeb3b9;
  }

  .news-catalog .catalog-card[href="show_news.html"]:hover h2 {
    text-decoration-line: underline;
  }

  .news-catalog .catalog-card[href="show_news.html"]:hover img {
    transform: scale(1.025);
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-catalog .catalog-card[href="show_news.html"],
  .news-catalog .catalog-card[href="show_news.html"] img {
    transition: none;
  }

  .news-catalog .catalog-card[href="show_news.html"]:hover img {
    transform: none;
  }
}
