/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video { max-width: 100%; height: auto; }
svg { max-width: 100%; }

/* ─── TOKENS (миниапп 1-в-1) ─────────────────────────────── */
:root {
  --bg:        #0a0e1a;
  --bg-2:      #0f1629;
  --card:      rgba(255,255,255,0.04);
  --card-h:    rgba(255,255,255,0.07);
  --border:    rgba(255,255,255,0.08);
  --border-b:  rgba(255,255,255,0.15);
  --text:      #f0f4ff;
  --text-2:    rgba(240,244,255,0.55);
  --text-m:    rgba(240,244,255,0.3);
  --accent:    #6c8fff;
  --accent-g:  rgba(108,143,255,0.35);
  /* как в miniapp index.css */
  --accent-2:  #a78bfa;
  --accent-3:  #34d399;
  --purple:    #a78bfa;
  --green:     #34d399;
  --gold:      #fbbf24;
  --orange:    #fb923c;
  --pink:      #fb7185;
  --teal:      #22d3ee;
  --r:         18px;
  --r-sm:      12px;
  --shadow:    0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ─── BASE ────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overscroll-behavior-x: none;
}
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
  min-height: 100%;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-x: none;
  touch-action: pan-y;
}
main {
  overflow-x: clip;
  max-width: 100%;
}
.wrap {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-left: max(clamp(16px, 4.2vw, 30px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(16px, 4.2vw, 30px), env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

/* ─── BACKGROUND ORBS ────────────────────────────────────── */
.orb {
  position: fixed; border-radius: 50%;
  filter: blur(80px); pointer-events: none; z-index: 0; opacity: 0.35;
}
.orb-1 {
  width: 600px; height: 600px;
  background: rgba(108,143,255,0.3);
  top: -200px; left: -200px;
  animation: orbFloat 18s ease-in-out infinite;
}
.orb-2 {
  width: 500px; height: 500px;
  background: rgba(167,139,250,0.22);
  top: 40vh; right: -150px;
  animation: orbFloat 22s ease-in-out infinite reverse;
}
.orb-3 {
  width: 400px; height: 400px;
  background: rgba(52,211,153,0.15);
  bottom: 10vh; left: 10vw;
  animation: orbFloat 26s ease-in-out infinite 4s;
}

/* ─── PROGRESS ────────────────────────────────────────────── */
.pg {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 200;
  background: linear-gradient(90deg, var(--accent), var(--teal));
}

/* ─── NAV ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  z-index: 100;
  padding: 14px 0;
  padding-top: max(14px, env(safe-area-inset-top, 0px));
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
  overflow-x: clip;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.nav.scrolled {
  background: rgba(10,14,26,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.nav-in {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(10px, 2.5vw, 20px);
  min-width: 0;
  width: 100%;
}
.logo {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none; color: var(--text); font-weight: 800; font-size: 1rem;
  flex-shrink: 1;
  min-width: 0;
  max-width: 100%;
}
.logo-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.logo-img {
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(108,143,255,0.35));
}
.nav-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  justify-self: end;
  min-width: 0;
}
.nav-links a {
  text-decoration: none; color: var(--text-2); font-size: 0.88rem;
  padding: 7px 14px; border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--card); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  justify-self: end;
}
.nav-lang {
  appearance: none;
  font: inherit;
  cursor: pointer;
  margin: 0;
  border: 1px solid var(--border-b);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  border-radius: 10px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-lang:hover {
  color: var(--text);
  border-color: var(--border);
  background: var(--card);
}
.nav-cta {
  text-decoration: none; color: var(--text); font-size: 0.88rem; font-weight: 700;
  padding: 9px 20px; border-radius: 10px;
  background: var(--accent);
  box-shadow: 0 4px 20px rgba(108,143,255,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(108,143,255,0.45); }

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn-fill {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; color: #fff; font-weight: 700; font-size: 0.95rem;
  padding: 14px 28px; border-radius: var(--r-sm);
  background: var(--accent);
  box-shadow: 0 8px 28px rgba(108,143,255,0.38);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-fill:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(108,143,255,0.48); }
.btn-fill--large { padding: 17px 40px; font-size: 1.05rem; border-radius: var(--r); }

.btn-line {
  display: inline-flex; align-items: center;
  text-decoration: none; color: var(--text-2); font-size: 0.92rem; font-weight: 500;
  padding: 14px 22px; border-radius: var(--r-sm);
  border: 1px solid var(--border-b);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.btn-line:hover { color: var(--text); background: var(--card); border-color: var(--border-b); }

/* ─── LABELS ──────────────────────────────────────────────── */
.label {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px; font-size: 0.72rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.label-blue   { background: rgba(108,143,255,0.12); border: 1px solid rgba(108,143,255,0.25); color: var(--accent); }
.label-green  { background: rgba(52,211,153,0.1);  border: 1px solid rgba(52,211,153,0.22);  color: var(--green); }
.label-purple { background: rgba(167,139,250,0.12); border: 1px solid rgba(167,139,250,0.25); color: var(--purple); }

/* ─── GLASS CARDS ─────────────────────────────────────────── */
.glass {
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.25s, background 0.25s;
}
.glass:hover { background: var(--card-h); border-color: var(--border-b); }

/* ─── FADE IN ─────────────────────────────────────────────── */
.fade { opacity: 0; transition: opacity 0.55s ease; }
.fade.on { opacity: 1; }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.18s; }
.d3 { transition-delay: 0.28s; }
.d4 { transition-delay: 0.42s; }

/* ─── GRADIENT TEXT ───────────────────────────────────────── */
.grad {
  background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 50%, var(--teal) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ─── HERO ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 40px);
  padding-top: calc(100px + env(safe-area-inset-top, 0px));
  padding-bottom: max(48px, env(safe-area-inset-bottom, 0px));
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hero-left,
.hero-right {
  min-width: 0;
}

.hero-left { display: flex; flex-direction: column; }

.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 13px; border-radius: 999px; margin-bottom: 24px; width: fit-content;
  background: rgba(108,143,255,0.1); border: 1px solid rgba(108,143,255,0.22);
  font-size: 0.75rem; font-weight: 600; color: #a5b4fc; letter-spacing: 0.03em;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 8px var(--teal);
  animation: blink 2.4s ease-in-out infinite;
}

.hero-h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 800; line-height: 1.0; letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.hero-h1-line {
  display: block;
}

/* строка с печатью: не схлопывается при полном стирании текста */
.hero-h1-rotating {
  display: block;
  margin-top: 0;
  /* высота строки заголовка: пустой текст не схлопывает блок */
  min-height: 1em;
  line-height: 1;
  max-width: 100%;
}

.hero-typewriter {
  display: inline;
}

.hero-caret {
  display: inline-block;
  width: 3px;
  height: 0.82em;
  margin-left: 3px;
  background: linear-gradient(180deg, var(--accent), var(--purple));
  border-radius: 1px;
  vertical-align: -0.06em;
  animation: caretBlink 0.9s step-end infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero-caret { animation: none; opacity: 0.65; }
  .task-card-border-highlight::before { animation: none; opacity: 0.85; }
}

.hero-p {
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  color: var(--text-2); line-height: 1.75; max-width: 52ch; margin-bottom: 32px;
}

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }

/* stats */
.hero-stats {
  display: flex; align-items: center;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r);
  overflow: hidden;
}
.hstat { flex: 1; text-align: center; padding: 16px 12px; }
.hstat b {
  display: block; font-size: 1.6rem; font-weight: 800;
  color: var(--text); line-height: 1;
}
.hstat span { font-size: 0.74rem; color: var(--text-2); margin-top: 3px; display: block; }
.hsep { width: 1px; height: 36px; background: var(--border); flex-shrink: 0; }

/* ─── HERO: notification-стек заданий ─────────────────────── */
.hero-right {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: min(540px, 72vh);
}

.notif-stack {
  width: 100%;
  max-width: min(400px, 100%);
  margin: 0 auto;
  contain: layout;
}

.ns-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 0 2px;
}

.ns-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-m);
}

.ns-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  flex-shrink: 0;
  animation: nsDotPulse 2.2s ease-in-out infinite;
}

@keyframes nsDotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--green); }
  50% { opacity: 0.35; box-shadow: 0 0 3px var(--green); }
}

.ns-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: min(500px, 58dvh);
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

/* обёртка: анимация через FLIP в JS */
.ns-card {
  flex-shrink: 0;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ─── Badges / progress — как miniapp/src/index.css ─────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.badge-xs { padding: 2px 6px; font-size: 9px; letter-spacing: 0.2px; }
.badge-blue   { background: rgba(108,143,255,0.15); color: var(--accent); border: 1px solid rgba(108,143,255,0.25); }
.badge-green  { background: rgba(52,211,153,0.15); color: var(--accent-3); border: 1px solid rgba(52,211,153,0.25); }
.badge-gold   { background: rgba(251,191,36,0.15); color: var(--gold); border: 1px solid rgba(251,191,36,0.25); }
.badge-purple { background: rgba(167,139,250,0.15); color: var(--accent-2); border: 1px solid rgba(167,139,250,0.25); }
.badge-gray   { background: rgba(156,163,175,0.15); color: #9ca3af; border: 1px solid rgba(156,163,175,0.2); }

.td-id-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 1px 5px !important;
  letter-spacing: 0.02em !important;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-fill-green {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-3), #059669);
  transition: width 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-fill-purple {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-2), #7c3aed);
  transition: width 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes borderShimmerLanding {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.task-card-border-highlight {
  position: absolute;
  inset: 0;
  border-radius: var(--r);
  padding: 1.5px;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.task-card-border-highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 20%,
    var(--task-accent, #6c8fff) 30%,
    color-mix(in srgb, var(--task-accent, #6c8fff) 55%, transparent) 40%,
    transparent 50%,
    transparent 70%,
    var(--task-accent, #6c8fff) 80%,
    color-mix(in srgb, var(--task-accent, #6c8fff) 55%, transparent) 90%,
    transparent 100%
  );
  animation: borderShimmerLanding 4s linear infinite;
  will-change: transform;
}

/* карточка задания — как TaskCard в миниапке */
.td-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow, 0 8px 32px rgba(0,0,0,0.4));
  overflow: hidden;
  cursor: default;
}

.td-card-body {
  position: relative;
  z-index: 1;
}

.td-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.td-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--ic-bg, rgba(108,143,255,0.12));
  border: 1px solid var(--ic-b, rgba(108,143,255,0.25));
}

.td-icon--crystal {
  overflow: visible;
  background: var(--ic-bg, rgba(255,255,255,0.06));
  border: 1px solid var(--ic-b, rgba(255,255,255,0.12));
}

.td-icon--crystal svg {
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .td-icon--crystal svg {
    animation: crystalIconFloat 2.5s ease-in-out infinite;
  }
}

@keyframes crystalIconFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.06); }
}

.td-main { flex: 1; min-width: 0; }

.td-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}

.td-icon--premium {
  border-width: 2px;
}

.td-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.td-type {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-m);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.td-reward {
  text-align: right;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}

.td-stars-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.td-stars-amt {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent-3);
  letter-spacing: 0.2px;
  line-height: 1;
}

.td-stars-unit {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-3);
  opacity: 0.95;
}

.td-row {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  min-height: 20px;
}

.td-slots {
  color: var(--text-2);
  font-weight: 500;
}

.td-channel {
  color: var(--accent);
  font-family: ui-monospace, monospace;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 55%;
}

.td-foot {
  position: relative;
  z-index: 2;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
}

.td-foot-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 0;
  flex: 1;
  max-width: 78%;
  text-align: right;
}

.td-deadline-line {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  max-width: 100%;
  font-size: 11px;
  font-weight: 600;
}

.td-deadline-line svg { flex-shrink: 0; }

.td-time { color: var(--text-m); }

.td-deadline { color: var(--accent-3); }

.td-deadline--ok { color: var(--accent-2); }

.td-deadline--warn { color: var(--orange); }

/* ─── SECTION BANDS (фон на всю ширину экрана) ─────────────── */
.section-block {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 56px 0;
  box-sizing: border-box;
  overflow-x: clip;
}
.section-block--biz {
  background: linear-gradient(180deg, rgba(108, 143, 255, 0.08) 0%, rgba(10, 14, 26, 0) 68%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.section-block--perf {
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.06) 0%, rgba(10, 14, 26, 0) 68%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.section-block--eco {
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.07) 0%, rgba(10, 14, 26, 0) 68%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section-head {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.section-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-bottom: 5px;
  border-bottom: 2px solid currentColor;
}
.section-tag--blue { color: var(--accent); }
.section-tag--green { color: var(--green); }
.section-tag--purple { color: var(--purple); }
.section-kicker {
  font-size: clamp(0.88rem, 2.8vw, 0.95rem);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 38rem;
  margin: 0;
}

.s2 {
  font-size: clamp(1.65rem, 4.2vw, 2.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0;
}

/* ─── Блок выгод для бизнеса (вместо схемы-графика) ───────── */
.biz-value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.biz-value-card {
  padding: 22px 22px;
  border-radius: var(--r);
}
.biz-value-card h3 {
  font-size: clamp(1rem, 2.4vw, 1.12rem);
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.3;
  color: var(--text);
}
.biz-value-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.62;
}
@media (max-width: 640px) {
  .biz-value-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── SEO: темы из поиска ─────────────────────────────────── */
.section-block--seo {
  padding-top: 28px;
  padding-bottom: 48px;
}
.section-block--seo .section-head {
  margin-bottom: 18px;
}
.seo-lead {
  max-width: 42rem;
  margin: 0;
}
.seo-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 8px 0 16px;
}
.seo-chip {
  display: inline-block;
  font-size: 0.72rem;
  line-height: 1.35;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-b);
  color: var(--text-m);
  background: rgba(255, 255, 255, 0.035);
}
.seo-note {
  font-size: 0.78rem;
  color: var(--text-m);
  max-width: 44rem;
  line-height: 1.55;
  margin: 0;
}

/* ─── МЕТРИКИ + СЕТКА ПРЕИМУЩЕСТВ ──────────────────────────── */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.metric-tile {
  border-radius: var(--r);
  padding: 26px 18px;
  text-align: center;
}

.metric-tile b {
  display: block;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 6px;
  background: linear-gradient(180deg, #fff 0%, rgba(240,244,255,0.82) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-tile span {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.4;
}

.metric-static {
  background: none !important;
  -webkit-text-fill-color: var(--text) !important;
}

.metric-tile--text {
  text-align: left;
}
.metric-tile--text b.metric-static {
  font-size: clamp(0.95rem, 2.2vw, 1.08rem);
  line-height: 1.28;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

/* ─── Графики вовлечённости (секции бизнес / исполнители) ─── */
.engage-chart {
  border-radius: var(--r);
  padding: 18px 18px 16px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.engage-chart--bars {
  padding-bottom: 12px;
}
.engage-chart--flow .engage-chart-head {
  margin-bottom: 10px;
}
.engage-svg--flow {
  max-height: 150px;
}
.engage-chart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.engage-chart-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text);
}
.engage-chart-hint {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-m);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.engage-svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: 200px;
}
.engage-svg--bars {
  max-height: 132px;
}
.engage-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 14px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-2);
}
.engage-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.engage-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

.sm-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; flex-shrink: 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.benefit-card,
.feat-card {
  border-radius: var(--r-sm);
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.benefit-card h3,
.feat-card h3 { font-size: 0.98rem; font-weight: 700; line-height: 1.25; }
.benefit-card p,
.feat-card p  { font-size: 0.86rem; color: var(--text-2); line-height: 1.62; }

/* ─── FEATURES GRID ───────────────────────────────────────── */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* ─── CTA ─────────────────────────────────────────────────── */
.cta-section { padding: 80px 0 120px; position: relative; z-index: 1; }
.cta-box {
  position: relative; overflow: hidden;
  border-radius: 24px; border: 1px solid rgba(108,143,255,0.2);
  background: linear-gradient(145deg,
    rgba(108,143,255,0.08) 0%,
    rgba(167,139,250,0.05) 50%,
    rgba(10,14,26,0.7) 100%);
  text-align: center; padding: 80px 40px;
}
.cta-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  display: block;
  margin: 0 auto 20px;
  filter: drop-shadow(0 0 28px rgba(108,143,255,0.45));
}
.cta-h2 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800; letter-spacing: -0.03em; margin-bottom: 14px; line-height: 1;
}
.cta-sub {
  font-size: 1.05rem; color: var(--text-2); margin-bottom: 36px; max-width: 40ch; margin-left: auto; margin-right: auto;
}

/* ─── FOOTER ──────────────────────────────────────────────── */
.footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0 40px; border-top: 1px solid var(--border);
  font-size: 0.83rem; color: var(--text-2); position: relative; z-index: 1;
}
.foot-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); }
.foot-logo-img {
  border-radius: 7px;
  object-fit: cover;
}
.footer a { color: var(--text-2); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* ─── ANIMATIONS ──────────────────────────────────────────── */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
@keyframes caretBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  33%  { transform: translate(30px, -20px); }
  66%  { transform: translate(-20px, 15px); }
}

@keyframes orbFloatTight {
  0%, 100% { transform: translate(0, 0); }
  33%  { transform: translate(12px, -10px); }
  66%  { transform: translate(-10px, 8px); }
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .nav-in {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .nav-links {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: calc(96px + env(safe-area-inset-top, 0px));
  }
  .hero-right { min-height: auto; }
  .notif-stack { max-width: 100%; }
  .ns-feed { min-height: min(440px, 52dvh); }
  .metrics-row { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .section-block {
    padding: 48px 0;
  }
}

@media (max-width: 600px) {
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: stretch;
    background: transparent;
    border: none;
    overflow: visible;
    padding: 0;
  }
  .hero-stats .hsep {
    display: none;
  }
  .hero-stats .hstat {
    min-width: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 14px 10px;
    box-sizing: border-box;
  }
  .hero-stats .hstat:last-child {
    grid-column: 1 / -1;
  }
  .hero-stats .hstat b {
    font-size: 1.32rem;
  }
  .hero-stats .hstat span {
    font-size: 0.7rem;
    line-height: 1.35;
  }
  .wrap {
    padding-left: max(clamp(20px, 5.5vw, 26px), env(safe-area-inset-left, 0px));
    padding-right: max(clamp(20px, 5.5vw, 26px), env(safe-area-inset-right, 0px));
  }
  .orb { animation-name: orbFloatTight; }
  /* верхний бейдж героя (без .badge-xs у карточек) */
  section.hero .badge:not(.badge-xs) {
    max-width: 100%;
    white-space: normal;
    align-self: flex-start;
    text-align: left;
  }
  .hero-h1 {
    font-size: clamp(1.85rem, 8.2vw, 2.65rem);
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .hero-p { max-width: 100%; }
  .td-title { font-size: 13px; }
  .ns-feed { min-height: min(380px, 48dvh); gap: 8px; }
  .feat-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 48px max(16px, env(safe-area-inset-left)) 48px max(16px, env(safe-area-inset-right)); }
  .hero-btns { flex-direction: column; }
  .btn-fill, .btn-line { justify-content: center; width: 100%; max-width: 100%; box-sizing: border-box; }
  .footer {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding-bottom: max(32px, calc(24px + env(safe-area-inset-bottom, 0px)));
  }
  .nav-cta { padding: 8px 14px; font-size: 0.82rem; }
  .nav-lang { padding: 7px 10px; font-size: 0.72rem; }
  .section-block {
    padding: 38px 0;
  }
  .section-head {
    margin-bottom: 20px;
    gap: 8px;
  }
  .engage-chart {
    padding: 14px 14px 12px;
    margin-bottom: 16px;
  }
  .engage-svg {
    max-height: 168px;
  }
  .engage-svg--bars {
    max-height: 100px;
  }
  .metrics-row {
    margin-bottom: 14px;
    gap: 10px;
  }
  .cta-section { padding: 64px 0 max(96px, calc(72px + env(safe-area-inset-bottom, 0px))); }
}

@media (max-width: 380px) {
  .logo { font-size: 0.88rem; gap: 6px; }
  .logo-img { width: 28px; height: 28px; }
}
