/* ============ ТОКЕНЫ ТЕМЫ — палитра SibStageGroup ============ */
:root {
  --bg: #061320;
  --bg-2: #0c2238;
  --card: rgba(11, 30, 50, 0.55);
  --card-border: rgba(120, 190, 240, 0.12);
  --card-hi: rgba(150, 205, 245, 0.07);
  --text: #eef6ff;
  --text-dim: #9db4cc;
  --text-mute: #5f7a94;
  --accent: #2eb6ea;          /* фирменный голубой логотипа */
  --accent-2: #1f7fc4;        /* глубокий синий */
  --ring: conic-gradient(from 180deg, #2eb6ea, #4cc6f5, #1f7fc4, #2eb6ea);
  --shadow: 0 30px 80px -20px rgba(0, 10, 25, 0.7);

  --navy: #0e2a47;
  --blue: #1f7fc4;
  --sky: #4cc6f5;
  --cyan: #2eb6ea;
  --green: #2ee6c0;
}

[data-theme="light"] {
  --bg: #eef4fb;
  --bg-2: #dbe9f7;
  --card: rgba(255, 255, 255, 0.7);
  --card-border: rgba(14, 42, 71, 0.1);
  --card-hi: rgba(255, 255, 255, 0.75);
  --text: #0e2a47;            /* navy логотипа */
  --text-dim: #466686;
  --text-mute: #7d96ad;
  --accent: #1f8fd0;
  --accent-2: #0e2a47;
  --shadow: 0 30px 80px -28px rgba(20, 60, 110, 0.3);
}

/* ============ БАЗА ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background 0.6s ease, color 0.6s ease;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ============ ФОН ============ */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 50% -10%, var(--bg-2) 0%, var(--bg) 60%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  will-change: transform;
}
.orb--1 { width: 42vmax; height: 42vmax; left: -12vmax; top: -10vmax;
  background: radial-gradient(circle at 30% 30%, #2eb6ea, transparent 70%);
  animation: drift1 22s ease-in-out infinite; }
.orb--2 { width: 38vmax; height: 38vmax; right: -10vmax; top: 5vmax;
  background: radial-gradient(circle at 70% 30%, #1f7fc4, transparent 70%);
  animation: drift2 26s ease-in-out infinite; }
.orb--3 { width: 36vmax; height: 36vmax; left: 10vmax; bottom: -16vmax;
  background: radial-gradient(circle at 40% 60%, #4cc6f5, transparent 70%);
  animation: drift3 30s ease-in-out infinite; }
.orb--4 { width: 28vmax; height: 28vmax; right: 4vmax; bottom: -6vmax;
  background: radial-gradient(circle at 60% 60%, #2ee6c0, transparent 70%);
  animation: drift1 28s ease-in-out infinite reverse; }

@keyframes drift1 { 50% { transform: translate(8vmax, 6vmax) scale(1.1); } }
@keyframes drift2 { 50% { transform: translate(-7vmax, 8vmax) scale(1.05); } }
@keyframes drift3 { 50% { transform: translate(6vmax, -7vmax) scale(1.12); } }

/* Сценические лучи света */
.beam {
  position: absolute;
  top: -10vmax;
  width: 30vmax;
  height: 85vmax;
  background: linear-gradient(to bottom, rgba(76, 198, 245, 0.18), transparent 62%);
  filter: blur(8px);
  transform-origin: top center;
  opacity: 0.55;
}
.beam--1 { left: 14%; clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  animation: sweep1 11s ease-in-out infinite; }
.beam--2 { right: 12%; clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  background: linear-gradient(to bottom, rgba(46, 182, 234, 0.2), transparent 65%);
  animation: sweep2 14s ease-in-out infinite; }
@keyframes sweep1 { 0%,100%{transform:rotate(-12deg)} 50%{transform:rotate(10deg)} }
@keyframes sweep2 { 0%,100%{transform:rotate(13deg)} 50%{transform:rotate(-9deg)} }
[data-theme="light"] .beam { opacity: 0.35; }

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--card-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--card-border) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
  opacity: 0.5;
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ КУРСОР-ПОДСВЕТКА ============ */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 380px; height: 380px;
  margin: -190px 0 0 -190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 182, 234, 0.2), transparent 60%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) { .cursor-glow.on { opacity: 1; } }

/* ============ УПРАВЛЕНИЕ ============ */
.controls {
  position: fixed;
  top: clamp(14px, 3vw, 24px);
  right: clamp(14px, 3vw, 24px);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.ctrl-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s, background 0.25s, color 0.25s;
}
.ctrl-btn:hover { transform: translateY(-2px) scale(1.05); color: var(--accent); }
.ctrl-btn:active { transform: scale(0.94); }

.icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* ============ КАРТОЧКА ============ */
.card {
  position: relative;
  width: min(440px, 100%);
  min-width: 0;
  max-width: 100%;
  padding: clamp(22px, 5vw, 34px);
  border-radius: 30px;
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow), inset 0 1px 0 var(--card-hi);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  z-index: 1;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255,255,255,0.35), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
}

/* ============ ОБЛОЖКА ============ */
.cover {
  position: relative;
  margin: calc(clamp(22px, 5vw, 34px) * -1) calc(clamp(22px, 5vw, 34px) * -1) 0;
  height: clamp(150px, 38vw, 200px);
  overflow: hidden;
  border-radius: 30px 30px 0 0;
}
.cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.card:hover .cover img { transform: scale(1.12); }
.cover-fade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(6,19,32,0) 35%, var(--bg) 96%);
}
[data-theme="light"] .cover-fade {
  background: linear-gradient(to bottom, rgba(255,255,255,0) 35%, rgba(255,255,255,0.92) 96%);
}
.cover-tag {
  position: absolute;
  left: 16px; top: 14px;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(6, 19, 32, 0.5);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ============ ПРОФИЛЬ ============ */
.profile { text-align: center; margin-top: -52px; position: relative; z-index: 2; }

.avatar-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 18px;
}
.avatar-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: var(--ring);
  animation: spin 6s linear infinite;
  filter: blur(0.5px);
}
.avatar-ring::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: var(--ring);
  filter: blur(16px);
  opacity: 0.55;
}
@keyframes spin { to { transform: rotate(360deg); } }

.avatar {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 4px;
  background: var(--bg);
  z-index: 1;
}
.avatar img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.status-dot {
  position: absolute;
  right: 8px; bottom: 8px;
  width: 18px; height: 18px;
  background: var(--green);
  border: 3px solid var(--bg);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 0 rgba(46, 230, 192, 0.6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46,230,192,0.6); }
  70% { box-shadow: 0 0 0 12px rgba(46,230,192,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,230,192,0); }
}

.name { margin-top: 12px; }
.wordmark {
  font-size: clamp(1.55rem, 6.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.wordmark b { font-weight: 800; color: var(--text); }
.wordmark i { font-style: normal; font-weight: 800; color: var(--accent); }

.tagline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  margin-top: 8px;
  font-size: clamp(0.7rem, 2.6vw, 0.84rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}
.tagline .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.bio {
  color: var(--text-dim);
  font-size: 0.94rem;
  margin: 16px auto 0;
  max-width: 38ch;
}

/* ============ СТАТИСТИКА ============ */
.stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 4vw, 22px);
  margin: 20px 0 22px;
}
.stats li { display: flex; flex-direction: column; align-items: center; }
.stat-num {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  height: 30px;
  background: var(--card-border);
}

/* ============ СОЦСЕТИ ============ */
.socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 26px;
}
.social {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 13px;
  color: var(--text-dim);
  background: var(--card-hi);
  border: 1px solid var(--card-border);
  transition: transform 0.25s, color 0.25s, background 0.25s, box-shadow 0.25s;
}
.social:hover {
  transform: translateY(-4px) rotate(-4deg);
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 24px -8px var(--accent);
}

/* ============ ССЫЛКИ ============ */
.links { display: flex; flex-direction: column; gap: 12px; }

.link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--card-hi);
  border: 1px solid var(--card-border);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), border-color 0.3s, box-shadow 0.3s;
}
.link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.14) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}
.link:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  box-shadow: 0 16px 36px -18px var(--accent);
}
.link:hover::before { transform: translateX(120%); }
.link:active { transform: translateY(-1px) scale(0.99); }

.link-icon {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--accent-2));
}
.link-icon[data-accent="cyan"]  { background: linear-gradient(135deg,#4cc6f5,#2eb6ea); }
.link-icon[data-accent="blue"]  { background: linear-gradient(135deg,#2eb6ea,#1f7fc4); }
.link-icon[data-accent="sky"]   { background: linear-gradient(135deg,#7bd6f8,#3aa0dd); }
.link-icon[data-accent="navy"]  { background: linear-gradient(135deg,#1f7fc4,#0e2a47); }
.link-icon[data-accent="green"] { background: linear-gradient(135deg,#5ef0d4,#16b89a); }

.link-body { flex: 1; min-width: 0; }
.link-title { display: block; font-weight: 700; letter-spacing: -0.01em; }
.link-sub {
  display: block;
  font-size: 0.8rem;
  color: var(--text-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-arrow {
  flex: none;
  color: var(--text-mute);
  transition: transform 0.3s, color 0.3s;
}
.link:hover .link-arrow { transform: translateX(4px); color: var(--accent); }

.badge {
  flex: none;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
}
.badge--hot {
  background: linear-gradient(135deg, var(--sky), var(--accent-2));
  animation: badgeGlow 2s ease-in-out infinite;
}
@keyframes badgeGlow {
  0%,100% { box-shadow: 0 0 0 0 rgba(46,182,234,0.5); }
  50% { box-shadow: 0 0 14px 2px rgba(46,182,234,0.6); }
}

/* выделенная ссылка */
.link--feature {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, transparent), color-mix(in srgb, var(--accent-2) 16%, transparent));
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

/* ripple */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transform: scale(0);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

/* ============ ГАЛЕРЕЯ ============ */
.gallery { margin-top: 24px; }
.gallery-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-mute);
  margin-bottom: 10px;
}
.gallery-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}
.gallery-track::-webkit-scrollbar { height: 6px; }
.gallery-track::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 99px; }
.gallery-track::-webkit-scrollbar-track { background: transparent; }
.gallery-track img {
  flex: none;
  width: 132px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  scroll-snap-align: start;
  filter: saturate(0.9);
  transition: transform 0.35s, filter 0.35s, box-shadow 0.35s;
  cursor: pointer;
}
.gallery-track img:hover {
  transform: translateY(-3px) scale(1.02);
  filter: saturate(1.1);
  box-shadow: 0 12px 28px -12px var(--accent);
}

/* ============ FOOTER ============ */
.footer { margin-top: 24px; text-align: center; }
.cta {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px;
  border-radius: 18px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  background-size: 200% 200%;
  box-shadow: 0 14px 30px -12px var(--accent);
  transition: transform 0.25s, box-shadow 0.25s, background-position 0.6s;
}
.cta:hover { transform: translateY(-3px); background-position: 100% 0; box-shadow: 0 20px 40px -14px var(--accent); }
.cta:active { transform: translateY(-1px) scale(0.99); }

.made { margin-top: 16px; font-size: 0.78rem; color: var(--text-mute); }
.heart { color: var(--accent-2); animation: beat 1.4s ease-in-out infinite; display: inline-block; }
@keyframes beat { 0%,100%{transform:scale(1)} 30%{transform:scale(1.25)} }

/* ============ ТОСТ ============ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 140%);
  padding: 12px 20px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  z-index: 50;
  transition: transform 0.45s cubic-bezier(.2,.9,.2,1.2);
}
.toast.show { transform: translate(-50%, 0); }

/* ============ ЛАЙТБОКС ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 12, 22, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  border-radius: 16px;
  box-shadow: 0 30px 80px -20px #000;
  transform: scale(0.96);
  transition: transform 0.3s ease;
}
.lightbox.open img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 18px; right: 22px;
  width: 44px; height: 44px;
  font-size: 28px;
  line-height: 1;
  color: #fff;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
}
.lightbox-close:hover { background: var(--accent); }

/* ============ REVEAL-АНИМАЦИЯ ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.8,.2,1), filter 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
  transition-delay: calc(var(--i, 0) * 0.07s);
}

/* ============ АДАПТИВ ============ */
@media (max-width: 380px) {
  .stat-label { font-size: 0.66rem; }
  .link { padding: 12px 13px; gap: 11px; }
  .link-sub { display: none; }
}

@media (min-width: 720px) {
  .card { width: 460px; }
}

/* широкий экран — карточка чуть приподнята тенью, фон активнее */
@media (min-width: 1024px) {
  body { padding: 56px; }
}

/* доступность: уважение к reduce-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
}
