/* --- Variables & Reset --- */
:root {
  --bg-dark: #050505;
  --bg-panel: #0f0f0f;
  --primary-neon: #00f3ff; /* Cyan Neon */
  --secondary-neon: #bc13fe; /* Purple Neon */
  --text-main: #e0e0e0;
  --text-muted: #8a8a8a;
  --white: #ffffff;

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

  --transition: all 0.3s ease;
  --border-width: 1px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
}

ul {
  list-style: none;
}

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

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header --- */
.header {
  background-color: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 243, 255, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
}

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

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

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

.header__nav {
  display: flex;
}

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

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

.header__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-neon);
  transition: var(--transition);
  box-shadow: 0 0 8px var(--secondary-neon);
}

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

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

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

.header__cta {
  background: transparent;
  border: 1px solid var(--primary-neon);
  color: var(--primary-neon);
  padding: 10px 25px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 0 5px rgba(0, 243, 255, 0.2);
}

.header__cta:hover {
  background: var(--primary-neon);
  color: var(--bg-dark);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.6);
}

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

/* --- Main Placeholder --- */
.main {
  flex: 1;
  padding-top: 80px; /* Space for fixed header */
}

/* --- Footer --- */
.footer {
  background-color: var(--bg-panel);
  border-top: 1px solid rgba(0, 243, 255, 0.1);
  padding: 60px 0 20px;
  margin-top: auto;
}

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

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

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

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

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

.footer__link:hover {
  color: var(--primary-neon);
  transform: translateX(5px);
}

.footer__socials {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer__social-link {
  color: var(--white);
  transition: var(--transition);
}

.footer__social-link:hover {
  color: var(--secondary-neon);
  transform: scale(1.1);
}

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

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

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

/* --- Mobile Adaptive --- */
@media (max-width: 992px) {
  .header__burger {
    display: block;
  }

  .header__nav {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--bg-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border-left: 1px solid var(--primary-neon);
  }

  .header__nav.active {
    right: 0;
  }

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

  .header__link {
    font-size: 1.5rem;
  }

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

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

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

  .footer__socials {
    justify-content: center;
  }
}

/* --- UI Components (Buttons) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 35px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  /* Strict Geometry: No border-radius */
  border-radius: 0;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Primary Button (Neon Cyan) */
.btn--primary {
  background-color: var(--primary-neon);
  color: var(--bg-dark);
  border: 1px solid var(--primary-neon);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

.btn--primary:hover {
  background-color: transparent;
  color: var(--primary-neon);
  box-shadow: 0 0 30px rgba(0, 243, 255, 0.8);
}

/* Outline Button (Transparent with Border) */
.btn--outline {
  background-color: transparent;
  color: var(--white);
  border: 1px solid var(--text-muted);
}

.btn--outline:hover {
  border-color: var(--secondary-neon);
  color: var(--secondary-neon);
  box-shadow: 0 0 15px rgba(188, 19, 254, 0.4);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh; /* Full viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px; /* Offset for fixed header */
}

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

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(5, 5, 5, 0.7) 0%,
    rgba(5, 5, 5, 1) 90%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--secondary-neon);
  color: var(--secondary-neon);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 25px;
  background: rgba(188, 19, 254, 0.1);
  box-shadow: 0 0 10px rgba(188, 19, 254, 0.2);
}

.hero__title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 25px;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

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

.hero__desc {
  font-size: 1.2rem;
  color: var(--text-main);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll Indicator */
.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  opacity: 0.7;
  animation: bounce 2s infinite;
}

.hero__scroll-text {
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--primary-neon);
}

.hero__scroll-icon {
  color: var(--primary-neon);
}

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

/* Decorations */
.hero__decoration {
  position: absolute;
  bottom: 0;
  width: 2px;
  height: 150px;
  background: linear-gradient(to top, var(--primary-neon), transparent);
  z-index: 2;
}
.hero__decoration--left {
  left: 40px;
}
.hero__decoration--right {
  right: 40px;
}

/* Responsive Text */
@media (max-width: 768px) {
  .hero__title {
    font-size: 2.5rem;
  }
  .hero__desc {
    font-size: 1rem;
  }
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }
  .btn {
    width: 100%;
  }
  .hero__decoration {
    display: none;
  }
}

/* --- Common Section Styles --- */
section {
  padding: 100px 0;
  position: relative;
}

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

.section-subtitle {
  font-family: var(--font-body);
  color: var(--secondary-neon);
  font-size: 0.9rem;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

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

/* --- Solutions Grid (Bento/Dashboard Style) --- */
.solutions {
  background-color: #080808; /* Slightly lighter than pure black */
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px; /* Technical Grid Background */
}

.solutions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  grid-auto-rows: minmax(250px, auto);
}

/* Card Styles */
.sol-card {
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Modifier Classes for Grid Breaking */
.sol-card--wide {
  grid-column: span 2;
}

.sol-card--tall {
  grid-row: span 2;
  background: linear-gradient(
    180deg,
    rgba(20, 20, 20, 0.6) 0%,
    rgba(188, 19, 254, 0.05) 100%
  );
}

/* Hover Effects */
.sol-card:hover {
  border-color: var(--primary-neon);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
  transform: translateY(-5px);
}

.sol-card:hover .sol-card__decor-corner {
  background-color: var(--primary-neon);
}

.sol-card:hover .sol-card__bg-num {
  opacity: 0.2;
  transform: scale(1.1);
  color: var(--primary-neon);
}

/* Card Internals */
.sol-card__decor-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background: linear-gradient(
    45deg,
    transparent 50%,
    rgba(255, 255, 255, 0.1) 50%
  );
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.sol-card__icon-box {
  margin-bottom: 20px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 243, 255, 0.05);
  border: 1px solid rgba(0, 243, 255, 0.2);
}

.sol-card__icon {
  color: var(--primary-neon);
  width: 24px;
  height: 24px;
}

.sol-card__title {
  font-size: 1.25rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.sol-card__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.sol-card__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  color: var(--secondary-neon);
  font-weight: 600;
  text-transform: uppercase;
}

.sol-card__link i {
  width: 16px;
  height: 16px;
  transition: var(--transition);
}

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

/* Background Number Decoration */
.sol-card__bg-num {
  position: absolute;
  bottom: 10px;
  right: 15px;
  font-family: var(--font-head);
  font-size: 4rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.03);
  z-index: 0;
  line-height: 1;
  transition: var(--transition);
  pointer-events: none;
}

/* Responsive Grid */
@media (max-width: 992px) {
  .solutions__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sol-card--wide {
    grid-column: span 2;
  }
  .sol-card--tall {
    grid-row: span 1; /* Reset vertical span on tablets */
  }
}

@media (max-width: 600px) {
  .solutions__grid {
    grid-template-columns: 1fr;
  }
  .sol-card--wide {
    grid-column: span 1;
  }
}

/* --- AI Tech Section --- */
.ai-tech {
  background-color: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.ai-tech__stat-box {
  display: flex;
  gap: 40px;
  margin: 40px 0;
  padding: 20px 0;
  border-top: 1px solid rgba(0, 243, 255, 0.2);
  border-bottom: 1px solid rgba(0, 243, 255, 0.2);
}

.ai-tech__stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 2.5rem;
  color: var(--white);
  line-height: 1;
}

.ai-tech__stat-label {
  font-size: 0.85rem;
  color: var(--secondary-neon);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ai-tech__btn {
  width: auto;
  display: inline-flex;
}

/* --- Tech Accordion --- */
.tech-accordion {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.tech-item {
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.tech-item.active {
  border-color: var(--secondary-neon);
  box-shadow: 0 0 15px rgba(188, 19, 254, 0.15);
}

.tech-item__header {
  display: flex;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  user-select: none;
}

.tech-item__num {
  font-family: var(--font-head);
  color: rgba(255, 255, 255, 0.2);
  font-size: 1.2rem;
  margin-right: 20px;
}

.tech-item.active .tech-item__num {
  color: var(--secondary-neon);
}

.tech-item__title {
  flex-grow: 1;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  text-transform: none; /* Override global H tags if needed, but keeping uppercase looks techy */
}

.tech-item__icon {
  color: var(--text-muted);
  transition: var(--transition);
}

.tech-item.active .tech-item__icon {
  transform: rotate(45deg);
  color: var(--secondary-neon);
}

/* Accordion Body Animation */
/* Оновлений CSS для акордеону */
.tech-item__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out; /* Плавна зміна висоти */
  background: rgba(0, 0, 0, 0.3);
  will-change: max-height; /* Оптимізація для браузера */
}

/* Видаляємо фіксований max-height для активного класу, JS сам його додасть інлайново */
.tech-item.active .tech-item__body {
  /* Стилі тут більше не потрібні для висоти */
}

.tech-item__content {
  padding: 0 30px 30px 65px; /* Indent to align with title */
  color: var(--text-muted);
  font-size: 0.95rem;
}

.tech-item__content strong {
  color: var(--white);
  font-weight: 600;
}

.tech-item__tags {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

.tech-item__tags span {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--primary-neon);
  background: rgba(0, 243, 255, 0.05);
  padding: 2px 6px;
  border: 1px solid rgba(0, 243, 255, 0.1);
}

/* Responsive */
@media (max-width: 992px) {
  .ai-tech__layout {
    grid-template-columns: 1fr;
  }

  .tech-item__content {
    padding: 0 20px 20px 20px;
  }
}

/* --- Process Section --- */
.process {
  background-color: #050505;
  position: relative;
  overflow: hidden;
}

/* Background decoration line */
.process::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-neon),
    transparent
  );
  opacity: 0.2;
  z-index: 0;
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}

.proc-card {
  position: relative;
  padding-top: 20px;
  transition: var(--transition);
}

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

.proc-card__num {
  font-family: var(--font-head);
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.1);
  font-weight: 700;
  transition: var(--transition);
}

.proc-card__line {
  flex-grow: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
}

/* Dot on the line */
.proc-card__line::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--bg-dark);
  border: 1px solid var(--text-muted);
}

.proc-card__title {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--white);
}

.proc-card__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.proc-card__text strong {
  color: var(--secondary-neon);
  font-weight: 400;
}

/* Hover Effects */
.proc-card:hover .proc-card__num {
  color: var(--primary-neon);
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.proc-card:hover .proc-card__line {
  background: var(--primary-neon);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.proc-card:hover .proc-card__line::after {
  background: var(--primary-neon);
  border-color: var(--primary-neon);
}

/* Final Step Decoration */
.proc-card--final .proc-card__line {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent);
}
.proc-card--final:hover .proc-card__line {
  background: linear-gradient(90deg, var(--secondary-neon), transparent);
}

/* CTA Block */
.process__cta {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.process__cta-text {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--white);
  letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 992px) {
  .process__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 30px;
  }

  .process::before {
    display: none;
  }
}

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

  .proc-card {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 20px;
    padding-top: 0;
  }

  .proc-card__header {
    margin-bottom: 10px;
  }

  .proc-card__line {
    display: none; /* Hide horizontal lines on mobile */
  }
}

/* --- Contact Section --- */
.contact {
  background: radial-gradient(
    circle at 70% 50%,
    rgba(0, 243, 255, 0.03),
    transparent 50%
  );
  padding-bottom: 120px;
}

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

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

.contact__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 500;
}

.contact__features li i {
  color: var(--secondary-neon);
  width: 20px;
}

/* --- Form Styles --- */
.contact__form-box {
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  position: relative;
}

/* Decorative Form Corners */
.contact__form-box::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 20px;
  height: 20px;
  border-top: 2px solid var(--primary-neon);
  border-left: 2px solid var(--primary-neon);
}
.contact__form-box::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 20px;
  height: 20px;
  border-bottom: 2px solid var(--primary-neon);
  border-right: 2px solid var(--primary-neon);
}

.form__group {
  margin-bottom: 20px;
}

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

.form__input-wrapper {
  position: relative;
}

.form__icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 18px;
  height: 18px;
  transition: var(--transition);
}

.form__input {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 15px 15px 45px; /* Space for icon */
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.form__input:focus {
  border-color: var(--primary-neon);
  background: rgba(0, 243, 255, 0.05);
}

.form__input:focus + .form__icon,
.form__input-wrapper:focus-within .form__icon {
  color: var(--primary-neon);
}

/* --- Custom Captcha --- */
.form__captcha {
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.03);
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-block;
  width: 100%;
}

.captcha-container {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  user-select: none;
}

.captcha-container input {
  display: none;
}

.captcha-checkmark {
  width: 24px;
  height: 24px;
  border: 2px solid var(--text-muted);
  background: transparent;
  position: relative;
  transition: var(--transition);
}

/* Checkmark Tick */
.captcha-checkmark::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid var(--bg-dark);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
  opacity: 0;
}

/* Checked State */
.captcha-container input:checked ~ .captcha-checkmark {
  background: var(--primary-neon);
  border-color: var(--primary-neon);
  box-shadow: 0 0 10px var(--primary-neon);
}

.captcha-container input:checked ~ .captcha-checkmark::after {
  opacity: 1;
}

.captcha-text {
  font-size: 0.95rem;
  color: var(--white);
}

/* --- Privacy Consent --- */
.form__consent {
  margin-bottom: 25px;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.checkbox-container input {
  display: none;
}

.custom-checkbox {
  width: 18px;
  height: 18px;
  border: 1px solid var(--text-muted);
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  transition: var(--transition);
}

.custom-checkbox::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid var(--secondary-neon);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
}

.checkbox-container input:checked ~ .custom-checkbox {
  border-color: var(--secondary-neon);
}

.checkbox-container input:checked ~ .custom-checkbox::after {
  opacity: 1;
}

.consent-text a {
  color: var(--white);
  text-decoration: underline;
}

.consent-text a:hover {
  color: var(--secondary-neon);
}

.form__btn {
  width: 100%;
}

/* --- Success Message --- */
.form__message {
  display: none; /* Hidden by default */
  margin-top: 20px;
  background: rgba(0, 243, 255, 0.1);
  border: 1px solid var(--primary-neon);
  padding: 15px;
  align-items: flex-start;
  gap: 15px;
  animation: fadeIn 0.5s ease;
}

.form__message.active {
  display: flex;
}

.message-icon {
  color: var(--primary-neon);
}

.message-text h4 {
  color: var(--primary-neon);
  margin-bottom: 5px;
  font-size: 1rem;
}

.message-text p {
  font-size: 0.9rem;
  color: var(--white);
  margin: 0;
}

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

/* Responsive */
@media (max-width: 992px) {
  .contact__wrapper {
    grid-template-columns: 1fr;
  }
}

/* Error State for Inputs */
.form__input.error {
  border-color: #ff2a2a; /* Red Neon */
  box-shadow: 0 0 10px rgba(255, 42, 42, 0.4);
  animation: shake 0.4s ease-in-out;
}

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

/* --- Cookie Pop-up --- */
.cookie-box {
  position: fixed;
  bottom: -100px; /* Скрыт по умолчанию */
  left: 20px;
  right: 20px;
  max-width: 500px;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--primary-neon);
  padding: 20px;
  z-index: 9999;
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
  transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-box.active {
  bottom: 20px;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-content p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--text-main);
}

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

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

/* Responsive Cookie */
@media (max-width: 600px) {
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn--small {
    width: 100%;
  }
}

/* --- Policy Pages Styles (privacy.html etc) --- */
/* Эти стили будут применяться на отдельных страницах */
.pages {
  padding: 120px 0 80px; /* Отступ сверху для хедера */
  min-height: 100vh;
}

.pages .container {
  max-width: 900px; /* Узкая колонка для удобного чтения */
  background: rgba(20, 20, 20, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 60px;
}

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

.pages h2 {
  font-size: 1.5rem;
  color: var(--white);
  margin-top: 40px;
  margin-bottom: 20px;
}

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

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

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

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

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

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

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