/* Dino Digital — 8-bit / retro gaming 80-90s */
@font-face {
  font-family: "8BitWonder";
  src: url("../assets/fonts/8bitwonder.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #030503;
  --bg-2: #070b07;
  --bg-elevated: #0c120c;
  --surface: #101810;
  --line: #1c2a1a;
  --line-bright: #2e4630;
  --accent: #6f8f3a;
  --accent-mid: #8fb84a;
  --accent-bright: #b4e05a;
  --accent-dim: #3d5224;
  --text: #e6f0d8;
  --text-muted: #7a8c6a;
  --danger: #c45a4a;
  --header-h: 72px;
  --header-h-compact: 52px;
  --pad: clamp(1rem, 3vw, 2rem);
  --max: 1180px;
  --font-pixel: "8BitWonder", "Courier New", monospace;
  --font-ui: "Share Tech Mono", "Courier New", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --scan: rgba(111, 143, 58, 0.04);
  --pixel: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg);
}

html.scroll-lock,
body.scroll-lock {
  overflow: hidden !important;
  height: 100%;
  touch-action: none;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: none;
  cursor: crosshair;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent 0 2px,
    rgba(0, 0, 0, 0.12) 2px 3px
  );
  mix-blend-mode: multiply;
  opacity: 0.45;
}

img {
  max-width: 100%;
  display: block;
  image-rendering: auto;
}

a {
  color: var(--accent-mid);
  text-decoration: none;
  transition: color 0.2s ease, filter 0.2s ease;
}

a:hover {
  color: var(--accent-bright);
  filter: brightness(1.15);
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-pixel);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.02em;
  margin: 0;
  text-transform: uppercase;
}

.container {
  width: min(100% - var(--pad) * 2, var(--max));
  margin-inline: auto;
}

.section {
  position: relative;
  min-height: auto;
  padding: calc(var(--header-h) + 1.75rem) 0 2.75rem;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent, var(--scan)),
    radial-gradient(ellipse at 20% 0%, rgba(111, 143, 58, 0.08), transparent 50%);
  opacity: 0.7;
}

.section > .container {
  position: relative;
  z-index: 1;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--accent-mid);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-label::before {
  content: "//";
  color: var(--text-muted);
}

.section-title {
  font-size: clamp(0.95rem, 2.4vw, 1.55rem);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.section-lead {
  max-width: 42rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  margin-bottom: 1.5rem;
}

/* Starfield canvas */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.page-shell {
  position: relative;
  z-index: 1;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(3, 5, 3, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: height 0.35s var(--ease), background 0.3s ease;
}

.site-header.is-compact {
  height: var(--header-h-compact);
  background: rgba(3, 5, 3, 0.94);
}

.site-header__inner {
  width: min(100% - 1.5rem, 1280px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--accent-mid);
}

.logo img {
  width: 42px;
  height: auto;
  transition: width 0.35s var(--ease);
}

.site-header.is-compact .logo img {
  width: 32px;
}

.logo__text {
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.logo__text span {
  display: block;
  font-size: 0.5rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
}

.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.15rem 0.85rem;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
  image-rendering: pixelated;
}

.nav a:hover,
.nav a.is-active {
  color: var(--accent-bright);
  filter: none;
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.header-phone {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--accent-mid);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--accent-bright);
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 2px solid var(--line-bright);
  background: var(--bg-elevated);
  cursor: pointer;
  padding: 0;
  place-items: center;
  color: var(--accent-mid);
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  border: 3px solid var(--accent);
  background: var(--accent-dim);
  color: var(--accent-bright);
  font-family: var(--font-pixel);
  font-size: 0.52rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--bg), inset 0 0 0 1px rgba(180, 224, 90, 0.15);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease,
    transform 0.12s steps(2), filter 0.2s ease;
  image-rendering: pixelated;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent-bright);
  color: #041004;
  filter: brightness(1.25);
  animation: btnShake 0.28s steps(2);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--bg);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: none;
}

.btn:hover::after {
  animation: btnShine 0.55s steps(4) forwards;
}

@keyframes btnShake {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-2px, 1px); }
  75% { transform: translate(2px, -1px); }
}

@keyframes btnShine {
  to { transform: translateX(120%); }
}

.btn--ghost {
  background: transparent;
  color: var(--accent-mid);
}

.btn--ghost:hover {
  background: rgba(111, 143, 58, 0.2);
  color: var(--accent-bright);
}

.btn--block {
  width: 100%;
}

/* ===== Reveal animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  padding-top: var(--header-h);
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
}

.hero__parallax {
  position: absolute;
  inset: -10% 0;
  background:
    radial-gradient(circle at 70% 40%, rgba(111, 143, 58, 0.18), transparent 35%),
    radial-gradient(circle at 20% 70%, rgba(60, 90, 30, 0.12), transparent 40%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(111, 143, 58, 0.03) 3px,
      rgba(111, 143, 58, 0.03) 4px
    );
  will-change: transform;
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(111, 143, 58, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 143, 58, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  opacity: 0.5;
  animation: gridDrift 24s linear infinite;
  pointer-events: none;
}

@keyframes gridDrift {
  from { background-position: 0 0; }
  to { background-position: 48px 48px; }
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 2rem 0 2.25rem;
}

.hero__brand {
  font-family: var(--font-pixel);
  font-size: clamp(1.35rem, 4.5vw, 3.1rem);
  line-height: 1.2;
  color: var(--accent-bright);
  text-transform: uppercase;
  margin-bottom: 1.15rem;
  text-shadow: 4px 4px 0 var(--accent-dim), 0 0 40px rgba(180, 224, 90, 0.15);
  animation: brandPulse 4s ease-in-out infinite;
}

@keyframes brandPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
}

.hero__sub {
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 1.75rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__meta strong {
  display: block;
  color: var(--accent-mid);
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.hero__pixel-dino {
  position: absolute;
  right: 5%;
  bottom: 14%;
  width: min(280px, 34vw);
  opacity: 0.95;
  animation: floatPixel 5s ease-in-out infinite;
  pointer-events: auto;
  z-index: 3;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 12px rgba(180, 224, 90, 0.25));
}

.hero__pixel-dino img {
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  pointer-events: none;
}

.hero__pixel-dino:hover,
.hero__pixel-dino:focus-visible {
  filter: brightness(1.25) drop-shadow(0 0 18px rgba(180, 224, 90, 0.55));
  outline: none;
}

.hero__pixel-dino:hover {
  animation: floatPixel 5s ease-in-out infinite, btnShake 0.35s steps(2);
}

.hero__play-label {
  position: absolute;
  bottom: -0.35rem;
  font-family: var(--font-pixel);
  font-size: 0.48rem;
  color: var(--accent-bright);
  letter-spacing: 0.12em;
  background: rgba(3, 5, 3, 0.85);
  border: 2px solid var(--accent);
  padding: 0.25rem 0.45rem;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes floatPixel {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Dino Run overlay */
.dino-run {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 1rem 1rem 2.5rem;
  background: rgba(3, 5, 3, 0.55);
  pointer-events: none;
}

.dino-run.is-open {
  display: flex;
  pointer-events: auto;
}

body.dino-playing .hero__content,
body.dino-playing .hero__pixel-dino {
  opacity: 0.22;
  pointer-events: none;
}

body.dino-playing .game-hud {
  border-color: var(--accent-bright);
  box-shadow: 0 0 16px rgba(180, 224, 90, 0.35);
  filter: brightness(1.15);
}

.dino-run__bar {
  width: min(100%, 1100px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.65rem;
  font-family: var(--font-pixel);
  font-size: 0.42rem;
  color: var(--accent-mid);
  letter-spacing: 0.06em;
}

.dino-run__exit {
  border: 2px solid var(--accent);
  background: var(--accent-dim);
  color: var(--accent-bright);
  font-family: var(--font-pixel);
  font-size: 0.42rem;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
}

.dino-run__exit:hover {
  filter: brightness(1.2);
}

.dino-run__canvas {
  width: min(100%, 1100px);
  max-height: 32vh;
  image-rendering: pixelated;
  border: 3px solid var(--accent);
  box-shadow: 6px 6px 0 #000, 0 0 30px rgba(111, 143, 58, 0.2);
  background: #070b07;
  cursor: pointer;
}

.dino-run__msg {
  margin-top: 0.75rem;
  font-family: var(--font-pixel);
  font-size: 0.48rem;
  color: var(--accent-bright);
  text-align: center;
  letter-spacing: 0.04em;
  animation: blink 0.9s steps(1) infinite;
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-advantages {
  display: grid;
  gap: 1rem;
}

.advantage {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px dashed var(--line-bright);
}

.advantage__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 2px solid var(--accent);
  color: var(--accent-bright);
  font-size: 1.1rem;
  image-rendering: pixelated;
}

.advantage p {
  margin: 0;
  color: var(--text);
}

/* ===== Why us cards ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.card {
  background: var(--bg-elevated);
  border: 2px solid var(--line-bright);
  padding: 1.35rem 1.25rem;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.card::before {
  content: attr(data-num);
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  color: var(--accent-dim);
}

.card h3 {
  font-size: 0.62rem;
  margin-bottom: 0.75rem;
  color: var(--accent-bright);
  padding-right: 2rem;
  line-height: 1.4;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card:hover {
  border-color: var(--accent-mid);
  transform: translateY(-3px) scale(1.01);
  filter: brightness(1.12);
  animation: cardGlitch 0.35s steps(2);
}

@keyframes cardGlitch {
  0%, 100% { clip-path: none; }
  30% { transform: translate(-2px, 0) translateY(-3px); }
  60% { transform: translate(2px, 1px) translateY(-3px); }
}

/* ===== Stats ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.stat {
  text-align: center;
  padding: 2rem 1rem;
  border: 2px solid var(--line-bright);
  background: linear-gradient(180deg, var(--surface), var(--bg-elevated));
}

.stat__value {
  font-family: var(--font-pixel);
  font-size: clamp(1rem, 2.8vw, 1.55rem);
  color: var(--accent-bright);
  margin-bottom: 0.75rem;
  text-shadow: 2px 2px 0 var(--accent-dim);
}

.stat__label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== Forms ===== */
.form-panel {
  max-width: 560px;
  margin: 0 auto;
  padding: 2rem;
  border: 2px solid var(--line-bright);
  background: var(--bg-elevated);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.45);
}

.form-panel--wide {
  max-width: 720px;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  background: var(--bg);
  border: 2px solid var(--line-bright);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, filter 0.2s ease;
}

.form-group textarea {
  min-height: 110px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-mid);
  filter: brightness(1.1);
}

.checkbox {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 1.25rem 0 1.5rem;
}

.checkbox input {
  margin-top: 0.2rem;
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.checkbox a {
  text-decoration: underline;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--accent-mid);
  min-height: 1.2em;
}

/* ===== Accordion ===== */
.accordion {
  border-top: 2px solid var(--line-bright);
}

.accordion__item {
  border-bottom: 2px solid var(--line-bright);
}

.accordion__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0.25rem;
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: var(--font-pixel);
  font-size: clamp(0.55rem, 1.5vw, 0.72rem);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease, filter 0.2s ease;
}

.accordion__btn:hover,
.accordion__item.is-open .accordion__btn {
  color: var(--accent-bright);
  filter: brightness(1.1);
}

.accordion__icon {
  width: 28px;
  height: 28px;
  border: 2px solid var(--accent);
  display: grid;
  place-items: center;
  color: var(--accent-mid);
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1;
}

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}

.accordion__item.is-open .accordion__panel {
  grid-template-rows: 1fr;
}

.accordion__panel-inner {
  overflow: hidden;
}

.accordion__panel p {
  margin: 0 0 1.5rem;
  max-width: 52rem;
  color: var(--text-muted);
}

/* ===== Tariffs ===== */
.tariffs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.tariff {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.4rem;
  background: var(--bg-elevated);
  border: 2px solid var(--line-bright);
  position: relative;
}

.tariff--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-dim), 0 0 40px rgba(111, 143, 58, 0.12);
  transform: scale(1.02);
}

.tariff__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #041004;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  padding: 0.35rem 0.7rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.tariff__name {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.tariff__price {
  margin-bottom: 1.5rem;
}

.tariff__price small {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.tariff__price strong {
  font-family: var(--font-pixel);
  font-size: 0.95rem;
  color: var(--accent-bright);
  font-weight: 400;
}

.tariff ul {
  flex: 1;
  margin-bottom: 1.5rem;
}

.tariff li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  border-bottom: 1px dashed var(--line);
}

.tariff li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--accent-mid);
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  top: 0.55rem;
}

.tariff__budget {
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  color: var(--text);
  padding: 0.85rem;
  background: var(--bg);
  border: 1px solid var(--line);
}

.tariff__budget span {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: repeating-linear-gradient(
    180deg,
    var(--accent) 0 8px,
    transparent 8px 14px
  );
}

.timeline__item {
  position: relative;
  padding: 0 0 2.5rem 1.75rem;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: -2rem;
  top: 0.35rem;
  width: 16px;
  height: 16px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg), 0 0 12px rgba(180, 224, 90, 0.35);
  image-rendering: pixelated;
}

.timeline__stage {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--accent-mid);
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
}

.timeline__item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.timeline__item p {
  margin: 0;
  color: var(--text-muted);
}

/* ===== Cases ===== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.case-card {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 2px solid var(--line-bright);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, filter 0.2s ease;
}

.case-card:hover {
  border-color: var(--accent-mid);
  filter: brightness(1.12);
}

.case-card__tag {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-mid);
  margin-bottom: 0.75rem;
}

.case-card h3 {
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.case-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  flex: 1;
}

.cases-cta {
  text-align: center;
  padding-top: 1rem;
}

.cases-cta p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
  font-style: italic;
}

/* ===== Team slider ===== */
.team-slider {
  position: relative;
}

.team-track-wrap {
  overflow: hidden;
}

.team-track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.45s var(--ease);
}

.team-card {
  flex: 0 0 calc((100% - 2.5rem) / 3);
  background: var(--bg-elevated);
  border: 2px solid var(--line-bright);
  overflow: hidden;
}

.team-card__photo {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface);
  border-bottom: 2px solid var(--line-bright);
  position: relative;
}

.team-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: none;
  image-rendering: auto;
}

.team-card__img--pixel {
  image-rendering: pixelated;
}

.team-card__img.is-active {
  opacity: 1;
  z-index: 1;
}

.team-card__tetris {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
}

.team-card__tetris.is-on {
  opacity: 1;
}

.team-card__photo.is-morphing {
  cursor: progress;
}

.team-card__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 3px
  );
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.5;
}

.team-card__body {
  padding: 1.15rem;
}

.team-card h3 {
  font-size: 0.82rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.team-card__role {
  color: var(--accent-mid);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.team-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.team-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.team-controls button {
  width: 48px;
  height: 48px;
  border: 2px solid var(--accent);
  background: var(--bg-elevated);
  color: var(--accent-bright);
  cursor: pointer;
  font-family: var(--font-pixel);
  font-size: 1rem;
  transition: filter 0.2s ease, background 0.2s ease;
}

.team-controls button:hover {
  filter: brightness(1.25);
  background: var(--accent-dim);
}

/* ===== Blog ===== */
.blog-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.blog-card {
  background: var(--bg-elevated);
  border: 2px solid var(--line-bright);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, filter 0.2s ease;
  overflow: hidden;
}

.blog-card:hover {
  border-color: var(--accent-mid);
  filter: brightness(1.1);
}

.blog-card__img {
  aspect-ratio: 16 / 10;
  background: var(--surface);
  border-bottom: 2px solid var(--line);
  overflow: hidden;
}

.blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.blog-card__body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__date {
  font-size: 0.75rem;
  color: var(--accent-mid);
  letter-spacing: 0.1em;
  margin-bottom: 0.55rem;
}

.blog-card h3 {
  font-size: 0.88rem;
  margin-bottom: 0.7rem;
  line-height: 1.35;
}

.blog-card p {
  margin: 0 0 1.1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
}

.blog-card .link-more {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ===== Final CTA ===== */
.cta-final {
  text-align: center;
}

.cta-final .section-title {
  max-width: 18ch;
  margin-inline: auto;
}

.cta-final .section-lead {
  margin-inline: auto;
}

.cta-final .form-panel {
  text-align: left;
  margin-top: 2rem;
}

/* ===== Footer ===== */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 2px solid var(--line-bright);
  background: var(--bg-2);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 28ch;
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

.footer-contacts a {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-pixel);
  font-size: 0.72rem;
  color: var(--accent-mid);
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 1rem;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-nav a:hover {
  color: var(--accent-bright);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 40px;
  padding: 0 0.75rem;
  border: 2px solid var(--line-bright);
  color: var(--accent-mid);
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
}

.footer-social a:hover {
  border-color: var(--accent-bright);
  color: var(--accent-bright);
  filter: brightness(1.2);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-legal a {
  color: var(--text-muted);
}

.footer-legal a:hover {
  color: var(--accent-bright);
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  background: var(--bg-elevated);
  border: 3px solid var(--accent);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.5);
  padding: 1.75rem;
  max-height: min(90vh, 700px);
  overflow-y: auto;
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border: 2px solid var(--line-bright);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-pixel);
}

.modal__close:hover {
  border-color: var(--accent-bright);
  color: var(--accent-bright);
  filter: brightness(1.2);
}

.modal h2 {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  padding-right: 2rem;
}

.modal__badge {
  font-family: var(--font-pixel);
  font-size: 0.42rem;
  letter-spacing: 0.1em;
  color: var(--accent-mid);
  margin-bottom: 0.65rem;
}

.modal__lead {
  margin: -0.5rem 0 1.1rem;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.45;
}

.modal--discount .modal__dialog {
  border-color: var(--accent-bright);
  box-shadow: 6px 6px 0 #000, 0 0 28px rgba(180, 224, 90, 0.18);
}

/* Cookie / toast */
.cookie-bar {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 150;
  max-width: 640px;
  margin-inline: auto;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 2px solid var(--accent);
  display: none;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.4);
}

.cookie-bar.is-visible {
  display: flex;
}

.cookie-bar p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex: 1;
}

/* Legal / blog pages */
.page-hero {
  padding: calc(var(--header-h) + 1.5rem) 0 1.25rem;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(0.9rem, 2.5vw, 1.4rem);
}

.prose {
  padding: 1.75rem 0 3rem;
  max-width: 760px;
}

.prose p,
.prose li {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.prose h2,
.prose h3 {
  margin: 2rem 0 0.75rem;
  color: var(--text);
  font-size: 1.1rem;
}

.article-meta {
  color: var(--accent-mid);
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  margin: 0.75rem 0 0;
}

.article-cover {
  margin: 2rem 0;
  border: 2px solid var(--line-bright);
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: var(--surface);
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.cms-hint {
  margin: 2rem 0;
  padding: 1rem;
  border: 2px dashed var(--accent-dim);
  color: var(--text-muted);
  font-size: 0.85rem;
  background: rgba(111, 143, 58, 0.05);
}

/* Mobile nav */
.nav-mobile {
  display: none;
}

@media (max-width: 1280px) {
  .nav {
    gap: 0.1rem 0.55rem;
  }

  .nav a {
    font-size: 0.75rem;
  }
}

@media (max-width: 1024px) {
  .nav {
    display: none;
  }

  .burger {
    display: grid;
  }

  .nav-mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(3, 5, 3, 0.97);
    border-bottom: 2px solid var(--line-bright);
    padding: 1rem 1.25rem 1.5rem;
    flex-direction: column;
    gap: 0.35rem;
  }

  .nav-mobile.is-open {
    display: flex;
  }

  .nav-mobile a {
    color: var(--text);
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .site-header__inner {
    grid-template-columns: 1fr auto auto;
  }

  .cards-grid,
  .cases-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tariffs {
    grid-template-columns: 1fr;
  }

  .tariff--featured {
    transform: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .team-card {
    flex-basis: calc((100% - 1.25rem) / 2);
  }

  .hero__pixel-dino {
    opacity: 0.9;
    right: 3%;
    bottom: 8%;
    width: min(160px, 38vw);
  }
}

@media (max-width: 720px) {
  .section {
    min-height: auto;
    padding: calc(var(--header-h) + 2rem) 0 3.5rem;
  }

  .cards-grid,
  .cases-grid,
  .blog-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .team-card {
    flex-basis: 85%;
  }

  .header-phone {
    display: none;
  }

  .hero__brand {
    font-size: clamp(1rem, 7vw, 1.6rem);
  }

  .form-panel {
    padding: 1.25rem;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .game-hud {
    display: flex;
    top: calc(var(--header-h) + 0.4rem);
    right: 0.65rem;
    font-size: 0.38rem;
    padding: 0.4rem 0.5rem;
  }

  .marquee {
    font-size: 0.45rem;
  }

  .pixel-cursor {
    display: none !important;
  }

  body,
  body.no-pixel-cursor {
    cursor: auto;
  }
}

/* ===== Arcade HUD / interactivity ===== */
.crt-flash {
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  background: rgba(180, 224, 90, 0.18);
  opacity: 0;
}

.crt-flash.is-on {
  animation: crtFlash 0.18s steps(2);
}

@keyframes crtFlash {
  0% { opacity: 0.55; }
  100% { opacity: 0; }
}

.game-hud {
  position: absolute;
  top: calc(var(--header-h) + 0.65rem);
  right: 1rem;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.55rem 0.7rem;
  background: rgba(3, 5, 3, 0.85);
  border: 2px solid var(--accent);
  box-shadow: 3px 3px 0 #000;
  font-family: var(--font-pixel);
  font-size: 0.42rem;
  letter-spacing: 0.06em;
  color: var(--accent-bright);
  pointer-events: none;
}

.site-header.is-compact ~ .page-shell .hero .game-hud {
  top: calc(var(--header-h-compact) + 0.65rem);
}

.game-hud span {
  color: var(--text-muted);
}

.marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-block: 2px solid var(--accent-dim);
  background: #061006;
  color: var(--accent-bright);
  font-family: var(--font-pixel);
  font-size: 0.48rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee__track {
  display: inline-block;
  padding: 0.55rem 0;
  animation: marquee 28s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.press-start {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.25rem;
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  color: var(--accent-mid);
  letter-spacing: 0.08em;
  animation: blink 1.1s steps(1) infinite;
}

.press-start::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent-bright);
  box-shadow: 8px 0 0 var(--accent-bright);
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.25; }
}

.xp-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  height: 6px;
  background: #0a120a;
  border-top: 2px solid var(--line-bright);
}

.xp-bar__fill {
  height: 100%;
  width: 0%;
  background: repeating-linear-gradient(
    90deg,
    var(--accent-bright) 0 8px,
    var(--accent) 8px 16px
  );
  box-shadow: 0 0 12px rgba(180, 224, 90, 0.45);
  transition: width 0.1s linear;
}

.pixel-cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--accent-bright);
  box-shadow: 0 0 0 2px #041004, 4px 4px 0 rgba(0, 0, 0, 0.45);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  image-rendering: pixelated;
  mix-blend-mode: screen;
  opacity: 0.9;
}

.pixel-burst {
  position: fixed;
  z-index: 9996;
  pointer-events: none;
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  color: var(--accent-bright);
  text-shadow: 2px 2px 0 #000;
  animation: burstUp 0.7s steps(6) forwards;
}

@keyframes burstUp {
  to {
    transform: translateY(-48px);
    opacity: 0;
  }
}

.section-title.is-glitching {
  animation: titleGlitch 0.4s steps(2);
}

@keyframes titleGlitch {
  0% { text-shadow: 2px 0 #0ff, -2px 0 #f0f; transform: translate(0); }
  25% { transform: translate(-2px, 1px); }
  50% { text-shadow: -3px 0 #0ff, 2px 0 #f0f; transform: translate(2px, -1px); }
  100% { text-shadow: 4px 4px 0 var(--accent-dim); transform: none; }
}

.case-card,
.tariff,
.stat,
.advantage,
.team-card,
.blog-card {
  transition: border-color 0.2s ease, transform 0.18s steps(2), filter 0.2s ease, box-shadow 0.2s ease;
}

.case-card:hover,
.tariff:hover,
.stat:hover,
.blog-card:hover,
.team-card:hover {
  box-shadow: 0 0 0 2px var(--accent-mid), 6px 6px 0 rgba(0, 0, 0, 0.35);
}

.advantage:hover .advantage__icon {
  background: var(--accent);
  color: #041004;
  filter: brightness(1.2);
  animation: btnShake 0.25s steps(2);
}

.accordion__btn:hover .accordion__icon,
.accordion__item.is-open .accordion__icon {
  background: var(--accent-dim);
  color: var(--accent-bright);
  filter: brightness(1.25);
}

.modal__dialog {
  animation: modalPop 0.28s steps(4);
}

@keyframes modalPop {
  from { transform: scale(0.86); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.hero__sub.is-typing::after {
  content: "█";
  margin-left: 2px;
  color: var(--accent-bright);
  animation: blink 0.7s steps(1) infinite;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .marquee__track,
  .press-start,
  body::after {
    animation: none !important;
  }

  .pixel-cursor {
    display: none;
  }
}

body.no-pixel-cursor {
  cursor: auto;
}

@media (pointer: coarse), (max-width: 1024px) {
  .pixel-cursor {
    display: none !important;
  }

  body {
    cursor: auto;
  }
}

/* ===== Game preloader ===== */
.game-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at center, rgba(111, 143, 58, 0.12), transparent 55%),
    #030503;
  transition: opacity 0.45s steps(6), visibility 0.45s;
}

.game-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.game-loader__inner {
  width: min(92vw, 360px);
  text-align: center;
  padding: 1.5rem 1.25rem;
  border: 3px solid var(--accent);
  background: rgba(7, 11, 7, 0.92);
  box-shadow: 6px 6px 0 #000, 0 0 40px rgba(111, 143, 58, 0.15);
}

.game-loader__logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 1rem;
  animation: loaderBounce 0.7s steps(2) infinite;
  filter: drop-shadow(0 0 10px rgba(180, 224, 90, 0.35));
}

.game-loader__logo img {
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

@keyframes loaderBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.game-loader__title {
  font-family: var(--font-pixel);
  font-size: clamp(0.7rem, 2.8vw, 1rem);
  color: var(--accent-bright);
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
  text-shadow: 3px 3px 0 var(--accent-dim);
}

.game-loader__status {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15rem;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  color: var(--accent-mid);
  letter-spacing: 0.14em;
  margin-bottom: 0.85rem;
}

.game-loader__dots {
  display: inline-block;
  min-width: 1.2em;
  text-align: left;
  animation: loaderDots 1s steps(4) infinite;
}

@keyframes loaderDots {
  0% { clip-path: inset(0 100% 0 0); }
  25% { clip-path: inset(0 66% 0 0); }
  50% { clip-path: inset(0 33% 0 0); }
  75%, 100% { clip-path: inset(0 0 0 0); }
}

.game-loader__bar {
  height: 18px;
  border: 2px solid var(--accent);
  background: #0a120a;
  padding: 2px;
  margin-bottom: 0.65rem;
  image-rendering: pixelated;
}

.game-loader__fill {
  height: 100%;
  width: 0%;
  background: repeating-linear-gradient(
    90deg,
    var(--accent-bright) 0 8px,
    var(--accent) 8px 16px
  );
  box-shadow: 0 0 10px rgba(180, 224, 90, 0.35);
  transition: width 0.1s linear;
}

.game-loader__meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-pixel);
  font-size: 0.42rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}

.game-loader__hint {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--accent-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: blink 1.1s steps(1) infinite;
}

html.is-loading,
body.is-loading {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .game-loader__logo,
  .game-loader__dots,
  .game-loader__hint {
    animation: none !important;
  }
}

/* ===== 404 / secret level ===== */
.page-404 {
  min-height: 100vh;
  min-height: 100dvh;
}

.error-404 {
  min-height: calc(100vh - var(--header-h-compact));
  min-height: calc(100dvh - var(--header-h-compact));
  display: grid;
  place-items: center;
  padding: calc(var(--header-h-compact) + 2rem) var(--pad) 3rem;
  position: relative;
  z-index: 1;
}

.error-404__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  max-width: 860px;
}

@media (min-width: 768px) {
  .error-404__grid {
    grid-template-columns: 220px 1fr;
    gap: 2.5rem;
  }
}

.error-404__visual {
  text-align: center;
  position: relative;
}

.error-404__visual img {
  width: min(160px, 40vw);
  height: auto;
  image-rendering: pixelated;
  animation: loaderBounce 0.9s steps(2) infinite;
  filter: drop-shadow(0 0 16px rgba(180, 224, 90, 0.35));
}

.error-404__glitch {
  font-family: var(--font-pixel);
  font-size: clamp(2.4rem, 10vw, 4rem);
  color: var(--accent-bright);
  letter-spacing: 0.08em;
  margin-top: 0.6rem;
  text-shadow:
    3px 3px 0 var(--accent-dim),
    -2px 0 0 rgba(196, 90, 74, 0.55),
    2px 0 0 rgba(111, 143, 58, 0.45);
  animation: blink 1.4s steps(1) infinite;
}

.error-404__title {
  font-family: var(--font-pixel);
  font-size: clamp(1rem, 4vw, 1.55rem);
  line-height: 1.35;
  color: var(--text);
  margin: 0.4rem 0 0.75rem;
  text-shadow: 3px 3px 0 #000;
}

.error-404__lead {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0 0 1.25rem;
  max-width: 36ch;
}

.error-404__quest {
  border: 3px solid var(--accent);
  background: rgba(7, 11, 7, 0.88);
  box-shadow: 5px 5px 0 #000;
  padding: 1rem 1.1rem 1.15rem;
  margin-bottom: 1.35rem;
}

.error-404__quest-label {
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  letter-spacing: 0.12em;
  color: var(--accent-bright);
  margin-bottom: 0.65rem;
}

.error-404__quest p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--text);
}

.error-404__progress {
  margin-top: 1rem;
  font-family: var(--font-pixel);
  font-size: 0.42rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.error-404__progress strong {
  color: var(--accent-bright);
}

.error-404__bar {
  margin-top: 0.55rem;
  height: 14px;
  border: 2px solid var(--accent);
  background: #0a120a;
  padding: 2px;
}

.error-404__fill {
  height: 100%;
  width: 0%;
  background: repeating-linear-gradient(
    90deg,
    var(--accent-bright) 0 8px,
    var(--accent) 8px 16px
  );
  transition: width 0.35s var(--ease);
}

.error-404__reward {
  margin-top: 0.85rem !important;
  font-family: var(--font-pixel);
  font-size: 0.42rem !important;
  letter-spacing: 0.08em;
  color: var(--accent-bright) !important;
  animation: blink 1.1s steps(1) infinite;
}

.error-404__claim {
  font: inherit;
  letter-spacing: inherit;
  color: var(--accent-bright);
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.error-404__claim:hover {
  color: var(--text);
}

.error-404__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
  .error-404__visual img,
  .error-404__glitch,
  .error-404__reward {
    animation: none !important;
  }
}
