/* STAGE 0: GLOBAL STYLES & VARIABLES */
:root {
  /* Palette: Retro-Futurism */
  --bg-dark: #0b0c15;
  --bg-panel: #161823;
  --accent-primary: #00f3ff; /* Cyan Neon */
  --accent-secondary: #ff00ff; /* Magenta Neon */
  --text-main: #e0e0e0;
  --text-muted: #8a8b98;

  /* Fonts */
  --font-head: "Orbitron", sans-serif;
  --font-body: "Rajdhani", sans-serif;

  /* Spacing */
  --container-width: 1240px;
  --header-height: 80px;
}

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

body {
  font-family: --font-body;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  /* Retro Grid Background Effect */
  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: 40px 40px;
}

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

ul {
  list-style: none;
}

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

/* Container */
.header__container,
.footer__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* STAGE 1: HEADER STYLES */
/* --- REVISED HEADER STYLES (DESKTOP FIX) --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(11, 12, 21, 0.9); /* Трохи темніше для кращого контрасту */
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 243, 255, 0.1);
  display: flex;
  align-items: center;
}

.header__container {
  display: flex;
  justify-content: space-between; /* Розводить Лого і Навігацію по краях */
  align-items: center;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Logo Styles */
.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--accent-primary);
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
  letter-spacing: 1.5px;
  text-decoration: none;
  flex-shrink: 0; /* Щоб логотип не сплющувався */
}

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

/* Desktop Navigation Container */
.header__nav {
  display: flex;
  align-items: center;
  gap: 40px; /* Відступ між списком посилань і кнопкою CTA */
}

/* Nav Links List */
.nav__list {
  display: flex;
  align-items: center;
  gap: 30px; /* Відступ між посиланнями */
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  position: relative;
  color: var(--text-main);
  transition: color 0.3s ease;
}

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

.nav__link::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-secondary);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--accent-secondary);
}

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

/* Header CTA Button (Desktop) */
.header__cta {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--accent-secondary);
  color: var(--accent-secondary);
  padding: 10px 24px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  /* Зрізані кути */
  clip-path: polygon(
    10px 0,
    100% 0,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0 100%,
    0 10px
  );
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap; /* Текст не переноcиться */
}

.header__cta:hover {
  background: var(--accent-secondary);
  color: var(--bg-dark);
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
  transform: translateY(-2px);
}

/* Burger Menu (Hidden on Desktop) */
.header__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.header__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--accent-primary);
  position: absolute;
  transition: 0.3s;
  border-radius: 2px;
}

.header__burger span:nth-child(1) {
  top: 0;
}
.header__burger span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}
.header__burger span:nth-child(3) {
  bottom: 0;
}

.header__burger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}
.header__burger.active span:nth-child(2) {
  opacity: 0;
}
.header__burger.active span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 9px;
}

/* --- MOBILE ADAPTATION (Max-width: 992px) --- */
@media (max-width: 992px) {
  /* Ховаємо звичайну навігацію і показуємо бургер */
  .header__burger {
    display: block;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%; /* Ховаємо за межі екрану */
    width: 100%;
    height: 100vh;
    background: rgba(11, 12, 21, 0.98);
    flex-direction: column; /* Вертикальне вирівнювання */
    justify-content: center;
    gap: 40px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    padding: 20px;
    z-index: 999; /* Нижче бургера */
  }

  .header__nav.active {
    right: 0; /* Виїжджає */
  }

  .nav__list {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .nav__link {
    font-size: 1.5rem; /* Великий шрифт для мобільного */
    font-family: var(--font-head);
  }

  .header__cta {
    font-size: 1.1rem;
    padding: 15px 40px;
    width: auto;
  }
}

/* Burger Menu */
.header__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.header__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--accent-primary);
  position: absolute;
  transition: 0.3s;
  box-shadow: 0 0 5px var(--accent-primary);
}

.header__burger span:nth-child(1) {
  top: 0;
}
.header__burger span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}
.header__burger span:nth-child(3) {
  bottom: 0;
}

.header__burger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}
.header__burger.active span:nth-child(2) {
  opacity: 0;
}
.header__burger.active span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 9px;
}

/* Mobile Nav Styles */
@media (max-width: 992px) {
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(11, 12, 21, 0.98);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
  }

  .header__nav.active {
    right: 0;
  }

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

  .nav__link {
    font-size: 1.5rem;
    font-family: var(--font-head);
  }

  .header__burger {
    display: block;
  }

  .header__cta {
    display: block; /* Ensure button is visible inside menu */
    font-size: 1.2rem;
    padding: 15px 40px;
  }
}

/* STAGE 2: FOOTER STYLES */
.footer {
  background: var(--bg-panel);
  padding: 60px 0 20px;
  border-top: 1px solid rgba(0, 243, 255, 0.1);
  position: relative;
  overflow: hidden;
}

/* Decor for footer */
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-primary),
    transparent
  );
}

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

.footer__title {
  font-family: var(--font-head);
  color: var(--accent-secondary);
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer__logo-text {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--accent-primary);
  display: block;
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

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

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

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

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

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

.footer__contacts-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer__contacts-list i {
  color: var(--accent-primary);
  width: 20px;
  height: 20px;
}

.footer__bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.8rem;
}

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

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

  .footer__contacts-list li {
    justify-content: center;
  }

  .footer__link:hover {
    padding-left: 0;
  }
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh; /* На весь екран */
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Затемнення поверх канвасу, щоб текст був контрастним */
.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    transparent 0%,
    var(--bg-dark) 90%
  );
  z-index: 2;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 50px;
  width: 100%;
}

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 243, 255, 0.1);
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 25px;
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
  text-transform: uppercase;
  font-family: var(--font-body);
}

.hero__badge i {
  width: 16px;
  height: 16px;
}

/* Typography */
.hero__title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 6vw, 5.5rem); /* Адаптивний гігантський розмір */
  line-height: 1.1;
  margin-bottom: 25px;
  text-transform: uppercase;
}

.text-gradient {
  background: linear-gradient(90deg, #fff, var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(255, 0, 255, 0.3);
}

.hero__subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 40px;
  border-left: 2px solid var(--accent-secondary);
  padding-left: 20px;
}

/* Buttons */
.hero__actions {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.hero__btn {
  padding: 15px 35px;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  clip-path: polygon(
    15px 0,
    100% 0,
    100% calc(100% - 15px),
    calc(100% - 15px) 100%,
    0 100%,
    0 15px
  );
  transition: 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero__btn--primary {
  background: var(--accent-primary);
  color: var(--bg-dark);
  border: none;
}

.hero__btn--primary:hover {
  background: #fff;
  box-shadow: 0 0 20px var(--accent-primary);
  transform: translateY(-5px);
}

.hero__btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.hero__btn--ghost:hover {
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
}

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

/* Visual Hologram Card */
.hero__visual {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.holo-card {
  width: 300px;
  height: 400px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 243, 255, 0.3);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotateY(-15deg) rotateX(10deg);
  transition: transform 0.5s ease;
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.1),
    inset 0 0 20px rgba(255, 0, 255, 0.1);
  position: relative;
}

.holo-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(45deg);
  animation: holo-shine 3s infinite linear;
}

@keyframes holo-shine {
  0% {
    transform: translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateY(100%) rotate(45deg);
  }
}

.holo-card:hover {
  transform: rotateY(0) rotateX(0) scale(1.05);
}

.holo-icon {
  width: 80px;
  height: 80px;
  color: var(--accent-secondary);
  margin-bottom: 30px;
  filter: drop-shadow(0 0 10px var(--accent-secondary));
}

.holo-stats {
  width: 80%;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-head);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.stat-row .active {
  color: var(--accent-primary);
  text-shadow: 0 0 5px var(--accent-primary);
}

/* Mobile Adaptation */
@media (max-width: 992px) {
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 40px;
  }

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

  .hero__actions {
    justify-content: center;
    flex-direction: column;
  }

  .hero__visual {
    margin-top: 50px;
    display: none; /* Приховуємо складну 3D картку на мобільному для швидкодії, або можна залишити */
  }
}

/* --- SECTION UTILS --- */
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 20px;
  line-height: 1;
  color: #fff;
}

.text-stroke {
  -webkit-text-stroke: 1px var(--accent-secondary);
  color: transparent;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 50px;
}

.highlight-text {
  color: var(--accent-primary);
  border-bottom: 1px solid var(--accent-primary);
}

/* --- PRACTICES SECTION --- */
/* --- PRACTICES SECTION (FIXED LAYOUT) --- */
.practices {
  padding: 100px 0;
  position: relative;
}

/* Desktop: Side-by-Side Layout */
@media (min-width: 992px) {
  .practices .header__container {
    display: grid;
    grid-template-columns: 0.8fr 1.5fr; /* Текст зліва (вужче), Картки справа (шире) */
    gap: 100px; /* ВЕЛИКИЙ ВІДСТУП, про який ти просив */
    align-items: start;
  }

  .practices__header {
    position: sticky; /* Текст залипає при скролі */
    top: 120px;
    text-align: left;
  }
}

.practices__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 колонки карток */
  gap: 30px;
}

/* Card Sizes update for new grid */
.p-card {
  grid-column: span 1;
  min-height: 300px;
}

.p-card--large {
  grid-column: span 2; /* Широка картка на всю ширину правої колонки */
}

/* Стилі карток (без змін візуалу, тільки структура) */
.p-card {
  background: rgba(22, 24, 35, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.p-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 30px -10px rgba(0, 243, 255, 0.2);
  background: rgba(22, 24, 35, 0.9);
  z-index: 2;
}

/* Card content styles */
.p-card--large {
  background: linear-gradient(
    135deg,
    rgba(22, 24, 35, 0.8),
    rgba(0, 243, 255, 0.05)
  );
}

.p-card--accent {
  border-color: rgba(255, 0, 255, 0.3);
}

.p-card--accent:hover {
  border-color: var(--accent-secondary);
  box-shadow: 0 10px 30px -10px rgba(255, 0, 255, 0.2);
}

.p-card__icon-box {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  border-radius: 4px;
  color: var(--accent-primary);
}

.p-card--accent .p-card__icon-box {
  color: var(--accent-secondary);
}

.p-card__title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #fff;
}

.p-card__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.p-card__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.p-card__link i {
  width: 16px;
  transition: 0.3s;
}

.p-card__link:hover i {
  transform: translateX(5px);
}

.p-card__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent-secondary);
  color: #000;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 4px 8px;
  text-transform: uppercase;
  transform: rotate(5deg);
}

/* Mobile Adaptation */
@media (max-width: 992px) {
  .practices .header__container {
    display: block; /* Повертаємо вертикальний стек на мобільному */
  }

  .practices__header {
    margin-bottom: 50px;
    position: static;
  }

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

  .p-card--large {
    grid-column: span 1;
  }
}

/* Animation Reveal Class */
.scroll-hidden {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

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

/* --- TOOLS SECTION (TICKER) --- */
.tools {
  padding: 40px 0;
  background: var(--accent-primary);
  color: var(--bg-dark);
  position: relative;
  overflow: hidden;
  transform: skewY(-2deg); /* Dynamic angle */
  margin: 50px 0;
  border-top: 5px solid #fff;
  border-bottom: 5px solid #fff;
}

.tools__label {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  background: #000;
  color: #fff;
  padding: 5px 15px;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--accent-primary);
}

.tools__label i {
  width: 14px;
}

.tools__wrapper {
  display: flex;
  overflow: hidden;
  user-select: none;
}

.tools__track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker 20s linear infinite;
}

.tools__item {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0 20px;
}

.tools__divider {
  font-size: 2rem;
  opacity: 0.5;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Mobile Adaptation */
@media (max-width: 992px) {
  .practices__grid {
    grid-template-columns: 1fr; /* Stack cards vertically */
    gap: 20px;
  }

  .p-card,
  .p-card--large {
    grid-column: span 1;
  }

  .tools {
    transform: skewY(0);
  }
}
/* --- BENEFITS SECTION --- */
/* --- SECTION UTILS UPDATE --- */
/* Додамо загальний клас для контейнерів з бічним лейаутом, щоб було однаково всюди */
@media (min-width: 992px) {
  .split-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.5fr; /* Текст зліва, Контент справа */
    gap: 100px; /* Великий відступ */
    align-items: start;
  }

  .sticky-header {
    position: sticky;
    top: 120px;
    text-align: left !important; /* Примусово зліва на десктопі */
  }
}

/* --- BENEFITS SECTION --- */
.benefits {
  padding: 100px 0;
  position: relative;
  overflow: hidden; /* Щоб лінія не вилазила */
}

/* Layout override for Benefits */
.benefits .header__container {
  /* Наслідуємо логіку сітки, якщо екран широкий */
  /* Але тут ми пропишемо це явно для benefits */
}

@media (min-width: 992px) {
  .benefits .header__container {
    display: grid;
    grid-template-columns: 0.8fr 1.5fr;
    gap: 100px;
    align-items: start;
  }

  .benefits .section-title {
    text-align: left; /* Вирівнюємо заголовок вліво для десктопу */
  }
}

/* Background decorative line (Timeline) - Зсуваємо її вправо до контенту */
.benefits::before {
  content: "";
  position: absolute;
  top: 0;
  /* На десктопі лінія має проходити через правий блок */
  left: calc(50% + 150px); /* Приблизне центрування відносно правої колонки */
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--accent-primary),
    transparent
  );
  opacity: 0.3;
  z-index: 0;
}

.benefits__grid {
  display: flex;
  flex-direction: column;
  gap: 80px; /* Збільшений вертикальний відступ між пунктами */
  position: relative;
  z-index: 1;
}

.b-item {
  display: flex;
  gap: 50px; /* Більше відступу між Цифрою та Текстом */
  align-items: flex-start;
  /* Прибираємо max-width, щоб займало всю ширину колонки */
  width: 100%;
}

/* Чергування: Тепер все вирівняно відносно лінії timeline */
.b-item:nth-child(even) {
  flex-direction: row-reverse;
  text-align: right;
  /* На десктопі це виглядає як "ялинка" навколо лінії */
}

.b-item__num {
  font-family: var(--font-head);
  font-size: 5rem; /* Ще більша цифра */
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent-secondary);
  line-height: 0.8;
  min-width: 80px; /* Фіксована ширина для цифри */
}

.b-item__content {
  background: rgba(22, 24, 35, 0.8);
  border: 1px solid rgba(0, 243, 255, 0.2);
  padding: 40px; /* Більше внутрішнього відступу */
  position: relative;
  border-radius: 4px;
}

/* --- FAQ SECTION (CORRECTED) --- */
.faq {
  padding: 100px 0;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .faq .header__container {
    display: grid;
    grid-template-columns: 0.8fr 1.5fr;
    gap: 100px;
    align-items: start;
  }

  .faq .section-subtitle {
    margin-bottom: 0;
  }

  .faq__header-col {
    position: sticky;
    top: 120px;
  }
}

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

.faq__item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(22, 24, 35, 0.4);
  transition: all 0.3s ease;
  border-radius: 4px;
  overflow: hidden; /* Важливо для анімації */
}

/* Стилі для активного стану (коли відкрито) */
.faq__item.active {
  border-color: var(--accent-primary);
  background: rgba(22, 24, 35, 0.8);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
}

/* Кнопка питання */
.faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px;
  background: none;
  border: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: color 0.3s ease;
}

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

/* Іконка плюсика */
.faq__question i {
  color: var(--accent-primary);
  transition: transform 0.3s ease;
  min-width: 24px; /* Щоб не стискалась */
}

/* Поворот іконки при відкритті */
.faq__item.active .faq__question i {
  transform: rotate(45deg);
  color: var(--accent-secondary);
}

/* Блок відповіді (прихований за замовчуванням) */
.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Контент відповіді */
.faq__content {
  padding: 0 25px 25px 25px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.05); /* Легка лінія розділення */
}

/* Мобільні фікси (дублюємо тут, щоб все було в одному блоці) */
@media (max-width: 992px) {
  .faq .header__container {
    display: block;
  }

  .faq__wrapper {
    margin-top: 50px;
  }
}

/* --- CONTACT SECTION --- */
/* --- CONTACT SECTION (FIXED LAYOUT) --- */
.contact {
  padding: 100px 0;
  position: relative;
  overflow: hidden; /* Щоб уникнути випадкових скролів */
}

/* Desktop: Split Layout (Текст зліва, Форма справа) */
@media (min-width: 992px) {
  .contact .header__container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr; /* Пропорції колонок */
    gap: 100px; /* Той самий великий відступ, як і в інших секціях */
    align-items: start;
  }

  /* Ліва колонка залипає при скролі */
  .contact__info {
    position: sticky;
    top: 120px;
  }
}

/* Ліва колонка: Інфо та Статистика */
.contact__stats {
  margin-top: 50px;
  display: flex;
  gap: 60px; /* Більший відступ між цифрами */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
}

.c-stat__val {
  display: block;
  font-family: var(--font-head);
  font-size: 2.5rem; /* Більший шрифт */
  color: var(--accent-primary);
  text-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
  margin-bottom: 5px;
}

.c-stat__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact__form {
  background: rgba(22, 24, 35, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 50px;
  border-radius: 4px;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.5);
}

.form-group {
  margin-bottom: 25px; /* Зменшили відступ між блоками */
  position: relative;
}

.form-label {
  display: flex; /* Вирівнювання в рядок */
  align-items: center; /* Центрування по вертикалі */
  gap: 10px; /* Відступ між іконкою і текстом */

  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-family: var(--font-body);
}

/* Стиль іконки в заголовку */
.form-label i {
  width: 18px;
  height: 18px;
  color: var(--accent-primary); /* Підсвічуємо іконку */
}

.form-input {
  width: 100%;
  background: rgba(11, 12, 21, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 20px; /* Стандартний паддінг */
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.05rem;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(11, 12, 21, 0.9);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.15);
}

/* Валідація */
.error-msg {
  display: none;
  color: #ff0055;
  font-size: 0.85rem;
  margin-top: 8px;
}

.form-group.error .form-input {
  border-color: #ff0055;
  box-shadow: 0 0 10px rgba(255, 0, 85, 0.2);
}

.form-group.error .error-msg {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-check {
  margin-bottom: 25px;
}

.captcha-box {
  background: rgba(0, 0, 0, 0.2);
  padding: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  transition: 0.3s;
}

.captcha-box:hover {
  border-color: var(--accent-primary);
  background: rgba(0, 243, 255, 0.02);
}

.custom-checkbox-label {
  display: flex;
  align-items: flex-start;
  user-select: none;
  position: relative;
}

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

/* Стиль квадратика чекбокса */
.checkmark {
  height: 24px;
  width: 24px;
  background-color: transparent;
  border: 2px solid var(--text-muted);
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  flex-shrink: 0; /* Не стискається */
  margin-top: 2px; /* Корекція під висоту рядка */
}

.checkmark.small {
  height: 20px;
  width: 20px;
  border-width: 1px;
}

.custom-checkbox-label:hover input ~ .checkmark {
  border-color: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.custom-checkbox-label input:checked ~ .checkmark {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px var(--accent-primary);
}

.checkmark:after {
  content: "";
  display: none;
  width: 6px;
  height: 12px;
  border: solid var(--bg-dark);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-2px);
}

.checkmark.small:after {
  width: 4px;
  height: 9px;
}

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

.check-text {
  font-size: 1rem;
  color: #fff;
  line-height: 1.5;
}

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

.small-text a {
  color: var(--accent-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-primary);
  transition: 0.3s;
}

.small-text a:hover {
  color: #fff;
  border-color: #fff;
}

/* Кнопка форми */
.form-btn {
  width: 100%;
  margin-top: 15px;
  padding: 20px;
  font-size: 1rem;
  justify-content: center;
}

/* Success Message */
.form-message {
  display: none;
  margin-top: 25px;
  padding: 20px;
  background: rgba(0, 243, 255, 0.05);
  border: 1px solid var(--accent-primary);
  text-align: center;
  border-radius: 4px;
}

.form-message h4 {
  color: var(--accent-primary);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
}

.form-message.visible {
  display: block;
  animation: fadeIn 0.5s;
}

/* Mobile Adaptation */
@media (max-width: 992px) {
  .contact .header__container {
    display: block; /* Повертаємо стек */
  }

  .contact__stats {
    margin-bottom: 50px;
    justify-content: flex-start;
  }

  .contact__form {
    padding: 25px; /* Менші відступи на мобільному */
  }
}

/* --- COOKIE POPUP --- */
.cookie-popup {
  position: fixed;
  bottom: -100px; /* Приховано */
  left: 0;
  width: 100%;
  background: rgba(11, 12, 21, 0.95);
  border-top: 1px solid var(--accent-primary);
  padding: 20px;
  z-index: 2000;
  transition: bottom 0.5s ease;
  backdrop-filter: blur(10px);
}

.cookie-popup.show {
  bottom: 0;
}

.cookie-content {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.cookie-content i {
  color: var(--accent-secondary);
  margin-right: 10px;
  vertical-align: middle;
}

.cookie-content a {
  color: #fff;
  text-decoration: underline;
}

.cookie-btn {
  padding: 8px 20px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.pages {
  padding: 120px 0 60px; /* Відступ для хедера */
  min-height: 80vh;
}

.pages .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  background: rgba(22, 24, 35, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px;
}

.pages h1 {
  font-family: var(--font-head);
  font-size: 2.5rem;
  color: var(--accent-primary);
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 20px;
}

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

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

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

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

.pages strong {
  color: #fff;
}

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

/* Mobile Fixes for Contact */
@media (max-width: 992px) {
  .contact .header__container {
    display: block;
  }
  .contact__stats {
    margin-bottom: 40px;
  }
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}
