/**
 * NSA_: стили FAQ-категории (отдельный файл — надёжнее при объединении CSS в JCH Optimize)
 */

.shop-category-page__faq.nsa-category-faq {
    padding-bottom: 24px;
}

.shop-category-page__bottom-text.nsa-category-bottom-text {
    margin-top: 100px;
}

@media (max-width: 767px) {
    .shop-category-page__faq.nsa-category-faq {
        margin-top: 32px;
    }
}

.nsa-category-faq__inner .nsa-faq__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 20px;
    text-align: center;
    color: #242424;
}

@media (max-width: 575px) {
    .nsa-category-faq__inner .nsa-faq__title {
        font-size: 1.25rem;
        margin-bottom: 16px;
    }
}

.nsa-faq__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nsa-faq__item {
    background-color: #f3f4f6;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease;
}

.nsa-faq__item.is-open {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.nsa-faq__question-heading {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.nsa-faq__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: #242424;
    transition: color 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
}

@media (max-width: 575px) {
    .nsa-faq__trigger {
        padding: 14px 14px;
        font-size: 15px;
    }
}

.nsa-faq__trigger:hover {
    color: #e7332a;
    background-color: rgba(231, 51, 42, 0.04);
}

.nsa-faq__trigger:focus {
    outline: 2px solid #e7332a;
    outline-offset: -2px;
}

.nsa-faq__trigger-label {
    flex: 1;
    min-width: 0;
}

.nsa-faq__trigger-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    position: relative;
    border-radius: 50%;
    background: rgba(36, 36, 36, 0.08);
    transition: transform 0.35s ease, background-color 0.2s ease;
}

.nsa-faq__trigger-icon::before,
.nsa-faq__trigger-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background: #242424;
    transform: translate(-50%, -50%);
    transition: transform 0.35s ease, opacity 0.25s ease;
}

.nsa-faq__trigger-icon::before {
    width: 10px;
    height: 2px;
}

.nsa-faq__trigger-icon::after {
    width: 2px;
    height: 10px;
}

.nsa-faq__item.is-open .nsa-faq__trigger-icon {
    background: rgba(231, 51, 42, 0.12);
    transform: rotate(180deg);
}

.nsa-faq__item.is-open .nsa-faq__trigger-icon::after {
    transform: translate(-50%, -50%) scaleY(0);
    opacity: 0;
}

.nsa-faq__answer-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nsa-faq__item.is-open .nsa-faq__answer-wrap {
    grid-template-rows: 1fr;
}

.nsa-faq__answer-inner {
    min-height: 0;
    overflow: hidden;
}

.nsa-faq__answer {
    padding: 0 18px 18px;
    color: #404040;
    font-size: 15px;
    line-height: 1.55;
}

@media (max-width: 575px) {
    .nsa-faq__answer {
        padding: 0 14px 14px;
        font-size: 14px;
    }
}

.nsa-faq__answer > *:first-child {
    margin-top: 0;
}

.nsa-faq__answer > *:last-child {
    margin-bottom: 0;
}

.nsa-faq__answer p {
    margin: 0 0 0.75em;
}

.nsa-faq__answer p:last-child {
    margin-bottom: 0;
}

.nsa-faq__answer-empty {
    margin: 0;
    min-height: 0;
}

@media (prefers-reduced-motion: reduce) {
    .nsa-faq__answer-wrap {
        transition-duration: 0.01ms !important;
    }

    .nsa-faq__trigger-icon,
    .nsa-faq__trigger-icon::before,
    .nsa-faq__trigger-icon::after {
        transition-duration: 0.01ms !important;
    }

    .nsa-faq__item {
        transition: none;
    }
}
