/* --- VARIABLES --- */
:root {
  --bg-dark: #0b0e14; /* Deep Tech Black */
  --bg-secondary: #151a25; /* Lighter Black for contrast */
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --accent-neon: #00f0ff; /* Cyan Neon */
  --accent-hover: #00b8cc;
  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;

  --skew-degree: -5deg; /* Core dynamic angle */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

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

html {
  scroll-behavior: smooth; /* Плавний перехід */
  scroll-padding-top: var(
    --header-height
  ); /* Врахування висоти хедера при скролі */
}
/* --- RESET & GLOBAL --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden; /* Prevent scrollbar due to skewed elements */
}

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

ul {
  list-style: none;
}

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

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

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 12px 32px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  clip-path: polygon(
    10% 0,
    100% 0,
    100% 100%,
    0% 100%
  ); /* Diagonal cut left top */
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn--neon {
  background-color: var(--accent-neon);
  color: var(--bg-dark);
}

.btn--neon:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.5rem;
  color: #fff;
  text-transform: uppercase;
}

.header__logo-img {
  height: 32px;
  width: 32px;
}

.header__nav {
  display: none; /* Mobile first hidden */
}

@media (min-width: 992px) {
  .header__nav {
    display: block;
  }
}

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

.header__link {
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 5px 0;
}

.header__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-neon);
  transition: var(--transition);
  transform: skewX(var(--skew-degree));
}

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

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

.header__cta {
  display: none;
}

@media (min-width: 768px) {
  .header__cta {
    display: inline-block;
  }
}

.header__burger {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: block;
}

@media (min-width: 992px) {
  .header__burger {
    display: none;
  }
}

/* --- HEADER UPDATE (Mobile Menu Fix) --- */

/* Стилі для десктопу залишаються, а це додаємо/змінюємо для мобілки: */

/* За замовчуванням меню сховане на мобільному */
.header__nav {
  display: none;
}

/* Коли екран широкий (Десктоп) - показуємо меню */
@media (min-width: 992px) {
  .header__nav {
    display: block !important; /* Перебиваємо мобільні стилі */
    transform: none !important;
    position: static;
    background: transparent;
    padding: 0;
    border: none;
  }
  .header__menu {
    flex-direction: row;
  }
}

/* Стилі відкритого меню на мобільному */
@media (max-width: 991px) {
  .header__nav {
    display: block; /* Робимо блоком, але ховаємо через transform */
    position: absolute;
    top: var(--header-height); /* З'являється одразу під хедером */
    left: 0;
    width: 100%;
    background-color: rgba(11, 14, 20, 0.98); /* Майже непрозорий фон */
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    padding: 30px 0;

    /* Анімація появи: зсуваємо вгору */
    transform: translateY(-150%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 900;
  }

  /* Цей клас ми будемо додавати через JS */
  .header__nav.active {
    transform: translateY(0); /* Повертаємо на місце */
  }

  .header__menu {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .header__link {
    font-size: 1.2rem; /* Більший шрифт для пальців */
  }
}

/* --- MAIN PLACEHOLDER --- */
.main {
  padding-top: var(--header-height);
  min-height: 60vh; /* Temporary */
}

/* --- FOOTER --- */
.footer {
  background-color: var(--bg-secondary);
  padding: 80px 0 30px;
  position: relative;
  margin-top: 100px;
}

/* Diagonal Separator for Footer */
.footer__decoration {
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: var(--bg-secondary);
  transform: skewY(2deg);
  z-index: 1;
}

.footer__container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__container {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  }
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 20px;
}

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

.footer__note {
  font-size: 0.8rem;
  color: var(--accent-neon);
  font-weight: 600;
}

.footer__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #fff;
  position: relative;
  display: inline-block;
}

.footer__title::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%) skewX(var(--skew-degree));
  width: 4px;
  height: 100%;
  background-color: var(--accent-neon);
}

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

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

.footer__link:hover {
  color: var(--accent-neon);
  padding-left: 5px; /* Slide effect */
}

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

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

.footer__icon {
  width: 18px;
  height: 18px;
  color: var(--accent-neon);
  flex-shrink: 0;
}

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

/* --- HERO SECTION --- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh; /* Full screen height */
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-height);
}

.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: linear-gradient(
    90deg,
    var(--bg-dark) 0%,
    rgba(11, 14, 20, 0.7) 60%,
    rgba(11, 14, 20, 0.2) 100%
  );
  z-index: 2;
}

/* Diagonal Background decoration */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: -20%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(0, 240, 255, 0.03) 100%
  );
  transform: skewX(-20deg);
  z-index: 2;
  border-left: 1px solid rgba(0, 240, 255, 0.1);
}

.hero__container {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero__content {
  max-width: 800px;
}

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 4px;
  color: var(--accent-neon);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 25px;
  transform: skewX(var(--skew-degree));
  backdrop-filter: blur(5px);
}

.hero__badge-icon {
  width: 16px;
  height: 16px;
}

/* Typography */
.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 25px;
  text-transform: uppercase;
  transform: skewX(var(--skew-degree)); /* Keeping the geometric theme */
}

.text-neon {
  color: var(--accent-neon);
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.text-stroke {
  -webkit-text-stroke: 1px #fff;
  color: transparent;
}

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

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

.btn--transparent {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn--transparent:hover {
  border-color: var(--accent-neon);
  color: var(--accent-neon);
}

/* Stats */
.hero__stats {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__stat-item {
  display: flex;
  flex-direction: column;
}

.hero__stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.hero__stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero__stat-separator {
  width: 1px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  transform: rotate(15deg); /* Diagonal separator */
}

/* Responsiveness */
@media (max-width: 768px) {
  .hero__title {
    font-size: 2.5rem;
  }

  .hero::after {
    display: none;
  }

  .hero__overlay {
    background: rgba(11, 14, 20, 0.85); /* Darker on mobile for readability */
  }
}

/* --- GLOBAL SECTION STYLES --- */
.section {
  padding: 100px 0;
  position: relative;
}

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

.section-tag {
  display: inline-block;
  color: var(--accent-neon);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

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

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

/* --- STRATEGY CARDS (Dynamic Diagonals) --- */
.strategy__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.s-card {
  background-color: var(--bg-secondary);
  padding: 40px 30px;
  position: relative;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
  /* The Skew Magic */
  transform: skewX(var(--skew-degree));
  overflow: hidden;
}

/* Counter-skew for content so it stays straight */
.s-card__inner {
  transform: skewX(calc(var(--skew-degree) * -1));
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Hover Effects */
.s-card:hover {
  border-color: var(--accent-neon);
  transform: skewX(var(--skew-degree)) translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.s-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--accent-neon);
  transform: scaleY(0);
  transition: transform 0.3s ease;
  transform-origin: bottom;
}

.s-card:hover::before {
  transform: scaleY(1);
}

/* Card Content Styles */
.s-card__icon-box {
  width: 60px;
  height: 60px;
  background-color: rgba(0, 240, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  clip-path: polygon(
    20% 0,
    100% 0,
    100% 100%,
    0% 100%,
    0% 20%
  ); /* Custom shape */
  transition: var(--transition);
}

.s-card__icon {
  width: 30px;
  height: 30px;
  color: var(--accent-neon);
}

.s-card:hover .s-card__icon-box {
  background-color: var(--accent-neon);
}

.s-card:hover .s-card__icon {
  color: var(--bg-dark);
}

.s-card__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 15px;
}

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

/* Special accent card */
.s-card--accent {
  background: linear-gradient(
    135deg,
    var(--bg-secondary) 0%,
    rgba(0, 240, 255, 0.05) 100%
  );
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-neon);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: auto;
}

.link-arrow:hover {
  gap: 12px;
}

/* Mobile Fix: Remove skew on small screens for better readability */
@media (max-width: 768px) {
  .s-card {
    transform: none;
  }
  .s-card__inner {
    transform: none;
  }
  .s-card:hover {
    transform: translateY(-5px);
  }
}

/* --- MENTORING SECTION --- */
.mentoring {
  background-color: var(--bg-dark); /* Keeps background consistent */
  overflow: hidden;
}

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

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

/* Content Side */
.mentoring__list {
  margin: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.mentoring__item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.mentoring__icon {
  width: 50px;
  height: 50px;
  border-radius: 50%; /* Rounded for contrast against sharp lines */
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-neon);
  flex-shrink: 0;
  transition: var(--transition);
}

.mentoring__item:hover .mentoring__icon {
  background: var(--accent-neon);
  color: var(--bg-dark);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.mentoring__text h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 5px;
}

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

.mentoring__cta-box {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mentoring__cta-text {
  color: #fff;
  font-weight: 600;
  margin-bottom: 15px;
  display: block;
}

/* Visual Side with Diagonal Cut */
.mentoring__visual {
  position: relative;
  height: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mentoring__image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.mentoring__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Diagonal Clip Path: Creates a trapezoid shape */
  clip-path: polygon(15% 0, 100% 0, 100% 85%, 85% 100%, 0% 100%, 0% 15%);
  filter: grayscale(20%) contrast(110%);
  transition: var(--transition);
}

.mentoring__visual:hover .mentoring__img {
  filter: grayscale(0%);
}

/* Decorative Border around the image */
.mentoring__deco-box {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent-neon);
  z-index: -1;
  clip-path: polygon(15% 0, 100% 0, 100% 85%, 85% 100%, 0% 100%, 0% 15%);
  opacity: 0.5;
  transition: var(--transition);
}

.mentoring__visual:hover .mentoring__deco-box {
  top: -10px;
  left: -10px;
  opacity: 1;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .mentoring__visual {
    order: -1; /* Image first on mobile */
    min-height: 300px;
  }
}

/* --- CASES / BLOG SECTION --- */
.cases__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.case-card {
  background-color: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.case-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-neon);
}

.case-card__img-box {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.case-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.case-card:hover .case-card__img {
  transform: scale(1.1);
}

.case-card__tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent-neon);
  color: var(--bg-dark);
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
}

.case-card__content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.case-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 15px;
}

.case-card__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
  flex-grow: 1;
}

/* --- CONTACT SECTION --- */
.contact {
  position: relative;
  background-color: #080a0f; /* Slightly darker */
  overflow: hidden;
}

/* Diagonal Background decoration */
.contact__deco {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 240, 255, 0.02) 0%,
    transparent 100%
  );
  transform: skewX(-15deg);
  border-left: 1px solid rgba(255, 255, 255, 0.03);
}

.contact__container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
}

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

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

.c-benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 500;
}

.c-benefit__icon {
  color: var(--accent-neon);
  width: 20px;
  height: 20px;
}

/* --- FORM STYLES --- */
.contact__form {
  background: var(--bg-secondary);
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

/* Corner borders effect (Tech-Cut vibe) */
.contact__form::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 20px;
  height: 20px;
  border-top: 2px solid var(--accent-neon);
  border-left: 2px solid var(--accent-neon);
}
.contact__form::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 20px;
  height: 20px;
  border-bottom: 2px solid var(--accent-neon);
  border-right: 2px solid var(--accent-neon);
}

.contact__form-title {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 30px;
}

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

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

.form-input {
  width: 100%;
  padding: 12px 15px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--accent-neon);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.form-input.error {
  border-color: #ff4d4d;
}

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

.form-input.error + .error-msg {
  display: block;
}

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

.custom-checkbox {
  display: flex;
  align-items: flex-start; /* Align top for multi-line text */
  gap: 12px;
  cursor: pointer;
  user-select: none;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.checkmark {
  height: 20px;
  width: 20px;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  position: relative;
  transition: var(--transition);
}

.custom-checkbox:hover input ~ .checkmark {
  border-color: var(--accent-neon);
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: var(--accent-neon);
  border-color: var(--accent-neon);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--bg-dark);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

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

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

.capcha-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: fit-content;
}

.form-btn {
  width: 100%;
  margin-top: 10px;
}

.form-success {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-secondary);
  z-index: 10;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

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

.success-icon {
  width: 50px;
  height: 50px;
  color: var(--accent-neon);
  margin-bottom: 20px;
}

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

.custom-checkbox.error-state .checkmark {
  border-color: #ff4d4d;
  box-shadow: 0 0 5px rgba(255, 77, 77, 0.5);
}

.custom-checkbox.error-state .checkbox-text {
  color: #ff4d4d;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

.form-input:focus {
  border-color: var(--accent-neon) !important;
}

/* --- COOKIE POPUP --- */
.cookie-popup {
  position: fixed;
  bottom: -200px; /* Початковий стан - сховано знизу */
  left: 20px;
  z-index: 99999; /* Максимально високий індекс */
  width: calc(100% - 40px);
  max-width: 400px;
  background: rgba(11, 14, 20, 0.98);
  border: 1px solid var(--accent-neon);
  padding: 25px;
  transition: bottom 0.5s ease-in-out; /* Плавна поява */

  /* Декор */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  clip-path: polygon(0 0, 100% 0, 100% 85%, 92% 100%, 0 100%);
}

/* Клас для відображення */
.cookie-popup.show {
  bottom: 20px !important; /* !important щоб точно перебити інші стилі */
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

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

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

.btn--sm {
  padding: 8px 20px;
  font-size: 0.85rem;
  align-self: flex-start;
}

/* --- PAGES (Privacy, Terms, etc.) --- */
.pages {
  padding: 120px 0 80px; /* Враховуємо висоту хедера */
  min-height: 80vh;
}

.pages h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 30px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 20px;
}

.pages h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--accent-neon);
  margin-top: 40px;
  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 {
  color: var(--text-muted);
  margin-bottom: 10px;
  position: relative;
  padding-left: 15px;
}

.pages li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--accent-neon);
  font-weight: bold;
}

.pages strong {
  color: #fff;
}

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

.pages a:hover {
  text-decoration: none;
}
