/* FAQ page */
#faq {
    position: relative;
    width: 100%;
    margin: auto;
    overflow: hidden;
    padding: 92px 24px;
    color: #f5faef;
    text-align: center;
    background:
        radial-gradient(circle at 12% 16%, rgba(238, 218, 82, 0.12), transparent 28%),
        radial-gradient(circle at 88% 84%, rgba(178, 222, 155, 0.12), transparent 24%),
        linear-gradient(135deg, #06130f 0%, #12271c 48%, #06130f 100%);
}

#faq::before,
#faq::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border: 1px solid rgba(238, 218, 82, 0.2);
}

#faq::before {
    width: 520px;
    height: 520px;
    top: -280px;
    right: -160px;
    border-radius: 50%;
}

#faq::after {
    width: 620px;
    height: 260px;
    left: -240px;
    bottom: 60px;
    border-color: rgba(255, 255, 255, 0.11);
    border-radius: 50%;
    transform: rotate(-16deg);
}

.faq-container {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(100%, 1120px);
    max-width: 1120px;
    margin: auto;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

#faq h2 {
    max-width: 780px;
    margin: 0 auto 14px;
    color: #ffffff;
    font-size: 46px;
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: 0;
    text-transform: uppercase;
    text-shadow: 0 18px 34px rgba(0, 0, 0, 0.36);
}

.faq-intro {
    max-width: 640px;
    margin: 0 auto 38px;
    color: #d9ead1;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0;
}

.faq-list {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.faq-item {
    position: relative;
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow: hidden;
    text-align: left;
    cursor: default;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
        rgba(8, 24, 17, 0.88);
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.09);
    transition: border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

.faq-item::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #f1e75f, #91d66d);
    opacity: 0.55;
    transition: opacity 0.24s ease, width 0.24s ease;
}

.faq-item::after {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(241, 231, 95, 0.08);
    opacity: 0;
    transform: scale(0.72);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.faq-item:hover,
.faq-item:focus-within,
.faq-item.active {
    transform: translateY(-3px);
    border-color: rgba(241, 231, 95, 0.46);
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(241, 231, 95, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.faq-item.active::before {
    width: 6px;
    opacity: 1;
}

.faq-item.active::after {
    opacity: 1;
    transform: scale(1);
}

.faq-question {
    position: relative;
    z-index: 1;
    display: grid;
    width: 100%;
    min-height: 112px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 22px 22px 22px 26px;
    color: #ffffff;
    text-align: left;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.faq-question:focus-visible {
    outline: 2px solid rgba(241, 231, 95, 0.8);
    outline-offset: -6px;
}

.faq-question__meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-question__number {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    color: #102014;
    font-size: 12px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: 0;
    border-radius: 8px;
    background: linear-gradient(180deg, #f6ee76, #d7e95f);
    box-shadow: 0 10px 22px rgba(241, 231, 95, 0.18);
}

.faq-question__icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    color: #f6ee76;
    font-size: 20px;
    border: 1px solid rgba(241, 231, 95, 0.28);
    border-radius: 8px;
    background: rgba(241, 231, 95, 0.08);
    transition: color 0.24s ease, background-color 0.24s ease, transform 0.24s ease;
}

.faq-question__text {
    min-width: 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: 0;
    text-wrap: balance;
}

.faq-question__toggle {
    position: relative;
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    transition: background-color 0.24s ease, border-color 0.24s ease, transform 0.24s ease;
}

.faq-question__toggle::before,
.faq-question__toggle::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: #f6ee76;
    transition: transform 0.24s ease;
}

.faq-question__toggle::after {
    transform: rotate(90deg);
}

.faq-item.active .faq-question__icon {
    color: #102014;
    background: #f6ee76;
    transform: translateY(-1px);
}

.faq-item.active .faq-question__toggle {
    border-color: rgba(241, 231, 95, 0.55);
    background: rgba(241, 231, 95, 0.13);
    transform: rotate(90deg);
}

.faq-item.active .faq-question__toggle::after {
    transform: rotate(0deg);
}

.faq-answer {
    position: relative;
    z-index: 1;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 28px 0 112px;
    color: #dce9d5;
    transition: max-height 0.36s ease, opacity 0.24s ease, padding-bottom 0.24s ease;
}

.faq-answer p {
    max-width: 620px;
    margin: 0;
    color: #dce9d5;
    font-size: 17px;
    font-weight: 650;
    line-height: 1.7;
    letter-spacing: 0;
}

.faq-answer p.ani12one {
    opacity: 1;
    transform: none;
}

.faq-item.active .faq-answer {
    opacity: 1;
    padding-bottom: 28px;
}

.faq-button {
    display: inline-flex;
    width: min(100%, 420px);
    min-height: 58px;
    margin-top: 34px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 22px;
    color: #10190f;
    font-size: 16px;
    font-weight: 950;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none;
    border: 1px solid rgba(246, 238, 118, 0.78);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(237, 242, 222, 0.95)),
        linear-gradient(90deg, rgba(246, 238, 118, 0.26), transparent);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.32),
        0 0 0 1px rgba(255, 255, 255, 0.16);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.faq-button:hover,
.faq-button:focus-visible {
    transform: translateY(-2px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 232, 0.98)),
        linear-gradient(90deg, rgba(246, 238, 118, 0.3), transparent);
    box-shadow:
        0 24px 54px rgba(0, 0, 0, 0.38),
        0 0 28px rgba(246, 238, 118, 0.18);
    outline: none;
}

@media (max-width: 980px) {
    #faq {
        padding: 76px 18px;
    }

    #faq h2 {
        font-size: 38px;
    }

    .faq-list {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

@media (max-width: 620px) {
    #faq {
        padding: 64px 14px;
    }

    #faq h2 {
        font-size: 32px;
    }

    .faq-intro {
        margin-bottom: 28px;
        font-size: 16px;
    }

    .faq-question {
        min-height: 0;
        grid-template-columns: 1fr auto;
        gap: 12px;
        padding: 18px;
    }

    .faq-question__meta {
        grid-column: 1 / -1;
    }

    .faq-question__text {
        font-size: 18px;
    }

    .faq-answer {
        padding-right: 18px;
        padding-left: 18px;
    }

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