/* ============================================================
   FreeBnS static — main stylesheet
   ============================================================ */

:root {
  --bg: #0a0a0c;
  --bg-elev: #15151a;
  --bg-elev-2: #1d1d24;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #ececec;
  --text-dim: #9aa0a6;
  --text-muted: #6e7178;
  --accent: #d4a356;
  --accent-2: #f0c068;
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);

  --font-sans: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Roboto, system-ui, sans-serif;
  --container: 1200px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: var(--accent-2); }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   TOP BAR
   ============================================================ */

.topbar {
  background: rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.topbar__inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  min-height: 40px;
}

.topbar__inner > a {
  color: var(--text-dim);
}
.topbar__inner > a:hover { color: var(--text); }

/* Lang switcher */
.lang-switcher {
  position: relative;
  display: inline-block;
}

.lang-switcher__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-dim);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}
.lang-switcher__globe { width: 14px; height: 14px; }
.lang-switcher__arrow { width: 10px; height: 6px; opacity: .7; }
.lang-switcher__toggle:hover { color: var(--text); border-color: var(--border-strong); }

.lang-switcher__menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  min-width: 160px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  display: none;
}
.lang-switcher.is-open .lang-switcher__menu { display: block; }

.lang-switcher__menu li {
  padding: 8px 14px;
  cursor: pointer;
  color: var(--text-dim);
  font-size: 13px;
}
.lang-switcher__menu li:hover { background: var(--bg-elev-2); color: var(--text); }
.lang-switcher__menu li.is-active {
  color: var(--accent);
  font-weight: 600;
}

/* ============================================================
   MAIN NAV
   ============================================================ */

.mainbar {
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.mainbar__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 72px;
  padding: 12px 0;
}

.logo-link { display: inline-block; }
.logo-img { max-height: 48px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}
.nav a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--text); }
.nav a.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: linear-gradient(180deg, var(--accent) 0%, #b8862e 100%);
  color: #1a1208;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  font-size: 13px;
  transition: filter .15s;
  overflow: hidden;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.1); color: #1a1208; }

.btn > span { position: relative; z-index: 1; }
.btn__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: .9;
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
}
.btn--ghost:hover { background: rgba(212, 163, 86, 0.1); color: var(--accent); }

.btn--lg {
  padding: 14px 36px;
  font-size: 15px;
  min-width: 220px;
}

.btn--play, .btn--download {
  background: transparent;
}

/* ============================================================
   SOCIAL ICONS
   ============================================================ */

.socials {
  display: flex;
  gap: 10px;
}
.socials a {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
}
.socials a img { width: 100%; height: 100%; object-fit: cover; }
.socials a:hover { opacity: .8; }

/* ============================================================
   HERO BLOCKS (главная)
   ============================================================ */

.hero-section {
  position: relative;
  min-height: 600px;
  padding: 100px 0;
  background-color: #0a0a0c;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,12,.4) 0%, rgba(10,10,12,.9) 100%);
}

.hero-section .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero-section--reverse .container { direction: rtl; }
.hero-section--reverse .container > * { direction: ltr; }

.hero__title {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 90px;
  max-width: 100%;
  padding: 0 20px;
  margin: 0 0 24px -20px;
  font-size: 42px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text);
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0,0,0,.8);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
}

.hero__text {
  font-size: 17px;
  color: #d0d0d0;
  margin: 0 0 32px;
  line-height: 1.7;
}
.hero__text p { margin: 0 0 8px; }

.hero__visual {
  position: relative;
  text-align: center;
  min-height: 320px;
}

.hero__units {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  max-height: 480px;
  width: auto;
}

.hero__units-decor {
  position: absolute;
  z-index: 1;
  opacity: .85;
  pointer-events: none;
}
.hero__units-decor--1 { top: 0; left: 0; max-width: 30%; }
.hero__units-decor--2 { bottom: 0; right: 0; max-width: 30%; }

/* PVP block */
.pvp-vs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
}
.pvp-vs img { max-width: 100%; max-height: 240px; margin: 0 auto; }
.pvp-vs__vs-img { max-height: 80px; }

/* ============================================================
   PAGE SECTIONS (новости / загрузка / донат)
   ============================================================ */

.page-section {
  position: relative;
  padding: 100px 0;
  background-size: cover;
  background-position: center;
  background-color: #0a0a0c;
}
.page-section::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,12,.5) 0%, rgba(10,10,12,.9) 100%);
}
.page-section .container { position: relative; z-index: 1; }

.page-title-img {
  display: block;
  margin: 0 auto 12px;
  max-height: 80px;
  width: auto;
}

.page-title {
  font-size: 36px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 12px;
  text-align: center;
  position: relative;
  padding-bottom: 16px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.page-title::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 80px; height: 3px;
  background: var(--accent);
}

.page-intro {
  text-align: center;
  font-size: 17px;
  color: var(--text-dim);
  max-width: 720px;
  margin: 0 auto 48px;
}

/* ============================================================
   DOWNLOAD PAGE
   ============================================================ */

.dl-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.dl-note {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px 32px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.dl-note h3 {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--accent);
}
.dl-note p {
  margin: 4px 0;
  color: var(--text-dim);
  font-size: 14px;
}


/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: #050507;
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.footer p { margin: 6px 0; }
.footer a { color: var(--text-dim); }
.footer a:hover { color: var(--accent); }
.footer__links a + a { margin-left: 12px; }
.footer__links a + a::before {
  content: "|";
  margin-right: 12px;
  color: var(--text-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .hero-section .container,
  .hero-section--reverse .container {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .hero__title { font-size: 28px; min-height: 64px; }
  .news-list { grid-template-columns: 1fr; }
  .mainbar__inner { gap: 16px; flex-wrap: wrap; min-height: auto; padding: 16px 0; }
  .nav { gap: 16px; flex-basis: 100%; order: 3; justify-content: center; }
  .socials { display: none; }
  .dl-buttons .btn--lg { min-width: 0; flex: 1 1 240px; }
}

@media (max-width: 600px) {
  .topbar__inner { justify-content: space-between; flex-wrap: wrap; min-height: auto; padding: 8px 0; }
  .nav a { font-size: 12px; }
  .page-title { font-size: 26px; }
}
