:root {
  --color1: #cee871;
  --color2: #f2db89;
  --color3: #1737a2;
  --color4: #2081d9;
  --color5: #efefed;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: var(--color5);
  color: var(--color3);
  overflow-x: hidden;
}

.reveal-element {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-element.is-visible {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu {
  transition: transform 0.3s ease-in-out;
  transform: translateX(100%);
}
#mobile-menu.active {
  transform: translateX(0);
}
#burger-btn span {
  transition: all 0.3s ease-in-out;
}
#burger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#burger-btn.active span:nth-child(2) {
  opacity: 0;
}
#burger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

#hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  transition: transform 0.2s ease-out;
}

.deco-shape-1 {
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background-color: var(--color1);
  border-radius: 50%;
  opacity: 0.5;
  z-index: -1;
}

.parallax-element-slow {
  transition: transform 0.1s ease-out;
}
.parallax-element-fast {
  transition: transform 0.1s ease-out;
}

.section-bg-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -2;
}
.section-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

.horizontal-scroll-item {
  min-width: 300px;
  transition: transform 0.5s ease-out;
}
.horizontal-scroll-item:hover {
  transform: scale(1.05);
}

.deco-grid {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  background-image: linear-gradient(
      to right,
      var(--color4) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, var(--color4) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.1;
  z-index: -1;
}

.split-screen-content {
  padding: 4rem;
}
.split-screen-image {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  object-fit: cover;
}

.overlapping-image {
  position: absolute;
  top: -10%;
  right: 0;
  width: 60%;
  height: 120%;
  object-fit: cover;
  z-index: 0;
  border-bottom-left-radius: 200px;
}

.wave-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}
.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 150px;
}
.wave-divider .shape-fill {
  fill: var(--color5);
}

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  opacity: 0;
  transform: translateX(400px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
  max-width: 350px;
  font-weight: 500;
}
.notification.show {
  opacity: 1;
  transform: translateX(0);
}
.notification.success {
  background-color: var(--color1);
  color: var(--color3);
}
.notification.error {
  background-color: #ef4444;
  color: white;
}

/* --- Cookie Popup --- */
.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color3);
  color: var(--color5);
  padding: 1.5rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.cookie-popup.show {
  transform: translateY(0);
  opacity: 1;
}

.cookie-popup-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .cookie-popup-content {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }
}

.cookie-popup-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin: 0;
  color: var(--color1);
}

.cookie-popup-text {
  flex: 1;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.cookie-popup-link {
  color: var(--color1);
  text-decoration: underline;
  transition: color 0.3s;
}

.cookie-popup-link:hover {
  color: var(--color2);
}

.cookie-popup-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-btn-accept {
  background-color: var(--color1);
  color: var(--color3);
}

.cookie-btn-accept:hover {
  background-color: var(--color2);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cookie-btn-decline {
  background-color: transparent;
  color: var(--color5);
  border: 2px solid var(--color5);
}

.cookie-btn-decline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

@media (max-width: 767px) {
  .cookie-popup-buttons {
    width: 100%;
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
  }
}

/* --- Секція 3 (Про нас): Стилі для "Таймлайну" --- */
.timeline-node {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  order: 0; /* За замовчуванням */
}

/* Декоративна крапка на таймлайні */
.timeline-dot {
  width: 60px;
  height: 60px;
  background-color: var(--color4);
  color: var(--color5);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  border: 4px solid var(--color5);
  box-shadow: 0 0 0 4px var(--color4);
  z-index: 10;
}

/* Лінія, що з'єднує крапку з текстом на десктопі */
@media (min-width: 768px) {
  .timeline-node {
    justify-content: flex-end; /* Вирівнювання для лівих елементів */
  }

  /* Зміна для правих елементів */
  .md\:order-first {
    justify-content: flex-start;
  }

  /* Горизонтальна лінія */
  .timeline-node::before {
    content: "";
    position: absolute;
    top: 50%;
    width: 50%; /* Заповнює простір до центру */
    height: 3px;
    background-color: var(--color4);
    opacity: 0.3;
    transform: translateY(-50%);
    z-index: 5;
  }

  /* Налаштування лінії для лівих елементів */
  .timeline-node {
    padding-right: 30px; /* Простір до крапки */
  }
  .timeline-node::before {
    right: 0;
  }

  /* Налаштування лінії для правих елементів */
  .md\:order-first {
    padding-right: 0;
    padding-left: 30px; /* Простір до крапки */
  }
  .md\:order-first::before {
    right: auto;
    left: 0;
  }
}

/* Адаптація таймлайну для мобільних пристроїв */
@media (max-width: 767px) {
  .timeline-node {
    display: none; /* Ховаємо декоративні вузли на моб. */
  }
  /* Видаляємо центральну лінію на моб. */
  .relative.max-w-4xl.mx-auto > div:first-child {
    display: none;
  }
  /* Видаляємо сітку */
  .relative.mb-16.grid,
  .relative.grid {
    display: block;
  }
  .relative.mb-16.grid > div,
  .relative.grid > div {
    display: none; /* Ховаємо порожні блоки */
  }
  .relative.mb-16.grid > article,
  .relative.grid > article {
    display: block; /* Показуємо тільки статті */
    margin-bottom: 2rem;
  }
}
/*
 * ========================================
 * СТИЛІ ДЛЯ СТОРІНКИ ПОСЛУГИ
 * ========================================
 */

/* --- Секція 2: Стилі Таймлайну --- */
.timeline-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: var(--color4);
  transform: translateX(-50%);
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  width: 50%;
  padding: 0 40px;
}

/* Елементи праворуч */
.timeline-item:nth-child(odd) {
  left: 50%;
  padding-left: 40px;
}

/* Елементи зліва */
.timeline-item:nth-child(even) {
  left: 0;
  padding-right: 40px;
  text-align: right;
}

/* Декоративна точка на таймлайні */
.timeline-item::after {
  content: "";
  position: absolute;
  top: 20px;
  width: 20px;
  height: 20px;
  background-color: var(--color2);
  border: 4px solid var(--color3);
  border-radius: 50%;
  z-index: 10;
}

.timeline-item:nth-child(odd)::after {
  right: -10px;
  transform: translateX(50%);
}

.timeline-item:nth-child(even)::after {
  left: -10px;
  transform: translateX(-50%);
}

.timeline-content {
  padding: 24px;
  border-radius: 8px;
  position: relative;
}

/* Адаптація для мобільних пристроїв */
@media (max-width: 768px) {
  .timeline-spine {
    left: 20px;
    transform: translateX(0);
  }
  .timeline-item {
    width: 100%;
    padding: 0 0 0 50px; /* Все праворуч від лінії */
    margin-bottom: 30px;
  }
  .timeline-item:nth-child(odd) {
    left: 0;
    padding-left: 50px;
  }
  .timeline-item:nth-child(even) {
    left: 0;
    padding-right: 0;
    padding-left: 50px;
    text-align: left;
  }
  .timeline-item::after {
    left: 10px; /* Позиція точки на лінії */
    transform: translateX(0);
  }
  .timeline-item:nth-child(odd)::after,
  .timeline-item:nth-child(even)::after {
    left: 10px;
    transform: translateX(0);
  }
}
/*
 * ========================================
 * СТИЛІ ДЛЯ СТОРІНКИ FAQ
 * ========================================
 */

/* --- Секція 1: Декоративний елемент --- */
.deco-shape-faq-1 {
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background-color: var(--color3);
  border-radius: 50%;
  opacity: 0.2;
  z-index: 0;
}

/* --- Секція 2: Стилі Аккордеону --- */
.faq-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 24px;
  background-color: #ffffff;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.3s ease;
}

.faq-toggle:hover {
  background-color: #f9f9f9;
}

.faq-question-text {
  font-size: 1.25rem; /* 20px */
  font-weight: 600;
  color: var(--color3);
  margin-right: 16px;
}

.faq-icon {
  font-size: 2rem; /* 32px */
  font-weight: 300;
  color: var(--color4);
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.faq-content {
  /* Анімація відкриття/закриття */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 24px;
}

.faq-content p {
  padding-bottom: 20px;
  font-size: 1rem; /* 16px */
  line-height: 1.6;
  color: #333; /* Трохи темніший текст для читабельності на білому */
}
.faq-content p:last-child {
  padding-bottom: 24px;
}

/* Стиль активного стану (коли відповідь відкрита) */
.faq-item.active .faq-toggle {
  background-color: #f7f7f7;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* Встановіть тут достатньо велику висоту */
.faq-item.active .faq-content {
  max-height: 1000px; /* Достатньо для вмісту */
}

/* --- Секція 3: Декоративна сітка --- */
.deco-grid-faq {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-image: linear-gradient(
      to right,
      var(--color2) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, var(--color2) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.1;
  z-index: 0;
}
/*
 * ========================================
 * СТИЛІ ДЛЯ СТОРІНКИ КОНТАКТІВ
 * ========================================
 */

/* --- Стилі для полів вводу --- */
.contact-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  color: var(--color3);
  background-color: var(--color5);
  border: 2px solid #ddd; /* Нейтральна рамка */
  border-radius: 8px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-input:focus {
  outline: none;
  border-color: var(--color4);
  box-shadow: 0 0 0 3px rgba(32, 129, 217, 0.3); /* Використання color4 з прозорістю */
}

/* Стилі для HTML5 валідації (невалідні поля) */
.contact-input:invalid {
  border-color: #e53e3e; /* Червоний для помилки */
}
.contact-input:invalid:focus {
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.3);
}

/* --- Декоративний елемент --- */
.contact-deco-line {
  position: absolute;
  top: 0;
  left: -20px;
  width: 6px;
  height: 100%;
  background-color: var(--color1);
  opacity: 0.8;
  border-radius: 4px;
}

@media (max-width: 1024px) {
  .contact-deco-line {
    left: 0;
    top: -20px;
    width: 100%;
    height: 6px;
  }
}

/* --- Стилі для Нотифікації --- */
.notification-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--color1); /* Використовуємо яскравий колір */
  color: var(--color3);
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 100;

  /* Початковий стан (сховано) */
  opacity: 0;
  transform: translateX(110%);
  visibility: hidden;

  transition: opacity 0.4s ease,
    transform 0.4s cubic-bezier(0.21, 1.02, 0.73, 1), visibility 0.4s ease;
}

/* Активний стан (видимо) */
.notification-toast.show {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
}
