/* css/faq.css - Сексуальная гармошка для FAQ */

.faq-page {
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Хлебные крошки */
.breadcrumbs {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.breadcrumbs a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Заголовок */
.faq-page h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Введение */
.faq-intro {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
    text-align: center;
    border-left: 4px solid #667eea;
}

.faq-intro p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    color: #495057;
}

.faq-intro a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.faq-intro a:hover {
    text-decoration: underline;
}

/* Секции FAQ */
.faq-sections {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.faq-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Аккордеон */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
}

.faq-item:hover {
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

/* Вопрос (кнопка) */
.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.faq-question::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    transition: left 0.5s ease;
}

.faq-question:hover::before {
    left: 0;
}

.faq-question:hover {
    color: #667eea;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.faq-question span {
    position: relative;
    z-index: 2;
    flex: 1;
    margin-right: 1rem;
}

/* Иконка */
.faq-icon {
    fill: #6c757d;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.faq-icon.rotated {
    transform: rotate(180deg);
    fill: #667eea;
}

/* Ответ */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
}

.faq-answer.open {
    max-height: 500px;
    border-top: 1px solid #e9ecef;
}

.faq-content {
    padding: 2rem;
    font-size: 1rem;
    line-height: 1.7;
    color: #495057;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.faq-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Футер FAQ */
.faq-footer {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    margin-top: 3rem;
    text-align: center;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.faq-footer h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-footer p {
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.faq-footer ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.faq-footer li {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 0.8rem 1.5rem;
    transition: all 0.3s ease;
}

.faq-footer li:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.faq-footer a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: block;
}

/* Адаптивность */
@media (max-width: 768px) {
    .faq-page h1 {
        font-size: 2rem;
    }

    .faq-section {
        padding: 1.5rem;
        border-radius: 15px;
    }

    .faq-question {
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
    }

    .faq-content {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .faq-footer ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }

    .faq-intro,
    .faq-section,
    .faq-footer {
        padding: 1rem;
    }

    .faq-question span {
        margin-right: 0.5rem;
    }

    .faq-page h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}

/* Анимации при скролле */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-section {
    animation: fadeInUp 0.6s ease-out;
}

.faq-item:nth-child(odd) .faq-question {
    background: linear-gradient(135deg, #f1f3f4 0%, #ffffff 100%);
}

/* Подсветка активного элемента */
.faq-item.active {
    border-color: #667eea;
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.2);
}

.faq-item.active .faq-question {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}
