/* ============ Анализ на клиентски отзиви — собствена визия ============ */
@font-face { font-family: "Unbounded"; src: url("fonts/unbounded.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Golos Text"; src: url("fonts/golos.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

.rv {
  --paper: #08080a; --surface: #111114; --ink: #eeeae1; --ink-2: #c6c0b3; --muted: #8f8a80; --line: rgba(255, 255, 255, .09); --grid: rgba(255, 255, 255, .06);
  --praise: #3987e5; --praise-soft: rgba(57, 135, 229, .16); --praise-ink: #8fbaf2;
  --complaint: #e66767; --complaint-soft: rgba(230, 103, 103, .15); --complaint-ink: #f4a3a1;
  --mid: #55535a; --star: #d9b56a; --star-off: #2e2d33;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 30px 60px -30px rgba(0, 0, 0, .9);
  --display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --text: "Golos Text", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

body.rv { background: var(--paper); color: var(--ink); font: 400 17px/1.62 var(--text); }
.rv h1, .rv h2 { font-family: var(--display); font-weight: 500; letter-spacing: -.03em; }
.rv h1 { font-size: clamp(1.85rem, 4vw, 2.85rem); line-height: 1.1; max-width: 16ch; }
.rv h2 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); line-height: 1.2; max-width: 26ch; }
/* лента на проекта */
.rv-strip { border-bottom: 1px solid var(--line); background: #0b0b0e; }
.rv-strip-in { display: flex; flex-wrap: wrap; gap: 6px 30px; padding-top: 10px; padding-bottom: 10px; font: 500 .7rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rv-stars { color: var(--gold); letter-spacing: .2em; }
@media (max-width: 640px) { .hide-s { display: none !important; } }
.rv h3 { font-family: var(--text); font-weight: 650; font-size: 1.12rem; letter-spacing: -.005em; }
.rv p { max-width: 68ch; }
.rv a { color: var(--gold-hi); }
.rv-wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .rv-wrap { padding: 0 32px; } }
.rv-sec { padding: 88px 0; }
.rv-sec + .rv-sec, .rv-band + .rv-sec { padding-top: 0; }
.stage1-text { display: grid; gap: 16px; }
.rv-band { background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, .01)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 88px 0; margin-bottom: 88px; }
.rv-head { display: grid; gap: 14px; margin-bottom: 40px; }
.rv-head p { color: var(--ink-2); font-size: 1.06rem; }
.rv-kicker { display: inline-flex; align-items: center; gap: 12px; font: 500 .72rem/1.4 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.rv-kicker::before { content: ""; width: 26px; height: 1px; background: var(--gold); }
.rv-back { color: var(--muted); text-decoration: none; font-size: .95rem; }
.rv-back:hover { color: var(--ink); }
.rv .muted { color: var(--muted); }
.rv .tnum { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Hero ---------- */
.rv-hero { padding: 56px 0 88px; }
.rv-hero-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 980px) { .rv-hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; padding-top: 24px; } }
.rv-hero-copy { display: grid; gap: 22px; }
.rv-lead { font-size: 1.16rem; color: var(--ink-2); }
.rv-role { font-size: .95rem; color: var(--muted); border-left: 1px solid var(--gold-line); padding-left: 14px; }
.rv-hero-side { display: grid; gap: 18px; }

.review {
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line);
  border-top-color: var(--gold-line); padding: 22px 22px 18px; display: grid; gap: 12px; position: relative;
}
.review-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review-store { font-weight: 650; }
.review-date { color: var(--muted); font-size: .9rem; margin-left: auto; }
.stars { display: inline-flex; gap: 1px; font-size: 1.05rem; line-height: 1; color: var(--star-off); letter-spacing: 0; }
.stars .on { color: var(--star); }
.review-text { font-size: 1.07rem; line-height: 1.55; margin: 0; min-height: 4.6em; }
.review-text mark { color: inherit; padding: 0 2px; margin: 0 -1px; border-radius: 3px;
  background-color: transparent; background-image: linear-gradient(var(--hl, var(--praise-soft)), var(--hl, var(--praise-soft)));
  background-repeat: no-repeat; background-position: 0 92%; background-size: 100% 52%; transition: background-size .45s ease; }
.review[data-tone="neg"] { --hl: color-mix(in srgb, var(--complaint) 30%, transparent); }
.review[data-tone="pos"] { --hl: color-mix(in srgb, var(--praise) 28%, transparent); }
.review-text mark.pending { background-size: 0% 52%; }
.review-foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 30px; }
.review-foot .lbl { color: var(--muted); font-size: .88rem; margin-right: 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: .86rem; font-weight: 550;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.chip.neg { background: var(--complaint-soft); border-color: transparent; color: var(--complaint-ink); }
.chip.pos { background: var(--praise-soft); border-color: transparent; color: var(--praise-ink); }
.review-caption { font-size: .88rem; color: var(--muted); display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.review-dots { display: inline-flex; gap: 6px; }
.review-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: var(--line); cursor: pointer; }
.review-dots button[aria-current="true"] { background: var(--gold); }

.try { background: transparent; border: 1.5px dashed var(--line); border-radius: 18px; padding: 18px 20px; display: grid; gap: 10px; }
.try label { font-weight: 600; }
.try textarea { width: 100%; min-height: 76px; resize: vertical; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); padding: 12px 14px; font: inherit; font-size: 1rem; line-height: 1.5; }
.try textarea:focus { outline: 1px solid var(--gold); outline-offset: 1px; }
.try-out { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; align-items: center; font-size: .92rem; color: var(--muted); }
.try-stars { display: flex; gap: 6px; align-items: center; font-size: .92rem; color: var(--muted); }
.try-stars button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 3px 10px; cursor: pointer; font: inherit; }
.try-stars button[aria-pressed="true"] { background: var(--gold-grad); color: #120f08; border-color: transparent; }

/* ---------- Butterfly (етап 1) ---------- */
.stage1 { display: grid; gap: 40px; }
@media (min-width: 980px) { .stage1 { grid-template-columns: 1fr 1fr; gap: 56px; } }
.stage1-text p { color: var(--ink-2); font-size: 1.04rem; }
.fly { display: grid; gap: 4px; }
.fly-head, .fly-row { display: grid; grid-template-columns: 1fr 118px 1fr; align-items: center; gap: 10px; }
.fly-head { font-size: .88rem; color: var(--muted); margin-bottom: 6px; }
.fly-head span:first-child { text-align: right; }
.fly-row { min-height: 30px; }
.fly-row .t { text-align: center; font-size: .9rem; font-weight: 550; }
.fly-row .l, .fly-row .r { position: relative; height: 22px; }
.fly-row .l i, .fly-row .r i { position: absolute; top: 3px; height: 16px; border-radius: 4px; }
.fly-row .l i { right: 0; background: var(--praise); border-radius: 4px 0 0 4px; }
.fly-row .r i { left: 0; background: var(--complaint); border-radius: 0 4px 4px 0; }
.fly-row .l b, .fly-row .r b { position: absolute; top: 1px; font-size: .82rem; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ---------- Findings ---------- */
.finds { display: grid; gap: 64px; }
.find { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .find { grid-template-columns: 1fr 1.05fr; gap: 56px; } .find:nth-child(even) .find-copy { order: 2; } }
.find-copy { display: grid; gap: 12px; }
.find-copy h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.22rem, 2.3vw, 1.6rem); line-height: 1.25; letter-spacing: -.02em; }
.find-copy p { color: var(--ink-2); }
.figure { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 10px; position: relative; }
.figure figcaption { font-size: .9rem; color: var(--muted); margin-bottom: 4px; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font-family: var(--text); fill: var(--muted); font-size: 12px; }
.chart .lab { fill: var(--ink); font-weight: 650; font-size: 12.5px; }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .base { stroke: var(--line); stroke-width: 1; }
.chart .ln { fill: none; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.chart .ln.neg { stroke: var(--complaint); } .chart .ln.pos { stroke: var(--praise); } .chart .ln.ink { stroke: var(--ink-2); }
.chart .dot { stroke: var(--surface); stroke-width: 2; }
.chart .dot.neg { fill: var(--complaint); } .chart .dot.ink { fill: var(--ink-2); } .chart .dot.pos { fill: var(--praise); }
.chart .area.neg { fill: var(--complaint); opacity: .09; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .xh { stroke: var(--muted); stroke-width: 1; opacity: 0; }
.chart.hovering .xh { opacity: .5; }


/* ---------- Heatmap ---------- */
.heat-wrap { overflow-x: auto; padding-bottom: 6px; }
.heat { display: grid; grid-template-columns: 116px repeat(9, minmax(64px, 1fr)); gap: 3px; min-width: 760px; }
.heat .ch { font-size: .82rem; color: var(--muted); padding: 0 2px 6px; display: flex; align-items: end; justify-content: center; text-align: center; line-height: 1.2; }
.heat .rh { font-weight: 600; font-size: .95rem; display: flex; align-items: center; padding-right: 8px; background: none; border: 0; color: var(--ink);
  cursor: pointer; text-align: left; font-family: inherit; border-radius: 6px; }
.heat .rh:hover, .heat .rh:focus-visible { color: var(--praise-ink); }
.heat .c { height: 42px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: .86rem; font-weight: 600;
  font-variant-numeric: tabular-nums; cursor: pointer; border: 0; font-family: inherit; }
.heat .c:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.heat-legend { display: flex; align-items: center; gap: 10px; font-size: .86rem; color: var(--muted); margin-top: 14px; flex-wrap: wrap; }
.heat-legend .ramp { display: flex; gap: 2px; }
.heat-legend .ramp i { width: 28px; height: 12px; border-radius: 3px; }

/* ---------- Explorer ---------- */
.picker { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px 18px; scrollbar-width: thin; }
.picker button { flex: 0 0 auto; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 9px 15px; border-radius: 999px;
  font: 600 .93rem/1 var(--text); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.picker button .sw { width: 8px; height: 8px; border-radius: 50%; }
.picker button[aria-selected="true"] { background: var(--gold-grad); color: #120f08; border-color: transparent; }
.panel { background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012)); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 28px clamp(18px, 3vw, 36px) 32px; display: grid; gap: 30px; }
.p-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; }
.p-head h3 { font-family: var(--display); font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 600; letter-spacing: -.03em; }
.verdict { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-weight: 650; font-size: .9rem; white-space: nowrap; }
.verdict.pos { background: var(--praise-soft); color: var(--praise-ink); }
.verdict.neg { background: var(--complaint-soft); color: var(--complaint-ink); }
.p-net { color: var(--muted); font-size: .95rem; }
.p-facts { display: flex; flex-wrap: wrap; gap: 6px 26px; color: var(--ink-2); font-size: .97rem; }
.p-facts b { color: var(--ink); font-weight: 650; }
.starbar { display: grid; gap: 8px; }
.starbar-track { display: flex; height: 30px; gap: 2px; border-radius: 8px; overflow: hidden; }
.starbar-track i { display: flex; align-items: center; justify-content: center; font-style: normal; font-size: .8rem; font-weight: 650; color: #fff; min-width: 0; }
.starbar-track i.s1 { background: var(--complaint-ink); } .starbar-track i.s2 { background: var(--complaint); }
.starbar-track i.s3 { background: var(--mid); color: var(--ink); } .starbar-track i.s4 { background: var(--praise); } .starbar-track i.s5 { background: var(--praise-ink); }
.rv .starbar-track i.s5, .rv .starbar-track i.s1 { color: #08080a; }
.starbar-legend { display: flex; justify-content: space-between; font-size: .84rem; color: var(--muted); }
.p-cols { display: grid; gap: 28px; }
@media (min-width: 860px) { .p-cols { grid-template-columns: 1fr 1fr; gap: 40px; } }
.p-block h4 { font: 650 1rem/1.3 var(--text); margin: 0 0 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.p-block h4 .muted { flex-basis: 100%; font-size: .88rem; }
@media (min-width: 640px) { .p-block h4 .muted { flex-basis: auto; } }
.p-block h4 .k { width: 10px; height: 10px; border-radius: 3px; }
.p-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.p-list li { display: grid; gap: 4px; }
.p-list .row { display: flex; justify-content: space-between; gap: 10px; font-weight: 650; }
.p-list .row span:last-child { font-variant-numeric: tabular-nums; }
.p-list .meter { height: 6px; background: var(--grid); border-radius: 3px; overflow: hidden; }
.p-list .meter i { display: block; height: 100%; border-radius: 3px; }
.p-list .neg .meter i { background: var(--complaint); } .p-list .pos .meter i { background: var(--praise); }
.p-list .det { color: var(--ink-2); font-size: .94rem; }
.p-note { color: var(--muted); font-size: .9rem; margin-top: 12px; }
.multi { display: grid; gap: 14px; }
@media (min-width: 640px) { .multi { grid-template-columns: repeat(3, 1fr); } }
.multi .figure { padding: 12px 12px 4px; }
.p-dyn p { color: var(--ink-2); }
.recs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: r; }
.recs li { counter-increment: r; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.recs li::before { content: counter(r); font: 600 .95rem/34px var(--display); width: 34px; height: 34px; border-radius: 10px; text-align: center;
  background: var(--gold-grad); color: #120f08; }
.quotes { display: grid; gap: 14px; }
@media (min-width: 860px) { .quotes { grid-template-columns: 1fr 1fr; } }
.quotes .review { box-shadow: none; background: rgba(255, 255, 255, .02); }
.quotes .review-text { min-height: 0; font-size: 1rem; }

/* ---------- Benchmark ---------- */
.bench-wrap { overflow-x: auto; background: rgba(255, 255, 255, .02); border: 1px solid var(--line); border-radius: 16px; }
table.bm { width: 100%; border-collapse: collapse; min-width: 780px; font-size: .95rem; }
.bm th, .bm td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--grid); vertical-align: middle; }
.bm thead th { font-size: .84rem; color: var(--muted); font-weight: 550; white-space: nowrap; }
.bm thead button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.bm thead button:focus-visible { outline: 2px solid var(--praise); border-radius: 4px; }
.bm thead th[aria-sort] button { color: var(--ink); }
.bm tbody tr:last-child td, .bm tbody tr:last-child th { border-bottom: 0; }
.bm td.n { font-variant-numeric: tabular-nums; }
.bm th[scope="row"] button { all: unset; cursor: pointer; font-weight: 650; }
.bm th[scope="row"] button:hover { color: var(--praise-ink); }
.cell-heat { display: inline-block; min-width: 58px; padding: 3px 8px; border-radius: 6px; text-align: right; font-weight: 600; }
.podium { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 860px) { .podium { grid-template-columns: 1fr 1fr; } }
.podium div { border-radius: 16px; padding: 22px 24px; display: grid; gap: 8px; }
.podium .first { background: var(--praise-soft); } .podium .lastp { background: var(--complaint-soft); }
.podium h3 { font-family: var(--display); font-weight: 600; font-size: 1.3rem; letter-spacing: -.02em; }
.podium p { color: var(--ink-2); margin: 0; }

/* ---------- How it was built ---------- */
.pipe { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: p; }
.pipe > li { counter-increment: p; display: grid; grid-template-columns: 52px 1fr; gap: 6px 20px; padding: 26px 0; border-top: 1px solid var(--line); }
.pipe > li::before { content: counter(p); grid-row: span 3; font: 500 1.2rem/1 var(--display); color: var(--gold-hi); width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; background: transparent; border: 1px solid var(--gold-line); }
.pipe h3 { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.pipe h3 .num { font-family: var(--display); font-weight: 500; color: var(--gold-hi); font-size: 1rem; }
.pipe p { color: var(--ink-2); margin: 0; }
.pipe .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pipe .chips code { font: 500 .84rem/1.4 var(--text); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; color: var(--ink-2); }
.pipe .chips .t { font-weight: 650; color: var(--ink); background: none; border: 0; padding: 2px 4px 2px 0; }
.fixes { display: grid; gap: 12px; margin-top: 14px; }
.fix { display: grid; gap: 4px; padding: 14px 16px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.fix b { font-weight: 650; }
.fix span { color: var(--ink-2); font-size: .95rem; }
.valid-grid { display: grid; gap: 28px; margin-top: 18px; align-items: start; }
@media (min-width: 900px) { .valid-grid { grid-template-columns: 1.1fr .9fr; } }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .86rem; color: var(--muted); margin-bottom: 6px; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
table.vt { width: 100%; border-collapse: collapse; font-size: .92rem; }
.vt th, .vt td { padding: 8px 10px; border-bottom: 1px solid var(--grid); text-align: left; }
.vt td { font-variant-numeric: tabular-nums; }
.vt thead th { color: var(--muted); font-weight: 550; font-size: .84rem; }

/* ---------- Lessons / limits ---------- */
.two { display: grid; gap: 40px; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; gap: 56px; } }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.notes li { display: grid; gap: 4px; }
.notes p { color: var(--ink-2); margin: 0; }
.beyond { border-radius: 20px; background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)); border: 1px solid var(--line);
  border-top-color: var(--gold-line); padding: clamp(28px, 5vw, 56px); display: grid; gap: 16px; }
.beyond p { color: var(--ink-2); }
.beyond .btn { justify-self: start; }
.rv-src { font-size: .9rem; color: var(--muted); margin-top: 28px; }
.rv-src a { color: inherit; }

@media (prefers-reduced-motion: reduce) { .review-text mark, .tip { transition: none; } }
.rv-hero + .rv-sec { padding-top: 64px; border-top: 1px solid var(--line); }
.rv .beyond { grid-template-columns: 1fr; }
.pc-group { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-right: 14px; }
.pc-more { font-size: .84rem; }
