/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #e63946;
  --red-dark: #c1121f;
  --red-glow: rgba(230, 57, 70, 0.4);
  --bg: #0a0a0c;
  --bg2: #111114;
  --bg3: #18181d;
  --border: rgba(255,255,255,0.07);
  --text: #f0f0f0;
  --text-muted: #888;
  --accent: #e63946;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

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

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,12,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 32px;
  padding: 0 24px; height: 64px;
}
.nav-logo {
  font-size: 1.3rem; font-weight: 800; letter-spacing: -0.5px;
  white-space: nowrap;
}
.logo-r { color: var(--red); }
.logo-dlc { color: var(--text-muted); font-weight: 400; font-size: 0.9em; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a {
  color: var(--text-muted); font-size: 0.92rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; gap: 12px; }
.btn-nav {
  background: var(--red); color: #fff;
  padding: 8px 18px; border-radius: 8px;
  font-size: 0.88rem; font-weight: 600;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}
.btn-nav:hover { background: var(--red-dark); transform: translateY(-1px); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 100px 24px 60px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 40%, transparent 100%);
}
.hero-glow { display: none; }
.hero-content {
  position: relative; z-index: 1;
  text-align: center; max-width: 800px;
}
.hero-badge {
  display: inline-block;
  background: rgba(230,57,70,0.15); border: 1px solid rgba(230,57,70,0.35);
  color: var(--red); padding: 6px 16px; border-radius: 100px;
  font-size: 0.85rem; font-weight: 600; margin-bottom: 28px;
  animation: pulse-border 2s ease-in-out infinite;
}
@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230,57,70,0.3); }
  50% { box-shadow: 0 0 0 8px rgba(230,57,70,0); }
}
.hero-title {
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 900; line-height: 0.95;
  letter-spacing: -3px; margin-bottom: 24px;
}
.title-resolver { display: block; color: #fff; }
.title-dlc {
  display: block;
  background: linear-gradient(135deg, var(--red), #ff6b6b);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  color: var(--text-muted); font-size: 1.1rem; line-height: 1.7;
  margin-bottom: 28px; max-width: 600px; margin-left: auto; margin-right: auto;
}
.hero-versions {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-bottom: 36px;
}
.ver-badge {
  background: var(--bg3); border: 1px solid var(--border);
  padding: 4px 12px; border-radius: 6px;
  font-size: 0.82rem; color: var(--text-muted); font-weight: 500;
}
.ver-badge.active {
  background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3);
  color: #fff;
}
.hero-buttons {
  display: flex; gap: 16px; justify-content: center; margin-bottom: 48px;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--red); color: #fff;
  padding: 14px 32px; border-radius: 10px;
  font-size: 1rem; font-weight: 700;
  transition: all 0.2s;
  box-shadow: 0 0 30px var(--red-glow);
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 4px 40px var(--red-glow); }
.btn-secondary {
  background: var(--bg3); color: var(--text);
  border: 1px solid var(--border);
  padding: 14px 32px; border-radius: 10px;
  font-size: 1rem; font-weight: 600;
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-2px); }
.hero-stats {
  display: flex; align-items: center; gap: 24px; justify-content: center;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-size: 1.8rem; font-weight: 800; color: #fff; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.stat-sep { width: 1px; height: 40px; background: var(--border); }

/* ===== SECTIONS COMMON ===== */
.features, .versions, .pricing, .faq { padding: 100px 24px; }
.section-container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block;
  background: rgba(230,57,70,0.12); border: 1px solid rgba(230,57,70,0.3);
  color: var(--red); padding: 4px 14px; border-radius: 100px;
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 12px;
  letter-spacing: -1px;
}
.text-accent { color: var(--red); }
.section-header p { color: var(--text-muted); font-size: 1.05rem; }

/* ===== FEATURE TABS ===== */
.feat-tabs {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 40px;
}
.feat-tab {
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text-muted); padding: 8px 20px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 500; cursor: pointer;
  transition: all 0.2s;
}
.feat-tab:hover { color: var(--text); border-color: rgba(255,255,255,0.15); }
.feat-tab.active {
  background: rgba(230,57,70,0.15); border-color: var(--red);
  color: #fff;
}

/* ===== FEATURE GRID ===== */
.feat-grid {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.feat-grid.active { display: grid; }
.feat-card {
  background: var(--bg2); border: 1px solid var(--border);
  padding: 24px; border-radius: 14px;
  transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
}
.feat-card:hover {
  border-color: rgba(230,57,70,0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(230,57,70,0.1);
}
.feat-card-wide { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .feat-card-wide { grid-column: span 2; }
}
.feat-icon { font-size: 2rem; margin-bottom: 12px; }
.feat-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feat-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.55; margin-bottom: 14px; }
.feat-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.feat-tags span {
  background: rgba(230,57,70,0.1); color: var(--red);
  border: 1px solid rgba(230,57,70,0.25);
  padding: 2px 10px; border-radius: 100px; font-size: 0.75rem; font-weight: 600;
}

/* ===== VERSIONS ===== */
.versions { background: var(--bg2); }
.versions-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.ver-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px 20px; text-align: center;
  transition: all 0.25s;
  position: relative;
}
.ver-card:hover { border-color: rgba(255,255,255,0.15); transform: translateY(-3px); }
.ver-card-featured {
  background: rgba(230,57,70,0.06);
  border-color: rgba(230,57,70,0.4);
}
.ver-badge-top {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: #fff;
  padding: 3px 12px; border-radius: 100px; font-size: 0.75rem; font-weight: 700;
  white-space: nowrap;
}
.ver-num { font-size: 1.8rem; font-weight: 800; margin-bottom: 4px; }
.ver-label { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 10px; }
.ver-servers { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 14px; min-height: 36px; }
.ver-status { display: inline-block; padding: 4px 12px; border-radius: 100px; font-size: 0.78rem; font-weight: 600; }
.ver-status.active { background: rgba(34,197,94,0.15); color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }

/* ===== PRICING ===== */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px; max-width: 900px; margin: 0 auto 40px;
}
.price-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 18px; padding: 36px 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: all 0.25s; position: relative;
}
.price-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.15); }
.price-card-featured {
  background: rgba(230,57,70,0.05);
  border-color: rgba(230,57,70,0.5);
  box-shadow: 0 0 40px rgba(230,57,70,0.1);
}
.price-badge {
  position: absolute; top: -13px; right: 24px;
  background: var(--red); color: #fff;
  padding: 4px 14px; border-radius: 100px; font-size: 0.78rem; font-weight: 700;
}
.price-title { font-size: 1.2rem; font-weight: 700; }
.price-amount {
  font-size: 2.8rem; font-weight: 900; letter-spacing: -2px;
  line-height: 1;
}
.price-amount span { font-size: 1.5rem; font-weight: 500; color: var(--text-muted); }
.price-save { color: #22c55e; font-size: 0.85rem; font-weight: 600; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.price-features li { color: var(--text-muted); font-size: 0.9rem; }
.btn-price {
  display: block; text-align: center;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); padding: 12px;
  border-radius: 10px; font-weight: 600; font-size: 0.95rem;
  transition: all 0.2s; margin-top: auto;
}
.btn-price:hover { border-color: rgba(255,255,255,0.25); background: var(--bg); }
.btn-price-accent {
  background: var(--red); border-color: var(--red); color: #fff;
  box-shadow: 0 4px 20px var(--red-glow);
}
.btn-price-accent:hover { background: var(--red-dark); border-color: var(--red-dark); }
.pricing-note {
  text-align: center; color: var(--text-muted); font-size: 0.92rem;
  background: var(--bg3); border: 1px solid var(--border);
  padding: 16px 24px; border-radius: 12px; max-width: 600px; margin: 0 auto;
}
.pricing-note a { color: var(--red); }

/* ===== FAQ ===== */
.faq { background: var(--bg2); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
}
.faq-q {
  padding: 18px 24px; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  transition: color 0.2s;
}
.faq-q::after { content: '+'; color: var(--red); font-size: 1.3rem; font-weight: 300; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a {
  display: none; padding: 0 24px 18px;
  color: var(--text-muted); font-size: 0.92rem; line-height: 1.65;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.faq-item.open .faq-a { display: block; }
.faq-a a { color: var(--red); }

/* ===== FOOTER ===== */
.footer { border-top: 1px solid var(--border); padding: 40px 24px; }
.footer-container {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; flex-wrap: wrap; gap: 24px;
  justify-content: space-between;
}
.footer-logo { font-size: 1.2rem; font-weight: 800; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--text-muted); font-size: 0.82rem; }

/* ===== AUTH MODAL ===== */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 18px; padding: 36px; width: 100%; max-width: 420px;
  position: relative; animation: slideUp 0.25s ease;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text-muted); width: 32px; height: 32px;
  border-radius: 8px; cursor: pointer; font-size: 0.9rem;
  transition: all 0.2s;
}
.modal-close:hover { color: var(--text); }
.modal-tabs { display: flex; gap: 8px; margin-bottom: 24px; }
.modal-tab {
  flex: 1; padding: 10px; border-radius: 8px;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer; font-weight: 600;
  transition: all 0.2s;
}
.modal-tab.active {
  background: rgba(230,57,70,0.15); border-color: var(--red); color: #fff;
}
.modal-input {
  width: 100%; background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); padding: 12px 16px; border-radius: 10px;
  font-size: 0.95rem; margin-bottom: 12px; outline: none;
  transition: border-color 0.2s;
}
.modal-input:focus { border-color: rgba(230,57,70,0.5); }
.modal-error { color: #ff6b6b; font-size: 0.85rem; margin-bottom: 12px; min-height: 20px; }
.btn-modal {
  width: 100%; background: var(--red); color: #fff;
  border: none; padding: 13px; border-radius: 10px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: background 0.2s;
}
.btn-modal:hover { background: var(--red-dark); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-title { letter-spacing: -2px; }
  .hero-stats { gap: 16px; }
  .footer-container { flex-direction: column; text-align: center; }
  .feat-card-wide { grid-column: 1; }
}

/* ===== VERSION SELECTOR ===== */
.ver-selector {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 32px;
}
.ver-sel-btn {
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text-muted); padding: 10px 22px; border-radius: 10px;
  font-size: 0.95rem; font-weight: 700; cursor: pointer;
  transition: all 0.2s; letter-spacing: 0.3px;
}
.ver-sel-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }
.ver-sel-btn.active {
  background: rgba(230,57,70,0.18); border-color: var(--red);
  color: #fff; box-shadow: 0 0 18px rgba(230,57,70,0.2);
}

/* ===== VERSION CONTENT ===== */
.ver-content { animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.ver-content-header {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-bottom: 24px;
  background: var(--bg2); border: 1px solid var(--border);
  padding: 14px 20px; border-radius: 12px;
}
.ver-content-badge {
  background: rgba(230,57,70,0.15); border: 1px solid rgba(230,57,70,0.35);
  color: var(--red); padding: 4px 14px; border-radius: 100px;
  font-size: 0.82rem; font-weight: 700; white-space: nowrap;
}
.ver-content-badge-hot {
  background: rgba(230,57,70,0.25); border-color: var(--red);
  animation: pulse-border 2s ease-in-out infinite;
}
.ver-content-info { color: var(--text-muted); font-size: 0.88rem; }

/* ===== PRICING 4 CARDS ===== */
.pricing-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  max-width: 1000px !important;
}

/* ===== SOCIALS BLOCK ===== */
.socials-block {
  margin-top: 40px;
  text-align: center;
}
.socials-title {
  font-size: 1rem; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 20px;
}
.socials-row {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.social-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 12px;
  font-weight: 600; font-size: 0.92rem;
  border: 1px solid transparent;
  transition: all 0.22s; text-decoration: none;
  min-width: 220px; justify-content: flex-start;
}
.social-btn svg { flex-shrink: 0; }
.social-handle {
  margin-left: auto; font-size: 0.78rem;
  font-weight: 500; opacity: 0.75;
}
.social-tg {
  background: rgba(41,182,246,0.1);
  border-color: rgba(41,182,246,0.3);
  color: #29b6f6;
}
.social-tg:hover {
  background: rgba(41,182,246,0.2);
  border-color: rgba(41,182,246,0.6);
  transform: translateY(-2px);
}
.social-dc {
  background: rgba(114,137,218,0.1);
  border-color: rgba(114,137,218,0.3);
  color: #7289da;
}
.social-dc:hover {
  background: rgba(114,137,218,0.2);
  border-color: rgba(114,137,218,0.6);
  transform: translateY(-2px);
}
.social-pay {
  background: rgba(230,57,70,0.1);
  border-color: rgba(230,57,70,0.3);
  color: var(--red);
}
.social-pay:hover {
  background: rgba(230,57,70,0.2);
  border-color: rgba(230,57,70,0.6);
  transform: translateY(-2px);
}

/* ===== SOCIAL PILLS (пульсирующие) ===== */
.socials-block { margin-top: 44px; text-align: center; }
.socials-title {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 2px; color: var(--text-muted); margin-bottom: 18px;
}
.socials-row {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

.social-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px 8px 10px;
  border-radius: 100px;
  font-size: 0.85rem; font-weight: 600;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.social-pill:hover { transform: translateY(-2px); }

.social-pill-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  position: relative;
}
.social-pill-dot::after {
  content: ''; position: absolute; inset: -4px;
  border-radius: 50%; opacity: 0.5;
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50%       { transform: scale(1.8); opacity: 0; }
}

.social-pill-handle {
  font-size: 0.78rem; opacity: 0.7; font-weight: 400;
}

/* Telegram */
.social-pill:nth-child(1) {
  background: rgba(41,182,246,0.1);
  border-color: rgba(41,182,246,0.25);
  color: #29b6f6;
}
.social-pill:nth-child(1):hover { box-shadow: 0 4px 20px rgba(41,182,246,0.2); }
.tg-dot { background: #29b6f6; }
.tg-dot::after { background: #29b6f6; }

/* Discord */
.social-pill:nth-child(2) {
  background: rgba(114,137,218,0.1);
  border-color: rgba(114,137,218,0.25);
  color: #7289da;
}
.social-pill:nth-child(2):hover { box-shadow: 0 4px 20px rgba(114,137,218,0.2); }
.dc-dot { background: #7289da; }
.dc-dot::after { background: #7289da; }

/* Pay */
.social-pill:nth-child(3) {
  background: rgba(230,57,70,0.1);
  border-color: rgba(230,57,70,0.25);
  color: var(--red);
}
.social-pill:nth-child(3):hover { box-shadow: 0 4px 20px rgba(230,57,70,0.2); }
.pay-dot { background: var(--red); }
.pay-dot::after { background: var(--red); }

/* ===== VER MODULES COUNT ===== */
.ver-modules-count {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(230,57,70,0.1); border: 1px solid rgba(230,57,70,0.25);
  color: var(--red); padding: 5px 14px; border-radius: 100px;
  font-size: 0.8rem; font-weight: 600; margin-bottom: 18px;
}
.ver-modules-count::before { content: '⚡'; }

/* ===== SOCIALS SECTION ===== */
.socials-section {
  padding: 24px 24px 28px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.socials-section .socials-block { margin-top: 0; }

/* ===== SOCIALS TOP BAR ===== */
.socials-top-bar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 8px 24px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  flex-wrap: wrap;
}
.socials-top-bar .social-pill { padding: 5px 12px; font-size: 0.8rem; }
.socials-top-bar .social-pill-handle { font-size: 0.74rem; }

/* ver-card без ver-servers — убираем лишний отступ */
.ver-card .ver-label { margin-bottom: 14px; }
