/* ==========================================================================
   14 Легион FPV — community landing
   Тёмная неоновая тема: глубокий синий, электрик-синий акцент, сталь, золото.
   ========================================================================== */

:root {
  --bg: #05070f;
  --bg-2: #080c17;
  --panel: #0a0f1d;
  --panel-2: #0e1426;
  --line: rgba(140, 160, 255, 0.11);
  --line-2: rgba(150, 170, 255, 0.24);
  --text: #e9edfb;
  --muted: #9aa5c2;
  --dim: #6b7695;
  --blue: #3b46ff;
  --blue-2: #8b97ff;
  --blue-3: #cfd7ff;
  --gold: #d8b264;
  --cyan: #5aa8ff;
  --green: #7cc98f;
  --radius: 18px;
  --wrap: 1240px;
  --pad: clamp(18px, 4.5vw, 56px);
  --sans: "Bahnschrift", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --body: "Segoe UI", "Segoe UI Variable Text", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Mono", "Consolas", "SF Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }
section[id], main [id] { scroll-margin-top: 92px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image:
    radial-gradient(1100px 700px at 12% -5%, rgba(53, 66, 255, 0.16), transparent 62%),
    radial-gradient(900px 700px at 100% 100%, rgba(90, 168, 255, 0.08), transparent 62%);
}

h1, h2, h3, p, dl, dd, figcaption { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
::selection { background: rgba(88, 104, 255, 0.3); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  border: 3px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-track { background: transparent; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: min(var(--wrap), 100% - var(--pad) * 2);
  margin-inline: auto;
}

.mono {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--dim);
}

.skip {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 500;
  padding: 10px 16px;
  background: var(--blue);
  color: #ffffff;
  border-radius: 8px;
  font-size: 13px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip:focus { top: 12px; }

.progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 2px;
  width: 0;
  z-index: 300;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 12px rgba(88, 104, 255, 0.5);
}

/* ---------- общий фон: медленно дышащие свечения ---------- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg-fx i {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.6;
  will-change: transform;
  animation: drift 60s ease-in-out infinite alternate;
}
.bg-fx i:nth-child(1) {
  width: 56vw;
  height: 56vw;
  left: -18vw;
  top: -16vw;
  background: radial-gradient(circle, rgba(53, 66, 255, 0.2), transparent 68%);
}
.bg-fx i:nth-child(2) {
  width: 48vw;
  height: 48vw;
  right: -16vw;
  top: 24vh;
  background: radial-gradient(circle, rgba(90, 168, 255, 0.12), transparent 68%);
  animation-duration: 74s;
  animation-delay: -22s;
}
.bg-fx i:nth-child(3) {
  width: 42vw;
  height: 42vw;
  left: 16vw;
  bottom: -20vw;
  background: radial-gradient(circle, rgba(216, 178, 100, 0.07), transparent 68%);
  animation-duration: 88s;
  animation-delay: -44s;
}

/* ============================ buttons ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, filter 0.2s;
}
.btn:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.28); }
.btn:active { transform: translateY(1px); }

.btn-blue {
  background: linear-gradient(180deg, #6470ff, #2b36e6);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 16px 40px -16px rgba(59, 70, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-blue:hover { background: linear-gradient(180deg, #7d88ff, #3641f0); filter: none; }
.btn-line { background: transparent; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 15px; border-radius: 14px; }

/* ============================ header ============================ */
.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.hdr.scrolled {
  background: rgba(5, 7, 15, 0.82);
  border-color: var(--line);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}
.hdr-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex: 0 0 auto;
}
.logo-mark {
  flex: 0 0 auto;
  font-family: var(--sans);
  font-size: 31px;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  color: #4d5cff;
  text-shadow: 0 0 24px rgba(59, 70, 255, 0.75), 0 0 3px rgba(150, 165, 255, 0.9);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 1.6px;
}
.logo-text small {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--dim);
}
.logo-text small b {
  color: var(--blue-2);
  font-weight: 700;
  letter-spacing: 1.6px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav > a {
  position: relative;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13.5px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.nav > a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav > a.active { color: var(--text); }
.nav > a.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--blue);
}
.nav-extra { display: none; }

.hdr-actions { display: flex; align-items: center; gap: 10px; }

.hdr-search { position: relative; display: flex; align-items: center; }
.search-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  place-items: center;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.search-toggle:hover { color: var(--text); border-color: var(--line-2); background: rgba(255, 255, 255, 0.06); }
.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s, background 0.2s;
}
.search-field:focus-within { border-color: rgba(90, 110, 255, 0.55); background: rgba(53, 66, 255, 0.07); }
.search-ico { width: 14px; height: 14px; flex: 0 0 auto; color: var(--dim); }
.search-field input {
  width: 168px;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-family: var(--body);
  font-size: 13px;
}
.search-field input::placeholder { color: #65708c; }
.search-field input::-webkit-search-cancel-button { opacity: 0.5; filter: invert(1); }

.search-results {
  position: absolute;
  top: 46px;
  right: 0;
  width: 380px;
  max-height: 62vh;
  overflow: auto;
  padding: 6px;
  background: #0b1020;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.65);
  z-index: 500;
}
.search-result { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: inherit; }
.search-result:hover,
.search-result.active { background: rgba(53, 66, 255, 0.14); }
.search-result .mono { display: block; font-size: 8px; letter-spacing: 1.2px; color: var(--blue-2); }
.search-result b { display: block; margin-top: 2px; font-family: var(--sans); font-weight: 600; font-size: 13.5px; }
.search-result small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-empty { margin: 0; padding: 14px 12px; color: var(--muted); font-size: 12.5px; }
.hdr-tg {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.hdr-tg:hover { color: var(--text); border-color: var(--line-2); }
.hdr-cta { height: 38px; padding: 0 16px; font-size: 13px; }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 19.5px; }
.burger span:nth-child(3) { top: 25px; }
body.nav-open .burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ============================ hero ============================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 128px 0 96px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: -2%; pointer-events: none; transform: translate3d(calc(var(--px, 0) * 10px), calc(var(--py, 0) * 8px), 0); transition: transform 0.35s var(--ease); }
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(130, 150, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 150, 255, 0.06) 1px, transparent 1px);
  background-size: 76px 76px;
  background-position: center top;
  mask-image: radial-gradient(1100px 760px at 50% 42%, #000 25%, transparent 76%);
  -webkit-mask-image: radial-gradient(1100px 760px at 50% 42%, #000 25%, transparent 76%);
}
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(720px 520px at 76% 42%, rgba(53, 66, 255, 0.26), transparent 70%),
    radial-gradient(620px 480px at 88% 12%, rgba(216, 178, 100, 0.07), transparent 70%),
    radial-gradient(560px 460px at 12% 82%, rgba(90, 168, 255, 0.08), transparent 70%);
}
.hero-beams {
  position: absolute;
  inset: -10% -5%;
  background:
    linear-gradient(104deg, transparent 46%, rgba(90, 110, 255, 0.06) 46.2%, transparent 49%),
    linear-gradient(104deg, transparent 58%, rgba(90, 110, 255, 0.04) 58.2%, transparent 60.5%),
    linear-gradient(76deg, transparent 62%, rgba(216, 178, 100, 0.04) 62.2%, transparent 63.5%);
  filter: blur(8px);
  pointer-events: none;
}

/* ---------- экшен в фоне: штрихи, искры, дроны ---------- */
.hero-streaks {
  position: absolute;
  inset: -12% -8%;
  overflow: hidden;
  pointer-events: none;
}
.hero-streaks i {
  position: absolute;
  width: 18vw;
  min-width: 130px;
  height: 1.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(130, 152, 255, 0) 8%, rgba(130, 152, 255, 0.55) 50%, rgba(130, 152, 255, 0) 92%, transparent);
  filter: blur(0.3px);
  opacity: 0;
  animation: streak 9s linear infinite;
}
.hero-streaks i:nth-child(1) { top: 9%; left: 4%; animation-delay: -1.2s; width: 13vw; }
.hero-streaks i:nth-child(2) { top: 21%; left: 33%; animation-delay: -4.4s; width: 17vw; }
.hero-streaks i:nth-child(3) { top: 34%; left: 9%; animation-delay: -7.1s; width: 21vw; }
.hero-streaks i:nth-child(4) { top: 47%; left: 46%; animation-delay: -2.6s; width: 14vw; }
.hero-streaks i:nth-child(5) { top: 61%; left: 17%; animation-delay: -5.8s; width: 23vw; }
.hero-streaks i:nth-child(6) { top: 72%; left: 52%; animation-delay: -8.3s; width: 15vw; }
.hero-streaks i:nth-child(7) { top: 84%; left: 6%; animation-delay: -3.5s; width: 19vw; }
.hero-streaks i:nth-child(8) { top: 94%; left: 38%; animation-delay: -6.6s; width: 11vw; }
.hero-streaks i:nth-child(9) { top: 15%; left: 66%; animation-delay: -2.2s; width: 15vw; }
.hero-streaks i:nth-child(10) { top: 55%; left: 72%; animation-delay: -7.7s; width: 14vw; }

.hero-sparks { position: absolute; inset: 0; pointer-events: none; }
.hero-sparks i {
  position: absolute;
  width: 2.5px;
  height: 2.5px;
  border-radius: 50%;
  background: #cdd7ff;
  box-shadow: 0 0 10px 2px rgba(90, 110, 255, 0.5);
  opacity: 0;
  animation: spark 7s ease-in-out infinite;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.flight {
  position: absolute;
  left: 46%;
  top: 84%;
  width: 74px;
  color: #8fa0ff;
  opacity: 0.9;
  will-change: transform;
  animation: flight 34s linear infinite;
  filter: drop-shadow(0 0 16px rgba(90, 110, 255, 0.55));
}
.flight-main {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  filter: blur(0.7px) drop-shadow(0 0 6px rgba(150, 170, 255, 0.4));
}
.flight-trail {
  position: absolute;
  right: 90%;
  top: 50%;
  width: 150px;
  height: 1.5px;
  transform: translateY(-50%);
  border-radius: 2px;
  background: linear-gradient(270deg, rgba(150, 170, 255, 0.4), rgba(130, 152, 255, 0.08) 60%, rgba(130, 152, 255, 0));
}
.flight-a { --x1: 42vw; --y1: -74vh; }
.flight-b {
  width: 46px;
  top: 96%;
  left: 60%;
  opacity: 0.6;
  --x1: 26vw;
  --y1: -86vh;
  animation-duration: 44s;
  animation-delay: -13s;
}
.flight-b .flight-trail { width: 90px; }

.flight-plane {
  width: 84px;
  top: 80%;
  left: 36%;
  opacity: 0.8;
  --x1: 26vw;
  --y1: -76vh;
  animation-duration: 46s;
  animation-delay: -8s;
}
.flight-plane .flight-trail { width: 190px; }
.flight-plane2 {
  width: 50px;
  top: 90%;
  left: 48%;
  opacity: 0.5;
  --x1: 18vw;
  --y1: -84vh;
  animation-duration: 58s;
  animation-delay: -30s;
}
.flight-plane2 .flight-trail { width: 110px; }

.ugv {
  position: absolute;
  left: -12%;
  top: 91%;
  width: 96px;
  color: #8fa0ff;
  opacity: 0.5;
  filter: drop-shadow(0 0 14px rgba(90, 110, 255, 0.45));
  animation: drive 72s linear infinite;
  will-change: transform;
}
.ugv svg { display: block; width: 100%; height: auto; }
.ugv-dust {
  position: absolute;
  right: 84%;
  top: 64%;
  width: 150px;
  height: 18px;
  background: radial-gradient(ellipse at right, rgba(130, 150, 255, 0.22), transparent 70%);
  filter: blur(5px);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 15, 0.94) 0%, rgba(5, 7, 15, 0.74) 32%, rgba(5, 7, 15, 0.18) 60%, transparent 78%),
    radial-gradient(120% 90% at 50% 48%, transparent 52%, rgba(5, 7, 15, 0.6) 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}
.star {
  color: var(--gold);
  font-size: 11px;
  line-height: 1;
  text-shadow: 0 0 14px rgba(216, 178, 100, 0.6);
}
.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2.4s infinite;
}

.hero-title {
  font-family: var(--sans);
  font-size: clamp(68px, 11.4vw, 158px);
  line-height: 0.85;
  letter-spacing: -0.025em;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
}
.hero-title .t-num {
  display: block;
  background: linear-gradient(172deg, #9aa7ff 0%, #4a57ff 32%, #2b36e6 68%, #1b23ae 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 42px rgba(59, 70, 255, 0.45));
}
.hero-title .t-word {
  display: block;
  color: #f4f6ff;
  text-shadow:
    0 0 34px rgba(59, 70, 255, 0.55),
    0 0 90px rgba(59, 70, 255, 0.3),
    0 20px 60px rgba(0, 0, 0, 0.6);
}
.hero-title .t-word-sm { font-size: 0.62em; letter-spacing: -0.012em; }
.hero-title .t-fpv {
  display: inline-block;
  margin-left: 0.12em;
  font-size: 0.17em;
  font-style: italic;
  letter-spacing: 0.12em;
  color: var(--blue-2);
  vertical-align: 0.55em;
  text-shadow: 0 0 20px rgba(59, 70, 255, 0.8);
}
.hero-tag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--blue-3);
}
.hero-tag span { color: var(--gold); }

.hero-lead {
  max-width: 520px;
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 620px;
}
.stat { position: relative; }
.stat dt {
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.4;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--dim);
  order: 2;
}
.stat dd {
  font-family: var(--sans);
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  display: block;
  white-space: nowrap;
}
.stat-plus { color: var(--blue-2); font-weight: 700; font-size: 19px; font-style: normal; margin-left: 1px; }
.stat { display: flex; flex-direction: column-reverse; gap: 6px; }

/* --- HUD --- */
.hero-visual {
  position: relative;
  justify-self: end;
  width: min(100%, 560px);
  height: 520px;
}

.hero-emblem {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.3s var(--ease);
  filter: drop-shadow(0 22px 44px rgba(0, 0, 0, 0.55));
}
.hero-emblem img { width: 100%; height: auto; display: block; }
.hero-emblem:hover { transform: rotate(var(--rot, 0deg)) translateY(-5px) scale(1.02); }
.hero-emblem-name {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.em-14 { width: 240px; top: 0; right: 0; --rot: -4deg; }
.em-apg { width: 158px; top: 196px; left: 4px; --rot: 6deg; }
.em-cov { width: 172px; top: 326px; right: 46px; --rot: -6deg; }
.em-cbr { width: 150px; top: 225px; left: 185px; --rot: 8deg; }
.emblem {
  position: relative;
  isolation: isolate;
  padding: 4% 0;
  transform: translate3d(calc(var(--px, 0) * -6px), calc(var(--py, 0) * -5px), 0);
  transition: transform 0.35s var(--ease);
}
.emblem-glow {
  position: absolute;
  inset: 4% -14% 4% -14%;
  z-index: 0;
  background: radial-gradient(ellipse at 55% 58%, rgba(53, 66, 255, 0.42), transparent 62%);
  filter: blur(56px);
  pointer-events: none;
}
.emblem-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 46px rgba(53, 66, 255, 0.55)) drop-shadow(0 0 120px rgba(53, 66, 255, 0.26));
  animation: float 10s ease-in-out infinite;
}
.emblem::before {
  content: "";
  position: absolute;
  inset: 14% 18%;
  z-index: 0;
  border: 1px solid rgba(90, 110, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.hud-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(120, 140, 255, 0.22);
  border-radius: 8px;
  background: rgba(8, 12, 24, 0.72);
  backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 1.2px;
  color: var(--blue-3);
  white-space: nowrap;
}
.hud-chip-a { top: 4%; right: 0; }
.hud-chip-b { top: 46%; left: -5%; }
.hud-chip-c { bottom: 10%; right: 2%; }
.dot { width: 5px; height: 5px; border-radius: 50%; display: inline-block; }
.dot-blue { background: var(--blue-2); box-shadow: 0 0 8px var(--blue-2); }

.hud-caption {
  margin-top: 10px;
  text-align: center;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--dim);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  z-index: 3;
}
.scroll-hint svg { animation: bob 2.6s ease-in-out infinite; }
.scroll-hint:hover { color: var(--text); }

/* ============================ ticker ============================ */
.ticker {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  overflow: hidden;
  padding: 15px 0;
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.ticker-track span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--muted);
}
.ticker-track i { color: var(--gold); font-size: 8px; font-style: normal; opacity: 0.7; }

/* ============================ sections ============================ */
.sec {
  position: relative;
  padding-block: clamp(64px, 8.5vw, 124px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.ticker + .sec { border-top: 0; }

.sec-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) minmax(0, 380px);
  gap: 24px;
  align-items: start;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.sec-head-stack { grid-template-columns: 46px minmax(0, 1fr); align-items: start; }
.sec-head-stack .sec-lead { grid-column: 2; margin-top: 14px; max-width: 460px; }
.sec-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  color: var(--blue-2);
  padding-top: 16px;
}
.sec-head .sec-lead { align-self: end; padding-bottom: 4px; }
.sec h2 {
  font-family: var(--sans);
  font-size: clamp(30px, 4.1vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 600;
  text-transform: none;
}
.sec-lead { color: var(--muted); font-size: 14.5px; line-height: 1.6; max-width: 400px; }

/* ============================ about ============================ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.about-text .lead {
  font-size: clamp(20px, 2.1vw, 26px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text);
  max-width: 560px;
}
.about-text > p + p {
  margin-top: 18px;
  color: var(--muted);
  max-width: 560px;
  font-size: 14.5px;
}
.facts {
  margin-top: 36px;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.facts li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}
.facts strong { display: block; color: var(--text); font-size: 14.5px; font-weight: 600; margin-bottom: 2px; }
.fact-i { font-family: var(--mono); font-size: 10px; color: var(--blue-2); padding-top: 3px; letter-spacing: 1px; }

.about-media { position: relative; }
.about-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(120, 140, 255, 0.25);
  box-shadow: 0 30px 90px -40px rgba(59, 70, 255, 0.55);
  filter: saturate(1.05) contrast(1.02);
}
.about-media figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}
.about-media figcaption .mono {
  padding: 4px 7px;
  border: 1px solid rgba(88, 104, 255, 0.35);
  border-radius: 5px;
  color: var(--blue-2);
  font-size: 8.5px;
  letter-spacing: 1.2px;
  white-space: nowrap;
}

/* ============================ manifest ============================ */
.manifest {
  position: relative;
  padding: clamp(52px, 6.5vw, 92px) 0;
  border-block: 1px solid var(--line);
  background:
    radial-gradient(760px 320px at 12% 50%, rgba(53, 66, 255, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0));
  overflow: hidden;
}
.manifest::after {
  content: "14";
  position: absolute;
  right: 3%;
  top: 50%;
  transform: translateY(-52%) skewX(-8deg);
  font-family: var(--sans);
  font-size: clamp(160px, 24vw, 330px);
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  color: rgba(90, 110, 255, 0.06);
  pointer-events: none;
}
.manifest-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: clamp(18px, 3vw, 34px);
}
.manifest-star {
  margin-top: 8px;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 0 26px rgba(216, 178, 100, 0.55);
}
.manifest-kicker {
  margin-bottom: 14px;
  color: var(--blue-2);
  letter-spacing: 2.2px;
}
.manifest-line {
  font-family: var(--sans);
  font-size: clamp(34px, 5.2vw, 70px);
  font-weight: 700;
  font-style: italic;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #f2f5ff;
}
.manifest-line em {
  font-style: italic;
  background: linear-gradient(178deg, #cfd7ff 0%, #6f7dff 45%, #2b36e0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.manifest + .sec { border-top: 0; }

/* ============================ cards / bento ============================ */
.bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)),
    var(--panel);
  overflow: hidden;
  transition: border-color 0.35s, transform 0.35s var(--ease), background 0.35s;
}
.card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -90px;
  top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 104, 255, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover {
  border-color: rgba(88, 104, 255, 0.32);
  transform: translateY(-4px);
  background:
    linear-gradient(180deg, rgba(88, 104, 255, 0.05), rgba(255, 255, 255, 0.008)),
    var(--panel);
}
.card:hover::after { opacity: 1; }

.b-1 { grid-column: auto; grid-row: auto; }
.b-2 { grid-column: auto; }

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(88, 104, 255, 0.28);
  border-radius: 12px;
  background: rgba(88, 104, 255, 0.06);
  color: var(--blue-2);
}
.card-icon svg { width: 22px; height: 22px; }
.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.card-tag::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue-2);
  box-shadow: 0 0 6px rgba(139, 151, 255, 0.6);
}
.card h3 {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.b-1 h3 { font-size: clamp(24px, 2.4vw, 32px); }
.card p { color: var(--muted); font-size: 13.8px; line-height: 1.6; }
.card-list {
  margin-top: 18px;
  display: grid;
  gap: 9px;
}
.card-list li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  color: var(--muted);
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 1px;
  background: var(--blue);
}
.card-link {
  margin-top: auto;
  padding-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue-2);
  text-decoration: none;
}
.card-link svg { transition: transform 0.25s var(--ease); }
.card-link:hover svg { transform: translateX(4px); }

.card-route { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.card-route > .mono { font-size: 8.5px; }
.route-track { display: flex; gap: 5px; margin-top: 10px; }
.route-track i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); }
.route-track i.on { background: var(--blue); box-shadow: 0 0 10px rgba(88, 104, 255, 0.35); }
.route-labels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin-top: 8px;
}
.route-labels span {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--dim);
}

/* ============================ training ============================ */
.training-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.training-aside { position: sticky; top: 104px; }
.training-aside .sec-head { margin-bottom: 30px; }
.training-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.training-cta .mono { color: var(--dim); }
.aside-facts { margin-top: 14px; width: 100%; border-top: 1px solid var(--line); }
.aside-facts li {
  position: relative;
  padding: 11px 0 11px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.aside-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 7px;
  height: 1px;
  background: var(--blue);
}

.steps { border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 26px 6px;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, padding-left 0.3s var(--ease);
}
.step:hover { background: rgba(255, 255, 255, 0.022); padding-left: 14px; }
.step-num { font-family: var(--mono); font-size: 11px; letter-spacing: 1.2px; color: var(--blue-2); padding-top: 4px; }
.step-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.step h3 { font-family: var(--sans); font-size: 20px; font-weight: 600; letter-spacing: -0.005em; }
.step-meta { font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.step p { margin-top: 8px; color: var(--muted); font-size: 13.8px; max-width: 520px; }

/* ============================ events ============================ */
.events { border-top: 1px solid var(--line); }
.event {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto 22px;
  align-items: center;
  gap: 24px;
  padding: 22px 8px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.25s, padding-left 0.3s var(--ease);
}
.event:hover { background: rgba(255, 255, 255, 0.03); padding-left: 16px; }
.event-date { display: flex; align-items: baseline; gap: 6px; }
.event-date b { font-family: var(--sans); font-size: 27px; font-weight: 700; color: #dfe4ff; line-height: 1; text-shadow: 0 0 22px rgba(59, 70, 255, 0.55); }
.event-date span { font-family: var(--mono); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--dim); }
.event h3 { font-family: var(--sans); font-size: 18px; font-weight: 600; }
.event p { margin-top: 3px; font-size: 12.5px; color: var(--dim); }
.pill {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.pill-blue { border-color: rgba(88, 104, 255, 0.4); color: var(--blue-2); background: rgba(88, 104, 255, 0.06); }
.event-arrow { color: var(--dim); font-size: 16px; transition: color 0.25s, transform 0.25s; }
.event:hover .event-arrow { color: var(--blue-2); transform: translateX(4px); }

/* ============================ media ============================ */
.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.media-card {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  display: block;
  width: 100%;
}
.media-card figure {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
}
.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.4s;
  filter: saturate(0.92);
}
.media-card:hover img { transform: scale(1.045); filter: saturate(1.05); }
.play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(88, 104, 255, 0.6);
  background: rgba(8, 11, 10, 0.55);
  color: var(--blue-2);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.media-card:hover .play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.dur {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.62);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.5px;
  color: var(--text);
}
.media-cap h3 { margin-top: 14px; font-family: var(--sans); font-size: 17px; font-weight: 600; letter-spacing: -0.005em; }
.media-cap p { margin-top: 4px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--dim); }
.media-note { margin-top: 28px; color: var(--muted); font-size: 13.5px; }
.media-note a { color: var(--blue-2); text-decoration: none; border-bottom: 1px solid rgba(88, 104, 255, 0.35); }
.media-note a:hover { border-color: var(--blue-2); }

/* ============================ workshop ============================ */
.workshop-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.workshop-copy .sec-head { margin-bottom: 20px; }
.workshop-copy > p { color: var(--muted); font-size: 14.5px; max-width: 460px; }
.workshop-copy > .btn { margin-top: 28px; }

.price-list { border-top: 1px solid var(--line); }
.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s, padding-left 0.3s var(--ease);
}
.price-row:hover { background: rgba(255, 255, 255, 0.022); padding-left: 12px; }
.price-row h3 { font-family: var(--sans); font-size: 16.5px; font-weight: 600; }
.price-row p { margin-top: 4px; font-size: 12.5px; color: var(--dim); }
.price {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--blue-2);
  white-space: nowrap;
}

/* ============================ team ============================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.person {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.005)), var(--panel);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.person:hover { border-color: rgba(88, 104, 255, 0.28); transform: translateY(-3px); }
.person-photo {
  position: relative;
  aspect-ratio: 4 / 3.4;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 34%, rgba(88, 104, 255, 0.16), transparent 62%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 14px),
    var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.person-photo span {
  font-family: var(--sans);
  font-size: 58px;
  font-weight: 700;
  color: rgba(88, 104, 255, 0.55);
  line-height: 1;
}
.person-photo em { position: absolute; left: 12px; bottom: 10px; font-style: normal; font-size: 8.5px; }
.person h3 { padding: 16px 18px 0; font-family: var(--sans); font-size: 18px; font-weight: 600; }
.person-role { padding: 4px 18px 0; font-family: var(--mono); font-size: 9px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--blue-2); }
.person-skill { padding: 8px 18px 18px; font-size: 12.5px; color: var(--dim); }

/* ============================ faq ============================ */
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 21px 4px;
  border: 0;
  background: none;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--blue-2); }
.faq-i { position: relative; width: 14px; height: 14px; flex: 0 0 auto; transition: transform 0.3s var(--ease); }
.faq-i::before, .faq-i::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.5px;
  background: var(--blue);
  border-radius: 2px;
}
.faq-i::after { transform: rotate(90deg); }
.faq-item.open .faq-i { transform: rotate(45deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s var(--ease);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a p {
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  max-width: 720px;
  padding-right: 40px;
}
.faq-item.open .faq-a p { padding-bottom: 22px; }

/* ============================ contact ============================ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.contact-form-wrap .sec-head { margin-bottom: 26px; }

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(600px 300px at 100% 0, rgba(88, 104, 255, 0.06), transparent 70%),
    var(--panel);
}
.field { display: flex; flex-direction: column; position: relative; }
.field label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field label span { color: var(--blue-2); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder,
.field textarea::placeholder { color: #5d6785; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(88, 104, 255, 0.55);
  background: rgba(88, 104, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(88, 104, 255, 0.12);
}
.field-select::after {
  content: "";
  position: absolute;
  right: 15px;
  bottom: 17px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  pointer-events: none;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 36px; }
.field select option { background: #0d1224; color: var(--text); }

.field-full { grid-column: 1 / -1; }
.err { display: none; margin-top: 6px; font-size: 11px; color: #e8786b; }
.field.invalid .err { display: block; }
.field.invalid input { border-color: rgba(232, 120, 107, 0.6); }

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.check input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.check input:checked {
  border-color: var(--blue-2);
  background: var(--blue)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12l6 6L20 6'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}
.check.invalid input { border-color: rgba(232, 120, 107, 0.8); }
.check.invalid { color: #e8786b; }

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.form-foot .mono { color: var(--dim); }
.form-done {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding: 13px 15px;
  border: 1px solid rgba(124, 201, 143, 0.4);
  border-radius: 10px;
  background: rgba(124, 201, 143, 0.08);
  color: var(--green);
  font-size: 13px;
}

.contact-side { display: grid; gap: 14px; }
.contact-block {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008)), var(--panel);
}
.contact-block h3 { font-family: var(--sans); font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.contact-block > p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.contact-block > p + p { margin-top: 10px; }
.contact-block-accent { border-color: rgba(88, 104, 255, 0.24); }
.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.contact-row:first-of-type { border-top: 0; }
.contact-row b { font-size: 13.5px; font-weight: 500; transition: color 0.2s; }
.contact-row:hover b { color: var(--blue-2); }
.contact-row .mono { font-size: 9px; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials .btn { height: 40px; padding: 0 16px; font-size: 13px; flex: 1; }

/* ============================ footer ============================ */
.footer { border-top: 1px solid var(--line); padding: 52px 0 26px; background: rgba(0, 0, 0, 0.18); }
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 0.85fr;
  gap: 40px;
}
.footer-brand p { margin-top: 14px; color: var(--muted); font-size: 13px; max-width: 270px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-nav .mono { margin-bottom: 4px; font-size: 9px; }
.footer-nav a { color: var(--muted); font-size: 13px; text-decoration: none; transition: color 0.2s; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--dim);
}
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--blue-2); }
.footer-bottom .mono { font-size: 9px; }

/* ============================ lightbox ============================ */
.lightbox {
  width: min(960px, 94vw);
  max-height: 92svh;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: #080c18;
  color: var(--text);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(3, 5, 4, 0.82); backdrop-filter: blur(8px); }
.lightbox-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: var(--text);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.12); }
.lightbox-frame { position: relative; aspect-ratio: 16 / 9; background: #04060d; }
.lightbox-frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0.42; }
.lightbox-stub {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  background: rgba(8, 11, 10, 0.35);
}
.lightbox-stub .mono { color: var(--blue-2); font-size: 9.5px; }
.lightbox-stub p { font-size: 14px; color: var(--text); }
.lightbox-stub small { font-size: 11.5px; color: var(--dim); max-width: 340px; margin-inline: auto; }
.lightbox h3 { padding: 18px 22px; font-family: var(--sans); font-size: 17px; font-weight: 600; }

/* ============================ communities ============================ */
.communities {
  position: relative;
  padding: clamp(40px, 5vw, 64px) 0 clamp(44px, 5.5vw, 68px);
  border-block: 1px solid var(--line);
  background:
    radial-gradient(800px 340px at 12% 0%, rgba(53, 66, 255, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent);
}
.communities-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.communities-kicker { color: var(--blue-2); letter-spacing: 2.2px; margin-bottom: 8px; }
.communities-head h2 {
  font-family: var(--sans);
  font-size: clamp(26px, 3.1vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.communities-head .sec-lead { max-width: 440px; }

.communities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}
.community {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)),
    var(--panel);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s, transform 0.3s var(--ease), background 0.3s;
}
.community:hover {
  border-color: rgba(90, 110, 255, 0.45);
  transform: translateY(-3px);
  background:
    linear-gradient(180deg, rgba(53, 66, 255, 0.08), rgba(255, 255, 255, 0.008)),
    var(--panel);
}
.community-logo {
  width: 110px;
  height: 110px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: radial-gradient(circle at 50% 32%, rgba(120, 140, 255, 0.16), rgba(255, 255, 255, 0.03) 70%);
}
.community-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.community-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.community-body .mono { font-size: 8px; letter-spacing: 1px; }
.community-body h3 {
  font-family: var(--sans);
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 600;
  line-height: 1.1;
}
.community-text { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.community-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: auto;
  align-self: stretch;
  padding: 9px 11px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--blue-3);
  white-space: nowrap;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.community:hover .community-go { background: var(--blue); border-color: transparent; color: #fff; }
.communities-note { margin-top: 16px; font-size: 8.5px; letter-spacing: 1.4px; }

.community-list { border-top: 1px solid var(--line); }
.community-row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 18px 8px;
  border-bottom: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.25s, padding-left 0.3s var(--ease);
}
.community-row:hover { background: rgba(255, 255, 255, 0.03); padding-left: 16px; }
.community-row-name { font-family: var(--sans); font-size: 20px; font-weight: 600; letter-spacing: -0.005em; }
.community-row-text { color: var(--muted); font-size: 13px; line-height: 1.5; }
.community-row .community-go { margin-top: 0; align-self: center; padding: 9px 13px; }

/* ============================ community page ============================ */
.page-hero {
  position: relative;
  padding: 156px 0 64px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 120%;
  background:
    radial-gradient(720px 420px at 22% 30%, rgba(53, 66, 255, 0.2), transparent 70%),
    radial-gradient(560px 380px at 82% 10%, rgba(216, 178, 100, 0.05), transparent 70%);
  pointer-events: none;
}
.page-hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.page-logo {
  width: clamp(150px, 20vw, 250px);
  height: clamp(150px, 20vw, 250px);
  align-self: center;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid rgba(120, 140, 255, 0.25);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 30%, rgba(53, 66, 255, 0.18), transparent 70%),
    rgba(255, 255, 255, 0.03);
  box-shadow: 0 30px 90px -50px rgba(53, 66, 255, 0.6);
}
.page-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.page-crumb { font-family: var(--mono); font-size: 9px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.page-crumb a { color: var(--muted); text-decoration: none; }
.page-crumb a:hover { color: var(--text); }
.page-hero h1 {
  font-family: var(--sans);
  font-style: italic;
  font-size: clamp(40px, 6vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.page-sub { margin-top: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--blue-2); }
.page-lead { margin-top: 18px; max-width: 560px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.page-section { padding-block: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.page-stats-section { padding-bottom: clamp(36px, 5vw, 56px); }
.page-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.page-stats .stat dd { font-size: clamp(28px, 3.2vw, 40px); }

.page-section h2 {
  font-family: var(--sans);
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.page-section > .wrap > p { color: var(--muted); max-width: 720px; font-size: 14.5px; }
.page-section .page-grid { margin-top: 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.page-section .card { padding: 22px; }
.page-section .card h3 { font-size: 17px; margin-bottom: 8px; }
.page-section .card p { font-size: 13px; }
.page-note {
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px dashed rgba(120, 140, 255, 0.35);
  border-radius: 12px;
  background: rgba(53, 66, 255, 0.06);
  color: var(--muted);
  font-size: 12.5px;
  max-width: 720px;
}
.page-nav { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.page-nav a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.page-nav a:hover { color: var(--text); border-color: var(--line-2); }
.page-nav a.active { color: #fff; background: var(--blue); border-color: transparent; }
.page-back { height: 38px; padding: 0 14px; font-size: 12.5px; }
.page-contact-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.page-contact-row .btn { height: 42px; padding: 0 16px; font-size: 13px; }

/* ============================ motion ============================ */.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

.bento .card:nth-child(2) { transition-delay: 0.05s; }
.bento .card:nth-child(3) { transition-delay: 0.1s; }
.bento .card:nth-child(4) { transition-delay: 0.15s; }
.bento .card:nth-child(5) { transition-delay: 0.2s; }
.team-grid .person:nth-child(2) { transition-delay: 0.06s; }
.team-grid .person:nth-child(3) { transition-delay: 0.12s; }
.team-grid .person:nth-child(4) { transition-delay: 0.18s; }
.media-grid .media-card:nth-child(2) { transition-delay: 0.06s; }
.media-grid .media-card:nth-child(3) { transition-delay: 0.12s; }
.media-grid .media-card:nth-child(4) { transition-delay: 0.18s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 201, 143, 0.45); opacity: 1; }
  50% { box-shadow: 0 0 0 6px rgba(124, 201, 143, 0); opacity: 0.55; }
}
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(5vw, 4vh, 0) scale(1.1); }
}
@keyframes streak {
  0% { transform: translate3d(-26vw, 0, 0) rotate(-14deg); opacity: 0; }
  12% { opacity: 0.45; }
  70% { opacity: 0.45; }
  100% { transform: translate3d(64vw, 0, 0) rotate(-14deg); opacity: 0; }
}
@keyframes spark {
  0%, 100% { opacity: 0; transform: translateY(12px) scale(0.5); }
  28% { opacity: 0.9; }
  62% { opacity: 0.55; }
  88% { opacity: 0; transform: translateY(-26px) scale(1.1); }
}
@keyframes flight {
  0% { transform: translate3d(0, 0, 0) rotate(-16deg); }
  100% { transform: translate3d(var(--x1, 70vw), var(--y1, -60vh), 0) rotate(-16deg); }
}
@keyframes drive {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(125vw, 0, 0); }
}

/* ============================ responsive ============================ */
@media (max-width: 1120px) {
  .nav > a { padding: 9px 8px; font-size: 12.5px; }
  .hdr-tg span { display: none; }
  .hdr-tg { width: 38px; padding: 0; justify-content: center; }
  .hdr-cta { display: none; }
}

@media (max-width: 960px) {
  .nav {
    position: fixed;
    inset: 0;
    z-index: 150;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 104px var(--pad) 40px;
    background: rgba(7, 10, 9, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.35s var(--ease), visibility 0.3s;
    overflow-y: auto;
  }
  body.nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav > a {
    width: 100%;
    padding: 16px 0;
    font-family: var(--sans);
    font-size: 23px;
    color: var(--text);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .nav > a.active::after { display: none; }
  .nav > a.active { color: var(--blue-2); }
  .nav-extra {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-top: 28px;
    width: 100%;
  }
  .nav-extra .btn { width: 100%; height: 50px; }
  .nav-phone { font-family: var(--mono); font-size: 11px; letter-spacing: 1.2px; color: var(--dim); text-decoration: none; }
  body.nav-open { overflow: hidden; }
  .burger { display: block; z-index: 160; }
  .hdr-actions { margin-left: auto; }
  .hdr-actions .hdr-cta { display: none; }

  .search-toggle { display: grid; }
  .search-field { display: none; }
  .hdr-search.open .search-field {
    display: flex;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(84vw, 340px);
    height: 44px;
    padding: 0 12px;
    background: #0b1020;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.55);
    z-index: 510;
  }
  .hdr-search.open .search-field input { width: 100%; font-size: 14px; }
  .hdr-search.open .search-results { top: calc(100% + 60px); width: min(84vw, 340px); }

  .hero { padding: 116px 0 84px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { justify-self: center; width: min(100%, 420px); height: 430px; }
  .em-14 { width: 196px; }
  .em-apg { width: 132px; top: 168px; }
  .em-cov { width: 142px; top: 282px; right: 24px; }
  .em-cbr { width: 110px; top: 210px; left: 140px; }
  .hero-stats { max-width: none; }

  .sec-head { grid-template-columns: 40px minmax(0, 1fr); align-items: start; }
  .sec-head .sec-lead { grid-column: 2; margin-top: 12px; }

  .about-grid,
  .training-grid,
  .workshop-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .training-aside { position: static; }
  .bento { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .about-media img { aspect-ratio: 16 / 10; }
}

@media (max-width: 700px) {
  body { font-size: 14.5px; }
  .hero { min-height: auto; padding: 110px 0 72px; }
  .hero-title { font-size: clamp(56px, 17vw, 92px); }
  .hero-tag { font-size: 9.5px; gap: 8px; letter-spacing: 1.8px; }
  .eyebrow { font-size: 8.5px; letter-spacing: 1.4px; gap: 8px; }
  .hero-copy { min-width: 0; }
  .flight, .ugv { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-lead { font-size: 15px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; margin-top: 36px; }
  .hero-visual { width: min(100%, 340px); height: 350px; }
  .em-14 { width: 168px; top: 0; right: 6px; }
  .em-apg { width: 104px; top: 126px; left: 0; }
  .em-cov { width: 110px; top: 230px; left: 30px; }
  .em-cbr { width: 90px; top: 150px; right: 10px; }
  .hero-emblem-name { font-size: 8px; letter-spacing: 1.2px; }
  .hud-chip { font-size: 8.5px; padding: 5px 8px; }
  .hud-chip-b { left: 0; }
  .scroll-hint { display: none; }

  .sec h2 { font-size: clamp(28px, 8vw, 38px); }
  .sec-head { margin-bottom: 30px; }

  .event { grid-template-columns: 70px minmax(0, 1fr); gap: 8px 16px; padding: 18px 6px; }
  .event .pill { grid-column: 2; justify-self: start; }
  .event-arrow { display: none; }
  .event h3 { font-size: 16.5px; }

  .media-grid { grid-template-columns: 1fr; gap: 26px; }
  .team-grid { gap: 12px; }
  .person-photo span { font-size: 44px; }
  .person h3 { font-size: 16px; padding: 14px 14px 0; }
  .person-role, .person-skill { padding-inline: 14px; }

  .form { grid-template-columns: 1fr; padding: 20px; }
  .form-foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .form-foot .btn { width: 100%; }

  .steps .step { grid-template-columns: 46px 1fr; gap: 14px; padding: 22px 4px; }
  .step-head { flex-wrap: wrap; gap: 6px 12px; }

  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

  .lightbox-stub small { display: none; }
  .lightbox h3 { font-size: 15px; padding: 14px 16px; }
}

@media (max-width: 430px) {
  .bento { grid-template-columns: 1fr; }
  .hdr-inner { gap: 12px; }
  .logo-text strong { letter-spacing: 2px; }
  .about-media figcaption { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hud-chip-d { display: none; }
}

@media (max-width: 900px) {
  .page-hero { padding: 120px 0 52px; }
  .page-hero .wrap { grid-template-columns: 1fr; gap: 26px; }
  .page-logo { width: 150px; height: 150px; padding: 14px; border-radius: 22px; }
  .page-nav { display: none; }
  .page-back { margin-left: auto; }
  .page-hero h1 { font-size: clamp(34px, 9vw, 56px); }
  .page-section .page-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .communities-grid { grid-template-columns: 1fr; }
  .page-section .page-grid { grid-template-columns: 1fr; }
  .page-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .community-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; padding: 16px 6px; }
  .community-row-name { grid-column: 1; font-size: 17px; }
  .community-row-text { grid-column: 1 / -1; font-size: 12.5px; }
  .community-row .community-go { grid-column: 2; grid-row: 1; margin-top: 0; padding: 8px 10px; font-size: 11px; }
}

@media (max-width: 560px) {
  .community { gap: 12px; padding: 14px; }
  .community-logo { width: 84px; height: 84px; border-radius: 14px; }
  .community-go { align-self: stretch; }
  .communities-head { gap: 12px; }
}

/* служебный режим для скриншотов: ?shot */
html.shot .reveal { opacity: 1; transform: none; transition: none; }
html.shot .hero { min-height: auto; padding-bottom: 64px; }
html.shot .hud,
html.shot .emblem-img,
html.shot .hud-sweep,
html.shot .hud-ring-a,
html.shot .prop,
html.shot .pulse,
html.shot .ticker-track,
html.shot .scroll-hint svg,
html.shot .bg-fx i,
html.shot .scroll-hint svg { animation: none; }
html.shot .hero-streaks i { animation: none; opacity: 0.55; transform: rotate(-14deg); }
html.shot .hero-sparks i { animation: none; opacity: 0.75; }
html.shot .flight { animation: none; }
html.shot .flight-a { transform: translate3d(7vw, -49vh, 0) rotate(-16deg); }
html.shot .flight-b { transform: translate3d(24vw, -65vh, 0) rotate(-16deg); }
html.shot .flight-plane { transform: translate3d(7vw, -54vh, 0) rotate(-14deg); }
html.shot .flight-plane2 { transform: translate3d(14vw, -57vh, 0) rotate(-14deg); }
html.shot .ugv { animation: none; transform: translate3d(75vw, 0, 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ===== WordPress / тема Legion ===== */
body.admin-bar .hdr { top: 32px; }
@media (max-width: 782px) { body.admin-bar .hdr { top: 46px; } }

/* Поиск WordPress в шапке */
.hdr-search .search-field { margin: 0; }
.hdr-search .search-field input { width: 168px; }
@media (max-width: 1180px) { .hdr-search .search-field input { width: 128px; } }
@media (max-width: 960px) {
  .hdr-search .search-field {
    display: flex;
    position: static;
    width: 150px;
    background: rgba(255,255,255,.03);
    box-shadow: none;
  }
  .hdr-search .search-field input { width: 100%; }
}
@media (max-width: 700px) { .hdr-search { display: none; } }

/* Эмблемы без логотипа */
.hero-emblem-initials {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(59,70,255,.12);
  color: var(--text);
  font-family: var(--sans);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.community-initials {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: rgba(59,70,255,.12);
  color: var(--text);
  font-family: var(--sans);
  font-size: 30px;
  font-weight: 700;
}
.page-logo-initials {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(59,70,255,.12);
  color: var(--text);
  font-family: var(--sans);
  font-size: 42px;
  font-weight: 700;
}

/* Позиции для пятого и следующих сообществ */
.em-extra { top: 40px; left: 210px; width: 150px; --rot: 6deg; }
.em-extra-1 { top: 300px; left: 40px; width: 140px; --rot: -8deg; }
.em-extra-2 { top: 330px; left: 200px; width: 140px; --rot: 5deg; }
.em-extra-3 { top: 60px; left: 380px; width: 140px; --rot: -5deg; }
@media (max-width: 960px) {
  .em-extra { top: 30px; left: 150px; width: 110px; }
  .em-extra-1 { top: 230px; left: 10px; width: 100px; }
  .em-extra-2 { top: 260px; left: 150px; width: 100px; }
  .em-extra-3 { top: 40px; left: 270px; width: 100px; }
}
@media (max-width: 700px) {
  .em-extra { top: 150px; left: 120px; width: 90px; }
  .em-extra-1 { top: 230px; left: 10px; width: 85px; }
  .em-extra-2 { top: 250px; left: 140px; width: 85px; }
  .em-extra-3 { top: 40px; left: 230px; width: 85px; }
}

/* Новости и записи */
.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.post-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.post-card h2, .post-card h3 { margin: 0 0 8px; font-size: 18px; }
.post-card a { color: var(--text); }
.post-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

.entry-content { max-width: 760px; color: var(--muted); line-height: 1.7; }
.entry-content h2, .entry-content h3 { color: var(--text); }
.entry-content a { color: var(--blue-2); }
.entry-content img { max-width: 100%; height: auto; border-radius: 12px; }

/* Пагинация WordPress */
.nav-links, .pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.page-numbers { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); text-decoration: none; }

/* bbPress */
#bbpress-forums { color: var(--text); }
#bbpress-forums a { color: var(--blue-2); }
#bbpress-forums .bbp-forums, #bbpress-forums .bbp-topics { border-color: var(--line); }

/* Мелкие правки контента */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Разносим эмблемы по углам hero */
@media (min-width: 961px) {
  .em-14 { top: 0; right: 0; left: auto; }
  .em-apg { top: 40px; left: 0; right: auto; }
  .em-cbr { top: 300px; left: 10px; right: auto; width: 140px; }
  .em-cov { top: 300px; right: 10px; left: auto; width: 160px; }
}
@media (min-width: 701px) and (max-width: 960px) {
  .em-14 { top: 0; right: 0; left: auto; }
  .em-apg { top: 20px; left: 0; right: auto; }
  .em-cbr { top: 210px; left: 0; right: auto; width: 100px; }
  .em-cov { top: 210px; right: 0; left: auto; width: 130px; }
}
@media (max-width: 700px) {
  .em-14 { top: 0; right: 0; left: auto; }
  .em-apg { top: 10px; left: 0; right: auto; }
  .em-cbr { top: 160px; left: 0; right: auto; width: 85px; }
  .em-cov { top: 160px; right: 0; left: auto; width: 100px; }
}
