/* --- ЗМІННІ --- */
:root {
  --bg-color: #050505;
  --bg-grid: #0a0a0a;
  --text-main: #e0e0e0;
  --text-muted: #888888;

  /* Neon Green Accent */
  --accent: #00ff41;
  --accent-dim: rgba(0, 255, 65, 0.2);
  --accent-hover: #00cc33;

  /* Шрифти */
  --font-head: "Orbitron", sans-serif;
  --font-mono: "Share Tech Mono", monospace;

  --container-width: 1300px;
  --border-style: 1px solid rgba(255, 255, 255, 0.15);
  --border-accent: 1px solid var(--accent);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-mono); /* Основний шрифт технічний */
  line-height: 1.5;
  overflow-x: hidden;
}

/* Фонова сітка */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
}

/* Утиліти */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

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

ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}

/* Кнопки (Суворі кути) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn--neon {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn--neon:hover {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 20px var(--accent-dim);
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(5px);
  border-bottom: var(--border-style);
  z-index: 1000;
}

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

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__logo-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.header__logo-text {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.blink {
  animation: blinker 1s linear infinite;
  color: var(--accent);
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}

.header__nav {
  display: none;
}

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

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

.header__link {
  font-family: var(--font-head);
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
  letter-spacing: 1px;
}

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

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

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

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

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

.burger-line {
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: 0.3s;
}

@media (min-width: 992px) {
  .header__burger {
    display: none;
  }
  .btn--neon {
    display: inline-flex;
  } /* Показувати кнопку тільки на десктопі або адаптувати */
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background: #000;
  border-top: 1px solid var(--accent);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.menu-open .mobile-menu {
  transform: translateX(0);
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: left;
}

.mobile-menu__link {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  transition: 0.3s;
}

.mobile-menu__link:hover,
.mobile-menu__link.active-link {
  color: var(--accent);
  padding-left: 10px;
  border-left: 4px solid var(--accent);
}

/* --- FOOTER --- */
.footer {
  border-top: var(--border-style);
  background: #020202;
  padding-top: 60px;
}

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

.footer__brand-name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.2rem;
  display: block;
  color: #fff;
}

.footer__status {
  font-size: 0.75rem;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 20px;
}
.footer__status::before {
  content: "● ";
}

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

.footer__alert {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--text-muted);
  padding: 10px;
  color: #fff;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
}

.footer__title {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 25px;
  font-weight: 700;
  letter-spacing: 1px;
}

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

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

.footer__link:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.footer__contacts li {
  margin-bottom: 15px;
  color: #fff;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
}

.footer__contacts .label {
  color: var(--accent);
  font-size: 0.7rem;
  margin-bottom: 4px;
}

.footer__bottom {
  border-top: var(--border-style);
  padding: 20px 0;
  text-align: center;
  font-size: 0.8rem;
  color: #555;
  text-transform: uppercase;
}

/* Адаптив Футера */
@media (max-width: 992px) {
  .footer__container {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 576px) {
  .footer__container {
    grid-template-columns: 1fr;
  }
}

/* --- HERO SECTION --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px; /* Відступ під фіксований хедер */
  overflow: hidden;
}

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

/* Метадані (верхній рядок) */
.hero__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  background: rgba(0, 255, 65, 0.05);
  padding: 5px 10px;
  display: inline-flex;
  border: 1px solid rgba(0, 255, 65, 0.2);
}

.hero__status-icon {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s infinite;
}

/* Заголовок */
.hero__title {
  font-family: var(--font-head);
  font-size: 3.5rem;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 30px;
  min-height: 3.3em; /* Резервуємо місце під 3 рядки тексту */
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

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

/* Курсор друку */
.cursor {
  display: inline-block;
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}
@keyframes pulse {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.5;
  }
}

/* Опис */
.hero__desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
  border-left: 2px solid var(--accent-dim);
  padding-left: 20px;
}

/* Кнопки та дії */
.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.btn--glitch {
  position: relative;
  font-size: 1.1rem;
  padding: 18px 40px;
}

.hero__info-box {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: #666;
  border: 1px dashed #333;
  padding: 8px 15px;
}

.hero__info-icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

/* --- TECH FRAME VISUAL (Права частина) --- */
.tech-frame {
  position: relative;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.5);
}

.hero__img {
  width: 100%;
  height: auto;
  filter: grayscale(100%) contrast(1.2) brightness(0.8);
  opacity: 0.8;
  mix-blend-mode: luminosity;
  border: 1px solid #111;
}

/* Кути рамки */
.tech-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent);
  transition: all 0.3s ease;
}

.tl {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}
.tr {
  top: -1px;
  right: -1px;
  border-left: none;
  border-bottom: none;
}
.bl {
  bottom: -1px;
  left: -1px;
  border-right: none;
  border-top: none;
}
.br {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

/* Анімація при наведенні на картинку */
.tech-frame:hover .tech-corner {
  width: 40px;
  height: 40px;
  box-shadow: 0 0 15px var(--accent-dim);
}

/* Скануюча лінія */
.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  opacity: 0.5;
  animation: scan 4s linear infinite;
  z-index: 10;
  pointer-events: none;
}

@keyframes scan {
  0% {
    top: 0%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

.frame-label {
  position: absolute;
  font-size: 0.6rem;
  color: var(--accent);
  background: #000;
  padding: 2px 5px;
  letter-spacing: 1px;
}

.frame-label.top {
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
}
.frame-label.bottom {
  bottom: -10px;
  right: 20px;
}

/* Scroll Down Indicator */
.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 2px;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

/* Адаптив Hero */
@media (max-width: 992px) {
  .hero__container {
    grid-template-columns: 1fr;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero__visual {
    order: -1; /* Картинка зверху на мобільному */
    max-width: 500px;
    margin: 0 auto;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .scroll-down {
    display: none; /* Ховаємо на мобільному */
  }
}

/* --- ЗАГАЛЬНІ СТИЛІ СЕКЦІЙ --- */
.section {
  padding: 100px 0;
  border-bottom: var(--border-style);
  position: relative;
}

.section-header {
  margin-bottom: 60px;
  border-left: 4px solid var(--accent);
  padding-left: 20px;
}

.section-title {
  font-family: var(--font-head);
  font-size: 2.5rem;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hash {
  color: var(--accent);
}

.section-subtitle {
  color: var(--text-muted);
  font-family: var(--font-mono);
  max-width: 600px;
}

/* --- METHODOLOGY GRID --- */
.methodology__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Стиль картки "Термінал" */
.tech-card {
  background: #080808;
  border: 1px solid #333;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
  top: 0;
}

.tech-card:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 255, 65, 0.1);
  top: -5px;
}

/* Верхня плашка картки */
.tech-card__header {
  background: #111;
  padding: 10px 15px;
  border-bottom: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tech-card__id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.tech-card__dots {
  display: flex;
  gap: 5px;
}

.tech-card__dots span {
  width: 6px;
  height: 6px;
  background: #333;
  display: block;
}

.tech-card:hover .tech-card__dots span:nth-child(1) {
  background: #ff5f56;
}
.tech-card:hover .tech-card__dots span:nth-child(2) {
  background: #ffbd2e;
}
.tech-card:hover .tech-card__dots span:nth-child(3) {
  background: #27c93f;
}

/* Тіло картки */
.tech-card__body {
  padding: 30px;
  flex-grow: 1;
}

.tech-card__icon-box {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid transparent;
  transition: 0.3s;
}

.tech-card:hover .tech-card__icon-box {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.tech-card__icon {
  width: 24px;
  height: 24px;
  color: #fff;
  transition: 0.3s;
}

.tech-card:hover .tech-card__icon {
  color: var(--accent);
}

.tech-card__title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

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

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

/* Футер картки */
.tech-card__footer {
  padding: 10px 15px;
  border-top: 1px solid #333;
  font-size: 0.7rem;
  color: var(--accent);
  font-family: var(--font-mono);
  text-align: right;
  background: rgba(0, 255, 65, 0.02);
}

/* Адаптив */
@media (max-width: 992px) {
  .methodology__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .section-title {
    font-size: 1.8rem;
  }
}

/* --- PROGRAMS SECTION (TERMINAL LIST) --- */
.terminal-table {
  border: 1px solid #333;
  background: #020202;
  font-family: var(--font-mono);
}

/* Хедер таблиці */
.terminal-table__header {
  display: grid;
  grid-template-columns: 1fr 3fr 1.5fr 1fr;
  padding: 15px 20px;
  background: #111;
  border-bottom: 1px solid #333;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 1px;
}

/* Рядки таблиці */
.terminal-row {
  display: grid;
  grid-template-columns: 1fr 3fr 1.5fr 1fr;
  padding: 25px 20px;
  border-bottom: 1px solid #333;
  align-items: center;
  transition: all 0.2s ease;
  position: relative;
}

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

/* Ефекти наведення */
.terminal-row:hover {
  background: rgba(0, 255, 65, 0.03);
}

.terminal-row:hover .col-id {
  color: var(--accent);
}

.terminal-row::before {
  content: ">";
  position: absolute;
  left: 5px;
  color: var(--accent);
  opacity: 0;
  transition: 0.2s;
  font-weight: bold;
}

.terminal-row:hover::before {
  opacity: 1;
}

/* Стилізація колонок */
.col-id {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.program-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.program-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 90%;
}

.highlight-text {
  color: #ccc;
  text-decoration: underline;
  text-decoration-color: var(--accent-dim);
}

.tag {
  display: inline-block;
  font-size: 0.6rem;
  background: var(--accent);
  color: #000;
  padding: 2px 6px;
  margin-top: 5px;
  font-weight: bold;
}

/* Статуси */
.status-badge {
  display: inline-block;
  border: 1px solid #444;
  padding: 5px 10px;
  font-size: 0.75rem;
  color: #888;
}

.status-high {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 10px var(--accent-dim);
}

.status-limit {
  border-color: #ffbd2e;
  color: #ffbd2e;
}

/* Кнопки в таблиці */
.btn-sm {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid #444;
  color: #fff;
  font-size: 0.8rem;
  text-align: center;
  min-width: 100px;
}

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

.btn-sm--filled {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  font-weight: bold;
}

.btn-sm--filled:hover {
  background: var(--accent-hover);
  color: #000;
  box-shadow: 0 0 15px var(--accent-dim);
}

/* Інфо внизу */
.terminal-footer-info {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 15px;
  border-left: 2px solid #333;
  background: rgba(255, 255, 255, 0.02);
}

.text-white {
  color: #fff;
}

/* Адаптивність таблиці */
@media (max-width: 992px) {
  .terminal-table__header {
    display: none; /* Ховаємо заголовки на мобільному */
  }

  .terminal-row {
    grid-template-columns: 1fr; /* Одна колонка */
    gap: 15px;
    padding: 30px 20px;
    text-align: left;
  }

  .col-id {
    font-size: 0.8rem;
    opacity: 0.5;
    margin-bottom: 5px;
  }

  .col-status {
    justify-self: start;
  }

  .col-action {
    width: 100%;
    margin-top: 10px;
  }

  .btn-sm {
    display: block;
    width: 100%;
  }
}

/* --- ADVANTAGES (TELEMETRY) --- */
.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

/* Стиль блоку телеметрії */
.tele-box {
  border: 1px solid #333;
  background: rgba(5, 5, 5, 0.5);
  padding: 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tele-box:hover {
  border-color: var(--text-muted);
}

.tele-box__label {
  position: absolute;
  top: 0;
  right: 0;
  background: #111;
  color: var(--text-muted);
  font-size: 0.6rem;
  padding: 3px 8px;
  border-bottom: 1px solid #333;
  border-left: 1px solid #333;
}

/* Великий блок */
.tele-box--large {
  grid-column: 1 / 3; /* Займає 2 колонки */
  border-color: var(--accent);
  background: linear-gradient(
    45deg,
    rgba(0, 255, 65, 0.02) 0%,
    transparent 100%
  );
}

.tele-title {
  font-family: var(--font-head);
  font-size: 2.5rem;
  line-height: 1;
  color: #fff;
  margin-bottom: 20px;
  text-transform: uppercase;
}

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

.tele-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 500px;
  margin-bottom: 20px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: bold;
}

.blink-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  animation: blink 1s infinite;
}

/* Блок статистики */
.stat-number {
  font-family: var(--font-head);
  font-size: 4rem;
  color: #fff;
  line-height: 1;
}

.stat-desc {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 15px;
}

.progress-bar-container {
  width: 100%;
  height: 4px;
  background: #222;
  margin-top: auto;
}

.progress-bar {
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-dim);
}

/* Блок доступу */
.access-status {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.access-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.access-title {
  color: #fff;
  font-weight: bold;
  font-size: 0.9rem;
}

.access-sub {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.cmd-line {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #666;
  background: #000;
  padding: 10px;
  border-left: 2px solid var(--accent);
}

/* Блок Latency Grid */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed #333;
  padding-bottom: 5px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.stat-item .val {
  color: var(--accent);
}

/* Блок Action */
.tele-box--action {
  border: 1px solid var(--accent);
  text-align: center;
  align-items: center;
  justify-content: center;
}

.action-title {
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.tele-desc-sm {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 20px;
}

.full-width {
  width: 100%;
}

/* Адаптив */
@media (max-width: 992px) {
  .telemetry-grid {
    grid-template-columns: 1fr 1fr;
  }
  .tele-box--large {
    grid-column: 1 / -1; /* На всю ширину */
  }
}

@media (max-width: 600px) {
  .telemetry-grid {
    grid-template-columns: 1fr;
  }
  .stat-number {
    font-size: 3rem;
  }
}

/* --- REVIEWS (LOGS) --- */
.logs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.log-card {
  background: #0a0a0a;
  border: 1px solid #333;
  padding: 0;
  position: relative;
  transition: 0.3s;
  overflow: hidden;
}

.log-card:hover {
  border-color: var(--text-muted);
  transform: translateY(-5px);
}

/* Header картки */
.log-card__header {
  background: #111;
  padding: 10px 20px;
  border-bottom: 1px solid #333;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.log-id {
  color: var(--accent);
}

/* Тіло картки */
.log-card__body {
  padding: 25px 20px;
  min-height: 180px;
  background-image: linear-gradient(#111 1px, transparent 1px);
  background-size: 100% 30px; /* Ефект лінованого паперу/терміналу */
}

.log-text {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #ddd;
  line-height: 1.6;
}

.log-text::before {
  content: ">> ";
  color: var(--accent);
}

/* Footer картки */
.log-card__footer {
  padding: 15px 20px;
  border-top: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #050505;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 30px;
  height: 30px;
  background: #222;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8rem;
  border: 1px solid #444;
}

.user-name {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: #fff;
  letter-spacing: 1px;
}

.log-status {
  font-size: 0.65rem;
  padding: 2px 5px;
  border: 1px solid #333;
}

.status-ok {
  color: var(--accent);
  border-color: var(--accent);
}

/* Активна картка (центр) */
.active-log {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.05);
}

.active-log .log-card__header {
  background: rgba(0, 255, 65, 0.1);
  color: #fff;
}

.reading-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  opacity: 0.3;
  animation: scanLog 3s linear infinite;
  pointer-events: none;
}

@keyframes scanLog {
  0% {
    top: 0%;
    opacity: 0;
  }
  10% {
    opacity: 0.5;
  }
  90% {
    opacity: 0.5;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

/* Trust Bar */
.trust-bar {
  border-top: 1px dashed #333;
  padding-top: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  overflow: hidden;
  white-space: nowrap;
}

.trust-logos {
  display: flex;
  gap: 20px;
  opacity: 0.6;
}

/* Адаптив */
@media (max-width: 992px) {
  .logs-grid {
    grid-template-columns: 1fr;
  }

  .trust-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .trust-logos {
    flex-wrap: wrap;
  }
}

/* --- CONTACT SECTION --- */
.contact {
  padding-bottom: 150px; /* Більше місця знизу */
}

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

/* Інфо частина */
.contact__status-box {
  margin-top: 40px;
  border: 1px dashed #333;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.status-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--text-muted);
}

.status-row:last-child {
  margin-bottom: 0;
}
.status-row .value {
  color: #fff;
}
.text-accent {
  color: var(--accent) !important;
}

/* Форма (Термінал) */
/* --- CONTACT SECTION (FIXED) --- */
.contact__form-wrapper {
  background: #080808;
  border: 1px solid var(--accent);
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.05);
  position: relative;
  overflow: hidden;
  /* ВИПРАВЛЕННЯ: Фіксуємо мінімальну висоту, щоб блок не зникав */
  min-height: 550px;
  display: flex;
  flex-direction: column;
}

.form-header {
  background: var(--accent-dim);
  padding: 10px 15px;
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-controls span {
  margin-left: 10px;
  cursor: pointer;
}

.contact__form {
  padding: 40px;
  flex-grow: 1;
  transition: opacity 0.3s ease;
}

/* Клас для приховування форми (додається через JS) */
.form-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Поля вводу */
.form-group {
  margin-bottom: 30px;
  position: relative;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #333;
  padding: 10px 0;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
}

.form-input:focus {
  border-bottom-color: var(--accent);
}

.form-input:focus + .input-line {
  width: 100%;
}

/* Анімована лінія під інпутом */
.input-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: 0.4s ease;
  box-shadow: 0 0 10px var(--accent);
}

/* Чекбокси */
.form-checkbox-group {
  margin-bottom: 25px;
}

.custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
  user-select: none;
}

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

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

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

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

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

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

.link-accent {
  color: var(--accent);
  text-decoration: underline;
}

/* Капча блок */
.captcha-container {
  background: #111;
  border: 1px solid #333;
  padding: 15px;
  margin-bottom: 30px;
}

.captcha-box {
  align-items: center;
}

.captcha-text {
  display: flex;
  flex-direction: column;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  margin-right: auto;
}

.captcha-sub {
  font-size: 0.65rem;
  color: #666;
}

.captcha-icon {
  color: #333;
  transition: 0.3s;
}

.custom-checkbox input:checked ~ .captcha-icon {
  color: var(--accent);
}

/* ВИПРАВЛЕННЯ: Повідомлення про успіх */
.success-message {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #080808; /* Фон перекриває форму */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  z-index: 10;

  /* Приховано за замовчуванням */
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
  transform: translateY(20px);
}

/* Активний стан (додається через JS) */
.success-message.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hidden {
  display: none !important;
}

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

.success-title {
  color: #fff;
  font-family: var(--font-head);
  margin-bottom: 10px;
}

.success-text {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.btn-reset {
  cursor: pointer;
}

/* Loader для кнопки */
.loader {
  width: 20px;
  height: 20px;
  border: 2px solid #000;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Адаптив */
@media (max-width: 992px) {
  .contact__container {
    grid-template-columns: 1fr;
  }
}

/* --- COOKIE POPUP --- */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(150%); /* Сховано знизу */
  width: 90%;
  max-width: 600px;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--accent);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 9999;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.cookie-popup.show {
  transform: translateX(-50%) translateY(0);
}

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

.cookie-icon {
  color: var(--accent);
  animation: spin 10s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.cookie-title {
  font-family: var(--font-head);
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 5px;
}

.cookie-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

@media (max-width: 600px) {
  .cookie-popup {
    flex-direction: column;
    text-align: center;
  }
  .cookie-content {
    flex-direction: column;
  }
  #acceptCookie {
    width: 100%;
  }
}

/* --- СТИЛІ ДЛЯ СТОРІНОК ПОЛІТИК (privacy.html etc) --- */
/* Цей блок стилізує <section class="pages"> */

.pages {
  padding: 120px 0 80px; /* Відступ зверху під фіксований хедер */
  min-height: 80vh;
}

.pages .container {
  max-width: 900px;
  background: #080808;
  border: 1px solid #333;
  padding: 60px;
  position: relative;
}

/* Декор кутів для сторінки */
.pages .container::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 30px;
  height: 30px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

.pages .container::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 30px;
  height: 30px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

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

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

.pages p {
  font-family: var(--font-mono); /* Зберігаємо тех-стиль навіть тут */
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 20px;
  line-height: 1.7;
}

.pages ul {
  list-style: none;
  margin-bottom: 20px;
  padding-left: 20px;
}

.pages ul li {
  color: #ccc;
  margin-bottom: 10px;
  position: relative;
}

.pages ul li::before {
  content: ">";
  color: var(--accent);
  position: absolute;
  left: -20px;
}

.pages strong {
  color: #fff;
}

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

.pages a:hover {
  color: #fff;
  text-decoration: none;
  background: var(--accent);
  color: #000;
}
