/* МурМяу 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; } }
