:root {
  --bg-1: #0a121c;
  --bg-2: #1a2b3f;
  --bg-3: #a65f1f;
  --card: rgba(14, 23, 36, 0.82);
  --card-border: rgba(255, 255, 255, 0.14);
  --text: #f4f8ff;
  --muted: #c2d2e9;
  --accent: #ff8f2c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 10%, #304a70 0%, transparent 34%),
    radial-gradient(circle at 88% 12%, #9a4f1d 0%, transparent 32%),
    linear-gradient(150deg, var(--bg-1), var(--bg-2) 52%, #101822 100%);
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at center, black 58%, transparent 100%);
}

.site-header, .container, .site-footer {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  backdrop-filter: blur(8px);
}

.logo {
  font-family: "Russo One", sans-serif;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.site-nav { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.site-nav a:hover, .site-nav a.active {
  color: var(--text);
  border-color: var(--card-border);
  background: rgba(255, 255, 255, 0.09);
}

.container { padding: 1.5rem 0 3rem; }
h1, h2 { margin: 0 0 0.7rem; }
h1 { font-size: clamp(1.85rem, 2.2vw + 1rem, 3rem); line-height: 1.14; }
h2 { font-size: 1.24rem; }

.lead { color: var(--muted); max-width: 72ch; }

.hero-block {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.15rem;
}

.hero-image {
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.25);
}

.meta-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }

.pill {
  padding: 0.36rem 0.62rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #ecf4ff;
  font-size: 0.78rem;
}

.cta-row { display: flex; gap: 0.7rem; margin-top: 1.2rem; }

.btn {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  border-radius: 0.62rem;
  padding: 0.66rem 0.95rem;
  background: linear-gradient(130deg, var(--accent), #ca6b1e);
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--card-border);
}

.grid { display: grid; gap: 1rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 1.02rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.card img {
  width: 100%;
  border-radius: 0.78rem;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card p, .card li { color: var(--muted); line-height: 1.45; }

.media-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.pistol-small {
  width: 70%;
  height: 70%;
  margin-inline: auto;
  display: block;
  object-fit: contain !important;
  object-position: center 18% !important;
}

.pistol-gallery {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain !important;
  object-position: center center !important;
}

.item-grid .card { min-height: 240px; }

.item-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  margin: 0 0 0.55rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.table-card table { width: 100%; border-collapse: collapse; }

.table-card th, .table-card td {
  text-align: left;
  padding: 0.64rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.table-card th { color: #eaf2ff; }

.table-card tr:last-child td { border-bottom: 0; }

.table-card tr:hover td { background: rgba(255, 255, 255, 0.04); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }

.gallery-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: 0.8rem;
  border: 1px solid var(--card-border);
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(4, 8, 14, 0.88);
}

.lightbox.open { display: flex; }
.lightbox-inner { width: min(1200px, 95vw); }

.lightbox img {
  width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 0.88rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #070b12;
}

.lightbox-close {
  margin-top: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 0.56rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}

.site-footer { color: var(--muted); padding: 1rem 0 2rem; }

@media (max-width: 900px) {
  .hero-block, .grid.two, .grid.three, .grid.four, .gallery-grid { grid-template-columns: 1fr; }

  .site-header {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .site-nav { width: 100%; gap: 0.42rem; }

  .site-nav a { font-size: 0.92rem; padding: 0.42rem 0.66rem; }

  .cta-row { width: 100%; flex-wrap: wrap; }

  .btn { width: 100%; text-align: center; }

  .hero-image { max-height: 280px; }
}
