:root {
  --bg: #0b0b12;
  --bg-2: #0e0e18;
  --card: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.09);
  --text: #eceefb;
  --muted: #98a0bd;
  --accent: #d283eb;
  --accent-2: #f472b6;
  --accent-3: #8b5cf6;
  --r: 20px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(900px 520px at 10% 8%, rgba(244, 114, 182, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .brand-text, .wordmark {
  font-family: 'Space Grotesk', system-ui, sans-serif;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-2);
  color: #14091c;
  padding: 10px 16px;
  border-radius: 0 0 12px 0;
  font-weight: 600;
  z-index: 100;
}
.skip:focus { left: 0; }

.center { text-align: center; }

/* ===== AURORA ===== */
.aurora {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}
.blob {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  will-change: transform;
}
.b1 { background: radial-gradient(circle, var(--accent), transparent 65%); top: -18vmax; left: -10vmax; }
.b2 { background: radial-gradient(circle, var(--accent-2), transparent 65%); top: 32vmax; right: -16vmax; }
.b3 { background: radial-gradient(circle, var(--accent-3), transparent 65%); bottom: -22vmax; left: 26vmax; }

/* ===== TOPBAR ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(11, 11, 18, 0.72);
  border-bottom: 1px solid var(--border);
}
.topbar-in {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 62px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.brand-mark { font-size: 20px; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.nav a:hover { background: var(--card); color: var(--text); }
.nav a.active {
  color: var(--text);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--border);
}
.gear {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}
.gear:hover { color: var(--text); border-color: var(--accent); }
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 38px;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
}
.burger span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.2s;
}

/* ===== HERO ===== */
.hero { padding: 56px 0 8px; }
.hero-card {
  text-align: center;
  padding: 44px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.avatar-wrap { position: relative; width: 132px; height: 132px; margin-bottom: 14px; }
.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.02), 0 0 34px rgba(210, 131, 235, 0.35);
}
.avatar-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 58px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
}
.avatar-wrap:has(.avatar:not([style*="none"])) .avatar-fallback { display: none; }

.hero-card h1 {
  font-size: clamp(30px, 5.2vw, 46px);
  margin: 0;
  letter-spacing: -1.2px;
  background: linear-gradient(100deg, var(--accent), var(--accent-2) 60%, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-role { margin: 2px 0 14px; color: var(--muted); font-size: 15px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: var(--muted);
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.wordmark {
  margin: 0 0 12px;
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  font-weight: 700;
  font-size: clamp(14px, 2.2vw, 20px);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-2);
  text-shadow: 0 0 18px var(--accent-2);
  animation: wordpulse 3s ease-in-out infinite;
}
@keyframes wordpulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(244, 114, 182, 0); }
  50% { box-shadow: 0 0 22px 0 var(--accent-2); }
}

.tagline { margin: 0 0 20px; font-size: 17px; max-width: 46ch; }

.hero-meta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 22px; }
.hero-meta > div {
  padding: 10px 18px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  min-width: 92px;
}
.hero-meta b { display: block; font-size: 16px; }
.hero-meta span {
  font-size: 11.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}
.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #17091d;
}
.btn.ghost {
  background: var(--card);
  border-color: var(--border);
  color: var(--text);
}
.btn:hover { transform: translateY(-2px); }
.btn.primary:hover { box-shadow: 0 10px 28px rgba(210, 131, 235, 0.36); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ===== СЕКЦИИ ===== */
.section { padding: 54px 0 10px; }
.section-title {
  font-size: clamp(24px, 3.4vw, 32px);
  margin: 0 0 10px;
  letter-spacing: -0.7px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent-2), var(--accent-3));
  box-shadow: 0 0 16px var(--accent-2);
}
.section-sub { color: var(--muted); margin: 0 0 24px; }

h3 { font-size: 19px; margin: 0 0 8px; letter-spacing: -0.3px; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.xs { font-size: 13px; }
.card-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: var(--muted);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
}

.list { margin: 0; padding-left: 18px; }
.list li { margin-bottom: 7px; color: var(--muted); }
.list li b { color: var(--text); }

.fact {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}
.fact:last-child { border-bottom: none; }
.fact span { color: var(--muted); }

/* ===== СОЦСЕТИ ===== */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--r);
  background: var(--card);
  border: 1px solid var(--border);
  transition: transform 0.18s, border-color 0.18s, background 0.18s;
}
.link-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.07);
}
.link-card .icon { font-size: 26px; flex-shrink: 0; }
.link-card h3 { margin: 0; font-size: 16px; }
.link-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.link-card .go { margin-left: auto; color: var(--muted); font-size: 15px; flex-shrink: 0; }

.link-card.featured {
  border-color: rgba(210, 131, 235, 0.42);
  background: linear-gradient(120deg, rgba(210, 131, 235, 0.12), rgba(244, 114, 182, 0.07));
}

.copy-hint {
  font-size: 11px;
  color: var(--muted);
  opacity: 0.7;
  margin-left: 8px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}

/* ===== ПРОФИЛИ ===== */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}
.status-card { display: flex; flex-direction: column; gap: 10px; }
.status-head { display: flex; align-items: center; gap: 14px; }
.status-head .icon { font-size: 30px; }
.status-name { font-weight: 600; font-size: 16px; word-break: break-all; }
.status-head > div { min-width: 0; }

.dot-online {
  margin-left: auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
  transition: background 0.3s, box-shadow 0.3s;
}
.dot-online.online { background: #34d399; box-shadow: 0 0 12px #34d399; }
.dot-online.away { background: #fbbf24; box-shadow: 0 0 12px #fbbf24; }
.dot-online.game { background: #a78bfa; box-shadow: 0 0 12px #a78bfa; }
.dot-online.offline { background: #64748b; box-shadow: none; }

.status-line { font-size: 15px; }
.status-line:empty { display: none; }

.link-line {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--muted);
  transition: color 0.2s;
}
.link-line:hover { color: var(--accent-2); }

/* ===== КОММЕНТАРИИ ===== */
.comment-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(210, 131, 235, 0.16);
}
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.comments-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.comment {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--r);
  background: var(--card);
  border: 1px solid var(--border);
}
.comment.pending { opacity: 0.62; border-style: dashed; }
.comment.error { border-color: rgba(248, 113, 113, 0.55); }
.comment-ava {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}
.comment-body { min-width: 0; flex: 1; }
.comment-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.comment-name { font-weight: 600; }
.comment-time { font-size: 12px; color: var(--muted); }
.comment-text { margin: 0; font-size: 14.8px; white-space: pre-wrap; word-break: break-word; }
.comment-del {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 8px;
  align-self: flex-start;
}
.comment-del:hover { color: #f87171; background: rgba(248, 113, 113, 0.12); }

.empty {
  padding: 26px;
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
  border: 1px dashed var(--border);
  border-radius: var(--r);
}

.spinner {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-top-color: var(--text);
  animation: spin 0.7s linear infinite;
  display: inline-block;
  vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== CTA + FOOTER ===== */
.cta { padding-bottom: 46px; }
.cta-card { text-align: center; padding: 40px 28px; }
.cta-card h2 { font-size: clamp(22px, 3.2vw, 30px); margin: 0 0 8px; letter-spacing: -0.6px; }
.cta-card p { color: var(--muted); margin: 0 0 20px; }

.footer { border-top: 1px solid var(--border); padding: 22px 0 34px; }
.foot-in {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--muted);
}
.sep { opacity: 0.5; }
.to-top { margin-left: auto; }

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.no-reveal .reveal { opacity: 1; transform: none; }
.no-glow .avatar,
.no-glow .btn.primary:hover { box-shadow: var(--shadow); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse, .wordmark { animation: none; }
}

/* ===== АДАПТИВ ===== */
@media (max-width: 860px) {
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap { width: min(1120px, 100% - 28px); }
  .burger { display: flex; }
  .gear span { display: none; }
  .nav {
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px 16px;
    background: rgba(11, 11, 18, 0.97);
    border-bottom: 1px solid var(--border);
    margin-left: 0;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 14px; }
  .hero { padding-top: 34px; }
  .hero-card { padding: 32px 20px; }
  .card { padding: 20px 18px; }
  .to-top { margin-left: 0; }
}