:root {
  /* Цветовая схема "Нейтральная" с элементами нейроморфизма */
  --primary-color: #3a7bd5;
  --primary-dark: #2d62a9;
  --primary-light: #5792e6;
  --secondary-color: #f0f4f8;
  --secondary-dark: #d8e2ed;
  --accent-color: #6c63ff;
  --accent-dark: #544ddd;
  --neutral-light: #f5f7fa;
  --neutral-mid: #e0e5ec;
  --neutral-dark: #a3b1c6;
  --text-primary: #2d3748;
  --text-secondary: #4a5568;
  --text-light: #718096;
  --text-white: #ffffff;
  --success-color: #48bb78;
  --warning-color: #ed8936;
  --error-color: #e53e3e;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --box-shadow-sm: 6px 6px 12px rgba(163, 177, 198, 0.2), -6px -6px 12px rgba(255, 255, 255, 0.7);
  --box-shadow-md: 10px 10px 20px rgba(163, 177, 198, 0.25), -10px -10px 20px rgba(255, 255, 255, 0.8);
  --box-shadow-lg: 16px 16px 30px rgba(163, 177, 198, 0.3), -16px -16px 30px rgba(255, 255, 255, 0.9);
  --box-shadow-inset: inset 4px 4px 8px rgba(163, 177, 198, 0.25), inset -4px -4px 8px rgba(255, 255, 255, 0.8);
  --transition-speed: 0.3s;
}

/* Базовые стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--text-primary);
  background-color: var(--neutral-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Archivo Black', sans-serif;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

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

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

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

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

.section-padding {
  padding: 5rem 0;
}

/* Нейроморфные компоненты */
.neumorph-card {
  background-color: var(--neutral-mid);
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-md);
  padding: 2rem;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

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

.neumorph-button {
  background-color: var(--neutral-mid);
  border: none;
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-sm);
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all var(--transition-speed) ease;
}

.neumorph-button:hover {
  box-shadow: var(--box-shadow-md);
  transform: translateY(-2px);
}

.neumorph-button:active {
  box-shadow: var(--box-shadow-inset);
  transform: translateY(0);
}

/* Анимации частиц */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}

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

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

/* Глобальные стили кнопок */
.btn, button, input[type='submit'] {
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all var(--transition-speed) ease;
  cursor: pointer;
  font-size: 1rem;
  display: inline-block;
  border: none;
  box-shadow: var(--box-shadow-sm);
  text-align: center;
}

.btn:hover, button:hover, input[type='submit']:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-md);
}

.btn:active, button:active, input[type='submit']:active {
  transform: translateY(-1px);
  box-shadow: var(--box-shadow-inset);
}

.btn-primary, input[type='submit'] {
  background-color: var(--primary-color);
  color: var(--text-white);
}

.btn-primary:hover, input[type='submit']:hover {
  background-color: var(--primary-dark);
  color: var(--text-white);
}

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

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

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

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

/* Хедер и навигация */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  transition: all var(--transition-speed) ease;
}

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

.navbar-brand h1 {
  margin-bottom: 0;
  font-size: 1.8rem;
  color: var(--primary-color);
}

.navbar-nav .nav-link {
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color var(--transition-speed) ease;
}

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

/* Hero Section */
.hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 8rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-white);
  text-align: center;
  padding: 2rem;
}

.hero-content h2 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-white);
  animation: fadeIn 1.5s ease;
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: var(--text-white);
  animation: fadeIn 2s ease;
}

.hero-stats {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  margin: 0 2rem;
  animation: float 6s ease-in-out infinite;
}

.stat-item h3 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-white);
}

.stat-item p {
  font-size: 1rem;
  margin-bottom: 0;
  color: var(--neutral-light);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  animation: fadeIn 2.5s ease;
}

/* Vision Section */
.vision-section {
  padding: 6rem 0;
  background-color: var(--neutral-light);
}

.vision-image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--box-shadow-lg);
  margin-bottom: 2rem;
}

.vision-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform var(--transition-speed) ease;
}

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

.vision-content h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.vision-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.stat-card {
  background-color: var(--neutral-mid);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  flex: 1;
  min-width: 180px;
  text-align: center;
  box-shadow: var(--box-shadow-sm);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

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

.stat-card h4 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.stat-card p {
  margin-bottom: 0;
  color: var(--text-secondary);
}

/* History Section */
.history-section {
  padding: 6rem 0;
  background-color: var(--secondary-color);
}

.history-section h2 {
  color: var(--primary-color);
  margin-bottom: 3rem;
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

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

.timeline-item {
  padding: 1rem 2rem;
  position: relative;
  width: 50%;
  box-sizing: border-box;
  margin-bottom: 2rem;
}

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

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

.timeline-item::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--primary-color);
  border-radius: 50%;
  top: 25px;
  z-index: 1;
}

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

.timeline-content {
  padding: 1.5rem;
  background-color: var(--neutral-mid);
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-md);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-lg);
}

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

.history-image {
  margin: 4rem auto 0;
  max-width: 900px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--box-shadow-lg);
}

/* Team Section */
.team-section {
  padding: 6rem 0;
  background-color: var(--neutral-light);
}

.team-section h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.team-card {
  background-color: var(--neutral-mid);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--box-shadow-md);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

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

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

.card-content {
  padding: 2rem;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.position {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-weight: 500;
}

.description {
  margin-bottom: 1.5rem;
}

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

.social-links a {
  color: var(--primary-color);
  font-weight: 500;
  transition: color var(--transition-speed) ease;
}

.social-links a:hover {
  color: var(--primary-dark);
}

/* Resources Section */
.resources-section {
  padding: 6rem 0;
  background-color: var(--secondary-color);
}

.resources-section h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.resource-card {
  background-color: var(--neutral-mid);
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-md);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  height: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.resource-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: center;
}

.resource-card p {
  margin-bottom: 1.5rem;
  text-align: center;
  flex-grow: 1;
}

.resource-card .btn {
  margin-top: auto;
}

/* Testimonials Section */
.testimonials-section {
  padding: 6rem 0;
  background-color: var(--neutral-light);
}

.testimonials-section h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.testimonial-card {
  background-color: var(--neutral-mid);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--box-shadow-md);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  height: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.testimonial-card .card-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.5rem;
}

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

.testimonial-card .card-content {
  text-align: center;
}

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

.testimonial-card .position {
  margin-bottom: 1rem;
}

.quote {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.rating {
  color: var(--warning-color);
  font-size: 1.2rem;
}

/* Contact Section */
.contact-section {
  padding: 6rem 0;
  background-color: var(--secondary-color);
}

.contact-info {
  padding-right: 2rem;
}

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

.contact-details {
  margin: 2rem 0;
}

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

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

.contact-item p {
  margin-bottom: 0;
}

.contact-image {
  margin-top: 2rem;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--box-shadow-lg);
}

.contact-form-container {
  background-color: var(--neutral-mid);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--box-shadow-lg);
}

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

.form-control, .form-select {
  background-color: var(--neutral-light);
  border: none;
  border-radius: var(--border-radius-sm);
  padding: 0.8rem 1rem;
  box-shadow: var(--box-shadow-inset);
  transition: box-shadow var(--transition-speed) ease;
}

.form-control:focus, .form-select:focus {
  box-shadow: var(--box-shadow-inset), 0 0 0 3px rgba(58, 123, 213, 0.2);
  outline: none;
}

/* Footer */
.footer {
  background-color: var(--text-primary);
  color: var(--neutral-light);
  padding: 4rem 0 2rem;
}

.footer h3 {
  color: var(--text-white);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.footer p {
  color: var(--neutral-dark);
}

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

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

.footer-links a {
  color: var(--neutral-dark);
  transition: color var(--transition-speed) ease;
}

.footer-links a:hover {
  color: var(--text-white);
}

.footer .social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.footer .social-links a {
  color: var(--neutral-dark);
  font-size: 1rem;
  transition: color var(--transition-speed) ease;
}

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

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  margin-bottom: 0;
  color: var(--neutral-dark);
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--neutral-mid);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  z-index: 9999;
  display: none;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.cookie-content p {
  margin-bottom: 0;
  flex: 1;
}

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

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

/* Privacy and Terms Pages */
.page-content {
  padding-top: 100px;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 4rem;
}

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

.page-content h2 {
  color: var(--primary-color);
  margin: 2.5rem 0 1.5rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-content h2 {
    font-size: 2.5rem;
  }
  
  .stat-item {
    margin: 0 1rem 1.5rem;
  }
  
  .timeline::before {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-item::before {
    left: 21px;
    right: auto;
  }
  
  .timeline-item:nth-child(even)::before {
    left: 21px;
  }
  
  .contact-info {
    padding-right: 0;
    margin-bottom: 3rem;
  }
}

@media (max-width: 768px) {
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .vision-stats, .stat-item {
    flex-direction: column;
    align-items: center;
  }
  
  .stat-card {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-content .btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .hero-content h2 {
    font-size: 1.8rem;
  }
  
  .stat-item h3 {
    font-size: 2rem;
  }
  
  .timeline-content {
    padding: 1rem;
  }
  
  .contact-form-container {
    padding: 1.5rem;
  }
}

/* Анимация частиц (для добавления визуального интереса) */
.particle {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  z-index: 1;
}

@keyframes particleAnimation {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* AOS (Animate On Scroll) дополнительные стили */
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}

/* Дополнительные утилиты */
.text-center {
  text-align: center;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 500;
  margin-top: 1rem;
  position: relative;
  transition: color var(--transition-speed) ease;
}

.read-more::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -3px;
  left: 0;
  background-color: var(--primary-color);
  transition: width var(--transition-speed) ease;
}

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

.read-more:hover::after {
  width: 100%;
}
html,body{
  overflow-x: hidden;
}