* { box-sizing: border-box; }

:root {
  --bg: #0d1117;
  --bg2: #12171f;
  --panel: #171d26;
  --line: #263040;
  --text: #e6e9ef;
  --muted: #9aa7b8;
  --t: #ffb02e;      /* террористы */
  --ct: #4aa8ff;     /* спецназ */
  --accent: #c8ff00;
  --danger: #ff4d4d;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'SN Pro', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1000px 600px at 80% -10%, rgba(74,168,255,.10), transparent 60%),
    radial-gradient(900px 500px at 10% 0%, rgba(255,176,46,.10), transparent 55%),
    var(--bg);
  line-height: 1.55;
}

.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  opacity: .35;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.025) 0 1px, transparent 1px 3px);
}

a { color: inherit; text-decoration: none; }

/* ===== TOPBAR ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 1.2rem;
  background: rgba(13,17,23,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.logo { display: flex; align-items: center; gap: .6rem; }
.logo__mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 8px;
  font-family: var(--mono);
  font-weight: 600;
  background: linear-gradient(135deg, var(--t), #ff7a00);
  color: #1a1200;
}
.logo__text {
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: .18em;
  font-size: .85rem;
}

.nav { display: flex; gap: .3rem; flex-wrap: wrap; }
.nav a {
  padding: .45rem .7rem;
  border-radius: 8px;
  font-size: .85rem;
  color: var(--muted);
  transition: .18s;
}
.nav a:hover { color: var(--text); background: var(--panel); }
.nav__cta {
  background: rgba(200,255,0,.12) !important;
  color: var(--accent) !important;
  border: 1px solid rgba(200,255,0,.35);
}
.nav__cta:hover { background: rgba(200,255,0,.2) !important; }

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.hero__glow {
  position: absolute;
  width: 620px; height: 620px;
  top: -220px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255,176,46,.25), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}
.hero__badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .12em;
  color: var(--accent);
  border: 1px solid rgba(200,255,0,.35);
  background: rgba(200,255,0,.08);
  padding: .35rem .8rem;
  border-radius: 999px;
  margin: 0 0 1.2rem;
}
.hero__title {
  margin: 0;
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(3rem, 13vw, 8rem);
  line-height: .92;
  letter-spacing: -.02em;
  text-shadow: 0 0 40px rgba(255,176,46,.25);
}
.hero__title-accent {
  color: transparent;
  background: linear-gradient(90deg, var(--t), var(--danger) 50%, var(--ct));
  -webkit-background-clip: text;
  background-clip: text;
}
.hero__lead {
  max-width: 640px;
  margin: 1.4rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
}
.hero__actions {
  display: flex;
  gap: .8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.btn {
  display: inline-block;
  padding: .8rem 1.5rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: .18s;
}
.btn--primary {
  background: var(--accent);
  color: #101400;
  box-shadow: 0 8px 30px rgba(200,255,0,.25);
}
.btn--primary:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn--ghost {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--ct); color: var(--ct); }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .8rem;
  max-width: 760px;
  margin: 3rem auto 0;
}
.hero__stats > div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .9rem .6rem;
}
.hero__stats dt {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.hero__stats dd {
  margin: .3rem 0 0;
  font-family: var(--mono);
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 600;
  color: var(--accent);
}

.hero__crosshair {
  position: absolute;
  top: 42%; left: 8%;
  width: 60px; height: 60px;
  opacity: .5;
  animation: drift 7s ease-in-out infinite;
}
.hero__crosshair::before,
.hero__crosshair::after,
.hero__crosshair span::before,
.hero__crosshair span::after {
  content: '';
  position: absolute;
  background: var(--ct);
}
.hero__crosshair::before { left: 50%; top: 0; width: 2px; height: 16px; margin-left: -1px; }
.hero__crosshair::after { left: 50%; bottom: 0; width: 2px; height: 16px; margin-left: -1px; }
.hero__crosshair span::before { top: 50%; left: 0; height: 2px; width: 16px; margin-top: -1px; }
.hero__crosshair span::after { top: 50%; right: 0; height: 2px; width: 16px; margin-top: -1px; }
@keyframes drift {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(40px, -30px); }
}

.hero__ticker {
  margin-top: 3.5rem;
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,.35);
  overflow: hidden;
  padding: .55rem 0;
}
.ticker__track {
  display: flex;
  gap: 1.5rem;
  white-space: nowrap;
  width: max-content;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .14em;
  color: var(--muted);
  animation: ticker 22s linear infinite;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== SECTIONS ===== */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) 1.25rem 1rem;
}
.section__title {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  display: flex;
  align-items: center;
  gap: .8rem;
}
.section__title .num {
  color: var(--t);
  font-size: .7em;
  opacity: .8;
}
.section__sub { color: var(--muted); margin: .5rem 0 2rem; }

/* Timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: .9rem;
}
.tl-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--t);
  border-radius: 10px;
  padding: 1.1rem;
  transition: .2s;
}
.tl-item:hover { transform: translateY(-4px); border-left-color: var(--accent); }
.tl-item__year {
  font-family: var(--mono);
  color: var(--t);
  font-weight: 600;
}
.tl-item h3 { margin: .4rem 0 .4rem; font-size: 1.05rem; }
.tl-item p { margin: 0; color: var(--muted); font-size: .9rem; }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: linear-gradient(160deg, var(--panel), var(--bg2));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.3rem;
  transition: .2s;
  position: relative;
  overflow: hidden;
}
.card::after {
  content: '';
  position: absolute;
  right: -30px; top: -30px;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,168,255,.25), transparent 70%);
}
.card--t::after { background: radial-gradient(circle, rgba(255,176,46,.3), transparent 70%); }
.card--warmup::after { background: radial-gradient(circle, rgba(255,77,77,.3), transparent 70%); }
.card:hover { transform: translateY(-5px); border-color: var(--ct); }
.card__tag {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--accent);
  border: 1px solid rgba(200,255,0,.3);
  padding: .15rem .5rem;
  border-radius: 999px;
}
.card h3 { margin: .8rem 0 .4rem; }
.card p { margin: 0; color: var(--muted); font-size: .92rem; }

/* Maps */
.maps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.1rem;
}
.map {
  display: flex;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: .2s;
}
.map:hover { border-color: var(--t); transform: translateY(-3px); }
.map__pic {
  position: relative;
  width: 130px;
  min-height: 170px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .1em;
  color: rgba(255,255,255,.85);
  text-shadow: 0 2px 6px rgba(0,0,0,.6);
}
.map__pic span { position: relative; z-index: 2; padding: 0 .4rem; text-align: center; }
.map__pic::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.55));
}
.map__pic--dust    { background: linear-gradient(150deg, #d9a441, #8a5f22 60%, #5d3f16); }
.map__pic--inferno { background: linear-gradient(150deg, #b7503a, #7a2f22 60%, #4a1c14); }
.map__pic--mirage  { background: linear-gradient(150deg, #7fa6c9, #3f6f96 60%, #26445c); }
.map__pic--nuke    { background: linear-gradient(150deg, #7d8a99, #4a5663 60%, #2b333d); }
.map__body { padding: 1.1rem; }
.map__body h3 { margin: 0 0 .4rem; font-family: var(--mono); color: var(--t); }
.map__body p { margin: 0 0 .7rem; color: var(--muted); font-size: .9rem; }
.map__facts { list-style: none; margin: 0; padding: 0; font-size: .82rem; }
.map__facts li { padding: .18rem 0; border-top: 1px dashed var(--line); color: var(--muted); }
.map__facts b { color: var(--text); font-weight: 600; }

/* Guns */
.guns {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1rem;
  align-items: start;
}
.guns__list { display: flex; flex-direction: column; gap: .45rem; }
.gun-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  padding: .7rem .9rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--mono);
  font-size: .85rem;
  cursor: pointer;
  transition: .15s;
  text-align: left;
}
.gun-btn:hover { border-color: var(--ct); }
.gun-btn.active {
  border-color: var(--accent);
  background: rgba(200,255,0,.08);
  color: var(--accent);
}
.gun-btn small { color: var(--muted); font-size: .72rem; }
.gun-btn.active small { color: rgba(200,255,0,.7); }

.guns__detail {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem;
  min-height: 320px;
}
.gd__top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem; align-items: baseline; }
.gd__name { font-family: var(--mono); font-size: 1.5rem; margin: 0; }
.gd__price { font-family: var(--mono); color: var(--accent); font-size: 1.2rem; }
.gd__desc { color: var(--muted); margin: .7rem 0 1.2rem; }
.gd__bars { display: grid; gap: .8rem; }
.bar__label {
  display: flex; justify-content: space-between;
  font-size: .78rem; color: var(--muted);
  font-family: var(--mono); margin-bottom: .3rem;
}
.bar__track { height: 10px; background: var(--bg); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.bar__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ct), var(--accent));
  width: 0;
  transition: width .6s cubic-bezier(.22,1,.36,1);
}
.gd__tip {
  margin-top: 1.2rem;
  padding: .8rem 1rem;
  background: rgba(255,176,46,.08);
  border-left: 3px solid var(--t);
  border-radius: 0 8px 8px 0;
  font-size: .9rem;
}

/* Pro */
.pro { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; }
.pro__teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .8rem; }
.team {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  transition: .2s;
}
.team:hover { transform: translateY(-4px); border-color: var(--accent); }
.team__flag { font-size: 1.5rem; }
.team h3 { margin: .5rem 0 .3rem; font-family: var(--mono); }
.team p { margin: 0; font-size: .85rem; color: var(--muted); }
.pro__facts {
  background: linear-gradient(160deg, rgba(74,168,255,.12), var(--panel));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.3rem;
}
.pro__facts h3 { margin-top: 0; font-family: var(--mono); }
.pro__facts ul { list-style: none; padding: 0; margin: 0; }
.pro__facts li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .5rem 0; border-bottom: 1px dashed var(--line);
  font-size: .88rem;
}
.pro__facts li span { color: var(--muted); }
.pro__facts li b { font-family: var(--mono); color: var(--accent); }
.pro__note { font-size: .85rem; color: var(--muted); margin-bottom: 0; }

/* Aim trainer */
.aimwrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem;
}
.aim__hud { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: .9rem; }
.hud__item {
  font-family: var(--mono);
  font-size: .85rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .45rem .9rem;
  color: var(--muted);
}
.hud__item b { color: var(--accent); }
.aim__field {
  position: relative;
  height: 380px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(200,255,0,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,255,0,.03) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, #1a2230, #0e131b);
  background-size: 32px 32px, 32px 32px, cover;
  overflow: hidden;
  cursor: crosshair;
  user-select: none;
}
.aim__start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  background: rgba(13,17,23,.55);
  padding: 1rem;
}
.aim__start.hidden { display: none; }
.aim__hint { color: var(--muted); margin: 0; font-size: .92rem; }

.target {
  position: absolute;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0 8%, var(--danger) 10% 45%, #8f1f1f 47% 100%);
  box-shadow: 0 0 0 4px rgba(255,255,255,.15), 0 0 26px rgba(255,77,77,.6);
  cursor: crosshair;
  animation: pop .18s ease-out;
}
.target::after {
  content: '';
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  background: #1a0505;
}
@keyframes pop {
  from { transform: scale(.3); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.aim__tip { color: var(--muted); font-size: .85rem; margin: .9rem 0 0; }

.aim__field.shot { animation: shake .12s; }
@keyframes shake {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(2px,-2px); }
}

/* Footer */
.footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  background: var(--bg2);
}
.footer__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  text-align: center;
}
.footer__muted { color: var(--muted); font-size: .8rem; margin-top: .4rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: .6s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 860px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .guns { grid-template-columns: 1fr; }
  .pro { grid-template-columns: 1fr; }
  .nav a:not(.nav__cta) { display: none; }
}
@media (max-width: 520px) {
  .map { flex-direction: column; }
  .map__pic { width: 100%; min-height: 110px; }
  .aim__field { height: 320px; }
}
