:root {
  /* Триадная цветовая схема */
  --primary-color: #3a7bd5;
  --primary-dark: #2a5a9e;
  --primary-light: #6c9eee;
  
  --secondary-color: #d53a7b;
  --secondary-dark: #9e2a5a;
  --secondary-light: #ee6c9e;
  
  --tertiary-color: #7bd53a;
  --tertiary-dark: #5a9e2a;
  --tertiary-light: #9eee6c;
  
  /* Нейтральные цвета */
  --dark: #333333;
  --darker: #222222;
  --light: #f5f5f5;
  --lighter: #ffffff;
  --medium: #888888;
  
  /* Тени */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.14);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.16);
  
  /* Переходы */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Радиусы */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  /* Шрифты */
  --font-heading: 'Archivo Black', sans-serif;
  --font-body: 'Roboto', sans-serif;
}

/* ===== ОБЩИЕ СТИЛИ ===== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--darker);
}

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

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

p {
  margin-bottom: 1.5rem;
}

.title, .subtitle {
  font-family: var(--font-heading);
}

.button {
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

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

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

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

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

.section {
  padding: 5rem 1.5rem;
}

.card {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

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

.card-image {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

.image-container {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

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

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

/* ===== HEADER & NAVBAR ===== */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
  transition: all var(--transition-normal);
}

.navbar.is-fixed-top {
  backdrop-filter: blur(10px);
}

.navbar-brand h1 {
  margin-bottom: 0;
  color: var(--primary-dark);
}

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

.navbar-item::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary-color);
  transition: all var(--transition-normal);
}

.navbar-item:hover::after {
  width: 100%;
  left: 0;
}

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

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  transform: scale(1.05);
}

.hero-body {
  z-index: 1;
  position: relative;
  padding: 12rem 1.5rem;
}

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

.hero .button {
  margin-right: 1rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-md);
}

/* ===== NOSOTROS SECTION ===== */
#nosotros {
  background-color: var(--light);
}

/* ===== TRABAJOS SECTION ===== */
#trabajos .card {
  margin-bottom: 2rem;
}

#trabajos .title {
  margin-top: 1rem;
}

/* ===== INSIGHTS SECTION ===== */
#insights {
  background-color: var(--light);
}

#insights .card {
  height: 100%;
}

#insights .card-image img {
  height: 300px;
}

/* ===== RECURSOS SECTION ===== */
#recursos {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
  color: white;
}

#recursos .title,
#recursos h3,
#recursos p {
  color: white;
}

#recursos .card {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#recursos .button {
  border-color: white;
  color: white;
}

#recursos .button:hover {
  background-color: white;
  color: var(--primary-color);
}

/* ===== TESTIMONIOS SECTION ===== */
.testimonial-rating {
  color: #FFD700;
}

#testimonios .card {
  position: relative;
  padding: 1.5rem;
}

#testimonios .card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 80px;
  font-family: var(--font-heading);
  color: var(--secondary-light);
  opacity: 0.2;
  line-height: 1;
}

/* ===== PREMIOS SECTION ===== */
#premios {
  background-color: var(--light);
}

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

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: var(--tertiary-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--tertiary-color);
  box-shadow: var(--shadow-md);
  z-index: 1;
}

.timeline-content {
  width: 45%;
  background-color: white;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 0;
  margin-right: auto;
}

.timeline-item .heading {
  color: var(--tertiary-dark);
  font-weight: bold;
}

/* ===== CALENDARIO SECTION ===== */
#calendario .card {
  height: 100%;
  margin-bottom: 2rem;
}

#calendario .heading {
  color: var(--secondary-color);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

#calendario .card-image img {
  height: 250px;
}

/* ===== CONTACTO SECTION ===== */
#contacto {
  position: relative;
}

#contacto .card {
  height: 100%;
}

.contact-info {
  margin-bottom: 2rem;
}

.contact-info .icon {
  color: var(--primary-color);
}

.input, .textarea, .select select {
  border-radius: var(--radius-sm);
  box-shadow: none;
  border: 2px solid #e9e9e9;
  transition: border-color var(--transition-fast);
}

.input:focus, .textarea:focus, .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 1px var(--primary-light);
}

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

/* ===== FOOTER ===== */
.footer {
  background-color: var(--darker);
  color: white;
  padding: 4rem 1.5rem 2rem;
}

.footer h3 {
  color: white;
}

.footer a {
  color: var(--light);
  transition: color var(--transition-fast);
}

.footer a:hover {
  color: var(--primary-light);
}

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

.social-links a {
  display: inline-block;
  margin-right: 1rem;
  color: var(--light);
  font-weight: 500;
  transition: all var(--transition-fast);
}

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

/* ===== SUCCESS PAGE ===== */
.success-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem;
  background-color: var(--light);
}

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

/* ===== PRIVACY & TERMS PAGES ===== */
.privacy-page, .terms-page, .about-page, .contacts-page {
  padding-top: 100px;
  padding-bottom: 4rem;
}

/* ===== MEDIA QUERIES ===== */
@media screen and (max-width: 1023px) {
  .timeline::before {
    left: 30px;
  }
  
  .timeline-marker {
    left: 30px;
  }
  
  .timeline-content {
    width: calc(100% - 80px);
    margin-left: 80px !important;
  }
  
  .timeline-item:nth-child(even) .timeline-content {
    margin-right: 0;
  }
}

@media screen and (max-width: 768px) {
  .hero-body {
    padding: 8rem 1.5rem;
  }
  
  .section {
    padding: 4rem 1.5rem;
  }
  
  h1.title.is-1 {
    font-size: 2.5rem;
  }
  
  h2.title.is-2 {
    font-size: 2rem;
  }
  
  .card-image img {
    height: 200px;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes bounceIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes slideUpIn {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.animate-bounce {
  animation: bounceIn 0.8s ease forwards;
}

.animate-slide {
  animation: slideUpIn 0.6s ease forwards;
}

.animate-fade {
  animation: fadeIn 0.8s ease forwards;
}

/* ===== COOKIE POPUP ===== */
#cookiePopup {
  font-family: var(--font-body);
  border-top: 3px solid var(--primary-color);
}

#acceptCookies {
  background-color: var(--primary-color);
  color: white;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-weight: 500;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

#acceptCookies:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}