/* PUBG MOBILE Fan Site – Military / Combat / Action aesthetic */
:root {
  --bg: #0d0f12;
  --bg-card: #15181d;
  --bg-elevated: #1a1e25;
  --text: #e8eaed;
  --text-muted: #8b92a0;
  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --accent-glow: rgba(245, 158, 11, 0.35);
  --accent-soft: rgba(245, 158, 11, 0.12);
  --danger: #ef4444;
  --tactical: #22c55e;
  --border: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(245, 158, 11, 0.3);
  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.5);
  --font: 'Rajdhani', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(245, 158, 11, 0.02) 0%, transparent 50%),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(245, 158, 11, 0.04) 0%, transparent 70%);
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}
a:hover { color: var(--accent-hover); opacity: 1; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header – tactical / military */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 15, 18, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(245, 158, 11, 0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.site-logo img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: contain;
  border: 1px solid var(--border);
}
.site-logo span {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: 0.03em;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-desktop a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  position: relative;
}
.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s;
}
.nav-desktop a:hover { color: var(--accent); }
.nav-desktop a:hover::after { width: 100%; }

/* Burger — всегда поверх мобильного меню */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 101;
  transition: border-color 0.2s, background 0.2s;
}
.burger:hover {
  border-color: var(--border-accent);
  background: var(--accent-soft);
}
.burger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Мобильное меню — панель под шапкой, с анимацией */
.nav-mobile {
  display: none;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding-top: 72px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-bottom: 2rem;
  background: rgba(13, 15, 18, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  height: 100vh;
}
@media (max-width: 768px) {
  .nav-mobile {
    display: flex;
  }
  .content-block {
    padding: 0 1.5rem !important;
  }
}
.nav-mobile.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nav-mobile a {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  padding: 1rem 1rem;
  border-radius: var(--radius);
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.03em;
  transition: color 0.2s, background 0.2s;
}
.nav-mobile a:last-child {
  border-bottom: none;
}
.nav-mobile a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}
@media (min-width: 769px) {
  .nav-mobile {
    display: none !important;
  }
}

/* Main */
main { min-height: 60vh; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero – military assault style */
.hero {
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.03) 0%, transparent 30%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
/* Затемнение только на картинке: картинка и оверлей в одном слое */
.hero--banner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(13, 15, 18, 0.75) 0%, rgba(13, 15, 18, 0.5) 50%, rgba(13, 15, 18, 0.9) 100%),
    url("../images/hero-banner.jpg") center / cover no-repeat;
  pointer-events: none;
}
.hero--banner .container { z-index: 2; }
.hero .container { max-width: 720px; position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  color: var(--text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 40px var(--accent-glow);
}
.hero .tagline {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: #0d0f12;
  border: 1px solid transparent;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--accent-glow);
  background: var(--accent-hover);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border-accent);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px var(--accent-soft);
}
.btn-google {
  padding: 0;
  background: none;
  border: none;
  line-height: 0;
}
.btn-google img {
  display: block;
  height: 56px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}
.btn-google:hover { transform: scale(1.05); }

/* Section common */
.section {
  padding: 3.5rem 0;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--text);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Features grid – tactical cards */
.features {
  background: var(--bg);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover), 0 0 30px var(--accent-soft);
  border-color: var(--border-accent);
}
.feature-card:hover::before { opacity: 1; }
.feature-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}
.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}
.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Trailer – military frame */
.trailer-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trailer-wrap {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover), 0 0 0 1px var(--border-accent), inset 0 1px 0 rgba(255,255,255,0.03);
  aspect-ratio: 16/9;
  background: #000;
}
.trailer-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Why play / Modes – tactical cards */
.why-play {
  background: var(--bg);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.why-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.why-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow), 0 0 24px var(--accent-soft);
}
.why-card .icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  font-family: var(--font-mono);
}
.why-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.why-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Download CTA – military */
.download-cta {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, var(--bg-card) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.download-cta .section-title { margin-bottom: 1rem; }
.download-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.download-badges a {
  display: inline-block;
  transition: transform 0.2s;
}
.download-badges a:hover { transform: scale(1.05); }
.download-badges img {
  height: 48px;
  width: auto;
}

/* Newsletter */
.newsletter {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}
.newsletter-inner {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}
.newsletter form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}
.newsletter input[type="email"] {
  padding: 0.9rem 1rem;
  background: var(--bg);
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
}
.newsletter input[type="email"]::placeholder { color: var(--text-muted); }
.newsletter input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}
.newsletter .btn { align-self: center; }

/* Footer – tactical dark */
.site-footer {
  background: #08090b;
  color: #8b92a0;
  padding: 3rem 1.5rem 2rem;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-grid h4 {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-grid ul { list-style: none; }
.footer-grid a {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.footer-grid a:hover { color: var(--accent); }
.footer-grid li { margin-bottom: 0.4rem; }
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  text-align: center;
  color: var(--text-muted);
}

/* Popups – military style */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.popup-overlay.is-open {
  display: flex;
  opacity: 1;
  visibility: visible;
}
.popup {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px var(--border-accent);
  transform: scale(0.95);
  transition: transform 0.3s;
}
.popup-overlay.is-open .popup { transform: scale(1); }
.popup h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.popup p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}
.popup .btn { width: 100%; justify-content: center; }

/* Page headers (inner pages) – tactical */
.page-hero {
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.page-hero p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* Content block */
.content-block {
  padding: 2.5rem 0;
  max-width: 720px;
  margin: 0 auto;
}
.content-block h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}
.content-block p, .content-block li {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.content-block ul {
  margin-left: 1.25rem;
  margin-bottom: 1rem;
}

.guides-visual {
  max-width: 720px;
  margin: 0 auto 1rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.guides-visual img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.guides-visual--bottom { margin-top: 2rem; }

.guides-hero-img {
  max-width: 720px;
  margin: 2rem auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.guides-hero-img img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.faq-hero-img {
  max-width: 560px;
  margin: 1.5rem auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.faq-hero-img img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

/* Gallery (home) */
.gallery-section .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* FAQ list */
.faq-list { max-width: 680px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.faq-item:first-child { padding-top: 0; }
.faq-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.faq-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .burger { display: flex; }
  .hero { padding: 3rem 1rem 2rem; }
  .section { padding: 2.5rem 0; }
  .feature-card, .why-card { padding: 1.25rem; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .download-badges { flex-direction: column; align-items: center; }
}
