/* ===== VARIABLES ===== */
:root {
  --bg-deep: #030508;
  --bg-panel: #0a0f14;
  --bg-card: #0d1520;
  --border: #1a2a3a;
  --border-glow: #00ffaa33;

  --cyan: #00e5ff;
  --green: #00ff88;
  --yellow: #ffd000;
  --blue-ua: #0057b7;
  --yellow-ua: #ffd700;
  --red: #ff3355;

  --text: #c8d6e0;
  --text-muted: #6b8299;
  --text-bright: #eef6ff;

  --font-display: 'Orbitron', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 4px;
  --shadow-glow: 0 0 30px #00e5ff22, 0 0 60px #00ff8822;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-mono);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.is-loading,
body.nav-open {
  overflow: hidden;
}

/* ===== PRELOADER ===== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-deep);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader--hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridPulse 3s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.preloader__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(420px, 88vw);
  text-align: center;
}

.preloader__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-bright);
  margin-bottom: 2rem;
}

.preloader__shield {
  color: var(--cyan);
  font-size: 1.5rem;
  animation: shieldPulse 1.5s ease-in-out infinite;
}

@keyframes shieldPulse {
  0%, 100% { filter: drop-shadow(0 0 6px var(--cyan)); }
  50% { filter: drop-shadow(0 0 16px var(--green)); }
}

.preloader__ring {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 1.75rem;
}

.preloader__svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.preloader__circle {
  fill: none;
  stroke-width: 3;
}

.preloader__circle--bg {
  stroke: var(--border);
}

.preloader__circle--fg {
  stroke: var(--cyan);
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 326.73;
  filter: drop-shadow(0 0 6px var(--cyan));
  transition: stroke-dashoffset 0.1s linear;
}

.preloader__icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.preloader__status {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  min-height: 1.2em;
  animation: statusBlink 1.2s step-end infinite;
}

@keyframes statusBlink {
  50% { opacity: 0.6; }
}

.preloader__bar {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.preloader__bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-ua), var(--cyan), var(--green));
  box-shadow: 0 0 12px var(--cyan);
  transition: width 0.1s linear;
}

.preloader__percent {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
}

.preloader__logs {
  width: 100%;
  text-align: left;
  font-size: 0.7rem;
  line-height: 1.7;
  color: var(--text-muted);
  min-height: 5.5em;
  padding: 0.75rem 1rem;
  background: rgba(10, 15, 20, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.preloader__logs p {
  opacity: 0;
  animation: logFadeIn 0.3s forwards;
}

.preloader__logs .t-green { color: var(--green); }
.preloader__logs .t-cyan { color: var(--cyan); }
.preloader__logs .t-yellow { color: var(--yellow); }

@keyframes logFadeIn {
  to { opacity: 1; }
}

a { color: var(--cyan); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--green); }

img { max-width: 100%; display: block; }

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

/* ===== BACKGROUND EFFECTS ===== */
#matrix-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.35;
  pointer-events: none;
}

body.anim-paused #matrix-canvas {
  visibility: hidden;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(3, 5, 8, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-bright);
  letter-spacing: 0.08em;
}

.logo__shield {
  color: var(--cyan);
  font-size: 1.4rem;
  filter: drop-shadow(0 0 8px var(--cyan));
}

.logo__accent { color: var(--green); }

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav a:hover { color: var(--cyan); }

.nav__cta {
  padding: 0.5rem 1rem;
  border: 1px solid var(--cyan);
  color: var(--cyan) !important;
  border-radius: var(--radius);
}

.nav__cta:hover {
  background: var(--cyan);
  color: var(--bg-deep) !important;
}

.sound-toggle {
  --sound-icon: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: 0.5rem;
  padding: 0;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.45);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}

.sound-toggle:hover {
  --sound-icon: var(--green);
  background: rgba(0, 229, 255, 0.16);
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.3);
}

.sound-toggle[aria-pressed="true"] {
  --sound-icon: var(--green);
  border-color: rgba(0, 255, 136, 0.55);
  background: rgba(0, 255, 136, 0.12);
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.25);
}

.sound-toggle__icon {
  display: block;
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.45));
}

.sound-toggle__stroke {
  stroke: var(--sound-icon);
  stroke-width: 2;
  fill: none;
}

.sound-toggle__stroke--soft {
  stroke-opacity: 0.65;
}

.sound-toggle__icon--off {
  display: none;
}

.sound-toggle.is-muted {
  --sound-icon: #9ed4e8;
  border-color: rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.06);
  box-shadow: none;
}

.sound-toggle.is-muted .sound-toggle__icon {
  filter: drop-shadow(0 0 3px rgba(0, 229, 255, 0.25));
}

.sound-toggle.is-muted:hover {
  --sound-icon: var(--cyan);
  border-color: var(--cyan);
}

.sound-toggle.is-muted .sound-toggle__icon--on {
  display: none;
}

.sound-toggle.is-muted .sound-toggle__icon--off {
  display: block;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 0.5rem;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cyan);
  transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__content {
  order: 1;
}

.hero__terminal {
  position: relative;
  order: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.9rem;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: var(--radius);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 1.5rem;
}

.pulse {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 8px var(--green);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.hero__title-line {
  display: block;
  color: var(--text-bright);
  position: relative;
}

.hero__title-line--accent {
  background: linear-gradient(90deg, var(--blue-ua), var(--cyan), var(--yellow-ua));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glitch 4s infinite;
}

@keyframes glitch {
  0%, 90%, 100% { transform: translate(0); }
  92% { transform: translate(-2px, 1px); }
  94% { transform: translate(2px, -1px); }
  96% { transform: translate(-1px, -1px); }
}

.hero__subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: all 0.25s;
}

.btn--primary {
  background: linear-gradient(135deg, var(--blue-ua), #0077cc);
  color: #fff;
  box-shadow: 0 0 20px rgba(0, 87, 183, 0.4);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.5);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn--full { width: 100%; }

.hero__stats {
  display: flex;
  gap: 2.5rem;
}

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
  text-shadow: 0 0 12px rgba(0, 255, 136, 0.4);
}

.stat__label {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ===== TERMINAL ===== */
.terminal {
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  max-height: 360px;
}

.terminal__bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1rem;
  background: #060a0f;
  border-bottom: 1px solid var(--border);
}

.terminal__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal__dot--red { background: #ff5f57; }
.terminal__dot--yellow { background: #febc2e; }
.terminal__dot--green { background: #28c840; }

.terminal__title {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.terminal__body {
  flex: 1 1 auto;
  height: 200px;
  max-height: 200px;
  min-height: 200px;
  padding: 1rem 1.25rem;
  font-size: 0.8rem;
  line-height: 1.65;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.terminal__body::-webkit-scrollbar {
  width: 5px;
}

.terminal__body::-webkit-scrollbar-track {
  background: transparent;
}

.terminal__body::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 255, 0.35);
  border-radius: 3px;
}

.terminal__body p { margin: 0; }

.terminal__body p:not(.terminal__line--live) {
  opacity: 0;
  animation: fadeInLine 0.4s forwards;
}

.terminal__body p:not(.terminal__line--live):nth-child(1) { animation-delay: 0.3s; }
.terminal__body p:not(.terminal__line--live):nth-child(2) { animation-delay: 0.8s; }
.terminal__body p:not(.terminal__line--live):nth-child(3) { animation-delay: 1.3s; }
.terminal__body p:not(.terminal__line--live):nth-child(4) { animation-delay: 1.8s; }

.terminal__body p.terminal__line--live {
  opacity: 1;
}

@keyframes fadeInLine {
  to { opacity: 1; }
}

.terminal__cursor {
  display: inline;
  animation: blink 1s step-end infinite;
  color: var(--green);
}

@keyframes blink {
  50% { opacity: 0; }
}

.t-green { color: var(--green); }
.t-blue { color: var(--cyan); }
.t-cyan { color: var(--cyan); }
.t-yellow { color: var(--yellow); }
.t-red { color: var(--red); }

.section[id] {
  scroll-margin-top: 88px;
}

/* ===== SECTIONS ===== */
.section {
  position: relative;
  z-index: 2;
  padding: 100px 0;
}

.section--dark {
  background: rgba(10, 15, 20, 0.6);
  border-block: 1px solid var(--border);
}

.section--apply {
  background: linear-gradient(180deg, transparent, rgba(0, 87, 183, 0.06));
}

.section__header {
  margin-bottom: 3rem;
}

.section__tag {
  display: block;
  font-size: 0.75rem;
  color: var(--green);
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
}

.section__desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 600px;
}

/* ===== MISSION ===== */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.mission-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

.mission-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-ua), var(--yellow-ua));
  opacity: 0;
  transition: opacity 0.3s;
}

.mission-card:hover {
  border-color: rgba(0, 229, 255, 0.3);
  transform: translateY(-4px);
}

.mission-card:hover::before { opacity: 1; }

.mission-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.mission-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-bright);
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}

.mission-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== VACANCY ===== */
.vacancy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.vacancy-block {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.vacancy-block__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--cyan);
  margin-bottom: 1.25rem;
  letter-spacing: 0.06em;
}

.vacancy-block__num {
  font-size: 0.75rem;
  color: var(--green);
  opacity: 0.7;
}

.check-list {
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.5;
}

.check-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--green);
}

.check-list--plus li::before {
  content: '+';
  color: var(--yellow);
}

/* ===== BENEFITS ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.benefit-card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: box-shadow 0.3s;
}

.benefit-card:hover {
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
}

.benefit-card__key {
  font-size: 0.7rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
}

.benefit-card h3 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-bright);
  margin: 0.5rem 0 0.5rem;
}

.benefit-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== APPLY FORM ===== */
.apply-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.apply-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 1rem 0 1.5rem;
  line-height: 1.7;
}

.apply-trust {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.apply-form {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-glow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-field__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-field__hint {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.form-field__hint code {
  color: var(--cyan);
  font-size: 0.85em;
}

.input-prefix {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-prefix:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan), 0 0 12px #00e5ff22;
}

.input-prefix__symbol {
  display: flex;
  align-items: center;
  padding: 0 0 0 0.85rem;
  color: var(--cyan);
  font-weight: 600;
  -webkit-user-select: none;
  user-select: none;
}

.input-prefix input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.75rem 0.85rem 0.75rem 0.35rem;
  color: var(--text-bright);
  font-family: inherit;
  font-size: inherit;
  outline: none;
  min-width: 0;
}

.input-prefix input::placeholder {
  color: var(--text-muted);
}

.form-field input,
.form-field textarea {
  padding: 0.75rem 1rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  transition: border-color 0.2s;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.15);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form-field--honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-field--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.form-field--checkbox input {
  margin-top: 3px;
  accent-color: var(--cyan);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.form-field--checkbox span {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.form-success {
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: var(--radius);
  color: var(--green);
  font-size: 0.85rem;
  text-align: center;
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  z-index: 2;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: rgba(3, 5, 8, 0.9);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 0.08em;
}

.footer__motto {
  font-size: 0.9rem;
  color: var(--yellow-ua);
  letter-spacing: 0.05em;
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== INTERACTIVE UI ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 101;
  background: linear-gradient(90deg, var(--blue-ua), var(--cyan), var(--green));
  box-shadow: 0 0 10px var(--cyan);
  transition: width 0.1s linear;
}

.hero__glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 87, 183, 0.15), transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0.6;
}

.hero__title-line {
  cursor: default;
  transition: transform 0.2s;
}

.hero__title-line:hover {
  animation: glitchHover 0.4s steps(2) 2;
}

@keyframes glitchHover {
  0% { transform: translate(0); text-shadow: 2px 0 var(--red), -2px 0 var(--cyan); }
  25% { transform: translate(-2px, 1px); }
  50% { transform: translate(2px, -1px); text-shadow: -2px 0 var(--red), 2px 0 var(--cyan); }
  75% { transform: translate(-1px, -1px); }
  100% { transform: translate(0); text-shadow: none; }
}

.stat--interactive {
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}

.stat--interactive:hover,
.stat--interactive:focus-visible {
  border-color: rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.06);
  outline: none;
}

.stat--interactive:active {
  transform: scale(0.96);
}

.stat--interactive.is-pulse .stat__value {
  animation: statPop 0.4s ease;
}

@keyframes statPop {
  50% { transform: scale(1.15); color: var(--yellow); }
}

.radar-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem 1rem;
}

.radar-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.radar-panel__title {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.radar-panel__status {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--green);
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(0, 255, 136, 0.35);
  border-radius: var(--radius);
  background: rgba(0, 255, 136, 0.08);
}

.radar-panel__status.is-alert {
  color: var(--red);
  border-color: rgba(255, 51, 85, 0.45);
  background: rgba(255, 51, 85, 0.1);
  animation: statusBlink 1s step-end infinite;
}

.radar-panel__display {
  width: min(160px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at center, #0c1622 0%, #050a10 70%);
  border: 1px solid rgba(0, 229, 255, 0.2);
  box-shadow:
    inset 0 0 24px rgba(0, 0, 0, 0.6),
    0 0 16px rgba(0, 229, 255, 0.08);
}

.radar-panel__display canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.terminal--interactive {
  transition: transform 0.3s, box-shadow 0.3s;
}

.terminal--interactive:hover {
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.15);
}

.terminal--minimized .terminal__body,
.terminal--minimized .terminal__cli,
.terminal--minimized .terminal__hint {
  display: none;
}

.terminal--maximized .terminal__body {
  height: 260px;
  max-height: 260px;
  min-height: 260px;
}

.terminal--maximized {
  max-height: 420px;
  box-shadow: 0 0 50px rgba(0, 255, 136, 0.2);
}

.terminal__dot {
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s;
}

.terminal__dot:hover {
  transform: scale(1.2);
  filter: brightness(1.2);
}

.terminal__cli {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-top: 1px solid var(--border);
  background: #060a0f;
}

.terminal__prompt {
  color: var(--green);
  font-size: 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.terminal__input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  outline: none;
}

.terminal__hint {
  flex-shrink: 0;
  padding: 0.4rem 1rem 0.75rem;
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  border-top: 1px solid rgba(26, 42, 58, 0.5);
}

.terminal__cursor-line .terminal__cursor {
  animation: blink 1s step-end infinite;
  color: var(--green);
}

.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.3s;
}

.tilt-card.is-active {
  border-color: rgba(0, 229, 255, 0.45) !important;
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.12);
}

.vacancy-block:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.nav a.is-active {
  color: var(--cyan);
}

.nav a.is-active::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--cyan);
  margin-top: 4px;
  box-shadow: 0 0 6px var(--cyan);
}

.header.is-scrolled {
  border-bottom-color: rgba(0, 229, 255, 0.2);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.btn {
  position: relative;
  overflow: hidden;
}

.btn .btn__ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

.form-field__meter {
  margin-top: 0.5rem;
}

.form-field__meter-bar {
  height: 3px;
  width: 0%;
  border-radius: 2px;
  background: var(--text-muted);
  transition: width 0.3s, background 0.3s;
}

.form-field__meter-label {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  letter-spacing: 0.06em;
}

.form-field .input-prefix:has(input.is-valid) {
  border-color: var(--green);
}

.form-field .input-prefix:has(input.is-invalid) {
  border-color: var(--red);
}

.form-field input.is-valid,
.form-field textarea.is-valid {
  border-color: var(--green);
}

.form-field input.is-invalid,
.form-field textarea.is-invalid {
  border-color: var(--red);
}

.tilt-card .card-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%), rgba(0, 229, 255, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.tilt-card:hover .card-shine,
.tilt-card.is-active .card-shine {
  opacity: 1;
}

.mission-card,
.benefit-card,
.vacancy-block {
  position: relative;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__title-line:hover {
    animation: none;
  }

  .tilt-card {
    transform: none !important;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero__grid,
  .mission-grid,
  .vacancy-grid,
  .benefits-grid,
  .apply-wrapper {
    grid-template-columns: 1fr;
  }

  .radar-panel__display {
    width: min(140px, 42vw);
  }

  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(3, 5, 8, 0.97);
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .burger { display: flex; }

  .sound-toggle {
    order: 2;
    margin-left: auto;
  }

  .burger {
    order: 3;
  }

  .header__inner {
    flex-wrap: nowrap;
  }

  .form-row { grid-template-columns: 1fr; }

  .hero__stats { gap: 1.5rem; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; text-align: center; }
}
