:root {
  /* Основная цветовая палитра */
  --primary-color: #ff6b6b;
  --primary-dark: #e05050;
  --primary-light: #ff8a8a;
  --secondary-color: #4ecdc4;
  --secondary-dark: #3ab4ac;
  --secondary-light: #6bdad3;
  --accent-color: #ffe66d;
  --accent-dark: #ffd83d;
  --accent-light: #fff0a0;

  /* Нейтральные цвета */
  --dark: #292f36;
  --dark-medium: #4a5568;
  --medium: #718096;
  --light-medium: #a0aec0;
  --light: #e2e8f0;
  --white: #ffffff;

  /* Дополнительные цвета для ретро-эффектов */
  --retro-purple: #9b5de5;
  --retro-pink: #f15bb5;
  --retro-yellow: #fee440;
  --retro-blue: #00bbf9;
  --retro-cyan: #00f5d4;

  /* Тени */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Радиусы границ */
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 2rem;

  /* Отступы */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  /* Переходы */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Базовые стили */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--dark);
  background-color: var(--white);
  overflow-x: hidden;
  padding-top: 0px !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--dark);
}

.section-title {
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-sm);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 50%;
  height: 4px;
  background: var(--primary-color);
  margin: 0.5rem auto 0;
  border-radius: var(--border-radius-sm);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--medium);
  margin-bottom: var(--spacing-lg);
}

/* Текстовые стили */
p {
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
  color: var(--dark-medium);
}

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

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

/* Кнопки */
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.5s;
  z-index: -1;
  transform: skewX(-15deg);
}

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

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

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

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

.btn-outline-primary:hover, .btn-outline-primary:focus {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

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

.btn-block {
  display: block;
  width: 100%;
}

/* Навигация */
header {
  background-color: var(--dark);
  box-shadow: var(--shadow-lg);
}

.navbar {
  padding: 1rem 0;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  background-color: rgba(41, 47, 54, 0.95);
  backdrop-filter: blur(10px);
}

.navbar-brand {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color) !important;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.navbar-dark .navbar-nav .nav-link {
  color: var(--white);
  font-weight: 600;
  padding: 0.5rem 1rem;
  transition: color var(--transition-fast);
}

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

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

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

/* Hero Section */
.hero-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: var(--spacing-xl) 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
}

.hero-section::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.4));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-content h1 {
  color: var(--white);
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInDown 1s ease-out;
}

.hero-content p {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: var(--spacing-lg);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out 0.3s;
  animation-fill-mode: both;
}

.hero-content .btn {
  animation: fadeIn 1s ease-out 0.6s;
  animation-fill-mode: both;
}

/* Mission Section */
.mission-section {
  background-color: var(--white);
  padding: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
}

.mission-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: var(--primary-light);
  opacity: 0.1;
  border-radius: 50%;
  transform: translate(150px, -150px);
  z-index: 0;
}

.mission-image-container {
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--spacing-md);
}

.mission-image-container img {
  width: 100%;
  height: auto;
  transition: transform var(--transition-slow);
  display: block;
  object-fit: cover;
}

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

.mission-content {
  padding: var(--spacing-md);
}

.mission-content h3 {
  color: var(--primary-color);
  font-size: 2rem;
}

/* Services Section */
.services-section {
  background-color: var(--light);
  padding: var(--spacing-xl) 0;
  position: relative;
}

.services-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to top, var(--white), transparent);
}

.service-card {
  height: 100%;
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.card-image {
  width: 100%;
  height: 200px;
  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);
}

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

.card-content {
  padding: var(--spacing-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.card-content h3 {
  color: var(--dark);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.card-content p {
  margin-bottom: var(--spacing-md);
}

.card-content .btn {
  margin-top: auto;
  align-self: center;
}

/* Research Section */
.research-section {
  background-color: var(--white);
  padding: var(--spacing-xl) 0;
  position: relative;
}

.research-content {
  padding: var(--spacing-md);
}

.research-content h3 {
  color: var(--secondary-color);
  font-size: 2rem;
}

.timeline-container {
  position: relative;
  padding: var(--spacing-md) 0 0 var(--spacing-lg);
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  height: 100%;
  width: 4px;
  background: var(--primary-color);
  border-radius: var(--border-radius-lg);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--spacing-lg);
}

.timeline-date {
  position: absolute;
  left: -60px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: var(--shadow-md);
}

.timeline-content {
  background-color: var(--light);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  margin-left: var(--spacing-md);
}

.timeline-content h4 {
  color: var(--dark);
  font-size: 1.2rem;
  margin-bottom: var(--spacing-xs);
}

.timeline-content p {
  margin-bottom: 0;
}

/* Insights Section */
.insights-section {
  background-color: var(--light);
  padding: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
}

.insights-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: var(--secondary-light);
  opacity: 0.1;
  border-radius: 50%;
}

.insight-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.insight-card:hover {
  transform: translateY(-5px);
}

.insight-card .card-image {
  height: 300px;
}

.insight-card .card-content h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

/* Resources Section */
.resources-section {
  background-color: var(--white);
  padding: var(--spacing-xl) 0;
}

.resource-card {
  background-color: var(--light);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  height: 100%;
  transition: transform var(--transition-normal);
}

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

.resource-card h3 {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.resource-card ul {
  padding-left: var(--spacing-md);
  margin-bottom: 0;
}

.resource-card ul li {
  margin-bottom: var(--spacing-xs);
}

.resource-card ul li a {
  color: var(--primary-color);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.resource-card ul li a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Testimonials Section */
.testimonials-section {
  background-color: var(--light);
  padding: var(--spacing-xl) 0;
  position: relative;
}

.testimonial-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-card .card-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: var(--spacing-md) auto;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

.testimonial-card .card-content {
  padding: var(--spacing-md);
  text-align: center;
}

.testimonial-card .card-content h3 {
  color: var(--dark);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-xs);
}

.testimonial-position {
  color: var(--medium);
  font-style: italic;
  margin-bottom: var(--spacing-sm);
}

/* Pricing Section */
.pricing-section {
  background-color: var(--white);
  padding: var(--spacing-xl) 0;
  position: relative;
}

.pricing-card {
  background-color: var(--light);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.pricing-card.featured {
  background-color: var(--white);
  border: 2px solid var(--primary-color);
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.pricing-card.featured:hover {
  transform: translateY(-15px);
}

.pricing-card .card-header {
  background-color: var(--dark);
  color: var(--white);
  padding: var(--spacing-md);
  text-align: center;
  width: 100%;
}

.pricing-card.featured .card-header {
  background-color: var(--primary-color);
}

.pricing-card .card-header h3 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: var(--spacing-xs);
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0;
}

.pricing-card .card-content {
  padding: var(--spacing-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.pricing-card ul {
  list-style-type: none;
  padding: 0;
  margin-bottom: var(--spacing-md);
}

.pricing-card ul li {
  padding: var(--spacing-xs) 0;
  border-bottom: 1px solid var(--light-medium);
  position: relative;
  padding-left: 30px;
  text-align: left;
}

.pricing-card ul li::before {
  content: '✓';
  color: var(--primary-color);
  position: absolute;
  left: 5px;
  font-weight: bold;
}

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

/* Contact Section */
.contact-section {
  background-color: var(--light);
  padding: var(--spacing-xl) 0;
  position: relative;
}

.contact-info {
  margin-bottom: var(--spacing-lg);
}

.contact-info h3 {
  color: var(--dark);
  font-size: 1.8rem;
}

.contact-info p {
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
}

.contact-info p i {
  margin-right: var(--spacing-sm);
  color: var(--primary-color);
  font-size: 1.2rem;
}

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

.contact-image img {
  width: 100%;
  height: auto;
  display: block;
}

.contact-form {
  background-color: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.contact-form h3 {
  color: var(--dark);
  font-size: 1.8rem;
  margin-bottom: var(--spacing-md);
}

.form-control {
  border: 2px solid var(--light-medium);
  border-radius: var(--border-radius-md);
  padding: 0.75rem;
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: none;
}

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

/* Footer */
.footer-section {
  background-color: var(--dark);
  color: var(--light);
  padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer-section h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  position: relative;
  padding-bottom: var(--spacing-sm);
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
}

.social-links {
  margin-top: var(--spacing-md);
}

.social-links a {
  color: var(--light);
  margin-right: var(--spacing-md);
  font-weight: 600;
  transition: color var(--transition-fast);
}

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

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

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links a {
  color: var(--light);
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.newsletter-form .input-group {
  box-shadow: var(--shadow-md);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.newsletter-form .form-control {
  border: none;
  padding: 0.75rem;
}

.newsletter-form .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.legal-links {
  margin-top: var(--spacing-md);
}

.legal-links a {
  color: var(--light-medium);
  transition: color var(--transition-fast);
}

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

/* Cookie Consent */
#cookie-consent {
  background-color: rgba(0, 0, 0, 0.85);
  color: var(--white);
  padding: var(--spacing-md);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  text-align: center;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(5px);
}

#cookie-consent p {
  color: var(--white);
  margin-bottom: var(--spacing-sm);
}

#accept-cookies {
  display: inline-block;
  margin: 0 auto;
}

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

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

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

.success-title {
  color: var(--dark);
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

.success-message {
  color: var(--dark-medium);
  margin-bottom: var(--spacing-lg);
}

/* Privacy & Terms Pages */
.page-content {
  padding-top: 100px;
  padding-bottom: var(--spacing-xl);
}

.page-title {
  font-size: 2.5rem;
  color: var(--dark);
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.page-section {
  margin-bottom: var(--spacing-lg);
}

.page-section h2 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: var(--spacing-sm);
}

/* Responsive Utilities */
@media (max-width: 991.98px) {
  .section-title {
    font-size: 2rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .navbar-collapse {
    background-color: var(--dark);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    margin-top: var(--spacing-sm);
    box-shadow: var(--shadow-md);
  }
  
  .timeline-container {
    padding-left: var(--spacing-md);
  }
  
  .timeline-date {
    left: -40px;
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
}

@media (max-width: 767.98px) {
  .section-title {
    font-size: 1.8rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .mission-image-container, .contact-image {
    margin-bottom: var(--spacing-lg);
  }
  
  .timeline-container::before {
    left: 15px;
  }
  
  .timeline-date {
    left: -30px;
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }
  
  .timeline-content {
    margin-left: var(--spacing-sm);
  }
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ScrollReveal Animations */
.reveal-fade-up {
  visibility: hidden;
}

.reveal-fade-down {
  visibility: hidden;
}

.reveal-fade-left {
  visibility: hidden;
}

.reveal-fade-right {
  visibility: hidden;
}

.reveal-rotate {
  visibility: hidden;
}

/* Retro Texture Effects */
.texture-card {
  position: relative;
  overflow: hidden;
}

.texture-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('image/retro-texture.jpg');
  background-size: cover;
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.retro-grain {
  position: relative;
}

.retro-grain::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('image/grain-texture.jpg');
  background-size: cover;
  opacity: 0.08;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Utility classes */
.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary {
  color: var(--secondary-color) !important;
}

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

.bg-secondary {
  background-color: var(--secondary-color) !important;
}

.text-accent {
  color: var(--accent-color) !important;
}

.read-more {
  font-weight: 600;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
  padding-right: 20px;
  transition: all var(--transition-normal);
}

.read-more::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform var(--transition-normal);
}

.read-more:hover {
  color: var(--primary-dark);
  padding-right: 25px;
}

.read-more:hover::after {
  transform: translateY(-50%) translateX(5px);
}

html,body{
  overflow-x: hidden;
}