.faq__header {
    border-bottom: 2px solid #e5e5e5;
}

.faq__header.swiper-container {
    display: block;
    margin: 0 auto;
}

.faq-category.swiper-wrapper {
    align-items: unset;
    flex-wrap: unset;
}

.faq-category:empty {
	display: none;
}

.list-header {
    background: #f7f8fa;
    height: 60px;
    margin-top: 50px;
}

.list-header__item {
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    width: calc(100% - 150px);
}

.list-header__item--category {
    width: 150px;
}

.faq-category__item {
    position: relative;
    padding-bottom: 20px;
    font-size: 15px;
    margin-right: 40px;
    color: #777;
    width: auto;
    letter-spacing: -0.2px;
}

html.loaded .faq-category__item,
html.loaded .faq-category__item::before {
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.faq-category__item::before {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: #000;
}

.faq-category__item.on::before {
    width: 100%;
    right: auto;
    left: 0;
}

.faq-category__item.on {
    color: #000;
    font-weight: 700;
}

@media(hover:hover) {
    .faq-category__item:hover::before {
        width: 100%;
        right: auto;
        left: 0;
    }
    
    .faq-category__item:hover {
        color: #000;
    }
}

.faq,
.faq + .xans-board-buttonlist.ec-base-button.typeBG {
    margin: 0 auto;
}

/*
.faq__list {
    border-top: 1px solid var(--main-color);
}
*/

.faq__item {
	border-bottom: 1px solid #e4e4e4;
}

.faq__q {
    font-size: 15px;
    cursor: pointer;
    padding: 36px 0;
    font-weight: 600;
    color: #222;
}

.faq__q.on {
    font-weight: 500;
}

.faq__q::after {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    background: url(../../img/icon/icon_arrow_down.svg) no-repeat center;
    background-size: contain;
    position: absolute;
    top: 50%;
    right: 0;
    margin-top: -6px;
    -webkit-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
}

.faq__q.on::after {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}

.faq__category {
    display: inline-block;
    width: 150px;
    margin-right: 20px;
    text-align: center;
    font-weight: 500;
    color: #777;
}

.faq__category:empty {
    display: none;
}

.faq__a {
    padding: 0 0 25px 173px;
    line-height: 1.7;
    display: none;
    font-size: 15px;
/*    max-width: 830px;*/
}

.faq__a * {
    color: #7d7d7d;
    word-break: keep-all;
}

.faq__a img {
    max-width: 100%;
    height: auto;
}

.message {
    padding: 50px 0;
    border-top: 1px solid var(--main-color);
    border-bottom: 1px solid #e4e4e4;
    text-align: center;
}

@media (max-width: 1024px) {
    
    #container .list-header {
        display: none;
    }
    
}

@media (max-width: 1023px) {
    
    .faq__header {
        margin: 0 16px;
    }
    
    .faq__list {
        padding: 0 16px;
    }
    
    .faq__q {
        padding: 20px 0;
    }
    
    .faq__category {
        margin: 0;
    }
    
    .faq__a {
        padding: 0 0 25px 153px;
    }
  
}

@media (max-width: 767px) {
    
    .faq__header {
        border: none;
        margin-top: 30px !important;
    }
    
    .faq__header::after {
        content: '';
        display: block;
        width: 100%;
        border-bottom: 2px solid #e5e5e5;
        position: absolute;
        left: 0;
        bottom: 0;
    }
    
    .faq__category {
        margin: 0 0 10px;
        width: auto;
        text-align: left;
        background: #fff;
        border: 1px solid #9999;
        color: #777;
        font-size: 11px;
        padding: 6px 8px;
        display: inline-block;
        line-height: 1;
        border-radius: 4px;
    }    
    
    .faq-category__item {
        margin-right: 25px;
        font-size: 14px;
    }
    
    .faq-category__item:first-child {
        margin-left: 16px;
    }
    
    .faq-category__item:last-child {
        margin-right: 16px;
    }
    
    .faq-category__item::before {
        content: '';
        bottom: 0;
    }
    
    .faq__subject {
        display: block;
        width: calc(100% - 50px);
        font-size: 14px;
        word-break: keep-all;
    }
        line-height: 1.5;
    
    .faq__q::after {
        right: 0;
    }
    
    .faq__a {
        font-size: 14px;
        padding: 0 0 25px 0;
    }
    
}