/* TikLet — общие стили лендинга и личного кабинета */
:root {
  --bg: #0b0b14;
  --bg-soft: #12121f;
  --surface: #171726;
  --surface-2: #1e1e30;
  --border: #2a2a40;
  --text: #f2f3f7;
  --text-muted: #9a9ab0;
  --text-dim: #63637a;
  --accent: #ff4757;
  --accent-hover: #ff5c6a;
  --accent-soft: rgba(255, 71, 87, 0.12);
  --cyan: #25f4ee;
  --green: #4ade80;
  --radius: 14px;
  --radius-sm: 9px;
  --container: 1120px;
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  /* стекинг-контекст: без него ::before/::after с отрицательным z-index
     проваливаются ПОД фон body и аврору не видно */
  isolation: isolate;
}

/* Живой фон всей страницы: крупная дрейфующая аврора + сетка точек */
body::before {
  content: '';
  position: fixed; z-index: -2; pointer-events: none;
  /* слой больше вьюпорта, чтобы дрейф не оголял края */
  inset: -30vh -30vw;
  background:
    radial-gradient(55vw 55vh at 15% 12%, rgba(255, 71, 87, 0.28), transparent 62%),
    radial-gradient(50vw 50vh at 85% 20%, rgba(37, 244, 238, 0.16), transparent 62%),
    radial-gradient(55vw 55vh at 75% 85%, rgba(192, 38, 211, 0.24), transparent 62%),
    radial-gradient(45vw 45vh at 20% 80%, rgba(67, 56, 202, 0.28), transparent 62%),
    var(--bg);
  filter: blur(40px) saturate(1.2);
  animation: aurora 18s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  50%  { transform: translate(6vw, -4vh) rotate(4deg) scale(1.12); }
  100% { transform: translate(-5vw, 5vh) rotate(-4deg) scale(1.05); }
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(100vw 100vh at 50% 35%, #000 25%, transparent 85%);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ── Плашка бета-теста ─────────────────────────────── */
.beta-bar {
  position: relative; z-index: 101;
  background: linear-gradient(90deg, rgba(255, 71, 87, 0.18), rgba(192, 38, 211, 0.18), rgba(37, 244, 238, 0.14));
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.beta-bar-row {
  display: flex; align-items: center; gap: 12px;
  padding-top: 9px; padding-bottom: 9px;
  font-size: 13.5px; color: var(--text);
}
.beta-bar-row p { flex: 1; min-width: 0; }
.beta-bar-row b { color: var(--cyan); }
.beta-tag {
  flex-shrink: 0;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: 1px;
  border-radius: 5px; padding: 2px 8px;
  animation: live-pulse 1.6s ease-in-out infinite;
}
.beta-close {
  flex-shrink: 0; background: none; border: none; color: var(--text-dim);
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 7px;
}
.beta-close:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

/* ── Шапка ─────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 11, 20, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; }
.logo-mark {
  width: 34px; height: 34px; object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(37, 244, 238, 0.25));
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; color: var(--text-muted); transition: color var(--transition); }
.nav-links a:hover { color: var(--text); }
.nav-burger {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  width: 40px; height: 40px; align-items: center; justify-content: center;
}

/* ── Кнопки ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600;
  padding: 12px 24px; min-height: 44px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), opacity var(--transition);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--text-dim); }
.btn-sm { padding: 8px 16px; min-height: 38px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ── Hero ──────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 80px;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 340px at 20% 0%, rgba(255, 71, 87, 0.16), transparent 70%),
    radial-gradient(600px 340px at 80% 10%, rgba(37, 244, 238, 0.09), transparent 70%);
  pointer-events: none;
}
.hero > .container { position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid rgba(255, 71, 87, 0.3);
  border-radius: 999px; padding: 6px 14px;
  font-size: 13px; font-weight: 600; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(34px, 5.5vw, 58px);
  font-weight: 800; line-height: 1.12; letter-spacing: -0.02em;
  max-width: 800px; margin: 0 auto 20px;
}
.hero h1 .grad {
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  font-size: 18px; color: var(--text-muted);
  max-width: 640px; margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--text-dim); }

/* ── Секции ────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-alt { background: rgba(18, 18, 31, 0.55); border-block: 1px solid rgba(42, 42, 64, 0.5); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -0.01em; margin-bottom: 12px; }
.section-head p { color: var(--text-muted); font-size: 16px; }

/* ── Фичи ──────────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: border-color var(--transition), transform var(--transition);
}
.feature:hover { border-color: var(--text-dim); transform: translateY(-3px); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--accent-soft); color: var(--accent);
}
.feature h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--text-muted); }

/* ── Как работает ──────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative; padding: 28px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.step-num {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #c026d3);
  color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 16px;
}
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-muted); }

/* ── Подписка: три тарифа ──────────────────────────── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  align-items: stretch; max-width: 1020px; margin: 0 auto;
}
.plan {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: 18px;
  padding: 32px 28px; text-align: center;
  position: relative; display: flex; flex-direction: column;
  transition: transform var(--transition), border-color var(--transition);
}
.plan:hover { transform: translateY(-4px); border-color: var(--text-dim); }
.plan .pricing-list { flex: 1; }
.plan-featured {
  border-color: rgba(255, 71, 87, 0.55);
  box-shadow: 0 0 34px rgba(255, 71, 87, 0.16);
  transform: scale(1.03);
}
.plan-featured:hover { transform: scale(1.03) translateY(-4px); }
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--accent), #c026d3);
  color: #fff; font-size: 12px; font-weight: 700;
  border-radius: 999px; padding: 4px 14px; white-space: nowrap;
}
.plan-badge-save { background: linear-gradient(90deg, #16a34a, #4ade80); color: #052e11; }
.pricing-title { font-size: 15px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.pricing-price { font-size: 38px; font-weight: 800; margin: 12px 0 4px; font-variant-numeric: tabular-nums; }
.price-per { font-size: 16px; font-weight: 600; color: var(--text-muted); }
.pricing-period { color: var(--text-dim); font-size: 14px; margin-bottom: 26px; }
.pricing-list { list-style: none; text-align: left; margin-bottom: 30px; }
.pricing-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--text-muted); padding: 7px 0;
}
.pricing-list svg { flex-shrink: 0; margin-top: 3px; color: var(--green); }

/* ── FAQ ───────────────────────────────────────────── */
.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  padding: 18px 20px; font-weight: 600; font-size: 15px;
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-size: 20px; color: var(--text-dim);
  transition: transform var(--transition);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 20px 18px; font-size: 14px; color: var(--text-muted); }

/* ── Финальный CTA ─────────────────────────────────── */
.cta-final { text-align: center; }
.cta-final h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; margin-bottom: 14px; }
.cta-final p { color: var(--text-muted); margin-bottom: 30px; }

/* ── Подвал ────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0; font-size: 13px; color: var(--text-dim);
}
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-row a { color: var(--text-muted); }
.footer-row a:hover { color: var(--text); }

/* ── Личный кабинет ────────────────────────────────── */
.cabinet-wrap {
  min-height: calc(100vh - 64px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 56px 24px;
}
.cabinet-card {
  width: 100%; max-width: 560px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 36px 32px;
}
.cabinet-card h1 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.cabinet-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 26px; }

.tabs { display: flex; gap: 6px; background: var(--bg-soft); border-radius: var(--radius-sm); padding: 5px; margin-bottom: 26px; }
.tab {
  flex: 1; border: none; background: transparent; color: var(--text-muted);
  border-radius: 7px; padding: 9px 0; font-size: 14px; font-weight: 600;
  transition: background var(--transition), color var(--transition);
}
.tab.active { background: var(--surface-2); color: var(--text); }

.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 12px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px;
}
.field input {
  width: 100%; min-height: 46px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-size: 15px; font-family: inherit;
  padding: 11px 14px; outline: none;
  transition: border-color var(--transition);
}
.field input:focus { border-color: var(--accent); }
.field .hint { font-size: 12px; color: var(--text-dim); margin-top: 6px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 46px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-dim);
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 7px;
}
.pw-toggle:hover { color: var(--text); }

.alert {
  border-radius: var(--radius-sm); padding: 11px 14px;
  font-size: 13px; margin-top: 16px; display: none;
}
.alert.show { display: block; }
.alert-error { background: rgba(255, 71, 87, 0.12); border: 1px solid rgba(255, 71, 87, 0.3); color: #ff8b96; }
.alert-ok { background: rgba(74, 222, 128, 0.1); border: 1px solid rgba(74, 222, 128, 0.3); color: var(--green); }

.cab-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.cab-head .who { font-size: 13px; color: var(--text-dim); word-break: break-all; }
.link-btn { background: none; border: none; color: var(--text-muted); font-size: 13px; padding: 4px; }
.link-btn:hover { color: var(--text); }

.device {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 16px; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.device-id { font-family: 'Consolas', monospace; font-size: 13px; color: var(--green); }
.device-meta { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.device-info { min-width: 0; }
.btn-danger {
  flex-shrink: 0; background: var(--surface-2); color: #ff8b96;
  border: 1px solid rgba(255, 71, 87, 0.25); border-radius: 7px;
  font-size: 13px; font-weight: 500; padding: 8px 14px; min-height: 38px;
  transition: background var(--transition);
}
.btn-danger:hover { background: rgba(255, 71, 87, 0.12); }
.btn-danger:disabled { opacity: 0.5; cursor: not-allowed; }
.empty-state { text-align: center; padding: 28px 0; color: var(--text-dim); font-size: 14px; }
.skeleton {
  height: 66px; border-radius: var(--radius-sm); margin-bottom: 12px;
  background: linear-gradient(90deg, var(--bg) 25%, var(--surface-2) 50%, var(--bg) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.hidden { display: none !important; }

/* ── Hero: сетка и фоновые пятна ───────────────────── */
.hero { text-align: left; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-copy h1, .hero-copy .hero-sub { margin-left: 0; margin-right: 0; max-width: none; }
.hero-copy .hero-actions { justify-content: flex-start; }
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.35;
  pointer-events: none; animation: blob-drift 14s ease-in-out infinite alternate;
}
.hero-blob-1 { width: 480px; height: 480px; top: -160px; left: -120px; background: var(--accent); }
.hero-blob-2 { width: 420px; height: 420px; bottom: -180px; right: -100px; background: #0891b2; animation-delay: -7s; }
@keyframes blob-drift { to { transform: translate(50px, 40px) scale(1.12); } }

.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: live-pulse 1.6s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.6); }
  50% { box-shadow: 0 0 0 7px rgba(255, 71, 87, 0); }
}

/* ── Макет оверлея стрима ──────────────────────────── */
.hero-visual { position: relative; }
.overlay-frame {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 5; max-height: 540px; width: 100%;
  background:
    radial-gradient(320px 220px at 70% 20%, rgba(37, 244, 238, 0.08), transparent),
    radial-gradient(300px 260px at 20% 85%, rgba(255, 71, 87, 0.1), transparent),
    linear-gradient(160deg, #181828, #101018);
  border: 1px solid var(--border); border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  padding: 16px;
  display: flex; flex-direction: column;
}
.of-topbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.of-live {
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 800;
  letter-spacing: 1px; border-radius: 5px; padding: 3px 8px;
  animation: live-pulse 1.6s ease-in-out infinite;
}
.of-viewers { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-muted); }

.w-likes {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  background: rgba(255, 71, 87, 0.12); border: 1px solid rgba(255, 71, 87, 0.3);
  border-radius: 12px; padding: 10px 16px; margin-bottom: 12px;
  color: var(--accent); font-weight: 800; font-size: 20px;
}
.w-likes-heart { animation: heart-beat 1.1s ease-in-out infinite; }
@keyframes heart-beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.22); } 24% { transform: scale(1); } 36% { transform: scale(1.14); } }
.w-likes-num { font-variant-numeric: tabular-nums; }

.w-alert {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(90deg, rgba(192, 38, 211, 0.22), rgba(255, 71, 87, 0.16));
  border: 1px solid rgba(192, 38, 211, 0.35); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 12px;
  animation: alert-pop 6s ease-in-out infinite;
}
@keyframes alert-pop {
  0%, 7% { transform: translateY(-8px) scale(0.96); opacity: 0; }
  12%, 88% { transform: none; opacity: 1; }
  95%, 100% { transform: translateY(-6px); opacity: 0; }
}
.w-alert-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), #c026d3);
  display: grid; place-items: center; color: #fff;
}
.w-alert-title { font-size: 13px; font-weight: 700; }
.w-alert-sub { font-size: 12px; color: var(--text-muted); }

.w-chat { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; margin-bottom: 12px; min-height: 0; overflow: hidden; }
.chat-msg {
  align-self: flex-start; max-width: 90%;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px; padding: 0 11px; font-size: 12.5px; color: var(--text-muted);
  opacity: 0; max-height: 0; margin-top: -8px; overflow: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, max-height 0.35s ease, margin-top 0.35s ease,
    padding 0.35s ease, transform 0.3s ease;
}
/* открытое состояние: заезжает снизу и толкает предыдущие вверх; снятие .open — схлопывание */
.chat-msg.open {
  opacity: 1; max-height: 110px; /* запас на 2-3 строки при переносе на мобиле */
  margin-top: 0;
  padding-top: 7px; padding-bottom: 7px; transform: none;
}
.chat-msg b { color: var(--cyan); font-weight: 600; margin-right: 4px; }

.w-music {
  display: flex; align-items: center; gap: 12px;
  background: rgba(37, 244, 238, 0.06); border: 1px solid rgba(37, 244, 238, 0.2);
  border-radius: 12px; padding: 11px 14px; margin-bottom: 12px;
}
.w-music-bars { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.w-music-bars i {
  width: 4px; border-radius: 2px; background: var(--cyan);
  animation: eq 1s ease-in-out infinite alternate;
}
.w-music-bars i:nth-child(1) { height: 40%; animation-delay: 0s; }
.w-music-bars i:nth-child(2) { height: 90%; animation-delay: 0.2s; }
.w-music-bars i:nth-child(3) { height: 60%; animation-delay: 0.4s; }
.w-music-bars i:nth-child(4) { height: 80%; animation-delay: 0.1s; }
@keyframes eq { to { transform: scaleY(0.35); } }
.w-music-title { font-size: 13px; font-weight: 700; }
.w-music-sub { font-size: 11.5px; color: var(--text-dim); }

.w-goal { }
.w-goal-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.w-goal-num { color: var(--green); font-weight: 700; }
.w-goal-bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.w-goal-fill {
  height: 100%; width: 68%; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), #c026d3);
  animation: goal-grow 2.2s ease-out;
  position: relative; overflow: hidden;
}
.w-goal-fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  animation: goal-shine 2.6s ease-in-out infinite;
}
@keyframes goal-grow { from { width: 0; } }
@keyframes goal-shine { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

.hearts { position: absolute; right: 18px; bottom: 70px; width: 40px; height: 220px; pointer-events: none; }
.hh {
  position: absolute; bottom: 0; left: 50%;
  color: var(--accent); font-size: 16px; opacity: 0;
  animation: heart-fly 3.6s ease-in infinite;
}
.hh.h2 { animation-delay: 0.7s; font-size: 12px; color: #f472b6; }
.hh.h3 { animation-delay: 1.4s; font-size: 19px; }
.hh.h4 { animation-delay: 2.1s; font-size: 13px; color: #c026d3; }
.hh.h5 { animation-delay: 2.8s; font-size: 15px; }
@keyframes heart-fly {
  0% { transform: translate(-50%, 0) scale(0.6); opacity: 0; }
  10% { opacity: 0.9; }
  50% { transform: translate(calc(-50% - 14px), -110px) scale(1); }
  100% { transform: translate(calc(-50% + 10px), -210px) scale(1.15); opacity: 0; }
}


/* ── Темы оформления виджетов ──────────────────────── */
.themes-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.theme-card {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
  transition: transform var(--transition), border-color var(--transition);
}
.theme-card:hover { transform: translateY(-4px) rotate(-0.5deg); border-color: var(--text-dim); }
.theme-preview {
  height: 150px; display: grid; place-items: center; position: relative; overflow: hidden;
}
.tp-widget {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 21px; padding: 12px 20px; border-radius: 12px;
  font-variant-numeric: tabular-nums;
  transition: transform var(--transition);
}
.theme-card:hover .tp-widget { transform: scale(1.08); }
.tp-widget svg { animation: heart-beat 1.1s ease-in-out infinite; }

.th-neon .theme-preview { background: radial-gradient(220px 130px at 50% 60%, rgba(255, 71, 87, 0.25), transparent), #0a0a12; }
.th-neon .tp-widget {
  color: var(--cyan); background: rgba(255, 71, 87, 0.1);
  border: 1px solid var(--accent);
  box-shadow: 0 0 18px rgba(255, 71, 87, 0.5), inset 0 0 12px rgba(37, 244, 238, 0.15);
  text-shadow: 0 0 12px rgba(37, 244, 238, 0.8);
}
.th-neon .tp-widget svg { color: var(--accent); }

/* Dota 2 — как настоящая тема dota2: панель rgb(42,19,13), рамка #c0392b, текст #f5d0b8, шрифт-серифы */
.th-dota .theme-preview {
  background:
    radial-gradient(230px 140px at 50% 110%, rgba(192, 57, 43, 0.35), transparent 70%),
    linear-gradient(180deg, #17100e, #0d0705);
}
.th-dota .tp-widget {
  font-family: Georgia, 'Times New Roman', serif;
  color: #f5d0b8;
  background: rgba(42, 19, 13, 0.96);
  border: 1.5px solid rgba(192, 57, 43, 0.55);
  border-radius: 4px;
  box-shadow: 0 0 16px rgba(192, 57, 43, 0.2), 0 4px 20px rgba(0, 0, 0, 0.5);
}
.th-dota .tp-widget svg { color: #c0392b; }
.th-dota .tp-widget span { color: #f5d76e; }

/* Fortnite — как настоящая тема fortnite: панель rgb(26,11,62), жёлтая рамка, циан-детали */
.th-fortnite .theme-preview {
  background:
    radial-gradient(200px 130px at 80% 15%, rgba(92, 217, 255, 0.25), transparent),
    linear-gradient(160deg, #2b1465, #140833);
}
.th-fortnite .tp-widget {
  font-family: 'Arial Black', 'Segoe UI', sans-serif;
  color: #fff;
  background: rgba(26, 11, 62, 0.92);
  border: 2px solid rgba(255, 226, 74, 0.95);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 5, 40, 0.55), inset 0 0 0 1px rgba(92, 217, 255, 0.18);
}
.th-fortnite .tp-widget svg { color: #ffe24a; }

/* Комикс — как настоящая тема comic: белая панель, чёрный контур, офсетная тень 5px */
.th-comic .theme-preview {
  background:
    radial-gradient(rgba(17, 17, 17, 0.3) 2px, transparent 2px),
    linear-gradient(135deg, #ffd23f, #fb923c);
  background-size: 12px 12px, 100% 100%;
}
.th-comic .tp-widget {
  font-family: 'Arial Black', Arial, sans-serif;
  color: #111;
  background: rgba(255, 255, 255, 0.97);
  border: 2px solid rgba(0, 0, 0, 0.9);
  border-radius: 12px;
  box-shadow: 5px 5px 0 #111;
}
.th-comic .tp-widget svg { color: #e63946; }

.theme-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; border-top: 1px solid var(--border);
}
.theme-name { font-size: 14px; font-weight: 700; }
.theme-dots { display: flex; gap: 6px; }
.theme-dots i {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--c); border: 1px solid rgba(255, 255, 255, 0.15);
}
.themes-note { text-align: center; color: var(--text-dim); font-size: 13.5px; margin-top: 28px; }

/* ── Иллюстрации в карточках фич ───────────────────── */
.feature-art { margin-top: 18px; height: 56px; display: flex; align-items: flex-end; overflow: hidden; }
.art-widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; align-items: stretch; }
.mini-tile {
  border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border);
  transition: background var(--transition);
}
.feature:hover .mini-tile { background: var(--accent-soft); border-color: rgba(255, 71, 87, 0.3); }
.art-eq { gap: 4px; align-items: flex-end; }
.art-eq i {
  flex: 1; height: 30%; border-radius: 3px; background: var(--accent); opacity: 0.7;
  animation: eq 0.9s ease-in-out infinite alternate;
}
.art-eq i:nth-child(2n) { animation-delay: 0.25s; height: 70%; }
.art-eq i:nth-child(3n) { animation-delay: 0.45s; height: 50%; }
.art-eq i:nth-child(4n) { animation-delay: 0.1s; height: 90%; }
.art-wave { color: var(--cyan); align-items: center; }
.art-wave svg { width: 100%; height: 40px; opacity: 0.8; }
.art-goal { align-items: center; }
.mini-goal { width: 100%; height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.mini-goal-fill {
  height: 100%; width: 0; border-radius: 5px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
}
.feature:hover .mini-goal-fill, .feature.in .mini-goal-fill { width: 72%; transition: width 1.2s ease; }
.art-words { gap: 8px; align-items: center; flex-wrap: wrap; }
.art-words span {
  font-size: 12px; color: var(--text-muted);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px 10px;
}
.art-words span b { color: var(--text-dim); font-weight: 600; }
.art-words span.hot { color: var(--green); border-color: rgba(74, 222, 128, 0.4); }
.art-words span.hot b { color: var(--green); }
.art-bars { gap: 6px; align-items: flex-end; }
.art-bars i {
  flex: 1; height: var(--h, 50%); border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--cyan), rgba(37, 244, 238, 0.15));
  opacity: 0.75; transform-origin: bottom; transform: scaleY(0);
  transition: transform 0.6s ease;
}
.feature.in .art-bars i { transform: scaleY(1); }
.feature.in .art-bars i:nth-child(2) { transition-delay: 0.08s; }
.feature.in .art-bars i:nth-child(3) { transition-delay: 0.16s; }
.feature.in .art-bars i:nth-child(4) { transition-delay: 0.24s; }
.feature.in .art-bars i:nth-child(5) { transition-delay: 0.32s; }
.feature.in .art-bars i:nth-child(6) { transition-delay: 0.4s; }
.feature.in .art-bars i:nth-child(7) { transition-delay: 0.48s; }

/* ── Секция «Вживую» ───────────────────────────────── */
.live-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.live-copy h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; margin-bottom: 14px; letter-spacing: -0.01em; }
.live-copy p { color: var(--text-muted); margin-bottom: 22px; }
.live-list { list-style: none; }
.live-list li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: 14.5px; color: var(--text-muted); }
.live-list svg { flex-shrink: 0; margin-top: 4px; color: var(--green); }
.live-feed {
  display: flex; flex-direction: column; gap: 0;
  justify-content: flex-end; /* карточки прижаты к низу окна фиксированной высоты */
  overflow: hidden;
}
/* Карточка фиксированной высоты: 5 открытых карточек = константная высота ленты,
   ничего не «дышит» и не клипается при переносе текста на 2 строки */
.feed-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 0 16px; font-size: 14px; color: var(--text-muted);
  opacity: 0; height: 0; margin-top: 0; overflow: hidden;
  border-width: 0;
  transform: translateX(24px);
  transition: opacity 0.3s ease, height 0.35s ease, margin-top 0.35s ease,
    transform 0.3s ease, border-width 0.35s ease;
}
.feed-item.open {
  opacity: 1; height: 62px; margin-top: 12px; border-width: 1px; transform: none;
}
.live-feed .feed-item.open:first-child { margin-top: 0; }
.feed-item b { color: var(--text); font-weight: 600; }
.fi-ico {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 15px; font-style: normal;
  background: var(--surface-2);
}
.fi-like .fi-ico { color: var(--accent); background: var(--accent-soft); }
.fi-gift .fi-ico { background: rgba(192, 38, 211, 0.15); }
.fi-don .fi-ico { color: var(--green); background: rgba(74, 222, 128, 0.12); font-weight: 800; }
.fi-music .fi-ico { color: var(--cyan); background: rgba(37, 244, 238, 0.1); }
.fi-follow .fi-ico { color: #fbbf24; background: rgba(251, 191, 36, 0.12); }

/* ── Движ: живой градиент заголовка ────────────────── */
.hero h1 .grad {
  background: linear-gradient(90deg, var(--accent), var(--cyan), #c026d3, var(--accent));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: grad-flow 6s linear infinite;
}
@keyframes grad-flow { to { background-position: 300% 0; } }

/* ── Движ: пульс и блик на главной кнопке ──────────── */
.btn-primary { position: relative; overflow: hidden; animation: cta-pulse 2.4s ease-in-out infinite; }
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.55); }
  50% { box-shadow: 0 0 24px 4px rgba(255, 71, 87, 0.35); }
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: cta-shine 3.2s ease-in-out infinite;
}
@keyframes cta-shine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

/* ── Движ: 3D-наклон макета за курсором ────────────── */
.hero-visual { perspective: 1000px; }
.overlay-frame { transition: transform 0.15s ease-out; will-change: transform; }

/* ── Движ: прожектор на карточках за курсором ──────── */
.feature, .theme-card, .step { position: relative; overflow: hidden; }
.feature::before, .theme-card::before, .step::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(220px 220px at var(--mx, 50%) var(--my, 50%), rgba(255, 71, 87, 0.12), transparent 70%);
  opacity: 0; transition: opacity 0.25s ease;
}
.feature:hover::before, .theme-card:hover::before, .step:hover::before { opacity: 1; }
.feature > *, .step > * { position: relative; z-index: 1; }

/* ── Движ: иконки фич подпрыгивают ─────────────────── */
.feature:hover .feature-icon { animation: icon-pop 0.45s ease; }
@keyframes icon-pop {
  0% { transform: scale(1) rotate(0deg); }
  40% { transform: scale(1.18) rotate(-6deg); }
  70% { transform: scale(0.96) rotate(3deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* ── Движ: частицы, всплывающие по странице ────────── */
.fx-layer { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.fx-p {
  position: absolute; bottom: -4vh; left: var(--x, 50%);
  font-size: var(--s, 16px); color: var(--c, var(--accent));
  opacity: 0;
  animation: fx-rise var(--d, 11s) linear var(--delay, 0s) infinite;
  text-shadow: 0 0 12px currentColor;
}
@keyframes fx-rise {
  0% { transform: translateY(0) translateX(0) rotate(0deg) scale(0.7); opacity: 0; }
  8% { opacity: var(--o, 0.5); }
  50% { transform: translateY(-55vh) translateX(3vw) rotate(14deg) scale(1); }
  92% { opacity: var(--o, 0.5); }
  100% { transform: translateY(-108vh) translateX(-2vw) rotate(-10deg) scale(1.15); opacity: 0; }
}

/* ── Появление при скролле ─────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── Адаптив ───────────────────────────────────────── */
@media (max-width: 900px) {
  .features, .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 420px; margin: 0 auto; width: 100%; }
  .live-grid { grid-template-columns: 1fr; gap: 36px; }
  .themes-row { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; }
  .plan-featured { transform: none; }
  .plan-featured:hover { transform: translateY(-4px); }
}
@media (max-width: 640px) {
  .nav-burger { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg-soft); border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .nav-links .btn { margin-top: 10px; }
  .features, .steps { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 56px 0; }
  .cabinet-card { padding: 28px 20px; }
  .device { flex-direction: column; align-items: stretch; }
  /* Макет оверлея: жёсткая пропорция 4/5 на узком экране душит контент —
     отпускаем высоту, чату даём собственное окно */
  .overlay-frame { aspect-ratio: auto; max-height: none; }
  .w-chat { flex: none; height: 200px; }
  .hearts { bottom: 90px; }
  .feed-item { font-size: 13px; gap: 10px; }
  .feed-item.open { height: 58px; }
  .themes-row { grid-template-columns: 1fr 1fr; gap: 12px; }
}
