/* --- Змінні та налаштування --- */
:root {
  /* Палітра Glassmorphism + Neon Accent */
  --bg-gradient: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

  --color-text-main: #ffffff;
  --color-text-muted: #d1d5db;
  --color-accent: #a855f7; /* Purple neon */
  --color-accent-hover: #9333ea;

  --font-main: "Outfit", sans-serif;

  --radius-xl: 30px; /* Гіпер-округлення */
  --radius-md: 20px;

  --container-width: 1200px;
  --header-height: 80px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--bg-gradient);
  background-attachment: fixed; /* Глибина фону при скролі */
  color: var(--color-text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

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

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-xl);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 50px; /* Pill shape */
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
  background: var(--color-accent);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}

/* --- Header --- */
.header {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 30px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo__text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Nav Desktop */
.nav__list {
  display: flex;
  gap: 32px;
}

.nav__link {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-muted);
  position: relative;
}

.nav__link:hover,
.nav__link.active {
  color: white;
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav__link:hover::after {
  width: 100%;
  left: 0;
}

.nav__close {
  display: none;
}

.header__burger {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* --- Main --- */
.main {
  flex: 1;
  margin-top: 120px; /* Компенсація фіксованого хедера */
  padding-bottom: 80px;
}

/* --- Footer --- */
.footer {
  padding-bottom: 40px;
}

.footer__container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 60px 40px;
  color: var(--color-text-muted);
}

.logo--footer .logo__text {
  font-size: 1.5rem;
}

.footer__desc {
  margin-top: 20px;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.footer__note {
  font-size: 0.8rem;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
}

.footer__title {
  color: white;
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link:hover {
  color: var(--color-accent);
  padding-left: 5px; /* Мікроанімація зсуву */
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.footer__icon {
  color: var(--color-accent);
  width: 20px;
  height: 20px;
}

.footer__copyright {
  text-align: center;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .header__container {
    padding: 0 20px;
  }

  .footer__container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header__burger {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(15, 12, 41, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1001;
  }

  .nav.open {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .nav__link {
    font-size: 1.5rem;
  }

  .nav__close {
    display: block;
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
  }

  .footer__container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 20px;
  }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh; /* На весь екран */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 0 60px;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Позаду контенту */
}

.hero__container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.hero__content {
  padding: 60px;
  text-align: center;
  max-width: 900px;
  /* Посилюємо ефект скла для Hero */
  background: rgba(15, 12, 41, 0.4);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 50px;
  color: #e9d5ff;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: #a855f7;
  border-radius: 50%;
  box-shadow: 0 0 10px #a855f7;
  animation: pulse 2s infinite;
}

.hero__title {
  font-size: clamp(3rem, 6vw, 5.5rem); /* Гігантський шрифт, адаптивний */
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #a855f7 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block; /* Перенос на новий рядок */
}

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 700px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.btn--lg {
  padding: 16px 48px;
  font-size: 1.1rem;
  border-radius: 50px;
}

.hero__info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.hero__info-icon {
  width: 16px;
  height: 16px;
}

/* Анімація пульсації для бейджа */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Адаптив для Hero */
@media (max-width: 768px) {
  .hero__content {
    padding: 40px 24px;
  }
  .hero__title {
    font-size: 2.8rem;
  }
  .hero__subtitle {
    font-size: 1.1rem;
  }
}

/* --- Global Section Styles --- */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  margin-bottom: 60px;
  text-align: left; /* Асиметрія: заголовки зліва */
  max-width: 600px;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.1;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

/* --- Bento Grid --- */
.bento-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr; /* Асиметрія: Ліва колонка ширша */
  grid-template-rows: repeat(2, 1fr);
  gap: 30px;
  min-height: 500px;
}

.bento-card {
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Велика картка займає 2 рядки по висоті в першій колонці */
.bento-card--large {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
}

.bento-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(168, 85, 247, 0.5);
}

.icon-box {
  width: 60px;
  height: 60px;
  border-radius: 20px; /* Гіпер-округлення */
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: white;
  font-size: 24px;
}

.icon-box--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-accent);
}

.icon-box i {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease;
}

.bento-card:hover .icon-box i {
  transform: rotate(15deg) scale(1.1);
}

.bento-card h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.bento-card p {
  color: var(--color-text-muted);
  margin-bottom: 24px;
  font-size: 1rem;
}

.feature-list {
  margin-bottom: 30px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--color-text-muted);
}

.feature-list li i {
  color: var(--color-accent);
  width: 18px;
  height: 18px;
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent);
  font-weight: 600;
  transition: gap 0.3s ease;
}

.btn-text:hover {
  color: var(--color-text-main);
  gap: 12px;
}

/* Декоративна пляма всередині великої картки */
.glow-decoration {
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: var(--color-accent);
  filter: blur(80px);
  opacity: 0.3;
  border-radius: 50%;
  z-index: -1;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: 1fr; /* Стає в одну колонку */
    grid-template-rows: auto;
  }

  .bento-card--large {
    grid-column: auto;
    grid-row: auto;
  }
}

/* --- Horizontal Accordion (Scenarios) --- */
.accordion-wrapper {
  display: flex;
  gap: 20px;
  height: 500px;
  width: 100%;
}

.acc-item {
  position: relative;
  flex: 1; /* Всі елементи рівні */
  border-radius: 40px; /* Гіпер-округлення */
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* При наведенні елемент розширюється */
.acc-item:hover,
.acc-item.active {
  flex: 3; /* Стає в 3 рази ширшим */
}

.acc-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: transform 0.6s ease;
}

.acc-item:hover .acc-bg {
  transform: scale(1.1); /* Легкий зум фону */
}

.acc-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.acc-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-accent);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.acc-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: white;
  white-space: nowrap; /* Щоб текст не ламався при стисненні */
}

.acc-body {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease 0.1s;
  height: 0; /* Приховуємо контент */
  overflow: hidden;
}

/* Показуємо контент тільки при наведенні/активності */
.acc-item:hover .acc-body,
.acc-item.active .acc-body {
  opacity: 1;
  transform: translateY(0);
  height: auto;
  margin-top: 10px;
}

.acc-body p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  line-height: 1.5;
}

.btn-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: transform 0.3s ease;
}

.btn-circle:hover {
  transform: rotate(-45deg);
  background: var(--color-accent-hover);
}

/* Вертикальний напис для згорнутого стану */
.acc-label {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) rotate(-90deg);
  transform-origin: center;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.acc-item:hover .acc-label,
.acc-item.active .acc-label {
  opacity: 0; /* Ховаємо лейбл, коли картка відкрита */
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .accordion-wrapper {
    flex-direction: column; /* На мобільному стає вертикальним стовпчиком */
    height: auto;
    gap: 15px;
  }

  .acc-item {
    height: 100px;
    flex: none;
    width: 100%;
  }

  .acc-item:hover,
  .acc-item.active {
    flex: none;
    height: 300px; /* Фіксована висота розкриття на мобільному */
  }

  .acc-label {
    transform: none;
    bottom: auto;
    top: 50%;
    left: auto;
    right: 30px;
    transform: translateY(-50%);
  }
}

/* --- Timeline Section --- */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 0;
}

/* Центральна неонова лінія */
.timeline::after {
  content: "";
  position: absolute;
  width: 4px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--color-accent),
    var(--color-accent),
    transparent
  );
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  box-shadow: 0 0 15px var(--color-accent);
  border-radius: 2px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

/* Ліва сторона */
.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.left .timeline-content {
  align-items: flex-end; /* Вирівнювання контенту вправо */
}

/* Права сторона */
.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-item.right .timeline-content {
  align-items: flex-start; /* Вирівнювання контенту вліво */
}

/* Точки на лінії */
.timeline-dot {
  position: absolute;
  width: 24px;
  height: 24px;
  background: #0f0c29;
  border: 4px solid var(--color-accent);
  top: 30px; /* Висота від верху картки */
  border-radius: 50%;
  z-index: 10;
  box-shadow: 0 0 10px var(--color-accent);
  transition: transform 0.3s ease;
}

.timeline-item.left .timeline-dot {
  right: -12px;
}

.timeline-item.right .timeline-dot {
  left: -12px;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
  background: var(--color-accent);
}

/* Контент картки */
.timeline-content {
  padding: 30px;
  position: relative;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.timeline-item:hover .timeline-content {
  transform: translateY(-5px);
  border-color: var(--color-accent);
}

.step-number {
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.05);
  position: absolute;
  top: 10px;
  line-height: 1;
}

.timeline-item.left .step-number {
  left: 20px;
}

.timeline-item.right .step-number {
  right: 20px;
}

.timeline-content h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: white;
  z-index: 1;
}

.timeline-content p {
  color: var(--color-text-muted);
  margin-bottom: 15px;
  z-index: 1;
}

.link-arrow {
  color: var(--color-accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.link-arrow:hover {
  gap: 10px;
}

.info-tag {
  background: rgba(168, 85, 247, 0.1);
  color: #e9d5ff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

/* --- Responsive Timeline --- */
@media (max-width: 768px) {
  /* Лінія зсувається вліво */
  .timeline::after {
    left: 30px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px; /* Відступ під лінію */
    padding-right: 20px;
    text-align: left; /* Завжди зліва */
  }

  .timeline-item.left,
  .timeline-item.right {
    left: 0;
    text-align: left;
  }

  .timeline-item.left .timeline-content,
  .timeline-item.right .timeline-content {
    align-items: flex-start;
  }

  /* Точки завжди зліва */
  .timeline-item.left .timeline-dot,
  .timeline-item.right .timeline-dot {
    left: 18px; /* 30px центр лінії - 12px половина точки */
    right: auto;
  }

  .timeline-item.left .step-number {
    left: auto;
    right: 20px;
  }
}

/* --- FAQ Section --- */
.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  padding: 0; /* Паддінг задаємо всередині елементів */
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.faq-item.active {
  background: rgba(255, 255, 255, 0.12); /* Світліше коли відкрито */
  border-color: var(--color-accent);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 30px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: white;
}

.faq-question {
  font-size: 1.2rem;
  font-weight: 500;
  font-family: var(--font-main);
  padding-right: 20px;
}

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  transition: transform 0.3s ease, background 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg); /* Перетворюємо плюс на хрестик */
  background: var(--color-accent);
  color: white;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.faq-body {
  padding: 0 30px 30px 30px;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.faq-body strong {
  color: #e9d5ff;
}

/* --- Contact Section --- */
.section--contact {
  position: relative;
  overflow: hidden;
}

/* Фонові ефекти */
.glow-bg-contact {
  position: absolute;
  top: 50%;
  right: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(168, 85, 247, 0.2) 0%,
    transparent 70%
  );
  transform: translate(30%, -50%);
  pointer-events: none;
  z-index: 0;
}

.contact__container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Ліва колонка */
.contact__info .section-title {
  text-align: left;
}

.contact__benefits {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Права колонка (Форма) */
.contact__form-wrapper {
  padding: 40px;
  position: relative;
  min-height: 500px; /* Фіксуємо мінімальну висоту, щоб не стрибало при успіху */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-title {
  font-size: 1.8rem;
  margin-bottom: 24px;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding-left: 10px;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease;
}

.form-input {
  width: 100%;
  padding: 16px 20px 16px 50px; /* Відступ зліва під іконку */
  background: rgba(15, 12, 41, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px; /* Pill shape */
  color: white;
  font-family: var(--font-main);
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--color-accent);
  background: rgba(15, 12, 41, 0.8);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.form-input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
  color: var(--color-accent);
}

/* Валідація: повідомлення про помилки */
.error-msg {
  display: none;
  color: #ef4444; /* Червоний */
  font-size: 0.8rem;
  margin-top: 5px;
  padding-left: 10px;
  animation: fadeIn 0.3s ease;
}

.center-error {
  text-align: center;
  width: 100%;
  display: none; /* none за замовчуванням */
}

.form-input.error {
  border-color: #ef4444;
}

/* Кастомна Капча */
.form-captcha {
  margin: 20px 0;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.captcha-container {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.captcha-container input {
  display: none;
}

.captcha-box {
  width: 24px;
  height: 24px;
  border: 2px solid #ccc;
  border-radius: 4px;
  background: white;
  position: relative;
  transition: all 0.2s ease;
}

/* Галочка капчі */
.captcha-container input:checked ~ .captcha-box {
  border-color: #4ade80; /* Green */
}

.captcha-container input:checked ~ .captcha-box::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid #16a34a;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.captcha-logo {
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.6rem;
}

/* Згода (Agreement) */
.form-agreement {
  margin-bottom: 24px;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  user-select: none;
}

.checkbox-container input {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  margin-top: 2px;
  transition: all 0.2s ease;
}

.checkbox-container input:checked ~ .checkmark {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.checkbox-container input:checked ~ .checkmark::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.agreement-text a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Кнопка на всю ширину */
.btn--block {
  width: 100%;
  position: relative;
}

.btn-loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid white;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: absolute;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.btn.loading .btn-text-content {
  opacity: 0;
}

.btn.loading .btn-loader {
  display: block;
}

/* Успішне повідомлення */
.success-message {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.success-message h3 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.success-message p {
  color: var(--color-text-muted);
  margin-bottom: 30px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .contact__container {
    grid-template-columns: 1fr;
  }

  .contact__info {
    text-align: center;
  }

  .contact__info .section-title {
    text-align: center;
  }

  .contact__benefits {
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
  }
}
/* --- Cookie Popup --- */
.cookie-popup {
  position: fixed;
  bottom: -100px; /* Сховано за екраном */
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 9999;
  transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: rgba(15, 12, 41, 0.95); /* Більш щільний фон для читабельності */
}

.cookie-popup.show {
  bottom: 30px;
}

.cookie-content p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
}

.cookie-content a {
  color: var(--color-accent);
  text-decoration: underline;
}

.btn--sm {
  padding: 8px 24px;
  font-size: 0.9rem;
}

/* --- Styles for Policy Pages (privacy.html, terms.html etc.) --- */
.pages {
  padding: 140px 0 80px; /* Відступ зверху під фіксований хедер */
  min-height: 80vh;
}

/* Обмежуємо ширину тексту для комфортного читання */
.pages .container {
  max-width: 800px;
}

.pages h1 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  background: linear-gradient(135deg, #ffffff 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 20px;
}

.pages h2 {
  font-size: 1.5rem;
  color: white;
  margin-top: 40px;
  margin-bottom: 16px;
}

.pages p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.pages ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 24px;
  color: var(--color-text-muted);
}

.pages li {
  margin-bottom: 8px;
}

.pages a {
  color: var(--color-accent);
  text-decoration: underline;
}

.pages strong {
  color: white;
}

/* Адаптив для попапа */
@media (max-width: 600px) {
  .cookie-popup {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
}
