/* ═══════════════════════════════════════════════════════════════
   bulavin-web.ru — тёмная «кинематографичная» тема.
   Глубина: depth-0 фон (размыт) → depth-1 свечения → depth-2 спутники
   → depth-3 главный объект → depth-4 текст → depth-5 частицы.
   Двигаем только transform / opacity / filter / clip-path.
   ═══════════════════════════════════════════════════════════════ */
:root {
  --bg: #070b18;
  --bg-2: #0b1124;
  --bg-3: #10182f;
  --line: rgba(148, 163, 255, .14);
  --ink: #f4f6ff;
  --text: #c3c9dd;
  --muted: #8a93ad;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --grad: linear-gradient(110deg, #60a5fa 0%, #a78bfa 45%, #22d3ee 100%);
  --radius: 18px;
  --font: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --scroll-y: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; font: 17px/1.65 var(--font); color: var(--text); background: var(--bg); -webkit-text-size-adjust: 100%; overflow-x: clip; }
a { color: #93b4ff; }
h1, h2, h3 { color: var(--ink); line-height: 1.08; margin: 0 0 .5em; font-weight: 750; }
h2 { font-size: clamp(32px, 4.6vw, 58px); letter-spacing: -.03em; }
h3 { font-size: 21px; letter-spacing: -.01em; line-height: 1.25; }
p { margin: 0 0 1em; }
::selection { background: rgba(139, 92, 246, .45); color: #fff; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 16px; background: #fff; color: #000; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.container { position: relative; z-index: 4; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.section { position: relative; padding: clamp(72px, 8vw, 112px) 0; overflow: hidden; }
.section--alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 18%, var(--bg-2) 82%, var(--bg) 100%); }
.section__lead { max-width: 640px; color: var(--muted); font-size: 19px; margin: -6px 0 44px; }
.layer { position: absolute; inset: 0; pointer-events: none; }
.grad { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.03); color: #b8c4ff; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow--light { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }

/* ── Свечения (depth-1) ── */
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; mix-blend-mode: screen; animation: breathe 14s ease-in-out infinite; }
.glow--blue { width: 620px; height: 620px; left: -160px; top: -120px; background: radial-gradient(circle, #2563eb 0%, transparent 68%); }
.glow--violet { width: 560px; height: 560px; right: -120px; top: 80px; background: radial-gradient(circle, #7c3aed 0%, transparent 68%); animation-delay: -5s; }
.glow--cyan { width: 420px; height: 420px; left: 45%; bottom: -160px; background: radial-gradient(circle, #0891b2 0%, transparent 70%); animation-delay: -9s; opacity: .4; }
.glow--scrub { width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; left: 50%; top: 50%; translate: -50% -50%; background: radial-gradient(circle, rgba(124,58,237,.55), transparent 65%); }
.glow--story { width: 700px; height: 700px; left: 50%; top: 50%; translate: -50% -50%; background: radial-gradient(circle, rgba(37,99,235,.35), transparent 65%); }
.glow--process { width: 600px; height: 600px; right: -200px; top: 10%; background: radial-gradient(circle, rgba(34,211,238,.25), transparent 65%); }
.glow--prices { width: 800px; height: 600px; left: 50%; top: 30%; translate: -50% 0; background: radial-gradient(circle, rgba(124,58,237,.3), transparent 65%); }
.glow--contact { width: 700px; height: 700px; left: -200px; bottom: -200px; background: radial-gradient(circle, rgba(37,99,235,.35), transparent 65%); }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

/* ── Шапка ── */
.header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.header.is-scrolled { background: rgba(7, 11, 24, .72); backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.logo__mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--grad); color: #0b1124; font-size: 14px; font-weight: 800; box-shadow: 0 8px 24px -8px rgba(139,92,246,.8); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { position: relative; color: var(--text); text-decoration: none; font-size: 15px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.nav a:hover { color: #fff; }
.nav a:hover::after { transform: scaleX(1); }

/* ── Кнопки ── */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 28px; border-radius: 14px; border: 1px solid transparent; background: #fff; color: #0b1124; font: 650 16px var(--font); text-decoration: none; cursor: pointer; transition: transform .25s var(--ease-out), box-shadow .25s, background .25s; will-change: transform; }
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: 15px; border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; border-color: var(--line); }
.btn--sm:hover { background: rgba(255,255,255,.14); }
.btn--glow { background: var(--grad); color: #0b1124; box-shadow: 0 14px 40px -12px rgba(139,92,246,.9), inset 0 1px 0 rgba(255,255,255,.5); }
.btn--glow:hover { box-shadow: 0 20px 50px -10px rgba(96,165,250,.9), inset 0 1px 0 rgba(255,255,255,.5); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.22); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn--light { background: #fff; color: #1e1b4b; box-shadow: 0 20px 50px -15px rgba(0,0,0,.6); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ═══ HERO ═══ */
.scene { position: relative; }
.hero { min-height: 100svh; display: flex; align-items: center; padding: 120px 0 90px; overflow: hidden; isolation: isolate; }
.hero__mesh { position: absolute; inset: -10%; background:
  radial-gradient(60% 50% at 20% 20%, rgba(37,99,235,.35), transparent 60%),
  radial-gradient(50% 50% at 85% 30%, rgba(124,58,237,.35), transparent 60%),
  radial-gradient(60% 60% at 50% 100%, rgba(8,145,178,.25), transparent 60%), var(--bg); filter: blur(8px); }
.hero__grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 80%); opacity: .55; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; grid-template-areas: "text stage"; gap: 40px; align-items: center; }
.hero__text { grid-area: text; }
.hero__stage, .hero__chips { grid-area: stage; }
.hero__text { position: relative; z-index: 4; }
.hero__title { font-size: clamp(40px, 5.4vw, 74px); letter-spacing: -.045em; line-height: 1.02; margin-bottom: 26px; }
.hero__lead { font-size: clamp(17px, 1.5vw, 20px); max-width: 560px; color: var(--text); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 40px; }
.hero__facts { display: flex; gap: 34px; padding: 0; margin: 0; list-style: none; }
.hero__facts li { display: flex; align-items: center; gap: 12px; }
.hero__facts b { font-size: 34px; font-weight: 800; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__facts span { font-size: 13px; line-height: 1.35; color: var(--muted); }
.hero__stage { position: relative; height: 520px; z-index: 3; }
.hero__chips { position: relative; height: 520px; z-index: 5; pointer-events: none; }

/* Устройства (главный объект depth-3) */
.device { position: absolute; }
.laptop { width: min(560px, 100%); right: 0; top: 40px; animation: float-orbit 11s ease-in-out infinite; }
.laptop__screen { border-radius: 16px 16px 6px 6px; background: #0d1326; border: 1px solid rgba(255,255,255,.12); padding: 0; overflow: hidden; box-shadow: 0 50px 100px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(139,92,246,.15), 0 30px 80px -40px rgba(124,58,237,.8); transform: perspective(1400px) rotateY(-14deg) rotateX(6deg); transform-origin: right center; }
.laptop__base { height: 14px; margin: 0 -24px; border-radius: 0 0 18px 18px; background: linear-gradient(180deg, #2a3350, #151b31); transform: perspective(1400px) rotateY(-14deg) rotateX(6deg); transform-origin: right top; }
.phone { width: 168px; height: 336px; left: 4%; bottom: 0; border-radius: 30px; padding: 10px; background: #0d1326; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 40px 80px -20px rgba(0,0,0,.9), 0 0 60px -20px rgba(34,211,238,.6); animation: float-y 9s ease-in-out infinite; animation-delay: -3s; }
.phone__notch { position: absolute; top: 12px; left: 50%; translate: -50% 0; width: 56px; height: 14px; border-radius: 10px; background: #000; z-index: 2; }
.phone__screen { display: flex; flex-direction: column; gap: 8px; height: 100%; border-radius: 22px; padding: 30px 12px 12px; background: #f8f7f4; color: #1f2937; overflow: hidden; }
.phone__screen b { font-size: 9px; letter-spacing: .1em; color: #111; }
.phone__screen strong { font-size: 14px; line-height: 1.15; color: #111; }
.phone__screen .mock-photo { height: 92px; }
.phone__screen em { margin-top: auto; padding: 8px; border-radius: 10px; background: #1d4ed8; color: #fff; font-style: normal; font-size: 10px; text-align: center; font-weight: 600; }
.phone__msgs { display: flex; gap: 6px; }
.phone__msgs span { flex: 1; padding: 6px 0; border-radius: 8px; font-size: 9px; text-align: center; color: #fff; font-weight: 600; }
.phone__msgs .wa { background: #16a34a; }
.phone__msgs .tg { background: #0284c7; }
.phone__screen p, .mock-hero p { height: 6px; margin: 0; border-radius: 4px; background: #d6d3cd; }
.phone__screen p.short, .mock-hero p.short { width: 60%; }

.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #161d36; border-bottom: 1px solid rgba(255,255,255,.06); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a4366; }
.browser-bar i:nth-child(1) { background: #f87171; } .browser-bar i:nth-child(2) { background: #fbbf24; } .browser-bar i:nth-child(3) { background: #34d399; }
.browser-bar span { margin-left: 12px; flex: 1; max-width: 220px; padding: 3px 10px; border-radius: 6px; background: #0b1124; color: #6b7699; font-size: 11px; }

.mock-site { background: #f8f7f4; color: #1f2937; padding: 14px 18px 18px; }
.mock-nav { display: flex; align-items: center; gap: 12px; font-size: 10px; margin-bottom: 14px; }
.mock-nav b { letter-spacing: .12em; color: #111; margin-right: auto; white-space: nowrap; }
.mock-nav span { width: 34px; height: 5px; border-radius: 3px; background: #d6d3cd; }
.mock-nav em { padding: 5px 10px; border-radius: 7px; background: #111; color: #fff; font-style: normal; font-weight: 600; }
.mock-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: center; }
.mock-hero > div:first-child { display: flex; flex-direction: column; gap: 8px; }
.mock-hero small { font-size: 9px; color: #6b7280; text-transform: uppercase; letter-spacing: .08em; }
.mock-hero strong { font-size: 22px; line-height: 1.05; color: #111; letter-spacing: -.02em; }
.mock-hero em { align-self: flex-start; margin-top: 6px; padding: 8px 12px; border-radius: 9px; background: #1d4ed8; color: #fff; font-style: normal; font-size: 10px; font-weight: 600; }
.mock-photo { height: 150px; border-radius: 12px; background:
  linear-gradient(160deg, rgba(255,255,255,.0) 40%, rgba(0,0,0,.18)),
  linear-gradient(90deg, #e9e2d6 0 18%, #c9b79c 18% 20%, #efe8dc 20% 58%, #c9b79c 58% 60%, #e9e2d6 60%),
  linear-gradient(180deg, #f3efe8 0 55%, #8a6f52 55% 60%, #e7dccb 60%); background-blend-mode: multiply, normal; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.mock-cards span { height: 46px; border-radius: 10px; background: #fff; border: 1px solid #ebe7e0; }

/* Спутники depth-2 */
.chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(16, 24, 47, .78); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.12); color: #e6eaff; font-size: 13px; font-weight: 600; box-shadow: 0 20px 40px -20px rgba(0,0,0,.8); white-space: nowrap; }
.chip small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.chip__dot { width: 10px; height: 10px; border-radius: 50%; background: #34d399; box-shadow: 0 0 14px #34d399; }
.chip--lead { right: -2%; top: 8%; animation: float-y 10s ease-in-out infinite; }
.chip--mobile { left: 52%; bottom: 8%; animation: float-rotate 12s ease-in-out infinite; animation-delay: -4s; }
.chip--secure { right: 6%; bottom: 30%; animation: float-y 8s ease-in-out infinite; animation-delay: -2s; }
.hero__inner { position: relative; }

/* Частицы depth-5 */
.spark { position: absolute; left: var(--x); top: var(--y); width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 2px rgba(167,139,250,.9); animation: twinkle 6s ease-in-out infinite; animation-delay: var(--d); }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.3); } }

.scroll-hint { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; z-index: 6; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.35); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes float-rotate { 0%, 100% { transform: translateY(0) rotate(0); } 33% { transform: translateY(-12px) rotate(2deg); } 66% { transform: translateY(-6px) rotate(-1.5deg); } }
@keyframes float-orbit { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(6px, -10px); } 50% { transform: translate(0, -16px); } 75% { transform: translate(-6px, -10px); } }

/* ═══ Бегущая строка ═══ */
.marquee { position: relative; z-index: 4; overflow: hidden; padding: 22px 0; border-block: 1px solid var(--line); background: rgba(255,255,255,.02); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__track span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-size: clamp(20px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.02em; color: rgba(244,246,255,.85); white-space: nowrap; }
.marquee__track span::after { content: "✦"; font-size: .6em; color: var(--violet); }

/* ═══ БЫЛО → СТАЛО (шторка, --p от 0 до 1 — доля нового сайта) ═══ */
.scrub { position: relative; }
.scrub__sticky { position: relative; padding: clamp(80px, 10vw, 130px) 0; overflow: hidden; }
.scrub__bg { position: absolute; inset: 0; background: radial-gradient(80% 60% at 70% 50%, rgba(37,99,235,.18), transparent 70%), var(--bg); }
.scrub__inner { display: grid; grid-template-columns: .85fr 1.15fr; grid-template-areas: "head compare" "checks compare"; column-gap: 56px; align-items: center; }
.scrub__head { grid-area: head; align-self: end; }
.scrub__checks { grid-area: checks; align-self: start; }
.compare { grid-area: compare; }
.scrub__head h2 { font-size: clamp(30px, 3.6vw, 48px); }
.scrub__lead { color: var(--muted); margin: 0; }
.scrub__checks { list-style: none; padding: 0; margin: 24px 0 0; }
.scrub__checks li { --fs: 17px; position: relative; padding: 11px 0 11px 40px; color: var(--muted); font-size: var(--fs); line-height: 1.5; border-bottom: 1px solid var(--line); transition: color .4s; }
.scrub__checks li::before { content: "✓"; position: absolute; left: 0; top: calc(11px + (var(--fs) * 1.5 - 24px) / 2 + .5px); box-sizing: border-box; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: transparent; font-size: 14px; font-weight: 800; line-height: 1; transition: background .4s, border-color .4s, box-shadow .4s, color .3s; }
.scrub__checks li.is-on { color: #fff; }
.scrub__checks li.is-on::before { background: var(--grad); border-color: transparent; color: #0b1124; box-shadow: 0 0 20px -2px rgba(139,92,246,.8); }
.scrub__note { position: relative; z-index: 4; margin: 28px auto 0; padding: 0 22px; max-width: 1180px; width: 100%; color: var(--muted); font-size: 13px; text-align: right; }

.compare { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); background: #0d1326; box-shadow: 0 60px 120px -40px rgba(0,0,0,.95), 0 0 80px -30px rgba(124,58,237,.7); }
/* touch-action: pan-y — вертикальный свайп листает страницу, горизонтальный двигает шторку */
.compare__view { position: relative; aspect-ratio: 16 / 10.5; overflow: hidden; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.compare.is-dragging .new-site, .compare.is-dragging .compare__divider { transition: none !important; }
.compare.is-animating .new-site { transition: clip-path .9s var(--ease-out); }
.compare.is-animating .compare__divider { transition: left .9s var(--ease-out); }
.old-site, .new-site { position: absolute; inset: 0; }
.old-site { background: #ffffcc; color: #000; font-family: "Times New Roman", Times, serif; font-size: 12px; }
.old-site__top { padding: 10px; background: linear-gradient(#003399, #0066cc); color: #ffff00; font: bold 15px "Comic Sans MS", "Times New Roman", serif; text-align: center; text-shadow: 2px 2px #000; }
.old-site__marq { overflow: hidden; background: #cc0000; color: #fff; font-weight: bold; white-space: nowrap; padding: 3px 0; }
.old-site__marq span { display: inline-block; padding-left: 100%; animation: marq 9s linear infinite; }
@keyframes marq { to { transform: translateX(-100%); } }
.old-site__table { width: 100%; border-collapse: separate; border-spacing: 4px; }
.old-site__table td { vertical-align: top; border: 2px outset #c0c0c0; background: #fff; padding: 8px; }
.old-site__menu { width: 26%; background: #e0e0e0 !important; }
.old-site__menu u { display: block; color: #0000ee; margin-bottom: 7px; cursor: pointer; }
.old-site h4 { margin: 0 0 6px; font-size: 13px; color: #990000; }
.old-site p { font-size: 11px; line-height: 1.35; margin: 0 0 8px; }
.old-site__pics { display: flex; gap: 6px; }
.old-site__pics span { flex: 1; height: 70px; display: grid; place-items: center; border: 1px dashed #999; color: #999; font-size: 10px; background: repeating-linear-gradient(45deg, #f2f2f2 0 6px, #e6e6e6 6px 12px); }
.old-site__foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px; background: #c0c0c0; text-align: center; font-size: 10px; }

.new-site { background: #f8f7f4; color: #1f2937; padding: 16px 22px; font-family: var(--font); clip-path: inset(0 calc(100% - var(--p) * 100%) 0 0); }
.new-site__hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: center; }
.new-site__hero small { font-size: 10px; color: #6b7280; text-transform: uppercase; letter-spacing: .08em; }
.new-site__hero strong { display: block; margin: 6px 0 10px; font-size: clamp(18px, 2.4vw, 30px); line-height: 1.02; letter-spacing: -.03em; color: #111; }
.new-site__hero ul { margin: 0 0 12px; padding: 0; list-style: none; font-size: 11px; }
.new-site__hero li::before { content: "✓ "; color: #16a34a; font-weight: 700; }
.new-site__btns { display: flex; gap: 8px; }
.new-site__btns em, .new-site__btns span { padding: 8px 12px; border-radius: 9px; font-style: normal; font-size: 11px; font-weight: 600; }
.new-site__btns em { background: #1d4ed8; color: #fff; }
.new-site__btns span { background: #16a34a; color: #fff; }
.new-site .mock-photo { height: clamp(110px, 16vw, 190px); }
.new-site__prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.new-site__prices span { padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid #ebe7e0; font-size: 10px; color: #6b7280; }
.new-site__prices b { display: block; color: #111; font-size: 13px; }
.compare__divider { position: absolute; top: 0; bottom: 0; left: calc(var(--p) * 100%); width: 3px; margin-left: -1.5px; background: var(--grad); box-shadow: 0 0 24px 4px rgba(139,92,246,.8); }
/* У краёв ручка смещается внутрь, чтобы не обрезаться: ±26px при шторке в 0% или 100% */
.compare__handle { position: absolute; top: 50%; left: calc(50% + (.5 - var(--p)) * 52px); translate: -50% -50%; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #fff; color: #4c1d95; font-size: 18px; font-weight: 800; box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 0 6px rgba(167,139,250,.35); cursor: grab; touch-action: none; transition: transform .2s var(--ease-out), box-shadow .2s; }
.compare__handle:hover, .compare.is-dragging .compare__handle { transform: scale(1.1); box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 0 10px rgba(167,139,250,.35); }
.compare.is-dragging .compare__handle { cursor: grabbing; }
.compare:not(.was-touched) .compare__handle { animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { translate: -50% -50%; } 25% { translate: calc(-50% - 7px) -50%; } 75% { translate: calc(-50% + 7px) -50%; } }
.compare__labels { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; background: #10182f; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.compare__hint { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: none; transition: opacity .4s; }
.compare.was-touched .compare__hint { opacity: 0; }
.lbl-old { color: #fca5a5; opacity: calc(.3 + (1 - var(--p)) * .7); }
.lbl-new { color: #86efac; opacity: calc(.3 + var(--p) * .7); }

/* ═══ История: пословная подсветка ═══ */
.story { position: relative; padding: clamp(110px, 16vw, 200px) 0; overflow: hidden; }
.story__text { max-width: 980px; margin: 0 auto; font-size: clamp(28px, 4.2vw, 56px); line-height: 1.18; font-weight: 700; letter-spacing: -.03em; color: var(--ink); text-align: center; }
.story__text mark { background: none; color: inherit; }
.js .story__text .w { color: rgba(244,246,255,.16); transition: color .35s; }
.js .story__text .w.is-lit { color: var(--ink); }
.js .story__text mark .w.is-lit { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ═══ Карточки услуг ═══ */
.dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(148,163,255,.18) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
.grid { display: grid; gap: 20px; margin-top: 54px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card { position: relative; padding: 30px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); border: 1px solid var(--line); transform-style: preserve-3d; transition: border-color .3s, transform .4s var(--ease-out), background .3s; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(139,92,246,.18), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover { border-color: rgba(167,139,250,.45); }
.card:hover::before { opacity: 1; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; margin-bottom: 20px; background: linear-gradient(135deg, rgba(96,165,250,.25), rgba(167,139,250,.25)); border: 1px solid rgba(167,139,250,.35); color: #fff; font-size: 22px; transform: translateZ(30px); }

/* ═══ Процесс ═══ */
.process { position: relative; margin-top: 60px; }
.process__line { position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: var(--line); }
.process__line span { position: absolute; inset: 0; background: var(--grad); transform: scaleX(var(--p, 0)); transform-origin: left; box-shadow: 0 0 16px rgba(139,92,246,.8); }
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; padding: 0; margin: 0; list-style: none; }
.steps li { padding: 0; }
.steps i { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 22px; border-radius: 16px; background: var(--bg-3); border: 1px solid rgba(167,139,250,.4); color: #fff; font-style: normal; font-weight: 800; box-shadow: 0 0 0 6px var(--bg-2); }
.steps b { display: block; color: var(--ink); font-size: 19px; margin-bottom: 8px; }
.steps span { color: var(--muted); font-size: 15px; }

/* ═══ Тарифы ═══ */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.tier { position: relative; display: flex; flex-direction: column; padding: 34px 30px; border-radius: 22px; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); border: 1px solid var(--line); }
/* Рекомендуемый тариф выше соседей за счёт margin-top: низ и кнопки всех тарифов остаются на одной линии */
.tier--rec { margin-top: -14px; background: linear-gradient(180deg, rgba(76,29,149,.38), rgba(16,24,47,.9)); border: 1px solid transparent; box-shadow: 0 40px 80px -40px rgba(124,58,237,.9); }
.tier--rec::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--angle, 0deg), #60a5fa, #a78bfa, #22d3ee, #60a5fa); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin-border 6s linear infinite; pointer-events: none; }
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin-border { to { --angle: 360deg; } }
.tier__badge { align-self: flex-start; margin-bottom: 16px; padding: 5px 12px; border-radius: 999px; background: var(--grad); color: #0b1124; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.tier h3 { margin-bottom: 10px; }
.tier__price { font-size: 44px; font-weight: 800; letter-spacing: -.04em; color: #fff; line-height: 1; white-space: nowrap; }
.tier__term { margin: 10px 0 16px; color: #a5b4fc; font-size: 15px; }
.tier__for { color: var(--text); font-size: 16px; }
.tier ul { flex: 1; margin: 8px 0 28px; padding: 0; list-style: none; }
/* Галочка — один элемент, центрирован по первой строке: top = (высота строки − размер кружка) / 2.
   Размер шрифта строки — в --fs: em внутри ::before считался бы от шрифта самой галочки. */
.tier li { --fs: 15px; position: relative; padding-left: 30px; margin-bottom: 10px; font-size: var(--fs); line-height: 1.5; color: var(--text); }
.tier li::before { content: "✓"; position: absolute; left: 0; top: calc((var(--fs) * 1.5 - 18px) / 2 + .5px); box-sizing: border-box; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(52,211,153,.15); border: 1px solid rgba(52,211,153,.5); color: #34d399; font-size: 11px; font-weight: 800; line-height: 1; }
.tier .btn { width: 100%; }
.extras { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 30px; }
.extras__box { padding: 28px 30px; border-radius: 20px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.extras table { width: 100%; border-collapse: collapse; font-size: 15px; }
.extras td { padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.extras tr:last-child td { border-bottom: 0; }
.extras td:last-child { padding-left: 16px; text-align: right; white-space: nowrap; color: #fff; font-weight: 700; }
.terms { margin: 0; padding-left: 20px; font-size: 15px; }
.terms li { margin-bottom: 10px; }
.terms li::marker { color: var(--violet); }

/* ═══ Круговое раскрытие (--p от 0 до 1) ═══ */
.iris { position: relative; padding: clamp(110px, 14vw, 180px) 0; overflow: hidden; text-align: center; }
.iris__bg { position: absolute; inset: 0; background: radial-gradient(120% 120% at 50% 0%, #7c3aed 0%, #3730a3 45%, #1e1b4b 100%); clip-path: circle(calc(8% + var(--p) * 92%) at 50% 55%); }
.iris__bg::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px); background-size: 26px 26px; mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent); }
.iris__inner { opacity: calc(.2 + var(--p) * 1.2); transform: translateY(calc((1 - var(--p)) * 40px)); }
.iris__title { font-size: clamp(32px, 5vw, 64px); color: #fff; }
.iris__steps { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 30px auto 40px; padding: 0; list-style: none; counter-reset: s; }
.iris__steps li { counter-increment: s; padding: 12px 18px; border-radius: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; font-size: 15px; }
.iris__steps li::before { content: counter(s) " · "; font-weight: 800; color: #c4b5fd; }

/* ═══ Статьи ═══ */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius); background: rgba(255,255,255,.035); border: 1px solid var(--line); color: inherit; text-decoration: none; overflow: hidden; transition: transform .4s var(--ease-out), border-color .3s; }
.post-card::after { content: "→"; position: absolute; right: 24px; bottom: 22px; color: #a78bfa; font-size: 20px; transition: transform .3s var(--ease-out); }
.post-card:hover { transform: translateY(-6px); border-color: rgba(167,139,250,.45); }
.post-card:hover::after { transform: translateX(6px); }
.post-card time { color: #a5b4fc; font-size: 13px; }
.post-card h3 { margin: 10px 0 12px; }
.post-card p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.more { margin-top: 34px; }
.link-arrow { color: #fff; font-weight: 650; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 3px; }
.link-arrow span { display: inline-block; transition: transform .3s var(--ease-out); }
.link-arrow:hover span { transform: translateX(6px); }

/* ═══ Вопросы ═══ */
.faq-wrap { display: grid; grid-template-columns: .7fr 1.3fr; gap: 60px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; cursor: pointer; color: var(--ink); font-size: 18px; font-weight: 650; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); color: #a78bfa; font-size: 20px; line-height: 1; transition: transform .35s var(--ease-out), background .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: rgba(139,92,246,.2); }
.faq details p { margin: 14px 0 0; color: var(--text); }

/* ═══ Контакты и форма ═══ */
.section--contact { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 30px 0 0; }
.contact__list li { margin-bottom: 18px; }
.contact__list span { display: block; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.contact__list a { color: #fff; font-weight: 650; text-decoration: none; font-size: 22px; }
.contact__list a:hover { color: #a5b4fc; }
.form { position: relative; padding: 34px; border-radius: 22px; background: rgba(16,24,47,.75); backdrop-filter: blur(12px); border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); }
.form label { display: block; margin-bottom: 18px; color: var(--ink); font-size: 15px; font-weight: 600; }
.form input[type=text], .form textarea { display: block; width: 100%; margin-top: 8px; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(148,163,255,.22); background: rgba(7,11,24,.6); color: #fff; font: 16px var(--font); transition: border-color .2s, box-shadow .2s; }
.form input::placeholder, .form textarea::placeholder { color: #5f6886; }
.form input:focus, .form textarea:focus { outline: none; border-color: #a78bfa; box-shadow: 0 0 0 4px rgba(139,92,246,.2); }
.form textarea { min-height: 110px; resize: vertical; }
.form .check { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 14px; font-weight: 400; }
.form .check input { margin-top: 4px; accent-color: #8b5cf6; width: 18px; height: 18px; flex: none; }
.form .btn { width: 100%; }
.form__hp { position: absolute; left: -9999px; }
.form__status { margin: 16px 0 0; font-size: 15px; }
.form__status--ok { color: #34d399; }
.form__status--err { color: #f87171; }
.optional { color: var(--muted); font-weight: 400; }

/* ═══ Подвал ═══ */
.footer { position: relative; z-index: 4; padding: 40px 0; border-top: 1px solid var(--line); background: #050814; color: var(--muted); font-size: 14px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.footer a { color: #b8c4ff; }

/* ═══ Внутренние страницы (статьи, документы) ═══ */
.doc { max-width: 780px; padding-top: 130px; padding-bottom: 90px; }
.doc h1 { font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -.035em; }
.doc h2 { font-size: clamp(22px, 2.6vw, 28px); margin-top: 1.8em; letter-spacing: -.02em; }
.doc h3 { margin-top: 1.4em; }
.doc p, .doc li { color: var(--text); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--violet); }
.doc b { color: #fff; }
.doc__meta { color: var(--muted); font-size: 15px; margin-bottom: 30px; }
.doc__back { display: inline-block; margin-bottom: 24px; color: #a5b4fc; font-size: 15px; text-decoration: none; }
.doc__cta { margin-top: 48px; padding: 32px; border-radius: 22px; background: linear-gradient(135deg, rgba(76,29,149,.5), rgba(30,58,138,.5)); border: 1px solid rgba(167,139,250,.35); }
.doc__cta p { color: #fff; }
.doc .posts { grid-template-columns: 1fr !important; }
.page { background: radial-gradient(70% 40% at 80% 0%, rgba(124,58,237,.18), transparent 70%), radial-gradient(60% 40% at 0% 10%, rgba(37,99,235,.16), transparent 70%), var(--bg); }

/* ═══ Появление при прокрутке (только при включённом JS) ═══ */
.js [data-reveal] { opacity: 0; transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js [data-reveal="up"] { transform: translateY(34px); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-stagger] > * { opacity: 0; transform: translateY(46px) scale(.98); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-stagger].is-in > * { opacity: 1; transform: none; }
/* Маскированные строки заголовков */
.js [data-lines] > span { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.js [data-lines] > span > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms); }
.js [data-lines].is-in > span > span { transform: none; }
[data-lines] > span { display: block; }

/* ═══ Адаптив ═══ */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; grid-template-areas: "text" "stage"; }
  .hero__stage, .hero__chips { height: 440px; max-width: 620px; margin: 10px auto 0; width: 100%; }
  .scrub__inner { grid-template-columns: 1fr; grid-template-areas: "head" "compare" "checks"; row-gap: 28px; }
  .scrub__checks { margin-top: 0; }
  .scroll-hint { display: none; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .process__line { display: none; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .header .btn--sm { margin-left: auto; }
  .grid--3, .posts { grid-template-columns: 1fr 1fr; }
  .tiers { grid-template-columns: 1fr; max-width: 520px; }
  .tier--rec { margin-top: 0; }
  .faq-wrap, .contact, .extras { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 104px 0 70px; }
  .hero__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero__facts li { flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
  .hero__facts b { font-size: 24px; white-space: nowrap; }
  .hero__facts span br { display: none; }
  .hero__stage, .hero__chips { height: 330px; }
  .laptop { width: 92%; top: 10px; }
  .phone { width: 116px; height: 232px; left: 0; border-radius: 22px; padding: 7px; }
  .phone__screen { padding: 22px 8px 8px; gap: 5px; border-radius: 16px; }
  .phone__screen strong { font-size: 10px; }
  .phone__screen .mock-photo { height: 54px; }
  .chip--secure { display: none; }
  .chip--lead { right: 0; top: -2%; font-size: 12px; }
  .chip--mobile { left: 36%; bottom: 0; }
  .mock-hero strong { font-size: 15px; }
  .mock-photo { height: 100px; }
  .grid--3, .posts, .steps { grid-template-columns: 1fr; }
  .compare__hint { display: none; }
  .scrub__checks li { --fs: 15px; }
  .old-site { font-size: 10px; }
  .old-site__top { font-size: 11px; padding: 6px; }
  .old-site p { font-size: 9px; }
  .old-site__pics span { height: 40px; }
  .compare__view { aspect-ratio: 1 / 1.08; }
  .new-site { padding: 12px 14px; }
  .new-site__hero { grid-template-columns: 1fr; gap: 10px; }
  .new-site__hero strong { font-size: 24px; }
  .new-site__hero ul { font-size: 12px; }
  .new-site .mock-photo { height: 96px; }
  .new-site__prices { gap: 6px; margin-top: 10px; }
  .new-site__prices span { padding: 7px 8px; font-size: 9px; }
  .new-site__prices b { font-size: 11px; }
  .old-site__foot { font-size: 8px; }
  .old-site__menu u { margin-bottom: 5px; }
  .scrub__note { text-align: left; }
  .contact__list a { font-size: 19px; }
  .form { padding: 24px; }
  .logo__name { display: none; }
}

/* На тач-устройствах — меньше эффектов */
@media (pointer: coarse) {
  .glow { animation: none; }
  .card { transition: border-color .3s; }
}

/* ═══ Уменьшение движения: всё видно сразу, без анимаций ═══ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .float-loop, .glow, .spark { animation: none !important; }
  .js [data-reveal], .js [data-stagger] > *, .js [data-lines] > span > span { opacity: 1 !important; transform: none !important; }
  .iris { --p: 1 !important; }
  .js .story__text .w { color: var(--ink); }
  .old-site__marq span { animation: none; padding-left: 0; }
}
