/* ========================================
   FAQ Аккордеон — Стили
   ======================================== */

.faq-container {
    margin: 0 auto;
    padding: 20px 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
}

.faq-group {
    margin-bottom: 50px;
}

.faq-group-title {
	text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 26px 0;
    padding-bottom: 16px;
    border-bottom: 3px solid #e74c3c;
    letter-spacing: 0.3px;
}

.faq-group-description {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.7;
    font-size: 16px;
}

.faq-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Элемент аккордеона */
.faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #fff;
    transition: box-shadow 0.3s ease;
    overflow: hidden;
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.faq-item.active {
    border-color: #c0392b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Кнопка вопроса */
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    color: #2c3e50;
    text-align: left;
    line-height: 1.5;
    transition: background 0.2s ease, color 0.2s ease;
    gap: 15px;
    font-family: inherit;
}
.faq-question .faq-question-text {
	line-height: 1.5;
	color: #2c3e50;
	cursor: pointer;
    font-size: 17px;
    font-weight: 600;
	width: 100%;
}
.faq-question:hover {
    background: #fafafa;
}

.faq-question:focus-visible {
    outline: 2px solid #e74c3c;
    outline-offset: -2px;
    border-radius: 8px;
}

.faq-item.active .faq-question {
    color: #c0392b;
    background: #fef9f9;
}

/* Иконка плюс/минус */
.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    position: relative;
    transition: transform 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: #e74c3c;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.faq-icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.faq-icon::after {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}

.faq-item.active .faq-icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.faq-item.active .faq-icon::before {
    transform: translateY(-50%) rotate(180deg);
}

/* Контент ответа */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 2000px;
}

.faq-answer-inner {
    padding: 16px 24px 20px 24px;
    color: #555;
    line-height: 1.8;
    font-size: 16px;
}

.faq-answer-inner p {
    margin: 0 0 12px 0;
}

.faq-answer-inner p:last-child {
    margin-bottom: 0;
}

.faq-answer-inner a {
    color: #c0392b;
    text-decoration: underline;
}

.faq-answer-inner a:hover {
    text-decoration: none;
}

/* ========================================
   Адаптивность — Планшеты
   ======================================== */
@media (max-width: 768px) {
    .faq-container {
        padding: 15px 10px;
    }

    .faq-group {
        margin-bottom: 35px;
    }

    .faq-group-title {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .faq-group-description {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .faq-question {
        padding: 14px 16px;
        font-size: 15px;
    }

    .faq-answer-inner {
        padding: 0 16px 16px 16px;
        font-size: 14px;
        line-height: 1.7;
    }

    .faq-icon {
        width: 22px;
        height: 22px;
    }
}

/* ========================================
   Адаптивность — Мобильные
   ======================================== */
@media (max-width: 480px) {
    .faq-container {
        padding: 10px 5px;
    }

    .faq-group-title {
        font-size: 20px;
    }

    .faq-question {
        padding: 12px 14px;
        font-size: 14px;
        gap: 10px;
    }

    .faq-answer-inner {
        padding: 0 14px 14px 14px;
        font-size: 13px;
    }

    .faq-icon {
        width: 20px;
        height: 20px;
    }
}