:root {
  /* Color Palette: Retro UI / Dark Tech */
  --color-bg: #0c0c0c;
  --color-surface: #141414;
  --color-border: #333333;
  --color-primary: #ccff00; /* Acid Lime */
  --color-primary-dark: #a3cc00;
  --color-text-main: #e0e0e0;
  --color-text-muted: #888888;

  /* Typography */
  --font-heading: "Space Mono", monospace;
  --font-body: "Manrope", sans-serif;

  /* Spacing & Layout (Bento Grid) */
  --container-width: 1280px;
  --header-height: 80px;
  --border-radius: 0px; /* Sharp edges for retro feel, or small 4px */
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset & Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: --font-body;
  background-color: var(--color-bg);
  color: var(--color-text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 40px 40px; /* Grid background effect */
  background-position: center top;
}

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

ul {
  list-style: none;
}

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

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid var(--color-primary);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: transparent;
  color: var(--color-primary);
}

.btn--primary:hover {
  background: var(--color-primary);
  color: var(--color-bg);
  box-shadow: 0 0 15px rgba(204, 255, 0, 0.4);
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(12, 12, 12, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

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

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-primary);
}

.header__logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -1px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

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

.header__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-main);
  position: relative;
}

.header__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

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

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

/* Burger Menu */
.header__burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.header__burger-line {
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition);
}

/* --- FOOTER --- */
.footer {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 60px 0 20px;
  margin-top: auto; /* Push to bottom */
}

.footer__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer__title {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.footer__desc {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 20px 0;
  max-width: 300px;
}

.footer__badge {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 12px;
  text-transform: uppercase;
}

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

.footer__link {
  color: var(--color-text-main);
  font-size: 14px;
}

.footer__link:hover {
  color: var(--color-primary);
  padding-left: 5px; /* Micro-interaction */
}

.footer__list--contacts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

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

.footer__text {
  font-size: 14px;
}

.footer__bottom {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 20px 20px 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 12px;
  color: var(--color-text-muted);
  font-family: var(--font-heading);
}

/* Mobile Adaptation */
@media (max-width: 992px) {
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    transition: right 0.4s ease;
    border-left: 1px solid var(--color-border);
  }

  .header__nav.active {
    right: 0;
  }

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

  .header__link {
    font-size: 20px;
  }

  .header__burger {
    display: flex;
  }

  /* Burger Animation */
  .header__burger.active .header__burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .header__burger.active .header__burger-line:nth-child(2) {
    opacity: 0;
  }
  .header__burger.active .header__burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

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

/* --- HERO SECTION --- */
.section {
  padding: 60px 0;
}

/* Container Utility for Sections */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  padding-top: calc(var(--header-height) + 40px); /* Offset for fixed header */
}

.hero__container {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

/* Box Styling (The Bento Cards) */
.hero__box {
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid var(--color-border);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

/* Decorative Corners for Retro Feel */
.hero__box::before,
.hero__box::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid var(--color-primary);
  transition: var(--transition);
}

.hero__box::before {
  top: -2px;
  left: -2px;
  border-right: none;
  border-bottom: none;
}
.hero__box::after {
  bottom: -2px;
  right: -2px;
  border-left: none;
  border-top: none;
}

.hero__box:hover {
  border-color: var(--color-primary-dark);
}

/* Block 1: Main */
.hero__box--main {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  font-family: var(--font-heading);
  font-size: 12px;
  color: var(--color-primary);
}

.hero__status {
  animation: blink 2s infinite;
}

.hero__title {
  font-size: 3.5rem; /* Large Headline */
  line-height: 1.1;
  margin-bottom: 24px;
  min-height: 3.3em; /* Reserve space for animation */
  word-break: break-word;
}

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

.hero__cta-group {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero__subtext {
  font-size: 14px;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero__icon-sm {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
}

/* Block 2: Visual */
.hero__box--visual {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  padding: 0; /* Full bleed image */
  min-height: 300px;
}

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

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.2);
  transition: var(--transition);
}

.hero__box--visual:hover .hero__img {
  filter: grayscale(0%) contrast(1);
}

.hero__overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--color-bg);
  padding: 4px 10px;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 12px;
}

/* Block 3: Data */
.hero__box--data {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__box-title {
  font-size: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 10px;
}

.hero__stat-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 14px;
  margin-bottom: 10px;
}

.hero__stat-val {
  color: var(--color-primary);
}

.hero__progress-bar {
  width: 100%;
  height: 4px;
  background: var(--color-border);
  margin: 15px 0;
  position: relative;
}

.hero__progress-fill {
  height: 100%;
  background: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary);
}

.hero__note {
  font-size: 12px;
  color: var(--color-text-muted);
}

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

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

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

  .hero__box--main {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .hero__box--visual {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 250px;
  }

  .hero__box--data {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

/* --- GLOBAL SECTION HEADERS --- */
.section__header {
  margin-bottom: 60px;
  border-left: 4px solid var(--color-primary);
  padding-left: 20px;
}

.section__title {
  font-size: 24px;
  margin-bottom: 10px;
}

.section__subtitle {
  font-family: var(--font-body);
  color: var(--color-text-muted);
  font-size: 16px;
}

/* --- TOOLS SECTION (Technical Modules) --- */
.tools__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tool-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.tool-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.tool-card__header {
  background: #000;
  border-bottom: 1px solid var(--color-border);
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 12px;
  color: var(--color-text-muted);
}

.tool-card__dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--color-border);
  border-radius: 50%;
  margin-left: 4px;
}

.tool-card:hover .tool-card__dots span {
  background-color: var(--color-primary);
}

.tool-card__status {
  color: var(--color-primary);
  animation: blink 2s infinite;
}

.tool-card__body {
  padding: 30px 20px;
  flex-grow: 1;
}

.tool-card__title {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--color-text-main);
}

.tool-card__desc {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.tool-card__specs {
  font-family: var(--font-heading);
  font-size: 12px;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 15px;
}

.tool-card__specs li {
  margin-bottom: 5px;
}

.tool-card__footer {
  padding: 15px 20px;
  border-top: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.02);
}

.tool-card__link {
  font-family: var(--font-heading);
  font-size: 12px;
  color: var(--color-primary);
  text-transform: uppercase;
  font-weight: 700;
}

.tool-card--highlight {
  border-color: var(--color-primary);
}

/* --- SCENARIOS SECTION (Bento Flow) --- */
.scenarios__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.scenario-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 30px;
  position: relative;
  transition: var(--transition);
}

.scenario-box:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Big Box takes 2 columns */
.scenario-box--large {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(
        45deg,
        transparent 49%,
        var(--color-border) 49%,
        var(--color-border) 51%,
        transparent 51%
      )
      right bottom / 20px 20px no-repeat,
    var(--color-surface);
}

.scenario-box__label {
  font-family: var(--font-heading);
  font-size: 12px;
  color: var(--color-primary);
  margin-bottom: 20px;
  display: inline-block;
  border: 1px solid var(--color-primary);
  padding: 4px 8px;
}

.scenario-box__title {
  font-size: 32px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.scenario-box__text {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: 30px;
  max-width: 400px;
}

.scenario-box__alert {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text-main);
  background: rgba(255, 255, 255, 0.05);
  padding: 10px;
  margin-bottom: 30px;
  border-left: 2px solid var(--color-primary);
}

.scenario-box__icon {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
}

/* Small Boxes */
.scenario-box__icon-wrapper {
  width: 40px;
  height: 40px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  color: var(--color-primary);
}

.scenario-box__subtitle {
  font-size: 16px;
  margin-bottom: 10px;
}

.scenario-box__small {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Tablet/Mobile Adaptation */
@media (max-width: 992px) {
  .tools__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .scenario-box--large {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

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

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

/* --- TUTORIALS (List View) --- */
.tutorials__wrapper {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.tutorials__header-row {
  display: grid;
  grid-template-columns: 80px 2fr 1fr 120px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-heading);
  font-size: 12px;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.02);
}

.tutorial-row {
  display: grid;
  grid-template-columns: 80px 2fr 1fr 120px;
  padding: 20px;
  border-bottom: 1px solid var(--color-border);
  align-items: center;
  transition: var(--transition);
}

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

.tutorial-row:hover {
  background: rgba(204, 255, 0, 0.05); /* Lime tint */
}

.tutorial-row__id {
  font-family: var(--font-heading);
  font-size: 12px;
  color: var(--color-text-muted);
}

.tutorial-row__title {
  font-size: 16px;
  margin-bottom: 5px;
  color: var(--color-text-main);
}

.tutorial-row__desc {
  font-size: 13px;
  color: var(--color-text-muted);
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 10px;
}

.badge--warn {
  border-color: #ffaa00;
  color: #ffaa00;
}
.badge--danger {
  border-color: #ff3333;
  color: #ff3333;
}

.btn-link {
  font-family: var(--font-heading);
  font-size: 12px;
  color: var(--color-text-main);
  text-transform: uppercase;
}

.btn-link:hover {
  color: var(--color-primary);
  margin-left: 5px;
}

/* --- ABOUT (Manifesto) --- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about__title {
  font-size: 4rem;
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 30px;
}

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

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

.decor-line {
  height: 2px;
  background: var(--color-border);
  width: 100%;
}

/* Terminal Box Style */
.terminal-box {
  border: 1px solid var(--color-border);
  background: #000;
  margin-bottom: 30px;
  box-shadow: 10px 10px 0px var(--color-border); /* Hard shadow */
}

.terminal-box__header {
  background: var(--color-border);
  padding: 8px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 12px;
}

.terminal-controls {
  display: flex;
  gap: 6px;
}

.terminal-controls span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #555;
}

.terminal-box__body {
  padding: 25px;
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-item {
  border: 1px solid var(--color-border);
  padding: 15px;
  text-align: center;
}

.stat-item__num {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-main);
}

.stat-item__label {
  font-family: var(--font-heading);
  font-size: 12px;
  color: var(--color-text-muted);
}

/* Mobile Adaptation */
@media (max-width: 768px) {
  .tutorials__header-row {
    grid-template-columns: 60px 1fr 80px;
  }

  .tutorial-row {
    grid-template-columns: 60px 1fr 80px;
  }

  .hide-mobile {
    display: none;
  }

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

  .about__title {
    font-size: 3rem;
  }
}

/* --- CONTACT SECTION --- */
.contact {
  padding-bottom: 100px;
}

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

/* Left Side */
.contact__badge {
  display: inline-block;
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin-bottom: 15px;
  font-size: 12px;
}

.contact__title {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 25px;
}

.contact__desc {
  color: var(--color-text-muted);
  margin-bottom: 40px;
  max-width: 90%;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: var(--font-heading);
  font-size: 14px;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--color-text-main);
}

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

/* Right Side: Terminal Form */
.contact__form-wrapper {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  position: relative;
  box-shadow: 20px 20px 0 rgba(0, 0, 0, 0.5); /* Retro shadow */
}

.contact__terminal-bar {
  background: var(--color-border);
  padding: 8px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 12px;
  color: var(--color-text-muted);
}

.contact__dots span {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #555;
  border-radius: 50%;
  margin-left: 5px;
}

.contact__form {
  padding: 30px;
  position: relative;
}

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

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

.form-input {
  width: 100%;
  background: #000;
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
  padding: 12px 15px;
  font-family: var(--font-heading); /* Monospace input */
  font-size: 14px;
  transition: var(--transition);
  outline: none;
}

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

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

.form-error {
  color: #ff3333;
  font-size: 11px;
  position: absolute;
  bottom: -18px;
  right: 0;
  opacity: 0;
  transition: 0.2s;
}

.form-input.error + .form-error {
  opacity: 1;
}

/* Custom Checkboxes */
.custom-checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox-wrapper input {
  display: none; /* Hide default */
}

.custom-checkbox {
  width: 24px;
  height: 24px;
  border: 1px solid var(--color-border);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.custom-checkbox.small {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.checkbox-icon {
  width: 16px;
  height: 16px;
  color: #000;
  opacity: 0;
  transform: scale(0.5);
  transition: var(--transition);
}

/* Checked State */
.custom-checkbox-wrapper input:checked + .custom-checkbox {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.custom-checkbox-wrapper input:checked + .custom-checkbox .checkbox-icon {
  opacity: 1;
  transform: scale(1);
}

.checkbox-label {
  font-size: 14px;
  color: var(--color-text-muted);
}

.checkbox-label a {
  color: var(--color-text-main);
  text-decoration: underline;
}

.checkbox-label a:hover {
  color: var(--color-primary);
}

.captcha-group {
  background: rgba(255, 255, 255, 0.03);
  padding: 15px;
  border: 1px solid var(--color-border);
}

.btn--full {
  width: 100%;
  margin-top: 10px;
  height: 50px;
}

/* Success State */
.form-success {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.form-success.active {
  opacity: 1;
  pointer-events: all;
}

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

.success-icon svg {
  width: 100%;
  height: 100%;
}

/* Mobile */
@media (max-width: 768px) {
  .contact__container {
    grid-template-columns: 1fr;
  }

  .contact__title {
    font-size: 2.5rem;
  }
}

/* --- COOKIE POPUP --- */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 400px;
  background: rgba(12, 12, 12, 0.95);
  border: 1px solid var(--color-primary);
  padding: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
  transform: translateY(150%); /* Hidden by default */
  transition: transform 0.4s ease-out;
}

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

.cookie-popup__content {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.cookie-popup__icon {
  color: var(--color-primary);
  flex-shrink: 0;
}

.cookie-popup__text {
  font-size: 13px;
  color: var(--color-text-main);
  line-height: 1.4;
}

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

.cookie-popup__btn {
  width: 100%;
  padding: 8px;
  font-size: 12px;
}

/* --- LEGAL PAGES STYLING (Privacy, Terms etc.) --- */
/* Ці стилі працюватимуть на окремих HTML сторінках */
.pages {
  padding: 120px 0 60px; /* Відступ зверху для фіксованого хедера */
  min-height: 80vh;
}

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

.pages h2 {
  font-size: 1.5rem;
  color: var(--color-text-main);
  margin-top: 40px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pages h2::before {
  content: ">";
  color: var(--color-primary);
}

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

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

.pages ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: var(--color-text-muted);
}

.pages ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
}

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

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

/* --- CONTACT PAGE SPECIFIC --- */
.contact-page .page-header {
  margin-bottom: 50px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 30px;
}

.page-badge {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 14px;
  margin-bottom: 15px;
  display: block;
}

.page-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1;
}

.page-subtitle {
  max-width: 600px;
  color: var(--color-text-muted);
}

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

/* Info Boxes */
.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 25px;
}

.info-box__title {
  font-size: 14px;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 10px;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
}

.info-label {
  font-family: var(--font-heading);
  color: var(--color-text-muted);
}

.info-val {
  text-align: right;
  max-width: 60%;
}

.info-val:hover {
  color: var(--color-primary);
}

/* Retro Map (CSS Only) */
.retro-map {
  height: 250px;
  background: #000;
  border: 1px solid var(--color-primary);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.retro-map__grid {
  position: absolute;
  width: 200%;
  height: 200%;
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.3;
  transform: perspective(300px) rotateX(45deg);
  animation: gridMove 10s linear infinite;
}

.retro-map__target {
  position: relative;
  z-index: 2;
}

.target-center {
  width: 10px;
  height: 10px;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-primary);
}

.target-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-primary);
  border-radius: 50%;
  opacity: 0.5;
}

.target-scan {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(204, 255, 0, 0.2) 60deg,
    transparent 60deg
  );
  transform: translate(-50%, -50%);
  animation: radarScan 3s linear infinite;
}

.retro-map__label {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-family: var(--font-heading);
  font-size: 10px;
  color: var(--color-primary);
  background: #000;
  padding: 2px 5px;
}

@keyframes gridMove {
  0% {
    transform: perspective(300px) rotateX(45deg) translateY(0);
  }
  100% {
    transform: perspective(300px) rotateX(45deg) translateY(30px);
  }
}

@keyframes radarScan {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* FAQ Styles */
.faq-section {
  margin-top: 60px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.faq-item[open] {
  border-color: var(--color-primary);
}

.faq-summary {
  padding: 20px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none; /* Hide default triangle */
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s;
  color: var(--color-primary);
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  padding: 0 20px 20px;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 15px;
}

/* Mobile Responsiveness for Contact Page */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .retro-map {
    height: 150px;
  }
}
