/* АНКО БРИКС — BRICS Pentagon Color System */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* BRICS Pentagon colors from logo */
  --brics-red:    #c42b2b;   /* Россия — красный */
  --brics-green:  #1d8a35;   /* Бразилия — зелёный */
  --brics-orange: #e07520;   /* Индия — оранжевый */
  --brics-purple: #5c5fa0;   /* Китай — серо-фиолетовый */
  --brics-blue:   #3a6fbd;   /* ЮАР — синий */

  /* Crystal center — основной акцент */
  --accent:       #e07520;   /* оранжевый — тёплый, энергичный */
  --accent-light: #f09040;
  --accent-dim:   #b85e18;

  /* Dark background */
  --navy:         #0e1220;
  --navy-light:   #151b2e;
  --navy-mid:     #1c2540;

  --white:        #ffffff;
  --gray-100:     #f4f5f8;
  --gray-200:     #e4e6ed;
  --gray-400:     #9298b0;
  --gray-600:     #555e7a;
  --text:         #1a1f35;

  --radius:       12px;
  --shadow:       0 4px 24px rgba(14,18,32,0.12);
  --shadow-lg:    0 8px 48px rgba(14,18,32,0.2);
  --transition:   0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; font-size: 16px; line-height: 1.6; color: var(--text); background: var(--white); }
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.25; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Header ─────────────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 2rem;
  background: rgba(14, 18, 32, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(224, 117, 32, 0.2);
  height: 70px;
  display: flex; align-items: center; justify-content: space-between;
}
.header-logo {
  display: flex; align-items: center; gap: 12px;
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-weight: 600; font-size: 1.15rem;
}
.header-logo-img {
  width: 42px; height: 42px;
  max-width: 42px; max-height: 42px;
  object-fit: contain; flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.3));
}
.header-nav { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.header-nav a {
  color: rgba(255,255,255,0.8); font-size: 0.9rem; font-weight: 500;
  padding: 0.5rem 0.75rem; border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.header-nav a:hover, .header-nav a.active {
  color: var(--accent-light);
  background: rgba(224,117,32,0.12);
}
.header-nav .btn-gold {
  background: var(--accent); color: white !important;
  padding: 0.4rem 1rem; border-radius: 8px; font-weight: 600;
}
.header-nav .btn-gold:hover { background: var(--accent-light); }

/* Header controls (lang + hamburger) */
.header-controls { display: flex; align-items: center; gap: 8px; }

/* Lang dropdown */
.lang-dropdown { position: relative; }
.lang-btn {
  background: none; border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85); font-size: 0.75rem; font-weight: 600;
  padding: 3px 9px; border-radius: 5px; cursor: pointer;
  transition: all var(--transition); font-family: 'Inter', sans-serif;
  display: flex; align-items: center; gap: 4px;
}
.lang-btn:hover, .lang-btn.open { background: var(--accent); border-color: var(--accent); color: white; }
.lang-menu {
  display: none; position: absolute; top: calc(100% + 6px); right: 0;
  background: white; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  overflow: hidden; z-index: 200; min-width: 56px;
}
.lang-menu.open { display: block; }
.lang-option {
  display: block; padding: 0.45rem 0.85rem;
  color: #0a1628 !important; font-size: 0.78rem; font-weight: 700;
  text-align: center; transition: background 0.15s; text-decoration: none !important;
}
.lang-option:hover { background: #f3f4f6; color: #0a1628 !important; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 8px;
  border: 1px solid rgba(224,117,32,0.4); border-radius: 8px;
  background: rgba(224,117,32,0.08);
}
.hamburger span { width: 22px; height: 2px; background: var(--accent); border-radius: 2px; transition: all var(--transition); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── Hero ─────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute; inset: -20%;
  background-image: url('/static/images/hero-brics.jpg');
  background-size: cover;
  background-position: center 30%;
  will-change: transform;
  /* overlay: тёмный + цветовой градиент */
  filter: brightness(0.55) saturate(1.2);
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to right, rgba(14,18,32,0.78) 35%, rgba(14,18,32,0.35) 100%),
    linear-gradient(to top, rgba(14,18,32,0.55) 0%, transparent 50%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 2;
  background-image:
    linear-gradient(rgba(224,117,32,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224,117,32,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}


.hero-content {
  position: relative; z-index: 3;
  max-width: 1200px; margin: 0 auto; padding: 120px 2rem 80px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(224,117,32,0.12);
  border: 1px solid rgba(224,117,32,0.3);
  color: var(--accent-light);
  font-size: 0.78rem; font-weight: 600;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 1.5rem;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.hero-title {
  font-size: clamp(2.8rem, 5vw, 4.2rem); font-weight: 700;
  color: var(--white); margin-bottom: 0.75rem; line-height: 1.1;
}
.hero-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,0.7); margin-bottom: 1.5rem; font-style: italic;
}
.hero-desc {
  font-size: 1rem; color: rgba(255,255,255,0.6);
  max-width: 480px; margin-bottom: 2rem; line-height: 1.7;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--brics-orange), var(--brics-red));
  color: white; font-weight: 700; font-size: 0.95rem;
  padding: 0.75rem 1.75rem; border-radius: var(--radius);
  transition: all var(--transition); border: none; cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(224,117,32,0.45);
  filter: brightness(1.1);
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: rgba(255,255,255,0.85);
  font-weight: 600; font-size: 0.95rem;
  padding: 0.75rem 1.75rem; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.25);
  transition: all var(--transition); cursor: pointer;
}
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); color: white; }

/* Hero visual */
.hero-visual { display: flex; flex-direction: column; gap: 1rem; }
.hero-flags { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; }
.flag-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 10px 4px; text-align: center;
  transition: all var(--transition);
}
.flag-card:hover { transform: translateY(-3px); }
.flag-card.flag-brics-red:hover   { background: rgba(196,43,43,0.15);  border-color: var(--brics-red); }
.flag-card.flag-brics-green:hover { background: rgba(29,138,53,0.15);  border-color: var(--brics-green); }
.flag-card.flag-brics-orange:hover{ background: rgba(224,117,32,0.15); border-color: var(--brics-orange); }
.flag-card.flag-brics-purple:hover{ background: rgba(92,95,160,0.15);  border-color: var(--brics-purple); }
.flag-card.flag-brics-blue:hover  { background: rgba(58,111,189,0.15); border-color: var(--brics-blue); }
.flag-card .flag { font-size: 1.65rem; margin-bottom: 4px; }
.flag-card .country-name { font-size: 0.58rem; color: rgba(255,255,255,0.55); font-weight: 500; }

.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.stat-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(224,117,32,0.18);
  border-radius: 10px; padding: 16px; text-align: center;
}
.stat-card .number { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--accent-light); }
.stat-card .label { font-size: 0.75rem; color: rgba(255,255,255,0.55); margin-top: 3px; }

/* ── Sections ────────────────────────────────── */
.section { padding: 80px 0; }
.section-dark { background: var(--navy); color: var(--white); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 0.75rem; }
.section-header p { font-size: 1.05rem; opacity: 0.65; max-width: 600px; margin: 0 auto; }
.section-dark .section-header h2 { color: var(--white); }
.gold-line { width: 60px; height: 3px; background: linear-gradient(90deg, var(--brics-orange), var(--brics-red)); border-radius: 2px; margin: 1rem auto 0; }

/* ── About/Goals ─────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.about-text p { font-size: 1rem; line-height: 1.8; color: rgba(255,255,255,0.75); margin-bottom: 1.25rem; }
.goals-list { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; }
.goals-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.95rem; color: rgba(255,255,255,0.8); }
.goals-list li::before { content: '◆'; color: var(--accent); font-size: 0.65rem; margin-top: 6px; flex-shrink: 0; }

/* ── 3 Directions ────────────────────────────── */
.directions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.direction-card {
  border-radius: var(--radius); padding: 2rem;
  transition: all var(--transition);
}
.direction-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.direction-card h3 { font-size: 1.3rem; margin: 1rem 0 1rem; }
.direction-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.direction-card ul li { font-size: 0.88rem; line-height: 1.5; padding-left: 1.1rem; position: relative; }
.direction-card ul li::before { content: '→'; position: absolute; left: 0; }

.direction-red {
  background: linear-gradient(135deg, rgba(196,43,43,0.08) 0%, rgba(196,43,43,0.03) 100%);
  border: 1px solid rgba(196,43,43,0.25);
}
.direction-red h3 { color: var(--brics-red); }
.direction-red ul li::before { color: var(--brics-red); }
.direction-red .direction-icon { font-size: 2.5rem; }

.direction-green {
  background: linear-gradient(135deg, rgba(29,138,53,0.08) 0%, rgba(29,138,53,0.03) 100%);
  border: 1px solid rgba(29,138,53,0.25);
}
.direction-green h3 { color: var(--brics-green); }
.direction-green ul li::before { color: var(--brics-green); }
.direction-green .direction-icon { font-size: 2.5rem; }

.direction-orange {
  background: linear-gradient(135deg, rgba(224,117,32,0.08) 0%, rgba(224,117,32,0.03) 100%);
  border: 1px solid rgba(224,117,32,0.25);
}
.direction-orange h3 { color: var(--brics-orange); }
.direction-orange ul li::before { color: var(--brics-orange); }
.direction-orange .direction-icon { font-size: 2.5rem; }

/* ── Activities grid ─────────────────────────── */
.activities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.activity-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius); padding: 1.5rem;
  transition: all var(--transition);
}
.activity-card:hover {
  background: rgba(224,117,32,0.07);
  border-color: rgba(224,117,32,0.25);
  transform: translateY(-3px);
}
.activity-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.activity-card h4 { font-family: 'Playfair Display', serif; font-size: 0.95rem; color: rgba(255,255,255,0.9); margin-bottom: 0.5rem; }
.activity-card p { font-size: 0.82rem; color: rgba(255,255,255,0.5); line-height: 1.6; }

/* ── Partners ────────────────────────────────── */
.partners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.partner-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 1.75rem;
  transition: all var(--transition);
  display: flex; flex-direction: column; gap: 1rem;
}
.partner-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.partner-logo {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--navy-light), var(--navy-mid));
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700;
  color: var(--accent); flex-shrink: 0;
}
.partner-name { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 600; line-height: 1.3; }
.partner-desc { font-size: 0.87rem; opacity: 0.65; line-height: 1.6; flex: 1; }
.partner-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--accent); font-weight: 600; transition: gap var(--transition); }
.partner-link:hover { gap: 10px; }

/* ── Blog ────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.post-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); overflow: hidden;
  transition: all var(--transition); display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(224,117,32,0.3); }
.post-card-image { width: 100%; height: 200px; object-fit: cover; background: linear-gradient(135deg, var(--navy-light), var(--navy-mid)); }
.post-card-placeholder { width: 100%; height: 200px; background: linear-gradient(135deg, var(--navy-light), var(--navy-mid)); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.post-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; gap: 0.75rem; }
/* Tag filter bar */
.tag-filter-wrap {
  margin-top: 1.75rem;
  position: relative;
}
.tag-filter-wrap::before,
.tag-filter-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 40px;
  pointer-events: none; z-index: 2;
}
.tag-filter-wrap::before { left: 0; background: linear-gradient(to right, var(--navy), transparent); }
.tag-filter-wrap::after  { right: 0; background: linear-gradient(to left, var(--navy), transparent); }
.tag-filter-scroll {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 44px 12px;
  scrollbar-width: none;
}
.tag-filter-scroll::-webkit-scrollbar { display: none; }
.tag-filter-btn {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 7px 16px; border-radius: 30px; font-size: 0.82rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.35); color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.1); transition: all 0.18s; cursor: pointer;
  text-decoration: none;
}
.tag-filter-btn:hover {
  background: rgba(224,117,32,0.25); border-color: var(--accent);
  color: white;
}
.tag-filter-btn.active {
  background: linear-gradient(135deg, var(--brics-orange), var(--brics-red));
  border-color: transparent; color: white;
  box-shadow: 0 2px 12px rgba(224,117,32,0.35);
}
.tf-count {
  background: rgba(255,255,255,0.18); border-radius: 10px;
  padding: 1px 6px; font-size: 0.7rem; font-weight: 700;
}
.tag-filter-btn.active .tf-count { background: rgba(255,255,255,0.25); }

/* Post card tags */
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; background: rgba(224,117,32,0.1); color: var(--accent-dim); font-size: 0.75rem; font-weight: 600; padding: 3px 8px; border-radius: 5px; cursor: pointer; transition: background var(--transition); }
.tag:hover, .tag.active-tag { background: var(--accent); color: white; }
.post-title { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 600; line-height: 1.4; color: var(--text); }
.post-excerpt { font-size: 0.9rem; color: var(--gray-600); line-height: 1.6; flex: 1; }
.post-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; color: var(--gray-400); }
.read-more { color: var(--accent); font-weight: 600; font-size: 0.87rem; display: inline-flex; align-items: center; gap: 4px; transition: gap var(--transition); }
.read-more:hover { gap: 8px; }

/* ── Pagination ──────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 3rem; }
.page-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--gray-200); font-size: 0.9rem; font-weight: 500; color: var(--gray-600); transition: all var(--transition); }
.page-btn:hover, .page-btn.active { background: var(--accent); border-color: var(--accent); color: white; }

/* ── Forms ───────────────────────────────────── */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-size: 0.87rem; font-weight: 600; color: var(--gray-600); margin-bottom: 0.5rem; }
.form-control {
  width: 100%; padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200); border-radius: var(--radius);
  font-size: 0.95rem; font-family: 'Inter', sans-serif;
  color: var(--text); background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition); outline: none;
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224,117,32,0.12); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.btn-submit {
  background: linear-gradient(135deg, var(--brics-orange), var(--brics-red));
  color: white; font-weight: 700; font-size: 1rem;
  padding: 0.85rem 2rem; border-radius: var(--radius);
  border: none; cursor: pointer; transition: all var(--transition); width: 100%;
}
.btn-submit:hover { filter: brightness(1.1); transform: translateY(-2px); }

/* ── Auth ────────────────────────────────────── */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 5rem 1rem 2rem;
}
.auth-card { background: var(--white); border-radius: 16px; padding: 2.5rem; width: 100%; max-width: 480px; box-shadow: var(--shadow-lg); }
.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-logo h1 { font-size: 1.8rem; color: var(--navy); margin-bottom: 0.25rem; }
.auth-logo p { font-size: 0.9rem; color: var(--gray-400); }
.alert-error { background: #fee2e2; border: 1px solid #fca5a5; color: #b91c1c; padding: 0.75rem 1rem; border-radius: 8px; font-size: 0.9rem; margin-bottom: 1.5rem; }
.alert-success { background: #dcfce7; border: 1px solid #86efac; color: #15803d; padding: 0.75rem 1rem; border-radius: 8px; font-size: 0.9rem; margin-bottom: 1.5rem; }
.auth-link { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; color: var(--gray-600); }
.auth-link a { color: var(--accent-dim); font-weight: 600; }

/* ── Cabinet ─────────────────────────────────── */
.cabinet-layout { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 70px); margin-top: 70px; }
.cabinet-sidebar { background: var(--navy); padding: 2rem 1rem; color: var(--white); }
.cabinet-sidebar .sidebar-title { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.35); padding: 0 0.75rem; margin-bottom: 0.5rem; margin-top: 1.5rem; }
.cabinet-sidebar .sidebar-title:first-child { margin-top: 0; }
.sidebar-nav { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav a { display: flex; align-items: center; gap: 10px; padding: 0.6rem 0.75rem; border-radius: 8px; font-size: 0.9rem; color: rgba(255,255,255,0.7); transition: all var(--transition); }
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(224,117,32,0.15); color: var(--accent-light); }
.cabinet-main { padding: 2.5rem; background: var(--gray-100); }
.page-title { font-size: 1.8rem; color: var(--navy); margin-bottom: 0.5rem; }
.page-subtitle { font-size: 0.95rem; color: var(--gray-400); margin-bottom: 2rem; }

/* Status badges */
.status-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 0.78rem; font-weight: 600; padding: 4px 10px; border-radius: 20px; }
.status-pending  { background: #fef3c7; color: #92400e; }
.status-approved { background: #dcfce7; color: #15803d; }
.status-revision { background: #dbeafe; color: #1e40af; }
.status-rejected { background: #fee2e2; color: #b91c1c; }
.status-draft    { background: var(--gray-200); color: var(--gray-600); }

/* Data table */
.data-table { width: 100%; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.data-table table { width: 100%; border-collapse: collapse; }
.data-table th { background: var(--navy); color: rgba(255,255,255,0.65); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.85rem 1rem; text-align: left; }
.data-table td { padding: 1rem; border-bottom: 1px solid var(--gray-200); font-size: 0.9rem; color: var(--text); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--gray-100); }

/* Stats grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-widget { background: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.stat-widget .number { font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 700; color: var(--navy); line-height: 1; }
.stat-widget .label { font-size: 0.87rem; color: var(--gray-400); margin-top: 6px; }
.stat-widget.gold .number { color: var(--accent-dim); }

/* Action buttons */
.btn-sm { display: inline-flex; align-items: center; gap: 5px; padding: 0.35rem 0.75rem; border-radius: 6px; font-size: 0.82rem; font-weight: 600; cursor: pointer; border: none; transition: all var(--transition); text-decoration: none; }
.btn-approve   { background: #dcfce7; color: #15803d; }
.btn-approve:hover { background: #bbf7d0; }
.btn-revision  { background: #dbeafe; color: #1e40af; }
.btn-revision:hover { background: #bfdbfe; }
.btn-reject    { background: #fee2e2; color: #b91c1c; }
.btn-reject:hover { background: #fecaca; }
.btn-view      { background: var(--gray-200); color: var(--gray-600); }
.btn-view:hover { color: var(--navy); }
.btn-edit      { background: rgba(224,117,32,0.12); color: var(--accent-dim); }
.btn-edit:hover { background: rgba(224,117,32,0.22); }
.btn-toggle-on  { background: #dcfce7; color: #15803d; }
.btn-toggle-off { background: #fee2e2; color: #b91c1c; }

/* ── Contacts ─────────────────────────────────── */
.contacts-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon { width: 44px; height: 44px; background: rgba(224,117,32,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 1.1rem; flex-shrink: 0; }
.contact-item h4 { font-size: 0.87rem; font-weight: 600; margin-bottom: 3px; color: var(--navy); }
.contact-item p { font-size: 0.9rem; color: var(--gray-600); }

/* ── Blog post ────────────────────────────────── */
.blog-post-header { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); padding: 120px 0 60px; color: var(--white); }
.blog-post-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; font-size: 0.9rem; color: rgba(255,255,255,0.55); }
.blog-post-title { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--white); max-width: 800px; margin-bottom: 1rem; }
.blog-post-content { max-width: 800px; margin: 0 auto; padding: 3rem 2rem; }
.blog-post-content img { border-radius: var(--radius); margin: 2rem 0; }
.blog-post-content h2, .blog-post-content h3 { color: var(--navy); margin: 2rem 0 1rem; }
.blog-post-content p { margin-bottom: 1.2rem; line-height: 1.8; color: var(--gray-600); }
.blog-post-content ul, .blog-post-content ol { padding-left: 1.5rem; margin-bottom: 1.2rem; color: var(--gray-600); }
.blog-post-content li { margin-bottom: 0.5rem; line-height: 1.7; }
.blog-post-content a { color: var(--brics-blue); text-decoration: underline; text-underline-offset: 3px; }
.blog-post-content a:hover { color: var(--accent); }

/* ── Footer ──────────────────────────────────── */
.footer {
  background: var(--navy); color: rgba(255,255,255,0.55); padding: 3rem 0 1.5rem;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--brics-red), var(--brics-green), var(--brics-orange), var(--brics-purple), var(--brics-blue)) 1;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2rem; }
.footer-brand .brand-name { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--white); margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.87rem; line-height: 1.6; }
.footer-col h4 { font-size: 0.87rem; font-weight: 600; color: rgba(255,255,255,0.8); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a { font-size: 0.87rem; color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-col ul a:hover { color: var(--accent-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; }

/* BRICS color stripe in footer bottom */
.brics-stripe {
  display: flex; height: 4px; border-radius: 2px; overflow: hidden; margin-bottom: 1.5rem;
}
.brics-stripe span { flex: 1; }
.brics-stripe .s1 { background: var(--brics-red); }
.brics-stripe .s2 { background: var(--brics-green); }
.brics-stripe .s3 { background: var(--brics-orange); }
.brics-stripe .s4 { background: var(--brics-purple); }
.brics-stripe .s5 { background: var(--brics-blue); }

/* ── Animate on scroll ───────────────────────── */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ── Comment / empty ─────────────────────────── */
.comment-box { background: #fef9e7; border: 1px solid #f0c040; border-radius: 8px; padding: 0.75rem 1rem; font-size: 0.9rem; color: #7a5c00; margin-top: 0.5rem; }
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--gray-400); }
.empty-state .emoji { font-size: 3rem; margin-bottom: 1rem; display: block; }
.empty-state h3 { font-size: 1.2rem; color: var(--gray-600); margin-bottom: 0.5rem; }

/* ── Mobile ──────────────────────────────────── */
@media (max-width: 1100px) {
  .activities-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 2rem; padding-top: 100px; }
  .hero-visual { display: none; }
  .hero::before { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .directions-grid { grid-template-columns: 1fr; }
  .activities-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .contacts-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cabinet-layout { grid-template-columns: 1fr; }
  .cabinet-sidebar { display: none; }
  .hamburger { display: flex; }
  .header-nav {
    display: none; position: absolute; top: 70px; right: 0;
    width: 250px;
    background: var(--navy);
    flex-direction: column; padding: 1rem 0.75rem; gap: 4px;
    border-top: 2px solid var(--accent);
    border-radius: 0 0 0 14px;
    box-shadow: -4px 8px 32px rgba(0,0,0,0.35);
  }
  .header-nav.open { display: flex; }
  .header-nav li { width: 100%; }
  .header-nav a {
    display: block; padding: 13px 1.25rem; width: 100%; box-sizing: border-box;
    border-radius: 8px; font-size: 1rem; font-weight: 500;
    text-align: left;
  }
  .header-nav .btn-gold {
    display: block; text-align: center;
    margin: 10px 0 6px; padding: 13px 1.25rem;
    border-radius: 8px; width: 100%; box-sizing: border-box;
  }
}
@media (max-width: 600px) {
  .activities-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .data-table { overflow-x: auto; }
}
