/* ─── Shared tokens ─────────────────────────────────────────────────────────── */

.faq-page,
.faq-section-page {
    --faq-dark: radial-gradient(71.15% 71.15% at 50% 50%, #01184C 13.46%, #000417 100%);
    --faq-dark-solid: #000417;
    --faq-gold: #B8B195;
    --faq-gold-light: #D4CDB3;
    --faq-white: #FFFFFF;
    --faq-text-dim: rgba(255, 255, 255, 0.6);
    --faq-border: rgba(255, 255, 255, 0.1);
    --faq-card-bg: rgba(255, 255, 255, 0.04);
    --faq-card-hover-bg: rgba(255, 255, 255, 0.07);

    /* spacing scale */
    --s: 80px;
    --s-m: 56px;
    --s-s: 40px;

    background: var(--faq-dark);
    color: var(--faq-white);
    min-height: 100vh;

    margin-top: 36px;

    @media screen and (min-width: 640px) { margin-top: 67px; }
    @media screen and (min-width: 782px) { margin-top: 87px; }
    @media screen and (max-width: 500px) { margin-top: 0; }
}

/* ─── Hero (main FAQ) ───────────────────────────────────────────────────────── */

.faq-hero {
    position: relative;
    padding: 80px 0 72px;
    background-image: var(--faq-hero-bg);
    background-size: cover;
    background-position: center top;
    overflow: hidden;

    &::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0, 4, 23, 0.45) 0%, rgba(0, 4, 23, 0.75) 100%);
        pointer-events: none;
    }

    & .container {
        position: relative;
        z-index: 1;
        max-width: 760px;
    }

    @media screen and (max-width: 768px) {
        padding: 60px 0 52px;
        background-image: var(--faq-hero-mobile-bg, var(--faq-hero-bg));
    }

    @media screen and (max-width: 480px) { padding: 48px 0 40px; }
}

.faq-hero__badge {
    display: block;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--faq-gold);
    margin-bottom: 14px;
}

.faq-hero__title {
    margin: 0 0 16px;
    font-size: 56px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--faq-white);

    @media screen and (max-width: 1024px) { font-size: 40px; }
    @media screen and (max-width: 640px)  { font-size: 30px; }
}

.faq-hero__subtitle {
    margin: 0;
    font-size: 18px;
    line-height: 1.55;
    color: var(--faq-text-dim);

    @media screen and (max-width: 640px) { font-size: 15px; }
}

/* ─── Sections grid (main FAQ) ──────────────────────────────────────────────── */

.faq-sections {
    padding: var(--s) 0;

    @media screen and (max-width: 768px) { padding: var(--s-m) 0; }
    @media screen and (max-width: 480px) { padding: var(--s-s) 0; }
}

.faq-sections__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;

    @media screen and (max-width: 1024px) { grid-template-columns: repeat(2, 1fr); }
    @media screen and (max-width: 600px)  { grid-template-columns: 1fr; gap: 16px; }
}

.faq-sections__card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--faq-border);
    border-radius: 16px;
    background: var(--faq-card-bg);
    overflow: hidden;
    text-decoration: none;
    color: var(--faq-white);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;

    &:hover {
        background: var(--faq-card-hover-bg);
        border-color: rgba(184, 177, 149, 0.35);
        transform: translateY(-3px);

        & .faq-sections__card-arrow {
            color: var(--faq-gold);
            transform: translateX(4px);
        }
    }
}

.faq-sections__card-img {
    aspect-ratio: 16 / 9;
    overflow: hidden;

    & img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

    .faq-sections__card:hover & img { transform: scale(1.04); }
}

.faq-sections__card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: 10px;

    @media screen and (max-width: 480px) { padding: 20px; }
}

.faq-sections__card-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.02em;

    @media screen and (max-width: 640px) { font-size: 17px; }
}

.faq-sections__card-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--faq-text-dim);
    flex: 1;
}

.faq-sections__card-arrow {
    align-self: flex-end;
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.25s ease, transform 0.25s ease;
    margin-top: 8px;
}

/* ─── Section hero (sub-page) ───────────────────────────────────────────────── */

.faq-section-hero {
    position: relative;
    padding: 72px 0 64px;
    background-image: var(--faq-hero-bg);
    background-size: cover;
    background-position: center top;
    overflow: hidden;

    &::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0, 4, 23, 0.5) 0%, rgba(0, 4, 23, 0.8) 100%);
        pointer-events: none;
    }

    & .container {
        position: relative;
        z-index: 1;
        max-width: 760px;
    }

    @media screen and (max-width: 768px) {
        padding: 52px 0 48px;
        background-image: var(--faq-hero-mobile-bg, var(--faq-hero-bg));
    }
}

.faq-section-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    margin-bottom: 28px;
    transition: color 0.2s ease;

    & svg {
        flex-shrink: 0;
        opacity: 0.5;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    &:hover {
        color: rgba(255, 255, 255, 0.75);
        & svg { opacity: 0.9; transform: translateX(-3px); }
    }
}

.faq-section-hero__badge {
    display: block;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--faq-gold);
    margin-bottom: 12px;
}

.faq-section-hero__title {
    margin: 0 0 14px;
    font-size: 48px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: -0.01em;
    text-transform: uppercase;

    @media screen and (max-width: 1024px) { font-size: 36px; }
    @media screen and (max-width: 640px)  { font-size: 26px; }
}

.faq-section-hero__subtitle {
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
    color: var(--faq-text-dim);

    @media screen and (max-width: 640px) { font-size: 15px; }
}

/* ─── Accordion ─────────────────────────────────────────────────────────────── */

.faq-accordion {
    padding: var(--s) 0;

    @media screen and (max-width: 768px) { padding: var(--s-m) 0; }
    @media screen and (max-width: 480px) { padding: var(--s-s) 0; }
}

.faq-accordion__list {
    border-top: 1px solid var(--faq-border);
}

.faq-accordion__item {
    border-bottom: 1px solid var(--faq-border);
}

.faq-accordion__btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 24px 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--faq-white);
    text-align: left;
    transition: color 0.2s ease;

    &:hover { color: var(--faq-gold-light); }
}

.faq-accordion__btn-text {
    font-size: 17px;
    line-height: 1.4;
    font-weight: 400;

    @media screen and (max-width: 640px) { font-size: 15px; }
}

.faq-accordion__btn-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--faq-border);
    border-radius: 50%;
    color: var(--faq-gold);
    transition: border-color 0.2s ease;

    & .icon-minus { display: none; }

    .faq-accordion__item.is-active & {
        border-color: var(--faq-gold);
        & .icon-plus  { display: none; }
        & .icon-minus { display: block; }
    }
}

.faq-accordion__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-accordion__answer-inner {
    padding: 4px 0 24px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--faq-text-dim);
    max-width: 680px;

    & p             { margin: 0 0 12px; }
    & p:last-child  { margin-bottom: 0; }
    & a             { color: var(--faq-gold); text-decoration: underline; }
    & ul, & ol      { padding-left: 20px; }
    & li            { margin-bottom: 6px; }

    @media screen and (max-width: 640px) { font-size: 14px; }
}

/* ─── Products inside accordion answer ─────────────────────────────────────── */

.faq-accordion__products {
    margin: 0 0 28px;
    padding: 16px 20px 20px;
    background: rgba(184, 177, 149, 0.05);
    border: 1px solid rgba(184, 177, 149, 0.15);
    border-radius: 12px;
}

.faq-accordion__products-label {
    margin: 0 0 14px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(184, 177, 149, 0.6);
}

/* ── 2+ products: grid ── */
.faq-accordion__products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;

    @media screen and (max-width: 900px) { grid-template-columns: repeat(2, 1fr); }
    @media screen and (max-width: 480px) { grid-template-columns: 1fr; }
}

/* ── 1 product: horizontal inline card ── */
.faq-accordion__products[data-count="1"] .faq-accordion__products-grid {
    display: block;
}

.faq-accordion__products[data-count="1"] .faq-accordion__product {
    flex-direction: row;
    border-radius: 10px;
    max-width: 480px;
}

.faq-accordion__products[data-count="1"] .faq-accordion__product-img {
    width: 120px;
    flex-shrink: 0;
    aspect-ratio: auto;

    & img { height: 100%; }
}

.faq-accordion__products[data-count="1"] .faq-accordion__product-body {
    padding: 16px 18px;
    justify-content: center;
}

/* ── shared card styles ── */
.faq-accordion__product {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 4, 23, 0.35);
    transition: border-color 0.2s ease;

    &:hover { border-color: rgba(184, 177, 149, 0.25); }
}

.faq-accordion__product-img {
    aspect-ratio: 4 / 3;
    overflow: hidden;

    & img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.35s ease;
    }

    .faq-accordion__product:hover & img { transform: scale(1.04); }
}

.faq-accordion__product-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
}

.faq-accordion__product-name {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--faq-white);
}

.faq-accordion__product-desc {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: var(--faq-text-dim);
    flex: 1;
}

.faq-accordion__product-btn {
    align-self: flex-start;
    margin-top: 8px;
    padding: 7px 18px;
    border: 1px solid var(--faq-gold);
    border-radius: 100px;
    color: var(--faq-gold);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;

    &:hover {
        background: var(--faq-gold);
        color: var(--faq-dark-solid);
    }
}

/* ─── Related products (standalone block) ───────────────────────────────────── */

.faq-products {
    padding: 0 0 var(--s);

    @media screen and (max-width: 768px) { padding-bottom: var(--s-m); }
    @media screen and (max-width: 480px) { padding-bottom: var(--s-s); }
}

.faq-products__title {
    margin: 0 0 24px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--faq-gold);
}

.faq-products__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;

    @media screen and (max-width: 900px) { grid-template-columns: repeat(2, 1fr); }
    @media screen and (max-width: 540px) { grid-template-columns: 1fr; gap: 14px; }
}

.faq-products__card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--faq-border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--faq-card-bg);
    transition: border-color 0.25s ease;

    &:hover { border-color: rgba(184, 177, 149, 0.3); }
}

.faq-products__card-img {
    aspect-ratio: 4 / 3;
    overflow: hidden;

    & img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

    .faq-products__card:hover & img { transform: scale(1.04); }
}

.faq-products__card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
}

.faq-products__card-name {
    margin: 0;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.faq-products__card-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--faq-text-dim);
    flex: 1;
}
.faq-products__card-actions {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
}
.faq-products__card-btn {
    align-self: flex-start;
    margin-top: 8px;
    padding: 9px 22px;
    border: 1px solid var(--faq-gold);
    border-radius: 100px;
    color: var(--faq-gold);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;

    &:hover {
        background: var(--faq-gold);
        color: var(--faq-dark-solid);
    }
}

/* ─── CTA block ─────────────────────────────────────────────────────────────── */

.faq-cta {
    padding: 0 0 var(--s);

    @media screen and (max-width: 768px) { padding-bottom: var(--s-m); }
    @media screen and (max-width: 480px) { padding-bottom: var(--s-s); }
}

.faq-cta__inner {
    border: 1px solid rgba(184, 177, 149, 0.25);
    border-radius: 16px;
    background: rgba(184, 177, 149, 0.05);
    padding: 48px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;

    @media screen and (max-width: 640px) { padding: 32px 24px; }
}

.faq-cta__title {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.02em;

    @media screen and (max-width: 640px) { font-size: 22px; }
}

.faq-cta__desc {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--faq-text-dim);
    max-width: 560px;
}

.faq-cta__btn {
    display: inline-block;
    margin-top: 8px;
    padding: 13px 32px;
    background: transparent;
    border: 1px solid var(--faq-gold);
    border-radius: 100px;
    color: var(--faq-gold);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease;

    &:hover {
        background: var(--faq-gold);
        color: var(--faq-dark-solid);
    }
}
