/* ============ Синтез Будущего — стили сайта ============ */
:root {
  --indigo: #7c2ff5;        /* бренд — фиолетовый (основной) */
  --indigo-dark: #5a1fd0;
  --violet: #ec1e63;        /* бренд — малиновый (пара в градиентах) */
  --blue: #2b5fe6;
  --cyan: #1fc4e6;
  --lime: #94e40c;
  --accent: #94e40c;        /* акцент — лайм */
  --ink: #0c0c18;
  --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(70, 30, 110, .26);
  --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: 42px; height: 42px; flex: none; display: block; }
.logo-text { font-size: 1.02rem; letter-spacing: .04em; text-transform: uppercase; }
.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:
    radial-gradient(60% 75% at 78% 18%, rgba(236, 30, 99, .28), transparent 62%),
    radial-gradient(55% 70% at 15% 95%, rgba(31, 196, 230, .24), transparent 62%),
    radial-gradient(60% 60% at 50% 55%, rgba(124, 47, 245, .24), transparent 70%),
    #07070f;
  padding: 112px 0 96px;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(72px); opacity: .5;
  will-change: transform;
}
.hero::before {
  width: 480px; height: 480px; top: -150px; right: -90px;
  background: radial-gradient(circle, #ec1e63, transparent 70%);
  animation: heroFloatA 18s ease-in-out infinite;
}
.hero::after {
  width: 420px; height: 420px; bottom: -170px; left: -90px;
  background: radial-gradient(circle, #1fc4e6, transparent 70%);
  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)); }
.avatar-photo { width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%; background-size: 230%; background-position: 60% 13%; background-repeat: no-repeat; box-shadow: 0 8px 22px -6px rgba(124, 47, 245, .45); }
.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 {
  position: relative; overflow: hidden; color: #fff; padding: 78px 0 64px; text-align: center;
  background:
    radial-gradient(55% 90% at 82% 8%, rgba(236, 30, 99, .30), transparent 60%),
    radial-gradient(55% 90% at 12% 100%, rgba(31, 196, 230, .26), transparent 60%),
    #0c0c18;
}
.page-hero .container { position: relative; z-index: 1; }
.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; }

/* ---------- Пункт меню «Поддержать» ---------- */
.nav-donate {
  padding: 9px 18px; border-radius: 999px; font-weight: 700; color: var(--ink) !important;
  background: var(--lime); box-shadow: 0 6px 16px -6px rgba(148, 228, 12, .6);
}
.nav-donate:hover { color: var(--ink) !important; transform: translateY(-1px); }

/* ---------- Страница «Поддержать» ---------- */
.donate-intro { max-width: 760px; margin-bottom: 44px; }
.donate-intro p { font-size: 1.12rem; color: var(--body); margin-bottom: 14px; }
.donate-intro p:first-child { color: var(--ink); font-weight: 600; }
.donate-methods { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px; align-items: start; }
.donate-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 30px; }
.donate-card h3 { font-size: 1.2rem; margin-bottom: 18px; }
.donate-qr { text-align: center; position: relative; }
.donate-badge { position: absolute; top: 22px; right: 24px; background: linear-gradient(135deg, var(--indigo), var(--violet)); color: #fff; font-weight: 800; font-size: .72rem; letter-spacing: .08em; padding: 5px 11px; border-radius: 999px; }
.qr-img { width: 240px; max-width: 82%; margin: 0 auto 20px; border-radius: 14px; }
.donate-qr .btn { width: 100%; justify-content: center; }
.small { font-size: .88rem; margin-top: 14px; }
.req-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.req-table td { padding: 12px 6px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: break-word; font-size: .95rem; }
.req-table tr:last-child td { border-bottom: 0; }
.req-table td:first-child { color: var(--muted); width: 42%; }
.req-table td:last-child { color: var(--ink); font-weight: 600; }
.donate-legal { margin-top: 34px; padding: 24px 26px; background: var(--bg-soft); border: 1px dashed var(--line); border-radius: var(--radius); }
.donate-legal p { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }

/* ---------- Блок пилота ---------- */
.pilot { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 36px; align-items: center; }
.pilot-media img { width: 100%; border-radius: 22px; box-shadow: var(--shadow-lg); }
.pilot-body .eyebrow { display: block; margin-bottom: 10px; }
.pilot-body p { color: var(--body); margin-bottom: 14px; }
.pilot-body .lead-text { font-size: 1.12rem; color: var(--ink); font-weight: 600; }
.pilot-body .chips { margin: 20px 0 24px; }

/* ---------- Всплывающее окно «Поддержать» ---------- */
body.modal-open { overflow: hidden; }
.support-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 22px; background: rgba(8, 8, 18, .62); backdrop-filter: blur(4px); animation: modalFade .25s ease; }
.support-modal[hidden] { display: none; }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
.support-modal__card { position: relative; background: #fff; border-radius: 24px; max-width: 420px; width: 100%; padding: 40px 34px 28px; text-align: center; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .5); animation: modalPop .28s ease; }
@keyframes modalPop { from { transform: translateY(16px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.support-modal__mark { margin: 0 auto 14px; display: block; }
.support-modal__card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.support-modal__card p { color: var(--muted); margin-bottom: 22px; }
.support-modal__card .btn { width: 100%; justify-content: center; }
.support-modal__close { position: absolute; top: 12px; right: 16px; background: none; border: 0; font-size: 1.9rem; line-height: 1; color: var(--muted); cursor: pointer; }
.support-modal__close:hover { color: var(--ink); }
.support-modal__later { display: block; margin: 14px auto 0; background: none; border: 0; color: var(--muted); font-size: .92rem; cursor: pointer; text-decoration: underline; }

/* ---------- Адаптив новых блоков ---------- */
@media (max-width: 820px) {
  .donate-methods { grid-template-columns: 1fr; }
  .pilot { grid-template-columns: 1fr; gap: 24px; }
  .pilot-media { max-width: 460px; margin: 0 auto; }
}

/* ---------- Адаптив ---------- */
@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, .nav-donate { text-align: center; margin-top: 10px; border-bottom: 0; }
  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; }
  .event-body .btn-outline { display: flex; width: 100%; justify-content: center; white-space: normal; text-align: center; }
  .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; }
}
