/* VEL DM — главная. Тёмная тема, плавающая шапка, акцентный цвет в --accent. */
:root {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --card: #161618;
  --card-2: #1d1d20;
  --line: rgba(255, 255, 255, 0.07);
  --text: #ffffff;
  --muted: #a1a1aa;
  --dim: #71717a;
  --accent: #ff7a1a;
  --accent-hover: #e8650a;
  --accent-soft: rgba(255, 122, 26, 0.14);
  --radius: 10px;
  --radius-lg: 16px;
  --wrap: 1200px;
}

html { scroll-behavior: smooth; }

/* запрет выделения текста */
body, .home, .home * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.home img { -webkit-user-drag: none; user-drag: none; }
.home ::selection { background: transparent; }

body {
  margin: 0;
  background: var(--bg) !important;
  color: var(--text);
}

.home,
.home * { box-sizing: border-box; }

.home {
  font-family: var(--font-gotham), "Montserrat", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

.home a { color: inherit; text-decoration: none; }
.home img { display: block; max-width: 100%; }
.home svg { flex: none; }

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff !important;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--accent-hover) !important; }

.btn svg { width: 16px; height: 16px; }
.btn-lg { min-height: 44px; padding: 12px 26px; font-size: 15px; }
.btn-ghost { background: var(--card-2) !important; }
.btn-ghost:hover { background: #26262a !important; }
.home .bg-brightOrange { background: var(--accent) !important; }
.home .bg-brightOrange:hover { background: var(--accent-hover) !important; }

/* ---------- Шапка ---------- */
.hdr {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(var(--wrap), calc(100% - 24px));
  height: 60px;
  padding: 10px 20px;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(23, 23, 23, 0.5);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.hdr-logo img { width: 112px; height: auto; }

.hdr-nav {
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hdr-nav a {
  color: #e4e4e7;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s;
}
.hdr-nav a:hover, .hdr-nav a[aria-current] { color: var(--accent); }
.hdr-donate[aria-current] { box-shadow: inset 0 0 0 1px var(--accent); }

.hdr-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}
.online b { color: #fff; font-weight: 700; }
.online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hdr-burger {
  display: none;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: var(--radius);
  background: var(--card-2);
  color: #fff;
  cursor: pointer;
}
.hdr-burger svg { width: 20px; height: 20px; }

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  padding: 110px 20px 70px;
  text-align: center;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../images/cubes-origin.png") center 35% / cover no-repeat;
  filter: grayscale(1) brightness(0.35);
}
.hero-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 50% 45%, rgba(255, 122, 26, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(10, 10, 11, 0.55) 0%, rgba(10, 10, 11, 0.7) 60%, var(--bg) 100%);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-logo { width: min(440px, 78vw); height: auto; }
.hero-tag {
  margin: 14px 0 0;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-cta { margin-top: 26px; }
.hero-socials { display: flex; gap: 10px; margin-top: 22px; }
.icon-btn {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: #a1a1aa;
  transition: color 0.2s, background 0.2s;
}
.icon-btn:hover { color: #fff; background: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; }
.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  width: 22px;
  height: 36px;
  transform: translateX(-50%);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
}
.hero-scroll::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: #fff;
  animation: wheel 1.6s infinite;
}
@keyframes wheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}

/* ---------- Секции ---------- */
.sec { padding: 90px 0; scroll-margin-top: 60px; }
.sec-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}
.sec-head-center { flex-direction: column; align-items: center; text-align: center; }
.h2 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}
.lead { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.lead a { color: var(--accent); }
.lead a:hover { text-decoration: underline; }

/* ---------- О проекте ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.about-text p { margin: 18px 0 0; color: #d4d4d8; font-size: 15px; line-height: 1.7; }
.about-text .btn { margin-top: 26px; }
.about-pic {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  background: var(--card);
}
.about-pic img { width: 100%; height: 100%; object-fit: cover; }
.about-pic::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--line);
  background: linear-gradient(0deg, rgba(10, 10, 11, 0.45), transparent 50%);
}
.stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.stat {
  min-width: 120px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.stat b { display: block; font-size: 22px; line-height: 1.1; }
.stat span { color: var(--dim); font-size: 12px; font-weight: 600; text-transform: uppercase; }

/* ---------- Новости ---------- */
.news { display: flex; flex-direction: column; gap: 20px; }
.news-status { margin: 0; padding: 40px 0; color: var(--muted); font-size: 15px; text-align: center; }
.news-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}
.news-pic, .news-card-pic {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2a1a0e, #161618);
}
.news-pic { min-height: 320px; }
.news-pic img, .news-card-pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-body { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 32px 36px; }
.news-badge {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.news-date { color: var(--dim); font-size: 13px; font-weight: 600; }
.news-title { margin: 0; font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.news-sub { margin: 0; color: #d4d4d8; font-size: 16px; font-weight: 600; }
.news-text {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.news-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}
.news-card-pic { aspect-ratio: 16 / 9; }
.news-card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; }
.news-card-title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.news-card-sub { margin: 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
/* ---------- Как начать ---------- */
.start {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.start-media {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}
.start-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.steps { display: flex; flex-direction: column; gap: 10px; }
.step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}
.step-num {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}
.step h3 { margin: 2px 0 4px; font-size: 16px; font-weight: 700; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }
.step-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.start-note { margin: 18px 0 0; color: var(--dim); font-size: 13px; text-align: center; }

/* ---------- Сервера ---------- */
.srv-grid { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin: 0 auto; }
.srv {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 80px;
  overflow: hidden;
  padding: 14px 24px;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--card);
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  isolation: isolate;
  transition: background 0.2s;
}
.srv:hover { background: var(--card-2); }
.srv-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: center / cover no-repeat;
  filter: grayscale(1);
  opacity: 0.08;
}
.srv-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px rgba(74, 222, 128, 0.5); }
.srv-name { font-size: 20px; font-weight: 600; letter-spacing: 0.01em; text-transform: uppercase; white-space: nowrap; }
.srv-tag {
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 122, 26, 0.18);
  color: #ffb27a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}
.srv-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.srv-count { font-size: 30px; font-weight: 700; line-height: 1; }
.srv-copy { width: 22px; height: 22px; color: rgba(255, 255, 255, 0.4); transition: color 0.2s; }
.srv:hover .srv-copy { color: #fff; }
/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 8px; max-width: 860px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  transition: border-color 0.2s;
}
.faq details[open] { border-color: rgba(255, 255, 255, 0.14); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  display: grid;
  flex: none;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--card-2);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.faq details a { color: var(--accent); }

/* ---------- Соцсети ---------- */
.socials { display: grid; grid-template-columns: repeat(3, 224px); justify-content: center; gap: 32px; }
.social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #131313;
  font-size: 20px;
  font-weight: 700;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.social svg { width: 30px; height: 30px; }
.social:hover { background: var(--card-2); }
.social .social-logo { width: auto; height: 36px; }
.social-discord:hover { background: var(--card-2); border-color: #5865f2; }
.social-telegram:hover { background: var(--card-2); border-color: #229ed9; }
.social-youtube:hover { background: var(--card-2); border-color: #ff0000; }

/* ---------- Подвал ---------- */
.ftr { padding: 48px 0 40px; border-top: 1px solid var(--line); background: var(--bg-2); }
.ftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.ftr-logo img { width: 140px; height: auto; }
.ftr-about p { margin: 12px 0 0; color: var(--dim); font-size: 13px; }
.ftr h4 { margin: 0 0 12px; color: var(--dim); font-size: 12px; font-weight: 600; text-transform: uppercase; }
.ftr-col { display: flex; flex-direction: column; gap: 8px; }
.ftr-col a { color: #d4d4d8; font-size: 13px; transition: color 0.2s; }
.ftr-col a:hover { color: var(--accent); }
.ftr-copy { margin-top: 36px; color: var(--dim); font-size: 12px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1000px) {
  .socials { grid-template-columns: repeat(2, 224px); gap: 24px; }
  .about, .start { grid-template-columns: 1fr; gap: 32px; }
  .news-main { grid-template-columns: 1fr; }
  .news-pic { min-height: 0; aspect-ratio: 16 / 9; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1060px) {
  .hdr { gap: 12px; padding: 10px 12px; }
  .hdr-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(17, 17, 19, 0.96);
  }
  .hdr.is-open .hdr-nav { display: flex; }
  .hdr-nav a { display: block; padding: 12px; }
  .hdr-burger { display: grid; }
  .hdr-play { display: none; }
}

@media (max-width: 640px) {
  .sec { padding: 64px 0; }
  .sec-head { align-items: center; }
  .online span.online-label { display: none; }
  .hdr-donate span { display: none; }
  .srv { padding: 14px 16px; gap: 12px; }
  .srv-name { font-size: 17px; }
  .srv-count { font-size: 24px; }
  .srv-tag { display: none; }
  .socials { grid-template-columns: minmax(0, 320px); gap: 16px; }
  .ftr-grid { grid-template-columns: 1fr; }
}

/* From Uiverse.io by Cybercom682 - https://uiverse.io/Cybercom682/empty-wolverine-58
   MIT License, Copyright (c) Cybercom682
   Уведомление «Скопировано» (зелёный вариант alert, тёмная тема). */
.blackdm-copy-toast {
  font-family: "__FontGotham_29c9b1", "__FontGotham_Fallback_29c9b1", "Montserrat", "Segoe UI", Arial, sans-serif;
  position: fixed;
  left: 16px !important;
  bottom: 16px !important;
  display: flex;
  align-items: center;
  max-width: calc(100vw - 32px);
  padding: 8px !important;
  border-left: 4px solid #15803d;
  border-radius: 8px;
  background-color: #14532d !important;
  color: #dcfce7 !important;
  transition: opacity 0.3s ease-in-out, background-color 0.3s ease-in-out;
}
.blackdm-copy-toast__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-right: 8px;
  color: #16a34a;
}
.blackdm-copy-toast__text {
  margin: 0;
  color: #dcfce7 !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  line-height: 16px !important;
  text-transform: none !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}
@media (min-width: 640px) {
  .blackdm-copy-toast { left: 24px !important; bottom: 24px !important; padding: 8px !important; }
}

/* ---------- Слайдер на «О проекте» ---------- */
.slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.slider .slide.is-active { opacity: 1; }
.slider .slide img { width: 100%; height: 100%; object-fit: cover; }
.about-pic::after { pointer-events: none; z-index: 1; }
.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 10, 11, 0.6);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s;
}
.slider-arrow:hover { background: var(--accent); }
.slider-arrow svg { width: 18px; height: 18px; }
.slider-prev { left: 12px; }
.slider-next { right: 12px; }
.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  z-index: 2;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
}
.slider-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.2s, width 0.2s;
}
.slider-dots button.is-active { width: 22px; border-radius: 4px; background: var(--accent); }

/* поля ввода должны оставаться доступными для выделения и ввода */
input, textarea, select, [contenteditable="true"] { -webkit-user-select: text; user-select: text; }
