/* ========================================================================
 * findings_section.css — RADICAL refresh #findings (v1.0)
 *
 * Three live-data infographic cards + a carousel of red-flagged
 * "fake review" snippets.
 *
 *   Card A: Big number (last_7d) + 7-day sparkline (real timeline data).
 *   Card B: Vertical bar chart "marketplace breakdown".
 *   Card C: Heatmap "day-of-week × time-of-day".
 *   Carousel: 4 anonymised fake reviews with highlighted suspicious phrases.
 *
 * Themes auto-work via CSS vars. Mobile <=900px stacks vertically;
 * <=480px hides heatmap (replaced by compact list). prefers-reduced-motion
 * disables fills/animations — final-state shows immediately.
 * ====================================================================== */

.section-findings.section-findings--v2 {
    position: relative;
}
.section-findings--v2 .section-title { margin-bottom: clamp(28px, 4vw, 56px); }

/* ---- Infographic grid ---------------------------------------------------- */
.fx-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1.2fr;
    gap: clamp(14px, 1.6vw, 22px);
    margin-bottom: clamp(24px, 4vw, 48px);
}
.fx-card {
    background: linear-gradient(180deg, rgba(20, 22, 30, 0.72) 0%, rgba(14, 16, 22, 0.55) 100%);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 22px 22px 24px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-height: 260px;
    transition: transform .3s cubic-bezier(.4,.2,.2,1), border-color .3s ease, box-shadow .3s ease;
}
.fx-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.25), transparent 50%, rgba(var(--accent-3-rgb), 0.15));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}
.fx-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.14);
    box-shadow: 0 24px 64px -22px rgba(0,0,0,0.55);
}
.fx-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}
.fx-card-title {
    font: 700 13px/1.2 'Inter', system-ui, sans-serif;
    color: var(--text);
    margin: 0;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.fx-card-pill {
    font: 600 10.5px/1 'JetBrains Mono', monospace;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(var(--accent-3-rgb), 0.10);
    color: var(--accent-3);
    border: 1px solid rgba(var(--accent-3-rgb), 0.22);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ---- Card A: Big number + sparkline ------------------------------------- */
.fx-bignum {
    font: 900 clamp(48px, 6vw, 80px)/0.95 'Inter', system-ui, sans-serif;
    letter-spacing: -0.045em;
    background: var(--grad-hot);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-variant-numeric: tabular-nums;
    margin: 6px 0 4px;
    position: relative;
    z-index: 1;
}
.fx-bignum-sub {
    font: 500 13px/1.4 'Inter', system-ui, sans-serif;
    color: var(--text-dim);
    margin: 0 0 18px;
    position: relative;
    z-index: 1;
}
.fx-spark-wrap {
    margin-top: auto;
    position: relative;
    z-index: 1;
}
.fx-spark-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 0 0 8px;
    font: 500 11px/1 'Inter', system-ui, sans-serif;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.fx-spark {
    width: 100%;
    height: 50px;
    overflow: visible;
    display: block;
}
.fx-spark-area {
    fill: url(#fxSparkGrad);
    opacity: 0;
    transform-origin: bottom;
    transform: scaleY(0);
    transition: opacity .6s ease .25s, transform .9s cubic-bezier(.65,0,.35,1) .25s;
}
.fx-spark-line {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1.4s cubic-bezier(.65,0,.35,1);
}
.fx-spark-dot {
    fill: var(--accent);
    r: 0;
    transition: r .3s ease 1.2s;
}
.fx-card.is-revealed .fx-spark-area { opacity: 1; transform: scaleY(1); }
.fx-card.is-revealed .fx-spark-line { stroke-dashoffset: 0; }
.fx-card.is-revealed .fx-spark-dot { r: 3.5; }

/* ---- Card B: Bar chart by marketplace ----------------------------------- */
.fx-bars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    align-items: end;
    height: 200px;
    margin-top: 4px;
    position: relative;
    z-index: 1;
}
.fx-bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: 100%;
    justify-content: flex-end;
    position: relative;
}
.fx-bar-val {
    font: 700 12.5px/1 'JetBrains Mono', monospace;
    color: var(--text);
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .35s ease 1.0s, transform .35s ease 1.0s;
}
.fx-card.is-revealed .fx-bar-val { opacity: 1; transform: translateY(0); }
.fx-bar-track {
    width: 100%;
    max-width: 48px;
    height: 100%;
    position: relative;
    background: rgba(255,255,255,0.04);
    border-radius: 8px 8px 4px 4px;
    overflow: hidden;
}
.fx-bar-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(180deg, var(--bar-c1, var(--accent)) 0%, var(--bar-c2, var(--accent-2)) 100%);
    border-radius: 8px 8px 4px 4px;
    transition: height 1.1s cubic-bezier(.65,0,.35,1);
}
.fx-card.is-revealed .fx-bar-fill { height: var(--bar-h, 50%); }
.fx-bar-fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent);
    border-radius: 8px 8px 0 0;
}
.fx-bar-name {
    font: 600 11px/1.2 'Inter', system-ui, sans-serif;
    color: var(--text-dim);
    text-align: center;
    margin-top: 6px;
    white-space: nowrap;
}
.fx-bar-col[data-mp="WB"] { --bar-c1: #cf1f8b; --bar-c2: #6e2391; }
.fx-bar-col[data-mp="Ozon"] { --bar-c1: #006afe; --bar-c2: #38c5ff; }
.fx-bar-col[data-mp="Я.Маркет"] { --bar-c1: #ffc94a; --bar-c2: #ff8a3d; }
.fx-bar-col[data-mp="MM"] { --bar-c1: #ff5d8f; --bar-c2: #b48cff; }

/* Tooltip on hover */
.fx-bar-col[data-tip] { cursor: help; }
.fx-bar-col[data-tip]:hover::before {
    content: attr(data-tip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: #0a0c12;
    border: 1px solid rgba(255,255,255,0.14);
    color: var(--text);
    padding: 6px 10px;
    border-radius: 6px;
    font: 500 11.5px/1.4 'Inter', system-ui, sans-serif;
    white-space: nowrap;
    box-shadow: 0 8px 20px -6px rgba(0,0,0,0.6);
    z-index: 5;
    pointer-events: none;
}

/* ---- Card C: Heatmap day×time -------------------------------------------- */
.fx-heat {
    display: grid;
    grid-template-rows: auto repeat(4, 1fr);
    grid-template-columns: auto repeat(7, 1fr);
    gap: 4px;
    margin-top: 4px;
    position: relative;
    z-index: 1;
    flex: 1;
}
.fx-heat-corner { /* empty top-left cell */ }
.fx-heat-day {
    font: 600 10px/1 'Inter', system-ui, sans-serif;
    color: var(--muted);
    text-align: center;
    padding-bottom: 4px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.fx-heat-band {
    font: 600 9.5px/1 'Inter', system-ui, sans-serif;
    color: var(--muted);
    text-align: right;
    padding-right: 8px;
    letter-spacing: 0.02em;
    align-self: center;
    white-space: nowrap;
}
.fx-heat-cell {
    aspect-ratio: 1.4 / 1;
    border-radius: 4px;
    background: rgba(255,255,255,0.03);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity .35s cubic-bezier(.4,.2,.2,1), transform .4s cubic-bezier(.34,1.56,.64,1), background-color .25s ease;
    position: relative;
    min-height: 18px;
}
.fx-card.is-revealed .fx-heat-cell {
    opacity: 1;
    transform: scale(1);
}
.fx-heat-cell[data-v] {
    background-color: var(--cell-color, rgba(255,255,255,0.03));
}
.fx-heat-cell:hover {
    outline: 2px solid var(--accent);
    z-index: 2;
}
.fx-heat-cell:hover::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #0a0c12;
    border: 1px solid rgba(255,255,255,0.14);
    color: var(--text);
    padding: 5px 9px;
    border-radius: 6px;
    font: 500 11px/1.3 'Inter', system-ui, sans-serif;
    white-space: nowrap;
    z-index: 5;
    pointer-events: none;
}
.fx-heat-legend {
    grid-column: 1 / -1;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font: 500 10.5px/1 'Inter', system-ui, sans-serif;
    color: var(--muted);
    gap: 12px;
}
.fx-heat-legend-scale {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}
.fx-heat-legend-step {
    width: 22px;
    height: 12px;
}

/* ---- Carousel: «Топ фальшивых» ------------------------------------------ */
.fx-carousel {
    position: relative;
    background: linear-gradient(180deg, rgba(var(--accent-2-rgb), 0.04) 0%, rgba(20, 22, 30, 0.65) 100%);
    border: 1px solid rgba(var(--accent-2-rgb), 0.18);
    border-radius: 22px;
    padding: 28px 28px 24px;
    overflow: hidden;
}
.fx-carousel::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(closest-side, rgba(var(--accent-2-rgb), 0.08), transparent);
    pointer-events: none;
    z-index: 0;
}
.fx-carousel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}
.fx-carousel-title {
    margin: 0;
    font: 800 clamp(20px, 2.4vw, 26px)/1.2 'Inter', system-ui, sans-serif;
    color: var(--text);
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.fx-carousel-title::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, var(--bad), var(--accent-2));
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 1l3.09 6.26L22 8.27l-5 4.87 1.18 6.88L12 16.77l-6.18 3.25L7 13.14 2 8.27l6.91-1.01z'/></svg>") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 1l3.09 6.26L22 8.27l-5 4.87 1.18 6.88L12 16.77l-6.18 3.25L7 13.14 2 8.27l6.91-1.01z'/></svg>") center/contain no-repeat;
}
.fx-carousel-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.fx-carousel-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.fx-carousel-btn:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.2);
}
.fx-carousel-btn:active { transform: scale(0.94); }
.fx-carousel-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.fx-carousel-track {
    position: relative;
    z-index: 1;
    min-height: 170px;
}
.fx-slide {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity .4s ease, transform .5s cubic-bezier(.4,.2,.2,1);
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.fx-slide.is-current {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    position: relative;
}
.fx-slide-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.fx-slide-stars {
    color: var(--accent);
    font-size: 16px;
    letter-spacing: 0.04em;
}
.fx-slide-mp {
    padding: 4px 10px;
    border-radius: 999px;
    font: 600 11px/1 'Inter', system-ui, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    color: var(--text-dim);
}
.fx-slide-mp[data-mp="WB"] { background: rgba(207, 31, 139, 0.12); border-color: rgba(207, 31, 139, 0.3); color: #ff7ac8; }
.fx-slide-mp[data-mp="Ozon"] { background: rgba(0, 106, 254, 0.12); border-color: rgba(0, 106, 254, 0.3); color: #6abeff; }
.fx-slide-mp[data-mp="Я.Маркет"] { background: rgba(var(--accent-rgb), 0.12); border-color: rgba(var(--accent-rgb), 0.3); color: var(--accent); }
.fx-slide-author {
    font: 500 12.5px/1 'Inter', system-ui, sans-serif;
    color: var(--muted);
}
.fx-slide-text {
    font: 500 clamp(17px, 1.9vw, 22px)/1.5 'Inter', system-ui, sans-serif;
    color: var(--text);
    margin: 0 0 16px;
    letter-spacing: -0.005em;
}
.fx-slide-text mark {
    background: rgba(var(--accent-2-rgb), 0.18);
    color: var(--bad);
    padding: 1px 4px;
    border-radius: 4px;
    text-decoration: underline wavy rgba(var(--accent-2-rgb), 0.5);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.fx-slide-reasons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px dashed rgba(255,255,255,0.08);
}
.fx-slide-reason-label {
    font: 600 11px/1 'Inter', system-ui, sans-serif;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-right: 4px;
}
.fx-slide-reason {
    padding: 4px 10px;
    border-radius: 999px;
    font: 500 12px/1 'Inter', system-ui, sans-serif;
    background: rgba(var(--accent-2-rgb), 0.10);
    color: var(--bad);
    border: 1px solid rgba(var(--accent-2-rgb), 0.24);
}

.fx-carousel-dots {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}
.fx-carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.16);
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}
.fx-carousel-dot.is-current {
    width: 22px;
    border-radius: 4px;
    background: var(--accent-2);
}

/* ---- Mobile ------------------------------------------------------------- */
@media (max-width: 1080px) {
    .fx-grid { grid-template-columns: 1fr 1fr; }
    .fx-card--heat { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
    /* v0.25.96: расширили breakpoint с 700 до 720 + ужесточили padding. */
    .fx-grid { grid-template-columns: 1fr; gap: 14px; }
    .fx-card { min-height: 200px; padding: 18px 16px 18px; }
    .fx-bars { gap: 7px; height: 150px; }
    .fx-carousel { padding: 20px 16px 16px; }
    .fx-slide-text { font-size: 15px; line-height: 1.48; }
    .fx-carousel-title { font-size: 17px; }
    .fx-card-title { font-size: 15.5px; }
}
@media (max-width: 480px) {
    .fx-card { padding: 16px 14px; }
    .fx-bars { height: 130px; gap: 6px; }
    /* Heatmap is too dense on phones — replace by compact 7-row list. */
    .fx-card--heat .fx-heat-corner,
    .fx-card--heat .fx-heat-band { display: none; }
    .fx-card--heat .fx-heat {
        grid-template-rows: none;
        grid-template-columns: repeat(7, 1fr);
        gap: 3px;
    }
    .fx-card--heat .fx-heat-day {
        font-size: 9px;
        padding: 2px 0 4px;
    }
    .fx-slide-reasons { gap: 6px; padding-top: 10px; }
    .fx-slide-reason { padding: 3px 8px; font-size: 11px; }
}

/* ---- Reduced motion: snap to final state -------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .fx-card,
    .fx-card *,
    .fx-spark-area,
    .fx-spark-line,
    .fx-spark-dot,
    .fx-bar-fill,
    .fx-bar-val,
    .fx-heat-cell,
    .fx-slide {
        transition: none !important;
        animation: none !important;
    }
    .fx-spark-area { opacity: 1; transform: scaleY(1); }
    .fx-spark-line { stroke-dashoffset: 0; }
    .fx-spark-dot { r: 3.5; }
    .fx-bar-fill { height: var(--bar-h, 50%); }
    .fx-bar-val { opacity: 1; transform: none; }
    .fx-heat-cell { opacity: 1; transform: none; }
    .fx-slide.is-current { opacity: 1; transform: none; }
}

/* ════════════════════════════════════════════════════════════════════════
 * WIDE-SCREEN POLISH (v0.26.x) — findings on big monitors.
 *
 * fx-grid (1fr / 1.1fr / 1.2fr) на 1920px распределяет ширину пропорц.,
 * но card padding 22px и min-height 260 — слишком тесно. Bump padding,
 * card heights и font sizes на 1100+/1440+/1720+.
 * ════════════════════════════════════════════════════════════════════════ */
@media (min-width: 1100px) {
    .fx-grid {
        gap: 24px;
        margin-bottom: 40px;
    }
    .fx-card {
        padding: 28px 28px 30px;
        min-height: 300px;
    }
    .fx-card-title {
        font-size: 14px;
    }
    .fx-card-pill {
        font-size: 11px;
        padding: 5px 11px;
    }
}

@media (min-width: 1440px) {
    .fx-grid {
        gap: 28px;
        margin-bottom: 48px;
    }
    .fx-card {
        padding: 34px 32px 36px;
        min-height: 360px;
        border-radius: 22px;
    }
    .fx-bignum {
        font-size: clamp(64px, 5.4vw, 96px);
    }
    .fx-card-title {
        font-size: 15px;
    }
    .fx-card-head {
        margin-bottom: 18px;
    }
    .fx-carousel {
        padding: 32px 32px 28px;
    }
    .fx-carousel-title {
        font-size: 20px;
    }
    .fx-slide-text {
        font-size: 17px;
        line-height: 1.55;
    }
}

@media (min-width: 1720px) {
    .fx-grid {
        gap: 32px;
    }
    .fx-card {
        padding: 40px 36px 42px;
        min-height: 400px;
        border-radius: 24px;
    }
    .fx-bignum {
        font-size: clamp(76px, 5vw, 112px);
    }
    .fx-card-title {
        font-size: 16px;
    }
    .fx-carousel-title {
        font-size: 22px;
    }
    .fx-slide-text {
        font-size: 18px;
    }
}

