/* Additional styles for FAQ page */
.faq-hero {
    background: linear-gradient(135deg, rgba(26, 151, 205, 0.8), rgba(0, 0, 0, 0.8));
    padding: 180px 0 100px;
    color: #fff;
    text-align: center;
}

.faq-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.faq-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

.faq-section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

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

.faq-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.category-btn {
    padding: 10px 25px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.category-btn.active,
.category-btn:hover {
    background: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
}

.faq-accordion {
    margin-bottom: 50px;
}

.faq-category-title {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin: 60px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    display: none;
}

.faq-category-title.active {
    display: block;
}

.faq-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--secondary-color);
}

.faq-question:after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 1.2rem;
    transition: var(--transition);
}

.faq-question.active:after {
    transform: rotate(180deg);
    color: var(--secondary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer.active {
    max-height: 500px;
    /* ставим достаточно большое значение */
}


.faq-answer-content {
    padding: 0 25px 20px;
    line-height: 1.7;
    color: var(--text-light);
}

.faq-answer-content p {
    margin-bottom: 15px;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

.faq-contact {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    border-radius: 10px;
    color: #fff;
}

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

.faq-contact p {
    max-width: 600px;
    margin: 0 auto 25px;
    opacity: 0.9;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.contact-method {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: 50px;
    transition: var(--transition);
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 16px;
}

.contact-text h4 {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 3px;
    opacity: 0.8;
}

.contact-text a,
.contact-text span {
    color: #fff;
    font-weight: 500;
    font-size: 1.1rem;
}

.contact-text a:hover {
    color: var(--secondary-color);
}

/* Ask a question form (FAQ contact) */
.question-form {
    max-width: 700px;
    margin: 25px auto 0;
    background: #fff;
    color: var(--text-color);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    text-align: left;
}

.question-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.question-form .form-group {
    margin-bottom: 15px;
}

.question-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--dark-color);
}

.question-form .form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: var(--transition);
}

.question-form .form-control:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

.question-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.question-form .btn {
    display: inline-block;
    padding: 12px 22px;
    font-size: 1rem;
}

@media (max-width: 576px) {
    .question-form .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .faq-hero h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .contact-method {
        width: 100%;
        justify-content: center;
        margin-bottom: 15px;
    }

    .faq-contact {
        padding: 30px 20px;
    }

    .faq-contact h3 {
        font-size: 1.5rem;
    }
}
