:root {
  /* Цветовая схема */
  --primary-color: #5d37e7;
  --primary-dark: #4a29c4;
  --primary-light: #7c58ff;
  --secondary-color: #ff6b6b;
  --secondary-dark: #e45858;
  --secondary-light: #ff8a8a;
  --accent-color: #36d7b7;
  --accent-dark: #2bb39a;
  --accent-light: #5cecce;
  
  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
  --gradient-dark: linear-gradient(135deg, rgba(20, 20, 40, 0.95) 0%, rgba(40, 40, 80, 0.9) 100%);
  --gradient-hero-overlay: linear-gradient(to bottom, rgba(20, 20, 40, 0.7) 0%, rgba(40, 40, 80, 0.6) 100%);
  
  /* Нейтральные цвета */
  --dark: #1a1a2e;
  --medium-dark: #2d2d44;
  --medium: #555670;
  --medium-light: #8a8aa2;
  --light: #e6e6ef;
  --white: #ffffff;
  
  /* Размеры и радиусы */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --border-radius-xl: 30px;
  
  /* Тени */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-inner: inset 0 2px 10px rgba(0, 0, 0, 0.05);
  
  /* Переходы */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

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

p {
  margin-bottom: 1.5rem;
  color: var(--medium);
}

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

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

section {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

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

/* ===== Компоненты ===== */

/* Кнопки */
.btn {
  position: relative;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all var(--transition-normal);
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  overflow: hidden;
  z-index: 1;
  border: none;
}

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

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

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(93, 55, 231, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 7px 20px rgba(93, 55, 231, 0.4);
  transform: translateY(-2px);
}

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

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

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

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

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

/* Карточки */
.card {
  border: none;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.card-image {
  width: 100%;
  height: 250px;
  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 {
  padding: 2rem;
  flex-grow: 1;
}

/* Формы */
.form-control, .form-select {
  border-radius: var(--border-radius-md);
  padding: 0.75rem 1rem;
  border: 2px solid var(--light);
  transition: all var(--transition-normal);
  color: var(--medium-dark);
}

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

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

/* ===== Хедер ===== */
.header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  padding: 1rem 0;
  z-index: 1000;
}

.header.scrolled {
  padding: 0.5rem 0;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

.nav-link {
  color: var(--medium-dark);
  font-weight: 600;
  padding: 0.5rem 1rem !important;
  transition: color var(--transition-normal);
  position: relative;
}

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

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

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

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 76px; /* Высота хедера */
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-hero-overlay);
  z-index: 1;
}

.hero .container {
  z-index: 2;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease-out;
}

.hero p {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1.2s ease-out;
}

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

/* ===== Vision Section ===== */
.vision {
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

.vision:before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--gradient-accent);
  opacity: 0.1;
  z-index: 0;
}

.vision:after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0.1;
  z-index: 0;
}

.vision-content h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.vision-content h3:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--secondary-color);
}

.vision-image img {
  border-radius: var(--border-radius-lg);
  transition: transform var(--transition-slow);
}

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

/* ===== Features Section ===== */
.features {
  background-color: var(--light);
  position: relative;
  overflow: hidden;
}

.features:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('./image/features-bg-pattern.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.03;
  z-index: 0;
}

.features h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 3rem;
}

.features h2:after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient-primary);
}

/* ===== Team Section ===== */
.team {
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

.team:before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0.03;
  clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
  z-index: 0;
}

.team-card {
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.team-card .card-image {
  height: 300px;
  overflow: hidden;
}

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

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

.team-card .card-content {
  padding: 2rem;
}

.team-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.team-card p.text-muted {
  color: var(--medium-light) !important;
  margin-bottom: 1rem;
}

/* ===== Behind the Scenes Section ===== */
.behind-scenes {
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

.behind-scenes:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: var(--gradient-secondary);
  opacity: 0.03;
  clip-path: polygon(0 0, 100% 30%, 100% 100%, 0% 100%);
  z-index: 0;
}

.behind-scenes-content h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.behind-scenes-content h3:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--secondary-color);
}

.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline:before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  height: calc(100% - 20px);
  width: 2px;
  background: var(--gradient-primary);
}

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

.timeline-dot {
  position: absolute;
  left: -38px;
  top: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gradient-primary);
  box-shadow: 0 0 0 4px rgba(93, 55, 231, 0.2);
}

.timeline-content {
  padding-left: 20px;
}

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

/* ===== Community Section ===== */
.community {
  background-color: var(--light);
  position: relative;
  overflow: hidden;
}

.community:before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--gradient-accent);
  opacity: 0.1;
  z-index: 0;
}

.community-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-slow);
}

.community-image:hover img {
  transform: scale(1.03);
}

.community-content h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.community-content h3:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--secondary-color);
}

/* ===== Resources Section ===== */
.resources {
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

.resources:before {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0.1;
  z-index: 0;
}

.resource-card {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  box-shadow: var(--shadow-md);
}

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

.resource-card .card-image {
  height: 200px;
  overflow: hidden;
}

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

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

/* ===== Insights Section ===== */
.insights {
  background-color: var(--light);
  position: relative;
  overflow: hidden;
}

.insights:before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: var(--gradient-accent);
  opacity: 0.05;
  clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
  z-index: 0;
}

.insights-card {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  box-shadow: var(--shadow-md);
}

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

.insights-card .card-image {
  height: 200px;
  overflow: hidden;
}

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

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

.insights-card h3 {
  color: var(--primary-color);
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

/* ===== Press Section ===== */
.press {
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

.press-item {
  background-color: var(--light);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

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

.press-item h3 {
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.press-item .media img {
  border-radius: var(--border-radius-sm);
  object-fit: cover;
}

/* ===== Media Section ===== */
.media {
  background-color: var(--light);
  position: relative;
  overflow: hidden;
}

.media:before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--gradient-secondary);
  opacity: 0.1;
  z-index: 0;
}

.video-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.video-container img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-slow);
}

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

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background var(--transition-normal);
}

.play-button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.play-icon {
  font-size: 2rem;
  color: var(--white);
}

.publication-card {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  box-shadow: var(--shadow-md);
}

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

.publication-card .card-image {
  height: 200px;
  overflow: hidden;
}

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

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

/* ===== Contact Section ===== */
.contact {
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

.contact:before {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0.05;
  z-index: 0;
}

.contact-info {
  padding: 2rem;
  background-color: var(--light);
  border-radius: var(--border-radius-lg);
  height: 100%;
}

.contact-info h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.contact-form {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* ===== Footer ===== */
.footer {
  background-color: var(--medium-dark);
  color: var(--light);
  position: relative;
  overflow: hidden;
}

.footer:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('./image/footer-bg-pattern.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  z-index: 0;
}

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

.footer p {
  color: var(--light);
  opacity: 0.8;
}

.footer ul {
  padding-left: 0;
}

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

.footer ul li a {
  color: var(--light);
  opacity: 0.8;
  transition: opacity var(--transition-normal), color var(--transition-normal);
}

.footer ul li a:hover {
  opacity: 1;
  color: var(--secondary-light);
  text-decoration: none;
}

.social-links a {
  color: var(--light);
  opacity: 0.8;
  transition: opacity var(--transition-normal), color var(--transition-normal);
  font-weight: 600;
}

.social-links a:hover {
  opacity: 1;
  color: var(--secondary-light);
  text-decoration: none;
}

hr {
  background-color: var(--medium);
  opacity: 0.2;
}

/* ===== Privacy & Terms Pages ===== */
.page-content {
  padding-top: 100px;
  min-height: 80vh;
}

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

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

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

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Прокрутка-зависимые эффекты */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

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

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 1s ease, transform 1s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* ===== Медиа-запросы ===== */
@media (max-width: 991.98px) {
  .hero {
    min-height: 70vh;
  }
  
  .navbar-collapse {
    background-color: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    margin-top: 1rem;
  }
  
  .timeline {
    padding-left: 20px;
  }
  
  .timeline-dot {
    left: -28px;
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 767.98px) {
  section {
    padding: 4rem 0;
  }
  
  .hero {
    min-height: 60vh;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .card-image {
    height: 200px;
  }
  
  .team-card .card-image {
    height: 250px;
  }
}

@media (max-width: 575.98px) {
  section {
    padding: 3rem 0;
  }
  
  .hero {
    min-height: 50vh;
    margin-top: 66px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .btn-lg {
    padding: 0.7rem 1.4rem;
    font-size: 0.95rem;
  }
  
  .card-image {
    height: 180px;
  }
  
  .contact-info, .contact-form {
    padding: 1.5rem;
  }
}