.faq-tabs-section {
    position: relative;
    padding: 50px 24px 50px;
    background-image: url("../images/faq-background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.faq-tabs-section::before {
    content: "";
    position: absolute;
    z-index: 0;
    pointer-events: none;

    width: 660px;
    height: 660px;
    left: -330px;
    top: -305px;

    background: url('../images/shape.png') no-repeat center / contain;
    opacity: 0.39;
    transform: rotate(-18deg);
        rotate: 40deg;

}

.faq-tabs-section::after {
    content: "";
    position: absolute;
    z-index: 0;
    pointer-events: none;

    width: 700px;
    height: 700px;
    right: -330px;
    /* top: -50px; */
    bottom: -330px; 
    background: url('../images/shape.png') no-repeat center / contain;
    opacity: 0.39;
    transform: scaleX(-1) rotate(-8deg);
    rotate: 50deg;
}
 
.faq-tabs-container {
    max-width: 1040px;
    margin: 0 auto;
}

.faq-tabs-header {
    text-align: center;
    margin-bottom: 34px;
}

.faq-tabs-header h2 {
    margin: 0;
    font-size: 40px;
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #000000;
}

.faq-tabs-nav {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 54px;
    padding: 8px;
    display: flex;
    gap: 8px;
    border: 2px solid rgba(43, 61, 57, 0.6);
    border-radius: 18px;
    background: rgba(203, 250, 231, 0.35);
    flex-wrap: wrap;
    justify-content: center;
}

.faq-tab-btn {
    border: none;
    background: transparent;
    color: #16211f;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    padding: 16px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.28s ease, color 0.28s ease, transform 0.22s ease, box-shadow 0.28s ease;
    white-space: nowrap;
}

.faq-tab-btn:hover {
    transform: translateY(-1px);
}

.faq-tab-btn.active {
    background: linear-gradient(180deg, #31cf95 0%, #20c381 100%);
    color: #08231a;
    box-shadow: 0 10px 20px rgba(32, 195, 129, 0.18);
}

.faq-tab-panels {
    position: relative;
                z-index: 1;
}

.faq-tab-panel {
    display: none;
    opacity: 0;
    transform: translateY(14px);
}

.faq-tab-panel.active {
    display: block;
    animation: faqTabFadeUp 0.38s ease forwards;
}

@keyframes faqTabFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-accordion {
    width: 80%;
    margin: 0 auto;
    background: #f7f7f7;
    border: 2px solid rgba(61, 66, 65, 0.75);
    border-radius: 30px;
    padding: 26px 54px 20px;
    box-shadow: 0 0 0 rgba(0,0,0,0);
}

.faq-item {
    border-bottom: 2px solid rgba(90, 90, 90, 0.45);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    padding: 24px 0;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    text-align: left;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    color: #111111;
}

.faq-question span:first-child {
    flex: 1;
}

.faq-icon {
    position: relative;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 11px;
    height: 2px;
    background: #111111;
    border-radius: 999px;
    transition: transform 0.28s ease;
}

.faq-icon::before {
    left: 0;
    transform: translateY(-50%) rotate(45deg);
}

.faq-icon::after {
    right: 0;
    transform: translateY(-50%) rotate(-45deg);
}

.faq-item.active .faq-icon::before {
    transform: translateY(-50%) rotate(-45deg);
}

.faq-item.active .faq-icon::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s ease;
}

.faq-answer p {
    margin: 0 0 26px;
    max-width: 1040px;
    font-size: 17px;
    line-height: 1.65;
    color: #2b2b2b;
}

.faq-answer strong {
    font-weight: 800;
    text-decoration: underline;
}



@media (max-width: 991px) {
    .faq-tabs-section {
        padding: 80px 18px 95px;
    }

    .faq-tabs-nav {
        width: 100%;
    }

    .faq-tab-btn {
        white-space: normal;
    }

    .faq-accordion {
        padding: 20px 24px 14px;
        border-radius: 24px;
    }

    .faq-question {
        padding: 20px 0;
        font-size: 18px;
    }

    .faq-answer p {
        font-size: 16px;
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .faq-tabs-section::before {
        width: 360px;
        height: 360px;
        left: -180px;
        top: -170px;
    }

    .faq-tabs-section::after {
        width: 380px;
        height: 380px;
        right: -180px;
        bottom: -180px;
    }
}

@media (max-width: 640px) {
    .faq-tabs-section {
        padding: 70px 16px 85px;
    }

    .faq-tabs-header {
        margin-bottom: 26px;
    }

    .faq-tabs-header h2 {
        font-size: 34px;
    }

    .faq-tabs-nav {
        margin-bottom: 34px;
        padding: 6px;
        border-radius: 16px;
        gap: 6px;
    }

    .faq-tab-btn {
        width: 100%;
        font-size: 15px;
        padding: 14px 16px;
        text-align: center;
    }

    .faq-accordion {
        width: 95%;

        padding: 16px 18px 10px;
        border-radius: 22px;
    }

    .faq-question {
        font-size: 17px;
        padding: 18px 0;
    }

    .faq-answer p {
        font-size: 15px;
        line-height: 1.6;
    }
}
