:root {
  /* Аналоговая цветовая схема */
  --primary-color: #2e6ba4; /* Основной синий */
  --primary-dark: #1c5489; /* Темный синий */
  --primary-light: #4d89c1; /* Светлый синий */
  --secondary-color: #2e9ca4; /* Бирюзовый */
  --secondary-dark: #1c7f87; /* Темный бирюзовый */
  --secondary-light: #4fb6be; /* Светлый бирюзовый */
  --accent-color: #2ea469; /* Зеленый акцент */
  --accent-dark: #1c8750; /* Темный зеленый */
  --accent-light: #4dbe84; /* Светлый зеленый */
  
  /* Нейтральные цвета */
  --text-dark: #222222;
  --text-medium: #333333;
  --text-light: #666666;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
  
  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  
  /* Тени */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  
  /* Переходы */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Базовые стили */
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-medium);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  padding-top: 80px; /* Для фиксированного хедера */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

p {
  margin-bottom: 1.5rem;
}

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

.container {
  position: relative;
  z-index: 1;
}

/* Утилиты */
.title-underline {
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
  margin-bottom: 2rem;
}

.bg-light {
  background-color: var(--bg-light) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

.shadow-md {
  box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

/* Анимации появления элементов */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-medium), transform var(--transition-bounce);
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

/* Кнопки */
.btn {
  font-weight: 500;
  padding: 0.625rem 1.5rem;
  border-radius: 50px;
  transition: all var(--transition-bounce);
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: var(--shadow-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(-1px);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

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

.btn-outline-light:hover {
  color: var(--primary-color);
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.375rem 1rem;
  font-size: 0.85rem;
}

/* Форма */
.form-control, .form-select {
  border-radius: 8px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 0.25rem rgba(46, 107, 164, 0.25);
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

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

/* Хедер и навигация */
header {
  transition: background-color var(--transition-medium), box-shadow var(--transition-medium);
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: var(--shadow-md);
}

.navbar {
  padding: 1rem 0;
}

.navbar-brand img {
  height: 40px;
  transition: height var(--transition-medium);
}

header.scrolled .navbar-brand img {
  height: 35px;
}

.navbar-nav .nav-link {
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.5rem 1rem;
  position: relative;
  transition: color var(--transition-fast);
}

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

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

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

.navbar-toggler {
  border: none;
  padding: 0;
}

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

/* Hero Section */
#hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: white;
  padding: 100px 0;
}

#hero h1 {
  color: white;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#hero p {
  color: white;
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.parallax-decoration {
  bottom: -50px;
  right: 5%;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

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

/* Mission Section */
#mission {
  position: relative;
  overflow: hidden;
}

.mission-accent {
  width: 200px;
  height: 200px;
  background: var(--gradient-secondary);
  border-radius: 50%;
  opacity: 0.1;
  bottom: -100px;
  left: -100px;
  z-index: -1;
}

.mission-stats {
  transition: transform var(--transition-bounce);
}

.mission-stats:hover {
  transform: translateY(-5px);
}

/* Projects Section */
.custom-slider {
  position: relative;
}

.slider-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.project-slider .card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: transform var(--transition-bounce), box-shadow var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-slider .card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.project-slider .card-image {
  overflow: hidden;
  height: 250px;
  width: 100%;
}

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

.project-slider .card:hover .card-image img {
  transform: scale(1.05);
}

.project-slider .card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-slider .card-body h3 {
  margin-bottom: 1rem;
}

.project-slider .badge {
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
}

/* Portfolio Section */
.portfolio-item {
  border-radius: 12px;
  height: 100%;
  overflow: hidden;
}

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

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.8));
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-content {
  transform: translateY(20px);
  opacity: 0;
  transition: transform var(--transition-bounce), opacity var(--transition-medium);
}

.portfolio-item:hover .portfolio-content {
  transform: translateY(0);
  opacity: 1;
}

/* Insights Section */
.insight-card {
  transition: transform var(--transition-bounce), box-shadow var(--transition-medium);
  height: 100%;
}

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

.insight-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.insight-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* History Section */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--gradient-primary);
  transform: translateX(-50%);
}

.timeline-item-left, .timeline-item-right {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item-left::after, .timeline-item-right::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  top: 20px;
}

.timeline-item-left::after {
  right: -10px;
}

.timeline-item-right::after {
  left: -10px;
}

.timeline-date {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Resources Section */
.resource-card {
  transition: transform var(--transition-bounce), box-shadow var(--transition-medium);
  height: 100%;
}

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

.resource-icon {
  margin-bottom: 1.5rem;
}

.resource-card ul {
  margin-top: 1rem;
}

.resource-card a {
  transition: color var(--transition-fast);
  display: inline-block;
  position: relative;
}

.resource-card a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-medium);
}

.resource-card a:hover::after {
  width: 100%;
}

/* Partners Section */
.partner-logo {
  transition: transform var(--transition-bounce);
  height: 100%;
}

.partner-logo:hover {
  transform: translateY(-5px);
}

.partner-name {
  font-weight: 500;
  color: var(--text-dark);
}

/* Community Section */
.community-card {
  transition: transform var(--transition-bounce), box-shadow var(--transition-medium);
  height: 100%;
}

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

.community-testimonial {
  transition: transform var(--transition-bounce), box-shadow var(--transition-medium);
  height: 100%;
}

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

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Webinars Section */
.webinar-card {
  border-radius: 12px;
  overflow: hidden;
  transition: transform var(--transition-bounce), box-shadow var(--transition-medium);
  background-color: white;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

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

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

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

.webinar-date {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.webinar-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.webinar-category {
  background: var(--gradient-primary);
  color: white;
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-weight: 500;
}

.webinar-info {
  margin-top: auto;
}

.webinar-info i {
  margin-right: 5px;
}

/* Contact Section */
.contact-info {
  background-color: white;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.contact-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
}

.contact-form {
  border-radius: 12px;
  overflow: hidden;
}

.map-container {
  height: 400px;
  overflow: hidden;
}

.map-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Footer */
footer {
  background-color: #1a1a1a;
  color: white;
  position: relative;
  overflow: hidden;
}

footer h4, footer h5 {
  color: white;
  margin-bottom: 1.5rem;
}

footer p {
  color: #cccccc;
}

footer a {
  color: #cccccc;
  transition: color var(--transition-fast);
}

footer a:hover {
  color: white;
}

.social-links a {
  display: inline-block;
  margin-right: 1rem;
  transition: transform var(--transition-bounce), color var(--transition-fast);
}

.social-links a:hover {
  transform: translateY(-3px);
}

footer .input-group {
  border-radius: 50px;
  overflow: hidden;
}

footer .input-group .form-control {
  border-top-left-radius: 50px;
  border-bottom-left-radius: 50px;
  border: none;
}

footer .input-group .btn {
  border-top-right-radius: 50px;
  border-bottom-right-radius: 50px;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

/* Modal */
.modal-content {
  border-radius: 12px;
  overflow: hidden;
  border: none;
}

.modal-header {
  background-color: var(--primary-color);
  color: white;
  border-bottom: none;
}

.modal-title {
  color: white;
}

.modal-footer {
  border-top: none;
}

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--bg-light);
}

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

.success-content {
  max-width: 600px;
  background-color: white;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

/* Privacy & Terms Pages */
.page-content {
  padding-top: 100px;
  padding-bottom: 100px;
}

.page-header {
  margin-bottom: 3rem;
}

/* Cookie Consent */
#cookieConsentPopup {
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

#acceptCookies {
  border-radius: 50px;
  padding: 0.5rem 2rem;
  font-weight: 500;
}

/* Медиа-запросы */
@media (max-width: 992px) {
  body {
    padding-top: 70px;
  }
  
  .navbar-brand img {
    height: 35px;
  }
  
  #hero h1 {
    font-size: 2.5rem;
  }
  
  .timeline-line {
    left: 20px;
  }
  
  .timeline-item-left::after,
  .timeline-item-right::after {
    left: 10px;
  }
  
  .timeline-item-right {
    padding-left: 40px;
  }
  
  .timeline-item-left {
    padding-left: 40px;
  }
}

@media (max-width: 768px) {
  #hero h1 {
    font-size: 2rem;
  }
  
  #hero p {
    font-size: 1rem;
  }
  
  .project-slider .card-image {
    height: 200px;
  }
  
  .partner-logo {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 576px) {
  .btn {
    padding: 0.5rem 1.25rem;
  }
  
  .btn-lg {
    padding: 0.625rem 1.5rem;
  }
}

/* Анимации и эффекты */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: inherit;
  transform: translateX(-100%);
  transition: transform var(--transition-medium);
  z-index: -1;
}

.btn:hover::before {
  transform: translateX(0);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate__fadeInUp {
  animation: fadeInUp 1s both;
}

.animate__delay-1s {
  animation-delay: 0.3s;
}

.animate__delay-2s {
  animation-delay: 0.6s;
}

/* Параллакс эффекты */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Асимметричный баланс */
.asymmetric-box {
  position: relative;
}

.asymmetric-box::before {
  content: '';
  position: absolute;
  width: 60%;
  height: 70%;
  background: var(--gradient-accent);
  opacity: 0.1;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  z-index: -1;
  animation: morphing 15s infinite;
}

@keyframes morphing {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  25% {
    border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
  }
  50% {
    border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
  }
  75% {
    border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
  }
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
}

/* Read More Links */
.read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 500;
  position: relative;
  padding-right: 20px;
}

.read-more::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: right var(--transition-medium);
}

.read-more:hover {
  color: var(--primary-dark);
}

.read-more:hover::after {
  right: -5px;
}

/* Card Styles */
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: transform var(--transition-bounce), box-shadow var(--transition-medium);
}

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

.card-image {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

.card-content, .card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

/* Image Container */
.image-container {
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

/* Дополнительные стили для страниц Privacy и Terms */
.about-page, .privacy-page, .terms-page, .contacts-page {
  padding-top: 100px;
}

/* Success Page */
.success-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: var(--bg-light);
}

.success-container {
  text-align: center;
  max-width: 600px;
  background-color: white;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

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

/* Фоновые изображения */
[style*="background-image"] {
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}