/* sav3nok gate — общий стиль для всех страниц */

:root {
  --bg-deep: #070a1f;
  --bg-mid: #0d1230;
  --cyan: #14b8cc;
  --cyan-soft: #1a9fb8;
  --purple: #8b3ac9;
  --purple-soft: #a855f7;
  --text: #e8ecff;
  --text-dim: #8a92b8;
  --border: rgba(139, 58, 201, 0.15);
  --border-bright: rgba(20, 184, 204, 0.3);
  --success: #22c55e;
  --warn: #f59e0b;
  --error: #ef4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Manrope', sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(26, 159, 184, 0.35) 0%, transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(139, 58, 201, 0.4) 0%, transparent 45%),
    radial-gradient(circle at 10% 85%, rgba(139, 58, 201, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 90% 75%, rgba(26, 159, 184, 0.3) 0%, transparent 45%),
    var(--bg-deep);
  z-index: -2;
  animation: glowShift 20s ease-in-out infinite;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 3px 3px;
  z-index: -1;
  pointer-events: none;
}

@keyframes glowShift {
  0%, 100% { opacity: 1; transform: scale(1) translate(0, 0); }
  25% { opacity: 0.9; transform: scale(1.05) translate(2%, -1%); }
  50% { opacity: 0.85; transform: scale(1.02) translate(-1%, 2%); }
  75% { opacity: 0.92; transform: scale(1.04) translate(1%, 1%); }
}

/* Плавающие световые орбы поверх градиентного фона */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.bg-orbs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  will-change: transform;
}
.bg-orbs span:nth-child(1) {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(20,184,204,0.7) 0%, transparent 70%);
  top: 10%; left: -8%;
  animation: orbFloat1 22s ease-in-out infinite;
}
.bg-orbs span:nth-child(2) {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(139,58,201,0.65) 0%, transparent 70%);
  top: 50%; right: -10%;
  animation: orbFloat2 28s ease-in-out infinite;
}
.bg-orbs span:nth-child(3) {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(168,85,247,0.55) 0%, transparent 70%);
  bottom: 5%; left: 25%;
  animation: orbFloat3 25s ease-in-out infinite;
}
@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, 60px) scale(1.1); }
  66% { transform: translate(-30px, 30px) scale(0.95); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -40px) scale(1.15); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40% { transform: translate(60px, -50px) scale(1.08); }
  70% { transform: translate(-40px, -20px) scale(0.92); }
}
@media (max-width: 600px) {
  .bg-orbs span:nth-child(1) { width: 240px; height: 240px; opacity: 0.28; }
  .bg-orbs span:nth-child(2) { width: 280px; height: 280px; opacity: 0.28; }
  .bg-orbs span:nth-child(3) { width: 220px; height: 220px; opacity: 0.25; }
}
@media (prefers-reduced-motion: reduce) {
  .bg-orbs span { animation: none; }
}

a { color: var(--cyan); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--purple-soft); }

/* === НАВИГАЦИЯ === */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 40px;
  background: rgba(7, 10, 31, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease;
}
.logo:hover { transform: translateY(-1px); }
.logo::before {
  content: '';
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--purple-soft));
  transform: rotate(45deg);
  border-radius: 2px;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(20, 184, 204, 0.55);
  animation: logoSpin 6s linear infinite, logoGlow 3s ease-in-out infinite;
}
.logo:hover::before {
  animation: logoSpin 1.4s linear infinite, logoGlow 1.5s ease-in-out infinite;
}
@keyframes logoSpin {
  from { transform: rotate(45deg); }
  to { transform: rotate(405deg); }
}
@keyframes logoGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(20, 184, 204, 0.55); }
  50% { box-shadow: 0 0 18px rgba(168, 85, 247, 0.75); }
}
@media (prefers-reduced-motion: reduce) {
  .logo::before, .logo:hover::before { animation: none; transform: rotate(45deg); }
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--cyan);
}

.nav-cta {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
  color: white !important;
  padding: 10px 22px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 0 rgba(20, 184, 204, 0.5);
  animation: ctaPulse 3.5s ease-in-out infinite;
}
.nav-cta::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.5s ease;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(20, 184, 204, 0.45);
  color: white !important;
}
.nav-cta:hover::before { left: 100%; }
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(20, 184, 204, 0); }
  50% { box-shadow: 0 0 0 8px rgba(20, 184, 204, 0.12); }
}

/* Мобильное меню (toggle) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  font-size: 22px;
}

/* === ЗАГОЛОВКИ И ТЕКСТ === */
h1, h2, h3, h4 { font-family: 'Unbounded', sans-serif; letter-spacing: -0.02em; }

.gradient {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--cyan);
}

/* === КНОПКИ === */
.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
  color: white;
  padding: 16px 32px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(139, 58, 201, 0.25);
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 70%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(139, 58, 201, 0.45);
  color: white;
}
.btn-primary:hover::before { left: 130%; }
.btn-primary:active { transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  padding: 16px 32px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--border-bright);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.btn-secondary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(20, 184, 204, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.btn-secondary:hover {
  background: rgba(20, 184, 204, 0.08);
  border-color: var(--cyan);
  color: var(--text);
  transform: translateY(-2px);
}
.btn-secondary:hover::after { opacity: 1; }

/* === КАРТОЧКИ === */
.card {
  padding: 32px;
  background: rgba(13, 18, 48, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgba(20, 184, 204, 0.4), transparent, rgba(168, 85, 247, 0.4), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.card:hover {
  border-color: var(--border-bright);
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(7, 10, 31, 0.4);
}
.card:hover::before { opacity: 1; }

/* === ХЛЕБНЫЕ КРОШКИ === */
.breadcrumbs {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 24px;
  font-family: 'JetBrains Mono', monospace;
}
.breadcrumbs a { color: var(--text-dim); }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs .sep { color: var(--border-bright); }

/* === КОНТЕЙНЕР СТРАНИЦЫ === */
.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.page-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.page h1 {
  font-weight: 800;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  margin-bottom: 16px;
}

.page-intro {
  font-size: 18px;
  color: var(--text-dim);
  margin-bottom: 48px;
  max-width: 720px;
}

/* === КОНТЕНТ СТАТЕЙ === */
.article h2 {
  font-size: 28px;
  font-weight: 600;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--cyan);
}

.article h3 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
}

.article p {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 16px;
}

.article ul, .article ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.article li {
  margin-bottom: 10px;
  color: var(--text);
}

.article strong { color: var(--cyan); font-weight: 600; }

.article .info-box {
  padding: 20px 24px;
  background: rgba(20, 184, 204, 0.06);
  border-left: 3px solid var(--cyan);
  border-radius: 12px;
  margin: 24px 0;
}
.article .info-box p:last-child { margin-bottom: 0; }

.article .warn-box {
  padding: 20px 24px;
  background: rgba(245, 158, 11, 0.06);
  border-left: 3px solid var(--warn);
  border-radius: 12px;
  margin: 24px 0;
}

/* === ФУТЕР === */
footer {
  border-top: 1px solid var(--border);
  padding: 60px 24px 40px;
  max-width: 1200px;
  margin: 60px auto 0;
  color: var(--text-dim);
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand { max-width: 400px; }
.footer-brand p {
  margin-top: 12px;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.footer-col a {
  display: block;
  color: var(--text-dim);
  text-decoration: none;
  padding: 5px 0;
  font-size: 13px;
}
.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}

.disclaimer {
  padding: 16px 20px;
  background: rgba(13, 18, 48, 0.5);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 12px;
  line-height: 1.6;
}

/* === АДАПТИВ === */
@media (max-width: 900px) {
  nav { padding: 14px 18px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(7, 10, 31, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 18px 20px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 12px 4px;
    font-size: 16px;
    width: 100%;
  }

  .menu-toggle { display: block; }
  .nav-cta {
    padding: 8px 18px;
    font-size: 13px;
  }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .page, .page-wide { padding: 90px 18px 60px; }
}

/* === МОБИЛЬНЫЕ ТЕЛЕФОНЫ === */
@media (max-width: 600px) {
  nav { padding: 12px 14px; }
  .logo { font-size: 16px; }
  .logo::before { margin-right: 6px; }

  .nav-cta {
    padding: 7px 14px;
    font-size: 12px;
  }
  .menu-toggle {
    padding: 6px 8px;
    font-size: 20px;
  }

  /* Кнопки крупнее под палец, не уезжают за край */
  .btn-primary, .btn-secondary {
    padding: 14px 24px;
    font-size: 14px;
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  /* Карточки и контент */
  .card { padding: 22px; border-radius: 16px; }

  .page, .page-wide { padding: 80px 16px 50px; }

  .page-intro { font-size: 16px; margin-bottom: 32px; }

  /* Статьи */
  .article h2 { font-size: 22px; margin-top: 36px; }
  .article h3 { font-size: 17px; margin-top: 24px; }
  .article p, .article li { font-size: 15px; }
  .article .info-box, .article .warn-box {
    padding: 16px 18px;
    margin: 18px 0;
  }

  /* Хлебные крошки в одну строку с переносом */
  .breadcrumbs {
    flex-wrap: wrap;
    font-size: 12px;
    margin-bottom: 18px;
  }

  /* Футер компактнее */
  footer {
    padding: 40px 16px 30px;
    margin-top: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 11px;
  }
  .disclaimer { font-size: 11px; padding: 14px 16px; }

  /* Декоративный фон не должен мешать */
  .platform-bg {
    width: 360px;
    height: 360px;
    right: -180px;
    opacity: 0.025;
  }
}

/* === ОЧЕНЬ УЗКИЕ ЭКРАНЫ (iPhone SE и т.п.) === */
@media (max-width: 380px) {
  nav { padding: 10px 12px; }
  .logo { font-size: 15px; }
  .nav-cta { padding: 6px 12px; font-size: 11px; }

  .page, .page-wide { padding: 76px 14px 40px; }
}

/* Безопасные зоны iPhone (notch, home indicator) */
@supports (padding: max(0px)) {
  nav {
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }
  footer {
    padding-bottom: max(40px, env(safe-area-inset-bottom));
  }
}

/* === ЛОГОТИПЫ-ВОДЯНЫЕ ЗНАКИ НА ФОНЕ === */
.platform-bg {
  position: fixed;
  top: 50%;
  right: -100px;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  opacity: 0.04;
  pointer-events: none;
  z-index: -1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.platform-bg svg { width: 100%; height: 100%; }

@media (max-width: 900px) {
  .platform-bg {
    right: -200px;
    width: 500px;
    height: 500px;
  }
}

/* === Защита от выпадания текста за края на мобильных === */
@media (max-width: 480px) {
  .hero h1, .page h1, h1 {
    font-size: clamp(28px, 8vw, 40px) !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  .hero { padding: 110px 18px 50px; }
  .hero-subtitle { font-size: 15px !important; padding: 0 4px; }
  .section h2 {
    font-size: clamp(22px, 6vw, 32px);
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .gradient { display: inline; }
}

@media (max-width: 360px) {
  .hero h1, .page h1, h1 {
    font-size: 26px !important;
  }
}

/* Защита от горизонтальной прокрутки */
html, body { overflow-x: hidden; max-width: 100vw; }
* { max-width: 100vw; box-sizing: border-box; }

/* ============================================
   ANIMATIONS — появление при скролле, hover, и т.д.
   ============================================ */

/* Reveal-анимация. По умолчанию элементы видимы (no-JS fallback).
   JS добавляет .js-anim-init на <html> ДО рендера, что включает скрытие.
   Затем IntersectionObserver добавляет .is-visible. */
.js-anim-init [data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.js-anim-init [data-animate="fade"] { transform: none; }
.js-anim-init [data-animate="left"] { transform: translateX(-30px); }
.js-anim-init [data-animate="right"] { transform: translateX(30px); }
.js-anim-init [data-animate="zoom"] { transform: scale(0.94); }

[data-animate].is-visible {
  opacity: 1 !important;
  transform: translate(0, 0) scale(1) !important;
}

/* Задержки для staggered появления */
[data-delay="1"].is-visible { transition-delay: 0.08s; }
[data-delay="2"].is-visible { transition-delay: 0.16s; }
[data-delay="3"].is-visible { transition-delay: 0.24s; }
[data-delay="4"].is-visible { transition-delay: 0.32s; }
[data-delay="5"].is-visible { transition-delay: 0.40s; }
[data-delay="6"].is-visible { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1; transform: none; transition: none; }
}

/* === HERO АНИМАЦИИ ВХОДА === */
.hero-badge,
.hero h1,
.hero-subtitle,
.hero-ctas,
.hero-note {
  opacity: 0;
  animation: heroIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-badge { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.18s; }
.hero-subtitle { animation-delay: 0.32s; }
.hero-ctas { animation-delay: 0.46s; }
.hero-note { animation-delay: 0.6s; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-badge, .hero h1, .hero-subtitle, .hero-ctas, .hero-note {
    opacity: 1; animation: none;
  }
}

/* Бейдж в hero — лёгкое плавание */
.hero-badge {
  animation: heroIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards,
             badgeFloat 6s ease-in-out 1s infinite;
}
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Hero h1 — плавный градиентный сдвиг */
.gradient {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple-soft) 50%, var(--cyan) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 8s ease infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* === FEATURE-карточки: подсветка и hover === */
.feature {
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(20, 184, 204, 0.12), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(7, 10, 31, 0.5);
}
.feature:hover::before { opacity: 1; }
.feature-icon {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}
.feature:hover .feature-icon {
  transform: scale(1.12) rotate(-6deg);
  box-shadow: 0 8px 24px rgba(20, 184, 204, 0.35);
}

/* === LINK-CARDS — стрелка двигается, бегущая граница === */
.link-card {
  position: relative;
  overflow: hidden;
}
.link-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20, 184, 204, 0.06), transparent 40%, transparent 60%, rgba(168, 85, 247, 0.06));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.link-card:hover { box-shadow: 0 18px 40px rgba(7, 10, 31, 0.5); }
.link-card:hover::before { opacity: 1; }
.link-card .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}
.link-card:hover .arrow {
  transform: translateX(6px);
}
.link-card .tag {
  transition: background 0.3s ease, color 0.3s ease;
}
.link-card:hover .tag {
  background: rgba(20, 184, 204, 0.18);
}

/* === СТЕПЫ — счётчик подсвечивается === */
.step {
  position: relative;
  transition: transform 0.4s ease, border-color 0.4s ease;
}
.step:hover {
  transform: translateY(-4px);
  border-color: var(--border-bright);
}
.step-num {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.step:hover .step-num {
  transform: scale(1.08);
}

/* Соединительная линия между шагами на десктопе */
@media (min-width: 901px) {
  .steps-row { position: relative; }
  .steps-row::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 16%;
    right: 16%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(20, 184, 204, 0.4), rgba(168, 85, 247, 0.4), transparent);
    z-index: 0;
    pointer-events: none;
  }
  .step { position: relative; z-index: 1; }
}

/* === FAQ — плавное раскрытие === */
.faq-item {
  cursor: pointer;
  transition: padding 0.3s ease, background 0.3s ease;
  position: relative;
}
.faq-item h3 {
  position: relative;
  padding-right: 32px;
  transition: color 0.3s ease;
}
.faq-item h3::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 300;
  color: var(--cyan);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item.active h3 {
  color: var(--cyan);
}
.faq-item.active h3::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq-item p {
  max-height: 200px;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.4s ease;
}
.faq-item:hover h3 { color: var(--cyan); }

/* === FOOTER ССЫЛКИ === */
.footer-col a {
  position: relative;
  transition: color 0.3s ease, padding-left 0.3s ease;
}
.footer-col a:hover {
  color: var(--cyan);
  padding-left: 8px;
}

/* === SCROLL-INDICATOR в hero === */
.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 2px solid rgba(232, 236, 255, 0.25);
  border-radius: 12px;
  opacity: 0;
  animation: heroIn 1s ease 1s forwards, scrollCueFade 4s ease 1s infinite;
}
.scroll-cue::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  border-radius: 3px;
  background: var(--cyan);
  animation: scrollCueDot 2s ease-in-out infinite;
}
@keyframes scrollCueDot {
  0%, 100% { transform: translate(-50%, 0); opacity: 1; }
  50% { transform: translate(-50%, 12px); opacity: 0.3; }
}
@keyframes scrollCueFade {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.2; }
}
@media (max-width: 600px) {
  .scroll-cue { display: none; }
}

/* === ВЫДЕЛЕНИЕ ТЕКСТА === */
::selection {
  background: rgba(20, 184, 204, 0.3);
  color: var(--text);
}

/* === SCROLL-PROGRESS BAR (наверху страницы) === */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--purple-soft));
  z-index: 200;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(20, 184, 204, 0.5);
  transition: width 0.1s ease;
}

/* === BREADCRUMBS — мягкое появление === */
.breadcrumbs {
  animation: heroIn 0.6s ease forwards;
  opacity: 0;
  animation-delay: 0.05s;
}

/* === Page H1 и intro — появление === */
.page > h1, .page-wide > h1 {
  opacity: 0;
  animation: heroIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}
.page-intro {
  opacity: 0;
  animation: heroIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}
@media (prefers-reduced-motion: reduce) {
  .breadcrumbs, .page > h1, .page-wide > h1, .page-intro { opacity: 1; animation: none; }
}

/* === Иконки фичи: ритмичная пульсация без hover === */
.feature-icon {
  animation: iconBreath 4s ease-in-out infinite;
}
.feature:nth-child(2) .feature-icon { animation-delay: 0.4s; }
.feature:nth-child(3) .feature-icon { animation-delay: 0.8s; }
.feature:nth-child(4) .feature-icon { animation-delay: 1.2s; }
.feature:nth-child(5) .feature-icon { animation-delay: 1.6s; }
.feature:nth-child(6) .feature-icon { animation-delay: 2.0s; }
@keyframes iconBreath {
  0%, 100% { box-shadow: 0 0 0 0 rgba(20, 184, 204, 0); }
  50% { box-shadow: 0 0 0 4px rgba(20, 184, 204, 0.08); }
}
@media (prefers-reduced-motion: reduce) {
  .feature-icon { animation: none; }
}

/* === Кнопки: лёгкий ripple на active === */
.btn-primary, .btn-secondary, .nav-cta {
  -webkit-tap-highlight-color: transparent;
}

/* === Внешние ссылки в футере, "Telegram" — индикатор === */
.footer-col a[target="_blank"]::after,
.nav-links a[target="_blank"]::after {
  content: '↗';
  display: inline-block;
  margin-left: 4px;
  font-size: 0.9em;
  opacity: 0.6;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.footer-col a[target="_blank"]:hover::after,
.nav-links a[target="_blank"]:hover::after {
  transform: translate(2px, -2px);
  opacity: 1;
}

/* === CTA-FINAL: пульсирующее свечение фона === */
.cta-final::before {
  animation: ctaFinalGlow 6s ease-in-out infinite;
}
@keyframes ctaFinalGlow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

/* === Section labels: точка пульсирует === */
.section-label::before {
  background: linear-gradient(90deg, transparent, var(--cyan));
  animation: labelLine 3s ease-in-out infinite;
}
@keyframes labelLine {
  0%, 100% { width: 24px; opacity: 0.6; }
  50% { width: 36px; opacity: 1; }
}

/* === Фоновая платформенная иконка чуть плывёт === */
.platform-bg {
  animation: platformDrift 30s ease-in-out infinite;
}
@keyframes platformDrift {
  0%, 100% { transform: translateY(-50%) rotate(0deg); }
  50% { transform: translateY(-48%) rotate(8deg); }
}

/* === Меню-toggle — плавное превращение === */
.menu-toggle { transition: transform 0.3s ease; }
.menu-toggle:hover { transform: scale(1.1); color: var(--cyan); }

/* Fallback если JS отключён — всё видимо */
.no-js [data-animate] { opacity: 1; transform: none; }
