/* ===== ОСНОВНОЙ КОНТЕНТ FAQ ===== */
h1 {
    text-align: center;
    margin: 60px 40px 40px;
    font-size: 3.2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.faq-container {
    max-width: 1000px;
    margin: 0 auto 80px;
    padding: 0 30px;
}

.faq-item {
    background: var(--surface-color);
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.3s;
}

.faq-item:hover::before {
    opacity: 1;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.3rem;
    position: relative;
    background: var(--surface-color);
}

.faq-question:hover {
    background: linear-gradient(135deg, var(--surface-color) 0%, rgba(126, 87, 194, 0.05) 100%);
}

.faq-icon {
    margin-right: 20px;
    font-size: 2rem;
    font-weight: 300;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
    min-width: 30px;
    text-align: center;
    line-height: 1;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid var(--border-color);
}

.faq-item.active .faq-answer {
    max-height: 2000px;
}

.faq-answer p {
    padding: 25px 30px;
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.8;
}

.faq-answer img {
    max-width: 100%;
    border-radius: 12px;
    margin: 15px 0 15px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--border-color);
}

.faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.faq-answer a:hover {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    transform: translateY(-1px);
    text-shadow: 0 2px 10px rgba(255, 107, 157, 0.3);
}

.faq-answer h3 {
    font-family: "Moderustic", 'Segoe UI', sans-serif;
    font-size: 1.4rem;
    margin: 25px 0 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    padding-left: 20px;
    border-left: 4px solid var(--accent-color);
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item {
    animation: fadeInUp 0.6s ease-out;
}

.faq-item:nth-child(2) { animation-delay: 0.1s; }
.faq-item:nth-child(3) { animation-delay: 0.2s; }
.faq-item:nth-child(4) { animation-delay: 0.3s; }
.faq-item:nth-child(5) { animation-delay: 0.4s; }

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
        margin: 40px 20px 30px;
    }
    
    .faq-question {
        padding: 20px;
        font-size: 1.1rem;
    }
    
    .faq-container {
        padding: 0 20px;
        margin-bottom: 60px;
    }
    
    .faq-answer p {
        padding: 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
        margin: 30px 15px 20px;
    }
    
    .faq-question {
        padding: 15px;
        font-size: 1rem;
    }
    
    .faq-answer p {
        padding: 15px;
    }
}