/* ZEROINE: светлый яркий сайт IT-студии. Системные шрифты и встроенная графика: политика обещает,
   что сайт ничего не грузит у третьих лиц. Страницы собирает scripts/build_zeroine_site.py. */
:root {
  --ink: #0d0b1f;
  --ink-2: #46435f;
  --ink-3: #78748f;
  --bg: #ffffff;
  --soft: #f7f6fc;
  --line: #ebe8f5;
  --violet: #7c3aed;
  --pink: #ec4899;
  --orange: #f97316;
  --green: #10b981;
  --cyan: #06b6d4;
  --blue: #3b82f6;
  --grad: linear-gradient(95deg, #7c3aed 0%, #db2777 52%, #f97316 100%);
  --shadow-sm: 0 6px 20px -12px rgba(36, 18, 96, 0.25);
  --shadow-md: 0 18px 50px -22px rgba(36, 18, 96, 0.35);
  --shadow-lg: 0 40px 90px -36px rgba(36, 18, 96, 0.45);
  --radius: 24px;
  --maxw: 1200px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
::selection { background: #f5d0fe; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Шапка */
header.site { position: fixed; top: 0; left: 0; right: 0; z-index: 60; transition: background 0.3s, box-shadow 0.3s; }
header.site.scrolled { background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6); box-shadow: 0 1px 0 var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 23px; letter-spacing: -0.045em; text-decoration: none; color: var(--ink); }
.logo svg { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 6px 14px rgba(219, 39, 119, 0.35)); }
nav.main { display: flex; align-items: center; gap: 32px; }
nav.main a { text-decoration: none; color: var(--ink-2); font-size: 15.5px; font-weight: 500; transition: color 0.2s; }
nav.main a:hover { color: var(--ink); }
nav.main a.btn-dark, nav.main a.btn-dark:hover { color: #fff; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 28px; border-radius: 999px; font-weight: 700; font-size: 16px; line-height: 1; text-decoration: none; border: 0; cursor: pointer; transition: transform 0.2s, box-shadow 0.25s, background 0.2s; }
.btn svg { width: 18px; height: 18px; }
.btn-grad { color: #fff; background: var(--grad); background-size: 140% 100%; box-shadow: 0 14px 34px -12px rgba(219, 39, 119, 0.65); }
.btn-grad:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 20px 44px -12px rgba(219, 39, 119, 0.75); }
.btn-dark { color: #fff; background: var(--ink); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-light { color: var(--ink); background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px #ddd6fe, var(--shadow-md); }
.btn-small { padding: 12px 20px; font-size: 15px; }

/* Первый экран */
.hero { position: relative; padding: 150px 0 40px; overflow: hidden; text-align: center; }
.blobs { position: absolute; left: 50%; top: -120px; width: 1500px; height: 1000px; transform: translateX(-50%); pointer-events: none; filter: blur(70px); opacity: 0.7; }
.blob { position: absolute; border-radius: 50%; animation: drift 18s ease-in-out infinite alternate; }
.blob.b1 { width: 560px; height: 560px; left: 8%; top: 0; background: #ddd6fe; }
.blob.b2 { width: 520px; height: 520px; right: 8%; top: 60px; background: #fbcfe8; animation-delay: -6s; }
.blob.b3 { width: 480px; height: 480px; left: 38%; top: 340px; background: #fed7aa; animation-delay: -11s; }
.blob.b4 { width: 420px; height: 420px; left: 0; top: 460px; background: #bae6fd; animation-delay: -3s; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(13, 11, 31, 0.13) 1px, transparent 1.2px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, #000 20%, transparent 70%); }
.hero .wrap { position: relative; z-index: 2; }
.pill-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.85); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.pill-badge b { color: #fff; background: var(--grad); padding: 5px 11px; border-radius: 999px; font-size: 12.5px; letter-spacing: 0.02em; }
h1 { font-size: clamp(50px, 8.2vw, 116px); line-height: 0.96; letter-spacing: -0.055em; font-weight: 800; margin: 30px auto 0; }
h1 .line { display: block; }
.rot { display: inline-block; padding-bottom: 0.08em; transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease; }
.rot.out { opacity: 0; transform: translateY(-0.25em); filter: blur(6px); }
.rot.pre { opacity: 0; transform: translateY(0.25em); filter: blur(6px); }
.hero .lead { font-size: clamp(18px, 1.7vw, 22px); color: var(--ink-2); max-width: 760px; margin: 30px auto 0; }
.hero .cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.mini-proof { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px; margin-top: 30px; font-size: 14.5px; color: var(--ink-3); font-weight: 500; }
.mini-proof span { display: inline-flex; align-items: center; gap: 8px; }
.mini-proof i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15); }

/* Коллаж интерфейсов */
.stage { position: relative; max-width: 1144px; height: 520px; margin: 64px auto 0; text-align: left; }
.ui { position: absolute; background: rgba(255, 255, 255, 0.92); border-radius: 22px; box-shadow: 0 0 0 1px rgba(13, 11, 31, 0.06), var(--shadow-lg); padding: 18px; transform: rotate(var(--r, 0deg)); animation: bob 7s ease-in-out infinite; animation-delay: var(--d, 0s); font-size: 14px; }
.ui-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; margin-bottom: 12px; }
.ui-head .muted { margin-left: auto; font-weight: 500; color: var(--ink-3); }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.v { background: var(--violet); } .dot.p { background: var(--pink); } .dot.c { background: var(--cyan); } .dot.o { background: var(--orange); } .dot.g { background: var(--green); }
.ui .b { padding: 10px 13px; border-radius: 15px; line-height: 1.45; margin-top: 8px; }
.ui .b.me { margin-left: 28px; background: var(--grad); color: #fff; border-bottom-right-radius: 5px; }
.ui .b.ai { margin-right: 18px; background: var(--soft); color: var(--ink-2); border-bottom-left-radius: 5px; }
.ui .b.ai b { color: var(--ink); }
.ui-chat { width: 290px; left: 0; top: 70px; --r: -5deg; }
.ui-chart { width: 260px; left: 270px; top: 0; --r: 4deg; --d: -1.2s; z-index: 2; }
.bars { display: flex; align-items: flex-end; gap: 9px; height: 120px; padding: 6px 2px 0; }
.bars i { flex: 1; height: var(--h); border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, #a78bfa, #7c3aed); }
.bars i:nth-child(even) { background: linear-gradient(180deg, #f9a8d4, #db2777); }
.bars i:last-child { background: linear-gradient(180deg, #fdba74, #f97316); }
.ui-foot { display: flex; justify-content: space-between; margin-top: 8px; color: var(--ink-3); font-size: 12px; }
.badge-live { margin-left: auto; font-size: 11px; font-weight: 700; color: #047857; background: #d1fae5; padding: 3px 8px; border-radius: 999px; }
.ui-code { width: 375px; left: 345px; top: 250px; --r: -2deg; --d: -2.4s; z-index: 3; background: #13112a; color: #e9e7ff; box-shadow: 0 40px 90px -30px rgba(36, 18, 96, 0.7); }
.ui-code .tl { display: flex; gap: 7px; margin-bottom: 14px; }
.ui-code .tl i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.ui-code .tl i:nth-child(2) { background: #febc2e; } .ui-code .tl i:nth-child(3) { background: #28c840; }
.ui-code pre { margin: 0; font: 500 14px/1.65 var(--mono); white-space: pre; overflow: hidden; }
.k { color: #c4b5fd; } .f { color: #67e8f9; } .s { color: #fdba74; } .cm { color: #86efac; }
.ui-phone { width: 215px; left: 700px; top: 20px; --r: 5deg; --d: -3.6s; z-index: 2; padding: 14px 14px 18px; border-radius: 34px; background: #fff; box-shadow: 0 0 0 7px #13112a, var(--shadow-lg); }
.ui-phone .notch { width: 70px; height: 18px; border-radius: 999px; background: #13112a; margin: 0 auto 14px; }
.ui-phone .title { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; margin-bottom: 10px; }
.row { display: flex; align-items: center; gap: 10px; padding: 9px; border-radius: 14px; background: var(--soft); margin-top: 8px; }
.row .ic { width: 30px; height: 30px; border-radius: 10px; flex: none; }
.ic.o { background: linear-gradient(135deg, #fdba74, #f97316); } .ic.v { background: linear-gradient(135deg, #c4b5fd, #7c3aed); } .ic.g { background: linear-gradient(135deg, #6ee7b7, #10b981); }
.row b { display: block; font-size: 12.5px; } .row span { font-size: 11.5px; color: var(--ink-3); }
.ui-phone .app-btn { margin-top: 12px; text-align: center; color: #fff; font-weight: 700; padding: 11px; border-radius: 14px; background: var(--grad); }
.ui-lead { width: 264px; left: 880px; top: 90px; --r: -4deg; --d: -4.8s; z-index: 4; }
.ui-lead p { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.45; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--soft); color: var(--ink-2); }
.chip.ok { background: #d1fae5; color: #047857; } .chip.hot { background: #ffe4e6; color: #be123c; }
.ui-voice { width: 290px; left: 30px; top: 345px; --r: 3deg; --d: -6s; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.play { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--grad); font-size: 12px; flex: none; }
.wave { display: flex; align-items: center; gap: 3px; height: 34px; flex: 1; }
.wave i { width: 3px; border-radius: 3px; background: #c4b5fd; height: var(--h); animation: wave 1.4s ease-in-out infinite; animation-delay: var(--w, 0s); }
.ui-voice .time { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.ui-voice .sub { width: 100%; font-size: 13px; font-weight: 700; color: #047857; }
.ui-task { width: 250px; left: 894px; top: 335px; --r: 4deg; --d: -2s; z-index: 3; }
.task { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.task:first-of-type { border-top: 0; }
.box { width: 18px; height: 18px; border-radius: 6px; border: 2px solid #c4b5fd; flex: none; }
.box.done { background: var(--grad); border: 0; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(50px, -40px) scale(1.08); } 100% { transform: translate(-40px, 30px) scale(0.94); } }
@keyframes bob { 0%, 100% { transform: rotate(var(--r, 0deg)) translateY(0); } 50% { transform: rotate(var(--r, 0deg)) translateY(-12px); } }
@keyframes wave { 0%, 100% { transform: scaleY(0.55); } 50% { transform: scaleY(1); } }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Бегущая строка */
.marquee { position: relative; overflow: hidden; padding: 12px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.track { display: flex; gap: 14px; width: max-content; animation: scroll 46s linear infinite; }
.marquee.rev .track { animation-direction: reverse; animation-duration: 52s; }
.tag { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; padding: 13px 22px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.tag i { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--violet)); }
.band { padding: 70px 0 30px; }

/* Разделы */
section.block { padding: 120px 0; position: relative; }
section.tint { background: var(--soft); }
.head { max-width: 820px; margin-bottom: 56px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; font: 700 13px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet); margin-bottom: 18px; }
h2 { font-size: clamp(38px, 5vw, 66px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 800; margin: 0 0 18px; text-wrap: balance; }
.head p { font-size: 19.5px; color: var(--ink-2); margin: 0; }

/* Услуги */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.svc { position: relative; padding: 28px; border-radius: var(--radius); background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); transition: transform 0.25s, box-shadow 0.25s; }
.svc:hover { transform: translateY(-5px); box-shadow: 0 0 0 1px #ddd6fe, var(--shadow-md); }
.ico { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; color: #fff; background: var(--g); box-shadow: 0 12px 26px -12px var(--gs, rgba(124, 58, 237, 0.7)); margin-bottom: 22px; }
.ico svg { width: 26px; height: 26px; }
.svc h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.025em; margin: 0 0 8px; font-weight: 750; }
.svc p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.svc.big { grid-column: span 2; grid-row: span 2; padding: 36px; color: #fff; overflow: hidden; background: radial-gradient(120% 90% at 100% 0%, rgba(249, 115, 22, 0.55), transparent 55%), linear-gradient(140deg, #4f46e5, #7c3aed 45%, #db2777); box-shadow: var(--shadow-lg); }
.svc.big .ico { background: rgba(255, 255, 255, 0.18); box-shadow: none; }
.svc.big h3 { font-size: clamp(28px, 2.6vw, 38px); }
.svc.big p { color: rgba(255, 255, 255, 0.86); font-size: 17px; max-width: 30em; }
.svc.big .mini-chat { margin-top: 28px; display: grid; gap: 10px; max-width: 440px; }
.mini-chat div { padding: 12px 15px; border-radius: 16px; font-size: 15px; line-height: 1.45; }
.mini-chat .q { justify-self: end; background: #fff; color: var(--ink); border-bottom-right-radius: 5px; }
.mini-chat .a { justify-self: start; background: rgba(255, 255, 255, 0.16); color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); border-bottom-left-radius: 5px; }
.svc .more { display: inline-flex; margin-top: 18px; font-weight: 700; font-size: 14.5px; color: var(--violet); text-decoration: none; }

/* Продукты */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.prod { position: relative; overflow: hidden; border-radius: 34px; padding: 44px 40px 0; color: #fff; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.prod.p1 { background: radial-gradient(90% 70% at 100% 0%, rgba(236, 72, 153, 0.55), transparent 60%), linear-gradient(150deg, #312e81, #6d28d9 55%, #a21caf); }
.prod.p2 { background: radial-gradient(90% 70% at 0% 0%, rgba(250, 204, 21, 0.45), transparent 60%), linear-gradient(150deg, #ea580c, #db2777 60%, #9d174d); }
.prod .tagline { font: 700 13px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; }
.prod h3 { font-size: clamp(34px, 3.4vw, 48px); line-height: 1.02; letter-spacing: -0.045em; margin: 16px 0 14px; font-weight: 800; }
.prod p { margin: 0; font-size: 17.5px; color: rgba(255, 255, 255, 0.88); }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; color: rgba(255, 255, 255, 0.92); }
.ticks li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: rgba(255, 255, 255, 0.2); margin-top: 1px; }
.prod .actions { margin: 28px 0 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.prod .shot { margin-top: auto; background: #fff; color: var(--ink); border-radius: 22px 22px 0 0; padding: 20px 20px 24px; box-shadow: 0 -20px 60px -30px rgba(0, 0, 0, 0.5); }
.shot .q { margin-left: auto; max-width: 82%; padding: 11px 14px; border-radius: 16px; border-bottom-right-radius: 5px; color: #fff; background: var(--grad); font-size: 14.5px; }
.shot .a { margin-top: 10px; max-width: 90%; padding: 12px 15px; border-radius: 16px; border-bottom-left-radius: 5px; background: var(--soft); font-size: 14.5px; color: var(--ink-2); }
.shot .a b { color: var(--ink); }
.shot .post { display: flex; gap: 11px; padding: 12px; border-radius: 16px; background: var(--soft); }
.shot .av { width: 34px; height: 34px; border-radius: 50%; flex: none; background: linear-gradient(135deg, #f0abfc, #818cf8); }
.shot .post p { margin: 2px 0 0; font-size: 14.5px; color: var(--ink); }
.shot .post b { font-size: 13.5px; }
.shot .rep { margin-top: 10px; padding: 12px 14px; border-radius: 16px; background: #f5f3ff; border: 1px dashed #c4b5fd; font-size: 14px; color: var(--ink-2); }
.shot .rep small { display: block; font: 700 10.5px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--violet); margin-bottom: 4px; }
.fineprint { margin: -18px 0 36px; font-size: 13.5px; color: rgba(255, 255, 255, 0.8); }
.fineprint a { color: #fff; }

/* Инструменты */
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tool { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--line); transition: transform 0.2s, box-shadow 0.2s; }
.tool:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px #ddd6fe, var(--shadow-md); }
.tool .em { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; flex: none; background: var(--t, #f5f3ff); }
.tool b { display: block; font-size: 16px; letter-spacing: -0.01em; margin-top: 2px; }
.tool span { display: block; font-size: 14px; color: var(--ink-3); line-height: 1.45; margin-top: 3px; }

/* Как работаем */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 36px; border-top: 2px dashed #ddd6fe; }
.step { position: relative; text-align: center; padding: 0 10px; }
.step .n { width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 22px; display: grid; place-items: center; font-weight: 800; font-size: 26px; color: #fff; background: var(--grad); box-shadow: 0 16px 36px -14px rgba(219, 39, 119, 0.7); position: relative; }
.step h3 { font-size: 22px; letter-spacing: -0.025em; margin: 0 0 8px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* Почему мы */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 90px; }
.why div { padding: 28px; border-radius: var(--radius); background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); border-top: 4px solid var(--w, var(--violet)); }
.why b { display: block; font-size: 20px; letter-spacing: -0.02em; margin-bottom: 8px; }
.why span { color: var(--ink-2); font-size: 15.5px; }

/* Стек */
.stack { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.stack span { padding: 10px 18px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-weight: 600; font-size: 15px; color: var(--ink-2); }

/* Призыв */
.cta-band { position: relative; overflow: hidden; border-radius: 40px; padding: 80px 48px; text-align: center; color: #fff; background: radial-gradient(60% 80% at 15% 10%, rgba(255, 255, 255, 0.22), transparent 60%), var(--grad); box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; font-size: clamp(40px, 5.6vw, 76px); margin-bottom: 18px; }
.cta-band p { font-size: 20px; color: rgba(255, 255, 255, 0.92); max-width: 640px; margin: 0 auto; }
.cta-band .cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.cta-band .btn-light { box-shadow: none; }
.cta-band .btn-ghost-w { color: #fff; background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); }
.cta-band .btn-ghost-w:hover { background: rgba(255, 255, 255, 0.24); transform: translateY(-2px); }

/* Подвал */
footer.site { background: var(--soft); border-top: 1px solid var(--line); padding: 64px 0 40px; color: var(--ink-3); font-size: 15px; }
.fgrid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.fgrid h4 { margin: 4px 0 14px; color: var(--ink); font-size: 14px; letter-spacing: 0.02em; }
.fgrid a { display: block; text-decoration: none; color: var(--ink-2); margin-top: 8px; }
.fgrid a.logo { display: inline-flex; margin-top: 0; color: var(--ink); }
.fgrid a:hover { color: var(--violet); }
.fgrid .about { max-width: 22em; margin-top: 14px; }
.flegal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; }

/* Юридические страницы */
.doc-hero { position: relative; overflow: hidden; padding: 150px 0 40px; }
.doc-hero .blobs { opacity: 0.5; height: 700px; }
.doc { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; padding: 0 28px 110px; }
.doc .pill-badge { margin-bottom: 4px; }
.doc h1 { font-size: clamp(42px, 6vw, 72px); text-align: left; margin: 24px 0 12px; }
.doc .meta { color: var(--ink-3); margin: 0 0 44px; }
.doc h2 { font-size: 26px; line-height: 1.25; letter-spacing: -0.03em; margin: 52px 0 12px; font-weight: 750; }
.doc p, .doc li { color: var(--ink-2); font-size: 17px; }
.doc strong { color: var(--ink); }
.doc a { color: var(--violet); font-weight: 600; text-decoration: none; }
.doc a:hover { text-decoration: underline; }
.doc ul { padding-left: 22px; }
.doc li + li { margin-top: 8px; }
.doc li::marker { color: var(--pink); }
.table-wrap { overflow-x: auto; margin: 18px 0; border-radius: 20px; box-shadow: 0 0 0 1px var(--line); background: #fff; }
.doc table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 15px; }
.doc th, .doc td { padding: 15px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.doc th { background: var(--soft); color: var(--ink); }
.doc tr:last-child td { border-bottom: 0; }
.note { margin-top: 36px; padding: 22px 24px; border-radius: 20px; background: #f5f3ff; color: var(--ink-2); }
.center { text-align: center; }

/* Появление при прокрутке */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.08s; } .js .reveal.d2 { transition-delay: 0.16s; } .js .reveal.d3 { transition-delay: 0.24s; }

@media (max-width: 1180px) {
  .stage { transform: scale(0.86); transform-origin: top center; height: 440px; margin-bottom: -40px; }
}
@media (max-width: 1020px) {
  nav.main .hide-md { display: none; }
  .stage { transform: none; height: auto; margin: 48px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .ui { position: relative; left: auto; top: auto; width: auto; --r: 0deg; animation: none; }
  .ui-code { grid-column: span 2; }
  .ui-phone, .ui-task { display: none; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: 1fr; }
  .tools { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .why { grid-template-columns: repeat(2, 1fr); }
  .fgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .bar { height: 66px; }
  nav.main { gap: 16px; }
  nav.main .hide-sm { display: none; }
  .hero { padding-top: 116px; }
  h1 { font-size: clamp(44px, 13vw, 60px); }
  .stage { grid-template-columns: 1fr; }
  .ui-code { grid-column: auto; }
  .ui-chart, .ui-voice { display: none; }
  .ui-code pre { font-size: 12.5px; }
  section.block { padding: 84px 0; }
  .services, .tools, .why { grid-template-columns: 1fr; }
  .svc.big { grid-column: auto; grid-row: auto; padding: 28px; }
  .steps { grid-template-columns: 1fr; }
  .prod { padding: 32px 24px 0; }
  .cta-band { padding: 56px 24px; border-radius: 30px; }
  .fgrid { grid-template-columns: 1fr; }
  .tag { font-size: 15px; padding: 11px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
