:root {
  /* Основная цветовая палитра */
  --primary-color: #4e2fff;
  --primary-color-dark: #3921c3;
  --secondary-color: #ff2fb5;
  --secondary-color-dark: #d61a8e;
  --accent-color: #00eaff;
  --accent-color-dark: #00b8cc;
  
  /* Нейтральные цвета */
  --dark-color: #1a1a2e;
  --dark-color-light: #222240;
  --light-color: #f0f0ff;
  --light-color-dark: #e0e0f0;
  
  /* Текстовые цвета */
  --text-primary: #f8f9fa;
  --text-secondary: #212529;
  --text-muted: #6c757d;
  
  /* Специальные эффекты */
  --glow-effect: 0 0 10px rgba(78, 47, 255, 0.5), 0 0 20px rgba(0, 234, 255, 0.3);
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --neo-brutalism-shadow: 8px 8px 0px rgba(0, 0, 0, 0.8);
  
  /* Анимационные параметры */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  
  /* Размеры и отступы */
  --section-padding: 5rem 0;
  --container-padding: 2rem;
  --border-radius: 8px;
  --border-radius-large: 16px;
  --border-thick: 4px solid var(--primary-color);
}

/* Общие стили */
body {
  font-family: 'Lato', sans-serif;
  color: var(--text-secondary);
  background-color: var(--dark-color);
  overflow-x: hidden;
  line-height: 1.6;
}

body.dark-theme {
  --text-primary: #f8f9fa;
  --text-secondary: #e0e0f0;
  background-color: var(--dark-color);
  color: var(--text-primary);
}

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

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  color: var(--text-primary);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.25rem;
  text-align: center;
  margin-bottom: 3rem;
  opacity: 0.8;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

img {
  max-width: 100%;
  border-radius: var(--border-radius);
  transition: transform var(--transition-medium);
}

/* Кнопки и формы */
.btn, 
button, 
input[type="submit"] {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: white !important;
  border: none;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-medium);
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--neo-brutalism-shadow);
  position: relative;
  overflow: hidden;
}

.btn:hover, 
button:hover, 
input[type="submit"]:hover {
  background-color: var(--primary-color-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.btn:active, 
button:active, 
input[type="submit"]:active {
  transform: translateY(1px);
}

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

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

input, 
textarea, 
select {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

input:focus, 
textarea:focus, 
select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(0, 234, 255, 0.2);
}

/* Навигация */
header {
  background-color: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  z-index: 1000;
  transition: all var(--transition-medium);
}

header.scrolled {
  padding: 0.5rem 0;
  background-color: rgba(26, 26, 46, 0.98);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color) !important;
  letter-spacing: 1px;
}

.navbar-nav .nav-link {
  color: var(--text-primary) !important;
  padding: 0.5rem 1rem;
  position: relative;
  transition: all var(--transition-fast);
}

.navbar-nav .nav-link:hover {
  color: var(--accent-color) !important;
}

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

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

/* Hero секция */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text-primary);
  overflow: hidden;
}

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

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-form {
  background-color: rgba(34, 34, 64, 0.9);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-large);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--card-shadow);
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-form h3 {
  color: var(--text-primary);
  text-align: center;
}

.hero-image {
  animation: float 6s ease-in-out infinite;
  transform-style: preserve-3d;
  position: relative;
}

/* Статистика */
.stat-card {
  background-color: var(--dark-color-light);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--neo-brutalism-shadow);
  border: 2px solid var(--primary-color);
  transition: all var(--transition-medium);
  height: 100%;
}

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

.stat-value {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  font-family: 'Roboto', sans-serif;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.progress {
  height: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar {
  background-color: var(--secondary-color);
  transition: width 1.5s ease-in-out;
}

/* Методология */
.parallax-section {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: var(--section-padding);
  position: relative;
}

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

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 4px;
  background: var(--accent-color);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-left: 50px;
  margin-bottom: 2rem;
}

.timeline-marker {
  position: absolute;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--secondary-color);
  border: 4px solid var(--dark-color);
  box-shadow: 0 0 0 4px rgba(255, 47, 181, 0.3);
  z-index: 1;
}

.timeline-content {
  background-color: var(--dark-color-light);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--neo-brutalism-shadow);
  border-left: 4px solid var(--secondary-color);
}

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

/* Ресурсы */
.resource-card {
  background-color: var(--dark-color-light);
  border-radius: var(--border-radius);
  box-shadow: var(--neo-brutalism-shadow);
  transition: all var(--transition-medium);
  height: 100%;
  border: 2px solid var(--primary-color);
  overflow: hidden;
}

.resource-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.resource-card .card-title {
  color: var(--accent-color);
  font-size: 1.25rem;
}

.resource-card .card-text {
  color: var(--text-primary);
  opacity: 0.9;
}

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

/* Эксперты */
.instructor-card {
  background-color: var(--dark-color-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--neo-brutalism-shadow);
  transition: all var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.instructor-card .card-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
  position: relative;
}

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

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

.instructor-card .card-content {
  padding: 1.5rem;
  text-align: center;
}

.instructor-card h4 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.instructor-card .position {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-style: italic;
}

.instructor-card .description {
  color: var(--text-primary);
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

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

.social-link {
  color: var(--text-primary);
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.social-link:hover {
  color: var(--accent-color);
  transform: translateY(-3px);
}

/* Галерея */
.gallery-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.gallery-item .card {
  background-color: transparent;
  border: none;
  overflow: hidden;
}

.gallery-item .card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
}

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

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

.gallery-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition-medium);
}

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

.gallery-item .overlay h4 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  transform: translateY(20px);
  transition: transform var(--transition-medium);
}

.gallery-item .overlay p {
  color: var(--text-primary);
  opacity: 0.9;
  transform: translateY(20px);
  transition: transform var(--transition-medium);
}

.gallery-item:hover .overlay h4,
.gallery-item:hover .overlay p {
  transform: translateY(0);
}

/* FAQ */
.accordion {
  border-radius: var(--border-radius);
  overflow: hidden;
}

.accordion-item {
  background-color: var(--dark-color-light);
  border: none;
  margin-bottom: 1rem;
}

.accordion-header {
  margin-bottom: 0;
}

.accordion-button {
  padding: 1.25rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary) !important;
  background-color: var(--dark-color-light) !important;
  border-left: 4px solid var(--primary-color);
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  color: var(--accent-color) !important;
  background-color: var(--dark-color) !important;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.accordion-body {
  padding: 1.5rem;
  background-color: var(--dark-color);
  color: var(--text-primary);
}

/* Контакты */
.contact-info {
  background-color: var(--dark-color-light);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--neo-brutalism-shadow);
  height: 100%;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-right: 1rem;
  width: 40px;
  text-align: center;
}

.info-item h4 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.contact-form {
  background-color: var(--dark-color-light);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--neo-brutalism-shadow);
}

.contact-form h3 {
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 2rem;
}

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

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

/* Футер */
.footer {
  background-color: var(--dark-color);
  color: var(--text-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer h3 {
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.footer p {
  opacity: 0.8;
}

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

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

.footer-links a {
  color: var(--text-primary);
  opacity: 0.8;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-color);
  opacity: 1;
  padding-left: 5px;
}

.newsletter-form .form-control {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.copyright {
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Cookie Popup */
.cookie-popup {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  z-index: 9999;
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.cookie-btn {
  background-color: var(--accent-color);
  color: var(--dark-color) !important;
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  margin-left: 1rem;
  white-space: nowrap;
}

/* Страница успешной отправки */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.success-content {
  max-width: 600px;
  background-color: var(--dark-color-light);
  border-radius: var(--border-radius);
  padding: 3rem;
  box-shadow: var(--neo-brutalism-shadow);
  animation: fadeInUp 1s ease-out;
}

.success-icon {
  font-size: 5rem;
  color: #4CAF50;
  margin-bottom: 2rem;
}

/* Страницы Privacy и Terms */
.page-content {
  padding-top: 100px;
  min-height: 80vh;
}

.page-content h1 {
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.page-content h2 {
  color: var(--accent-color);
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.page-content p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

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

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

/* Медиа-запросы */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .timeline-item {
    padding-left: 0;
    padding-top: 50px;
  }
  
  .timeline-marker {
    left: 50%;
    transform: translateX(-50%);
    top: 0;
  }
  
  .hero-section {
    min-height: auto;
    padding: 100px 0;
  }
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-btn {
    margin-top: 1rem;
    margin-left: 0;
  }
  
  .contact-form, .contact-info {
    margin-bottom: 2rem;
  }
  
  .instructor-card .card-image {
    height: 250px;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .stat-value {
    font-size: 2.5rem;
  }
}