:root {
  --bg-deep: #0a0606;
  --bg-mid: #1a0a0c;
  --accent: #c41e3a;
  --accent-soft: rgba(196, 30, 58, 0.35);
  --text: #f5f0f0;
  --text-muted: rgba(245, 240, 240, 0.65);
  --card: rgba(18, 8, 10, 0.72);
  --border: rgba(196, 30, 58, 0.28);
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  --mark-ref-width: 800px;
  --mark-edge-max: 300px;
  --mark-edge-min: 1rem;
  --mark-width-ratio: 1.5;
}

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

html, body {
  min-height: 100%;
  background-color: var(--bg-deep);
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(ellipse 120% 80% at 50% -20%, #2a1018 0%, var(--bg-deep) 45%, #050303 100%);
  line-height: 1.5;
  overflow-x: hidden;
}

.bg-mark {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.bg-mark__inner {
  font-weight: 600;
  --mark-edge: clamp(
    var(--mark-edge-min),
    calc((100vw - var(--mark-ref-width)) / 2),
    var(--mark-edge-max)
  );
  font-size: max(
    2.25rem,
    calc((100vw - 2 * var(--mark-edge)) / var(--mark-width-ratio))
  );
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
  opacity: 0.07;
  text-shadow: 0 0 80px rgba(196, 30, 58, 0.25);
  transform: translateY(-5%);
  text-align: center;
  white-space: nowrap;
}

.bg-mark__inner span {
  font-weight: 300;
  opacity: 0.85;
  margin: 0 0.12em;
}

/* Лёгкая сетка / шум для глубины */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(196, 30, 58, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 30, 58, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
}

.wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 3rem;
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.profile {
  text-align: center;
  line-height: 1;
  margin-bottom: 10px;
}

.profile__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.profile__logo .sep {
  font-weight: 200;
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1.3;
}

.profile__tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

.links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.links a {
  display: block;
  text-align: center;
  padding: 0.95rem 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(196, 30, 58, 0.22) 0%, rgba(26, 10, 12, 0.9) 100%);
  border: 1px solid rgba(196, 30, 58, 0.35);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.links a:hover {
  transform: translateY(-2px);
  border-color: rgba(196, 30, 58, 0.65);
  box-shadow: 0 8px 24px rgba(196, 30, 58, 0.2);
}

.links a:active {
  transform: translateY(0);
}

.links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .profile {
    display: none;
  }
}