/* Стили шаблона faq.php. Порядок правил и подключения сохранён; файл кэшируется браузером. */
.faq-wrap {
    min-height: calc(100vh - 80px);
    padding: 30px 20px;
}

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

.faq-main-title {
    color: #ffffff;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.faq-main-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #c4455c;
    border-radius: 1px;
}

.faq-main-subtitle {
    color: #9ca3af;
    font-size: 14px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-weight: 500;
}

.faq-content {
    margin: 0 auto;
}

.faq-section {
    margin-bottom: 40px;
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #2d2d2d;
    padding: 25px;
}

.faq-section-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2d2d2d;
}

.faq-section-content {
    color: #9ca3af;
    font-size: 15px;
    line-height: 1.6;
}

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

.faq-question-group {
    margin-top: 20px;
}

.faq-question-item {
    margin-bottom: 15px;
    background: #252525;
    border-radius: 8px;
    border: 1px solid #333;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question-item:last-child {
    margin-bottom: 0;
}

.faq-question-item.active {
    border-color: #c4455c;
}

.faq-question-header {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.faq-question-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-question-marker {
    margin-right: 15px;
}

.marker-number {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: #333;
    color: #9ca3af;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.faq-question-item.active .marker-number {
    background: #c4455c;
    color: #ffffff;
}

.faq-question-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    flex: 1;
    margin: 0;
    line-height: 1.4;
}

.faq-toggle-btn {
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.faq-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.faq-question-item.active .faq-toggle-btn .toggle-icon {
    transform: rotate(45deg);
}

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

.faq-question-item.active .faq-answer {
    max-height: 1000px;
}

.faq-answer-content {
    padding: 0 20px 20px 20px;
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.6;
}

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

.faq-answer-content ul {
    list-style: none;
    padding-left: 0;
    margin: 15px 0;
}

.faq-answer-content li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.faq-answer-content li:before {
    content: "—";
    position: absolute;
    left: 0;
    color: #6b7280;
}

.faq-answer-content strong {
    color: #ffffff;
    font-weight: 600;
}

.faq-help {
    margin-top: 50px;
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #2d2d2d;
    padding: 30px;
    text-align: center;
}

.faq-help-content {
    max-width: 500px;
    margin: 0 auto;
}

.faq-help-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.faq-help-text {
    color: #9ca3af;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.faq-help-btn {
    display: inline-block;
    padding: 12px 32px;
    background: #c4455c;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid #c4455c;
    transition: all 0.2s ease;
}

.faq-help-btn:hover {
    background: #d4566d;
    transform: translateY(-1px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.faq-question-item {
    animation: fadeIn 0.4s ease-out;
}

@media (max-width: 768px) {
    .faq-wrap {
        padding: 20px 15px;
    }

    .faq-main-title {
        font-size: 24px;
        padding-bottom: 15px;
    }

    .faq-main-subtitle {
        font-size: 12px;
    }

    .faq-section {
        padding: 20px;
    }

    .faq-section-title {
        font-size: 18px;
    }

    .faq-question-header {
        padding: 15px;
    }

    .faq-question-title {
        font-size: 15px;
    }

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

    .faq-help {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .faq-wrap {
        padding: 15px 10px;
    }

    .faq-main-title {
        font-size: 22px;
    }

    .faq-main-subtitle {
        font-size: 11px;
        letter-spacing: 1px;
    }

    .faq-section {
        padding: 15px;
    }

    .faq-question-header {
        padding: 12px;
    }

    .marker-number {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .faq-question-title {
        font-size: 14px;
    }

    .faq-help {
        padding: 20px 15px;
    }

    .faq-help-btn {
        width: 100%;
        padding: 14px 20px;
    }
}
