/**
 * NUM2BEST — единые стили (без Bootstrap).
 * Фон: лёгкий SVG-паттерн (квадрат Пифагора / цифры).
 */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --bg-deep: #14101f;
  --bg-mid: #1f1630;
  --card: rgba(28, 22, 42, 0.78);
  --card-solid: #1e1830;
  --border: rgba(196, 181, 253, 0.35);
  --text: #f3e8ff;
  --muted: #b9a3d4;
  --accent: #c084fc;
  --accent2: #f472b6;
  --radius: 18px;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  --font: 'Nunito', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.55;
}

/* ---------- Фон: цифры + сетка 3×3 (Пифагор), один мелкий SVG на весь экран ---------- */
.nx-stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-color: #0a0612;
  /* SVG снизу, полупрозрачный градиент сверху — иначе цифры/сетка не видны */
  background-image:
    linear-gradient(155deg, rgba(26, 16, 48, 0.42) 0%, rgba(12, 6, 20, 0.58) 50%, rgba(18, 10, 32, 0.52) 100%),
    url('../img/bg-numerology.svg');
  background-size: auto, 168px 168px;
  background-repeat: no-repeat, repeat;
  background-position: center, 0 0;
}

/* Лёгкий «шум» линиями — только градиенты, без лишних DOM */
.nx-stars::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    repeating-linear-gradient(
      -18deg,
      transparent 0,
      transparent 11px,
      rgba(196, 181, 253, 0.04) 11px,
      rgba(196, 181, 253, 0.04) 12px
    ),
    repeating-linear-gradient(
      72deg,
      transparent 0,
      transparent 19px,
      rgba(244, 114, 182, 0.03) 19px,
      rgba(244, 114, 182, 0.03) 20px
    );
  animation: nx-math-drift 180s linear infinite;
}

.nx-stars::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 85% 65% at 50% 18%, rgba(168, 85, 247, 0.12), transparent 58%);
  pointer-events: none;
}

@keyframes nx-math-drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-36px, 24px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nx-stars::before {
    animation: none;
  }
}

/* ---------- Каркас страниц ---------- */
.site-wrap {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 1rem 1.1rem 3rem;
  overflow-x: hidden;
  box-sizing: border-box;
  width: 100%;
}

.site-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
  background: rgba(15, 10, 24, 0.75);
  border-bottom: 1px solid var(--border);
}

.site-topbar-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0.55rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.site-brand {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.site-brand span {
  color: var(--accent);
  font-weight: 700;
}

/* Форма бизнеса: скрытые поля не занимают место, кнопка всегда видна */
.biz-form .biz-hidden {
  display: none;
}

.biz-form .biz-visible label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.biz-form .biz-actions {
  margin-top: 1rem;
}

.biz-form .biz-submit {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1.02rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
  background: rgba(192, 132, 252, 0.15);
}

/* ---------- Мобильное меню (бургер): site-topbar + nx-topbar ---------- */
body.app-nav-open {
  overflow: hidden;
}

.site-topbar-inner.app-topbar-row,
.nx-topbar-inner.app-topbar-row {
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
}

.app-nav-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.app-nav-toggle:hover {
  background: rgba(192, 132, 252, 0.12);
}

.app-nav-toggle:focus-visible {
  outline: 2px solid rgba(192, 132, 252, 0.55);
  outline-offset: 2px;
}

.app-nav-toggle-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 1.15rem;
  height: 1rem;
}

.app-nav-bar {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}

@media (min-width: 720px) {
  .app-nav-toggle {
    display: none !important;
  }

  .app-nav-panel.site-nav,
  .app-nav-panel.nx-nav {
    position: static !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    width: auto !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    overflow: visible !important;
  }
}

@media (max-width: 719px) {
  .app-nav-toggle {
    display: flex;
  }

  .app-nav-panel.site-nav,
  .app-nav-panel.nx-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 3.35rem;
    z-index: 25;
    margin: 0;
    padding: 0.85rem 1rem 1.25rem;
    max-height: calc(100vh - 3.5rem - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.35rem;
    background: rgba(10, 6, 18, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    transform: translateY(-102%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.2s ease, visibility 0.2s;
  }

  .app-nav-panel.site-nav.is-open,
  .app-nav-panel.nx-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .app-nav-panel.site-nav a,
  .app-nav-panel.nx-nav a {
    text-align: center;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
  }
}

.site-hero {
  text-align: center;
  padding: 1.25rem 0 0.5rem;
}

.site-hero h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
}

.site-hero p {
  margin: 0 auto;
  max-width: 32rem;
  color: var(--muted);
  font-size: 0.98rem;
  padding: 0 0.25rem;
  box-sizing: border-box;
  width: 100%;
  overflow-wrap: break-word;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.25rem;
}

.card h2,
.card .h2 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.02rem;
  color: var(--muted);
  font-weight: 700;
}

.page-report .report-body {
  padding-top: 0.35rem;
}

.nx-report-age-h3 {
  margin: 1rem 0 0.65rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.report-h2 {
  font-size: 1.15rem;
  margin: 0 0 1rem;
  color: var(--text);
}

.report-data-embed#graphdata {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.report-data-embed#birthdata {
  color: var(--muted);
  font-weight: 600;
}

/* ---------- number.php: линии матрицы 1–9 (карточки + шкала) ---------- */
.nx-matrix-report {
  margin: 1.75rem 0;
  padding: 0;
  overflow: visible;
}

/* Сводная таблица (суперталанты / таланты / недостатки / биоритмы) внизу number.php */
.nx-compat-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.88rem;
  color: var(--text);
  background: rgba(20, 14, 32, 0.55);
}

.nx-compat-table th,
.nx-compat-table td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.55rem;
  vertical-align: top;
  overflow-wrap: break-word;
}

.nx-compat-table th {
  background: rgba(40, 28, 62, 0.65);
  font-weight: 700;
}

/* Мобильная вёрстка: столбцы таблицы «Сотрудник» идут друг под другом (колонка = заголовок + все строки). */
@media (max-width: 720px) {
  .nx-compat-table.nx-compat-table--stack {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    border: none;
    margin-inline: 0;
  }

  .nx-compat-table.nx-compat-table--stack tbody {
    display: contents;
  }

  .nx-compat-table.nx-compat-table--stack tr {
    display: contents;
  }

  .nx-compat-table.nx-compat-table--stack td {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 0 0.45rem;
    border-radius: 8px;
    background: rgba(20, 14, 32, 0.72);
  }

  /* row-major DOM → column-major: order = col * nrows + row (ncols = 5) */
  .nx-compat-table--r2 td:nth-child(1) { order: 0; }
  .nx-compat-table--r2 td:nth-child(2) { order: 2; }
  .nx-compat-table--r2 td:nth-child(3) { order: 4; }
  .nx-compat-table--r2 td:nth-child(4) { order: 6; }
  .nx-compat-table--r2 td:nth-child(5) { order: 8; }
  .nx-compat-table--r2 td:nth-child(6) { order: 1; }
  .nx-compat-table--r2 td:nth-child(7) { order: 3; }
  .nx-compat-table--r2 td:nth-child(8) { order: 5; }
  .nx-compat-table--r2 td:nth-child(9) { order: 7; }
  .nx-compat-table--r2 td:nth-child(10) { order: 9; }

  .nx-compat-table--r4 td:nth-child(1) { order: 0; }
  .nx-compat-table--r4 td:nth-child(2) { order: 4; }
  .nx-compat-table--r4 td:nth-child(3) { order: 8; }
  .nx-compat-table--r4 td:nth-child(4) { order: 12; }
  .nx-compat-table--r4 td:nth-child(5) { order: 16; }
  .nx-compat-table--r4 td:nth-child(6) { order: 1; }
  .nx-compat-table--r4 td:nth-child(7) { order: 5; }
  .nx-compat-table--r4 td:nth-child(8) { order: 9; }
  .nx-compat-table--r4 td:nth-child(9) { order: 13; }
  .nx-compat-table--r4 td:nth-child(10) { order: 17; }
  .nx-compat-table--r4 td:nth-child(11) { order: 2; }
  .nx-compat-table--r4 td:nth-child(12) { order: 6; }
  .nx-compat-table--r4 td:nth-child(13) { order: 10; }
  .nx-compat-table--r4 td:nth-child(14) { order: 14; }
  .nx-compat-table--r4 td:nth-child(15) { order: 18; }
  .nx-compat-table--r4 td:nth-child(16) { order: 3; }
  .nx-compat-table--r4 td:nth-child(17) { order: 7; }
  .nx-compat-table--r4 td:nth-child(18) { order: 11; }
  .nx-compat-table--r4 td:nth-child(19) { order: 15; }
  .nx-compat-table--r4 td:nth-child(20) { order: 19; }

  .nx-compat-table.nx-compat-table--stack td:first-child {
    margin-top: 0;
  }

  .nx-compat-table.nx-compat-table--stack tr:first-child td {
    font-weight: 700;
    background: rgba(40, 28, 62, 0.75);
  }
}

@media (min-width: 721px) {
  .nx-compat-table.nx-compat-table--stack {
    display: table;
    border-collapse: collapse;
  }

  .nx-compat-table.nx-compat-table--stack tbody,
  .nx-compat-table.nx-compat-table--stack tr {
    display: table-row;
  }

  .nx-compat-table.nx-compat-table--stack td {
    display: table-cell;
    order: unset;
    margin: 0;
    border-radius: 0;
    background: transparent;
  }

  .nx-compat-table.nx-compat-table--stack tr:first-child td {
    font-weight: inherit;
    background: transparent;
  }
}

.nx-matrix-h2 {
  font-size: 1.28rem;
  margin: 0 0 0.45rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nx-matrix-lead {
  margin: 0 0 1.2rem;
  font-size: 0.91rem;
  line-height: 1.55;
  max-width: 42rem;
}

.nx-mcard-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  overflow: visible;
}

.nx-mcard-cell {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: min-content;
}

@media (min-width: 560px) {
  .nx-mcard-grid {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .nx-mcard-cell {
    flex: 1 1 calc(50% - 0.5rem);
    max-width: calc(50% - 0.5rem);
  }
}

@media (min-width: 900px) {
  .nx-mcard-cell {
    flex: 1 1 calc(33.333% - 0.67rem);
    max-width: calc(33.333% - 0.67rem);
  }
}

.nx-mcard {
  --nx-int: 0;
  --nx-ideal-pct: 50%;
  --nx-mark-pct: 50%;
  position: relative;
  border-radius: var(--radius);
  padding: 1.05rem 1.15rem 1.15rem;
  background: linear-gradient(165deg, rgba(32, 22, 52, 0.92), rgba(14, 10, 24, 0.96));
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: visible;
  min-height: 7.5rem;
  /* overflow:hidden + height:100% во flex обрезали длинные тексты (линия 1 «энергия жизни») */
}

.nx-mcard::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  opacity: calc(0.35 + 0.55 * var(--nx-int));
  pointer-events: none;
}

.nx-mcard--low::before {
  background: linear-gradient(90deg, hsl(0 90% 58%), hsl(350 85% 52%));
}

.nx-mcard--ok::before {
  background: linear-gradient(90deg, rgba(167, 139, 250, 0.5), rgba(52, 211, 153, 0.65));
  opacity: 0.55;
}

.nx-mcard--high::before {
  background: linear-gradient(90deg, hsl(152 76% 42%), hsl(142 70% 48%));
}

.nx-mcard--low {
  border-color: hsla(0, 82%, 58%, calc(0.28 + 0.5 * var(--nx-int)));
  box-shadow: 0 12px 40px hsla(0, 85%, 35%, calc(0.12 + 0.2 * var(--nx-int)));
}

.nx-mcard--ok {
  border-color: rgba(167, 139, 250, 0.45);
}

.nx-mcard--high {
  border-color: hsla(152, 72%, 46%, calc(0.3 + 0.45 * var(--nx-int)));
  box-shadow: 0 12px 40px hsla(152, 70%, 32%, calc(0.1 + 0.18 * var(--nx-int)));
}

.nx-mcard-top {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 0.65rem;
}

.nx-mcard-digit {
  flex-shrink: 0;
  width: 3.1rem;
  height: 3.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(192, 132, 252, 0.22), rgba(244, 114, 182, 0.12));
  border: 1px solid rgba(196, 181, 253, 0.35);
  color: var(--text);
}

.nx-mcard-head {
  flex: 1;
  min-width: 0;
}

.nx-mcard-title {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.nx-mcard-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.nx-mcard--low .nx-mcard-badge {
  color: hsl(0 100% 88%);
  background: hsla(0, 75%, 40%, calc(0.25 + 0.35 * var(--nx-int)));
}

.nx-mcard--ok .nx-mcard-badge {
  color: #d9f99d;
  background: rgba(52, 211, 153, 0.18);
}

.nx-mcard--high .nx-mcard-badge {
  color: #bbf7d0;
  background: hsla(152, 60%, 32%, calc(0.35 + 0.3 * var(--nx-int)));
}

.nx-mcard-count {
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.nx-mcard-val {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text);
  margin-right: 0.15rem;
  vertical-align: middle;
}

.nx-mcard--low .nx-mcard-val {
  color: hsl(0 100% 92%);
}

.nx-mcard--high .nx-mcard-val {
  color: hsl(152 90% 82%);
}

.nx-mcard--ok .nx-mcard-val {
  color: #f5f3ff;
}

.nx-mcard-count-lbl {
  vertical-align: middle;
}

.nx-mcard-scale {
  margin-bottom: 0.85rem;
}

.nx-mtrack {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    hsl(0 72% 38% / 0.75) 0%,
    rgba(45, 30, 70, 0.55) var(--nx-ideal-pct),
    hsl(152 65% 36% / 0.75) 100%
  );
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}

.nx-mideal {
  position: absolute;
  top: -5px;
  bottom: -5px;
  width: 3px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
  z-index: 1;
}

.nx-mmark {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  margin-top: -8px;
  border-radius: 50%;
  background: linear-gradient(145deg, #faf5ff, #e9d5ff);
  border: 2px solid rgba(30, 15, 40, 0.85);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.nx-mticks {
  position: relative;
  height: 1.15rem;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}

/* Совпадает с left у .nx-mideal / .nx-mmark на .nx-mtrack — не space-between */
.nx-mtick {
  position: absolute;
  top: 0;
  line-height: 1.2;
  white-space: nowrap;
}

.nx-mtick--start {
  left: 0;
  transform: translateX(0);
}

.nx-mtick--end {
  left: 100%;
  transform: translateX(-100%);
  text-align: right;
}

.nx-mtick-ideal {
  left: var(--nx-ideal-pct);
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
}

.nx-mcard-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(243, 232, 255, 0.88);
  overflow-wrap: break-word;
  overflow: visible;
  max-height: none;
}

.nx-mcard-text font {
  color: inherit;
}

.nx-mcard--prorabotka-focus {
  border-color: rgba(250, 204, 21, 0.5);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(250, 204, 21, 0.32);
}

.nx-mcard-prorabotka {
  margin-top: 0.85rem;
  padding: 0.65rem 0.78rem 0.72rem;
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(62, 42, 18, 0.55), rgba(22, 14, 38, 0.92));
  border: 1px solid rgba(250, 204, 21, 0.42);
}

.nx-mcard-prorabotka-h {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
}

.nx-mcard-prorabotka-label {
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(253, 224, 200, 0.78);
}

.nx-mcard-prorabotka-kw {
  font-size: 1.06rem;
  font-weight: 800;
  color: #fde68a;
  letter-spacing: 0.01em;
}

.nx-mcard-prorabotka-detail {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
}

.nx-matrix-pm-card {
  margin-top: 1rem;
  padding: 0.72rem 1rem 0.8rem;
  border-radius: var(--radius);
  background: rgba(22, 16, 38, 0.88);
  border: 1px solid rgba(250, 204, 21, 0.38);
  max-width: 42rem;
}

.nx-matrix-pm-title {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(253, 224, 200, 0.82);
}

.nx-matrix-pm-kw {
  font-size: 1.02rem;
  font-weight: 800;
  color: #fde68a;
}

.nx-matrix-pm-detail {
  margin-top: 0.35rem;
  font-size: 0.86rem;
  line-height: 1.45;
}

.nx-bio-chart-wrap {
  margin: 1.5rem 0 2rem;
  padding: 1rem 1rem 0.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(28, 18, 46, 0.94), rgba(10, 8, 20, 0.9));
  box-shadow: var(--shadow);
}

.nx-bio-chart-title {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.nx-bio-chart-note {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 48rem;
}

.nx-mcard-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.nx-prorabotka-accent {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fde68a;
  letter-spacing: 0.01em;
}

.nx-prorabotka-detail {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.95rem;
}

.nx-supertalent-wrap {
  margin: 1.75rem 0 2rem;
  padding: 1.35rem 1.25rem 1.5rem;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(250, 204, 21, 0.45);
  background: linear-gradient(155deg, rgba(55, 35, 20, 0.55), rgba(18, 12, 32, 0.92));
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(244, 114, 182, 0.12);
}

.nx-supertalent-h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fef3c7;
}

.nx-supertalent-grid {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

@media (min-width: 720px) {
  .nx-supertalent-grid {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .nx-supertalent-card {
    flex: 1 1 calc(33.333% - 0.75rem);
    min-width: 220px;
  }
}

.nx-supertalent-card {
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.2rem;
  background: linear-gradient(165deg, rgba(36, 22, 52, 0.92), rgba(12, 8, 22, 0.96));
  border: 1px solid rgba(196, 181, 253, 0.4);
  box-shadow: var(--shadow);
}

.nx-supertalent-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.nx-supertalent-digit {
  flex-shrink: 0;
  min-width: 3.5rem;
  padding: 0.35rem 0.55rem;
  text-align: center;
  font-size: 1.85rem;
  font-weight: 800;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(250, 204, 21, 0.35), rgba(244, 114, 182, 0.2));
  border: 1px solid rgba(250, 204, 21, 0.5);
  color: #fffbeb;
}

.nx-supertalent-caption {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(243, 232, 255, 0.88);
  line-height: 1.3;
}

.nx-supertalent-body {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(243, 232, 255, 0.9);
}

.nx-experience-wrap {
  margin: 1.5rem 0 1.75rem;
  padding: 1.15rem 1.15rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(28, 22, 48, 0.92), rgba(10, 8, 20, 0.94));
  box-shadow: var(--shadow);
}

.nx-experience-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem 1rem;
  margin-bottom: 0.85rem;
}

.nx-experience-h2 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text);
}

.nx-experience-count {
  font-size: 1.65rem;
  font-weight: 800;
  color: #a5f3fc;
  line-height: 1;
}

.nx-experience-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .nx-experience-row {
    flex-direction: row;
    align-items: stretch;
  }

  .nx-experience-text {
    flex: 1 1 58%;
  }

  .nx-experience-art {
    flex: 1 1 38%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.nx-experience-text {
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(243, 232, 255, 0.9);
}

.nx-experience-svg {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
}

.nx-name-section {
  margin: 2rem 0 1.5rem;
  padding: 1.15rem 1.15rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(28, 22, 48, 0.88), rgba(12, 10, 24, 0.94));
  box-shadow: var(--shadow);
}

.nx-name-h2 {
  margin: 0 0 0.35rem;
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--text);
}

.nx-name-lead {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  max-width: 40rem;
}

.nx-name-card-row {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

@media (min-width: 560px) {
  .nx-name-card-row {
    flex-direction: row;
    align-items: stretch;
  }
}

.nx-name-digit-card {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 7rem;
  padding: 0.85rem 0.65rem;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(192, 132, 252, 0.22), rgba(244, 114, 182, 0.12));
  border: 1px solid rgba(196, 181, 253, 0.4);
}

.nx-name-digit {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1;
  color: #f5f3ff;
}

.nx-name-digit-lbl {
  margin-top: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.nx-name-text-card {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(167, 139, 250, 0.2);
}

.nx-name-interpret {
  font-size: 0.92rem;
  line-height: 1.55;
}

.nx-name-letters {
  margin-top: 0.85rem;
  line-height: 1.45;
  font-size: 0.88rem;
  color: rgba(243, 232, 255, 0.82);
}

.nx-bio-chart-canvas {
  position: relative;
  width: 100%;
  overflow-x: auto;
}

.nx-bio-antic-tooltip {
  position: absolute;
  z-index: 6;
  max-width: min(280px, 92vw);
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  line-height: 1.45;
  font-weight: 500;
  color: rgba(250, 250, 255, 0.96);
  background: rgba(18, 12, 32, 0.94);
  border: 1px solid rgba(167, 139, 250, 0.45);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease, visibility 0.12s ease;
}

.nx-bio-antic-tooltip.nx-bio-antic-tooltip--visible {
  opacity: 1;
  visibility: visible;
}

.nx-bio-today-wrap {
  margin: 1.25rem 0 1.75rem;
  padding: 1rem 1rem 0.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(28, 18, 46, 0.94), rgba(10, 8, 20, 0.9));
  box-shadow: var(--shadow);
}

.nx-bio-today-title {
  margin: 0 0 0.65rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.nx-bio-today-canvas {
  position: relative;
  width: 100%;
  min-height: 280px;
  padding-bottom: 0.5rem;
  overflow-x: auto;
}

.nx-bio-today-canvas--svg {
  min-height: 0;
}

.nx-bio-today-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(360px, 55vh);
}

@media (max-width: 480px) {
  .nx-mcard-val {
    font-size: 1.55rem;
  }

  .nx-mcard-digit {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.45rem;
  }
}

.form-grid {
  max-width: 100%;
}

.form-grid .form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.2rem;
}

.form-grid .form-row--stack .field-hint {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
}

.form-grid .form-row--actions {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.biz-report-intro {
  margin-bottom: 1.25rem;
}

.form-grid label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.form-grid input[type='text'],
.form-grid input[type='date'],
.form-grid input[type='tel'],
.form-grid select {
  width: 100%;
  max-width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(10, 6, 20, 0.55);
  color: var(--text);
  font: inherit;
  margin-bottom: 0.85rem;
}

.form-grid input:focus,
.form-grid select:focus {
  outline: 2px solid rgba(192, 132, 252, 0.45);
  outline-offset: 1px;
}

.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  color: #1a0a2e;
  background: linear-gradient(135deg, #e9d5ff, #fbcfe8);
  box-shadow: 0 8px 28px rgba(244, 114, 182, 0.25);
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-small {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer a {
  color: var(--accent);
}

/* Страницы отчётов (number.php) */
.page-report {
  background: var(--bg-deep);
}

.page-report .site-main {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 4.5rem 1rem 2rem;
  color: #e8dff5;
}

.page-report .site-main h2,
.page-report .site-main h3,
.page-report .site-main b {
  color: #f5e9ff;
}

.page-report .site-main a {
  color: #c4b5fd;
}

/* Таблицы в отчётах */
.page-report table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.page-report td,
.page-report th {
  border: 1px solid rgba(167, 139, 250, 0.25);
  padding: 0.35rem 0.5rem;
}

/* Строки сотрудников */
.emp-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.65rem;
  align-items: end;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed rgba(167, 139, 250, 0.2);
}

@media (max-width: 640px) {
  .emp-row {
    grid-template-columns: 1fr;
  }
}

.emp-row .btn-remove {
  margin-bottom: 0.85rem;
}

/* Совместимость / team — светлая карточка на тёмном фоне опционально */
.theme-light-card {
  background: rgba(255, 250, 255, 0.96);
  color: #2d1f3d;
}

.theme-light-card .muted {
  color: #6b5b7a;
}

.theme-light-card h2,
.theme-light-card h3 {
  color: #2d1f3d;
}

/* Алиасы для compatibility.php */
.nx-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-deep);
}

.nx-main {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 1.1rem 3rem;
  overflow-x: hidden;
  box-sizing: border-box;
  width: 100%;
}

.nx-topbar,
.nx-topbar--embed {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
  background: rgba(15, 10, 24, 0.75);
  border-bottom: 1px solid var(--border);
}

.nx-topbar-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0.55rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.nx-brand {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.nx-brand span {
  color: var(--accent);
}

.nx-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.nx-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.nx-nav a:hover,
.nx-nav a.is-active {
  color: var(--text);
  background: rgba(192, 132, 252, 0.15);
}

.nx-hero {
  text-align: center;
  padding: 1.25rem 0;
}

.nx-hero h1 {
  margin: 0 0 0.5rem;
  font-size: 1.65rem;
  padding: 0 0.25rem;
  box-sizing: border-box;
  overflow-wrap: break-word;
}

.nx-hero p {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--muted);
  padding: 0 0.25rem;
  box-sizing: border-box;
  width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.nx-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.25rem;
}

.nx-h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.nx-h3 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  color: var(--muted);
}

.nx-form label {
  display: block;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.88rem;
}

.nx-form input,
.nx-form select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(10, 6, 20, 0.55);
  color: var(--text);
  font: inherit;
  margin-bottom: 0.75rem;
}

.nx-form--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 720px) {
  .nx-form--grid {
    grid-template-columns: 1fr;
  }
}

.nx-form-full {
  grid-column: 1 / -1;
}

.nx-btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
}

.nx-btn-primary {
  color: #1a0a2e;
  background: linear-gradient(135deg, #e9d5ff, #fbcfe8);
}

.nx-alert {
  background: rgba(127, 29, 29, 0.35);
  border: 1px solid rgba(252, 165, 165, 0.4);
  padding: 0.75rem 1rem;
  border-radius: 12px;
}

.nx-list {
  text-align: left;
}

.nx-muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.nx-table-wrap {
  overflow-x: auto;
}

.nx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.nx-table th,
.nx-table td {
  border: 1px solid var(--border);
  padding: 0.45rem 0.5rem;
}

.nx-chart-box {
  position: relative;
  height: 220px;
  margin-bottom: 1.25rem;
}

.nx-footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
}

.nx-footer a {
  color: var(--accent);
}

.nx-card-landing {
  text-align: center;
  padding: 1.25rem;
  margin: 1rem 0;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.nx-btn-secondary {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  color: #1a0a2e;
  background: linear-gradient(135deg, #ddd6fe, #a5b4fc);
}
