/* Скругляем все блоки сайта */
.t-rec {
  border-radius: 30px;
  overflow: hidden;
  background-clip: padding-box;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06); /* мягкая тень, можно убрать */
  margin-top: 20px; /* чтобы между блоками было пространство */
}

/* Чтобы на мобильных углы были чуть меньше */
@media (max-width: 980px) {
  .t-rec {
    border-radius: 18px;
    margin-top: 16px;
  }
}

/* Отступы по бокам для всех блоков */
.t-rec {
  margin-left: 40px;
  margin-right: 40px;
}

/* На мобильных делаем чуть меньше */
@media (max-width: 980px) {
  .t-rec {
    margin-left: 16px;
    margin-right: 16px;
  }
}

/* ==== Кнопки CR45 с анимацией радуги и белым текстом ==== */
#rec782469151 .t-btn {
  display: inline-block;
  position: relative;
  overflow: visible !important;
  border-radius: 30px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  z-index: 0;
  cursor: pointer;
  color: #fff !important;
}

/* Внутренний фон кнопки */
#rec782469151 .t-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background: #2a2731 !important;  /* заливка */
  z-index: 1 !important;
  pointer-events: none;
}

/* Радужное сияние */
#rec782469151 .t-btn::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  border-radius: 30px;
  background: linear-gradient(
    45deg,
    #ff0000,
    #ff7300,
    #fffb00,
    #48ff00,
    #00ffd5,
    #002bff,
    #7a00ff,
    #ff00c8,
    #ff0000
  );
  background-size: 400% 400%;
  background-position: 0% 50%;
  filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  animation: glowRainbow782469151 16s linear infinite;
  animation-play-state: running;
  will-change: background-position;
  transform: translateZ(0);
  z-index: 0 !important;
  pointer-events: none;
}

/* Текст поверх */
#rec782469151 .t-btn .t-btn__inner,
#rec782469151 .t-btn .t-btn__text,
#rec782469151 .t-btn span {
  position: relative;
  z-index: 2;
  color: #fff !important;
}

/* Срабатывает на hover / focus / tap */
#rec782469151 .t-btn:hover::before,
#rec782469151 .t-btn:focus-visible::before,
#rec782469151 .t-btn:active::before {
  opacity: 1;
}

/* Анимация перелива радуги */
@keyframes glowRainbow782469151 {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 400% 50%; }
  100% { background-position: 0% 50%; }
}
