/* ============================================================
   Калькулятор сложного процента (BUYHOLD)
   Префикс .cic-  ·  поверх канона (bh-tokens.css + tools-ui.css)
   FULL ISOLATION: всё внутри .tool-app.cic-wrapper.
   Маркер: CIC_TOOL_2026_05_30
   ============================================================ */

.cic-wrapper {
  font-family: var(--bh-font-body);
  color: var(--bh-text-on-dark-soft);
  background: var(--bh-bg-dark);
  border-radius: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}
.cic-wrapper * { box-sizing: border-box; }
/* Внутренний центрирующий контейнер — тёмная полоса во всю ширину, контент по центру */
.cic-inner { max-width: 1300px; margin: 0 auto; padding: 38px 24px 60px; }

/* ---- SEO breadcrumbs (visually hidden) ---- */
.cic-seo-bc { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---- Hero-полоса (full-bleed шаблон семейства; тональность виджета акций) ---- */
.cic-intro { position: relative; overflow: hidden; padding: 34px 0 30px;
  background: linear-gradient(135deg, var(--bh-bg-dark-deep) 0%, var(--bh-bg-dark) 32%, var(--bh-bg-card) 62%, var(--bh-bg-dark) 100%);
  border-bottom: 1px solid var(--bh-border-dark); }
/* ambient-свечения как в .stock-widget::before (blue слева, accent справа) */
.cic-intro::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 50%, rgba(var(--bh-blue-rgb), 0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 82% 50%, rgba(var(--bh-accent-rgb), 0.045) 0%, transparent 60%); }
/* центрирующий контейнер контента (фон полосы — во всю ширину) */
.cic-intro-wrap { position: relative; z-index: 1; max-width: 1300px; margin: 0 auto; padding: 0 24px; }
.cic-intro-row { display: flex; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.cic-intro-icon { width: 56px; height: 56px; border-radius: var(--bh-radius-md); flex-shrink: 0; box-shadow: 0 4px 16px rgba(0,0,0,.4); }
.cic-intro-titles { flex: 1; min-width: 0; }
.cic-intro-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px;
  color: var(--bh-text-on-dark-muted); margin: 0 0 6px; }
.cic-intro-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--bh-accent);
  box-shadow: 0 0 0 3px rgba(var(--bh-accent-rgb), 0.18); }
.cic-intro-sep { opacity: .35; }
.cic-intro-title { font-size: clamp(25px, 3.4vw, 34px); font-weight: 700; line-height: 1.12;
  letter-spacing: -0.022em; color: var(--bh-text-on-dark); margin: 0 0 8px; }
.cic-intro-title em { font-style: italic; font-weight: 700; color: var(--bh-accent); }
.cic-intro-sub { font-size: 15px; color: var(--bh-text-on-dark-soft); margin: 0; max-width: 66ch; line-height: 1.5; }
.cic-intro-pills { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }
.cic-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
  background: rgba(var(--bh-accent-rgb), 0.12); color: var(--bh-accent); border-radius: var(--bh-radius-pill);
  border: 1px solid rgba(var(--bh-accent-rgb), 0.25); font-size: 12px; font-weight: 600; white-space: nowrap; }
.cic-pill--muted { background: rgba(255,255,255,0.04); color: var(--bh-text-on-dark-muted); border-color: var(--bh-border-soft); }
.cic-pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--bh-accent); box-shadow: 0 0 8px rgba(var(--bh-accent-rgb), 0.6); }

/* ---- Layout: two columns ---- */
.cic-layout { display: grid; grid-template-columns: 384px 1fr; gap: 24px; align-items: start; }
.cic-panel { position: sticky; top: 16px; }

/* ---- Cards (канон .tool-card: фирменная градиентная рамка + soft-shadow) ---- */
.cic-card {
  background: linear-gradient(135deg, var(--bh-bg-card) 0%, var(--bh-bg-card-2) 100%);
  border: none; border-radius: var(--bh-radius-lg); padding: 22px;
  position: relative; box-shadow: var(--bh-shadow-soft);
}
.cic-card::before {
  content: ''; position: absolute; inset: 0; border-radius: var(--bh-radius-lg); padding: 1px;
  background: linear-gradient(135deg, rgba(var(--bh-accent-rgb), 0.2), rgba(var(--bh-blue-rgb), 0.1), rgba(var(--bh-accent-rgb), 0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: 0.55; transition: opacity .4s;
}
.cic-card:hover::before { opacity: 0.9; }
.cic-card-title { font-size: 15px; font-weight: 700; color: var(--bh-text-on-dark); margin: 0 0 18px;
  display: flex; align-items: center; gap: 9px; }
.cic-card-title .ico { color: var(--bh-accent); display: inline-flex; }
.cic-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.cic-card-head .cic-card-title { margin: 0; }

/* ---- Mode toggle (Накопление / Цель) ---- */
.cic-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: var(--bh-bg-dark-deep);
  border: 1px solid var(--bh-border-dark); border-radius: var(--bh-radius-sm); padding: 5px; margin-bottom: 20px; }
.cic-mode-btn { padding: 10px 8px; border: none; background: transparent; color: var(--bh-text-on-dark-muted);
  font-family: var(--bh-font-body); font-size: 13px; font-weight: 700; border-radius: var(--bh-radius-xs);
  cursor: pointer; transition: all .2s; display: flex; align-items: center; justify-content: center; gap: 7px; }
.cic-mode-btn svg { width: 16px; height: 16px; }
.cic-mode-btn.active { background: rgba(var(--bh-accent-rgb), 0.14); color: var(--bh-accent);
  box-shadow: inset 0 0 0 1px rgba(var(--bh-accent-rgb), 0.28), 0 0 12px rgba(var(--bh-accent-rgb), 0.12); }
.cic-mode-btn:focus-visible { outline: 2px solid var(--bh-accent); outline-offset: 2px; }

/* ---- Field / input ---- */
.cic-field { margin-bottom: 16px; }
.cic-field[hidden] { display: none; }
.cic-field-label { display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; font-weight: 600; color: var(--bh-text-on-dark-muted);
  text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 7px; }
.cic-field-label .cic-hint { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--bh-text-on-dark-faint); }
.cic-input-grp { position: relative; display: flex; align-items: center; }
.cic-input-grp input {
  width: 100%; background: var(--bh-bg-dark); border: 1px solid var(--bh-border-dark);
  color: var(--bh-text-on-dark); font-family: var(--bh-font-mono); font-size: 17px; font-weight: 600;
  padding: 12px 52px 12px 14px; border-radius: var(--bh-radius-sm); outline: none;
  transition: border-color .2s, box-shadow .2s; }
.cic-input-grp input:focus { border-color: var(--bh-accent); box-shadow: 0 0 10px rgba(var(--bh-accent-rgb), 0.15); }
.cic-input-grp input:disabled { opacity: .55; cursor: not-allowed; }
.cic-input-grp.is-output input { background: rgba(var(--bh-success-rgb), 0.07); border-color: rgba(var(--bh-success-rgb), 0.35); color: var(--bh-success); }
.cic-input-suffix { position: absolute; right: 14px; font-family: var(--bh-font-mono); font-size: 14px;
  font-weight: 600; color: var(--bh-text-on-dark-muted); pointer-events: none; }

/* range slider */
.cic-range { width: 100%; margin-top: 11px; accent-color: var(--bh-accent); height: 4px; cursor: pointer; }

/* segmented control */
.cic-seg { display: flex; gap: 6px; background: var(--bh-bg-dark-deep); border: 1px solid var(--bh-border-dark);
  border-radius: var(--bh-radius-sm); padding: 4px; }
.cic-seg-btn { flex: 1; padding: 8px 6px; border: none; background: transparent; color: var(--bh-text-on-dark-muted);
  font-family: var(--bh-font-body); font-size: 12px; font-weight: 600; border-radius: var(--bh-radius-xs);
  cursor: pointer; transition: all .2s; white-space: nowrap; }
.cic-seg-btn.active { background: rgba(var(--bh-accent-rgb), 0.14); color: var(--bh-accent);
  box-shadow: inset 0 0 0 1px rgba(var(--bh-accent-rgb), 0.28), 0 0 12px rgba(var(--bh-accent-rgb), 0.12); }
.cic-seg-btn:focus-visible { outline: 2px solid var(--bh-accent); outline-offset: 2px; }
.cic-range:focus-visible { outline: 2px solid var(--bh-accent); outline-offset: 3px; }

/* two-up row */
.cic-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cic-row2 > * { min-width: 0; }

/* ---- Advanced options ---- */
.cic-adv { margin-top: 4px; border-top: 1px solid var(--bh-border-dark); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.cic-adv-opt { margin-bottom: 0; }
.cic-check {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  user-select: none;
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--bh-border-dark);
  border-radius: var(--bh-radius-sm);
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.cic-check:hover {
  color: #ffffff;
  background: rgba(var(--bh-accent-rgb), 0.055);
  border-color: rgba(var(--bh-accent-rgb), 0.34);
}
.cic-check:has(input:checked) {
  color: #ffffff;
  background: rgba(var(--bh-accent-rgb), 0.095);
  border-color: rgba(var(--bh-accent-rgb), 0.46);
  box-shadow: inset 0 0 0 1px rgba(var(--bh-accent-rgb), 0.10);
}
.cic-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.cic-check-switch {
  position: relative;
  width: 38px;
  height: 22px;
  flex: 0 0 38px;
  border-radius: var(--bh-radius-pill);
  background: var(--bh-bg-dark-deep);
  border: 1px solid var(--bh-border-dark);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.35);
  transition: background .2s, border-color .2s;
}
.cic-check-switch::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.45);
  transition: transform .2s, background .2s;
}
.cic-check input:checked + .cic-check-switch {
  background: linear-gradient(135deg, var(--bh-accent), var(--bh-accent-dark));
  border-color: rgba(var(--bh-accent-rgb), 0.75);
}
.cic-check input:checked + .cic-check-switch::before {
  transform: translateX(16px);
  background: #1a1d24;
}
.cic-check input:focus-visible + .cic-check-switch {
  outline: 2px solid var(--bh-accent);
  outline-offset: 3px;
}
.cic-check-text {
  min-width: 0;
  line-height: 1.25;
  color: #ffffff;
}
.cic-check-state {
  min-width: 36px;
  margin-left: auto;
  padding: 3px 6px;
  border-radius: var(--bh-radius-pill);
  background: rgba(255,255,255,0.055);
  color: #e5e7eb;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
}
.cic-check-state::before { content: 'выкл'; }
.cic-check input:checked ~ .cic-check-state {
  background: rgba(var(--bh-accent-rgb), 0.16);
  color: var(--bh-accent);
}
.cic-check input:checked ~ .cic-check-state::before { content: 'вкл'; }
.cic-adv-sub { margin-top: 8px; padding-left: 0; }
.cic-adv-sub[hidden] { display: none; }

/* ---- Buttons ---- */
.cic-actions { display: flex; gap: 10px; margin-top: 18px; }
.cic-btn { padding: 11px 18px; border-radius: var(--bh-radius-sm); font-family: var(--bh-font-body);
  font-size: 13px; font-weight: 700; cursor: pointer; border: none; display: inline-flex; align-items: center;
  justify-content: center; gap: 7px; transition: all .2s; }
.cic-btn svg { width: 16px; height: 16px; }
.cic-btn--primary { background: linear-gradient(135deg, var(--bh-accent), var(--bh-accent-dark)); color: #1a1d24;
  box-shadow: 0 2px 10px rgba(var(--bh-accent-rgb), 0.22); flex: 1; }
.cic-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 0 22px rgba(var(--bh-accent-rgb), 0.32); }
.cic-btn--ghost { background: var(--bh-bg-elev); color: var(--bh-text-on-dark-soft); }
.cic-btn--ghost:hover { color: var(--bh-text-on-dark); }
.cic-btn:focus-visible { outline: 2px solid var(--bh-accent); outline-offset: 2px; }

/* ---- Hero result ---- */
.cic-hero { background: linear-gradient(135deg, var(--bh-bg-card) 0%, var(--bh-bg-card-2) 100%);
  border-radius: var(--bh-radius-lg); padding: 26px 28px; position: relative; overflow: hidden;
  box-shadow: var(--bh-shadow-soft); }
.cic-hero::before {
  content: ''; position: absolute; inset: 0; border-radius: var(--bh-radius-lg); padding: 1px;
  background: linear-gradient(135deg, rgba(var(--bh-accent-rgb), 0.35), rgba(var(--bh-blue-rgb), 0.12), rgba(var(--bh-accent-rgb), 0.08));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: 0.7; z-index: 1; }
.cic-hero > * { position: relative; z-index: 2; }
.cic-hero::after { content: ''; position: absolute; top: -60px; right: -40px; width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(var(--bh-accent-rgb), 0.16) 0%, transparent 70%); pointer-events: none; z-index: 0; }
.cic-hero-label { font-size: 13px; font-weight: 600; color: var(--bh-text-on-dark-muted);
  text-transform: uppercase; letter-spacing: 0.5px; }
/* Итог/доход — ФИНАНСОВЫЙ зелёный (--bh-success #10b981), не брендовый accent (он только для действий) */
.cic-hero-value { font-family: var(--bh-font-mono); font-size: 42px; font-weight: 700; color: var(--bh-success);
  line-height: 1.05; margin: 8px 0 4px; letter-spacing: -1px; text-shadow: 0 0 28px rgba(var(--bh-success-rgb), 0.22); }
.cic-hero-value .cic-cur { font-size: 25px; color: var(--bh-text-on-dark-soft); margin-left: 4px; }
.cic-hero-meta { font-size: 14px; color: var(--bh-text-on-dark-soft); }
.cic-hero-meta b { color: var(--bh-success); font-family: var(--bh-font-mono); }

/* ---- Metric tiles ---- */
.cic-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.cic-metric { background: linear-gradient(135deg, var(--bh-bg-card) 0%, var(--bh-bg-card-2) 100%);
  border: none; border-radius: var(--bh-radius-md); padding: 16px 18px;
  position: relative; overflow: hidden; box-shadow: var(--bh-shadow-md); transition: all .3s ease; }
.cic-metric::before {
  content: ''; position: absolute; inset: 0; border-radius: var(--bh-radius-md); padding: 1px;
  background: linear-gradient(135deg, rgba(var(--bh-accent-rgb), 0.18), rgba(var(--bh-blue-rgb), 0.08), rgba(var(--bh-accent-rgb), 0.04));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: 0.5; transition: opacity .3s; }
.cic-metric:hover::before { opacity: 1; }
.cic-metric > * { position: relative; z-index: 1; }
.cic-metric-label { font-size: 11px; font-weight: 600; color: var(--bh-text-on-dark-muted);
  text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 8px; }
.cic-metric-value { font-family: var(--bh-font-mono); font-size: 20px; font-weight: 700; line-height: 1.1; }
.cic-metric-value.pos { color: var(--bh-success); text-shadow: 0 0 18px rgba(var(--bh-success-rgb), 0.22); }
.cic-metric-value.con { color: var(--bh-blue); text-shadow: 0 0 18px rgba(var(--bh-blue-rgb), 0.18); }
.cic-metric-value.neutral { color: var(--bh-text-on-dark); }
.cic-metric-value.warn { color: var(--bh-warning); text-shadow: 0 0 18px rgba(var(--bh-warning-rgb), 0.2); }
.cic-metric-sub { font-size: 11px; color: var(--bh-text-on-dark-faint); margin-top: 5px; }
.cic-metric[hidden] { display: none; }

/* ---- Composition bar ---- */
.cic-comp { margin-top: 18px; }
.cic-comp-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--bh-text-on-dark-muted); margin-bottom: 8px; }
.cic-compbar { height: 12px; border-radius: var(--bh-radius-pill); overflow: hidden; display: flex; background: var(--bh-bg-dark-deep); }
.cic-compbar .seg-con { background: var(--bh-blue); transition: width .4s ease; }
.cic-compbar .seg-int { background: var(--bh-success); transition: width .4s ease; }

/* ---- Legend ---- */
.cic-legend { display: flex; gap: 18px; flex-wrap: wrap; }
.cic-legend-item { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--bh-text-on-dark-soft); }
.cic-legend-dot { width: 11px; height: 11px; border-radius: 3px; }
.cic-legend-dot.int { background: var(--bh-success); }
.cic-legend-dot.con { background: var(--bh-blue); }

/* ---- Chart ---- */
.cic-chart-frame { width: 100%; position: relative; }
.cic-chart-frame svg { width: 100%; height: auto; display: block; }
.cic-tip { position: absolute; pointer-events: none; background: rgba(13,17,23,.96); border: 1px solid var(--bh-border-dark);
  border-radius: var(--bh-radius-sm); padding: 9px 12px; font-size: 12px; color: var(--bh-text-on-dark-soft);
  white-space: nowrap; opacity: 0; transition: opacity .12s; z-index: 5; box-shadow: var(--bh-shadow-md); transform: translate(-50%, -100%); }
.cic-tip b { font-family: var(--bh-font-mono); }
.cic-tip .t-bal { color: var(--bh-success); }
.cic-tip .t-con { color: var(--bh-blue); }

/* ---- Table ---- */
.cic-table-wrap { overflow-x: auto; border-radius: var(--bh-radius-md); border: 1px solid var(--bh-border-soft); }
.cic-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cic-table th { text-align: right; padding: 11px 14px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px;
  color: var(--bh-text-on-dark-muted); background: var(--bh-bg-dark-deep); font-weight: 600; white-space: nowrap; }
.cic-table th:first-child, .cic-table td:first-child { text-align: left; }
.cic-table td { padding: 10px 14px; text-align: right; font-family: var(--bh-font-mono);
  color: var(--bh-text-on-dark-soft); border-top: 1px solid var(--bh-border-dark); white-space: nowrap; }
.cic-table tbody tr:hover td { background: rgba(255,255,255,0.02); }
.cic-table .col-int { color: var(--bh-success); }
.cic-table .col-bal { color: var(--bh-text-on-dark); font-weight: 600; }
.cic-table-more { text-align: center; margin-top: 12px; }

/* ---- Note / disclaimer ---- */
.cic-note { font-size: 12px; color: var(--bh-text-on-dark-faint); line-height: 1.55; margin-top: 14px; }
.cic-note a { color: var(--bh-accent); }
.cic-icon { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; vertical-align: middle; }

/* ---- Инсайт «точка перелома» ---- */
.cic-insight { margin-top: 14px; font-size: 13px; color: var(--bh-text-on-dark-soft); line-height: 1.5;
  display: flex; align-items: flex-start; gap: 9px; padding: 12px 14px;
  background: rgba(var(--bh-success-rgb), 0.06); border: 1px solid rgba(var(--bh-success-rgb), 0.18); border-radius: var(--bh-radius-sm); }
.cic-insight[hidden] { display: none; }
.cic-insight b { color: var(--bh-success); }
.cic-insight-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bh-success);
  box-shadow: 0 0 8px rgba(var(--bh-success-rgb), 0.6); margin-top: 4px; flex-shrink: 0; }

/* ---- Actions (кнопки не растягиваем на всю ширину) ---- */
.cic-actions { flex-wrap: wrap; }
.cic-actions .cic-btn { flex: 0 0 auto; }
.cic-share-txt { white-space: nowrap; }

/* ---- Светлый редакционный блок: специфичные стили калькулятора ---- */
body.page-template-page-compound-calculator { background: #f4f6f8; }
.cic-formula {
  font-family: var(--bh-font-mono);
  font-size: 15px;
  color: #111827;
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  padding: 16px 18px;
  overflow-x: auto;
  margin: 18px 0 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.cic-formula sup { font-size: 11px; }
.cic-formula-legend { font-size: 14px !important; color: #64748b !important; }

/* ============================================================
   ШРИФТ ЦИФР — канон конвертера/финжурнала: DM Sans (body) + табличные фигуры.
   НЕ Fira Code (моно). Моноширинной остаётся только формула (.cic-formula).
   ============================================================ */
.cic-hero-value, .cic-hero-meta b, .cic-metric-value, .cic-metric-sub,
.cic-input-grp input, .cic-input-suffix, .cic-table td, .cic-tip, .cic-tip b {
  font-family: var(--bh-font-body);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ---- a11y: visually hidden ---- */
.cic-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---- info-иконка (тултип через канон .tool-app [data-tooltip]) ---- */
.cic-info { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
  border-radius: 50%; border: 1px solid var(--bh-border-dark); color: var(--bh-text-on-dark-muted);
  background: transparent; padding: 0; font-size: 11px; font-weight: 700; font-style: normal; cursor: help; flex-shrink: 0; line-height: 1; user-select: none;
  text-transform: none; letter-spacing: 0; transition: color .2s, border-color .2s; }
.cic-info:hover, .cic-info:focus-visible { color: var(--bh-accent); border-color: rgba(var(--bh-accent-rgb), 0.5); outline: none; }

/* ---- adv-опция: лейбл + info в строку ---- */
.cic-adv-head { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: stretch; gap: 8px; }
.cic-adv-head .cic-check { min-width: 0; }
.cic-adv-head .cic-info {
  width: 44px;
  min-height: 44px;
  border-radius: var(--bh-radius-sm);
  background: rgba(255,255,255,0.035);
}

/* ---- переключатель шкалы графика ---- */
.cic-chart-topbar { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.cic-scale { display: inline-flex; gap: 4px; background: var(--bh-bg-dark-deep); border: 1px solid var(--bh-border-dark);
  border-radius: var(--bh-radius-sm); padding: 3px; }
.cic-scale-btn { padding: 5px 12px; border: none; background: transparent; color: var(--bh-text-on-dark-muted);
  font-family: var(--bh-font-body); font-size: 12px; font-weight: 600; border-radius: var(--bh-radius-xs); cursor: pointer; transition: all .2s; }
.cic-scale-btn.active { background: rgba(var(--bh-accent-rgb), 0.14); color: var(--bh-accent); box-shadow: inset 0 0 0 1px rgba(var(--bh-accent-rgb), 0.28); }
.cic-scale-btn:focus-visible { outline: 2px solid var(--bh-accent); outline-offset: 2px; }

/* ---- spacing helpers ---- */
.cic-mt16 { margin-top: 16px; }
.cic-mt20 { margin-top: 20px; }

/* ---- prefers-reduced-motion: отключаем анимации/переходы (#12) ---- */
@media (prefers-reduced-motion: reduce) {
  .cic-wrapper *, .cic-wrapper *::before, .cic-wrapper *::after { transition: none !important; animation: none !important; }
  .cic-compbar .seg-con, .cic-compbar .seg-int { transition: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .cic-layout { grid-template-columns: 1fr; }
  .cic-panel { position: static; }
  .cic-intro-pills { width: 100%; }
  /* #13: липкий итог при скролле результатов на мобайле */
  .cic-hero { position: sticky; top: 6px; z-index: 6; }
}
@media (max-width: 600px) {
  .cic-inner { padding: 22px 14px 40px; }
  .cic-formula { font-size: 13px; padding: 14px; }
  .cic-hero { padding: 20px; }
  .cic-hero-value { font-size: 34px; }
  .cic-hero-value .cic-cur { font-size: 20px; }
  .cic-metrics { grid-template-columns: 1fr; }
  .cic-card { padding: 18px; }
  .cic-intro { padding: 22px 0 22px; }
  .cic-intro-row { gap: 14px; }
  .cic-intro-icon { width: 46px; height: 46px; }
  .cic-intro-meta { display: none; }
  .cic-mode-btn, .cic-seg-btn, .cic-scale-btn, .cic-btn { min-height: 44px; }
  .cic-range { min-height: 44px; }
  .cic-info { width: 44px; height: 44px; }
}
@media (max-width: 760px) {
  .cic-table-wrap { max-width: 100%; overflow: visible !important; border: 0; border-radius: 0; }
  .cic-wrapper .cic-table { display: block !important; min-width: 0 !important; width: 100% !important; border-collapse: separate !important; }
  .cic-wrapper .cic-table thead { display: none !important; }
  .cic-wrapper .cic-table tbody { display: grid !important; gap: 8px; }
  .cic-wrapper .cic-table tr {
    display: grid !important; width: 100% !important; margin: 0 !important; padding: 0 !important;
    background: var(--bh-bg-dark-deep) !important; border: 1px solid var(--bh-border-dark) !important;
    border-radius: var(--bh-radius-sm) !important; box-shadow: none !important; overflow: hidden;
  }
  .cic-wrapper .cic-table th { display: none !important; }
  .cic-wrapper .cic-table td {
    display: flex !important; align-items: center; justify-content: space-between; gap: 12px;
    width: 100% !important; padding: 9px 12px !important; text-align: right !important;
    background: transparent !important; border-top: 1px solid var(--bh-border-dark) !important; white-space: normal;
  }
  .cic-wrapper .cic-table td:first-child { border-top: 0 !important; }
  .cic-wrapper .cic-table td::before {
    content: attr(data-label) !important; display: block !important; flex: 0 0 auto;
    font-family: var(--bh-font-body); font-size: 11px; font-weight: 600; text-transform: uppercase;
    color: var(--bh-text-on-dark-muted); letter-spacing: 0.3px;
  }
}


/* === Хлебные крошки hero (заменили eyebrow .cic-intro-meta) — BH_BREADCRUMBS_PATCH_2026_06_01 === */
.cic-bc{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:0 0 8px;font-family:var(--bh-font-body);font-size:12.5px;line-height:1.3;}
.cic-bc-list{display:flex;align-items:center;flex-wrap:wrap;gap:7px;list-style:none;margin:0;padding:0;min-width:0;}
.cic-bc-item{display:inline-flex;}
.cic-bc-item a{color:var(--bh-text-on-dark-muted);text-decoration:none;transition:color .15s ease;}
.cic-bc-item a:hover{color:var(--bh-accent);}
.cic-bc-sep{color:var(--bh-text-on-dark-faint);user-select:none;}
.cic-bc-current span{color:var(--bh-text-on-dark-soft);font-weight:500;}
