/* ----- Змінні кольорів (для нативного CSS) ----- */
:root {
  --c1: #003078;
  --c2: #005880;
  --c3: #09969c;
  --c4: #b9d3ce;
  --c5: #fffeff;
}

/* ----- Базові стилі ----- */
body {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ----- Тіні для тексту (для Hero) ----- */
.text-shadow-lg {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.text-shadow-md {
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}

/* ----- Стилі Хедера та Навігації ----- */
.nav-link {
  position: relative;
  color: var(--c2);
  font-weight: 600;
  transition: color 0.3s ease;
  padding-bottom: 4px;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--c3);
  transition: width 0.4s ease-out;
}
.nav-link:hover {
  color: var(--c1);
}
.nav-link:hover::after {
  width: 100%;
}

/* ----- Стилі Бургер-меню ----- */
.burger-line {
  width: 100%;
  height: 2px;
  background-color: var(--c1);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  display: block;
}
.burger-line.top {
  transform-origin: left center;
}
.burger-line.middle {
  opacity: 1;
}
.burger-line.bottom {
  transform-origin: left center;
}

/* Активний стан бургер-меню (JS додає клас 'active') */
#burger-btn.active .burger-line.top {
  transform: rotate(45deg) translate(0px, -4px);
  background-color: var(--c5);
}
#burger-btn.active .burger-line.middle {
  opacity: 0;
  transform: translateX(20px);
}
#burger-btn.active .burger-line.bottom {
  transform: rotate(-45deg) translate(0px, 4px);
  background-color: var(--c5);
}

/* Мобільне меню (Popup) */
.mobile-menu-hidden {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--c1);
  opacity: 0.98;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  visibility: hidden;
}
#mobile-menu.active {
  transform: translateY(0);
  visibility: visible;
}

/* ----- Загальні стилі секцій ----- */
.section-title {
  font-size: 2.5rem; /* 40px */
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .section-title {
    font-size: 3rem; /* 48px */
  }
}
.prose {
  font-size: 1.125rem; /* 18px */
  line-height: 1.7;
}

/* ----- Стилі кнопок (CTA) ----- */
.cta-button {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(0, 88, 128, 0.2);
}
.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 88, 128, 0.3);
}

/* ----- Стилі Parallax ----- */
.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  /* JS буде керувати transform: translateY() */
}
/* Секція 1 Hero */
.parallax-element {
  transition: transform 0.1s linear; /* Плавність руху */
}

/* Секція 2: Декоративна форма */
.decorative-shape {
  position: absolute;
  top: -10%;
  right: -20%;
  width: 150px;
  height: 150px;
  background-color: var(--c3);
  opacity: 0.2;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  z-index: 0;
  animation: morph 12s ease-in-out infinite;
}
@keyframes morph {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: rotate(0deg);
  }
  50% {
    border-radius: 50% 50% 30% 70% / 60% 40% 60% 40%;
    transform: rotate(180deg);
  }
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: rotate(360deg);
  }
}

/* Секція 4: Контент-бокс з паралаксом */
.parallax-content-box {
  background-color: rgba(0, 48, 120, 0.6); /* c1 with alpha */
  backdrop-filter: blur(5px);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(185, 211, 206, 0.3); /* c4 with alpha */
  transition: transform 0.1s linear;
}

/* Секція 6: Декоративний фон */
.decorative-element-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  background-color: var(--c3);
  opacity: 0.05;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

/* Секція 8: Степер (Як працює) */
.step-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}
.step-content {
  background: var(--c5);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 48, 120, 0.1);
  flex-grow: 1;
  width: 100%;
}
.step-number {
  font-size: 4rem;
  font-weight: 800;
  color: var(--c3);
  line-height: 1;
  margin-bottom: 0.5rem;
  display: block;
}
.step-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 48, 120, 0.1);
}

@media (min-width: 768px) {
  .step-item {
    flex-direction: row;
    align-items: center;
    width: 90%;
  }
  .step-item:nth-child(even) {
    margin-left: auto;
    flex-direction: row-reverse;
  }
  .step-content {
    width: 60%;
  }
  .step-image {
    width: 40%;
    max-width: none;
  }
}

/* Секція 9: "Дихаючі" кола */
.breathing-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid var(--c4);
  animation: breathe 8s ease-in-out infinite;
}
.circle-1 {
  width: 100px;
  height: 100px;
  animation-delay: 0s;
}
.circle-2 {
  width: 200px;
  height: 200px;
  animation-delay: -2s;
}
.circle-3 {
  width: 300px;
  height: 300px;
  animation-delay: -4s;
}
@keyframes breathe {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.2;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.7;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.2;
  }
}

/* ----- Стилі футера ----- */
.footer-link {
  color: var(--c4);
  opacity: 0.8;
  transition: all 0.3s ease;
}
.footer-link:hover {
  color: var(--c5);
  opacity: 1;
  padding-left: 4px;
}

/* ----- Стилі форми-повідомлення ----- */
#notification-form.show {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Стилі Toast Notification ----- */
.toast-notification {
  position: fixed;
  top: 100px;
  right: 20px;
  background: linear-gradient(135deg, var(--c3) 0%, var(--c2) 100%);
  color: var(--c5);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(9, 150, 156, 0.3);
  z-index: 70;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: none;
  max-width: 400px;
}

.toast-notification.show {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: rgba(255, 254, 255, 0.2);
  border-radius: 50%;
  font-size: 16px;
  font-weight: bold;
  flex-shrink: 0;
}

.toast-message {
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 500;
}

/* ----- Стилі Cookie Banner ----- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--c1) 0%, var(--c2) 100%);
  color: var(--c5);
  padding: 1.5rem 1rem;
  box-shadow: 0 -4px 20px rgba(0, 48, 120, 0.3);
  z-index: 100;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.cookie-text {
  flex: 1;
  min-width: 250px;
}

.cookie-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--c5);
}

.cookie-description {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--c4);
  margin: 0;
}

.cookie-link {
  color: var(--c3);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s ease;
}

.cookie-link:hover {
  color: var(--c4);
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-btn-accept {
  background: var(--c3);
  color: var(--c5);
}

.cookie-btn-accept:hover {
  background: var(--c2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(9, 150, 156, 0.4);
}

.cookie-btn-settings {
  background: transparent;
  color: var(--c5);
  border: 2px solid var(--c5);
}

.cookie-btn-settings:hover {
  background: var(--c5);
  color: var(--c1);
}

.cookie-btn-decline {
  background: transparent;
  color: var(--c4);
  border: 2px solid var(--c4);
}

.cookie-btn-decline:hover {
  background: var(--c4);
  color: var(--c1);
}

/* ----- Медіа-запити для адаптивності (доповнення до Tailwind) ----- */
@media (max-width: 767px) {
  .section-title {
    font-size: 2.25rem; /* 36px */
  }
  h1 {
    font-size: 3rem; /* 48px */
  }

  .toast-notification {
    right: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
    top: 80px;
  }

  .cookie-banner {
    padding: 1.25rem 1rem;
  }

  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .cookie-icon {
    font-size: 2rem;
  }

  .cookie-title {
    font-size: 1.1rem;
  }

  .cookie-description {
    font-size: 0.9rem;
  }

  .cookie-actions {
    width: 100%;
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
    padding: 0.75rem 1rem;
  }
}
/* ----- Sektion 1 (About): Декоративні форми ----- */
.about-decorator {
  position: absolute;
  background-color: var(--c3);
  border-radius: 50%;
  z-index: 0;
  opacity: 0.1;
}
.about-decorator.shape-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 45%;
}
.about-decorator.shape-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  left: 10%;
  background-color: var(--c2);
  opacity: 0.05;
}

/* ----- Sektion 3 (About): Стилізація списку принципів ----- */
.principle-item {
  position: relative;
  padding-left: 1.5rem;
  border-left: 4px solid var(--c3);
  transition: background-color 0.3s ease;
}
.principle-item:hover {
  /* Легкий ефект при наведенні, якщо потрібно */
  background-color: rgba(255, 255, 255, 0.03);
}

/* Переконайтеся, що ваш .prose коректно працює з кольорами */
.prose {
  font-size: 1.125rem; /* 18px */
  line-height: 1.7;
}
/* Специфічні кольори для прози в нових секціях */
.bg-c4 .prose {
  color: var(--c1);
}
.text-c5 .prose {
  color: var(--c4); /* Для темного фону */
}
.text-c4\/90 {
  color: rgba(185, 211, 206, 0.9);
}

/* ----- Адаптивність для декораторів (Sektion 1 About) ----- */
@media (max-width: 768px) {
  .about-decorator.shape-1 {
    top: 5%;
    left: -20%;
    opacity: 0.05;
  }
  .about-decorator.shape-2 {
    display: none; /* Приховуємо другий на мобільних */
  }
}
/* ----- Sektion 1 (Service): Пульсуючі кільця ----- */
.service-pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid var(--c4);
  opacity: 0;
  z-index: 0;
  animation: pulse 6s ease-out infinite;
}

@keyframes pulse {
  0% {
    width: 200px;
    height: 200px;
    opacity: 0.5;
  }
  100% {
    width: 600px;
    height: 600px;
    opacity: 0;
  }
}

/* ----- Sektion 2 (Service): Блоки модулів ----- */
.module-content-block {
  position: relative;
  padding: 2rem;
  background-color: var(--c5);
  border: 1px solid var(--c4);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 48, 120, 0.05);
}

/* Декоративний елемент для блоків */
.module-content-block::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 1.5rem;
  width: 30%;
  height: 4px;
  background-color: var(--c3);
  border-radius: 2px;
}

.module-eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.5rem;
}

/* ----- Sektion 3 (Service): Декоратор трансформації ----- */
.transformation-decorator {
  position: absolute;
  top: 20%;
  right: -20%;
  width: 500px;
  height: 500px;
  background-color: var(--c1); /* Темніший за фон c2 */
  opacity: 0.1;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  z-index: 0;
  animation: morph 15s ease-in-out infinite alternate;
}

/* ----- Адаптація прози для нових секцій ----- */
/* (Цей стиль вже має бути у вас, але переконайтеся) */
.prose {
  font-size: 1.125rem;
  line-height: 1.7;
}
.text-c4 .prose {
  color: var(--c4);
}
.text-c4 .prose h3 {
  color: var(--c5);
}
/* ----- Sektion 2 (FAQ): Стилі Акордеону ----- */
.faq-item {
  transition: all 0.3s ease-in-out;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.5rem;
  text-align: left;
  font-size: 1.25rem; /* 20px */
  font-weight: 600;
  color: var(--c1);
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: rgba(185, 211, 206, 0.2); /* c4 з прозорістю */
}

.faq-icon {
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--c3);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Стилі для активного стану (додається через JS) */
.faq-item.active .faq-question {
  background-color: rgba(185, 211, 206, 0.1);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.faq-item.active .faq-answer {
  /* Встановіть достатньо велике значення, 
       JS встановить точне значення для кращої анімації */
  max-height: 500px;
}

/* ----- Адаптація прози для нової секції ----- */
.prose-xl {
  font-size: 1.25rem; /* 20px */
  line-height: 1.7;
}
.text-c4 .prose-xl {
  color: var(--c4);
}
/* ----- Sektion 1 (Contact): Декоратор ----- */
.contact-decorator {
  position: absolute;
  top: -10%;
  right: -15%;
  width: 400px;
  height: 400px;
  background-color: var(--c3);
  opacity: 0.05;
  border-radius: 40% 60% 70% 30% / 40% 50% 50% 60%;
  z-index: 0;
  animation: morph 14s ease-in-out infinite alternate;
}

/* ----- Sektion 1 (Contact): Стилі форми ----- */
.contact-form-wrapper {
  background-color: var(--c5);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 48, 120, 0.1);
  border: 1px solid var(--c4);
}

.contact-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem; /* 14px */
  font-weight: 600;
  color: var(--c2);
}

.contact-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: var(--c1);
  background-color: #ffffff;
  border: 2px solid var(--c4);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.contact-input:focus {
  outline: none;
  border-color: var(--c3);
  box-shadow: 0 0 0 3px rgba(9, 150, 156, 0.3);
}

/* HTML5 валідація: :invalid стилі */
.contact-input:invalid:not(:placeholder-shown) {
  border-color: #d9534f; /* Колір помилки */
}
.contact-input:invalid:not(:placeholder-shown):focus {
  box-shadow: 0 0 0 3px rgba(217, 83, 79, 0.3);
}

/* ----- Sektion 1 (Contact): Повідомлення про успіх ----- */
.form-success-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--c3);
  color: var(--c5);
  padding: 1.25rem 1.75rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  z-index: 100;

  /* Стан "Приховано" */
  opacity: 0;
  transform: translateY(20px);
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.form-success-notification.show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* ----- Адаптивність ----- */
@media (max-width: 768px) {
  .contact-decorator {
    width: 200px;
    height: 200px;
    top: 0;
    right: -10%;
  }
  .form-success-notification {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    text-align: center;
  }
}
