
/* PHP-based reveal animation */
.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.reveal:nth-child(0) {
    transition-delay: 100ms;
}
.reveal:nth-child(1) {
    transition-delay: 200ms;
}
.reveal:nth-child(2) {
    transition-delay: 300ms;
}
.reveal:nth-child(3) {
    transition-delay: 400ms;
}
.reveal:nth-child(4) {
    transition-delay: 500ms;
}
.reveal:nth-child(5) {
    transition-delay: 600ms;
}
.reveal:nth-child(6) {
    transition-delay: 700ms;
}
.reveal:nth-child(7) {
    transition-delay: 800ms;
}

/* Автоматически активируем все элементы reveal при загрузке страницы */
.reveal {
    animation: autoReveal 0.5s forwards 0.5s;
}

@keyframes autoReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* PHP-controlled animations for different sections */
.hero h1, .hero p, .hero-cta {
    animation: fadeIn 1.2s forwards;
}

.hero p {
    animation-delay: 0.3s;
}

.hero-cta {
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FAQ Animation - PHP controlled without JavaScript */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.faq-answer.active {
    max-height: 500px;
    padding: 1.5rem;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}

/* Additional animations that were previously controlled by JavaScript */
.testimonial {
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.8s forwards;
}

.testimonial:nth-child(2) {
    animation-delay: 0.3s;
}

.testimonial:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
