/* ============================================================
   ExploreKPI · Premium Design System · 2026
   Editorial-premium: тёплый светлый фон, глубокие чернила,
   один уверенный акцент, серифный дисплей для заголовков.
   Доступность 50+: base 18px, кнопки 52px, контраст WCAG AA+.
   ============================================================ */

:root {
  /* Палитра */
  --paper:      #F7F6F3;   /* тёплый фон страницы */
  --surface:    #FFFFFF;
  --surface-2:  #FBFAF8;
  --ink:        #12141C;
  --ink-2:      #3E4351;
  --muted:      #6A7080;
  --line:       #E7E5DF;
  --line-2:     #D9D6CE;

  --brand:      #2743E3;   /* глубокий кобальт */
  --brand-ink:  #1D33B8;
  --brand-soft: #EDF0FE;
  --violet:     #6D3AE8;
  --grad:       linear-gradient(120deg, #2743E3 0%, #6D3AE8 100%);

  --ok:         #0E7A55;
  --ok-soft:    #E6F5EE;
  --warn:       #B45309;
  --warn-soft:  #FDF2E3;
  --danger:     #B42318;
  --danger-soft:#FDEBE9;

  --dark:       #0F1118;   /* тёмные секции / админ-сайдбар */
  --dark-2:     #171A24;

  /* Типографика */
  --font-body: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-scale: 1;

  /* Геометрия */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(18,20,28,.05);
  --shadow:    0 1px 2px rgba(18,20,28,.04), 0 8px 24px -8px rgba(18,20,28,.10);
  --shadow-lg: 0 2px 4px rgba(18,20,28,.05), 0 24px 48px -16px rgba(18,20,28,.18);
  --ring: 0 0 0 4px rgba(39,67,227,.18);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: calc(18px * var(--font-scale)); scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-ink); }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 700; }
p  { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

::selection { background: #CBD4FB; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font: 600 1rem/1.2 var(--font-body);
  border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 8px 20px -8px rgba(39,67,227,.55), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover { color:#fff; box-shadow: 0 12px 28px -8px rgba(39,67,227,.6); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color:#fff; transform: translateY(-1px); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--ink-2); color: var(--ink); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: rgba(18,20,28,.05); color: var(--ink); }
.btn-danger { background: var(--danger); color:#fff; }
.btn-danger:hover { background:#9A1C12; color:#fff; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .9rem; }
.btn-lg { min-height: 58px; padding: 0 34px; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ---------- Формы ---------- */
label { display: block; font-weight: 600; margin-bottom: 8px; }
.hint { font-size: .875rem; color: var(--muted); margin-top: 6px; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], input[type=month], select, textarea {
  width: 100%; min-height: 54px; padding: 12px 16px;
  font: 400 1.05rem var(--font-body); color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line-2); border-radius: var(--r-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
input::placeholder, textarea::placeholder { color: #A6ABB8; }
.field { margin-bottom: 22px; }
.form-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.check { display: flex; gap: 12px; align-items: center; font-weight: 500; cursor: pointer; }
.check input { width: 22px; height: 22px; min-height: 0; accent-color: var(--brand); }
input[type=range] { width: 100%; accent-color: var(--brand); height: 34px; }

/* ---------- Карточки ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow);
  padding: 28px;
}
.card-hover { transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.card-title { display:flex; align-items:center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.card-title h3 { margin: 0; }

/* ---------- Бейджи статусов ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 999px;
  font-size: .875rem; font-weight: 600; line-height: 1;
}
.badge::before { content:""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.badge-ok     { background: var(--ok-soft); color: var(--ok); }
.badge-warn   { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-nodata { background: #EFEEE9; color: var(--muted); }
.badge-brand  { background: var(--brand-soft); color: var(--brand-ink); }

/* ---------- Flash ---------- */
.flash { padding: 16px 20px; border-radius: var(--r-sm); font-weight: 500; border: 1px solid transparent; margin-bottom: 12px; }
.flash-success { background: var(--ok-soft); color: var(--ok); border-color: #BFE5D4; }
.flash-error   { background: var(--danger-soft); color: var(--danger); border-color: #F2C6C1; }
.flash-info    { background: var(--brand-soft); color: var(--brand-ink); border-color: #CBD4FB; }

/* ---------- Таблицы ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-sm); }
table.table { width: 100%; border-collapse: collapse; font-size: .975rem; }
.table th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: #FCFBF9; }

/* ============================================================
   САЙТ (лендинг)
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,246,243,.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(18,20,28,.06);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.22rem; color: var(--ink); letter-spacing: -.02em; }
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font: 800 1.15rem var(--font-body);
  box-shadow: 0 6px 14px -6px rgba(39,67,227,.6);
}
.site-nav { display: flex; align-items: center; gap: 8px; }
@media (max-width: 720px) { .site-nav .hide-m { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 84px 0 70px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before, .hero-bg::after {
  content:""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
}
.hero-bg::before { width: 620px; height: 620px; background: #DCE2FD; top: -260px; right: -160px; }
.hero-bg::after  { width: 460px; height: 460px; background: #EFE4FC; bottom: -240px; left: -140px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 56px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: .875rem; font-weight: 600; color: var(--ink-2);
  box-shadow: var(--shadow-sm); margin-bottom: 26px;
}
.eyebrow::before { content:""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 3.9rem); font-weight: 600; letter-spacing: -.02em; margin-bottom: 22px; }
.hero h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic;
}
.hero-sub { font-size: 1.16rem; color: var(--ink-2); max-width: 34em; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.hero-note { color: var(--muted); font-size: .92rem; }
.hero-stats { display: flex; gap: 40px; margin-top: 44px; flex-wrap: wrap; }
.hero-stat b { display: block; font: 600 1.9rem var(--font-display); letter-spacing: -.01em; }
.hero-stat span { color: var(--muted); font-size: .9rem; }

/* Демо-виджеты в hero (чистый CSS/SVG) */
.demo-stack { position: relative; min-height: 460px; }
.demo-card {
  position: absolute; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 24px;
}
.demo-main { top: 6%; left: 4%; right: 14%; animation: float 7s ease-in-out infinite; }
.demo-side { right: 0; bottom: 6%; width: 56%; animation: float 8s 1.2s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .demo-main, .demo-side { animation: none; } }
.demo-head { display:flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.demo-head b { font-size: 1.05rem; }
.demo-big { font: 600 2.2rem var(--font-display); letter-spacing: -.01em; }
.demo-target { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.spark { width: 100%; height: 84px; }
.demo-forecast { display:flex; align-items:center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-2); color: var(--ink-2); font-size: .92rem; }
.demo-forecast b { color: var(--brand-ink); }
.ring-wrap { display: flex; align-items: center; gap: 18px; }
.ring { width: 92px; height: 92px; }
.ring .bgc { stroke: #EEEDE8; }
.ring .fgc { stroke: url(#ringGrad); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.ring-num { font: 600 1.5rem var(--font-display); }
@media (max-width: 960px) {
  .demo-stack { min-height: 0; display: grid; gap: 18px; margin-top: 8px; }
  .demo-card { position: static; animation: none; }
  .demo-side { width: auto; }
}

/* Секции */
.section { padding: 84px 0; }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.section-head p { color: var(--ink-2); font-size: 1.08rem; }
.section-dark { background: var(--dark); color: #E9EAF0; }
.section-dark h2 { color: #fff; }
.section-dark .section-head p { color: #A7ACBD; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .features-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .features-grid { grid-template-columns: 1fr; } }
.feature { padding: 30px 28px; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand-ink);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.12rem; }
.feature p { color: var(--ink-2); margin: 0; font-size: .98rem; }

.sizes-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
@media (max-width: 900px) { .sizes-grid { grid-template-columns: 1fr; } }
.size-card { background: var(--dark-2); border: 1px solid #262B3B; border-radius: var(--r-lg); padding: 32px; transition: transform .2s ease, border-color .2s ease; }
.size-card:hover { transform: translateY(-4px); border-color: #3A4160; }
.size-card .k { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #8B93AC; margin-bottom: 12px; }
.size-card h3 { color: #fff; font-family: var(--font-body); font-weight: 700; font-size: 1.2rem; }
.size-card p { color: #A7ACBD; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 30px 28px 30px 28px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items:center; justify-content:center;
  width: 46px; height: 46px; margin-bottom: 16px; border-radius: 50%;
  background: var(--grad); color:#fff; font: 700 1.15rem var(--font-body);
  box-shadow: 0 8px 18px -8px rgba(39,67,227,.6);
}
.step h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.1rem; }
.step p { color: var(--ink-2); margin: 0; }

/* Тарифы */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 1060px) { .pricing-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px)  { .pricing-grid { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; padding: 30px 26px; position: relative; }
.plan-popular { border: 2px solid var(--brand); box-shadow: 0 20px 44px -18px rgba(39,67,227,.35); }
.plan-flag {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: .8rem; font-weight: 700;
  padding: 5px 16px; border-radius: 999px; white-space: nowrap;
}
.plan h3 { font-family: var(--font-body); font-weight: 800; font-size: 1.15rem; margin-bottom: 6px; }
.plan-price { font: 600 2.3rem var(--font-display); letter-spacing: -.02em; margin-bottom: 4px; }
.plan-price span { font: 500 1rem var(--font-body); color: var(--muted); }
.plan ul { list-style: none; margin: 18px 0 24px; padding: 0; flex: 1; }
.plan li { padding: 7px 0 7px 30px; position: relative; color: var(--ink-2); font-size: .97rem; }
.plan li::before {
  content:""; position: absolute; left: 0; top: 12px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--ok-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E7A55' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-10'/%3E%3C/svg%3E");
  background-size: 11px; background-position: center; background-repeat: no-repeat;
}

/* CTA */
.cta-band { background: var(--grad); border-radius: var(--r-lg); padding: 64px 40px; text-align: center; color: #fff; box-shadow: 0 26px 60px -20px rgba(39,67,227,.55); }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.cta-band p { color: rgba(255,255,255,.85); font-size: 1.08rem; }
.cta-band .btn { background: #fff; color: var(--brand-ink); }
.cta-band .btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(0,0,0,.35); }

.site-footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--muted); font-size: .95rem; margin-top: 20px; background: var(--surface-2); }
.site-footer a { color: var(--ink-2); }

/* Появление при прокрутке */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   AUTH
   ============================================================ */
.auth-wrap { min-height: calc(100vh - 76px); display: grid; place-items: center; padding: 48px 20px; position: relative; overflow: hidden; }
.auth-card { width: 100%; max-width: 460px; padding: 40px 36px; position: relative; }
.auth-card h1 { font-size: 1.9rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 28px; }
.auth-links { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 20px; font-size: .97rem; flex-wrap: wrap; }

/* ============================================================
   КАБИНЕТ (app)
   ============================================================ */
.app-shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
@media (max-width: 900px) { .app-shell { grid-template-columns: 1fr; } }
.side {
  background: var(--surface); border-right: 1px solid var(--line);
  padding: 22px 16px; display: flex; flex-direction: column; gap: 6px;
  position: sticky; top: 0; height: 100vh;
}
@media (max-width: 900px) {
  .side { position: static; height: auto; flex-direction: row; align-items: center; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line); padding: 12px 16px; }
  .side .side-foot { display: none; }
}
.side .logo { margin: 6px 10px 20px; }
@media (max-width: 900px) { .side .logo { margin: 0 12px 0 0; } }
.snav {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 15px; border-radius: 12px;
  color: var(--ink-2); font-weight: 600; font-size: 1rem; white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.snav svg { width: 22px; height: 22px; flex: none; opacity: .85; }
.snav:hover { background: rgba(18,20,28,.05); color: var(--ink); }
.snav.active { background: var(--brand-soft); color: var(--brand-ink); }
.side-foot { margin-top: auto; padding: 12px 6px 4px; border-top: 1px solid var(--line); }
.main { padding: 36px clamp(20px, 4vw, 48px) 72px; min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 30px; }
.page-head h1 { font-size: 2.1rem; margin: 0; }
.page-head .sub { color: var(--muted); margin: 6px 0 0; }

/* Метрики-плитки */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 30px; }
@media (max-width: 1100px) { .stat-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px)  { .stat-grid { grid-template-columns: 1fr; } }
.stat { padding: 22px 24px; }
.stat .k { color: var(--muted); font-size: .9rem; font-weight: 600; margin-bottom: 8px; }
.stat .v { font: 600 2rem var(--font-display); letter-spacing: -.01em; line-height: 1.1; }
.stat .v small { font: 600 1rem var(--font-body); color: var(--muted); }

/* Сетка проектов */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.project-card { display: flex; flex-direction: column; gap: 14px; }
.project-card h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.18rem; margin: 0; }
.project-meta { display: flex; gap: 16px; color: var(--muted); font-size: .92rem; flex-wrap: wrap; }
.project-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }

/* Здоровье: кольцо */
.health-ring { position: relative; width: 118px; height: 118px; flex: none; }
.health-ring svg { width: 100%; height: 100%; }
.health-ring .num { position: absolute; inset: 0; display: grid; place-items: center; font: 600 1.7rem var(--font-display); }

/* Вкладки проекта */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); padding: 6px; border-radius: 999px; box-shadow: var(--shadow-sm); margin-bottom: 30px; width: max-content; max-width: 100%; overflow-x: auto; }
.tab { padding: 11px 20px; border-radius: 999px; font-weight: 600; color: var(--ink-2); white-space: nowrap; font-size: .97rem; }
.tab:hover { color: var(--ink); background: rgba(18,20,28,.04); }
.tab.active { background: var(--ink); color: #fff; }

/* Список KPI */
.kpi-group-title { display: flex; align-items: center; gap: 12px; margin: 34px 0 16px; font: 700 1.05rem var(--font-body); color: var(--ink-2); }
.kpi-group-title::after { content:""; flex: 1; height: 1px; background: var(--line); }
.kpi-row {
  display: grid; grid-template-columns: 1fr auto auto auto; gap: 18px; align-items: center;
  padding: 20px 24px;
}
@media (max-width: 760px) { .kpi-row { grid-template-columns: 1fr auto; row-gap: 10px; } }
.kpi-row .name { font-weight: 700; font-size: 1.06rem; }
.kpi-row .meta { color: var(--muted); font-size: .9rem; margin-top: 3px; }
.kpi-val { text-align: right; }
.kpi-val b { font: 600 1.3rem var(--font-display); }
.kpi-val span { display: block; color: var(--muted); font-size: .85rem; }
.progress { height: 9px; background: #EEEDE8; border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 999px; background: var(--grad); transition: width .5s ease; }
.progress.p-ok > i { background: linear-gradient(90deg,#0E7A55,#19A97A); }
.progress.p-warn > i { background: linear-gradient(90deg,#B45309,#E08A2E); }
.progress.p-danger > i { background: linear-gradient(90deg,#B42318,#E04B3D); }

/* SWOT */
.swot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 800px) { .swot-grid { grid-template-columns: 1fr; } }
.swot-quad { padding: 24px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.swot-quad h3 { font-family: var(--font-body); font-weight: 800; font-size: 1.02rem; display:flex; align-items:center; gap: 10px; }
.swot-quad h3 .dot { width: 12px; height: 12px; border-radius: 4px; }
.swot-S .dot { background: #0E7A55; } .swot-W .dot { background: #B45309; }
.swot-O .dot { background: #2743E3; } .swot-T .dot { background: #B42318; }
.swot-list { list-style: none; margin: 0 0 14px; padding: 0; }
.swot-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .98rem; }
.swot-list li:last-child { border-bottom: none; }
.icon-btn { background: none; border: none; cursor: pointer; color: var(--muted); padding: 8px; border-radius: 8px; line-height: 0; }
.icon-btn:hover { color: var(--danger); background: var(--danger-soft); }
.inline-add { display: flex; gap: 10px; }
.inline-add input { min-height: 50px; flex: 1; min-width: 0; }
.inline-add .btn { min-height: 50px; flex: none; padding: 0 18px; }
.swot-quad .q-hint { color: var(--muted); font-size: .88rem; margin: -4px 0 10px; }

/* Ввод данных */
.entry-row { display: grid; grid-template-columns: minmax(0,1fr) clamp(190px, 26vw, 280px); gap: 18px; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.entry-row > * { min-width: 0; }
.entry-row:last-child { border-bottom: none; }
@media (max-width: 640px) { .entry-row { grid-template-columns: 1fr; } }
.entry-row .name { font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; }
.entry-row .prev { color: var(--muted); font-size: .9rem; margin-top: 2px; }

/* Поле ввода с единицей измерения внутри */
.in-unit { display: flex; align-items: center; background: var(--surface); border: 1.5px solid var(--line-2); border-radius: var(--r-sm); min-height: 54px; padding: 0 14px 0 6px; transition: border-color .15s ease, box-shadow .15s ease; }
.in-unit:focus-within { border-color: var(--brand); box-shadow: var(--ring); }
.in-unit input { border: none; background: transparent; min-height: 50px; flex: 1; min-width: 0; width: auto; font-size: 1.15rem; font-weight: 600; text-align: right; padding: 8px 10px; }
.in-unit input:focus { box-shadow: none; border: none; outline: none; }
.in-unit .u { color: var(--muted); font-size: .88rem; font-weight: 600; margin-left: 8px; white-space: nowrap; max-width: 110px; overflow: hidden; text-overflow: ellipsis; flex: none; }
.save-bar { position: sticky; bottom: 18px; margin-top: 26px; display: flex; justify-content: flex-end; }
.save-bar .btn { box-shadow: 0 14px 34px -10px rgba(39,67,227,.6); }

/* AI */
.ai-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 26px; }
.ai-action { display: flex; align-items: center; gap: 13px; padding: 18px 20px; text-align: left; cursor: pointer; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-sm); font: 600 1rem var(--font-body); color: var(--ink); transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease; }
.ai-action:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--brand); }
.ai-action svg { width: 24px; height: 24px; color: var(--brand); flex: none; }
.ai-output { padding: 26px 28px; line-height: 1.65; }
.ai-output h1,.ai-output h2,.ai-output h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.1rem; margin: 1.1em 0 .45em; }
.ai-output table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .95rem; }
.ai-output th, .ai-output td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.ai-output th { background: var(--surface-2); }
.chat-box { display: flex; flex-direction: column; gap: 14px; max-height: 480px; overflow-y: auto; padding: 6px 2px; }
.msg { max-width: 82%; padding: 14px 18px; border-radius: 18px; line-height: 1.55; }
.msg-user { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 6px; }
.msg-ai { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.chat-form { display: flex; gap: 12px; margin-top: 16px; }
.chat-form input { flex: 1; }
.typing { display: inline-flex; gap: 5px; padding: 6px 2px; }
.typing i { width: 8px; height: 8px; background: var(--muted); border-radius: 50%; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,80%,100% { opacity: .25; } 40% { opacity: 1; } }

/* Пустые состояния */
.empty { text-align: center; padding: 64px 30px; }
.empty .art { width: 88px; height: 88px; margin: 0 auto 20px; border-radius: 26px; background: var(--brand-soft); display: grid; place-items: center; color: var(--brand-ink); }
.empty .art svg { width: 42px; height: 42px; }
.empty h3 { font-family: var(--font-body); font-weight: 800; }
.empty p { color: var(--muted); max-width: 30em; margin: 0 auto 22px; }

/* ============================================================
   АДМИНКА
   ============================================================ */
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
@media (max-width: 900px) { .admin-shell { grid-template-columns: 1fr; } }
.admin-side { background: var(--dark); color: #C7CBD9; padding: 22px 14px; display: flex; flex-direction: column; gap: 5px; position: sticky; top: 0; height: 100vh; }
@media (max-width: 900px) { .admin-side { position: static; height: auto; flex-direction: row; overflow-x: auto; align-items: center; padding: 12px 14px; } }
.admin-side .logo { color: #fff; margin: 6px 10px 22px; }
@media (max-width: 900px) { .admin-side .logo { margin: 0 12px 0 0; } }
.anav { display: flex; align-items: center; gap: 12px; padding: 12px 15px; border-radius: 11px; color: #B4B9C9; font-weight: 600; white-space: nowrap; font-size: .98rem; }
.anav:hover { background: rgba(255,255,255,.07); color: #fff; }
.anav.active { background: var(--grad); color: #fff; box-shadow: 0 8px 18px -8px rgba(39,67,227,.7); }
.anav svg { width: 20px; height: 20px; }
.admin-side .side-foot { border-top: 1px solid rgba(255,255,255,.1); }
.admin-side .side-foot .anav { color: #8B93AC; }

/* Языки */
.lang-progress { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.lang-progress .progress { flex: 1; }
.lang-switch { position: relative; }
.lang-switch select {
  min-height: 44px; padding: 8px 36px 8px 14px; font-size: .95rem; font-weight: 600;
  border-radius: 999px; background: transparent; border: 1.5px solid var(--line-2);
  appearance: none; -webkit-appearance: none; cursor: pointer; width: auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236A7080' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.section-dark .lang-switch select, .admin-side .lang-switch select { color: #fff; border-color: rgba(255,255,255,.25); }

/* Утилиты */
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:34px}
.mb-0{margin-bottom:0}.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}
.flex{display:flex}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-1{gap:8px}.gap-2{gap:16px}.wrap{flex-wrap:wrap}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:22px}
@media (max-width:900px){.grid-2{grid-template-columns:1fr}}
.text-right{text-align:right}.text-center{text-align:center}
.w-100{width:100%}

/* ============================================================
   ТАЙМЛАЙН
   ============================================================ */
.tl-filter { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:24px; }
.tl-chip { padding:9px 18px; border-radius:999px; border:1.5px solid var(--line-2); background:var(--surface); font-weight:600; font-size:.92rem; color:var(--ink-2); cursor:pointer; transition:all .15s ease; }
.tl-chip:hover { border-color:var(--brand); color:var(--brand-ink); }
.tl-chip.active { background:var(--ink); color:#fff; border-color:var(--ink); }

.timeline { position:relative; padding-left:56px; }
.timeline::before { content:""; position:absolute; left:23px; top:8px; bottom:8px; width:3px; border-radius:3px;
  background:linear-gradient(180deg, var(--brand) 0%, var(--violet) 60%, var(--line-2) 100%); }
.tl-date { position:relative; margin:34px 0 14px; font:700 .95rem var(--font-body); color:var(--muted); text-transform:uppercase; letter-spacing:.06em; }
.tl-date:first-child { margin-top:0; }
.tl-date::before { content:""; position:absolute; left:-39px; top:4px; width:11px; height:11px; border-radius:50%; background:var(--paper); border:3px solid var(--line-2); }
.tl-item { position:relative; margin-bottom:16px; }
.tl-dot { position:absolute; left:-47px; top:16px; width:28px; height:28px; border-radius:50%; display:grid; place-items:center; color:#fff; box-shadow:0 4px 12px -3px rgba(18,20,28,.3); z-index:1; }
.tl-dot svg { width:15px; height:15px; }
.tl-dot.t-project_created { background:linear-gradient(135deg,#2743E3,#6D3AE8); }
.tl-dot.t-kpi_created, .tl-dot.t-kpi_generated { background:linear-gradient(135deg,#0E7A55,#19A97A); }
.tl-dot.t-data_entry { background:linear-gradient(135deg,#B45309,#E08A2E); }
.tl-dot.t-document { background:linear-gradient(135deg,#475569,#64748B); }
.tl-dot.t-analysis { background:linear-gradient(135deg,#6D3AE8,#A855F7); }
.tl-dot.t-kpi_update, .tl-dot.t-goal, .tl-dot.t-note { background:linear-gradient(135deg,#0891B2,#22D3EE); }
.tl-card { padding:20px 24px; transition:transform .18s ease, box-shadow .22s ease; }
.tl-card:hover { transform:translateX(4px); box-shadow:var(--shadow-lg); }
.tl-head { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; }
.tl-title { font-weight:700; font-size:1.05rem; }
.tl-meta { color:var(--muted); font-size:.85rem; margin-top:2px; }
.tl-body { margin-top:12px; padding-top:12px; border-top:1px dashed var(--line); }
.tl-kpi-pills { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.tl-pill { padding:6px 13px; border-radius:999px; background:var(--brand-soft); color:var(--brand-ink); font-size:.85rem; font-weight:600; }
.tl-pill.p-ok { background:var(--ok-soft); color:var(--ok); }
.tl-pill.p-warn { background:var(--warn-soft); color:var(--warn); }
.tl-pill.p-danger { background:var(--danger-soft); color:var(--danger); }

/* Кольцо достижения в карточке анализа */
.tl-achieve { display:flex; align-items:center; gap:18px; margin-top:12px; padding:16px 18px; background:var(--surface-2); border-radius:14px; }
.tl-achieve .health-ring { width:74px; height:74px; }
.tl-achieve .health-ring .num { font-size:1.05rem; }
.tl-achieve b { font-size:1.05rem; }

/* Дропзона */
.dropzone { border:2.5px dashed var(--line-2); border-radius:var(--r-lg); padding:38px 26px; text-align:center; background:var(--surface); cursor:pointer; transition:all .2s ease; }
.dropzone:hover, .dropzone.drag { border-color:var(--brand); background:var(--brand-soft); }
.dropzone .dz-icon { width:58px; height:58px; margin:0 auto 14px; border-radius:16px; background:var(--brand-soft); color:var(--brand-ink); display:grid; place-items:center; transition:transform .2s ease; }
.dropzone:hover .dz-icon { transform:translateY(-3px) scale(1.05); }
.dropzone .dz-icon svg { width:28px; height:28px; }
.dropzone b { font-size:1.08rem; }
.dropzone p { color:var(--muted); margin:6px 0 0; font-size:.92rem; }

/* Степпер обработки документа */
.pipe { display:none; margin-top:20px; }
.pipe.show { display:block; animation:fadeUp .35s ease; }
@keyframes fadeUp { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }
.pipe-steps { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:14px; }
@media (max-width:640px){ .pipe-steps { grid-template-columns:1fr; } }
.pipe-step { display:flex; align-items:center; gap:12px; padding:14px 16px; border-radius:14px; border:1.5px solid var(--line); background:var(--surface); transition:all .25s ease; }
.pipe-step .ic { width:34px; height:34px; border-radius:50%; display:grid; place-items:center; background:#EEEDE8; color:var(--muted); font-weight:800; flex:none; transition:all .25s ease; }
.pipe-step.run { border-color:var(--brand); box-shadow:var(--ring); }
.pipe-step.run .ic { background:var(--grad); color:#fff; animation:pulse 1.4s ease infinite; }
@keyframes pulse { 0%,100% { transform:scale(1); } 50% { transform:scale(1.12); } }
.pipe-step.ok .ic { background:var(--ok); color:#fff; }
.pipe-step.err { border-color:var(--danger); }
.pipe-step.err .ic { background:var(--danger); color:#fff; }
.pipe-step small { display:block; color:var(--muted); font-size:.82rem; }
.pipe-bar { height:10px; border-radius:999px; background:#EEEDE8; overflow:hidden; }
.pipe-bar i { display:block; height:100%; width:0; border-radius:999px; background:var(--grad);
  background-size:200% 100%; animation:shimmer 1.6s linear infinite; transition:width .5s ease; }
@keyframes shimmer { 0% { background-position:0 0; } 100% { background-position:200% 0; } }
.pipe-log { margin-top:12px; font-size:.92rem; color:var(--ink-2); }
.pipe-log div { padding:4px 0; animation:fadeUp .3s ease; }

/* ============================================================
   ПОДСКАЗКИ (?)
   ============================================================ */
.help-btn { display:inline-grid; place-items:center; width:26px; height:26px; border-radius:50%;
  border:1.5px solid var(--line-2); background:var(--surface); color:var(--muted);
  font:700 .82rem var(--font-body); cursor:pointer; vertical-align:middle; margin-left:8px;
  transition:all .15s ease; flex:none; }
.help-btn:hover, .help-btn.open { border-color:var(--brand); color:var(--brand-ink); background:var(--brand-soft); transform:scale(1.1); }
.help-pop { position:absolute; z-index:80; max-width:340px; padding:16px 18px; border-radius:14px;
  background:var(--ink); color:#F0F1F5; font-size:.93rem; line-height:1.55; box-shadow:var(--shadow-lg);
  animation:fadeUp .2s ease; }
.help-pop::before { content:""; position:absolute; top:-6px; left:22px; width:12px; height:12px; background:var(--ink); transform:rotate(45deg); }

/* Карточка «следующий шаг» на дашборде */
.next-step { display:flex; gap:20px; align-items:center; background:linear-gradient(120deg, #EDF0FE, #F4EEFD);
  border:1px solid #DCE2FD; border-radius:var(--r-lg); padding:24px 28px; margin-bottom:28px; }
.next-step .ns-icon { width:56px; height:56px; border-radius:16px; background:var(--grad); color:#fff; display:grid; place-items:center; flex:none;
  box-shadow:0 10px 22px -8px rgba(39,67,227,.55); }
.next-step .ns-icon svg { width:28px; height:28px; }
.next-step h3 { margin:0 0 4px; font-family:var(--font-body); font-weight:800; font-size:1.12rem; }
.next-step p { margin:0; color:var(--ink-2); }
@media (max-width:640px){ .next-step { flex-direction:column; text-align:center; } }

/* История AI-анализов */
.ai-hist { border:1px solid var(--line); border-radius:14px; padding:13px 17px; margin-bottom:10px; }
.ai-hist summary { cursor:pointer; font-weight:600; display:flex; gap:10px; align-items:center; flex-wrap:wrap; list-style:none; }
.ai-hist summary::-webkit-details-marker { display:none; }
.ai-hist summary::after { content:"▾"; margin-left:auto; color:var(--muted); transition:transform .2s ease; }
.ai-hist[open] summary::after { transform:rotate(180deg); }
.ai-hist .ai-output { padding:12px 0 0; }
.ai-hist .ai-output ul { margin:8px 0; padding-left:22px; }

/* Карточка результата генерации */
.ai-created { border:1px solid #BFE5D4; background:var(--ok-soft); border-radius:var(--r); padding:22px 26px; animation:fadeUp .35s ease; }
.ai-created h3 { font-family:var(--font-body); font-weight:800; font-size:1.1rem; color:var(--ok); display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.ai-created .tl-kpi-pills { margin-top:6px; }
.tl-dot.t-swot_generated, .tl-dot.t-strategy_generated { background:linear-gradient(135deg,#2743E3,#6D3AE8); }

/* Импорт данных: вкладки и модалка */
.intake-tabs { display:flex; gap:6px; background:var(--surface-2); border:1px solid var(--line); border-radius:999px; padding:5px; width:max-content; margin-bottom:16px; }
.itab { padding:9px 20px; border-radius:999px; border:none; background:transparent; font:600 .95rem var(--font-body); color:var(--ink-2); cursor:pointer; transition:all .15s ease; }
.itab.active { background:var(--ink); color:#fff; }
.tl-modal { border:none; border-radius:var(--r-lg); box-shadow:var(--shadow-lg); padding:28px 30px; max-width:720px; width:94vw; max-height:82vh; }
.tl-modal::backdrop { background:rgba(18,20,28,.45); backdrop-filter:blur(3px); }
.tl-extract { white-space:pre-wrap; overflow-wrap:anywhere; background:var(--surface-2); border:1px solid var(--line); border-radius:12px; padding:18px 20px; font-size:.95rem; line-height:1.6; max-height:60vh; overflow-y:auto; }
.tl-extract b { color:var(--brand-ink); }

/* Авто-перевод: верхний прогресс-бар + чип статуса */
.tr-bar { position:fixed; top:0; left:0; right:0; height:3px; z-index:200; background:transparent; pointer-events:none; }
.tr-bar i { display:block; height:100%; width:0; background:var(--grad); background-size:200% 100%; animation:shimmer 1.4s linear infinite; transition:width .4s ease; border-radius:0 3px 3px 0; }
.tr-chip { position:fixed; bottom:20px; right:20px; z-index:200; display:flex; align-items:center; gap:10px; background:var(--ink); color:#F0F1F5; padding:11px 18px; border-radius:999px; font:600 .9rem var(--font-body); box-shadow:var(--shadow-lg); animation:fadeUp .3s ease; }
.tr-chip .typing i { background:#8B93AC; }
[data-tr].tr-swap { animation:trFade .45s ease; }
@keyframes trFade { from { opacity:.25; } to { opacity:1; } }

/* Чат поддержки: слайд-панель */
.sup-panel { position:fixed; top:0; right:-440px; bottom:0; width:min(430px, 96vw); z-index:300;
  background:var(--surface); border-left:1px solid var(--line); box-shadow:var(--shadow-lg);
  display:flex; flex-direction:column; padding:22px 22px 18px; transition:right .3s cubic-bezier(.2,.8,.25,1); }
.sup-panel.open { right:0; }
.sup-head { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; padding-bottom:14px; border-bottom:1px solid var(--line); margin-bottom:14px; }
.sup-head b { font-size:1.12rem; }
.sup-box { flex:1; max-height:none; }
.sup-backdrop { position:fixed; inset:0; z-index:290; background:rgba(18,20,28,.35); opacity:0; pointer-events:none; transition:opacity .3s ease; }
.sup-backdrop.open { opacity:1; pointer-events:auto; }

/* Модалка удаления KPI с причинами */
.del-opt { display:flex; gap:12px; align-items:flex-start; padding:13px 15px; border:1.5px solid var(--line); border-radius:12px; margin:0 0 10px; cursor:pointer; transition:border-color .15s ease, background .15s ease; }
.del-opt:hover { border-color:var(--brand); }
.del-opt:has(input:checked) { border-color:var(--brand); background:var(--brand-soft); }
.del-opt input { width:19px; height:19px; min-height:0; margin-top:2px; flex:none; }
.del-opt b { display:block; }
.del-opt small { color:var(--muted); }

/* Полномочия сотрудника: бейдж «ваш» и замочек */
.mine-badge { display:inline-block; margin-left:8px; padding:2.5px 10px; border-radius:999px; background:var(--ok-soft); color:var(--ok); font-size:.78rem; font-weight:700; vertical-align:middle; }
.lock-badge { margin-left:8px; opacity:.55; font-size:.9rem; cursor:help; vertical-align:middle; }
.member-banner { display:flex; gap:10px; align-items:baseline; flex-wrap:wrap; background:var(--brand-soft); border:1px solid #DCE2FD; border-radius:14px; padding:14px 20px; margin-bottom:18px; }
.member-banner b { color:var(--brand-ink); }

/* Мануал */
.docs-layout { display:grid; grid-template-columns:260px 1fr; gap:24px; align-items:start; }
@media (max-width:900px){ .docs-layout { grid-template-columns:1fr; } .docs-toc { position:static; } }
.docs-toc { position:sticky; top:24px; padding:20px 22px; display:flex; flex-direction:column; gap:2px; }
.docs-toc a { display:block; padding:7px 10px; border-radius:9px; color:var(--ink-2); font-weight:600; font-size:.93rem; text-decoration:none; transition:all .12s ease; }
.docs-toc a:hover { background:var(--brand-soft); color:var(--brand-ink); }
.docs-sec { margin-bottom:18px; scroll-margin-top:24px; }
.docs-sec h2 { display:flex; gap:12px; align-items:center; font-size:1.35rem; margin-bottom:12px; }
.docs-num { display:inline-grid; place-items:center; width:32px; height:32px; border-radius:10px; background:var(--grad); color:#fff; font:800 .95rem var(--font-body); flex:none; }
.docs-sec p { line-height:1.7; color:var(--ink-2); margin:0 0 12px; }
.docs-sec p:last-child { margin-bottom:0; }

/* Темы в чате поддержки */
.sup-topics { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 4px; }
.sup-topic { padding:8px 14px; border-radius:999px; border:1.5px solid var(--line-2); background:var(--surface); font:600 .87rem var(--font-body); color:var(--ink-2); cursor:pointer; transition:all .15s ease; }
.sup-topic:hover { border-color:var(--brand); color:var(--brand-ink); background:var(--brand-soft); }

/* Период в строке ввода данных */
.entry-row { grid-template-columns: 1fr auto auto; }
.row-period input { min-height:46px; width:auto; max-width:170px; font-size:.9rem; padding:6px 10px; color:var(--ink-2); }
@media (max-width:700px){ .entry-row { grid-template-columns:1fr; } .row-period input { max-width:100%; } }

/* Вопросы AI по импорту */
.ai-q { background:#FDF6E9; border:1px solid #F1E0BB; border-radius:14px; padding:14px 18px; margin-top:12px; }
.ai-q > b { color:#9A6B00; }
.ai-q ul { margin:6px 0 0 20px; padding:0; }
.ai-q li { margin:3px 0; line-height:1.5; }

/* ===================== WOW HERO ===================== */
.wow-hero { position:relative; min-height:92vh; display:flex; flex-direction:column; justify-content:center; overflow:hidden;
  background:#070A16; color:#EDF0FF; padding:110px 0 90px; }
.wow-hero #neuro { position:absolute; inset:0; z-index:0; }
.wow-aurora { position:absolute; inset:-20%; z-index:0; filter:blur(90px); opacity:.5; pointer-events:none; }
.wow-aurora i { position:absolute; border-radius:50%; }
.wow-aurora i:nth-child(1) { width:55vw; height:55vw; left:-12vw; top:-14vw; background:radial-gradient(circle, #2743E3 0%, transparent 62%); animation:aur1 16s ease-in-out infinite alternate; }
.wow-aurora i:nth-child(2) { width:46vw; height:46vw; right:-10vw; top:6vw; background:radial-gradient(circle, #7A2BE8 0%, transparent 62%); animation:aur2 19s ease-in-out infinite alternate; }
.wow-aurora i:nth-child(3) { width:40vw; height:40vw; left:26vw; bottom:-18vw; background:radial-gradient(circle, #0EA5E9 0%, transparent 62%); animation:aur1 22s ease-in-out infinite alternate-reverse; }
@keyframes aur1 { to { transform:translate(6vw, 4vw) scale(1.12); } }
@keyframes aur2 { to { transform:translate(-5vw, 5vw) scale(.92); } }
.wow-grid { position:absolute; inset:0; z-index:0; opacity:.5;
  background-image:linear-gradient(rgba(140,150,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(140,150,255,.05) 1px, transparent 1px);
  background-size:56px 56px; mask-image:radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 75%); }
.wow-inner { position:relative; z-index:2; display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); gap:56px; align-items:center; }
@media (max-width:1000px) { .wow-inner { grid-template-columns:1fr; } .wow-stage { margin-top:26px; } }

.wow-eyebrow { display:inline-flex; align-items:center; gap:9px; padding:8px 16px; border-radius:999px;
  background:rgba(124,140,255,.10); border:1px solid rgba(124,140,255,.28); color:#B9C3FF; font:600 .88rem var(--font-body); letter-spacing:.02em; backdrop-filter:blur(6px); }
.pulse-dot { width:8px; height:8px; border-radius:50%; background:#5BE49B; box-shadow:0 0 0 0 rgba(91,228,155,.6); animation:pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow:0 0 0 9px rgba(91,228,155,0); } 100% { box-shadow:0 0 0 0 rgba(91,228,155,0); } }

.wow-title { font:800 clamp(2.6rem, 5.6vw, 4.4rem)/1.06 var(--font-display, var(--font-body)); letter-spacing:-.02em; margin:26px 0 20px; color:#F4F6FF; }
.wow-gradient-text { background:linear-gradient(92deg, #7C8CFF 0%, #B44CFF 45%, #38BDF8 90%); background-size:220% 100%;
  -webkit-background-clip:text; background-clip:text; color:transparent; animation:sheen 6s ease-in-out infinite; }
@keyframes sheen { 0%,100% { background-position:0% 0; } 50% { background-position:100% 0; } }
.wow-sub { font-size:1.16rem; line-height:1.65; color:#B9C0DE; max-width:560px; margin-bottom:30px; }
.wow-cta { display:flex; gap:14px; flex-wrap:wrap; }
.wow-btn-primary { background:linear-gradient(92deg, #4356F0, #7A2BE8); color:#fff; border:none; box-shadow:0 12px 34px rgba(90,70,240,.45);
  transition:transform .18s ease, box-shadow .18s ease; }
.wow-btn-primary:hover { box-shadow:0 16px 44px rgba(120,80,255,.6); color:#fff; }
.wow-btn-primary .arr { display:inline-block; transition:transform .2s ease; }
.wow-btn-primary:hover .arr { transform:translateX(4px); }
.wow-btn-ghost { background:rgba(255,255,255,.05); color:#DDE2FF; border:1px solid rgba(160,170,255,.3); backdrop-filter:blur(8px); }
.wow-btn-ghost:hover { background:rgba(255,255,255,.1); color:#fff; }
.magnetic { transition:transform .16s ease-out; will-change:transform; }
.wow-note { margin-top:16px; color:#8B92B8; font-size:.92rem; }
.wow-stats { display:flex; gap:38px; margin-top:38px; flex-wrap:wrap; }
.wow-stat b { display:block; font:800 1.9rem var(--font-body); background:linear-gradient(92deg,#DDE2FF,#9BA8FF);
  -webkit-background-clip:text; background-clip:text; color:transparent; }
.wow-stat span { color:#8B92B8; font-size:.9rem; }

/* Сцена: мокап + чипы */
.wow-stage { position:relative; }
.wow-dash { background:rgba(16,20,42,.72); border:1px solid rgba(140,150,255,.22); border-radius:22px; padding:20px 22px;
  backdrop-filter:blur(18px); box-shadow:0 34px 90px rgba(3,6,24,.7), inset 0 1px 0 rgba(255,255,255,.06);
  transform:perspective(1000px) rotateX(4deg) rotateY(-7deg); transition:transform .25s ease; will-change:transform; }
.wd-head { display:flex; align-items:center; gap:12px; margin-bottom:14px; color:#DFE4FF; }
.wd-head b { flex:1; font-size:.98rem; }
.wd-dots { display:flex; gap:5px; }
.wd-dots i { width:9px; height:9px; border-radius:50%; background:#39406B; }
.wd-dots i:first-child { background:#FF5F57; } .wd-dots i:nth-child(2) { background:#FEBB2E; } .wd-dots i:nth-child(3) { background:#28C840; }
.wd-body { display:grid; grid-template-columns:1.5fr 1fr; gap:18px; }
@media (max-width:520px) { .wd-body { grid-template-columns:1fr; } }
.wd-big { font:800 2rem var(--font-body); color:#fff; }
.wd-target { color:#8B92B8; font-size:.86rem; margin:2px 0 8px; }
.wd-spark { width:100%; height:84px; }
.wd-forecast { font-size:.9rem; color:#B9C3FF; margin-top:6px; }
.wd-ring { position:relative; width:118px; margin:0 auto; }
.wd-ring svg { width:100%; }
.wd-ring-num { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; color:#fff; }
.wd-ring-num span { font:800 1.7rem var(--font-body); }
.wd-ring-num small { color:#8B92B8; font-weight:600; }
.wd-ring-num em { font:400 .68rem var(--font-body); color:#8B92B8; font-style:normal; margin-top:2px; }
.wd-bars { display:flex; gap:7px; align-items:flex-end; height:56px; margin-top:16px; justify-content:center; }
.wd-bars i { width:13px; border-radius:5px 5px 2px 2px; background:linear-gradient(180deg, #7C8CFF, #4E56D6); height:var(--h);
  transform-origin:bottom; animation:barGrow 1.4s cubic-bezier(.2,.8,.2,1) backwards; }
.wd-bars i:nth-child(2) { animation-delay:.12s; } .wd-bars i:nth-child(3) { animation-delay:.24s; }
.wd-bars i:nth-child(4) { animation-delay:.36s; } .wd-bars i:nth-child(5) { animation-delay:.48s; }
@keyframes barGrow { from { transform:scaleY(0); } }
.wow-chip { position:absolute; padding:10px 16px; border-radius:14px; background:rgba(22,27,54,.8); border:1px solid rgba(140,150,255,.25);
  color:#DDE2FF; font:700 .92rem var(--font-body); backdrop-filter:blur(10px); box-shadow:0 14px 36px rgba(3,6,24,.55); animation:floaty 6s ease-in-out infinite; }
.wow-chip.c1 { top:-22px; right:8%; animation-delay:.4s; }
.wow-chip.c2 { bottom:16%; left:-26px; animation-delay:1.2s; }
.wow-chip.c3 { bottom:-20px; right:20%; animation-delay:2s; }
@keyframes floaty { 50% { transform:translateY(-11px); } }
.wow-scroll { position:absolute; left:50%; bottom:22px; transform:translateX(-50%); width:26px; height:42px;
  border:2px solid rgba(160,170,255,.4); border-radius:14px; z-index:2; }
.wow-scroll i { position:absolute; left:50%; top:7px; width:4px; height:9px; margin-left:-2px; border-radius:3px; background:#9BA8FF; animation:wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 60% { transform:translateY(14px); opacity:0; } 100% { transform:translateY(0); opacity:0; } }
@media (prefers-reduced-motion: reduce) {
  .wow-aurora i, .wow-gradient-text, .wow-chip, .wd-bars i, .wow-scroll i, .pulse-dot { animation:none !important; }
}

/* ===== Внутренние сообщения ===== */
.msg-badge { margin-left:auto; background:var(--danger); color:#fff; font:700 .68rem var(--font-body); min-width:19px; height:19px; padding:0 5px; border-radius:10px; display:inline-flex; align-items:center; justify-content:center; }
.msg-tabs { display:flex; gap:6px; align-items:center; margin-bottom:16px; }
.msg-tab { padding:8px 16px; border-radius:10px; font-weight:600; color:var(--ink-2); text-decoration:none; }
.msg-tab.active { background:var(--brand-soft); color:var(--brand-ink); }
.msg-row { display:grid; grid-template-columns:200px 1fr auto; gap:14px; align-items:center; padding:15px 22px; border-bottom:1px solid var(--line); text-decoration:none; color:var(--ink); transition:background .12s; }
.msg-row:hover { background:var(--surface-2, #F7F8FC); }
.msg-row.unread { background:linear-gradient(90deg, rgba(39,67,227,.05), transparent); }
.msg-row.unread .msg-subj b::before { content:'●'; color:var(--brand); font-size:.7rem; margin-right:6px; vertical-align:middle; }
.msg-subj { overflow:hidden; }
.msg-subj b { margin-right:8px; } .msg-subj .muted { font-size:.9rem; }
.msg-kind { font-weight:700; font-size:.9rem; }
.msg-kind-ai { color:#7A2BE8; } .msg-kind-system { color:#0EA5E9; }
@media (max-width:640px){ .msg-row { grid-template-columns:1fr; gap:4px; } .msg-date { display:none; } }
.recip-box { border:1px solid var(--line); border-radius:12px; padding:8px; max-height:190px; overflow:auto; display:flex; flex-direction:column; gap:2px; }
.recip { display:flex; align-items:center; gap:9px; padding:7px 9px; border-radius:8px; cursor:pointer; }
.recip:hover { background:var(--brand-soft); }
.recip input { width:auto; }

/* Mission & Vision на Performance board */
.mv-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:8px; }
@media (max-width:760px){ .mv-grid { grid-template-columns:1fr; } }
.mv-card { display:flex; gap:14px; padding:20px 22px; border-radius:18px; position:relative; overflow:hidden;
  border:1px solid var(--line); transition:transform .2s ease, box-shadow .2s ease; }
.mv-card:hover { transform:translateY(-3px); box-shadow:0 18px 44px rgba(20,25,50,.12); }
.mv-mission { background:linear-gradient(135deg, #EEF1FF, #F7F5FF); }
.mv-vision  { background:linear-gradient(135deg, #ECFBF3, #EFF9FF); }
.mv-ic { font-size:1.8rem; flex:none; }
.mv-label { display:block; font:800 .74rem var(--font-body); letter-spacing:.08em; text-transform:uppercase; color:var(--brand-ink); margin-bottom:4px; }
.mv-card p { margin:0; line-height:1.6; color:var(--ink); font-size:1.02rem; }

/* ===== WOW-фичи: интерактивные блоки с живыми мини-визуализациями ===== */
.wow-features { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
@media (max-width:960px){ .wow-features { grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .wow-features { grid-template-columns:1fr; } }
.wow-feat { position:relative; overflow:hidden; padding:26px 26px 30px; border-radius:20px;
  background:linear-gradient(180deg, #fff, #FCFCFF); border:1px solid var(--line);
  transition:transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease; cursor:default; }
.wow-feat:hover { transform:translateY(-8px); box-shadow:0 30px 60px rgba(40,50,110,.16); border-color:rgba(99,110,255,.4); }
.wow-feat-glow { position:absolute; width:220px; height:220px; border-radius:50%; top:-90px; right:-70px;
  background:radial-gradient(circle, rgba(124,140,255,.22), transparent 68%); opacity:0; transition:opacity .35s ease; pointer-events:none; }
.wow-feat:hover .wow-feat-glow { opacity:1; }
.wow-feat-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.wow-feat-ic { width:54px; height:54px; border-radius:15px; display:grid; place-items:center; color:#fff;
  background:linear-gradient(135deg, #5B6CFF, #7A2BE8); box-shadow:0 10px 26px rgba(90,80,240,.4); transition:transform .3s ease; }
.wow-feat-ic svg { width:26px; height:26px; }
.wow-feat:hover .wow-feat-ic { transform:rotate(-8deg) scale(1.08); }
.wow-feat-viz { width:76px; height:46px; display:grid; place-items:center; opacity:.7; transition:opacity .3s ease; }
.wow-feat:hover .wow-feat-viz { opacity:1; }
.wow-feat h3 { font-size:1.18rem; margin:0 0 8px; }
.wow-feat p { margin:0; color:var(--ink-2); line-height:1.6; }
.wow-feat-arrow { position:absolute; right:24px; bottom:22px; color:var(--brand); font-weight:800; font-size:1.2rem;
  opacity:0; transform:translateX(-6px); transition:all .3s ease; }
.wow-feat:hover .wow-feat-arrow { opacity:1; transform:translateX(0); }
/* мини-визуализации */
.vz-bars { display:flex; gap:4px; align-items:flex-end; height:40px; }
.vz-bars i { width:9px; border-radius:3px 3px 1px 1px; height:var(--h); background:linear-gradient(180deg,#7C8CFF,#4E56D6); }
.wow-feat:hover .vz-bars i { animation:vzBar 1.1s cubic-bezier(.2,.8,.2,1); }
.wow-feat:hover .vz-bars i:nth-child(2){animation-delay:.08s} .wow-feat:hover .vz-bars i:nth-child(3){animation-delay:.16s}
.wow-feat:hover .vz-bars i:nth-child(4){animation-delay:.24s} .wow-feat:hover .vz-bars i:nth-child(5){animation-delay:.32s}
@keyframes vzBar { from { transform:scaleY(.15); transform-origin:bottom; } }
.vz-spark { width:76px; height:44px; }
.vz-spark path { stroke-dasharray:160; stroke-dashoffset:0; }
.wow-feat:hover .vz-spark path { animation:vzDraw 1.2s ease forwards; }
@keyframes vzDraw { from { stroke-dashoffset:160; } to { stroke-dashoffset:0; } }
.vz-ring { width:46px; height:46px; }
.vz-ring-fg { transition:stroke-dashoffset 1s ease; }
.wow-feat:hover .vz-ring-fg { stroke-dashoffset:12; }
.vz-dots { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.vz-dots i { width:10px; height:10px; border-radius:50%; background:#6366F1; opacity:.4; }
.wow-feat:hover .vz-dots i { animation:vzPulse 1.4s ease infinite; }
.wow-feat:hover .vz-dots i:nth-child(2){animation-delay:.2s} .wow-feat:hover .vz-dots i:nth-child(3){animation-delay:.4s} .wow-feat:hover .vz-dots i:nth-child(4){animation-delay:.6s}
@keyframes vzPulse { 50% { opacity:1; transform:scale(1.4); } }
.vz-chips { display:flex; flex-direction:column; gap:4px; align-items:flex-end; }
.vz-chips span { font:700 .64rem var(--font-body); padding:2px 8px; border-radius:6px; background:var(--brand-soft); color:var(--brand-ink); transition:transform .25s ease; }
.wow-feat:hover .vz-chips span:nth-child(1){transform:translateX(-4px)} .wow-feat:hover .vz-chips span:nth-child(3){transform:translateX(4px)}
@media (prefers-reduced-motion:reduce){ .wow-feat, .wow-feat-ic, .vz-bars i, .vz-spark path, .vz-dots i { animation:none !important; transition:none !important; } }
