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

:root {
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --bg-main: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.05);
  --font: 'Inter', -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font); background-color: var(--bg-main); color: var(--text-main); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--text-main); letter-spacing: -0.02em; }

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

/* Шапка */
header { position: sticky; top: 0; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); z-index: 100; }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 20px; color: var(--text-main); }
.brand-logo { width: 32px; height: 32px; background: var(--primary); color: white; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
nav { display: flex; gap: 32px; align-items: center; }
nav a { font-size: 15px; font-weight: 500; color: var(--text-muted); }
nav a:hover, nav a.active { color: var(--text-main); }
.btn-nav { background: var(--primary); color: white !important; padding: 10px 20px; border-radius: 8px; font-weight: 600; transition: background 0.2s; }
.btn-nav:hover { background: var(--primary-hover); }

/* Главный экран (Hero) с фоновой сеткой */
.hero { position: relative; padding: 140px 0 100px; text-align: center; border-bottom: 1px solid var(--border); overflow: hidden; }
.hero::before { 
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(to right, #f1f5f9 1px, transparent 1px), linear-gradient(to bottom, #f1f5f9 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}
.hero h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 24px; letter-spacing: -0.03em; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: clamp(18px, 2vw, 20px); color: var(--text-muted); max-width: 700px; margin: 0 auto 40px; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; border-radius: 8px; font-weight: 600; font-size: 16px; transition: all 0.2s ease; cursor: pointer; border: none; }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3); color: white; }
.btn-outline { background: white; color: var(--text-main); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--text-muted); background: var(--bg-secondary); }

/* Секции */
section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 36px; margin-bottom: 16px; }
.section-header p { font-size: 18px; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* Карточки с иконками */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; transition: all 0.3s ease; box-shadow: var(--shadow-sm); }
.card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.card-icon { width: 48px; height: 48px; background: #EFF6FF; color: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 20px; margin-bottom: 12px; }
.card p { color: var(--text-muted); font-size: 15px; }

/* Блок цифр (KPI) */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; text-align: center; background: white; border: 1px solid var(--border); border-radius: 16px; padding: 48px; margin-top: -50px; position: relative; z-index: 10; box-shadow: var(--shadow-md); }
.stat-num { font-size: 42px; font-weight: 800; color: var(--primary); letter-spacing: -0.03em; margin-bottom: 8px; }
.stat-label { font-size: 14px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* Команда */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 32px; }
.team-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; text-align: center; transition: all 0.3s ease; }
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.team-img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 20px; border: 4px solid var(--bg-secondary); }
.team-name { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.team-role { font-size: 14px; color: var(--primary); font-weight: 600; }

/* Баннер "Присоединяйтесь" */
.cta-banner { background: var(--primary); border-radius: 24px; padding: 64px 32px; text-align: center; color: white; margin: 80px auto; max-width: 1140px; }
.cta-banner h2 { color: white; font-size: 36px; margin-bottom: 16px; }
.cta-banner p { font-size: 18px; color: #BFDBFE; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.btn-white { background: white; color: var(--primary); padding: 16px 32px; font-size: 16px; font-weight: 600; border-radius: 8px; transition: all 0.2s; }
.btn-white:hover { background: var(--bg-secondary); transform: translateY(-2px); color: var(--primary); }

/* Внутренние страницы */
.page-header { padding: 80px 0 60px; text-align: center; background: var(--bg-secondary); border-bottom: 1px solid var(--border); }
.page-header h1 { font-size: 48px; margin-bottom: 16px; }
.page-header p { font-size: 20px; color: var(--text-muted); max-width: 700px; margin: 0 auto; }
.content-section { padding: 60px 0; }
.content-box { max-width: 800px; margin: 0 auto; }
.content-box h2 { font-size: 28px; margin: 48px 0 24px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.content-box h2:first-child { margin-top: 0; }
.content-box p { font-size: 18px; color: var(--text-muted); margin-bottom: 24px; }
.content-box ul { list-style: none; padding: 0; margin-bottom: 32px; }
.content-box li { position: relative; padding-left: 32px; margin-bottom: 16px; font-size: 18px; color: var(--text-main); }
.content-box li::before { content: '→'; position: absolute; left: 0; color: var(--primary); font-weight: bold; font-size: 20px; top: -2px; }

/* Блок-цитата */
.motto { background: var(--bg-secondary); border-left: 4px solid var(--primary); padding: 32px; font-size: 24px; font-style: italic; font-weight: 500; color: var(--text-main); border-radius: 0 12px 12px 0; margin: 40px 0; }

/* Иконки в программе */
.program-title { display: flex; align-items: center; gap: 16px; margin: 48px 0 24px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.program-title h2 { margin: 0; border: none; padding: 0; font-size: 24px; }
.program-title svg { width: 32px; height: 32px; color: var(--primary); flex-shrink: 0; }

/* Форма */
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--text-main); font-size: 14px; }
.form-control { width: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: 8px; font-family: var(--font); font-size: 16px; transition: border-color 0.2s; background: white; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }

/* Подвал */
footer { background: var(--text-main); color: #94A3B8; padding: 64px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 48px; margin-bottom: 48px; }
footer h4 { color: white; margin-bottom: 20px; font-size: 18px; }
footer a { color: #94A3B8; display: inline-block; margin-bottom: 12px; }
footer a:hover { color: white; }
.socials { display: flex; gap: 16px; margin-top: 16px; }
.socials a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: #1E293B; border-radius: 8px; color: white; transition: background 0.2s; margin: 0; }
.socials a:hover { background: var(--primary); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }
.footer-bottom { border-top: 1px solid #334155; padding-top: 32px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; color: #64748B; }

@media (max-width: 768px) {
  .header-inner { flex-direction: column; height: auto; padding: 16px 0; gap: 16px; }
  nav { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .hero { padding: 80px 0 60px; }
  .stats-grid { margin-top: 20px; padding: 32px 16px; }
  .cta-banner { border-radius: 0; margin: 40px 0; padding: 48px 24px; }
  .content-box li { font-size: 16px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}



/* Аватары с инициалами */
.team-card { display: flex; flex-direction: column; justify-content: flex-start; }
.team-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #3B82F6 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  margin: 0 auto 20px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
  letter-spacing: -1px;
  text-transform: uppercase;
}
.team-card.empty-slot { border: 2px dashed var(--border); background: transparent; box-shadow: none; }
.team-card.empty-slot:hover { border-color: var(--primary); background: white; }
.team-card.empty-slot .team-avatar { background: #E2E8F0; color: #94A3B8; box-shadow: none; font-size: 40px; font-weight: 300; }
.team-card.empty-slot .team-role { color: var(--text-muted); }

/* Аватары с инициалами */
.team-card { display: flex; flex-direction: column; justify-content: flex-start; }
.team-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #3B82F6 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  margin: 0 auto 20px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
  letter-spacing: -1px;
  text-transform: uppercase;
}
.team-card.empty-slot { border: 2px dashed var(--border); background: transparent; box-shadow: none; }
.team-card.empty-slot:hover { border-color: var(--primary); background: white; }
.team-card.empty-slot .team-avatar { background: #E2E8F0; color: #94A3B8; box-shadow: none; font-size: 40px; font-weight: 300; }
.team-card.empty-slot .team-role { color: var(--text-muted); }



/* Блок торжественного обращения / Гимна */
.anthem-section {
  padding: 60px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.anthem-box {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
  padding: 60px 40px;
  border-radius: 16px;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.3);
  position: relative;
  overflow: hidden;
}
.anthem-box::before {
  content: '”';
  position: absolute;
  top: 10px; left: 20px;
  font-size: 120px;
  color: rgba(255,255,255,0.05);
  font-family: Georgia, serif;
  line-height: 1;
}
.anthem-title {
  color: var(--gold);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.anthem-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 3vw, 26px);
  font-style: italic;
  line-height: 1.8;
  color: white;
  margin: 0;
  position: relative;
  z-index: 1;
}
.anthem-text p {
  margin-bottom: 16px;
}
.anthem-text p:last-child {
  margin-bottom: 0;
}

/* Блок торжественного обращения / Гимна */
.anthem-section {
  padding: 60px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.anthem-box {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
  padding: 60px 40px;
  border-radius: 16px;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.3);
  position: relative;
  overflow: hidden;
}
.anthem-box::before {
  content: '”';
  position: absolute;
  top: 10px; left: 20px;
  font-size: 120px;
  color: rgba(255,255,255,0.05);
  font-family: Georgia, serif;
  line-height: 1;
}
.anthem-title {
  color: var(--gold);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.anthem-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 3vw, 26px);
  font-style: italic;
  line-height: 1.8;
  color: white;
  margin: 0;
  position: relative;
  z-index: 1;
}
.anthem-text p {
  margin-bottom: 16px;
}
.anthem-text p:last-child {
  margin-bottom: 0;
}
