/* ═══════════════════════════════════════════════════════════════════════════
   Звёздная карта: небесная геометрия героя и финала, индекс данных, окна с
   настоящими графиками, сравнение, сценарии, вопросы, лестница разделов.
   Цвета — токены страницы и продукта; движутся только transform и opacity.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────── созвездие (символ) ── */
.cv-quad {
  fill: currentColor;
  fill-opacity: 0.035;
  stroke: none;
}
.cv-line {
  stroke: currentColor;
  stroke-opacity: 0.42;
  stroke-width: 1;
  stroke-dasharray: 3 4;
}
.cv-halo {
  fill: currentColor;
  fill-opacity: 0.06;
}
.cv-ring {
  fill: none;
  stroke: currentColor;
  stroke-opacity: 0.28;
}
.cv-star {
  fill: currentColor;
}
.cv-g {
  fill: currentColor;
  fill-opacity: 0.85;
  font: italic 500 17px/1 Georgia, 'Times New Roman', serif;
}
.cv-n {
  fill: currentColor;
  fill-opacity: 0.55;
  font: 400 9px/1 var(--mono);
  letter-spacing: 0.06em;
}
@media (prefers-reduced-motion: no-preference) {
  .cv-star {
    animation: cv-tw 5.5s ease-in-out infinite;
  }
  .cv-s:nth-of-type(2) .cv-star { animation-delay: -1.2s; }
  .cv-s:nth-of-type(3) .cv-star { animation-delay: -2.4s; }
  .cv-s:nth-of-type(4) .cv-star { animation-delay: -3.6s; }
  .cv-s:nth-of-type(5) .cv-star { animation-delay: -4.5s; }
  @keyframes cv-tw {
    0%, 100% { fill-opacity: 1; }
    50% { fill-opacity: 0.55; }
  }
}

/* ─────────────────────────────────────────── разделитель-звёздная шкала ── */
.sky-div {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 72px auto 0;
  padding: 0 var(--gutter);
  color: var(--weak);
}
.sky-div svg {
  flex: 1;
  height: 28px;
  min-width: 0;
}
.sky-div span {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.sd-ln { stroke: var(--line-2); }
.sd-tk { stroke: var(--line-2); fill: none; stroke-width: 1; }
.sd-ring { fill: var(--paper); stroke: #0b0d1e; stroke-opacity: 0.35; }
.sd-star { fill: var(--indigo-ink); }
.sd-cross { stroke: #0b0d1e; stroke-opacity: 0.4; fill: none; }
.sd-star2 { fill: #0b0d1e; fill-opacity: 0.45; }
@media (max-width: 760px) {
  .sky-div { margin-top: 44px; }
  .sky-div span { display: none; }
}

/* ───────────────────────────────────────────── индекс данных (факты) ── */
.facts {
  padding: 96px 0 0;
  scroll-margin-top: 0;
}
.facts-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 32px 64px;
  align-items: end;
  margin-bottom: 32px;
}
.facts-head h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.facts-head p {
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  max-width: 520px;
}
.facts-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 20px;
  align-items: stretch;
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--paper);
  overflow: hidden;
}
.fx {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 24px 24px 22px;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  min-width: 0;
}
.fx:nth-child(odd) { border-left: 0; }
.fx:nth-child(-n + 2) { border-top: 0; }
.fx::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  width: 28px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--a);
}
.fx dt {
  order: 2;
  color: var(--weak);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}
.fx dd {
  order: 1;
  margin: 8px 0 0;
  color: var(--ink);
  font-size: clamp(28px, 2.9vw, 38px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fx small {
  order: 3;
  margin-top: 6px;
  color: var(--weak);
  font: 400 11.5px/1.4 var(--mono);
  letter-spacing: 0.01em;
}
@media (max-width: 1080px) {
  .facts-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .facts { padding-top: 64px; }
  .facts-head { grid-template-columns: 1fr; gap: 12px; }
  .fx { padding: 18px 16px 16px; }
  .fx::before { left: 16px; }
  .fx small { display: none; }
}

/* ── карта: созвездие, где пять звёзд — пять частей продукта ── */
.sky-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  border: 1px solid #1d2140;
  border-radius: var(--r-win);
  background: radial-gradient(120% 70% at 50% -10%, #14194a 0%, #0b0c19 58%), #0b0c19;
  color: var(--steel);
  box-shadow: 0 24px 48px -28px rgb(11 13 30 / 0.45), 0 2px 8px -2px rgb(11 13 30 / 0.2);
  overflow: hidden;
}
.sky-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 4px;
}
.sky-bar .dots { display: inline-flex; gap: 5px; }
.sky-bar .dots i { width: 8px; height: 8px; border-radius: 50%; background: #232845; }
.sky-bar b { flex: 1; color: #f3f5ff; font-size: 14px; font-weight: 600; }
.sky-bar em { color: #6f7cab; font: 400 11px/1 var(--mono); font-style: normal; }
.sky-body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 14px;
}
.sm {
  display: block;
  width: 100%;
  height: auto;
  max-height: 372px;
  overflow: visible;
}
.sm-grid path { stroke: #1b2040; stroke-width: 1; fill: none; }
.sm-ring circle { fill: none; stroke: #232a55; stroke-width: 1; }
.sm-ring .d { stroke-dasharray: 2 6; }
.sm-tk { stroke: #2b3366; fill: none; }
.sm-c { fill: #6f7cab; font: 400 10px/1 var(--mono); }
.sm-f { fill: #aab4e6; fill-opacity: 0.55; }
.sm-l { stroke: #7c86d6; stroke-opacity: 0.55; stroke-dasharray: 3 4; }
.sm-s { cursor: pointer; outline: none; }
.sm-hit { fill: transparent; }
.sm-st { fill: #e8ecff; transition: fill 0.2s ease; }
.sm-ring2 { fill: none; stroke: #818cf8; stroke-opacity: 0.4; transition: stroke-opacity 0.2s ease, stroke-width 0.2s ease; }
.sm-glow { opacity: 0.55; transition: opacity 0.25s ease; }
.sm-gr { fill: #c7d2fe; font: italic 500 18px/1 Georgia, 'Times New Roman', serif; }
.sm-t { fill: #8e99bd; font: 500 11.5px/1 var(--sans); transition: fill 0.2s ease; }
.sm-s:hover .sm-t, .sm-s.is-on .sm-t, .sm-s:focus-visible .sm-t { fill: #fff; }
.sm-s.is-on .sm-st { fill: #67e8f9; }
.sm-s.is-on .sm-ring2 { stroke: #22d3ee; stroke-opacity: 0.9; stroke-width: 1.6; }
.sm-s.is-on .sm-glow, .sm-s:hover .sm-glow { opacity: 1; }
.sm-s:focus-visible .sm-ring2 { stroke: #fff; stroke-opacity: 1; }
.sky-cap {
  min-height: 112px;
  margin: 2px 4px 0;
  padding: 14px 16px 16px;
  border: 1px solid #232a55;
  border-radius: 10px;
  background: rgb(15 18 48 / 0.7);
}
.sky-cap span { color: #9aa6c7; font: 500 11px/1 var(--mono); }
.sky-cap b { display: block; margin: 8px 0 4px; color: #fff; font-size: 17px; font-weight: 650; letter-spacing: -0.015em; }
.sky-cap p { color: #b4bfe0; font-size: 13.5px; line-height: 1.55; }
.sky-note {
  padding: 10px 18px 14px;
  color: #6f7cab;
  font: 400 11.5px/1.4 var(--mono);
}
@media (prefers-reduced-motion: no-preference) {
  .sm-f { animation: sm-tw 4.8s ease-in-out infinite; animation-delay: var(--d, 0s); }
  @keyframes sm-tw { 0%, 100% { fill-opacity: 0.55; } 50% { fill-opacity: 0.12; } }
  .sm-l { animation: sm-dash 18s linear infinite; }
  @keyframes sm-dash { to { stroke-dashoffset: -70; } }
}

/* ─────────────────────────────────────────────── метка раздела (kicker) ── */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--weak);
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.02em;
}
.kicker i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--indigo-ink);
  box-shadow: 0 0 0 3px rgb(79 70 229 / 0.15);
}
.head.center .kicker {
  margin-left: auto;
  margin-right: auto;
}
.head.center {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.head .kicker + h2 {
  margin-top: 0;
}

/* ───────────────────────────────────────────── окна с графиками (cw) ── */
.charts {
  padding-top: 64px;
}
.cgrid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 38px 20px;
  margin-top: 56px;
}
.cw {
  position: relative;
  grid-column: span var(--s, 6);
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #1d2140;
  border-radius: var(--r-win);
  background: radial-gradient(120% 70% at 50% -10%, #12163a 0%, #0b0c19 55%), #0b0c19;
  color: var(--steel);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.05) inset, 0 24px 48px -28px rgb(11 13 30 / 0.45), 0 2px 8px -2px rgb(11 13 30 / 0.2);
  contain: layout style;
}
.cw-tab {
  position: absolute;
  left: 18px;
  top: -13px;
  z-index: 2;
  padding: 4px 11px;
  border: 1px solid #232845;
  border-radius: 7px 7px 0 0;
  background: #0b0c19;
  color: #c7d2fe;
  font: 500 11px/1.2 var(--mono);
  letter-spacing: 0.04em;
}
.cw-tab::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: #0b0c19;
}
.cw-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 14px 18px 8px;
}
.cw-bar .dots {
  display: inline-flex;
  gap: 5px;
}
.cw-bar .dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #232845;
}
.cw-bar h3 {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: #f3f5ff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.cw-legend, .cw-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8e99bd;
  font: 500 11px/1 var(--mono);
  white-space: nowrap;
}
.cw-legend i {
  width: 9px;
  height: 9px;
  margin-left: 6px;
  border-radius: 2px;
  background: var(--c);
}
.cw-legend i:first-child {
  margin-left: 0;
}
.cw-note {
  padding: 4px 8px;
  border-radius: 6px;
  background: rgb(251 191 36 / 0.1);
  color: #fcd34d;
}
.cw-note.is-bad {
  background: rgb(251 113 133 / 0.12);
  color: #fda4af;
}
.cw-plot {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4px 16px 10px;
}
.cw-plot > svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.cw-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 18px 13px;
  border-top: 1px solid #1a1e3a;
}
.cw-foot q {
  color: #9aa6c7;
  font-size: 12.5px;
  line-height: 1.45;
  quotes: '«' '»';
}
.cw-foot code {
  flex: none;
  color: #6f7cab;
  font-size: 11px;
  white-space: nowrap;
}

/* оси и подписи внутри SVG */
.cw .gl { stroke: #1c2140; stroke-width: 1; }
.cw .gl-v { stroke-dasharray: 2 5; }
.cw .ax { fill: #8791b5; font: 400 11px/1 var(--mono); }
.cw .ax-r { text-anchor: start; }
.cw .ax-t { fill: #a3aed0; font: 500 11px/1 var(--mono); }
.cw .rl { fill: #cdd6f4; font: 500 13px/1 var(--sans); }
.cw .rl-m { font-family: var(--mono); font-size: 12px; fill: #b6c1e6; }
.cw .rl-s { fill: #7f8aae; font-size: 11px; font-weight: 400; }
.cw .rv { fill: #f1f4ff; font: 600 12.5px/1 var(--sans); font-variant-numeric: tabular-nums; }
.cw .rv-s { fill: #8e99bd; font-weight: 400; font-size: 11px; }
.cw .co-t { fill: #e0e7ff; font: 600 12px/1 var(--sans); }
.cw .co-s { fill: #9aa6c7; font: 400 11px/1 var(--sans); }
.cw .thr { stroke: #fbbf24; stroke-width: 1.2; stroke-dasharray: 5 5; }
.cw .thr-t { fill: #fcd34d; font: 500 11px/1 var(--mono); }
.cw .thr-g { stroke: #5b6794; stroke-width: 1; }
.cw .thr-tg { fill: #8e99bd; }
.cw .pt-l { fill: #fda4af; font: 500 11px/1 var(--mono); }
.cw .d-n { fill: #fff; font: 650 30px/1 var(--sans); letter-spacing: -0.03em; }
.cw .d-s { fill: #8e99bd; font: 400 11px/1 var(--sans); }
.cw .bar, .cw .hbar, .cw .pt, .cw .arc, .cw .dot, .cw .lolli { cursor: default; }
.cw [data-tip]:hover { filter: brightness(1.25); }

/* подсказка */
.cw-tip {
  position: absolute;
  z-index: 5;
  max-width: 280px;
  padding: 7px 10px;
  border: 1px solid #30365e;
  border-radius: 8px;
  background: #151937;
  color: #eef1ff;
  font: 500 12px/1.4 var(--sans);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.4);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
  pointer-events: none;
}
.cw-tip.is-on {
  opacity: 1;
  transform: none;
}

/* легенда кольца */
.cw-pay .cw-plot {
  align-items: center;
  gap: 14px;
}
.cw-pay .cw-plot > svg {
  width: 210px;
  max-width: 100%;
}
.cw-leg {
  display: grid;
  gap: 4px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cw-leg li {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 2px 10px;
  padding: 7px 10px;
  border-radius: 8px;
  color: #c4cdee;
  font-size: 13px;
  transition: background 0.15s ease;
}
.cw-leg li:hover {
  background: #14183a;
}
.cw-leg i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.cw-leg b {
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.cw-leg em {
  grid-column: 2 / -1;
  color: #7f8aae;
  font-size: 11.5px;
  font-style: normal;
  line-height: 1.2;
}
.cw[data-hot] .arc { opacity: 0.35; }
.cw[data-hot='0'] .arc[data-seg='0'], .cw[data-hot='1'] .arc[data-seg='1'], .cw[data-hot='2'] .arc[data-seg='2'], .cw[data-hot='3'] .arc[data-seg='3'] { opacity: 1; }

/* сравнение «в срок / с опозданием» */
.lr {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.lr-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 12px;
  border: 1px solid #1d2140;
  border-radius: 10px;
  background: #0f1230;
}
.lr-h {
  margin: 0;
  color: #c4cdee;
  font-size: 13px;
  font-weight: 600;
}
.lr-sc {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 2px 0 4px;
}
.lr-sc b {
  font-size: 40px;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.lr-col.is-ok .lr-sc b { color: #6ee7b7; }
.lr-col.is-bad .lr-sc b { color: #fda4af; }
.lr-sc span {
  color: #8e99bd;
  font-size: 11.5px;
}
.lr-m {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #9aa6c7;
  font-size: 11.5px;
}
.lr-m i {
  position: relative;
  height: 8px;
  border-radius: 4px;
  background: #1a1e3a;
  overflow: hidden;
}
.lr-m u {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  border-radius: 4px;
  background: #34d399;
}
.lr-col.is-bad .lr-m:nth-of-type(1) u { background: #fb7185; }
.lr-col.is-ok .lr-m:nth-of-type(1) u { background: #5b6794; }
.lr-col.is-bad .lr-m:nth-of-type(2) u { background: #5b6794; }
.lr-m b {
  color: #f1f4ff;
  font-variant-numeric: tabular-nums;
}
.lr-n {
  margin: 2px 0 0;
  color: #6f7cab;
  font: 400 11px/1 var(--mono);
}

/* рост категорий */
.gt {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  color: #c4cdee;
}
.gt th {
  padding: 4px 6px 8px;
  color: #6f7cab;
  font: 500 11px/1.2 var(--mono);
  text-align: left;
}
.gt th:last-child, .gt td:last-child { text-align: right; }
.gt td {
  padding: 8px 6px;
  border-top: 1px solid #1a1e3a;
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}
.gt td:first-child {
  color: #e6ebff;
  font-weight: 500;
}
.gt-b {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 6px;
  background: #1a1e3a;
  color: #9aa6c7;
  font-weight: 600;
}
.gt-b.is-mid { background: rgb(251 191 36 / 0.12); color: #fcd34d; }
.gt-b.is-hi { background: rgb(52 211 153 / 0.14); color: #6ee7b7; }

/* появление графиков — один раз, при входе в кадр */
.js .cw .bar { transform: scaleY(0); transform-box: fill-box; transform-origin: 50% 100%; }
.js .cw .hbar { transform: scaleX(0); transform-box: fill-box; transform-origin: 0 50%; }
.js .cw .stem { transform: scaleX(0); transform-box: fill-box; transform-origin: 0 50%; }
.js .cw .ln { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .cw .area, .js .cw .halo, .js .cw .callout { opacity: 0; }
.js .cw .dot, .js .cw .pt, .js .cw .lolli, .js .cw .arc { opacity: 0; }
.js .cw .lr-m u { transform: scaleX(0); transform-origin: 0 50%; }
.js .cw .gt tbody tr { opacity: 0; transform: translateY(6px); }
.js .cw.is-in .bar { transform: none; transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: calc(var(--i, 0) * 38ms); }
.js .cw.is-in .hbar, .js .cw.is-in .stem { transform: none; transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: calc(var(--i, 0) * 55ms); }
.js .cw.is-in .ln { stroke-dashoffset: 0; transition: stroke-dashoffset 1.7s cubic-bezier(0.3, 0.6, 0.2, 1) 0.25s; }
.js .cw.is-in .area, .js .cw.is-in .halo, .js .cw.is-in .callout { opacity: 1; transition: opacity 0.9s ease 1s; }
.js .cw.is-in .dot { opacity: 1; transition: opacity 0.4s ease; transition-delay: calc(0.5s + var(--i, 0) * 70ms); }
.js .cw.is-in .pt { opacity: 1; transition: opacity 0.5s ease; transition-delay: calc(0.2s + var(--i, 0) * 18ms); }
.js .cw.is-in .lolli { opacity: 1; transition: opacity 0.4s ease; transition-delay: calc(0.5s + var(--i, 0) * 55ms); }
.js .cw.is-in .arc { opacity: 1; transition: opacity 0.7s ease; transition-delay: calc(var(--i, 0) * 160ms); }
.js .cw.is-in .lr-m u { transform: none; transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s; }
.js .cw.is-in .gt tbody tr { opacity: 1; transform: none; transition: opacity 0.5s ease, transform 0.5s ease; }
.js .cw.is-in .gt tbody tr:nth-child(2) { transition-delay: 0.1s; }
.js .cw.is-in .gt tbody tr:nth-child(3) { transition-delay: 0.2s; }
.js .cw.is-in .gt tbody tr:nth-child(4) { transition-delay: 0.3s; }
.js .cw.is-in .gt tbody tr:nth-child(5) { transition-delay: 0.4s; }
.js .cw[data-hot] .arc { transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) {
  .js .cw .bar, .js .cw .hbar, .js .cw .stem, .js .cw .lr-m u { transform: none; }
  .js .cw .ln { stroke-dashoffset: 0; }
  .js .cw .area, .js .cw .halo, .js .cw .callout, .js .cw .dot, .js .cw .pt, .js .cw .lolli, .js .cw .arc, .js .cw .gt tbody tr { opacity: 1; transform: none; }
}

@media (max-width: 1080px) {
  .cw { grid-column: span 12; }
  .cw-pay { grid-column: span 6; }
  .cw-sellers, .cw-lrev, .cw-growth { grid-column: span 12; }
  .cw-pay .cw-plot { flex-direction: row; justify-content: space-around; flex-wrap: wrap; }
  .cw-leg { width: auto; min-width: 240px; flex: 1; }
}
@media (max-width: 760px) {
  .charts { padding-top: 56px; }
  .cgrid { gap: 34px 0; margin-top: 40px; }
  .cw { grid-column: 1 / -1; }
  .cw-plot { padding: 2px 10px 8px; }
  .cw-foot { flex-direction: column; gap: 6px; }
  .cw-legend { display: none; }
  .lr { grid-template-columns: 1fr; }
  .cw-pay .cw-plot { flex-direction: column; }
  .cw-leg { width: 100%; }
}

/* ───────────────────────────────────────── как агент выбирает форму ── */
.shapes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--paper);
  overflow: hidden;
}
.shapes li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 18px 20px;
  border-left: 1px solid var(--line);
}
.shapes li:first-child {
  border-left: 0;
}
.shapes svg {
  width: 36px;
  height: 22px;
  margin-bottom: 6px;
  color: var(--indigo-ink);
}
.shapes li:nth-child(2) svg { color: #d97706; }
.shapes li:nth-child(3) svg { color: #0891b2; }
.shapes li:nth-child(4) svg { color: #16a34a; }
.shapes li:nth-child(5) svg { color: #db2777; }
.shapes li:nth-child(6) svg { color: #7c3aed; }
.shapes b {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 650;
}
.shapes span {
  color: var(--weak);
  font-size: 13px;
  line-height: 1.5;
}
@media (max-width: 1080px) {
  .shapes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shapes li:nth-child(4) { border-left: 0; }
  .shapes li:nth-child(n + 4) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .shapes { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; }
  .shapes li:nth-child(odd) { border-left: 0; }
  .shapes li:nth-child(4) { border-left: 1px solid var(--line); }
  .shapes li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ────────────────────────────────────────────────────────── сравнение ── */
.compare {
  padding-top: 64px;
}
.cmp {
  margin-top: 52px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--paper);
  overflow: hidden;
}
.cmp-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.cmp-row:first-child {
  border-top: 0;
}
.cmp-row > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px;
  border-left: 1px solid var(--line);
  color: var(--weak);
  font-size: 13px;
  line-height: 1.4;
}
.cmp-row > span:first-child {
  border-left: 0;
  justify-content: center;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 550;
}
.cmp-row > span b {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
}
.cmp-row > span b::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: center / 10px no-repeat;
}
.cmp-row > [data-v='y'] b::before {
  background-color: rgb(22 163 74 / 0.14);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='%2316a34a' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.cmp-row > [data-v='p'] b::before {
  background-color: rgb(217 119 6 / 0.14);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 12h12' fill='none' stroke='%23d97706' stroke-width='3.4' stroke-linecap='round'/></svg>");
}
.cmp-row > [data-v='n'] b::before {
  background-color: rgb(96 109 140 / 0.14);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='m7 7 10 10M17 7 7 17' fill='none' stroke='%23606d8c' stroke-width='3' stroke-linecap='round'/></svg>");
}
.cmp-row > [data-v='n'] b {
  color: var(--weak);
  font-weight: 550;
}
.cmp-head > span {
  align-items: center;
  flex-direction: row;
  gap: 8px;
  padding-top: 14px;
  padding-bottom: 14px;
  background: var(--mist);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 650;
}
.cmp-head > span:first-child {
  color: var(--weak);
  font-weight: 500;
}
.cmp-row > .is-us {
  background: linear-gradient(180deg, rgb(99 102 241 / 0.07), rgb(99 102 241 / 0.03));
  box-shadow: inset 1px 0 0 rgb(79 70 229 / 0.25), inset -1px 0 0 rgb(79 70 229 / 0.25);
}
.cmp-head > .is-us {
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}
.cmp-head > .is-us svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
@media (max-width: 860px) {
  .cmp-row { grid-template-columns: 1fr 1fr; }
  .cmp-row > span:first-child { grid-column: 1 / -1; padding-bottom: 6px; background: var(--mist); }
  .cmp-row > span:nth-child(2) { border-left: 0; }
  .cmp-head { display: none; }
  .cmp-row > span:nth-child(2)::before { content: 'Чат'; color: var(--faint); font: 500 11px/1 var(--mono); }
  .cmp-row > span:nth-child(3)::before { content: 'Панель BI'; color: var(--faint); font: 500 11px/1 var(--mono); }
  .cmp-row > span:nth-child(4)::before { content: 'Corvu'; color: var(--indigo-ink); font: 600 11px/1 var(--mono); }
  .cmp-row > span:nth-child(3) { border-left: 1px solid var(--line); }
  .cmp-row > span:nth-child(4) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); box-shadow: none; }
}

/* ───────────────────────────────────────────────────── кому нужно ── */
.who {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}
.who li {
  position: relative;
  padding: 24px 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--paper);
  color: var(--a);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.who li::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--a) 0%, transparent 68%);
  opacity: 0.08;
}
.who li:hover {
  transform: translateY(-3px);
  border-color: var(--a);
  box-shadow: var(--shadow-lift);
}
.who svg {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
}
.who h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.who p {
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}
@media (max-width: 1080px) { .who { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .who { grid-template-columns: 1fr; margin-top: 40px; } }
@media (prefers-reduced-motion: reduce) { .who li:hover { transform: none; } }

/* ──────────────────────────────────────────────────────────── вопросы ── */
.faq {
  padding-top: 112px;
}
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 40px 72px;
  align-items: start;
}
.faq-grid .head {
  position: sticky;
  top: 108px;
}
.faq-cta {
  margin-top: 26px;
}
.faq-list {
  border-top: 1px solid var(--line);
}
.qa {
  border-bottom: 1px solid var(--line);
}
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary svg {
  flex: none;
  width: 22px;
  height: 22px;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--weak);
  transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.qa summary:hover svg {
  border-color: var(--indigo-ink);
  color: var(--indigo-ink);
}
.qa[open] summary svg {
  transform: rotate(45deg);
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.qa p {
  max-width: 640px;
  padding: 0 44px 26px 4px;
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.7;
}
@media (max-width: 960px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .head { position: static; }
  .faq { padding-top: 72px; }
}

/* ─────────────────────────────────────────────── финал: созвездия ── */
.night-sky {
  position: absolute;
  right: 4%;
  top: 50%;
  z-index: -1;
  width: min(300px, 26vw);
  height: auto;
  color: #a5b4fc;
  opacity: 0.6;
  transform: translateY(-50%);
}
.night-sky-l {
  left: 3%;
  right: auto;
  width: min(210px, 18vw);
  opacity: 0.32;
  transform: translateY(-50%) scaleX(-1) rotate(24deg);
}
.night-sky-l :is(text) {
  display: none;
}
@media (max-width: 900px) {
  .night-sky { right: -60px; opacity: 0.32; width: 240px; }
  .night-sky-l { display: none; }
}

/* ────────────────────────────────────────────────────────── подвал ── */
.foot {
  margin-top: 0;
  background: var(--mist);
}
.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.7fr));
  gap: 40px;
  padding-top: 52px;
  padding-bottom: 44px;
}
.foot-brand p {
  max-width: 340px;
  margin-top: 14px;
  color: var(--weak);
  font-size: 14px;
  line-height: 1.65;
}
.foot-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.foot-col b {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}
.foot-col a {
  width: fit-content;
  color: var(--weak);
  font-size: 14px;
  transition: color 0.15s ease;
}
.foot-col a:hover {
  color: var(--ink);
}
.foot-bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 22px;
  border-top: 1px solid var(--line);
}
.foot-coords {
  color: var(--weak);
  font: 400 11.5px/1.4 var(--mono);
  letter-spacing: 0.02em;
}
@media (max-width: 860px) {
  .foot-top { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-coords { display: none; }
}

/* шапка: шесть ссылок не переносятся */
.nav-links a {
  white-space: nowrap;
}
@media (max-width: 1240px) {
  .nav-links { gap: 2px; }
  .nav-links a { padding-inline: 10px; }
}

.gt-b { white-space: nowrap; }
.gt td:nth-child(3) { white-space: nowrap; }

/* ── источники: десктоп — плавающие значки, телефон — лента ── */
@media (max-width: 760px) {
  .sources-desk { display: none; }
}
@media (min-width: 761px) {
  .sources-mob { display: none; }
}
.floaters {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 640px;
  margin-top: 24px;
}
.floaters-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.fi {
  position: absolute;
  display: block;
  will-change: transform;
}
.fi i {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgb(255 255 255 / 0.9);
  box-shadow: var(--shadow-lift);
  animation: fi-float var(--dur, 7s) ease-in-out var(--del, 0s) infinite;
}
.fi img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
@keyframes fi-float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(5px, -8px) rotate(4deg); }
  50% { transform: translate(0, 0) rotate(0deg); }
  75% { transform: translate(-5px, 8px) rotate(-4deg); }
}
.floaters-copy {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 0 16px;
  text-align: center;
}
.floaters-copy h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.floaters-copy p {
  margin-top: 18px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.6;
}
.floaters-copy .hero-cta {
  margin-top: 28px;
}
@media (max-width: 760px) {
  .fi i { width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 17px; }
  .fi img { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .fi i { animation: none; }
}

/* три метрики слева, одной колонкой */
.facts-grid { grid-template-columns: 1fr; }
.facts-grid .fx { border-left: 0; border-top: 1px solid var(--line); }
.facts-grid .fx:first-child { border-top: 0; }

/* ── фон героя: узор с логотипами ── */
/* ───────────────────────────────────────────── hero: тихий чертёж ── */
.hero-geo {
  position: absolute;
  inset: 0 0 auto 0;
  height: 900px;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.hero-geo > svg {
  width: 100%;
  height: 100%;
}

/* Одно доказательство под кнопкой: конкретное число, которое можно проверить. */
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin: 28px 0 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--weak);
  font-size: 13px;
  animation: hp-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1s both;
}
.hp-num {
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.hp-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px 2px 6px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--ink);
  font-size: 12px;
}
.hp-tag svg {
  width: 12px;
  height: 12px;
}
@keyframes hp-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
@media (max-width: 760px) {
  .hero-geo {
    opacity: 0.6;
  }
  .hero-proof {
    border-radius: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-proof {
    animation: none;
  }
}
.orbit-core {
  transition: opacity 0.3s ease;
}
.orbit.has-open .orbit-core {
  opacity: 0;
}
.orbit-x {
  width: 24px;
  height: 24px;
  margin: -4px -6px -4px 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: rgb(255 255 255 / 0.6);
  font-size: 18px;
  line-height: 24px;
  cursor: pointer;
}
.orbit-x:hover {
  background: rgb(255 255 255 / 0.1);
  color: #fff;
}



/* Одно доказательство под кнопкой: конкретное число, которое можно проверить. */
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin: 28px 0 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--weak);
  font-size: 13px;
  animation: hp-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1s both;
}
.hp-num {
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.hp-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px 2px 6px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--ink);
  font-size: 12px;
}
.hp-tag svg {
  width: 12px;
  height: 12px;
}
.hero-proof {
    border-radius: 18px;
  }
.hero-proof {
    animation: none;
  }
@keyframes hp-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* ── как Corvu отвечает: четыре шага с лучом ── */
/* ─────────────────────────────────────────────────── how (tracing beam) ── */
.beam-wrap {
  position: relative;
  margin-top: 64px;
  padding-left: 56px;
}
.beam {
  position: absolute;
  left: 11px;
  top: 0;
  width: 20px;
  height: 100%;
  overflow: visible;
}
.beam path {
  fill: none;
  stroke-width: 2;
}
.beam-track {
  stroke: var(--line);
}
/* Пройденная часть остаётся индиго — видно, сколько шагов уже позади. */
.beam-done {
  stroke: rgb(99 102 241 / 0.35);
}
.beam-light {
  stroke-width: 2.5;
}
.steps {
  display: grid;
  gap: 96px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: start;
}
.step-dot {
  position: absolute;
  left: -53px;
  top: 4px;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-2);
  border-radius: 99px;
  background: var(--paper);
  box-shadow: 0 1px 2px rgb(11 13 30 / 0.06);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.step-dot::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 99px;
  background: var(--line-2);
  transition: background 0.3s ease;
}
.step.is-on .step-dot {
  border-color: rgb(99 102 241 / 0.5);
  box-shadow: 0 0 0 5px rgb(99 102 241 / 0.12);
}
.step.is-on .step-dot::after {
  background: var(--indigo);
}
.step-n {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.step h3 {
  margin-top: 14px;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.step-copy p {
  margin-top: 12px;
  font-size: 16px;
}
/* Подпись шага едет рядом со своим кадром, пока кадр высокий: пустота под
   текстом становится полем, по которому он скользит. */
.step-copy {
  position: relative;
}
@media (min-width: 1081px) {
  .step-copy {
    position: sticky;
    top: 112px;
  }
}
.shot-narrow {
  max-width: 420px;
}

.shot {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--night);
  box-shadow: 0 0 0 1px rgb(11 13 30 / 0.08), 0 18px 40px -20px rgb(8 8 19 / 0.5);
}
.shot img {
  width: 100%;
}

/* ── «Как Corvu отвечает»: телефон — один столбец, шаги с картинкой под текстом ── */
@media (max-width: 860px) {
  .beam-wrap { padding-left: 0; margin-top: 36px; }
  .beam { display: none; }
  .steps { gap: 52px; }
  .step { grid-template-columns: 1fr; gap: 22px; }
  .step-dot { display: none; }
  .step-copy { position: static; }
  .step h3 { font-size: 22px; }
  .shot-narrow { max-width: 100%; }
}

/* ── фон героя: на телефоне узор виден целиком ── */
@media (max-width: 760px) {
  .hero-geo { opacity: 1; }
}
@media (max-width: 760px) {
  .hero-geo path, .hero-geo circle { stroke-width: 1.4; }
}

/* «Как Corvu отвечает»: кадр — шире, подпись — уже; средние кадры не растягиваются на всю колонку */
@media (min-width: 1081px) {
  .step { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
}
.shot-mid { max-width: 600px; }

/* ═══ «Как Corvu отвечает»: живые окна вместо картинок ═══ */
.wd {
  position: relative;
  width: 100%;
  border: 1px solid #1d2140;
  border-radius: var(--r-win);
  background: radial-gradient(120% 70% at 50% -10%, #13173c 0%, #0b0c19 58%), #0b0c19;
  color: var(--steel);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.05) inset, 0 28px 56px -30px rgb(11 13 30 / 0.55), 0 2px 8px -2px rgb(11 13 30 / 0.2);
}
.wd-tab {
  position: absolute;
  left: 18px;
  top: -13px;
  z-index: 2;
  padding: 4px 11px;
  border: 1px solid #232845;
  border-radius: 7px 7px 0 0;
  background: #0b0c19;
  color: #c7d2fe;
  font: 500 11px/1.2 var(--mono);
  letter-spacing: 0.04em;
}
.wd-tab::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: #0b0c19;
}
.wd-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 16px 20px 6px;
}
.wd-bar .dots { display: inline-flex; gap: 5px; }
.wd-bar .dots i { width: 8px; height: 8px; border-radius: 50%; background: #232845; }
.wd-bar h4 {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: #f3f5ff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.wd-id, .wd-meta {
  color: #7f8aae;
  font: 400 11.5px/1 var(--mono);
  white-space: nowrap;
}
.wd-body { padding: 8px 20px 22px; }
.wd-k {
  margin: 0 0 6px;
  color: #6f7cab;
  font: 500 11px/1.2 var(--mono);
  letter-spacing: 0.04em;
}
.wd i { font-style: normal; }
.wd .f { color: #22d3ee; }
.wd .k { color: #818cf8; }
.wd .v { color: #eef1ff; }

/* — определение — */
.wd-desc { color: #b4bfe0; font-size: 14px; line-height: 1.55; margin: 6px 0 14px; }
.wd-code {
  padding: 12px 14px;
  border: 1px solid #232a55;
  border-radius: 10px;
  background: rgb(15 18 48 / 0.7);
}
.wd-code pre, .wd-sql { margin: 0; overflow-x: auto; }
.wd-code code { font: 500 15px/1.5 var(--mono); color: #cdd6f4; white-space: pre; }
.wd-rows { display: grid; gap: 2px; margin: 14px 0 0; }
.wd-rows > div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid #171b38;
}
.wd-rows dt { color: #6f7cab; font: 500 11.5px/1.7 var(--mono); }
.wd-rows dd { margin: 0; color: #cbd5f5; font: 400 12.5px/1.6 var(--mono); overflow-wrap: anywhere; }
.wd-rows dd em {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 6px;
  background: rgb(129 140 248 / 0.14);
  color: #c7d2fe;
  font-style: normal;
}
.wd-foot {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 0;
  color: #8e99bd;
  font-size: 12.5px;
  line-height: 1.5;
}
.wd-foot svg { flex: none; width: 15px; height: 15px; margin-top: 2px; color: #34d399; }

/* — ход ответа — */
.wd-replay {
  padding: 5px 11px;
  border: 1px solid #2b3366;
  border-radius: 999px;
  background: transparent;
  color: #a5b4fc;
  font: 500 11.5px/1 var(--sans);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.wd-replay:hover { background: #171c4a; color: #fff; }
.wd-q {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 14px;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgb(255 255 255 / 0.04);
  color: #f1f4ff;
  font-size: 15px;
  line-height: 1.4;
}
.wd-q span {
  flex: none;
  padding: 2px 8px;
  border: 1px solid #2b3366;
  border-radius: 999px;
  color: #a5b4fc;
  font-size: 11px;
}
.wd-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.wd-steps li {
  display: grid;
  grid-template-columns: 18px auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 2px;
  border-top: 1px solid #171b38;
  color: #cdd6f4;
  font-size: 13.5px;
}
.wd-steps svg { width: 16px; height: 16px; color: #7c86d6; }
.wd-steps b { font-weight: 550; white-space: nowrap; }
.wd-steps code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #8e99bd;
  font: 400 12px/1.4 var(--mono);
}
.wd-steps em { color: #6f7cab; font: 400 11.5px/1 var(--mono); font-style: normal; white-space: nowrap; }
.wd-done {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 14px 0 0;
  padding: 11px 14px;
  border: 1px solid rgb(52 211 153 / 0.28);
  border-radius: 10px;
  background: rgb(52 211 153 / 0.08);
  color: #a7f3d0;
  font-size: 13.5px;
}
.wd-done svg { width: 16px; height: 16px; color: #34d399; }
.wd-done b { color: #fff; font-variant-numeric: tabular-nums; }

/* — документ — */
.wd-meta { margin-left: auto; }
.wd-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.wd-tiles > div {
  position: relative;
  padding: 13px 14px 12px;
  border: 1px solid #1a1e3a;
  border-radius: 10px;
  background: rgb(255 255 255 / 0.035);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.wd-tiles > div:hover { border-color: #2f3a8a; background: rgb(129 140 248 / 0.08); }
.wd-tiles small { display: block; color: #8e99bd; font-size: 12px; }
.wd-tiles b {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.wd-tiles .is-watch::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #fbbf24;
}
.wd-chart { margin: 16px 0 0; }
.wd-chart svg { display: block; width: 100%; height: auto; }
.wd-chart .b { fill: #6366f1; fill-opacity: 0.55; }
.wd-chart .b.is-hi { fill: #c7d2fe; fill-opacity: 1; }
.wd-chart .t { fill: #6f7cab; font: 400 5.2px/1 var(--mono); }
.wd-chart figcaption { margin-top: 6px; color: #6f7cab; font: 400 11.5px/1.4 var(--mono); }
.wd-text { margin: 14px 0 0; color: #c4cdee; font-size: 14.5px; line-height: 1.6; }
.wd-num {
  padding: 0 1px;
  border: 0;
  border-bottom: 1.5px dashed #22d3ee;
  background: none;
  color: #67e8f9;
  font: inherit;
  font-weight: 600;
  cursor: default;
}

/* — паспорт — */
.wd-big {
  display: block;
  width: 100%;
  padding: 14px 16px 12px;
  border: 1px solid #2b3366;
  border-radius: 12px;
  background: rgb(129 140 248 / 0.07);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.wd-big:hover { border-color: #4f5bd5; background: rgb(129 140 248 / 0.12); }
.wd-big small { display: block; color: #9aa6c7; font-size: 12.5px; }
.wd-big b { display: block; margin: 2px 0; color: #fff; font-size: 42px; font-weight: 650; letter-spacing: -0.035em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.wd-big span { color: #7c86d6; font: 400 11.5px/1 var(--mono); }
.wd-big span::after { content: ' ▾'; }
.wd-pass.is-open .wd-big span::after { content: ' ▴'; }
.wd-panel {
  display: grid;
  gap: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s ease, opacity 0.3s ease, margin 0.3s ease;
}
.wd-pass.is-open .wd-panel { max-height: 700px; opacity: 1; margin-top: 16px; }
.wd-sql {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #232a55;
  border-radius: 10px;
  background: rgb(15 18 48 / 0.7);
}
.wd-sql code { font: 400 12.5px/1.7 var(--mono); color: #cdd6f4; white-space: pre; }
.wd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.wd-chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 9px;
  border: 1px solid #232a55;
  border-radius: 999px;
  color: #e6ebff;
  font-size: 12.5px;
}
.wd-chips svg { width: 13px; height: 13px; color: #34d399; }
.wd-chips em { color: #6ee7b7; font-size: 11.5px; font-style: normal; }
.wd-meta2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.wd-meta2 dt { color: #6f7cab; font: 500 11px/1.2 var(--mono); }
.wd-meta2 dd { margin: 3px 0 0; color: #dbe2ff; font-size: 13px; }

/* появление: один раз, при входе в кадр */
.js .wd-def .wd-code, .js .wd-def .wd-rows > div, .js .wd-def .wd-foot,
.js .wd-doc .wd-tiles > div, .js .wd-doc .wd-chart, .js .wd-doc .wd-text { opacity: 0; transform: translateY(8px); }
.js .wd-doc .wd-chart .b { transform: scaleY(0); transform-box: fill-box; transform-origin: 50% 100%; }
.js .wd-log .wd-steps li, .js .wd-log .wd-done { opacity: 0; transform: translateX(-8px); }
.js .wd.is-in .wd-code, .js .wd.is-in .wd-rows > div, .js .wd.is-in .wd-foot,
.js .wd.is-in .wd-tiles > div, .js .wd.is-in .wd-chart, .js .wd.is-in .wd-text {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.2s ease, background 0.2s ease;
}
.js .wd.is-in .wd-rows > div:nth-child(1) { transition-delay: 0.25s; }
.js .wd.is-in .wd-rows > div:nth-child(2) { transition-delay: 0.4s; }
.js .wd.is-in .wd-rows > div:nth-child(3) { transition-delay: 0.55s; }
.js .wd.is-in .wd-rows > div:nth-child(4) { transition-delay: 0.7s; }
.js .wd.is-in .wd-foot { transition-delay: 0.9s; }
.js .wd.is-in .wd-tiles > div:nth-child(2) { transition-delay: 0.1s; }
.js .wd.is-in .wd-tiles > div:nth-child(3) { transition-delay: 0.2s; }
.js .wd.is-in .wd-tiles > div:nth-child(4) { transition-delay: 0.3s; }
.js .wd.is-in .wd-chart { transition-delay: 0.45s; }
.js .wd.is-in .wd-text { transition-delay: 1.3s; }
.js .wd-doc.is-in .wd-chart .b { transform: none; transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: calc(0.55s + var(--i, 0) * 45ms); }
.js .wd-log.is-in .wd-steps li { animation: wd-in 0.45s ease forwards; animation-delay: calc(var(--d) * 0.5s + 0.2s); }
.js .wd-log.is-in .wd-done { animation: wd-in 0.5s ease forwards; animation-delay: 3.4s; }
@keyframes wd-in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .js .wd * { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
  .js .wd-pass:not(.is-open) .wd-panel { opacity: 0 !important; }
}

/* телефон: окна дышат, строки не рвутся */
@media (max-width: 560px) {
  .wd-bar { padding: 14px 14px 4px; gap: 8px; }
  .wd-bar .dots { display: none; }
  .wd-meta, .wd-id { font-size: 10.5px; }
  .wd-meta { display: none; }
  .wd-body { padding: 6px 14px 16px; }
  .wd-code code { font-size: 12.5px; }
  .wd-rows > div { grid-template-columns: 1fr; gap: 2px; }
  .wd-steps li { grid-template-columns: 18px minmax(0, 1fr) auto; row-gap: 2px; }
  .wd-steps code { grid-column: 2 / -1; grid-row: 2; }
  .wd-tiles { gap: 8px; }
  .wd-tiles > div { padding: 11px 12px 10px; }
  .wd-tiles b { font-size: 19px; }
  .wd-big b { font-size: 36px; }
  .wd-sql code { font-size: 11.5px; }
  .wd-meta2 { grid-template-columns: 1fr; gap: 8px; }
}

/* ─────────────────────────────────────────────────────────────── цены ── */
.pricing {
  padding-top: 112px;
}
.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 52px;
}
.plan {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--paper);
}
.plan h3 {
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.plan-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 14px 0 0;
}
.plan-price b {
  color: var(--ink);
  font-size: 34px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.plan-price span {
  color: var(--weak);
  font-size: 13px;
}
.plan-for {
  min-height: 3.2em;
  margin: 14px 0 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}
.plan-group {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.plan-group h4 {
  margin: 0 0 8px;
  color: var(--weak);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.plan-group dl {
  margin: 0;
}
.plan-group dl > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  padding: 5px 0;
  font-size: 14px;
}
.plan-group dt {
  color: var(--text);
}
.plan-group dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}
.plan .btn {
  width: 100%;
  margin-top: auto;
}
.plan-group + .plan-group {
  margin-bottom: 22px;
}
.plans-note {
  max-width: 760px;
  margin: 20px auto 0;
  color: var(--weak);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}
.plans + .plans-note {
  margin-top: 28px;
}
@media (max-width: 1080px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .plans { grid-template-columns: 1fr; margin-top: 40px; }
  .pricing { padding-top: 72px; }
  .plan-for { min-height: 0; }
}

/* Переключатель языка в шапке: две буквы, без рамки, чтобы не спорить с кнопкой входа. */
.nav-lang {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--text);
  opacity: 0.75;
}
.nav-lang:hover {
  opacity: 1;
}
