/* =======================================================================
   ФОНД ВЫПУСКНИКОВ ГИМНАЗИИ ПРИМАКОВА
   style.css — светлый, минималистичный, без градиентов
   ======================================================================= */

/* ── ШРИФТЫ ───────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'HandilPro';
  src: url('HandilPro-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ── ПЕРЕМЕННЫЕ ───────────────────────────────────────────────────────── */
:root {
  /* Фирменная палитра — плоские цвета, без градиентов */
  --ink:        #1F2245;   /* navy — текст и тёмная секция        */
  --ink-soft:   #515585;   /* фиолетовый — вторичный текст        */
  --accent:     #FF4567;   /* розовый — точечный акцент           */
  --accent-deep:#E5395A;
  --paper:      #FFFFFF;   /* основной фон                        */
  --mist:       #F5F6F9;   /* очень светлый фон чередующихся блоков*/
  --mist-deep:  #EEF0F4;
  --line:       #E4E6EC;   /* тонкие линии-разделители            */
  --silver:     #C1C1C1;

  --ink-70: rgba(31, 34, 69, .70);
  --ink-55: rgba(31, 34, 69, .55);
  --ink-40: rgba(31, 34, 69, .40);
  --on-dark-70: rgba(255, 255, 255, .72);
  --on-dark-50: rgba(255, 255, 255, .50);

  /* Типографика */
  --display: 'HandilPro', 'Times New Roman', serif;
  --body:    'Lato', system-ui, -apple-system, sans-serif;

  /* Шкала */
  --text-xs:  0.75rem;
  --text-sm:  0.875rem;
  --text-base:1.0625rem;
  --text-lg:  1.1875rem;
  --text-xl:  1.5rem;
  --text-2xl: 2rem;

  /* Раскладка */
  --max:    1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --header-h: 76px;

  /* Радиусы и тени (мягкие, нейтральные) */
  --r:    14px;
  --r-sm: 9px;
  --shadow-soft: 0 1px 2px rgba(31,34,69,.04), 0 12px 32px rgba(31,34,69,.06);
  --shadow-hover:0 2px 4px rgba(31,34,69,.05), 0 22px 48px rgba(31,34,69,.10);

  /* Движение */
  --ease: cubic-bezier(.22,.61,.36,1);
  --fast: .25s;
  --base: .45s;
}

/* ── СБРОС ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  font-size: var(--text-base);
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
svg { display: block; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

::selection { background: var(--accent); color: #fff; }

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

/* ── РАСКЛАДКА ────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(72px, 11vw, 132px); }
.section--mist { background: var(--mist); }

/* Надзаголовок-метка с розовой чёрточкой — фирменный мотив «связи» */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 26px;
}
.eyebrow::before {
  content: '';
  width: 26px; height: 2px;
  background: var(--accent);
}

.section-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--ink);
}

.section-intro {
  max-width: 56ch;
  margin-top: 22px;
  font-size: var(--text-lg);
  color: var(--ink-70);
}

/* ── КНОПКИ ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
  transition: background var(--fast) var(--ease),
              color var(--fast) var(--ease),
              border-color var(--fast) var(--ease),
              transform var(--fast) var(--ease);
}
.btn svg { width: 17px; height: 17px; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2c3061; }

.btn--ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }

.btn--light { border: 1.5px solid rgba(255,255,255,.45); color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn .arrow { transition: transform var(--fast) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Текстовая ссылка со стрелкой */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: .02em;
  color: var(--ink);
  transition: color var(--fast) var(--ease);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--fast) var(--ease); }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ── ШАПКА ────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--header-h);
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--base) var(--ease),
              border-color var(--base) var(--ease);
}
.site-header.scrolled {
  background: rgba(255,255,255,.92);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.logo img { height: 26px; width: auto; }
.logo { transition: opacity var(--fast); }
.logo:hover { opacity: .68; }

/* Навигация */
.main-nav > ul { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 38px); }
.nav-link {
  position: relative;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--ink);
  padding-block: 6px;
  transition: color var(--fast) var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width var(--base) var(--ease);
}
.nav-link:hover { color: var(--accent); }
.nav-link.active::after { width: 100%; }
.nav-cta { margin-left: 4px; }
.nav-cta .btn { padding: 11px 20px; }

/* Выпадающее меню «Документы» */
.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 18px);
  right: 0;
  min-width: 290px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-soft);
  padding: 8px;
  display: none;
}
.dropdown-menu::before {
  content: '';
  position: absolute; top: -18px; left: 0; right: 0; height: 18px;
}
.dropdown-menu li > a {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  transition: background var(--fast) var(--ease);
}
.dropdown-menu li > a:hover { background: var(--mist); }
.dropdown-menu .ic {
  flex: none; width: 18px; height: 18px; margin-top: 1px;
  color: var(--ink-soft);
}
.doc-note { display: block; font-weight: 400; font-size: var(--text-xs); color: var(--ink-40); margin-top: 3px; }
.dropdown-divider { height: 1px; background: var(--line); margin: 4px 14px; }

/* Бургер */
.burger { display: none; flex-direction: column; gap: 6px; padding: 8px; }
.burger span {
  width: 26px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform var(--base) var(--ease), opacity var(--fast);
}
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── HERO ─────────────────────────────────────────────────────────────── */
.hero {
  padding-top: calc(var(--header-h) + clamp(48px, 8vw, 96px));
  padding-bottom: clamp(56px, 9vw, 110px);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--ink);
}
.hero-title .accent-word {
  position: relative;
  white-space: nowrap;
}
.hero-title .accent-word::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: .04em;
  height: .12em;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: underline-grow 1s var(--ease) .55s forwards;
}
@keyframes underline-grow { to { transform: scaleX(1); } }

.hero-sub {
  max-width: 46ch;
  margin-top: 28px;
  font-size: var(--text-lg);
  color: var(--ink-70);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* Фото в hero — чистый блок без наклонов и теней-свечений */
.hero-figure { position: relative; }
.hero-figure img {
  width: 100%;
  border-radius: var(--r);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}
.hero-caption {
  position: absolute;
  left: 18px; bottom: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink);
}
.hero-caption::before { content:''; width:7px; height:7px; border-radius:50%; background: var(--accent); }

/* Лёгкое появление блоков hero */
.hero-text > *, .hero-figure { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.hero-title { animation-delay: .05s; }
.hero-sub   { animation-delay: .18s; }
.hero-cta   { animation-delay: .3s; }
.hero-figure{ animation-delay: .24s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ── ПОЛОСА «МИССИЯ» ──────────────────────────────────────────────────── */
.mission {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.mission-copy h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -.01em;
}
.mission-copy p { margin-top: 16px; max-width: 52ch; color: var(--ink-70); }
.mission-copy .btn { margin-top: 28px; }

/* Карточка-список «что поддерживаем» справа */
.mission-aside {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(26px, 3vw, 36px);
  box-shadow: var(--shadow-soft);
}
.mission-aside__label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.focus-list { display: grid; gap: 22px; }
.focus-list li { display: flex; align-items: flex-start; gap: 16px; }
.focus-list li + li { padding-top: 22px; border-top: 1px solid var(--line); }
.focus-list svg { flex: none; width: 26px; height: 26px; color: var(--accent); margin-top: 1px; }
.focus-list strong { display: block; font-size: var(--text-base); color: var(--ink); }
.focus-list span { display: block; font-size: var(--text-sm); color: var(--ink-55); margin-top: 3px; }

/* ── ПОСТУПЛЕНИЯ / ГРАФ ───────────────────────────────────────────────── */
.admissions-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
  margin-top: clamp(40px, 6vw, 64px);
}
.graph-wrap {
  position: relative;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  min-height: 440px;
}
#admGraph { width: 100%; height: 100%; display: block; }

.graph-back {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px 9px 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--text-sm); font-weight: 700; color: var(--ink);
  box-shadow: 0 2px 10px rgba(31,34,69,.08);
  transition: background var(--fast), transform var(--fast);
}
.graph-back svg { width: 16px; height: 16px; }
.graph-back[hidden] { display: none; }
.graph-back:hover { background: var(--mist); transform: translateX(-2px); }

/* SVG-узлы */
.node { cursor: pointer; }
.node circle { transition: r var(--base) var(--ease), fill var(--fast) var(--ease), stroke var(--fast); }
.node text { font-family: var(--body); pointer-events: none; user-select: none; }
.node-count { font-family: var(--display); font-weight: 500; }

.node-hub { cursor: default; }
.node-hub circle { fill: var(--ink); }
.node-hub .node-hub-title { fill: #fff; font-weight: 700; }
.node-hub .node-hub-sub { fill: var(--on-dark-70); }

.node-city circle { fill: #fff; stroke: var(--ink-soft); stroke-width: 1.5; }
.node-city .node-count { fill: var(--ink); }
.node-city .node-name { fill: var(--ink); font-weight: 700; }
.node-city:hover circle { stroke: var(--accent); }
.node-city.is-active circle { fill: var(--accent); stroke: var(--accent); }
.node-city.is-active .node-count { fill: #fff; }
.node-city.is-active .node-name { fill: var(--accent); }
.node-city.is-dim { opacity: .26; }

.node-uni circle { fill: #fff; stroke: var(--accent); stroke-width: 1.5; }
.node-uni .node-count { fill: var(--accent); }
.node-uni .node-name { fill: var(--ink-70); font-weight: 600; }
.node-uni:hover circle { fill: var(--accent); }
.node-uni:hover .node-count { fill: #fff; }

.edge { stroke: var(--silver); stroke-width: 1.5; fill: none; transition: opacity var(--base) var(--ease); }
.edge-uni { stroke: var(--accent); stroke-opacity: .45; }
.edge.is-dim { opacity: .16; }

.node-uni, .edge-uni { animation: pop .45s var(--ease) both; }
@keyframes pop { from { opacity: 0; } to { opacity: 1; } }

/* Панель деталей */
.adm-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(24px, 3vw, 34px);
  display: flex; flex-direction: column;
}
.adm-panel__hint { margin: auto 0; text-align: center; color: var(--ink-40); }
.adm-panel__hint svg { width: 42px; height: 42px; margin: 0 auto 14px; color: var(--line); }
.adm-panel__hint p { font-size: var(--text-sm); max-width: 26ch; margin: 0 auto; }

.adm-panel__eyebrow { font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.adm-panel__title { font-family: var(--display); font-weight: 500; font-size: var(--text-2xl); margin: 6px 0 2px; line-height: 1.1; }
.adm-panel__total { font-size: var(--text-sm); color: var(--ink-55); margin-bottom: 20px; }
.adm-panel__total b { color: var(--accent); font-weight: 700; }
.uni-list { display: grid; gap: 0; }
.uni-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.uni-list li:last-child { border-bottom: none; }
.uni-list .u-name { font-size: var(--text-sm); font-weight: 600; color: var(--ink); }
.uni-list .u-count {
  flex: none; min-width: 34px; text-align: center;
  font-family: var(--display); font-size: var(--text-base); color: var(--accent);
}
.adm-panel__note { margin-top: auto; padding-top: 18px; font-size: var(--text-xs); color: var(--ink-40); }


/* ── О НАС ────────────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

/* Карусель */
.carousel { position: relative; }
.carousel-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  box-shadow: var(--shadow-soft);
}
.carousel-track {
  display: flex;
  transition: transform .6s var(--ease);
}
.carousel-slide { flex: 0 0 100%; }
.carousel-slide img,
.carousel-slide .ph {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.carousel-slide .ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  background: var(--mist-deep);
  color: var(--ink-40);
}
.carousel-slide .ph svg { width: 34px; height: 34px; }
.carousel-slide .ph span { font-size: var(--text-sm); font-weight: 600; letter-spacing: .02em; }

.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.92);
  border-radius: 50%;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(31,34,69,.12);
  opacity: 0; transition: opacity var(--fast) var(--ease), background var(--fast);
}
.carousel-btn svg { width: 18px; height: 18px; }
.carousel-wrap:hover .carousel-btn { opacity: 1; }
.carousel-btn:hover { background: #fff; }
.carousel-btn.prev { left: 14px; }
.carousel-btn.next { right: 14px; }

.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.carousel-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--line);
  transition: width var(--fast) var(--ease), background var(--fast) var(--ease);
}
.carousel-dot.active { width: 24px; border-radius: 4px; background: var(--accent); }

/* Текст «о нас» */
.about-lead {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.18;
  letter-spacing: -.01em;
  margin-bottom: 22px;
}
.about-info p { color: var(--ink-70); }
.about-info p + p { margin-top: 16px; }
.about-info strong { color: var(--ink); font-weight: 700; }

.scholarship-note {
  margin-top: 26px;
  padding: 22px 24px;
  background: var(--mist);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: var(--text-sm);
  color: var(--ink-70);
}
.scholarship-note strong { color: var(--ink); }
.about-info .link-arrow { margin-top: 28px; }

/* Счётчики */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.stat-num {
  display: block;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1;
  color: var(--ink);
}
.stat-label {
  display: block;
  margin-top: 8px;
  font-size: var(--text-xs);
  letter-spacing: .04em;
  color: var(--ink-55);
}

/* ── ПРОЕКТЫ ──────────────────────────────────────────────────────────── */
.projects-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: clamp(40px, 6vw, 64px);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.project-card {
  display: flex; flex-direction: column;
  padding: 34px 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: transform var(--base) var(--ease),
              box-shadow var(--base) var(--ease),
              border-color var(--base) var(--ease);
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.project-card--featured {
  grid-column: 1 / -1;
  background: var(--ink);
  border-color: var(--ink);
}
.card-tag {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.card-tag::before { content:''; width:6px; height:6px; border-radius:50%; background: var(--accent); }
.project-card--featured .card-tag { color: var(--on-dark-70); }

.project-card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--text-xl);
  line-height: 1.18;
  letter-spacing: -.01em;
  margin-bottom: 14px;
}
.project-card--featured h3 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.project-card p { font-size: var(--text-sm); color: var(--ink-70); }
.project-card--featured p { color: var(--on-dark-70); max-width: 60ch; }
.project-card strong { color: var(--ink); }
.project-card--featured strong { color: #fff; }
.project-card .link-arrow,
.project-card .btn { margin-top: 22px; align-self: flex-start; }
.project-card--featured .link-arrow { color: #fff; }
.project-card--featured .link-arrow:hover { color: var(--accent); }

/* ── КАК ПОМОЧЬ (тёмная плоская секция) ───────────────────────────────── */
.donate { background: var(--ink); color: #fff; }
.donate .eyebrow { color: var(--on-dark-70); }
.donate .section-title { color: #fff; }
.donate .section-intro { color: var(--on-dark-70); }

.donate-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  margin-top: clamp(40px, 6vw, 60px);
}
.donate-card {
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--r);
}
.donate-card--alumni { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }
.donate-card--public { background: #fff; color: var(--ink); }

.donate-card h3 {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display); font-weight: 500;
  font-size: var(--text-xl);
  margin-bottom: 16px;
}
.donate-card .ic-circle {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
}
.donate-card--alumni .ic-circle { background: rgba(255,255,255,.1); color: #fff; }
.donate-card--public .ic-circle { background: var(--accent); color: #fff; }
.donate-card .ic-circle svg { width: 19px; height: 19px; }
.donate-card > p { color: var(--on-dark-70); font-size: var(--text-sm); }
.donate-card--public > p { color: var(--ink-70); }
.donate-card strong { color: inherit; font-weight: 700; }

.contact-list { margin: 26px 0; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: flex-start; gap: 14px; }
.contact-list .ic { flex: none; width: 19px; height: 19px; margin-top: 3px; color: var(--on-dark-50); }
.contact-list .ct-label { display:block; font-size: var(--text-xs); letter-spacing:.04em; color: var(--on-dark-50); margin-bottom: 2px; }
.contact-list .ct-value { font-weight: 700; font-size: var(--text-sm); }
.contact-list a.ct-value { transition: color var(--fast); }
.contact-list a.ct-value:hover { color: var(--accent); }
.contact-list .ct-muted { font-weight: 400; color: var(--on-dark-50); font-style: italic; }

/* QR */
.qr-block { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: 8px; }
.qr-frame {
  width: 188px; height: 188px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  display: grid; place-items: center;
}
.qr-frame .qr-ph {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background: var(--mist);
  border-radius: var(--r-sm);
  color: var(--ink-40);
}
.qr-frame .qr-ph svg { width: 46px; height: 46px; }
.qr-note { margin-top: 16px; font-size: var(--text-xs); letter-spacing: .03em; color: var(--ink-55); }
.donate-card--public .btn { margin-top: 22px; }

/* ── ПОДВАЛ ───────────────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: #fff; padding-top: clamp(56px, 7vw, 84px); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr;
  gap: clamp(32px, 5vw, 64px);
  padding-bottom: 52px;
}
.footer-brand img { height: 24px; width: auto; }
.footer-brand p { margin-top: 18px; font-size: var(--text-sm); color: var(--on-dark-50); max-width: 34ch; }
.footer-col h4 {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-dark-50); margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { font-size: var(--text-sm); color: var(--on-dark-70); transition: color var(--fast); }
.footer-col a:hover { color: #fff; }
.footer-contacts p { font-size: var(--text-sm); color: var(--on-dark-70); display:flex; align-items:center; gap:10px; }
.footer-contacts p + p { margin-top: 12px; }
.footer-contacts .ic { width: 17px; height: 17px; color: var(--on-dark-50); flex:none; }
.footer-contacts a:hover { color: var(--accent); }

.contact-form { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.contact-form input {
  flex: 1 1 180px;
  padding: 13px 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: #fff;
  font-family: inherit; font-size: var(--text-sm);
  transition: border-color var(--fast);
}
.contact-form input::placeholder { color: var(--on-dark-50); }
.contact-form input:focus { outline: none; border-color: var(--accent); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 24px; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom span { font-size: var(--text-xs); color: var(--on-dark-50); }
.footer-bottom .to-top {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--text-xs); letter-spacing: .04em; color: var(--on-dark-70);
  transition: color var(--fast);
}
.footer-bottom .to-top svg { width: 15px; height: 15px; }
.footer-bottom .to-top:hover { color: #fff; }

/* ── ПЛАВАЮЩАЯ КНОПКА ─────────────────────────────────────────────────── */
.sticky-donate {
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px;
  background: var(--accent); color: #fff;
  border-radius: 999px;
  font-size: var(--text-sm); font-weight: 700; letter-spacing: .02em;
  box-shadow: 0 8px 26px rgba(255,69,103,.30);
  transform: translateY(140%);
  transition: transform var(--base) var(--ease), background var(--fast);
}
.sticky-donate.show { transform: translateY(0); }
.sticky-donate:hover { background: var(--accent-deep); }
.sticky-donate svg { width: 16px; height: 16px; }

/* ── SCROLL-REVEAL ────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ═══════════════════════════════════════════════════════════════════════
   АДАПТИВ
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 540px; }
  .about-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .donate-split { grid-template-columns: 1fr; }
  .mission { grid-template-columns: 1fr; }
  .admissions-grid { grid-template-columns: 1fr; }
  .graph-wrap { min-height: 0; aspect-ratio: 4 / 3; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .burger { display: flex; }
  .nav-cta { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 28px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform var(--base) var(--ease), opacity var(--base) var(--ease);
    box-shadow: var(--shadow-soft);
  }
  .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav .nav-link { padding: 15px 4px; border-bottom: 1px solid var(--line); }
  .nav-link::after { display: none; }
  .nav-dropdown .dropdown-menu {
    position: static; display: block; box-shadow: none; border: none;
    min-width: 0; padding: 4px 0 8px; background: var(--mist); border-radius: var(--r-sm);
  }
  .dropdown-menu::before { display: none; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .footer-inner { grid-template-columns: 1fr; }
  .carousel-btn { opacity: 1; width: 38px; height: 38px; }
}

@media (max-width: 440px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
}

/* ── ОПИСАНИЕ КАРТОЧКИ «ЛИДЕР» ─────────────────────────────────────────── */
.project-card__desc {
  margin-top: 12px;
  font-size: var(--text-sm);
  color: var(--ink-70);
  line-height: 1.65;
}

/* ── ГАЛЕРЕЯ ────────────────────────────────────────────────────────────── */
.gallery { background: var(--paper); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.gallery-item {
  aspect-ratio: 4 / 3;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--mist);
  border: 1.5px dashed var(--line);
  transition: box-shadow var(--fast) var(--ease), border-color var(--fast);
  cursor: pointer;
}
.gallery-item:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--silver);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-ph {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--ink-40);
}
.gallery-ph svg {
  width: 40px; height: 40px;
  stroke: var(--silver);
}

/* Пагинация */
.gallery-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}
.gallery-page-btn {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--fast), border-color var(--fast), color var(--fast);
  display: flex;
  align-items: center;
  gap: 6px;
}
.gallery-page-btn:hover {
  border-color: var(--ink);
  background: var(--mist);
}
.gallery-page-btn.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.gallery-page-next {
  min-width: auto;
  padding: 0 20px;
}
.gallery-page-next svg {
  width: 16px; height: 16px;
}

/* ── РАЗДЕЛИТЕЛЬ ────────────────────────────────────────────────────────── */
.section-divider {
  width: 100%;
  height: 1px;
  background: var(--line);
}

/* ── АДАПТИВ ГАЛЕРЕИ ────────────────────────────────────────────────────── */
@media (max-width: 680px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 440px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gallery-pagination { gap: 6px; }
  .gallery-page-btn { min-width: 36px; height: 36px; font-size: 13px; }
}
