:root {
  /* Ретро палитра с биоморфными оттенками */
  --primary: #5D89BA;
  --primary-dark: #456a9c;
  --primary-light: #7ea5d0;
  --secondary: #64C4A0;
  --secondary-dark: #4a9e7e;
  --secondary-light: #8fd9bc;
  --accent: #F5A95C;
  --accent-dark: #e28c3e;
  --accent-light: #fbc589;
  --dark: #333840;
  --light: #f8f9fa;
  --mid: #6c757d;
  --success: #28a745;
  --danger: #dc3545;
  --warning: #ffc107;
  --info: #17a2b8;
  
  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-light));
  --gradient-secondary: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  --gradient-accent: linear-gradient(135deg, var(--accent), var(--accent-light));
  
  /* Тени */
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  
  /* Переходы */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
  
  /* Рамки */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-full: 50%;
  
  /* Размеры текста */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;
  --font-size-4xl: 3rem;
  
  /* Шрифты */
  --font-heading: 'Inter', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  
  /* Другие переменные */
  --header-height: 80px;
  --content-max-width: 1200px;
}

/* Основные стили */
body {
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--light);
  padding-top: var(--header-height);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

p {
  margin-bottom: 1.2rem;
}

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

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

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

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

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.overlay.dark {
  background-color: rgba(0, 0, 0, 0.7);
}

.overlay.light {
  background-color: rgba(255, 255, 255, 0.7);
}

/* Кнопки */
.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  font-size: var(--font-size-md);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: -100%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
  transition: all 0.8s ease;
  z-index: 1;
}

.btn:hover::after {
  left: 100%;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  color: white;
  background: var(--gradient-secondary);
  border: none;
}

.btn-secondary:hover {
  background: var(--secondary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  color: white;
  background: var(--gradient-accent);
  border: none;
}

.btn-accent:hover {
  background: var(--accent-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-light {
  color: white;
  background: transparent;
  border: 2px solid white;
}

.btn-outline-light:hover {
  color: var(--dark);
  background: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: var(--font-size-lg);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--font-size-sm);
}

/* Navbar */
.navbar {
  transition: all var(--transition-fast);
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
  background: #5D89BA;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--font-size-lg);
}

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

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

.navbar-nav .nav-link:hover::after {
  width: 80%;
  left: 10%;
}

.bg-primary {
  background: var(--gradient-primary) !important;
}

/* Hero Section */
.hero-section {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
}

.hero-section h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease;
}

.hero-section p {
  font-size: clamp(1rem, 3vw, 1.25rem);
  margin-bottom: 2rem;
  animation: fadeInUp 1.2s ease;
}

.hero-section .btn {
  animation: fadeInUp 1.4s ease;
}

/* About Section */
#about .image-container {
  position: relative;
  box-shadow: var(--shadow-md);
  transform: perspective(1000px) rotateY(3deg);
  transition: transform var(--transition-medium);
  overflow: hidden;
}

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

#about .image-container img {
  transition: transform var(--transition-medium);
}

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

/* Case Studies */
.card {
  border: none;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: white;
}

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

.card-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

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

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

.card-body {
  padding: 2rem;
  text-align: center;
}

.card-body h3 {
  font-size: var(--font-size-xl);
  margin-bottom: 1rem;
}

/* Statistics Section */
#statistics {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.stat-item {
  padding: 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast);
}

.stat-item:hover {
  transform: translateY(-10px);
}

.stat-number {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Resources Section */
#resources .card {
  height: 100%;
  text-align: left;
}

#resources .card-body h3 a {
  color: var(--dark);
  transition: color var(--transition-fast);
}

#resources .card-body h3 a:hover {
  color: var(--primary);
  text-decoration: none;
}

/* Webinars Section */
#webinars .card {
  height: 100%;
}

#webinars .card-image {
  height: 200px;
}

.webinar-date {
  font-size: var(--font-size-sm);
  font-weight: 600;
}

/* Events Calendar */
.event-date {
  min-width: 60px;
}

.event-month {
  font-weight: 600;
  border-top-left-radius: var(--border-radius-sm);
  border-top-right-radius: var(--border-radius-sm);
}

.event-day {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  line-height: 1;
  padding: 0.5rem 0;
  border: 1px solid var(--primary);
  border-bottom-left-radius: var(--border-radius-sm);
  border-bottom-right-radius: var(--border-radius-sm);
}

.event-details strong {
  color: var(--primary);
}

/* Behind the Scenes */
.process-number {
  width: 40px;
  height: 40px;
  min-width: 40px;
  font-weight: 600;
}

/* Innovation Section */
#innovation {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.innovation-card {
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border-radius: var(--border-radius-md);
  transition: transform var(--transition-fast);
}

.innovation-card:hover {
  transform: translateY(-10px);
}

.innovation-icon img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: var(--shadow-md);
}

/* Contact Section */
#contact .contact-info ul li {
  margin-bottom: 1.5rem;
}

#contact .contact-info ul li strong {
  color: var(--primary);
}

.map-container {
  height: 300px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

.contact-form {
  height: 100%;
}

.form-control {
  padding: 0.75rem 1rem;
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(93, 137, 186, 0.25);
}

/* Footer */
footer {
  position: relative;
  background-color: var(--dark);
}

footer h3 {
  position: relative;
  display: inline-block;
}

footer h3::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  bottom: -10px;
  left: 0;
  background: var(--primary);
  border-radius: var(--border-radius-full);
}

footer ul li a {
  transition: all var(--transition-fast);
}

footer ul li a:hover {
  color: var(--primary-light) !important;
  text-decoration: none;
  padding-left: 5px;
}

.social-links ul li {
  transition: transform var(--transition-fast);
}

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

.social-links a {
  transition: color var(--transition-fast);
}

.social-links a:hover {
  color: var(--primary-light) !important;
  text-decoration: none;
}

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

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

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

/* Privacy & Terms Pages */
.privacy-page, .terms-page {
  padding-top: 100px;
  padding-bottom: 3rem;
}

.privacy-content, .terms-content {
  background-color: white;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  padding: 3rem;
}

/* Биоморфные анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Медиа-запросы */
@media (max-width: 991.98px) {
  .navbar-nav {
    padding: 1rem 0;
  }
  
  .navbar-nav .nav-link::after {
    background: var(--primary);
  }
  
  .hero-section {
    padding: 5rem 0;
  }
  
  .hero-section h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  
  .innovation-card {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .stat-item {
    margin-bottom: 1.5rem;
  }
  
  .event-date {
    margin-bottom: 1rem;
  }
  
  .process-steps {
    margin-bottom: 2rem;
  }
  
  .contact-info {
    margin-bottom: 2rem;
  }
}

/* Дополнительные стили для контактной страницы */
.contacts-page {
  padding-top: 100px;
  padding-bottom: 3rem;
}

.team-member {
  background-color: white;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.team-member-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

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

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

.team-member-info {
  padding: 1.5rem;
  text-align: center;
}

.team-member-name {
  font-size: var(--font-size-xl);
  margin-bottom: 0.5rem;
}

.team-member-position {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.social-media-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

/* Анимации для элементов */
.animated-element {
  opacity: 0;
  transform: translateY(20px);
}

.fade-in {
  animation: fadeInUp 1s ease forwards;
}

/* Свойства для страницы About */
.about-page {
  padding-top: 100px;
  padding-bottom: 3rem;
}

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

.timeline::before {
  content: '';
  position: absolute;
  width: 3px;
  background-color: var(--primary-light);
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: var(--border-radius-full);
}

.timeline-item {
  padding: 1rem 0;
  position: relative;
}

.timeline-content {
  position: relative;
  width: 45%;
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
}

.timeline-content::after {
  content: '';
  position: absolute;
  top: 20px;
  width: 20px;
  height: 20px;
  background-color: white;
  transform: rotate(45deg);
}

.timeline-item:nth-child(odd) .timeline-content {
  float: left;
}

.timeline-item:nth-child(odd) .timeline-content::after {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-content {
  float: right;
}

.timeline-item:nth-child(even) .timeline-content::after {
  left: -10px;
}

.timeline-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--primary);
  border-radius: 50%;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-year {
  position: absolute;
  top: 20px;
  transform: translateY(-50%);
  font-weight: bold;
  color: var(--primary);
}

.timeline-item:nth-child(odd) .timeline-year {
  right: 54%;
}

.timeline-item:nth-child(even) .timeline-year {
  left: 54%;
}

/* Cookie Consent */
#cookieConsent {
  border-top-left-radius: var(--border-radius-md);
  border-top-right-radius: var(--border-radius-md);
}

#acceptCookies {
  transition: all var(--transition-fast);
}

#acceptCookies:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

/* Отдельный класс для секций с фоновым изображением */
.bg-image-section {
  position: relative;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  padding: 5rem 0;
  color: white;
}

/* Нестандартные эффекты */
.blob-bg {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 43% 57% 63% 37% / 43% 37% 63% 57%;
  background: rgba(93, 137, 186, 0.1);
  filter: blur(30px);
  animation: blob-animation 15s infinite alternate;
  z-index: -1;
}

@keyframes blob-animation {
  0% {
    border-radius: 43% 57% 63% 37% / 43% 37% 63% 57%;
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    border-radius: 53% 47% 43% 57% / 53% 47% 43% 57%;
  }
  50% {
    border-radius: 37% 63% 57% 43% / 37% 63% 57% 43%;
    transform: translate(20px, 20px) rotate(180deg);
  }
  75% {
    border-radius: 47% 53% 37% 63% / 47% 53% 37% 63%;
  }
  100% {
    border-radius: 63% 37% 47% 53% / 63% 37% 47% 53%;
    transform: translate(-20px, 10px) rotate(360deg);
  }
}

/* Детали для 404 страницы */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

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

.error-code {
  font-size: 8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1;
}

/* Стили для всплывающих сообщений */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: white;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  max-width: 300px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(100px);
  transition: all var(--transition-fast);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.toast-body {
  padding-top: 0.5rem;
}

/* Кастомные скроллбары */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background-color: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background-color: var(--primary);
  border-radius: var(--border-radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--primary-dark);
}