:root {
  /* Триада: основные цвета */
  --primary-color: #4a62b3; /* Синий */
  --secondary-color: #b34a62; /* Красный */
  --tertiary-color: #62b34a; /* Зеленый */

  /* Вариации основных цветов */
  --primary-dark: #354989;
  --primary-light: #7d8fd0;
  --secondary-dark: #8d3a4c;
  --secondary-light: #d07d8f;
  --tertiary-dark: #4a8d39;
  --tertiary-light: #8fd07d;

  /* Нейтральные цвета */
  --neutral-100: #ffffff;
  --neutral-200: #f5f7fa;
  --neutral-300: #e4e7ed;
  --neutral-400: #cbd2df;
  --neutral-500: #9aa5b9;
  --neutral-600: #6c7a93;
  --neutral-700: #4a546e;
  --neutral-800: #313a54;
  --neutral-900: #1a2036;

  /* Тени для объемных элементов */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(26, 32, 54, 0.1);
  --shadow-lg: 0 8px 16px rgba(26, 32, 54, 0.1);
  --shadow-xl: 0 12px 24px rgba(26, 32, 54, 0.15);

  /* Размер шрифта */
  --font-size-xs: 0.75rem; /* 12px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-base: 1rem; /* 16px */
  --font-size-lg: 1.125rem; /* 18px */
  --font-size-xl: 1.25rem; /* 20px */
  --font-size-2xl: 1.5rem; /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem; /* 36px */
  --font-size-5xl: 3rem; /* 48px */

  /* Радиус скругления */
  --radius-sm: 0.125rem; /* 2px */
  --radius-md: 0.25rem; /* 4px */
  --radius-lg: 0.5rem; /* 8px */
  --radius-xl: 1rem; /* 16px */
  --radius-full: 9999px; /* полностью круглый */

  /* Анимации */
  --transition-fast: 150ms;
  --transition-normal: 300ms;
  --transition-slow: 500ms;

  /* Контейнер */
  --container-padding: 1.5rem;

  /* Z-индексы */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

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

body {
  font-family: "Lato", sans-serif;
  color: var(--neutral-800);
  line-height: 1.6;
  background-color: var(--neutral-100);
  overflow-x: hidden;
}

section:nth-of-type(1) {
  padding-top: 50px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

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

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

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

/* Кнопки */
.button {
  transition: all var(--transition-normal) ease;
  position: relative;
  overflow: hidden;
  font-weight: 500;
}

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

.button.is-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.button.is-secondary:hover {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.button.is-tertiary:hover {
  background-color: var(--tertiary-dark);
  border-color: var(--tertiary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.button.is-light.is-outlined {
  border-color: var(--neutral-100);
  color: var(--neutral-100);
}

.button.is-light.is-outlined:hover {
  background-color: var(--neutral-100);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Ссылки "Читать далее" */
.read-more {
  display: inline-block;
  position: relative;
  color: var(--primary-color);
  font-weight: 500;
  padding-bottom: 2px;
  transition: color var(--transition-normal) ease;
}

.read-more::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform var(--transition-normal) ease;
}

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

.read-more:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

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

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

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

.card-image img {
  transition: transform var(--transition-slow) ease;
  width: 100%;
  height: auto;
  object-fit: cover;
  margin: 0 auto;
}

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

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

/* Навигация */
.navbar-menu {
  background: transparent;
  transition: background-color var(--transition-normal) ease;
  padding: 0.5rem 0;
}

.navbar-menu.is-active {
  background-color: var(--neutral-100);
  box-shadow: var(--shadow-md);
}

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

.navbar-menu-burger {
  color: var(--neutral-800);
}

/* Hero секция */
.hero {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-body {
  z-index: 10;
  padding: 6rem 1.5rem;
}

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

.icon-scroll {
  width: 30px;
  height: 50px;
  border: 2px solid white;
  border-radius: 25px;
  position: relative;
  margin: 0 auto;
}

.icon-scroll::before {
  content: "";
  width: 8px;
  height: 8px;
  background-color: white;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 0.5;
    transform: translateX(-50%) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Секции */
.section {
  padding: 5rem 1.5rem;
}

.section:nth-child(even) {
  background-color: var(--neutral-200);
}

.has-background-primary-light {
  background-color: rgba(74, 98, 179, 0.1);
}

.has-background-light {
  background-color: var(--neutral-200);
}

/* Секция сервисов */
#services .card {
  margin-bottom: 2rem;
}

/* Галерея */
.custom-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.slider-container {
  display: flex;
  transition: transform var(--transition-normal) ease;
}

.slide {
  min-width: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  color: white;
}

.slider-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 20;
}

.prev-slide,
.next-slide {
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0 1rem;
  transition: background-color var(--transition-normal) ease;
}

.prev-slide:hover,
.next-slide:hover {
  background-color: var(--neutral-100);
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
}

.dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color var(--transition-normal) ease;
}

.dot.active {
  background-color: white;
}

/* История секция */
#notre-histoire .column img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Воркшопы и вебинары */
#workshops .card,
#webinars .card {
  position: relative;
}

.workshop-details,
.webinar-details {
  background-color: var(--neutral-200);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin: 1rem 0;
}

/* Ресурсы */
.resource-links {
  list-style: none;
  padding: 0;
}

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

.resource-links li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Инсайты */
#insights .card-image {
  height: 250px;
  overflow: hidden;
}

#insights .card-image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Исследования */
#research .content {
  background-color: var(--neutral-100);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* События */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 4px;
  background-color: var(--primary-light);
  left: 0;
  margin-left: -2px;
}

.timeline-item {
  padding-left: 2rem;
  position: relative;
  margin-bottom: 2rem;
}

.timeline-marker {
  position: absolute;
  top: 0;
  left: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--primary-color);
  border: 2px solid var(--neutral-100);
  box-shadow: var(--shadow-sm);
}

.timeline-content {
  padding: 1.5rem;
  background-color: var(--neutral-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
}

.timeline-content::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 10px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-right: 10px solid var(--neutral-100);
  border-bottom: 10px solid transparent;
}

.event-date {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Почему мы */
#pourquoi-nous .card {
  margin-bottom: 2rem;
}

/* Истории успеха */
.testimonials {
  position: relative;
}

.testimonial {
  margin-bottom: 2rem;
}

.testimonial-content {
  padding: 1.5rem;
  background-color: var(--neutral-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
}

.testimonial-content::before {
  content: '"';
  position: absolute;
  left: 1rem;
  top: -1rem;
  font-size: 5rem;
  color: var(--primary-light);
  opacity: 0.3;
  line-height: 1;
}

.testimonial-content img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* FAQ */
.accordion {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--neutral-100);
  box-shadow: var(--shadow-md);
}

.accordion-item {
  border-bottom: 1px solid var(--neutral-300);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color var(--transition-normal) ease;
}

.accordion-header:hover {
  background-color: var(--neutral-200);
}

.accordion-content {
  padding: 0 1.5rem 1.5rem;
  display: none;
}

.accordion-content.is-active {
  display: block;
}

/* Контакт */
.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
}

form .field:not(:last-child) {
  margin-bottom: 1.5rem;
}

/* Футер */
.footer {
  padding: 4rem 1.5rem;
  color: var(--neutral-100);
}

.footer a {
  color: var(--neutral-400);
  transition: color var(--transition-normal) ease;
}

.footer a:hover {
  color: var(--neutral-100);
}

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

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

/* Социальные сети в футере */
.footer-social a {
  display: inline-block;
  color: var(--neutral-400);
  margin-right: 1rem;
  font-size: 1.25rem;
  transition: color var(--transition-normal) ease,
    transform var(--transition-normal) ease;
}

.footer-social a:hover {
  color: var(--neutral-100);
  transform: translateY(-2px);
}

/* Страницы Terms и Privacy */
.privacy-page,
.terms-page {
  padding-top: 100px;
}

/* Страница Success */
.success-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.success-card {
  max-width: 600px;
  padding: 3rem;
  background-color: var(--neutral-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Анимации при прокрутке */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal="left"] {
  transform: translateX(-30px);
}

[data-reveal="right"] {
  transform: translateX(30px);
}

[data-reveal="bottom"] {
  transform: translateY(30px);
}

[data-reveal="top"] {
  transform: translateY(-30px);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* Медиа-запросы */
@media (max-width: 768px) {
  .hero-body {
    padding: 4rem 1rem;
  }

  .section {
    padding: 3rem 1rem;
  }

  .timeline::before {
    left: 15px;
  }

  .timeline-item {
    padding-left: 40px;
  }

  .timeline-marker {
    left: 7px;
  }
}

@media (max-width: 480px) {
  .hero .title {
    font-size: 2rem;
  }

  .hero .subtitle {
    font-size: 1.25rem;
  }

  .section {
    padding: 2rem 1rem;
  }
}

/* Вспомогательные классы */
.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-5 {
  margin-bottom: 1.5rem;
}
.mb-6 {
  margin-bottom: 3rem;
}

.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-5 {
  margin-top: 1.5rem;
}
.mt-6 {
  margin-top: 3rem;
}

.p-0 {
  padding: 0;
}
.p-1 {
  padding: 0.25rem;
}
.p-2 {
  padding: 0.5rem;
}
.p-3 {
  padding: 0.75rem;
}
.p-4 {
  padding: 1rem;
}
.p-5 {
  padding: 1.5rem;
}
.p-6 {
  padding: 3rem;
}

.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.d-flex {
  display: flex;
}
.d-inline-flex {
  display: inline-flex;
}
.flex-column {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.justify-content-center {
  justify-content: center;
}
.justify-content-between {
  justify-content: space-between;
}
.justify-content-around {
  justify-content: space-around;
}
.align-items-center {
  align-items: center;
}
.align-items-start {
  align-items: flex-start;
}
.align-items-end {
  align-items: flex-end;
}
.language-switcher {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: 1rem;
}

.lang-btn {
  border: 1px solid #ddd;
  background: white;
  color: #333;
  font-weight: 600;
  padding: 5px 12px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border-radius: 4px;
}

.lang-btn:hover {
  background: #f2f2f2;
}

.lang-btn.active {
  background: #f9a825; /* тёплый жёлто-оранжевый акцент */
  color: white;
  border-color: #f9a825;
}
