.catalog-faq {
    margin: 32px 0 48px;
}

.catalog-faq__title {
    margin: 0 0 20px;
    font-size: 26px;
    line-height: 1.25;
}

.catalog-faq__item {
    margin: 0;
    border: 1px solid transparent;
    border-radius: 4px;
    background-color: #fff;
}

.catalog-faq__item + .catalog-faq__item {
    margin-top: 8px;
}

.catalog-faq__question {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-radius: inherit;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    list-style: none;
    overflow-wrap: anywhere;
}

.catalog-faq__item + .catalog-faq__item > .catalog-faq__question::before {
    position: absolute;
    inset: -5px -1px auto;
    border-top: 1px solid #e1e6e8;
    pointer-events: none;
    content: '';
}

.catalog-faq__question::-webkit-details-marker {
    display: none;
}

.catalog-faq__question:hover,
.catalog-faq__item[open] .catalog-faq__question {
    background-color: #f5f8fa;
}

.catalog-faq__question:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -3px;
}

.catalog-faq__toggle {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 50%;
    color: #111;
    background: linear-gradient(currentColor, currentColor) center / 10px 2px no-repeat,
                #f1f1f1 linear-gradient(currentColor, currentColor) center / 2px 10px no-repeat;
}

.catalog-faq__item[open] .catalog-faq__toggle {
    background-size: 10px 2px, 0 0;
}

.catalog-faq__answer {
    padding: 14px 20px 18px;
    font-size: 15px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

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

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

@media (max-width: 640px) {
    .catalog-faq {
        margin: 24px 0 32px;
    }

    .catalog-faq__title {
        margin-bottom: 14px;
        font-size: 22px;
    }

    .catalog-faq__question,
    .catalog-faq__answer {
        padding-right: 14px;
        padding-left: 14px;
    }
}
