/* Рукописный шрифт для элементов Zero Block с классом marck */
.tn-elem.marck .tn-atom,
.tn-elem.marck .tn-atom * {
  font-family: 'Marck Script', cursive !important;
  font-weight: 400 !important;
  word-spacing: -0.14em;
}

/* Бегущая строка: рукописные слова и звёздочки */
#rec4682347401 .t1003__item-txt {
  font-size: 30px !important;
  line-height: 1.3 !important;
}
#rec4682347401 .t1003__item-txt .mk {
  font-family: 'Marck Script', cursive;
  font-size: 38px;
  line-height: 1;
}
#rec4682347401 .t1003__item-txt .st {
  font-style: normal;
  font-size: 18px;
  margin: 0 32px;
  vertical-align: 0.15em;
}

/* Финальный блок: размытое фото на фоне */
.tn-elem.rm-final-bg {
  overflow: hidden;
  border-radius: 48px 48px 0 0;
}
.tn-elem.rm-final-bg .tn-atom {
  filter: blur(30px) saturate(0.7);
  opacity: 0.35;
  transform: scale(1.2);
  background-position: 50% 30% !important;
}
.tn-elem.rm-final-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, #6E1C2B 30%, rgba(110, 28, 43, 0.6));
  pointer-events: none;
}

/* Вращение кольца бейджа */
@keyframes rmspin { from { rotate: 0deg; } to { rotate: 360deg; } }
.tn-elem.rm-ring .tn-atom { animation: rmspin 18s linear infinite; }

/* Подъём карточек при наведении */
.rm-lift-t { transition: translate .5s cubic-bezier(.16,1,.3,1), box-shadow .5s cubic-bezier(.16,1,.3,1) !important; }
.rm-lift-shadow { box-shadow: 0 24px 40px -26px rgba(110, 28, 43, 0.45); }
@media (prefers-reduced-motion: reduce) { .tn-elem.rm-ring .tn-atom { animation: none; } }

/* Галерея сообщества на телефонах */
@media (max-width: 639px) {
  #rmGal .rm-g__inner { columns: 2 !important; column-gap: 10px !important; }
  #rmGal .rm-g__item { margin-bottom: 10px !important; border-radius: 16px !important; }
  #rmGal .rm-g__box:not(.is-open) { max-height: 470px !important; }
  #rmGal .rm-g__foot { flex-wrap: wrap !important; gap: 12px !important; }
  #rmGal .rm-g__hint { font-size: 18px !important; }
  .rm-lb2 { padding: 64px 12px !important; }
}