:root {
  color-scheme: dark;
  --bg: #02050b;
  --panel: rgba(2, 8, 17, .93);
  --panel-2: rgba(3, 16, 34, .84);
  --blue: #075bff;
  --blue-2: #1381ff;
  --text: #f4f7ff;
  --muted: #b8c2d4;
  --line: rgba(19, 113, 255, .3);
  --danger: #ff4b63;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(1, 3, 7, .92), rgba(1, 8, 18, .44) 50%, rgba(1, 10, 24, .95)),
    url("assets/forumstrike-hero.png") center top / min(1536px, 120vw) auto no-repeat,
    #02050b;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 74% 12%, rgba(7, 91, 255, .34), transparent 28rem),
    linear-gradient(to bottom, transparent 0, rgba(2, 5, 11, .86) 760px, #02050b 1100px);
}

a { color: inherit; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(1488px, calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0 14px;
}

.brand {
  position: relative;
  min-height: 82px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-family: Impact, "Arial Black", "Segoe UI", sans-serif;
  font-size: clamp(1.65rem, 2.35vw, 2.45rem);
  font-style: italic;
  text-transform: uppercase;
}

.brand-diamond {
  position: absolute;
  z-index: -1;
  left: 72px;
  top: -18px;
  width: 92px;
  height: 92px;
  background: linear-gradient(135deg, #075bff, #061a58);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  opacity: .82;
}

.brand-text span { color: var(--blue); }

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.main-nav a {
  text-decoration: none;
  color: #f2f5fb;
  transition: color .16s ease, background .16s ease;
}

.main-nav a:hover,
.main-nav a.is-active { color: var(--blue-2); }

.nav-download {
  padding: 13px 24px;
  border-radius: 4px;
  background: linear-gradient(135deg, #0a62ff, #073cbd);
  box-shadow: 0 14px 30px rgba(7, 91, 255, .28);
}

.main-nav .nav-download:hover { color: #fff; background: linear-gradient(135deg, #1682ff, #075bff); }

.hero-portal {
  position: relative;
  width: min(1488px, calc(100% - 48px));
  min-height: 650px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0) 40%, rgba(2, 5, 11, .9) 100%),
    url("assets/forumstrike-hero.png") center top / cover no-repeat;
  box-shadow: 0 44px 110px rgba(0, 0, 0, .4);
  overflow: hidden;
}

.hero-overlay {
  width: 100%;
  padding: 0 48px 58px;
  background: linear-gradient(90deg, rgba(2, 5, 11, .94), rgba(2, 5, 11, .32), transparent);
}

.kicker {
  margin: 0 0 14px;
  color: var(--blue-2);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .38em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

.hero-portal h1,
.page-hero h1,
.download-page h1,
.admin-page h1,
.article-page h1 {
  margin-bottom: 18px;
  font-family: Impact, "Arial Black", "Segoe UI", sans-serif;
  font-size: clamp(3.5rem, 8vw, 8.2rem);
  line-height: .9;
  font-style: italic;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.lead,
.hero-portal .lead,
.page-hero p,
.download-page p {
  max-width: 680px;
  color: #d5dce9;
  font-size: 1.16rem;
  line-height: 1.55;
}

.hero-actions,
.download-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.button:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(7, 91, 255, .28); }
.button.primary { background: linear-gradient(135deg, #0d64ff, #073bb4); }
.button.outline, .button.download-wide { background: rgba(2, 9, 20, .7); }

.portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 36px;
  width: min(1488px, calc(100% - 48px));
  margin: 28px auto 0;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(16, 81, 191, .18);
  background: linear-gradient(90deg, rgba(2, 10, 22, .94), rgba(1, 5, 12, .84));
}

.feature-card {
  display: grid;
  place-items: center;
  min-height: 206px;
  padding: 26px;
  text-align: center;
  text-decoration: none;
  border-right: 1px solid var(--line);
  transition: background .16s ease, transform .16s ease;
}

.feature-card:last-child { border-right: 0; }
.feature-card:hover { background: rgba(7, 91, 255, .13); transform: translateY(-2px); }
.feature-card strong { margin-top: 14px; font-size: 1.18rem; line-height: 1.16; text-transform: uppercase; }
.feature-card small, .mode-link small, .news-link small, .news-card small { color: var(--muted); font-size: .98rem; line-height: 1.42; }

.icon, .mode-icon {
  position: relative;
  display: inline-block;
  width: 58px;
  height: 58px;
  color: var(--blue);
}

.icon::before, .icon::after, .mode-icon::before, .mode-icon::after { content: ""; position: absolute; background: currentColor; }
.crossed::before, .crossed::after { width: 54px; height: 7px; left: 2px; top: 25px; }
.crossed::before { transform: rotate(42deg); }
.crossed::after { transform: rotate(-42deg); }
.shield::before { inset: 3px 10px 2px; clip-path: polygon(50% 0, 92% 18%, 86% 68%, 50% 100%, 14% 68%, 8% 18%); }
.headset::before { width: 48px; height: 38px; left: 5px; top: 6px; border: 7px solid currentColor; border-bottom: 0; border-radius: 28px 28px 0 0; background: transparent; }
.headset::after { width: 36px; height: 22px; left: 11px; bottom: 4px; border-left: 9px solid currentColor; border-right: 9px solid currentColor; border-bottom: 6px solid currentColor; background: transparent; }
.trophy::before { inset: 9px 12px 16px; clip-path: polygon(15% 0, 85% 0, 76% 62%, 59% 76%, 59% 88%, 78% 88%, 78% 100%, 22% 100%, 22% 88%, 41% 88%, 41% 76%, 24% 62%); }

.cta-band {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 108px;
  margin-top: 24px;
  padding: 22px 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(125deg, rgba(4, 26, 66, .95), rgba(1, 7, 16, .88) 55%, rgba(8, 48, 116, .74));
}

.chevrons { width: 52px; height: 44px; border-right: 8px solid var(--blue); border-top: 8px solid var(--blue); transform: skewX(-8deg) rotate(45deg); box-shadow: 14px -14px 0 -5px var(--blue); }
.cta-band h2 { margin-bottom: 4px; font-size: 1.65rem; letter-spacing: .04em; text-transform: uppercase; }
.cta-band p { margin-bottom: 0; color: var(--muted); font-size: 1.06rem; }
.button.download-wide { min-width: 285px; justify-self: end; }

.side-column { display: grid; align-content: start; gap: 30px; }

.panel, .content-panel, .article-page, .download-page, .admin-page {
  padding: 32px 34px;
  background: linear-gradient(140deg, rgba(1, 7, 16, .96), rgba(1, 11, 25, .88));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .38);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 18px);
}

.panel h2 { margin-bottom: 24px; font-size: 1.55rem; letter-spacing: .07em; text-transform: uppercase; }

.mode-link, .news-link {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  text-decoration: none;
  transition: transform .16s ease;
}

.mode-link:hover, .news-link:hover, .news-card:hover { transform: translateX(4px); }
.mode-link strong, .news-link strong, .news-card strong { display: block; margin-bottom: 5px; color: var(--blue-2); font-size: 1.08rem; text-transform: uppercase; }

.bomb::before { inset: 8px 14px 8px; border-radius: 4px; }
.bomb::after { width: 28px; height: 8px; left: 15px; top: 2px; box-shadow: 0 44px 0 currentColor; }
.hostages::before { width: 22px; height: 22px; left: 5px; top: 8px; border-radius: 50%; box-shadow: 28px 0 0 currentColor, 0 24px 0 5px currentColor, 28px 24px 0 5px currentColor; }
.crosshair::before { inset: 7px; border: 5px solid currentColor; border-radius: 50%; background: transparent; }
.crosshair::after { width: 58px; height: 5px; left: 0; top: 27px; }

.news-link { grid-template-columns: 108px minmax(0, 1fr); }
.news-thumb { min-height: 82px; background: linear-gradient(rgba(2, 7, 16, .25), rgba(2, 7, 16, .55)), url("assets/forumstrike-hero.png") center / 360px auto no-repeat; border: 1px solid rgba(255, 255, 255, .08); }
.news-link time, .news-card time { display: block; margin-top: 8px; color: #8c97ac; font-size: .86rem; }
.text-link { display: inline-block; margin-top: 12px; color: var(--blue-2); font-weight: 900; text-decoration: none; text-transform: uppercase; }

.subpage {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 38px 0 64px;
}

.page-hero {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-bottom: 28px;
  padding: 42px;
  background: linear-gradient(90deg, rgba(2, 5, 11, .92), rgba(2, 5, 11, .24)), url("assets/forumstrike-hero.png") center / cover no-repeat;
}

.page-hero.slim h1 { font-size: clamp(2.8rem, 6vw, 5.4rem); }

.two-col, .mode-cards, .news-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.mode-cards article {
  padding: 30px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.mode-cards h2, .content-panel h2 { text-transform: uppercase; }
.mode-cards p, .content-panel p, .article-body { color: var(--muted); line-height: 1.62; }

.news-list { grid-template-columns: 1fr; }
.news-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  padding: 22px;
  color: inherit;
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform .16s ease, background .16s ease;
}

.article-page, .download-page, .admin-page { max-width: 960px; margin: 0 auto; }
.article-page h1, .download-page h1, .admin-page h1 { font-size: clamp(2.6rem, 6vw, 5.3rem); }
.article-body { margin: 28px 0; font-size: 1.08rem; }

.download-meta { display: grid; gap: 1px; margin: 30px 0 0; background: var(--line); }
.download-meta div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 18px; padding: 16px; background: rgba(2, 8, 17, .94); }
.download-meta dt { color: #8190aa; font-weight: 900; text-transform: uppercase; }
.download-meta dd { margin: 0; overflow-wrap: anywhere; color: var(--muted); }

.cms-form { display: grid; gap: 18px; margin-top: 24px; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 18px; }
.cms-form label { display: grid; gap: 8px; color: #dfe6f5; font-weight: 800; text-transform: uppercase; }
.cms-form input, .cms-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 14px;
  color: var(--text);
  background: rgba(1, 5, 12, .86);
  font: inherit;
  text-transform: none;
}
.form-ok { color: #82ffb1; }
.form-error { color: var(--danger); }
.cms-list { margin-top: 34px; }
.cms-list article { display: flex; justify-content: space-between; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.cms-list small { display: block; color: var(--muted); }
.cms-list nav { display: flex; align-items: center; gap: 12px; }
.cms-list a, .cms-list button, .logout-form button { color: var(--blue-2); background: none; border: 0; cursor: pointer; font: inherit; font-weight: 800; text-decoration: none; text-transform: uppercase; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: min(1488px, calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0 30px;
  color: #8995aa;
  border-top: 1px solid rgba(7, 91, 255, .24);
}
.socials, .footer-links { display: flex; align-items: center; gap: 24px; }
.socials a, .footer-links a { color: #a5afc4; text-decoration: none; text-transform: uppercase; }
.footer-links { justify-content: flex-end; }
.site-footer p { margin: 0; text-align: center; }

@media (max-width: 1040px) {
  .site-header, .portal-grid, .subpage, .hero-portal, .site-footer { width: min(100% - 30px, 760px); }
  .site-header { flex-direction: column; align-items: flex-start; }
  .main-nav { width: 100%; gap: 10px; overflow-x: auto; padding-bottom: 8px; }
  .main-nav a { flex: 0 0 auto; }
  .hero-portal { min-height: 560px; }
  .hero-overlay { padding: 0 24px 42px; }
  .portal-grid, .site-footer, .cta-band, .two-col, .mode-cards { grid-template-columns: 1fr; }
  .feature-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-card:nth-child(2) { border-right: 0; }
  .feature-card:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .button.download-wide { justify-self: stretch; }
  .footer-links { justify-content: flex-start; }
  .site-footer p { text-align: left; }
}

@media (max-width: 560px) {
  .brand { font-size: 1.45rem; }
  .brand-diamond { left: 58px; width: 74px; height: 74px; }
  .hero-portal h1 { font-size: 3.2rem; }
  .hero-actions, .download-actions, .button { width: 100%; }
  .feature-strip, .news-card, .news-link, .mode-link, .form-row, .download-meta div { grid-template-columns: 1fr; }
  .feature-card { border-right: 0; border-top: 1px solid var(--line); }
  .feature-card:first-child { border-top: 0; }
  .panel, .content-panel, .article-page, .download-page, .admin-page, .page-hero { padding: 24px; }
  .cms-list article { flex-direction: column; }
  .news-thumb { min-height: 130px; }
}
