/* МурМяу 09.11.2026: блок «Взять кошку или кота в наших группах в соцсетях» (sidebarsocialcatsandkittens) —
   плитки с иконками в стиле логотипа. Разметка — fl_blocks.Content (scripts/social-icons-build.py), иконки — img/social/mm/.
   Вид плиток совпадает с карточками статей (news/teaser-cards.css). */

.mm-social {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none; }

.mm-social__item {
  display: flex;
  margin: 0;
  padding: 0; }

.mm-social__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 18px 12px 16px;
  text-align: center;
  color: inherit;
  text-decoration: none;
  background: var(--content-background-color, #f5f5f5);
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(26, 63, 122, 0.10);
  transition: transform .18s ease, box-shadow .18s ease; }
  .mm-social__link:hover {
    color: inherit;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(26, 63, 122, 0.18); }

.mm-social__icon {
  display: block;
  width: 72px;
  height: 72px;
  transition: transform .25s ease; }
  .mm-social__link:hover .mm-social__icon {
    transform: rotate(-6deg) scale(1.06); }

.mm-social__name {
  margin-top: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--body-font-color, #111); }

.mm-social__text {
  margin-top: 6px;
  font-size: .88rem;
  line-height: 1.4;
  color: var(--body-font-color, #111);
  color: color-mix(in srgb, var(--body-font-color, #111) 78%, transparent); }
  .mm-social__text b {
    color: var(--body-font-color, #111);
    font-weight: 700; }

@media (max-width: 991.98px) {
  .mm-social {
    grid-template-columns: repeat(3, 1fr); } }

/* Телефон: строки «иконка слева, текст справа» вместо пяти высоких плиток подряд */
@media (max-width: 575.98px) {
  .mm-social {
    grid-template-columns: 1fr;
    gap: 10px; }
  .mm-social__link {
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    align-items: center;
    padding: 10px 14px;
    text-align: left; }
    .mm-social__link:hover {
      transform: none; }
  .mm-social__icon {
    grid-row: 1 / 3;
    width: 56px;
    height: 56px; }
  .mm-social__name {
    margin-top: 0;
    align-self: end; }
  .mm-social__text {
    margin-top: 2px;
    align-self: start; } }

@media (prefers-reduced-motion: reduce) {
  .mm-social__link, .mm-social__icon {
    transition: none; }
  .mm-social__link:hover, .mm-social__link:hover .mm-social__icon {
    transform: none; } }
