.faq-container {
    position: relative;
    padding: 5rem 1.5rem 6rem;
    color: var(--text-color, #f5f7fb);
    overflow: hidden;
    z-index: 1;
}

.faq-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 16%, rgba(0, 212, 255, 0.08), transparent 28%),
        radial-gradient(circle at 82% 8%, rgba(111, 178, 255, 0.07), transparent 24%),
        linear-gradient(180deg, rgba(9, 14, 26, 0.12), rgba(9, 14, 26, 0));
    pointer-events: none;
    z-index: 0;
}

.faq-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 96%);
    opacity: 0.28;
    pointer-events: none;
    z-index: 0;
}

.faq-shell {
    position: relative;
    z-index: 1;
    width: min(980px, 100%);
    margin: 0 auto;
}

.faq-intro {
    max-width: 760px;
    margin: 0 auto 2.75rem;
    text-align: center;
}

.faq-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.85rem;
    margin-bottom: 1.1rem;
    border: 1px solid rgba(84, 198, 255, 0.22);
    border-radius: 999px;
    background: rgba(10, 18, 32, 0.58);
    color: var(--accent, #7fe7ff);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 12px 30px rgba(4, 10, 22, 0.28);
}

.faq-heading {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.08;
    color: #f8fbff;
    text-wrap: balance;
}

.faq-lead {
    margin: 1rem auto 0;
    max-width: 700px;
    font-size: 1.02rem;
    line-height: 1.75;
    color: rgba(226, 234, 244, 0.8);
}

.faq-section {
    display: grid;
    gap: 1rem;
}

.faq-item {
    position: relative;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(17, 26, 43, 0.88), rgba(12, 19, 33, 0.76));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 16px 38px rgba(4, 9, 20, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    overflow: hidden;
}

.faq-item::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(180deg, rgba(122, 225, 255, 0.24), rgba(122, 225, 255, 0));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.75;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 1.3rem 1.35rem;
    border: 0;
    background: transparent;
    color: #f8fbff;
    cursor: pointer;
    text-align: left;
    font: inherit;
}

.faq-question:focus-visible {
    outline: 2px solid rgba(122, 225, 255, 0.45);
    outline-offset: -2px;
}

.faq-question-text {
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.45;
}

.faq-icon {
    position: relative;
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: var(--accent, #7fe7ff);
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-question[aria-expanded="true"] .faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg) scaleX(0);
    opacity: 0;
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.28s ease;
}

.faq-answer.open {
    grid-template-rows: 1fr;
}

.faq-answer-inner {
    overflow: hidden;
}

.faq-text {
    margin: 0;
    padding: 0 1.35rem 1.35rem;
    color: rgba(226, 234, 244, 0.82);
    font-size: 1rem;
    line-height: 1.8;
    white-space: pre-wrap;
}

@media (max-width: 768px) {
    .faq-container {
        padding: 4rem 1rem 4.5rem;
    }

    .faq-intro {
        margin-bottom: 2rem;
    }

    .faq-item {
        border-radius: 20px;
    }

    .faq-question {
        padding: 1.1rem 1rem;
    }

    .faq-text {
        padding: 0 1rem 1.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .faq-answer,
    .faq-icon::before,
    .faq-icon::after {
        transition: none;
    }
}
