:root {
  /* Триадная цветовая схема */
  --primary-color: #4e57d4;
  --primary-dark: #3942b0;
  --primary-light: #7c84f7;
  
  --secondary-color: #d44e57;
  --secondary-dark: #b03942;
  --secondary-light: #f77c84;
  
  --tertiary-color: #57d44e;
  --tertiary-dark: #42b039;
  --tertiary-light: #84f77c;
  
  /* Нейтральные цвета */
  --dark: #222222;
  --text-dark: #333333;
  --text-light: #ffffff;
  --light: #f8f9fa;
  --gray: #6c757d;
  --gray-light: #e9ecef;
  
  /* Нейроморфические переменные */
  --neuro-bg: #f0f2f5;
  --neuro-shadow-dark: rgba(0, 0, 0, 0.1);
  --neuro-shadow-light: rgba(255, 255, 255, 0.9);
  --neuro-radius: 15px;
  --neuro-border-radius: 12px;
  
  /* Анимационные переменные */
  --bounce-timing: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --transition-fast: 0.3s all var(--bounce-timing);
  --transition-medium: 0.5s all var(--bounce-timing);
  --transition-slow: 0.8s all var(--bounce-timing);
}

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

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-dark);
  background-color: var(--neuro-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

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

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

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

.bg-light-gradient {
  background: linear-gradient(135deg, var(--neuro-bg) 0%, #ffffff 100%);
}

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

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  text-align: center;
  font-weight: 600;
}

.section-description {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
  color: var(--gray);
}

.divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  margin: 1.5rem auto 2rem;
  border-radius: 2px;
}

/* Нейроморфические элементы */
.neomorphic-card {
  background-color: var(--neuro-bg);
  border-radius: var(--neuro-radius);
  box-shadow: 
    8px 8px 16px var(--neuro-shadow-dark),
    -8px -8px 16px var(--neuro-shadow-light);
  transition: var(--transition-medium);
  overflow: hidden;
}

.neomorphic-card:hover {
  transform: translateY(-5px);
  box-shadow: 
    10px 10px 20px var(--neuro-shadow-dark),
    -10px -10px 20px var(--neuro-shadow-light);
}

.neomorphic-button {
  border-radius: var(--neuro-border-radius);
  box-shadow: 
    4px 4px 8px var(--neuro-shadow-dark),
    -4px -4px 8px var(--neuro-shadow-light);
  transition: var(--transition-fast);
  border: none;
  position: relative;
  overflow: hidden;
}

.neomorphic-button:hover {
  transform: translateY(-2px);
  box-shadow: 
    6px 6px 12px var(--neuro-shadow-dark),
    -6px -6px 12px var(--neuro-shadow-light);
}

.neomorphic-button:active {
  transform: translateY(0);
  box-shadow: 
    inset 4px 4px 8px var(--neuro-shadow-dark),
    inset -4px -4px 8px var(--neuro-shadow-light);
}

.neomorphic-input {
  background-color: var(--neuro-bg);
  border: none;
  border-radius: var(--neuro-border-radius);
  box-shadow: 
    inset 4px 4px 8px var(--neuro-shadow-dark),
    inset -4px -4px 8px var(--neuro-shadow-light);
  padding: 1rem;
  transition: var(--transition-fast);
}

.neomorphic-input:focus {
  outline: none;
  box-shadow: 
    inset 6px 6px 10px var(--neuro-shadow-dark),
    inset -6px -6px 10px var(--neuro-shadow-light);
}

.neomorphic-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--neuro-bg);
  box-shadow: 
    4px 4px 8px var(--neuro-shadow-dark),
    -4px -4px 8px var(--neuro-shadow-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: var(--transition-medium);
}

.neomorphic-circle:hover {
  transform: scale(1.05);
  box-shadow: 
    6px 6px 12px var(--neuro-shadow-dark),
    -6px -6px 12px var(--neuro-shadow-light);
}

.neomorphic-header {
  background-color: var(--neuro-bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition-fast);
}

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

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

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border: none;
  color: var(--text-light);
}

.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  color: var(--text-light);
  transform: translateY(-3px);
}

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

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

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

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

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

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

.navbar-brand:hover {
  color: var(--primary-dark);
}

.nav-link {
  color: var(--text-dark);
  font-weight: 600;
  margin: 0 0.5rem;
  padding: 0.5rem 0.75rem !important;
  position: relative;
  transition: var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: var(--transition-medium);
  transform: translateX(-50%);
}

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

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

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

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

/* Hero секция */
.hero-section {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: 8rem 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.hero-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(78, 87, 212, 0.8), rgba(212, 78, 87, 0.8));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-light);
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInDown 1s var(--bounce-timing) both;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-light);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s var(--bounce-timing) 0.3s both;
}

.hero-content .btn {
  animation: fadeInUp 1s var(--bounce-timing) 0.6s both;
}

/* Секция About Us */
.about-image-container {
  overflow: hidden;
  border-radius: var(--neuro-radius);
}

.about-image-container img {
  transition: var(--transition-medium);
  width: 100%;
  height: auto;
  display: block;
}

.about-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.about-content h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 1.5px;
}

/* Карточки услуг */
.service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.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: var(--transition-medium);
}

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

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
}

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

/* Кейсы успеха */
.case-study-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.results {
  display: flex;
  justify-content: space-around;
  margin: 1.5rem 0;
}

.result-item {
  text-align: center;
}

.result-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.result-label {
  font-size: 0.85rem;
  color: var(--gray);
}

/* Команда */
.team-card {
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-card .card-image {
  width: 100%;
  height: 300px;
  border-radius: 50% 50% 0 0;
  overflow: hidden;
}

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

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

.team-card h3 {
  margin-top: 1rem;
  font-size: 1.5rem;
  color: var(--primary-dark);
}

.team-card .text-muted {
  margin-bottom: 1rem;
}

/* Ресурсы */
.resource-card {
  height: 100%;
  text-align: center;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

/* Устойчивость */
.sustainability-image {
  overflow: hidden;
  border-radius: var(--neuro-radius);
}

.sustainability-image img {
  width: 100%;
  height: auto;
  transition: var(--transition-medium);
}

.sustainability-stats {
  margin-top: 2rem;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray);
  margin-top: 0.5rem;
}

/* Таймлайн */
.timeline-container {
  padding: 2rem;
}

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

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  border-radius: 3px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
  margin-bottom: 30px;
}

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

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

.timeline-dot {
  position: absolute;
  width: 25px;
  height: 25px;
  right: -12.5px;
  background-color: var(--primary-color);
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -12.5px;
}

.timeline-content {
  padding: 20px;
  background-color: var(--neuro-bg);
  border-radius: var(--neuro-radius);
  box-shadow: 
    5px 5px 10px var(--neuro-shadow-dark),
    -5px -5px 10px var(--neuro-shadow-light);
  position: relative;
  transition: var(--transition-medium);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 
    8px 8px 16px var(--neuro-shadow-dark),
    -8px -8px 16px var(--neuro-shadow-light);
}

.timeline-content h3 {
  margin-top: 0;
  color: var(--primary-color);
  font-size: 1.5rem;
}

/* Статистика */
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--gray);
}

/* Контактная форма */
.contact-info {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.contact-item {
  margin-bottom: 1.5rem;
}

.icon-box {
  width: 40px;
  height: 40px;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.contact-form {
  height: 100%;
}

.contact-form h3 {
  margin-bottom: 1.5rem;
}

/* Футер */
.footer-section {
  background-color: var(--dark);
  color: var(--text-light);
  padding: 5rem 0 1rem;
}

.footer-heading {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 1.5px;
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-light);
  padding-left: 5px;
}

.social-links {
  margin-top: 1.5rem;
}

.social-links a {
  color: rgba(255, 255, 255, 0.7);
  margin-right: 1rem;
  transition: var(--transition-fast);
}

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

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

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

.success-icon {
  width: 100px;
  height: 100px;
  background-color: var(--tertiary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  position: relative;
  animation: bounceIn 1s var(--bounce-timing) both;
}

.success-icon::before, .success-icon::after {
  content: '';
  position: absolute;
  background-color: var(--tertiary-dark);
}

.success-icon::before {
  width: 40px;
  height: 8px;
  transform: rotate(45deg) translate(8px, 20px);
}

.success-icon::after {
  width: 20px;
  height: 8px;
  transform: rotate(-45deg) translate(-3px, 25px);
}

.success-page h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  animation: fadeInUp 1s var(--bounce-timing) 0.3s both;
}

.success-page p {
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 2rem;
  color: var(--gray);
  animation: fadeInUp 1s var(--bounce-timing) 0.6s both;
}

.success-page .btn {
  animation: fadeInUp 1s var(--bounce-timing) 0.9s both;
}

/* Страницы privacy и terms */
.content-page {
  padding-top: 120px;
  padding-bottom: 5rem;
}

.content-page h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.content-page .content-container {
  max-width: 800px;
  margin: 0 auto;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(34, 34, 34, 0.9);
  color: var(--text-light);
  padding: 1rem;
  z-index: 9999;
  display: none;
}

.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;
  padding-right: 1rem;
}

/* Читать далее */
.read-more {
  font-weight: 600;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
  padding-right: 20px;
  transition: var(--transition-fast);
}

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

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

.read-more:hover::after {
  right: -5px;
}

/* Parallax и анимации */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

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

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

@keyframes bounceIn {
  0%, 20%, 40%, 60%, 80%, 100% {
    animation-timing-function: var(--bounce-timing);
  }
  0% {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }
  20% {
    transform: scale3d(1.1, 1.1, 1.1);
  }
  40% {
    transform: scale3d(0.9, 0.9, 0.9);
  }
  60% {
    opacity: 1;
    transform: scale3d(1.03, 1.03, 1.03);
  }
  80% {
    transform: scale3d(0.97, 0.97, 0.97);
  }
  100% {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
}

/* Медиа-запросы */
@media (max-width: 991.98px) {
  .section-title {
    font-size: 2rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-dot {
    left: 18px;
    right: auto;
  }
  
  .timeline-item:nth-child(even) .timeline-dot {
    left: 18px;
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 4rem 0;
  }
  
  .contact-info {
    margin-bottom: 2rem;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-content p {
    margin-bottom: 1rem;
    padding-right: 0;
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    min-height: 500px;
    padding: 6rem 0;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
}