/* === АНИМАЦИИ И УКРАШЕНИЯ ДЛЯ DIGITAL MOVE === */

/* --- Неоновая атмосфера по бокам --- */
body::before, body::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: 6px;
  z-index: -1;
  pointer-events: none;
}
body::before {
  left: 0;
  background: linear-gradient(to bottom, #00ffff20, #ff00ff10);
}
body::after {
  right: 0;
  background: linear-gradient(to bottom, #ff00ff20, #00ffff10);
}

/* --- Глубина фона --- */
body::backdrop {
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.05), transparent 70%),
              radial-gradient(circle at 70% 70%, rgba(255,255,255,0.04), transparent 70%);
}

/* --- Анимация появления карточек при скролле --- */
.card {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Hover-эффекты карточек --- */
.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0,255,255,0.2);
}

/* --- Плавные переходы страниц --- */
body {
  transition: opacity 0.5s ease;
}
body.fade-out {
  opacity: 0;
}

/* --- Блок автора --- */
.author-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
  max-width: 380px;
  margin: 40px auto;
}
.author-card img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(0,255,255,0.3);
}
.author-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px rgba(0,255,255,0.15);
}
.author-card h3 {
  margin: 0;
  color: #fff;
}
.author-card p {
  margin: 4px 0 0;
  color: #bbb;
  font-size: 0.9rem;
}

/* --- Мелкая динамика: плавное проявление заголовков --- */
h2 {
  position: relative;
  overflow: hidden;
}
h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 40px;
  background: linear-gradient(90deg, #00ffff, transparent);
  animation: lineMove 3s infinite alternate ease-in-out;
}
@keyframes lineMove {
  0% { width: 20px; opacity: 0.4; }
  100% { width: 80px; opacity: 1; }
}
.vk-video-card .vk-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* соотношение 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    margin-bottom: 12px;
}

.vk-video-card .vk-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 12px;
}

