:root {
  /* Основная цветовая палитра (нейтральная с акцентами) */
  --primary: #2b2d42;
  --primary-dark: #1a1b2e;
  --secondary: #8d99ae;
  --accent: #6c63ff;
  --accent-dark: #5a52d5;
  --light: #edf2f4;
  --dark: #2b2d42;
  --text-light: #ffffff;
  --text-dark: #2b2d42;
  --text-muted: #8d99ae;
  --border-color: rgba(141, 153, 174, 0.2);
  --card-bg: #1a1b2e;
  --card-bg-hover: #252638;
  --gradient-primary: linear-gradient(135deg, #2b2d42 0%, #1a1b2e 100%);
  --gradient-accent: linear-gradient(135deg, #6c63ff 0%, #5a52d5 100%);
  --overlay-dark: rgba(0, 0, 0, 0.7);
  --overlay-light: rgba(43, 45, 66, 0.85);
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.3);
  --transition-fast: 0.2s ease-in-out;
  --transition-medium: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
  
  /* 3D эффекты */
  --depth-1: 0 2px 10px rgba(0, 0, 0, 0.1);
  --depth-2: 0 5px 15px rgba(0, 0, 0, 0.15);
  --depth-3: 0 10px 25px rgba(0, 0, 0, 0.2);
  --transform-1: translateY(-5px);
  --transform-2: translateY(-10px);
  --transform-3: translateY(-15px);
}

/* Общие стили */
body {
  font-family: 'IBM Plex Sans', sans-serif;
  color: var(--text-light);
  background-color: var(--primary);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
}

p {
  line-height: 1.7;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

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

/* Анимации */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s, transform 0.8s;
}

.animate-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

/* Кнопки */
.btn {
  position: relative;
  overflow: hidden;
  transition: all var(--transition-medium);
  font-weight: 500;
  border-radius: 6px;
  padding: 0.6rem 1.5rem;
  border: none;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: width var(--transition-medium);
  z-index: -1;
}

.btn:hover::before {
  width: 100%;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: var(--text-light);
}

.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

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

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

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

.btn-outline-primary:hover {
  background: rgba(108, 99, 255, 0.1);
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.2);
}

/* Навигация */
.header {
  background: var(--primary-dark);
  padding: 15px 0;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-medium);
  z-index: 1000;
}

.header.scrolled {
  padding: 10px 0;
  background: rgba(26, 27, 46, 0.95);
  backdrop-filter: blur(10px);
}

.navbar-brand {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--accent);
}

.navbar-brand:hover {
  color: var(--accent);
  transform: scale(1.02);
}

.navbar-nav .nav-link {
  color: var(--text-light);
  margin: 0 0.5rem;
  position: relative;
  padding: 0.5rem 0;
  font-weight: 500;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-medium);
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--text-light);
  overflow: hidden;
}

.hero-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(26, 27, 46, 0.9), rgba(26, 27, 46, 0.7));
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  animation: fadeIn 1s ease-out;
}

.hero-section p.lead {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  animation: fadeIn 1s ease-out 0.3s backwards;
}

.hero-section .btn {
  margin-right: 1rem;
  animation: fadeIn 1s ease-out 0.6s backwards;
}

/* Vision Section */
.vision-section {
  position: relative;
  background-color: var(--primary);
  padding: 5rem 0;
}

.vision-content h3 {
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.vision-image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform var(--transition-medium);
}

.vision-image:hover {
  transform: perspective(1000px) rotateY(0);
}

.vision-image img {
  width: 100%;
  height: auto;
  transition: transform var(--transition-slow);
}

.vision-image:hover img {
  transform: scale(1.05);
}

.info-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  box-shadow: var(--depth-1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.info-card:hover {
  transform: var(--transform-1);
  box-shadow: var(--depth-3);
  background: var(--card-bg-hover);
}

.card-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.card-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.info-card h4 {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.info-card p {
  color: var(--text-muted);
}

.stat-widget {
  margin-top: 3rem;
}

.stat-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-medium);
  height: 100%;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-description {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Events Section */
.events-section {
  background-color: var(--primary-dark);
  padding: 5rem 0;
  position: relative;
}

.event-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  transition: transform var(--transition-medium);
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--depth-3);
}

.event-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.event-card:hover .event-image img {
  transform: scale(1.1);
}

.event-date {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent);
  color: var(--text-light);
  padding: 0.8rem;
  border-radius: 5px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.event-date .day {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.event-date .month {
  display: block;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.event-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.event-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.event-meta {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.event-content p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  flex-grow: 1;
}

.event-content .btn {
  align-self: flex-start;
}

.timeline-container {
  margin-top: 4rem;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--accent);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.timeline-content {
  width: 45%;
  background: var(--card-bg-hover);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-medium);
  margin-left: 3rem;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 0;
  margin-right: 3rem;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.timeline-content h4 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Sustainability Section */
.sustainability-section {
  background-color: var(--primary);
  padding: 5rem 0;
}

.sustainability-image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(5deg);
  transition: transform var(--transition-medium);
}

.sustainability-image:hover {
  transform: perspective(1000px) rotateY(0);
}

.sustainability-image img {
  width: 100%;
  height: auto;
  transition: transform var(--transition-slow);
}

.sustainability-image:hover img {
  transform: scale(1.05);
}

.sustainability-content h3 {
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.sustainability-stats {
  margin-top: 2rem;
}

.stat-mini-card {
  background: var(--card-bg);
  padding: 1.2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-medium);
}

.stat-mini-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.stat-mini-card h5 {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-mini-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.sustainability-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  transition: transform var(--transition-medium);
  display: flex;
  flex-direction: column;
}

.sustainability-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--depth-3);
}

.sustainability-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.sustainability-card:hover img {
  transform: scale(1.1);
}

.sustainability-card .card-body {
  padding: 1.5rem;
  flex-grow: 1;
}

.sustainability-card h4 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.sustainability-card p {
  color: var(--text-muted);
}

/* Resources Section */
.resources-section {
  background-color: var(--primary-dark);
  padding: 5rem 0;
}

.resource-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium);
  display: flex;
  flex-direction: column;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--depth-3);
}

.resource-card h4 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.resource-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.resource-card .btn {
  align-self: flex-start;
}

/* Media Section */
.media-section {
  background-color: var(--primary);
  padding: 5rem 0;
}

.featured-article {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 100%;
}

.article-image {
  position: relative;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: auto;
  transition: transform var(--transition-slow);
}

.featured-article:hover .article-image img {
  transform: scale(1.05);
}

.article-content {
  padding: 2rem;
}

.article-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.media-sidebar {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  box-shadow: var(--shadow-md);
}

.media-item {
  display: flex;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  transition: transform var(--transition-medium);
}

.media-item:last-child {
  border-bottom: none;
}

.media-item:hover {
  transform: translateX(5px);
}

.media-thumb {
  flex-shrink: 0;
  width: 100px;
  height: 70px;
  margin-right: 1rem;
  border-radius: 5px;
  overflow: hidden;
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.media-item:hover .media-thumb img {
  transform: scale(1.1);
}

.media-info {
  flex-grow: 1;
}

.media-info h5 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-section {
  background-color: var(--primary-dark);
  padding: 5rem 0;
}

.contact-info {
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  height: 100%;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--accent);
  margin-right: 1rem;
  flex-shrink: 0;
}

.contact-text h5 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.contact-text p {
  color: var(--text-muted);
  margin-bottom: 0;
}

.contact-form-container {
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  height: 100%;
}

.contact-form label {
  color: var(--text-light);
  margin-bottom: 0.5rem;
  display: block;
}

.contact-form .form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-light);
  border-radius: 6px;
  padding: 0.7rem 1rem;
  transition: all var(--transition-medium);
}

.contact-form .form-control:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  box-shadow: 0 0 0 0.25rem rgba(108, 99, 255, 0.25);
}

.contact-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.contact-form .form-check-label {
  color: var(--text-muted);
}

.contact-form .form-check-input {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--border-color);
}

.contact-form .form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

/* Footer */
.footer-section {
  background-color: var(--primary-dark);
  padding-top: 4rem;
  border-top: 1px solid var(--border-color);
}

.footer-brand h3 {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.social-links {
  margin-top: 1.5rem;
}

.social-links a {
  color: var(--text-muted);
  margin-right: 0.5rem;
  text-decoration: none;
  transition: color var(--transition-medium);
}

.social-links a:hover {
  color: var(--accent);
}

.footer-section h5 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-medium), transform var(--transition-medium);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateX(5px);
}

.footer-section address p {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.copyright {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 1rem;
  transition: color var(--transition-medium);
}

.footer-legal a:hover {
  color: var(--accent);
}

/* Cookie Consent */
.cookie-consent {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(26, 27, 46, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  z-index: 9999;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.cookie-content p {
  margin: 0 1rem 0 0;
  color: var(--text-light);
}

.cookie-btn {
  background: var(--accent);
  color: var(--text-light);
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background var(--transition-medium);
}

.cookie-btn:hover {
  background: var(--accent-dark);
}

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.success-container {
  max-width: 600px;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 1s ease-out;
}

.success-icon {
  font-size: 5rem;
  color: var(--accent);
  margin-bottom: 2rem;
}

.success-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.success-message {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* About, Terms, Privacy Pages */
.page-content {
  padding-top: 100px;
  padding-bottom: 5rem;
}

.page-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--accent);
}

.page-content-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-section h1 {
    font-size: 2.8rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .timeline::before {
    left: 30px;
  }
  
  .timeline-dot {
    left: 30px;
  }
  
  .timeline-content {
    width: 85%;
    margin-left: 60px !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 768px) {
  .hero-section {
    text-align: center;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .vision-image, 
  .sustainability-image {
    margin-top: 2rem;
    transform: none !important;
  }
  
  .cookie-content {
    flex-direction: column;
  }
  
  .cookie-content p {
    margin-bottom: 1rem;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section p.lead {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .event-image {
    height: 200px;
  }
  
  .contact-form-container,
  .contact-info {
    padding: 1.5rem;
  }
  
  .timeline-content {
    width: 80%;
    padding: 1rem;
  }
}