* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
  --dark-red: #8b0000;
  --crimson: #b22222;
  --blood: #6a0d0d;
  --card-bg: #140000;
  --border: #2e0000;
  --text: #e8e8e8;
  --text-muted: #a08080;
  --accent: #e63946;
}

html { scroll-behavior: smooth; }

body {
  /* ЕДИНЫЙ ЧЁРНО-КРАСНЫЙ ФОН */
  background:
    radial-gradient(ellipse at top, #2a0000 0%, #0d0000 45%, #000000 100%);
  background-attachment: fixed;
  background-color: #000;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== ШАПКА ===== */
header {
  background: linear-gradient(135deg, #1a0000 0%, #3d0000 100%);
  border-bottom: 3px solid var(--dark-red);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(139, 0, 0, 0.6);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo { display: flex; align-items: center; gap: 4px; }

.logo-avatar {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid var(--dark-red);
  box-shadow: 0 0 18px rgba(139, 0, 0, 0.9);
  transition: all 0.3s;
  margin-right: -2px; /* дополнительное приближение текста */
}

.logo-avatar:hover {
  box-shadow: 0 0 25px rgba(230, 57, 70, 1);
  transform: scale(1.05);
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  text-transform: uppercase;
  margin-left: 2px;
}

.logo-text span { color: var(--accent); }

nav ul { display: flex; list-style: none; gap: 22px; }

nav a {
  font-weight: 500; transition: color 0.3s;
  padding: 8px 0; position: relative;
  font-size: 15px; color: #ddd;
}

nav a:hover, nav a.active { color: var(--accent); }

nav a::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--accent); transition: width 0.3s;
}

nav a:hover::after, nav a.active::after { width: 100%; }

/* ===== КНОПКИ ===== */
.btn {
  display: inline-block; padding: 10px 22px;
  border-radius: 6px; font-weight: 600;
  transition: all 0.3s; cursor: pointer;
  border: none; font-size: 15px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--dark-red), var(--crimson));
  color: white;
  box-shadow: 0 0 14px rgba(139, 0, 0, 0.7);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--crimson), var(--accent));
  box-shadow: 0 0 25px rgba(230, 57, 70, 0.9);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent; color: white;
  border: 2px solid var(--dark-red);
}

.btn-outline:hover {
  background: var(--dark-red);
  box-shadow: 0 0 18px rgba(139, 0, 0, 0.8);
}

.btn-large { padding: 15px 40px; font-size: 17px; }

/* ===== ГЕРОЙ ===== */
.hero {
  background:
    linear-gradient(rgba(0, 0, 0, 0.8), rgba(40, 0, 0, 0.9)),
    url('https://images.unsplash.com/photo-1542751371-adc38448a05e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  padding: 120px 0;
  text-align: center;
  border-bottom: 2px solid var(--blood);
}

.hero h1 {
  font-size: 52px; font-weight: 800;
  margin-bottom: 20px; color: #fff;
  text-shadow: 0 0 30px rgba(139, 0, 0, 1);
  letter-spacing: 2px;
}

.hero h1 span { color: var(--accent); }

.hero p {
  font-size: 20px; color: #ddd;
  max-width: 750px; margin: 0 auto 35px;
}

.hero-buttons {
  display: flex; gap: 20px;
  justify-content: center; flex-wrap: wrap;
}

/* ===== СЕКЦИИ ===== */
section { padding: 80px 0; }

.section-title {
  text-align: center; font-size: 36px;
  font-weight: 700; margin-bottom: 15px; color: #fff;
}

.section-title span { color: var(--accent); }

.section-subtitle {
  text-align: center; color: var(--text-muted);
  margin-bottom: 50px; font-size: 17px;
}

/* ===== СЕРВЕРЫ ===== */
.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.server-card {
  background: linear-gradient(145deg, #1a0000, #0d0000);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 30px 25px;
  transition: all 0.3s;
  position: relative; overflow: hidden;
}

.server-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--dark-red), var(--accent));
}

.server-card:hover {
  transform: translateY(-8px);
  border-color: var(--dark-red);
  box-shadow: 0 12px 35px rgba(139, 0, 0, 0.6);
}

.server-card h3 {
  font-size: 22px; margin-bottom: 10px; color: #fff;
}

.status {
  display: inline-block; padding: 4px 12px;
  border-radius: 20px; font-size: 13px;
  font-weight: 600; margin-bottom: 15px;
}

.status-online {
  background: rgba(0, 200, 0, 0.15);
  color: #4caf50; border: 1px solid #4caf50;
}

.status-offline {
  background: rgba(200, 0, 0, 0.15);
  color: #f44336; border: 1px solid #f44336;
}

.server-card p {
  color: var(--text-muted);
  margin-bottom: 20px; font-size: 15px;
}

.ip {
  background: #000; padding: 10px 15px;
  border-radius: 6px; font-family: monospace;
  color: var(--accent); font-size: 15px;
  border: 1px solid #3a0000;
  display: flex; justify-content: space-between; align-items: center;
}

/* ===== НОВОСТИ ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.news-card {
  background: linear-gradient(145deg, #1a0000, #0d0000);
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.news-card:hover {
  border-color: var(--dark-red);
  box-shadow: 0 10px 30px rgba(139, 0, 0, 0.5);
  transform: translateY(-5px);
}

.news-img {
  height: 180px;
  background: linear-gradient(135deg, #3d0000, #1a0000);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 40px;
  border-bottom: 2px solid var(--dark-red);
}

.news-content { padding: 22px; }

.news-date {
  font-size: 13px; color: var(--text-muted);
  margin-bottom: 8px;
}

.news-content h3 {
  font-size: 19px; margin-bottom: 10px; color: #fff;
}

.news-content p {
  color: var(--text-muted); font-size: 15px;
  margin-bottom: 15px;
}

.read-more {
  color: var(--accent); font-weight: 600;
  font-size: 15px; transition: color 0.3s;
}

.read-more:hover { color: #ff6b6b; }

/* ===== ШАГИ ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px; margin-bottom: 50px;
}

.step {
  background: linear-gradient(145deg, #1a0000, #0d0000);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 30px 22px; text-align: center;
  transition: all 0.3s;
}

.step:hover {
  border-color: var(--dark-red);
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(139, 0, 0, 0.5);
}

.step-num {
  width: 55px; height: 55px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--dark-red), var(--crimson));
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700;
  box-shadow: 0 0 22px rgba(139, 0, 0, 0.9);
}

.step h3 { color: #fff; font-size: 18px; margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: 15px; }

.download-actions {
  display: flex; gap: 20px;
  justify-content: center; flex-wrap: wrap;
}

/* ===== КАРТА САЙТА ===== */
.nav-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.nav-block {
  background: linear-gradient(145deg, #1a0000, #0d0000);
  border-left: 4px solid var(--dark-red);
  border-radius: 0 10px 10px 0;
  padding: 25px 22px;
  transition: all 0.3s;
}

.nav-block:hover {
  border-left-color: var(--accent);
  box-shadow: 0 8px 25px rgba(139, 0, 0, 0.5);
  transform: translateX(5px);
}

.nav-block h4 {
  color: #fff; font-size: 17px;
  margin-bottom: 15px;
  text-transform: uppercase; letter-spacing: 1px;
}

.nav-block ul { list-style: none; }
.nav-block ul li { margin-bottom: 10px; }

.nav-block ul a {
  color: var(--text-muted); font-size: 15px;
  transition: all 0.3s; display: inline-block;
}

.nav-block ul a:hover {
  color: var(--accent); transform: translateX(5px);
}

/* ===== ПРАВИЛА ===== */
.rules-list {
  max-width: 800px; margin: 0 auto;
  list-style: none; counter-reset: rule-counter;
}

.rules-list li {
  counter-increment: rule-counter;
  background: linear-gradient(145deg, #1a0000, #0d0000);
  border-left: 4px solid var(--dark-red);
  padding: 18px 20px 18px 60px;
  margin-bottom: 15px;
  border-radius: 0 8px 8px 0;
  position: relative; transition: all 0.3s;
}

.rules-list li:hover {
  border-left-color: var(--accent);
  background: linear-gradient(145deg, #2a0000, #1a0000);
  transform: translateX(5px);
}

.rules-list li::before {
  content: counter(rule-counter);
  position: absolute; left: 18px; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  background: var(--dark-red); color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}

/* ===== ДОНАТ ===== */
.donate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.donate-card {
  background: linear-gradient(145deg, #1a0000, #0d0000);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 35px 25px;
  text-align: center;
  transition: all 0.3s;
  position: relative; overflow: hidden;
}

.donate-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--dark-red), var(--accent));
}

.donate-card:hover {
  transform: translateY(-8px);
  border-color: var(--dark-red);
  box-shadow: 0 12px 35px rgba(139, 0, 0, 0.6);
}

.donate-card h3 {
  color: #fff; font-size: 20px; margin-bottom: 15px;
}

.donate-price {
  font-size: 38px; font-weight: 800;
  color: var(--accent); margin-bottom: 20px;
}

.donate-price span { font-size: 18px; color: var(--text-muted); }

.donate-card ul {
  list-style: none; margin-bottom: 25px;
  text-align: left;
}

.donate-card ul li {
  color: var(--text-muted); font-size: 15px;
  padding: 8px 0; border-bottom: 1px solid #2a0000;
}

.donate-card ul li:last-child { border-bottom: none; }

/* ===== ФУТЕР ===== */
footer {
  background: linear-gradient(180deg, #0d0000, #000000);
  border-top: 3px solid var(--dark-red);
  padding: 50px 0 25px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px; margin-bottom: 40px;
}

.footer-col h4 {
  color: #fff; font-size: 18px;
  margin-bottom: 20px;
  position: relative; padding-bottom: 10px;
}

.footer-col h4::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; width: 40px; height: 2px;
  background: var(--accent);
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }

.footer-col ul a {
  color: var(--text-muted);
  transition: color 0.3s; font-size: 15px;
}

.footer-col ul a:hover { color: var(--accent); }

.footer-col p {
  color: var(--text-muted);
  font-size: 14px; margin-bottom: 8px;
}

.footer-col p strong { color: #ddd; font-weight: 600; }

.footer-bottom {
  text-align: center; padding-top: 25px;
  border-top: 1px solid #2a0000;
  color: var(--text-muted); font-size: 14px;
}

.footer-bottom span { color: var(--accent); }

.legal {
  margin-top: 15px; font-size: 12.5px;
  color: #6a4040; line-height: 1.7;
  max-width: 900px;
  margin-left: auto; margin-right: auto;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 900px) {
  .header-inner { flex-direction: column; gap: 15px; }

  nav ul {
    gap: 14px; flex-wrap: wrap;
    justify-content: center;
  }

  .hero h1 { font-size: 34px; }
  .hero p { font-size: 17px; }
  .section-title { font-size: 28px; }
  .hero { padding: 80px 0; }
  section { padding: 50px 0; }
}

/* ===== ФОН С НАДПИСЬЮ CRMP ===== */
.bg-crmp {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-image: url('crmp-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.35; /* прозрачность картинки */
  pointer-events: none;
}

/* ЧЁРНО-КРАСНЫЙ ГРАДИЕНТ ПОВЕРХ КАРТИНКИ */
.bg-crmp::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at top, rgba(139, 0, 0, 0.75) 0%, rgba(40, 0, 0, 0.85) 40%, rgba(0, 0, 0, 0.95) 100%);
}

/* Также убедимся, что body прозрачный — фон задаёт .bg-crmp */
body {
  background: #000; /* запасной чёрный */
}