/* ═══════════════════════════════════════════
   STRUCTURALIST DESIGN SYSTEM — Structuralist EDU
   ═══════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────── */
:root {
  /* Brand */
  --brand:          #0E5A4A;
  --brand-hover:    #0B473C;
  --brand-light:    #1E8E79;
  --accent:         #D6C19A;
  --accent-dark:    #BFA675;

  /* Text */
  --text-main:      #222222;
  --text-secondary: #555555;
  --text-tertiary:  #999999;
  --text-inverse:   #FFFFFF;

  /* Surfaces */
  --bg-page:        #F5F5F7;
  --bg-card:        #FFFFFF;
  --bg-muted:       #F0F0F2;
  --border-light:   #E5E7EB;
  --border-medium:  #D1D5DB;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Type scale */
  --font-sans:  'Onest', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', ui-monospace, monospace;
  --font-serif: 'Merriweather', Georgia, serif;

  --text-xs:   0.625rem;   /* 10px */
  --text-sm:   0.75rem;    /* 12px */
  --text-base: 0.9375rem;  /* 15px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.5rem;     /* 24px */
  --text-2xl:  2rem;       /* 32px */
  --text-3xl:  2.5rem;     /* 40px */
  --text-hero: clamp(3rem, 8vw, 5.5rem);

  /* Radii */
  --radius-sm: 2px;
  --radius-md: 4px;

  /* Shadows */
  --shadow-card:  0 1px 3px rgba(0,0,0,.04), 0 0 0 1px var(--border-light);
  --shadow-brand: 6px 6px 0px var(--accent);
  --shadow-brand-hover: 2px 2px 0px var(--accent);

  /* Max width */
  --container: 1600px;
}

/* ── RESET & BASE ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-main);
  background: var(--bg-page);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--brand);
  color: var(--text-inverse);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── NOISE TEXTURE ──────────────────────── */
.noise-bg {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
}

/* Штриховка для пустых ячеек */
.striped-bg {
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 10px,
    var(--bg-page) 10px, var(--bg-page) 20px
  );
}

/* ── LAYOUT ─────────────────────────────── */
.site-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  background: var(--bg-card);
  min-height: 100vh;
  border-left: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  box-shadow: 0 0 40px rgba(0,0,0,.03);
  display: flex;
  flex-direction: column;
}

/* ── HEADER ─────────────────────────────── */
.site-header {
  height: 4rem;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-card);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ── BRAND SQUARES ──────────────────────── */
.site-brand--uni,
.site-brand--fac {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 4rem;
  flex-shrink: 0;
  border-right: 1px solid var(--border-light);
  text-decoration: none;
  color: var(--text-main);
  font-weight: 900;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: -.03em;
  transition: background .2s;
}
.site-brand--uni:hover,
.site-brand--fac:hover { background: var(--bg-muted); }
.site-brand--uni .slash,
.site-brand--fac .slash { color: var(--brand); }
.site-brand--uni .brand-img,
.site-brand--fac .brand-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-2);
}

/* University logo: hidden on mobile, visible from tablet */
.site-brand--uni {
  display: none;
}
@media (min-width: 768px) {
  .site-brand--uni { display: flex; }
}

/* ── TITLE BLOCK ────────────────────────── */
.site-title-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--space-4);
  height: 100%;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-decoration: none;
  transition: background .2s;
}
.site-title-block:hover { background: var(--bg-muted); }

/* On mobile: only faculty name visible */
.site-title-block__uni {
  display: none;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 1px;
}
.site-title-block__fac {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tablet: show university name too, slightly larger faculty */
@media (min-width: 768px) {
  .site-title-block {
    padding: 0 var(--space-6);
    border-right: 1px solid var(--border-light);
    flex: 0 1 auto;
    max-width: 340px;
  }
  .site-title-block__uni { display: block; }
  .site-title-block__fac { font-size: 12px; }
}

/* Desktop: full width, larger text */
@media (min-width: 1024px) {
  .site-title-block {
    max-width: 420px;
  }
  .site-title-block__uni { font-size: 9px; }
  .site-title-block__fac { font-size: 13px; letter-spacing: .02em; }
}

@media (min-width: 1280px) {
  .site-title-block__fac { font-size: 14px; }
}

/* Nav */
.site-nav {
  margin-left: auto;
  display: none;
  height: 100%;
}
@media (min-width: 1024px) {
  .site-nav { display: flex; }
}

.site-nav > a,
.site-nav > .site-nav__parent > a {
  display: flex;
  align-items: center;
  padding: 0 var(--space-4);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-left: 1px solid var(--border-light);
  transition: background .2s, color .2s;
  white-space: nowrap;
  height: 100%;
}
@media (min-width: 1280px) {
  .site-nav > a,
  .site-nav > .site-nav__parent > a {
    padding: 0 var(--space-6);
    font-size: var(--text-sm);
  }
}
.site-nav > a:hover,
.site-nav > .site-nav__parent > a:hover {
  background: var(--brand);
  color: var(--text-inverse);
}
.site-nav > a.is-active,
.site-nav > .site-nav__parent > a.is-active {
  background: var(--bg-muted);
  color: var(--brand);
}
.site-nav .nav-primary {
  background: var(--text-main);
  color: var(--text-inverse);
}
.site-nav .nav-primary:hover {
  background: var(--brand);
}

/* Parent (has dropdown) */
.site-nav__parent {
  position: relative;
  display: flex;
  height: 100%;
}
.site-nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  z-index: 200;
  flex-direction: column;
}
.site-nav__parent:hover .site-nav__dropdown {
  display: flex;
}
.site-nav__dropdown-item {
  display: block;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 1px solid var(--border-light);
  transition: background .15s, color .15s;
  text-transform: none;
  letter-spacing: 0;
}
.site-nav__dropdown-item:last-child { border-bottom: none; }
.site-nav__dropdown-item:hover {
  background: var(--bg-muted);
  color: var(--brand);
}

/* ── BURGER (mobile) ────────────────────── */
.site-burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 100%;
  border: none;
  border-left: 1px solid var(--border-light);
  background: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
  transition: background .2s;
  margin-left: auto;
}
.site-burger:hover { background: var(--bg-muted); }
@media (min-width: 1024px) {
  .site-burger { display: none; }
}

/* Mobile nav open */
.site-nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 4rem;
  left: 0;
  right: 0;
  height: auto;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  z-index: 150;
}
.site-nav.is-open > a,
.site-nav.is-open > .site-nav__parent > a {
  height: 3.5rem;
  border-left: none;
  border-bottom: 1px solid var(--border-light);
  padding: 0 var(--space-6);
}
.site-nav.is-open .site-nav__parent {
  flex-direction: column;
  height: auto;
}
.site-nav.is-open .site-nav__dropdown {
  display: flex;
  position: static;
  border: none;
  box-shadow: none;
  background: var(--bg-muted);
}
.site-nav.is-open .site-nav__dropdown-item {
  padding-left: var(--space-12);
}

/* ── MEGAMENU ───────────────────────────── */
.mega-trigger {
  display: flex;
  align-items: center;
  padding: 0 var(--space-4);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-left: 1px solid var(--border-light);
  transition: background .2s, color .2s;
  white-space: nowrap;
  height: 100%;
  text-decoration: none;
  color: var(--text-main);
}
@media (min-width: 1280px) {
  .mega-trigger { padding: 0 var(--space-6); font-size: var(--text-sm); }
}
.mega-trigger:hover { background: var(--brand); color: var(--text-inverse); }
.mega-trigger--has-panel.is-active { background: var(--bg-muted); color: var(--brand); }

.mega-panel {
  display: none;
  position: absolute;
  top: 4rem;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
  z-index: 150;
}
.mega-panel.is-open { display: block; }

.mega-panel__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.mega-panel__header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-light);
}
.mega-panel__icon {
  font-size: 1.75rem;
  color: var(--brand);
  flex-shrink: 0;
}
.mega-panel__title {
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--text-main);
}
.mega-panel__desc {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-top: 1px;
}
.mega-panel__viewall {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brand);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: color .15s;
}
.mega-panel__viewall:hover { color: var(--brand-hover); }

.mega-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-light);
}
@media (min-width: 768px) { .mega-panel__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .mega-panel__grid { grid-template-columns: repeat(4, 1fr); } }

.mega-panel__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-4) var(--space-5);
  background: var(--bg-card);
  text-decoration: none;
  transition: background .15s;
}
.mega-panel__item:hover { background: var(--bg-muted); }
.mega-panel__item-title {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text-main);
  line-height: 1.3;
}
.mega-panel__item:hover .mega-panel__item-title { color: var(--brand); }
.mega-panel__item-desc {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Megamenu overlay */
.megamenu-overlay {
  display: none;
  position: fixed;
  top: 4rem;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.15);
  z-index: 140;
}
.mega-panel.is-open ~ .megamenu-overlay { display: block; }

/* Mobile: megamenu panels inline */
.site-nav.is-open .mega-panel {
  display: block;
  position: static;
  border-bottom: none;
  box-shadow: none;
  background: var(--bg-muted);
}
.site-nav.is-open .mega-panel__inner { padding: var(--space-4); }
.site-nav.is-open .mega-panel__header { display: none; }
.site-nav.is-open .mega-panel__grid { grid-template-columns: 1fr; }

/* ── FRONT PAGE VARIANTS ────────────────── */

/* Variant 2: Compact banner */
.front-banner {
  padding: var(--space-8);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-card);
}
.front-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

/* Stats grid (sidebar) */
.front-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-light);
}
.front-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--space-4) var(--space-3);
  background: var(--bg-card);
  text-align: center;
}
.front-stat-num {
  font-size: var(--text-xl);
  font-weight: 900;
  color: var(--text-main);
  line-height: 1;
}
.front-stat-label {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-tertiary);
}

/* Variant 3: Counters bar */
.front-counters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6) var(--space-12);
}
.front-counter {
  display: flex;
  flex-direction: column;
}
.front-counter__num {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.03em;
}
.front-counter__label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-tertiary);
  margin-top: var(--space-1);
}

/* Department cards */
.front-dept-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border-light);
}
@media (min-width: 768px) { .front-dept-grid { grid-template-columns: repeat(2, 1fr); } }
.front-dept-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  background: var(--bg-card);
  text-decoration: none;
  color: inherit;
  transition: background .15s;
}
.front-dept-card:hover { background: var(--bg-muted); }
.front-dept-card__badge {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(14,90,74,.06);
  color: var(--brand);
  font-weight: 900;
  font-size: var(--text-lg);
  border-radius: var(--radius-md);
  flex-shrink: 0;
  letter-spacing: -.02em;
}
.front-dept-card__body { flex: 1; min-width: 0; }
.front-dept-card__name {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text-main);
  line-height: 1.3;
}
.front-dept-card:hover .front-dept-card__name { color: var(--brand); }
.front-dept-card__head {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--text-secondary); margin-top: 2px;
}
.front-dept-card__sub {
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 600;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* Variant 4: Fullscreen hero */
.front-fullhero {
  position: relative;
  min-height: calc(100vh - 4rem);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--text-main);
  overflow: hidden;
}
.front-fullhero__video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.front-fullhero__overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,.55);
  z-index: 2;
}
.front-fullhero__content {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: var(--space-8);
  max-width: 700px;
}
.front-fullhero__title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.05;
  color: #fff;
  margin: 0 0 var(--space-4);
}
.front-fullhero__lead {
  font-size: var(--text-lg);
  color: rgba(255,255,255,.75);
  line-height: 1.5;
  margin: 0 0 var(--space-8);
  font-family: var(--font-serif);
}
.front-fullhero__cta {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}
.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }
.btn-outline-white {
  display: inline-flex; align-items: center;
  padding: var(--space-3) var(--space-6);
  border: 1px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.8);
  font-weight: 700; font-size: var(--text-sm);
  text-transform: uppercase; letter-spacing: .08em;
  text-decoration: none;
  transition: all .2s;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.6);
  color: #fff;
}

.front-fullhero__stats {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,.1);
}
.front-fullhero__stat { text-align: center; }
.front-fullhero__stat-num {
  display: block;
  font-size: var(--text-2xl);
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.front-fullhero__stat-label {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.4);
  margin-top: 4px;
  display: block;
}

.front-fullhero__scroll {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  color: rgba(255,255,255,.3);
  font-size: 1.5rem;
  animation: scroll-hint 2s ease infinite;
}
@keyframes scroll-hint {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: .3; }
  50% { transform: translateX(-50%) translateY(8px); opacity: .7; }
}

/* ── HERO ───────────────────────────────── */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 1280px) {
  .hero-grid { grid-template-columns: 4fr 6fr; }
}

.hero-left {
  border-right: 1px solid var(--border-light);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  position: relative;
}
.hero-left .noise-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .4;
}

.hero-content {
  padding: var(--space-8);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(8px);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 768px) { .hero-content { padding: var(--space-12); } }
@media (min-width: 1024px) { .hero-content { padding: var(--space-16); } }

.hero-tags {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.hero-tag {
  padding: var(--space-1) var(--space-2);
  background: var(--brand);
  color: var(--text-inverse);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  line-height: 1;
}
.hero-year {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-tertiary);
}

.hero-title {
  font-size: var(--text-hero);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: .9;
  text-transform: uppercase;
  margin-bottom: var(--space-8);
  color: var(--text-main);
}
.hero-title .gradient {
  background: linear-gradient(to right, var(--brand), var(--brand-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 24rem;
}
@media (min-width: 768px) { .hero-lead { font-size: var(--text-lg); } }

/* ── BUTTONS ────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-8);
  font-weight: 700;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: .12em;
  transition: all .2s;
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
}
.btn-brand {
  background: var(--brand);
  color: var(--text-inverse);
  box-shadow: var(--shadow-brand);
}
.btn-brand:hover {
  background: var(--brand-hover);
  box-shadow: var(--shadow-brand-hover);
  transform: translate(4px, 4px);
}
.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-medium);
}
.btn-outline:hover {
  background: var(--bg-muted);
  border-color: var(--text-main);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: var(--space-2) var(--space-3);
}
.btn-ghost:hover { color: var(--brand); }

/* ── STATS ──────────────────────────────── */
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  z-index: 1;
  background: var(--bg-card);
}
.hero-stat {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: background .2s;
}
.hero-stat:first-child { border-right: 1px solid var(--border-light); }
.hero-stat:hover { background: var(--bg-muted); }
.hero-stat__icon {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}
.hero-stat__icon--accent { color: var(--accent); }
.hero-stat__icon--brand  { color: var(--brand); }
.hero-stat__num {
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: var(--space-1);
}
.hero-stat__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-tertiary);
}

/* ── MONO LABEL (utility) ───────────────── */
.mono-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
}

/* ── TOOLBAR ────────────────────────────── */
.section-toolbar {
  height: 3.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--space-6);
  background: var(--bg-card);
  position: sticky;
  top: 4rem;
  z-index: 40;
}
@media (min-width: 768px) { .section-toolbar { padding: 0 var(--space-8); } }

.toolbar-title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.toolbar-title .icon { color: var(--brand); font-size: var(--text-lg); }

.legend {
  display: none;
  align-items: center;
  gap: var(--space-6);
}
@media (min-width: 640px) { .legend { display: flex; } }

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-secondary);
}
.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.legend-dot--brand  { background: var(--brand); }
.legend-dot--accent { background: var(--accent); }
.legend-dot--dark   { background: var(--text-main); }

/* ── CARD GRID ──────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-light);
  flex: 1;
}
@media (min-width: 768px) {
  .card-grid { grid-template-columns: repeat(4, 1fr); }
}
/* Inside sidebar layout — narrower, use 3 cols */
@media (min-width: 768px) {
  .program-layout__content .card-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Штрихованная заглушка — заполняет ряд */
.program-card-filler {
  background: var(--bg-card);
  min-height: 160px;
  display: none;
}
@media (min-width: 768px) {
  .program-card-filler {
    display: block;
    background:
      repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 10px,
        var(--bg-page) 10px,
        var(--bg-page) 20px
      );
    opacity: 0.5;
  }
}

.card-grid__section-header {
  grid-column: 1 / -1;
  background: var(--bg-page);
  height: 3.5rem;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) {
  .card-grid__section-header { padding: 0 var(--space-8); }
}

.section-num { color: var(--brand); }

/* ── PROGRAM CARD ───────────────────────── */
.program-card {
  background: var(--bg-card);
  padding: var(--space-6);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
  cursor: pointer;
  transition: background .2s;
}
.program-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.program-card:hover::before { transform: scaleX(1); }

.program-card--licenta:hover         { background: rgba(14,90,74,.03); }
.program-card--licenta::before       { background: var(--brand); }
.program-card--master:hover          { background: rgba(214,193,154,.08); }
.program-card--master::before        { background: var(--accent); }
.program-card--doctorat:hover        { background: var(--bg-muted); }
.program-card--doctorat::before      { background: var(--text-main); }

.program-card__top {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-tertiary);
  margin-bottom: var(--space-2);
}
.program-card__top .num { color: var(--text-main); }

.program-card__body {
  text-align: center;
  margin: auto 0;
  padding: var(--space-2) 0;
}
.program-card__symbol {
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: var(--space-1);
  transition: color .2s;
}
.program-card--licenta:hover  .program-card__symbol { color: var(--brand); }
.program-card--master:hover   .program-card__symbol { color: var(--accent-dark); }
.program-card--doctorat:hover .program-card__symbol { color: var(--text-main); }

.program-card__name {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  color: var(--text-secondary);
  line-height: 1.3;
}

.program-card__footer {
  text-align: center;
  padding-top: var(--space-3);
  border-top: 1px dashed var(--border-light);
}
.program-card__level {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
}
.program-card__level--licenta  { color: var(--brand); }
.program-card__level--master   { color: var(--accent-dark); }
.program-card__level--doctorat { color: var(--text-main); }

/* Make card a link without underlines */
a.program-card { text-decoration: none; color: inherit; }

/* ── PROGRAM HERO (single page) ─────────── */
.program-hero {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border-light);
}
@media (min-width: 768px) {
  .program-hero {
    flex-direction: row;
    align-items: stretch;
  }
}

.program-hero__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-12) var(--space-8);
  min-width: 200px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-card);
  position: relative;
}
.program-hero__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.program-card--licenta .program-hero__card::before,
.program-hero__card.program-card--licenta::before  { background: var(--brand); }
.program-card--master .program-hero__card::before,
.program-hero__card.program-card--master::before   { background: var(--accent); }
.program-card--doctorat .program-hero__card::before,
.program-hero__card.program-card--doctorat::before { background: var(--text-main); }

@media (min-width: 768px) {
  .program-hero__card {
    border-bottom: none;
    border-right: 1px solid var(--border-light);
    min-width: 240px;
    padding: var(--space-16) var(--space-12);
  }
  .program-hero__card::before {
    top: 0; left: 0; bottom: 0;
    right: auto;
    width: 4px;
    height: auto;
  }
}

.program-hero__symbol {
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 900;
  color: var(--text-main);
  line-height: 1;
}
.program-hero__level {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.program-hero__credits {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* --- ПРАВАЯ ЧАСТЬ (С ВИДЕОФОНОМ) --- */
.program-hero__info {
  flex: 1;
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  
  /* Добавлено для работы видеофона */
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .program-hero__info { padding: var(--space-12) var(--space-16); }
}

/* Делаем так, чтобы весь текст (h1, кнопки, лейблы) был ПОВЕРХ видео и оверлея */
.program-hero__info > *:not(.program-hero__video-container) {
  position: relative;
  z-index: 3;
}

.program-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  /* Если видео темное, убедись, что переменная дает контрастный (светлый) цвет */
  color: var(--text-main); 
}

/* --- СТИЛИ САМОГО ВИДЕО И ЗАТЕМНЕНИЯ --- */
.program-hero__video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.program-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.program-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Темный фильтр, меняй 0.6 для настройки прозрачности */
  z-index: 2;
}

/* ── PROGRAM LAYOUT (sidebar + content) ── */
.program-layout {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-light);
}
@media (min-width: 1024px) {
  .program-layout {
    flex-direction: row;
    align-items: flex-start;
  }
}

.program-layout__content {
  flex: 1;
  min-width: 0;
  order: 1;
}

.program-layout__sidebar {
  width: 100%;
  border-top: 1px solid var(--border-light);
  background: var(--bg-page);
  order: 2;
}
@media (min-width: 1024px) {
  .program-layout__sidebar {
    width: 380px;
    flex-shrink: 0;
    border-top: none;
    border-right: 1px solid var(--border-light);
    order: 0;
  }
  .program-layout__content {
    order: 1;
  }
}

/* Sidebar blocks — visual separation */
.sidebar-block {
  background: var(--bg-card);
  margin-bottom: 8px;  /* visible gap between blocks — bg-page shows through */
}
.sidebar-block:last-child { margin-bottom: 0; }
.sidebar-block__title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: 3rem;
  padding: 0 var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-main);
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border-light);
}
.sidebar-block__title i { color: var(--brand); font-size: var(--text-lg); }

/* Sidebar specs */
.sidebar-specs__item {
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border-light);
}
.sidebar-specs__item:last-child { border-bottom: none; }

.sidebar-specs__label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--brand);
  margin-bottom: 3px;
  line-height: 1.4;
}
.sidebar-specs__label-en {
  display: block;
  font-weight: 500;
  color: var(--text-tertiary);
  font-size: 8px;
  letter-spacing: .06em;
  margin-top: 1px;
}
.sidebar-specs__value {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text-main);
  line-height: 1.4;
}
.sidebar-specs__value-en {
  font-size: 11px;
  color: var(--text-tertiary);
  font-style: italic;
  margin-top: 1px;
  line-height: 1.3;
}

/* Sidebar documents */
.sidebar-doc {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  text-decoration: none;
  color: inherit;
  transition: background .15s;
  border-bottom: 1px solid var(--border-light);
}
.sidebar-doc:last-child { border-bottom: none; }
.sidebar-doc:hover { background: var(--bg-muted); }

.sidebar-doc__icon {
  width: 40px;
  height: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  background: var(--brand);
  color: var(--text-inverse);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.sidebar-doc__icon i { font-size: 1rem; }
.sidebar-doc__ext {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1;
}
.sidebar-doc__icon--muted {
  background: var(--bg-muted);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.sidebar-doc__info { flex: 1; min-width: 0; }
.sidebar-doc__title {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 2px;
}
.sidebar-doc--archive .sidebar-doc__title {
  font-size: 11px;
  color: var(--text-secondary);
}
.sidebar-doc__meta {
  display: flex;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.sidebar-doc__dl {
  flex-shrink: 0;
  color: var(--text-tertiary);
  font-size: 1rem;
  transition: color .15s;
}
.sidebar-doc:hover .sidebar-doc__dl { color: var(--brand); }

/* Archive toggle */
.sidebar-archive {
  background: var(--bg-muted);
}
.sidebar-archive__toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
  list-style: none;
}
.sidebar-archive__toggle::-webkit-details-marker { display: none; }
.sidebar-archive__toggle::before {
  content: '▸';
  font-size: 10px;
  transition: transform .2s;
}
.sidebar-archive[open] .sidebar-archive__toggle::before {
  transform: rotate(90deg);
}
.sidebar-archive__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: var(--border-light);
  color: var(--text-secondary);
  font-size: 8px;
  margin-left: auto;
}
.sidebar-archive .sidebar-doc { background: transparent; }
.sidebar-archive .sidebar-doc:hover { background: rgba(255,255,255,.5); }

/* Sidebar related programs */

/* ── PROGRAM ACCORDION ──────────────────── */
.program-accordion {
  border-bottom: 1px solid var(--border-light);
}

.program-accordion__item {
  border-bottom: 1px solid var(--border-light);
}
.program-accordion__item:last-child { border-bottom: none; }

.program-accordion__header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-8);
  cursor: pointer;
  transition: background .15s;
  list-style: none;
}
.program-accordion__header::-webkit-details-marker { display: none; }
.program-accordion__header:hover { background: var(--bg-muted); }

.program-accordion__icon {
  font-size: var(--text-xl);
  color: var(--brand);
  flex-shrink: 0;
  width: 1.5rem;
  text-align: center;
}

.program-accordion__title {
  flex: 1;
  font-weight: 800;
  font-size: var(--text-base);
  letter-spacing: -0.01em;
}
.program-accordion__title-en {
  display: block;
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-top: 1px;
}

.program-accordion__chevron {
  flex-shrink: 0;
  color: var(--text-tertiary);
  font-size: var(--text-base);
  transition: transform .25s;
}
.program-accordion__item[open] .program-accordion__chevron {
  transform: rotate(180deg);
}

.program-accordion__body {
  padding: 0 var(--space-8) var(--space-8);
  padding-left: calc(var(--space-8) + 1.5rem + var(--space-4)); /* align with title text */
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--text-secondary);
}
.program-accordion__body p { margin-bottom: 1em; }
.program-accordion__body p:last-child { margin-bottom: 0; }
.program-accordion__body ul,
.program-accordion__body ol { padding-left: 1.25em; margin-bottom: 1em; }
.program-accordion__body li { margin-bottom: .35em; }

/* ── PROGRAM FAQ ────────────────────────── */
.program-faq {
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-muted);
}

.program-faq__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: 3rem;
  padding: 0 var(--space-8);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-light);
}
.program-faq__header-icon { color: var(--brand); font-size: var(--text-lg); }
.program-faq__header-en {
  margin-left: auto;
  color: var(--text-tertiary);
  font-weight: 500;
}

.program-faq__item {
  border-bottom: 1px solid var(--border-light);
}
.program-faq__item:last-child { border-bottom: none; }

.program-faq__question {
  display: flex;
  flex-direction: column;
  padding: var(--space-4) var(--space-8);
  cursor: pointer;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text-main);
  list-style: none;
  transition: background .15s;
}
.program-faq__question::-webkit-details-marker { display: none; }
.program-faq__question:hover { background: rgba(255,255,255,.5); }
.program-faq__question::before {
  content: '▸';
  font-size: 10px;
  color: var(--brand);
  margin-right: var(--space-2);
  display: inline;
  transition: transform .2s;
}
.program-faq__item[open] .program-faq__question::before {
  content: '▾';
}

.program-faq__question-en {
  display: block;
  font-weight: 500;
  font-size: 11px;
  color: var(--text-tertiary);
  font-style: italic;
  margin-top: 1px;
  margin-left: calc(10px + var(--space-2)); /* align with text after arrow */
}

.program-faq__answer {
  padding: 0 var(--space-8) var(--space-6);
  padding-left: calc(var(--space-8) + 10px + var(--space-2));
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--text-secondary);
}
.program-faq__answer p { margin-bottom: .75em; }
.program-faq__answer p:last-child { margin-bottom: 0; }
.sidebar-related__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border-light);
  transition: background .15s;
}
.sidebar-related__item:last-child { border-bottom: none; }
.sidebar-related__item:hover { background: var(--bg-muted); }

.sidebar-related__symbol {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: var(--text-sm);
  flex-shrink: 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: border-color .15s, color .15s;
}
.sidebar-related__item:hover .sidebar-related__symbol { border-color: var(--brand); }
.sidebar-related__symbol--licenta  { color: var(--brand); }
.sidebar-related__symbol--master   { color: var(--accent-dark); }
.sidebar-related__symbol--doctorat { color: var(--text-main); }

.sidebar-related__name {
  flex: 1;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-main);
  line-height: 1.3;
}
.sidebar-related__item:hover .sidebar-related__name { color: var(--brand); }

.sidebar-related__credits {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

/* ── PERSON HERO ────────────────────────── */
.person-hero {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border-light);
}
@media (min-width: 768px) {
  .person-hero { flex-direction: row; align-items: stretch; }
}

.person-hero__photo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-muted);
  min-width: 200px;
}
@media (min-width: 768px) {
  .person-hero__photo {
    border-bottom: none;
    border-right: 1px solid var(--border-light);
    min-width: 240px;
    padding: var(--space-12);
  }
}
.person-hero__img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-card);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.person-hero__placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.person-hero__info {
  flex: 1;
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 768px) {
  .person-hero__info { padding: var(--space-12) var(--space-16); }
}
.person-hero__name {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-main);
}
.person-hero__role {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-secondary);
  font-size: var(--text-base);
  margin-top: var(--space-2);
}
.person-hero__depts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.person-hero__dept-tag {
  padding: 3px 8px;
  background: rgba(14,90,74,.08);
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-radius: 2px;
}

/* ── PERSON CONTACT (sidebar rows) ──────── */
.person-contact__row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 1px solid var(--border-light);
  transition: background .15s;
}
.person-contact__row:last-child { border-bottom: none; }
.person-contact__row:hover { background: var(--bg-muted); }
a.person-contact__row:hover { color: var(--brand); }
.person-contact__row i {
  font-size: var(--text-base);
  color: var(--brand);
  flex-shrink: 0;
  width: 1.25rem;
  text-align: center;
}
.person-research {
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── DEPARTMENT HERO ────────────────────── */
.dept-hero {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border-light);
}
@media (min-width: 768px) {
  .dept-hero { flex-direction: row; align-items: stretch; }
}

.dept-hero__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-muted);
  min-width: 200px;
  position: relative;
}
.dept-hero__badge::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--brand);
}
@media (min-width: 768px) {
  .dept-hero__badge {
    border-bottom: none;
    border-right: 1px solid var(--border-light);
    min-width: 240px;
    padding: var(--space-12);
  }
  .dept-hero__badge::before {
    top: 0; left: 0; bottom: 0;
    right: auto; width: 4px; height: auto;
  }
}
.dept-hero__short {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  color: var(--brand);
  line-height: 1;
  letter-spacing: -0.03em;
}

.dept-hero__info {
  flex: 1;
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 768px) {
  .dept-hero__info { padding: var(--space-12) var(--space-16); }
}
.dept-hero__title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-main);
}

/* ── DEPARTMENT HEAD CARD (sidebar) ─────── */
.dept-head-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  text-decoration: none;
  color: inherit;
  transition: background .15s;
}
.dept-head-card:hover { background: var(--bg-muted); }
.dept-head-card__photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  overflow: hidden;
}
.dept-head-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dept-head-card__photo--empty {
  background: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
}
.dept-head-card__info { flex: 1; }
.dept-head-card__name {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text-main);
}
.dept-head-card:hover .dept-head-card__name { color: var(--brand); }

/* ── STAFF GRID ─────────────────────────── */
.staff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border-light);
}
@media (min-width: 640px) {
  .staff-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .staff-grid { grid-template-columns: repeat(3, 1fr); }
}

.staff-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  background: var(--bg-card);
  text-decoration: none;
  color: inherit;
  transition: background .15s;
}
.staff-card:hover { background: var(--bg-muted); }

.staff-card__photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
}
.staff-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.staff-card__info { flex: 1; min-width: 0; }
.staff-card__prefix {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.staff-card__name {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text-main);
  line-height: 1.3;
}
.staff-card:hover .staff-card__name { color: var(--brand); }
.staff-card__role {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 1px;
}

/* ── CONTENT SECTIONS ───────────────────── */
.section {
  padding: var(--space-12) var(--space-8);
  border-top: 1px solid var(--border-light);
}
@media (min-width: 768px) {
  .section { padding: var(--space-16) var(--space-12); }
}

.section-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
.section-number {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--brand);
}
.section-title {
  font-size: var(--text-xl);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* ── POST CARDS (Archive) ───────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
}
@media (min-width: 768px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(3, 1fr); }
}

.post-card {
  background: var(--bg-card);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  transition: background .2s;
}
.post-card:hover { background: var(--bg-muted); }

.post-card__image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin-bottom: var(--space-4);
  border: 1px solid var(--border-light);
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.post-card__type {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--brand);
}
.post-card__date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-tertiary);
}

.post-card__title {
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
  line-height: 1.3;
}
.post-card__title a:hover { color: var(--brand); }

.post-card__excerpt {
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

/* ── SINGLE POST ────────────────────────── */
.single-content {
  max-width: 960px;
  margin: 0 auto;
  padding: var(--space-12) var(--space-6);
}
@media (min-width: 768px) {
  .single-content { padding: var(--space-16) var(--space-8); }
}

.single-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: var(--space-6);
}

.single-content .entry-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-light);
}

.single-content .entry-body {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--text-secondary);
}
.single-content .entry-body p { margin-bottom: 1.5em; }
.single-content .entry-body h2 {
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text-main);
  margin: 2em 0 0.75em;
  letter-spacing: -0.02em;
}
.single-content .entry-body h3 {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-main);
  margin: 1.5em 0 0.5em;
}
.single-content .entry-body a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.single-content .entry-body a:hover { color: var(--brand-hover); }
.single-content .entry-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: var(--space-6);
  margin: 1.5em 0;
  font-style: italic;
  color: var(--text-secondary);
}
.single-content .entry-body ul,
.single-content .entry-body ol {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}
.single-content .entry-body li { margin-bottom: 0.5em; }
.single-content .entry-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 2em auto;
  border: 1px solid var(--border-light);
}

/* ── FOOTER ─────────────────────────────── */
.site-footer-full {
  border-top: 1px solid var(--border-light);
  background: var(--text-main);
  color: rgba(255,255,255,.7);
}

/* Top bar: brand + social */
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-8);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-top__brand {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.footer-logo {
  font-weight: 900;
  font-size: var(--text-xl);
  text-transform: uppercase;
  letter-spacing: -0.04em;
  color: var(--text-inverse);
  text-decoration: none;
}
.footer-logo .slash { color: var(--brand-light); }
.footer-logo:hover { color: var(--brand-light); }
.footer-top__names {
  display: none;
  flex-direction: column;
  gap: 1px;
  border-left: 1px solid rgba(255,255,255,.1);
  padding-left: var(--space-4);
}
@media (min-width: 768px) { .footer-top__names { display: flex; } }
.footer-top__uni {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.4);
}
.footer-top__fac {
  font-size: var(--text-sm);
  font-weight: 700;
  color: rgba(255,255,255,.7);
}

/* Social links */
.footer-social {
  display: flex;
  gap: var(--space-2);
}
.footer-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.6);
  font-size: 1.125rem;
  text-decoration: none;
  transition: all .2s;
}
.footer-social__link:hover {
  background: var(--brand);
  color: var(--text-inverse);
}

/* Columns */
.footer-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(255,255,255,.05);
  padding: 0;
}
@media (min-width: 640px) {
  .footer-columns { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer-columns { grid-template-columns: repeat(4, 1fr); }
}

.footer-col {
  padding: var(--space-6) var(--space-8);
  background: var(--text-main);
}
.footer-col__title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--brand-light);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* Contact rows */
.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(255,255,255,.6);
  text-decoration: none;
  line-height: 1.5;
}
a.footer-contact-row:hover { color: var(--brand-light); }
.footer-contact-row i {
  color: var(--brand-light);
  font-size: var(--text-base);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Links */
.footer-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) 0;
  font-size: var(--text-sm);
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .15s;
}
.footer-link:hover { color: var(--brand-light); }
.footer-link i { font-size: var(--text-base); color: rgba(255,255,255,.3); }

/* Footer WP menu */
.footer-menu a {
  display: block;
  padding: var(--space-1) 0;
  font-size: var(--text-sm);
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .15s;
}
.footer-menu a:hover { color: var(--brand-light); }

/* Recent events */
.footer-event {
  display: flex;
  flex-direction: column;
  padding: var(--space-2) 0;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: color .15s;
}
.footer-event:last-child { border-bottom: none; }
.footer-event:hover .footer-event__title { color: var(--brand-light); }
.footer-event__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,.7);
  line-height: 1.3;
  transition: color .15s;
}
.footer-event__date {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: rgba(255,255,255,.3);
  margin-top: 2px;
}
.footer-empty {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.3);
  font-style: italic;
}

/* Bottom bar */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 11px;
  color: rgba(255,255,255,.3);
}
.footer-bottom__copy { font-family: var(--font-mono); font-size: 9px; letter-spacing: .05em; }

/* Structuralist Impact Badge */
.structuralist-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 4px;
  text-decoration: none;
  color: rgba(255,255,255,.5);
  transition: all .25s;
}
.structuralist-badge:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--brand-light);
  color: var(--brand-light);
}
.structuralist-badge__logo {
  flex-shrink: 0;
  transition: color .25s;
}
.structuralist-badge:hover .structuralist-badge__logo { color: var(--brand-light); }
.structuralist-badge__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.structuralist-badge__name {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  color: rgba(255,255,255,.7);
  transition: color .25s;
}
.structuralist-badge:hover .structuralist-badge__name { color: var(--text-inverse); }
.structuralist-badge__impact {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.3);
  transition: color .25s;
}
.structuralist-badge:hover .structuralist-badge__impact { color: var(--brand-light); }

/* ── PAGINATION ─────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-8) 0;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  border: 1px solid var(--border-light);
  transition: all .2s;
}
.pagination a:hover {
  background: var(--brand);
  color: var(--text-inverse);
  border-color: var(--brand);
}
.pagination .current {
  background: var(--text-main);
  color: var(--text-inverse);
  border-color: var(--text-main);
}

/* ── 404 ────────────────────────────────── */
.page-404 {
  padding: var(--space-16) var(--space-8);
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.page-404__code {
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--border-light);
  margin-bottom: var(--space-4);
}
.page-404__text {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-tertiary);
}

/* ── WIDGET / SIDEBAR ───────────────────── */
.widget {
  margin-bottom: var(--space-8);
}
.widget-title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-main);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: var(--space-4);
}

/* ── ARCHIVE LIST (vertical) ────────────── */
.archive-list {
  border-bottom: 1px solid var(--border-light);
}

.archive-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border-light);
  transition: background .15s;
}
@media (min-width: 768px) { .archive-row { padding: var(--space-4) var(--space-8); } }
.archive-row:last-child { border-bottom: none; }
.archive-row:hover { background: var(--bg-muted); }

.archive-row__thumb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--border-light);
}
.archive-row__thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.archive-row__thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 1.25rem;
}

.archive-row__body {
  flex: 1;
  min-width: 0;
}
.archive-row__prefix {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: .06em;
  display: block;
}
.archive-row__badge {
  display: inline-block;
  padding: 1px 5px;
  background: rgba(14,90,74,.08);
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  border-radius: 2px;
  margin-bottom: 2px;
}
.archive-row__title {
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--text-main);
  line-height: 1.3;
}
.archive-row:hover .archive-row__title { color: var(--brand); }

.archive-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.archive-row__meta i { font-size: 11px; vertical-align: -1px; }
.archive-row__type { color: var(--brand); }

.archive-row__excerpt {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: 3px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.archive-row__excerpt p { margin: 0; }

.archive-row__arrow {
  flex-shrink: 0;
  color: var(--text-tertiary);
  font-size: 1rem;
  transition: color .15s;
}
.archive-row:hover .archive-row__arrow { color: var(--brand); }

/* ── ARCHIVE SEARCH ─────────────────────── */
.archive-search {
  display: flex;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .2s;
}
.archive-search:focus-within { border-color: var(--brand); }
.archive-search__input {
  flex: 1;
  border: none;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  outline: none;
  background: transparent;
}
.archive-search__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  border: none;
  background: var(--brand);
  color: var(--text-inverse);
  cursor: pointer;
  font-size: 1rem;
  transition: background .15s;
}
.archive-search__btn:hover { background: var(--brand-hover); }

/* ── ARCHIVE FILTER LIST ────────────────── */
.archive-filter-list {
  display: flex;
  flex-direction: column;
}
.archive-filter-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 1px solid var(--border-light);
  transition: background .15s, color .15s;
}
.archive-filter-item:last-child { border-bottom: none; }
.archive-filter-item:hover { background: var(--bg-muted); color: var(--brand); }
.archive-filter-item.is-active {
  background: rgba(14,90,74,.05);
  color: var(--brand);
  font-weight: 700;
  border-left: 3px solid var(--brand);
}
.archive-filter-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--text-tertiary);
  background: var(--bg-muted);
  padding: 1px 6px;
  border-radius: 10px;
}

/* Level filter dots */
.archive-filter-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.archive-filter-dot--licenta  { background: var(--brand); }
.archive-filter-dot--master   { background: var(--accent); }
.archive-filter-dot--doctorat { background: var(--text-main); }
.archive-filter-dot--formare  { background: var(--text-tertiary); }

/* ── EVENT CALENDAR STRIP ────────────────── */
.event-calendar-strip {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-card);
  overflow: hidden;
}
.event-cal__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
  flex-shrink: 0;
}
.event-cal__nav:first-child { border-right: 1px solid var(--border-light); }
.event-cal__nav:last-child { border-left: 1px solid var(--border-light); }
.event-cal__nav:hover { background: var(--bg-muted); color: var(--brand); }

.event-cal__days {
  display: flex;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.event-cal__days::-webkit-scrollbar { display: none; }

.event-cal__day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 54px;
  padding: var(--space-3) var(--space-2);
  text-decoration: none;
  color: var(--text-secondary);
  border-right: 1px solid var(--border-light);
  transition: background .15s, color .15s;
  position: relative;
}
.event-cal__day:last-child { border-right: none; }
.event-cal__day:hover { background: var(--bg-muted); }
.event-cal__day--weekend { color: var(--text-tertiary); }

.event-cal__day--today {
  background: var(--bg-muted);
  font-weight: 700;
}
.event-cal__day--today .event-cal__num {
  color: var(--brand);
}

.event-cal__day--active {
  background: var(--brand);
  color: var(--text-inverse) !important;
}
.event-cal__day--active .event-cal__dow,
.event-cal__day--active .event-cal__num,
.event-cal__day--active .event-cal__month {
  color: var(--text-inverse);
}

.event-cal__dow {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.event-cal__num {
  font-size: var(--text-xl);
  font-weight: 900;
  line-height: 1;
  color: var(--text-main);
}
.event-cal__month {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
}
.event-cal__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  position: absolute;
  bottom: 4px;
}
.event-cal__day--active .event-cal__dot { background: var(--text-inverse); }

/* ── EVENT FILTER TAGS ──────────────────── */
.event-filters {
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-card);
  padding: var(--space-3) var(--space-6);
}
.event-filters__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}
.event-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-muted);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
}
.event-filter-tag:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.event-filter-tag--active {
  background: var(--brand);
  color: var(--text-inverse);
  border-color: var(--brand);
}
.event-filter-tag--active:hover {
  background: var(--brand-hover);
  color: var(--text-inverse);
}
.event-filter-tag--clear {
  background: transparent;
  border-color: var(--text-tertiary);
  color: var(--text-tertiary);
  font-size: 11px;
}
.event-filter-tag--clear:hover {
  border-color: #b32d2e;
  color: #b32d2e;
}
.event-filter-tag i { font-size: 12px; }

/* ── EVENT LIST (cards) ─────────────────── */
.event-list {
  background: var(--bg-card);
}

.event-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border-light);
  transition: background .15s;
}
@media (min-width: 768px) { .event-card { padding: var(--space-4) var(--space-8); } }
.event-card:last-child { border-bottom: none; }
.event-card:hover { background: var(--bg-muted); }
.event-card--past { opacity: .6; }
.event-card--past:hover { opacity: .8; }

/* Date badge */
.event-card__date {
  width: 56px;
  height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: var(--text-inverse);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.event-card--past .event-card__date { background: var(--text-tertiary); }

/* Speaker/Event avatar */
.event-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 1.25rem;
}
.event-card__avatar img {
  width: 100%; height: 100%; object-fit: cover;
}

.event-card__day {
  font-size: var(--text-xl);
  font-weight: 900;
  line-height: 1;
}
.event-card__month {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Body */
.event-card__body { flex: 1; min-width: 0; }
.event-card__title {
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 3px;
}
.event-card:hover .event-card__title { color: var(--brand); }
.event-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--text-tertiary);
}
.event-card__meta i { font-size: 11px; vertical-align: -1px; }
.event-card__excerpt {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.event-card__excerpt p { margin: 0; }

/* Event card format label */
.event-card__format {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brand);
  margin-bottom: 2px;
}

/* Speaker in event card */
.event-card__speaker {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-main);
  margin-top: 2px;
}
.event-card__speaker-role {
  font-weight: 400;
  color: var(--text-tertiary);
}

/* Section labels (Upcoming / Past) */
.event-section-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  border-bottom: 1px solid var(--border-light);
}
.event-section-label--upcoming {
  color: var(--brand);
  background: rgba(14,90,74,.03);
}
.event-section-label--past {
  color: var(--text-tertiary);
  background: var(--bg-muted);
}
.event-section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 4px;
  border-radius: 10px;
  background: var(--bg-muted);
  font-size: 9px;
  margin-left: auto;
}

/* Badges */
.event-card__badges {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
}
.event-badge {
  display: inline-block;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-radius: 10px;
  line-height: 1.4;
  text-align: center;
}
.event-badge--online {
  background: #dff7df;
  color: #137413;
  border: 1px solid #c5e9c5;
}
.event-badge--offline {
  background: #ffe8d4;
  color: #a45200;
  border: 1px solid #f1caa6;
}
.event-badge--past {
  background: var(--bg-muted);
  color: var(--text-tertiary);
  border: 1px solid var(--border-light);
}

.event-card__arrow {
  flex-shrink: 0;
  color: var(--text-tertiary);
  font-size: 1rem;
  transition: color .15s;
}
.event-card:hover .event-card__arrow { color: var(--brand); }

/* ── CV PROFILE BADGES (hero) ───────────── */
.cv-profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-muted);
  border: 1px solid var(--border-light);
  border-radius: 3px;
  text-decoration: none;
  transition: all .15s;
}
.cv-profile-badge:hover {
  background: var(--brand);
  color: var(--text-inverse);
  border-color: var(--brand);
}
.cv-profile-badge i { font-size: 13px; }

/* ── CV SECTIONS ────────────────────────── */
.cv-section {
  border-top: 1px solid var(--border-light);
}

.cv-entry {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-8);
  border-bottom: 1px solid var(--border-light);
}
.cv-entry:last-child { border-bottom: none; }

.cv-entry__period {
  width: 120px;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--brand);
  padding-top: 2px;
}
@media (max-width: 640px) {
  .cv-entry { flex-direction: column; gap: var(--space-1); }
  .cv-entry__period { width: auto; }
}

.cv-entry__body { flex: 1; min-width: 0; }
.cv-entry__title {
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--text-main);
  line-height: 1.3;
}
.cv-entry__org {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: 2px;
}
.cv-entry__detail {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* Publications */
.cv-pub-list {
  list-style: none;
  counter-reset: pub;
  padding: 0;
  margin: 0;
}
.cv-pub {
  counter-increment: pub;
  padding: var(--space-3) var(--space-8);
  border-bottom: 1px solid var(--border-light);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}
.cv-pub:last-child { border-bottom: none; }
.cv-pub::before {
  content: counter(pub) ". ";
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 10px;
  color: var(--brand);
}
.cv-pub a { color: var(--text-main); font-weight: 600; }
.cv-pub a:hover { color: var(--brand); }
.cv-pub__year {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--text-tertiary);
  margin-left: var(--space-2);
}

/* Conferences */
.cv-conf-list {
  list-style: none;
  padding: 0; margin: 0;
}
.cv-conf-list li {
  padding: var(--space-3) var(--space-8);
  border-bottom: 1px solid var(--border-light);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}
.cv-conf-list li:last-child { border-bottom: none; }

/* ── DISCIPLINE TABLE ────────────────────── */
.disc-year-header {
  padding: var(--space-3) var(--space-8);
  background: var(--bg-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--brand);
  border-bottom: 1px solid var(--border-light);
}

.disc-table {
  border-bottom: 1px solid var(--border-light);
}

.disc-table__head {
  display: none;
  padding: var(--space-2) var(--space-6);
  border-bottom: 2px solid var(--border-light);
  background: var(--bg-card);
}
@media (min-width: 768px) {
  .disc-table__head { display: flex; gap: var(--space-2); }
}
.disc-table__head .disc-table__col {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-tertiary);
}

.disc-table__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  color: inherit;
  transition: background .15s;
  align-items: center;
}
.disc-table__row:last-child { border-bottom: none; }
.disc-table__row:hover { background: var(--bg-muted); }

.disc-table__col {
  font-size: var(--text-sm);
}
.disc-table__col--code {
  width: 90px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--brand);
  flex-shrink: 0;
}
.disc-table__col--name {
  flex: 1;
  min-width: 120px;
  font-weight: 700;
  color: var(--text-main);
}
.disc-table__row:hover .disc-table__col--name { color: var(--brand); }
.disc-table__col--credits {
  width: 60px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  flex-shrink: 0;
}
.disc-table__col--sem,
.disc-table__col--year,
.disc-table__col--eval {
  width: 50px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
  text-align: center;
  flex-shrink: 0;
}
.disc-table__col--teacher {
  width: 140px;
  font-size: 11px;
  color: var(--text-secondary);
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .disc-table__col--code { width: auto; }
  .disc-table__col--name { width: 100%; }
  .disc-table__col--credits,
  .disc-table__col--sem,
  .disc-table__col--year,
  .disc-table__col--eval,
  .disc-table__col--teacher { width: auto; }
}

/* ── ORAR (timetable) ───────────────────── */
.orar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border-light);
}
@media (min-width: 640px) {
  .orar-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .orar-grid { grid-template-columns: repeat(3, 1fr); }
}
/* When inside sidebar layout, max 3 cols */
.program-layout__content .orar-grid {
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .program-layout__content .orar-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) {
  .program-layout__content .orar-grid { grid-template-columns: repeat(3, 1fr); }
}

.orar-day {
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  min-height: 120px;
}
.orar-day--today { background: rgba(14,90,74,.02); }
.orar-day--empty { opacity: .5; }

.orar-day__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-bottom: 2px solid var(--border-light);
  background: var(--bg-muted);
}
.orar-day--today .orar-day__header {
  background: var(--brand);
  border-bottom-color: var(--brand);
}
.orar-day__name {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-main);
}
.orar-day--today .orar-day__name { color: var(--text-inverse); }
.orar-day__today-badge {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(255,255,255,.25);
  color: var(--text-inverse);
}
.orar-day__count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--text-tertiary);
  background: var(--bg-card);
  padding: 1px 6px;
  border-radius: 10px;
}
.orar-day--today .orar-day__count {
  background: rgba(255,255,255,.2);
  color: var(--text-inverse);
}

.orar-empty {
  padding: var(--space-6);
  text-align: center;
  color: var(--text-tertiary);
  font-size: var(--text-sm);
}

/* Entry */
.orar-entry {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-left: 3px solid var(--brand);
  border-bottom: 1px solid var(--border-light);
  transition: background .15s;
}
.orar-entry:last-child { border-bottom: none; }
.orar-entry:hover { background: var(--bg-muted); }

.orar-entry__time {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 40px;
  flex-shrink: 0;
}
.orar-entry__start {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}
.orar-entry__end {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--text-tertiary);
  line-height: 1;
  margin-top: 2px;
}

.orar-entry__body { flex: 1; min-width: 0; }

.orar-entry__subject {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 3px;
}

.orar-entry__details {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  font-size: 10px;
  color: var(--text-tertiary);
}
.orar-entry__details i { font-size: 11px; vertical-align: -1px; }
.orar-entry__type {
  font-family: var(--font-mono);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 9px;
}
.orar-entry__link {
  color: inherit;
  text-decoration: none;
}
.orar-entry__link:hover { color: var(--brand); text-decoration: underline; }

.orar-entry__weeks {
  display: inline-block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 1px 5px;
  border-radius: 2px;
  background: var(--bg-muted);
  color: var(--text-tertiary);
  border: 1px solid var(--border-light);
}

/* ── SCHEDULE MINI TABLE ────────────────── */
.sched-mini {
  border-bottom: 1px solid var(--border-light);
}

.sched-mini__row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  border-bottom: 1px solid var(--border-light);
  border-left: 3px solid var(--brand);
  transition: background .15s;
}
.sched-mini__row:last-child { border-bottom: none; }
.sched-mini__row:hover { background: var(--bg-muted); }

.sched-mini__day {
  width: 50px;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
}

.sched-mini__time {
  width: 75px;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
}

.sched-mini__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sched-mini__subject {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text-main);
  line-height: 1.3;
}

.sched-mini__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  font-size: 10px;
  color: var(--text-tertiary);
}
.sched-mini__meta i { font-size: 11px; vertical-align: -1px; }

/* ── DOCUMENTS (content area) ────────────── */
.docs-list {
  border-bottom: 1px solid var(--border-light);
}

.docs-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-8);
  text-decoration: none;
  color: inherit;
  transition: background .15s;
  border-bottom: 1px solid var(--border-light);
}
.docs-item:last-child { border-bottom: none; }
.docs-item:hover { background: var(--bg-muted); }

.docs-item--active { padding: var(--space-6) var(--space-8); }

.docs-item__icon {
  width: 52px;
  height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: var(--brand);
  color: var(--text-inverse);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.docs-item--active .docs-item__icon { width: 56px; height: 64px; }
.docs-item__icon i { font-size: 1.25rem; }
.docs-item--active .docs-item__icon i { font-size: 1.5rem; }
.docs-item__ext {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1;
}
.docs-item__icon--muted {
  background: var(--bg-muted);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.docs-item__info { flex: 1; min-width: 0; }
.docs-item__title {
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 2px;
}
.docs-item--active .docs-item__title { font-size: var(--text-lg); }
.docs-item--archive .docs-item__title {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.docs-item__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.docs-item__badge {
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 800;
  background: rgba(14,90,74,.1);
  color: var(--brand);
  border: 1px solid rgba(14,90,74,.2);
}
.docs-item__dl {
  flex-shrink: 0;
  color: var(--text-tertiary);
  font-size: 1.125rem;
  transition: color .15s;
}
.docs-item:hover .docs-item__dl { color: var(--brand); }

/* Archive toggle */
.docs-archive {
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border-light);
}
.docs-archive__toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
  list-style: none;
}
.docs-archive__toggle::-webkit-details-marker { display: none; }
.docs-archive__toggle::before {
  content: '▸';
  font-size: 10px;
  transition: transform .2s;
}
.docs-archive[open] .docs-archive__toggle::before { transform: rotate(90deg); }
.docs-archive__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--border-light);
  color: var(--text-secondary);
  font-size: 9px;
  margin-left: auto;
}
.docs-archive .docs-item { background: transparent; }
.docs-archive .docs-item:hover { background: rgba(255,255,255,.5); }

/* ── ADMIN BAR FIX ──────────────────────── */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.admin-bar .site-nav.is-open { top: calc(4rem + 32px); }
@media (max-width: 782px) { .admin-bar .site-nav.is-open { top: calc(4rem + 46px); } }

/* ── ORAR FILTER DROPDOWNS ──────────────── */
.orar-filter-select {
  padding: 6px 28px 6px 10px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--text-main);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' fill='none' stroke='%23999' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: border-color .2s;
}
.orar-filter-select:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(30,84,183,.08); }
.orar-filter-select:hover { border-color: var(--border-medium); }


/* ── USER PANEL (students & professors) ── */
.user-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-6);
  height: 2.25rem;
  background: var(--text-main);
  color: var(--text-inverse);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.user-panel__greeting {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  opacity: .8;
}
.user-panel__greeting strong {
  opacity: 1;
  text-transform: uppercase;
}

.user-panel__links {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
}

.user-panel__link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-4);
  height: 100%;
  color: var(--text-inverse);
  text-decoration: none;
  text-transform: uppercase;
  transition: background .2s, color .2s;
  border-left: 1px solid rgba(255,255,255,.08);
  white-space: nowrap;
}
.user-panel__link:hover {
  background: var(--brand);
}
.user-panel__link--logout:hover {
  background: #DC2626;
}

.user-panel__link i {
  font-size: 14px;
}

/* When admin bar is also present */
.admin-bar .user-panel {
  margin-top: 0;
}

/* Mobile: compact */
@media (max-width: 768px) {
  .user-panel {
    padding: 0 var(--space-3);
    font-size: 9px;
  }
  .user-panel__greeting span {
    display: none;
  }
  .user-panel__link {
    padding: 0 var(--space-3);
  }
}
/* ═════════════════════════════════════════════════════════════════
   CV PRINT STYLES — single-person.php
   Pentru a fi adăugat în assets/css/structuralist.css (la final).
   Folosește clasele REALE din șablon.
   ═════════════════════════════════════════════════════════════════ */


/* ─── Bloc print-only — ascuns pe ecran ─── */
.cv-profile-urls-print { display: none; }


/* ═════════════════════════════════════════════════════════════════
   @media print
   ═════════════════════════════════════════════════════════════════ */
@media print {

  @page {
    size: A4 portrait;
    margin: 1.5cm 1.4cm;
  }

  /* Reset universal — fără culori, fără umbre, fără animații */
  *, *::before, *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    transition: none !important;
    animation: none !important;
    filter: none !important;
  }

  html, body {
    background: #fff !important;
    font-family: Georgia, 'Cambria', 'Times New Roman', serif !important;
    font-size: 10.5pt !important;
    line-height: 1.4 !important;
    color: #000 !important;
  }

  /* ─── HIDE: tot ce nu-i CV ──────────────────────────────────── */

  /* User panel logged-in: „Cabinetul profesorului · Editare profil · Ieșire" */
  .user-panel,

  /* Header + footer + breadcrumbs + navigation */
  .site-header,
  .site-nav,
  .megamenu-overlay,
  .site-burger,
  #site-burger,
  .site-footer,
  .site-footer-full,
  .footer-top, .footer-columns, .footer-bottom,
  .breadcrumbs,
  .structuralist-badge,
  .footer-anticorruption,

  /* Buttons & CV actions */
  .cv-actions,
  .cv-profile-badges-screen,
  button,
  .btn,
  .pagination,

  /* Admin toolbar */
  #wpadminbar,
  .skip-link,

  /* Documente — NU în CV */
  .sedu-documents,
  .person-documents,
  .documents-section,

  /* „Versiuni anterioare" toggle */
  .versions-toggle,
  .versions-list,

  /* Decorative icons everywhere */
  .ph, .ph-bold, .ph-fill, .ph-duotone, .ph-thin, .ph-light,
  i[class*="ph-"],

  /* Eventos / participări — context site, nu CV */
  .person-events,
  .events-section,

  /* Sidebar related (programs, alte persoane) */
  .sidebar-related,
  .sidebar-related__item {
    display: none !important;
  }

  /* Excepție: în .sidebar-block „Subdiviziune" lăsăm numele departamentului */
  .sidebar-block .sidebar-related__item {
    display: block !important;
    padding: 0 !important;
    border: none !important;
  }
  .sidebar-block .sidebar-related__item .sidebar-related__name {
    color: #000 !important;
    font-style: italic !important;
  }


  /* ─── Layout: o singură coloană, fără container constrains ─── */
  main, .site-container, .program-layout,
  .program-layout__sidebar, .program-layout__content {
    display: block !important;
    grid-template-columns: 1fr !important;
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: none !important;
  }


  /* ════════════════════════════════════════════════════════════
     HERO — foto + nume + rol + departamente
     ════════════════════════════════════════════════════════════ */
  .person-hero {
    display: grid !important;
    grid-template-columns: 110pt 1fr !important;
    gap: 18pt !important;
    align-items: flex-start !important;
    margin: 0 0 12pt 0 !important;
    padding: 0 0 10pt 0 !important;
    border-bottom: 1pt solid #000 !important;
    page-break-after: avoid !important;
    break-after: avoid !important;
  }

  .person-hero__photo {
    width: 110pt !important;
    height: 140pt !important;
    overflow: hidden !important;
    border: 0.5pt solid #888 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }
  .person-hero__photo img,
  .person-hero__img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 0 !important;
  }

  .person-hero__info {
    padding: 0 !important;
  }

  .person-hero__info .mono-label {
    font-family: 'Helvetica', 'Arial', sans-serif !important;
    font-size: 8pt !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #555 !important;
    margin: 0 0 3pt 0 !important;
  }

  .person-hero__name {
    font-family: Georgia, serif !important;
    font-size: 22pt !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    margin: 0 0 5pt 0 !important;
    letter-spacing: -0.01em !important;
  }

  .person-hero__role {
    font-family: Georgia, serif !important;
    font-size: 12pt !important;
    font-style: italic !important;
    color: #333 !important;
    margin: 0 0 8pt 0 !important;
  }

  .person-hero__depts {
    display: block !important;
    margin: 4pt 0 0 0 !important;
    padding: 0 !important;
  }
  .person-hero__dept-tag {
    display: inline !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    font-size: 9.5pt !important;
    color: #444 !important;
    font-family: 'Helvetica', 'Arial', sans-serif !important;
  }
  .person-hero__dept-tag::after {
    content: " · ";
    color: #999;
  }
  .person-hero__dept-tag:last-child::after { content: ""; }


  /* ════════════════════════════════════════════════════════════
     SIDEBAR — devine bloc orizontal compact sub hero
     ════════════════════════════════════════════════════════════ */
  .program-layout__sidebar {
    margin: 0 0 12pt 0 !important;
    padding: 0 !important;
  }

  .sidebar-block {
    margin: 0 0 8pt 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .sidebar-block__title {
    font-family: 'Helvetica', 'Arial', sans-serif !important;
    font-size: 8pt !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: #777 !important;
    margin: 0 0 2pt 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
  }

  /* Contact: stack rows tight */
  .person-contact {
    margin: 0 !important;
    padding: 0 !important;
  }
  .person-contact__row {
    display: block !important;
    padding: 0 !important;
    margin: 0 0 1pt 0 !important;
    font-size: 10pt !important;
    color: #000 !important;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
  }
  .person-contact__row span {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Cercetare / Limbi / Competențe — text simplu */
  .person-research,
  .sidebar-block > div:not(.sidebar-block__title):not(.person-contact) {
    padding: 0 !important;
    margin: 0 !important;
    font-size: 10pt !important;
    color: #000 !important;
    line-height: 1.4 !important;
  }


  /* ────────── Profiluri (print-only block) ────────── */
  .cv-profile-urls-print {
    display: block !important;
    margin: 8pt 0 12pt 0 !important;
    padding: 6pt 0 0 0 !important;
    border-top: 0.5pt solid #ccc !important;
  }
  .cv-profile-urls-print h4 {
    font-family: 'Helvetica', 'Arial', sans-serif !important;
    font-size: 8pt !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: #777 !important;
    margin: 0 0 3pt 0 !important;
  }
  .cv-profile-url-row {
    font-size: 9pt !important;
    line-height: 1.45 !important;
    margin: 0 !important;
    color: #000 !important;
  }
  .cv-profile-url-label {
    font-weight: 700 !important;
    margin-right: 3pt !important;
  }
  .cv-profile-url-value {
    font-family: 'Consolas', 'Courier New', monospace !important;
    font-size: 8.5pt !important;
    color: #333 !important;
    word-break: break-all !important;
  }


  /* ════════════════════════════════════════════════════════════
     CV SECTIONS — Educație, Experiență, Publicații, etc.
     Folosește clasele REALE din șablon: .cv-entry, .cv-entry__*
     ════════════════════════════════════════════════════════════ */

  .cv-section {
    margin: 14pt 0 0 0 !important;
    padding: 0 !important;
    page-break-inside: auto !important;
  }

  .cv-section .section-toolbar {
    display: block !important;
    padding: 0 0 3pt 0 !important;
    margin: 0 0 6pt 0 !important;
    border-bottom: 1pt solid #000 !important;
    background: transparent !important;
  }

  .cv-section .toolbar-title {
    font-family: Georgia, serif !important;
    font-size: 13pt !important;
    font-weight: 700 !important;
    color: #000 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
  }

  /* ── CV ENTRY (Educație, Experiență, Proiecte) ── */
  .cv-entry {
    display: grid !important;
    grid-template-columns: 95pt 1fr !important;
    gap: 12pt !important;
    margin: 0 0 8pt 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .cv-entry__period {
    font-family: 'Helvetica', 'Arial', sans-serif !important;
    font-size: 9pt !important;
    font-weight: 700 !important;
    color: #555 !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
  }

  .cv-entry__body {
    padding: 0 !important;
    margin: 0 !important;
  }

  .cv-entry__title {
    font-family: Georgia, serif !important;
    font-size: 11pt !important;
    font-weight: 700 !important;
    color: #000 !important;
    line-height: 1.3 !important;
    margin: 0 0 1pt 0 !important;
    padding: 0 !important;
  }

  .cv-entry__org {
    font-family: Georgia, serif !important;
    font-size: 10pt !important;
    font-style: italic !important;
    color: #444 !important;
    margin: 0 0 1pt 0 !important;
    padding: 0 !important;
    line-height: 1.35 !important;
  }

  .cv-entry__detail {
    font-size: 9.5pt !important;
    color: #555 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.35 !important;
  }


  /* ── CV PUBLICAȚII (ordered list) ── */
  .cv-pub-list {
    list-style: decimal !important;
    margin: 0 0 0 18pt !important;
    padding: 0 !important;
  }
  .cv-pub {
    font-family: Georgia, serif !important;
    font-size: 10pt !important;
    line-height: 1.4 !important;
    color: #000 !important;
    margin: 0 0 4pt 0 !important;
    padding: 0 !important;
    list-style: decimal !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  .cv-pub a {
    color: #000 !important;
    text-decoration: none !important;
  }
  .cv-pub a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-family: 'Consolas', 'Courier New', monospace !important;
    font-size: 7.5pt !important;
    color: #666 !important;
    word-break: break-all !important;
    font-weight: normal !important;
  }
  .cv-pub__year {
    font-family: 'Helvetica', 'Arial', sans-serif !important;
    font-size: 8.5pt !important;
    font-weight: 700 !important;
    color: #555 !important;
    margin-left: 4pt !important;
  }


  /* ── CV CONFERINȚE (unordered list) ── */
  .cv-conf-list {
    list-style: disc !important;
    margin: 0 0 0 18pt !important;
    padding: 0 !important;
  }
  .cv-conf-list li {
    font-family: Georgia, serif !important;
    font-size: 10pt !important;
    line-height: 1.4 !important;
    color: #000 !important;
    margin: 0 0 3pt 0 !important;
    padding: 0 !important;
    list-style: disc !important;
  }


  /* Page break controls */
  h1, h2, h3, h4 {
    page-break-after: avoid !important;
    break-after: avoid !important;
  }
  .cv-section + .cv-section {
    page-break-before: auto !important;
  }

  /* External links in body content */
  .entry-body a[href^="http"]::after,
  .single-content a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-family: 'Consolas', monospace;
    font-size: 7.5pt;
    color: #666;
    word-break: break-all;
  }

}


/* ═════════════════════════════════════════════════════════════════
   TWO-ROW NAV STACK — minimal addition
   Restul stilurilor (.site-brand, .brand-img, .site-title-block,
   .site-nav > a, hover, dividere) — moștenite din regulile temei
   originale (.site-header { display: flex }). NU le suprascriem.
   ═════════════════════════════════════════════════════════════════ */

/* Înălţime explicită 80px (=row1 + row2) — necesar pentru ca
   `height: 100%` pe logo-uri / title să funcţioneze corect. */
.site-header { 
  height: 80px !important;
  overflow: visible !important;
}

/* Title — îl forţăm să se înfăşoare pe 2 rânduri */
.site-header .site-title-block {
  flex: 0 1 360px;              /* lăţime max 360px → text se înfăşoară */
  max-width: 360px;
  border-right: 1px solid var(--border-light);   /* separator vizual către nav */
}
.site-header .site-title-block__fac {
  font-size: 13px;              /* mai mare ca să umple înălţimea */
  line-height: 1.25;
  /* -webkit-line-clamp deja set la 2 din regula originală */
}
.site-header .site-title-block__uni {
  font-size: 9px;
  margin-bottom: 3px;
}

/* Stack-ul cu cele două rânduri de meniu — singurul element nou */
.site-nav-stack {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-width: 0;
  flex-shrink: 0;
  /* margin-left: auto eliminat — meniul stă imediat după title-block */
  /* overflow:visible — ca submeniile să poată ieşi din container */
}

.site-nav-stack .site-nav {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;  /* meniul aliniat la stânga */
  flex-wrap: nowrap;
  overflow: visible;
}
.site-nav-stack .site-nav--row1 {
  flex: 0 0 40px;               /* fixed înălţime — egală cu row2 */
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-muted);
}
.site-nav-stack .site-nav--row2 {
  flex: 0 0 40px;               /* fixed înălţime menu principal */
  background: var(--bg-card);
}

/* Listele UL/LI din walker — fără markeri, în linie */
.site-nav-stack .site-nav__list {
  display: flex;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}
.site-nav-stack .site-nav__item {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
}
/* Linkul în interior — stilul de plăcuţă (tile): min-width pentru
   plăcuţe pătrate când textul e scurt, se extinde când textul e lung.
   Replică border-left şi typography din tema originală. */
.site-nav-stack .site-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;      /* text centrat în plăcuţă */
  gap: 4px;
  padding: 0 var(--space-4);
  min-width: 80px;              /* lăţime minimă pentru plăcuţe pătrate */
  height: 100%;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-main);
  text-decoration: none;
  white-space: nowrap;
  border-left: 1px solid var(--border-light);
  transition: background 0.2s, color 0.2s;
}
@media (min-width: 1280px) {
  .site-nav-stack .site-nav--row2 .site-nav__link {
    padding: 0 var(--space-6);
    font-size: var(--text-sm);
  }
}
.site-nav-stack .site-nav__link:hover,
.site-nav-stack .site-nav__item.is-active > .site-nav__link {
  background: var(--brand);
  color: var(--text-inverse);
}

/* Submeniuri — dropdown cascadat, nelimitat */
.site-nav__sub {
  position: absolute;
  list-style: none;
  margin: 0;
  padding: var(--space-2) 0;
  min-width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s, visibility 0.15s;
}
.site-nav__sub--depth-0 {
  top: 100%;
  left: 0;
}
.site-nav__sub:not(.site-nav__sub--depth-0) {
  top: -1px;
  left: 100%;
}
@media (min-width: 1025px) {
  .site-nav__item:hover > .site-nav__sub {
    opacity: 1;
    visibility: visible;
  }
}
.site-nav__sub .site-nav__link {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  white-space: normal;
  color: var(--text-main);
  text-decoration: none;
}
.site-nav__sub .site-nav__link:hover {
  background: var(--bg-muted);
  color: var(--brand);
}
.site-nav__caret { font-size: 10px; opacity: 0.7; margin-left: 4px; }

/* Mobile: stack ascuns sub burger */
@media (max-width: 1024px) {
  .site-nav-stack {
    display: none;
    width: 100%;
    margin-left: 0;
  }
  .site-nav-stack.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
    z-index: 100;
  }
  .site-nav-stack .site-nav__list { flex-direction: column; }
  .site-nav-stack .site-nav__item { display: block; border-bottom: 1px solid var(--border-light); }
  .site-nav__sub { position: static; opacity: 1; visibility: hidden; display: none; min-width: 0; box-shadow: none; border: none; background: var(--bg-muted); }
  .site-nav__item.is-open > .site-nav__sub { display: block; visibility: visible; }
}
