:root {
  /* Цветовая палитра (пастельная) */
  --primary-color: #6c5ce7;
  --primary-dark: #5649c0;
  --secondary-color: #a29bfe;
  --accent-color: #fd79a8;
  --accent-dark: #e06694;
  --text-dark: #333333;
  --text-light: #ffffff;
  --text-muted: #6c757d;
  --bg-light: #f8f9fa;
  --bg-dark: #222222;
  
  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  
  /* Гласморфизм */
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: rgba(0, 0, 0, 0.1);
  --blur-effect: 10px;
}

/* Базовые стили */
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
  background-color: var(--bg-light);
  line-height: 1.6;
}

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

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
  position: relative;
  margin-bottom: 2.5rem;
}

h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

html {
  overflow-x: hidden;
}

h3 {
  font-size: 1.75rem;
}

section {
  position: relative;
  padding: 80px 0;
}

section:nth-child(odd) {
  background-color: #f8f9fa;
}

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

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

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

/* Кнопки */
.btn {
  position: relative;
  overflow: hidden;
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  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: all 0.3s ease;
  z-index: -1;
}

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

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.6);
  transform: translateY(-3px);
  color: var(--text-light);
}

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

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  transform: translateY(-3px);
}

.btn-lg {
  padding: 14px 36px;
  font-size: 1rem;
}

/* Эффект гласморфизма */
.glassmorphism {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-effect));
  -webkit-backdrop-filter: blur(var(--blur-effect));
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  box-shadow: 0 8px 32px 0 var(--glass-shadow);
  transition: all 0.3s ease;
}

.glassmorphism:hover {
  box-shadow: 0 12px 42px 0 rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.glassmorphism-header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(var(--blur-effect));
  -webkit-backdrop-filter: blur(var(--blur-effect));
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 15px 0;
  transition: all 0.3s ease;
  z-index: 1000;
}

/* Навигация */
.navbar {
  padding: 0;
}

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

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

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

.navbar-nav .nav-link:hover:after, 
.navbar-nav .nav-link.active:after {
  width: 70%;
}

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

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

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

.hero-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
}

.hero-section h1, .hero-section p {
  color: var(--text-light);
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Services Section */
.services-section .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.services-section .card-image {
  width: 100%;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
  height: 250px;
}

.services-section .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.services-section .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.animated-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  animation: pulse 2s infinite;
}

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

/* Instructors Section */
.instructors-section .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.instructors-section .card-image {
  width: 200px;
  height: 200px;
  overflow: hidden;
  border-radius: 50%;
  margin-top: 2rem;
}

.instructors-section .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.instructors-section .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

/* Resources Section */
.resources-section .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.resources-section .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.resources-section .card-content .btn {
  margin-top: auto;
}

/* Press Section */
.press-section .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.press-section .card-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
}

.press-section .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.press-section .card-content {
  flex: 1;
  padding: 1.5rem;
}

.press-section .badge {
  background: var(--gradient-primary);
  padding: 0.5rem 1rem;
  font-weight: 500;
}

/* Webinars Section */
.webinars-section .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.webinars-section .card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
}

.webinars-section .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.webinars-section .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.webinars-section .card-content .btn {
  margin-top: auto;
}

/* Sustainability Section */
.sustainability-section {
  position: relative;
}

.sustainability-content {
  padding: 2rem;
}

.check-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 0.8rem;
}

.check-list li:before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Community Section */
.community-section .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.community-section .card-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
}

.community-section .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.community-section .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

/* Awards Section */
.awards-section .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.awards-section .card-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
}

.awards-section .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.awards-section .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

/* Contact Section */
.contact-section {
  position: relative;
}

.contact-info, .contact-form {
  height: 100%;
}

.contact-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 2rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.contact-list li i {
  margin-right: 1rem;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.map-container {
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
}

.form-control, .form-select {
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 12px;
  transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
  box-shadow: 0 0 0 0.25rem rgba(108, 92, 231, 0.25);
  border-color: var(--primary-color);
  background-color: rgba(255, 255, 255, 0.95);
}

/* Footer */
.footer-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 60px 0 30px;
}

.footer-section h3, .footer-section h4 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.footer-nav {
  list-style: none;
  padding-left: 0;
}

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

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--text-light);
}

.social-links {
  display: flex;
  flex-direction: column;
}

.social-links a {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.8rem;
  transition: color 0.3s ease;
}

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

/* Modal */
.modal-content.glassmorphism {
  background: rgba(255, 255, 255, 0.95);
}

.modal-header {
  border-bottom: 1px solid var(--glass-border);
}

.modal-footer {
  border-top: 1px solid var(--glass-border);
}

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

.success-content {
  max-width: 600px;
  padding: 3rem;
}

.success-icon {
  font-size: 5rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-30px);
  }
  60% {
    transform: translateY(-15px);
  }
}

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

/* Анимация частиц */
@keyframes float-up {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

.particle {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  pointer-events: none;
  animation: float-up 5s linear infinite;
}

/* Биоморфные элементы */
.bio-shape {
  position: absolute;
  border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
  background: var(--gradient-primary);
  opacity: 0.1;
  z-index: -1;
}

.bio-shape-1 {
  top: 10%;
  left: 5%;
  width: 300px;
  height: 300px;
  animation: morph 10s linear infinite;
}

.bio-shape-2 {
  bottom: 10%;
  right: 5%;
  width: 250px;
  height: 250px;
  animation: morph 12s linear infinite reverse;
}

@keyframes morph {
  0% {
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
  }
  25% {
    border-radius: 35% 65% 31% 69% / 57% 59% 41% 43%;
  }
  50% {
    border-radius: 56% 44% 52% 48% / 35% 42% 58% 65%;
  }
  75% {
    border-radius: 28% 72% 37% 63% / 67% 32% 68% 33%;
  }
  100% {
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
  }
}

/* Responsive */
@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero-section {
    min-height: 600px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero-section {
    min-height: 500px;
  }
  
  .bio-shape {
    display: none;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .btn {
    padding: 10px 20px;
  }
  
  .btn-lg {
    padding: 12px 25px;
  }
}