/* Сайт: светлая и тёмная темы (системная или выбранная кнопкой), анимации, адаптив */
:root {
  --bg: #f7f8fc; --bg-2: #eef1f8; --surface: #ffffff; --surface-2: #f3f5fb; --ink: #0f1222; --ink-2: #2b3047;
  --muted: #5f6680; --line: #e3e7f0; --line-2: #d5dbe8;
  --primary: #4f46e5; --primary-2: #7c3aed; --teal: #0d9488; --primary-soft: #eef0ff; --on-primary: #fff;
  --ok: #047857; --err: #b91c1c;
  --shadow-sm: 0 1px 2px rgba(16, 20, 45, .06), 0 1px 1px rgba(16, 20, 45, .04);
  --shadow: 0 10px 30px -12px rgba(30, 35, 90, .18), 0 2px 6px rgba(30, 35, 90, .06);
  --shadow-lg: 0 30px 60px -20px rgba(40, 40, 120, .28);
  --glass: rgba(255, 255, 255, .72);
  --blob-1: rgba(99, 102, 241, .35); --blob-2: rgba(20, 184, 166, .28); --blob-3: rgba(168, 85, 247, .25);
  --grid-line: rgba(15, 18, 34, .05);
  --grad: linear-gradient(120deg, #4f46e5 0%, #7c3aed 45%, #0d9488 100%);
  --radius: 16px; --radius-lg: 24px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #090b16; --bg-2: #0e1120; --surface: #121629; --surface-2: #181d35; --ink: #eef0fb; --ink-2: #c9cde4;
    --muted: #9aa1bd; --line: #232945; --line-2: #2e3557;
    --primary: #818cf8; --primary-2: #a78bfa; --teal: #2dd4bf; --primary-soft: #1d2246; --on-primary: #0b0d1a;
    --ok: #34d399; --err: #f87171;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 14px 34px -14px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .4);
    --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, .8);
    --glass: rgba(12, 15, 30, .72);
    --blob-1: rgba(99, 102, 241, .32); --blob-2: rgba(20, 184, 166, .22); --blob-3: rgba(168, 85, 247, .26);
    --grid-line: rgba(255, 255, 255, .045);
    --grad: linear-gradient(120deg, #a5b4fc 0%, #c4b5fd 45%, #5eead4 100%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #090b16; --bg-2: #0e1120; --surface: #121629; --surface-2: #181d35; --ink: #eef0fb; --ink-2: #c9cde4;
  --muted: #9aa1bd; --line: #232945; --line-2: #2e3557;
  --primary: #818cf8; --primary-2: #a78bfa; --teal: #2dd4bf; --primary-soft: #1d2246; --on-primary: #0b0d1a;
  --ok: #34d399; --err: #f87171;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 14px 34px -14px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .4);
  --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, .8);
  --glass: rgba(12, 15, 30, .72);
  --blob-1: rgba(99, 102, 241, .32); --blob-2: rgba(20, 184, 166, .22); --blob-3: rgba(168, 85, 247, .26);
  --grid-line: rgba(255, 255, 255, .045);
  --grad: linear-gradient(120deg, #a5b4fc 0%, #c4b5fd 45%, #5eead4 100%);
  color-scheme: dark;
}

/* цвет продукта */
.accent-indigo { --accent: #6366f1; --accent-2: #8b5cf6; }
.accent-violet { --accent: #8b5cf6; --accent-2: #d946ef; }
.accent-emerald { --accent: #10b981; --accent-2: #14b8a6; }
.accent-sky { --accent: #0ea5e9; --accent-2: #6366f1; }
.accent-amber { --accent: #f59e0b; --accent-2: #ef4444; }
.accent-rose { --accent: #f43f5e; --accent-2: #a855f7; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background-color .3s var(--ease), color .3s var(--ease); }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12px; margin: 10px 0 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.ic { width: 20px; height: 20px; flex-shrink: 0; }
.ic-sm { width: 16px; height: 16px; }
.flag { width: 22px; height: 15px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); flex-shrink: 0; }

/* типографика */
.h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.06; letter-spacing: -.035em; font-weight: 800; margin: 18px 0 18px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%; animation: shine 9s ease-in-out infinite alternate; }
.h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.15; letter-spacing: -.025em; font-weight: 800; margin: 0 0 12px; }
.h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.01em; font-weight: 700; margin: 0 0 8px; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); margin: 0 0 8px; max-width: 640px; }
@keyframes shine { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 12px;
  border: 1px solid transparent; font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; position: relative;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, border-color .2s, color .2s; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { color: #fff; background: linear-gradient(135deg, #4f46e5, #7c3aed); box-shadow: 0 8px 24px -8px rgba(79, 70, 229, .6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(79, 70, 229, .7); }
.btn-primary .ic { transition: transform .2s var(--ease); }
.btn-primary:hover .ic { transform: translateX(3px); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-lg { padding: 14px 24px; font-size: 16px; border-radius: 14px; }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-sub { display: block; font-size: 12px; font-weight: 500; opacity: .85; }
.btn:has(.btn-sub) { flex-wrap: wrap; text-align: left; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; color: var(--ink-2); transition: border-color .2s, color .2s, transform .2s var(--ease); }
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.theme-toggle .when-dark { display: none; }
:root[data-theme="dark"] .theme-toggle .when-dark { display: inline; }
:root[data-theme="dark"] .theme-toggle .when-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .when-dark { display: inline; }
  :root:not([data-theme="light"]) .theme-toggle .when-light { display: none; }
}
.theme-toggle:hover .ic { animation: spin-in .5s var(--ease); }
@keyframes spin-in { from { transform: rotate(-90deg) scale(.6); opacity: .3; } to { transform: none; opacity: 1; } }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; font-size: 13px; font-weight: 600;
  color: var(--primary); background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent); }
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700;
  vertical-align: middle; letter-spacing: 0; }
.badge-soft { background: color-mix(in srgb, #f59e0b 16%, transparent); color: #b45309; }
:root[data-theme="dark"] .badge-soft { color: #fbbf24; }
.chip, .chip-lg { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface-2);
  border-radius: 99px; color: var(--ink-2); white-space: nowrap; }
.chip { padding: 3px 10px; font-size: 12px; }
.chip-lg { padding: 10px 18px; font-size: 15px; font-weight: 600; background: var(--surface); box-shadow: var(--shadow-sm); }
.chip-lg .ic { color: var(--primary); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }

/* шапка */
.head { position: sticky; top: 0; z-index: 50; }
.nav { position: relative; transition: background-color .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent; }
.nav.scrolled { background: var(--glass); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0, 0, 0, .3); }
.nav-in { display: flex; align-items: center; gap: 20px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.logo-mark svg { width: 34px; height: 34px; transition: transform .4s var(--ease); }
.logo:hover .logo-mark svg { transform: rotate(-8deg) scale(1.06); }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 15px; transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; font-weight: 700; font-size: 13px; transition: border-color .2s; }
.lang-btn:hover { border-color: var(--primary); }
.lang-btn .ic { transition: transform .25s var(--ease); color: var(--muted); }
.lang.open .lang-btn .ic { transform: rotate(180deg); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; padding: 6px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98);
  transform-origin: top right; transition: opacity .18s, transform .18s var(--ease), visibility .18s; z-index: 60; }
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.lang-menu a:hover { background: var(--surface-2); }
.lang-menu a.on { color: var(--primary); }
.lang-menu a .ic { margin-left: auto; }
.burger { display: none; }
.burger .when-open { display: none; }
.nav.menu-open .burger .when-open { display: inline; }
.nav.menu-open .burger .when-closed { display: none; }

/* герой */
.hero { position: relative; padding: 64px 0 88px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  mask-image: linear-gradient(#000 65%, transparent); -webkit-mask-image: linear-gradient(#000 65%, transparent); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .9; animation: float 18s ease-in-out infinite alternate; }
.b1 { width: 520px; height: 520px; background: var(--blob-1); top: -160px; left: -120px; }
.b2 { width: 460px; height: 460px; background: var(--blob-2); top: 80px; right: -140px; animation-duration: 22s; animation-delay: -6s; }
.b3 { width: 380px; height: 380px; background: var(--blob-3); bottom: -200px; left: 35%; animation-duration: 26s; animation-delay: -12s; }
@keyframes float { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, 30px) scale(1.08); } 100% { transform: translate(-30px, 50px) scale(.95); } }
.grid-bg { position: absolute; inset: 0; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
  linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.hero-stats { display: flex; gap: 36px; margin: 40px 0 0; padding: 0; }
.hero-stats div { margin: 0; }
.hero-stats dt { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats dd { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

.flow-card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 18px 12px;
  box-shadow: var(--shadow-lg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); animation: hover-y 7s ease-in-out infinite; }
@keyframes hover-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.flow { width: 100%; height: auto; }
.flow-path { fill: none; stroke: url(#flow-line); stroke-width: 2; stroke-dasharray: 5 7; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }
.flow-dot { fill: #8b5cf6; filter: drop-shadow(0 0 6px rgba(139, 92, 246, .9)); }
.flow-dot.dot-out { fill: #14b8a6; filter: drop-shadow(0 0 6px rgba(20, 184, 166, .9)); }
.flow-node rect { fill: var(--surface); stroke: var(--line-2); }
.flow-node text { fill: var(--ink); font: 700 14px var(--font); }
.node-dot { fill: #6366f1; }
.node-dot.dot-teal { fill: #14b8a6; }
.core { filter: drop-shadow(0 10px 24px rgba(99, 102, 241, .5)); }
.core-ring { fill: none; stroke: #8b5cf6; stroke-opacity: .35; transform-origin: 260px 190px; transform-box: view-box; animation: pulse 3s ease-out infinite; }
.core-ring.r2 { animation-delay: 1.5s; stroke: #14b8a6; }
@keyframes pulse { 0% { transform: scale(.75); opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
.core-arrows { transform-origin: 260px 190px; transform-box: view-box; animation: rot 8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.flow-foot { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding: 4px 6px 2px; font-weight: 600; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); } 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

/* бегущая строка интеграций */
.marquee { padding: 8px 0 24px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; gap: 14px; padding-right: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* секции */
.section { padding: 96px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, var(--bg-2) 18%, var(--bg-2) 82%, transparent); }
.section-head { text-align: center; display: flex; flex-direction: column; align-items: center; margin: 0 auto 48px; max-width: 720px; }

/* карточки продуктов */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.product-card { --accent: #6366f1; --accent-2: #8b5cf6; position: relative; display: flex; flex-direction: column; padding: 28px;
  border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  overflow: hidden; transform-style: preserve-3d; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.product-card::before { content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), transparent 40%, transparent 60%, var(--accent-2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .5; transition: opacity .35s; pointer-events: none; }
.product-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
.product-card:hover::before { opacity: 1; }
.pc-glow { position: absolute; width: 260px; height: 260px; border-radius: 50%; top: -120px; right: -100px; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%); transition: transform .5s var(--ease); }
.product-card:hover .pc-glow { transform: scale(1.3); }
.pc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.pc-icon, .ph-icon, .feature-icon, .why-icon { display: inline-grid; place-items: center; border-radius: 14px; color: #fff;
  background: linear-gradient(135deg, var(--accent, #6366f1), var(--accent-2, #8b5cf6));
  box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--accent, #6366f1) 80%, transparent); }
.pc-icon { width: 52px; height: 52px; }
.pc-icon .ic { width: 26px; height: 26px; }
.product-card .muted { margin: 0; }
.pc-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 22px; font-weight: 700; color: var(--accent); }
.pc-more .ic { transition: transform .25s var(--ease); }
.product-card:hover .pc-more .ic { transform: translateX(5px); }
.product-next { background: transparent; border: 1.5px dashed var(--line-2); box-shadow: none; --accent: #94a3b8; --accent-2: #64748b; }
.product-next::before { display: none; }
.product-next .pc-icon { background: var(--surface-2); color: var(--primary); box-shadow: none; border: 1px solid var(--line); }
.product-next .pc-more { color: var(--primary); }
.product-next:hover { border-color: var(--primary); }

.why-grid, .feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .why-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .why-grid, .feature-grid { grid-template-columns: 1fr; } }
.why-card, .feature { padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.why-card:hover, .feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why-icon, .feature-icon { width: 48px; height: 48px; margin-bottom: 18px; }
.why-card .muted, .feature .muted { margin: 0; }
.why-card:nth-child(2) .why-icon { --accent: #14b8a6; --accent-2: #0ea5e9; }
.why-card:nth-child(3) .why-icon { --accent: #a855f7; --accent-2: #ec4899; }

/* страница продукта */
.hero-product { padding-top: 32px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 14px; margin-bottom: 26px; transition: color .2s, gap .2s; }
.back:hover { color: var(--primary); gap: 10px; }
.ph-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.ph-icon { width: 64px; height: 64px; border-radius: 18px; }
.ph-icon .ic { width: 32px; height: 32px; }
.ph-tagline { font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; letter-spacing: -.015em; margin: 0 0 12px; color: var(--ink); }
.page-product .h1 { margin-top: 18px; }
.orbit { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; margin: 0 auto; }
.orbit-core { position: absolute; inset: 33%; border-radius: 50%; display: grid; place-content: center; justify-items: center; gap: 4px;
  color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 20px 50px -14px color-mix(in srgb, var(--accent) 80%, transparent);
  text-align: center; font-size: 15px; z-index: 2; animation: hover-y 6s ease-in-out infinite; }
.orbit-core .ic { width: 34px; height: 34px; }
.orbit-ring { position: absolute; border-radius: 50%; border: 1px dashed var(--line-2); }
.orbit-ring.or1 { inset: 18%; animation: rot 40s linear infinite; }
.orbit-ring.or2 { inset: 2%; animation: rot 60s linear infinite reverse; }
.orbit-chip { position: absolute; z-index: 3; padding: 7px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow); font-weight: 700; font-size: 13px; white-space: nowrap; transform: translate(-50%, -50%);
  animation: bob 5s ease-in-out infinite; }
.o1 { left: 50%; top: 2%; } .o2 { left: 88%; top: 18%; animation-delay: -.5s; } .o3 { left: 99%; top: 50%; animation-delay: -1s; }
.o4 { left: 88%; top: 82%; animation-delay: -1.5s; } .o5 { left: 50%; top: 98%; animation-delay: -2s; } .o6 { left: 12%; top: 82%; animation-delay: -2.5s; }
.o7 { left: 1%; top: 50%; animation-delay: -3s; } .o8 { left: 12%; top: 18%; animation-delay: -3.5s; }
.o9 { left: 70%; top: 30%; animation-delay: -4s; } .o10 { left: 30%; top: 70%; animation-delay: -4.5s; }
.o9, .o10 { display: none; }
@keyframes bob { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 8px)); } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; counter-reset: s; position: relative; }
.step { position: relative; padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.step .muted { margin: 0; }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 16px;
  font-weight: 800; color: var(--primary); background: var(--primary-soft); }
.step:not(:last-child)::after { content: ""; position: absolute; top: 46px; right: -22px; width: 22px; height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent); }

/* цены */
.period-switch { display: inline-flex; padding: 4px; margin-top: 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.period-switch button { border: 0; background: none; padding: 8px 18px; border-radius: 10px; cursor: pointer; font-weight: 700; color: var(--muted); transition: background-color .2s, color .2s; }
.period-switch button.on { background: var(--primary); color: var(--on-primary); }
.save { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 99px; font-size: 12px; font-weight: 800; background: rgba(34, 197, 94, .15); color: #16a34a; }
.period-switch button.on .save { background: rgba(255, 255, 255, .25); color: inherit; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 28px 24px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card.popular { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); }
.price-ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #4f46e5, #7c3aed); white-space: nowrap; }
.price { min-height: 70px; margin: 6px 0 16px; }
.price b { display: block; font-size: 32px; letter-spacing: -.03em; line-height: 1.15; }
.price b.b-sm { font-size: 24px; }
.price .muted { font-size: 14px; }
.price-features { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; flex: 1; }
.price-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.price-features .ic { color: #16a34a; margin-top: 4px; }

/* вопросы */
.faq { display: grid; gap: 12px; }
.faq-item { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); box-shadow: var(--shadow); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; background: var(--primary-soft); }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 6px; right: 6px; top: 10px; height: 2px; border-radius: 2px; background: var(--primary); transition: transform .25s var(--ease); }
.faq-plus::after { transform: rotate(90deg); }
.faq-item[open] .faq-plus::after { transform: rotate(0); }
.faq-a { padding: 0 22px 20px; color: var(--muted); animation: fade-down .3s var(--ease); }
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* заявка */
.contact { background: radial-gradient(ellipse 60% 70% at 15% 50%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 70%); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-list { display: grid; gap: 10px; margin-top: 28px; }
.contact-item { display: inline-flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--line); font-weight: 600; width: fit-content; transition: border-color .2s, transform .2s var(--ease); }
a.contact-item:hover { border-color: var(--primary); transform: translateX(4px); }
.contact-item .ic { color: var(--primary); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.lead-form { padding: 28px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--ink); font: inherit; font-size: 15px; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); background: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.field input.invalid { border-color: var(--err); box-shadow: 0 0 0 4px color-mix(in srgb, var(--err) 15%, transparent); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 24px; margin: 12px 0 0; font-weight: 600; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--err); }
.lead-form.sent { animation: pop .5s var(--ease); }
@keyframes pop { 50% { transform: scale(1.015); } }

/* подвал */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer-in { display: flex; gap: 32px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.footer-in p { margin: 10px 0 0; }
.footer-links, .footer-langs { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-links a, .footer-langs a { color: var(--muted); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.footer-links a:hover, .footer-langs a:hover, .footer-langs a.on { color: var(--primary); }

.big-404 { font-size: clamp(100px, 18vw, 180px); font-weight: 900; line-height: 1; letter-spacing: -.06em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-404 { padding: 120px 0; }
.hero-404 .lead { margin-bottom: 28px; }

/* появление при прокрутке */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .product-grid .reveal:nth-child(2), .js .why-grid .reveal:nth-child(2), .js .feature-grid .reveal:nth-child(3n+2),
.js .steps .reveal:nth-child(2), .js .price-grid .reveal:nth-child(2) { transition-delay: .08s; }
.js .product-grid .reveal:nth-child(3), .js .why-grid .reveal:nth-child(3), .js .feature-grid .reveal:nth-child(3n),
.js .steps .reveal:nth-child(3), .js .price-grid .reveal:nth-child(3) { transition-delay: .16s; }
.js .steps .reveal:nth-child(4), .js .price-grid .reveal:nth-child(4) { transition-delay: .24s; }
.js .hero .reveal:nth-child(2) { transition-delay: .06s; } .js .hero .reveal:nth-child(3) { transition-delay: .12s; }
.js .hero .reveal:nth-child(4) { transition-delay: .18s; } .js .hero .reveal:nth-child(5) { transition-delay: .24s; }

/* адаптив */
@media (max-width: 980px) {
  .hero-grid, .ph-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 560px; }
  .step:not(:last-child)::after { display: none; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 2px; margin: 0; padding: 12px 16px 18px;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s var(--ease), visibility .2s; }
  .nav-links a { padding: 12px; font-size: 16px; }
  .nav.menu-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav.menu-open { background: var(--surface); }
  .burger { display: inline-grid; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hide-sm { display: none; }
  .nav-in { gap: 10px; height: 64px; }
  .lang-btn span { display: none; }
  .hero { padding: 36px 0 56px; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero-stats dt { font-size: 28px; }
  .hero-stats dd { font-size: 12px; line-height: 1.35; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .lead-form { padding: 20px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card, .why-card, .feature { padding: 22px; }
  .cta-row .btn { width: 100%; }
  .orbit-chip { font-size: 11px; padding: 5px 10px; }
  .blob { filter: blur(50px); }
  .b1 { width: 320px; height: 320px; } .b2 { width: 280px; height: 280px; } .b3 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after { transition: background-color .35s ease, color .35s ease, border-color .35s ease, fill .35s ease !important; }

/* страница услуг */
.svc-art { position: relative; min-height: 470px; }
.dash-card, .tg-card { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); }
.dash-card { top: 0; left: 0; width: 82%; padding: 16px 18px 18px; animation: hover-y 8s ease-in-out infinite; }
.dash-head { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.dash-head .dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.r { background: #f87171; } .dot.y { background: #fbbf24; } .dot.g { background: #34d399; }
.dash-title { margin-left: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.kpi span { display: block; font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.kpi b { display: block; font-size: 20px; letter-spacing: -.02em; }
.kpi em { font-style: normal; font-size: 12px; font-weight: 700; }
.kpi .up { color: #16a34a; } .kpi .down { color: #dc2626; }
.chart-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; align-items: end; height: 120px; }
.bars { display: flex; align-items: flex-end; gap: 7px; height: 100%; }
.bar { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #818cf8, #4f46e5); transform-origin: bottom;
  animation: grow 1.2s var(--ease) both, breathe 4s ease-in-out 1.2s infinite; }
.bar.h1 { height: 35%; } .bar.h2 { height: 55%; animation-delay: .08s, 1.3s; } .bar.h3 { height: 45%; animation-delay: .16s, 1.4s; }
.bar.h4 { height: 70%; animation-delay: .24s, 1.5s; } .bar.h5 { height: 60%; animation-delay: .32s, 1.6s; } .bar.h6 { height: 85%; animation-delay: .4s, 1.7s; }
.bar.h7 { height: 75%; animation-delay: .48s, 1.8s; } .bar.h8 { height: 95%; animation-delay: .56s, 1.9s; background: linear-gradient(180deg, #5eead4, #0d9488); }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes breathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.9); } }
.spark { width: 100%; height: 100%; }
.spark-line { fill: none; stroke: #8b5cf6; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 320; stroke-dashoffset: 320;
  animation: draw 2s var(--ease) .4s forwards; }
.spark-area { fill: color-mix(in srgb, #8b5cf6 16%, transparent); opacity: 0; animation: fade-in 1s ease 1.6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
.tg-card { right: 0; bottom: 0; width: 58%; padding: 14px; display: flex; flex-direction: column; gap: 8px; animation: hover-y 7s ease-in-out -3s infinite; }
.tg-head { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 14px; }
.tg-ava { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.tg-online { margin-left: auto; font-size: 12px; color: #16a34a; font-weight: 600; }
.tg-msg { max-width: 88%; padding: 8px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; white-space: pre-line; opacity: 0; animation: msg-in .45s var(--ease) forwards; }
.tg-msg.bot { background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.tg-msg.me { background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.tg-typing { display: inline-flex; gap: 4px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); align-self: flex-start; opacity: 0;
  animation: typing-show 1.1s linear 1.3s forwards; }
.tg-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.tg-typing span:nth-child(2) { animation-delay: .2s; } .tg-typing span:nth-child(3) { animation-delay: .4s; }
.m1 { animation-delay: .3s; } .m2 { animation-delay: .9s; } .m4 { animation-delay: 2.4s; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes typing-show { 0% { opacity: 0; } 10%, 90% { opacity: 1; } 100% { opacity: 0; height: 0; padding: 0; margin: -8px 0 0; } }
@keyframes blink { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.svc-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.svc-card { grid-column: span 2; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.svc-card.svc-4, .svc-card.svc-5 { grid-column: span 3; }
.svc-card .muted { margin: 0; }
.svc-2 .feature-icon { --accent: #f59e0b; --accent-2: #ef4444; }
.svc-3 .feature-icon { --accent: #0ea5e9; --accent-2: #6366f1; }
.svc-4 .feature-icon { --accent: #06b6d4; --accent-2: #3b82f6; }
.svc-5 .feature-icon { --accent: #10b981; --accent-2: #14b8a6; }
@media (max-width: 980px) {
  .svc-art { min-height: 440px; max-width: 560px; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc-card, .svc-card.svc-4, .svc-card.svc-5 { grid-column: span 1; }
}
@media (max-width: 640px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-art { min-height: 470px; }
  .dash-card { width: 100%; position: relative; }
  .tg-card { width: 92%; position: relative; margin: -40px 0 0 auto; }
  .kpi b { font-size: 16px; }
}
.show-sm { display: none !important; }
@media (max-width: 640px) { .nav-links .show-sm { display: block !important; } }
.switch-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.switch-row .period-switch { margin-top: 0; }
.cur-switch a { padding: 8px 16px; border-radius: 10px; font-weight: 700; color: var(--muted); transition: background-color .2s, color .2s; }
.cur-switch a.on { background: var(--primary); color: var(--on-primary); }

/* ---------- скриншоты программы: галерея, обзор, просмотр на весь экран ---------- */
.shot { position: relative; display: block; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease); cursor: zoom-in; }
.shot:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.shot-bar { display: flex; gap: 6px; padding: 9px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.shot-bar i:nth-child(1) { background: #ff5f57; } .shot-bar i:nth-child(2) { background: #febc2e; } .shot-bar i:nth-child(3) { background: #28c840; }
.shot-cap { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700;
  color: #fff; background: rgba(15, 18, 34, .78); backdrop-filter: blur(6px); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.shot:hover .shot-cap, .shot:focus-visible .shot-cap { opacity: 1; transform: none; }
.shot-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 30px; }
.shot-gallery .shot-main { grid-column: span 4; }
.shot-gallery .shot-main .shot-cap { opacity: 1; transform: none; }
.hero-guide { padding-bottom: 20px; }
.guide-head { max-width: 760px; margin-bottom: 36px; }
.guide-head .ph-icon { margin-bottom: 18px; }
.shot-hero { max-width: 1100px; margin: 0 auto; border-radius: 18px; box-shadow: var(--shadow-lg); }
.guide-body { padding-top: 40px; }
.guide-toc { padding: 22px 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); margin-bottom: 56px; }
.guide-toc b { display: block; margin-bottom: 10px; }
.guide-toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 40px; }
.guide-toc li { margin: 4px 0; break-inside: avoid; }
.guide-toc a { color: var(--ink-2); font-weight: 600; }
.guide-toc a:hover { color: var(--accent); }
.guide-steps { display: flex; flex-direction: column; gap: 72px; }
.guide-step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 44px; align-items: center; scroll-margin-top: 140px; }
.guide-step:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.guide-step:nth-child(even) .gs-text { order: 2; }
.guide-step.no-shot { grid-template-columns: 1fr; max-width: 820px; padding: 30px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.gs-n { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent); margin-bottom: 12px; }
.gs-text p { color: var(--ink-2); font-size: 16.5px; line-height: 1.65; margin: 10px 0 0; }
.gs-tips { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.gs-tips li { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 15px; }
.gs-tips .ic { color: var(--accent); flex: none; margin-top: 3px; }
.guide-cta { text-align: center; display: flex; flex-direction: column; align-items: center; }
.guide-cta .lead { margin-left: auto; margin-right: auto; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px;
  background: rgba(6, 8, 18, .88); backdrop-filter: blur(4px); animation: lb-in .2s ease-out; }
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; max-width: min(1440px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 110px); border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); background: #fff; }
.lb-figure figcaption { color: #fff; font-weight: 700; text-align: center; }
.lb-btn { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08);
  color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .2s; }
.lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lb-close { position: absolute; top: 16px; right: 16px; }
body.lb-open { overflow: hidden; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 900px) {
  .shot-gallery { grid-template-columns: repeat(2, 1fr); }
  .shot-gallery .shot-main { grid-column: span 2; }
  .guide-step, .guide-step:nth-child(even) { grid-template-columns: 1fr; gap: 22px; }
  .guide-step:nth-child(even) .gs-text { order: 0; }
  .guide-toc ol { columns: 1; }
}
@media (max-width: 640px) {
  .guide-steps { gap: 48px; }
  .lb-prev, .lb-next { position: absolute; bottom: 16px; }
  .lb-prev { left: 16px; } .lb-next { right: 16px; }
  .lightbox { padding: 64px 8px 76px; }
}
@media (prefers-reduced-motion: reduce) { .shot, .lightbox { transition: none; animation: none; } .shot:hover { transform: none; } }
.hero-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 700; color: var(--accent); transition: gap .2s; }
.hero-link:hover { gap: 10px; }

[hidden] { display: none !important; }

/* ---------- баннер услуг (на всех страницах, над меню) ---------- */
.adbar { position: relative; display: block; overflow: hidden; color: #fff; isolation: isolate;
  background: linear-gradient(100deg, #4f46e5, #7c3aed 35%, #c026d3 60%, #0ea5e9); background-size: 220% 100%;
  animation: adbar-bg 14s ease-in-out infinite alternate; }
.adbar-shine { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 45%, transparent 60%); background-size: 250% 100%;
  animation: adbar-shine 5.5s ease-in-out infinite; }
.adbar-in { display: flex; align-items: center; gap: 14px; min-height: 46px; padding-top: 6px; padding-bottom: 6px; }
.adbar-badge { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 3px 11px; border-radius: 99px; font-size: 12px;
  font-weight: 800; letter-spacing: .02em; text-transform: uppercase; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .3); }
.adbar-text { flex: 1; min-width: 0; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adbar-text b { font-weight: 800; }
.adbar-more { opacity: .88; }
.adbar-cta { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 6px 14px; border-radius: 10px; font-size: 13.5px;
  font-weight: 800; color: #4c1d95; background: #fff; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .45); transition: transform .25s var(--ease); }
.adbar-cta .ic { transition: transform .25s var(--ease); }
.adbar:hover .adbar-cta { transform: translateY(-1px); }
.adbar:hover .adbar-cta .ic { transform: translateX(3px); }
@keyframes adbar-bg { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes adbar-shine { 0% { background-position: 130% 0; } 60%, 100% { background-position: -30% 0; } }

/* ---------- верхнее меню: «Продукты» (список) и «Услуги» ---------- */
.nav-links a.on, .nav-dd-btn.on { color: var(--ink); background: var(--surface-2); }
.nav-dd { position: relative; }
.nav-dd-btn { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border: 0; border-radius: 10px; background: none;
  color: var(--muted); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; transition: color .2s, background-color .2s; }
.nav-dd-btn:hover { color: var(--ink); background: var(--surface-2); }
.nav-dd-btn .ic { transition: transform .25s var(--ease); }
.nav-dd.open .nav-dd-btn .ic { transform: rotate(180deg); }
.nav-dd-menu { position: absolute; left: 0; top: calc(100% + 10px); width: 340px; padding: 8px; border-radius: 16px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98);
  transform-origin: top left; transition: opacity .18s, transform .18s var(--ease), visibility .18s; z-index: 60; }
.nav-dd.open .nav-dd-menu { opacity: 1; visibility: visible; transform: none; }
.nav-links .nav-dd-menu a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; color: var(--ink); }
.nav-links .nav-dd-menu a:hover, .nav-links .nav-dd-menu a.on { background: var(--surface-2); }
.nav-dd-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--accent, #6366f1), var(--accent-2, #8b5cf6)); }
.nav-dd-icon .ic { width: 20px; height: 20px; }
.nav-dd-txt { display: flex; flex-direction: column; min-width: 0; }
.nav-dd-txt b { font-size: 15px; }
.nav-dd-txt small { color: var(--muted); font-size: 13px; font-weight: 500; line-height: 1.35; }
.nav-links .nav-dd-menu a.nav-dd-all { justify-content: center; gap: 6px; margin-top: 4px; padding: 9px; font-size: 14px; color: var(--primary);
  border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; }

/* ---------- навигация по разделам страницы: справа точки, на телефоне — кнопка внизу ---------- */
.toc { position: fixed; z-index: 40; }
.toc:not(:has(li)) { display: none; }
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-list a { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.toc-list a.on { color: var(--accent, var(--primary)); }
@media (min-width: 1101px) {
  .toc { right: 18px; top: 50%; transform: translateY(-50%); }
  .toc-btn { display: none; }
  .toc-list { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; padding: 10px 8px; border-radius: 16px;
    transition: background-color .2s, box-shadow .2s; }
  .toc-list a { flex-direction: row-reverse; padding: 5px 6px; border-radius: 8px; }
  .toc-list a::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--muted) 55%, transparent);
    transition: height .25s var(--ease), background-color .25s; }
  .toc-list a.on::before { height: 22px; background: linear-gradient(var(--accent, var(--primary)), var(--accent-2, var(--primary))); }
  .toc-list a:hover::before { background: var(--accent, var(--primary)); }
  .toc-list a span, .toc-list a { max-width: 260px; }
  .toc-list a { font-size: 0; }
  .toc:hover .toc-list, .toc:focus-within .toc-list { background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow); border: 1px solid var(--line); }
  .toc:hover .toc-list a, .toc:focus-within .toc-list a { font-size: 13.5px; }
  .toc-list a:hover { color: var(--ink); }
}
@media (max-width: 1100px) {
  .toc { right: 16px; bottom: 16px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
  .toc-btn { display: inline-flex; align-items: center; gap: 8px; max-width: min(70vw, 320px); padding: 10px 16px; border-radius: 99px;
    border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; box-shadow: var(--shadow); cursor: pointer; }
  .toc-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .toc-list { order: -1; display: none; min-width: 230px; max-width: calc(100vw - 32px); max-height: 60vh; overflow: auto; padding: 8px;
    border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
  .toc.open .toc-list { display: block; animation: lb-in .18s ease-out; }
  .toc-list a { padding: 10px 12px; border-radius: 10px; font-size: 15px; }
  .toc-list a.on { background: var(--surface-2); }
}
@media (max-width: 980px) {
  .nav-dd-btn { width: 100%; padding: 12px; font-size: 16px; justify-content: space-between; }
  .nav-dd-btn .ic { display: none; }
  .nav-dd-menu { position: static; width: auto; padding: 0 0 6px 8px; border: 0; box-shadow: none; background: none;
    opacity: 1; visibility: visible; transform: none; }
  .nav-links .nav-dd-menu a.nav-dd-all { justify-content: flex-start; border-top: 0; }
}
@media (max-width: 760px) {
  .adbar-more, .adbar-badge { display: none; }
  .adbar-text { font-size: 13px; white-space: normal; line-height: 1.3; }
  .adbar-cta { padding: 5px 10px; font-size: 12.5px; }
  html { scroll-padding-top: 124px; }
}
@media (prefers-reduced-motion: reduce) { .adbar, .adbar-shine { animation: none; } }

/* ---------- продающая главная ---------- */
.hero-home .hero-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 48px; }
.hero-home .h1 { font-size: clamp(34px, 4.1vw, 54px); }
.hero-ticks { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-ticks li { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.hero-ticks .ic { color: #10b981; }
.hero-shot { position: relative; padding: 28px 0 34px; }
.hero-shot .shot { border-radius: 16px; box-shadow: 0 40px 80px -30px rgba(40, 40, 120, .45), var(--shadow); transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); }
.hero-shot .shot:hover { transform: perspective(1600px) rotateY(-2deg) translateY(-4px); }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: var(--shadow-lg); z-index: 2;
  animation: float-y 6s ease-in-out infinite; }
.float-card b { display: block; font-size: 14.5px; }
.float-card small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.fc-1 { left: -26px; bottom: 6px; }
.fc-2 { right: -14px; top: 0; animation-delay: -3s; }
.fc-icon { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.fc-icon .ic { width: 19px; height: 19px; }
.fc-icon.ok { background: linear-gradient(135deg, #10b981, #14b8a6); }
.fc-icon.tg { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.show-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 auto 22px; padding: 6px; width: fit-content; max-width: 100%;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.show-tabs button { border: 0; background: none; padding: 9px 16px; border-radius: 11px; font: inherit; font-weight: 700; font-size: 14.5px;
  color: var(--muted); cursor: pointer; transition: background-color .2s, color .2s; }
.show-tabs button:hover { color: var(--ink); }
.show-tabs button.on { color: #fff; background: linear-gradient(135deg, #4f46e5, #7c3aed); box-shadow: 0 8px 20px -10px rgba(79, 70, 229, .8); }
.show-stage { max-width: 1080px; margin: 0 auto 30px; }
.show-stage .shot { box-shadow: var(--shadow-lg); }
.show-pane.on { animation: lb-in .35s ease-out; }

.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pain-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.pain-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pain-before, .pain-after { padding: 22px 24px; }
.pain-before { background: color-mix(in srgb, #ef4444 6%, var(--surface)); }
.pain-after { flex: 1; border-top: 1px dashed var(--line-2); }
.pain-before p { margin: 10px 0 0; color: var(--muted); }
.pain-after p { margin: 10px 0 0; font-weight: 600; color: var(--ink); }
.pain-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .03em; }
.pain-tag.bad { color: #dc2626; background: color-mix(in srgb, #ef4444 14%, transparent); }
.pain-tag.good { color: #059669; background: color-mix(in srgb, #10b981 16%, transparent); }

.onec-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.onec-copy .h2 { margin: 14px 0 12px; }
.onec-copy .lead { margin: 0 0 24px; }
.onec-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.oc-old, .oc-new { padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.oc-old { background: color-mix(in srgb, #ef4444 5%, var(--surface)); }
.oc-old ol { margin: 10px 0 0; padding-left: 20px; color: var(--muted); font-size: 14.5px; }
.oc-old li { margin: 4px 0; text-decoration: line-through; text-decoration-color: color-mix(in srgb, #ef4444 45%, transparent); }
.oc-new { border: 2px solid color-mix(in srgb, #10b981 55%, var(--line)); box-shadow: var(--shadow-sm); }
.oc-new p { margin: 10px 0 0; font-weight: 700; color: var(--ink); }
.onec-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.onec-stats li { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface-2); }
.onec-stats b { font-size: 18px; font-weight: 800; letter-spacing: -.01em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.onec-stats span { color: var(--muted); font-size: 13.5px; }
.oc-card { position: relative; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.oc-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.oc-head .shot-bar { position: static; padding: 0; background: none; border: 0; }
.oc-title { min-width: 0; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.oc-time { margin-left: auto; white-space: nowrap; padding: 2px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 800; color: #059669;
  background: color-mix(in srgb, #10b981 16%, transparent); }
.oc-rows { list-style: none; margin: 0; padding: 14px 16px 6px; display: flex; flex-direction: column; gap: 8px; }
.oc-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.25fr); align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 12px; background: var(--surface-2); font-size: 13.5px; }
.oc-rows code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-rows b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.oc-arrow { color: var(--primary); display: inline-flex; }
.oc-bar { margin: 10px 16px 0; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.oc-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--grad); }
.oc-foot { display: flex; align-items: center; gap: 8px; padding: 12px 16px 16px; font-weight: 700; font-size: 14px; color: var(--ok); }
.js .onec-art .oc-rows li { opacity: 0; transform: translateX(-10px); }
.js .onec-art .oc-bar i { width: 0; }
.js .onec-art .oc-foot { opacity: 0; }
.js .onec-art.in .oc-rows li { animation: oc-row .45s var(--ease) forwards; }
.js .onec-art.in .oc-rows li:nth-child(2) { animation-delay: .25s; } .js .onec-art.in .oc-rows li:nth-child(3) { animation-delay: .5s; }
.js .onec-art.in .oc-rows li:nth-child(4) { animation-delay: .75s; } .js .onec-art.in .oc-rows li:nth-child(5) { animation-delay: 1s; }
.js .onec-art.in .oc-rows li:nth-child(6) { animation-delay: 1.25s; } .js .onec-art.in .oc-rows li:nth-child(7) { animation-delay: 1.5s; }
.js .onec-art.in .oc-bar i { animation: oc-bar 1.9s var(--ease) forwards; }
.js .onec-art.in .oc-foot { animation: oc-row .4s var(--ease) 2s forwards; }
@keyframes oc-row { to { opacity: 1; transform: none; } }
@keyframes oc-bar { to { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .js .onec-art .oc-rows li, .js .onec-art .oc-foot { opacity: 1; transform: none; animation: none; }
  .js .onec-art .oc-bar i { width: 100%; animation: none; }
}

.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.section-head.left { text-align: left; align-items: flex-start; margin: 0 0 28px; }
.how-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.how-list li { display: flex; gap: 16px; align-items: flex-start; }
.how-list .step-n { flex: none; margin: 0; }
.how-list .h3 { margin: 6px 0 4px; }
.how-list p { margin: 0; }

.mini-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; margin-bottom: 30px; }
.mini-plan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--radius-lg); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.mini-plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary); }
.mini-plan.popular { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.mp-name { font-weight: 700; color: var(--muted); }
.mp-price { font-size: 25px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.mp-price small { display: block; font-size: 13.5px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.mp-feat { color: var(--muted); font-size: 14.5px; }

.cta-band { padding: 40px 0 90px; }
.cta-box { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 30px;
  padding: 44px 48px; border-radius: 28px; color: #fff; background: linear-gradient(120deg, #312e81, #4f46e5 45%, #7c3aed 75%, #0ea5e9);
  box-shadow: 0 40px 80px -30px rgba(79, 70, 229, .6); }
.cta-box .h2 { color: #fff; margin: 0 0 8px; }
.cta-box p { margin: 0; color: rgba(255, 255, 255, .88); max-width: 620px; font-size: 17px; }
.cta-glow { position: absolute; inset: -60%; z-index: -1; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 60%, rgba(255, 255, 255, .16) 75%, transparent 90%); animation: rot 12s linear infinite; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }
.btn-light { background: #fff; color: #3730a3; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); }
.btn-light:hover { transform: translateY(-2px); }
.btn-outline-light { color: #fff; border: 1px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .08); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .18); transform: translateY(-2px); }

/* Telegram: значок в шапке и кнопка в углу */
.tg-btn { color: #229ed9; }
.tg-float { position: fixed; left: 18px; bottom: 18px; z-index: 40; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: linear-gradient(135deg, #2aabee, #229ed9); box-shadow: 0 14px 30px -10px rgba(34, 158, 217, .8); transition: transform .25s var(--ease); }
.tg-float:hover { transform: translateY(-3px) scale(1.04); }
.tg-float .ic { width: 24px; height: 24px; margin-left: -2px; }
.tg-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #2aabee; animation: tg-pulse 2.6s ease-out infinite; }
@keyframes tg-pulse { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6); } }

@media (max-width: 980px) {
  .hero-home .hero-grid, .how-grid, .onec-grid { grid-template-columns: 1fr; }
  .hero-shot .shot, .hero-shot .shot:hover { transform: none; }
  .fc-1 { left: 8px; } .fc-2 { right: 8px; }
  .pain-grid { grid-template-columns: 1fr; }
  .cta-box { flex-direction: column; align-items: flex-start; padding: 32px 26px; }
}
@media (max-width: 640px) {
  .float-card { padding: 9px 12px; gap: 9px; }
  .float-card b { font-size: 13px; } .float-card small { font-size: 11.5px; }
  .fc-icon { width: 32px; height: 32px; }
  .show-tabs { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; width: 100%; }
  .show-tabs button { flex: none; }
  .onec-compare, .onec-stats { grid-template-columns: 1fr; }
  .oc-rows li { grid-template-columns: 1fr; gap: 2px; } .oc-arrow { display: none; }
  .cta-actions .btn { width: 100%; }
  .tg-float { width: 48px; height: 48px; left: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) { .float-card, .cta-glow, .tg-float::after { animation: none; } }
