/* ============================================================
   Шиловская И.А. — style.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@300;400;500;600&display=swap');

/* ── 1. ПЕРЕМЕННЫЕ ───────────────────────────────────────── */
:root {
  --navy-950: #1A1A3A;
  --navy-900: #252550;
  --navy-800: #333363;
  --navy-700: #3E3E78;
  --navy-600: #4A4A8C;
  --navy-500: #5A5AA0;
  --navy-400: #7070B8;
  --navy-300: #9494CC;

  --violet-400: #8080CC;
  --violet-300: #9999DD;
  --violet-200: #ADADEA;
  --violet-100: #C8C8F2;
  --violet-50:  #E8E8FA;

  --white:    #FFFFFF;
  --gray-50:  #F7F7FC;
  --gray-100: #EEEEF8;
  --gray-200: #DDDDF0;
  --gray-300: #BBBBD8;
  --gray-400: #9090B8;
  --gray-500: #666690;

  --green-700: #255C3E;
  --green-500: #3A9966;
  --green-200: #B0E0C8;
  --green-50:  #EEF9F4;

  --orange-700: #7A4A1A;
  --orange-500: #C97B28;
  --orange-200: #F5D0A8;
  --orange-50:  #FDF3E8;

  --red-700: #5E2020;
  --red-500: #A83838;
  --red-200: #EBB5B5;
  --red-50:  #FBF0F0;

  --font-display: 'Playfair Display', serif;
  --font-body:    'IBM Plex Sans', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  --container-max: 1100px;
  --container-px:  40px;
  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --transition: 0.18s ease;
}

/* ── 2. RESET ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy-800);
  background: var(--gray-50);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: var(--font-body); font-size: 14px; }

/* ── 3. LAYOUT ───────────────────────────────────────────── */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-px); }
main { flex: 1; }

/* ── 4. HEADER ───────────────────────────────────────────── */
.header {
  background: var(--navy-900);
  border-bottom: 1px solid var(--navy-700);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 32px;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.header__logo-icon {
  width: 40px; height: 40px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  overflow: visible;
  flex-shrink: 0;
}
.header__logo-icon img { width: 36px; height: 36px; object-fit: contain; }
.header__logo:hover .header__logo-icon { background: transparent; }
.header__logo-text {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
}
.header__logo-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--violet-300);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.header__nav { display: flex; align-items: center; gap: 4px; }
.header__nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-300);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.header__nav-link:hover { color: var(--white); background: rgba(255,255,255,.07); }
.header__nav-link--active { color: var(--white); background: rgba(255,255,255,.1); }
.header__nav-link--active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 16px; right: 16px;
  height: 2px;
  background: var(--violet-300);
  border-radius: 1px 1px 0 0;
}
.header__auth { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ── 5. FOOTER ───────────────────────────────────────────── */
.footer {
  background: var(--navy-950);
  border-top: 1px solid var(--navy-800);
  padding: 48px 0 32px;
  margin-top: auto;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--navy-800);
  margin-bottom: 32px;
}
.footer__brand-name {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}
.footer__brand-desc { font-size: 13px; color: var(--gray-400); line-height: 1.7; max-width: 280px; }
.footer__col-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--violet-300);
  margin-bottom: 16px;
}
.footer__nav { display: flex; flex-direction: column; gap: 8px; }
.footer__nav-link { font-size: 14px; color: var(--gray-400); transition: color var(--transition); }
.footer__nav-link:hover { color: var(--gray-200); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; }
.footer__copy { font-family: var(--font-mono); font-size: 12px; color: var(--gray-500); }
.footer__copy span { color: var(--gray-400); }

/* ── 6. КНОПКИ ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px; font-weight: 500;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--sm  { font-size: 13px; padding: 6px 14px; }
.btn--lg  { font-size: 15px; padding: 12px 28px; }
.btn--full { width: 100%; }

.btn--primary   { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); }
.btn--primary:hover { background: var(--navy-900); border-color: var(--navy-900); }

.btn--secondary { background: transparent; color: var(--navy-800); border-color: var(--navy-800); }
.btn--secondary:hover { background: var(--navy-800); color: var(--white); }

.btn--ghost     { background: transparent; color: var(--navy-600); border-color: var(--gray-200); }
.btn--ghost:hover { border-color: var(--navy-500); color: var(--navy-800); }

.btn--danger    { background: var(--red-500); color: var(--white); border-color: var(--red-500); }
.btn--danger:hover { background: var(--red-700); border-color: var(--red-700); }

.btn--outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn--outline-white:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); }

.btn--filled-white { background: var(--violet-200); color: var(--navy-900); border-color: var(--violet-200); }
.btn--filled-white:hover { background: var(--violet-300); border-color: var(--violet-300); }

.btn--ghost-white { background: transparent; color: var(--gray-300); border-color: transparent; }
.btn--ghost-white:hover { color: var(--white); background: rgba(255,255,255,.07); }

/* ── 7. КАРТОЧКИ ─────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover { border-color: var(--navy-300); box-shadow: 0 4px 16px rgba(51,51,99,.08); }
.card__tag {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--navy-500); margin-bottom: 12px;
}
.card__title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 600;
  color: var(--navy-900); margin-bottom: 8px; line-height: 1.3;
}
.card__body  { font-size: 14px; color: var(--gray-500); line-height: 1.7; }
.card__footer {
  margin-top: 24px; padding-top: 16px;
  border-top: 1px solid var(--gray-100);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.card--dark { background: var(--navy-800); border-color: var(--navy-700); }
.card--dark .card__tag   { color: var(--violet-300); }
.card--dark .card__title { color: var(--white); }
.card--dark .card__body  { color: var(--gray-300); }
.card--dark .card__footer { border-color: var(--navy-700); }
.card--dark:hover { border-color: var(--violet-400); box-shadow: 0 4px 24px rgba(128,128,204,.15); }

/* ── 8. БЕЙДЖИ ───────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; padding: 2px 8px; border-radius: 2px;
}
.badge--primary { background: var(--navy-800); color: var(--white); }
.badge--light   { background: var(--gray-100); color: var(--navy-600); border: 1px solid var(--gray-200); }
.badge--outline { background: transparent; color: var(--navy-500); border: 1px solid var(--gray-300); }
.badge--success { background: var(--green-50);  color: var(--green-700);  border: 1px solid var(--green-200); }
.badge--warning { background: var(--orange-50); color: var(--orange-700); border: 1px solid var(--orange-200); }
.badge--error   { background: var(--red-50);    color: var(--red-700);    border: 1px solid var(--red-200); }

/* ── 9. ФОРМЫ ────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--navy-700); margin-bottom: 8px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 10px 16px;
  color: var(--navy-800); background: var(--white);
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  outline: none; transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--navy-500); box-shadow: 0 0 0 3px rgba(90,90,160,.12); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-hint  { font-size: 12px; color: var(--gray-400); margin-top: 4px; font-family: var(--font-mono); }
.form-error { font-size: 12px; color: var(--red-500); margin-top: 4px; }
.input--error { border-color: var(--red-500) !important; }

/* ── 10. АЛЕРТЫ ──────────────────────────────────────────── */
.alert {
  padding: 14px 18px; border-radius: var(--radius-md);
  font-size: 14px; margin-bottom: 16px; border: 1px solid transparent;
}
.alert--success { background: var(--green-50);  color: var(--green-700);  border-color: var(--green-200); }
.alert--warning { background: var(--orange-50); color: var(--orange-700); border-color: var(--orange-200); }
.alert--error   { background: var(--red-50);    color: var(--red-700);    border-color: var(--red-200); }
.alert--info    { background: var(--violet-50); color: var(--navy-700);   border-color: var(--violet-100); }

/* ── 11. HERO ────────────────────────────────────────────── */
.hero {
  background: var(--navy-800);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  border: 56px solid var(--navy-700);
  opacity: .35; pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: -60px; left: 8%;
  width: 200px; height: 200px; border-radius: 50%;
  border: 32px solid var(--navy-700);
  opacity: .2; pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: center;
}
.hero__content { }
.hero__tag {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--violet-300); margin-bottom: 16px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: 48px; font-weight: 700;
  color: var(--white); line-height: 1.15; margin-bottom: 16px;
}
.hero__subtitle {
  font-size: 16px; color: var(--gray-300);
  max-width: 480px; line-height: 1.7; margin-bottom: 36px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Рамка фото */
.hero__photo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero__photo {
  width: 240px; height: 280px;
  border: 2px solid var(--violet-400);
  border-radius: var(--radius-lg);
  padding: 4px;
  position: relative;
}
.hero__photo::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(128,128,204,.25);
  border-radius: 12px;
  pointer-events: none;
}
.hero__photo-inner {
  width: 100%; height: 100%;
  background: var(--navy-700);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero__photo-inner img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__photo-placeholder {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--navy-400); text-align: center; line-height: 1.8;
}

/* ── 12. STATS ───────────────────────────────────────────── */
.stats {
  background: var(--navy-900);
  border-top: 1px solid var(--navy-700);
  border-bottom: 1px solid var(--navy-700);
  padding: 32px 0;
}
.stats__inner { display: flex; }
.stats__item {
  flex: 1; text-align: center;
  padding: 16px 24px;
  border-right: 1px solid var(--navy-700);
}
.stats__item:last-child { border-right: none; }
.stats__number {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 700;
  color: var(--white); line-height: 1; margin-bottom: 4px;
}
.stats__label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--violet-300);
}

/* ── 13. СЕКЦИИ ──────────────────────────────────────────── */
.section { padding: 80px 0; }
.section + .section { border-top: 1px solid var(--gray-200); }
.section__header { margin-bottom: 48px; }
.section__tag {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--navy-500);
  border-left: 3px solid var(--navy-800);
  padding-left: 12px; margin-bottom: 12px;
}
.section__title {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 600; color: var(--navy-900);
}
.section__lead { font-size: 15px; color: var(--gray-500); margin-top: 8px; max-width: 560px; }
.section__footer { margin-top: 48px; text-align: center; }

/* Тёмная секция */
.section--dark {
  background: var(--navy-900);
  border-top: none !important;
}
.section--dark + .section { border-top: none; }
.section__tag--light { color: var(--violet-300); border-left-color: var(--violet-400); }
.section__title--light { color: var(--white); }
.section__lead--light { color: var(--gray-400); }

/* ── 14. СЕТКИ ───────────────────────────────────────────── */
.cards-grid   { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); }
.cards-grid--2 { grid-template-columns: repeat(2,1fr); }
.cards-grid--3 { grid-template-columns: repeat(3,1fr); }

/* ── 15. КАРТОЧКА ПУБЛИКАЦИИ ─────────────────────────────── */
.pub-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.pub-card__date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-400);
}

/* ── 16. КАРТОЧКИ НАГРАД ─────────────────────────────────── */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.award-card {
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.award-card:hover {
  border-color: var(--violet-400);
  box-shadow: 0 4px 20px rgba(128,128,204,.15);
}
.award-card__img {
  width: 100%; height: 120px;
  background: var(--navy-700);
  border-bottom: 1px solid var(--navy-600);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.award-card__img img.award-card__img-svg {
  width: 64px; height: 64px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(73%) sepia(40%) saturate(400%) hue-rotate(200deg) brightness(110%);
  opacity: 0.9;
}
.award-card__img img:not(.award-card__img-svg) { width: 100%; height: 100%; object-fit: cover; }
.award-card__body { padding: 20px; }
.award-card__meta {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.award-card__year {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--navy-400);
}
.award-card__title {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600;
  color: var(--white); margin-bottom: 6px; line-height: 1.3;
}
.award-card__desc {
  font-size: 12px; color: var(--gray-400); line-height: 1.6;
}

/* Неоновый бейдж для наград */
.badge--neon {
  background: transparent;
  color: var(--violet-300);
  border: 1px solid var(--violet-400);
  box-shadow: 0 0 6px rgba(128,128,204,.5), inset 0 0 6px rgba(128,128,204,.1);
  text-shadow: 0 0 8px rgba(153,153,221,.8);
}

/* ── 17. АВТОРИЗАЦИЯ ─────────────────────────────────────── */
.auth-page {
  min-height: calc(100vh - 64px);
  display: flex; align-items: center; justify-content: center;
  padding: 48px 20px;
}
.auth-box {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 48px; width: 100%; max-width: 440px;
}
.auth-box__tag {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--violet-400); margin-bottom: 8px;
}
.auth-box__title {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 600;
  color: var(--navy-900); margin-bottom: 32px;
}
.auth-box__footer { margin-top: 24px; text-align: center; font-size: 13px; color: var(--gray-500); }
.auth-box__footer a { color: var(--navy-600); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }

/* ── 18. КАБИНЕТ ─────────────────────────────────────────── */
.cabinet { padding: 48px 0; }
.cabinet__inner {
  display: grid; grid-template-columns: 220px 1fr;
  gap: 40px; align-items: start;
}
.cabinet-nav {
  position: sticky; top: 80px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); overflow: hidden;
}
.cabinet-nav__item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; font-size: 14px; color: var(--navy-600);
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition), color var(--transition);
  cursor: pointer; text-decoration: none; width: 100%; text-align: left;
}
.cabinet-nav__item:last-child { border-bottom: none; }
.cabinet-nav__item:hover { background: var(--gray-50); color: var(--navy-900); }
.cabinet-nav__item--active { background: var(--navy-800); color: var(--white); }

/* ── 19. СТУДЕНТАМ — ВКЛАДКИ ─────────────────────────────── */
.tabs { padding: 48px 0; }
.tabs__nav {
  display: flex; gap: 4px;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 40px; flex-wrap: wrap;
}
.tabs__btn {
  padding: 12px 24px; font-size: 14px; font-weight: 500;
  color: var(--gray-500); background: transparent; border: none;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  cursor: pointer; transition: color var(--transition), border-color var(--transition);
  font-family: var(--font-body);
}
.tabs__btn:hover { color: var(--navy-800); }
.tabs__btn--active { color: var(--navy-800); border-bottom-color: var(--navy-800); font-weight: 600; }
.tabs__panel { display: none; }
.tabs__panel--active { display: block; animation: fadeUp .2s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.material-btn {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px; background: var(--white);
  border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  color: var(--navy-800); font-size: 15px; font-weight: 500;
  text-decoration: none; transition: all var(--transition);
}
.material-btn:hover {
  border-color: var(--navy-400);
  box-shadow: 0 4px 12px rgba(51,51,99,.08);
  transform: translateY(-2px);
}
.material-btn__icon {
  width: 40px; height: 40px; background: var(--gray-100);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.empty-state { text-align: center; padding: 80px 20px; color: var(--gray-400); }
.empty-state__icon { font-size: 48px; margin-bottom: 16px; }
.empty-state__title { font-family: var(--font-display); font-size: 20px; color: var(--navy-700); margin-bottom: 8px; }

/* ── 20. УТИЛИТЫ ─────────────────────────────────────────── */
.text-mono    { font-family: var(--font-mono); }
.text-display { font-family: var(--font-display); }
.text-sm      { font-size: 13px; }
.text-xs      { font-size: 12px; }
.text-muted   { color: var(--gray-500); }
.divider      { height: 1px; background: var(--gray-200); margin: 32px 0; }
.sr-only      { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── 21. МЕДИА ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --container-px: 24px; }
  .cabinet__inner { grid-template-columns: 1fr; }
  .cabinet-nav { position: static; }
  .awards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --container-px: 20px; }
  .header__nav { display: none; }
  .header__inner { height: 56px; }
  .hero { padding: 56px 0; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__photo-wrap { display: none; }
  .hero__title { font-size: 32px; }
  .stats__inner { flex-wrap: wrap; }
  .stats__item { flex: 1 1 50%; border-right: none; border-bottom: 1px solid var(--navy-700); }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .cards-grid--2, .cards-grid--3 { grid-template-columns: 1fr; }
  .awards-grid { grid-template-columns: 1fr; }
  .auth-box { padding: 32px 24px; }
  .section { padding: 48px 0; }
}
@media (max-width: 480px) {
  .hero__title { font-size: 26px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}


/* ════════════════════════════════════════════════
   Стили перенесены из PHP файлов
   ════════════════════════════════════════════════ */


/* ── profile.php ── */
/* ── Навигация ── */
.nav-icon {
  width:20px;height:20px;flex-shrink:0;
  filter:brightness(0) saturate(100%) invert(22%) sepia(30%) saturate(800%) hue-rotate(210deg) brightness(90%);
  opacity:.7;transition:opacity var(--transition);
}
.cabinet-nav__item:hover .nav-icon { opacity:1; }
.cabinet-nav__item--active .nav-icon { filter:brightness(0) invert(1); opacity:.95; }
.cabinet-nav__item--active:hover { background: var(--navy-800) !important; color: var(--white) !important; }

/* Бейдж непрочитанных */
.nav-badge {
  margin-left: auto;
  background: var(--orange-500); color: var(--white);
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  padding: 1px 6px; border-radius: 10px; flex-shrink: 0;
}
.mail-unread-badge {
  background: var(--orange-500); color: var(--white);
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  padding: 2px 8px; border-radius: 10px;
}
.mail-card__header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.mail-cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }

/* ── Секции ── */
.cab-section__header { margin-bottom:28px; }
.cab-section__title { font-family:var(--font-display);font-size:24px;font-weight:600;color:var(--navy-900); }
.cab-section__lead  { font-size:14px;color:var(--gray-500);margin-top:4px; }
.cab-back-btn {
  font-family:var(--font-mono);font-size:11px;letter-spacing:.08em;
  color:var(--navy-500);background:none;border:none;cursor:pointer;
  padding:0;margin-bottom:12px;display:block;transition:color var(--transition);
}
.cab-back-btn:hover { color:var(--navy-800); }

/* ── Карточки редактирования ── */
.edit-card {
  background:var(--white);border:1px solid var(--gray-200);border-radius:var(--radius-md);
  padding:28px;text-align:left;cursor:pointer;width:100%;
  transition:border-color var(--transition),box-shadow var(--transition),transform var(--transition);
}
.edit-card:hover { border-color:var(--navy-400);box-shadow:0 4px 16px rgba(51,51,99,.08);transform:translateY(-2px); }
.edit-card__title { font-family:var(--font-display);font-size:17px;font-weight:600;color:var(--navy-900);margin-bottom:6px; }
.edit-card__desc  { font-size:13px;color:var(--gray-500); }

/* ── Блоки редактора ── */
.editor-block {
  background:var(--white);border:1px solid var(--gray-200);border-radius:var(--radius-md);
  padding:24px;margin-bottom:16px;
}
.editor-block__label {
  font-family:var(--font-mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--navy-600);margin-bottom:14px;display:flex;align-items:center;gap:10px;
}
.editor-block__hint {
  font-family:var(--font-mono);font-size:10px;color:var(--gray-400);
  background:var(--gray-100);padding:2px 8px;border-radius:2px;text-transform:none;letter-spacing:0;
}

/* ── Фото преподавателя ── */
.teacher-photo-wrap { display:flex;align-items:center;gap:20px; }
.teacher-photo-preview {
  width:120px;height:140px;
  background:var(--gray-100);border:1px solid var(--gray-200);border-radius:var(--radius-md);
  display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0;
}
.teacher-photo-preview img { width:100%;height:100%;object-fit:cover; }
.teacher-photo-placeholder { font-size:11px;color:var(--gray-400);font-family:var(--font-mono);text-align:center;padding:8px; }
.teacher-photo-actions { display:flex;flex-direction:column;gap:8px; }

/* ── Редактор статистики ── */
.stats-editor { display:flex;flex-direction:column;gap:8px; }
.stats-row {
  display:grid;grid-template-columns:1fr 2fr 32px;gap:8px;align-items:center;
}
.stats-row__val, .stats-row__label {
  padding:8px 12px;border:1.5px solid var(--gray-200);border-radius:var(--radius-sm);
  font-family:var(--font-body);font-size:14px;color:var(--navy-800);outline:none;
  transition:border-color var(--transition);
}
.stats-row__val:focus, .stats-row__label:focus { border-color:var(--navy-500); }
.stats-row__del {
  width:32px;height:32px;border-radius:50%;border:1px solid var(--gray-200);
  background:transparent;color:var(--gray-400);font-size:12px;
  display:flex;align-items:center;justify-content:center;cursor:pointer;
  transition:all var(--transition);flex-shrink:0;
}
.stats-row__del:hover { background:var(--red-50);border-color:var(--red-200);color:var(--red-500); }

/* ── Редактор карточек ── */
.cards-editor { display:flex;flex-direction:column;gap:12px; }
.card-row {
  border:1px solid var(--gray-200);border-radius:var(--radius-md);overflow:hidden;
}
.card-row__header {
  display:flex;align-items:center;justify-content:space-between;
  padding:10px 16px;background:var(--gray-50);border-bottom:1px solid var(--gray-200);
}
.card-row__num { font-family:var(--font-mono);font-size:11px;color:var(--gray-500); }
.card-row__fields {
  padding:16px;display:flex;flex-direction:column;gap:8px;
}
.card-row__fields input,
.card-row__fields textarea {
  width:100%;padding:8px 12px;border:1.5px solid var(--gray-200);
  border-radius:var(--radius-sm);font-family:var(--font-body);font-size:14px;
  color:var(--navy-800);outline:none;transition:border-color var(--transition);resize:vertical;
}
.card-row__fields input:focus,
.card-row__fields textarea:focus { border-color:var(--navy-500); }

/* ── Профиль ── */
.profile-header__inner{display:flex;align-items:center;gap:20px;position:relative;}
.profile-avatar-wrap{position:relative;width:64px;height:64px;border-radius:50%;flex-shrink:0;cursor:pointer;}
.profile-avatar-wrap:hover .profile-avatar__overlay{opacity:1;}
.profile-avatar{width:64px;height:64px;background:var(--navy-800);border-radius:50%;display:flex;align-items:center;justify-content:center;font-family:var(--font-display);font-size:24px;font-weight:600;color:var(--white);user-select:none;}
.profile-avatar--img{width:64px;height:64px;border-radius:50%;object-fit:cover;display:block;border:2px solid var(--gray-200);}
.profile-avatar__overlay{position:absolute;inset:0;border-radius:50%;background:rgba(26,26,58,.55);display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity var(--transition);}
.profile-avatar__overlay img{width:20px;height:20px;filter:brightness(0) invert(1);}
.profile-header__info{flex:1;min-width:0;}
.profile-header__name{font-family:var(--font-display);font-size:22px;font-weight:600;color:var(--navy-900);margin-bottom:6px;}
.profile-header__meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
.profile-edit-btn{width:36px;height:36px;border-radius:var(--radius-md);border:1.5px solid var(--gray-200);background:var(--white);display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;transition:border-color var(--transition),background var(--transition),box-shadow var(--transition);}
.profile-edit-btn:hover{border-color:var(--navy-400);background:var(--gray-50);box-shadow:0 2px 8px rgba(51,51,99,.1);}
.profile-edit-btn img{width:18px;height:18px;filter:brightness(0) saturate(100%);opacity:.55;transition:opacity var(--transition);}
.profile-edit-btn:hover img{opacity:1;}

/* ── Уведомления ── */
.alert--autodismiss{transition:opacity .5s ease,transform .5s ease;margin-bottom:16px;}
.alert--autodismiss.hiding{opacity:0;transform:translateY(-6px);}

/* Toolbar входящих */
.inbox-toolbar {
  display: flex; gap: 8px;
  padding-bottom: 12px; margin-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}
.inbox-toolbar__btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; font-size: 13px; font-weight: 500;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  background: var(--white); color: var(--navy-600); cursor: pointer;
  transition: all var(--transition); font-family: var(--font-body);
}
.inbox-toolbar__btn:hover { border-color: var(--navy-400); background: var(--gray-50); }
.inbox-toolbar__btn--danger:hover { border-color: var(--red-200); color: var(--red-500); background: var(--red-50); }

/* Карточка сообщения */
.inbox-msg {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); margin-bottom: 8px;
  overflow: hidden; transition: border-color var(--transition), box-shadow var(--transition);
}
.inbox-msg:hover { border-color: var(--navy-300); box-shadow: 0 2px 8px rgba(51,51,99,.06); }
.inbox-msg--unread { border-left: 3px solid var(--navy-800); }
.inbox-msg__top {
  display: flex; align-items: center;
  padding: 8px 16px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
}
.inbox-msg--unread .inbox-msg__top { background: var(--violet-50); }
.inbox-msg__meta { display: flex; align-items: center; gap: 8px; flex: 1; flex-wrap: wrap; }
.inbox-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange-500); flex-shrink: 0;
  box-shadow: 0 0 4px rgba(201,123,40,.5);
}
.inbox-msg__meta-label { font-weight: 500; color: var(--navy-600); }
.inbox-msg__meta-item { font-family: var(--font-mono); font-size: 11px; color: var(--gray-500); }
.inbox-msg__meta-sep { color: var(--gray-300); font-size: 10px; }
.inbox-msg__content { padding: 14px 16px 10px; cursor: pointer; }
.inbox-msg__subject {
  font-family: var(--font-display); font-size: 16px; font-weight: 600;
  color: var(--navy-900); margin-bottom: 6px; line-height: 1.3;
}
.inbox-msg__preview { font-size: 13px; color: var(--gray-500); line-height: 1.5; }
.inbox-msg__divider { height: 1px; background: var(--gray-100); margin: 12px 0; }
.inbox-msg__full-text { font-size: 14px; color: var(--navy-700); line-height: 1.7; white-space: pre-wrap; }
.inbox-msg__footer {
  display: flex; gap: 8px; align-items: center;
  padding: 8px 16px 10px;
  border-top: 1px solid var(--gray-100);
}
.inbox-footer-btn {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--font-body); font-size: 12px; font-weight: 500;
  padding: 5px 12px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200); background: var(--white);
  color: var(--navy-600); cursor: pointer; transition: all var(--transition);
}
.inbox-footer-btn:hover { border-color: var(--navy-400); background: var(--gray-50); }
.inbox-footer-btn--del:hover { border-color: var(--red-200); color: var(--red-500); background: var(--red-50); }
.inbox-footer-icon--check { filter: brightness(0) saturate(100%) invert(22%) sepia(30%) saturate(800%) hue-rotate(210deg) brightness(90%); opacity: .7; }
.inbox-footer-btn:hover .inbox-footer-icon--check { opacity: 1; }
.inbox-footer-icon--del { filter: brightness(0) saturate(100%) invert(22%) sepia(30%) saturate(800%) hue-rotate(210deg) brightness(90%); opacity: .7; }
.inbox-footer-btn--del:hover .inbox-footer-icon--del { filter: brightness(0) saturate(100%) invert(40%) sepia(80%) saturate(400%) hue-rotate(330deg); opacity: 1; }

/* ── Confirm модал для почты ── */
#mail-confirm-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(26,26,58,.65); z-index: 9999;
  align-items: center; justify-content: center; padding: 20px;
}
#mail-confirm-overlay.visible { display: flex; }
#mail-confirm-box {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 28px;
  width: 100%; max-width: 360px;
}
#mail-confirm-box h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--navy-900); margin-bottom: 8px; }
#mail-confirm-box p  { font-size: 13px; color: var(--gray-500); margin-bottom: 20px; }
.mail-confirm-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* ── Модальное окно ── */
.modal-overlay{display:none;position:fixed;inset:0;background:rgba(26,26,58,.65);z-index:200;align-items:center;justify-content:center;padding:20px;}
.modal-overlay.visible{display:flex;animation:fadeIn .15s ease;}
@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}
.modal{background:var(--white);border:1px solid var(--gray-200);border-radius:var(--radius-lg);padding:36px;width:100%;max-width:440px;position:relative;animation:slideUp .2s ease;}
@keyframes slideUp{from{transform:translateY(16px);opacity:0;}to{transform:translateY(0);opacity:1;}}
.modal-close{position:absolute;top:16px;right:16px;width:28px;height:28px;border-radius:50%;border:1px solid var(--gray-200);background:transparent;color:var(--gray-400);font-size:14px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all var(--transition);}
.modal-close:hover{background:var(--gray-100);color:var(--navy-800);}
.modal h2{font-family:var(--font-display);font-size:20px;font-weight:600;color:var(--navy-900);margin-bottom:4px;}


/* ── contact.php ── */
.contact-page { padding: 64px 0 80px; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: start;
}

.contact-title {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 600;
  color: var(--navy-900);
  margin: 8px 0 6px;
}
.contact-subtitle { font-size: 14px; color: var(--gray-500); margin-bottom: 32px; }
.contact-alert { margin-bottom: 24px; }
.required { color: var(--red-500); }

/* Контактная информация */
.contact-info {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 32px;
  position: sticky;
  top: 80px;
}
.contact-info__title {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-100);
}
.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--gray-100);
}
.contact-info-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.contact-info-item--schedule { flex-direction: column; gap: 12px; }
.ci-schedule-header { display: flex; align-items: center; gap: 14px; }

.ci-icon {
  width: 36px; height: 36px;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.ci-label {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gray-400); margin-bottom: 4px;
}
.ci-value { font-size: 13px; color: var(--navy-700); line-height: 1.5; }
.ci-value a { color: var(--navy-600); text-decoration: underline; text-underline-offset: 2px; }
.ci-value a:hover { color: var(--navy-800); }

.schedule-table { width: 100%; border-collapse: collapse; }
.schedule-table td {
  padding: 6px 8px;
  font-size: 12px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--navy-700);
}
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table td:first-child { color: var(--navy-500); font-family: var(--font-mono); font-size: 11px; }
.schedule-table td:last-child { font-weight: 500; text-align: right; }

@media (max-width: 1024px) {
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-info { position: static; }
}


/* ── achievements.php ── */
.ach-page { padding: 64px 0 80px; }

/* Фильтры */
.ach-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 2px;
  border: 1.5px solid var(--gray-200);
  background: transparent;
  color: var(--navy-600);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--navy-500); color: var(--navy-800); }
.filter-btn--active { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); }
.filter-btn--active:hover { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); cursor: default; }

/* Сетка */
.ach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Карточка */
.ach-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.ach-card:hover {
  border-color: var(--navy-400);
  box-shadow: 0 4px 16px rgba(51,51,99,.1);
  transform: translateY(-2px);
}
.ach-card.hidden { display: none; }

.ach-card__img {
  width: 100%; height: 160px;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.ach-card__img img { width: 100%; height: 100%; object-fit: contain; background: var(--gray-200); padding: 6px; }
.ach-card__img-icon {
  width: 56px !important; height: 56px !important;
  object-fit: contain !important;
  filter: brightness(0) saturate(100%) invert(22%) sepia(30%) saturate(800%) hue-rotate(210deg) brightness(90%);
  opacity: 0.4;
}
.ach-card__body { padding: 20px; }
.ach-card__title {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600;
  color: var(--navy-900); margin-bottom: 6px; line-height: 1.35;
}
.ach-card__desc { font-size: 13px; color: var(--gray-500); line-height: 1.6; margin-bottom: 14px; }
.ach-card__footer { display: flex; align-items: center; justify-content: space-between; }
.ach-card__year { font-family: var(--font-mono); font-size: 11px; color: var(--gray-400); }

/* Модальное окно */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(26,26,58,.65);
  z-index: 200;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.visible { display: flex; animation: fadeIn .15s ease; }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

.modal--ach {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 540px;
  overflow: hidden;
  position: relative;
  animation: slideUp .2s ease;
}
@keyframes slideUp {
  from { transform: translateY(16px); opacity:0; }
  to   { transform: translateY(0);    opacity:1; }
}
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 1;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: var(--white); color: var(--gray-400); font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--transition);
}
.modal-close:hover { background: var(--gray-100); color: var(--navy-800); }

.ach-modal__img {
  width: 100%;
  max-height: 60vh;
  background: var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 12px;
}
.ach-modal__img img {
  max-width: 100%;
  max-height: 55vh;
  width: auto; height: auto;
  object-fit: contain;
  display: block;
  border-radius: var(--radius-sm);
}
.ach-modal__img-icon {
  width: 72px; height: 72px;
  filter: brightness(0) saturate(100%) invert(22%) sepia(30%) saturate(800%) hue-rotate(210deg) brightness(90%);
  opacity: 0.3;
}
.ach-modal__body { padding: 28px 32px 32px; }
.ach-modal__title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600;
  color: var(--navy-900); margin: 10px 0 8px; line-height: 1.3;
}
.ach-modal__desc { font-size: 14px; color: var(--gray-500); line-height: 1.7; margin-bottom: 16px; }
.ach-modal__year { font-family: var(--font-mono); font-size: 12px; color: var(--gray-400); }

@media (max-width: 768px) {
  .ach-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .ach-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ── students.php ── */
/* ── Страница студентам ── */
.students-page { min-height: calc(100vh - 64px); }
.students-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 64px);
}

/* ── Сайдбар ── */
.students-sidebar {
  background: var(--white);
  border-right: 1px solid var(--gray-200);
  display: flex; flex-direction: column;
  position: sticky; top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}
.students-sidebar__header {
  padding: 20px 16px 12px;
  border-bottom: 1px solid var(--gray-100);
  flex-shrink: 0;
}
.students-sidebar__title {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gray-400);
}
.students-tree { padding: 8px 0; }
.students-tree__empty { padding: 20px 16px; font-size: 13px; color: var(--gray-400); }

/* ── Дерево директорий ── */
.st-dir-row {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px; cursor: pointer;
  transition: background var(--transition);
  user-select: none;
}
.st-dir-row:hover { background: var(--gray-50); }
.st-dir-row.active { background: var(--violet-50); }
.st-dir-toggle { width: 14px; font-size: 8px; color: var(--gray-400); flex-shrink: 0; transition: transform var(--transition); }
.st-dir-toggle.open { transform: rotate(90deg); }
.st-dir-icon { font-size: 13px; flex-shrink: 0; }
.st-dir-name { font-size: 13px; color: var(--navy-700); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-dir-row.active .st-dir-name { color: var(--navy-900); font-weight: 500; }
.st-dir-children { }

/* ── Основная область ── */
.students-main { padding: 32px 40px; background: var(--gray-50); }
.students-placeholder {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 400px; color: var(--gray-400);
  text-align: center;
}
.students-placeholder__icon { font-size: 48px; margin-bottom: 12px; }
.students-placeholder__text { font-size: 13px; font-family: var(--font-mono); }

/* ── Список статей ── */
.st-articles__header {
  margin-bottom: 28px;
}
.st-articles__breadcrumb { display: none; }
.st-articles__breadcrumb span { color: var(--gray-300); }
.st-articles__title {
  font-family: var(--font-display); font-size: 24px;
  font-weight: 600; color: var(--navy-900);
}

.st-articles-list { display: flex; flex-direction: column; gap: 8px; }
.st-article-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); padding: 20px 24px;
  display: flex; align-items: center; gap: 16px;
  cursor: pointer; transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
}
.st-article-card:hover {
  border-color: var(--navy-400);
  box-shadow: 0 4px 12px rgba(51,51,99,.08);
  transform: translateY(-1px);
}
.st-article-card__icon {
  width: 40px; height: 40px; background: var(--gray-100);
  border-radius: var(--radius-md); display: flex; align-items: center;
  justify-content: center; font-size: 18px; flex-shrink: 0;
}
.st-article-card__body { flex: 1; min-width: 0; }
.st-article-card__title { font-size: 15px; font-weight: 500; color: var(--navy-800); margin-bottom: 2px; }
.st-article-card__date { font-family: var(--font-mono); font-size: 11px; color: var(--gray-400); }
.st-article-card__arrow { color: var(--gray-300); font-size: 16px; flex-shrink: 0; }

.st-subdirs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 12px; margin-bottom: 24px; }
.st-subdir-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer; transition: all var(--transition); text-decoration: none;
}
.st-subdir-card:hover { border-color: var(--navy-400); background: var(--gray-50); }
.st-subdir-card__name { font-size: 14px; font-weight: 500; color: var(--navy-700); }

.st-empty { text-align: center; padding: 60px 20px; color: var(--gray-400); font-size: 13px; }

/* ── Просмотр статьи ── */
.st-article-view { max-width: 800px; }
.st-article-view__back { display: none; }
.st-article-view__title {
  font-family: var(--font-display); font-size: 28px; font-weight: 700;
  color: var(--navy-900); margin-bottom: 8px; line-height: 1.3;
}
.st-article-view__meta {
  font-family: var(--font-mono); font-size: 11px; color: var(--gray-400);
  margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--gray-200);
}
.st-article-view__content {
  font-size: 15px; line-height: 1.7; color: var(--navy-800);
}
.st-article-view__content ul,
.st-article-view__content ol { padding-left: 24px; margin: 12px 0; }
.st-article-view__content li { margin: 4px 0; }
.st-article-view__content p  { margin: 8px 0; }

.st-article-view__files { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--gray-200); }
.st-article-view__files-title {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gray-400); margin-bottom: 16px;
}
.st-files-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.st-file-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; background: var(--white);
  border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  text-decoration: none; color: var(--navy-700); font-size: 13px;
  transition: all var(--transition); max-width: 280px;
}
.st-file-item:hover { border-color: var(--navy-400); background: var(--gray-50); }
.st-file-item__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }

.st-file-img {
  display: flex; flex-direction: column;
  border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  overflow: hidden; max-width: 200px; text-decoration: none;
  transition: all var(--transition);
}
.st-file-img:hover { border-color: var(--navy-400); }
.st-file-img img { width: 200px; height: 130px; object-fit: cover; display: block; }
.st-file-img__name {
  padding: 8px 12px; font-size: 11px; color: var(--gray-500);
  font-family: var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .students-layout { grid-template-columns: 1fr; }
  .students-sidebar { position: static; height: auto; }
  .students-main { padding: 20px; }
}
.st-bc { display:flex; align-items:center; gap:6px; flex-wrap:wrap; font-family:var(--font-mono); font-size:11px; margin-bottom:12px; }
.st-bc__item { color:var(--navy-500); cursor:pointer; transition:color .15s; white-space:nowrap; }
.st-bc__item:hover { color:var(--navy-800); text-decoration:underline; text-underline-offset:2px; }
.st-bc__item--current { color:var(--navy-700); cursor:default; font-weight:500; }
.st-bc__item--current:hover { text-decoration:none; }
.st-bc__sep { color:var(--gray-300); flex-shrink:0; }


/* ── admin/materials_editor.php ── */
/* ── Общий layout редактора ── */
.me-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  min-height: 600px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
}

/* ── Сайдбар ── */
.me-sidebar {
  background: var(--gray-50);
  border-right: 1px solid var(--gray-200);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.me-sidebar__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--white);
}
.me-sidebar__title {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gray-500);
}
.me-icon-btn {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid var(--gray-200); background: transparent;
  color: var(--navy-600); font-size: 16px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--transition);
}
.me-icon-btn:hover { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); }

/* ── Дерево ── */
.me-tree {
  flex: 1; overflow-y: auto;
  padding: 8px 0;
}
.me-tree__empty { padding: 20px 16px; font-size: 12px; color: var(--gray-400); font-family: var(--font-mono); }

.me-dir {
  user-select: none;
}
.me-dir-row {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 8px 6px 0;
  cursor: pointer;
  border-radius: 3px;
  transition: background var(--transition);
  position: relative;
}
.me-dir-row:hover { background: var(--gray-100); }
.me-dir-row.active { background: var(--violet-50); }

.me-dir-toggle {
  width: 20px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: var(--gray-400);
}
.me-dir-icon { font-size: 13px; flex-shrink: 0; }
.me-dir-name {
  flex: 1; font-size: 13px; color: var(--navy-700);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.me-dir-row.active .me-dir-name { color: var(--navy-900); font-weight: 500; }

.me-dir-actions {
  display: none; gap: 2px; flex-shrink: 0;
}
.me-dir-row:hover .me-dir-actions { display: flex; }
.me-dir-action {
  width: 20px; height: 20px; border-radius: 3px;
  border: none; background: transparent;
  color: var(--gray-400); font-size: 11px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.me-dir-action:hover { background: var(--gray-200); color: var(--navy-800); }
.me-dir-action--del:hover { background: var(--red-50); color: var(--red-500); }

.me-dir-children { padding-left: 16px; }

/* ── Главная область ── */
.me-main {
  display: flex; flex-direction: column;
  overflow: hidden;
}
.me-placeholder {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--gray-400);
}
.me-placeholder__icon { font-size: 48px; margin-bottom: 12px; }
.me-placeholder__text { font-size: 13px; font-family: var(--font-mono); }

/* ── Список статей ── */
.me-articles {
  display: flex; flex-direction: column; height: 100%;
}
.me-articles__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--white);
}
.me-articles__title {
  font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--navy-900);
}
.me-articles__list { flex: 1; overflow-y: auto; padding: 8px 0; }
.me-article-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer; transition: background var(--transition);
}
.me-article-row:hover { background: var(--gray-50); }
.me-article-row:last-child { border-bottom: none; }
.me-article-title { flex: 1; font-size: 14px; color: var(--navy-800); font-weight: 500; }
.me-article-date  { font-size: 11px; color: var(--gray-400); font-family: var(--font-mono); flex-shrink: 0; }
.me-articles__empty { padding: 40px 20px; text-align: center; color: var(--gray-400); font-size: 13px; }

/* ── Редактор ── */
.me-editor { display: flex; flex-direction: column; height: 100%; }

.me-editor__topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--white);
  flex-shrink: 0;
}
.me-back-btn {
  font-family: var(--font-mono); font-size: 11px; color: var(--navy-500);
  background: none; border: none; cursor: pointer; white-space: nowrap;
  transition: color var(--transition);
}
.me-back-btn:hover { color: var(--navy-800); }
.me-editor__title {
  flex: 1; font-family: var(--font-display); font-size: 16px; font-weight: 600;
  color: var(--navy-900); border: none; outline: none;
  background: transparent; min-width: 0;
}
.me-editor__title::placeholder { color: var(--gray-300); }
.me-editor__actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ── Тулбар ── */
.me-toolbar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 2px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
  flex-shrink: 0;
}
.me-tb-btn {
  min-width: 28px; height: 28px; padding: 0 6px;
  border-radius: 3px; border: none; background: transparent;
  color: var(--navy-700); font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition); white-space: nowrap;
}
.me-tb-btn:hover { background: var(--gray-200); }
.me-tb-btn.active { background: var(--navy-800); color: var(--white); }
.me-tb-select {
  height: 28px; padding: 0 4px; border-radius: 3px;
  border: 1.5px solid var(--gray-200); background: var(--white);
  font-family: var(--font-body); font-size: 12px; color: var(--navy-700);
  outline: none; cursor: pointer;
}
.me-tb-select--font { width: 130px; }
.me-tb-select--size { width: 52px; }
.me-tb-select--lh   { width: 52px; }
.me-tb-sep { width: 1px; height: 20px; background: var(--gray-200); margin: 0 4px; flex-shrink: 0; }

.me-tb-color-wrap { position: relative; }
.me-color-icon {
  display: inline-block; width: 10px; height: 10px;
  border-radius: 2px; border: 1px solid rgba(0,0,0,.15);
  margin-right: 2px; vertical-align: middle; flex-shrink: 0;
}

/* Меню списков */
.me-tb-dropdown-wrap { position: relative; }
.me-list-menu {
  position: absolute; top: 100%; left: 0; z-index: 50;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); padding: 4px 0;
  box-shadow: 0 4px 16px rgba(0,0,0,.1); min-width: 140px;
}
.me-list-menu button {
  display: block; width: 100%; text-align: left;
  padding: 7px 14px; font-size: 13px; color: var(--navy-700);
  background: none; border: none; cursor: pointer; font-family: var(--font-mono);
}
.me-list-menu button:hover { background: var(--gray-50); }

/* ── Область редактирования ── */
.me-editor__body {
  flex: 1; padding: 24px 28px;
  outline: none; overflow-y: auto;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px; line-height: 1.5;
  color: var(--navy-800);
  min-height: 200px;
}
.me-editor__body:empty::before {
  content: 'Начните вводить текст...';
  color: var(--gray-300); pointer-events: none;
}
.me-editor__body ul, .me-editor__body ol { padding-left: 24px; margin: 8px 0; }
.me-editor__body li { margin: 3px 0; }

/* ── Прикреплённые файлы ── */
.me-attachments {
  border-top: 1px solid var(--gray-200);
  padding: 16px 20px;
  background: var(--gray-50);
  flex-shrink: 0;
}
.me-attachments__header {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gray-400); margin-bottom: 10px;
}
.me-attachments__list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.me-attach-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 12px; color: var(--navy-700);
  max-width: 240px;
}
.me-attach-item--image {
  flex-direction: column; align-items: flex-start;
  padding: 0; overflow: hidden; max-width: 160px;
}
.me-attach-item--image img {
  width: 160px; height: 100px; object-fit: cover;
  display: block; border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.me-attach-item__name {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 160px; flex: 1;
}
.me-attach-item--image .me-attach-item__footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px; width: 100%; gap: 8px;
}
.me-attach-del {
  background: none; border: none; cursor: pointer;
  color: var(--gray-400); font-size: 12px; flex-shrink: 0;
  transition: color var(--transition);
}
.me-attach-del:hover { color: var(--red-500); }
.me-attachments__drop {
  border: 1.5px dashed var(--gray-300); border-radius: var(--radius-md);
  padding: 10px; text-align: center;
  font-size: 12px; color: var(--gray-400); cursor: pointer;
  transition: all var(--transition);
}
.me-attachments__drop.drag-over { border-color: var(--navy-500); background: var(--violet-50); }

/* Звёздочка featured */
.me-star-btn {
  width: 28px; height: 28px; flex-shrink: 0;
  border: none; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 3px; transition: background var(--transition);
  padding: 0;
}
.me-star-btn:hover { background: var(--gray-100); }
.me-star-icon {
  width: 16px; height: 16px;
  filter: brightness(0) saturate(100%) invert(22%) sepia(30%) saturate(800%) hue-rotate(210deg) brightness(90%);
  opacity: 0.4; transition: opacity var(--transition), filter var(--transition);
}
.me-star-btn:hover .me-star-icon { opacity: 0.8; }
.me-star-btn--active .me-star-icon {
  filter: brightness(0) saturate(100%) invert(65%) sepia(80%) saturate(400%) hue-rotate(10deg) brightness(110%);
  opacity: 1;
}

/* ── Модальное окно редактора ── */
.me-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(26,26,58,.55);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn .15s ease;
}
.me-modal {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%; max-width: 360px;
  animation: slideUp .2s ease;
}
.me-modal__title {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 600;
  color: var(--navy-900); margin-bottom: 16px;
}
.me-modal__input {
  width: 100%; padding: 9px 14px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 14px; color: var(--navy-800);
  outline: none; margin-bottom: 16px;
  transition: border-color var(--transition);
}
.me-modal__input:focus { border-color: var(--navy-500); }
.me-modal__actions { display: flex; gap: 8px; justify-content: flex-end; }
.me-modal__text { font-size: 13px; color: var(--gray-500); margin-bottom: 16px; line-height: 1.5; }


/* ── admin/achievements_editor.php ── */
.ae-layout { display: flex; flex-direction: column; gap: 0; }

/* Список */
.ae-list-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.ae-list-title {
  font-family: var(--font-display); font-size: 18px;
  font-weight: 600; color: var(--navy-900);
}
.ae-list { display: flex; flex-direction: column; gap: 10px; }
.ae-list__loading { font-size: 13px; color: var(--gray-400); padding: 20px 0; }
.ae-list__empty   { font-size: 13px; color: var(--gray-400); padding: 40px 0; text-align: center; }

.ae-item {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); padding: 16px 20px;
  display: flex; align-items: center; gap: 16px;
  cursor: pointer; transition: all var(--transition);
}
.ae-item:hover { border-color: var(--navy-400); box-shadow: 0 2px 8px rgba(51,51,99,.06); }
.ae-item__img {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  object-fit: cover; flex-shrink: 0;
  background: var(--gray-100); border: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.ae-item__img img { width: 100%; height: 100%; object-fit: cover; }
.ae-item__img-placeholder { font-size: 22px; }
.ae-item__body { flex: 1; min-width: 0; }
.ae-item__title { font-size: 14px; font-weight: 500; color: var(--navy-800); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ae-item__meta  { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ae-item__featured {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 10px;
  color: #c49010; background: #fdf3e8; border: 1px solid #f5d0a8;
  padding: 1px 7px; border-radius: 2px;
}

/* Форма */
.ae-form-header { margin-bottom: 20px; }
.ae-form-title {
  font-family: var(--font-display); font-size: 20px;
  font-weight: 600; color: var(--navy-900);
}
.ae-form-body { display: flex; flex-direction: column; gap: 0; }
.ae-input {
  width: 100%; padding: 9px 14px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 14px; color: var(--navy-800);
  outline: none; transition: border-color var(--transition);
  background: var(--white);
}
.ae-input:focus { border-color: var(--navy-500); }
.ae-textarea { resize: vertical; min-height: 80px; }
.ae-select { cursor: pointer; }
.ae-row-fields { display: flex; gap: 16px; }

.ae-checkbox-label {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
}
.ae-checkbox { width: 16px; height: 16px; margin-top: 2px; cursor: pointer; flex-shrink: 0; accent-color: var(--navy-800); }
.ae-checkbox-text { font-size: 14px; color: var(--navy-700); }

.ae-form-actions {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 8px;
}

/* Изображение */
.ae-img-wrap { display: flex; align-items: center; gap: 20px; }
.ae-img-preview {
  width: 120px; height: 100px;
  background: var(--gray-100); border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.ae-img-preview img { width: 100%; height: 100%; object-fit: cover; }
.ae-img-placeholder { font-size: 11px; color: var(--gray-400); font-family: var(--font-mono); text-align: center; padding: 8px; }
.ae-img-actions { display: flex; flex-direction: column; gap: 8px; }


/* ── admin/contact_editor.php ── */
.ce-layout { max-width: 640px; }

/* Строки расписания */
.ce-schedule { display: flex; flex-direction: column; gap: 8px; }
.ce-schedule-row {
  display: grid;
  grid-template-columns: 1fr 1fr 32px;
  gap: 8px; align-items: center;
}
.ce-schedule-row input {
  padding: 8px 12px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 14px; color: var(--navy-800);
  outline: none; width: 100%;
  transition: border-color var(--transition);
}
.ce-schedule-row input:focus { border-color: var(--navy-500); }
.ce-schedule-row input::placeholder { color: var(--gray-300); }


/* ── admin/hf_editor.php ── */
.hf-layout { max-width: 640px; }
.hf-logo-wrap { display: flex; align-items: center; gap: 20px; }
.hf-logo-preview {
  width: 80px; height: 80px;
  background: var(--gray-100); border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.hf-logo-preview img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.hf-logo-placeholder { font-size: 11px; color: var(--gray-400); font-family: var(--font-mono); text-align: center; padding: 8px; }
.hf-logo-actions { display: flex; flex-direction: column; gap: 8px; }


/* ── admin/users_editor.php ── */
.ue-layout { }
.ue-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.ue-title  { font-family:var(--font-display); font-size:20px; font-weight:600; color:var(--navy-900); }
.ue-loading { padding:20px; color:var(--gray-400); font-size:13px; }

/* Таблица пользователей */
.ue-table { width:100%; border-collapse:collapse; }
.ue-table th {
  font-family:var(--font-mono); font-size:10px; letter-spacing:.12em;
  text-transform:uppercase; color:var(--gray-400);
  padding:8px 16px; text-align:left;
  border-bottom:2px solid var(--gray-200); background:var(--gray-50);
}
.ue-table td {
  padding:12px 16px; font-size:13px; color:var(--navy-700);
  border-bottom:1px solid var(--gray-100); vertical-align:middle;
}
.ue-table tr:last-child td { border-bottom:none; }
.ue-table tr:hover td { background:var(--gray-50); }
.ue-table tr { cursor:pointer; transition:background var(--transition); }
.ue-username { font-weight:600; color:var(--navy-800); }
.ue-fullname { color:var(--gray-500); font-size:12px; }
.ue-email    { font-family:var(--font-mono); font-size:11px; color:var(--gray-500); }
.ue-date     { font-family:var(--font-mono); font-size:11px; color:var(--gray-400); }

/* Форма */
.ue-form { max-width:520px; }
.ue-role-wrap { display:flex; flex-direction:column; gap:10px; }
.ue-role-option {
  display:flex; align-items:flex-start; gap:12px;
  padding:14px 16px; border:1.5px solid var(--gray-200);
  border-radius:var(--radius-md); cursor:pointer;
  transition:border-color var(--transition);
}
.ue-role-option:has(input:checked) { border-color:var(--navy-500); background:var(--violet-50); }
.ue-role-option input { margin-top:2px; flex-shrink:0; accent-color:var(--navy-800); }
.ue-role-label { display:flex; flex-direction:column; gap:4px; }
.ue-role-desc  { font-size:12px; color:var(--gray-500); }
.ue-form-actions { display:flex; align-items:center; justify-content:space-between; padding-top:8px; }

/* ── Кнопка «Наверх» ── */
#scroll-top-btn {
  position: fixed; bottom: 32px; right: 32px; z-index: 100;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy-800); color: var(--white);
  border: none; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(26,26,58,.25);
  opacity: 0; transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, background .2s;
  pointer-events: none;
}
#scroll-top-btn.visible {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
#scroll-top-btn:hover { background: var(--navy-600); }

/* ── Закладки ── */
.st-bookmarks-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; cursor: pointer; font-size: 13px;
  color: var(--navy-600); border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition), color var(--transition);
  user-select: none;
}
.st-bookmarks-btn:hover { background: var(--gray-50); color: var(--navy-900); }
.st-bookmarks-btn.active { background: var(--violet-50); color: var(--navy-900); font-weight: 500; }
.st-bm-icon {
  filter: brightness(0) saturate(100%) invert(22%) sepia(30%) saturate(800%) hue-rotate(210deg) brightness(90%);
  opacity: .6;
}
.st-bm-count {
  background: var(--orange-500); color: var(--white);
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  padding: 1px 6px; border-radius: 10px; margin-left: auto;
}
.st-bm-btn {
  width: 28px; height: 28px; flex-shrink: 0;
  border: none; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 3px; transition: background var(--transition); padding: 0;
}
.st-bm-btn:hover { background: var(--gray-100); }
.st-bm-btn img {
  width: 16px; height: 16px;
  filter: brightness(0) saturate(100%) invert(35%) sepia(40%) saturate(600%) hue-rotate(210deg) brightness(85%);
  opacity: 0.65; transition: opacity var(--transition), filter var(--transition), transform var(--transition);
}
.st-bm-btn:hover img { opacity: 1; transform: scale(1.2); }
.st-bm-btn--saved img {
  filter: brightness(0) saturate(100%) invert(70%) sepia(90%) saturate(500%) hue-rotate(5deg) brightness(105%);
  opacity: 1;
}
.st-bm-btn--lg { width: 40px; height: 40px; border: 2px solid var(--navy-300); border-radius: var(--radius-sm); background: var(--white); box-shadow: 0 1px 4px rgba(51,51,99,.12); }
.st-bm-btn--lg img { width: 22px; height: 22px; }
.st-bm-btn--lg:hover { border-color: var(--navy-600); background: var(--gray-50); box-shadow: 0 2px 8px rgba(51,51,99,.18); }
.st-bm-btn--lg.st-bm-btn--saved { border-color: var(--orange-500); background: var(--orange-50); box-shadow: 0 2px 8px rgba(201,123,40,.2); }
.st-article-view__title-row {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px;
}
.st-article-view__title-row .st-article-view__title { margin-bottom: 0; flex: 1; }
