/* =========================
   TerraVuna FAQ
========================= */

.tv-faq {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 20px 80px;
    box-sizing: border-box;
    font-family: 'TVSans', Arial, sans-serif;
}

.tv-faq__title {
    margin: 0 0 42px;
    padding: 0;
    text-align: center;
    font-size: 40px;
    line-height: 1.2;
    font-weight: 700;
    color: #5c3c1a;
}

.tv-faq__list {
    width: 100%;
}

.tv-faq__item {
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid rgba(92, 60, 26, 0.16);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.48);
    transition: border-color 0.25s ease, background-color 0.25s ease,
        box-shadow 0.25s ease;
}

.tv-faq__item--active {
    border-color: rgba(45, 90, 39, 0.45);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 24px rgba(92, 60, 26, 0.08);
}

.tv-faq__question {
    width: 100%;
    min-height: 76px;
    padding: 20px 24px;
    border: none;
    background: transparent;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    cursor: pointer;
    text-align: left;

    font-family: inherit;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;

    color: #5c3c1a;
    transition: color 0.25s ease, background-color 0.25s ease;
}

.tv-faq__question:hover {
    background: rgba(45, 90, 39, 0.06);
}

.tv-faq__question:focus-visible {
    outline: 2px solid #2d5a27;
    outline-offset: -3px;
}


/* Иконка + / x */

.tv-faq__icon {
    position: relative;
    display: block;
    width: 28px;
    height: 28px;
    min-width: 28px;
    flex: 0 0 28px;
    margin-left: auto;
    overflow: visible;
    z-index: 1;
    border: 1px solid rgba(45, 90, 39, 0.45);
    border-radius: 50%;
    box-sizing: border-box;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.tv-faq__icon::before,
.tv-faq__icon::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 2px;
    top: 12px;
    left: 6px;
    background: #2d5a27;
    border-radius: 2px;
    transition: transform 0.25s ease;
}

.tv-faq__icon::before {
    transform: rotate(0deg);
}

.tv-faq__icon::after {
    transform: rotate(90deg);
}


/* Когда открыт, вертикальная линия поворачивается и получается крестик. */

.tv-faq__item--active .tv-faq__icon::after {
    transform: rotate(45deg);
}

.tv-faq__item--active .tv-faq__icon::before {
    transform: rotate(-45deg);
}

.tv-faq__item--active .tv-faq__icon {
    border-color: rgba(92, 60, 26, 0.45);
    background: rgba(92, 60, 26, 0.06);
}


/* Ответ */

.tv-faq__answer {
    max-height: 0;
    overflow: hidden;

    transition: max-height 0.35s ease;
}

.tv-faq__content {
    padding: 0 72px 28px 24px;

    font-family: 'TVSans', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    font-weight: 400;

    color: #5c3c1a;
}

.tv-faq__content p {
    margin: 0 0 12px;
}

.tv-faq__content p:last-child {
    margin-bottom: 0;
}


/* Таблица */

.tv-faq__table {
    width: 100%;
    margin-top: 15px;

    border-collapse: collapse;

    font-family: 'TVSans', Arial, sans-serif;
    font-size: 13px;
    line-height: 1.4;
}

.tv-faq__table th,
.tv-faq__table td {
    padding: 10px;

    border: 1px solid rgba(92, 60, 26, 0.18);

    text-align: left;
    vertical-align: top;
}

.tv-faq__table th {
    background: rgba(45, 90, 39, 0.1);
    color: #5c3c1a;
    font-weight: 700;
}


/* =========================
   Mobile
========================= */

@media (max-width: 600px) {

    .tv-faq {
        padding: 10px 15px 55px;
    }

    .tv-faq__title {
        margin-bottom: 30px;
        font-size: 28px;
    }

    .tv-faq__question {
        min-height: 60px;
        padding: 17px 14px;

        font-size: 16px;
    }

    .tv-faq__content {
        padding: 0 14px 22px;

        font-size: 13px;
    }

    .tv-faq__table {
        font-size: 11px;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .tv-faq__table th,
    .tv-faq__table td {
        padding: 7px;
    }
}