/* faq.css - ТВОЙ ДИЗАЙН + ПРОСТОЕ СИНЕЕ ВЫДЕЛЕНИЕ */
/* Герой-секция FAQ */
.faq-hero-subtitle {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(30px);
    animation: modernFadeUp 0.8s ease 0.2s forwards;
}

/* Основная секция FAQ */
.faq-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.faq-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Группы вопросов */
.faq-group {
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: modernFadeUp 0.6s ease forwards;
}

.faq-group:nth-child(1) { animation-delay: 0.3s; }
.faq-group:nth-child(2) { animation-delay: 0.4s; }
.faq-group:nth-child(3) { animation-delay: 0.5s; }
.faq-group:nth-child(4) { animation-delay: 0.6s; }

.faq-group-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.faq-group-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #2d5be3;
    border-radius: 1px;
    transition: width 0.3s ease;
}

.faq-group:hover .faq-group-title::after {
    width: 100px;
}

.faq-group-title i {
    color: #2d5be3;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-group:hover .faq-group-title i {
    transform: scale(1.1) rotate(5deg);
}

/* Вопросы и ответы */
.faq-item {
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2ff;
    opacity: 0;
    transform: translateY(20px);
    animation: modernFadeUp 0.5s ease forwards;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.15s; }
.faq-item:nth-child(3) { animation-delay: 0.2s; }
.faq-item:nth-child(4) { animation-delay: 0.25s; }
.faq-item:nth-child(5) { animation-delay: 0.3s; }
.faq-item:nth-child(6) { animation-delay: 0.35s; }
.faq-item:nth-child(7) { animation-delay: 0.4s; }
.faq-item:nth-child(8) { animation-delay: 0.45s; }
.faq-item:nth-child(9) { animation-delay: 0.5s; }
.faq-item:nth-child(10) { animation-delay: 0.55s; }
.faq-item:nth-child(11) { animation-delay: 0.6s; }
.faq-item:nth-child(12) { animation-delay: 0.65s; }
.faq-item:nth-child(13) { animation-delay: 0.7s; }
.faq-item:nth-child(14) { animation-delay: 0.75s; }
.faq-item:nth-child(15) { animation-delay: 0.8s; }
.faq-item:nth-child(16) { animation-delay: 0.85s; }
.faq-item:nth-child(17) { animation-delay: 0.9s; }
.faq-item:nth-child(18) { animation-delay: 0.95s; }

.faq-question {
    width: 100%;
    padding: 20px 25px;
    text-align: left;
    background: white;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    transition: all 0.3s ease;
}

/* Синее выделение при наведении */
.faq-question:hover {
    background: #eef2ff;
    color: #2d5be3;
}

.faq-question i {
    color: #94a3b8;
    transition: transform 0.3s ease, color 0.3s ease, background 0.3s ease;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-left: 10px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
}

.faq-question:hover i {
    background: #2d5be3;
    color: white;
}

/* УБРАЛ ЗАТЕМНЕНИЕ - теперь просто белый фон */
.faq-question.active {
    background: white;  /* Был #f0f4ff, теперь white */
}

.faq-question.active i {
    transform: rotate(180deg);
    background: #2d5be3;
    color: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    background: white;
}

.faq-answer.open {
    max-height: 1000px;
}

.faq-answer-content {
    padding: 0 25px 25px;
}

.faq-answer p {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 15px;
}

.faq-answer ul {
    margin: 15px 0;
    padding-left: 20px;
    color: #475569;
}

.faq-answer li {
    margin-bottom: 8px;
    line-height: 1.5;
    position: relative;
    padding-left: 5px;
}

.faq-answer li::before {
    content: '•';
    color: #2d5be3;
    font-weight: bold;
    position: absolute;
    left: -15px;
}

/* Блок контактов */
.faq-contact-block {
    margin-top: 80px;
    background: linear-gradient(135deg, #2d5be3 0%, #1d4ed8 100%);
    border-radius: 20px;
    padding: 50px;
    color: white;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: modernFadeUp 0.8s ease 0.7s forwards;
    position: relative;
    overflow: hidden;
}

.faq-contact-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.7), rgba(191, 219, 254, 0.95), rgba(255, 255, 255, 0.7));
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

.faq-contact-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.faq-contact-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    opacity: 0.9;
    display: inline-block;
    animation: gentlePulse 3s ease infinite;
}

.faq-contact-text h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.faq-contact-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.5;
}

.faq-contact-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.faq-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.phone-btn {
    background: white;
    color: #2d5be3;
}

.mail-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
}

.phone-btn:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mail-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

/* Анимации */
@keyframes modernFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes gentlePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Адаптивность для FAQ */
@media (max-width: 768px) {
    .faq-hero-title {
        margin-bottom: 15px;
    }
    
    .faq-hero-subtitle {
        margin-bottom: 20px;
    }
    
    .faq-section {
        padding: 40px 0;
    }
    
    .faq-group-title {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .faq-group-title i {
        font-size: 1.3rem;
    }
    
    .faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .faq-question i {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
    
    .faq-answer-content {
        padding: 0 20px 20px;
    }
    
    .faq-contact-block {
        padding: 40px 30px;
        margin-top: 60px;
    }
    
    .faq-contact-text h3 {
        font-size: 1.5rem;
    }
    
    .faq-contact-text p {
        font-size: 1rem;
    }
    
    .faq-contact-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .faq-contact-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        padding: 12px 20px;
    }
}