/* ==========================================================================
   SetHubble /offline/ — дизайн-система страницы для владельца бизнеса
   Светлый B2B. Тёмный только hero (якорь бренда).
   Файл самодостаточный: не зависит от Tailwind-классов, поэтому вёрстка
   страницы не ломается при пересборке CSS. Подключается <link> в offline.njk.
   ========================================================================== */

:root {
  --off-ink: #0f172a;
  --off-ink-2: #1e293b;
  --off-muted: #475569;
  --off-muted-2: #64748b;
  --off-faint: #94a3b8;
  --off-bg: #f8fafc;
  --off-surface: #ffffff;
  --off-line: #e2e8f0;
  --off-line-2: #cbd5e1;

  --off-accent: #0891b2;
  --off-accent-2: #06b6d4;
  --off-accent-soft: #ecfeff;
  --off-good: #059669;
  --off-good-soft: #ecfdf5;
  --off-warn: #b45309;
  --off-warn-soft: #fffbeb;
  --off-bad: #dc2626;
  --off-bad-soft: #fef2f2;

  --off-dark: #020617;
  --off-dark-2: #0b1220;

  --off-r-sm: 12px;
  --off-r: 18px;
  --off-r-lg: 26px;
  --off-r-xl: 34px;

  --off-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --off-shadow: 0 12px 28px -14px rgba(15, 23, 42, 0.18);
  --off-shadow-lg: 0 28px 60px -24px rgba(15, 23, 42, 0.28);

  --off-max: 1120px;
}

/* ---------- База ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body.off-body {
  background: var(--off-bg);
  color: var(--off-ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.off-wrap {
  width: 100%;
  max-width: var(--off-max);
  margin: 0 auto;
  padding: 0 20px;
}

.off-sec {
  padding: 76px 0;
}
.off-sec--alt {
  background: var(--off-surface);
  border-top: 1px solid var(--off-line);
  border-bottom: 1px solid var(--off-line);
}

.off-sec-head {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}
.off-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--off-accent);
  margin-bottom: 14px;
}
.off-h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  font-weight: 800;
  color: var(--off-ink);
  letter-spacing: -0.02em;
}
.off-sub {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--off-muted);
}

/* ---------- Навигация ---------- */
.off-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--off-line);
}
.off-nav__in {
  max-width: var(--off-max);
  margin: 0 auto;
  padding: 0 20px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.off-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.off-logo__mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--off-accent-2), #6366f1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 17px;
  box-shadow: 0 6px 16px -8px rgba(8, 145, 178, 0.9);
}
.off-logo__txt {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.off-logo__name {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--off-ink);
  text-transform: uppercase;
}
.off-logo__sub {
  font-size: 10px;
  font-weight: 700;
  color: var(--off-muted-2);
}
.off-nav__links {
  display: none;
  gap: 26px;
  font-size: 14px;
  font-weight: 700;
}
.off-nav__links a {
  color: var(--off-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.off-nav__links a:hover {
  color: var(--off-accent);
}
.off-nav__act {
  display: flex;
  align-items: center;
  gap: 10px;
}
.off-theme-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--off-line);
  background: var(--off-surface);
  color: var(--off-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.off-theme-btn:hover {
  border-color: var(--off-accent);
  color: var(--off-accent);
}
.off-theme-btn svg {
  width: 18px;
  height: 18px;
}
html:not(.light-theme) .off-theme-btn .i-sun {
  display: none;
}
html:not(.light-theme) .off-theme-btn .i-moon {
  display: block;
}
html.light-theme .off-theme-btn .i-sun {
  display: block;
}
html.light-theme .off-theme-btn .i-moon {
  display: none;
}
.off-theme-btn .i-moon {
  display: none;
}

/* ---------- HERO (тёмный) ---------- */
.off-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 620px at 78% -12%, rgba(6, 182, 212, 0.22), transparent 62%),
    radial-gradient(900px 560px at 8% 8%, rgba(99, 102, 241, 0.2), transparent 60%),
    linear-gradient(180deg, var(--off-dark) 0%, var(--off-dark-2) 100%);
  color: #e2e8f0;
  padding: 132px 0 68px;
}
.off-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 78%);
  pointer-events: none;
}
.off-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 52px;
  align-items: center;
}
.off-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.34);
  color: #67e8f9;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.off-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.16);
}
.off-h1 {
  margin: 22px 0 20px;
  font-size: clamp(32px, 5.4vw, 58px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
}
.off-grad {
  background: linear-gradient(100deg, #22d3ee 0%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.off-lead {
  margin: 0 0 30px;
  max-width: 560px;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  color: #cbd5e1;
}
.off-trust {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
}
.off-trust li {
  display: flex;
  align-items: center;
  gap: 7px;
}
.off-trust svg {
  width: 15px;
  height: 15px;
  color: #34d399;
  flex: 0 0 15px;
}

/* ---------- Кнопки ---------- */
.off-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.off-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 26px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
}
.off-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.off-btn--primary {
  background: linear-gradient(135deg, var(--off-accent) 0%, #4f46e5 100%);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(8, 145, 178, 0.95);
}
.off-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px -16px rgba(8, 145, 178, 1);
}
.off-btn--dark {
  background: var(--off-ink);
  color: #fff;
  box-shadow: 0 14px 30px -16px rgba(15, 23, 42, 0.9);
}
.off-btn--dark:hover {
  transform: translateY(-2px);
  background: #111c33;
}
.off-btn--ondark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(148, 163, 184, 0.34);
  color: #e2e8f0;
}
.off-btn--ondark:hover {
  border-color: rgba(34, 211, 238, 0.7);
  color: #fff;
  background: rgba(34, 211, 238, 0.1);
}
/* ---------- Сетки и карточки ---------- */
.off-grid {
  display: grid;
  gap: 18px;
}
.off-grid--2 {
  grid-template-columns: 1fr;
}
.off-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
}
.off-card {
  background: var(--off-surface);
  border: 1px solid var(--off-line);
  border-radius: var(--off-r-lg);
  padding: 26px;
  box-shadow: var(--off-shadow-sm);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.off-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--off-shadow);
  border-color: var(--off-line-2);
}

.off-card__ico {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: var(--off-accent-soft);
  color: var(--off-accent);
}
.off-card__ico svg {
  width: 22px;
  height: 22px;
}
.off-card__num {
  font-size: 13px;
  font-weight: 900;
  color: var(--off-faint);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.off-card h3 {
  margin: 0 0 9px;
  font-size: 18px;
  font-weight: 800;
  color: var(--off-ink);
  letter-spacing: -0.01em;
}
.off-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--off-muted);
}

/* ---------- Лента цифр ---------- */






/* ---------- Мокап: тейбл-тент + телефон ---------- */
.off-mock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.off-mock__cap {
  margin: 0;
  max-width: 340px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--off-muted-2);
  text-align: center;
}
.off-hero .off-mock__cap {
  color: #94a3b8;
}
.off-tent {
  position: relative;
  width: min(340px, 100%);
  background: #fff;
  border-radius: var(--off-r);
  padding: 26px 26px 22px;
  box-shadow: var(--off-shadow-lg);
  text-align: center;
  transform: rotate(-1.4deg);
}
.off-tent::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -14px;
  height: 16px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #e2e8f0, #cbd5e1);
  box-shadow: 0 12px 24px -12px rgba(15, 23, 42, 0.45);
}
.off-tent__brand {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--off-accent);
}
.off-tent__offer {
  display: inline-block;
  margin-top: 12px;
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--off-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.off-tent__title {
  margin: 10px 0 4px;
  font-size: 22px;
  font-weight: 900;
  color: var(--off-ink);
  letter-spacing: -0.02em;
}
.off-tent__sub {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--off-muted-2);
}
.off-tent__qr {
  width: 158px;
  height: 158px;
  margin: 0 auto 14px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--off-line);
  border-radius: 14px;
  box-shadow: var(--off-shadow-sm);
}
.off-tent__qr img {
  width: 100%;
  height: 100%;
  display: block;
}
.off-tent__cta {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--off-ink);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.off-tent__note {
  margin: 14px 0 0;
  font-size: 11px;
  color: var(--off-faint);
}

.off-phone {
  width: min(268px, 100%);
  background: #0f172a;
  border-radius: 30px;
  padding: 12px;
  box-shadow: var(--off-shadow-lg);
}
.off-phone__screen {
  background: #f1f5f9;
  border-radius: 21px;
  padding: 16px 14px 18px;
  min-height: 388px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.off-phone__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}
.off-phone__ava {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--off-accent-2), #6366f1);
  flex: 0 0 26px;
}
.off-phone__name {
  font-size: 12px;
  font-weight: 800;
  color: var(--off-ink);
}
.off-phone__status {
  font-size: 10px;
  color: #16a34a;
  font-weight: 700;
}
.off-bubble {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.45;
}
.off-bubble--in {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #334155;
  border-bottom-left-radius: 4px;
}
.off-kbd {
  align-self: stretch;
  padding: 9px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.off-phone__hint {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
  font-size: 10px;
  line-height: 1.45;
  color: #64748b;
}

/* ---------- Шаги механики ---------- */
.off-mech {
  display: grid;
  gap: 26px;
  align-items: start;
}
.off-mech__aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.off-mech__cap {
  margin: 0;
  max-width: 268px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--off-muted-2);
  text-align: center;
}
.off-steps {
  display: grid;
  gap: 16px;
  counter-reset: offstep;
}
.off-step {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  background: var(--off-surface);
  border: 1px solid var(--off-line);
  border-radius: var(--off-r-lg);
  padding: 24px;
  box-shadow: var(--off-shadow-sm);
}
.off-step__n {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(140deg, var(--off-accent) 0%, #4f46e5 100%);
  color: #fff;
  font-size: 21px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px -14px rgba(8, 145, 178, 1);
}
.off-step h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--off-ink);
}
.off-step p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--off-muted);
}
.off-step__say {
  margin-top: 12px;
  padding: 10px 14px;
  border-left: 3px solid var(--off-accent);
  background: var(--off-accent-soft);
  border-radius: 0 10px 10px 0;
  font-size: 13px;
  color: var(--off-ink-2);
}
.off-step__say b {
  color: var(--off-accent);
}

/* ---------- Модельный расчёт ---------- */
.off-case {
  background: var(--off-surface);
  border: 1px solid var(--off-line);
  border-radius: var(--off-r-xl);
  overflow: hidden;
  box-shadow: var(--off-shadow);
}
.off-case__head {
  padding: 26px 28px;
  border-bottom: 1px solid var(--off-line);
  background: linear-gradient(180deg, #f8fafc, #fff);
}
.off-case__head h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  color: var(--off-ink);
}
.off-case__head p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--off-muted);
}
.off-case__body {
  padding: 8px 28px 26px;
}
.off-case__note {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-radius: var(--off-r-sm);
  background: var(--off-warn-soft);
  border: 1px solid #fde68a;
  font-size: 13px;
  line-height: 1.55;
  color: #78350f;
}

/* ---------- Таймлайн возвратов ---------- */

/* ---------- Таблица сравнения ---------- */
.off-cmp {
  overflow-x: auto;
  background: var(--off-surface);
  border: 1px solid var(--off-line);
  border-radius: var(--off-r-lg);
  box-shadow: var(--off-shadow-sm);
  -webkit-overflow-scrolling: touch;
}
.off-cmp table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14.5px;
}
.off-cmp th,
.off-cmp td {
  padding: 15px 16px;
  text-align: left;
  border-bottom: 1px solid var(--off-line);
  vertical-align: top;
}
.off-cmp thead th {
  font-size: 13px;
  font-weight: 800;
  color: var(--off-muted-2);
  background: #f8fafc;
  white-space: nowrap;
}
.off-cmp thead th.is-us {
  color: var(--off-accent);
  background: var(--off-accent-soft);
}
.off-cmp tbody th {
  font-weight: 700;
  color: var(--off-muted-2);
  white-space: nowrap;
}
.off-cmp td {
  color: var(--off-ink-2);
}
.off-cmp td.is-us {
  font-weight: 800;
  color: var(--off-ink);
  background: rgba(236, 254, 255, 0.7);
}
.off-cmp tbody tr:last-child th,
.off-cmp tbody tr:last-child td {
  border-bottom: 0;
}

/* ---------- FAQ ---------- */
.off-faq {
  display: grid;
  gap: 10px;
  max-width: 840px;
  margin: 0 auto;
}
.off-faq details {
  background: var(--off-surface);
  border: 1px solid var(--off-line);
  border-radius: var(--off-r);
  padding: 0 20px;
  box-shadow: var(--off-shadow-sm);
}
.off-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 30px 18px 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--off-ink);
  position: relative;
}
.off-faq summary::-webkit-details-marker {
  display: none;
}
.off-faq summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -6px;
  border-right: 2px solid var(--off-accent);
  border-bottom: 2px solid var(--off-accent);
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.off-faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -2px;
}
.off-faq p {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--off-muted);
}

/* ---------- Реальный пример настроек ---------- */
.off-real {
  margin: 26px auto 0;
  max-width: 760px;
  padding: 16px 20px;
  border-radius: var(--off-r);
  background: var(--off-surface);
  border: 1px dashed var(--off-line-2);
  font-size: 14px;
  line-height: 1.6;
  color: var(--off-muted);
  text-align: center;
}
.off-real a {
  color: var(--off-accent);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dotted var(--off-accent);
  white-space: nowrap;
}
.off-real a:hover {
  color: #0e7490;
}
html:not(.light-theme) .off-real {
  background: #111a2e;
  border-color: rgba(148, 163, 184, 0.3);
  color: #94a3b8;
}

/* ---------- Демо-скриншоты (пример настроек) ---------- */
.off-demo {
  margin: 22px auto 0;
  max-width: 860px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.off-demo img {
  width: 100%;
  height: auto;
  border-radius: var(--off-r);
  border: 1px solid var(--off-line-2);
  box-shadow: var(--off-shadow);
}
.off-demo__cap {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  color: var(--off-muted);
}
@media (max-width: 640px) {
  .off-demo {
    grid-template-columns: 1fr;
  }
}

/* ---------- Чипы (валюты, ниши) ---------- */
.off-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.off-chips--center {
  justify-content: center;
  max-width: 760px;
  margin: 0 auto;
}
.off-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--off-surface);
  border: 1px solid var(--off-line-2);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--off-ink-2);
  box-shadow: var(--off-shadow-sm);
}
html:not(.light-theme) .off-chip {
  background: #111a2e;
  border-color: rgba(148, 163, 184, 0.24);
  color: #e2e8f0;
}

/* ---------- Цепочка уровней ---------- */
.off-chain {
  display: grid;
  gap: 0;
  max-width: 860px;
  margin: 0 auto;
}
.off-chain__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  background: var(--off-surface);
  border: 1px solid var(--off-line);
  border-radius: var(--off-r);
  padding: 18px 20px;
  box-shadow: var(--off-shadow-sm);
}
.off-chain__row--you {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-color: #0f172a;
}
.off-chain__row--you .off-chain__lv,
.off-chain__row--you .off-chain__do {
  color: #f1f5f9;
}
.off-chain__lv {
  font-size: 15px;
  font-weight: 900;
  color: var(--off-ink);
}
.off-chain__do {
  font-size: 14px;
  line-height: 1.55;
  color: var(--off-muted);
}
.off-chain__pay {
  font-size: 14px;
  font-weight: 800;
  color: var(--off-good);
}
.off-chain__arrow {
  padding: 7px 0 7px 26px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--off-faint);
}
html:not(.light-theme) .off-chain__row {
  background: #111a2e;
  border-color: rgba(148, 163, 184, 0.18);
}
html:not(.light-theme) .off-chain__row--you {
  background: linear-gradient(135deg, #020617, #0f172a);
}
html:not(.light-theme) .off-chain__lv {
  color: #f1f5f9;
}
html:not(.light-theme) .off-chain__do {
  color: #94a3b8;
}
@media (min-width: 640px) {
  .off-chain__row {
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 16px;
  }
  .off-chain__row--you {
    grid-template-columns: 1fr 2fr;
  }
}

/* ---------- Лестница масштаба ---------- */
.off-stair {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.off-stair__step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: center;
  background: var(--off-surface);
  border: 1px solid var(--off-line);
  border-left: 3px solid var(--off-line-2);
  border-radius: var(--off-r);
  padding: 16px 20px;
}
.off-stair__step h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
  color: var(--off-ink);
}
.off-stair__step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--off-muted);
}
.off-stair__n {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #eef2f7;
  color: var(--off-muted);
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.off-stair__step--top {
  border-left-color: var(--off-accent);
  background: linear-gradient(120deg, #ecfeff, #f0f9ff);
}
.off-stair__step--top .off-stair__n {
  background: linear-gradient(140deg, var(--off-accent), #4f46e5);
  color: #fff;
}
.off-stair__step--top h3 {
  color: #0e7490;
}
@media (min-width: 640px) {
  .off-stair__step:nth-child(1) {
    margin-right: 12%;
  }
  .off-stair__step:nth-child(2) {
    margin-right: 8%;
  }
  .off-stair__step:nth-child(3) {
    margin-right: 4%;
  }
}
html:not(.light-theme) .off-stair__step {
  background: #111a2e;
  border-color: rgba(148, 163, 184, 0.18);
  border-left-color: rgba(148, 163, 184, 0.3);
}
html:not(.light-theme) .off-stair__step h3 {
  color: #f1f5f9;
}
html:not(.light-theme) .off-stair__step p {
  color: #94a3b8;
}
html:not(.light-theme) .off-stair__n {
  background: #1e293b;
  color: #cbd5e1;
}
html:not(.light-theme) .off-stair__step--top {
  background: linear-gradient(120deg, rgba(8, 145, 178, 0.16), rgba(79, 70, 229, 0.14));
}
html:not(.light-theme) .off-stair__step--top h3 {
  color: #67e8f9;
}

/* ---------- Строки диапазонов (настройки) ---------- */
.off-ranges {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}
.off-range {
  background: var(--off-surface);
  border: 1px solid var(--off-line);
  border-radius: var(--off-r);
  padding: 20px 22px;
}
.off-range__k {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--off-muted-2);
}
.off-range__v {
  margin-top: 8px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--off-ink);
}
.off-range__v span {
  margin: 0 4px;
  color: var(--off-faint);
  font-weight: 500;
}
.off-range__bar {
  margin-top: 12px;
  height: 8px;
  border-radius: 999px;
  background: #eef2f7;
  overflow: hidden;
}
.off-range__bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--off-accent), #4f46e5);
}
.off-range__note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--off-line);
  font-size: 13px;
  line-height: 1.55;
  color: var(--off-muted);
}
html:not(.light-theme) .off-range {
  background: #111a2e;
  border-color: rgba(148, 163, 184, 0.18);
}
html:not(.light-theme) .off-range__k {
  color: #94a3b8;
}
html:not(.light-theme) .off-range__v {
  color: #f1f5f9;
}
html:not(.light-theme) .off-range__bar {
  background: rgba(148, 163, 184, 0.2);
}

/* ---------- Яркий блок масштаба в калькуляторе ---------- */
.off-calc__scale {
  position: relative;
  margin-top: 26px;
  padding: 34px 32px;
  border-radius: var(--off-r-lg);
  overflow: hidden;
  background:
    radial-gradient(720px 340px at 88% 0%, rgba(6, 182, 212, 0.4), transparent 62%),
    radial-gradient(560px 320px at 4% 100%, rgba(99, 102, 241, 0.4), transparent 62%),
    linear-gradient(140deg, #0f2540, #0b1220 58%, #131a3a);
  box-shadow: 0 22px 48px -22px rgba(8, 145, 178, 0.7);
}
.off-calc__scale-label {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #67e8f9;
}
.off-calc__scale-title {
  margin: 0 0 14px;
  font-size: clamp(21px, 3vw, 29px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff;
  max-width: 22ch;
}
.off-calc__scale-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.62;
  color: #cfe0f0;
  max-width: 68ch;
}
.off-calc__chain {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: netscale;
}
.off-calc__chain li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: center;
  padding: 11px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(125, 211, 252, 0.2);
  font-size: 14px;
  font-weight: 700;
  color: #e2e8f0;
}
.off-calc__chain li {
  counter-increment: netscale;
}
.off-calc__chain li::before {
  content: counter(netscale);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.16);
  border: 1px solid rgba(34, 211, 238, 0.45);
  color: #a5f3fc;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.off-calc__chain li:last-child {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.22), rgba(129, 140, 248, 0.18));
  border-color: rgba(125, 211, 252, 0.45);
  color: #ffffff;
}
.off-calc__scale-caveat {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 12.5px;
  line-height: 1.55;
  color: #94a3b8;
}
@media (min-width: 640px) {
  .off-calc__chain {
    grid-template-columns: repeat(4, 1fr);
  }
  .off-calc__chain li {
    grid-template-columns: 26px 1fr;
    gap: 10px;
    align-content: center;
    min-height: 62px;
  }
}

/* ---------- Хук в hero: оглавление страницы ---------- */
.off-hook {
  position: relative;
  z-index: 2;
  margin-top: 46px;
}
.off-hook__label {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7dd3fc;
  text-align: center;
}
.off-hook__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: hookstep;
}
.off-hook__item {
  counter-increment: hookstep;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  padding: 13px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 14.5px;
  line-height: 1.5;
  color: #cbd5e1;
}
.off-hook__item::before {
  content: counter(hookstep);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.34);
  color: #7dd3fc;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.off-hook__note {
  margin: 14px 0 0;
  text-align: center;
  font-size: 12px;
  color: #7c8aa0;
}
@media (min-width: 640px) {
  .off-hook__list {
    grid-template-columns: repeat(2, 1fr);
  }
  .off-hook__item:last-child {
    grid-column: 1 / -1;
  }
}
@media (min-width: 1100px) {
  .off-hook__list {
    grid-template-columns: repeat(3, 1fr);
  }
  .off-hook__item:last-child {
    grid-column: auto;
  }
}

/* ---------- Вывод в конце блока Copilot ---------- */
.off-copilot__outro {
  max-width: 760px;
  margin: 40px auto 0;
  padding: 26px 28px;
  border-radius: var(--off-r-lg);
  border: 1px solid rgba(103, 232, 249, 0.28);
  background: linear-gradient(120deg, rgba(8, 145, 178, 0.16), rgba(79, 70, 229, 0.14));
}
.off-copilot__outro h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
  color: #67e8f9;
}
.off-copilot__outro p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: #dbe4f0;
}

/* ---------- Схема: маршрут 6 шагов ---------- */
.off-route {
  margin: 0 0 30px;
  padding: 20px 24px 8px;
  border-radius: var(--off-r-lg);
  background: var(--off-surface);
  border: 1px solid var(--off-line);
  box-shadow: var(--off-shadow-sm);
}
.off-route__svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 660px;
  margin: 0 auto;
  overflow: visible;
}
.off-route__rail {
  stroke: #e2e8f0;
  stroke-width: 3.5;
  stroke-linecap: round;
}
.off-route__run {
  stroke: #22d3ee;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 26 74;
  animation: offRouteRun 4.5s linear infinite;
}
.off-route__dots circle {
  fill: #ffffff;
  stroke: #94a3b8;
  stroke-width: 3;
}
.off-route__dots circle.is-payout {
  fill: #4f46e5;
  stroke: #a5b4fc;
  animation: offRoutePayout 2s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.off-route__labels text {
  font-size: 12.5px;
  font-weight: 700;
  fill: var(--off-muted);
}

@keyframes offRouteRun {
  from {
    stroke-dashoffset: 100;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes offRoutePayout {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.22);
  }
}

html:not(.light-theme) .off-route {
  background: #111a2e;
  border-color: rgba(148, 163, 184, 0.18);
}
html:not(.light-theme) .off-route__rail {
  stroke: rgba(148, 163, 184, 0.22);
}
html:not(.light-theme) .off-route__dots circle {
  fill: #0f172a;
  stroke: #64748b;
}
html:not(.light-theme) .off-route__labels text {
  fill: #94a3b8;
}

/* ---------- Схема: флаер на кассе и телефон гостя ---------- */
.off-start {
  display: grid;
  gap: 26px;
}
.off-path.off-path--stack {
  grid-template-columns: 1fr;
}
.off-path__item--row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
}
.off-path__item--row .off-path__n {
  margin-bottom: 0;
  font-size: 30px;
  line-height: 1;
}
.off-scene {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.off-scene__svg {
  width: 100%;
  height: auto;
  max-width: 420px;
  overflow: visible;
}
.off-scene__table {
  fill: #cbd5e1;
}
.off-scene__tentShadow,
.off-scene__phoneShadow {
  fill: #94a3b8;
  opacity: 0.35;
}
.off-scene__tentBody {
  fill: #ffffff;
  stroke: #cbd5e1;
  stroke-width: 1.5;
}
.off-scene__tentBand {
  fill: url(#offSceneBand);
}
.off-scene__tentBar1,
.off-scene__tentBar2 {
  fill: #cbd5e1;
}
.off-scene__tentQr,
.off-scene__phoneQr {
  fill: #ffffff;
  stroke: #94a3b8;
  stroke-width: 1.5;
}
.off-scene__qrInk rect {
  fill: #0f172a;
}
.off-scene__qrInk--screen rect {
  fill: #334155;
}
.off-scene__phoneBody {
  fill: url(#offSceneTop);
}
.off-scene__phoneScreen {
  fill: #f1f5f9;
}
.off-scene__btn {
  fill: #0891b2;
}
.off-scene__btn2 {
  fill: #cbd5e1;
}
.off-scene__scan {
  fill: #22d3ee;
  animation: offSceneScan 2.6s ease-in-out infinite;
}
.off-scene__phone {
  animation: offSceneBob 4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.off-scene__beam {
  animation: offSceneBeam 3.4s ease-in-out infinite;
}
.off-scene__cap {
  font-size: 13px;
  font-weight: 700;
  color: var(--off-muted);
  text-align: center;
}

@keyframes offSceneScan {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  50% {
    transform: translateY(108px);
    opacity: 1;
  }
}
@keyframes offSceneBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
@keyframes offSceneBeam {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.9;
  }
}

html:not(.light-theme) .off-scene__table {
  fill: #334155;
}
html:not(.light-theme) .off-scene__tentBody {
  fill: #f8fafc;
  stroke: #475569;
}
html:not(.light-theme) .off-scene__tentBar1,
html:not(.light-theme) .off-scene__tentBar2,
html:not(.light-theme) .off-scene__btn2 {
  fill: #64748b;
}
html:not(.light-theme) .off-scene__phoneScreen {
  fill: #e2e8f0;
}
html:not(.light-theme) .off-scene__cap {
  color: #94a3b8;
}

@media (min-width: 900px) {
  .off-start {
    grid-template-columns: 1fr 0.82fr;
    gap: 40px;
    align-items: center;
  }
}

/* ---------- Схема: разбивка чека (блок «Три условия») ---------- */
.off-split {
  margin: 0 0 30px;
  padding: 24px 26px 22px;
  border-radius: var(--off-r-lg);
  background: var(--off-surface);
  border: 1px solid var(--off-line);
  box-shadow: var(--off-shadow-sm);
}
.off-split__top {
  text-align: center;
  margin-bottom: 6px;
}
.off-split__check {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid var(--off-line-2);
  font-size: 14px;
  font-weight: 800;
  color: var(--off-ink);
}
.off-split__svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 560px;
  margin: 0 auto;
  overflow: visible;
}
.off-split__track {
  fill: #eef2f7;
}
.off-split__keep {
  transform-origin: 20px 66px;
  animation: offSplitGrow 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.off-split__give {
  animation: offSplitPulse 2.4s ease-in-out 1.1s infinite;
}
.off-split__edge {
  stroke: #ffffff;
  stroke-width: 2.5;
  stroke-linecap: round;
  animation: offSplitEdge 0.7s ease-out 1.1s both;
  transform-origin: 452px 66px;
}
.off-split__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: center;
  align-items: flex-start;
  margin-top: 14px;
  text-align: left;
}
.off-split__label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--off-muted);
}
.off-split__label b {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.off-split__label--keep b {
  color: #0e7490;
}
.off-split__label--give b {
  color: #4f46e5;
}
.off-split__label em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--off-faint);
}

@keyframes offSplitGrow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes offSplitPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}
@keyframes offSplitEdge {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

html:not(.light-theme) .off-split {
  background: #111a2e;
  border-color: rgba(148, 163, 184, 0.18);
}
html:not(.light-theme) .off-split__check {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.3);
  color: #f1f5f9;
}
html:not(.light-theme) .off-split__track {
  fill: rgba(148, 163, 184, 0.16);
}
html:not(.light-theme) .off-split__label {
  color: #94a3b8;
}
html:not(.light-theme) .off-split__label--keep b {
  color: #67e8f9;
}
html:not(.light-theme) .off-split__label--give b {
  color: #a5b4fc;
}

/* ---------- Схема: конвейер выплаты (блок «Инвойсы») ---------- */
.off-flow {
  margin: 0 0 30px;
  padding: 22px 24px 10px;
  border-radius: var(--off-r-lg);
  background: var(--off-surface);
  border: 1px solid var(--off-line);
  box-shadow: var(--off-shadow-sm);
}
.off-flow__svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 600px;
  margin: 0 auto;
  overflow: visible;
}
.off-flow__rail {
  stroke: #e2e8f0;
  stroke-width: 4;
  stroke-linecap: round;
}
.off-flow__drop {
  stroke: url(#offFlowLine);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 14 86;
  animation: offFlowRun 3s linear infinite;
}
.off-flow__dots circle {
  fill: #ffffff;
  stroke: #22d3ee;
  stroke-width: 3;
  animation: offFlowPulse 3s ease-in-out infinite;
}
.off-flow__dots circle:nth-child(2) {
  animation-delay: 0.4s;
}
.off-flow__dots circle:nth-child(3) {
  animation-delay: 0.8s;
}
.off-flow__dots circle:nth-child(4) {
  animation-delay: 1.2s;
}
.off-flow__dots circle.is-money {
  fill: #4f46e5;
  stroke: #a5b4fc;
  animation-delay: 1.6s;
  animation-name: offFlowPulseMoney;
}
.off-flow__labels text {
  font-size: 13px;
  font-weight: 700;
  fill: var(--off-muted, #475569);
}

@keyframes offFlowRun {
  from {
    stroke-dashoffset: 100;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes offFlowPulse {
  0%,
  70%,
  100% {
    opacity: 1;
  }
  85% {
    opacity: 0.45;
  }
}
@keyframes offFlowPulseMoney {
  0%,
  60%,
  100% {
    opacity: 1;
    r: 15;
  }
  80% {
    opacity: 0.6;
    r: 12;
  }
}

html:not(.light-theme) .off-flow {
  background: #111a2e;
  border-color: rgba(148, 163, 184, 0.18);
}
html:not(.light-theme) .off-flow__rail {
  stroke: rgba(148, 163, 184, 0.22);
}
html:not(.light-theme) .off-flow__dots circle {
  fill: #0f172a;
}
html:not(.light-theme) .off-flow__labels text {
  fill: #94a3b8;
}

/* ---------- Блок «Ноль риска» ---------- */
.off-risk {
  display: grid;
  gap: 18px;
}
.off-risk__item {
  background: var(--off-surface);
  border: 1px solid var(--off-line);
  border-radius: var(--off-r-lg);
  padding: 24px 26px 22px;
  box-shadow: var(--off-shadow-sm);
}
.off-risk__mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 14px;
  background: #eef2f7;
  color: var(--off-faint);
}
.off-risk__mark--no {
  background: #fee2e2;
  color: #b91c1c;
}
.off-risk__mark--yes {
  background: #cffafe;
  color: #0e7490;
}
.off-risk__item--us {
  border-color: var(--off-accent, #22d3ee);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.07), transparent 70%),
    var(--off-surface);
}
.off-risk__item h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 800;
  color: var(--off-ink);
}
.off-risk__item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--off-muted);
}
.off-risk__item p b {
  color: var(--off-ink);
}

/* ---------- Два источника дохода в блоке «Масштаб» ---------- */
.off-two {
  margin: 24px 0 0;
  padding: 24px 26px 20px;
  border-radius: var(--off-r-lg);
  background: var(--off-surface);
  border: 1px solid var(--off-line);
  box-shadow: var(--off-shadow-sm);
}
.off-two__title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 800;
  color: var(--off-ink);
}
.off-two__grid {
  display: grid;
  gap: 16px;
}
.off-two__col {
  padding: 16px 18px;
  border-radius: var(--off-r-sm);
  background: var(--off-accent-soft);
  border: 1px solid var(--off-line);
}
.off-two__col b {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--off-ink);
  margin-bottom: 6px;
}
.off-two__col p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--off-muted);
}
.off-two__col p b {
  display: inline;
  font-weight: 800;
  color: #0e7490;
}
.off-two__note {
  margin: 14px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--off-faint);
}

html:not(.light-theme) .off-risk__mark {
  background: rgba(148, 163, 184, 0.18);
  color: #94a3b8;
}
html:not(.light-theme) .off-risk__mark--no {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
}
html:not(.light-theme) .off-risk__mark--yes {
  background: rgba(34, 211, 238, 0.16);
  color: #67e8f9;
}
html:not(.light-theme) .off-two__col {
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.18);
}
html:not(.light-theme) .off-two__col p b {
  color: #67e8f9;
}
html:not(.light-theme) .off-two__note {
  color: #94a3b8;
}

@media (min-width: 760px) {
  .off-risk {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .off-two__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Три источника дохода — в три колонки на 900px, по конвенции страницы
   (там же .off-grid--3 и .off-path). Между 760 и 899px остаётся 2+1. */
@media (min-width: 900px) {
  .off-two__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Цветные контуры карточек (как на главной) ----------
   Аналог border-t-4 на главной странице: цветная полоса по верхней
   границе связывает карточку с её содержимым — в «Ноль риска» с цветом
   знака, в «Трёх условиях» со стороной-контрагентом. Базовое правило
   карточек объявляет `border` целиком, поэтому модификаторы обязаны
   идти ПОСЛЕ него (они ниже по файлу) иначе снова перебьются. */
:root {
  --off-contour-w: 3px;
}
@media (min-width: 760px) {
  :root {
    --off-contour-w: 4px;
  }
}

/* «Ноль риска»: красный → как реклама, циан → как здесь, серый → оговорка */
.off-risk__item--bad {
  border-top: var(--off-contour-w) solid #fecaca;
}
.off-risk__item--good {
  border-top: var(--off-contour-w) solid #a5f3fc;
}
.off-risk__item--note {
  border-top: var(--off-contour-w) solid var(--off-line-2);
}

/* «Три условия владельца»: клиент → агент → вы */
.off-card--client {
  border-top: var(--off-contour-w) solid #99f6e4;
}
.off-card--agent {
  border-top: var(--off-contour-w) solid #a7f3d0;
}
.off-card--owner {
  border-top: var(--off-contour-w) solid #fde68a;
}

html:not(.light-theme) .off-risk__item--bad {
  border-top-color: #fca5a5;
}
html:not(.light-theme) .off-risk__item--good {
  border-top-color: #67e8f9;
}
html:not(.light-theme) .off-risk__item--note {
  border-top-color: rgba(148, 163, 184, 0.35);
}
html:not(.light-theme) .off-card--client {
  border-top-color: #2dd4bf;
}
html:not(.light-theme) .off-card--agent {
  border-top-color: #34d399;
}
html:not(.light-theme) .off-card--owner {
  border-top-color: #fbbf24;
}

/* Выделенная карточка «Ноль риска» держит свой градиент: общее правило
   для .off-risk__item сильнее по специфичности и срезало бы его. */
html:not(.light-theme) .off-risk__item--us {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.1), transparent 70%),
    #111a2e;
}

/* ---------- Пауза анимаций вне экрана + системная настройка движения ---------- */
[data-anim].is-paused *,
[data-anim].is-paused {
  animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
  [data-anim] *,
  [data-anim] {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Схема роста сети в блоке масштаба ---------- */
.off-calc__scale-text-col {
  min-width: 0;
}
.off-net {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.off-net__svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  overflow: visible;
}
.off-net__base path {
  fill: none;
  stroke: url(#offNetRay);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.55;
}
.off-net__base--thin path {
  stroke: url(#offNetRayThin);
  stroke-width: 1.4;
  opacity: 0.5;
}
.off-net__flow path {
  fill: none;
  stroke: #67e8f9;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 16 84;
  opacity: 0.95;
  animation: offNetFlow 2.6s linear infinite;
  animation-delay: var(--d, 0s);
}
.off-net__core {
  fill: url(#offNetCore);
  stroke: #a5f3fc;
  stroke-width: 1.6;
}
.off-net__nodes circle {
  fill: #0e7490;
  stroke: #67e8f9;
  stroke-width: 2;
}
.off-net__nodes--thin circle {
  fill: #1e1b4b;
  stroke: #a5b4fc;
  stroke-width: 1.4;
}
.off-net__money text {
  fill: #6ee7f9;
  font-size: 15px;
  font-weight: 900;
  opacity: 0.85;
}
.off-net__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  font-size: 11.5px;
  font-weight: 700;
  color: #94a3b8;
}
.off-net__legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.off-net__legend span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a5f3fc;
}
.off-net__legend span:nth-child(2)::before {
  background: #0e7490;
  border: 1px solid #67e8f9;
}
.off-net__legend span:nth-child(3)::before {
  background: #1e1b4b;
  border: 1px solid #a5b4fc;
}

@keyframes offNetFlow {
  from {
    stroke-dashoffset: 100;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .off-net__flow path {
    animation: none;
    stroke-dasharray: none;
    opacity: 0.5;
  }
}

@media (min-width: 900px) {
  .off-calc__scale {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 34px;
    align-items: center;
  }
  .off-calc__scale-title {
    max-width: none;
  }
}

/* ---------- Тёмный блок Copilot с плавающими точками ---------- */
.off-copilot {
  position: relative;
  padding: 84px 0;
  background:
    radial-gradient(900px 520px at 82% 6%, rgba(6, 182, 212, 0.2), transparent 62%),
    radial-gradient(760px 520px at 6% 96%, rgba(99, 102, 241, 0.22), transparent 62%),
    linear-gradient(180deg, #0b1220, #020617);
  color: #e2e8f0;
}
.off-dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.off-copilot__in {
  position: relative;
  z-index: 1;
}
.off-copilot__sub {
  margin: 0 0 20px;
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #f1f5f9;
  text-align: center;
}
.off-copilot__sub:not(:first-of-type) {
  margin-top: 44px;
}
/* Тёмные переопределения внутри блока — светлая страница остаётся читаемой */
.off-copilot .off-h2,
.off-copilot .off-card h3,
.off-copilot .off-step h3 {
  color: #f1f5f9;
}
.off-copilot .off-sub,
.off-copilot .off-card p,
.off-copilot .off-step p {
  color: #a8b6cb;
}
.off-copilot .off-eyebrow {
  color: #67e8f9;
}
.off-copilot .off-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: none;
}
.off-copilot .off-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(103, 232, 249, 0.4);
}
.off-copilot .off-card__ico {
  background: rgba(34, 211, 238, 0.12);
  color: #67e8f9;
}
.off-copilot .off-step {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: none;
}
.off-copilot .off-step__n {
  background: linear-gradient(140deg, #06b6d4, #6366f1);
}
.off-copilot .off-step__say {
  background: rgba(6, 182, 212, 0.12);
  color: #cbd5e1;
}
.off-copilot .off-step__say b {
  color: #67e8f9;
}
.off-copilot .off-mech__cap {
  color: #94a3b8;
}

/* ---------- 3 шага подключения ---------- */
.off-path {
  display: grid;
  gap: 16px;
  counter-reset: offpath;
}
.off-path__item {
  position: relative;
  background: var(--off-surface);
  border: 1px solid var(--off-line);
  border-radius: var(--off-r-lg);
  padding: 26px 24px 24px;
  box-shadow: var(--off-shadow-sm);
}
.off-path__n {
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  color: var(--off-line-2);
  margin-bottom: 12px;
}
.off-path__item h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--off-ink);
}
.off-path__item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--off-muted);
}

/* ---------- Финальный CTA ---------- */
.off-final {
  background:
    radial-gradient(760px 420px at 84% 8%, rgba(6, 182, 212, 0.16), transparent 62%),
    linear-gradient(180deg, #0b1220, var(--off-dark));
  color: #e2e8f0;
  padding: 84px 0;
}
.off-final__in {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.off-final h2 {
  margin: 0 0 16px;
  font-size: clamp(27px, 4.4vw, 44px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
}
.off-final p {
  margin: 0 auto 14px;
  max-width: 620px;
  font-size: 17px;
  line-height: 1.6;
  color: #cbd5e1;
}
.off-final__note {
  font-size: 13px !important;
  color: #94a3b8 !important;
}
.off-final .off-cta-row {
  justify-content: center;
  margin-top: 28px;
}

/* ---------- Подвал ---------- */
.off-foot {
  background: #fff;
  border-top: 1px solid var(--off-line);
  padding: 44px 0 40px;
  text-align: center;
}
.off-foot__brand {
  font-size: 14px;
  font-weight: 900;
  color: var(--off-ink);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.off-foot__note {
  max-width: 660px;
  margin: 14px auto 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--off-faint);
}
.off-foot__links {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  font-size: 13px;
  font-weight: 700;
}
.off-foot__links a {
  color: var(--off-muted);
  text-decoration: none;
}
.off-foot__links a:hover {
  color: var(--off-accent);
}

/* ---------- Мобильная липкая панель ---------- */
.off-sticky {
  display: flex;
  gap: 8px;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--off-line);
}
.off-sticky a {
  flex: 1;
  text-align: center;
  padding: 13px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.off-sticky .is-primary {
  background: linear-gradient(135deg, var(--off-accent), #4f46e5);
  color: #fff;
}
.off-sticky .is-ghost {
  border: 1px solid var(--off-line-2);
  color: var(--off-ink-2);
}
.off-sticky-space {
  display: block;
  height: 78px;
}

/* ---------- Адаптив ---------- */
@media (min-width: 640px) {
  .off-nav__links {
    display: flex;
  }
  .off-sec {
    padding: 96px 0;
  }
  .off-sticky,
  .off-sticky-space {
    display: none;
  }
}

@media (min-width: 900px) {
  .off-hero {
    padding: 150px 0 84px;
  }
  .off-hero__grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 60px;
  }
  .off-steps--cols {
    grid-template-columns: 1fr 1fr;
  }
  .off-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .off-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .off-path {
    grid-template-columns: repeat(3, 1fr);
  }
  .off-mech {
    grid-template-columns: 1.35fr 0.65fr;
    gap: 40px;
  }
  .off-mech__aside {
    position: sticky;
    top: 92px;
  }
  .off-mock {
    justify-content: flex-end;
  }
}

@media (min-width: 1024px) {
  .off-mock {
    gap: 26px;
  }
}

/* ---------- Тёмная тема (если пользователь её выбрал) ---------- */
html:not(.light-theme) body.off-body {
  background: #0b1120;
  color: #e2e8f0;
}
html:not(.light-theme) .off-sec--alt,
html:not(.light-theme) .off-card,
html:not(.light-theme) .off-risk__item,
html:not(.light-theme) .off-two,
html:not(.light-theme) .off-step,
html:not(.light-theme) .off-case,
html:not(.light-theme) .off-cmp,
html:not(.light-theme) .off-faq details,
html:not(.light-theme) .off-path__item,
html:not(.light-theme) .off-foot {
  background: #111a2e;
  border-color: rgba(148, 163, 184, 0.18);
}
html:not(.light-theme) .off-h2,
html:not(.light-theme) .off-card h3,
html:not(.light-theme) .off-step h3,
html:not(.light-theme) .off-path__item h3,
html:not(.light-theme) .off-risk__item h3,
html:not(.light-theme) .off-two__title,
html:not(.light-theme) .off-two__col b,
html:not(.light-theme) .off-case__head h3,
html:not(.light-theme) .off-faq summary,
html:not(.light-theme) .off-foot__brand,
html:not(.light-theme) .off-cmp td,
html:not(.light-theme) .off-cmp td.is-us {
  color: #f1f5f9;
}
html:not(.light-theme) .off-sub,
html:not(.light-theme) .off-card p,
html:not(.light-theme) .off-step p,
html:not(.light-theme) .off-path__item p,
html:not(.light-theme) .off-risk__item p,
html:not(.light-theme) .off-two__col p,
html:not(.light-theme) .off-range__note,
html:not(.light-theme) .off-case__head p,
html:not(.light-theme) .off-faq p,
html:not(.light-theme) .off-cmp tbody th {
  color: #94a3b8;
}
/* Выделение внутри абзаца карточки риска: в светлой теме оно темнее
   окружающего текста, в тёмной — светлее. */
html:not(.light-theme) .off-risk__item p b {
  color: #e2e8f0;
}
html:not(.light-theme) .off-nav {
  background: rgba(11, 17, 32, 0.86);
  border-bottom-color: rgba(148, 163, 184, 0.18);
}
html:not(.light-theme) .off-nav__links a,
html:not(.light-theme) .off-logo__name,
html:not(.light-theme) .off-foot__links a {
  color: #cbd5e1;
}
html:not(.light-theme) .off-logo__sub,
html:not(.light-theme) .off-foot__note {
  color: #64748b;
}
html:not(.light-theme) .off-theme-btn {
  background: #111a2e;
  border-color: rgba(148, 163, 184, 0.24);
  color: #cbd5e1;
}

html:not(.light-theme) .off-card__ico {
  background: rgba(6, 182, 212, 0.14);
}
html:not(.light-theme) .off-step__say {
  background: rgba(6, 182, 212, 0.1);
  color: #e2e8f0;
}
html:not(.light-theme) .off-cmp thead th {
  background: #0f172a;
}
html:not(.light-theme) .off-cmp td.is-us {
  background: rgba(6, 182, 212, 0.09);
}
html:not(.light-theme) .off-case__head {
  background: linear-gradient(180deg, #0f172a, #111a2e);
  border-bottom-color: rgba(148, 163, 184, 0.18);
}
html:not(.light-theme) .off-case__note {
  background: rgba(180, 83, 9, 0.12);
  border-color: rgba(251, 191, 36, 0.3);
  color: #fcd34d;
}
html:not(.light-theme) .off-sticky {
  background: rgba(11, 17, 32, 0.94);
  border-top-color: rgba(148, 163, 184, 0.18);
}
html:not(.light-theme) .off-sticky .is-ghost {
  border-color: rgba(148, 163, 184, 0.3);
  color: #e2e8f0;
}

/* ---------- Калькулятор: всегда тёмный ----------
   Разметка partials/calculator.njk свёрстана под тёмный фон безусловно:
   60 text-white, 69 text-gray-400, 13 text-gray-500 и панели .glass-panel
   с белой вуалью rgba(255,255,255,0.03). На белой карточке в светлой теме
   белый текст пропадал, а вуаль панелей исчезала совсем. Поэтому карточка
   тёмная в обеих темах — как .off-hero и .off-copilot. */
.off-calc {
  background: #111a2e;
  /* Базовый цвет для всех наследующих потомков. Заголовок калькулятора
     «Сколько уходит» идёт без своего цвета: Tailwind-префлайт ставит
     заголовкам color: inherit, и он тянул --off-ink (#0f172a) от
     body.off-body — контраст 1.03 на тёмной карточке. --off-ink для тёмной
     темы нигде не переопределяется, весь тёмный текст на странице сделан
     явными правилами, и этот заголовок под них не попал. */
  color: #f1f5f9;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--off-r-xl);
  padding: 26px 22px;
  box-shadow: var(--off-shadow);
}
.off-calc__hint {
  max-width: 660px;
  margin: 0 auto 22px;
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  color: #94a3b8;
}
/* Скептическая сноска внутри калькулятора: тёмно-янтарная в обеих темах,
   потому что лежит на тёмной карточке. Остальные четыре сноски на странице
   остаются привязанными к теме через html:not(.light-theme) ниже. */
.off-calc .off-case__note {
  background: rgba(180, 83, 9, 0.12);
  border-color: rgba(251, 191, 36, 0.3);
  color: #fcd34d;
}

/* ---------- Цветовые акценты в стиле главной ---------- */
/* Цвет за смыслом: cyan — платформа, purple/violet — сеть, green — деньги,
   amber — условия и внимание, red — боль, blue — доверие. Цвета читаются
   и на светлой, и на тёмной теме. Селекторы усилены (двойной класс), чтобы
   переживать вложенные (.off-copilot .off-card) и темовые
   (html:not(.light-theme) ...) переопределения рамок; border-top — с
   !important, т.к. чужой border-color короче по специфичности не пробить
   и hover его тоже не должен снимать. */
.off-eyebrow.off-eyebrow--purple { color: #7c3aed; }
.off-eyebrow.off-eyebrow--green { color: var(--off-good); }
.off-eyebrow.off-eyebrow--amber { color: var(--off-warn); }
.off-eyebrow.off-eyebrow--red { color: var(--off-bad); }
.off-eyebrow.off-eyebrow--blue { color: #2563eb; }

.off-top--cyan { border-top: 3px solid var(--off-accent) !important; }
.off-top--purple { border-top: 3px solid #7c3aed !important; }
.off-top--violet { border-top: 3px solid #8b5cf6 !important; }
.off-top--green { border-top: 3px solid var(--off-good) !important; }
.off-top--amber { border-top: 3px solid var(--off-warn) !important; }
.off-top--red { border-top: 3px solid var(--off-bad) !important; }
.off-top--blue { border-top: 3px solid #2563eb !important; }

html .off-stair__step--n1 .off-stair__n { background: #e0f2fe; color: #0284c7; }
html .off-stair__step--n2 .off-stair__n { background: #ede9fe; color: #6d28d9; }
html .off-stair__step--n3 .off-stair__n { background: #dcfce7; color: #047857; }
