/* --- VARIABLES --- */
:root {
  /* Palette: Dark Tech */
  --c-bg: #0b0e14; /* Глубокий черный/синий */
  --c-surface: #151a23; /* Чуть светлее для блоков */
  --c-border: #2a3441; /* Цвет тонких линий */

  --c-text-main: #e2e8f0;
  --c-text-muted: #94a3b8;

  --c-accent: #ccff00; /* Acid Lime - Кислотный лайм */
  --c-accent-hover: #b3e600;
  --c-accent-text: #0b0e14; /* Текст на акценте должен быть темным */

  /* Typography */
  --font-head: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Layout */
  --container: 1280px;
  --header-h: 70px;
  --border-w: 1px; /* Тонкие линии */
}

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

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

html {
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  font-weight: 700;
  color: #fff;
  text-transform: uppercase; /* Стиль заголовков */
  letter-spacing: -0.02em;
}

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

ul {
  list-style: none;
}

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

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

/* --- BUTTONS (Geometric Style) --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
}

/* Accent Button: Sharp corners, lime bg */
.btn--accent {
  background-color: var(--c-accent);
  color: var(--c-accent-text);
  border: 1px solid var(--c-accent);
}

.btn--accent:hover {
  background-color: transparent;
  color: var(--c-accent);
  box-shadow: 0 0 15px rgba(204, 255, 0, 0.2);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

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

.header__inner {
  max-width: var(--container);
  margin: 0 auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo__text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: #fff;
}

/* Nav */
.nav {
  display: none;
}

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

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

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}

.nav__link::before {
  content: "[";
  margin-right: 5px;
  opacity: 0;
  color: var(--c-accent);
  transition: 0.3s;
}

.nav__link::after {
  content: "]";
  margin-left: 5px;
  opacity: 0;
  color: var(--c-accent);
  transition: 0.3s;
}

.nav__link:hover {
  color: #fff;
}

.nav__link:hover::before,
.nav__link:hover::after {
  opacity: 1;
}

/* Actions */
.header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.burger {
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.burger__line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: 0.3s;
}

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

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--c-bg);
  border-left: 1px solid var(--c-border);
  padding: 30px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 101;
  display: flex;
  flex-direction: column;
}

.mobile-menu.is-active {
  transform: translateX(0);
}

.mobile-menu__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--c-border);
}

.mobile-menu__title {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
}

.mobile-menu__close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: auto;
}

.mobile-menu__link {
  font-size: 1.5rem;
  font-family: var(--font-head);
  color: var(--c-text-main);
  font-weight: 700;
}

.mobile-menu__link:hover {
  color: var(--c-accent);
  padding-left: 10px;
}

/* --- FOOTER --- */
.footer {
  border-top: 1px solid var(--c-border);
  padding: 80px 0 20px;
  background: #080a0f;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  margin-bottom: 80px;
}

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

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

.footer__heading {
  color: #fff;
  margin-bottom: 25px;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.footer__mission {
  margin-top: 20px;
  color: var(--c-text-muted);
  font-size: 0.9rem;
  max-width: 300px;
}

.footer__nav li,
.footer__legal li {
  margin-bottom: 12px;
}

.footer__nav a,
.footer__legal a {
  color: var(--c-text-muted);
  font-size: 0.95rem;
}

.footer__nav a:hover,
.footer__legal a:hover {
  color: var(--c-accent);
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
  font-style: normal;
  color: var(--c-text-muted);
  font-size: 0.95rem;
}

.contact-row svg {
  width: 20px;
  height: 20px;
  color: var(--c-accent);
  flex-shrink: 0;
}

.contact-row a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer__bottom {
  border-top: 1px solid var(--c-border);
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: center;
  color: #555;
  font-size: 0.8rem;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh; /* На весь екран */
  display: flex;
  align-items: center;
  padding-top: var(--header-h); /* Відступ для фіксованого хедера */
  overflow: hidden;
  background-color: var(--c-bg);
}

/* Canvas Animation Background */
.hero__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.4; /* Щоб не заважав тексту */
}

/* Overlay gradient for better text readability */
.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: radial-gradient(
    circle at top right,
    rgba(204, 255, 0, 0.05) 0%,
    rgba(11, 14, 20, 0.8) 60%,
    var(--c-bg) 100%
  );
  pointer-events: none;
}

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

.hero__content {
  max-width: 800px;
}

/* Tech Label above H1 */
.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(204, 255, 0, 0.1);
  border: 1px solid var(--c-accent);
  color: var(--c-accent);
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 30px;
  letter-spacing: 0.05em;
}

.hero__label svg {
  width: 16px;
  height: 16px;
}

/* Main Title */
.hero__title {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 25px;
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 4.5rem;
  }
}

.highlight-text {
  color: var(--c-accent);
  position: relative;
  display: inline-block;
}

/* Ефект підкреслення-глітчу */
.highlight-text::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--c-accent);
  opacity: 0.3;
  z-index: -1;
}

.hero__desc {
  font-size: 1.1rem;
  color: var(--c-text-muted);
  max-width: 600px;
  margin-bottom: 40px;
}

/* Actions area */
.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

@media (min-width: 576px) {
  .hero__actions {
    flex-direction: row;
    align-items: center;
  }
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1rem;
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--c-text-muted);
  font-size: 0.9rem;
}

.hero__note svg {
  color: var(--c-accent);
  width: 18px;
  height: 18px;
}

/* Decorative geometric elements in corners */
.hero__deco {
  position: absolute;
  z-index: 2;
  border: 1px solid var(--c-border);
  pointer-events: none;
}

.hero__deco--1 {
  bottom: 50px;
  right: 50px;
  width: 150px;
  height: 150px;
  border-right: 1px solid var(--c-accent);
  border-bottom: 1px solid var(--c-accent);
  opacity: 0.5;
}

.hero__deco--2 {
  top: 150px;
  left: -50px;
  width: 200px;
  height: 200px;
  border: 1px solid var(--c-border);
  transform: rotate(45deg);
  opacity: 0.2;
}

/* --- SECTIONS COMMON --- */
section {
  padding: 100px 0;
  border-bottom: 1px solid var(--c-border);
}

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

.section-label {
  display: block;
  font-family: var(--font-head);
  color: var(--c-accent);
  margin-bottom: 15px;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-title {
  font-size: 2.5rem;
  color: #fff;
  max-width: 800px;
}

.text-accent {
  color: var(--c-accent);
}

/* --- TECH GRID LAYOUT --- */
.tech-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* Desktop Grid: 3 columns layout */
@media (min-width: 992px) {
  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 1px; /* Gap acts as border thickness if using bg color trick, but here we use borders */
    border: 1px solid var(--c-border); /* Outer border wrapper */
    background: var(--c-border); /* Lines color */
    gap: 1px; /* Creates the grid lines effect */
  }
}

/* Common Card Styles */
.tech-card {
  background-color: var(--c-bg); /* Inner card bg */
  padding: 40px;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Hover Effect: "Light up" the block */
.tech-card:hover {
  background-color: var(--c-surface);
}

/* Corner Accent on Hover (Tech vibe) */
.tech-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--c-accent);
  transition: 0.3s;
}

.tech-card:hover::before {
  width: 100%;
}

/* Typography & Elements */
.tech-card__num {
  font-family: var(--font-head);
  font-size: 3rem;
  color: var(--c-border); /* Dark/Faded number */
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1;
  transition: 0.3s;
}

.tech-card:hover .tech-card__num {
  color: rgba(204, 255, 0, 0.2); /* Lime ghost on hover */
}

.tech-card__icon {
  margin-bottom: 30px;
  color: var(--c-accent);
}

.tech-card__icon svg {
  width: 48px;
  height: 48px;
}

.tech-card__title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #fff;
}

.tech-card__desc {
  color: var(--c-text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Modifiers for Grid Positioning */
/* Large block: Spans 2 cols */
@media (min-width: 992px) {
  .tech-card--large {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }

  .tech-card--tall {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
    border-left: 1px solid var(--c-border);
  }

  .tech-card--wide {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    border-top: 1px solid var(--c-border);
  }
}

/* Special Layouts inside cards */
.tech-card__flex {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
  height: 100%;
}

@media (min-width: 768px) {
  .tech-card__flex {
    flex-direction: row;
    align-items: flex-end;
  }
}

/* Link Style inside card */
.tech-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-accent);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding-bottom: 5px;
  border-bottom: 1px solid transparent;
}

.tech-link:hover {
  border-bottom-color: var(--c-accent);
  padding-bottom: 2px; /* Visual shift */
}

/* Decorative element (Stripes) */
.tech-card__deco {
  margin-top: 20px;
  height: 4px;
  width: 60px;
  background: repeating-linear-gradient(
    90deg,
    var(--c-border),
    var(--c-border) 2px,
    transparent 2px,
    transparent 6px
  );
}

/* --- RESULTS SECTION --- */
.results__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}

@media (min-width: 992px) {
  .results__grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.results__desc {
  color: var(--c-text-muted);
  margin-bottom: 40px;
  font-size: 1.1rem;
}

/* Stat Boxes */
.stat-box {
  display: inline-block;
  margin-right: 40px;
  margin-bottom: 20px;
}

.stat-box__val {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 5px;
}

.stat-box__label {
  color: var(--c-accent);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- TERMINAL UI --- */
.terminal {
  background-color: #0f1319; /* Slightly lighter than body bg */
  border: 1px solid var(--c-border);
  font-family: "Space Grotesk", monospace; /* Tech font */
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.terminal__header {
  background-color: var(--c-surface);
  padding: 12px 20px;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  gap: 20px;
}

.terminal__dots {
  display: flex;
  gap: 6px;
}

.terminal__dots span {
  width: 10px;
  height: 10px;
  background-color: var(--c-border);
  border-radius: 0; /* Square dots for our geometry theme */
}

.terminal__dots span:nth-child(1) {
  background-color: #ff5f56;
} /* Red */
.terminal__dots span:nth-child(2) {
  background-color: #ffbd2e;
} /* Yellow */
.terminal__dots span:nth-child(3) {
  background-color: #27c93f;
} /* Green */

.terminal__title {
  color: var(--c-text-muted);
  font-size: 0.8rem;
  font-family: var(--font-body);
}

.terminal__body {
  padding: 0;
}

/* Log Rows */
.log-row {
  display: grid;
  grid-template-columns: 0.8fr 1.5fr 1.5fr 1fr;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(42, 52, 65, 0.5);
  font-size: 0.9rem;
  color: var(--c-text-main);
  transition: background 0.2s;
}

.log-row:last-child {
  border-bottom: none;
}

.log-row:hover:not(.log-row--head) {
  background-color: rgba(204, 255, 0, 0.05); /* Lime tint on hover */
  cursor: default;
}

.log-row--head {
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--c-text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Columns */
.col-id {
  color: var(--c-text-muted);
}
.col-user {
  font-weight: 700;
  color: #fff;
}
.col-res {
  color: #fff;
}
.col-status {
  text-align: right;
  font-weight: 700;
  font-size: 0.8rem;
}

/* Code Line at bottom */
.log-code {
  padding: 20px;
  font-family: monospace;
  color: var(--c-text-muted);
  border-top: 1px solid var(--c-border);
  background: rgba(0, 0, 0, 0.2);
}

.code-prompt {
  color: var(--c-accent);
  margin-right: 10px;
}

/* --- FAQ / EXPERTS SECTION --- */
.faq__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}

@media (min-width: 992px) {
  .faq__grid {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
  }
}

.faq__desc {
  color: var(--c-text-muted);
  margin-bottom: 30px;
  font-size: 1.1rem;
  max-width: 450px;
}

/* --- SYSTEM DOCS UI --- */
.sys-docs {
  border: 1px solid var(--c-border);
  background: var(--c-bg);
}

.sys-docs__bar {
  background: var(--c-surface);
  padding: 10px 15px;
  border-bottom: 1px solid var(--c-border);
  font-family: "Space Grotesk", monospace;
  font-size: 0.85rem;
  color: var(--c-text-muted);
  display: flex;
  align-items: center;
}

.sys-docs__bar::before {
  content: "/";
  color: var(--c-accent);
  margin-right: 5px;
  font-weight: 700;
}

/* Accordion Item */
.doc-item {
  border-bottom: 1px solid var(--c-border);
  transition: all 0.3s ease;
}

.doc-item:last-child {
  border-bottom: none;
}

.doc-item[open] {
  background: rgba(255, 255, 255, 0.02);
}

/* Summary Trigger */
.doc-item__trigger {
  list-style: none; /* Hide default triangle */
  padding: 20px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 50px 1fr auto;
  align-items: center;
  font-family: "Space Grotesk", monospace;
  font-size: 1rem;
  color: #fff;
  transition: 0.2s;
}

/* Hide default marker for webkit */
.doc-item__trigger::-webkit-details-marker {
  display: none;
}

.doc-item__trigger:hover {
  color: var(--c-accent);
}

.doc-icon {
  color: var(--c-text-muted);
  font-size: 0.8rem;
}

.doc-item__trigger:hover .doc-icon {
  color: var(--c-accent);
}

.doc-status {
  font-size: 0.75rem;
  padding: 4px 8px;
  border: 1px solid var(--c-border);
  color: var(--c-text-muted);
}

.doc-item[open] .doc-status {
  background: var(--c-accent);
  color: #000;
  border-color: var(--c-accent);
  content: "OPEN"; /* Note: content property in CSS doesn't change text in DOM, strictly visual style */
}

/* Content Area */
.doc-item__content {
  padding: 0 20px 20px 70px; /* Indent to align with title */
  color: var(--c-text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
  animation: slideDown 0.3s ease-out;
}

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

/* Mobile adjust */
@media (max-width: 576px) {
  .doc-item__trigger {
    grid-template-columns: auto 1fr;
    gap: 10px;
  }
  .doc-status {
    display: none; /* Hide status on very small screens */
  }
  .doc-item__content {
    padding: 0 20px 20px 20px;
  }
}

/* --- CONTACT SECTION --- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}

@media (min-width: 992px) {
  .contact__grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

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

.contact__alert {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-left: 2px solid var(--c-accent);
  margin-bottom: 30px;
  font-size: 0.9rem;
  color: #fff;
}

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

.contact__status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  color: var(--c-text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--c-accent);
  box-shadow: 0 0 10px var(--c-accent);
  animation: blink 2s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* --- ACCESS PANEL (FORM) --- */
.access-panel {
  border: 1px solid var(--c-border);
  background: #0f1319;
  position: relative;
  overflow: hidden;
}

/* Decorative corner lines */
.access-panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 20px;
  height: 20px;
  border-top: 2px solid var(--c-accent);
  border-left: 2px solid var(--c-accent);
  z-index: 2;
}
.access-panel::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 20px;
  height: 20px;
  border-bottom: 2px solid var(--c-accent);
  border-right: 2px solid var(--c-accent);
  z-index: 2;
}

.access-panel__header {
  background: var(--c-surface);
  padding: 15px 25px;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.access-panel__title {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--c-text-muted);
  letter-spacing: 0.1em;
}

.access-panel__icon {
  width: 16px;
  height: 16px;
  color: var(--c-accent);
}

.access-form {
  padding: 30px;
  position: relative;
}

/* Form Groups */
.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input {
  width: 100%;
  background: transparent;
  border: 1px solid var(--c-border);
  padding: 12px 15px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: 0.3s;
  outline: none;
  border-radius: 0; /* Strict geometry */
}

.form-input:focus {
  border-color: var(--c-accent);
  background: rgba(204, 255, 0, 0.02);
}

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

/* Inputs with error state */
.form-input.error {
  border-color: #ff4d4d;
}

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

/* Custom Checkbox */
.custom-checkbox {
  display: flex;
  align-items: flex-start; /* Align top for multi-line text */
  cursor: pointer;
  font-size: 0.95rem;
  user-select: none;
  gap: 12px;
}

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

.checkmark {
  height: 20px;
  width: 20px;
  background-color: transparent;
  border: 1px solid var(--c-border);
  flex-shrink: 0;
  position: relative;
  transition: 0.2s;
}

/* On hover */
.custom-checkbox:hover input ~ .checkmark {
  border-color: var(--c-text-muted);
}

/* When checked */
.custom-checkbox input:checked ~ .checkmark {
  background-color: var(--c-accent);
  border-color: var(--c-accent);
}

/* Checkmark indicator (Square inside) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

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

/* Square style for check */
.custom-checkbox .checkmark:after {
  left: 4px;
  top: 4px;
  width: 10px;
  height: 10px;
  background: #000;
}

.custom-checkbox--sm .checkmark {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.custom-checkbox--sm .checkmark:after {
  left: 3px;
  top: 3px;
  width: 8px;
  height: 8px;
}

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

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

/* Captcha Box Specific */
.form-group--captcha {
  background: var(--c-surface);
  padding: 15px;
  border: 1px solid var(--c-border);
  display: inline-block;
  min-width: 200px;
}

/* Success Overlay */
.form-success {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--c-surface);
  display: none; /* Hidden initially */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  z-index: 10;
}

.form-success.is-visible {
  display: flex;
  animation: fadeIn 0.5s;
}

.success-icon {
  width: 60px;
  height: 60px;
  border: 2px solid var(--c-accent);
  color: var(--c-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.success-icon svg {
  width: 30px;
  height: 30px;
}

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

/* --- COOKIE POPUP --- */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 400px;
  background: var(--c-surface);
  border: 1px solid var(--c-accent);
  padding: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(150%);
  transition: transform 0.5s ease;
}

.cookie-popup.is-visible {
  transform: translateY(0);
}

.cookie-popup__content p {
  font-size: 0.9rem;
  color: var(--c-text-muted);
}

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

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

/* --- POLICY PAGES STYLES (privacy.html etc) --- */
/* Ці стилі працюватимуть на окремих сторінках */
.pages {
  padding: 120px 0 80px; /* More top padding because of fixed header */
}

.pages h1 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #fff;
  border-bottom: 1px solid var(--c-border);
  padding-bottom: 20px;
}

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

.pages p {
  margin-bottom: 15px;
  color: var(--c-text-muted);
  line-height: 1.7;
}

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

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

.pages strong {
  color: #fff;
}

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