/* --- Змінні: Architectural Minimal --- */
:root {
  --bg-color: #ffffff;
  --bg-secondary: #f8f8f8; /* Дуже світлий сірий, майже білий */

  --color-text-main: #1a1a1a; /* Майже чорний */
  --color-text-dim: #555555;

  --color-accent: #c25e00; /* Burnt Orange / Deep Ocher - стриманий, але живий */
  --color-border: #e5e5e5; /* Колір сітки */

  --font-heading: "Archivo", sans-serif;
  --font-body: "Inter", sans-serif;

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

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

html {
  scroll-behavior: smooth;
}

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

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

ul {
  list-style: none;
}

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

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

/* --- Typography Helpers --- */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-heading);
  font-weight: 500; /* Не надто жирний, стильний */
  letter-spacing: -0.02em;
}

/* --- Header Grid Layout --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
}

.header__grid {
  display: grid;
  /* Лого | Меню | Екшн */
  grid-template-columns: 250px 1fr 250px;
  height: 100%;
  max-width: 1920px; /* На всю ширину великих екранів */
  margin: 0 auto;
}

/* Логотип */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 40px;
  border-right: 1px solid var(--color-border);
  height: 100%;
}

.logo__img {
  width: 32px;
  height: 32px;
}

.logo__text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Навігація */
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

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

.nav__link {
  font-size: 0.95rem;
  color: var(--color-text-main);
  position: relative;
  padding: 26px 0; /* Щоб заповнити висоту */
}

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

/* Права частина */
.header__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--color-border);
  height: 100%;
}

/* Кнопка-посилання */
.btn-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-main);
}

.btn-link:hover {
  color: var(--color-accent);
}

.btn-link:hover i {
  transform: translateX(4px);
  transition: transform 0.3s ease;
}

/* Бургер (прихований на десктопі) */
.burger-btn {
  display: none;
  background: none;
  border: none;
  font-family: var(--font-heading);
  text-transform: uppercase;
  cursor: pointer;
  font-size: 1rem;
}

/* --- Mobile Menu & Responsive --- */
@media (max-width: 1024px) {
  .header__grid {
    grid-template-columns: 1fr auto;
    padding: 0 20px;
  }

  .logo {
    border-right: none;
    padding-left: 0;
  }

  .nav,
  .btn-link {
    display: none; /* Ховаємо меню і кнопку */
  }

  .header__actions {
    border-left: none;
    justify-content: flex-end;
  }

  .burger-btn {
    display: block;
  }

  /* Мобільне меню (випадаюче) */
  .nav.active {
    display: flex;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-color);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 60px;
    z-index: 999;
    border-top: 1px solid var(--color-border);
  }

  .nav.active .nav__list {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .nav.active .nav__link {
    font-size: 1.5rem;
    padding: 10px 0;
  }
}

/* --- Footer --- */
.footer {
  background-color: var(--bg-secondary);
  color: var(--color-text-main);
  padding-top: 0;
}

.footer__top-border {
  width: 100%;
  height: 1px;
  background-color: var(--color-border);
}

.footer__layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding: 80px 0;
}

.footer__head {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

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

.footer__links a {
  color: var(--color-text-main);
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
}

.footer__links a:hover {
  border-bottom-color: var(--color-accent);
}

.footer__brand {
  padding-right: 40px;
}

.footer__logo {
  width: 40px;
  margin-bottom: 20px;
}

.footer__mission {
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 30px;
  font-weight: 500;
}

.eu-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--color-text-dim);
  background: #fff;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
}

.eu-badge i {
  width: 16px;
  height: 16px;
}

.footer__address {
  font-style: normal;
  color: var(--color-text-main);
  margin-bottom: 20px;
  line-height: 1.5;
}

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

.footer__contacts-links a {
  font-weight: 500;
}

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

@media (max-width: 992px) {
  .footer__layout {
    grid-template-columns: 1fr 1fr;
    gap: 60px 20px;
  }
}

@media (max-width: 576px) {
  .footer__layout {
    grid-template-columns: 1fr;
  }
}

/* --- Hero Section --- */
.hero {
  /* Відступ зверху дорівнює висоті хедера, щоб контент не ховався */
  padding-top: var(--header-height);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero__grid {
  display: grid;
  /* Така ж сітка як в хедері: контент зліва, фото справа */
  grid-template-columns: 1.2fr 1fr;
  flex-grow: 1;
  max-width: 1920px;
  margin: 0 auto;
  width: 100%;
  border-bottom: 1px solid var(--color-border);
}

/* Ліва колонка */
.hero__content {
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--color-border);
  position: relative;
}

/* Лейбл зверху */
.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-dim);
  margin-bottom: 40px;
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981; /* Зелений активний статус */
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

/* Заголовок */
.hero__title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 40px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.hero__title span {
  display: block; /* Кожне слово з нового рядка для ефекту */
}

.text-accent {
  color: var(--color-accent);
  font-weight: 400;
  font-style: italic; /* Трохи контрасту */
}

/* Опис */
.hero__desc {
  font-size: 1.15rem;
  color: var(--color-text-dim);
  max-width: 500px;
  margin-bottom: 50px;
  line-height: 1.6;
}

/* Кнопки та екшени */
.hero__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn--solid {
  background-color: var(--color-text-main);
  color: #fff;
  padding: 16px 40px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn--solid:hover {
  background-color: var(--color-accent);
  transform: translateY(-2px);
}

.hero__note {
  font-size: 0.85rem;
  color: var(--color-text-dim);
  font-style: italic;
}

/* Права колонка */
.hero__visual {
  position: relative;
  background-color: var(--bg-secondary);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.hero__image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 700px;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Чорно-білий фільтр для строгості */
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}

.hero__visual:hover .hero__img {
  filter: grayscale(0%);
}

/* Картка поверх фото */
.hero__card {
  position: absolute;
  bottom: 40px;
  left: -40px; /* Вилазить за межі блоку, ламаючи сітку */
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 20px 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  z-index: 2;
}

.hero__card-icon {
  width: 50px;
  height: 50px;
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.hero__card-text {
  display: flex;
  flex-direction: column;
}

.hero__card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

.hero__card-subtitle {
  font-size: 0.85rem;
  color: var(--color-text-dim);
}

/* Нижня смуга */
.hero__footer {
  display: flex;
  justify-content: space-around;
  padding: 25px 0;
  background-color: #fff;
  border-bottom: 1px solid var(--color-border);
}

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

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

/* --- ANIMATION CSS --- */
/* Класи для JS анімації */
.reveal-wrap {
  display: block;
  overflow: hidden; /* Маска для тексту */
}

.reveal-text {
  display: block;
  transform: translateY(100%); /* Спочатку сховано внизу */
  opacity: 0;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s ease;
}

.reveal-text.is-visible {
  transform: translateY(0);
  opacity: 1;
}

/* Затримки для послідовності */
.delay-1 {
  transition-delay: 0.2s;
}
.delay-2 {
  transition-delay: 0.4s;
}

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

  .hero__content {
    padding: 60px 20px;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .hero__visual {
    min-height: 400px;
  }

  .hero__card {
    left: 20px;
    bottom: 20px;
  }
}

@media (max-width: 768px) {
  .hero__footer {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    align-items: flex-start;
  }
}

/* --- Methodology / Blueprint Section --- */
.method {
  padding: 100px 0;
  border-bottom: 1px solid var(--color-border);
  background-color: var(--bg-color);
}

.section-header {
  margin-bottom: 60px;
  max-width: 600px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-dim);
  border-left: 2px solid var(--color-accent);
  padding-left: 15px;
}

/* Blueprint Grid Layout */
.blueprint-grid {
  display: grid;
  /* 3 колонки рівної ширини */
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}

.blueprint-card {
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 40px;
  position: relative;
  background: transparent;
  transition: background-color 0.4s ease;
  display: flex;
  flex-direction: column;
}

/* Ефект при наведенні: легка зміна фону */
.blueprint-card:hover {
  background-color: var(--bg-secondary);
}

.blueprint-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
}

.blueprint-num {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  /* Робимо цифру контурною (Outline) */
  -webkit-text-stroke: 1px var(--color-border);
  transition: -webkit-text-stroke-color 0.3s ease;
}

.blueprint-card:hover .blueprint-num {
  -webkit-text-stroke-color: var(--color-accent);
}

.blueprint-icon {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
}

.blueprint-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.blueprint-desc {
  font-size: 0.95rem;
  color: var(--color-text-dim);
  margin-bottom: 25px;
  line-height: 1.6;
  flex-grow: 1; /* Текст розтягується, штовхаючи список вниз */
}

.blueprint-desc strong {
  color: var(--color-text-main);
  font-weight: 500;
}

.blueprint-list {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
}

.blueprint-list li {
  font-size: 0.9rem;
  color: var(--color-text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.blueprint-list li::before {
  content: "";
  width: 4px;
  height: 4px;
  background-color: var(--color-accent);
  display: block;
}

/* Блок CTA внизу сітки */
.blueprint-cta {
  grid-column: 1 / -1; /* На всю ширину */
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 30px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--color-text-main); /* Темний акцент */
  color: #fff;
}

.cta-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
}

.btn-text {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 2px;
}

.btn-text:hover {
  border-bottom-color: var(--color-accent);
  color: var(--color-accent);
}

/* Адаптив Методології */
@media (max-width: 992px) {
  .blueprint-grid {
    grid-template-columns: 1fr; /* Одна колонка */
  }

  .blueprint-card {
    border-right: 1px solid var(--color-border);
  }

  .blueprint-cta {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

/* --- Insights (Journal List) --- */
.insights {
  padding: 100px 0;
  background-color: var(--bg-color);
}

.insights__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.link-underlined {
  font-size: 0.95rem;
  color: var(--color-text-main);
  border-bottom: 1px solid var(--color-text-main);
  padding-bottom: 2px;
}

.link-underlined:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* Journal Row Layout */
.journal-list {
  display: flex;
  flex-direction: column;
}

.journal-row {
  display: grid;
  /* Дата/Кат | Контент | Кнопка */
  grid-template-columns: 200px 1fr 250px;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  transition: background-color 0.3s ease;
  align-items: flex-start;
}

/* Ефект наведення на весь рядок */
.journal-row:hover {
  background-color: var(--bg-secondary);
  /* Додаємо невеликий зсув padding, щоб виглядало живо */
  padding-left: 20px;
  padding-right: 20px;
  margin-left: -20px; /* Компенсація, щоб не ламати ширину */
  margin-right: -20px;
  width: calc(100% + 40px);
}

/* Ліва колонка (Мета) */
.journal-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.journal-date {
  font-size: 0.9rem;
  color: var(--color-text-dim);
  font-family: var(--font-heading);
}

.journal-cat {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  font-weight: 600;
}

/* Центральна колонка (Текст) */
.journal-title {
  font-size: 1.5rem;
  line-height: 1.3;
  margin-bottom: 15px;
  font-weight: 500;
}

.journal-title a {
  color: var(--color-text-main);
}

.journal-excerpt {
  font-size: 1rem;
  color: var(--color-text-dim);
  max-width: 600px;
  line-height: 1.6;
}

/* Права колонка (Дія) */
.journal-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  height: 100%; /* Центрування по висоті рядка, якщо треба */
}

.journal-link-text {
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0; /* Приховано за замовчуванням */
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.journal-arrow {
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: 50%; /* Єдиний круглий елемент для контрасту */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background-color: #fff;
}

.journal-arrow i {
  width: 18px;
  color: var(--color-text-main);
}

/* Ефекти ховеру */
.journal-row:hover .journal-title a {
  color: var(--color-accent);
}

.journal-row:hover .journal-link-text {
  opacity: 1;
  transform: translateX(0);
}

.journal-row:hover .journal-arrow {
  background-color: var(--color-text-main);
  border-color: var(--color-text-main);
  transform: rotate(45deg); /* Повертаємо стрілку */
}

.journal-row:hover .journal-arrow i {
  color: #fff;
}

/* Адаптив Блогу */
@media (max-width: 992px) {
  .journal-row {
    grid-template-columns: 1fr; /* Одна колонка */
    gap: 20px;
  }

  .journal-meta {
    flex-direction: row;
    align-items: center;
  }

  .journal-action {
    justify-content: flex-start;
  }

  .journal-link-text {
    opacity: 1; /* На мобільному показуємо текст одразу */
    transform: none;
  }

  .journal-row:hover {
    /* Прибираємо складний ховер ефект на мобільному */
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    background-color: transparent;
  }
}

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

.mentors__header {
  margin-bottom: 60px;
  text-align: left;
}

.mentors__grid {
  display: grid;
  /* Три колонки з лініями між ними */
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border); /* Ліва лінія сітки */
}

.mentor-card {
  border-right: 1px solid var(--color-border); /* Права лінія для кожної картки */
  border-bottom: 1px solid var(--color-border);
  background-color: transparent;
  transition: background-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.mentor-card:hover {
  background-color: var(--bg-secondary);
}

/* Візуальна частина (Фото) */
.mentor-visual {
  width: 100%;
  aspect-ratio: 4/5; /* Портретний формат */
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.mentor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%); /* Суворий ЧБ стиль */
  transition: filter 0.5s ease, transform 0.7s ease;
}

.mentor-card:hover .mentor-img {
  filter: grayscale(0%); /* Колір при наведенні */
  transform: scale(1.05); /* Легкий зум */
}

/* Інформаційна частина */
.mentor-info {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.mentor-name {
  font-size: 1.25rem;
  margin-bottom: 5px;
  font-weight: 700;
}

.mentor-role {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  margin-bottom: 15px;
}

.mentor-bio {
  font-size: 0.95rem;
  color: var(--color-text-dim);
  line-height: 1.5;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Посилання внизу картки */
.mentor-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-main);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.mentor-link:hover {
  color: var(--color-accent);
  text-decoration-color: var(--color-accent);
}

/* Нижній інфо-блок */
.mentors__footer {
  margin-top: 40px;
  padding: 20px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--color-border);
  display: flex;
  justify-content: center;
}

.mentors__note {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--color-text-main);
}

.mentors__note i {
  color: var(--color-accent);
}

/* Адаптив Mentors */
@media (max-width: 992px) {
  .mentors__grid {
    grid-template-columns: 1fr; /* Одна колонка на мобільному */
    border-left: none; /* Прибираємо ліву лінію, бо border буде у карток */
  }

  .mentor-card {
    border-left: 1px solid var(--color-border); /* Додаємо рамку зліва */
  }

  .mentors__footer {
    text-align: center;
  }

  .mentors__note {
    flex-direction: column;
    gap: 5px;
  }
}

/* --- Contact Section --- */
.contact {
  background-color: var(--bg-color);
  border-bottom: 1px solid var(--color-border);
  /* Відступ не потрібен, якщо ми хочемо щоб він прилипав до футера або попередньої секції */
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr; /* Ліва частина вужча, форма ширша */
  max-width: 1920px;
  margin: 0 auto;
  min-height: 600px;
}

/* Ліва колонка */
.contact__info {
  padding: 80px 60px;
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact__label {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.contact__title {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 30px;
}

.contact__desc {
  font-size: 1.1rem;
  color: var(--color-text-dim);
  max-width: 400px;
  line-height: 1.6;
}

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

.contact__benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
}

.contact__benefits i {
  color: var(--color-accent);
  width: 20px;
}

/* Права колонка (Форма) */
.contact__form-wrapper {
  position: relative;
  padding: 0; /* Форма заповнює простір */
}

.form {
  display: grid;
  grid-template-columns: 1fr;
  height: 100%;
}

.form__group {
  position: relative;
  border-bottom: 1px solid var(--color-border);
  padding: 30px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.form__input {
  font-family: var(--font-heading); /* Шрифт заголовків для вводу */
  font-size: 1.2rem;
  color: var(--color-text-main);
  border: none;
  background: transparent;
  width: 100%;
  padding: 5px 0;
  outline: none;
}

.form__input::placeholder {
  color: #ddd;
  font-weight: 300;
}

/* Активний стан інпуту */
.form__group:focus-within {
  background-color: #fafafa;
}

.form__group:focus-within .form__label {
  color: var(--color-accent);
}

.error-msg {
  position: absolute;
  bottom: 10px;
  right: 40px;
  font-size: 0.75rem;
  color: #ef4444; /* Червоний */
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.3s ease;
}

.form__group.error .error-msg {
  opacity: 1;
  transform: translateY(0);
}

.form__group.error input {
  color: #ef4444;
}

.captcha-group {
  background-color: var(--bg-secondary);
}

.custom-captcha {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: #fff;
  border: 1px solid var(--color-border);
  cursor: pointer;
  width: fit-content;
  user-select: none;
}

.custom-captcha input {
  display: none;
}

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

.custom-captcha input:checked + .captcha-box {
  border-color: #10b981;
  background-color: #10b981;
}

.custom-captcha input:checked + .captcha-box::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.captcha-text {
  font-size: 0.9rem;
  font-weight: 500;
}

.agreement-group {
  padding-top: 20px;
  padding-bottom: 20px;
  border-bottom: none; /* Останній елемент перед кнопкою */
}

.custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.custom-checkbox input {
  display: none;
}

.checkbox-box {
  min-width: 20px;
  width: 20px;
  height: 20px;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background: #fff;
}

.checkbox-icon {
  width: 14px;
  color: #fff;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

.custom-checkbox input:checked + .checkbox-box {
  background-color: var(--color-text-main);
  border-color: var(--color-text-main);
}

.custom-checkbox input:checked + .checkbox-box .checkbox-icon {
  opacity: 1;
  transform: scale(1);
}

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

.checkbox-text a {
  text-decoration: underline;
  color: var(--color-text-main);
}

/* Кнопка */
.form__submit {
  width: 100%;
  padding: 30px;
  background-color: var(--color-text-main);
  color: #fff;
  border: none;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  transition: background-color 0.3s ease;
}

.form__submit:hover {
  background-color: var(--color-accent);
}

.form__submit:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.success-message {
  display: none; /* Приховано */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
  z-index: 10;
}

.success-message.active {
  display: flex;
  animation: fadeIn 0.5s ease;
}

.success-icon {
  width: 80px;
  height: 80px;
  background-color: #ecfdf5;
  color: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

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

.success-title {
  font-size: 2rem;
  margin-bottom: 10px;
}

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

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

@media (max-width: 992px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .contact__info {
    padding: 60px 20px;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .contact__title {
    font-size: 2.5rem;
  }

  .form__group {
    padding: 20px;
  }
}

.error-msg {
  position: absolute;
  bottom: 8px;
  right: 40px;
  font-size: 0.75rem;
  color: #ef4444; /* Яскраво-червоний */
  font-weight: 600;
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.form__group.error .error-msg {
  opacity: 1;
  transform: translateY(0);
}

.form__group.error .form__input {
  color: #ef4444;
}

.form__group.error {
  border-bottom-color: #ef4444;
}

.form__group.error .captcha-box,
.form__group.error .checkbox-box {
  border-color: #ef4444;
  background-color: rgba(239, 68, 68, 0.05);
}

.form__group.error {
  animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }
  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }
  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0);
  }
  40%,
  60% {
    transform: translate3d(4px, 0, 0);
  }
}

#resetFormBtn {
  display: inline-block;
  background-color: transparent;

  color: var(--color-text-main) !important;
  border: 1px solid var(--color-text-main) !important; /* Чорна рамка */
  padding: 12px 30px;
  margin-top: 20px;

  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;

  cursor: pointer;
  transition: all 0.3s ease;
}

#resetFormBtn:hover {
  background-color: var(--color-text-main);
  color: #fff !important;
}

.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-text-main);
  color: #fff;
  z-index: 9999;

  transform: translateY(100%); /* Зсуваємо вниз на всю висоту елемента */
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);

  border-top: 1px solid rgba(255, 255, 255, 0.1);

  /* Flex для центрування */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px; /* Трохи більше повітря */
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.cookie-popup.show {
  transform: translateY(0); /* Повертаємо на місце (bottom: 0) */
}

/* Внутрішні елементи */
.cookie-content {
  display: flex;
  align-items: center;
  gap: 30px;
  max-width: var(--container-width);
  width: 100%;
  justify-content: space-between; /* Розводимо текст і кнопку */
}

.cookie-text {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0; /* Прибираємо зайві відступи */
  color: #e5e5e5;
}

.cookie-text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-text a:hover {
  color: var(--color-accent);
}

.cookie-btn {
  background: #fff;
  border: 1px solid #fff;
  color: var(--color-text-main);
  padding: 10px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap; /* Щоб текст кнопки не ламався */
}

.cookie-btn:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* Адаптив для мобілок */
@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column; /* Текст зверху, кнопка знизу */
    align-items: flex-start; /* Вирівнювання по лівому краю */
    gap: 15px;
  }

  .cookie-btn {
    width: 100%; /* Кнопка на всю ширину для зручності */
    text-align: center;
    padding: 14px;
  }
}

.pages {
  /* 120px зверху, щоб текст не ховався під фіксованим хедером */
  padding-top: 120px;
  padding-bottom: 100px;
  max-width: 800px; /* Оптимальна ширина для читання */
  margin: 0 auto; /* Центрування */
}

/* Заголовки сторінок (h1) */
.pages h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-text-main);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

/* Підзаголовки (h2) */
.pages h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-top: 50px;
  margin-bottom: 20px;
  color: var(--color-text-main);
  /* Стильний акцент зліва (Swiss Style) */
  border-left: 4px solid var(--color-accent);
  padding-left: 15px;
}

/* Звичайний текст (p) */
.pages p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7; /* Більший інтервал для зручності читання */
  color: var(--color-text-dim);
  margin-bottom: 20px;
}

.pages ul {
  list-style: disc; /* Стандартні крапки */
  padding-left: 20px;
  margin-bottom: 20px;
  color: var(--color-text-main);
}

.pages li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.pages a {
  color: var(--color-text-main);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
  transition: color 0.3s ease;
}

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

.legal-date {
  display: block;
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 20px;
}
