:root {
    --text-color: #4a4a4a;
    --bg-item: #ffffff;
    --accent-color: #ca9361;
    --border-radius: 12px;
}

.faq-container {
    min-height: 75vh;
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.faq-title {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 30px;
    font-size: 2rem;
}

.faq-item {
    background: var(--bg-item);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid #e1e4e8;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-color);
    user-select: none;
}

/* Иконка-стрелочка превращающаяся в крестик */
.faq-icon {
    position: relative;
    width: 20px;
    height: 20px;
}

.faq-icon span {
    position: absolute;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Горизонтальная линия */
.line-1 {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

/* Вертикальная линия (делает из неё минус/крестик) */
.line-2 {
    width: 2px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

/* Состояние когда открыто */
.faq-item.active {
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: var(--accent-color);
}

.faq-item.active .line-1 {
    transform: translateY(-50%) rotate(45deg);
}

.faq-item.active .line-2 {
    transform: translateX(-50%) rotate(45deg);
}

.faq-item.active .faq-question {
    color: var(--accent-color);
}

/* Плавное раскрытие ответа */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    transition: max-height 1s ease-in-out;
}

.faq-answer-content {
    padding: 0 25px 20px 25px;
    line-height: 1.6;
    color: #636e72;
}

@media (max-width: 480px) {
    .faq-title {
        font-size: 1.5rem;
    }
    .faq-question {
        padding: 15px;
        font-size: 0.95rem;
    }
}