
#faq h2 {
    font-size: 28px;
    font-weight: 600;
    color: #DCDDE0;
    margin-bottom: 8px;
}

.faq-portal__head {
    margin-bottom: 16px;
}

.faq-portal__title {
    font-size: 28px;
    font-weight: 700;
    color: #DCDDE0;
    margin: 0 0 6px 0;
}

.faq-portal__subtitle {
    font-size: 15px;
    color: #8B8D92;
    margin: 0;
}

.faq-portal__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 4px;
}

@media (min-width: 560px) {
    .faq-portal__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.faq-cat {
    box-sizing: border-box;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    border-radius: 18px;
    cursor: pointer;
    color: inherit;
    text-align: center;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    transition: background 0.18s ease, transform 0.1s ease, border-color 0.18s ease;
}

.faq-cat:active {
    transform: scale(0.97);
    background: rgba(255, 255, 255, 0.07);
}

.faq-cat:disabled,
.faq-cat--soon {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}

.faq-cat:disabled:active,
.faq-cat--soon:active {
    transform: none;
    background: rgba(255, 255, 255, 0.04);
}

.faq-cat__icon,
.faq-cat__thumb {
    flex: 0 0 auto;
    width: 60px;
    height: 60px;
    border-radius: 17px;
}

.faq-cat__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--faq-accent, #3b82f6);
    background: rgba(255, 255, 255, 0.06);
    background: color-mix(in srgb, var(--faq-accent, #3b82f6) 16%, transparent);
}

.faq-cat__icon svg {
    width: 30px;
    height: 30px;
    display: block;
    fill: currentColor;
}

.faq-cat__thumb {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.faq-cat__thumb--vpn {
    background-image: url('../../img/projects/aidvpn.jpg');
}

.faq-cat__thumb--ai {
    background-color: #161616;
    background-image: url('../../img/projects/AIAID.svg');
    background-size: 58% auto;
}

.faq-cat__thumb--aidpay {
    background-color: #3B82F6;
    background-image: url('../../img/projects/pay2.svg');
    background-size: 58% auto;
}

.faq-cat__body {
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.faq-cat__name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    color: #E6E7EA;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.faq-cat__meta {
    font-size: 12px;
    color: #8B8D92;
}

.faq-cat--soon .faq-cat__meta {
    color: #f59e0b;
}

#faq-home {
    display: flex;
    flex-direction: column;
}

.faq-portal .faq-section-header {
    display: none;
}

.faq-portal.is-categories #faq-sections {
    display: none;
}

.faq-portal.is-search .faq-portal__head,
.faq-portal.is-search .faq-portal__grid {
    display: none;
}

.faq-portal.is-search #faq-sections {
    display: flex;
    flex-direction: column;
}

.faq-portal.is-search .faq-section-header {
    display: flex;
    pointer-events: none;
}

.faq-portal.is-search .faq-section-header i {
    display: none;
}

.faq-detail {
    display: flex;
    flex-direction: column;
}

.faq-detail__title {
    font-size: 22px;
    font-weight: 700;
    color: #DCDDE0;
    margin: 0 0 16px 0;
}

#faq-detail .faq-section {
    border-bottom: none;
}

#faq-detail .faq-section-header {
    display: none;
}

#faq-detail .faq-section-content {
    display: block !important;
    height: auto !important;
    overflow: visible;
}

#faq-detail .faq-section .accordion-list {
    padding-top: 0;
}

#faq > div > p {
    font-size: 15px;
    color: #8B8D92;
    margin-bottom: 16px;
}

.faq-search-container {
    position: relative;
    margin-bottom: 10px;
}

.faq-search-container .bi-search {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #8B8D92;
    font-size: 16px;
    pointer-events: none;
}

.faq-search-input {
    width: 100%;
    padding: 12px 40px 12px 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    color: #DCDDE0;
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
}

.faq-search-input::placeholder {
    color: #8B8D92;
}

.faq-search-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.faq-search-clear {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #8B8D92;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.faq-hidden {
    display: none;
}

.faq-external-link {
    color: #40a7e3;
    text-decoration: underline;
}

.faq-search-clear:hover {
    color: #DCDDE0;
}

.faq-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-section-header {
    background: transparent;
    padding: 12px 0 0 0;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-section-header span {
    font-size: 18px;
    font-weight: 600;
    color: #DCDDE0;
}

.faq-section-header i {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
    color: #8B8D92;
}

.faq-section.active .faq-section-header i {
    transform: rotate(180deg);
}

.faq-section-content {
    display: none;
    overflow: hidden;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-section .accordion-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 12px;
}

#faq > div {
    display: flex;
    flex-direction: column;
}

#faq .accordion-item:last-child {
    margin-bottom: 0;
}

.faq-section[style*="display: none"],
.accordion-item[style*="display: none"] {
    display: none !important;
}

.accordion-body p {
    margin: 0;
    padding-bottom: 10px;
}

.accordion-body p:last-child {
    padding-bottom: 0;
}

.accordion-body ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.accordion-body ul li {
    padding-bottom: 6px;
}

.accordion-body ul li:last-child {
    padding-bottom: 0;
}

.faq-coming-soon-block {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
}

.faq-coming-soon {
    color: #8B8D92;
    margin: 0;
}

.faq-support-block {
    order: 100;
    margin-top: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
}

.faq-support-block p {
    margin: 0 0 12px 0;
    color: #DCDDE0;
    line-height: 1.5;
}

.faq-support-block p:first-child {
    font-weight: 600;
    font-size: 16px;
}

.faq-support-block p:last-of-type {
    margin-bottom: 0;
    color: #8B8D92;
    font-size: 14px;
}

.faq-support-block__title {
    font-size: 17px;
    font-weight: 600;
    color: #e1e4ea;
    margin: 16px 0 12px;
}
.faq-support-block__buttons {
    display: flex;
    gap: 10px;
}
.faq-support-block__buttons .vnmk-button {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.faq-support-block__tg-btn {
    background: #0984c6 !important;
}
.faq-support-block__tg-btn:hover {
    background: #0873ab !important;
}
