:root {
  /* Аналоговая цветовая схема */
  --primary-color: #3273dc;
  --primary-dark: #1a56b8;
  --primary-light: #4a89f0;
  --secondary-color: #32a8dc;
  --secondary-dark: #1a88b8;
  --secondary-light: #4ac2f0;
  --accent-color: #327fdc;
  --accent-dark: #1a5eb8;
  --accent-light: #4a9bf0;
  
  /* Оттенки для фонов */
  --light-bg: #f5f8ff;
  --dark-bg: #253555;
  --gradient-bg: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-color) 100%);
  
  /* Оттенки текста */
  --text-dark: #333333;
  --text-medium: #555555;
  --text-light: #f5f5f5;
  
  /* Биоморфный дизайн - радиусы и тени */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 24px;
  --box-shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
  --box-shadow-medium: 0 15px 35px rgba(0, 0, 0, 0.15);
  
  /* Переходы */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Размеры контейнеров */
  --container-padding: 2rem;
  --section-spacing: 5rem;
}

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

h1, h2, h3, h4, h5, h6, .title, .subtitle {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--text-dark);
}

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

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

.section {
  padding: 5rem 1.5rem;
}

.container {
  padding: 0 var(--container-padding);
}

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

/* ===== Кнопки ===== */
.button {
  transition: all var(--transition-medium);
  border-radius: var(--border-radius-md);
  font-weight: 500;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.button.is-primary {
  background-color: var(--primary-color);
}

.button.is-primary:hover {
  background-color: var(--primary-dark);
}

.button.is-primary.is-outlined {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.button.is-primary.is-outlined:hover {
  background-color: var(--primary-color);
  color: white;
}

.button.is-rounded {
  border-radius: 50px;
  padding-left: 1.5em;
  padding-right: 1.5em;
}

/* ===== Карточки ===== */
.card {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--box-shadow-soft);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.card-image {
  width: 100%;
  overflow: hidden;
  text-align: center;
}

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

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

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

/* ===== Header & Navigation ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: background-color var(--transition-medium);
}

.navbar {
  padding: 0.5rem 0;
}

.navbar-item {
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

.navbar-burger {
  color: var(--text-dark);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-body {
  padding: 7rem 1.5rem;
  z-index: 2;
}

.hero .title, .hero .subtitle, .hero p {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero .subtitle {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero-foot {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  z-index: 2;
}

.arrow-down {
  animation: bounce 2s infinite;
}

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

/* ===== About Section ===== */
.about-section {
  background-color: white;
}

/* ===== Precios Section ===== */
.precios-section {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--text-light);
}

.precio-card {
  background-color: white;
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-soft);
  transition: transform var(--transition-medium);
}

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

.price-tag {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 1rem 0;
}

/* ===== Process Section ===== */
.process-section {
  background-color: var(--light-bg);
}

.process-timeline {
  position: relative;
}

.process-item {
  position: relative;
  padding: 1.5rem;
  margin-bottom: 3rem;
  background-color: white;
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-soft);
  transition: transform var(--transition-medium);
  display: flex;
  align-items: flex-start;
}

.process-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-medium);
}

.process-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: 50%;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.process-content {
  flex-grow: 1;
}

.process-content h3 {
  margin-bottom: 1rem;
}

.image-container {
  margin-top: 1.5rem;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  width: 100%;
  text-align: center;
}

.image-container img {
  max-width: 100%;
  transition: transform var(--transition-medium);
}

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

/* ===== Portfolio Section ===== */
.portfolio-section {
  background-color: var(--light-bg);
}

.portfolio-item {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.portfolio-item .card-image {
  height: 250px;
}

.portfolio-item .card-image img {
  height: 100%;
  object-fit: cover;
}

/* ===== External Resources Section ===== */
.external-resources-section {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--text-light);
}

.resource-card {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  height: 100%;
}

/* ===== Insights Section ===== */
.insights-section {
  background-color: white;
}

.insight-card {
  height: 100%;
}

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

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

/* ===== News Section ===== */
.news-section {
  background-color: var(--light-bg);
}

.news-card {
  height: 100%;
}

.news-card .card-image {
  height: 220px;
}

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

.news-date {
  font-size: 0.9rem;
  color: var(--text-medium);
  margin-bottom: 0.5rem;
}

.news-card .button {
  align-self: flex-start;
  margin-top: auto;
}

/* ===== Contact Section ===== */
.contact-section {
  background-color: white;
}

.contact-form-container {
  background-color: var(--light-bg);
  padding: 2rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-soft);
}

.contact-card {
  height: 100%;
}

.map-container {
  height: 250px;
  overflow: hidden;
  border-radius: var(--border-radius-md);
}

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

/* ===== Footer ===== */
.footer {
  background-color: var(--dark-bg);
  color: var(--text-light);
  padding: 4rem 1.5rem;
}

.footer .title {
  color: white;
}

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

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

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

.footer-links a:hover {
  color: white;
}

.social-links a {
  color: rgba(255, 255, 255, 0.8);
  display: inline-block;
  transition: color var(--transition-fast), transform var(--transition-fast);
  margin-right: 1rem;
}

.social-links a:hover {
  color: white;
  transform: translateY(-2px);
}

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

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

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

/* ===== Privacy & Terms Pages ===== */
.legal-page {
  padding-top: 100px;
}

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

/* ===== Animations ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive Adjustments ===== */
@media screen and (max-width: 768px) {
  .hero .title {
    font-size: 2.5rem;
  }
  
  .hero .subtitle {
    font-size: 1.5rem;
  }
  
  .process-item {
    flex-direction: column;
  }
  
  .process-number {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

@media screen and (max-width: 576px) {
  .hero .title {
    font-size: 2rem;
  }
  
  .hero .subtitle {
    font-size: 1.2rem;
  }
  
  .price-tag {
    font-size: 2rem;
  }
}

/* ===== Script de JavaScript para animaciones ===== */
document.addEventListener('DOMContentLoaded', function() {
  // Burger menu
  const $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0);
  if ($navbarBurgers.length > 0) {
    $navbarBurgers.forEach(el => {
      el.addEventListener('click', () => {
        const target = el.dataset.target;
        const $target = document.getElementById(target);
        el.classList.toggle('is-active');
        $target.classList.toggle('is-active');
      });
    });
  }
  
  // Scroll animations
  const animateElements = document.querySelectorAll('.animate-on-scroll');
  
  function checkInView() {
    animateElements.forEach(element => {
      const elementTop = element.getBoundingClientRect().top;
      const elementBottom = element.getBoundingClientRect().bottom;
      const isVisible = (elementTop < window.innerHeight - 100) && (elementBottom > 0);
      
      if (isVisible) {
        element.classList.add('is-visible');
      }
    });
  }
  
  // Trigger on initial load
  checkInView();
  
  // Trigger on scroll
  window.addEventListener('scroll', checkInView);
});