/* Модуль «Чарты недели и архив» (/instrumenty/charty/) для темы upsound.
 * Полностью изолировано под .ch-page, .ch-hover-card и .ch-toast.
 * Использует токены и шрифты из assets/upsound.css.
 */

.ch-page {
  --ch-hair: rgba(239, 232, 220, .065);
  --ch-hair-2: rgba(239, 232, 220, .18);
  --ch-subtle: rgba(239, 232, 220, .035);
  --ch-hover: rgba(239, 232, 220, .052);
  --ch-ok: #6CC497;
  --ch-ease: cubic-bezier(.22, .61, .36, 1);
  --ch-slow: cubic-bezier(.16, 1, .3, 1);
  --ch-room: clamp(72px, 8.5vw, 120px);
  color: var(--ivory, #EFE8DC);
  background: var(--wall, #0B0A09);
  overflow-x: clip;
  font-family: var(--f-text, "Onest", sans-serif);
}

.ch-page *, .ch-page *::before, .ch-page *::after { box-sizing: border-box; }
.ch-page [hidden] { display: none !important; }
:where(.ch-page button) { background: transparent; border: 0; color: inherit; cursor: pointer; padding: 0; font-family: inherit; }
:where(.ch-page input) { font-family: inherit; color: inherit; }
.ch-page a { color: inherit; text-decoration: none; }

.ch-page .num { font-variant-numeric: tabular-nums; }
.ch-page .it { font-family: var(--f-serif); font-style: italic; font-weight: 300; font-size: 1.14em; letter-spacing: -.01em; line-height: 1; }
.ch-page .eyebrow { font: 500 11.5px/1.4 var(--f-mono); letter-spacing: .11em; text-transform: uppercase; color: var(--mute); }

.ch-wrap {
  width: 100%;
  max-width: var(--maxw, 1440px);
  margin-inline: auto;
  padding-inline: var(--gut, clamp(20px, 4.4vw, 72px));
}

/* Крошки и Hero */
.ch-crumbs {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding-top: clamp(20px, 2.4vw, 32px);
  font: 400 12px/1.4 var(--f-mono); color: var(--mute);
}
.ch-crumbs a:hover { color: var(--ivory); }
.ch-crumbs span[aria-hidden="true"] { opacity: .45; }

.ch-hero { padding-top: 28px; padding-bottom: 44px; }
.ch-hero > * { animation: ch-rise .6s var(--ch-slow) both; }
.ch-hero > :nth-child(2) { animation-delay: .05s; }
.ch-hero > :nth-child(3) { animation-delay: .10s; }
@keyframes ch-rise { from { opacity: .92; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.ch-h1 {
  margin: 0 0 16px;
  font: 300 clamp(30px, 4.6vw, 58px)/1.03 var(--f-display);
  letter-spacing: -.045em; color: var(--ivory); max-width: 960px;
}
.ch-lede {
  margin: 0; max-width: 720px;
  font: 300 clamp(16px, 1.35vw, 19px)/1.55 var(--f-text); color: var(--ivory-2);
}

/* Панель управления */
.ch-controls { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; }
.ch-controls__left { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; max-width: 100%; }

.ch-page .us-seg {
  position: relative; display: inline-flex; align-items: center; gap: 3px;
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
  padding: 4px; border-radius: 999px; background: rgba(239, 232, 220, .05); border: 1px solid var(--ch-hair);
}
.ch-page .us-seg::-webkit-scrollbar { display: none; }
.ch-page .us-seg__thumb, .ch-page .us-seg__hover {
  position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 999px; pointer-events: none; z-index: 0;
}
.ch-page .us-seg__thumb {
  background: var(--ivory);
  transition: transform .6s cubic-bezier(.3, 1.3, .45, 1), width .6s cubic-bezier(.3, 1.3, .45, 1);
}
.ch-page .us-seg__hover {
  background: rgba(239, 232, 220, .07); opacity: 0;
  transition: transform .45s var(--ch-slow), width .45s var(--ch-slow), opacity .25s var(--ch-ease);
}
.ch-page .us-seg__hover.is-on { opacity: 1; }
.ch-page .us-seg__btn {
  position: relative; z-index: 1; min-height: 40px; padding: 0 18px; border-radius: 999px;
  font: 400 14px/1 var(--f-text); color: var(--mute); white-space: nowrap; transition: color .35s var(--ch-ease);
}
.ch-page .us-seg__btn.is-on { color: var(--ink); font-weight: 500; }
.ch-page .us-seg:not(.has-thumb) .us-seg__btn.is-on { background: var(--ivory); }

.ch-page .us-select { position: relative; z-index: 30; }
.ch-page .us-select__btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--ch-hair-2); background: rgba(239, 232, 220, .035);
  font: 400 14px/1 var(--f-text); color: var(--ivory); white-space: nowrap;
  transition: border-color .2s var(--ch-ease), background-color .2s var(--ch-ease), transform .2s var(--ch-ease);
}
.ch-page .us-select__btn:hover { border-color: var(--ivory); background: rgba(239, 232, 220, .07); }
.ch-page .us-select__btn:active { transform: scale(.98); }
.ch-page .us-select__code { font: 500 11.5px/1 var(--f-mono); color: var(--red-ink, #FF4D3F); letter-spacing: .04em; }
.ch-page .us-select__chev { width: 14px; height: 14px; color: var(--mute); transition: transform .32s var(--ch-slow); }
.ch-page .us-select.is-open .us-select__chev { transform: rotate(180deg); }

.ch-page .us-pop {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 290px; padding: 6px; border-radius: 16px;
  background: #1B1816; box-shadow: 0 0 0 1px rgba(239, 232, 220, .10), 0 24px 56px -14px rgba(0, 0, 0, .78);
  opacity: 0; transform: translateY(-6px) scale(.98);
  transition: opacity .18s var(--ch-ease), transform .34s var(--ch-slow); pointer-events: none;
}
.ch-page .us-select.is-open .us-pop { opacity: 1; transform: none; pointer-events: auto; }
.ch-page .us-opt {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 44px; padding: 8px 12px; border-radius: 11px; text-align: left;
  transition: background-color .16s var(--ch-ease);
}
.ch-page .us-select.is-open .us-opt { animation: us-opt-in .36s var(--ch-slow) both; animation-delay: calc(var(--i, 0) * 18ms); }
@keyframes us-opt-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.ch-page .us-opt:hover, .ch-page .us-opt.is-focus { background: rgba(239, 232, 220, .07); }
.ch-page .us-opt__left { display: flex; align-items: baseline; gap: 10px; }
.ch-page .us-opt__code { font: 500 11.5px/1 var(--f-mono); color: var(--mute); }
.ch-page .us-opt.is-on .us-opt__code { color: var(--red-ink, #FF4D3F); }
.ch-page .us-opt__label { font: 400 13.5px/1.25 var(--f-text); color: var(--ivory); }
.ch-page .us-opt__check { width: 14px; height: 14px; color: var(--ivory); opacity: 0; }
.ch-page .us-opt.is-on .us-opt__check { opacity: 1; }

.ch-search { position: relative; display: flex; align-items: center; min-width: 240px; flex: 0 1 300px; }
.ch-search svg { position: absolute; left: 16px; width: 15px; height: 15px; color: var(--mute); pointer-events: none; }
.ch-search input {
  width: 100%; height: 48px; padding: 0 36px 0 42px; border-radius: 999px;
  border: 1px solid var(--ch-hair); background: rgba(239, 232, 220, .03);
  color: var(--ivory); font: 400 14px/1 var(--f-text); outline: none;
  transition: border-color .22s var(--ch-ease), background-color .22s var(--ch-ease);
}
.ch-search input::placeholder { color: var(--mute); }
.ch-search input:focus { border-color: var(--ch-hair-2); background: rgba(239, 232, 220, .055); }
.ch-search__clear {
  position: absolute; right: 12px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; color: var(--mute); font-size: 16px;
  opacity: 0; pointer-events: none; transition: opacity .15s, color .15s;
}
.ch-search__clear.is-vis { opacity: 1; pointer-events: auto; }
.ch-search__clear:hover { color: var(--ivory); }

/* ДНК недели */
.ch-dna { padding-top: 8px; padding-bottom: 44px; }

.ch-kpi-strip {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 36px;
  padding: 36px 0 32px;
}
.ch-kpi { position: relative; text-align: left; padding: 4px 0; }
.ch-kpi__label { font: 400 12px/1.35 var(--f-mono); color: var(--mute); margin-bottom: 8px; }
.ch-kpi__val { font: 200 clamp(26px, 2.7vw, 38px)/1 var(--f-display); letter-spacing: -.03em; color: var(--ivory); }
.ch-kpi__val span.unit { font-family: var(--f-text); font-size: 14px; font-weight: 400; color: var(--ivory-2); margin-left: 4px; letter-spacing: 0; }
.ch-kpi__sub { margin-top: 7px; font: 400 13px/1.35 var(--f-text); color: var(--ivory-2); }

.ch-summary-strip {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 36px;
  padding: 6px 0 28px;
}
.ch-summary-item { display: flex; flex-direction: column; gap: 4px; }
.ch-summary-item__k { font: 400 11.5px/1.3 var(--f-mono); color: var(--mute); text-transform: uppercase; letter-spacing: .08em; }
.ch-summary-item__v { font: 400 14px/1.45 var(--f-text); color: var(--ivory-2); }

.ch-tags-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 6px; }
.ch-tags-bar__lbl { font: 400 12px/1.4 var(--f-mono); color: var(--mute); margin-right: 4px; }

.ch-page .us-pill-toggle {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px;
  border-radius: 999px; border: 1px solid transparent; background: rgba(239, 232, 220, .042);
  font: 400 13px/1 var(--f-text); color: var(--ivory-2);
  transition: border-color .2s var(--ch-ease), background-color .2s var(--ch-ease), color .2s var(--ch-ease), transform .18s var(--ch-ease);
}
.ch-page .us-pill-toggle:hover { background: rgba(239, 232, 220, .085); color: var(--ivory); }
.ch-page .us-pill-toggle:active { transform: scale(.97); }
.ch-page .us-pill-toggle[aria-pressed="true"] { border-color: rgba(239, 232, 220, .32); background: rgba(239, 232, 220, .10); color: var(--ivory); font-weight: 500; }
.ch-page .us-pill-toggle[aria-pressed="true"]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red-ink, #FF4D3F); }
.ch-page .us-pill-toggle.is-pop::before { animation: ch-pop .45s cubic-bezier(.3, 1.7, .5, 1) both; }
@keyframes ch-pop { from { transform: scale(0); } to { transform: scale(1); } }

.ch-subbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 24px 0 18px; }
.ch-subbar__pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ch-count { font: 400 12.5px/1.4 var(--f-mono); color: var(--mute); }

/* Список чарта */
.ch-list { display: flex; flex-direction: column; }
.ch-group { border-bottom: 1px solid rgba(239, 232, 220, .045); }
.ch-group:last-child { border-bottom: 0; }
.ch-row {
  position: relative; width: calc(100% + 28px); margin-inline: -14px;
  display: grid; grid-template-columns: 34px 54px 46px minmax(0, 1fr) 86px 116px 88px 26px;
  align-items: center; gap: 16px; padding: 16px 14px; text-align: left; border-radius: 12px;
  transition: background-color .16s var(--ch-ease);
}
.ch-row:hover { background: var(--ch-hover); }

.ch-pos { font: 300 20px/1 var(--f-display); color: var(--ivory); text-align: left; padding-right: 0; }
.ch-delta { font: 500 12px/1 var(--f-mono); text-align: center; white-space: nowrap; }
.ch-delta.up { color: var(--ch-ok); }
.ch-delta.down { color: var(--red-ink, #FF4D3F); }
.ch-delta.new { color: var(--ivory); letter-spacing: .04em; }
.ch-delta.same { color: var(--mute); }

.ch-cover { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--wall-3); border: 1px solid var(--ch-hair); flex-shrink: 0; display: block; }
.ch-cover--mono { display: grid; place-items: center; font: 300 14px/1 var(--f-display); color: var(--ivory-2); }

.ch-track-main { min-width: 0; }
.ch-track-title { font: 500 15.5px/1.3 var(--f-text); color: var(--ivory); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-track-sub { margin-top: 2px; font: 400 13.5px/1.35 var(--f-text); color: var(--ivory-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-track-meta { margin-top: 3px; font: 400 11.5px/1.3 var(--f-mono); color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ch-spark { display: flex; align-items: center; justify-content: center; }
.ch-spark svg { width: 78px; height: 24px; overflow: visible; }

.ch-listeners { text-align: right; }
.ch-listeners__val { font: 400 14.5px/1.2 var(--f-mono); color: var(--ivory); }
.ch-listeners__lbl { font: 400 11px/1.2 var(--f-mono); color: var(--mute); }

.ch-cross { text-align: right; font: 400 12px/1.2 var(--f-mono); color: var(--ivory-2); white-space: nowrap; }
.ch-cross.is-none { color: var(--mute); opacity: .65; }

.ch-chev { width: 20px; height: 20px; display: grid; place-items: center; color: var(--mute); transition: transform .22s var(--ch-slow), color .18s var(--ch-ease); }
.ch-group.is-open .ch-chev { transform: rotate(90deg); color: var(--ivory); }

.ch-tree-children {
  margin: 4px 0 20px 0; padding: 24px 28px;
  border-radius: 16px;
  background:
    radial-gradient(ellipse 48% 120% at 0% 0%, rgba(227, 6, 19, .09) 0%, transparent 65%),
    rgba(239, 232, 220, .026);
}
.ch-ai-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px 36px; padding-top: 2px; }
.ch-ai-badge { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px; font: 400 12px/1 var(--f-mono); color: var(--ivory-2); letter-spacing: .04em; }
.ch-ai-badge img { height: 17px; width: auto; display: block; opacity: 1; }
.ch-ai-badge span { padding-left: 12px; border-left: 1px solid rgba(239, 232, 220, .18); }
.ch-ai-verdict { font: 300 15px/1.58 var(--f-text); color: var(--ivory); margin: 0 0 10px; }
.ch-ai-hook { font: 400 13.5px/1.5 var(--f-text); color: var(--ivory-2); margin: 0; }
.ch-ai-hook-k { color: var(--mute); font-family: var(--f-mono); font-size: 11.5px; margin-right: 4px; }

.ch-struct { margin-top: 14px; }
.ch-struct__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; font: 400 11.5px/1.3 var(--f-mono); color: var(--mute); }
.ch-struct__bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: rgba(239, 232, 220, .06); gap: 2px; }
.ch-struct__seg { height: 100%; background: rgba(239, 232, 220, .18); }
.ch-struct__seg.is-chorus { background: var(--red, #E30613); }
.ch-struct__seg.is-verse { background: rgba(239, 232, 220, .34); }

.ch-ai-side { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.ch-ai-tags { display: flex; flex-direction: column; gap: 6px; font: 400 13px/1.45 var(--f-text); color: var(--ivory-2); }
.ch-ai-tags span.k { font: 400 11.5px/1.3 var(--f-mono); color: var(--mute); margin-right: 8px; }
.ch-ai-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* Кнопки */
.ch-page .us-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: 500 14.5px/1 var(--f-text); white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: background-color .28s var(--ch-ease), color .28s var(--ch-ease), transform .25s var(--ch-ease);
}
.ch-page .us-btn:active { transform: scale(.97); }
.ch-page .us-btn--ivory { background: var(--ivory); color: var(--ink); }
.ch-page .us-btn--ivory:hover { background: #fff; color: var(--ink); transform: translateY(-1px); }

.ch-page .us-qlink {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding-bottom: 2px;
  border-bottom: 1px solid var(--ch-hair-2); font: 400 14px/1.2 var(--f-text); color: var(--ivory-2);
  transition: color .2s, border-color .2s, gap .35s var(--ch-slow);
}
.ch-page .us-qlink:hover { color: var(--ivory); border-color: var(--ivory); gap: 12px; }

.ch-blog-bridge {
  margin-top: 28px; padding: 20px 24px; border-radius: 16px;
  background: rgba(239, 232, 220, .028);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
}
.ch-blog-bridge__text { font: 400 14px/1.45 var(--f-text); color: var(--ivory-2); }

/* Сравнение */
.ch-cmp-row { display: grid; grid-template-columns: 46px minmax(0, 1.1fr) minmax(160px, 1fr) 110px; align-items: center; gap: 16px; width: calc(100% + 28px); margin-inline: -14px; padding: 16px 14px; border-bottom: 1px solid rgba(239, 232, 220, .045); border-radius: 12px; transition: background-color .16s var(--ch-ease); }
.ch-cmp-row:last-child { border-bottom: 0; }
.ch-cmp-row:hover { background: var(--ch-hover); }
.ch-cmp-bars { display: grid; gap: 5px; }
.ch-cmp-bar { display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 8px; font: 400 11.5px/1 var(--f-mono); color: var(--mute); }
.ch-cmp-track { height: 5px; border-radius: 999px; background: rgba(239, 232, 220, .08); overflow: hidden; }
.ch-cmp-fill { height: 100%; border-radius: 999px; background: var(--ivory); }
.ch-cmp-fill.is-vk { background: rgba(239, 232, 220, .45); }
.ch-cmp-gap { text-align: right; font: 400 12.5px/1.3 var(--f-mono); color: var(--ivory-2); }

.ch-page .is-enter { animation: ch-enter .55s var(--ch-slow) both; animation-delay: calc(var(--i, 0) * 32ms); }
.ch-page .from-r { --dx: 20px; } .ch-page .from-l { --dx: -20px; }
@keyframes ch-enter { from { opacity: 0; transform: translateX(var(--dx, 0)); } to { opacity: 1; transform: none; } }
.ch-page .is-changed { border-radius: 6px; animation: ch-mark 1.6s var(--ch-ease) both; }
@keyframes ch-mark { 0%, 30% { background-color: rgba(227, 6, 19, .14); box-shadow: 0 0 0 4px rgba(227, 6, 19, .14); } 100% { background-color: transparent; box-shadow: 0 0 0 4px transparent; } }

/* Примерочный пульт и Архив */
.ch-section { padding-top: var(--ch-room); }
.ch-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 36px; }
.ch-h2 { margin: 8px 0 0; font: 300 clamp(26px, 3.4vw, 44px)/1.06 var(--f-display); letter-spacing: -.04em; color: var(--ivory); }
.ch-section-note { margin: 0; max-width: 440px; font: 300 15px/1.5 var(--f-text); color: var(--ivory-2); }

.ch-bench {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 36px 64px; align-items: start;
  padding: clamp(28px, 3.4vw, 44px); border-radius: 22px; background: rgba(239, 232, 220, .026);
}
.ch-bench__controls { display: flex; flex-direction: column; gap: 26px; }
.ch-range-block label { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; font: 400 14px/1.3 var(--f-text); color: var(--ivory-2); }
.ch-range-block output { font: 200 28px/1 var(--f-display); color: var(--ivory); }

.ch-page .us-range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 99px;
  background: linear-gradient(90deg, var(--ivory) 0%, var(--ivory) var(--p, 45%), rgba(239, 232, 220, .16) var(--p, 45%), rgba(239, 232, 220, .16) 100%);
  outline: none; cursor: pointer;
}
.ch-page .us-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ivory); border: 3px solid var(--wall);
  box-shadow: 0 0 0 1px rgba(239, 232, 220, .55), 0 4px 14px rgba(0, 0, 0, .55);
}

.ch-bench__result { display: flex; flex-direction: column; }
.ch-bench__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ch-bench-ai { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 9px; font: 400 12.5px/1.4 var(--f-mono); color: var(--mute); }
.ch-bench-ai img { height: 13px; width: auto; display: block; opacity: .9; }
.ch-fit-score { display: flex; align-items: baseline; gap: 16px; }
.ch-fit-num { font: 200 clamp(38px, 4.2vw, 56px)/.95 var(--f-display); color: var(--ivory); }
.ch-fit-verdict { font: 400 15px/1.45 var(--f-text); color: var(--ivory-2); }

.ch-corridor { margin: 24px 0; }
.ch-corridor__labels { display: flex; justify-content: space-between; font: 400 11.5px/1.3 var(--f-mono); color: var(--mute); margin-bottom: 8px; }
.ch-corridor__track { position: relative; height: 8px; border-radius: 999px; background: rgba(239, 232, 220, .08); }
.ch-corridor__zone { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: rgba(239, 232, 220, .24); }
.ch-corridor__pin { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--red, #E30613); border: 2px solid var(--wall); transform: translate(-50%, -50%); transition: left .22s var(--ch-slow); }

.ch-twin { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(239, 232, 220, .035); margin-bottom: 24px; }
.ch-twin__info { min-width: 0; flex: 1; }
.ch-twin__title { font: 500 15px/1.3 var(--f-text); color: var(--ivory); }
.ch-twin__desc { font: 400 13px/1.4 var(--f-text); color: var(--ivory-2); margin-top: 2px; }

.ch-archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 20px; }
.ch-arch-item {
  text-align: left; padding: 20px 22px; border-radius: 16px; background: rgba(239, 232, 220, .024);
  display: flex; flex-direction: column; gap: 8px; transition: background-color .2s var(--ch-ease);
}
.ch-arch-item:hover, .ch-arch-item.is-active { background: rgba(239, 232, 220, .055); }
.ch-arch-item__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ch-arch-item__code { font: 500 12px/1 var(--f-mono); color: var(--mute); }
.ch-arch-item.is-active .ch-arch-item__code { color: var(--red-ink, #FF4D3F); }
.ch-arch-item__url { font: 400 11px/1 var(--f-mono); color: var(--mute); opacity: .75; }
.ch-arch-item__date { font: 400 16px/1.3 var(--f-text); color: var(--ivory); }
.ch-arch-item__leader { font: 400 13.5px/1.4 var(--f-text); color: var(--ivory-2); }
.ch-arch-item__stats { font: 400 12px/1.3 var(--f-mono); color: var(--mute); }

/* Фокальная карточка UpSound AI */
.ch-page .us-focal {
  position: relative; overflow: hidden; border-radius: 20px; padding: clamp(26px, 3.6vw, 44px); margin-top: 36px;
  background: radial-gradient(ellipse 70% 115% at 8% 50%, rgba(227, 6, 19, .22) 0%, rgba(227, 6, 19, .06) 46%, transparent 76%), linear-gradient(135deg, #1B1312 0%, #110F0E 100%);
}
.ch-page .us-focal::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, #FF3B30 0%, #E30613 65%, rgba(227, 6, 19, .15) 100%);
}
.ch-page .us-focal__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px; }
.ch-page .us-focal__copy { max-width: 680px; }
.ch-page .us-focal__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.ch-page .us-focal__logo { height: 22px; width: auto; margin-bottom: 16px; display: block; }
.ch-page .us-focal__title { margin: 0 0 10px; font: 300 clamp(22px, 2.5vw, 32px)/1.12 var(--f-display); letter-spacing: -.035em; color: var(--ivory); }
.ch-page .us-focal__desc { margin: 0; font: 300 15.5px/1.55 var(--f-text); color: var(--ivory-2); }

/* Светлая полоса .fog */
.ch-page .us-fog-band { margin-top: var(--ch-room); background: var(--fog); color: var(--ink); padding-block: clamp(48px, 6vw, 80px); }
.ch-page .us-fog-band .eyebrow { color: var(--fog-mute); }
.ch-page .us-fog-band h2 { margin: 10px 0 28px; font: 300 clamp(24px, 3vw, 38px)/1.08 var(--f-display); letter-spacing: -.04em; color: var(--ink); }
.ch-fog-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 36px; }
.ch-fog-step { padding-top: 18px; border-top: 1px solid var(--fog-rule); }
.ch-fog-step__num { font: 400 12px/1 var(--f-mono); color: var(--fog-mute); margin-bottom: 10px; }
.ch-fog-step h3 { margin: 0 0 8px; font: 500 17px/1.3 var(--f-text); color: var(--ink); }
.ch-fog-step p { margin: 0; font: 400 14.5px/1.55 var(--f-text); color: var(--fog-ink-2); }

/* FAQ */
.ch-page .us-faq-wrap { padding-block: var(--ch-room); }
.ch-page .us-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 44px; margin-top: 24px; interpolate-size: allow-keywords; }
.ch-page .us-faq details { border-top: 1px solid var(--ch-hair); padding-block: 18px; }
.ch-page .us-faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; font: 500 15.5px/1.4 var(--f-text); color: var(--ivory); }
.ch-page .us-faq summary::-webkit-details-marker { display: none; }
.ch-page .us-faq summary::after {
  content: ""; width: 12px; height: 12px; flex-shrink: 0;
  background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  color: var(--mute); transition: transform .45s var(--ch-slow), background-size .45s var(--ch-slow);
}
.ch-page .us-faq details[open] summary::after { background-size: 12px 1.5px, 1.5px 0; transform: rotate(180deg); color: var(--ivory); }
.ch-page .us-faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ch-slow), content-visibility .45s allow-discrete; }
.ch-page .us-faq details[open]::details-content { block-size: auto; }
.ch-page .us-faq p { margin: 12px 0 0; font: 300 14.5px/1.6 var(--f-text); color: var(--ivory-2); }

/* Hover card и Toast */
.ch-hover-card {
  position: fixed; z-index: 9999; width: 288px; max-width: calc(100vw - 24px); padding: 14px 16px;
  border-radius: 12px; background: rgba(20, 18, 16, .95); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(239, 232, 220, .20); box-shadow: 0 18px 44px rgba(0, 0, 0, .62);
  pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity 130ms ease, transform 130ms ease;
  color: var(--ivory, #EFE8DC); font-family: var(--f-text, sans-serif);
}
.ch-hover-card.visible { opacity: 1; transform: translateY(0); }
.ch-hc-eyebrow { font: 400 11px/1.3 var(--f-mono); color: var(--mute, #8E867A); margin-bottom: 4px; }
.ch-hc-title { font: 500 14px/1.3 var(--f-text); color: var(--ivory, #EFE8DC); margin-bottom: 6px; }
.ch-hc-desc { font: 400 12.5px/1.48 var(--f-text); color: var(--ivory-2, #C9C0B2); margin-bottom: 10px; }
.ch-hc-kv { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; padding-top: 8px; border-top: 1px solid rgba(239, 232, 220, .09); font: 400 12px/1.35 var(--f-mono); }
.ch-hc-kv span:nth-child(odd) { color: var(--mute, #8E867A); }
.ch-hc-kv span:nth-child(even) { color: var(--ivory, #EFE8DC); font-variant-numeric: tabular-nums; text-align: right; }

.ch-toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 9998; padding: 12px 18px; border-radius: 12px;
  background: #1C1916; border: 1px solid var(--ch-hair-2); color: var(--ivory); font: 400 13px/1.4 var(--f-text);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .2s var(--ch-ease), transform .25s var(--ch-slow);
}
.ch-toast.is-on { opacity: 1; transform: none; }

@media (max-width: 1120px) {
  .ch-kpi-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ch-summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ch-row { grid-template-columns: 38px 48px 44px minmax(0, 1fr) 96px 76px 24px; }
  .ch-spark { display: none; }
  .ch-bench { grid-template-columns: 1fr; }
  .ch-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .ch-page .us-seg { width: 100%; justify-content: space-between; }
  .ch-page .us-seg__btn { flex: 1 1 auto; padding: 0 12px; font-size: 13px; text-align: center; }
  .ch-kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
  .ch-summary-strip { grid-template-columns: 1fr; gap: 14px; }
  .ch-row { width: 100%; margin-inline: 0; grid-template-columns: 28px 38px 40px minmax(0, 1fr) 74px 20px; gap: 8px 10px; padding: 14px 4px; }
  .ch-cross { display: none; }
  .ch-cover { width: 40px; height: 40px; }
  .ch-pos { font-size: 16px; }
  .ch-listeners__val { font-size: 13px; }
  .ch-tree-children { margin: 4px 0 16px 0; padding: 18px 16px; }
  .ch-ai-grid { grid-template-columns: 1fr; gap: 16px; }
  .ch-cmp-row { width: 100%; margin-inline: 0; grid-template-columns: 40px minmax(0, 1fr) 78px; gap: 10px; padding: 14px 4px; }
  .ch-cmp-bars { display: none; }
  .ch-archive-grid { grid-template-columns: 1fr; }
  .ch-fog-steps { grid-template-columns: 1fr; }
  .ch-page .us-faq { grid-template-columns: 1fr; }
  .ch-search { flex: 1 1 100%; }
  .ch-page .us-select__btn { width: 100%; justify-content: space-between; }
  .ch-page .us-select { width: 100%; }
  .ch-page .us-pop { width: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ch-hero > *, .ch-page .is-enter, .ch-page .is-pop::before, .ch-page .us-opt, .ch-page .is-changed { animation: none !important; }
  .ch-page .us-seg__thumb, .ch-page .us-seg__hover, .ch-page .us-pop, .ch-page .us-faq details::details-content, .ch-chev, .ch-corridor__pin { transition: none !important; }
}
