/**
 * Дорожная карта #Road — тень и анимация карточек
 * (аналогично card-features-5 в hero block)
 */

@keyframes roadmap-card-float {
  0% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Тень и анимация карточек дорожной карты */
#Road .roadmap-horizontal .roadmap-list .item-log .info-log {
  position: relative;
  animation: roadmap-card-float 2s ease-in-out infinite alternate;
  transition: box-shadow 0.3s ease, background-image 0.3s ease;
}

#Road .roadmap-horizontal .roadmap-list .item-log:nth-child(1) .info-log {
  animation-delay: 0s;
}
#Road .roadmap-horizontal .roadmap-list .item-log:nth-child(2) .info-log {
  animation-delay: 0.3s;
}
#Road .roadmap-horizontal .roadmap-list .item-log:nth-child(3) .info-log {
  animation-delay: 0.6s;
}
#Road .roadmap-horizontal .roadmap-list .item-log:nth-child(4) .info-log {
  animation-delay: 0.9s;
}

/* Тень при наведении (как card-features-5) */
#Road .roadmap-horizontal .roadmap-list .item-log .info-log:hover {
  background-image: url(../imgs/page/homepage2/bg-shadow.png);
  background-repeat: no-repeat;
  background-position: top left;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

/* Анимация карточек пошаговой схемы iGND (как в дорожной карте) */
#ignd-steps .ignd-steps-list .ignd-step-item .ignd-step-card {
  position: relative;
  animation: roadmap-card-float 2s ease-in-out infinite alternate;
  transition: box-shadow 0.3s ease, background-image 0.3s ease;
}
#ignd-steps .ignd-steps-list .ignd-step-item:nth-child(1) .ignd-step-card { animation-delay: 0s; }
#ignd-steps .ignd-steps-list .ignd-step-item:nth-child(2) .ignd-step-card { animation-delay: 0.2s; }
#ignd-steps .ignd-steps-list .ignd-step-item:nth-child(3) .ignd-step-card { animation-delay: 0.4s; }
#ignd-steps .ignd-steps-list .ignd-step-item:nth-child(4) .ignd-step-card { animation-delay: 0.6s; }
#ignd-steps .ignd-steps-list .ignd-step-item:nth-child(5) .ignd-step-card { animation-delay: 0.8s; }
#ignd-steps .ignd-steps-list .ignd-step-item:nth-child(6) .ignd-step-card { animation-delay: 1s; }
#ignd-steps .ignd-steps-list .ignd-step-item:nth-child(7) .ignd-step-card { animation-delay: 1.2s; }
#ignd-steps .ignd-steps-list .ignd-step-item:nth-child(8) .ignd-step-card { animation-delay: 1.4s; }
#ignd-steps .ignd-steps-list .ignd-step-item:nth-child(9) .ignd-step-card { animation-delay: 1.6s; }
#ignd-steps .ignd-steps-list .ignd-step-item:nth-child(10) .ignd-step-card { animation-delay: 1.8s; }
#ignd-steps .ignd-steps-list .ignd-step-item .ignd-step-card:hover {
  background-image: url(../imgs/page/homepage2/bg-shadow.png);
  background-repeat: no-repeat;
  background-position: top left;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

/* Анимация картинки в блоке КОМАНДА (как карточки дорожной карты) */
.testimonial-img-animated {
  display: inline-block;
  animation: roadmap-card-float 2s ease-in-out infinite alternate;
}
.testimonial-img-animated img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Этап 1: прогресс-бар в стиле публичной темы */
.roadmap-stage1-progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  min-width: 120px;
}
.roadmap-stage1-progress .roadmap-progress-label {
  display: block;
}
.roadmap-stage1-progress .roadmap-progress-bar {
  height: 8px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.15) !important;
  overflow: hidden;
}
.roadmap-stage1-progress .roadmap-progress-bar .progress-bar {
  background-color: var(--color-primary) !important;
  border-radius: 4px;
  transition: width 0.5s ease;
}
.roadmap-stage1-progress .roadmap-progress-value {
  display: block;
  font-weight: 600;
}

/* Этап 1: чекбоксы в стиле публичной темы */
#Road .roadmap-stage1-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: block;
  max-width: none;
}
.roadmap-stage1-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.85);
  padding-left: 0;
}
.roadmap-stage1-checklist li::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.roadmap-item-done::before {
  background-image: url(../imgs/page/homepage3/check.svg);
}
.roadmap-item-progress::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='8' stroke='%23C5FF55' stroke-width='2' stroke-dasharray='3 5' stroke-linecap='round'/%3E%3Cpath d='M10 6V10L13 13' stroke='%23C5FF55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  opacity: 0.9;
}
