/**
 * Магия abcconsalt.ru — тонкие анимации и полировка
 */

/* Плавная прокрутка */
html {
  scroll-behavior: smooth;
}

/* Лёгкое появление блоков при скролле */
.t-rec {
  opacity: 1;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.t-rec.magic-reveal {
  opacity: 0;
  transform: translateY(24px);
}

.t-rec.magic-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Мягкое свечение при наведении на ссылки и кнопки */
.t-btn:hover,
.t396__elem a:hover,
.t-sociallinks__item a:hover {
  transition: transform 0.2s ease, filter 0.2s ease;
}

.t-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.t-sociallinks__item a:hover {
  transform: scale(1.1);
}

/* Плавный фокус для полей форм */
.t-input:focus,
.t-form input:focus {
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Мягкая пульсация для CTA (если есть) */
@keyframes magic-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.9; }
}

.t-btn.t-arrow:hover {
  animation: magic-pulse 2s ease-in-out infinite;
}

/* Страницы услуг: контент виден сразу (Tilda по умолчанию скрывает до загрузки) */
#allrecords.t-records_visible {
  opacity: 1 !important;
}

/* Страницы услуг: скролл работает (Lenis и др. могут блокировать) */
html.t-body-page,
html.t-body-page body {
  overflow-y: auto !important;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Разрешаем копирование текста (отключаем блокировку Tilda t875) */
body.t-body,
#allrecords,
#allrecords * {
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  -webkit-touch-callout: default !important;
}
