:root {
  /* Нейроморфная пастельная палитра */
  --primary: #e8d5c4;
  --primary-dark: #d9c2ac;
  --secondary: #eedfce;
  --accent: #a78b71;
  --accent-light: #c4b19a;
  --text-dark: #3a3a3a;
  --text-light: #ffffff;
  --text-muted: #767676;
  --background: #f0e9e2;
  --background-light: #f8f5f2;
  --background-dark: #e5ddd5;
  --shadow-light: rgba(255, 255, 255, 0.8);
  --shadow-dark: rgba(185, 165, 150, 0.2);
  --error: #e76f51;
  --success: #6b9080;
  --info: #a8dadc;
  --warning: #e9c46a;
  
  /* Размеры и отступы */
  --border-radius-sm: 8px;
  --border-radius: 15px;
  --border-radius-lg: 30px;
  --section-padding: 5rem 0;
  --section-padding-sm: 3rem 0;
  --card-padding: 2rem;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

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

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

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.section-divider {
  width: 80px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto 2rem;
  position: relative;
}

.section-divider::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 3px;
  background: var(--accent-light);
  left: 20px;
  transform: translateX(-50%);
  border-radius: var(--border-radius-sm);
}

.section-padding {
  padding: var(--section-padding);
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

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

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

a:hover {
  color: var(--accent-light);
  text-decoration: none;
}

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

/* Neuromorphic Card Styles */
.neuromorphic-card {
  background: var(--background-light);
  border-radius: var(--border-radius);
  box-shadow: 8px 8px 16px var(--shadow-dark), 
             -8px -8px 16px var(--shadow-light);
  padding: var(--card-padding);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

/* Neuromorphic Input Styles */
.neuromorphic-input {
  background-color: var(--background);
  border: none;
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 1rem;
  box-shadow: inset 4px 4px 8px var(--shadow-dark), 
              inset -4px -4px 8px var(--shadow-light);
  transition: var(--transition);
}

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

/* Button Styles */
.btn {
  border-radius: var(--border-radius-sm);
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-align: center;
}

.btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  transition: height 0.3s;
  z-index: -1;
}

.btn:hover::after {
  height: 100%;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--accent-light);
  color: var(--text-light);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

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

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
}

.animated-btn {
  position: relative;
  overflow: hidden;
}

.animated-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transition: left 0.7s;
  z-index: 0;
}

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

/* Header & Navigation Styles */
.header {
  background-color: rgba(240, 233, 226, 0.95);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  transition: var(--transition);
  z-index: 1000;
}

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

.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent);
}

.navbar-light .navbar-nav .nav-link {
  color: var(--text-dark);
  font-weight: 600;
  padding: 0.5rem 1rem;
  position: relative;
}

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

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
  color: var(--accent);
}

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

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: fadeIn 1.5s ease-out;
}

.hero-content h1 {
  color: var(--text-light);
  font-size: 3rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  color: var(--text-light);
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.parallax-section {
  background-attachment: fixed;
}

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

/* About Section */
.about-section {
  position: relative;
}

.about-content {
  padding: 1.5rem;
}

.about-content h3 {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  position: relative;
}

.about-accordion .accordion-item {
  border: none;
  margin-bottom: 1rem;
}

.about-accordion .accordion-button {
  background-color: var(--background-light);
  color: var(--text-dark);
  font-weight: 600;
  box-shadow: none;
  border-radius: var(--border-radius-sm);
}

.about-accordion .accordion-button:not(.collapsed) {
  background-color: var(--accent-light);
  color: var(--text-light);
}

.about-accordion .accordion-body {
  background-color: var(--background-light);
  border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
}

.image-container {
  overflow: hidden;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-container img {
  transition: transform 0.5s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* History Section */
.history-section {
  position: relative;
}

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

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: 2px;
  background: var(--accent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.timeline-item:nth-child(even) {
  justify-content: flex-end;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 0 5px var(--background-light);
}

.timeline-content {
  width: 45%;
  padding: 1.5rem;
  background: var(--background-light);
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.timeline-container {
  position: relative;
}

/* Methodology Section */
.methodology-section {
  position: relative;
}

.methodology-card {
  margin-bottom: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.methodology-card .card-image {
  overflow: hidden;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  margin: -2rem -2rem 1.5rem -2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.methodology-card .card-image img {
  transition: transform 0.5s ease;
  width: 100%;
  height: 250px;
  object-fit: cover;
}

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

.methodology-card .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.methodology-card .card-content h3 {
  color: var(--text-dark);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.methodology-card .card-content h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--accent);
}

/* Insights Section */
.insights-section {
  position: relative;
}

.insight-card {
  margin-bottom: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.insight-card .card-image {
  overflow: hidden;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  margin: -2rem -2rem 1.5rem -2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.insight-card .card-image img {
  transition: transform 0.5s ease;
  width: 100%;
  height: 250px;
  object-fit: cover;
}

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

.insight-card .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.insight-card .card-content h3 {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

/* Resources Section */
.resources-section {
  position: relative;
}

.resource-card {
  margin-bottom: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.resource-card h3 {
  color: var(--accent);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.resource-card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--accent);
}

.resource-card ul {
  padding-left: 0;
  list-style: none;
}

.resource-card ul li {
  margin-bottom: 1.5rem;
}

.resource-card a {
  color: var(--accent);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.5rem;
  position: relative;
}

.resource-card a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

.resource-card a:hover::after {
  width: 100%;
}

.resource-links {
  margin-top: 1rem;
}

.resource-card .card-image {
  overflow: hidden;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  margin: -2rem -2rem 1.5rem -2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.resource-card .card-image img {
  transition: transform 0.5s ease;
  width: 100%;
  height: 400px;
  object-fit: cover;
}

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

.resource-card .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Portfolio Section */
.portfolio-section {
  position: relative;
}

.portfolio-card {
  margin-bottom: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.portfolio-card .card-image {
  overflow: hidden;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  margin: -2rem -2rem 1.5rem -2rem;
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.portfolio-card .card-image img {
  transition: transform 0.5s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.portfolio-card .card-content {
  padding: 0.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.portfolio-card .card-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.portfolio-card .card-content p {
  margin-bottom: 1.5rem;
}

/* Media Section */
.media-section {
  position: relative;
}

.media-card {
  margin-bottom: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.media-card .card-image {
  overflow: hidden;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  margin: -2rem -2rem 1.5rem -2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.media-card .card-image img {
  transition: transform 0.5s ease;
  width: 100%;
  height: 300px;
  object-fit: cover;
}

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

.media-card .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.media-links {
  margin-top: auto;
}

.media-video {
  padding: 2rem;
  margin-top: 2rem;
}

.video-placeholder {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--border-radius);
  position: relative;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 400px;
}

.play-button {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.play-button i {
  font-size: 2rem;
  color: var(--accent);
}

.video-placeholder:hover .play-button {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

/* Careers Section */
.careers-section {
  position: relative;
}

.careers-content {
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.careers-content h4 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.careers-content ul {
  padding-left: 1.25rem;
  margin-bottom: 2rem;
}

.careers-content ul li {
  margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-section {
  position: relative;
}

.contact-info {
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

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

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

.contact-map {
  margin-top: 2rem;
  height: 300px;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.map-container {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.contact-form {
  height: 100%;
}

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

/* Footer Section */
.footer-section {
  padding: 5rem 0 2rem;
  position: relative;
  background: #333;
  color: var(--text-light);
}

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

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

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

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

.footer-links a {
  color: var(--text-light);
  opacity: 0.8;
  transition: var(--transition);
}

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

.newsletter-form {
  margin-top: 1.5rem;
}

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

.social-link {
  color: var(--text-light);
  margin-right: 1rem;
  opacity: 0.8;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.footer-bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.terms-links {
  display: flex;
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.terms-links li {
  margin-left: 1.5rem;
}

.terms-links a {
  color: var(--text-light);
  opacity: 0.8;
  transition: var(--transition);
}

.terms-links a:hover {
  opacity: 1;
  color: var(--accent);
}

/* Success, Privacy, Terms Pages */
.success-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem;
}

.success-content {
  max-width: 600px;
  padding: 3rem;
}

.privacy-page, .terms-page {
  padding-top: 100px;
  padding-bottom: 5rem;
}

.privacy-content, .terms-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

/* 3D Effects */
.card-3d-effect {
  transition: transform 0.5s ease;
  transform-style: preserve-3d;
}

.card-3d-effect:hover {
  transform: translateY(-10px) rotateX(5deg);
}

/* Media Queries */
@media (max-width: 991.98px) {
  .section-title {
    font-size: 2.2rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .timeline-item:nth-child(even) {
    justify-content: flex-start;
  }
  
  .timeline-dot {
    left: 30px;
  }
  
  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .terms-links {
    margin-top: 1rem;
    justify-content: center;
  }
  
  .terms-links li {
    margin: 0 0.75rem;
  }
}

@media (max-width: 767.98px) {
  .section-title {
    font-size: 2rem;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .methodology-card .card-image img,
  .insight-card .card-image img,
  .portfolio-card .card-image img {
    height: 200px;
  }
  
  .media-card .card-image img {
    height: 200px;
  }
  
  .contact-map {
    height: 200px;
  }
  
  .video-placeholder {
    min-height: 300px;
  }
  
  .play-button {
    width: 60px;
    height: 60px;
  }
  
  .play-button i {
    font-size: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .section-title {
    font-size: 1.8rem;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .btn-lg {
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
  }
  
  .timeline-content {
    padding: 1rem;
  }
  
  .video-placeholder {
    min-height: 200px;
  }
  
  .contact-info, .contact-form {
    padding: 1.5rem;
  }
}

/* Animations */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

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

.float-animation {
  animation: float 6s ease-in-out infinite;
}

.pulse-animation {
  animation: pulse 3s infinite;
}

/* Page Transitions */
.fade-enter {
  opacity: 0;
}

.fade-enter-active {
  opacity: 1;
  transition: opacity 500ms;
}

.fade-exit {
  opacity: 1;
}

.fade-exit-active {
  opacity: 0;
  transition: opacity 500ms;
}