/* ═══════════════════════════════════════════
   ВОСХОД — Design System
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --blue:        #003399;
  --blue-light:  #1a56db;
  --blue-glow:   #2563eb;
  --blue-dark:   #002266;
  --bg:          #060a14;
  --bg-card:     #0c1222;
  --bg-elevated: #111827;
  --border:      rgba(0, 51, 153, 0.25);
  --border-hover:rgba(0, 51, 153, 0.5);
  --text:        #f1f5f9;
  --text-muted:  #94a3b8;
  --text-dim:    #64748b;
  --white:       #ffffff;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(0, 51, 153, 0.3);
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h:    72px;
  --max-w:       1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea, select { font: inherit; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Header ─── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(6, 10, 20, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(6, 10, 20, 0.95);
  box-shadow: var(--shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header__logo img {
  height: 40px;
  width: auto;
}

.header__logo-text {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--white);
}

.header__nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2px;
  margin-left: 28px;
  margin-right: auto;
}

.header__nav a {
  padding: 8px 11px;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-muted);
  border-radius: 8px;
  transition: var(--transition);
}

.header__nav a:hover,
.header__nav a.active {
  color: var(--white);
  background: rgba(0, 51, 153, 0.2);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: 20px;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0, 51, 153, 0.4);
}

.btn--primary:hover {
  background: var(--blue-light);
  box-shadow: 0 6px 24px rgba(0, 51, 153, 0.5);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
}

.btn--outline:hover {
  border-color: var(--blue-light);
  background: rgba(0, 51, 153, 0.1);
}

.btn--sm { padding: 8px 16px; font-size: 0.8rem; }
.btn--lg { padding: 16px 32px; font-size: 1rem; }

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__flag-wrap {
  position: absolute;
  top: 50%;
  right: -4%;
  transform: translateY(-50%);
  width: 560px;
  overflow: visible;
  filter: drop-shadow(0 16px 48px rgba(0, 51, 153, 0.35));
}

.hero__flag {
  display: flex;
  width: 100%;
  aspect-ratio: 1024 / 566;
  opacity: 0.22;
}

.hero__flag-strip {
  flex: 1;
  height: 100%;
  background-repeat: no-repeat;
  transform-origin: left center;
  animation: flagStripWave 2.4s ease-in-out infinite;
  will-change: transform;
}

/* волна бежит слева направо по длине флага */
@keyframes flagStripWave {
  0%, 100% {
    transform: translateY(0) scaleY(1);
  }
  50% {
    transform: translateY(-2.5%) scaleY(1.04);
  }
}

@keyframes rotateRays {
  to { transform: translateY(-50%) rotate(360deg); }
}

.hero__glow {
  position: absolute;
  top: 20%;
  right: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 51, 153, 0.25) 0%, transparent 70%);
  filter: blur(60px);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 51, 153, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 51, 153, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 60% 50%, black 20%, transparent 70%);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 51, 153, 0.15);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--blue-light);
  margin-bottom: 24px;
}

.hero__badge-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--blue-light);
  border-radius: 50%;
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 800;
  animation: checkPulse 2s ease-in-out infinite;
}

@keyframes checkPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(26, 86, 219, 0.5); }
  50% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(26, 86, 219, 0); }
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero__title span {
  background: linear-gradient(135deg, var(--white) 0%, var(--blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero__slogan {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue-light);
  letter-spacing: 0.05em;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero__emblem-wrap {
  position: relative;
  width: 380px;
  height: 380px;
}

.hero__emblem {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(0, 51, 153, 0.5));
  animation: floatEmblem 6s ease-in-out infinite;
}

@keyframes floatEmblem {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ─── Stats ─── */
.stats {
  padding: 0 0 80px;
  margin-top: -40px;
  position: relative;
  z-index: 3;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.stat-card__value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--blue-light);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ─── Sections ─── */
.section {
  padding: 100px 0;
}

.section--alt {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__header {
  text-align: center;
  margin-bottom: 60px;
}

.section__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section__desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ─── Quick Access Cards ─── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.card:hover::before { opacity: 1; }

.card__icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 51, 153, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--blue-light);
}

.pictogram {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--blue-light);
}

.pictogram--md {
  width: 28px;
  height: 28px;
}

.pictogram--lg {
  width: 40px;
  height: 40px;
}

.pictogram--xl {
  width: 52px;
  height: 52px;
}

.principle__icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 51, 153, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue-light);
}

.card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.card__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
  text-wrap: pretty;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-light);
  transition: var(--transition);
}

.card__link:hover { gap: 10px; }

/* ─── News ─── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.news-card__img {
  height: 180px;
  background: linear-gradient(135deg, var(--blue-dark), var(--bg-card));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.news-card__img img.news-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.news-card__img img.news-card__photo--default {
  width: auto;
  height: 72px;
  object-fit: contain;
  opacity: 1;
  filter: drop-shadow(0 0 12px rgba(0, 51, 153, 0.4));
}

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

.news-card__date {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 500;
  margin-bottom: 10px;
}

.news-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-card__excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.news-card__tag {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 10px;
  background: rgba(0, 51, 153, 0.15);
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--blue-light);
  align-self: flex-start;
}

.news-card--clickable {
  cursor: pointer;
}

.news-card--clickable:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 2px;
}

.news-card__more {
  margin-top: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-light);
  align-self: flex-start;
  opacity: 0.85;
  transition: var(--transition);
}

.news-card--clickable:hover .news-card__more {
  opacity: 1;
  transform: translateX(2px);
}

/* ─── Press reader modal ─── */
.press-view-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1600;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
  align-items: flex-start;
  justify-content: center;
  padding: 40px 24px;
  overflow-y: auto;
}

.press-view-overlay.open {
  display: flex;
}

.press-view {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.press-view__close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(6, 10, 20, 0.7);
  border: 1px solid var(--border);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.press-view__img {
  height: 320px;
  background: linear-gradient(135deg, var(--blue-dark), var(--bg-card));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.press-view__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.press-view__img--default img {
  width: auto;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(0, 51, 153, 0.5));
}

.press-view__body {
  padding: 32px 40px 40px;
}

.press-view__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.press-view__date {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 500;
}

.press-view__tag {
  padding: 4px 12px;
  background: rgba(0, 51, 153, 0.18);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue-light);
}

.press-view__title {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 10px;
}

.press-view__author {
  font-size: 0.85rem;
  color: var(--blue-light);
  font-weight: 600;
  margin-bottom: 20px;
}

.press-view__content p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.press-view__content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .press-view__img { height: 220px; }
  .press-view__body { padding: 24px 22px 30px; }
  .press-view__title { font-size: 1.35rem; }
}

/* ─── Principles ─── */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.principle {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.principle:hover {
  border-color: var(--border-hover);
}

.principle__num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--blue);
  opacity: 0.4;
  line-height: 1;
  flex-shrink: 0;
}

.principle__title {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.principle__text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  text-wrap: pretty;
}

/* ─── CTA ─── */
.cta {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 40px;
  background: linear-gradient(135deg, rgba(0, 51, 153, 0.2), rgba(0, 34, 102, 0.1));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.cta__rays {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  opacity: 0.06;
  pointer-events: none;
}

.cta__title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta__text {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 36px;
}

.cta__form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.cta__input {
  flex: 1;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  outline: none;
  transition: var(--transition);
}

.cta__input:focus {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(0, 51, 153, 0.2);
}

.cta__sub-extra {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.cta__unsub-toggle {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: var(--transition);
}

.cta__unsub-toggle:hover { color: var(--blue-light); }

.cta__unsub-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  width: 100%;
}

.cta__input--sm {
  padding: 10px 14px;
  font-size: 0.85rem;
}

.cta__unsub-success {
  font-size: 0.85rem;
  color: #34d399;
  font-weight: 600;
}

.cta__disclaimer {
  margin: 26px auto 0;
  max-width: 560px;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--text-dim);
  opacity: 0.85;
}

/* ─── Page Hero (inner pages) ─── */
.page-hero {
  padding: calc(var(--header-h) + 60px) 0 60px;
  background: linear-gradient(180deg, rgba(0, 51, 153, 0.08) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-hero__rays {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  opacity: 0.08;
}

.page-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.page-hero__desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.breadcrumb a { color: var(--blue-light); }
.breadcrumb a:hover { text-decoration: underline; }

/* ─── Content blocks ─── */
.content-block {
  margin-bottom: 48px;
}

.content-block h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--white);
}

.content-block h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 24px 0 12px;
  color: var(--blue-light);
}

.content-block p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

.content-block ul {
  list-style: none;
  margin-bottom: 16px;
}

.content-block ul li {
  padding: 8px 0 8px 28px;
  color: var(--text-muted);
  position: relative;
  line-height: 1.6;
}

/* ─── Charter Page ─── */
.charter-page {
  padding-top: 48px;
}

.charter-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

.charter-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
}

.charter-toc__title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.charter-toc nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: calc(100vh - var(--header-h) - 140px);
  overflow-y: auto;
}

.charter-toc nav a {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 7px 10px;
  border-radius: 8px;
  border-left: 2px solid transparent;
  transition: var(--transition);
  line-height: 1.4;
}

.charter-toc nav a:hover,
.charter-toc nav a.active {
  color: var(--white);
  background: rgba(0, 51, 153, 0.15);
  border-left-color: var(--blue-light);
}

.charter-toc__pdf {
  width: 100%;
  margin-top: 20px;
  justify-content: center;
}

.charter-doc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.charter-doc__header {
  text-align: center;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.charter-doc__emblem {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  opacity: 0.9;
}

.charter-doc__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 8px;
}

.charter-doc__subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.charter-doc__meta {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.charter-doc__download {
  display: inline-flex;
  margin-top: 24px;
}

.charter-section {
  margin-bottom: 36px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.charter-section:last-of-type {
  margin-bottom: 0;
}

.charter-section__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.charter-section__num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(0, 51, 153, 0.2);
  border: 1px solid var(--border-hover);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--blue-light);
}

.charter-section__head h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
}

.charter-article {
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.85;
  font-size: 0.95rem;
}

.charter-article__num {
  font-weight: 700;
  color: var(--blue-light);
  margin-right: 4px;
}

.charter-list {
  list-style: none;
  counter-reset: charter-item;
  margin: 10px 0 18px;
  padding: 16px 20px;
  background: rgba(0, 51, 153, 0.06);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 51, 153, 0.12);
}

.charter-list li {
  counter-increment: charter-item;
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.92rem;
}

.charter-list li:last-child {
  margin-bottom: 0;
}

.charter-list li::before {
  content: counter(charter-item) ".";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--blue-light);
  font-size: 0.88rem;
}

.charter-doc__sign {
  margin-top: 48px;
  padding: 32px 36px;
  background: linear-gradient(135deg, rgba(0, 51, 153, 0.12), rgba(0, 34, 102, 0.06));
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
}

.charter-doc__sign p {
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.7;
}

.charter-doc__sign-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin: 28px 0 20px;
  flex-wrap: wrap;
}

.charter-doc__sign-role {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.6;
}

.charter-doc__sign-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
  min-width: 180px;
  text-align: right;
}

.charter-doc__sign-note {
  font-size: 0.88rem;
  color: var(--text-dim);
  font-style: italic;
}

@media (max-width: 960px) {
  .charter-layout {
    grid-template-columns: 1fr;
  }

  .charter-toc {
    position: static;
  }

  .charter-toc nav {
    max-height: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 4px;
  }

  .charter-doc {
    padding: 32px 24px;
  }
}

@media (max-width: 640px) {
  .charter-doc {
    padding: 24px 18px;
  }

  .charter-section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ─── History Path ─── */
.history-path__intro {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.history-path {
  max-width: 820px;
  margin: 0 auto;
}

.history-path__track {
  position: relative;
  padding-left: 56px;
}

.history-path__track::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: linear-gradient(
    180deg,
    rgba(0, 51, 153, 0.2) 0%,
    var(--blue) 8%,
    var(--blue-light) 50%,
    var(--blue) 92%,
    rgba(0, 51, 153, 0.2) 100%
  );
  border-radius: 3px;
  box-shadow: 0 0 20px rgba(0, 51, 153, 0.35);
}

.path-step {
  position: relative;
  margin-bottom: 28px;
}

.path-step:last-of-type {
  margin-bottom: 0;
}

.path-step__node {
  position: absolute;
  left: -56px;
  top: 22px;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 2px solid var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 0 4px var(--bg), 0 0 16px rgba(37, 99, 235, 0.4);
  transition: var(--transition);
}

.path-step__node span {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--blue-light);
  letter-spacing: 0.02em;
}

.path-step:hover .path-step__node {
  background: var(--blue);
  border-color: var(--blue-light);
  box-shadow: 0 0 0 4px var(--bg), 0 0 24px rgba(37, 99, 235, 0.6);
}

.path-step:hover .path-step__node span {
  color: var(--white);
}

.path-step--final .path-step__node {
  background: var(--blue);
  border-color: var(--blue-light);
  box-shadow: 0 0 0 4px var(--bg), 0 0 28px rgba(37, 99, 235, 0.7);
}

.path-step--final .path-step__node span {
  color: var(--white);
}

.path-step__card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  transition: var(--transition);
}

.path-step:hover .path-step__card,
.path-step--final .path-step__card {
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}

.path-step__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--blue-light);
  background: rgba(0, 51, 153, 0.18);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.path-step__title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.path-step__text p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 12px;
}

.path-step__text p:last-child {
  margin-bottom: 0;
}

.history-quote-block {
  margin-top: 56px;
  padding: 40px 48px 36px;
  background: linear-gradient(135deg, rgba(0, 51, 153, 0.18), rgba(0, 34, 102, 0.06));
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.history-quote-block::before {
  content: '«';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 7rem;
  line-height: 1;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--blue);
  opacity: 0.15;
  pointer-events: none;
}

.history-quote-block__text {
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  font-weight: 600;
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.history-quote-block__author {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue-light);
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}

.history-quote-block__author::before {
  content: '— ';
  color: var(--text-dim);
}

@media (max-width: 640px) {
  .history-path__track {
    padding-left: 44px;
  }

  .path-step__node {
    left: -44px;
    width: 32px;
    height: 32px;
    top: 20px;
  }

  .path-step__node span {
    font-size: 0.6rem;
  }

  .history-path__track::before {
    left: 14px;
  }

  .path-step__card {
    padding: 22px 20px;
  }

  .history-quote-block {
    padding: 32px 24px 28px;
  }
}

.content-block ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 16px;
  width: 8px; height: 8px;
  background: var(--blue);
  border-radius: 50%;
}

/* ─── Program pillars ─── */
.pillars {
  display: grid;
  gap: 24px;
}

.pillar {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  padding: 36px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.pillar:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}

.pillar__icon {
  width: 80px;
  height: 80px;
  background: rgba(0, 51, 153, 0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-light);
}

.pillar__title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.pillar__text {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ─── Team ─── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.team-grid--center {
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  justify-content: center;
}

.team-grid--row-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1024px) {
  .team-grid--row-4 {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

@media (max-width: 560px) {
  .team-grid--row-4 {
    grid-template-columns: 1fr;
  }
}

.team-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  text-align: center;
}

.team-card--person {
  cursor: pointer;
}

.team-card--person:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 2px;
}

.team-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.team-card__avatar {
  height: 200px;
  background: linear-gradient(180deg, var(--blue-dark), var(--bg-card));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-light);
  opacity: 0.6;
  overflow: hidden;
}

.team-card__avatar--photo {
  opacity: 1;
  background: var(--blue-dark);
}

.team-card__avatar--emblem {
  opacity: 1;
  background: #ffffff;
}

.team-card__avatar--emblem img {
  width: 78%;
  height: auto;
  max-height: 70%;
  object-fit: contain;
}

.team-card__avatar--flag {
  opacity: 1;
  background: var(--blue-dark);
}

.team-card__avatar--flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-card__body { padding: 24px; }

.team-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-card__role {
  font-size: 0.85rem;
  color: var(--blue-light);
  font-weight: 600;
  margin-bottom: 12px;
}

.team-card__bio {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.team-card__bio--status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.team-card__bio--terminated {
  color: #f87171;
}

.team-status-icon {
  display: inline-flex;
  align-items: center;
  animation: team-status-pulse 1.6s ease-in-out infinite;
}

.team-status-icon .pictogram {
  width: 18px;
  height: 18px;
}

.team-status-icon--ok {
  color: #22c55e;
}

.team-status-icon--bad {
  color: #ef4444;
}

@keyframes team-status-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.2); }
}

.team-card {
  position: relative;
}

.team-card__admin {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.team-card__admin .btn {
  padding: 4px 8px;
  font-size: 0.7rem;
  background: rgba(10, 14, 26, 0.85);
}

.team-section__add {
  margin-top: 12px;
}

.team-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.team-modal-overlay.open {
  display: flex;
}

.team-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  text-align: center;
}

.team-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.team-modal__photo {
  width: 240px;
  height: 240px;
  margin: 0 auto 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, var(--blue-dark), var(--bg-card));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-light);
}

.team-modal__photo--img {
  background: var(--blue-dark);
}

.team-modal__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-modal__photo--emblem {
  background: #ffffff;
}

.team-modal__photo--emblem img {
  width: 80%;
  height: auto;
  max-height: 64%;
  object-fit: contain;
}

.team-modal__photo--flag img {
  object-position: center;
}

.team-modal__photo .pictogram {
  width: 72px;
  height: 72px;
}

.team-modal__name {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.team-modal__role {
  font-size: 0.95rem;
  color: var(--blue-light);
  font-weight: 600;
  margin-bottom: 14px;
}

.team-modal__passport {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.team-modal__quote {
  margin: 20px 0 0;
  padding: 16px 18px;
  border-left: 3px solid var(--blue);
  background: rgba(0, 51, 153, 0.08);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: left;
}

.team-modal__bio {
  margin-bottom: 20px;
  text-align: center;
}

.team-modal__bio-btn {
  display: inline-block;
}

.team-modal__bio-btn--empty {
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.7;
}

a.team-modal__bio-btn {
  text-decoration: none;
}

.team-modal__contact {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: left;
  font-size: 1rem;
}

.team-modal__contact-label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.team-modal__contact-value {
  display: block;
  color: var(--text-muted);
  line-height: 1.5;
  min-height: 1.5em;
  word-break: break-word;
}

.team-modal__contact-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.team-modal__discord {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #5865f2;
}

.team-modal__biolink {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: left;
  font-size: 0.9rem;
}

.team-modal__biolink-value {
  display: block;
  color: var(--text-muted);
  line-height: 1.5;
  min-height: 1.5em;
  word-break: break-all;
  font-size: 0.82rem;
}

/* ─── Symbolism gallery ─── */
.symbol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
}

.symbol-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.symbol-item:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.symbol-item__img {
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  background: linear-gradient(180deg, rgba(0, 51, 153, 0.08) 0%, var(--bg-elevated) 100%);
}

.symbol-item__img img {
  max-height: 200px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(0, 51, 153, 0.3));
}

.symbol-item__info {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}

.symbol-item__title {
  font-weight: 700;
  margin-bottom: 6px;
}

.symbol-item__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ─── Forms ─── */
.form {
  max-width: 640px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.form-group label .required { color: #ef4444; }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(0, 51, 153, 0.15);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-group .hint {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.form-checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--blue);
  flex-shrink: 0;
}

.form-checkbox label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.form-success {
  display: none;
  padding: 20px;
  background: rgba(0, 51, 153, 0.15);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  text-align: center;
  color: var(--blue-light);
  font-weight: 600;
}

.form-success.show { display: block; }

.form-error {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.4);
  border-radius: 10px;
  color: #f87171;
  font-size: 0.85rem;
  font-weight: 500;
}

.cta__unsub-error { margin-top: 4px; }

/* ─── Contacts ─── */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.contact-item__icon {
  width: 44px;
  height: 44px;
  background: rgba(0, 51, 153, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-light);
  flex-shrink: 0;
}

.contact-item__label {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.contact-item__value {
  font-size: 1rem;
  font-weight: 500;
}

/* ─── Timeline ─── */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--blue), transparent);
}

.timeline__item {
  position: relative;
  margin-bottom: 40px;
  padding: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -34px; top: 28px;
  width: 12px; height: 12px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg);
}

.timeline__year {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-light);
  margin-bottom: 8px;
}

.timeline__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── Footer ─── */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer__brand img {
  height: 36px;
  margin-bottom: 16px;
}

.footer__brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
}

.footer__slogan {
  margin-top: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-light);
}

.footer__col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.footer__col a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 6px 0;
  transition: var(--transition);
}

.footer__col a:hover { color: var(--blue-light); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer__disclaimer {
  font-size: 0.75rem;
  color: var(--text-dim);
  max-width: 500px;
  line-height: 1.5;
}

.footer__login-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__login-btn {
  flex-shrink: 0;
  font-size: 0.75rem !important;
  padding: 6px 14px !important;
}

/* ─── Admin ─── */
.admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.admin-overlay.open { display: flex; }

.admin-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 420px;
  position: relative;
  margin: auto;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

.admin-modal--wide { max-width: 560px; }
.admin-modal--xl { max-width: 900px; }

.team-edit-photo-box {
  display: flex;
  gap: 16px;
  align-items: center;
}

.team-edit-photo-preview {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--text-dim);
  font-size: 0.7rem;
  text-align: center;
}

.team-edit-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-edit-photo-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-edit-actions {
  position: sticky;
  bottom: -32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 0 4px;
  margin-top: 8px;
  background: linear-gradient(180deg, rgba(18, 22, 36, 0), var(--bg-card) 30%);
}

.admin-modal__close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.admin-modal__title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.admin-modal__error {
  color: #ef4444;
  font-size: 0.85rem;
  margin-bottom: 12px;
  min-height: 1.2em;
}

.admin-toolbar {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1500;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: 100px;
  padding: 10px 20px;
  gap: 10px;
  align-items: center;
  box-shadow: var(--shadow-glow);
}

.admin-toolbar.visible { display: flex; }

.admin-toolbar__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-light);
  margin-right: 8px;
}

body.admin-mode [data-editable].is-editable {
  outline: 1px dashed rgba(26, 86, 219, 0.4);
  outline-offset: 3px;
  border-radius: 4px;
  cursor: text;
}

.admin-toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--blue);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 1600;
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.admin-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.news-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 48px 24px;
  font-size: 1rem;
}

.press-admin-bar {
  grid-column: 1 / -1;
  margin-bottom: 8px;
}

.news-card__admin {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

/* ─── Документооборот ─── */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 22px;
}

.docs-admin-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 20px;
  background: var(--bg-elevated);
  border: 1px dashed var(--border-hover);
  border-radius: var(--radius);
  margin-bottom: 8px;
}

.docs-admin-bar__hint {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.docs-card {
  display: flex;
  gap: 18px;
  padding: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  cursor: pointer;
  text-align: left;
}

.docs-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.docs-card:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 2px;
}

.docs-card__icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
}

.docs-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.docs-card__tag {
  display: inline-block;
  padding: 3px 10px;
  margin-bottom: 8px;
  background: rgba(0, 51, 153, 0.18);
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--blue-light);
}

.docs-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
  word-break: break-word;
}

.docs-card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 12px;
  text-wrap: pretty;
}

.docs-card__meta {
  font-size: 0.76rem;
  color: var(--text-dim);
  margin-bottom: 16px;
  word-break: break-word;
}

.docs-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.docs-card__actions .btn {
  display: inline-flex;
  align-items: center;
}

.docs-card__admin {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* Форма загрузки файла */
.doc-file-box {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.doc-file-info {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.85rem;
  word-break: break-word;
}

.doc-file-info span {
  color: var(--text-dim);
}

.doc-file-size {
  font-size: 0.75rem;
  color: var(--text-dim) !important;
}

/* ─── Статистика (аналитика) ─── */
.an-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 24px;
}

.an-tab {
  padding: 8px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.an-tab:hover { border-color: var(--border-hover); color: var(--white); }
.an-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.an-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.an-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: center;
}

.an-card .pictogram {
  width: 22px;
  height: 22px;
  color: var(--blue-light);
  margin: 0 auto 8px;
}

.an-card__value {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
}

.an-card__label {
  font-size: 0.74rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.an-section { margin-bottom: 28px; }

.an-h {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--white);
}

.an-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.an-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 160px;
  padding: 10px 4px 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
}

.an-col {
  flex: 1;
  min-width: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  position: relative;
}

.an-col__bar {
  width: 70%;
  max-width: 26px;
  min-height: 2px;
  background: linear-gradient(180deg, var(--blue-light), var(--blue));
  border-radius: 4px 4px 0 0;
  transition: height 0.4s ease;
}

.an-col__lbl {
  font-size: 0.62rem;
  color: var(--text-dim);
  margin-top: 6px;
  white-space: nowrap;
}

.an-col__val {
  position: absolute;
  top: -16px;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--blue-light);
}

.an-bars { display: flex; flex-direction: column; gap: 12px; }

.an-bar__head {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 5px;
  gap: 10px;
}

.an-bar__head span:first-child {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.an-bar__head span:last-child { color: var(--text-dim); flex-shrink: 0; }

.an-bar__track {
  height: 8px;
  background: var(--bg);
  border-radius: 100px;
  overflow: hidden;
}

.an-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  border-radius: 100px;
  transition: width 0.4s ease;
}

.an-table-wrap { overflow-x: auto; }

.an-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.an-table th {
  text-align: left;
  padding: 10px 12px;
  color: var(--text-dim);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.an-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  white-space: nowrap;
}

.an-vid {
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--blue-light);
}

.an-badge {
  padding: 2px 9px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 600;
  background: rgba(148, 163, 184, 0.16);
  color: var(--text-muted);
}

.an-badge--new {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
}

.an-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.an-note {
  font-size: 0.74rem;
  color: var(--text-dim);
  line-height: 1.5;
  flex: 1;
  min-width: 220px;
}

.an-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 16px;
}

.an-empty--sm { padding: 16px; font-size: 0.82rem; }

@media (max-width: 720px) {
  .an-cards { grid-template-columns: repeat(2, 1fr); }
  .an-cols { grid-template-columns: 1fr; gap: 22px; }
}

/* ─── Animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Mobile Nav ─── */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: rgba(6, 10, 20, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: var(--transition);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--white);
  background: rgba(0, 51, 153, 0.2);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .hero__content { grid-template-columns: 1fr; text-align: center; }
  .hero__subtitle, .hero__actions { margin-left: auto; margin-right: auto; }
  .hero__visual { order: -1; }
  .hero__emblem-wrap { width: 280px; height: 280px; }
  .hero__flag-wrap { width: 360px; right: -12%; opacity: 0.9; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1080px) {
  .header__nav { display: none; }
  .burger { display: flex; }
}

@media (max-width: 768px) {
  .header__actions .btn--outline { display: none; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .pillar { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
  .cta__form, .cta__unsub-form { flex-direction: column; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 60px 0; }
  .cta { padding: 60px 0; }
  .cta__inner { padding: 44px 20px; }
  .page-hero { padding: calc(var(--header-h) + 32px) 0 40px; }

  /* модальные окна (вход, пресс-релиз, документ, статистика, карточка состава) */
  .admin-overlay, .team-modal-overlay, .press-view-overlay { padding: 12px; }
  .admin-modal { padding: 22px 18px; }
  .team-modal { padding: 28px 20px; }
  .team-modal__photo { width: 190px; height: 190px; }
  .press-view__body { padding: 22px 18px 28px; }

  /* панель администратора — переносим кнопки, чтобы влезали */
  .admin-toolbar {
    flex-wrap: wrap;
    justify-content: center;
    max-width: calc(100vw - 20px);
    border-radius: 18px;
    padding: 10px 14px;
  }
  .admin-toolbar__label { width: 100%; text-align: center; margin: 0 0 4px; }

  /* статистика */
  .an-cards { grid-template-columns: repeat(2, 1fr); }
  .an-card__value { font-size: 1.4rem; }
}

@media (max-width: 380px) {
  .an-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .docs-card { flex-direction: column; gap: 12px; }
}
