/* --- VARIABLES & RESET --- */
:root {
  --bg-dark: #050507;
  --bg-panel: #0f1014;
  --primary: #00f3ff; /* Neon Cyan */
  --accent: #ff0055; /* Neon Pink */
  --text-main: #e0e0e0;
  --text-muted: #8a8b96;

  --font-head: "Orbitron", sans-serif;
  --font-body: "Exo 2", sans-serif;

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

  --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(5, 5, 7, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 243, 255, 0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
}

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

.header__logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.header__logo-img {
  height: 30px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

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

.header__link {
  font-size: 0.95rem;
  font-weight: 600;
  position: relative;
  padding: 5px 0;
}

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

.header__link:hover {
  color: var(--primary);
}
.header__link:hover::after {
  width: 100%;
}

/* CTA Button with Glitch effect styles */
.btn-glitch {
  padding: 10px 25px;
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-glitch::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary);
  z-index: -1;
  transition: left 0.4s var(--ease-out);
}

.btn-glitch:hover {
  color: var(--bg-dark);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

.btn-glitch:hover::before {
  left: 0;
}

/* Burger Menu */
.header__burger {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.header__burger-line {
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--text-main);
  transition: 0.3s;
}

/* --- FOOTER --- */
.footer {
  background-color: var(--bg-panel);
  border-top: 1px solid #222;
  padding: 80px 0 30px;
  position: relative;
  margin-top: 0; /* Будет отступ от контента */
}

/* Декоративная линия футера */
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

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

.footer__logo {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--text-main);
  display: block;
  margin-bottom: 20px;
}

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

.footer__title {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.footer__list li {
  margin-bottom: 12px;
}

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

.footer__link:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
  color: var(--text-main);
}

.footer__icon {
  color: var(--primary);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.footer__note {
  font-size: 0.8rem;
  color: var(--accent);
  margin-top: 20px;
  border: 1px dashed var(--accent);
  padding: 10px;
  display: inline-block;
}

.footer__bottom {
  text-align: center;
  border-top: 1px solid #222;
  padding-top: 30px;
  color: #555;
  font-size: 0.85rem;
}

/* --- ADAPTIVE (Mobile First Logic) --- */
@media (max-width: 992px) {
  .header__nav {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-dark);
    flex-direction: column;
    justify-content: center;
    transition: 0.4s var(--ease-out);
    border-top: 1px solid #222;
  }

  .header__nav.active {
    right: 0;
  }

  .header__list {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .header__burger {
    display: flex;
  }

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

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

  .header__logo {
    font-size: 1.2rem;
  }
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: var(--header-height); /* Відступ під хедер */
  display: flex;
  align-items: center;
  background: var(--bg-dark);
  overflow: hidden;
  z-index: 1;
}

/* Фонова сітка "Cyberpunk" */
.hero__bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(0, 243, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  perspective: 1000px;
  transform: translateZ(-100px); /* Ефект глибини */
}

/* Додамо світіння */
.hero::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 243, 255, 0.15), transparent 70%);
  z-index: -1;
  filter: blur(50px);
}

.hero__container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

/* Контентна частина */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 25px;
  letter-spacing: 2px;
}

.hero__title {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
  position: relative;
}

.hero__title--highlight {
  color: transparent;
  -webkit-text-stroke: 1px var(--primary);
  text-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.hero__desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 30px 0 40px;
  border-left: 2px solid var(--accent);
  padding-left: 20px;
}

.hero__desc-accent {
  color: #fff;
  font-weight: 600;
}

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

.hero__btn {
  font-size: 1rem;
  padding: 15px 40px;
  background: var(--primary);
  color: var(--bg-dark);
  /* Перевизначення стилів btn-glitch для головної кнопки */
  border: none;
}
.hero__btn::before {
  background: #fff;
}
.hero__btn:hover {
  color: var(--bg-dark);
  box-shadow: 0 0 30px var(--primary);
}

.hero__note {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  opacity: 0.7;
}

/* Візуальна частина (Асиметрія) */
.hero__visual {
  position: relative;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__frame {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__img-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  overflow: hidden;
  /* Скошений кут (Cyberpunk style) */
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Оверлей для ефекту екрану */
.hero__glitch-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
    linear-gradient(
      90deg,
      rgba(255, 0, 0, 0.06),
      rgba(0, 255, 0, 0.02),
      rgba(0, 0, 255, 0.06)
    );
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
}

.hero__floating-card {
  position: absolute;
  bottom: 40px;
  left: -40px;
  background: rgba(15, 16, 20, 0.9);
  border: 1px solid var(--primary);
  padding: 20px;
  z-index: 2;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: float 6s ease-in-out infinite;
}

.hero__stat-number {
  font-family: var(--font-head);
  font-size: 2.5rem;
  color: var(--primary);
  font-weight: 700;
  line-height: 1;
}

.hero__stat-text {
  font-size: 0.9rem;
  color: #fff;
  margin-top: 5px;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Адаптивність */
@media (max-width: 992px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 40px;
  }

  .hero__desc {
    margin: 30px auto;
    border-left: none;
    border-bottom: 2px solid var(--accent);
    padding-left: 0;
    padding-bottom: 20px;
  }

  .hero__actions {
    align-items: center;
  }

  .hero__visual {
    height: 400px;
    margin-top: 30px;
  }

  .hero__floating-card {
    left: 0;
    bottom: 20px;
  }

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

/* --- НОВА АНІМАЦІЯ --- */

/* Початковий стан елементів */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px); /* Зсув вниз */
  filter: blur(10px); /* Розмиття */
  animation: cyberFocus 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes cyberFocus {
  0% {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Оновлення стилів заголовка для стабільності */
.hero__title {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
  display: block; /* Гарантує блочність */
  width: 100%; /* Займає всю ширину контейнера */
}

/* Адаптив шрифту, щоб не було переносів у несподіваних місцях */
@media (max-width: 576px) {
  .hero__title {
    font-size: 2.2rem;
  }
}

/* --- TECH / METHODOLOGY SECTION --- */
.tech {
  padding: 120px 0;
  position: relative;
  background-color: var(--bg-dark);
}

/* Декоративний фон "світіння" позаду карток */
.tech::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 60%;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 243, 255, 0.08),
    transparent 70%
  );
  z-index: 0;
  pointer-events: none;
}

.tech__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 80px;
  position: relative;
  z-index: 1;
}

.tech__title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #fff;
}

.tech__title--accent {
  color: var(--primary);
  text-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

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

.text-highlight {
  color: #fff;
  border-bottom: 1px dashed var(--accent);
}

/* Grid Layout */
.tech__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}

/* Лінія, що з'єднує картки (тільки для десктопу) */
@media (min-width: 993px) {
  .tech__grid::after {
    content: "";
    position: absolute;
    top: 30%; /* Висота лінії */
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      var(--primary),
      transparent
    );
    opacity: 0.3;
    z-index: -1;
  }
}

/* Card Styles - Glassmorphism */
.tech__card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 30px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

/* Асиметрія: центральна картка зміщена вниз */
.tech__card--center {
  margin-top: 60px; /* Зсув */
  border-color: rgba(0, 243, 255, 0.2);
  background: rgba(0, 243, 255, 0.03);
}

/* Hover Effects */
.tech__card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Блик при наведенні */
.tech__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: 0.6s;
}

.tech__card:hover::before {
  left: 100%;
}

.tech__icon-box {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 5px; /* Легке заокруглення */
  margin-bottom: 25px;
  color: var(--text-main);
  font-size: 1.5rem;
  transition: 0.3s;
}

.tech__icon-box--accent {
  color: var(--primary);
  background: rgba(0, 243, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.tech__card:hover .tech__icon-box {
  background: var(--primary);
  color: var(--bg-dark);
  box-shadow: 0 0 20px var(--primary);
}

.tech__card-title {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 15px;
}

.tech__card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.tech__status {
  margin-top: 20px;
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  color: var(--primary);
  opacity: 0.7;
  border-top: 1px solid rgba(0, 243, 255, 0.2);
  padding-top: 10px;
}

/* Adaptive */
@media (max-width: 992px) {
  .tech__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tech__card--center {
    margin-top: 0; /* Прибираємо зсув на мобільному */
  }

  .tech__grid::after {
    display: none;
  }
}

/* --- BLOG / INSIGHTS SECTION --- */
.blog {
  padding: 100px 0;
  background-color: #08090c; /* Трохи світліший за основний фон для контрасту */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.blog__container {
  display: grid;
  grid-template-columns: 1fr 2fr; /* Асиметрія: 1/3 зліва, 2/3 справа */
  gap: 60px;
  align-items: start;
}

/* Sidebar Styling */
.blog__sidebar {
  position: sticky;
  top: 120px; /* Відступ зверху при скролі */
}

.blog__section-title {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 30px;
  color: #fff;
  text-transform: uppercase;
}

.text-neon {
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent);
}

.blog__desc {
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 1rem;
  max-width: 300px;
}

.blog__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--primary);
  padding-bottom: 5px;
}

.blog__cta-btn:hover {
  color: #fff;
  border-color: #fff;
  padding-left: 10px; /* Зсув при наведенні */
}

/* Feed Styling */
.blog__feed {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog__item {
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.01));
  padding: 30px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

/* Ефект "сканування" при наведенні */
.blog__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.3s ease;
  transform-origin: bottom;
}

.blog__item:hover {
  background: rgba(255, 255, 255, 0.03);
  transform: translateX(10px); /* Зсув вправо */
}

.blog__item:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}

.blog__item-meta {
  display: flex;
  gap: 15px;
  font-family: "Courier New", monospace; /* Техно-стиль для дат */
  font-size: 0.8rem;
  margin-bottom: 15px;
}

.blog__date {
  color: var(--text-muted);
}

.blog__tag {
  color: var(--primary);
  border: 1px solid rgba(0, 243, 255, 0.2);
  padding: 0 5px;
  border-radius: 2px;
}

.blog__item-title {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 15px;
  font-weight: 600;
  font-family: var(--font-body); /* Читабельний шрифт */
}

.blog__item-excerpt {
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 90%;
}

.blog__read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  color: #fff;
  font-weight: 700;
  opacity: 0; /* Приховано за замовчуванням */
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

/* Показуємо кнопку тільки при наведенні на картку */
.blog__item:hover .blog__read-more {
  opacity: 1;
  transform: translateX(0);
}

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

/* Adaptive */
@media (max-width: 992px) {
  .blog__container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .blog__sidebar {
    position: relative;
    top: 0;
    margin-bottom: 20px;
  }

  .blog__item:hover {
    transform: none; /* Вимикаємо зсув на мобільному */
  }

  .blog__read-more {
    opacity: 1; /* Завжди показуємо кнопку на мобільному */
    transform: translateX(0);
    margin-top: 10px;
  }
}

/* --- MENTORS SECTION --- */
.mentors {
  padding: 120px 0;
  background-color: var(--bg-dark);
}

.mentors__header {
  margin-bottom: 80px;
  max-width: 600px;
}

.mentors__title {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 20px;
}

.mentors__subtitle {
  color: var(--text-muted);
}

.mentors__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  row-gap: 80px; /* Великий відступ між рядами */
}

/* Картка ментора */
.mentor-card {
  display: flex;
  gap: 30px;
  align-items: center;
  position: relative;
  transition: 0.3s;
}

/* Зміщення для карток у парних позиціях (асиметрія) */
.mentor-card--offset {
  margin-top: 80px;
}

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

/* Фотографія */
.mentor-card__visual {
  width: 150px;
  height: 150px;
  flex-shrink: 0;
  position: relative;
  /* Шестикутник (Polygon) для кібер-стилю */
  clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
}

.mentor-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: 0.5s;
}

.mentor-card:hover .mentor-card__img {
  filter: grayscale(0%);
}

/* Рамка поверх фото */
.mentor-card__visual::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid var(--primary);
  box-sizing: border-box;
  clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
  opacity: 0.5;
  transition: 0.3s;
}

.mentor-card:hover .mentor-card__visual::after {
  opacity: 1;
  border-color: var(--accent);
}

/* Інфо блок */
.mentor-card__info {
  flex-grow: 1;
}

.mentor-card__name {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 5px;
}

.mentor-card__role {
  color: var(--primary);
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  margin-bottom: 20px;
  text-transform: uppercase;
}

/* Скіли (Progress Bars) */
.mentor-card__skills {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skill__label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.skill__bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
}

.skill__fill {
  height: 100%;
  background: var(--accent);
  position: relative;
  box-shadow: 0 0 10px var(--accent);
}

/* Адаптив */
@media (max-width: 992px) {
  .mentor-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .mentor-card__visual {
    width: 100%;
    height: 250px; /* Більше фото на планшетах */
    clip-path: none; /* Прибираємо складну геометрію для спрощення */
    border-radius: 10px;
  }

  .mentor-card__visual::after {
    display: none;
  }

  .mentor-card--offset {
    margin-top: 0; /* Прибираємо зсув */
  }
}

@media (max-width: 768px) {
  .mentors__grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

/* --- CONTACT SECTION --- */
.contact {
  padding: 100px 0;
  background: radial-gradient(
      circle at 30% 50%,
      rgba(0, 243, 255, 0.05),
      transparent 40%
    ),
    var(--bg-dark);
}

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

.contact__title {
  font-size: 3rem;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 20px;
}

.contact__desc {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.contact__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1.1rem;
}

.contact__features i {
  color: var(--primary);
}

.contact__form-wrapper {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  backdrop-filter: blur(10px);
  position: relative;
  clip-path: polygon(
    20px 0,
    100% 0,
    100% calc(100% - 20px),
    calc(100% - 20px) 100%,
    0 100%,
    0 20px
  );
}

.contact__form-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid transparent;
  z-index: -1;
}

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

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

.form__input {
  width: 100%;
  padding: 12px 15px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #333;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: 0.3s;
}

.form__input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.form__error {
  color: var(--accent);
  font-size: 0.8rem;
  margin-top: 5px;
  display: none;
}

.form__input.error {
  border-color: var(--accent);
}

.form__checkbox-group {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.custom-checkbox {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
  margin-top: 3px;
  cursor: pointer;
}

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

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

.form__captcha {
  margin-bottom: 25px;
}

.captcha-box {
  background: #f9f9f9;
  border: 1px solid #d3d3d3;
  border-radius: 3px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 300px;
}

.captcha-input {
  width: 24px;
  height: 24px;
  cursor: pointer;
  margin-right: 12px;
}

.captcha-label {
  color: #000;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  flex-grow: 1;
}

.captcha-logo {
  width: 32px;
  opacity: 0.7;
}

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

.success-icon {
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 50%;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 20px var(--primary);
}

.success-title {
  color: #fff;
  margin-bottom: 10px;
}

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

/* --- COOKIE POP-UP (FIXED) --- */
.cookie-popup {
  position: fixed;
  bottom: -100%; /* Ховаємо повністю за межі екрану */
  left: 0;
  width: 100%;
  background: rgba(15, 16, 20, 0.95);
  border-top: 1px solid var(--primary);
  padding: 20px;
  z-index: 10000; /* Дуже високий шар, щоб перекрити все */
  transition: bottom 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  backdrop-filter: blur(10px);
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
  display: flex; /* Гарантує блочність */
  justify-content: center;
}

.cookie-popup.show {
  bottom: 0; /* Виїжджає вгору */
}

.cookie-content {
  max-width: 1200px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
}

.cookie-content p {
  font-size: 0.9rem;
  color: #e0e0e0;
  margin: 0;
}

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

.cookie-btn {
  background: var(--primary);
  color: #000;
  border: none;
  padding: 10px 25px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  font-family: var(--font-head);
  white-space: nowrap; /* Щоб текст не ламався */
}

.cookie-btn:hover {
  background: #fff;
  box-shadow: 0 0 10px var(--primary);
}

/* Адаптив для мобільних */
@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-popup {
    padding: 30px 20px; /* Більше простору для пальців */
  }
}

.pages {
  padding: 120px 0 80px;
  min-height: 80vh;
}

.pages h1 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 30px;
}

.pages h2 {
  font-size: 1.5rem;
  color: #fff;
  margin: 30px 0 15px;
  border-left: 3px solid var(--accent);
  padding-left: 15px;
}

.pages p {
  margin-bottom: 15px;
  color: var(--text-main);
}

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

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

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

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

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}

.form__input.error {
  border-color: #ff0055 !important;
  box-shadow: 0 0 10px rgba(255, 0, 85, 0.3) !important;
  animation: shake 0.4s ease-in-out;
}

.form__error {
  color: #ff0055;
  font-size: 0.8rem;
  margin-top: 5px;
  display: none;
  font-weight: 600;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-5px);
  }
  40% {
    transform: translateX(5px);
  }
  60% {
    transform: translateX(-5px);
  }
  80% {
    transform: translateX(5px);
  }
}

.form {
  transition: all 0.5s ease;
  opacity: 1;
  transform: scale(1);
}

.form.hiding {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.success-message {
  display: none;
  text-align: center;
  padding: 60px 20px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-message.active {
  opacity: 1;
  transform: scale(1);
}

.success-icon {
  width: 80px;
  height: 80px;
  background: transparent;
  border: 2px solid var(--primary);
  border-radius: 50%;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
}

.success-icon i {
  width: 40px;
  height: 40px;
  animation: scaleCheck 0.5s 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes scaleCheck {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
