﻿.faq-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;           /* ← важно для выравнивания по верху */
}

.faq-item {
    background: #202733;
    border-radius: var(--radius-xl);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    overflow: hidden;
    transition: all 0.25s ease;
    height: 100%;                 /* ← добавили */
    display: flex;                /* ← добавили */
    flex-direction: column;       /* ← добавили */
}

.faq-item:hover {
    background: #252c38;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    transform: translateY(-2px);
}

/* Главное исправление — фиксированная высота вопроса */
.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    min-height: 78px;             /* ← вот ключевой момент! */
    flex-shrink: 0;               /* не сжимается */
}

.faq-question span:first-child {
    flex: 1;
}

.faq-arrow {
    flex-shrink: 0;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-question.is-open .faq-arrow,
.faq-item.is-open .faq-arrow {
    transform: rotate(180deg);
}

/* Ответ */
.faq-answer-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
    flex-grow: 1;                 /* ← важно */
}

.faq-answer-wrapper.open {
    grid-template-rows: 1fr;
}

.faq-answer {
    overflow: hidden;
}

.faq-answer p {
    margin: 0;
    padding: 0 24px 24px 24px;
    color: #cfd8ea;
    line-height: 1.6;
    font-size: 0.96rem;
}

/* Мобильная версия */
@media (max-width: 767.98px) {
    .faq-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .faq-question {
        min-height: 70px;
        padding: 18px 20px;
        font-size: 0.97rem;
    }
    
    .faq-answer p {
        padding: 0 20px 20px 20px;
    }
}