:root {
  /* Основная цветовая палитра */
  --primary-color: #4364f7;
  --primary-dark: #304dd2;
  --primary-light: #6b89ff;
  --secondary-color: #ff5e62;
  --secondary-dark: #e44347;
  --secondary-light: #ff7b7d;
  --accent-color: #43e97b;
  --accent-dark: #33c967;
  --accent-light: #6fffa0;
  
  /* Нейтральные цвета */
  --bg-color: #f0f2f5;
  --bg-dark: #e1e5eb;
  --bg-light: #ffffff;
  --text-dark: #222222;
  --text-medium: #444444;
  --text-light: #ffffff;
  
  /* Нейроморфические тени */
  --neumorphic-light: 8px 8px 16px rgba(174, 174, 192, 0.3);
  --neumorphic-dark: -8px -8px 16px rgba(255, 255, 255, 0.7);
  --neumorphic-flat: 4px 4px 8px rgba(174, 174, 192, 0.2), -4px -4px 8px rgba(255, 255, 255, 0.7);
  --neumorphic-pressed: inset 4px 4px 8px rgba(174, 174, 192, 0.2), inset -4px -4px 8px rgba(255, 255, 255, 0.7);
  
  /* Размеры и отступы */
  --section-spacing: 5rem;
  --card-spacing: 1.5rem;
  --border-radius: 16px;
  --button-radius: 30px;
}

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

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

p {
  margin-bottom: 1.2rem;
}

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

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

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

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

/* Нейроморфические компоненты */
.neumorph-card {
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  box-shadow: var(--neumorphic-light), var(--neumorphic-dark);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.neumorph-card:hover {
  transform: translateY(-5px);
  box-shadow: 10px 10px 20px rgba(174, 174, 192, 0.4), -10px -10px 20px rgba(255, 255, 255, 0.8);
}

.neumorph-header {
  background-color: rgba(240, 242, 245, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.neumorph-header.scrolled {
  padding: 0.5rem 0;
}

.neumorph-btn {
  background: var(--bg-color);
  color: var(--primary-color);
  border: none;
  border-radius: var(--button-radius);
  padding: 0.8rem 2rem;
  font-weight: 500;
  box-shadow: var(--neumorphic-flat);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.neumorph-btn:hover {
  color: var(--text-light);
  transform: translateY(-2px);
}

.neumorph-btn:hover::after {
  transform: scaleX(1);
}

.neumorph-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.neumorph-btn:active {
  box-shadow: var(--neumorphic-pressed);
  transform: translateY(0);
}

.btn-primary, .btn-primary:hover {
  background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
  color: var(--text-light);
}

.neumorph-input {
  background-color: var(--bg-color);
  border: none;
  border-radius: var(--border-radius);
  padding: 1rem;
  box-shadow: inset 4px 4px 8px rgba(174, 174, 192, 0.2), inset -4px -4px 8px rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.neumorph-input:focus {
  outline: none;
  box-shadow: inset 6px 6px 10px rgba(174, 174, 192, 0.3), inset -6px -6px 10px rgba(255, 255, 255, 0.8);
}

.neumorph-progress {
  height: 10px;
  background-color: var(--bg-dark);
  border-radius: 5px;
  box-shadow: inset 2px 2px 4px rgba(174, 174, 192, 0.3), inset -2px -2px 4px rgba(255, 255, 255, 0.7);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar {
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  border-radius: 5px;
}

.neumorph-accordion {
  border: none;
  background-color: transparent;
  margin-bottom: 1rem;
}

.neumorph-accordion .accordion-button {
  background-color: var(--bg-color);
  box-shadow: var(--neumorphic-flat);
  border-radius: var(--border-radius) !important;
  color: var(--text-dark);
  font-weight: 500;
  padding: 1.2rem;
}

.neumorph-accordion .accordion-button:not(.collapsed) {
  background-color: var(--bg-color);
  color: var(--primary-color);
  box-shadow: var(--neumorphic-pressed);
}

.neumorph-accordion .accordion-button:focus {
  box-shadow: none;
  border: none;
}

.neumorph-accordion .accordion-body {
  background-color: var(--bg-light);
  border-bottom-left-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
  padding: 1.5rem;
}

/* Анимированные иконки */
.animated-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: inline-block;
  animation: pulse 2s infinite;
}

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

/* Секция Hero */
.hero-section {
  padding: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-card {
  background-color: rgba(240, 242, 245, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-section h2, .hero-section p {
  color: var(--text-light);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Секция услуг */
.servicios-section {
  background-color: var(--bg-color);
}

.section-title {
  position: relative;
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--text-medium);
  margin-bottom: 3rem;
}

.service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card .card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  text-align: center;
}

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

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

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  text-align: center;
}

.progress-container {
  width: 100%;
  margin-top: 1.5rem;
}

.progress-container span {
  font-size: 0.9rem;
  color: var(--text-medium);
}

/* Секция статистики */
.estadisticas-section {
  background-color: var(--bg-light);
}

.stats-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.stats-card h3 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin: 1rem 0;
}

.growth-chart-card {
  height: 100%;
}

.growth-chart-card h3 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.chart-container {
  height: 300px;
  margin-bottom: 1.5rem;
  text-align: center;
}

.chart-container img {
  height: 100%;
  object-fit: contain;
  margin: 0 auto;
}

/* Секция ресурсов */
.recursos-section {
  background: linear-gradient(135deg, var(--bg-color), var(--bg-light));
}

.recurso-card {
  height: 100%;
}

.recurso-card h3 {
  margin-bottom: 1.5rem;
  text-align: center;
}

.recurso-list {
  list-style: none;
  padding: 0;
}

.recurso-list li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
}

.recurso-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

.recurso-list a {
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.recurso-list a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Секция галереи */
.galeria-section {
  background-color: var(--bg-color);
}

.gallery-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-card .card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  text-align: center;
}

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

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

.gallery-card .card-content {
  text-align: center;
  flex-grow: 1;
}

.gallery-card .card-content h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* Behind the Scenes Section */
.behind-scenes-section {
  background-color: var(--bg-light);
}

.scenes-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.scenes-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border-radius: var(--border-radius);
}

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

.methodology-card {
  margin-top: 2rem;
}

/* Careers Section */
.careers-section {
  background: linear-gradient(135deg, var(--bg-color), var(--bg-light));
}

.team-culture-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.team-culture-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border-radius: var(--border-radius);
}

.team-culture-card .card-content {
  text-align: center;
}

.positions-card {
  height: 100%;
}

.positions-card h3 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.positions-card .btn {
  margin-top: 1rem;
}

/* Contact Section */
.contact-section {
  background-color: var(--bg-color);
}

.contact-info-card, .contact-form-card {
  height: 100%;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

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

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

.map-container {
  height: 250px;
  margin-top: 2rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  text-align: center;
}

.map-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 auto;
}

.contact-form-card h3 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.form-label {
  color: var(--text-dark);
  font-weight: 500;
}

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

.footer-brand h2 {
  font-size: 2rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

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

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

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

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

.social-links {
  margin-bottom: 2rem;
}

.social-links a {
  color: rgba(255, 255, 255, 0.7);
  margin-right: 1rem;
  transition: all 0.3s ease;
}

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

.copyright-row {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright-row p {
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(34, 34, 34, 0.95);
  z-index: 9999;
  padding: 1rem;
  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 {
  color: var(--text-light);
  margin-bottom: 0;
  margin-right: 1rem;
}

.cookie-content a {
  color: var(--accent-light);
}

.btn-accept {
  background-color: var(--accent-color);
  color: var(--text-dark);
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-accept:hover {
  background-color: var(--accent-light);
}

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

.success-card {
  max-width: 600px;
  text-align: center;
  padding: 3rem;
}

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

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-20px); }
  60% { transform: translateY(-10px); }
}

/* About, Terms, Privacy Pages */
.page-content {
  padding-top: 120px;
  padding-bottom: 5rem;
}

.page-title {
  margin-bottom: 3rem;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-section {
    height: 80vh;
  }
  
  .hero-card {
    padding: 1.5rem;
  }
  
  .footer-section h3 {
    margin-top: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: auto;
    padding: 8rem 0 5rem;
  }
  
  .neumorph-card {
    padding: 1.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .stats-card h3 {
    font-size: 2rem;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-content p {
    margin-bottom: 1rem;
    margin-right: 0;
  }
  
  .map-container {
    height: 200px;
  }
}

@media (max-width: 576px) {
  section {
    padding: 3rem 0;
  }
  
  .hero-section {
    padding: 7rem 0 4rem;
  }
  
  .neumorph-btn {
    padding: 0.7rem 1.5rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .service-card .card-image {
    height: 180px;
  }
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* Parallax Effect */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

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

.navbar-nav .nav-link {
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.8rem 1rem;
  margin: 0 0.2rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color);
  background-color: rgba(67, 100, 247, 0.08);
}

/* Read more links */
.read-more {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 500;
  margin-top: 0.5rem;
  transition: all 0.3s ease;
}

.read-more:after {
  content: '→';
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

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

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

/* Ensure all card images are centered */
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
}

.card-image img {
  margin: 0 auto;
}

.card-content {
  width: 100%;
}