/* ==========================================================================
   GREEN KG × КГТУ — Портал учебных курсов и PDF-документов
   Дизайн-система: Swiss Minimalism & Modern Design Intelligence (UI/UX Pro Max)
   ========================================================================== */

:root {
  /* Brand Navy Palette */
  --navy-950: #031427;
  --navy-900: #052342;
  --navy-800: #07396c; /* Core Brand Primary */
  --navy-700: #0c4d87;
  --navy-600: #1263a8;

  /* Brand Eco Green Palette */
  --green-900: #1b4b1e;
  --green-800: #26642a;
  --green-700: #2f732c;
  --green-600: #438f36; /* Core Eco Green */
  --green-500: #58a949;
  --green-100: #eaf5eb;
  --green-50:  #f4faf4;

  /* Accents */
  --lime-400: #8bbd3d;
  --lime-200: #c9ef8c;
  --gold-400: #f2c34a;
  --gold-500: #e0b036;

  /* Semantic UI Tokens */
  --color-primary: var(--navy-800);
  --color-primary-hover: var(--navy-900);
  --color-accent: var(--green-600);
  --color-accent-hover: var(--green-700);

  /* Neutral Surfaces */
  --surface-paper: #ffffff;
  --surface-wash: #f8fafb;
  --surface-tint: #f0f5f7;
  --surface-hover: #eaf1f5;

  /* Lines & Borders */
  --line-subtle: #e8eff3;
  --line-default: #d4e0e8;
  --line-strong: #b8ccd8;

  /* Text & Inks */
  --text-primary: #0a1826;
  --text-secondary: #405366;
  --text-muted: #6b7f91;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-pill: 9999px;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-sans);

  /* Shadows (layered smooth shadows) */
  --shadow-sm: 0 1px 3px rgba(5, 43, 83, 0.05), 0 1px 2px rgba(5, 43, 83, 0.03);
  --shadow-md: 0 6px 16px -2px rgba(5, 43, 83, 0.07), 0 2px 6px -1px rgba(5, 43, 83, 0.04);
  --shadow-lg: 0 16px 36px -4px rgba(5, 43, 83, 0.10), 0 6px 14px -2px rgba(5, 43, 83, 0.05);
  --shadow-xl: 0 24px 54px -6px rgba(5, 43, 83, 0.16);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 220ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 320ms cubic-bezier(0.16, 1, 0.3, 1);

  --wrap: 1180px;
}

/* ---------- Global Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  color: var(--text-primary);
  background: var(--surface-paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.wrap {
  width: min(calc(100% - 40px), var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 14px;
  left: 14px;
  transform: translateY(-160%);
  padding: 10px 18px;
  background: var(--navy-800);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  transition: transform var(--transition-base);
  box-shadow: var(--shadow-md);
}
.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--navy-600);
  outline-offset: 3px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin-top: 0;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--navy-900);
  text-wrap: balance;
}

h1 {
  max-width: 840px;
  margin-bottom: 24px;
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  font-weight: 800;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.9rem, 3.2vw, 2.85rem);
  font-weight: 800;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  font-weight: 750;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-700);
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lead {
  max-width: 680px;
  margin: 0;
  color: #d8e8f3;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  text-wrap: pretty;
}

/* ---------- Header (Single Sleek Unified Band) ---------- */
.site-header {
  background: #ffffff;
  border-bottom: 2px solid #5ba429;
  box-shadow: 0 4px 16px -4px rgba(5, 43, 83, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
  padding-block: 10px;
}

.header-col {
  display: flex;
  align-items: center;
}

.header-left {
  flex-shrink: 0;
}

.header-left img.logo-eu {
  max-height: 60px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-base);
}
.header-left img.logo-eu:hover {
  transform: translateY(-2px);
}

.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-brand-block img.logo-kgtu {
  max-height: 68px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-base);
}
.header-brand-block img.logo-kgtu:hover {
  transform: translateY(-2px);
}

.header-brand-block .brand-titles {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
}

.header-brand-block .brand-main {
  color: #2f732c;
  font-weight: 850;
  font-size: 1.28rem;
  letter-spacing: -0.015em;
  font-family: var(--font-display);
}

.header-brand-block .brand-divider {
  color: #9ab4c7;
  font-size: 0.95rem;
}

.header-brand-block .brand-org {
  color: #07396c;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  font-family: var(--font-display);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  justify-content: flex-end;
}

.header-right img.logo-greenkg {
  max-height: 68px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-base);
}
.header-right img.logo-greenkg:hover {
  transform: translateY(-2px);
}

/* Compact Segmented Language Switcher */
.lang-switch-compact {
  display: inline-flex;
  align-items: center;
  background: #f0f5f8;
  border: 1px solid #d0dee6;
  border-radius: 999px;
  padding: 3px 6px;
  gap: 3px;
}

.lang-switch-compact button {
  border: none;
  background: transparent;
  color: #405366;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 5px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
  line-height: 1;
}

.lang-switch-compact button:hover {
  color: #07396c;
  background: #e2edf2;
}

.lang-switch-compact button.active {
  color: #ffffff;
  background: #2f732c;
  box-shadow: 0 1px 4px rgba(47, 115, 44, 0.35);
}

.lang-divider {
  color: #cbd8e0;
  font-size: 0.72rem;
  user-select: none;
}

@media (max-width: 900px) {
  .header-brand-block .brand-org {
    display: none;
  }
  .header-brand-block .brand-divider {
    display: none;
  }
  .site-header-inner {
    min-height: 72px;
  }
  .header-left img.logo-eu {
    max-height: 48px;
  }
  .header-brand-block img.logo-kgtu {
    max-height: 52px;
  }
  .header-right img.logo-greenkg {
    max-height: 52px;
  }
}

@media (max-width: 580px) {
  .header-brand-block .brand-main {
    display: none;
  }
  .site-header-inner {
    gap: 10px;
  }
}

/* Slim University Navigation Bar */
.site-nav-bar {
  background: #f8fafc;
  border-top: 1px solid #e8eff3;
  border-bottom: 2px solid #5ba429;
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.site-nav-bar .nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  overflow-x: auto;
  white-space: nowrap;
  padding-block: 4px;
}

.site-nav-bar .nav-links a {
  color: #334155;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  padding: 6px 4px;
  position: relative;
  transition: color 0.18s ease;
}

.site-nav-bar .nav-links a:hover,
.site-nav-bar .nav-links a:focus-visible {
  color: #2f732c;
}

@media (max-width: 768px) {
  .site-nav-bar .nav-links {
    gap: 16px;
    justify-content: flex-start;
    padding-inline: 4px;
  }
  .site-nav-bar .nav-links a {
    font-size: 0.84rem;
  }
}

/* ---------- Intro Hero Section ---------- */
.intro {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(104, 178, 51, 0.32), transparent 28rem),
    radial-gradient(circle at 15% 85%, rgba(6, 71, 204, 0.28), transparent 30rem),
    linear-gradient(135deg, #031427 0%, #07396c 52%, #0e4c2b 100%);
  color: #ffffff;
}

.intro-grid {
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 880px;
  padding-block: 64px;
}

/* Hero Data Chips (Non-clickable informative tags) */
.hero-stats-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 28px 0;
}

.hero-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(3, 20, 39, 0.45);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(139, 189, 61, 0.35);
  color: #e2edf5;
  padding: 7px 15px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 550;
  user-select: none;
  pointer-events: none;
}

.hero-stat-chip .chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #68b233;
  box-shadow: 0 0 8px #68b233;
  flex-shrink: 0;
}

.hero-stat-chip strong {
  color: #c9ef8c;
  font-weight: 850;
}

/* Hero CTA Action Buttons (Prominent, High-affordance Clickable Buttons) */
.hero-actions-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 6px;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #5ba429 0%, #3e811b 100%);
  color: #ffffff !important;
  padding: 16px 32px;
  border-radius: 14px;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 0 10px 24px -3px rgba(62, 129, 27, 0.55), 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.hero-btn-primary:hover {
  background: linear-gradient(135deg, #68b233 0%, #479420 100%);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -4px rgba(62, 129, 27, 0.7), 0 6px 16px rgba(0, 0, 0, 0.3);
  color: #ffffff !important;
}

.hero-btn-primary .btn-arrow {
  font-size: 1.25rem;
  font-weight: 900;
  transition: transform 0.2s ease;
}

.hero-btn-primary:hover .btn-arrow {
  transform: translateY(2px);
}

.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #ffffff !important;
  padding: 16px 28px;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.3);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #8bbd3d;
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -4px rgba(0, 0, 0, 0.4);
  color: #ffffff !important;
}

/* Hero PDF Secondary Button */
.hero-btn-pdf {
  border: 1.5px solid rgba(139, 189, 61, 0.45) !important;
  background: rgba(3, 20, 39, 0.35) !important;
  position: relative;
}

.hero-btn-pdf:hover {
  background: rgba(47, 115, 44, 0.4) !important;
  border-color: #8bbd3d !important;
}

.btn-pdf-badge {
  background: rgba(104, 178, 51, 0.3);
  color: #c9ef8c;
  border: 1px solid rgba(139, 189, 61, 0.45);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  margin-left: 2px;
}

.hero-btn-secondary .btn-arrow {
  font-size: 1.2rem;
  font-weight: 800;
  transition: transform 0.2s ease;
}

.hero-btn-secondary:hover .btn-arrow {
  transform: translateX(3px);
}

.intro .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(104, 178, 51, 0.2);
  color: #c4f387;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(104, 178, 51, 0.4);
  backdrop-filter: blur(8px);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  align-self: flex-start;
}

.intro .lead {
  max-width: 780px;
  margin-top: 10px;
  margin-bottom: 20px;
  color: #ffffff;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.55;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.94rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}
.button:hover {
  transform: translateY(-2px);
}
.button:active {
  transform: translateY(0);
}

.button.primary {
  background: linear-gradient(135deg, #68b233 0%, #468c1e 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 4px 18px rgba(104, 178, 51, 0.42);
}
.button.primary:hover {
  background: linear-gradient(135deg, #74c73a 0%, #4f9d22 100%);
  box-shadow: 0 6px 24px rgba(104, 178, 51, 0.55);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  backdrop-filter: blur(8px);
}
.button.secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Glassmorphism Stat Panel */
.intro-panel {
  position: relative;
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.10);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.intro-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #68b233 0%, #3e811b 100%);
}

.stat {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  align-items: baseline;
  gap: 16px;
  padding: 24px 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.stat:last-child {
  border-bottom: 0;
}
.stat strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: #ffffff;
  font-weight: 800;
}
.stat span {
  color: #dceaf3;
  font-size: 0.92rem;
  line-height: 1.35;
}

/* ---------- Common Section Layout ---------- */
.section {
  padding-block: 84px;
  scroll-margin-top: 76px;
}

.section-tint {
  background: var(--surface-wash);
  border-top: 1px solid var(--line-subtle);
  border-bottom: 1px solid var(--line-subtle);
}

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 820px;
  margin-bottom: 36px;
}
.section-heading h2 {
  margin: 0;
}
.section-heading > p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ---------- Project Pillars & Section ---------- */
.project-section {
  background: #fbfdfc;
  border-bottom: 1px solid var(--line-subtle);
  padding-block: 76px;
}

.project-header-block {
  max-width: 820px;
  margin-bottom: 48px;
}

.project-heading-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 16px;
  line-height: 1.22;
}

.project-lead-desc {
  font-size: clamp(1.04rem, 1.6vw, 1.18rem);
  color: #3b5066;
  line-height: 1.68;
  margin: 0;
}

.project-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.project-pillar-card {
  background: #ffffff;
  border: 1px solid #dce8ef;
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: 0 4px 16px -2px rgba(5, 43, 83, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.project-pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -4px rgba(5, 43, 83, 0.10);
  border-color: #92b8d0;
}

.pillar-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.pillar-icon-box.eco {
  background: #eaf5eb;
  color: #2f732c;
  border: 1px solid #cce5cf;
}

.pillar-icon-box.digital {
  background: #e9f2f9;
  color: #07396c;
  border: 1px solid #c9dfed;
}

.pillar-icon-box.edu {
  background: #fbf4e8;
  color: #9b6911;
  border: 1px solid #f4e3c5;
}

.pillar-badge {
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.pillar-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 12px;
  line-height: 1.3;
}

.pillar-text {
  font-size: 0.95rem;
  color: #4f6377;
  line-height: 1.62;
  margin: 0;
}

@media (max-width: 900px) {
  .project-pillars-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.project-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 72px;
}
.project-text {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
}
.project-text p {
  margin-top: 0;
  margin-bottom: 16px;
}
.project-text p:last-child {
  margin-bottom: 0;
}

/* ---------- Courses Section ---------- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 30px;
  border: 1px solid var(--line-default);
  border-radius: var(--radius-lg);
  background: var(--surface-paper);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  overflow: hidden;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.course-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--green-600);
}
.course-card[data-course="ecology"]::before { background: #176b72; }
.course-card[data-course="green-economy"]::before { background: var(--green-600); }
.course-card[data-course="safety"]::before { background: var(--navy-700); }
.course-card[data-course="tourism"]::before { background: #0b5243; }

.course-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.course-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--surface-tint);
  color: var(--navy-800);
  border: 1px solid var(--line-default);
  transition: transform var(--transition-fast), background var(--transition-fast);
}
.course-card:hover .course-icon-badge {
  transform: scale(1.05);
}
.course-icon-badge[data-course="ecology"] { background: #eaf3f4; color: #176b72; border-color: #cde2e5; }
.course-icon-badge[data-course="green-economy"] { background: var(--green-100); color: var(--green-700); border-color: #c9e6ca; }
.course-icon-badge[data-course="safety"] { background: #eaf1f7; color: var(--navy-800); border-color: #cddfe9; }
.course-icon-badge[data-course="tourism"] { background: #e6f3ee; color: #0b5243; border-color: #c4e4d8; }

.course-heading-box {
  flex: 1;
}
.course-index {
  display: inline-block;
  color: var(--green-700);
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.74rem;
  margin-bottom: 2px;
}
.course-card h3 {
  color: var(--navy-900);
  font-size: clamp(1.28rem, 1.8vw, 1.65rem);
  margin-bottom: 0;
  line-height: 1.25;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 16px;
}
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  background: var(--surface-tint);
  color: var(--navy-900);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  line-height: 1.2;
  font-weight: 750;
}
.meta-pill.primary {
  background: #edf5fa;
  color: var(--navy-800);
  border-color: #d2e4f0;
}
.meta-pill.hour-pill {
  color: var(--text-secondary);
}

.course-desc {
  margin: 0 0 auto;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-subtle);
}

.course-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 750;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.course-link-btn.outline {
  color: var(--navy-800);
  background: transparent;
  border: 1px solid var(--line-default);
}
.course-link-btn.outline:hover {
  background: var(--surface-hover);
  border-color: var(--line-strong);
  color: var(--navy-900);
}
.course-link-btn.filled {
  color: #ffffff;
  background: #55962b;
  border: 1px solid #4a8624;
}
.course-link-btn.filled:hover {
  background: #46801f;
  border-color: #3b7017;
  box-shadow: 0 3px 10px rgba(100, 170, 54, 0.35);
}

/* ---------- PDF Showcase & Filters ---------- */
.pdf-filters-wrap {
  margin-top: 16px;
}
.pdf-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px;
  background: #eef4f8;
  border-radius: var(--radius-pill);
  width: fit-content;
  border: 1px solid var(--line-default);
}
.pdf-filter-btn {
  padding: 7px 16px;
  font-size: 0.84rem;
  font-weight: 750;
  border-radius: var(--radius-pill);
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.pdf-filter-btn:hover {
  color: var(--navy-800);
  background: rgba(255, 255, 255, 0.6);
}
.pdf-filter-btn.active {
  background: #64aa36;
  color: #ffffff;
  font-weight: 850;
  box-shadow: 0 2px 8px rgba(100, 170, 54, 0.35);
}

.pdf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.pdf-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--line-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.pdf-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

/* Realistic Sheet Preview */
.pdf-thumb {
  position: relative;
  height: 195px;
  background: linear-gradient(150deg, #edf3f7, #f7fafc);
  border-bottom: 1px solid var(--line-subtle);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}
.pdf-thumb-sheet {
  width: 82%;
  height: 94%;
  background: #ffffff;
  border-radius: 6px 14px 6px 6px;
  box-shadow: 0 4px 14px rgba(5, 43, 83, 0.08);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  border: 1px solid #e1ebf0;
  position: relative;
  transition: transform var(--transition-fast);
}
.pdf-card:hover .pdf-thumb-sheet {
  transform: scale(1.02);
}
.pdf-thumb-sheet::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, transparent 50%, #c4d7e2 50%);
  border-radius: 0 0 0 4px;
}

.pdf-thumb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--green-600);
}
.pdf-thumb-org {
  font-size: 0.62rem;
  font-weight: 850;
  color: var(--navy-800);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pdf-thumb-badge {
  background: #d9473f;
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

.pdf-thumb-title {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: auto;
}

.pdf-thumb-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-block: 8px;
}
.pdf-thumb-lines span {
  display: block;
  height: 3px;
  background: #eef3f7;
  border-radius: 2px;
}
.pdf-thumb-lines span:nth-child(1) { width: 92%; }
.pdf-thumb-lines span:nth-child(2) { width: 78%; }
.pdf-thumb-lines span:nth-child(3) { width: 84%; }
.pdf-thumb-lines span:nth-child(4) { width: 62%; }

.pdf-thumb-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  color: var(--text-muted);
  font-weight: 600;
  border-top: 1px dashed #e1ebf0;
  padding-top: 4px;
}

.pdf-thumb-hover {
  position: absolute;
  inset: 0;
  background: rgba(5, 35, 66, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.pdf-thumb:hover .pdf-thumb-hover {
  opacity: 1;
}
.pdf-hover-btn {
  background: #ffffff;
  color: var(--navy-900);
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transform: translateY(4px);
  transition: transform var(--transition-fast);
}
.pdf-thumb:hover .pdf-hover-btn {
  transform: translateY(0);
}

.pdf-card-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pdf-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.pdf-cat-badge {
  background: #edf4f8;
  color: var(--navy-800);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid #dbe6ee;
}
.pdf-size-badge {
  background: var(--surface-wash);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid var(--line-subtle);
  font-family: monospace;
}
.pdf-card-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 8px;
  line-height: 1.35;
}
.pdf-card-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin: 0 0 16px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: auto;
}

.pdf-card-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-subtle);
}
.pdf-btn-preview {
  flex: 1.25;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--navy-800);
  color: #ffffff;
  border: 0;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.pdf-btn-preview:hover {
  background: var(--navy-900);
  box-shadow: 0 2px 8px rgba(7, 57, 108, 0.25);
}
.pdf-btn-open {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--surface-wash);
  color: var(--navy-800);
  border: 1px solid var(--line-default);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  transition: all var(--transition-fast);
}
.pdf-btn-open:hover {
  background: var(--surface-hover);
  border-color: var(--line-strong);
  color: var(--navy-900);
}

/* ---------- Document Accordions ---------- */
.document-picker {
  margin-top: 14px;
  border: 1px solid var(--line-default);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}
.document-picker[open] {
  border-color: var(--line-strong);
}

.document-picker summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  color: var(--navy-900);
  font-weight: 800;
  font-size: 1rem;
  user-select: none;
  list-style: none;
  background: #ffffff;
  transition: background var(--transition-fast);
}
.document-picker summary::-webkit-details-marker {
  display: none;
}
.document-picker summary:hover {
  background: var(--surface-wash);
}

.summary-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.category-icon {
  color: var(--green-700);
  display: flex;
  align-items: center;
}
.summary-badge {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: #eef4f8;
  color: var(--navy-800);
}
.accordion-chevron {
  color: var(--text-muted);
  transition: transform var(--transition-base);
}
.document-picker[open] .accordion-chevron {
  transform: rotate(180deg);
}

.document-list {
  display: grid;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid var(--line-subtle);
  background: #fafcfd;
}

.document-item-pdf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid var(--line-default);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.document-item-pdf:hover {
  border-color: #a4ceaa;
  box-shadow: var(--shadow-sm);
}

.doc-left {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}
.badge-pdf {
  flex-shrink: 0;
  background: #d9473f;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 3px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.doc-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy-900);
  truncate: true;
}
.doc-size {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-family: monospace;
}

.doc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.btn-inline-preview {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #eef4f8;
  color: var(--navy-800);
  border: 1px solid #d2e1ec;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-inline-preview:hover {
  background: var(--navy-800);
  color: #ffffff;
  border-color: var(--navy-800);
}
.btn-inline-open {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  color: var(--navy-800);
  border: 1px solid var(--line-default);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  transition: all var(--transition-fast);
}
.btn-inline-open:hover {
  background: var(--surface-hover);
  color: var(--navy-900);
  border-color: var(--line-strong);
}

.document-item-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid var(--line-default);
  border-radius: var(--radius-md);
  color: var(--navy-900);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  transition: all var(--transition-fast);
}
.document-item-link:hover {
  background: #f4faf5;
  border-color: #a4ceaa;
  color: var(--green-800);
}
.doc-folder-icon {
  color: var(--navy-700);
  display: flex;
  align-items: center;
}
.doc-external-icon {
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

/* ---------- PDF Preview Modal ---------- */
.pdf-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(3, 20, 39, 0.70);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn var(--transition-base);
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.pdf-modal-container {
  width: min(94vw, 980px);
  height: min(90vh, 880px);
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pdf-modal-header {
  min-height: 60px;
  background: var(--navy-900);
  color: #ffffff;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.pdf-modal-title-box {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}
.pdf-badge-tag {
  background: #d9473f;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}
.pdf-modal-title {
  font-size: 0.98rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pdf-modal-meta {
  font-size: 0.82rem;
  opacity: 0.7;
  white-space: nowrap;
}

.pdf-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.pdf-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  text-decoration: none;
  transition: background var(--transition-fast);
}
.pdf-action-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}
.pdf-action-btn.primary {
  background: var(--gold-400);
  color: var(--navy-950);
}
.pdf-action-btn.primary:hover {
  background: #f7d05e;
}

.pdf-close-btn {
  background: transparent;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity var(--transition-fast), background var(--transition-fast);
}
.pdf-close-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.18);
}

.pdf-modal-body {
  flex: 1;
  position: relative;
  background: #f4f7f9;
}
.pdf-modal-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.pdf-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #f4f7f9;
  color: var(--navy-800);
  font-size: 0.92rem;
  font-weight: 750;
}
.pdf-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #d0e0eb;
  border-top-color: var(--green-600);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Site Footer ---------- */
.site-footer {
  padding-block: 40px;
  color: #cbd8e5;
  background: var(--navy-950);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-footer strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #ffffff;
}
.site-footer p {
  margin: 4px 0 0;
  font-size: 0.92rem;
  color: #9ab1c6;
}
.footer-top-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all var(--transition-fast);
}
.footer-top-link:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 880px) {
  .logo-band {
    min-height: 90px;
    grid-template-columns: 1fr auto 1fr;
    gap: 14px;
  }
  .logo-band img { max-height: 64px; }
  .logo-band .logo-eu { max-height: 54px; }

  .menu-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
  }
  .menu-icon, .menu-icon::before, .menu-icon::after {
    display: block; width: 22px; height: 2px; background: currentColor; content: "";
  }
  .menu-icon { position: relative; }
  .menu-icon::before { position: absolute; top: -7px; }
  .menu-icon::after { position: absolute; top: 7px; }

  .nav-inner { position: relative; }
  .nav-links {
    position: absolute;
    display: none;
    inset: 68px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--line-default);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 12px 14px;
  }
  .language-switcher {
    align-self: flex-start;
    margin: 10px 14px 4px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 40px;
    padding-block: 56px;
  }
  .intro-panel {
    grid-template-columns: repeat(3, 1fr);
  }
  .stat {
    display: block;
    padding: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 0;
  }
  .stat strong, .stat span { display: block; }
  .stat span { margin-top: 6px; }

  .project-grid, .section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .course-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(calc(100% - 28px), var(--wrap));
  }
  .logo-band {
    min-height: 70px;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    padding-block: 8px;
  }
  .logo-band img { max-height: 48px; padding: 2px; }
  .logo-band .logo-eu { max-height: 38px; }

  h1 { font-size: 2.45rem; }
  .intro-grid { padding-block: 40px; }
  .intro-panel { grid-template-columns: 1fr; }
  .stat {
    display: grid;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .section { padding-block: 60px; }
  .course-card { padding: 22px; }

  .pdf-grid { grid-template-columns: 1fr; gap: 18px; }
  .pdf-filters { width: 100%; justify-content: flex-start; overflow-x: auto; }
  .pdf-modal-container { width: 98vw; height: 94vh; border-radius: var(--radius-md); }
  .pdf-modal-header { padding: 10px 14px; }
  .pdf-modal-title { font-size: 0.88rem; }

  .document-item-pdf {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .doc-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
}

/* ==========================================================================
   Courses Section Layout (1 Big Card 01 + 2 Subcards 02 & 03)
   ========================================================================== */

.courses-featured-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

/* Card 01: Top Big Card */
.course-big-card {
  position: relative;
  background: linear-gradient(135deg, #1b5e20 0%, #17532d 42%, #083c66 100%);
  border-radius: 24px;
  padding: 48px 56px;
  color: #ffffff;
  overflow: hidden;
  box-shadow: 0 12px 32px -4px rgba(7, 57, 108, 0.18), 0 4px 12px rgba(27, 94, 32, 0.15);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.course-big-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -4px rgba(7, 57, 108, 0.22);
}

.course-big-card .card-watermark {
  position: absolute;
  left: 40px;
  bottom: -22px;
  font-size: 140px;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.14);
  user-select: none;
  pointer-events: none;
  font-family: var(--font-display);
}

.course-big-card .card-content {
  position: relative;
  z-index: 2;
  margin-left: 170px;
  max-width: 760px;
}

@media (max-width: 860px) {
  .course-big-card {
    padding: 32px 26px;
  }
  .course-big-card .card-watermark {
    position: static;
    font-size: 72px;
    margin-bottom: 8px;
    display: inline-block;
  }
  .course-big-card .card-content {
    margin-left: 0;
  }
}

.course-big-card .card-eyebrow {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #c9ef8c;
  margin: 0 0 10px 0;
}

.course-big-card .card-title {
  font-size: 1.85rem;
  font-weight: 850;
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
}

.course-big-card .card-desc {
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 14px 0;
}

.course-big-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(0, 0, 0, 0.14);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin: 0 0 20px 0;
  border-left: 3px solid #c9ef8c;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.course-big-details p {
  margin: 0;
}

/* Card Action Bar & Modern Expand Button */
.card-action-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.kstu-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 750;
  font-size: 0.94rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.kstu-expand-btn:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: #8bbd3d;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.kstu-expand-btn.active {
  background: #3e8832;
  border-color: #8bbd3d;
  box-shadow: 0 4px 18px rgba(67, 143, 54, 0.45);
}

.kstu-expand-btn .btn-folder-icon {
  display: inline-flex;
  align-items: center;
  color: #c9ef8c;
}

.kstu-expand-btn .btn-badge {
  background: #8bbd3d;
  color: #041e3a;
  font-size: 0.72rem;
  font-weight: 850;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.kstu-expand-btn .chevron-arrow {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.kstu-expand-btn .chevron-arrow.rotated {
  transform: rotate(180deg);
}

/* Expandable Documents Container */
.main-docs-accordion {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, margin 0.3s ease;
  margin-top: 0;
}

.main-docs-accordion.expanded {
  max-height: 1400px;
  opacity: 1;
  pointer-events: auto;
  margin-top: 24px;
}

.accordion-inner {
  background: rgba(3, 19, 36, 0.68);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 26px 28px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.25);
}

.accordion-group {
  margin-bottom: 22px;
}

.accordion-group:last-child {
  margin-bottom: 0;
}

.accordion-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #c9ef8c;
  margin-bottom: 12px;
}

.accordion-group-title svg {
  stroke: #c9ef8c;
  flex-shrink: 0;
}

.accordion-doc-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accordion-doc-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 18px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-doc-card:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(139, 189, 61, 0.5);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.accordion-doc-card .doc-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.accordion-doc-card .doc-type-badge {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 7px;
  flex-shrink: 0;
  text-align: center;
  line-height: 1;
}

.accordion-doc-card .doc-type-badge.pdf {
  background: #d9473f;
  color: #ffffff;
}

.accordion-doc-card .doc-type-badge.pass {
  background: #09477e;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.accordion-doc-card .doc-type-badge.umk {
  background: #2f732c;
  color: #ffffff;
}

.accordion-doc-card .doc-card-info {
  min-width: 0;
}

.accordion-doc-card .doc-card-title {
  font-size: 0.95rem;
  font-weight: 750;
  color: #ffffff;
  margin: 0 0 3px 0;
  line-height: 1.35;
}

.accordion-doc-card .doc-card-meta {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  line-height: 1.4;
}

.accordion-doc-card .doc-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.doc-btn-preview {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 750;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}

.doc-btn-preview:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: #8bbd3d;
}

.doc-btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: #438f36;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 850;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.18s ease;
}

.doc-btn-download:hover {
  background: #2f732c;
  transform: scale(1.08);
}

@media (max-width: 680px) {
  .accordion-inner {
    padding: 16px 14px;
  }
  .accordion-doc-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
  }
  .accordion-doc-card .doc-card-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* Cards 02 & 03 Grid - Flex with Center Alignment for 3rd card */
.course-subcards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.course-subcard {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line-default);
  border-radius: 20px;
  padding: 36px 40px;
  flex: 1 1 calc(50% - 24px);
  max-width: calc(50% - 12px);
  min-width: 340px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 16px -2px rgba(5, 43, 83, 0.04);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

@media (max-width: 768px) {
  .course-subcard {
    max-width: 100%;
    flex: 1 1 100%;
  }
}

.subcard-content-top {
  flex: 1 1 auto;
}

.subcard-action-bottom {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line-subtle);
}

.course-subcard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #64aa36 0%, #3d881b 100%);
}

.course-subcard:hover {
  transform: translateY(-3px);
  border-color: #a4d87f;
  box-shadow: 0 12px 30px -4px rgba(100, 170, 54, 0.16);
}

.course-subcard .subcard-watermark {
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  color: #dbe7ec;
  font-family: var(--font-display);
  margin-bottom: 6px;
}

.course-subcard .subcard-eyebrow {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 10px 0;
}

.course-subcard .subcard-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.3;
  margin: 0 0 10px 0;
  letter-spacing: -0.01em;
}

.course-subcard .subcard-note {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-700);
  margin-bottom: 10px;
  line-height: 1.45;
}

.course-subcard .subcard-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 20px 0;
  flex: 1;
}

.subcard-module-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.subcard-module-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface-tint);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.85rem;
  color: var(--navy-900);
}

.subcard-module-list li strong {
  font-weight: 700;
  color: var(--navy-900);
}

.subcard-credit-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: #f1f9ec;
  color: #3b7e19;
  border: 1px solid #c7e5b5;
  font-weight: 800;
  font-size: 0.74rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Card 02 & Card 03 Interactive Dropdown */
.subcard-toggle-wrap {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.subcard-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-tint);
  border: 1px solid var(--line-default);
  color: var(--navy-900);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 750;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.subcard-expand-btn:hover {
  background: var(--surface-hover);
  border-color: #64aa36;
  color: #2f732c;
  transform: translateY(-1px);
}

.subcard-expand-btn.active {
  background: #2f732c;
  border-color: #2f732c;
  color: #ffffff;
}

.subcard-expand-btn.active .btn-folder-icon svg {
  stroke: #c9ef8c;
}

.subcard-expand-btn.active .chevron-arrow {
  stroke: #ffffff;
  transform: rotate(180deg);
}

.subcard-expand-btn .chevron-arrow {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.subcard-expand-btn .chevron-arrow.rotated {
  transform: rotate(180deg);
}

.subcard-docs-accordion {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, margin 0.25s ease;
  margin-top: 0;
}

.subcard-docs-accordion.expanded {
  max-height: 600px;
  opacity: 1;
  pointer-events: auto;
  margin-top: 14px;
}

.subcard-accordion-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f7fafc;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
}

.subcard-doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--line-default);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  transition: all 0.2s ease;
}

.subcard-doc-row:hover {
  border-color: #64aa36;
  box-shadow: 0 4px 12px rgba(100, 170, 54, 0.12);
  transform: translateX(2px);
}

.subcard-doc-info {
  min-width: 0;
  flex: 1;
}

.subcard-doc-title {
  font-size: 0.88rem;
  font-weight: 750;
  color: var(--navy-900);
  margin: 0 0 2px 0;
  line-height: 1.35;
}

.subcard-doc-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.35;
}

.subcard-doc-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.subcard-btn-preview {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface-tint);
  border: 1px solid var(--line-default);
  color: var(--navy-900);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.subcard-btn-preview:hover {
  background: #07396c;
  border-color: #07396c;
  color: #ffffff;
}

.subcard-btn-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #438f36;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 850;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.subcard-btn-open:hover {
  background: #2f732c;
  transform: scale(1.08);
}

/* ========================================================================== */
/* SECTION: RESOURCES (E-Resources: Moodle & Digital Library)                 */
/* ========================================================================== */
.resources-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin-top: 36px;
}

.resource-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line-default);
  border-radius: 20px;
  padding: 36px 36px;
  flex: 1 1 calc(50% - 28px);
  max-width: calc(50% - 14px);
  min-width: 340px;
  box-shadow: 0 4px 20px rgba(5, 43, 83, 0.05);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 820px) {
  .resource-card {
    max-width: 100%;
    flex: 1 1 100%;
  }
}

.resource-card:hover {
  transform: translateY(-4px);
  border-color: #68b233;
  box-shadow: 0 16px 36px rgba(5, 43, 83, 0.1);
}

.resource-card-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 999px;
  background: #eaf4ec;
  color: #2f732c;
  margin-bottom: 20px;
}

.resource-card-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: #eef4f7;
  color: #07396c;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.25s ease;
}

.resource-card:hover .resource-card-icon {
  background: #07396c;
  color: #ffffff;
}

.resource-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 12px;
  line-height: 1.3;
}

.resource-card-desc {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #526374;
  margin-bottom: 28px;
  flex: 1;
}

.resource-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 750;
  text-decoration: none;
  transition: all 0.25s ease;
}

.resource-btn.primary {
  background: #07396c;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(7, 57, 108, 0.25);
}

.resource-btn.primary:hover {
  background: #052b53;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(7, 57, 108, 0.35);
}

.resource-btn.secondary {
  background: #f1f6f9;
  color: #07396c !important;
  border: 1.5px solid #d4e2ea;
}

.resource-btn.secondary:hover {
  background: #e2edf2;
  border-color: #07396c;
  transform: translateY(-2px);
}

/* ========================================================================== */
/* SECTION: NEWS (Новости проекта)                                            */
/* ========================================================================== */
.news-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
  margin-top: 24px;
}

.news-public-card {
  background: #ffffff;
  border: 1px solid var(--line-default);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(5, 43, 83, 0.04);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-public-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(5, 43, 83, 0.08);
  border-color: #438f36;
}

.news-card-cover-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f2f7f8;
  overflow: hidden;
  position: relative;
}

.news-card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  text-indent: -9999px;
  color: transparent;
  transition: transform 0.35s ease;
}

.news-public-card:hover .news-card-cover {
  transform: scale(1.04);
}

.news-card-type-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.72rem;
  font-weight: 750;
  padding: 3px 10px;
  border-radius: 999px;
  color: #fff;
  background: #07396c;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.news-card-type-badge.article { background: #438f36; }
.news-card-type-badge.report { background: #07396c; }
.news-card-type-badge.press { background: #7c3aed; }

.news-card-inner {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-date {
  font-size: 0.8rem;
  font-weight: 750;
  color: #3b7e19;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.news-card-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.35;
  margin-bottom: 10px;
}

.news-card-excerpt {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #526374;
  margin-bottom: 18px;
  flex: 1;
}

.news-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f2f7f8;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.news-card-read-btn {
  font-size: 0.88rem;
  font-weight: 750;
  color: #07396c;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: underline;
}

.news-card-pdf-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #eaf5eb;
  color: #2f732c;
  border: 1px solid #c4e3c6;
  font-size: 0.75rem;
  font-weight: 750;
  padding: 3px 9px;
  border-radius: 999px;
}

/* News Expand / Collapse Toggle */
.news-toggle-wrap {
  text-align: center;
  margin-top: 36px;
}

.news-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #07396c;
  border: 1.5px solid #d6e2e8;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(5, 43, 83, 0.05);
  transition: all 0.2s ease;
}

.news-toggle-btn:hover {
  background: #07396c;
  color: #ffffff;
  border-color: #07396c;
  box-shadow: 0 6px 18px rgba(7, 57, 108, 0.18);
  transform: translateY(-2px);
}

.news-toggle-btn .chevron-arrow {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-toggle-btn.expanded .chevron-arrow {
  transform: rotate(180deg);
}

/* News Filter buttons */
.news-filter-btn {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid #d6e2e8;
  background: #ffffff;
  color: #3b5166;
  cursor: pointer;
  transition: all 0.15s ease;
}

.news-filter-btn:hover {
  background: #eef5f8;
  color: #07396c;
}

.news-filter-btn.active {
  background: #07396c;
  color: #ffffff;
  border-color: #07396c;
  box-shadow: 0 2px 8px rgba(7, 57, 108, 0.2);
}

/* Article Reader Modal */
.news-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(4, 21, 41, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.news-modal-container {
  position: relative;
  max-width: 780px;
  max-height: 90vh;
  width: 100%;
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
}

.news-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #ffffff;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.15s;
}

.news-modal-close:hover {
  background: rgba(220, 38, 38, 0.9);
}

.news-modal-scroll {
  overflow-y: auto;
  max-height: 90vh;
}

.news-modal-cover-wrap {
  width: 100%;
  max-height: 340px;
  overflow: hidden;
  background: #f2f7f8;
}

.news-modal-cover {
  width: 100%;
  height: 100%;
  max-height: 340px;
  object-fit: cover;
}

.news-modal-body {
  padding: 30px 36px 40px;
}

.news-modal-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.news-modal-type-badge {
  font-size: 0.75rem;
  font-weight: 750;
  padding: 3px 10px;
  border-radius: 999px;
  color: #fff;
  background: #07396c;
}

.news-modal-date {
  font-size: 0.85rem;
  color: #5e6d7d;
  font-weight: 600;
}

.news-modal-title {
  font-size: 1.6rem;
  font-weight: 850;
  color: var(--navy-900);
  line-height: 1.3;
  margin-bottom: 20px;
}

.news-modal-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #334155;
}

.news-modal-text p {
  margin-bottom: 16px;
}

.news-modal-attachments-wrap {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #eef4f7;
}

.news-modal-attachments-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-modal-attachments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-attachment-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #f8fafb;
  border: 1px solid #dbe4e9;
  border-radius: 12px;
  transition: border-color 0.15s;
}

.news-attachment-card:hover {
  border-color: #438f36;
}

.news-attachment-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.news-attachment-title {
  font-size: 0.88rem;
  font-weight: 750;
  color: #052b53;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-attachment-size {
  font-size: 0.75rem;
  color: #5e6d7d;
  font-weight: 600;
}

.news-attachment-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.news-attachment-btn-view {
  background: #07396c;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 750;
  padding: 5px 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.15s;
}

.news-attachment-btn-view:hover {
  background: #052b53;
}

.news-attachment-btn-dl {
  color: #5e6d7d;
  font-size: 0.88rem;
  padding: 4px;
  border-radius: 6px;
  text-decoration: none;
}

.news-attachment-btn-dl:hover {
  color: #052b53;
}

/* ========================================================================== */
/* SECTION: STARTUPS & SURVEYS (Стартапы и опросы)                             */
/* ========================================================================== */
.startups-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin-top: 36px;
}

.startup-card {
  background: #ffffff;
  border: 1px solid var(--line-default);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 4px 18px rgba(5, 43, 83, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1 calc(50% - 28px);
  max-width: calc(50% - 14px);
  min-width: 340px;
  transition: all 0.3s ease;
}

@media (max-width: 820px) {
  .startup-card {
    max-width: 100%;
    flex: 1 1 100%;
  }
}

.startup-card:hover {
  transform: translateY(-3px);
  border-color: #68b233;
  box-shadow: 0 12px 28px rgba(5, 43, 83, 0.08);
}

.startup-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 999px;
  background: #eef4f7;
  color: #07396c;
  margin-bottom: 16px;
}

.startup-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 12px;
  line-height: 1.35;
}

.startup-card p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #526374;
}

.survey-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: #3b7e19;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
}
.survey-link-btn:hover {
  text-decoration: underline;
}

/* ========================================================================== */
/* SECTION: GALLERY (Фотогалерея мероприятий)                                 */
/* ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.gallery-item {
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line-default);
  box-shadow: 0 4px 16px rgba(5, 43, 83, 0.04);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(5, 43, 83, 0.08);
}

.gallery-placeholder {
  min-height: 190px;
  background: #f4f8fa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #526374;
  font-size: 0.92rem;
  font-weight: 650;
  padding: 20px;
  text-align: center;
}

.gallery-caption {
  padding: 16px 20px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy-900);
  border-top: 1px solid #eef4f7;
}

.gallery-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f2f7f8;
  cursor: pointer;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.05);
}

.gallery-event-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #438f36;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  letter-spacing: 0.02em;
}

.gallery-date-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(7, 57, 108, 0.85);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

.gallery-caption-title {
  font-size: 0.94rem;
  font-weight: 750;
  color: var(--navy-900);
  line-height: 1.35;
}

.gallery-caption-desc {
  font-size: 0.82rem;
  color: #5e6d7d;
  margin-top: 6px;
  line-height: 1.45;
}

.gallery-filter-btn {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid #d6e2e8;
  background: #ffffff;
  color: #3b5166;
  cursor: pointer;
  transition: all 0.15s ease;
}

.gallery-filter-btn:hover {
  background: #eef5f8;
  color: #07396c;
}

.gallery-filter-btn.active {
  background: #07396c;
  color: #ffffff;
  border-color: #07396c;
  box-shadow: 0 2px 8px rgba(7, 57, 108, 0.2);
}

/* Photo Modal Lightbox */
.photo-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(4, 21, 41, 0.88);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.photo-modal-container {
  position: relative;
  max-width: 900px;
  max-height: 90vh;
  width: 100%;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
}

.photo-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #ffffff;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.15s;
}

.photo-modal-close:hover {
  background: rgba(220, 38, 38, 0.9);
}

.photo-modal-img {
  max-height: 72vh;
  width: 100%;
  object-fit: contain;
  background: #0a0e14;
}

.photo-modal-footer {
  padding: 16px 22px;
  background: #ffffff;
}

.photo-modal-title {
  font-size: 1rem;
  font-weight: 750;
  color: #052b53;
  margin: 0;
}

.photo-modal-meta {
  font-size: 0.82rem;
  color: #5e6d7d;
  margin-top: 4px;
  margin-bottom: 0;
}

/* ========================================================================== */
/* NEW ELEMENTS: Lectures Button, Study Process, Pure Gallery, Startups       */
/* ========================================================================== */
.subcard-toggle-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.subcard-lectures-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #07396c;
  border: 1px solid #07396c;
  color: #ffffff;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 750;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.subcard-lectures-btn:hover {
  background: #0b4a8b;
  border-color: #0b4a8b;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(7, 57, 108, 0.25);
}

.subcard-lectures-btn .btn-pdf-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 800;
}

/* Study Process Section - Flex with Center Alignment for 3rd card */
.study-process-section {
  background: #f7fafc;
  padding: 68px 0;
  border-top: 1px solid var(--line-default);
  border-bottom: 1px solid var(--line-default);
}

.study-process-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin-top: 36px;
}

.study-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line-default);
  border-radius: 20px;
  padding: 34px;
  flex: 1 1 calc(50% - 28px);
  max-width: calc(50% - 14px);
  min-width: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

@media (max-width: 820px) {
  .study-card {
    max-width: 100%;
    flex: 1 1 100%;
  }
}

.study-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(7, 57, 108, 0.08);
  border-color: #64aa36;
}

.study-card-badge {
  display: inline-block;
  align-self: flex-start;
  background: #f1f9ec;
  color: #3b7e19;
  border: 1px solid #c7e5b5;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.study-card-icon {
  color: #07396c;
  margin-bottom: 14px;
}

.study-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy-900);
  margin: 0 0 12px 0;
}

.study-card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 24px;
}

.study-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.study-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #07396c;
  color: #ffffff;
  font-weight: 750;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.study-btn-primary:hover {
  background: #0b4a8b;
  transform: translateY(-1px);
}

.study-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--surface-tint);
  border: 1px solid var(--line-default);
  color: var(--navy-900);
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.study-btn-secondary:hover {
  background: #438f36;
  border-color: #438f36;
  color: #ffffff;
}

/* Startups Intro Box */
.startups-intro-box {
  background: #f1f8ee;
  border: 1px solid #d4ecd0;
  border-left: 4px solid #438f36;
  border-radius: 14px;
  padding: 20px 24px;
  margin-top: 24px;
  margin-bottom: 32px;
}

.startups-intro-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #1e3a24;
  margin: 0;
}

.startup-tags-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.startup-tag.green {
  background: #e6f6dd;
  color: #2f732c;
  border-color: #bce5ad;
}

.startup-stage-badge {
  font-size: 0.7rem;
  font-weight: 750;
  background: #eaf2fb;
  color: #07396c;
  padding: 2px 8px;
  border-radius: 999px;
}

.startup-meta-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line-subtle);
  padding-top: 12px;
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Pure Clean Gallery */
.gallery-pure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.gallery-pure-item {
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line-default);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.gallery-pure-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(7, 57, 108, 0.12);
  border-color: #64aa36;
}

.gallery-pure-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef4f7;
}

.gallery-pure-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  text-indent: -9999px;
  color: transparent;
  transition: transform 0.4s ease;
}

.gallery-pure-item:hover .gallery-pure-img {
  transform: scale(1.06);
}

.gallery-pure-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 57, 108, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-pure-item:hover .gallery-pure-overlay {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
