/* ==========================================================================
   Nexus AI — страницы специалистов (/vortex/, /lexia/, /askold/, /specialisty/)
   Генерируется из data/team.json (build_team.py). Подключается после style.css.
   ========================================================================== */

.sp-page { padding: 26px 0 60px; max-width: 1100px; }

/* --- хлебные крошки --- */
.sp-crumbs { display: flex; gap: 9px; align-items: center; font-size: 13px; color: var(--ink-2, #8ea0bd); margin-bottom: 18px; flex-wrap: wrap; }
.sp-crumbs a { color: #a9c4ea; text-decoration: none; }
.sp-crumbs a:hover { color: #fff; text-decoration: underline; }
.sp-crumbs b { color: #fff; font-weight: 600; }

/* --- шапка специалиста: баннер + аватар + имя --- */
.sp-hero {
  position: relative; background: linear-gradient(165deg, rgba(28,36,58,.9), rgba(14,20,34,.96));
  border: 1px solid #2a3550; border-radius: 24px; overflow: hidden; padding: 0 34px 30px;
}
.sp-hero--flat { padding: 34px; }
.sp-banner { position: relative; height: 300px; margin: 0 -34px 0; overflow: hidden; }
.sp-banner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; }
.sp-banner::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,11,22,.1) 30%, rgba(12,18,32,.85) 78%, rgba(17,23,39,.99) 100%); }

.sp-head { display: flex; align-items: center; gap: 20px; margin-top: -56px; position: relative; z-index: 2; }
.sp-ava { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
  border: 3px solid rgba(150,195,255,.45); background: #0b1020; box-shadow: 0 16px 38px rgba(0,0,0,.6); }
.sp-who h1 { margin: 0; font-size: 38px; line-height: 1.1; letter-spacing: -1.2px; color: #fff; }
.sp-role { margin: 6px 0 0; font-size: 15.5px; color: #cfe0f8; font-weight: 600; }
.sp-mod { margin: 4px 0 0; font-size: 13px; color: var(--ink-2, #8ea0bd); }

.sp-tagline { margin: 22px 0 0; font-size: 16.5px; line-height: 1.75; color: #c3d2ea; max-width: 78ch; }

/* --- цифры-доказательства --- */
.sp-facts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.sp-fact { flex: 1 1 150px; min-width: 132px; background: rgba(12,18,32,.72); border: 1px solid #27324c;
  border-radius: 16px; padding: 14px 16px; }
.sp-fact b { display: block; font-size: 21px; color: #fff; letter-spacing: -.4px; }
.sp-fact span { display: block; font-size: 12.5px; color: var(--ink-2, #8ea0bd); margin-top: 3px; }

.sp-cta { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.sp-btn { display: inline-flex; align-items: center; }

/* --- две колонки: что делает / зоны ответственности --- */
.sp-cols { display: grid; grid-template-columns: 1.25fr .9fr; gap: 22px; margin-top: 26px; }
.sp-col { background: linear-gradient(165deg, rgba(28,36,58,.66), rgba(14,20,34,.9));
  border: 1px solid #2a3550; border-radius: 22px; padding: 26px 28px; }
.sp-col h2 { font-size: 20px; color: #dce9ff; margin: 0 0 16px; }
.sp-list { list-style: none; padding: 0; margin: 0; }
.sp-list li { position: relative; padding: 0 0 12px 26px; color: #bdcbe6; font-size: 15.5px; line-height: 1.6; }
.sp-list li::before { content: '▸'; position: absolute; left: 4px; top: 0; color: #6fb0ff; }
.sp-tags { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; padding: 0; margin: 0; }
.sp-tags li { background: rgba(88,166,255,.1); border: 1px solid rgba(88,166,255,.32); color: #cfe2ff;
  border-radius: 999px; padding: 7px 14px; font-size: 13.5px; }

/* --- статьи базы знаний --- */
.sp-kb { margin-top: 26px; }
.sp-kb h2, .sp-faq h2, .sp-other h2 { font-size: 21px; color: #dce9ff; margin: 0 0 16px; }
.sp-kb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.sp-kb-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none;
  background: linear-gradient(160deg, rgba(28,36,58,.8), rgba(16,22,38,.94)); border: 1px solid #2a3550;
  border-radius: 18px; padding: 20px; transition: transform .25s, border-color .25s; }
.sp-kb-card:hover { transform: translateY(-3px); border-color: rgba(120,175,255,.55); }
.sp-kb-t { color: #e7f0ff; font-size: 15.5px; font-weight: 600; line-height: 1.45; }
.sp-kb-l { color: #7fb2ff; font-size: 13px; }

/* --- FAQ --- */
.sp-faq { margin-top: 30px; }
.sp-q { background: rgba(20,27,45,.8); border: 1px solid #2a3550; border-radius: 16px; padding: 16px 20px; margin-bottom: 10px; }
.sp-q summary { cursor: pointer; color: #e2ecff; font-size: 16px; font-weight: 600; }
.sp-q p { margin: 10px 0 0; color: #b7c6e2; font-size: 15px; line-height: 1.7; }

/* --- другие специалисты --- */
.sp-other { margin-top: 34px; }
.sp-other-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.sp-other-card { display: flex; align-items: center; gap: 14px; text-decoration: none;
  background: rgba(18,25,42,.85); border: 1px solid #2a3550; border-radius: 18px; padding: 16px 18px; }
.sp-other-card:hover { border-color: rgba(120,175,255,.5); }
.sp-other-card img { border-radius: 50%; object-fit: cover; border: 2px solid rgba(150,195,255,.4); }
.sp-other-card b { display: block; color: #fff; font-size: 16px; }
.sp-other-card i { display: block; color: var(--ink-2, #8ea0bd); font-size: 12.5px; font-style: normal; margin-top: 2px; }

.sp-note { margin-top: 26px; }

/* --- хаб команды --- */
.sp-hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.sp-hub-card { display: flex; align-items: center; gap: 16px; text-decoration: none;
  background: linear-gradient(160deg, rgba(28,36,58,.85), rgba(16,22,38,.95)); border: 1px solid #2a3550;
  border-radius: 20px; padding: 20px; transition: transform .25s, border-color .25s; }
.sp-hub-card:hover { transform: translateY(-3px); border-color: rgba(120,175,255,.55); }
.sp-hub-card img { border-radius: 50%; object-fit: cover; border: 2px solid rgba(150,195,255,.42); }
.sp-hub-body b { display: block; color: #fff; font-size: 18px; }
.sp-hub-body i { display: block; color: #c6d6ee; font-size: 13.5px; font-style: normal; margin-top: 3px; }
.sp-hub-body em { display: block; color: var(--ink-2, #8ea0bd); font-size: 12px; font-style: normal; margin-top: 2px; }

/* --- действия в карточке на главной --- */
.card-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.sp-more { font-size: 13.5px; color: #8fc0ff; text-decoration: none; }
.sp-more:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .sp-page { padding: 18px 0 44px; }
  .sp-hero { padding: 0 20px 24px; border-radius: 20px; }
  .sp-hero--flat { padding: 24px 20px; }
  .sp-banner { height: 210px; margin: 0 -20px; }
  .sp-head { margin-top: -40px; gap: 14px; }
  .sp-ava { width: 78px; height: 78px; }
  .sp-who h1 { font-size: 27px; }
  .sp-role { font-size: 14px; }
  .sp-tagline { font-size: 15.5px; }
  .sp-cols { grid-template-columns: 1fr; }
  .sp-col { padding: 20px; }
  .sp-fact b { font-size: 19px; }
}


/* ── Дневник: редакционная лента глав ───────────────────────── */
.st-list { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid rgba(255,255,255,.07); }
.st-item { border-bottom: 1px solid rgba(255,255,255,.07); }
.st-item a {
  display: grid; grid-template-columns: 52px 84px 1fr auto; gap: 18px; align-items: center;
  padding: 14px 6px; text-decoration: none; color: inherit; border-radius: 12px;
  transition: background .18s ease;
}
.st-item a:hover { background: rgba(120,170,255,.055); }
.st-num { font: 600 21px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: rgba(150,180,225,.45); }
.st-thumb img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; display: block; }
.st-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.st-body b { font-size: 17px; color: var(--text); }
.st-body span { font-size: 14.5px; color: var(--faint); line-height: 1.45; }
.st-more { font-size: 14px; color: var(--cyan); white-space: nowrap; opacity: 0; transition: opacity .18s ease; }
.st-item a:hover .st-more, .st-item a:focus-visible .st-more { opacity: 1; }
@media (max-width: 760px) {
  .st-item a { grid-template-columns: 42px 64px 1fr; gap: 12px; padding: 12px 2px; }
  .st-thumb img { width: 64px; height: 64px; border-radius: 10px; }
  .st-num { font-size: 17px; }
  .st-more { display: none; }
  .st-body b { font-size: 16px; }
  .st-body span { font-size: 13.5px; }
}
