:root {
  --bg: #f5f9ff;
  --bg-alt: #fbfdff;
  --bg-muted: #eef4fb;
  --surface: rgba(253, 254, 255, 0.96);
  --surface-strong: #fdfeff;
  --surface-dark: #0b0e14;
  --surface-dark-soft: #11161f;
  --surface-dark-card: #151b26;
  --surface-dark-border: rgba(255, 255, 255, 0.08);
  --text: #1f2937;
  --text-strong: #111827;
  --muted: #1a1e25;
  --muted-soft: #353b45;
  --line: #e3e8f0;
  --line-soft: #eef1f6;
  --primary: #1a5cff;
  --primary-strong: #0f49d5;
  --primary-soft: rgba(26, 92, 255, 0.08);
  --accent: #7a5cff;
  --brand-pink: #cf5dff;
  --accent-soft: rgba(122, 92, 255, 0.1);
  --success: #0fb97a;
  --success-soft: rgba(15, 185, 122, 0.1);
  --warning: #f59e0b;
  --warning-soft: rgba(245, 158, 11, 0.12);
  --danger: #ef4444;
  --blue-soft: #60a5fa;
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  /* Тень облегчена: прежняя 0 18px 40px/0.06 заметно подкрашивала фон под
     блоками карточек, и эта тёмная полоса читалась как «разграничитель» между
     секциями на мобилке. Лёгкая тень + бордер карточкам достаточно. */
  --shadow-soft: 0 10px 26px rgba(16, 24, 40, 0.035);
  --shadow-medium: 0 24px 56px rgba(16, 24, 40, 0.08);
  --shadow-large: 0 36px 88px rgba(6, 11, 20, 0.14);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --container: 1160px;
  --site-shift-x: -32px;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior: none;
}

body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  /* Единый ровный фон всей страницы — без градиента и без стыков между секциями */
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
  touch-action: pan-y;
  overscroll-behavior: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none !important; }
}

/* Pull-to-refresh (кастомный, работает и на iOS) */
#ptr {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 0;
  overflow: hidden;
  pointer-events: none;
  will-change: height;
  transition: height 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}
#ptr .ptr-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.18);
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.18s ease;
}
#ptr.is-refreshing .ptr-icon {
  opacity: 1 !important;
  animation: ptr-spin 0.7s linear infinite;
}
@keyframes ptr-spin {
  to { transform: rotate(360deg); }
}

img {
  display: block;
  max-width: 100%;
}

main,
section,
header,
footer {
  max-width: 100%;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.page-glow {
  display: none;
}

.page-glow-left {
  top: -140px;
  left: -120px;
  background: rgba(26, 92, 255, 0.22);
  animation: page-glow-drift-left 24s ease-in-out infinite;
}

.page-glow-right {
  top: 260px;
  right: -140px;
  background: rgba(122, 92, 255, 0.2);
  animation: page-glow-drift-right 28s ease-in-out infinite;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  max-width: calc(100% - 48px);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  transform: translateX(var(--site-shift-x));
}

.section {
  padding: 20px 0;
}

.section-kicker-accent {
  color: var(--accent);
}

.section-kicker-accent::before {
  background: linear-gradient(90deg, var(--accent), var(--primary));
}

/* Announcement bar */
.announce-bar {
  position: relative;
  z-index: 20;
  background: linear-gradient(90deg, #0f1a33 0%, #152245 100%);
  color: #e6ecf8;
  font-size: 13px;
}

.announce-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 9px 0;
  flex-wrap: wrap;
  text-align: center;
}

.announce-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.announce-text {
  color: #d8dff0;
}

.announce-link {
  color: #fff;
  font-weight: 700;
}

.announce-link:hover,
.announce-link:focus-visible {
  color: #b7c5ff;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 16px 0;
  background: rgba(228, 238, 255, 0.82);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.site-header.is-scrolled {
  background: rgba(225, 236, 255, 0.92);
  border-color: rgba(201, 219, 252, 0.95);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
}

.header-shell,
.site-nav,
.header-actions,
.hero-actions,
.final-actions,
.app-tabs {
  display: flex;
  align-items: center;
}

.header-shell {
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-strong);
}

.site-nav {
  gap: 6px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text-strong);
  background: rgba(26, 92, 255, 0.05);
}

.header-actions,
.hero-actions,
.final-actions {
  gap: 10px;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.button-lg {
  min-height: 50px;
  padding: 0 22px;
  font-size: 15px;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: 0 10px 24px rgba(26, 92, 255, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 14px 32px rgba(26, 92, 255, 0.28);
}

.button-secondary {
  color: var(--text-strong);
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--shadow-xs);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(26, 92, 255, 0.4);
  color: var(--primary);
}

.button-ghost {
  color: var(--text-strong);
  background: transparent;
  border-color: transparent;
}

.button-ghost:hover,
.button-ghost:focus-visible {
  color: var(--primary);
  background: var(--primary-soft);
}

.menu-toggle {
  display: none;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text-strong);
  font-weight: 700;
  font-size: 14px;
}

/* Hero */
.hero {
  padding-top: 24px;
  padding-bottom: 56px;
}

.hero-copy h1,
.hero-copy h2 {
  margin-top: 0;
}

.hero .hero-text {
  margin-top: 18px;
  max-width: 560px;
}

.hero-actions {
  margin-top: 22px;
}

.hero-trust {
  margin-top: 22px;
}

.hero-grid,
.signal-scene,
.connect-grid,
.feature-grid,
.workflow-steps {
  display: grid;
  gap: 36px;
}

.hero-grid > *,
.section-head > *,
.signal-scene > *,
.final-card > *,
.app-demo-layout > *,
.workflow-result-grid > *,
.footer-grid > *,
.pulse-shell > * {
  min-width: 0;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.22fr) minmax(340px, 430px);
  align-items: start;
  gap: 44px;
}

.hero .hero-grid {
  padding-left: 48px;
}

.hero .hero-copy h2 {
  font-size: clamp(38px, 4.8vw, 56px);
  letter-spacing: 0;
  overflow-wrap: normal;
  text-wrap: balance;
  user-select: text;
}

.hero .hero-text {
  max-width: 700px;
  font-size: 18px;
  overflow-wrap: normal;
  user-select: text;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-xs);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--brand-pink));
  box-shadow: 0 0 0 4px rgba(26, 92, 255, 0.12);
}

.hero-visual {
  position: relative;
  display: grid;
  justify-items: center;
  justify-self: end;
  width: fit-content;
  gap: 14px;
  padding: 9px;
  border-radius: 24px;
}

/* Hero: реальная демо-Главная в чистой карточке (без рамки телефона),
   некликабельно, чуть меньше. iframe рендерится в логической ширине 390px
   и масштабируется вниз — без переносов текста. */
.hero-screen {
  width: 290px;
  max-width: 100%;
  aspect-ratio: 390 / 772;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #eef3f9;
  box-shadow: var(--shadow-large);
}

.hero-screen-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Мобайл: карточка по центру (не прижата вправо как на десктопе) и крупнее */
@media (max-width: 760px) {
  .hero-screen {
    width: 240px;
    margin: 0 auto;
    border-radius: 20px;
  }
  .hero-visual {
    padding: 7px;
    justify-self: center;
  }
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translateX(0);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(26, 92, 255, 0.055) 0%, rgba(207, 93, 255, 0.038) 12%, transparent 28%),
    linear-gradient(270deg, rgba(26, 92, 255, 0.055) 0%, rgba(207, 93, 255, 0.038) 12%, transparent 28%),
    linear-gradient(180deg, rgba(26, 92, 255, 0.065) 0%, rgba(207, 93, 255, 0.048) 18%, transparent 40%),
    linear-gradient(0deg, rgba(26, 92, 255, 0.065) 0%, rgba(207, 93, 255, 0.048) 18%, transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 255, 0.92));
  background-size: 140% 100%, 140% 100%, 100% 140%, 100% 140%, 100% 100%;
  background-position: 0% 50%, 100% 50%, 50% 0%, 50% 100%, 50% 50%;
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-medium);
  overflow: hidden;
  animation: hero-frame-flow 7s ease-in-out infinite;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  transform: translateX(0);
  border-radius: 23px;
  background:
    linear-gradient(90deg, transparent 0%, rgba(96, 165, 250, 0.06) 8%, rgba(207, 93, 255, 0.052) 16%, transparent 30%),
    linear-gradient(270deg, transparent 0%, rgba(96, 165, 250, 0.06) 8%, rgba(207, 93, 255, 0.052) 16%, transparent 30%),
    linear-gradient(180deg, transparent 0%, rgba(96, 165, 250, 0.078) 10%, rgba(207, 93, 255, 0.064) 20%, transparent 40%),
    linear-gradient(0deg, transparent 0%, rgba(96, 165, 250, 0.078) 10%, rgba(207, 93, 255, 0.064) 20%, transparent 40%);
  background-size: 180% 100%, 180% 100%, 100% 180%, 100% 180%;
  background-position: 0% 50%, 100% 50%, 50% 0%, 50% 100%;
  pointer-events: none;
  animation: hero-frame-flow 7s ease-in-out infinite;
}

.hero-visual .hero-device {
  transform: translateX(0);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
  margin-bottom: 18px;
}

/* Описание секции — под заголовком (не справа), ограничено по ширине для читаемости */
.section-head p {
  max-width: 760px;
}

.hero-copy h1,
.hero-copy h2,
.section-head h2,
.final-card h2 {
  margin: 18px 0 0;
  font-size: clamp(40px, 5.2vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  color: var(--text-strong);
}

.hero-copy h1,
.hero-copy h2,
.section-head h2,
.final-card h2,
.app-demo-copy h3,
.button {
  overflow-wrap: anywhere;
}

.section-head h2,
.final-card h2 {
  margin-top: 0;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.04em;
}

.hero-text,
.section-head p,
.final-card p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
}

.hero-actions {
  margin-top: 26px;
  flex-wrap: wrap;
}

/* Единая панель в рамке: ячейки равной ширины, разделённые тонкими линиями
   (gap:1px на фоне-линии + overflow:hidden со скруглением). Так оформляют
   спец-панели Linear/Vercel/Stripe — чисто, ровно, без отдельных «боксов». */
.hero-scale {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 26px;
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.hero-scale-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  padding: 18px 18px 19px;
  background: #fff;
  position: relative;
  transition: background 0.18s ease;
}

@media (hover: hover) {
  .hero-scale-item:hover { background: var(--bg-muted); }
  .hero-scale-item:hover .hero-scale-icon {
    border-color: rgba(26, 92, 255, 0.34);
  }
}

.hero-scale-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

/* Чек-маркер «включено» (как у MPSTATS): круглый брендовый чип с галочкой,
   мягкий градиент-подложка в тон бренда, тонкий брендовый кант. */
.hero-scale-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: var(--primary);
  background: linear-gradient(180deg, #ffffff 0%, #eef3ff 100%);
  border: 1px solid rgba(26, 92, 255, 0.2);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), inset 0 1px 0 #fff;
  flex-shrink: 0;
  transition: border-color 0.18s ease;
}

.hero-scale-term {
  color: var(--muted-soft);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-scale-item strong {
  color: var(--text-strong);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.hero-scale-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.hero-microcopy,
.demo-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line-soft);
  list-style: none;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}

.hero-trust svg {
  color: var(--primary);
  flex: 0 0 auto;
}

/* Metrics strip */
.metrics-strip {
  padding: 0 0 32px;
  position: relative;
  z-index: 1;
}

.metrics-grid {
  width: min(calc(var(--container) + 48px), calc(100% - 48px));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 18px 18px 42px;
  transform: translateX(calc(var(--site-shift-x) + 56px));
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #fff 0%, #fafbfe 100%);
  box-shadow: var(--shadow-soft);
}

.metric-card {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--line-soft);
}

.metric-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text-strong);
  line-height: 1;
}

.metric-label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

/* Feature cards */
.feature-card,
.workflow-step,
.telegram-thread,
.connect-step,
.final-card,
.app-demo-shell,
.security-card,
.pricing-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.96));
  box-shadow: var(--shadow-soft);
}

.feature-card,
.workflow-step,
.connect-step,
.security-card {
  border-radius: var(--radius-md);
}

.app-demo-shell,
.telegram-thread,
.workflow-result-shell,
.final-card,
.pricing-card {
  border-radius: var(--radius-xl);
}

.feature-card {
  padding: 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

#features .feature-grid-four {
  padding-left: 26px;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  border-color: rgba(26, 92, 255, 0.16);
}

.feature-num {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.feature-num::after {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  opacity: 0.4;
  transform: translateY(-6px);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: #eef3fb;
  border: 1px solid rgba(26, 92, 255, 0.10);
  color: var(--primary);
}

@media (max-width: 760px) {
  .feature-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
    border-radius: 10px;
  }
  .feature-icon svg { width: 20px; height: 20px; }
}

.feature-icon-blue {
  background: var(--primary-soft);
  color: var(--primary);
}

.feature-icon-purple,
.feature-icon-amber,
.feature-icon-green {
  background: var(--primary-soft);
  color: var(--primary);
}

.feature-card h3,
.workflow-step h3,
.connect-step h3,
.security-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--text-strong);
}

.feature-card p,
.workflow-step p,
.connect-step p,
.security-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* Mini device preview вЂ” DO NOT restructure, keep sizes */
.device-shell {
  width: 100%;
  max-width: 368px;
  margin-left: auto;
  margin-right: auto;
  padding: 9px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(8, 11, 18, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-large);
}

.device-topline {
  display: flex;
  justify-content: center;
  padding: 4px 0 9px;
}

.device-topline span {
  width: 92px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.device-screen {
  overflow: hidden;
  border-radius: 20px;
  padding: 14px;
  background: linear-gradient(180deg, #f5f8fc 0%, #eef3f9 100%);
  color: #152033;
}

.mini-header h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.mini-header small,
.mini-muted,
.mini-tile small,
.mini-nav span {
  color: #94a3b8;
}

.mini-header small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
}

.mini-hero-card,
.mini-card {
  margin-top: 10px;
  padding: 15px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.05);
}

.mini-hero-card {
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.07), transparent 42%),
    linear-gradient(160deg, rgba(37, 99, 235, 0.05), rgba(16, 185, 129, 0.04)), #ffffff;
}

.mini-label,
.mini-tile-label,
.mini-chart-caption {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mini-legend {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.mini-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ml-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.ml-blue { background: #2563eb; }
.ml-green { background: #16a34a; }

.mini-sec-hd {
  margin-top: 13px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.mini-drr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
}

.mini-drr-vals {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
}

.mini-drr-vals b {
  font-weight: 800;
}

.mini-drr-vals .green {
  color: #16a34a;
}

.mini-amount {
  margin-top: 5px;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 700;
}

.mini-sub {
  margin-top: 3px;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}

.mini-delta {
  display: inline-flex;
  margin-top: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.mini-delta.positive {
  color: #16a34a;
  background: rgba(22, 163, 74, 0.1);
}

.mini-delta.negative {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
}

.mini-tiles .mini-tile:nth-child(1) strong {
  color: #2563eb;
}

.mini-tiles .mini-tile:nth-child(3) strong {
  color: #16a34a;
}

.mini-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 13px;
}

.mini-tile {
  padding: 11px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f4f7fc;
}

.mini-tile strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.mini-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
}

.mini-chart {
  width: 100%;
  height: auto;
  margin-top: 10px;
}

.mini-chart path {
  fill: none;
  stroke: rgba(15, 23, 42, 0.07);
  stroke-width: 1;
}

.chart-line {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-line-blue {
  stroke: #2563eb;
}

.chart-line-green {
  stroke: #16a34a;
}

.mini-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  text-align: center;
}

.hero-visual .demo-note {
  width: 100%;
  max-width: 360px;
  margin: 0;
  padding: 11px 14px;
  border-radius: 18px;
  border: 1px solid rgba(26, 92, 255, 0.08);
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.06);
}

.mini-nav .is-active {
  color: var(--accent);
  font-weight: 700;
}

.feature-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 920px) {
  .feature-grid-three {
    grid-template-columns: 1fr;
  }
}

/* App demo (iframe) */
.app-demo {
  display: grid;
  gap: 14px;
}

.app-tabs {
  gap: 8px;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
}

.app-tabs * {
  touch-action: pan-x;
}

.app-tabs::-webkit-scrollbar {
  display: none;
}

.app-tab {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.app-tab:hover,
.app-tab:focus-visible {
  transform: translateY(-1px);
  color: var(--text-strong);
  border-color: rgba(26, 92, 255, 0.25);
}

.app-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(26, 92, 255, 0.22);
}

/* Без большой карточки-обёртки: текст и телефон сидят на фоне секции,
   скругления остаются только на карточках 01-03 — больше воздуха, по-финтеховски. */
.app-demo-shell {
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.app-demo-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  max-width: 760px;
}

.app-demo-note .dot {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}

.app-demo-note p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.app-demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 56px;
  align-items: center;
}

.app-demo-copy {
  display: grid;
  gap: 16px;
  align-content: center;
  padding-top: 0;
}

/* Кикер «Интерфейс» вплотную к заголовку (стоит в копи-колонке) */
.app-demo-copy .section-kicker {
  margin-bottom: -6px;
}

.app-demo-copy .app-story-list {
  margin-top: 6px;
}

.app-demo-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.app-demo-kicker::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  flex: 0 0 auto;
}

.app-demo-copy h3 {
  margin: 0;
  max-width: 640px;
  font-size: clamp(29px, 3.2vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--text-strong);
}

.app-demo-lead {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 17.5px;
  line-height: 1.66;
}

.app-story-list {
  display: grid;
  gap: 14px;
  max-width: 560px;
}

.app-story-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.app-story-card span,
.workflow-result-card span,
.workflow-ai-card span,
.workflow-result-head span,
.app-demo-caption span {
  display: block;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.app-story-card strong,
.workflow-result-head strong {
  display: block;
  margin-top: 6px;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.app-story-card p,
.workflow-ai-card p,
.app-demo-caption p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* Стори-карточки слева — подписи чуть крупнее (только эта секция, не workflow) */
.app-story-card span { font-size: 12px; }
.app-story-card strong { font-size: 19px; margin-top: 7px; }
.app-story-card p { font-size: 14.5px; }

/* Подпись над демо-телефоном — мелкая eyebrow-надпись, разрядка вместо жирности.
   Малый нижний отступ + лёгкий подъём stage приподнимают мини-апп. */
.app-demo-toplabel {
  margin: 0 0 8px;
  text-align: center;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7280;
}

.app-demo-stage {
  position: relative;
  width: 320px !important;
  max-width: 100%;
  justify-self: center;
  margin: -10px auto 0;
}

/* Корпус iPhone: фикс. размер, тёмный титановый бортик, Dynamic Island.
   Экран = окно с overflow:hidden; iframe рендерится в ЛОГИЧЕСКОЙ ширине 390px
   (как настоящий телефон, без переносов текста) и масштабируется вниз scale().
   translateY сверху — отступ под Dynamic Island, чтобы он не перекрывал шапку
   приложения (как safe-area в Telegram). */
.app-demo-frame-shell {
  position: relative;
  width: 320px !important;
  max-width: 100%;
  height: 660px !important;
  aspect-ratio: auto !important;
  padding: 12px !important;
  border-radius: 54px !important;
  /* Корпус слегка тонирован в фирменные сине-фиолетовые (был нейтральный титан):
     тёмный бренд-градиент + мягкое фирменное свечение по краю + тонкий
     primary→accent кант. «Разукрашено слегка», премиальный вид сохранён. */
  background: linear-gradient(155deg, #2c3566 0%, #1b1d33 48%, #0b0c16 100%);
  box-shadow:
    0 28px 62px rgba(26, 52, 150, 0.32),
    0 0 40px rgba(122, 92, 255, 0.30),
    0 4px 10px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1.5px rgba(140, 120, 255, 0.22),
    inset 0 0 16px rgba(0, 0, 0, 0.55);
}

/* Цветной фон-«рамка» вокруг телефона-демки сделан как СОБСТВЕННЫЙ фон+padding
   стейджа (а не отдельный позиционированный ::before, который съезжал вбок и
   давал неравные поля). Padding симметричен по построению → перекоситься не
   может; телефон центрируется flex'ом. width:fit-content — панель обнимает
   телефон, не на всю ширину. Подпись «Демонстрация сервиса» — на этой панели. */
@media (max-width: 820px) {
  #miniapp .app-demo-layout {
    grid-template-columns: 1fr !important;
  }
  #miniapp .app-demo-stage {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    /* На всю ширину контента (телефон центрируется внутри flex'ом). Фон —
       просто бледно-синий однотонный (без градиента/фиолетового). */
    width: 100% !important;
    max-width: 100% !important;
    margin: -22px auto 0 !important;
    padding: 22px 16px 28px !important;
    background: rgba(26, 92, 255, 0.07) !important;
    border: 1px solid rgba(40, 90, 255, 0.10) !important;
    border-radius: 28px !important;
  }
  /* Убираем «вторую рамку» — обёртка демки (.app-demo-shell/.app-demo) рисовала
     белую скруглённую карточку (тень+радиус) под синей панелью. Делаем её
     полностью прозрачной без тени/бордера. */
  #miniapp .app-demo-shell,
  #miniapp .app-demo {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding-bottom: 0 !important;
  }
}

.app-demo-island {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 24px;
  background: #000;
  border-radius: 14px;
  z-index: 4;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.app-demo-screen {
  position: absolute;
  inset: 12px;
  border-radius: 44px;
  overflow: hidden;
  background: #0b0e14;
}

.app-demo-frame {
  display: block;
  width: 390px !important;
  height: 838px !important;
  min-height: 0 !important;
  max-width: none !important;
  border: 0;
  background: #0b0e14;
  transform: scale(0.7590) !important;
  transform-origin: 0 0;
}

/* Узкие экраны: компактный телефон, чтобы фикс. высота не распирала */
@media (max-width: 440px) {
  /* Меньший телефон через реальные размеры (без transform/zoom на родителе —
     рамка не сдвигается). iframe слегка перекрывает экран (scale 0.658),
     чтобы у края рамки не было щели. */
  .app-demo-shell { padding: 0 !important; }
  .app-demo-stage { width: 272px !important; }
  .app-demo-frame-shell {
    width: 272px !important;
    height: 564px !important;
    padding: 8px !important;
    border-radius: 42px !important;
    aspect-ratio: auto !important;
  }
  .app-demo-island { top: 11px; width: 73px; height: 20px; border-radius: 11px; }
  .app-demo-screen { inset: 8px; border-radius: 36px; }
  .app-demo-frame {
    height: 837px !important;
    transform: scale(0.658) !important;
  }
}

.miniapp-live-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0b0e14;
}

.app-demo-caption {
  max-width: 340px;
  margin: 14px auto 0;
  text-align: left;
}

.app-demo-caption span {
  color: var(--accent);
}

/* Workflow */
.workflow-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.workflow-step,
.connect-step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  padding: 22px;
}

.workflow-step span,
.connect-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
}

.signal-scene {
  grid-template-columns: minmax(260px, 320px) 56px minmax(0, 1fr);
  align-items: center;
}

.telegram-thread {
  padding: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.thread-head {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.thread-bubble {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 18px 18px 18px 8px;
  background: #eef4ff;
  font-size: 15px;
  line-height: 1.68;
  color: var(--text-strong);
}

.thread-brand-value,
.workflow-result-card .is-brand {
  font-weight: 700;
}

.signal-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
}

.signal-arrow svg {
  display: block;
}

.workflow-result-shell {
  padding: 26px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.workflow-result-head {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(26, 92, 255, 0.08);
}

.workflow-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.workflow-result-card,
.workflow-ai-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
}

.workflow-result-card strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-strong);
}

.workflow-result-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.workflow-result-card .is-warn {
  color: var(--warning);
}

.workflow-ai-card {
  margin-top: 14px;
  background: #f6f9ff;
  border-color: rgba(26, 92, 255, 0.1);
}

/* ИИ-менеджер — отдельный чат, как в мини-аппе: шапка-градиент с аватаром,
   баблы пользователя/бота, аватар ✨ рядом с ответом, текст ответа с
   переносами (pre-wrap) — блоки 📊/✅ и пункты «• » реального ассистента. */
#workflow .section-head {
  gap: 16px;
}
.workflow-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 80px;
  align-items: stretch;
  margin-top: 28px;
}
.workflow-split .workflow-steps {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  /* верх первого шага опускаем под подпись «Демонстрация сервиса» справа,
     чтобы левая и правая колонки начинались на одном уровне */
  padding-top: 36px;
}
.manager-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.workflow-split .manager-demo {
  margin: 0;
}
.manager-demo-caption {
  margin: 0 0 8px;
  text-align: center;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7280;
}
@media (max-width: 600px) {
  /* На мобиле шаги в один столбец (на планшете остаются 2×2) */
  .workflow-split .workflow-steps {
    grid-template-columns: 1fr;
  }
}
.manager-chat {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-medium);
  overflow: hidden;
}
.manager-chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border-bottom: 1px solid var(--line-soft);
}
.manager-chat-ava {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.manager-chat-id {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.manager-chat-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong);
}
.manager-chat-status {
  font-size: 12px;
  color: var(--muted-soft);
}
.manager-chat-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 16px;
  background: var(--bg-muted);
}
.manager-chat-body .chat-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.manager-chat-body .chat-row.user {
  flex-direction: row-reverse;
}
.manager-chat-body .chat-ava {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.manager-chat-body .chat-msg {
  padding: 11px 14px;
  font-size: 13.5px;
  line-height: 1.62;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.manager-chat-body .chat-msg.user {
  max-width: 82%;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  font-weight: 500;
  border-radius: var(--radius-md) var(--radius-md) 4px var(--radius-md);
}
.manager-chat-body .chat-msg.bot {
  max-width: calc(100% - 36px);
  background: #fff;
  color: var(--text-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-md) var(--radius-md) var(--radius-md) 4px;
  box-shadow: var(--shadow-xs);
}
@media (max-width: 600px) {
  .manager-chat-body .chat-msg {
    font-size: 13px;
  }
  .manager-chat-body .chat-msg.user {
    max-width: 86%;
  }
}

/* Security */
.security-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.security-card {
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.security-card:hover {
  transform: translateY(-2px);
  border-color: rgba(26, 92, 255, 0.16);
  box-shadow: var(--shadow-medium);
}

.security-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 620px);
  gap: 20px;
  align-items: stretch;
  justify-content: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

#pricing .section-head {
  grid-template-columns: minmax(0, 680px);
  align-items: start;
  justify-content: start;
  max-width: var(--container);
  text-align: left;
}

#pricing .pricing-grid {
  grid-template-columns: minmax(0, 680px) minmax(360px, 1fr);
  align-items: center;
  gap: 34px;
  justify-content: start;
  max-width: var(--container);
  position: relative;
  isolation: isolate;
  margin-left: auto;
  margin-right: auto;
  transform: translateX(32px);
}

#pricing .pricing-visual {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  min-width: 0;
  margin-left: -10px;
}

#pricing .pricing-visual img {
  display: block;
  width: min(720px, 100%);
  height: auto;
  max-width: none;
  user-select: none;
  filter: drop-shadow(0 28px 54px rgba(26, 92, 255, 0.12));
}

#pricing .pricing-visual picture {
  display: block;
  width: min(720px, 100%);
}

#pricing .pricing-visual picture img {
  width: 100%;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  min-height: 0;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

#pricing .pricing-card {
  padding: 38px 34px;
  transform: translateX(-30px);
}

.pricing-card:hover {
  transform: translateX(-30px) translateY(-3px);
  box-shadow: var(--shadow-medium);
  border-color: rgba(26, 92, 255, 0.18);
}

.pricing-card-featured {
  position: relative;
  border-color: transparent;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, var(--primary), var(--accent)) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 28px 64px rgba(26, 92, 255, 0.18);
}

.pricing-card-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: none;
  pointer-events: none;
}

.pricing-ribbon {
  position: absolute;
  top: 22px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(26, 92, 255, 0.32);
  z-index: 2;
}

.pricing-head {
  position: relative;
  display: grid;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
  min-height: 0;
}

.pricing-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pricing-badge-muted {
  background: var(--bg-muted);
  color: var(--muted);
  border: 1px solid var(--line);
}

.pricing-card h3 {
  margin: 4px 0 0;
  font-size: 26px;
  letter-spacing: -0.03em;
  color: var(--text-strong);
}

.pricing-sub {
  margin: 0;
  min-height: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.pricing-price {
  position: relative;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 16px 0 0;
  min-height: 0;
}

.pricing-value {
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text-strong);
  word-break: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.pricing-value-text {
  font-size: clamp(22px, 1.7vw, 26px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.pricing-value-soft {
  color: var(--muted-soft);
  font-weight: 700;
}

.pricing-unit {
  flex: 1 1 100%;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.pricing-list {
  position: relative;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  flex: 1 1 auto;
}

.pricing-list li {
  position: relative;
  padding: 0 0 0 28px;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.55;
}

.pricing-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(26, 92, 255, 0.14);
}

.pricing-list li::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 7px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}

.pricing-cta {
  position: relative;
  margin-top: 16px;
  width: 100%;
}

.pricing-free-line {
  margin: 12px 0 0;
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 700;
}

.pricing-note {
  max-width: 720px;
  margin: 32px auto 0;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(26, 92, 255, 0.3);
  background: var(--primary-soft);
  color: var(--text-strong);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.pricing-card.is-locked {
  border-color: rgba(138, 150, 173, 0.34);
  box-shadow: 0 14px 32px rgba(16, 24, 40, 0.07);
}

.pricing-card.is-locked::after {
  content: "\01F512";
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 16px;
  opacity: 0.75;
}

.pricing-lock-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.pricing-cta-locked {
  pointer-events: none;
  opacity: 0.58;
  filter: grayscale(0.12);
}

/* Pulse */
.pulse-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.pulse-step {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 60px;
  align-items: center;
  justify-content: center;
}

.pulse-step-left {
  grid-template-columns: minmax(0, 420px) minmax(0, 400px);
}

.pulse-step-right {
  grid-template-columns: minmax(0, 400px) minmax(0, 420px);
}

.pulse-step-copy {
  max-width: 400px;
  color: var(--text);
  font-family: inherit;
}

.pulse-step-left .pulse-step-copy {
  justify-self: start;
  margin-left: 0;
}

.pulse-step-right .pulse-step-copy {
  justify-self: end;
  margin-right: 0;
}

.pulse-step-copy span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pulse-step-copy h3 {
  margin: 0;
  color: var(--text-strong);
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.pulse-step-copy p {
  margin: 14px 0 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.62;
}

.pulse-input-card,
.pulse-chart-card,
.pulse-history-card {
  width: min(440px, 100%);
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(76, 92, 126, 0.45);
  background:
    radial-gradient(circle at top right, rgba(40, 58, 93, 0.28), transparent 42%),
    linear-gradient(180deg, #121827, #0e1422);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 10px 20px rgba(8, 13, 24, 0.2);
  color: #e7ecff;
}

.pulse-input-card,
.pulse-history-card {
  justify-self: end;
  margin-left: 0;
}

.pulse-chart-card {
  justify-self: start;
  margin-right: 0;
}

.pulse-refresh-btn {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #4b5fff, #3657c8);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.pulse-input-head {
  margin-top: 12px;
  color: #9fb1da;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pulse-competitor-list {
  margin-top: 8px;
  display: grid;
  gap: 5px;
}

.pulse-competitor-item {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 6px;
  border: 1px solid rgba(90, 107, 145, 0.38);
  background: rgba(255, 255, 255, 0.025);
}

.pulse-competitor-thumb {
  width: 7px;
  height: 7px;
  border-radius: 1px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
}

.pulse-competitor-thumb.is-orange {
  background: linear-gradient(135deg, #ff8a3d, #d9540d);
}

.pulse-competitor-thumb.is-gold {
  background: linear-gradient(135deg, #f7b448, #ae6b12);
}

.pulse-competitor-thumb.is-blue {
  background: linear-gradient(135deg, #4f83ff, #2255bf);
}

.pulse-competitor-main {
  min-width: 0;
}

.pulse-competitor-title {
  display: flex;
  align-items: flex-start;
  gap: 3px;
  color: #f2f5ff;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 700;
}

.pulse-dot {
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  margin-top: 2px;
  flex: 0 0 auto;
}

.pulse-dot.is-green {
  background: #22c55e;
}

.pulse-dot.is-violet {
  background: #8b5cf6;
}

.pulse-dot.is-blue {
  background: #3b82f6;
}

.pulse-competitor-brand {
  margin-top: 1px;
  color: #9fb1da;
  font-size: 11px;
}

.pulse-competitor-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
}

.pulse-competitor-price strong {
  color: #f3f6ff;
  font-size: 17px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.pulse-competitor-price span {
  color: #7f8eb1;
  font-size: 11px;
  text-decoration: line-through;
}

.pulse-competitor-price em {
  padding: 1px 3px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.22);
  color: #4ade80;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
}

.pulse-competitor-meta {
  margin-top: 2.5px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #9fb1da;
  font-size: 11px;
}

.pulse-competitor-meta a,
.pulse-demo-link {
  margin-left: auto;
  color: #6d89ff;
  font-weight: 700;
  text-decoration: none;
}

.pulse-input-card button,
.pulse-demo-link {
  pointer-events: none;
  cursor: default;
}

.pulse-competitor-note {
  margin-top: 2px;
  color: #8ea1ca;
  font-size: 10px;
  line-height: 1.35;
}

.pulse-block-note {
  margin: 8px 0 10px;
  color: #8ea1ca;
  font-size: 11px;
  line-height: 1.45;
}

.pulse-add-competitor {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 6px;
}

.pulse-input-like {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(90, 107, 145, 0.38);
  background: #0b1120;
  color: #8ea1ca;
  font-size: 14px;
}

.pulse-add-btn,
.pulse-find-btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.pulse-add-btn {
  border-radius: 12px;
  background: linear-gradient(135deg, #6f59ff, #3068ff);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.pulse-find-btn {
  width: 100%;
  min-height: 40px;
  margin-top: 6px;
  border-radius: 12px;
  background: rgba(16, 36, 82, 0.82);
  color: #6d89ff;
  font-size: 13px;
  font-weight: 700;
}

.pulse-interface-wrap {
  margin-top: 18px;
}

.pulse-interface-card {
  margin: 0 auto;
  max-width: 820px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(76, 92, 126, 0.45);
  background:
    radial-gradient(circle at top right, rgba(40, 58, 93, 0.2), transparent 44%),
    linear-gradient(180deg, #121827, #0e1422);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 10px 20px rgba(8, 13, 24, 0.2);
}

.pulse-interface-card figcaption {
  margin-bottom: 8px;
  color: #9fb1da;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pulse-interface-card img {
  width: 100%;
  display: block;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pulse-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.pulse-card-head strong {
  color: #9fb1da;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pulse-chart-wrap {
  position: relative;
  margin-top: 8px;
  padding-left: 40px;
  padding-bottom: 20px;
}

.pulse-chart {
  width: 100%;
  height: auto;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pulse-chart path {
  fill: none;
  stroke: #2f3c5f;
  stroke-width: 1;
}

.pulse-line {
  fill: none;
  stroke-width: 3;
}

.pulse-line-green {
  stroke: #22c55e;
}

.pulse-line-violet {
  stroke: #8b5cf6;
}

.pulse-line-blue {
  stroke: #2563eb;
}

.pulse-y-axis {
  position: absolute;
  top: 0;
  left: 0;
  height: calc(100% - 20px);
  display: grid;
  grid-template-rows: repeat(5, 1fr);
  align-content: space-between;
  color: #7f8eb1;
  font-size: 11px;
  font-weight: 700;
}

.pulse-y-axis span {
  transform: translateY(-6px);
}

.pulse-x-axis {
  position: absolute;
  left: 40px;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  color: #7f8eb1;
  font-size: 11px;
  font-weight: 700;
}

.pulse-x-axis span:last-child {
  text-align: right;
}

.pulse-chart-legend {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.pulse-chart-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d6dff8;
  font-size: 12px;
  font-weight: 700;
}

.pulse-legend-marker {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  border: 1px solid currentColor;
}

.pulse-legend-marker.is-blue {
  color: #2563eb;
}

.pulse-legend-marker.is-green {
  color: #22c55e;
}

.pulse-legend-marker.is-violet {
  color: #8b5cf6;
}

.pulse-history-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
}

.pulse-history-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(120, 138, 180, 0.22);
}

.pulse-history-list li:last-child {
  border-bottom: 0;
}

.pulse-history-list strong {
  display: block;
  color: #f2f5ff;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.pulse-history-list small {
  display: block;
  margin-top: 1px;
  color: #9fb1da;
  font-size: 12px;
}

.pulse-change-up,
.pulse-change-down {
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 2px 6px;
  border-radius: 999px;
}

.pulse-change-up {
  color: #ff8f8f;
  background: rgba(239, 68, 68, 0.14);
}

.pulse-change-down {
  color: #86efac;
  background: rgba(34, 197, 94, 0.14);
}

/* ── Pulse: СВЕТЛАЯ тема карточек (как финтех-сайты, единый светлый стиль) ── */
.pulse-input-card,
.pulse-chart-card,
.pulse-history-card,
.pulse-interface-card {
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  color: var(--text-strong);
}

.pulse-competitor-item {
  border: 1px solid var(--line);
  background: #fafbff;
}

.pulse-input-head,
.pulse-card-head strong,
.pulse-interface-card figcaption,
.pulse-competitor-brand,
.pulse-competitor-meta,
.pulse-competitor-note,
.pulse-block-note,
.pulse-history-list small {
  color: var(--muted);
}

.pulse-competitor-title,
.pulse-competitor-price strong,
.pulse-chart-legend li,
.pulse-history-list strong {
  color: var(--text-strong);
}

.pulse-competitor-price span {
  color: #94a3b8;
}

.pulse-competitor-price em {
  background: rgba(5, 150, 105, 0.12);
  color: #059669;
}

.pulse-competitor-meta a,
.pulse-demo-link {
  color: var(--primary);
}

.pulse-input-like {
  background: #f4f7fc;
  border: 1px solid var(--line);
  color: var(--muted);
}

.pulse-find-btn {
  background: var(--primary-soft);
  color: var(--primary);
}

.pulse-chart path {
  stroke: #e6ebf3;
}

.pulse-y-axis,
.pulse-x-axis {
  color: #94a3b8;
}

.pulse-history-list li {
  border-bottom: 1px solid var(--line);
}

.pulse-change-up {
  color: #dc2626;
  background: rgba(239, 68, 68, 0.1);
}

.pulse-change-down {
  color: #059669;
  background: rgba(34, 197, 94, 0.1);
}

.pulse-interface-card img,
.pulse-competitor-thumb {
  border-color: rgba(15, 23, 42, 0.08);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 8px;
  max-width: none;
  margin-top: 18px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(26, 92, 255, 0.22);
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.06);
}

/* Плавное раскрытие высоты FAQ делается через JS (Web Animations API, см.
   script.js) — нативный ::details-content/interpolate-size не везде поддержан.
   Иконка «+/−» — синхронно по длительности. */
.faq-icon,
.faq-icon::before,
.faq-icon::after {
  transition-duration: 0.3s !important;
}

/* Раскрытие FAQ — через JS только transform+opacity (script.js): они считаются
   на композиторе (GPU), без layout/paint на главном потоке — не лагает. */

.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-strong);
  list-style: none;
  user-select: none;
}

.faq-summary-text {
  display: grid;
  min-width: 0;
}

.faq-summary-text span {
  line-height: 1.35;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  position: relative;
  flex: 0 0 auto;
  margin-top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-soft);
  transition: background 0.2s ease, transform 0.2s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--primary);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.faq-icon::before {
  width: 10px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 10px;
}

.faq-item[open] .faq-icon {
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.faq-item[open] .faq-icon::before,
.faq-item[open] .faq-icon::after {
  background: #fff;
}

.faq-item[open] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-body {
  max-width: none;
  padding: 0 18px 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
}

.faq-body p {
  margin: 0;
}

.faq-lead {
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.faq-body p + p,
.faq-body p + ol,
.faq-body p + ul,
.faq-body ol + p,
.faq-body ul + p {
  margin-top: 9px;
}

.faq-body strong {
  color: var(--text-strong);
  font-weight: 700;
}

.faq-steps,
.faq-bullets {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
  counter-reset: faq-step;
}

.faq-steps li,
.faq-bullets li {
  position: relative;
  padding: 0 0 0 28px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}

.faq-steps li {
  counter-increment: faq-step;
}

.faq-steps li::before {
  content: counter(faq-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.faq-bullets li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 0 3px rgba(26, 92, 255, 0.08);
}

/* Connect */
.connect-grid-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#connect .connect-grid-steps {
  padding-left: 34px;
  gap: 16px;
}

#connect .connect-step {
  align-items: flex-start;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  min-height: 118px;
  padding: 18px;
  overflow: hidden;
}

#connect .connect-step span {
  flex: 0 0 44px;
  aspect-ratio: 1;
  line-height: 1;
  background: linear-gradient(135deg, rgba(26, 92, 255, 0.11), rgba(207, 93, 255, 0.12));
  color: var(--primary-strong);
  font-size: 16px;
  border-radius: 14px;
}

#connect .connect-step > div {
  min-width: 0;
}

#connect .connect-step h3 {
  font-size: 16px;
  line-height: 1.25;
  overflow-wrap: normal;
  text-wrap: balance;
}

#connect .connect-step p {
  margin-top: 6px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 400;
  overflow-wrap: normal;
  text-wrap: pretty;
}

/* Final CTA */
.final-cta {
  padding-top: 40px;
  padding-bottom: 56px;
}

.final-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  padding: 36px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
}

.final-actions {
  gap: 12px;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  padding: 56px 0 28px;
  background: #0b1224;
  color: #d5dcef;
}

.site-footer .brand {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
  margin: 14px 0 0;
  color: #8a98b6;
  font-size: 14px;
  line-height: 1.6;
  max-width: 340px;
}

.footer-col {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-col h4 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-col a {
  color: #8a98b6;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 22px;
  color: #7a8bab;
  font-size: 13px;
}

.footer-legal-row {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.55fr);
  gap: 32px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-legal-row p {
  margin: 0;
  max-width: 420px;
  color: #8a98b6;
  font-size: 13px;
  line-height: 1.6;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.footer-legal-links a,
.footer-bottom a {
  color: #a7b6d2;
  font-size: 13px;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover,
.footer-legal-links a:focus-visible,
.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  color: #fff;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes intro-orb-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate3d(24px, -18px, 0) scale(1.06);
    opacity: 0.86;
  }
}

@keyframes intro-sheen {
  0% {
    transform: translate3d(-38%, 0, 0) rotate(-8deg);
    opacity: 0;
  }
  12% {
    opacity: 0.65;
  }
  26% {
    transform: translate3d(38%, 0, 0) rotate(-8deg);
    opacity: 0;
  }
  100% {
    transform: translate3d(38%, 0, 0) rotate(-8deg);
    opacity: 0;
  }
}

@keyframes intro-kpi-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes page-glow-drift-left {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.2;
  }
  50% {
    transform: translate3d(44px, 32px, 0) scale(1.08);
    opacity: 0.28;
  }
}

@keyframes page-glow-drift-right {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.2;
  }
  50% {
    transform: translate3d(-48px, -26px, 0) scale(1.06);
    opacity: 0.27;
  }
}

@keyframes hero-frame-flow {
  0%,
  100% {
    background-position: 0% 50%, 100% 50%, 50% 0%, 50% 100%, 50% 50%;
  }
  50% {
    background-position: 18% 50%, 82% 50%, 50% 18%, 50% 82%, 50% 50%;
  }
}

/* Responsive */
@media (max-width: 1160px) {
  :root {
    --site-shift-x: -16px;
  }

  .intro-hero-shell {
    min-height: 0;
    padding: 34px;
  }

  .intro-kpi-row {
    width: 100%;
  }

  .pulse-shell {
    grid-template-columns: 1fr;
  }

  .pulse-step,
  .pulse-step-left,
  .pulse-step-right {
    grid-template-columns: 1fr;
  }

  .pulse-step-copy,
  .pulse-step-left .pulse-step-copy,
  .pulse-step-right .pulse-step-copy {
    max-width: 100%;
    justify-self: stretch;
  }

  .pulse-interface-wrap {
    margin-top: 14px;
  }


  .section-head,
  .signal-scene,
  .final-card {
    grid-template-columns: 1fr;
  }

  .hero .hero-grid {
    width: min(var(--container), calc(100% - 48px));
    padding-left: 0;
  }

  .hero-visual {
    margin-left: 0;
  }

  .hero-visual::before {
    transform: none;
  }

  .hero-visual::after {
    transform: none;
  }

  .hero-visual .hero-device {
    transform: none;
  }

  .feature-grid-four,
  .workflow-steps,
  .connect-grid-steps,
  .security-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-demo-layout,
  .workflow-result-grid {
    grid-template-columns: 1fr;
  }

  /* «Как это работает» стыкуется на той же точке, что фичи и мини-апп —
     иначе на 900-1160px чат 420px перекашивал сжатую колонку шагов. */
  .workflow-split {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 24px;
  }
  .workflow-split .workflow-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding-top: 0;
  }
  .workflow-split .manager-demo {
    margin: 0 auto;
  }

  .signal-arrow {
    margin: 0 auto;
    transform: rotate(90deg);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  #pricing .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 680px;
    justify-content: center;
    transform: none;
  }

  #pricing .pricing-visual {
    margin: 0 auto;
    max-width: 620px;
  }

  .pricing-card {
    min-height: 0;
    transform: none;
  }

  .pricing-card:hover {
    transform: translateY(-3px);
  }

  .pricing-head {
    min-height: 0;
  }

  .pricing-sub {
    min-height: 0;
  }

  .pricing-price {
    min-height: 0;
  }

  .pricing-list {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  :root {
    --site-shift-x: 0px;
  }

  *,
  *::before,
  *::after {
    max-inline-size: 100%;
  }

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
  }

  body,
  body * {
    touch-action: pan-y;
  }

  .container,
  .hero .hero-grid,
  .metrics-grid,
  #pricing .pricing-grid {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    transform: none;
  }

  .section,
  .metrics-strip,
  .site-footer,
  .intro-hero,
  .hero,
  #pricing {
    overflow-x: clip;
  }

  .page-glow {
    display: none;
  }

  .site-header {
    padding: 8px 0;
  }

  .header-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 50px;
    align-items: center;
    overflow: visible;
    padding-right: 56px;
  }

  .brand {
    min-width: 0;
  }

  .brand span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand img {
    width: 34px;
    height: 32px;
  }

  .section {
    padding: 22px 0;
  }

  .intro-hero {
    padding-top: 34px;
    padding-bottom: 16px;
  }

  .intro-hero-shell {
    min-height: 0;
    padding: 28px 20px;
    border-radius: 24px;
  }

  .intro-proof,
  .intro-hero-shell h1,
  .intro-hero-text,
  .intro-hero-actions,
  .intro-kpi-row {
    width: 100%;
    max-width: 560px;
  }

  .intro-hero::after {
    height: 78px;
  }

  .intro-hero-actions .button {
    width: 100%;
  }

  .intro-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 70px;
    box-sizing: border-box;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-soft);
    max-height: min(68vh, 420px);
    overflow-y: auto;
  }

  .site-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .site-nav.is-open {
    display: flex;
  }

  .menu-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    max-width: 44px;
    padding: 0;
    font-size: 0;
  }

  .menu-toggle::before { content: none; }
  .menu-toggle svg { display: block; }

  .header-actions {
    min-width: 0;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    justify-self: end;
  }

  .header-actions .button-ghost,
  .header-actions .button-primary {
    display: none;
  }

  .hero-grid {
    gap: 28px;
  }

  .hero .hero-grid {
    width: min(var(--container), calc(100% - 24px));
  }

  .hero .hero-copy h2 {
    font-size: clamp(32px, 9vw, 42px);
    line-height: 1.06;
  }

  .hero .hero-text {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.55;
  }

  .hero-visual {
    width: 100%;
    max-width: 390px;
    justify-self: center;
    margin-left: auto;
    margin-right: auto;
    padding: 14px;
    overflow: hidden;
  }

  .hero-visual::before,
  .hero-visual::after,
  .hero-visual .hero-device {
    transform: none;
  }

  .feature-grid-four,
  .workflow-steps,
  .connect-grid-steps,
  .security-grid {
    grid-template-columns: 1fr;
  }

  #features .feature-grid-four {
    padding-left: 0;
  }

  #connect .connect-grid-steps {
    padding-left: 0;
  }

  .app-demo-copy h3 {
    font-size: 28px;
  }

  .workflow-step,
  .connect-step {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .final-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .hero-actions .button,
  .final-actions .button,
  .header-actions .button {
    width: 100%;
  }

  .hero-scale {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .hero-scale-item {
    padding: 14px 16px;
  }

  .hero-trust {
    gap: 8px;
  }

  .hero-trust li {
    flex: 1 1 100%;
    min-height: 40px;
  }

  .mini-tiles,
  .mini-nav {
    grid-template-columns: 1fr 1fr;
  }

  .mini-nav span:last-child {
    grid-column: 1 / -1;
  }

  .app-demo-frame,
  .miniapp-live-frame {
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 0;
    transform: none;
  }

  .app-demo-caption {
    max-width: 100%;
    text-align: center;
  }

  .announce-text {
    display: none;
  }

  .announce-shell {
    padding: 8px 0;
  }

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

  .footer-legal-row,
  .legal-hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-legal-links {
    justify-content: flex-start;
  }

  .legal-hero {
    padding-top: 44px;
    padding-bottom: 28px;
  }

  .legal-hero h1 {
    font-size: 34px;
  }

  .legal-document {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .intro-hero-shell h1,
  .intro-hero-text,
  .hero-copy h1,
  .hero-copy h2,
  .hero-text,
  .section-head h2,
  .section-head p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  #pricing .pricing-card,
  #pricing .pricing-card:hover,
  #pricing .pricing-visual {
    transform: none;
  }

  #pricing .pricing-visual {
    width: 100%;
    max-width: 100%;
    justify-items: center;
    justify-self: center;
    margin: 8px auto 0;
  }

  #pricing .pricing-visual img {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }

  #pricing .pricing-visual picture {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--container), calc(100% - 36px));
    max-width: calc(100% - 36px);
  }

  /* На мобилке карточки фич — чёткие компактные «коробки»:
     белый фон + видимая рамка/тень, отступ контента читается как padding */
  #features .feature-card,
  #pulse .feature-card {
    padding: 18px;
    border: 1px solid #dbe3ef;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 24, 40, 0.05);
  }
  #features .feature-grid,
  #pulse .feature-grid {
    gap: 14px;
  }


  .intro-hero-shell,
  .app-demo-shell,
  .signal-scene,
  .pricing-grid,
  .pulse-shell,
  .footer-grid,
  .footer-legal-row,
  .footer-bottom {
    min-width: 0;
  }

  .button {
    min-height: 44px;
    padding: 10px 14px;
    white-space: normal;
    line-height: 1.25;
    text-align: center;
  }

  .header-shell {
    gap: 12px;
  }

  .brand {
    gap: 10px;
    font-size: 18px;
  }

  .announce-bar {
    font-size: 12px;
  }

  .announce-pill {
    min-height: 20px;
    padding: 0 8px;
  }

  .section {
    padding: 20px 0;
  }

  .section-head {
    gap: 14px;
    margin-bottom: 24px;
  }

  .section-kicker {
    font-size: 11px;
    letter-spacing: 0.16em;
  }

  .intro-hero-shell {
    padding: 24px 16px;
  }

  .pulse-input-card,
  .pulse-chart-card,
  .pulse-history-card {
    width: 100%;
    justify-self: stretch;
    padding: 16px;
  }

  .pulse-interface-card {
    padding: 8px;
  }


  .pulse-refresh-btn {
    min-height: 40px;
    font-size: 15px;
  }

  .pulse-card-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .pulse-competitor-item {
    grid-template-columns: 8px minmax(0, 1fr);
    gap: 4px;
    padding: 4px;
  }

  .pulse-competitor-thumb {
    width: 8px;
    height: 8px;
    border-radius: 1px;
    font-size: 0;
  }

  .pulse-competitor-title {
    font-size: 12px;
  }

  .pulse-competitor-price strong {
    font-size: 16px;
  }

  .pulse-competitor-meta {
    flex-wrap: wrap;
    gap: 4px;
    font-size: 11px;
  }

  .pulse-competitor-meta a {
    margin-left: 0;
  }

  .pulse-competitor-note {
    font-size: 10px;
  }

  .pulse-block-note {
    font-size: 10px;
    margin: 7px 0 9px;
  }

  .pulse-input-like {
    min-height: 40px;
    font-size: 13px;
  }

  .pulse-add-btn {
    font-size: 22px;
  }

  .pulse-chart-wrap {
    padding-left: 0;
  }

  .pulse-y-axis {
    display: none;
  }

  .pulse-x-axis {
    left: 0;
  }

  .pulse-history-list li {
    padding: 8px 0;
    gap: 8px;
  }

  .pulse-history-list strong {
    font-size: 13px;
  }

  .pulse-history-list small {
    font-size: 12px;
  }

  .pulse-change-up,
  .pulse-change-down {
    font-size: 12px;
  }

  .intro-hero-shell h1 {
    font-size: clamp(28px, 8vw, 32px);
    line-height: 1.04;
    letter-spacing: -0.035em;
    text-wrap: balance;
    max-width: 320px;
  }

  .intro-hero-text {
    font-size: 16px;
    line-height: 1.55;
    max-width: 320px;
  }

  .intro-hero-actions,
  .intro-kpi-row {
    max-width: 320px;
  }

  .intro-kpi-row {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .hero-copy h2,
  .section-head h2,
  .final-card h2 {
    font-size: 30px;
    line-height: 1.08;
  }

  .hero-copy h1 {
    font-size: 38px;
    line-height: 1.05;
  }

  .hero-text,
  .section-head p,
  .final-card p,
  .app-demo-lead,
  .feature-card p,
  .workflow-step p,
  .connect-step p,
  .security-card p {
    font-size: 15px;
  }

  .device-screen,
  .app-demo-shell,
  .final-card,
  .telegram-thread,
  .workflow-result-shell,
  .pricing-card {
    padding: 18px;
    border-radius: 18px;
  }

  .hero-visual {
    max-width: 350px;
    padding: 10px;
    border-radius: 22px;
  }

  .hero-visual::before {
    border-radius: 22px;
  }

  .hero-visual::after {
    border-radius: 21px;
  }

  .device-shell {
    max-width: 320px;
    border-radius: 22px;
  }

  .device-screen {
    padding: 14px;
  }

  .pricing-value {
    font-size: 34px;
  }

  .metrics-grid {
    width: min(var(--container), calc(100% - 24px));
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
    transform: translateX(0);
    grid-template-columns: 1fr;
  }

  .metric-card {
    padding: 16px;
    border-radius: 14px;
  }

  .metric-value {
    font-size: 26px;
  }

  .feature-card,
  .workflow-step,
  .connect-step,
  .security-card {
    padding: 18px;
    border-radius: 16px;
  }

  .mini-tiles {
    grid-template-columns: 1fr;
  }

  .mini-nav {
    gap: 10px;
    font-size: 10px;
  }

  .miniapp-live-frame {
    height: 100%;
    min-height: 0;
    transform: none;
  }

  .app-tabs {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 0 12px 4px;
    scroll-snap-type: x proximity;
  }

  .app-tab {
    min-height: 40px;
    padding: 0 14px;
    scroll-snap-align: start;
  }

  #pricing .pricing-grid,
  #pricing .pricing-card,
  #pricing .pricing-visual {
    transform: none;
    margin-left: auto;
    margin-right: auto;
  }

  #pricing .pricing-card {
    padding: 22px 18px;
  }

  #pricing .pricing-visual img {
    width: min(420px, 100%);
    max-width: 100%;
  }

  .pricing-list {
    gap: 8px;
  }

  .pricing-list li {
    min-height: 42px;
    padding: 10px 12px 10px 34px;
  }

  .faq-item summary {
    min-height: 56px;
    padding: 14px;
    font-size: 13px;
  }

  .faq-body {
    padding: 0 14px 14px;
    font-size: 13px;
  }

}

@media (max-width: 420px) {
  .intro-hero-shell {
    padding: 22px 14px;
  }

  .intro-hero-shell h1 {
    font-size: 29px;
  }

  .hero-copy h1,
  .hero-copy h2,
  .section-head h2,
  .final-card h2 {
    font-size: 27px;
    line-height: 1.08;
  }

  .hero-copy h1 {
    font-size: 33px;
    line-height: 1.06;
  }

  .hero-text,
  .section-head p,
  .final-card p,
  .app-demo-lead {
    font-size: 14px;
    line-height: 1.55;
  }

  .device-screen,
  .app-demo-shell,
  .final-card,
  .telegram-thread,
  .workflow-result-shell,
  .pricing-card {
    padding: 15px;
  }

  #pricing .pricing-grid {
    margin-left: auto;
    margin-right: auto;
  }

  #pricing .pricing-visual {
    max-width: 100%;
  }
}

@media (max-width: 820px) {
  .hero-visual,
  .hero-visual::before,
  .hero-visual::after,
  .hero-visual .hero-device,
  .device-shell,
  .app-demo-stage,
  .app-demo-frame-shell,
  #pricing .pricing-grid,
  #pricing .pricing-card,
  #pricing .pricing-card:hover,
  #pricing .pricing-visual,
  #pricing .pricing-visual picture,
  #pricing .pricing-visual img {
    transform: none !important;
  }

  .hero-visual,
  .device-shell,
  .app-demo-stage,
  .app-demo-frame-shell,
  #pricing .pricing-grid,
  #pricing .pricing-card,
  #pricing .pricing-visual,
  #pricing .pricing-visual img {
    min-width: 0;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    justify-self: center;
  }

  .hero-visual {
    width: min(280px, 88%);
    overflow: hidden;
  }

  .hero-visual .hero-device,
  .device-shell {
    width: min(252px, 100%);
  }

  .app-demo-stage {
    width: min(280px, 90%);
    overflow: visible;
  }

  .app-demo-frame-shell {
    width: 100%;
  }

  #pricing .pricing-grid {
    overflow: hidden;
  }

  #pricing .pricing-visual {
    width: 100%;
    max-width: 260px;
    margin-top: 6px;
    justify-items: center;
    overflow: hidden;
  }

  #pricing .pricing-visual picture {
    width: min(230px, 100%);
    max-width: 100%;
  }

  #pricing .pricing-visual img {
    display: block;
    width: 100% !important;
    height: auto;
    object-fit: contain;
  }

  .pulse-input-card,
  .pulse-chart-card,
  .pulse-history-card {
    width: min(320px, 100%);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    justify-self: center;
    overflow: hidden;
  }
}

@media (max-width: 420px) {
  .hero-visual {
    width: min(260px, 86%);
  }

  .hero-visual .hero-device,
  .device-shell {
    width: min(236px, 100%);
  }

  .app-demo-stage {
    width: min(260px, 88%);
  }

  #pricing .pricing-visual {
    max-width: 100%;
  }

  #pricing .pricing-visual picture {
    width: 100%;
  }

  #pricing .pricing-visual img {
    width: 100% !important;
  }

  .pulse-input-card,
  .pulse-chart-card,
  .pulse-history-card {
    width: min(286px, 100%);
  }
}

/* Mobile production pass: visual scale, tap targets, and lighter rendering. */
@media (max-width: 820px) {
  :root {
    --shadow-soft: 0 6px 16px rgba(16, 24, 40, 0.03);
    --shadow-medium: 0 14px 32px rgba(16, 24, 40, 0.08);
    --shadow-large: 0 18px 40px rgba(6, 11, 20, 0.12);
  }

  html {
    scroll-padding-top: 74px;
  }

  body {
    background: linear-gradient(180deg, #fbfcfe 0%, #f4f7fc 100%);
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .site-header {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
  }

  .intro-hero-shell,
  .hero-visual,
  .app-demo-shell,
  .app-demo-frame-shell,
  .signal-scene,
  .pricing-card,
  .pricing-visual,
  .pulse-input-card,
  .pulse-chart-card,
  .pulse-history-card,
  .final-card {
    box-shadow: var(--shadow-soft);
  }

  .intro-hero-shell::before,
  .intro-hero-shell::after,
  .hero-visual::before,
  .hero-visual::after {
    animation: none;
    opacity: 0.55;
  }

  .section,
  .hero,
  .intro-hero,
  #pricing {
    contain: layout paint;
  }

  .intro-hero-shell {
    min-height: auto;
    align-content: start;
  }

  .intro-proof,
  .intro-hero-shell h1,
  .intro-hero-text,
  .intro-hero-actions,
  .intro-kpi-row,
  .hero-copy,
  .hero-copy h2,
  .hero-text,
  .section-head,
  .section-head h2,
  .section-head p,
  .app-demo-copy,
  .app-demo-copy h3,
  .app-demo-lead,
  .pulse-step-copy,
  .pulse-step-copy h3,
  .pulse-step-copy p {
    min-width: 0;
    inline-size: 100%;
    max-inline-size: 100%;
    overflow-wrap: break-word;
  }

  .intro-hero-shell h1,
  .intro-hero-text,
  .hero-copy h2,
  .hero-text {
    display: block;
    width: 100%;
    justify-self: stretch;
    white-space: normal;
  }

  .intro-proof {
    min-height: 30px;
    padding: 0 12px;
    font-size: 11px;
  }

  .intro-kpi-row {
    gap: 8px;
  }

  .intro-kpi-item {
    min-height: 74px;
    padding: 12px;
    animation: none;
  }

  .hero-actions .button,
  .intro-hero-actions .button,
  .pricing-cta,
  .pulse-refresh-btn,
  .pulse-find-btn {
    min-height: 48px;
  }

  .hero-visual {
    aspect-ratio: 10 / 13;
    width: min(330px, 92vw);
    max-width: 330px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-visual .hero-device,
  .device-shell {
    width: 100%;
    max-width: 292px;
  }

  .device-screen {
    overflow: hidden;
  }

  .mini-amount {
    font-size: clamp(26px, 8vw, 34px);
  }

  .mini-card,
  .mini-hero-card,
  .mini-tile {
    border-radius: 14px;
  }

  .feature-card,
  .workflow-step,
  .connect-step,
  .security-card,
  .metric-card,
  .app-story-card,
  .workflow-result-card,
  .workflow-ai-card {
    box-shadow: var(--shadow-xs);
  }

  .app-demo-shell {
    padding: 0;
    border-radius: 0;
  }

  .app-demo-layout,
  .pulse-step,
  .signal-scene {
    grid-template-columns: 1fr;
  }

  .app-demo-copy,
  .pulse-step-copy,
  .pulse-step-left .pulse-step-copy,
  .pulse-step-right .pulse-step-copy {
    max-width: 100%;
    margin: 0;
    justify-self: stretch;
  }

  .app-story-list {
    gap: 10px;
  }

  .app-demo-stage {
    width: min(342px, 100%);
  }

  .app-demo-frame-shell {
    aspect-ratio: 9 / 16;
    padding: 8px;
  }

  .app-demo-frame,
  .miniapp-live-frame {
    height: 100%;
    min-height: 0;
    border-radius: 18px;
  }

  .workflow-steps {
    gap: 10px;
    margin-bottom: 18px;
  }

  .signal-arrow {
    width: 44px;
    height: 44px;
    justify-self: center;
    transform: rotate(90deg);
  }

  .workflow-result-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pulse-shell {
    gap: 42px;
  }

  .pulse-step {
    gap: 16px;
    align-items: stretch;
  }

  .pulse-step .pulse-step-copy,
  .pulse-step-right .pulse-step-copy {
    order: 1;
  }

  .pulse-step .pulse-input-card,
  .pulse-step .pulse-chart-card,
  .pulse-step .pulse-history-card,
  .pulse-step-right .pulse-chart-card {
    order: 2;
  }

  .pulse-step-history .pulse-step-copy {
    order: 1;
  }

  .pulse-step-history .pulse-history-card {
    order: 2;
  }

  .pulse-input-card,
  .pulse-chart-card,
  .pulse-history-card {
    width: min(420px, 100%);
    margin: 2px auto 0;
    padding: 16px;
    border-radius: 20px;
    box-shadow: 0 8px 18px rgba(8, 13, 24, 0.18);
  }

  .pulse-step-copy {
    padding: 0 2px;
  }

  .pulse-step-copy span {
    margin-bottom: 8px;
    font-size: 11px;
  }

  .pulse-step-copy h3 {
    font-size: 24px;
    line-height: 1.14;
    letter-spacing: -0.02em;
  }

  .pulse-step-copy p {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.58;
  }

  .pulse-chart-wrap {
    overflow: hidden;
  }

  .pulse-chart {
    min-width: 0;
  }

  #pricing .pricing-grid {
    width: min(520px, calc(100% - 24px));
    max-width: min(520px, calc(100% - 24px));
    gap: 18px;
    overflow: visible;
  }

  #pricing .pricing-card {
    width: 100%;
    padding: 18px 15px;
    border-radius: 18px;
  }

  #pricing .section-head {
    margin-bottom: 18px;
  }

  #pricing .pricing-price {
    margin-top: 8px;
  }

  #pricing .pricing-value {
    font-size: 38px;
  }

  #pricing .pricing-list {
    gap: 6px;
    margin-top: 12px;
  }

  #pricing .pricing-list li {
    min-height: 36px;
    padding: 8px 10px 8px 32px;
    font-size: 12.5px;
    line-height: 1.3;
  }

  #pricing .pricing-cta {
    margin-top: 12px;
    width: 100%;
  }

  #pricing .pricing-visual {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    margin: 0 auto;
    padding: 0;
    border-radius: 20px;
    background: transparent;
    overflow: visible;
  }

  #pricing .pricing-visual picture {
    width: min(390px, 100%);
    max-width: 100%;
    margin: 0 auto;
  }

  #pricing .pricing-visual img {
    width: 100% !important;
    height: auto;
    object-fit: contain;
    object-position: center;
    filter: none;
  }

  .pricing-head {
    padding-right: 0;
  }

  .pricing-ribbon {
    top: 14px;
    right: 14px;
  }

  .pricing-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container,
  .hero .hero-grid,
  .metrics-grid,
  #pricing .pricing-grid {
    width: calc(100% - 28px);
    max-width: calc(100% - 28px);
  }

  .intro-hero {
    padding-top: 24px;
  }

  .intro-hero-shell {
    border-radius: 20px;
  }

  .intro-hero-shell h1,
  .intro-hero-text,
  .intro-hero-actions,
  .intro-kpi-row {
    max-width: 100%;
  }

  .intro-hero-shell h1 {
    font-size: clamp(26px, 6.7vw, 30px);
    line-height: 1.08;
    letter-spacing: -0.03em;
  }

  .intro-hero-actions {
    gap: 10px;
  }

  .hero-visual {
    width: min(318px, 90vw);
    max-width: 318px;
  }

  .hero-visual .hero-device,
  .device-shell {
    max-width: 278px;
  }

  .app-demo-shell,
  .signal-scene,
  .pricing-card,
  .telegram-thread,
  .workflow-result-shell,
  .final-card {
    border-radius: 18px;
  }

  .app-demo-note {
    display: none;
  }

  .app-demo-copy h3,
  .pulse-step-copy h3 {
    font-size: 24px;
    line-height: 1.15;
  }

  .app-demo-stage {
    width: min(318px, 100%);
  }

  .app-demo-frame-shell {
    border-radius: 20px;
  }

  .pulse-step-copy p {
    font-size: 14px;
    line-height: 1.55;
  }

  .pulse-input-card,
  .pulse-chart-card,
  .pulse-history-card {
    width: 100%;
  }

  #pricing .pricing-visual {
    padding: 0;
  }
}

@media (max-width: 420px) {
  .hero-visual {
    width: min(300px, 88vw);
  }

  .hero-visual .hero-device,
  .device-shell {
    max-width: 262px;
  }

  .app-demo-stage {
    width: min(300px, 100%);
  }

  .pricing-ribbon {
    position: static;
    width: fit-content;
    margin-bottom: 12px;
  }
}

@media (max-width: 820px) {
  #pricing .pricing-visual {
    width: 100%;
    max-width: 100%;
    display: grid;
    justify-items: center;
    margin: 0 auto;
    overflow: visible;
  }

  #pricing .pricing-visual picture {
    display: block;
    width: min(390px, 100%);
    max-width: 100%;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  #pricing .pricing-visual picture::before {
    content: none;
  }

  #pricing .pricing-visual img {
    display: block;
    width: 100% !important;
    height: auto;
    max-width: 100%;
    border-radius: 0;
    object-fit: contain;
    object-position: center;
    filter: none;
  }
}

@media (max-width: 420px) {
  #pricing .pricing-visual picture {
    width: 100%;
  }
}

.hero-mobile-frame {
  display: none;
}

@media (max-width: 820px) {
  .hero-visual {
    aspect-ratio: auto;
    width: min(354px, calc(100vw - 28px));
    max-width: 354px;
    padding: 12px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.84);
    background:
      radial-gradient(circle at 16% 12%, rgba(132, 199, 255, 0.18), transparent 38%),
      radial-gradient(circle at 86% 18%, rgba(218, 137, 239, 0.16), transparent 36%),
      radial-gradient(circle at 72% 92%, rgba(246, 159, 204, 0.14), transparent 40%),
      linear-gradient(135deg, rgba(233, 244, 255, 0.97), rgba(255, 244, 252, 0.96));
    background-size: 130% 130%, 130% 130%, 130% 130%, 100% 100%;
    box-shadow:
      0 18px 44px rgba(75, 123, 216, 0.11),
      0 10px 28px rgba(204, 93, 198, 0.07);
    overflow: hidden;
    animation: hero-frame-flow 9s ease-in-out infinite;
  }

  .hero-visual::before,
  .hero-visual::after {
    display: none;
  }

  .hero-visual .hero-device {
    display: block;
    width: 100%;
    max-width: 320px;
    padding: 7px;
    border-radius: 24px;
    transform: none !important;
    box-shadow:
      0 22px 46px rgba(8, 15, 32, 0.18),
      inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  }

  .hero-visual .device-topline {
    padding: 3px 0 7px;
  }

  .hero-visual .device-topline span {
    width: 82px;
    height: 5px;
  }

  .hero-visual .device-screen {
    padding: 10px;
    border-radius: 18px;
  }

  .hero-visual .mini-header h2 {
    font-size: 19px;
  }

  .hero-visual .mini-header small {
    font-size: 9px;
  }

  .hero-visual .mini-hero-card,
  .hero-visual .mini-card {
    margin-top: 9px;
    padding: 12px;
    border-radius: 14px;
  }

  .hero-visual .mini-label,
  .hero-visual .mini-tile-label,
  .hero-visual .mini-chart-caption {
    font-size: 9px;
  }

  .hero-visual .mini-amount {
    margin-top: 4px;
    font-size: 29px;
  }

  .hero-visual .mini-delta {
    margin-top: 5px;
    font-size: 10px;
  }

  .hero-visual .mini-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 9px;
  }

  .hero-visual .mini-tile {
    min-width: 0;
    padding: 8px 7px;
    border-radius: 10px;
  }

  .hero-visual .mini-tile strong {
    font-size: 13px;
  }

  .hero-visual .mini-tile small {
    display: none;
  }

  .hero-visual .mini-card-head {
    font-size: 11px;
  }

  .hero-visual .mini-chart {
    height: 82px;
    margin-top: 8px;
  }

  .hero-visual .mini-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 9px;
    padding-top: 8px;
    font-size: 8px;
  }

  .eyebrow-dot {
    background: linear-gradient(135deg, #7fc8ff, #b99cff, #eda7ce, #7fc8ff);
    background-size: 240% 240%;
    box-shadow: 0 0 0 4px rgba(127, 200, 255, 0.1);
    animation: hero-frame-flow 6s ease-in-out infinite;
  }
}

@media (max-width: 420px) {
  .hero-visual {
    width: min(350px, calc(100vw - 28px));
  }

  .hero-visual .hero-device {
    max-width: 312px;
  }
}

/* Desktop alignment pass: keep every major section on the same 1160px grid. */
@media (min-width: 821px) {
  :root {
    --site-shift-x: 0px;
  }

  .container,
  .hero .hero-grid,
  .metrics-grid,
  #pricing .pricing-grid {
    width: min(var(--container), calc(100% - 48px));
    max-width: calc(100% - 48px);
    margin-left: auto;
    margin-right: auto;
    transform: none;
  }

  .intro-hero-shell {
    max-width: var(--container);
  }

  .announce-shell,
  .header-shell {
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .section {
    padding-top: 46px;
    padding-bottom: 46px;
  }

  .intro-hero {
    padding-top: 52px;
    padding-bottom: 28px;
  }

  .intro-hero::after {
    height: 72px;
  }

  .intro-hero-shell {
    min-height: 540px;
    padding: 58px 44px 46px;
  }

  .hero {
    padding-top: 12px;
    padding-bottom: 34px;
  }

  .metrics-strip {
    padding-bottom: 20px;
  }

  .section-head {
    margin-bottom: 24px;
  }

  .workflow-steps {
    margin-bottom: 18px;
  }

  .pulse-shell {
    gap: 38px;
  }

  .final-cta {
    padding-top: 32px;
    padding-bottom: 56px;
  }

  .hero .hero-grid,
  #features .feature-grid-four,
  #connect .connect-grid-steps {
    padding-left: 0;
  }

  .hero-visual,
  .hero-visual::before,
  .hero-visual::after,
  .hero-visual .hero-device {
    transform: none;
  }

  .metrics-grid {
    padding: 18px;
  }

  #pricing .section-head,
  #pricing .pricing-grid {
    max-width: var(--container);
  }

  #pricing .pricing-grid {
    justify-content: stretch;
  }

  #pricing .pricing-visual {
    margin-left: 0;
    justify-items: center;
    transform: none;
  }

  #pricing .pricing-card,
  #pricing .pricing-card:hover {
    transform: none;
  }

  .pulse-step-left .pulse-step-copy,
  .pulse-step-right .pulse-step-copy,
  .pulse-input-card,
  .pulse-history-card,
  .pulse-chart-card {
    margin-left: 0;
    margin-right: 0;
  }

  .pulse-step-left {
    grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
  }

  .pulse-step-right {
    grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  }

  .pulse-step-left .pulse-step-copy,
  .pulse-step-right .pulse-step-copy {
    max-width: 520px;
  }

  .pulse-step-left .pulse-step-copy {
    justify-self: end;
  }

  .pulse-step-right .pulse-step-copy {
    justify-self: start;
  }

  .pulse-input-card,
  .pulse-history-card {
    justify-self: start;
  }

  .pulse-chart-card {
    justify-self: end;
  }

  .pulse-input-card,
  .pulse-chart-card,
  .pulse-history-card {
    width: min(500px, 100%);
    padding: 14px;
    border-radius: 18px;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.035),
      0 16px 30px rgba(8, 13, 24, 0.16);
  }

  .pulse-refresh-btn {
    min-height: 40px;
    border-radius: 10px;
    font-size: 15px;
  }

  .pulse-input-head {
    margin-top: 10px;
    font-size: 11px;
  }

  .pulse-block-note {
    margin: 6px 0 8px;
    font-size: 10.5px;
    line-height: 1.4;
  }

  .pulse-competitor-list {
    gap: 4px;
  }

  .pulse-competitor-item {
    padding: 6px;
    border-radius: 9px;
  }

  .pulse-competitor-title {
    font-size: 11.5px;
    line-height: 1.22;
  }

  .pulse-competitor-brand,
  .pulse-competitor-price span,
  .pulse-competitor-meta {
    font-size: 10.5px;
  }

  .pulse-competitor-price strong {
    font-size: 15px;
  }

  .pulse-competitor-price em {
    font-size: 9.5px;
  }

  .pulse-add-competitor {
    grid-template-columns: minmax(0, 1fr) 40px;
    gap: 6px;
    margin-top: 8px;
  }

  .pulse-input-like {
    min-height: 38px;
    border-radius: 10px;
    font-size: 13px;
  }

  .pulse-find-btn {
    min-height: 36px;
    border-radius: 10px;
    font-size: 12px;
  }

  .pulse-chart-wrap {
    margin-top: 6px;
    padding-left: 36px;
    padding-bottom: 18px;
  }

  .pulse-line {
    stroke-width: 2.5;
  }

  .pulse-y-axis,
  .pulse-x-axis {
    font-size: 10.5px;
  }

  .pulse-x-axis {
    left: 36px;
  }

  .pulse-chart-legend {
    gap: 6px;
    margin-top: 8px;
  }

  .pulse-chart-legend li,
  .pulse-history-list strong {
    font-size: 11.5px;
  }

  .pulse-history-list li {
    padding: 6px 0;
  }

  .pulse-history-list small {
    font-size: 10.5px;
  }

  .pulse-change-up,
  .pulse-change-down {
    font-size: 11.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-glow-left,
  .page-glow-right,
  .intro-hero-shell::before,
  .intro-hero-shell::after,
  .intro-kpi-item,
  .hero-visual::before,
  .hero-visual::after {
    animation: none;
  }
}

/* Legal documents */
.legal-page {
  background: #f5f7fb;
}

.legal-hero {
  padding-top: 68px;
  padding-bottom: 28px;
}

.legal-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 28px;
  align-items: start;
}

.legal-hero h1 {
  margin: 14px 0 0;
  color: var(--text-strong);
  font-size: clamp(40px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
  max-width: 760px;
}

.legal-hero p {
  margin: 18px 0 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.legal-hero-panel {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
}

.legal-hero-panel-item {
  padding: 12px 14px;
  border: 1px solid rgba(20, 33, 61, 0.08);
  border-radius: 12px;
  background: #ffffff;
}

.legal-hero-panel-item strong {
  display: block;
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 700;
}

.legal-hero-panel-item span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.legal-hero-panel-note {
  padding: 14px;
  border-radius: 12px;
  background: #f7f9fc;
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
}

.legal-doc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 18px;
}

.legal-doc-nav a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.legal-doc-nav a:hover,
.legal-doc-nav a:focus-visible {
  color: var(--primary);
  border-color: rgba(48, 111, 246, 0.28);
  background: var(--primary-soft);
}

.legal-docs {
  display: grid;
  gap: 16px;
  padding-bottom: 80px;
}

.legal-document {
  scroll-margin-top: 110px;
  padding: 30px 34px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(20, 33, 61, 0.04);
}

.legal-document span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-document h2 {
  margin: 10px 0 0;
  color: var(--text-strong);
  font-size: 28px;
  line-height: 1.18;
}

.legal-document h3 {
  margin: 24px 0 10px;
  color: var(--text-strong);
  font-size: 18px;
  line-height: 1.35;
}

.legal-document p {
  margin: 12px 0 0;
  max-width: 900px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.72;
}

.legal-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 22px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

.legal-list li::marker {
  color: var(--primary);
}

.legal-table {
  display: grid;
  margin: 18px 0 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.legal-table div[role="row"] {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.legal-table div[role="row"]:last-child {
  border-bottom: 0;
}

.legal-table strong,
.legal-table span {
  padding: 16px 18px;
  line-height: 1.55;
}

.legal-table strong {
  background: #f7f9fc;
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 700;
}

.legal-table span {
  color: var(--text);
  font-size: 15px;
}

.legal-callout,
.legal-note {
  margin-top: 18px !important;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7f9fc;
  color: var(--text) !important;
}

.legal-callout strong {
  display: block;
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 700;
}

.legal-callout p {
  margin-top: 8px;
}

.legal-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

@media (max-width: 760px) {
  .legal-hero-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .legal-hero {
    padding-top: 44px;
    padding-bottom: 22px;
  }

  .legal-hero h1 {
    font-size: 34px;
  }

  .legal-document {
    padding: 22px 18px;
    border-radius: 16px;
  }

  .legal-document h2 {
    font-size: 22px;
  }

  .legal-table div[role="row"] {
    grid-template-columns: 1fr;
  }

  .legal-table strong,
  .legal-table span {
    padding: 14px 16px;
  }
}

/* Mobile hero (как у крупных SaaS — Stripe/Linear/Notion): крупное фото
   главного экрана по центру СРАЗУ под кнопками, карточки ценности (Реальная
   прибыль / Реклама и склад / Конкуренты) — ниже. hero-copy → display:contents,
   чтобы переупорядочить детей через grid-areas в одну колонку:
   eyebrow → заголовок → текст → кнопки → ФОТО → карточки → доверие.
   На ≤820px .reveal уже нейтрализован (opacity:1; transform:none) — contents
   безопасен, анимаций на этих элементах нет. */
@media (max-width: 820px) {
  .hero .hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "eyebrow"
      "title"
      "text"
      "actions"
      "visual"
      "scale"
      "trust";
    row-gap: 0;
  }

  .hero .hero-copy {
    display: contents;
  }

  .hero-copy > .hero-eyebrow {
    grid-area: eyebrow;
    justify-self: start;
  }
  .hero-copy > h1 {
    grid-area: title;
  }
  .hero-copy > .hero-text {
    grid-area: text;
  }
  .hero-copy > .hero-actions {
    grid-area: actions;
  }
  .hero-copy > .hero-scale {
    grid-area: scale;
  }
  .hero-copy > .hero-trust {
    grid-area: trust;
  }

  /* Крупное фото-герой по центру, тонкий кант (продуктовый вид):
     padding почти 0 → декоративная рамка ::before/::after сжимается в едва
     заметный кант, скрин заполняет блок и держится на мягкой тени hero-screen. */
  .hero .hero-visual {
    grid-area: visual;
    justify-self: center;
    width: 100%;
    max-width: 332px;
    margin: 24px auto 6px;
    padding: 4px;
  }

  .hero .hero-visual .hero-screen {
    width: 100%;
    margin: 0 auto;
    border-radius: 22px;
  }
}
/* Демо-интерфейс: статичный постер-скриншот (база скрыта — на десктопе живой iframe) */
.app-demo-poster {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  /* Постер — только визуальная «заглушка» на время загрузки. Он НЕ должен
     перехватывать тапы: если iframe уже жив, но 'load' задержался/не пришёл
     (напр. telegram.org/шрифты режутся у РФ-провайдеров и в браузере Яндекса),
     клики обязаны проходить сквозь скриншот к живому приложению под ним. */
  pointer-events: none;
}

/* Mobile: убираем бесконечные анимации hero и backdrop-blur шапки ради
   плавного скролла. Живой демо-iframe показываем как на десктопе. */
@media (max-width: 820px) {
  .hero-visual::before,
  .hero-visual::after { animation: none !important; }
  .site-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(230, 239, 255, 0.98) !important;
  }
}

/* Верх: eyebrow убран, заголовку даём воздух сверху (отступ побольше). */
.hero { padding-top: 44px; }
.hero-copy h1 { margin-top: 0; }
/* Навигация остаётся по центру шапки (сдвиг вправо отменён). */

/* Кнопка «Зарегистрироваться» видна и на мобиле: компактная, рядом с «Меню».
   header-actions из absolute → в нормальный поток грида (лого слева, кнопка+меню справа). */
@media (max-width: 820px) {
  .header-shell { padding-right: 0; }
  .header-actions {
    position: static;
    transform: none;
    justify-self: end;
    gap: 8px;
  }
  .header-actions .button-primary {
    display: none;
  }
}

/* Описания — чуть плотнее (Inter Medium 500), не жирно. */
.hero-text,
.hero-microcopy,
.hero-scale-item p,
.section-head p,
.final-card p,
.feature-card p,
.workflow-step p,
.connect-step p,
.security-card p,
.app-story-card p,
.workflow-ai-card p,
.app-demo-caption p,
.app-demo-lead {
  font-weight: 500;
}

/* Стоп постоянному горизонтальному «дрейфу» фоновых свечений и рамки геро —
   сайт не должен ездить в стороны (статичный фон, как на обычных сайтах). */
.page-glow-left,
.page-glow-right,
.hero-visual::before,
.hero-visual::after { animation: none !important; }

/* Широкий десктоп: 4 равные ячейки в один ряд внутри той же рамки. */
@media (min-width: 1161px) {
  .hero-scale {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .hero-scale-item {
    padding: 18px 18px;
  }
}

/* Перезагрузка прыгает вниз: smooth-скролл конфликтует с восстановлением позиции — выключаем. */
html { scroll-behavior: auto; }

/* Убрать мелкие надписи-кикеры над заголовками секций (Что контролирует StatOn,
   Интерфейс, Как это работает, Pulse, Подключение, Бета, FAQ). Юр-страницу не трогаем. */
body:not(.legal-page) .section-kicker { display: none; }

/* Геро: подзаголовку чуть больше отступ сверху. */
.hero .hero-text { margin-top: 26px; }

/* Десктоп/планшет (от 821px): две колонки выровнены по центру по вертикали —
   текст и фото на одном уровне (как у Revolut/Linear: крупный продуктовый визуал
   справа, копирайт по центру слева). Воздух сверху → заголовок опущен ниже. */
@media (min-width: 821px) {
  .hero {
    padding-top: 60px;
    padding-bottom: 76px;
  }
  /* Текстовая колонка растянута ровно на высоту фото: заголовок — по верху фото,
     столбцы (P&L/ДРР/Остатки/Pulse) — по низу фото. Текст и фото одной высоты. */
  .hero-grid {
    align-items: stretch;
    grid-template-columns: minmax(0, 1.08fr) minmax(310px, 400px);
    gap: 48px;
  }
  /* Заголовок — по верху фото; подзаголовок + столбцы прижаты к низу фото
     (margin-top:auto на подзаголовке съедает всё свободное место сверху).
     Так подзаголовок «StatOn считает…» опущен вниз, столбцы остаются у низа. */
  .hero-copy {
    display: flex;
    flex-direction: column;
  }
  /* Заголовок — по верху фото; подзаголовок + таблица сгруппированы и прижаты
     к низу фото (margin-top:auto на подзаголовке съедает свободное место).
     Таблица идёт сразу под подзаголовком — небольшой зазор, не «болтается». */
  .hero .hero-text {
    margin-top: auto;
    margin-left: 18px;
    font-size: 18px;
    line-height: 1.6;
    max-width: 540px;
  }
  .hero-scale {
    margin-top: 18px;
  }
  /* Крупный продуктовый визуал по центру своей колонки. */
  .hero-visual {
    align-self: center;
  }
  .hero-screen {
    width: 318px;
  }
}

/* Широкий десктоп: чуть шире колонки и больше воздуха; фото остаётся компактным. */
@media (min-width: 1161px) {
  .hero {
    padding-top: 72px;
    padding-bottom: 88px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, 430px);
    gap: 56px;
  }
  .hero .hero-text {
    font-size: 19px;
  }
  .hero-screen {
    width: 360px;
  }
}

/* =========================================================================
   HERO — центрированная композиция + Mac-монитор с дашбордом (восстановлено)
   ========================================================================= */
.hero {
  padding-top: 56px;
  padding-bottom: 88px;
  overflow: hidden;
  /* Никакой собственной заливки: hero идёт на общем фоне body, как и все
     остальные секции. Отдельный background: var(--bg) тут создавал видимый
     шов («разграничитель») со следующей секцией на мобилке. */
  background: transparent;
}
.hero-lead {
  text-align: center;
}
.hero-lead h1,
.hero .hero-lead h1 {
  margin: 0 auto;
  max-width: 32ch;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--text-strong);
  text-wrap: balance;
}
.hero-lead .hero-text,
.hero .hero-lead .hero-text {
  margin: 20px auto 0;
  max-width: 600px;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.6;
  color: var(--muted);
}
.hero-lead .hero-actions {
  margin-top: 28px;
  justify-content: center;
}
.hero-lead .hero-actions .button-lg {
  min-height: 52px;
  padding: 0 30px;
  font-size: 15px;
  border-radius: 14px;
}

/* Mac-монитор */
.hero-stage {
  margin-top: 44px;
  margin-bottom: 8px;
}
.hero-device {
  position: relative;
  max-width: 960px;
  margin: 0 auto 60px;
  padding: 11px;
  background: #2b2f37;
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 12px 30px rgba(20, 30, 60, 0.12);
}
.hero-device::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -36px;
  transform: translateX(-50%);
  width: 128px;
  height: 40px;
  background: #2b2f37;
}
.hero-device::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -50px;
  transform: translateX(-50%);
  width: 320px;
  height: 16px;
  border-radius: 4px 4px 11px 11px;
  background: #2b2f37;
  box-shadow: 0 14px 26px rgba(20, 30, 60, 0.18);
}
.hero-app-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 0 0 3px #15171d;
}
.hero-app {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 760px) {
  .hero { padding-top: 28px; padding-bottom: 44px; }
  .hero-stage { margin-top: 32px; }
  /* Мобилка: рамка-планшет (без стойки монитора) */
  .hero-device {
    padding: 6px;
    border-radius: 16px;
    margin-bottom: 8px;
  }
  .hero-app-wrap {
    border-radius: 11px;
    box-shadow: inset 0 0 0 2px #15171d;
  }
  .hero-device::before,
  .hero-device::after { display: none; }
}

/* ---- Лупа: кликабельный дашборд + полноэкранный зум ---- */
.hero-app-wrap {
  display: block;
  padding: 0;
  border: 0;
  -webkit-appearance: none;
  appearance: none;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
}
.hero-zoom-hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(18, 22, 30, 0.78);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.img-zoom {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(8, 12, 20, 0.96);
}
.img-zoom[hidden] { display: none; }
.img-zoom-scroll {
  position: absolute;
  inset: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
}
.img-zoom-img {
  display: block;
  margin: 0 auto; /* центр при вписывании; прокрутка от левого края при увеличении */
  width: 100%;
  max-width: 1200px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  cursor: zoom-in;
}
.img-zoom-img.is-zoomed {
  width: 260%;
  max-width: none;
  cursor: zoom-out;
}
.img-zoom-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.img-zoom-hint {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
}
@media (max-width: 760px) {
  .hero-zoom-hint { width: 30px; height: 30px; bottom: 7px; right: 7px; }
  /* Вписанная по ширине картинка по центру; зум — пинчем (JS-трансформация) */
  .img-zoom-scroll {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .img-zoom-scroll .img-zoom-img {
    min-width: 0;
    touch-action: none;
    transform-origin: 0 0;
    cursor: default;
  }
  .img-zoom-hint { top: auto; bottom: 18px; }
}

/* Демо мини-аппа: нижнюю кромку рамки-обёртки (.app-demo-shell, её скруглённая
   тень-рамка) опускаем ниже телефона. Телефон остаётся на месте — это просто
   нижний внутренний отступ обёртки, не сдвигающий контент выше. */
@media (max-width: 820px) {
  .app-demo-shell { padding-bottom: 56px !important; }
}

/* Мобайл: заголовки секций и их описания — по центру и аккуратнее.
   Карточки/контент ниже не трогаем — только сами заголовки и лид-абзацы. */
@media (max-width: 760px) {
  .section-head { text-align: center; }
  /* #pricing .section-head по дефолту left (ID-специфичность) — центрируем на мобиле */
  #pricing .section-head {
    text-align: center;
    justify-content: center;
    justify-items: center;
  }
  /* Описания: по центру, узкий столбец. Размер шрифта — прежний (мелкий,
     адаптивный 15/14px), без укрупнения. */
  .section-head p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 21rem;
  }
  .app-demo-copy h3 { text-align: center; }
  .app-demo-lead {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 21rem;
  }
}

/* Блок «Прибыль / ДРР / Склад» (.workflow-result-shell) был большой белой
   рамкой-обёрткой вокруг уже-карточек — двойная рамка с видимым краем.
   Убираем обёртку: внутренние карточки лежат прямо на едином фоне, как везде. */
.workflow-result-shell {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* Единый вид ВСЕХ карточек секции «Сигнал приходит…»: чистый белый фон +
   бордер + мягкая тень. Раньше шаги (1-2-3) и Telegram-карточка шли голубым
   градиентом, а метрики Прибыль/ДРР/Склад — белым → разнобой «голубое vs белое».
   Чёткие белые карточки на голубоватом фоне страницы — ровный SaaS-вид. */
#workflow .workflow-step,
#workflow .telegram-thread,
#workflow .workflow-result-card,
#workflow .workflow-ai-card {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

/* «Сигнал приходит…»: на мобиле стрелка-вниз висела с большими пустыми
   интервалами (36px сверху, 54px снизу) — поджимаем, чтобы блок читался
   собранно, по-SaaS, а не разваливался на части. */
@media (max-width: 820px) {
  #workflow .signal-scene { gap: 18px; }
  #workflow .workflow-result-grid { margin-top: 0; }
}

/* Pulse-карточки («Кто давит на вашу цену» / «История поведения цен» /
   «Журнал ценовых событий») — синяя градиент-рамка как у «Бета-доступ»
   (приём padding-box/border-box): в секции было слишком много белого,
   рамка добавляет фирменный цвет и собирает блок. */
#pulse .feature-card {
  border: 1.5px solid transparent;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, var(--primary), var(--accent)) border-box;
}

/* ── Ранний доступ: 3 колонки-тарифа (Бета активна, остальные заблокированы).
   Левое выравнивание как в исходном дизайне; !important перебивает @media-правила
   старой 2-колоночной (карточка+визуал) раскладки. */
#pricing .pricing-grid.pricing-grid--tiers {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  justify-content: stretch !important;
  transform: none !important;
  gap: 20px !important;
  max-width: var(--container) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  align-items: stretch !important;
}
@media (max-width: 900px) {
  /* Мобилка: тарифы — горизонтальная лента со свайпом и прилипанием
     (как у TrueStats), а не стопкой вниз. */
  #pricing .pricing-grid.pricing-grid--tiers {
    display: flex !important;
    grid-template-columns: none !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    gap: 12px !important;
    padding-top: 6px !important;
    padding-bottom: 16px !important;
    scrollbar-width: none;
  }
  /* Глобальный body*{touch-action:pan-y} запрещает горизонтальный свайп —
     возвращаем его внутри карусели (и вертикаль для скролла страницы). */
  #pricing .pricing-grid--tiers,
  #pricing .pricing-grid--tiers * {
    touch-action: pan-x pan-y !important;
  }
  #pricing .pricing-grid.pricing-grid--tiers::-webkit-scrollbar {
    display: none;
  }
  #pricing .pricing-grid--tiers .pricing-card {
    flex: 0 0 88% !important;
    padding: 14px 18px !important;
    scroll-snap-align: start;
    transform: none !important;
  }
  #pricing .pricing-grid--tiers .pricing-card:hover {
    transform: none !important;
  }
  /* Мобилка: карточки тарифов короче по высоте (ширину не трогаем) */
  #pricing .pricing-grid--tiers .pricing-price { margin-top: 8px !important; }
  #pricing .pricing-grid--tiers .pricing-value { font-size: 25px !important; }
  #pricing .pricing-grid--tiers .pricing-list {
    margin-top: 10px !important;
    gap: 5px 11px !important;
  }
  #pricing .pricing-grid--tiers .pricing-list li {
    font-size: 12.5px !important;
    line-height: 1.25 !important;
  }
  #pricing .pricing-grid--tiers .pricing-cta { padding-top: 10px !important; padding-bottom: 10px !important; }
}

/* Заблокированные тарифы — детали замазаны (блюр): видны только заголовок,
   замок 🔒 и статус. Цена + список фич размыты как «скоро откроется». */
.pricing-card.is-locked .pricing-price,
.pricing-card.is-locked .pricing-list {
  filter: blur(7px);
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
  opacity: 0.85;
}

/* «Скоро» на заблокированных карточках — шрифт как в Telegram
   (Roboto на Android / SF Pro на iOS / Segoe UI на десктопе — системный стек TG). */
.pricing-cta-locked {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}

/* CTA всех тарифов на одном уровне: прижимаем кнопку к низу карточки
   (карточки равной высоты в гриде → «Открыть» и обе «Скоро» выровнены). */
#pricing .pricing-grid--tiers .pricing-cta {
  margin-top: auto;
}

/* ── FIX «От данных кабинета до решения»: шаги на мобиле в ОДИН столбец.
   Базовое правило задумано так (см. коммент у .workflow-split .workflow-steps
   «На мобиле шаги в один столбец»), но @media(max-width:820px) ниже по исходнику
   ставит 2×2-grid и из-за порядка каскада перебивал мобильный однустолбчатый
   вид → блоки слипались в тесную сетку 2×2. Это правило идёт ПОСЛЕ 820px-блока,
   поэтому на телефоне (≤600px) снова один столбец, как было раньше; планшет
   601–820px остаётся 2×2. */
@media (max-width: 600px) {
  .workflow-split .workflow-steps {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
  }
}
