.faq-page {
    max-width: 1360px;
    margin: 0 auto;
    padding: 24px 16px 56px;
    color: #171717;
}

.faq-page__title {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}

.faq-page__intro {
    max-width: 640px;
    margin-bottom: 28px;
    color: #8A8A8A;
    font-size: 16px;
    line-height: 1.6;
}

.faq-search {
    position: relative;
    max-width: 640px;
    margin-bottom: 28px;
}

.faq-search__icon {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    pointer-events: none;
}

.faq-search__input {
    width: 100%;
    height: 56px;
    padding: 0 20px 0 52px;
    border: 1px solid #E6E6E6;
    border-radius: 10px;
    background-color: #FFFFFF;
    font-size: 15px;
    color: #171717;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.faq-search__input::placeholder {
    color: #A3A3A3;
}

.faq-search__input:focus {
    outline: none;
    border-color: #E95A31;
    box-shadow: 0 0 0 3px rgba(233, 90, 49, 0.12);
}

.faq-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
    margin-bottom: 36px;
}

.faq-categories__card {
    display: block;
    padding: 16px 18px;
    border: 1px solid #EDEDED;
    border-radius: 10px;
    background-color: #FFFFFF;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.faq-categories__card[hidden] {
    display: none;
}

.faq-categories__card:hover,
.faq-categories__card:focus {
    border-color: #E95A31;
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.08);
    text-decoration: none;
}

.faq-categories__name {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
    font-weight: 700;
    color: #171717;
}

.faq-categories__count {
    display: block;
    font-size: 13px;
    color: #A3A3A3;
}

.faq-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.faq-nav {
    position: sticky;
    top: 24px;
    border-right: 1px solid #E6E6E6;
    padding-right: 16px;
}

.faq-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.faq-nav__link {
    display: block;
    padding: 10px 14px;
    border-left: 3px solid transparent;
    border-radius: 6px;
    color: #737373;
    font-size: 15px;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.faq-nav__link:hover,
.faq-nav__link:focus,
.faq-nav__link.is-active {
    background-color: #FBE7DF;
    border-left-color: #E95A31;
    color: #C0491F;
    font-weight: 600;
    text-decoration: none;
}

.faq-nav__item[hidden] {
    display: none;
}

.faq-content__back {
    display: inline-block;
    margin-bottom: 20px;
    color: #C0491F;
    font-size: 14px;
    font-weight: 600;
}

.faq-section {
    padding-bottom: 32px;
    margin-bottom: 32px;
    border-bottom: 1px solid #E6E6E6;
    scroll-margin-top: 100px;
}

.faq-section:last-of-type {
    border-bottom: 0;
    margin-bottom: 0;
}

.faq-section[hidden] {
    display: none;
}

.faq-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.faq-section__title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #171717;
}

.faq-section__toggle {
    flex-shrink: 0;
    margin-left: 16px;
    padding: 7px 14px;
    border: 1px solid #E6E6E6;
    border-radius: 8px;
    background-color: #FFFFFF;
    color: #737373;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.faq-section__toggle:hover,
.faq-section__toggle:focus {
    border-color: #E95A31;
    color: #C0491F;
    outline: none;
}

.faq-page .faq-card {
    border: 1px solid #EDEDED;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.faq-page .faq-card[hidden] {
    display: none;
}

.faq-page .faq-card__header h3 {
    font-size: 16px;
    line-height: 1.5;
    padding-right: 8px;
}

.faq-page .faq-card__icon svg path {
    stroke: #E95A31;
}

.faq-page .faq-card__icon-minus {
    display: none;
}

.faq-page .faq-card__header[aria-expanded="true"] .faq-card__icon-minus {
    display: inline-block;
}

.faq-page .faq-card__header[aria-expanded="true"] .faq-card__icon-plus {
    display: none;
}

.faq-message {
    color: #8A8A8A;
    font-size: 15px;
}

.faq-message[hidden] {
    display: none;
}

@media (max-width: 991px) {
    .faq-page {
        padding: 16px 12px 40px;
    }

    .faq-page__title {
        font-size: 26px;
    }

    .faq-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .faq-nav {
        display: none;
    }

    .faq-categories {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .faq-section__title {
        font-size: 20px;
    }
}
