/* === Оживление страницы — плавные эффекты (Этап 4) === */

/* Плавное появление секций при скролле */
.p24-hero, .p24-services, .p24-trust, .p24-cases, .p24-roadmap,
.p24-team, .p24-reviews, .p24-faq, .p24-podcast, .p24-tm-opportunities,
.p24-blog-article, .p24-cases__grid > *, .p24-roadmap__step {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.p24-hero.animate-in, .p24-services.animate-in, .p24-trust.animate-in,
.p24-cases.animate-in, .p24-roadmap.animate-in, .p24-team.animate-in,
.p24-reviews.animate-in, .p24-faq.animate-in, .p24-podcast.animate-in,
.p24-tm-opportunities.animate-in, .p24-blog-article.animate-in,
.p24-cases__grid > *.animate-in, .p24-roadmap__step.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Hero — каскадная анимация элементов */
.p24-hero__badge { animation: fadeSlideDown 0.5s ease-out 0.1s both; }
.p24-hero__title, .p24-hero h1 { animation: fadeSlideDown 0.6s ease-out 0.2s both; }
.p24-hero__list li { animation: fadeSlideLeft 0.5s ease-out both; }
.p24-hero__list li:nth-child(1) { animation-delay: 0.3s; }
.p24-hero__list li:nth-child(2) { animation-delay: 0.4s; }
.p24-hero__list li:nth-child(3) { animation-delay: 0.5s; }
.p24-hero__list li:nth-child(4) { animation-delay: 0.6s; }
.p24-hero__list li:nth-child(5) { animation-delay: 0.7s; }
.p24-hero__list li:nth-child(6) { animation-delay: 0.8s; }
.p24-hero__buttons { animation: fadeSlideUp 0.6s ease-out 0.9s both; }
.p24-hero__video-card { animation: fadeSlideRight 0.7s ease-out 0.4s both; }
.p24-hero__expert-caption { animation: fadeSlideUp 0.5s ease-out 1.2s both; }

/* Кнопки — hover-эффекты */
.p24-hero__buttons a, .p24-services__cta a, .p24-roadmap__cta a {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.p24-hero__buttons a:hover, .p24-services__cta a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 98, 0, 0.35);
}
.p24-hero__buttons a:active, .p24-services__cta a:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(255, 98, 0, 0.25);
}

/* Карточки услуг — hover */
.p24-services__links a, .p24-services__panel a {
  transition: all 0.25s ease;
  position: relative;
}
.p24-services__links a:hover, .p24-services__panel a:hover {
  color: var(--p24-header-orange, #FF6200);
}

/* Карточки преимуществ — hover с подъёмом */
.p24-tm-opportunities__card, .p24-trust__item {
  transition: all 0.3s ease;
}
.p24-tm-opportunities__card:hover, .p24-trust__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(11, 31, 77, 0.1);
}

/* Карточки кейсов — hover */
.p24-cases__grid > * {
  transition: all 0.3s ease;
}
.p24-cases__grid > *:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 31, 77, 0.08);
}

/* Карточки команды — hover */
.p24-team-card {
  transition: all 0.3s ease;
}
.p24-team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(11, 31, 77, 0.12);
}
.p24-team-card img {
  transition: transform 0.5s ease;
}
.p24-team-card:hover img {
  transform: scale(1.05);
}

/* Этапы работы — hover */
.p24-roadmap__step {
  transition: all 0.3s ease;
}
.p24-roadmap__step:hover {
  box-shadow: 0 4px 12px rgba(11, 31, 77, 0.06);
}

/* FAQ — плавное раскрытие */
.p24-faq-item, details {
  transition: all 0.3s ease;
}
.p24-faq-item:hover, details:hover {
  background: rgba(62, 109, 255, 0.03);
}

/* Шапка — тень при скролле */
.p24-header {
  transition: box-shadow 0.3s ease;
}
.p24-header.is-scrolled {
  box-shadow: 0 4px 16px rgba(11, 31, 77, 0.08);
}

/* Ссылки — подчёркивание при hover */
.p24-header__nav a, .p24-footer-contact a {
  transition: color 0.2s ease;
}
.p24-header__nav a:hover, .p24-footer-contact a:hover {
  color: var(--p24-header-orange, #FF6200);
}

/* Цифры доверия — плавный счётчик */
.p24-reviews-stat, .p24-trust__visuals {
  transition: all 0.4s ease;
}

/* Секции — чередование фонов для визуального ритма */
.p24-services, .p24-cases, .p24-faq {
  background: #F7F7F5;
}
.p24-hero, .p24-trust, .p24-tm-opportunities, .p24-roadmap,
.p24-team, .p24-reviews, .p24-podcast {
  background: #FFFFFF;
}

/* Скроллбар — тонкий стильный */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #F1F1F1; }
::-webkit-scrollbar-thumb { background: #C1C1C1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3E6DFF; }

/* Выделение текста — фирменный цвет */
::selection {
  background: rgba(255, 98, 0, 0.15);
  color: #0B1F4D;
}

/* Фокус на формах — фирменная обводка */
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--p24-header-blue, #3E6DFF);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Плавный скролл */
html {
  scroll-behavior: smooth;
}

/* Анимации keyframes */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeSlideRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Видео — плавная загрузка */
.p24-hero__video {
  transition: opacity 0.5s ease;
}

/* Уважение reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
