/* templates/general_sunny/components/seo-text/seo-text.css */
/* МурМяу 09.11.2026: текст страницы под карточками каталога (section.seo-text) — content.tpl и plugins/fieldBoundBoxes/listings_by_field.tpl.
   Раньше блок наследовал сброс стилей шаблона: нулевые отступы, line-height normal, списки без маркеров, серые ссылки (#777), заголовок
   того же веса, что и текст. Теперь — плитка в одном стиле с остальными блоками (docs/design-system.md §2: радиус 18, тень navy) и обычная
   типографика статьи. Цвета — переменные темы (светлая и тёмная); акцент — sky #00B4F5, как у иконок и маркеров сайта. Разметка текста
   (h2, p, ul/ol, a, strong) не меняется — это lang-ключ pages+content+<ключ>, тексты правятся штатно в админке. */

.seo-text {
  margin: 32px 0 0;
  padding: 28px 36px 24px;
  background: var(--content-background-color, #f5f5f5);
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(26, 63, 122, 0.10);
  color: var(--body-font-color, #111);
  font-size: 1rem;
  line-height: 1.65; }

.seo-text > :first-child {
  margin-top: 0; }

.seo-text > :last-child {
  margin-bottom: 0; }

.seo-text h2 {
  margin: 1.9em 0 0.55em;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3; }

.seo-text h3 {
  margin: 1.5em 0 0.5em;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35; }

.seo-text p {
  margin: 0 0 0.9em; }

.seo-text ul,
.seo-text ol {
  margin: 0 0 1em;
  padding-left: 1.4em; }

.seo-text ul {
  list-style: disc; }

.seo-text ol {
  list-style: decimal; }

.seo-text li {
  margin: 0 0 0.4em;
  padding-left: 0.2em; }

.seo-text li:last-child {
  margin-bottom: 0; }

.seo-text li::marker {
  color: #00B4F5; }

.seo-text strong {
  font-weight: 600; }

/* ссылка читается как ссылка: цвет текста + голубое подчёркивание (серый #777 на светлом фоне был слабым по контрасту) */
.seo-text a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #00B4F5;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px; }

.seo-text a:hover,
.seo-text a:focus-visible {
  color: #0095d6;
  text-decoration-color: currentColor; }

@media (max-width: 767.98px) {
  .seo-text {
    padding: 24px 24px 20px; } }

@media (max-width: 575.98px) {
  .seo-text {
    margin-top: 24px;
    padding: 20px 18px 16px;
    border-radius: 14px; }
  .seo-text h2 {
    font-size: 1.15rem; } }

/* templates/general_sunny/components/social/social-tiles.css */
/* МурМяу 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; } }

/* templates/general_sunny/components/howto/howto-steps.css */
/* МурМяу 09.11.2026: блок «Как добавить кошку или котёнка» (howto_add, howto_add_page) — четыре шага плитками.
   Разметка — fl_blocks.Content (scripts/howto-add-build.py, миграция 0052). Плитки в одном стиле с FAQ, соцсетями и гео-блоками
   (docs/design-system.md §2): радиус 18, тень navy, подъём при наведении. Номер — золотой кружок с navy-цифрой, кнопки — как «Читать →» у
   тизеров статей (контурная «таблетка» цвета кнопки, заливка при наведении). Десктоп 4 в ряд со стрелками между шагами, планшет 2×2, телефон 1. */

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

.mm-steps__item {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 22px;
  background: var(--content-background-color, #f5f5f5);
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(26, 63, 122, 0.10); }

/* стрелка-«шеврон» между шагами (только в одну строку) */
.mm-steps__item:not(:last-child)::after {
  content: "\203A";
  position: absolute;
  top: 34px;
  right: -19px;
  z-index: 1;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #00B4F5;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
  pointer-events: none; }

.mm-steps__num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: #F2A81D;
  box-shadow: 0 0 0 4px #FFE3B0;
  color: #1A3F7A;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1; }

.mm-steps__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 600; }

.mm-steps__text {
  margin: 0;
  font-size: .92rem;
  line-height: 1.5; }

.mm-steps__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px; }

.mm-steps__btn {
  display: inline-block;
  padding: 5px 18px;
  border: 2px solid var(--button-color, #facb05);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--body-font-color, #111);
  text-decoration: none;
  transition: background .18s ease, color .18s ease; }

.mm-steps__btn::after {
  content: " \2192"; }

.mm-steps__btn:hover,
.mm-steps__btn:focus-visible {
  background: var(--button-color, #facb05);
  color: var(--button-text-color, #111);
  text-decoration: none; }

/* последний шаг — акцентная плитка: золотая обводка */
.mm-steps__item_final {
  box-shadow: 0 0 0 2px #F2A81D, 0 2px 12px rgba(26, 63, 122, 0.10); }

/* компактный вариант над формой подачи (howto_add_form, миграция 0054): номер в строку с заголовком, форму вниз почти не сдвигает */
section.content_block.howto_add_form {
  margin-bottom: 8px;
  padding: 12px 0 8px; }

section.content_block.howto_add_form > div {
  padding-bottom: 0; }

.mm-steps_compact {
  gap: 12px; }

.mm-steps_compact .mm-steps__item {
  display: grid;
  grid-template-columns: 30px 1fr;
  column-gap: 10px;
  align-items: center;
  align-content: start;
  padding: 12px 14px 14px; }

.mm-steps_compact .mm-steps__item:not(:last-child)::after {
  top: 16px;
  right: -17px; }

.mm-steps_compact .mm-steps__num {
  width: 30px;
  height: 30px;
  margin: 0;
  box-shadow: 0 0 0 3px #FFE3B0;
  font-size: 1rem; }

.mm-steps_compact .mm-steps__title {
  margin: 0;
  font-size: .95rem;
  line-height: 1.25; }

.mm-steps_compact .mm-steps__text {
  grid-column: 1 / -1;
  margin-top: 8px;
  font-size: .85rem;
  line-height: 1.4; }

@media (max-width: 991.98px) {
  .mm-steps {
    grid-template-columns: repeat(2, 1fr); }
  .mm-steps__item:not(:last-child)::after,
  .mm-steps_compact .mm-steps__item:not(:last-child)::after {
    display: none; } }

@media (max-width: 575.98px) {
  .mm-steps {
    grid-template-columns: 1fr;
    gap: 12px; }
  .mm-steps__item {
    padding: 16px 16px 18px; }
  .mm-steps_compact {
    gap: 10px; }
  .mm-steps_compact .mm-steps__item {
    padding: 10px 12px 12px; } }

@media (prefers-reduced-motion: reduce) {
  .mm-steps__btn {
    transition: none; } }
