/* ============================================================
   ФНП Админка — тёмная тема
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #07070b;
  --surface: rgba(20, 20, 28, .6);
  --surface-2: rgba(30, 30, 40, .5);
  --border: rgba(255, 255, 255, .07);
  --border-hi: rgba(255, 255, 255, .14);
  --text: #f5f4ff;
  --muted: #8a86a5;
  --purple: #a855f7;
  --pink: #ec4899;
  --cyan: #22d3ee;
  --blue: #6366f1;
  --green: #10b981;
  --red: #ef4444;
  --amber: #f59e0b;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 10px 40px -10px rgba(0, 0, 0, .6);
  --shadow-glow: 0 0 40px -8px rgba(168, 85, 247, .5);
}

/* ============================================================
   ТЁМНАЯ ТЕМА ДЛЯ НАТИВНЫХ ЭЛЕМЕНТОВ (дропдауны, скроллы и т.п.)
   ============================================================ */
html, body {
  color-scheme: dark;
}
input, select, textarea, button {
  color-scheme: dark;
}
select option {
  background-color: #1a1220;
  color: #f5f4ff;
  padding: 6px 10px;
}
select optgroup {
  background-color: #1a1220;
  color: #c4b5fd;
  font-weight: 700;
}
/* Выбранный пункт — фиолетовый (без градиента!) */
select option:checked,
select option:checked:hover,
select option:checked:focus,
select:focus option:checked {
  background-color: #7c3aed;
  color: #ffffff;
}
/* Наведение на пункт — тёмно-фиолетовый */
select option:hover,
select option:focus {
  background-color: #2d1b4e;
  color: #ffffff;
}

/* ============================================================
   БАЗА
   ============================================================ */
html, body { height: 100%; }

body {
  font: 15px/1.55 'Inter', -apple-system, 'Segoe UI', Roboto, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   АНИМИРОВАННЫЙ ФОН
   ============================================================ */
.bg-orbs {
  position: fixed; inset: 0; z-index: -1;
  overflow: hidden; pointer-events: none;
}
.bg-orbs::before,
.bg-orbs::after {
  content: ''; position: absolute; border-radius: 50%;
  filter: blur(120px); opacity: .5;
}
.bg-orbs::before {
  width: 60vw; height: 60vw; top: -20vw; left: -10vw;
  background: radial-gradient(circle, #7c3aed, transparent 70%);
  animation: orb1 22s ease-in-out infinite;
}
.bg-orbs::after {
  width: 55vw; height: 55vw; bottom: -20vw; right: -10vw;
  background: radial-gradient(circle, #db2777, transparent 70%);
  animation: orb2 26s ease-in-out infinite;
}
@keyframes orb1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(8vw, 10vh) scale(1.15); }
}
@keyframes orb2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-6vw, -8vh) scale(1.1); }
}

.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* ============================================================
   КУРСОР-СВЕЧЕНИЕ
   ============================================================ */
.cursor-glow {
  position: fixed; width: 400px; height: 400px; border-radius: 50%;
  pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(168, 85, 247, .12), transparent 60%);
  transform: translate(-50%, -50%);
  transition: opacity .3s;
  mix-blend-mode: screen;
}

/* ============================================================
   ВЕРХНЯЯ ПАНЕЛЬ
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 32px;
  background: rgba(10, 10, 15, .7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 17px; letter-spacing: -.02em;
}
.brand-logo {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 0 20px -4px rgba(168, 85, 247, .6);
  font-size: 18px;
}
.brand-text {
  background: linear-gradient(90deg, #fff 0%, #c4b5fd 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.topbar nav {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.topbar nav a {
  position: relative;
  color: var(--muted); text-decoration: none;
  padding: 8px 14px; border-radius: 10px;
  font-size: 14px; font-weight: 500;
  transition: all .2s;
}
.topbar nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .05);
}
.topbar nav a.active {
  color: var(--text);
  background: rgba(168, 85, 247, .14);
}
.topbar nav a.active::after {
  content: ''; position: absolute;
  bottom: -15px; left: 14px; right: 14px; height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  border-radius: 2px;
}
.who {
  display: flex; align-items: center; gap: 10px;
  margin-left: 16px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  font-size: 13px;
}
.who .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 12px; color: #fff;
}
.who .meta { display: flex; flex-direction: column; line-height: 1.1; }
.who .name { font-weight: 600; font-size: 13px; }
.who .role {
  font-size: 10px; text-transform: uppercase;
  letter-spacing: .06em; opacity: .75;
}
.logout { color: #fda4af !important; }
.logout:hover { background: rgba(239, 68, 68, .12) !important; }

/* ============================================================
   КОНТЕЙНЕР
   ============================================================ */
.container {
  max-width: 1180px; margin: 0 auto;
  padding: 40px 32px 60px;
  position: relative; z-index: 1;
}

/* ============================================================
   ТИПОГРАФИКА
   ============================================================ */
h1 {
  font-size: 32px; font-weight: 800; letter-spacing: -.03em;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 0%, #c4b5fd 60%, #f0abfc 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
h2 {
  font-size: 19px; font-weight: 700;
  margin: 32px 0 14px; letter-spacing: -.01em;
}
.muted { color: var(--muted); }
.subtitle { color: var(--muted); font-size: 15px; margin-bottom: 32px; }

/* ============================================================
   КАРТОЧКИ
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.card::before {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, .12), transparent 40%,
    transparent 60%, rgba(168, 85, 247, .12));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.card:hover { border-color: var(--border-hi); }

/* ============================================================
   РАЗВИЛКА
   ============================================================ */
.branch-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; margin: 24px 0 40px;
}
.branch-card {
  position: relative;
  display: block; text-decoration: none; color: var(--text);
  padding: 32px; border-radius: var(--radius-lg);
  min-height: 200px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s;
  transform-style: preserve-3d;
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.branch-card::before {
  content: ''; position: absolute; inset: 0;
  opacity: .5; transition: opacity .3s;
}
.branch-card.fnp::before {
  background:
    radial-gradient(circle at top right, rgba(168, 85, 247, .4), transparent 60%),
    radial-gradient(circle at bottom left, rgba(236, 72, 153, .3), transparent 60%);
}
.branch-card.fh::before {
  background:
    radial-gradient(circle at top right, rgba(60, 60, 70, .6), transparent 60%),
    radial-gradient(circle at bottom left, rgba(20, 20, 25, .8), transparent 60%);
}
.branch-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hi);
  box-shadow: var(--shadow-glow);
}
.branch-card:hover::before { opacity: .85; }
.branch-inner { position: relative; z-index: 1; }
.branch-icon {
  font-size: 44px; margin-bottom: 16px; display: inline-block;
  filter: drop-shadow(0 0 20px currentColor);
}
.branch-card h3 {
  font-size: 24px; font-weight: 800;
  letter-spacing: -.02em; margin-bottom: 8px;
}
.branch-card p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.branch-tag {
  position: absolute; top: 20px; right: 20px; z-index: 1;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .15);
}

/* ============================================================
   СТАТИСТИКА
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.stat {
  padding: 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  position: relative; overflow: hidden;
}
.stat-value {
  font-size: 36px; font-weight: 800; letter-spacing: -.04em;
  background: linear-gradient(135deg, #fff, #a5b4fc);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; line-height: 1;
}
.stat-label {
  font-size: 12px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em; margin-top: 8px;
}
.stat-icon {
  position: absolute; top: 16px; right: 16px;
  font-size: 20px; opacity: .5;
}

/* ============================================================
   ТАБЛИЦЫ
   ============================================================ */
.tbl {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: 13.5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(20px);
}
.tbl th, .tbl td {
  padding: 13px 16px; text-align: left;
  border-bottom: 1px solid var(--border);
}
.tbl th {
  background: rgba(255, 255, 255, .03);
  color: var(--muted); font-weight: 600;
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
}
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background .15s; }
.tbl tbody tr:hover { background: rgba(168, 85, 247, .05); }
.tbl code {
  background: rgba(34, 211, 238, .1); color: var(--cyan);
  padding: 3px 8px; border-radius: 6px; font-size: 12px;
}

/* ============================================================
   КНОПКИ
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  justify-content: center;
  padding: 10px 18px; border-radius: 11px;
  border: none; cursor: pointer;
  font-weight: 600; font-size: 14px; font-family: inherit;
  transition: transform .15s, filter .2s, box-shadow .2s;
  position: relative; overflow: hidden;
  text-decoration: none;
  color: var(--text);
}
.btn:active { transform: scale(.97); }
.btn.primary {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(168, 85, 247, .6);
}
.btn.primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 12px 32px -8px rgba(168, 85, 247, .8);
}
.btn.ghost {
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn.ghost:hover { background: rgba(255, 255, 255, .1); }
.btn.danger {
  background: rgba(239, 68, 68, .15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, .3);
}
.btn.danger:hover { background: rgba(239, 68, 68, .25); }
.btn.small { padding: 6px 10px; font-size: 12px; border-radius: 8px; }

/* ============================================================
   ФОРМЫ
   ============================================================ */
input, select, textarea {
  width: 100%; padding: 11px 14px; border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, .3);
  color: var(--text);
  font-size: 14px; font-family: inherit;
  transition: all .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--purple);
  background: rgba(168, 85, 247, .05);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, .12);
}
label {
  display: block; margin-bottom: 14px;
  color: var(--muted); font-size: 12px;
  text-transform: uppercase; letter-spacing: .06em; font-weight: 600;
}
label input, label select, label textarea {
  text-transform: none; letter-spacing: normal;
  color: var(--text); font-weight: 400;
  font-size: 14px; margin-top: 6px;
}
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: end; }
.row label { flex: 1; min-width: 150px; }

/* ============================================================
   ЛОГИН
   ============================================================ */
.login-bg {
  min-height: 100vh;
  display: grid; place-items: center; padding: 24px;
  position: relative;
}
.login-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 420px;
  padding: 40px; border-radius: 24px;
  background: rgba(18, 18, 26, .7);
  border: 1px solid var(--border);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  box-shadow:
    0 20px 60px -20px rgba(0, 0, 0, .8),
    0 0 80px -30px rgba(168, 85, 247, .5);
  animation: cardIn .6s cubic-bezier(.2, .8, .2, 1);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.login-card::before {
  content: ''; position: absolute; inset: -1px;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg,
    rgba(168, 85, 247, .5), transparent 30%,
    transparent 70%, rgba(236, 72, 153, .5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.login-logo {
  width: 64px; height: 64px; border-radius: 18px;
  margin: 0 auto 20px;
  display: grid; place-items: center;
  font-size: 32px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 0 40px -8px rgba(168, 85, 247, .8);
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.login-card h1 { text-align: center; font-size: 24px; margin-bottom: 4px; }
.login-card .muted { text-align: center; font-size: 13px; margin-bottom: 28px; }
.login-card .btn { width: 100%; margin-top: 10px; padding: 13px; font-size: 15px; }

/* ============================================================
   ALERT / TOAST
   ============================================================ */
.alert {
  background: rgba(236, 72, 153, .1);
  border: 1px solid rgba(236, 72, 153, .3);
  color: #fbcfe8;
  padding: 12px 16px; border-radius: 12px;
  margin: 16px 0; font-size: 14px;
  display: flex; align-items: center; gap: 10px;
  animation: slideIn .3s ease;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.toast {
  position: fixed; top: 24px; right: 24px; z-index: 1000;
  padding: 14px 20px; border-radius: 14px;
  background: rgba(20, 20, 30, .9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .6);
  font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  animation: toastIn .4s cubic-bezier(.2, .8, .2, 1);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   РОЛИ
   ============================================================ */
.role {
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  letter-spacing: .02em; display: inline-block;
}
.role-card { padding: 20px; margin: 14px 0; }
.role-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.role-dot {
  width: 14px; height: 14px; border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 12px currentColor;
}
.role-name-input { flex: 1; font-size: 16px; font-weight: 600; padding: 8px 12px; }
.slug { color: var(--muted); font-size: 12px; font-family: ui-monospace, monospace; }

/* ============================================================
   ГЛОССАРИЙ
   ============================================================ */
.glossary dt {
  font-weight: 700; color: var(--cyan);
  margin-top: 16px; font-size: 15px;
}
.glossary dd { margin: 6px 0 0; color: var(--muted); line-height: 1.6; }
.info-list { list-style: none; padding: 0; }
.info-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex; gap: 12px; align-items: flex-start;
}
.info-list li:last-child { border-bottom: none; }

/* ============================================================
   ЗАГОЛОВКИ ВЕТОК
   ============================================================ */
.branch-header {
  padding: 32px; border-radius: var(--radius-lg);
  margin-bottom: 28px;
  position: relative; overflow: hidden;
}
.fnp-header {
  background: linear-gradient(135deg, rgba(168, 85, 247, .2), rgba(236, 72, 153, .15));
  border: 1px solid rgba(168, 85, 247, .35);
}
.fh-header {
  background: linear-gradient(135deg, rgba(30, 30, 35, .9), rgba(10, 10, 12, .9));
  border: 1px solid rgba(255, 255, 255, .12);
}
.branch-header h1 { margin-bottom: 4px; }

/* ============================================================
   РЕДАКТОР ТЕСТОВ
   ============================================================ */
.q-card {
  background: rgba(0, 0, 0, .25);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
}
.q-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
}
.q-num {
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff; font-weight: 700; font-size: 13px;
  flex-shrink: 0;
}
.q-type {
  width: auto; padding: 6px 10px;
  font-size: 12px; margin: 0;
}
.q-head .btn { margin-left: auto; }
.q-text {
  width: 100%; min-height: 60px;
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, .35);
  color: var(--text);
  font-family: inherit; font-size: 14px;
  resize: vertical; margin-bottom: 12px;
}
.q-options {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 10px;
}
.opt-row { display: flex; align-items: center; gap: 10px; }
.opt-row input[type=radio],
.opt-row input[type=checkbox] {
  width: 18px; height: 18px; flex-shrink: 0; margin: 0;
  cursor: pointer;
  accent-color: var(--purple);
}
.opt-row input[type=text] { flex: 1; margin: 0; }
.opt-row .btn.small { padding: 6px 10px; }

/* Варианты в режиме прохождения теста */
.opt-row-static {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 12px; margin: 0; border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  font-weight: 400; text-transform: none; letter-spacing: normal;
  font-size: 14px; color: var(--text);
}
.opt-row-static:hover {
  background: rgba(168, 85, 247, .07);
  border-color: var(--border);
}
.opt-row-static input {
  width: 18px; height: 18px; flex-shrink: 0;
  margin: 2px 0 0 0;
  accent-color: var(--purple);
  cursor: pointer;
}
.opt-row-static input:checked ~ .opt-text {
  color: #fff; font-weight: 500;
}
.opt-row-static .opt-text { flex: 1; line-height: 1.4; }
.q-text-static { font-weight: 600; }

/* ============================================================
   ПОДВАЛ
   ============================================================ */
.foot {
  text-align: center; color: var(--muted);
  font-size: 12px; padding: 40px 20px;
  position: relative; z-index: 1;
}
.foot span {
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--cyan));
  -webkit-background-clip: text; background-clip: text;
  color: transparent; font-weight: 600;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 780px) {
  .branch-grid { grid-template-columns: 1fr; }
  .topbar { padding: 12px 16px; flex-wrap: wrap; gap: 12px; }
  .topbar nav { gap: 2px; }
  .topbar nav a { padding: 6px 10px; font-size: 13px; }
  .who { margin-left: 0; padding: 4px 10px 4px 4px; }
  .container { padding: 24px 16px 40px; }
  h1 { font-size: 24px; }
}

/* ============================================================
   МЕТОДИЧКА — табы и статьи
   ============================================================ */
.tabs {
  display: flex; gap: 4px; margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.tab {
  padding: 12px 22px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all .2s;
}
.tab:hover { color: var(--text); }
.tab.active {
  color: var(--text);
  border-bottom-color: var(--purple);
}
.tab-locked { opacity: .5; }
.tab-locked::after {
  content: ' 🔒';
  font-size: 11px;
}

.article-list { display: grid; gap: 12px; }

.article-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all .2s;
}
.article-item:hover {
  border-color: var(--border-hi);
  transform: translateX(4px);
  box-shadow: var(--shadow);
}
.article-item .icon { font-size: 22px; }
.article-item .title { flex: 1; font-weight: 600; font-size: 15px; }
.article-item .cat {
  color: var(--muted);
  font-size: 11px;
  padding: 3px 10px;
  background: rgba(255, 255, 255, .06);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.article-content {
  white-space: pre-wrap;
  line-height: 1.75;
  font-size: 15px;
  color: var(--text);
}
.article-meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

textarea[name="content"] {
  font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  min-height: 400px;
  resize: vertical;
  line-height: 1.65;
}

/* 3-я вкладка «Термины» — голубой акцент */
.tabs .tab:nth-child(3).active {
  border-bottom-color: var(--cyan);
  color: var(--cyan);
}