/* ============ Синтез Будущего — стили сайта ============ */
:root {
  --indigo: #4f46e5;
  --indigo-dark: #3730a3;
  --violet: #7c3aed;
  --blue: #1e3a8a;
  --accent: #f97316;
  --ink: #1a1a2e;
  --body: #3a3a4a;
  --muted: #6b7280;
  --line: #e7e7ef;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(30, 30, 60, .18);
  --shadow-lg: 0 24px 60px -18px rgba(50, 40, 120, .28);
  --container: 1120px;
  --font: "Segoe UI", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--indigo); text-decoration: none; transition: color .2s; }
a:hover { color: var(--violet); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
section { padding: 84px 0; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 0; cursor: pointer; transition: transform .18s, box-shadow .18s, background .2s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  color: #fff; box-shadow: 0 10px 24px -8px rgba(79, 70, 229, .6);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(79, 70, 229, .7); }
.btn-ghost {
  background: rgba(255, 255, 255, .12); color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .4);
}
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .22); transform: translateY(-2px); }
.btn-outline { background: #fff; color: var(--indigo); border: 1.5px solid var(--line); box-shadow: var(--shadow); }
.btn-outline:hover { color: var(--violet); transform: translateY(-2px); }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; color: var(--ink); }
.logo-mark {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center; color: #fff; font-size: .95rem;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  box-shadow: 0 6px 16px -6px rgba(79, 70, 229, .7);
}
.logo-text { font-size: 1.12rem; letter-spacing: -.02em; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--body); font-weight: 600; font-size: .98rem; }
.nav a:hover { color: var(--indigo); }
.nav-vk {
  padding: 9px 18px; border-radius: 999px; color: #fff !important;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
}
.nav-vk:hover { transform: translateY(-1px); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(-45deg, #1e3a8a, #4338ca, #6d28d9, #7c3aed, #4f46e5, #1e40af);
  background-size: 320% 320%;
  animation: heroGradient 20s ease infinite;
  padding: 104px 0 96px;
}
@keyframes heroGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(10px); opacity: .35;
  will-change: transform;
}
.hero::before {
  width: 460px; height: 460px; top: -160px; right: -120px;
  background: radial-gradient(circle, #a78bfa, transparent 70%);
  animation: heroFloatA 16s ease-in-out infinite;
}
.hero::after {
  width: 380px; height: 380px; bottom: -160px; left: -100px;
  background: radial-gradient(circle, #f97316, transparent 70%); opacity: .28;
  animation: heroFloatB 22s ease-in-out infinite;
}
@keyframes heroFloatA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-50px, 40px) scale(1.18); }
}
@keyframes heroFloatB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, -50px) scale(1.12); }
}
.hero .container { position: relative; z-index: 1; }

/* Уважаем настройку «уменьшить движение» */
@media (prefers-reduced-motion: reduce) {
  .hero, .hero::before, .hero::after { animation: none; }
}
.hero-badge {
  display: inline-block; padding: 7px 16px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); margin-bottom: 22px;
}
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); max-width: 15ch; }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.28rem); max-width: 60ch; margin: 22px 0 34px; color: rgba(255, 255, 255, .92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 56px; }
.hero-stats .stat b { display: block; font-size: 2rem; color: #fff; }
.hero-stats .stat span { color: rgba(255, 255, 255, .8); font-size: .95rem; }

/* ---------- Секции-заголовки ---------- */
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { color: var(--indigo); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 12px 0 14px; }
.section-head p { font-size: 1.08rem; color: var(--muted); }

/* ---------- О фонде / направления ---------- */
.soft { background: var(--bg-soft); }
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .ic { font-size: 2rem; margin-bottom: 14px; }
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .98rem; }

/* ---------- Мероприятия ---------- */
.event {
  display: grid; grid-template-columns: 1.05fr 1.3fr; gap: 0; overflow: hidden;
  border-radius: 24px; box-shadow: var(--shadow-lg); background: #fff; border: 1px solid var(--line);
  margin-bottom: 40px;
}
.event-visual {
  position: relative; min-height: 300px; color: #fff; padding: 40px; min-width: 0;
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
}
.event-visual-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.event-visual .emoji { font-size: 3.4rem; line-height: 1; filter: drop-shadow(0 6px 12px rgba(0,0,0,.25)); }
.event-visual .tag { flex: none; white-space: nowrap; background: rgba(255,255,255,.2); border:1px solid rgba(255,255,255,.35); padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.event-visual h3 { color: #fff; font-size: 2rem; overflow-wrap: break-word; }
.event-visual .sub { color: rgba(255, 255, 255, .9); margin-top: 8px; font-size: 1.02rem; }
.event-body { padding: 40px; min-width: 0; }
.event-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 18px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.event-meta span { display: inline-flex; align-items: center; gap: 7px; }
.event-body p.lead-text { font-size: 1.06rem; color: var(--ink); font-weight: 600; margin-bottom: 12px; }
.event-body p { color: var(--body); margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }
.chip { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; font-size: .9rem; color: var(--body); font-weight: 500; }

/* ---------- Документы и реквизиты ---------- */
.doc-list { display: grid; gap: 16px; margin-bottom: 56px; }
.doc {
  display: flex; align-items: center; gap: 20px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.doc:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.doc-ico { width: 54px; height: 54px; flex: none; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: .82rem; color: #fff; background: linear-gradient(135deg, var(--indigo), var(--violet)); }
.doc-info { flex: 1; min-width: 0; }
.doc-info h3 { font-size: 1.08rem; margin-bottom: 4px; overflow-wrap: break-word; }
.doc-info p { color: var(--muted); font-size: .92rem; }
.doc .btn-outline { padding: 10px 20px; font-size: .92rem; }

.req-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.req-card table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.req-card td { padding: 15px 26px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: break-word; }
.req-card tr:last-child td { border-bottom: 0; }
.req-card td:first-child { color: var(--muted); width: 40%; font-size: .93rem; }
.req-card td:last-child { color: var(--ink); font-weight: 600; }
.req-note { margin-top: 22px; padding: 20px 24px; background: var(--bg-soft); border-radius: var(--radius); color: var(--muted); font-size: .95rem; border: 1px dashed var(--line); }

/* ---------- Команда ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.member { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); text-align: center; transition: transform .2s, box-shadow .2s; }
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.avatar { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.5rem; font-weight: 800; background: linear-gradient(135deg, var(--indigo), var(--violet)); }
.member h3 { font-size: 1.15rem; }
.member .role { color: var(--muted); font-size: .95rem; margin: 6px 0 14px; min-height: 42px; }
.member .contacts a { display: block; font-size: .95rem; margin-top: 4px; font-weight: 600; }

/* ---------- СМИ ---------- */
.media-list { display: grid; gap: 16px; }
.media-item {
  display: flex; align-items: center; gap: 22px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.media-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.media-source { flex: none; width: 120px; font-weight: 800; color: var(--indigo); }
.media-source small { display: block; color: var(--muted); font-weight: 500; font-size: .82rem; margin-top: 2px; }
.media-title { flex: 1; color: var(--ink); font-weight: 600; }
.media-arrow { flex: none; font-size: 1.4rem; color: var(--indigo); }

/* ---------- CTA-полоса ---------- */
.cta {
  color: #fff; text-align: center; border-radius: 28px; padding: 60px 32px;
  background: linear-gradient(135deg, var(--indigo), var(--violet)); box-shadow: var(--shadow-lg);
}
.cta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta p { max-width: 55ch; margin: 14px auto 28px; color: rgba(255, 255, 255, .9); font-size: 1.08rem; }

/* ---------- Внутренний хедер страниц ---------- */
.page-hero { background: linear-gradient(135deg, #1e3a8a, #4f46e5 60%, #7c3aed); color: #fff; padding: 72px 0 60px; text-align: center; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); }
.page-hero p { color: rgba(255, 255, 255, .9); max-width: 60ch; margin: 14px auto 0; font-size: 1.1rem; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--ink); color: #c7c9d9; padding: 60px 0 30px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-logo .logo-text { color: #fff; }
.footer-brand p { margin-top: 12px; color: #c7c9d9; }
.footer-brand .muted { color: #8a8ca0; }
.footer-col h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.footer-col a { display: block; color: #c7c9d9; margin-bottom: 9px; font-size: .96rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding-top: 24px; }
.footer-bottom .muted { color: #8a8ca0; font-size: .9rem; }

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .event { grid-template-columns: 1fr; }
  .event-visual { min-height: 220px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  section { padding: 60px 0; }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 22px 22px;
    transform: translateY(-130%); transition: transform .28s ease; box-shadow: var(--shadow);
  }
  body.nav-open .nav { transform: translateY(0); }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-vk { text-align: center; margin-top: 12px; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}
@media (max-width: 560px) {
  .grid-3, .grid-2, .team-grid { grid-template-columns: 1fr; }
  .media-item { flex-wrap: wrap; gap: 10px; }
  .media-source { width: auto; }
  .hero-stats { gap: 26px; }
  .event-visual, .event-body { padding: 28px; }
  .event-visual h3 { font-size: 1.5rem; }
  .req-card td { padding: 13px 15px; }
  .req-card td:first-child { width: 43%; font-size: .84rem; }
  .doc { flex-wrap: wrap; }
  .doc .btn-outline { width: 100%; justify-content: center; }
}
