/* --- Variables & Reset --- */
:root {
  /* Airy Pastel Palette */
  --color-bg: #f8fafc; /* Очень светлый серо-голубой */
  --color-surface: #ffffff;
  --color-text-main: #2d3748;
  --color-text-muted: #718096;

  --color-accent-purple: #c084fc; /* Пастельный фиолетовый */
  --color-accent-mint: #81e6d9; /* Пастельный мятный */
  --color-accent-peach: #f6ad55; /* Мягкий оранжевый для акцентов */

  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;

  --shadow-soft: 0 10px 40px -10px rgba(112, 144, 176, 0.12);
  --shadow-hover: 0 20px 50px -12px rgba(192, 132, 252, 0.25);

  --radius-lg: 24px;
  --radius-md: 16px;

  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Typography Helpers --- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 50px; /* Pill shape */
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background-color: var(--color-text-main);
  color: var(--color-surface);
}

.btn--primary:hover {
  background-color: var(--color-accent-purple);
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo svg {
  transition: var(--transition);
}

.logo:hover svg {
  transform: rotate(15deg) scale(1.1);
}

.nav__list {
  display: flex;
  gap: 40px;
}

.nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent-purple);
  transition: var(--transition);
}

.nav__link:hover {
  color: var(--color-accent-purple);
}

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

.header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-main);
}

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--color-bg);
  z-index: 999;
  transform: translateY(-100%);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu.is-active {
  transform: translateY(0);
}

.mobile-menu__content {
  text-align: center;
}

.mobile-menu .nav__list {
  flex-direction: column;
  gap: 30px;
  font-size: 1.5rem;
}

/* --- Footer --- */
.footer {
  background-color: var(--color-surface);
  padding: 80px 0 30px;
  border-top-left-radius: 60px;
  border-top-right-radius: 60px;
  margin-top: 60px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.02);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer__desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 20px 0;
  max-width: 300px;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  background-color: #f0fff4;
  color: #38a169;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__title {
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: var(--color-text-main);
}

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

.footer__link {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.footer__link:hover {
  color: var(--color-accent-purple);
  padding-left: 6px; /* Micro-interaction: shift */
}

.footer__list--contacts li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.footer__icon {
  width: 18px;
  height: 18px;
  color: var(--color-accent-purple);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer__bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* --- Media Queries --- */
@media (max-width: 1024px) {
  .header__nav {
    display: none;
  }

  .header__burger {
    display: block;
  }

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

@media (max-width: 768px) {
  .header__actions .btn {
    display: none; /* Hide CTA on mobile header, keep burger */
  }

  .footer {
    border-radius: 40px 40px 0 0;
    padding: 60px 0 30px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 160px 0 100px; /* Великий відступ зверху через фіксований хедер */
  overflow: hidden;
  min-height: 100vh; /* Секція на весь екран */
  display: flex;
  align-items: center;
}

.hero__container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2; /* Щоб бути над розмитим фоном */
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent-purple);
  margin-bottom: 24px;
  box-shadow: var(--shadow-soft);
}

.hero__title {
  font-size: clamp(3rem, 5vw, 5rem); /* Адаптивний гігантський шрифт */
  line-height: 1.1;
  margin-bottom: 32px;
  color: var(--color-text-main);
  letter-spacing: -0.03em;
}

.text-gradient {
  background: linear-gradient(
    135deg,
    var(--color-accent-purple) 0%,
    #805ad5 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block; /* Важливо для градієнта */
}

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

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

.btn--lg {
  padding: 16px 40px;
  font-size: 1.1rem;
}

.hero__info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.icon-mint {
  color: #38b2ac; /* Темніший мятний для видимості */
  width: 20px;
}

/* 3D Container */
.hero__visual {
  width: 100%;
  height: 600px;
  position: relative;
  /* Зміщуємо трохи праворуч для асиметрії */
  transform: translateX(50px);
}

/* Декоративні плями (Airy Vibe) */
.hero__bg-blur {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  opacity: 0.6;
  animation: floatBlob 10s infinite alternate ease-in-out;
}

.hero__bg-blur--1 {
  width: 500px;
  height: 500px;
  background: var(--color-accent-mint);
  top: -100px;
  right: -100px;
  opacity: 0.2;
}

.hero__bg-blur--2 {
  width: 400px;
  height: 400px;
  background: var(--color-accent-purple);
  bottom: 50px;
  left: -150px;
  opacity: 0.15;
  animation-delay: -5s;
}

@keyframes floatBlob {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(20px, 40px) scale(1.1);
  }
}

/* Адаптив для Hero */
@media (max-width: 992px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__visual {
    height: 400px;
    transform: translateX(0);
    order: -1; /* Картинка зверху на мобільному */
  }

  .hero__title {
    font-size: 2.5rem;
  }
}

/* --- Sections Common --- */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-title {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 20px;
  color: var(--color-text-main);
}

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

/* --- Bento Grid --- */
.bento__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 24px;
}

.bento__item {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento__item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

/* Розкладка сітки */
.bento__item--large {
  grid-column: 1 / 3; /* Займає 2 колонки */
  grid-row: 1 / 3; /* Займає 2 рядки (висока) */
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
}

.bento__item--medium {
  grid-column: 3 / 4;
}

.bento__item--wide {
  grid-column: 1 / 4; /* На всю ширину знизу (для мобілок) або інакше */
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: var(--color-bg);
}

/* Стилізація контенту */
.bento__icon-bg {
  width: 60px;
  height: 60px;
  background: var(--color-accent-purple);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.bento__icon-bg i {
  width: 30px;
  height: 30px;
}

.bento__title {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--color-text-main);
}

.bento__desc {
  color: var(--color-text-muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.bento__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--color-accent-purple);
  margin-top: auto;
}

.bento__link:hover {
  color: var(--color-text-main);
  gap: 12px; /* Анімація стрілки */
}

/* Кольорові модифікатори */
.bg-mint {
  background: linear-gradient(135deg, #e6fffa 0%, #b2f5ea 100%);
  border: none;
}

.bg-purple {
  background: linear-gradient(135deg, #faf5ff 0%, #e9d8fd 100%);
  border: none;
}

.bento__item.bg-mint .bento__icon,
.bento__item.bg-purple .bento__icon {
  margin-bottom: 16px;
  width: 32px;
  height: 32px;
  color: var(--color-text-main);
  opacity: 0.7;
}

/* Широка картка */
.bento__item--wide {
  background: white;
  grid-column: 1 / -1; /* На всю ширину */
  margin-top: 20px; /* Відступ, якщо сітка переповниться */
}

.bento__visual {
  margin-left: auto;
  padding-left: 40px;
  color: var(--color-accent-peach);
  opacity: 0.8;
  transition: var(--transition);
}

.bento__item--wide:hover .bento__visual {
  transform: scale(1.1) rotate(10deg);
}

/* Адаптивність Bento */
@media (max-width: 992px) {
  .bento__grid {
    grid-template-columns: 1fr 1fr;
  }

  .bento__item--large {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .bento__item--medium {
    grid-column: auto; /* Автоматично по одній */
  }
}

@media (max-width: 600px) {
  .bento__grid {
    grid-template-columns: 1fr; /* Одна колонка на мобільних */
  }

  .bento__item--wide {
    flex-direction: column;
    align-items: flex-start;
  }

  .bento__visual {
    margin-left: 0;
    margin-top: 20px;
  }
}

/* --- Technology / Timeline Section --- */
.technology {
  background-color: #fdfdfd; /* Ледь помітна відмінність від основного фону */
}

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

/* Центральна лінія */
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--color-accent-purple) 0,
    var(--color-accent-purple) 10px,
    transparent 10px,
    transparent 20px
  );
  transform: translateX(-50%);
  opacity: 0.3;
}

.timeline__item {
  display: flex;
  justify-content: flex-end; /* За замовчуванням контент справа */
  padding-left: 50%;
  position: relative;
  margin-bottom: 60px;
}

/* Кожен другий елемент дзеркальний (контент зліва) */
.timeline__item--reverse {
  justify-content: flex-start;
  padding-left: 0;
  padding-right: 50%;
  flex-direction: row-reverse; /* Щоб маркер лишався по центру */
}

/* Маркер (Кружечок з цифрою) */
.timeline__marker {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background-color: var(--color-surface);
  border: 2px solid var(--color-accent-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-accent-purple);
  z-index: 2;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.8); /* "Ореол" навколо маркера */
}

.timeline__content {
  width: 80%; /* Картка займає не всю половину, щоб було повітря */
  background: var(--color-surface);
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: var(--transition);
  position: relative;
}

/* Стрілочка від картки до маркера */
.timeline__content::before {
  content: "";
  position: absolute;
  top: 15px;
  width: 0;
  height: 0;
  border-style: solid;
}

/* Стрілка для правих карток */
.timeline__item .timeline__content::before {
  left: -10px;
  border-width: 10px 10px 10px 0;
  border-color: transparent var(--color-surface) transparent transparent;
}

/* Стрілка для лівих карток */
.timeline__item--reverse .timeline__content::before {
  right: -10px; /* Зміщено на правий край */
  left: auto; /* Скидаємо left */
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent var(--color-surface);
}

/* Hover ефект */
.timeline__item:hover .timeline__content {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-accent-mint);
}

.timeline__item:hover .timeline__marker {
  background-color: var(--color-accent-purple);
  color: white;
}

.timeline__title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--color-text-main);
}

.timeline__desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.technology__cta {
  text-align: center;
  margin-top: 40px;
}

/* --- Адаптив Timeline --- */
@media (max-width: 768px) {
  .timeline::before {
    left: 20px; /* Лінія зміщується вліво */
  }

  .timeline__item,
  .timeline__item--reverse {
    padding: 0 0 0 60px; /* Весь контент справа від лінії */
    justify-content: flex-start;
    flex-direction: row;
    width: 100%;
  }

  .timeline__marker {
    left: 20px; /* Маркер на лінії зліва */
  }

  .timeline__content {
    width: 100%;
  }

  /* Стрілки на мобільному завжди зліва */
  .timeline__item .timeline__content::before,
  .timeline__item--reverse .timeline__content::before {
    left: -10px;
    right: auto;
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--color-surface) transparent transparent;
  }
}
/* --- Blog Section --- */
.blog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.blog__card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
}

.blog__card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.blog__image-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.blog__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog__card:hover .blog__image {
  transform: scale(1.1); /* Плавний зум картинки */
}

/* Теги (категорії) поверх картинки */
.blog__tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
}

.blog__tag--mint {
  color: #2c7a7b;
  background-color: rgba(230, 255, 250, 0.9);
}

.blog__tag--purple {
  color: #6b46c1;
  background-color: rgba(250, 245, 255, 0.9);
}

.blog__content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.blog__title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--color-text-main);
  line-height: 1.3;
}

.blog__excerpt {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  flex-grow: 1; /* Щоб посилання завжди було внизу */
}

.blog__link {
  font-weight: 600;
  color: var(--color-accent-purple);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.blog__link:hover {
  gap: 10px;
  color: var(--color-text-main);
}

/* --- Reviews Section --- */
.reviews {
  background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: center; /* Центрування по вертикалі для різної висоти */
}

.review-card {
  padding: 40px;
  border-radius: var(--radius-lg);
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.review-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

/* Кольорові теми карток */
.review-card--mint {
  background: #f0fff4;
  border: 1px solid #c6f6d5;
}

.review-card--purple {
  background: #faf5ff;
  border: 1px solid #e9d8fd;
}

.review-card--white {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-soft);
}

/* Featured картка (центральна) */
.review-card--featured {
  padding: 50px; /* Трохи більша */
  box-shadow: var(--shadow-soft);
}

.review-card__icon {
  color: var(--color-accent-purple);
  margin-bottom: 20px;
  opacity: 0.5;
  width: 32px;
  height: 32px;
}

.review-card__text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-main);
  margin-bottom: 30px;
  font-style: italic;
  flex-grow: 1;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
}

.review-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent-purple);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-heading);
}

.review-card--mint .review-card__avatar {
  background: #38a169;
}

.review-card--white .review-card__avatar {
  background: var(--color-text-main);
}

.review-card__info {
  display: flex;
  flex-direction: column;
}

.review-card__name {
  font-weight: 700;
  color: var(--color-text-main);
}

.review-card__city {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Адаптив відгуків */
@media (max-width: 992px) {
  .reviews__grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }

  .review-card--featured {
    order: -1; /* Найважливіший відгук першим на мобільному */
    padding: 40px;
  }
}

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

.contact__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Info Side */
.contact__details {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.contact__icon-bg {
  width: 48px;
  height: 48px;
  background: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-purple);
  box-shadow: var(--shadow-soft);
}

.contact__label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.contact__link {
  font-weight: 600;
  color: var(--color-text-main);
  font-size: 1.1rem;
}

.contact__link:hover {
  color: var(--color-accent-purple);
}

/* Form Side (Glassmorphism) */
.contact__form-wrapper {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
}

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

.form__label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-main);
}

.form__input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid transparent;
  background: #f8fafc;
  border-radius: 12px;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: var(--transition);
}

.form__input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--color-accent-purple);
  box-shadow: 0 0 0 4px rgba(192, 132, 252, 0.1);
}

.form__error {
  color: #e53e3e;
  font-size: 0.8rem;
  margin-top: 4px;
  display: none; /* JS покаже це при помилці */
}

.form__group.error .form__input {
  border-color: #e53e3e;
  background: #fff5f5;
}

.form__group.error .form__error {
  display: block;
}

/* Custom Captcha Styling */
.captcha-container {
  background: #f9f9f9;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  width: fit-content;
  min-width: 200px;
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.captcha-box input {
  display: none; /* Ховаємо стандартний чекбокс */
}

.captcha-checkmark {
  width: 24px;
  height: 24px;
  border: 2px solid #c6c6c6;
  border-radius: 2px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.captcha-icon {
  width: 16px;
  height: 16px;
  color: #4a90e2; /* Google Blue style */
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s;
}

/* Стан "checked" для капчі */
.captcha-box input:checked + .captcha-checkmark .captcha-icon {
  opacity: 1;
  transform: scale(1);
}

.captcha-text {
  font-size: 0.9rem;
  color: #555;
}

.captcha-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.6rem;
  color: #aaa;
}

.captcha-logo i {
  width: 16px;
  height: 16px;
  margin-bottom: 2px;
}

/* Privacy Checkbox */
.form__checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
}

.form__checkbox {
  margin-top: 4px;
  accent-color: var(--color-accent-purple);
}

.form__checkbox-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  cursor: pointer;
}

.form__btn {
  width: 100%;
  gap: 10px;
}

/* Success Message */
.form-success {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  z-index: 10;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: var(--radius-lg);
  animation: fadeIn 0.4s ease;
}

.form-success.is-visible {
  display: flex;
}

.form-success__icon {
  width: 60px;
  height: 60px;
  color: #38a169;
  margin-bottom: 16px;
}

.form-success__icon svg {
  width: 100%;
  height: 100%;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--color-surface);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  max-width: 340px;
  z-index: 9999;
  transform: translateY(200px); /* Приховано вниз */
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.cookie-popup.is-active {
  transform: translateY(0);
}

.cookie-popup__content p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

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

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

/* Адаптив контактів */
@media (max-width: 900px) {
  .contact__container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cookie-popup {
    left: 20px;
    right: 20px;
    max-width: none;
    bottom: 10px;
  }
}

/* --- Pages (Privacy, Terms, etc.) --- */
.pages {
  padding: 140px 0 80px; /* Великий відступ зверху, бо хедер фіксований */
  min-height: 60vh;
}

.pages h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 24px;
  color: var(--color-text-main);
}

.pages h2 {
  font-size: 1.8rem;
  margin: 40px 0 20px;
  color: var(--color-text-main);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* Легка лінія під заголовком */
}

.pages p {
  font-size: 1.05rem;
  margin-bottom: 16px;
  color: var(--color-text-main);
  max-width: 800px; /* Щоб рядок не був занадто довгим для читання */
}

.pages ul {
  list-style: disc;
  margin: 20px 0 20px 20px;
  max-width: 780px;
}

.pages li {
  margin-bottom: 10px;
  color: var(--color-text-main);
  line-height: 1.6;
}

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

.pages a:hover {
  color: var(--color-accent-mint);
}

/* Додаткові стилі для кнопки в мобільному меню */
.mobile-menu__btn-wrapper {
  margin-top: 40px; /* Відступ від посилань */
  display: flex;
  justify-content: center;
}

/* Робимо кнопку трохи більшою для зручності натискання пальцем */
.mobile-menu__btn-wrapper .btn {
  display: inline-flex !important; /* Примусово показуємо, бо в хедері вона прихована */
  width: 100%;
  max-width: 280px;
  padding: 16px 32px;
  font-size: 1.1rem;
  box-shadow: 0 10px 30px rgba(192, 132, 252, 0.3);
}
