:root {
  --blue: #1565c0;
  --blue-dark: #0d47a1;
  --blue-light: #e3f2fd;
  --text: #1a1a1a;
  --text-muted: #5f6368;
  --bg-alt: #f7f9fc;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--blue); }

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-weight: 800;
  font-size: 22px;
  color: var(--text);
}

.logo span { color: var(--blue); }

.site-header nav a,
.site-footer a {
  margin-left: 28px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.site-header nav a:first-child { margin-left: 0; }

.site-header nav a:hover { color: var(--blue); }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--blue-light) 0%, #fff 100%);
  padding: 72px 0 56px;
}

.hero-inner { text-align: center; max-width: 760px; margin: 0 auto; }

.hero h1 {
  font-size: 40px;
  font-weight: 800;
  margin: 0 0 20px;
  line-height: 1.25;
}

.hero-subtitle {
  font-size: 19px;
  color: var(--text-muted);
  margin: 0 0 32px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  margin: 6px;
}

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

.btn-secondary { background: #fff; color: var(--blue); border: 2px solid var(--blue); }
.btn-secondary:hover { background: var(--blue-light); }

/* Grant support block — обязателен на главной по условиям договора */
.grant-support {
  background: var(--bg-alt);
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 32px 0;
}

.grant-support-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.grant-logos {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-shrink: 0;
}

.grant-logo { height: 56px; width: auto; }

/* platform-logo.svg — белые заливки без фона (официальный файл, не
   перекрашиваем), поэтому нужна тёмная подложка, иначе на светлой секции
   он не виден. Сам рисунок — очень мелкий шрифтовой текст тонкими
   штрихами, поэтому ему нужно заметно БОЛЬШЕ места, чем логотипу Фонда,
   а не меньше — на 40px он превращается в нечитаемую кашу. */
.grant-logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0d1b2a;
  border-radius: 8px;
  padding: 14px 20px;
}

.grant-logo-chip .grant-logo { height: 84px; }

.grant-text {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  flex: 1;
  min-width: 260px;
}

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }

.section h2 {
  font-size: 30px;
  font-weight: 800;
  margin: 0 0 12px;
  text-align: center;
}

.section-lead {
  text-align: center;
  color: var(--text-muted);
  font-size: 17px;
  max-width: 640px;
  margin: 0 auto 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.feature-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.feature-icon { font-size: 36px; margin-bottom: 12px; }

.feature-card h3 { margin: 0 0 8px; font-size: 18px; }
.feature-card p { margin: 0; color: var(--text-muted); font-size: 15px; }

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.audience-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  border-left: 4px solid var(--blue);
}

.audience-card h3 { margin: 0 0 10px; font-size: 18px; }
.audience-card p { margin: 0; color: var(--text-muted); font-size: 15px; }

.advantages-list {
  max-width: 640px;
  margin: 32px auto 0;
  padding: 0;
  list-style: none;
}

.advantages-list li {
  padding: 14px 0 14px 32px;
  border-bottom: 1px solid #eee;
  position: relative;
  font-size: 16px;
}

.advantages-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 800;
}

/* Footer */
.site-footer {
  background: #0d1b2a;
  color: #cfd8e3;
  padding: 40px 0;
  margin-top: 40px;
}

.site-footer .logo { color: #fff; }
.site-footer .logo span { color: #64b5f6; }

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

.site-footer p { margin: 4px 0; font-size: 14px; }
.site-footer a { color: #90caf9; }

@media (max-width: 640px) {
  .site-header nav { display: none; }
  .hero h1 { font-size: 30px; }
  .hero-subtitle { font-size: 17px; }
  .grant-support-inner { flex-direction: column; text-align: center; }
}
