/* --- Global Variables & Reset --- */
:root {
  /* Palette: Fresh, modern, soft */
  --bg-body: #f0f4f8; /* Light blue-grey background */
  --primary: #6366f1; /* Indigo - Tech & Trust */
  --primary-hover: #4f46e5;
  --accent: #f472b6; /* Pink/Coral - Friendly accents */
  --text-main: #1e293b;
  --text-muted: #64748b;
  --white: #ffffff;

  /* Claymorphism Shadows */
  --clay-shadow: 8px 8px 16px rgba(166, 180, 200, 0.4),
    -8px -8px 16px rgba(255, 255, 255, 0.8);
  --clay-shadow-hover: 12px 12px 20px rgba(166, 180, 200, 0.5),
    -12px -12px 20px rgba(255, 255, 255, 0.9);
  --clay-radius: 24px;

  /* Typography */
  --font-main: "Nunito", sans-serif;
  --container-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

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

ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s ease;
}
img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Claymorphism Utility --- */
.clay-card {
  background: var(--white);
  border-radius: var(--clay-radius);
  box-shadow: var(--clay-shadow);
  /* Inner shadow for "squishy" feel */
  background: linear-gradient(145deg, #ffffff, #e6e6e6);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 6px 6px 12px rgba(99, 102, 241, 0.3),
    -4px -4px 10px rgba(255, 255, 255, 0.5);
}

.btn--primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 8px 8px 16px rgba(99, 102, 241, 0.4);
  background: var(--primary-hover);
}

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

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
}

.header__nav {
  display: flex;
}

.header__menu {
  display: flex;
  gap: 30px;
}

.header__link {
  font-weight: 600;
  color: var(--text-main);
  position: relative;
}

.header__link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -5px;
  left: 50%;
  background: var(--accent);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.header__link:hover {
  color: var(--primary);
}

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

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

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

/* Mobile Menu Logic (Visual) */
/* Mobile Menu Logic (Visual) */
@media (max-width: 992px) {
  .header__nav {
    position: fixed;
    top: 80px; /* Трохи нижче хедера */
    right: -150%; /* Ховаємо далі за екран */
    width: 85%;
    max-width: 320px;
    background: var(--white);
    padding: 30px;
    border-radius: var(--clay-radius);
    /* Сильніша тінь для контрасту */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Ефект пружини */
    z-index: 9999; /* Найвищий пріоритет */
    visibility: hidden; /* Ховаємо повністю, щоб не клікалось випадково */
  }

  .header__nav.active {
    right: 20px;
    visibility: visible;
  }

  .header__menu {
    flex-direction: column;
    gap: 25px;
    align-items: flex-start; /* Вирівнювання по лівому краю */
  }

  .header__item {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 10px;
  }

  .header__burger {
    display: flex; /* Важливо: flex, щоб іконка була по центру */
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--white);
    border-radius: 12px;
    border: none;
    cursor: pointer;
    color: var(--primary);
    box-shadow: 4px 4px 8px rgba(166, 180, 200, 0.4),
      -4px -4px 8px rgba(255, 255, 255, 0.8);
    z-index: 10000; /* Кнопка має бути вище за все */
  }

  .header__burger svg {
    pointer-events: none; /* Щоб клік був точно по кнопці, а не по іконці */
  }
}

/* --- Main Placeholder --- */
.main {
  padding-top: 120px; /* Space for fixed header */
  min-height: 60vh;
}

/* --- Footer --- */
.footer {
  margin-top: 60px;
  padding: 60px 0 20px;
  background-color: transparent; /* Claymorphism styling assumes body bg */
}

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

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__logo {
  margin-bottom: 0;
}

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

.footer__title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}

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

.footer__link:hover {
  color: var(--accent);
  transform: translateX(5px);
  display: inline-block;
}

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

.footer__contact-item i {
  color: var(--accent);
  width: 20px;
  height: 20px;
}

.footer__bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 2px solid rgba(99, 102, 241, 0.1);
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__logo,
  .footer__contact-item {
    justify-content: center;
  }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 60px 0 100px;
  overflow: hidden; /* Щоб плаваючі елементи не вилазили */
}

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

/* Badge */
.hero__badge {
  display: inline-block;
  padding: 8px 20px;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.9rem;
  margin-bottom: 25px;
  border-radius: 50px;
  animation: float 4s ease-in-out infinite;
}

/* Typography */
.hero__title {
  font-size: 4rem; /* Гігантський заголовок */
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 25px;
  color: var(--text-main);
}

.hero__title .highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

/* Підкреслення для акценту */
.hero__title .highlight::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 15px;
  background: var(--accent);
  opacity: 0.3;
  border-radius: 10px;
  z-index: -1;
}

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

.hero__note {
  display: block;
  margin-top: 15px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Stats */
.hero__stats {
  display: flex;
  gap: 20px;
  margin-top: 50px;
}

.stat-item {
  padding: 15px 25px;
  text-align: center;
  min-width: 140px;
}

.stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- Visual / Animation Part --- */
.hero__visual {
  position: relative;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Основна картка */
.hero__card {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
  transition: transform 0.1s ease-out; /* Плавність для JS паралаксу */
}

.hero__card--main {
  width: 280px;
  height: 320px;
  background: var(--white);
}

.hero__card--main .card-icon {
  width: 80px;
  height: 80px;
  background: var(--bg-body);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
  box-shadow: inset 4px 4px 8px rgba(166, 180, 200, 0.4),
    inset -4px -4px 8px rgba(255, 255, 255, 0.8); /* Вдавлений ефект */
}

.hero__card--main .card-icon svg {
  width: 40px;
  height: 40px;
}

.hero__card--main h3 {
  font-size: 1.8rem;
  margin-bottom: 5px;
}

/* Маленька картка */
.hero__card--small {
  padding: 15px 25px;
  flex-direction: row;
  gap: 10px;
  bottom: 80px;
  right: 20px;
  font-weight: 700;
  color: var(--text-main);
  z-index: 3;
}

.hero__card--small svg {
  color: var(--primary);
}

/* Декоративні фігури */
.clay-shape {
  position: absolute;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--clay-shadow);
}

.shape-1 {
  width: 100px;
  height: 100px;
  top: 50px;
  left: 40px;
  background: linear-gradient(135deg, #ffdee9 0%, #b5fffc 100%);
  opacity: 0.8;
  z-index: 1;
}

.shape-2 {
  width: 150px;
  height: 150px;
  bottom: 40px;
  left: 80px;
  background: linear-gradient(135deg, #8bc6ec 0%, #9599e2 100%);
  opacity: 0.6;
  z-index: 1;
}

/* Анімація левітації (CSS only backup) */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .hero__title {
    font-size: 3rem;
  }
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__desc {
    margin: 0 auto 30px;
  }
  .hero__actions {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
  .hero__title .highlight::after {
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
  }
  .hero__stats {
    justify-content: center;
  }
  .hero__visual {
    height: 400px;
    margin-top: 40px;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2.5rem;
  }
  .hero__card--main {
    width: 220px;
    height: 260px;
  }
}

/* --- Programs Section --- */
.programs {
  padding: 100px 0;
  background-color: var(--bg-body); /* Зберігаємо загальний фон */
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 20px;
}

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

.programs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  padding: 20px; /* Відступ для тіней */
}

/* Card Styling */
.program-card {
  padding: 35px 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  position: relative;
  top: 0;
}

.program-card:hover {
  transform: translateY(-15px) scale(1.02);
  /* Посилена тінь при наведенні для ефекту левітації */
  box-shadow: 15px 15px 30px rgba(166, 180, 200, 0.5),
    -15px -15px 30px rgba(255, 255, 255, 0.9);
  z-index: 10;
}

.program-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  font-size: 1.5rem;
  /* Внутрішня тінь для ефекту вдавлення іконки */
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.05),
    inset -2px -2px 5px rgba(255, 255, 255, 0.8);
}

.program-card__title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--text-main);
}

.program-card__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 30px;
  flex-grow: 1; /* Притискає кнопку до низу */
}

.program-card__meta {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.program-card__meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.program-card__meta i {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

/* Small Button Variant */
.btn--small {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.btn--small:hover {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
  border-color: var(--primary);
}

/* --- Methodology Section --- */
.methodology {
  padding: 100px 0;
  overflow: hidden;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}

/* Центральна лінія (візуальна вісь) */
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 6px;
  height: 100%;
  background: rgba(99, 102, 241, 0.1); /* Дуже прозора лінія */
  border-radius: 10px;
  transform: translateX(-50%);
  box-shadow: inset 1px 1px 3px rgba(166, 180, 200, 0.2);
}

.timeline__item {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 60px;
  position: relative;
  width: 50%;
}

/* Чергування сторін */
.timeline__item.left {
  align-self: flex-start;
  text-align: right;
  padding-right: 40px;
  margin-right: auto; /* Притискає вліво */
}

.timeline__item.right {
  align-self: flex-end;
  text-align: left;
  padding-left: 40px;
  margin-left: auto; /* Притискає вправо */
  flex-direction: row-reverse; /* Щоб контент був справа */
}

/* Номер кроку по центру */
.timeline__number {
  position: absolute;
  top: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-weight: 800;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;

  /* Центрування по осі */
  right: -30px;
}

.timeline__item.right .timeline__number {
  right: auto;
  left: -30px;
}

/* Контент кроку */
.timeline__content {
  padding: 30px;
  position: relative;
  background: var(--white);
  width: 100%;
  transition: transform 0.4s ease;
}

.timeline__content:hover {
  transform: scale(1.03);
}

.timeline__content h3 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.3rem;
}

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

/* Анімація появи (клас додається JS) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* --- Responsive Timeline --- */
@media (max-width: 768px) {
  .timeline::before {
    left: 30px; /* Лінія зліва */
  }

  .timeline__item {
    width: 100%;
    margin-left: 0 !important;
    padding-left: 80px !important;
    padding-right: 0 !important;
    text-align: left !important;
    flex-direction: row !important; /* Скидаємо реверс */
  }

  .timeline__number {
    left: 0 !important;
    right: auto !important;
  }
}

/* --- Mentors Section --- */
.mentors {
  padding: 100px 0;
  background-color: var(--bg-body);
}

.mentors__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  padding: 20px;
}

.mentor-card {
  padding: 40px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.mentor-card:hover {
  transform: translateY(-10px);
}

/* Обгортка для фото з Clay-ефектом */
.mentor-card__img-wrapper {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  padding: 5px; /* Відступ для рамки */
  margin-bottom: 25px;
  background: var(--bg-body);
  /* Ефект вдавлення або випуклості рамки */
  box-shadow: 5px 5px 10px rgba(166, 180, 200, 0.4),
    -5px -5px 10px rgba(255, 255, 255, 0.8);
}

.mentor-card__img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  /* Легка внутрішня тінь поверх картинки для глибини */
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.mentor-card__name {
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 5px;
  font-weight: 800;
}

.mentor-card__role {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mentor-card__bio {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 25px;
  line-height: 1.7;
}

/* Посилання-дія */
.mentor-card__link {
  margin-top: auto; /* Притискає до низу */
  color: var(--text-main);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s ease, color 0.3s ease;
}

.mentor-card__link i {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.mentor-card__link:hover {
  color: var(--primary);
  gap: 12px; /* Стрілочка від'їжджає при наведенні */
}

/* --- Reviews Section --- */
.reviews {
  padding: 100px 0;
  overflow: hidden;
}

.reviews__wrapper {
  position: relative;
  /* Додаємо градієнтні маски по боках, щоб показати, що є скрол */
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  padding: 20px 0;
}

.reviews__scroller {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding: 20px 5%; /* Відступи, щоб тіні не обрізалися */
  scroll-snap-type: x mandatory; /* Картки "прилипають" при скролі */
  scrollbar-width: none; /* Firefox */
}

.reviews__scroller::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.review-card {
  min-width: 350px;
  max-width: 350px;
  padding: 35px;
  flex-shrink: 0;
  scroll-snap-align: center; /* Центрування при зупинці скролу */
  display: flex;
  flex-direction: column;
  /* Трохи повертаємо різні картки для "живого" ефекту (опціонально, тут робимо рівно) */
  transition: transform 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
}

.review-card__header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.review-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.review-name {
  font-size: 1.1rem;
  color: var(--text-main);
}

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

.review-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 20px;
  flex-grow: 1;
}

.review-stars {
  display: flex;
  gap: 5px;
}

.review-stars i {
  width: 18px;
  height: 18px;
  color: #e2e8f0; /* Сірий для пустих */
}

.review-stars i.filled {
  color: #f59e0b; /* Жовтий */
  fill: #f59e0b;
}

.review-stars i.half {
  color: #f59e0b;
  fill: url(#half); /* Спрощено: просто колір */
}

@media (max-width: 480px) {
  .review-card {
    min-width: 280px;
    max-width: 280px;
  }
}

/* --- Contact Section --- */
.contact {
  padding: 100px 0;
  background-color: var(--bg-body);
}

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

.contact__features {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__feature {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  color: var(--text-main);
  transition: transform 0.3s ease;
}

.contact__feature:hover {
  transform: translateX(10px);
}

.contact__feature i {
  color: var(--primary);
  width: 24px;
  height: 24px;
}

.contact__form-wrapper {
  padding: 40px;
  background: var(--white);
}

.contact__form-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.8rem;
  color: var(--text-main);
}

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

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

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.form-input {
  width: 100%;
  padding: 15px 15px 15px 50px; /* Місце для іконки */
  border: none;
  border-radius: 30px;
  background: var(--bg-body);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-main);
  outline: none;
  box-shadow: inset 5px 5px 10px rgba(166, 180, 200, 0.4),
    inset -5px -5px 10px rgba(255, 255, 255, 0.8);
  transition: box-shadow 0.3s ease;
}

.form-input:focus {
  box-shadow: inset 7px 7px 14px rgba(166, 180, 200, 0.5),
    inset -7px -7px 14px rgba(255, 255, 255, 0.9);
  color: var(--primary);
}

.error-msg {
  display: none;
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 5px;
  margin-left: 15px;
}

.form-group.error .error-msg {
  display: block;
}

.form-group.error .form-input {
  box-shadow: inset 2px 2px 5px rgba(239, 68, 68, 0.2);
}

/* Custom Checkbox (Base) */
.custom-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  user-select: none;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.captcha-box {
  background: #f9f9f9;
  border: 1px solid #d3d3d3;
  padding: 15px 20px;
  border-radius: 4px;
  width: 100%;
  justify-content: flex-start;
  gap: 15px;
}

.captcha-logo {
  margin-left: auto;
  width: 24px;
  opacity: 0.5;
}

.checkmark {
  height: 24px;
  width: 24px;
  background-color: #fff;
  border: 2px solid #c1c1c1;
  border-radius: 2px;
  position: relative;
  transition: all 0.2s;
}

.custom-checkbox:hover input ~ .checkmark {
  border-color: #b2b2b2;
}

.custom-checkbox input:checked ~ .checkmark {
  border-color: #4caf50;
  background-color: #4caf50; /* Green tick background option or keep white */
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.checkmark--small {
  height: 18px;
  width: 18px;
  background-color: var(--bg-body);
  border-radius: 4px;
  margin-right: 10px;
  box-shadow: inset 2px 2px 4px rgba(166, 180, 200, 0.4),
    inset -2px -2px 4px rgba(255, 255, 255, 0.8);
  position: relative;
  flex-shrink: 0;
}

.checkmark--small:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 4px;
  height: 9px;
  border: solid var(--primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark--small:after {
  display: block;
}

.terms-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.terms-text a {
  color: var(--primary);
  text-decoration: underline;
}

.btn--block {
  width: 100%;
  margin-top: 20px;
}

.success-message {
  text-align: center;
  padding: 40px 20px;
  animation: fadeIn 0.5s ease;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #dcfce7;
  color: #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.1);
}

.success-icon svg {
  width: 40px;
  height: 40px;
}

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

@media (max-width: 992px) {
  .contact__container {
    grid-template-columns: 1fr;
  }
  .contact__info {
    text-align: center;
  }
  .contact__features {
    align-items: center;
  }
}

.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px; /* Або right: 20px */
  width: calc(100% - 40px);
  max-width: 400px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;

  /* Animation defaults */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-popup.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cookie-icon {
  color: var(--primary);
  min-width: 24px;
}

.cookie-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

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

.pages {
  padding: 140px 0 60px; /* Більше відступу зверху через фіксований хедер */
  min-height: 80vh;
}

.pages .container {
  background: var(--white);
  padding: 40px;
  border-radius: var(--clay-radius);
  box-shadow: var(--clay-shadow);
  /* Легка текстура для документів */
  background: linear-gradient(145deg, #ffffff, #f5f7fa);
}

.pages h1 {
  font-size: 2.5rem;
  color: var(--text-main);
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(99, 102, 241, 0.1);
}

.pages h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-top: 30px;
  margin-bottom: 15px;
}

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

.pages ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.pages li {
  list-style: disc;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding-left: 5px;
}

.pages li::marker {
  color: var(--accent);
}

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

.pages strong {
  color: var(--text-main);
}

@media (max-width: 768px) {
  .pages .container {
    padding: 25px;
  }
  .pages h1 {
    font-size: 1.8rem;
  }
}
