/* CHIMERA DM — фирменный огненный стиль */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-0: #06070a;
  --bg-1: #0e1014;
  --bg-2: #15171c;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f5;
  --text-dim: #9ea0a8;
  --text-mute: #6b6e76;
  --accent: #ffffff;
  --accent-2: #d4d4d8;
  --gradient: linear-gradient(135deg, #f5f5f5 0%, #e5e5e5 60%, #c0c0c0 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.12), transparent 70%);
}

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-0);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

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

/* ─── Header ─── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 14, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
}
.brand-logo {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  flex: 0 0 auto;
}
.brand-logo img,
.brand-logo picture { width: 100%; height: 100%; display: block; }
.brand-logo img {
  object-fit: contain;
  /* Исходный логотип серебристый на светлом фоне. Инвертируем — становится чёрный на тёмном фоне,
     далее mix-blend-mode: screen убирает чёрные пиксели, остаётся светлый рисунок. */
  filter: invert(1) brightness(1.2);
  mix-blend-mode: screen;
}

.nav { display: flex; gap: 28px; align-items: center; }
.nav a {
  font-size: 14px; font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s;
}
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--accent); }

.header-actions { display: flex; gap: 12px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.btn:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.15); }

.btn-primary {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.35);
}
.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.5);
}

.btn-ghost { background: transparent; border-color: transparent; color: var(--text-dim); }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 32px 60px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(255, 182, 72, 0.1), transparent 50%);
  z-index: 0;
}

/* Анимированный градиент-огонь снизу */
.hero::after {
  content: '';
  position: absolute;
  bottom: -200px; left: -100px; right: -100px;
  height: 400px;
  background: radial-gradient(ellipse at center bottom, rgba(255, 255, 255, 0.5), transparent 60%);
  filter: blur(40px);
  z-index: 0;
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.hero-content { position: relative; z-index: 1; max-width: 900px; }

.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--text-dim);
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto; margin-right: auto;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 80px;
  max-width: 800px;
  margin-left: auto; margin-right: auto;
}
.hero-stat {
  text-align: center;
}
.hero-stat-value {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.hero-stat-label {
  font-size: 12px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 8px;
}

/* ─── Sections ─── */
.section {
  padding: 100px 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-header { text-align: center; margin-bottom: 60px; }
.section-eyebrow {
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}
.section h2 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section h2 span { color: var(--accent); }
.section-desc {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── Modes (карточки режимов) ─── */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.mode-card {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}
.mode-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 0;
}
.mode-card:hover {
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.1);
}
.mode-card > * { position: relative; z-index: 1; }
.mode-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--gradient);
  display: grid; place-items: center;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
}
.mode-icon svg { width: 28px; height: 28px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mode-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.mode-card p { color: var(--text-dim); line-height: 1.6; font-size: 14.5px; }

/* ─── Features grid (фишки) ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.2s;
}
.feature:hover { border-color: rgba(255, 255, 255, 0.3); }
.feature-num {
  font-size: 32px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.feature h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.feature p { font-size: 13.5px; color: var(--text-dim); line-height: 1.5; }

/* ─── Top players ─── */
.tops-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.top-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.top-card h3 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.top-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.top-row:last-child { border-bottom: none; }
.top-rank {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
}
.top-rank.gold   { background: linear-gradient(135deg, #fcd34d, #d97706); color: #fff; }
.top-rank.silver { background: linear-gradient(135deg, #e5e7eb, #6b7280); color: #fff; }
.top-rank.bronze { background: linear-gradient(135deg, #fb923c, #c2410c); color: #fff; }
.top-name { flex: 1; font-weight: 500; font-size: 14px; }
.top-value { color: var(--accent); font-weight: 700; font-size: 14px; }

/* ─── News ─── */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.news-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s;
}
.news-card:hover { border-color: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }
.news-img {
  width: 100%; height: 180px;
  background: var(--gradient);
  background-size: cover; background-position: center;
}
.news-body { padding: 20px; }
.news-date { font-size: 12px; color: var(--text-mute); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.news-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── CTA ─── */
.cta {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  opacity: 0.5;
  z-index: 0;
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; margin-bottom: 16px; }
.cta p { color: var(--text-dim); font-size: 17px; margin-bottom: 32px; }

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 32px 32px;
  text-align: center;
  color: var(--text-mute);
  font-size: 13px;
}
.footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }

/* ─── Forum ─── */
.forum-container {
  max-width: 1200px;
  margin: 100px auto 60px;
  padding: 0 32px;
}
.forum-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}
.forum-header h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 4px;
}
.forum-header p { color: var(--text-dim); font-size: 15px; }

.cat-list { display: flex; flex-direction: column; gap: 12px; }
.cat-item {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  gap: 20px;
  align-items: center;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.cat-item:hover { border-color: rgba(255, 255, 255, 0.3); transform: translateX(4px); }
.cat-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--gradient);
  display: grid; place-items: center;
}
.cat-icon svg { width: 24px; height: 24px; stroke: #fff; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cat-info h3 { font-size: 17px; font-weight: 600; margin-bottom: 2px; }
.cat-info p  { font-size: 13px; color: var(--text-dim); }
.cat-meta { font-size: 13px; color: var(--text-mute); text-align: right; }
.cat-meta strong { color: var(--text); display: block; font-weight: 600; }

/* Topics list */
.topic-list { display: flex; flex-direction: column; gap: 8px; }
.topic-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 20px;
  align-items: center;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 20px;
  transition: all 0.15s;
  text-decoration: none; color: inherit;
}
.topic-item:hover { border-color: rgba(255, 255, 255, 0.3); }
.topic-title { font-weight: 500; font-size: 15px; }
.topic-pinned { color: var(--accent); font-size: 11px; text-transform: uppercase; font-weight: 700; letter-spacing: 0.05em; margin-bottom: 2px; }
.topic-meta { font-size: 12px; color: var(--text-mute); margin-top: 4px; }
.topic-stat { text-align: right; font-size: 13px; color: var(--text-dim); min-width: 70px; }
.topic-stat strong { display: block; color: var(--text); font-size: 16px; font-weight: 700; }

/* Posts */
.post {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 200px 1fr;
  margin-bottom: 16px;
}
.post-author {
  background: var(--bg-2);
  padding: 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.post-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--gradient);
  display: grid; place-items: center;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 12px;
}
.post-username { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.post-author-meta { font-size: 11.5px; color: var(--text-mute); margin-top: 8px; }
.post-author-meta div { margin-top: 2px; }
.post-vip {
  display: inline-block;
  padding: 2px 8px;
  background: var(--gradient);
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 4px;
}
.post-body { padding: 24px; }
.post-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-mute);
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.post-content { font-size: 14.5px; line-height: 1.7; white-space: pre-wrap; word-wrap: break-word; }

/* Form */
.form-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}
.form-card h2 { margin-bottom: 24px; }
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 8px;
  font-weight: 600;
}
.input,
input[type=text], input[type=password], input[type=email], textarea, select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.input:focus, input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
}
textarea { min-height: 120px; resize: vertical; }

/* Login/Register box */
.auth-box {
  max-width: 420px;
  margin: 120px auto 60px;
  padding: 40px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.auth-box h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.auth-box p { color: var(--text-dim); font-size: 14px; margin-bottom: 24px; }

/* Spinner */
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast */
#toast {
  position: fixed; bottom: 24px; right: 24px;
  padding: 12px 18px; border-radius: 8px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-size: 14px;
  z-index: 1000;
  display: none;
}
#toast.success { border-color: rgba(34, 197, 94, 0.4); }
#toast.error   { border-color: rgba(239, 68, 68, 0.4); }

/* ────────── РЕСПОНСИВ ────────── */

/* Бургер для мобильного nav */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px; height: 40px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle:hover { background: rgba(255,255,255,0.05); }
.nav-mobile {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: 16px;
  z-index: 99;
}
.nav-mobile.open { display: flex; flex-direction: column; gap: 12px; }
.nav-mobile a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 15px;
}
.nav-mobile a:hover { background: rgba(255,255,255,0.05); color: var(--text); }

/* Планшет (≤ 1024px) */
@media (max-width: 1024px) {
  .section { padding: 60px 24px; }
  .hero { padding: 100px 24px 40px; }
  .hero-stats { gap: 24px; }
  .modes-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .tops-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Большой телефон / малый планшет (≤ 768px) */
@media (max-width: 768px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header { padding: 12px 16px; }

  .hero { padding: 100px 16px 40px; min-height: auto; }
  .hero h1 { font-size: 48px; line-height: 1; }
  .hero p { font-size: 15px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 50px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { padding: 10px 16px; font-size: 13px; }

  .section { padding: 50px 16px; }
  .section-header { margin-bottom: 32px; }
  .section h2 { font-size: 30px; }
  .section-desc { font-size: 14px; }

  .modes-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .tops-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }

  .cta { padding: 50px 24px; }
  .cta h2 { font-size: 28px; }

  /* Forum */
  .forum-container { margin-top: 80px; padding: 0 16px; }
  .forum-header { flex-direction: column; align-items: stretch; gap: 12px; }
  .forum-header h1 { font-size: 24px; }

  .post { grid-template-columns: 1fr; }
  .post-author {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
  }
  .post-avatar { width: 48px; height: 48px; font-size: 20px; margin: 0; }
  .post-username { margin-bottom: 0; flex: 1; }
  .post-author-meta { margin-top: 0; }
  .post-body { padding: 16px; }

  .cat-item { grid-template-columns: 48px 1fr auto; gap: 12px; padding: 14px; }
  .cat-icon { width: 40px; height: 40px; }
  .cat-icon svg { width: 18px; height: 18px; }
  .cat-info h3 { font-size: 15px; }
  .cat-info p { font-size: 12px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .cat-meta:nth-of-type(2) { display: none; }
  .cat-meta { font-size: 11px; }

  .topic-item { grid-template-columns: 1fr auto; gap: 8px; padding: 12px; }
  .topic-stat:first-of-type { display: none; }
  .topic-title { font-size: 14px; }

  /* Auth */
  .auth-box { margin: 80px 16px 40px; padding: 24px; }
  .auth-box h1 { font-size: 22px; }

  /* Form */
  .form-card { padding: 20px; }
}

/* Телефон (≤ 480px) */
@media (max-width: 480px) {
  .hero h1 { font-size: 36px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
  .hero-stat-value { font-size: 24px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .section { padding: 40px 12px; }
  .section h2 { font-size: 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-num { font-size: 26px; }

  .footer { padding: 32px 16px 20px; }
  .footer-links { gap: 14px; font-size: 12.5px; }

  .top-row { padding: 6px 0; }
  .top-name { font-size: 13px; }
  .top-value { font-size: 13px; }

  .cat-item { grid-template-columns: 36px 1fr; }
  .cat-icon { width: 36px; height: 36px; }
  .cat-meta:not(:nth-of-type(0)) { display: none; }

  .forum-container { margin-top: 70px; }
  .forum-header h1 { font-size: 20px; }
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--bg-2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--border); }

/* ═══════════════════════════════════════════════════════════════════════
   CHIMERA DM — главная: монохромная палитра (белый/чёрный/серый)
   ═══════════════════════════════════════════════════════════════════════ */
:root {
  --cd-bg:       #06070a;
  --cd-bg-2:     #0e1014;
  --cd-line:     rgba(255, 255, 255, 0.08);
  --cd-line-2:   rgba(255, 255, 255, 0.18);
  --cd-text:     #f4f4f5;
  --cd-muted:    #9ea0a8;
  --cd-muted-2:  #6b6e76;
  --cd-pink:     #ffffff;   /* "акцент" теперь — белый */
  --cd-pink-2:   #d4d4d8;   /* hover-вариант */
}

.cd-pink { color: var(--cd-text); }
.cd-eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--cd-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.btn.btn-primary {
  background: #ffffff;
  color: #000;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.18);
}
.btn.btn-primary:hover { background: #f4f4f5; box-shadow: 0 0 26px rgba(255, 255, 255, 0.3); transform: translateY(-1px); }

/* ─── HERO двусторонний ─────────────────────────────────────────────── */
.cd-hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 24px 120px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, 0.10), transparent 55%),
    radial-gradient(ellipse at 15% 80%, rgba(255, 255, 255, 0.05), transparent 50%),
    #06070a;
  overflow: hidden;
}
.cd-hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.cd-hero-side {
  position: absolute;
  top: 0; bottom: 0;
  height: 100%;
  width: auto;
  max-width: 50%;
  object-fit: cover;
  filter: contrast(1.05) brightness(0.45) saturate(0.7);
  mix-blend-mode: screen;
  opacity: 0.85;
}
.cd-hero-left {
  left: 0;
  -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent 92%);
          mask-image: linear-gradient(90deg, #000 30%, transparent 92%);
  filter: grayscale(1) contrast(1.15) brightness(0.55);
}
.cd-hero-right {
  right: 0;
  -webkit-mask-image: linear-gradient(270deg, #000 30%, transparent 92%);
          mask-image: linear-gradient(270deg, #000 30%, transparent 92%);
  filter: grayscale(1) contrast(1.15) brightness(0.55);
}

.cd-hero-center { position: relative; z-index: 2; text-align: center; max-width: 760px; }

.cd-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #d4d4d8; font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  margin-bottom: 26px;
}
.cd-tag-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px rgba(255,255,255,0.7); animation: cd-pulse 1.5s ease-in-out infinite; }
@keyframes cd-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.7); } }

.cd-hero-title { font-size: clamp(28px, 4vw, 48px); font-weight: 800; line-height: 1.15; margin-bottom: 18px; letter-spacing: -0.01em; }
.cd-hero-sub { font-size: clamp(15px, 1.6vw, 18px); line-height: 1.65; color: #c9c9d6; margin-bottom: 36px; max-width: 600px; margin-left: auto; margin-right: auto; }

.cd-hero-cta-label { font-size: 18px; font-weight: 700; color: #fff; position: relative; display: inline-block; padding-bottom: 8px; margin-bottom: 22px; }
.cd-hero-cta-label::after { content: ''; position: absolute; bottom: 0; left: 25%; width: 50%; height: 2px; background: linear-gradient(90deg, transparent, #fff, transparent); }

.cd-hero-cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 50px; }

.cd-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 6px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.02em;
  background: #ffffff;
  color: #000; border: 1px solid transparent; cursor: pointer;
  transition: 0.2s ease;
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.14);
}
.cd-pill:hover { transform: translateY(-1px); background: #f4f4f5; box-shadow: 0 14px 32px rgba(255, 255, 255, 0.22); }
.cd-pill-pink { background: #fff; color: #000; }
.cd-pill-pink:hover { background: #f4f4f5; }
.cd-pill-ghost { background: rgba(255,255,255,0.05); color: #fff; border-color: rgba(255,255,255,0.22); box-shadow: none; }
.cd-pill-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); box-shadow: 0 6px 18px rgba(0,0,0,0.3); }
.cd-pill-lg { padding: 16px 28px; font-size: 15px; }

.cd-hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 600px; margin: 0 auto; }
.cd-mini-stat { padding: 14px 10px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); text-align: center; backdrop-filter: blur(4px); }
.cd-mini-stat span { display: block; font-size: 22px; font-weight: 800; color: #fff; }
.cd-mini-stat small { font-size: 11px; color: #a8a8b8; letter-spacing: 0.06em; text-transform: uppercase; }

.cd-scroll-hint { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; color: #a8a8b8; font-size: 13px; z-index: 3; }
.cd-mouse { width: 22px; height: 36px; border: 2px solid #a8a8b8; border-radius: 12px; position: relative; }
.cd-mouse-dot { position: absolute; top: 6px; left: 50%; width: 4px; height: 8px; background: #fff; border-radius: 2px; transform: translateX(-50%); animation: cd-mouse-bounce 1.6s ease-in-out infinite; }
@keyframes cd-mouse-bounce { 0% { transform: translate(-50%, 0); opacity: 1; } 50% { transform: translate(-50%, 8px); opacity: 0.4; } 100% { transform: translate(-50%, 0); opacity: 1; } }

/* ─── Слайдер ───────────────────────────────────────────────────────── */
.cd-slider { position: relative; padding: 70px 24px 90px; background: #06070a; overflow: hidden; }
.cd-slider-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(255,255,255,0.10), transparent 70%); }
.cd-slider-track { position: relative; max-width: 1100px; margin: 0 auto; height: 580px; }
.cd-slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity 0.6s ease, transform 0.6s ease; pointer-events: none; display: flex; flex-direction: column; }
.cd-slide.active { opacity: 1; transform: scale(1); pointer-events: auto; }
.cd-slide-img { flex: 1; border-radius: 18px; overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
.cd-slide-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd-slide-text { margin-top: -40px; position: relative; z-index: 2; padding: 0 24px; text-align: left; max-width: 760px; }
.cd-slide-text h3 { font-size: clamp(22px, 2.6vw, 32px); font-weight: 900; letter-spacing: 0.03em; margin-bottom: 12px; color: #fff; text-shadow: 0 4px 24px rgba(0,0,0,0.6); }
.cd-slide-text p { font-size: 15px; line-height: 1.7; color: #c9c9d6; max-width: 700px; }

.cd-slider-arrow { position: absolute; top: calc(50% - 35px); z-index: 5; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.18); color: #fff; cursor: pointer; transition: 0.2s ease; backdrop-filter: blur(8px); }
.cd-slider-arrow:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.45); transform: scale(1.05); }
.cd-slider-prev { left: 24px; }
.cd-slider-next { right: 24px; }

.cd-slider-dots { display: flex; gap: 10px; justify-content: center; margin-top: 28px; position: relative; z-index: 4; }
.cd-slider-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.18); cursor: pointer; transition: 0.2s ease; padding: 0; }
.cd-slider-dots button.active { background: #fff; box-shadow: 0 0 10px rgba(255,255,255,0.5); transform: scale(1.25); }

/* ─── Section header ────────────────────────────────────────────────── */
.cd-section { padding: 80px 24px; max-width: 1280px; margin: 0 auto; position: relative; }
.cd-section-head { text-align: center; margin-bottom: 50px; }
.cd-section-head h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 900; letter-spacing: 0.02em; margin-bottom: 12px; color: #fff; }
.cd-section-head p { color: #a8a8b8; max-width: 600px; margin: 0 auto; font-size: 15px; line-height: 1.65; }

/* ─── Семьи / Фракции ────────────────────────────────────────────────── */
.cd-duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cd-duo-card { position: relative; border-radius: 22px; overflow: hidden; background: #0e1014; border: 1px solid rgba(255,255,255,0.07); cursor: pointer; transition: 0.3s ease; }
.cd-duo-card:hover { border-color: rgba(255,255,255,0.35); transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0,0,0,0.6); }
.cd-duo-img { height: 320px; overflow: hidden; position: relative; }
.cd-duo-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, #0e1014 95%); }
.cd-duo-img img { filter: grayscale(0.8) contrast(1.05); }
.cd-duo-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s ease; }
.cd-duo-card:hover .cd-duo-img img { transform: scale(1.06); }
.cd-duo-info { padding: 24px 26px 26px; }
.cd-duo-info h3 { font-size: 22px; font-weight: 900; letter-spacing: 0.05em; margin-bottom: 10px; color: #fff; }
.cd-duo-info p { color: #a8a8b8; font-size: 14px; line-height: 1.6; margin-bottom: 14px; }
.cd-duo-cta { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; font-size: 14px; }

/* ─── Машины ─────────────────────────────────────────────────────────── */
.cd-cars-section { position: relative; padding: 0; max-width: none; background: #06070a; overflow: hidden; }
.cd-cars-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.15; filter: blur(8px) grayscale(1); }
.cd-cars-overlay { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; padding: 90px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.cd-cars-text h2 { font-size: clamp(30px, 4vw, 50px); font-weight: 900; letter-spacing: 0.02em; margin-bottom: 16px; color: #fff; }
.cd-cars-text p { color: #c9c9d6; font-size: 15px; line-height: 1.7; margin-bottom: 26px; max-width: 520px; }
.cd-cars-feats { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0 0 32px; padding: 0; }
.cd-cars-feats li { padding: 12px 14px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; display: flex; flex-direction: column; }
.cd-cars-feats b { color: #fff; font-size: 18px; font-weight: 800; }
.cd-cars-feats span { color: #9ea0a8; font-size: 12px; letter-spacing: 0.04em; }
.cd-cars-photo { border-radius: 18px; overflow: hidden; box-shadow: 0 28px 70px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.1); transform: rotate(-1deg); transition: 0.4s ease; }
.cd-cars-photo img { filter: grayscale(0.85) contrast(1.05); }
.cd-cars-photo:hover { transform: rotate(0); }
.cd-cars-photo img { width: 100%; height: auto; display: block; }

/* ─── Ночной город ───────────────────────────────────────────────────── */
.cd-night-section { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; max-width: 1280px; margin: 0 auto; padding: 80px 24px; }
.cd-night-photo { border-radius: 18px; overflow: hidden; position: relative; box-shadow: 0 28px 70px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08); }
.cd-night-photo img { width: 100%; height: auto; display: block; filter: grayscale(0.85) contrast(1.05); }
.cd-night-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.04), transparent 50%); pointer-events: none; }
.cd-night-text h2 { font-size: clamp(26px, 3.4vw, 42px); font-weight: 900; letter-spacing: 0.02em; margin-bottom: 14px; color: #fff; }
.cd-night-text p { color: #c9c9d6; font-size: 15px; line-height: 1.7; }

/* ─── Галерея атмосферы (мозаика) ────────────────────────────────────── */
.cd-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 200px;
  gap: 12px;
}
.cd-gal {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.06);
  background: #0e1014;
}
.cd-gal::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.85));
  pointer-events: none;
}
.cd-gal img,
.cd-gal picture { width: 100%; height: 100%; display: block; }
.cd-gal img {
  object-fit: cover;
  filter: grayscale(0.7) contrast(1.05);
  transition: 0.45s ease;
}
.cd-gal:hover img { filter: grayscale(0); transform: scale(1.04); }
.cd-gal-cap {
  position: absolute; left: 14px; bottom: 12px; right: 14px;
  z-index: 2;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}
.cd-gal-tall { grid-row: span 2; }
.cd-gal-wide { grid-column: span 2; }

@media (max-width: 980px) {
  .cd-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cd-gal-wide { grid-column: span 2; }
  .cd-gal-tall { grid-row: span 1; }
}
@media (max-width: 560px) {
  .cd-gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .cd-gal-wide, .cd-gal-tall { grid-column: span 1; grid-row: span 1; }
}

/* ─── Посты ──────────────────────────────────────────────────────────── */
.cd-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 18px;
}
.cd-post {
  background: #0e1014;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  overflow: hidden;
  transition: 0.25s ease;
}
.cd-post:hover { border-color: rgba(255,255,255,0.25); transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,0.5); }
.cd-post-img { height: 220px; overflow: hidden; }
.cd-post-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.5) contrast(1.05); transition: 0.4s ease; }
.cd-post:hover .cd-post-img img { filter: grayscale(0); transform: scale(1.04); }
.cd-post-body { padding: 18px 20px 20px; }
.cd-post-meta {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
  font-size: 11px; letter-spacing: 0.06em; color: var(--cd-muted);
}
.cd-post-cat { padding: 4px 9px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 999px; color: #fff; font-weight: 700; text-transform: uppercase; }
.cd-post h3 { font-size: 17px; font-weight: 800; letter-spacing: 0.02em; margin: 0 0 8px; color: #fff; }
.cd-post p { font-size: 14px; line-height: 1.55; color: var(--cd-muted); margin: 0 0 12px; }
.cd-post-tags { font-size: 12px; color: rgba(255,255,255,0.4); }

/* ─── Заработки ──────────────────────────────────────────────────────── */
.cd-money-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.cd-money-hero {
  grid-column: span 3;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 0;
  background: linear-gradient(180deg, #0e1014, #0a0b0f);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px;
  overflow: hidden;
  padding: 0;
}
.cd-money-hero .cd-money-img { height: 100%; min-height: 320px; overflow: hidden; }
.cd-money-hero .cd-money-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.5) contrast(1.1); }
.cd-money-hero .cd-money-body { padding: 30px 32px; display: flex; flex-direction: column; justify-content: center; }
.cd-money-tag {
  display: inline-block;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  margin-bottom: 12px; align-self: flex-start;
}
.cd-money-hero h3 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; letter-spacing: 0.03em; margin: 0 0 12px; color: #fff; }
.cd-money-hero p { color: var(--cd-text); opacity: 0.85; line-height: 1.65; margin: 0 0 18px; }
.cd-money-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.cd-money-steps li {
  padding: 8px 12px; border-radius: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  font-size: 13px; color: var(--cd-muted);
}
.cd-money-card {
  padding: 22px 24px;
  background: #0e1014;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  transition: 0.25s ease;
}
.cd-money-card:hover { border-color: rgba(255,255,255,0.25); transform: translateY(-2px); }
.cd-money-card h4 { font-size: 16px; font-weight: 800; letter-spacing: 0.04em; margin: 0 0 8px; color: #fff; text-transform: uppercase; }
.cd-money-card p { font-size: 14px; line-height: 1.55; color: var(--cd-muted); margin: 0; }

/* ─── Ищем медиа ─────────────────────────────────────────────────────── */
.cd-recruit {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  min-height: 380px;
  display: grid; align-items: center;
}
.cd-recruit-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: grayscale(1) brightness(0.35) blur(2px);
  z-index: 0;
}
.cd-recruit-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.85) 30%, rgba(0,0,0,0.5) 100%);
  z-index: 1;
}
.cd-recruit-content {
  position: relative; z-index: 2;
  padding: 44px 40px;
  max-width: 720px;
}
.cd-recruit h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 900; letter-spacing: 0.02em; margin: 0 0 14px; color: #fff; }
.cd-recruit p { color: #c9c9d6; font-size: 16px; line-height: 1.65; margin: 0 0 22px; max-width: 580px; }
.cd-recruit-list {
  list-style: none; padding: 0; margin: 0 0 26px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  max-width: 580px;
}
.cd-recruit-list li {
  padding: 12px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  display: flex; flex-direction: column; gap: 2px;
}
.cd-recruit-list b { color: #fff; font-size: 14px; font-weight: 800; letter-spacing: 0.02em; }
.cd-recruit-list span { color: var(--cd-muted); font-size: 12px; }
.cd-recruit-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 980px) {
  .cd-money-grid { grid-template-columns: repeat(2, 1fr); }
  .cd-money-hero { grid-column: span 2; grid-template-columns: 1fr; }
  .cd-money-hero .cd-money-img { min-height: 220px; }
  .cd-recruit-list { grid-template-columns: 1fr; }
  .cd-recruit-content { padding: 30px 24px; }
}
@media (max-width: 560px) {
  .cd-money-grid { grid-template-columns: 1fr; }
  .cd-money-hero { grid-column: span 1; }
  .cd-money-steps { grid-template-columns: 1fr; }
}

/* ─── Final CTA ──────────────────────────────────────────────────────── */
.cd-cta { position: relative; margin: 60px 0 0; padding: 100px 24px; overflow: hidden; }
.cd-cta-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(2px) brightness(0.3) grayscale(1); }
.cd-cta-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.12), transparent 70%), linear-gradient(180deg, rgba(6,7,10,0.4), rgba(6,7,10,0.9)); }
.cd-cta-content { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; text-align: center; }
.cd-cta-content h2 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 900; margin-bottom: 18px; color: #fff; }
.cd-cta-content p { color: #c9c9d6; font-size: 16px; line-height: 1.6; margin-bottom: 32px; }
.cd-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ─── Адаптив ────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .cd-duo-grid, .cd-cars-overlay, .cd-night-section { grid-template-columns: 1fr; }
  .cd-hero-side { display: none; }
  .cd-cars-photo { transform: none; }
  .cd-slider-track { height: 520px; }
}
@media (max-width: 600px) {
  .cd-hero { padding: 110px 16px 90px; }
  .cd-hero-cta-row { flex-direction: column; }
  .cd-hero-stats { grid-template-columns: repeat(2, 1fr); }
  .cd-slider-track { height: 460px; }
  .cd-slider-arrow { width: 44px; height: 44px; }
  .cd-slider-prev { left: 12px; }
  .cd-slider-next { right: 12px; }
  .cd-cta { padding: 70px 16px; }
  .cd-cars-feats { grid-template-columns: 1fr; }
}
