/* АНО "Академия Молодых Лидеров" - Основные стили */

:root {
  /* Основная палитра */
  --color-teal: #96DACE;
  --color-teal-dark: #44a08d;
  --color-primary: #121524;
  --color-bg: #f5f7fa;
  --color-bg-gradient: #c3cfe2;
  --color-purple: #667eea;
  --color-purple-dark: #764ba2;
  --color-white: #ffffff;
  --color-text: #121524;
  --color-text-light: #7f8c8d;
  --color-secondary: #246257;
  --color-accent: #4ecdc4;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  /* Градиенты */
  --gradient-teal: linear-gradient(-135deg, #4ecdc4, #44a08d);
  --gradient-teal-135: linear-gradient(135deg, #4ecdc4, #44a08d);
  --gradient-purple: linear-gradient(-135deg, #667eea, #764ba2);
  --shadow-sm: 0 2px 8px rgba(44, 62, 80, 0.08);
  --shadow-md: 0 4px 16px rgba(44, 62, 80, 0.12);
  --shadow-lg: 0 8px 32px rgba(44, 62, 80, 0.15);
  --radius: 12px;
  --transition: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-gradient) 100%);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
}

a {
  color: var(--color-teal);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-teal-dark);
}

img {
  max-width: 100%;
  height: auto;
}

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

/* ===== HEADER ===== */
.header {
  background: linear-gradient(135deg, var(--color-bg), var(--color-bg-gradient));
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 0;
}

.logo-img {
  height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo .logo-text {
  white-space: nowrap;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-teal-135);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 24px;
}

.logo-text {
  display: none !important;
  
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 24px;
}

.nav-link {
  color: var(--color-text);
  font-weight: 500;
  padding: 8px 0;
}

.nav-link:hover {
  color: var(--color-secondary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-accent {
/*  background: var(--color-teal);*/
  color: var(--color-white);

  background-image: url(../images/button.png);
  background-size: cover;
  background-position: center;
  border: none;
  color: white;
}

.btn-accent:hover {
  transform: translateY(-2px);
  color: white;
  filter: brightness(1.2);
}

.btn-primary {
  background: var(--gradient-teal-135);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--gradient-teal);
  filter: brightness(1.05);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-teal);
  color: var(--color-teal);
}

.btn-outline:hover {
  background: var(--color-teal);
  color: var(--color-white);
}

/* Mobile menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--color-primary);
}

/* ===== HERO BANNER ===== */
.hero {
  background: linear-gradient(135deg, rgba(245, 247, 250, 0.98) 0%, rgba(195, 207, 226, 0.3) 100%), var(--gradient-teal-135);
  color: var(--color-primary);
  padding: 60px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-character {
  flex-shrink: 0;
}

.hero-character-img {
  max-height: 320px;
  width: auto;
  object-fit: contain;
}

.hero-content {
  text-align: left;
}

.hero-logo {
  max-height: 80px;
  width: auto;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 2.25rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.hero-slogan {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-teal);
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--color-text-light);
  max-width: 480px;
  line-height: 1.6;
}

/* ===== STATS ===== */
.stats {
  background: var(--color-white);
  padding: 48px 24px;
  margin-top: -40px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  margin-top: -40px;
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  justify-items: center;
  text-align: center;
}

.stat-item {
  padding: 16px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-teal);
  margin-bottom: 4px;
}

.stat-label {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 24px;
}

.section-title {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 48px;
  text-align: center;
}

/* ===== ECOSYSTEM ===== */
.ecosystem {
  background: var(--color-white);
}

.ecosystem-diagram {
  margin: 0 auto 48px;
  position: relative;
  width: min(900px, 90vw, 70vh);
  height: min(900px, 90vw, 70vh);
  max-width: 100%;
}

.ecosystem-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20%;
  height: 20%;
  min-width: 100px;
  min-height: 100px;
  max-width: 240px;
  max-height: 240px;
  background: var(--gradient-teal-135);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  z-index: 5;
}

.ecosystem-items {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}

.ecosystem-item {
    border: 3px solid var(--color-accent);
    position: absolute;
    left: 50%;
    top: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 25%;
    aspect-ratio: 1 / 1;
    text-align: center;
    text-decoration: none;
    color: #222;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    transition: transform .3s, box-shadow .3s;
    transform:
            rotate(calc(var(--i) * 45deg - 90deg))
            translate(220px)
            rotate(calc(var(--i) * -45deg + 90deg))
            translate(-50%, -50%);
}

.ecosystem-item:hover {
    transform: rotate(calc(var(--i) * 45deg - 90deg)) translate(232px) rotate(calc(var(--i) * -45deg + 90deg)) translate(-50%, -50%) scale(1.1);
  background: var(--color-teal);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.ecosystem-item-icon {
  font-size: 20px;
  margin-bottom: 4px;
}

/* Directions grid fallback */
.directions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.direction-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
  border-top: 4px solid var(--color-teal);
}

.direction-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.direction-card-icon {
  width: 56px;
  height: 56px;
  background: rgba(78, 205, 196, 0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
}

.direction-card-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.direction-card-desc {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ===== EVENTS CAROUSEL ===== */
.events-section {
  background: var(--color-bg);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.event-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
}

.event-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.event-card-image {
  height: 180px;
  background: var(--gradient-teal-135);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 48px;
    overflow: hidden;
}

.event-card-body {
  padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.event-date {
  color: var(--color-teal);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.event-card-title {
  font-size: 1.125rem;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.event-card-desc {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ===== NEWS ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.news-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
}

.news-card:hover {
  box-shadow: var(--shadow-md);
}

.news-card-image {
  height: 160px;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-teal);
  font-size: 40px;
}

.news-card-body {
  padding: 20px;
}

.news-card-date {
  color: var(--color-text-light);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.news-card-title {
  font-size: 1.1rem;
  color: var(--color-primary);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 64px 24px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto 48px;
}

.footer-title {
  font-size: 1rem;
  margin-bottom: 16px;
  opacity: 0.9;
}

.footer-links {
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  display: block;
  margin-bottom: 8px;
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 24px;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.85;
}

.footer-legal {
  margin-top: 16px;
  font-size: 0.85rem;
  opacity: 0.75;
}

/* ===== PAGE HEADER ===== */
.page-header {
/*  background: var(--gradient-teal-135);*/
  background: url(../images/section-bg.jpg) no-repeat center / cover;
  color: var(--color-white);
  padding: 60px 24px;
  text-align: center;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.page-header p {
  opacity: 0.95;
}

/* ===== CARDS & FORMS ===== */
.card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.card a {
  font-weight: 600;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--color-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-teal);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.checkbox-group input {
  width: auto;
  margin-top: 4px;
}

/* ===== PARTNERS PAGE ===== */
.partners-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
}

.partners-subnav a {
  padding: 10px 20px;
  background: var(--color-white);
  border-radius: var(--radius);
  font-weight: 500;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.partners-subnav a:hover,
.partners-subnav a.active {
  background: var(--color-teal);
  color: var(--color-white);
}

.partner-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.partner-benefit-card {
  background: var(--color-white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-teal);
}

/* ===== ABOUT PAGE ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
}

.team-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.team-card-photo {
  height: 200px;
  background: var(--gradient-teal-135);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 64px;
    overflow: hidden;
}

.team-card-body {
  padding: 24px;
}

.team-card-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.team-card-role {
  color: var(--color-secondary);
  font-size: 0.9rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.team-card-bio {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* ===== CALENDAR ===== */
.calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.events-list-item {
  background: var(--color-white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.events-list-date {
  min-width: 80px;
  text-align: center;
  color: var(--color-teal);
  font-weight: 700;
}

/* Персонаж на страницах */
.section-with-character {
  position: relative;
}

.page-character {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 180px;
  z-index: 1;
}

.page-character-img {
  max-width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav {
    display: none;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .section {
    padding: 48px 24px;
  }

  .ecosystem-item{
      font-size: 12px;
      width: 30%;
      transform: rotate(calc(var(--i) * 45deg - 90deg)) translate(140px) rotate(calc(var(--i) * -45deg + 90deg)) translate(-50%, -50%);
  }

  .ecosystem-center{
      top: 50%;
  }

  .hero-inner {
    flex-direction: column;
  }

  .hero-character-img {
    max-height: 220px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .page-character {
    display: none;
  }
}

/*header,*/
body,

footer,
main {
  overflow-x: hidden;
}

@media (max-width: 640px) {
  .events-grid,
  .news-grid {
    display: block;
  }
  .events-grid > *,
  .news-grid > * {
    display: block;
    margin-bottom: 20px;
  }
}

@media (max-width: 769px) {
  #vk_groups {
    display: none;
  }
}
@media (min-width: 769px) {
  #vk_groups2 {
    display: none;
  }
}
#vk_groups,
#vk_groups2 {
  margin: 0 auto;
}



a[href="../projects.php"],
a[href="projects.php"] {
  display: none !important;
}

.site-map-section ul {
  padding-left: 20px;
}
.site-map-section li {
  list-style-type: disc;
}
.site-map-section a {
  color: var(--color-primary);
  font-weight: 600;
}