.rampf-faq-wrap {
    --rampf-accent: #567263;
    --rampf-accent-dark: #3f584b;
    --rampf-accent-soft: #eef3f0;
    --rampf-text: #26312b;
    --rampf-muted: #66716b;
    --rampf-line: rgba(63, 88, 75, .16);
    --rampf-white: #ffffff;
    max-width: 1100px;
    margin: 52px auto;
    font-family: inherit;
    color: var(--rampf-text);
    perspective: 1200px;
}

.rampf-faq-heading {
    max-width: 780px;
    margin: 0 0 26px;
}

.rampf-faq-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: var(--rampf-accent);
}

.rampf-faq-heading h2 {
    margin: 0;
    font-size: clamp(27px, 3.4vw, 42px);
    line-height: 1.14;
    letter-spacing: -.025em;
    color: var(--rampf-text);
}

.rampf-faq-heading p {
    margin: 12px 0 0;
    font-size: 17px;
    line-height: 1.7;
    color: var(--rampf-muted);
}

.rampf-faq-list {
    display: grid;
    gap: 14px;
}

.rampf-faq-item {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #fff 0%, #fbfcfb 100%);
    border: 1px solid var(--rampf-line);
    border-radius: 16px;
    box-shadow:
        0 1px 0 rgba(255,255,255,.95) inset,
        0 3px 0 rgba(63,88,75,.09),
        0 10px 24px rgba(32,47,39,.08);
    transform: translateZ(0);
    transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease;
}

.rampf-faq-item::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--rampf-accent), var(--rampf-accent-dark));
    opacity: .45;
    transition: opacity .25s ease, width .25s ease;
}

.rampf-faq-item:hover {
    transform: translateY(-2px) rotateX(.18deg);
    border-color: rgba(63,88,75,.28);
    box-shadow:
        0 1px 0 rgba(255,255,255,.96) inset,
        0 4px 0 rgba(63,88,75,.11),
        0 15px 34px rgba(32,47,39,.12);
}

.rampf-faq-item.is-open {
    border-color: rgba(63,88,75,.32);
    box-shadow:
        0 1px 0 rgba(255,255,255,.98) inset,
        0 5px 0 rgba(63,88,75,.12),
        0 18px 42px rgba(32,47,39,.13);
}

.rampf-faq-item.is-open::before {
    opacity: 1;
    width: 5px;
}

.rampf-faq-question {
    margin: 0 !important;
    padding: 0 !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

.rampf-faq-toggle {
    width: 100%;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 14px;
    padding: 20px 22px 20px 24px;
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.rampf-faq-toggle:focus-visible {
    outline: 3px solid rgba(86,114,99,.32);
    outline-offset: -3px;
    border-radius: 14px;
}

.rampf-faq-number {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(145deg, #f7faf8, #e7efea);
    border: 1px solid rgba(63,88,75,.14);
    box-shadow: 2px 2px 6px rgba(42,60,50,.10), -2px -2px 6px #fff;
    color: var(--rampf-accent-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
}

.rampf-faq-question-text {
    font-size: clamp(17px, 1.8vw, 20px);
    line-height: 1.45;
    font-weight: 650;
    color: var(--rampf-text);
}

.rampf-faq-icon {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--rampf-accent-soft);
    border: 1px solid rgba(63,88,75,.14);
    box-shadow: 1px 2px 5px rgba(42,60,50,.08) inset, 0 2px 7px rgba(42,60,50,.06);
}

.rampf-faq-icon span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 2px;
    border-radius: 2px;
    background: var(--rampf-accent-dark);
    transform: translate(-50%, -50%);
    transition: transform .25s ease, opacity .25s ease;
}

.rampf-faq-icon span:last-child {
    transform: translate(-50%, -50%) rotate(90deg);
}

.rampf-faq-item.is-open .rampf-faq-icon span:last-child {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg);
}

.rampf-faq-panel {
    overflow: hidden;
}

.rampf-faq-answer {
    padding: 0 72px 22px 80px;
    color: var(--rampf-muted);
    font-size: 16px;
    line-height: 1.75;
}

.rampf-faq-answer p {
    margin: 0 0 12px;
}

.rampf-faq-answer p:last-child {
    margin-bottom: 0;
}

.rampf-faq-link {
    display: inline-block;
    margin-top: 3px;
    color: var(--rampf-accent-dark);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(63,88,75,.35);
    transition: border-color .2s ease, transform .2s ease;
}

.rampf-faq-link:hover,
.rampf-faq-link:focus {
    border-color: currentColor;
    transform: translateX(2px);
}

@media (max-width: 767px) {
    .rampf-faq-wrap {
        margin: 34px auto;
    }

    .rampf-faq-list {
        gap: 11px;
    }

    .rampf-faq-item {
        border-radius: 14px;
    }

    .rampf-faq-toggle {
        grid-template-columns: 34px minmax(0, 1fr) 30px;
        gap: 10px;
        padding: 17px 14px 17px 17px;
    }

    .rampf-faq-number {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 11px;
    }

    .rampf-faq-icon {
        width: 30px;
        height: 30px;
    }

    .rampf-faq-answer {
        padding: 0 16px 19px 61px;
        font-size: 15.5px;
        line-height: 1.7;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rampf-faq-item,
    .rampf-faq-icon span,
    .rampf-faq-link {
        transition: none !important;
    }
}
