/* ==========================================================================
   Шаблон «Ночной запуск» — сайт веб-разработчика или студии
   Одна система для главной и посадочной: шапка, небо, сцена, бенто, лента работ, подвал.
   Палитра: глубокая чернильная ночь + электрический фиолетовый и циан.
   ========================================================================== */

:root {
  --void: #03040c;
  --bg: #070b1a;
  --bg-2: #0a1024;
  --surface: #0e1430;
  --surface-2: #141b3d;
  --line: rgba(170, 182, 255, 0.1);
  --line-2: rgba(170, 182, 255, 0.17);
  --line-3: rgba(170, 182, 255, 0.3);
  --text: #eef1ff;
  --text-2: #aab3d9;
  --text-3: #8b94bf;
  --violet: #7c5cff;
  --violet-hi: #a693ff;
  --cyan: #3dd9ff;
  --grad: linear-gradient(92deg, #a08bff 0%, #74a6ff 50%, #3dd9ff 100%);
  --grad-btn: linear-gradient(135deg, #7c5cff 0%, #5a7dff 55%, #3dc4ff 100%);
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --f: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fd: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fm: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1240px;
  --gut: 32px;
  --edge: max(var(--gut), calc((100vw - var(--wrap)) / 2));
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; background: var(--bg); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--f);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}
.page { overflow-x: clip; position: relative; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(124, 92, 255, 0.45); color: #fff; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--text); color: var(--bg); font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.i { flex: none; }
.nb { white-space: nowrap; }
.mono { font-family: var(--fm); font-feature-settings: "zero" 0; }

/* зерно поверх всего — плёнка «ночной съёмки» */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxNjAnIGhlaWdodD0nMTYwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nLjg1JyBudW1PY3RhdmVzPSczJyBzdGl0Y2hUaWxlcz0nc3RpdGNoJy8+PGZlQ29sb3JNYXRyaXggdmFsdWVzPScwIDAgMCAwIDEgIDAgMCAwIDAgMSAgMCAwIDAgMCAxICAwIDAgMCAxIDAnLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0nMTAwJScgaGVpZ2h0PScxMDAlJyBmaWx0ZXI9J3VybCgjbiknLz48L3N2Zz4=");
}

/* ---------- типографика ---------- */
.h-display {
  font: 600 clamp(40px, 4.75vw, 70px)/1 var(--fd);
  letter-spacing: -0.026em;
  text-wrap: balance;
}
.h2 {
  font: 600 clamp(32px, 3.5vw, 52px)/1.04 var(--fd);
  letter-spacing: -0.036em;
  text-wrap: balance;
}
.h2 .dim, .h-display .dim { color: #7a83ad; }
.h3 { font: 600 22px/1.2 var(--fd); letter-spacing: -0.022em; }
.lead { font-size: 19px; line-height: 1.58; color: var(--text-2); max-width: 56ch; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 12.5px/1 var(--fm); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2);
}
.kicker b { font-weight: 500; color: var(--violet-hi); }
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--grad); }

/* ---------- кнопки ---------- */
.btn {
  --h: 50px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 999px;
  font: 600 16px/1 var(--f); letter-spacing: -0.012em; white-space: nowrap;
  background: #eef1ff; color: #0a0f24;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 10px 30px -14px rgba(124, 92, 255, 0.9);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background 0.3s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 14px 36px -12px rgba(124, 92, 255, 1), 0 0 0 5px rgba(124, 92, 255, 0.16); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn--lg { --h: 56px; padding: 0 28px; font-size: 17px; }
.btn--sm { --h: 40px; padding: 0 16px; font-size: 14.5px; gap: 8px; }
.btn--ghost { background: rgba(255, 255, 255, 0.035); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px var(--line-3); }
.btn--glow { background: var(--grad-btn); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 12px 34px -12px rgba(124, 92, 255, 0.95); }
.link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.35s var(--ease-out), color 0.2s;
}
.link:hover { background-size: 100% 1px; }
.link .i { transition: transform 0.3s var(--ease-out); }
.link:hover .i { transform: translateX(3px); }
.link--ext:hover .i { transform: translate(2px, -2px); }

/* ---------- чипы и статус ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 9px; min-height: 34px; padding: 6px 15px 6px 12px; line-height: 1.25; border-radius: 999px;
  background: rgba(14, 20, 48, 0.55); box-shadow: inset 0 0 0 1px var(--line-2);
  font: 500 13.5px/1 var(--f); color: var(--text-2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.chip--new { padding: 0 14px 0 5px; color: var(--text); transition: box-shadow 0.3s, background 0.3s; }
.chip--new:hover { background: rgba(20, 27, 61, 0.75); box-shadow: inset 0 0 0 1px rgba(150, 130, 255, 0.5); }
.chip--new .i { color: var(--text-3); transition: transform 0.3s var(--ease-out); }
.chip--new:hover .i { transform: translateX(3px); color: var(--text); }
.chip__tag { height: 24px; padding: 0 9px; border-radius: 999px; background: var(--grad-btn); color: #fff; font: 500 11px/24px var(--fm); letter-spacing: 0.08em; text-transform: uppercase; box-shadow: 0 4px 14px -4px rgba(124, 92, 255, 0.9); }
.live { position: relative; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px rgba(61, 217, 255, 0.9); }
.live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(61, 217, 255, 0.55); animation: ping 2.6s var(--ease-out) infinite; }
.is-off .live { background: #6f78a3; box-shadow: none; }
.is-off .live::after { display: none; }
@keyframes ping { 0% { transform: scale(0.6); opacity: 1; } 80%, 100% { transform: scale(1.9); opacity: 0; } }

/* ==========================================================================
   Шапка и мобильная навигация
   ========================================================================== */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: 72px; transition: background 0.35s, box-shadow 0.35s, height 0.35s; }
.nav.is-scrolled {
  height: 64px; background: rgba(7, 11, 26, 0.74); box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
}
.nav__in { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 11px; font: 600 16px/1 var(--fd); letter-spacing: -0.015em; white-space: nowrap; }
.logo__mark { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; border: 1.5px solid transparent; background: linear-gradient(#0e1430, #0e1430) padding-box, linear-gradient(135deg, #a08bff, #3dd9ff) border-box; font: 600 12px/1 var(--fd); letter-spacing: 0.02em; color: #eef1ff; user-select: none; -webkit-user-select: none; }
.logo__mark--m { width: 42px; height: 42px; border-radius: 13px; font-size: 14px; }
/* значок не наследует общие правила для span в подписях и шапке чата */
span.logo__mark.logo__mark { display: inline-grid; place-items: center; margin: 0; gap: 0; color: #eef1ff; line-height: 1; font-size: 12px; }
span.logo__mark.logo__mark--m { font-size: 14px; }
span.logo__mark.logo__mark--l { font-size: 16px; }
.logo__mark--l { width: 48px; height: 48px; border-radius: 15px; font-size: 16px; }
.logo small { display: block; margin-top: 4px; font: 500 11px/1 var(--fm); letter-spacing: 0.06em; color: #a3abd3; text-transform: uppercase; text-shadow: 0 1px 10px rgba(7, 11, 26, 0.8); }
.nav__links { display: flex; gap: 2px; margin-left: auto; }
.nav__links a { white-space: nowrap; padding: 9px 13px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: rgba(238, 241, 255, 0.8); text-shadow: 0 1px 14px rgba(7, 11, 26, 0.7); transition: color 0.2s, background 0.2s; }
.nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav__links a.is-new { color: #cbc1ff; }
.nav__links a.is-new::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 7px 1px 0; border-radius: 50%; background: var(--grad); box-shadow: 0 0 8px rgba(124, 92, 255, 0.9); }
.nav__right { display: flex; align-items: center; gap: 16px; margin-left: 10px; }
.status { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 500; color: var(--text-3); white-space: nowrap; }
.nav__menu { display: none; }
.btn--live .live { position: absolute; top: 1px; right: 3px; width: 11px; height: 11px; border: 2.5px solid #eef1ff; box-shadow: 0 0 10px rgba(61, 217, 255, 0.9); }
.btn--live .live::after { display: none; }
.btn--live.is-off .live { display: none; }

.mbar {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60;
  display: none; gap: 8px; padding: 6px; border-radius: 24px;
  background: rgba(13, 18, 44, 0.8); box-shadow: 0 0 0 1px var(--line-2), 0 18px 40px -12px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  transition: transform 0.45s var(--ease-out), opacity 0.3s;
}
.mbar__menu { flex: none; width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line); }
.mbar__menu[aria-expanded="true"] { background: rgba(124, 92, 255, 0.22); }
.mbar .btn { flex: 1; --h: 54px; border-radius: 18px; font-size: 16px; }

.sheet { position: fixed; inset: 0; z-index: 55; visibility: hidden; }
.sheet__bg { position: absolute; inset: 0; background: rgba(3, 4, 12, 0.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.3s; }
.sheet__panel {
  position: absolute; left: 10px; right: 10px; bottom: calc(80px + env(safe-area-inset-bottom));
  padding: 10px; border-radius: 26px; background: #0d1331; box-shadow: 0 0 0 1px var(--line-2), 0 30px 60px -20px rgba(0, 0, 0, 0.9);
  transform: translateY(16px) scale(0.98); opacity: 0; transition: transform 0.4s var(--ease-out), opacity 0.25s;
  max-height: calc(100dvh - 120px); overflow: auto;
}
.sheet.is-open { visibility: visible; }
.sheet.is-open .sheet__bg { opacity: 1; }
.sheet.is-open .sheet__panel { transform: none; opacity: 1; }
.sheet__panel a { display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 0 16px; border-radius: 16px; font: 600 19px/1.2 var(--fd); letter-spacing: -0.02em; }
.sheet__panel a:hover, .sheet__panel a:active { background: rgba(255, 255, 255, 0.05); }
.sheet__panel a .i { color: var(--text-3); }
.sheet__panel a.is-new { margin-top: 6px; background: linear-gradient(135deg, rgba(124, 92, 255, 0.2), rgba(61, 217, 255, 0.08)); box-shadow: inset 0 0 0 1px rgba(150, 130, 255, 0.3); }
.sheet__panel a.is-new small { display: block; margin-top: 3px; font: 500 12px/1.2 var(--f); color: var(--text-2); letter-spacing: 0; }
.sheet__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 14px 16px 8px; font: 500 12.5px/1.3 var(--fm); color: var(--text-3); }

/* ==========================================================================
   Первый экран (главная)
   ========================================================================== */
.hero { position: relative; padding: 138px 0 0; isolation: isolate; }
.sky { position: absolute; left: 0; right: 0; top: 0; height: 1180px; z-index: -1; pointer-events: none; overflow: hidden; }
.sky__img {
  position: absolute; top: -110px; right: -9%; width: min(1760px, 124%); max-width: none; opacity: 0.92;
  -webkit-mask-image: radial-gradient(115% 92% at 66% 6%, #000 30%, rgba(0, 0, 0, 0.55) 52%, transparent 76%);
  mask-image: radial-gradient(115% 92% at 66% 6%, #000 30%, rgba(0, 0, 0, 0.55) 52%, transparent 76%);
  transform-origin: 72% 0;
  animation: sky 36s ease-in-out infinite alternate;
}
.sky__img--2 { opacity: 0.38; mix-blend-mode: screen; filter: hue-rotate(-24deg) saturate(1.2); animation: sky2 47s ease-in-out infinite alternate; }
.sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, transparent 52%, var(--bg) 96%); }
.sky::before { content: ""; position: absolute; left: -10%; top: 30%; width: 60%; height: 60%; background: radial-gradient(closest-side, rgba(124, 92, 255, 0.12), rgba(124, 92, 255, 0)); }
@keyframes sky { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-3.5%, 2.5%, 0) scale(1.08); } }
@keyframes sky2 { from { transform: translate3d(2%, -2%, 0) scale(1.1); } to { transform: translate3d(-3%, 3%, 0) scale(1.18); } }

.hero__copy { position: relative; z-index: 3; }
.hero__title { margin-top: 24px; max-width: 15.5em; }
.hero__sub { max-width: 600px; margin-top: 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; margin-top: 28px; font: 500 14px/1.2 var(--f); color: var(--text-3); white-space: nowrap; }
.hero__meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta li + li::before { content: ""; width: 1px; height: 14px; margin: 0 14px; background: var(--line-3); }
.hero__meta b { margin-left: 6px; font: 500 13.5px/1.2 var(--fm); letter-spacing: -0.02em; color: var(--text); }
.hero__meta a { display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); }
.hero__meta a:hover { color: var(--text); }

/* сцена: браузер + телефон + объекты */
.stage { position: relative; z-index: 2; height: 600px; margin-top: 40px; perspective: 2400px; perspective-origin: 50% 0; }
.stage__plane { position: absolute; inset: 0; transform: rotateX(var(--tilt, 0deg)); transform-origin: 50% 0; will-change: transform; }
.stage::after {
  content: ""; position: absolute; left: 0; right: 6%; bottom: -90px; height: 320px; z-index: -1;
  /* без filter: blur — в WebKit размытие псевдоэлемента рисуется чёрным прямоугольником в углу экрана */
  background: radial-gradient(50% 50% at 50% 50%, rgba(124, 92, 255, 0.24), rgba(110, 120, 255, 0.12) 35%, rgba(61, 217, 255, 0.05) 58%, transparent 74%);
}

.browser {
  position: absolute; left: 0; top: 0; width: 78%;
  border-radius: 18px; overflow: hidden; background: #0a0f23;
  box-shadow: 0 0 0 1px rgba(170, 182, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 70px 130px -50px rgba(0, 0, 0, 0.95), 0 40px 100px -50px rgba(124, 92, 255, 0.45);
}
.browser__bar {
  display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 16px;
  background: linear-gradient(180deg, rgba(30, 38, 82, 0.9), rgba(16, 22, 50, 0.95)); border-bottom: 1px solid var(--line);
}
.dots { display: flex; gap: 7px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(170, 182, 255, 0.24); }
.browser__url {
  display: flex; align-items: center; gap: 8px; height: 28px; min-width: 260px; margin: 0 auto; padding: 0 16px; justify-content: center;
  border-radius: 9px; background: rgba(4, 7, 20, 0.55); box-shadow: inset 0 0 0 1px var(--line);
  font: 500 12.5px/1 var(--fm); color: var(--text-2);
}
.browser__url .i { color: var(--cyan); }
.browser__cap { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.browser__cap b { color: var(--text); font-weight: 600; }
.browser__screen { position: relative; aspect-ratio: 16 / 10; background: #0b1024; }
.browser__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity 1.1s var(--ease); }
.browser__screen img.is-on { opacity: 1; }
.browser__screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7, 11, 26, 0.35)); pointer-events: none; }
.browser__bars { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; display: flex; gap: 6px; }
.browser__bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.22); overflow: hidden; }
.browser__bars i::after { content: ""; display: block; height: 100%; width: 0; background: #fff; }
.browser__bars i.is-done::after { width: 100%; }
.browser__bars i.is-on::after { animation: bar 5s linear forwards; }
@keyframes bar { to { width: 100%; } }

/* телефон */
.phone {
  position: absolute; right: 1.5%; top: -250px; width: 300px; height: 620px; z-index: 4;
  padding: 9px; border-radius: 52px;
  background: linear-gradient(155deg, #2a3366 0%, #0b0f22 32%, #070a17 70%, #1d2550 100%);
  box-shadow: 0 0 0 1px rgba(190, 200, 255, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 60px 110px -30px rgba(0, 0, 0, 0.95), 0 30px 90px -40px rgba(61, 217, 255, 0.4);
}
.phone::before { content: ""; position: absolute; right: -2px; top: 150px; width: 3px; height: 74px; border-radius: 2px; background: #1b2350; }
.phone__screen { position: relative; height: 100%; border-radius: 44px; overflow: hidden; background: #0a0f21; display: flex; flex-direction: column; }
.phone__island { position: absolute; top: 11px; left: 50%; width: 92px; height: 27px; margin-left: -46px; border-radius: 20px; background: #000; z-index: 5; }
.phone__status { display: flex; justify-content: space-between; align-items: center; height: 46px; padding: 6px 26px 0 30px; font: 600 13px/1 var(--f); color: var(--text); position: relative; z-index: 4; }
.phone__status span:last-child { display: flex; gap: 5px; align-items: center; }

/* чат мессенджера (Telegram / MAX) */
.tg { --out: linear-gradient(135deg, #6c50f6, #4f6dff); --out-shadow: rgba(108, 80, 246, 0.35); display: flex; flex-direction: column; flex: 1; min-height: 0; }
.tg.is-max { --out: linear-gradient(135deg, #3a8dff, #6f4bf3); --out-shadow: rgba(58, 141, 255, 0.35); }
.tg__top { display: flex; align-items: center; gap: 10px; padding: 4px 14px 10px; border-bottom: 1px solid var(--line); background: rgba(14, 20, 46, 0.92); position: relative; z-index: 3; }
.tg__back { color: var(--violet-hi); }
.tg.is-max .tg__back { color: #6fb6ff; }
.tg__ava { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #0a0f24; font: 700 14px/1 var(--fd); }
.tg__who { min-width: 0; flex: 1; }
.tg__who b { display: block; font: 600 14.5px/1.2 var(--f); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg__who small { display: block; margin-top: 2px; font-size: 12px; color: var(--text-3); }
.tg__app { display: grid; place-items: center; width: 26px; height: 26px; }
.tg__app .logo-max, .tg.is-max .tg__app .logo-tg { display: none; }
.tg.is-max .tg__app .logo-max { display: block; }
.tg .on-max { display: none; }
.tg.is-max .on-max { display: inline; }
.tg.is-max .on-tg { display: none; }
.tg__chat {
  position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; padding: 12px 11px 6px; overflow: hidden;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(124, 92, 255, 0.14), transparent 60%),
    radial-gradient(90% 50% at 0% 100%, rgba(61, 217, 255, 0.08), transparent 60%),
    #0a0f21;
}
.stage .tg__chat { justify-content: flex-start; padding-bottom: 12px; }
.tg__day { align-self: center; margin-bottom: 2px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); font-size: 11.5px; font-weight: 500; color: var(--text-2); }
.msg { position: relative; flex: none; max-width: 86%; padding: 8px 11px 7px; border-radius: 17px; font-size: 13.6px; line-height: 1.38; color: var(--text); }
.msg time { float: right; margin: 7px -2px -4px 10px; font: 500 10.5px/1 var(--f); color: rgba(238, 241, 255, 0.58); display: inline-flex; align-items: center; gap: 2px; }
.msg--out { align-self: flex-end; background: var(--out); border-bottom-right-radius: 6px; box-shadow: 0 8px 20px -12px var(--out-shadow); }
.msg--in { align-self: flex-start; background: #161d42; border-bottom-left-radius: 6px; box-shadow: inset 0 0 0 1px rgba(170, 182, 255, 0.08); }
.msg--ok { display: flex; gap: 8px; align-items: flex-start; }
.msg--ok .i { margin-top: 2px; color: var(--cyan); }
.msg b { font-weight: 600; }
.kb { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 5px; margin-top: 8px; }
.kb span { display: grid; place-items: center; min-height: 32px; padding: 0 6px; border-radius: 10px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); font: 600 12.5px/1.15 var(--f); text-align: center; transition: background 0.3s, color 0.3s, transform 0.3s; }
.kb span.is-pick.is-on { background: var(--grad); color: #0a0f24; transform: scale(1.03); }
.typing { align-self: flex-start; display: none; gap: 4px; padding: 12px 14px; border-radius: 17px; border-bottom-left-radius: 6px; background: #161d42; }
.typing.is-on { display: flex; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: typing 1.1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.45; } 30% { transform: translateY(-4px); opacity: 1; } }
.tg__input { display: flex; align-items: center; gap: 10px; height: 40px; margin: 8px 10px 16px; padding: 0 8px 0 14px; border-radius: 20px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-3); font-size: 13.5px; }
.tg__input span { flex: 1; }
.tg__send { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--out); color: #fff; }
.card-goods { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.card-goods span { display: block; padding: 6px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); font-size: 12px; line-height: 1.25; }
.card-goods i { display: block; height: 56px; margin-bottom: 6px; border-radius: 8px; background: radial-gradient(circle at 30% 30%, #b9a8ff, #5b43d6 55%, #22185e); }
.card-goods span + span i { background: radial-gradient(circle at 60% 35%, #9ff0ff, #2d8fd0 55%, #13244f); }
.card-goods em { font-style: normal; display: block; margin-top: 2px; font: 600 12px/1 var(--fm); color: var(--text); }
.inv { display: block; margin-top: 6px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); font-size: 12.5px; }
.inv__r { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; color: var(--text-2); }
.inv__r em { font-style: normal; font-family: var(--fm); color: var(--text); }
.inv .tot { margin-top: 4px; padding-top: 7px; border-top: 1px dashed var(--line-2); color: var(--text); font-weight: 600; }

/* JS-режим чата: сообщения появляются по шагам */
.js .tg [data-step]:not(.typing) { display: none; }
.js .tg [data-step].is-on:not(.typing) { display: block; animation: msgIn 0.5s var(--ease-out) both; }
.js .tg .msg--ok[data-step].is-on { display: flex; }
.js .tg .kb [data-step] { display: grid; }
.js .tg .kb [data-step].is-on { animation: none; display: grid; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }

/* уведомление владельцу */
.push {
  position: absolute; z-index: 5; display: flex; align-items: center; gap: 12px; width: 318px; padding: 13px 16px 13px 13px; border-radius: 20px;
  background: rgba(20, 26, 60, 0.72); box-shadow: 0 0 0 1px rgba(190, 200, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 30px 60px -20px rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
}
.push__ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--grad-btn); color: #fff; box-shadow: 0 6px 18px -6px rgba(124, 92, 255, 0.9); }
.push__t { min-width: 0; font-size: 13px; line-height: 1.35; color: var(--text-2); }
.push__t b { display: block; font-size: 14px; color: var(--text); }
.push__t small { display: block; margin-bottom: 2px; font: 500 10.5px/1 var(--fm); letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); }
.js .push[data-step] { opacity: 0; transform: translateY(10px) scale(0.96); transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out); }
.js .push[data-step].is-on { opacity: 1; transform: none; }
.stage .push { left: 46.5%; top: -196px; }

.stage__cap { position: absolute; right: 1.5%; width: 300px; top: 388px; z-index: 4; text-align: right; padding-right: 8px; font: 500 12.5px/1.3 var(--fm); color: var(--text-3); }
.stage__cap b { color: var(--text-2); font-weight: 500; }

/* объёмные 3D-объекты одной серии */
.obj { position: absolute; z-index: 3; pointer-events: none; transform: translate3d(calc(var(--px, 0) * var(--d, 10px)), calc(var(--py, 0) * var(--d, 10px)), 0); transition: transform 0.6s var(--ease-out); }
.obj img { width: 100%; height: auto; animation: float 9s ease-in-out infinite; }
.obj::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: -10%; height: 22%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.6), transparent); }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-14px) rotate(calc(var(--r, 0deg) + 3deg)); } }
.stage .obj--chat { width: 190px; right: -6%; top: -300px; --r: 6deg; --d: 18px; z-index: 5; }
.stage .obj--cart { width: 150px; left: -5%; top: 330px; --r: -8deg; --d: 14px; }
.stage .obj--gear { width: 120px; left: 61%; top: -130px; --r: 12deg; --d: 6px; z-index: 1; }
.stage .obj--gear img { animation-duration: 12s; }

/* факты-счётчики */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 120px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { position: relative; padding: 34px 28px 32px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact:first-child { padding-left: 0; }
.fact__n { display: flex; align-items: baseline; gap: 8px; font: 500 clamp(36px, 3.6vw, 52px)/1 var(--fm); letter-spacing: -0.05em; color: var(--text); font-variant-numeric: tabular-nums; }
.fact__n small { font: 500 15px/1 var(--fm); letter-spacing: 0; color: var(--text-3); }
.fact__n .i { align-self: center; color: var(--cyan); }
.fact__l { margin-top: 14px; font-size: 15px; line-height: 1.45; color: var(--text-2); }
.fact a.fact__l { display: inline-flex; gap: 6px; align-items: center; border-bottom: 1px solid var(--line-2); }
.fact a.fact__l:hover { color: var(--text); }

/* ==========================================================================
   Общие секции
   ========================================================================== */
.sec { position: relative; padding: 124px 0; }
.sec--tight { padding: 110px 0; }
.sec--glow::before { content: ""; position: absolute; left: 50%; top: -60px; width: 1200px; height: 560px; margin-left: -600px; z-index: -1; pointer-events: none; background: radial-gradient(50% 50% at 50% 50%, rgba(124, 92, 255, 0.1), rgba(61, 217, 255, 0.03) 50%, transparent 72%); }
.sec__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); align-items: end; gap: 24px 64px; margin-bottom: 52px; }
.sec__head .kicker { grid-column: 1 / -1; }
.sec__head .h2 { max-width: 20em; }
.sec__aside { max-width: 360px; font-size: 15.5px; line-height: 1.55; color: var(--text-2); }

/* ---------- работы: лента в рамках браузера ---------- */
.works__tools { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(14, 20, 48, 0.6); box-shadow: inset 0 0 0 1px var(--line); }
.filters button { height: 36px; padding: 0 15px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text-2); display: inline-flex; align-items: center; gap: 8px; transition: color 0.2s, background 0.25s, box-shadow 0.25s; }
.filters button:hover { color: var(--text); }
.filters button[aria-pressed="true"] { color: #0a0f24; background: #eef1ff; }
.filters button span { font: 500 11.5px/1 var(--fm); opacity: 0.7; }
.arrows { display: flex; gap: 8px; }
.arrow { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); transition: background 0.2s, box-shadow 0.2s, opacity 0.2s; }
.arrow:hover { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line-3); }
.arrow:disabled { opacity: 0.35; cursor: default; }

.rail { position: relative; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-left: var(--edge); scrollbar-width: none; overscroll-behavior-x: contain; padding: 14px 0 34px; cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.rail.is-drag a { pointer-events: none; }
.rail__track { display: flex; gap: 28px; width: max-content; padding: 0 var(--edge); }
.work { width: 620px; flex: none; scroll-snap-align: start; }
.work[hidden] { display: none; }
.work__frame { position: relative; display: block; border-radius: 16px; overflow: hidden; background: #0a0f23; box-shadow: 0 0 0 1px var(--line-2), 0 40px 80px -46px rgba(0, 0, 0, 0.95); transition: transform 0.55s var(--ease-out), box-shadow 0.55s var(--ease-out); }
.work__frame:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(150, 130, 255, 0.55), 0 50px 90px -40px rgba(124, 92, 255, 0.5); }
.work__bar { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(30, 38, 82, 0.85), rgba(16, 22, 50, 0.95)); }
.work__bar .dots i { width: 8px; height: 8px; }
.work__url { display: flex; align-items: center; gap: 6px; margin: 0 auto; padding: 0 12px; height: 22px; border-radius: 7px; background: rgba(4, 7, 20, 0.5); font: 500 11.5px/1 var(--fm); color: var(--text-2); }
.work__url .i { color: var(--cyan); }
.work__go { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; color: var(--text-3); transition: color 0.2s, background 0.2s; }
.work__frame:hover .work__go { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.work__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: #0b1024; }
.work__meta { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 4px 16px; padding: 20px 4px 0; }
.work__n { font: 500 12px/1.9 var(--fm); color: var(--text-3); }
.work__meta h3 { font: 600 21px/1.25 var(--fd); letter-spacing: -0.022em; }
.work__meta p { grid-column: 2; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.work__tag { grid-row: 1; grid-column: 3; align-self: center; padding: 6px 10px; border-radius: 999px; font: 500 11.5px/1 var(--fm); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap; }

.work--bot .work__frame { aspect-ratio: auto; }
.botcover { position: relative; aspect-ratio: 16 / 10; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 10px; padding: 34px; overflow: hidden;
  background: radial-gradient(80% 90% at 85% 30%, rgba(124, 92, 255, 0.35), transparent 60%), radial-gradient(60% 70% at 0% 100%, rgba(61, 217, 255, 0.16), transparent 60%), #0b1026; }
.botcover__t { display: block; font: 600 30px/1.08 var(--fd); letter-spacing: -0.03em; }
.botcover small { display: block; margin-top: 14px; font: 400 14px/1.5 var(--f); color: var(--text-2); letter-spacing: 0; }
.botcover img { width: 100%; max-width: 250px; justify-self: center; }

.rail__foot { display: flex; align-items: center; gap: 22px; margin-top: 6px; }
.progress { position: relative; flex: 1; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.progress i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 20%); transform: translateX(calc(var(--x, 0) * 1%)); background: var(--grad); border-radius: 2px; }
.rail__count { font: 500 13px/1 var(--fm); color: var(--text-3); font-variant-numeric: tabular-nums; }
.rail__count b { color: var(--text); font-weight: 500; }
.rail__hint { font-size: 13.5px; color: var(--text-3); }

/* ---------- услуги: бенто ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative; grid-column: span 4; min-height: 470px; padding: 30px; border-radius: var(--r-lg); overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(22, 29, 66, 0.92) 0%, rgba(11, 16, 38, 0.96) 100%);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 60px -40px rgba(0, 0, 0, 0.9);
}
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(560px circle at var(--mx, 70%) var(--my, -20%), rgba(124, 92, 255, 0.18), transparent 46%); opacity: 0; transition: opacity 0.5s; }
.tile::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 70%) var(--my, -20%), rgba(170, 150, 255, 0.9), rgba(61, 217, 255, 0.35) 34%, transparent 62%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.5s;
}
.tile:hover::before, .tile:hover::after { opacity: 1; }
.tile__obj { position: relative; z-index: 0; align-self: flex-end; width: 176px; margin: -14px -12px 10px auto; transition: transform 0.9s var(--ease-out); pointer-events: none; }
.tile__obj img { width: 100%; }
.tile:hover .tile__obj { transform: translateY(-10px) rotate(-4deg) scale(1.04); }
.tile__n { position: absolute; top: 30px; left: 30px; font: 500 12.5px/1 var(--fm); letter-spacing: 0.1em; color: var(--text-3); }
.tile__body { margin-top: auto; }
.tile h3 { font: 600 27px/1.1 var(--fd); letter-spacing: -0.03em; max-width: 15ch; }
.tile__text { margin-top: 12px; max-width: 40ch; font-size: 15.5px; line-height: 1.55; color: var(--text-2); }
.tile__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tile__tags li { padding: 6px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--text-2); background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line); }
.price { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.price__v { display: inline-flex; align-items: baseline; gap: 7px; font: 500 29px/1 var(--fm); letter-spacing: -0.05em; color: var(--text); white-space: nowrap; }
.price__v small { font: 500 13px/1 var(--f); letter-spacing: 0; color: var(--text-3); }
.term { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border-radius: 999px; font: 500 12.5px/1 var(--fm); color: var(--text-2); background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.term .i { color: var(--violet-hi); }
.tile__links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: 14.5px; }
.tile__links .link { color: var(--text-2); }
.tile__links .link:hover { color: var(--text); }
.tile__links .link--main { color: var(--text); }

.tile--site { grid-column: span 7; min-height: 470px; }
.tile--site .tile__obj { position: absolute; z-index: -1; width: 292px; right: -22px; top: 44px; margin: 0; }
.tile--bot { grid-column: span 5; min-height: 470px; }
.tile--bot .tile__obj { width: 212px; margin-bottom: -20px; }
.tile--care { grid-column: span 12; min-height: 0; display: grid; grid-template-columns: 220px minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 40px; padding: 30px 40px 30px 30px; }
.tile--care .tile__obj { position: relative; width: 200px; z-index: 1; margin: -10px 0; align-self: center; }
.tile--care h3 { max-width: none; }
.tile--care .tile__n { position: static; }
.tile--care .price { margin-top: 18px; }
.checks { display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: var(--text-2); }
.checks .i { margin-top: 2px; color: var(--cyan); }
.prices { margin-top: 20px; border-top: 1px solid var(--line); }
.prices div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.prices dt { font-size: 15px; color: var(--text-2); }
.prices dd { margin: 0; font: 500 19px/1 var(--fm); letter-spacing: -0.04em; white-space: nowrap; }
.prices dd small { font: 500 12px/1 var(--f); letter-spacing: 0; color: var(--text-3); margin-right: 5px; }
.tile--site .tile__body { max-width: 410px; }
.logos { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 14px; padding: 6px 10px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 500; color: var(--text-2); }
.more-line { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 16px; padding: 22px 26px; border-radius: var(--r-lg); background: rgba(14, 20, 48, 0.45); box-shadow: inset 0 0 0 1px var(--line); }
.more-line p { font-size: 16px; color: var(--text-2); }
.more-line p b { color: var(--text); font-weight: 600; }

/* ---------- как работаю: шкала запуска ---------- */
.process__top { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px 64px; align-items: end; margin-bottom: 64px; }
.bigfig { display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px; border-radius: var(--r-md); background: rgba(14, 20, 48, 0.5); box-shadow: inset 0 0 0 1px var(--line); }
.bigfig b { font: 500 46px/0.9 var(--fm); letter-spacing: -0.06em; white-space: nowrap; }
.bigfig p { font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.bigfig p strong { color: var(--text); font-weight: 600; }
.steps { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 26px; --p: 0; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; top: 47px; height: 1px; }
.steps::before { right: 0; background: var(--line-2); }
.steps::after { width: calc(var(--p) * 100%); background: var(--grad); box-shadow: 0 0 14px rgba(124, 92, 255, 0.9); transition: width 0.25s linear; }
.step__when { height: 30px; font: 500 12px/1.2 var(--fm); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.step__dot { display: block; position: relative; z-index: 1; width: 13px; height: 13px; margin: 11px 0 28px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line-3); transition: background 0.4s, box-shadow 0.4s; }
.step.is-on .step__dot { background: var(--cyan); box-shadow: 0 0 0 5px rgba(61, 217, 255, 0.14), 0 0 18px rgba(61, 217, 255, 0.9); }
.step.is-on .step__when { color: var(--text-2); }
.step h3 { font: 600 19px/1.25 var(--fd); letter-spacing: -0.02em; }
.step p { margin-top: 10px; font-size: 14.5px; line-height: 1.55; color: var(--text-2); }
.step__get { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: 13.5px; line-height: 1.4; color: var(--text); }
.step__get .i { margin-top: 1px; color: var(--violet-hi); }

/* ---------- обо мне ---------- */
.about { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 80px; align-items: start; }
.portrait { position: sticky; top: 100px; margin: 0; }
.portrait__img { position: relative; overflow: hidden; border-radius: var(--r-xl); aspect-ratio: 4 / 5; background: #0b1024; box-shadow: 0 0 0 1px var(--line-2), 0 50px 100px -50px rgba(0, 0, 0, 0.95); }
.portrait__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.08) brightness(0.92); }
.portrait__img::before { content: ""; position: absolute; inset: 0; z-index: 1; background: #1c2a7a; mix-blend-mode: color; opacity: 0.5; }
.portrait__img::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(255deg, rgba(61, 217, 255, 0.36) 0%, transparent 34%), linear-gradient(150deg, rgba(124, 92, 255, 0.4) 0%, transparent 40%), linear-gradient(0deg, rgba(7, 11, 26, 0.8) 0%, transparent 38%); mix-blend-mode: screen; }
.portrait__img .shade { position: absolute; inset: 0; z-index: 3; background: linear-gradient(0deg, rgba(7, 11, 26, 0.85), transparent 35%); }
/* иллюстрация вместо фото: без тонировки. Для своего фото уберите у <figure> класс portrait--art — фото станет «ночным» */
.portrait--art .portrait__img img { filter: none; object-position: 50% 50%; }
.portrait--art .portrait__img::before, .portrait--art .portrait__img::after { display: none; }
.portrait figcaption { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 18px; background: rgba(12, 17, 42, 0.6); box-shadow: inset 0 0 0 1px var(--line-2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.portrait figcaption b { display: block; font: 600 16px/1.2 var(--fd); }
.portrait figcaption small { display: block; margin-top: 3px; font-size: 13px; color: var(--text-2); }
.about__text { padding-top: 6px; }
.about__text .h2 { margin-top: 20px; }
.about__p { margin-top: 26px; display: grid; gap: 18px; max-width: 62ch; font-size: 17.5px; line-height: 1.65; color: var(--text-2); }
.about__p strong { color: var(--text); font-weight: 600; }
.quote { position: relative; margin-top: 34px; padding: 26px 28px; border-radius: var(--r-lg); background: linear-gradient(135deg, rgba(124, 92, 255, 0.16), rgba(61, 217, 255, 0.06)); box-shadow: inset 0 0 0 1px rgba(150, 130, 255, 0.25); }
.quote p { font: 600 22px/1.3 var(--fd); letter-spacing: -0.02em; }
.quote small { display: block; margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.manifest { margin-top: 34px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.manifest li { display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.5; color: var(--text); }
.manifest li span { font: 500 12.5px/1.9 var(--fm); color: var(--text-3); }
.about__note { margin-top: 22px; font-size: 14.5px; line-height: 1.55; color: var(--text-3); }
.about__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ==========================================================================
   Тёмная вставка «Новое: разбор сайта за 24 часа»
   ========================================================================== */
.dark-wrap { position: relative; padding-top: 70px; background: linear-gradient(180deg, var(--bg) 0, var(--void) 140px); }
.audit { --open: 0; position: relative; padding: 120px 0 150px; background: var(--void); color: #e7e9f7; isolation: isolate; overflow: hidden; }
.audit::before { content: ""; position: absolute; left: 50%; top: 50%; width: 1500px; height: 900px; margin: -450px 0 0 -750px; z-index: -1; pointer-events: none;
  background: radial-gradient(38% 46% at 72% 50%, rgba(124, 92, 255, 0.26), transparent 70%), radial-gradient(30% 36% at 82% 62%, rgba(61, 217, 255, 0.14), transparent 70%);
  opacity: calc(0.45 + var(--open) * 0.55); }
.audit::after { content: ""; position: absolute; inset: auto 0 0; height: 220px; z-index: -1; background: linear-gradient(0deg, var(--bg), rgba(3, 4, 12, 0)); pointer-events: none; }
.audit__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 64px; align-items: center; }
.audit__box { max-width: 580px; }
.audit__label { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--fm); letter-spacing: 0.2em; text-transform: uppercase; color: #9aa0c4; }
.audit__label .i { color: var(--cyan); }
.audit__title { margin-top: 24px; font: 500 clamp(52px, 6.2vw, 92px)/0.95 var(--fd); letter-spacing: 0.005em; text-transform: uppercase; }
.audit__title span { display: block; background: linear-gradient(180deg, #ffffff 10%, #b9b2ff 60%, #6f7bd8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.audit__lead { margin-top: 28px; font-size: 18.5px; line-height: 1.6; color: #b4b8d6; max-width: 34em; }
.audit__list { margin-top: 34px; display: grid; gap: 2px; border-radius: 22px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(160, 150, 255, 0.16); background: rgba(10, 10, 30, 0.5); }
.audit__list li { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px; padding: 16px 18px; background: rgba(255, 255, 255, 0.015); }
.audit__list li + li { box-shadow: 0 -1px 0 rgba(160, 150, 255, 0.1); }
.audit__list .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(61, 217, 255, 0.1); color: #8fe6ff; box-shadow: inset 0 0 0 1px rgba(61, 217, 255, 0.22); }
.audit__list b { display: block; font: 600 16.5px/1.25 var(--fd); color: #f1f2ff; }
.audit__list span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.45; color: #9ea3c6; }
.audit__list em { font-style: normal; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #8a90b8; white-space: nowrap; }
.audit__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 34px; }
.btn--bright { background: linear-gradient(180deg, #f4f2ff, #cfc8ff); color: #0b0a24; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4) inset, 0 0 40px -6px rgba(140, 115, 255, 0.85), 0 14px 40px -14px rgba(61, 217, 255, 0.6); }
.btn--bright:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5) inset, 0 0 60px -4px rgba(140, 115, 255, 1), 0 14px 40px -10px rgba(61, 217, 255, 0.8); }
.audit__note { font-size: 13.5px; color: #8d93b8; }
/* карточка разбора */
.scan { margin: 0; border-radius: 22px; overflow: hidden; background: #0b1023; box-shadow: 0 0 0 1px var(--line-2), 0 50px 100px -40px rgba(0, 0, 0, 0.95), 0 30px 90px -50px rgba(124, 92, 255, 0.6); }
.scan__bar { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(30, 38, 82, 0.85), rgba(16, 22, 50, 0.95)); }
.scan__bar .dots i { width: 9px; height: 9px; }
.scan__url { display: flex; align-items: center; gap: 6px; margin: 0 auto; padding: 0 12px; height: 24px; border-radius: 7px; background: rgba(4, 7, 20, 0.5); font-size: 12px; color: var(--text-2); }
.scan__url .i { color: var(--cyan); }
.scan__tag { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.scan__body { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 22px; align-items: center; padding: 24px 22px 18px; }
.gauge { position: relative; display: grid; justify-items: center; }
.gauge svg { display: block; }
.gauge__arc { transition: stroke-dashoffset 0.25s linear; }
.gauge__n { position: absolute; top: 47px; left: 0; right: 0; text-align: center; font-size: 40px; line-height: 1; color: #f1f2ff; font-variant-numeric: tabular-nums; }
.gauge__l { margin-top: 10px; text-align: center; font-size: 12.5px; line-height: 1.35; color: var(--text-3); }
.finds { display: grid; gap: 10px; }
.finds li { position: relative; padding: 11px 12px 11px 30px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line); }
.finds li::before { content: ""; position: absolute; left: 12px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: #ffb547; box-shadow: 0 0 10px rgba(255, 181, 71, 0.7); }
.finds li.is-bad::before { background: #ff6b81; box-shadow: 0 0 10px rgba(255, 107, 129, 0.7); }
.finds b { display: block; font: 600 14.5px/1.3 var(--f); color: #f1f2ff; }
.finds span { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; color: var(--text-2); }
.finds em { display: block; margin-top: 6px; font-style: normal; font-size: 12px; color: var(--cyan); }
.scan__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.scan__foot b { font-size: 17px; font-weight: 500; color: #f1f2ff; }
@media (max-width: 1100px) { .audit__in { grid-template-columns: minmax(0, 1fr); gap: 48px; } .scan { max-width: 560px; } }

/* ==========================================================================
   Просмотр работы целиком
   ========================================================================== */
.viewer { width: min(1180px, 94vw); max-width: none; height: min(92vh, 1100px); max-height: none; margin: auto; padding: 0; border: 0; background: transparent; overflow: visible; color: var(--text); }
.viewer.is-phone { width: min(430px, 94vw); }
.viewer::backdrop { background: rgba(3, 4, 12, 0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.vw-box { display: flex; flex-direction: column; height: 100%; border-radius: 18px; overflow: hidden; background: #0a0f23; box-shadow: 0 0 0 1px var(--line-2), 0 60px 120px -40px rgba(0, 0, 0, 0.95), 0 30px 90px -50px rgba(124, 92, 255, 0.6); }
.vw-bar { flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; height: 50px; padding: 0 4px 0 16px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(30, 38, 82, 0.95), rgba(16, 22, 50, 1)); }
.vw-url { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 0 14px; height: 26px; border-radius: 8px; background: rgba(4, 7, 20, 0.55); font: 500 12.5px/1 var(--fm); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vw-url .i { color: var(--cyan); flex: none; }
.vw-x { justify-self: end; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--text); transition: background 0.2s; }
.vw-x:hover { background: rgba(255, 255, 255, 0.08); }
.vw-x:focus-visible { outline-offset: -4px; }
.vw-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; background: #0b1024; }
.vw-scroll img { width: 100%; height: auto; }

/* ---------- вопросы ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 90px; align-items: start; }
.faq__side { position: sticky; top: 108px; }
.faq__side .h2 { margin-top: 20px; }
.faq__side .lead { margin-top: 20px; font-size: 17px; }
.ask { display: grid; grid-template-columns: 48px 1fr; gap: 14px; margin-top: 34px; padding: 20px; border-radius: var(--r-md); background: rgba(14, 20, 48, 0.55); box-shadow: inset 0 0 0 1px var(--line); }
.ask b { display: block; font: 600 16px/1.3 var(--fd); }
.ask p { margin-top: 6px; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.ask .btn { margin-top: 14px; }
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; cursor: pointer; list-style: none; font: 600 20px/1.35 var(--fd); letter-spacing: -0.018em; transition: color 0.2s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: #fff; }
.qa__ic { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-2); transition: transform 0.4s var(--ease-out), background 0.3s, color 0.3s; }
.qa details[open] .qa__ic { transform: rotate(45deg); background: rgba(124, 92, 255, 0.2); color: var(--text); box-shadow: inset 0 0 0 1px rgba(150, 130, 255, 0.4); }
.qa__a { padding: 0 70px 28px 0; font-size: 16.5px; line-height: 1.68; color: var(--text-2); }
.qa__a a { color: var(--text); border-bottom: 1px solid var(--line-3); }
.qa details[open] .qa__a { animation: qaIn 0.5s var(--ease-out); }
@keyframes qaIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- связь: конструктор сообщения ---------- */
.contact { position: relative; overflow: hidden; isolation: isolate; }
.contact::before { content: ""; position: absolute; left: 50%; top: 0; width: 1400px; height: 700px; margin-left: -700px; z-index: -1; background: radial-gradient(50% 50% at 50% 40%, rgba(124, 92, 255, 0.18), transparent 70%); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 72px; align-items: start; }
.contact .h2 { margin-top: 20px; }
.contact .lead { margin-top: 20px; }
.form { margin-top: 36px; display: grid; gap: 26px; }
.form__label { display: block; margin-bottom: 12px; font: 500 12.5px/1 var(--fm); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; }
.pills button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--text-2); background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line-2); transition: color 0.2s, background 0.25s, box-shadow 0.25s; }
.pills button:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-3); }
.pills button[aria-pressed="true"] { color: var(--text); background: rgba(124, 92, 255, 0.2); box-shadow: inset 0 0 0 1px rgba(150, 130, 255, 0.6); }
.pills button[aria-pressed="true"]::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.field { width: 100%; min-height: 54px; padding: 15px 18px; border: 0; border-radius: 16px; background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); font: 400 16px/1.5 var(--f); resize: vertical; transition: box-shadow 0.2s, background 0.2s; }
.field::placeholder { color: #737ca6; }
.field:focus { outline: none; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(150, 130, 255, 0.8), 0 0 0 4px rgba(124, 92, 255, 0.16); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form__go { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form__note { font-size: 13.5px; line-height: 1.5; color: var(--text-3); max-width: 44ch; }

.preview { --out: linear-gradient(135deg, #6c50f6, #4f6dff); --out-shadow: rgba(108, 80, 246, 0.35); position: relative; border-radius: 28px; overflow: hidden; background: #0b1023; box-shadow: 0 0 0 1px var(--line-2), 0 40px 90px -40px rgba(0, 0, 0, 0.9), 0 30px 80px -50px rgba(124, 92, 255, 0.5); }
.preview__top { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: rgba(20, 27, 61, 0.85); }
.preview__top b { display: block; font: 600 15.5px/1.2 var(--f); }
.preview__top span { display: flex; align-items: center; gap: 7px; margin-top: 3px; font-size: 12.5px; color: var(--text-3); }
.preview__chat { display: flex; flex-direction: column; gap: 10px; min-height: 250px; padding: 20px 16px 22px; background: radial-gradient(100% 60% at 100% 0%, rgba(124, 92, 255, 0.12), transparent 60%), #0a0f21; }
.preview .msg { font-size: 14.5px; max-width: 90%; }
.preview .msg--out { white-space: pre-line; }
.preview__hint { align-self: flex-end; font: 500 11.5px/1 var(--fm); color: var(--text-3); }
.handle { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 18px 20px; border-radius: 20px; background: rgba(14, 20, 48, 0.55); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.3s, background 0.3s; }
.handle:hover { background: rgba(20, 27, 61, 0.7); box-shadow: inset 0 0 0 1px var(--line-3); }
.handle small { display: block; font-size: 13px; color: var(--text-3); }
.handle b { display: block; margin-top: 4px; font: 500 22px/1 var(--fm); letter-spacing: -0.03em; }
.alt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.alt a { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; border-radius: 16px; background: rgba(14, 20, 48, 0.55); box-shadow: inset 0 0 0 1px var(--line); font: 500 14px/1.2 var(--fm); color: var(--text-2); overflow: hidden; transition: box-shadow 0.3s, color 0.2s; }
.alt a:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-3); }
.alt a .i { flex: none; color: var(--cyan); }
.alt a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- подвал ---------- */
.foot { position: relative; padding: 90px 0 40px; border-top: 1px solid var(--line); overflow: hidden; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot__about p { margin-top: 18px; max-width: 34ch; font-size: 14.5px; line-height: 1.6; color: var(--text-2); }
.foot h4 { font: 500 12px/1 var(--fm); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.foot ul { margin-top: 18px; display: grid; gap: 10px; }
.foot ul a { font-size: 14.5px; color: var(--text-2); transition: color 0.2s; }
.foot ul a:hover { color: var(--text); }
.foot__word { margin-top: 70px; font: 600 clamp(96px, 25vw, 372px)/0.78 var(--fd); letter-spacing: -0.06em; white-space: nowrap; text-align: center;
  background: linear-gradient(180deg, rgba(238, 241, 255, 0.16), rgba(238, 241, 255, 0.02) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 34px; font-size: 13px; color: var(--text-3); }

/* ---------- появление при прокрутке ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Посадочная «Разработка Telegram-ботов»
   ========================================================================== */
.lhero { position: relative; padding: 132px 0 70px; isolation: isolate; }
.lhero .sky { height: 1000px; }
.lhero .sky__img { right: -20%; top: -140px; width: min(1700px, 120%); }
.lhero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 56px; align-items: start; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-3); }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--text); }
.lhero .chip { margin-top: 26px; }
.lhero__title { margin-top: 24px; font: 600 clamp(44px, 6vw, 92px)/0.95 var(--fd); letter-spacing: -0.045em; }
.lhero__title span { display: block; }
.lhero .lead { margin-top: 28px; }
.pricebar { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 34px; padding: 18px 26px 18px 22px; border-radius: 22px; background: rgba(14, 20, 48, 0.55); box-shadow: inset 0 0 0 1px var(--line-2); max-width: 680px; }
.pricebar__v { font: 500 40px/1 var(--fm); letter-spacing: -0.06em; }
.pricebar__v small { font: 500 15px/1 var(--f); letter-spacing: 0; color: var(--text-3); margin-right: 6px; }
.pricebar p { font-size: 14.5px; line-height: 1.45; color: var(--text-2); }
.pricebar p b { display: block; color: var(--text); font-weight: 600; }
.lhero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.lhero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font: 500 13px/1.3 var(--fm); color: var(--text-3); }
.lhero__trust span { display: inline-flex; align-items: center; gap: 7px; }
.lhero__trust .i { color: var(--cyan); }

.demo { position: relative; padding-top: 4px; }
.demo__tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(14, 20, 48, 0.7); box-shadow: inset 0 0 0 1px var(--line-2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.demo__tabs button { flex: 1; height: 40px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-2); transition: color 0.2s, background 0.25s; white-space: nowrap; }
.demo__tabs button:hover { color: var(--text); }
.demo__tabs button[aria-selected="true"] { color: #0a0f24; background: #eef1ff; }
.demo__skin { display: flex; justify-content: flex-end; gap: 6px; margin-top: 12px; }
.demo__skin button { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 10px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: rgba(238, 241, 255, 0.82); background: rgba(10, 15, 36, 0.55); box-shadow: inset 0 0 0 1px var(--line-2); transition: background 0.25s, color 0.2s, box-shadow 0.25s; }
.demo__skin button[aria-pressed="true"] { color: var(--text); background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px var(--line-3); }
.demo__stage { position: relative; height: 640px; margin-top: 22px; }
.demo .phone { position: relative; top: 0; right: auto; margin: 0 0 0 auto; width: 310px; height: 630px; }
.demo .push { left: -150px; top: 345px; width: 290px; }
.demo .obj--chat { width: 150px; right: -78px; top: 360px; --r: -8deg; z-index: 6; }
.demo .obj--plane { width: 190px; left: -130px; top: 420px; --r: -6deg; }
.demo__cap { margin-top: 14px; text-align: right; font: 500 12.5px/1.4 var(--fm); color: var(--text-3); }
.scene[hidden] { display: none !important; }
html:not(.js) .demo .push:not([data-push="lead"]) { display: none; }

.why { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.why .tile, .types .type:nth-child(-n+2) { display: grid; grid-template-columns: minmax(0, 1fr) 190px; align-items: end; gap: 0 18px; }
.why .tile { grid-column: span 6; min-height: 300px; }
.why .tile h3 { max-width: 16ch; }
.why .tile__obj, .types .type:nth-child(-n+2) .tile__obj { grid-column: 2; grid-row: 1; align-self: start; width: 190px; margin: -4px -12px 0 0; }
.why .tile__body, .types .type:nth-child(-n+2) .tile__body { grid-column: 1; grid-row: 1; padding-top: 48px; }
.incl { grid-column: span 12; display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 30px 56px; padding: 36px; border-radius: var(--r-lg); background: linear-gradient(135deg, rgba(124, 92, 255, 0.14), rgba(61, 217, 255, 0.05) 60%), rgba(11, 16, 38, 0.9); box-shadow: inset 0 0 0 1px rgba(150, 130, 255, 0.22); }
.incl h3 { font: 600 28px/1.1 var(--fd); letter-spacing: -0.03em; }
.incl > div > p { margin-top: 14px; font-size: 15.5px; line-height: 1.55; color: var(--text-2); }
.incl ul { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 30px; align-content: start; }
.incl li { display: flex; gap: 10px; font-size: 15.5px; line-height: 1.45; color: var(--text); }
.incl li .i { margin-top: 3px; color: var(--cyan); }

.types { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.type { grid-column: span 2; min-height: 360px; }
.type:nth-child(1), .type:nth-child(2) { grid-column: span 3; }
.type .tile__obj { width: 160px; }
.type--max .maxbig { position: absolute; right: 26px; top: 26px; z-index: -1; width: 120px; height: 120px; border-radius: 34px; box-shadow: 0 24px 50px -16px rgba(91, 91, 246, 0.75); }
.type .price { margin-top: 18px; }

.builder { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-2); background: rgba(11, 16, 38, 0.92); }
.builder__l { padding: 34px; }
.builder__l h3 { font: 600 28px/1.1 var(--fd); letter-spacing: -0.03em; }
.builder__l > p { margin-top: 10px; font-size: 15.5px; color: var(--text-2); }
.opts { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 16px; border-radius: 16px; cursor: pointer; background: rgba(255, 255, 255, 0.025); box-shadow: inset 0 0 0 1px var(--line-2); transition: background 0.25s, box-shadow 0.25s; }
.opt:hover { box-shadow: inset 0 0 0 1px var(--line-3); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__box { flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line-3); color: transparent; transition: background 0.2s, box-shadow 0.2s, color 0.2s; }
.opt span { flex: 1; font-size: 15px; line-height: 1.3; font-weight: 500; }
.opt .opt__box { flex: none; }
.opt em { font-style: normal; font: 500 14px/1 var(--fm); color: var(--text-2); white-space: nowrap; }
.opt input:checked ~ .opt__box { background: var(--grad-btn); box-shadow: none; color: #fff; }
.opt:has(input:checked) { background: rgba(124, 92, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(150, 130, 255, 0.55); }
.opt input:focus-visible ~ .opt__box { outline: 2px solid var(--cyan); outline-offset: 2px; }
.opt--base { cursor: default; background: rgba(61, 217, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(61, 217, 255, 0.3); }
.opt--base .opt__box { background: rgba(61, 217, 255, 0.3); box-shadow: none; color: #fff; }
.builder__r { display: flex; flex-direction: column; padding: 34px; background: linear-gradient(160deg, rgba(124, 92, 255, 0.2), rgba(61, 217, 255, 0.06) 60%), #0d1331; box-shadow: inset 1px 0 0 var(--line); }
.builder__r small { font: 500 12px/1 var(--fm); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.builder__sum { margin-top: 14px; font: 500 52px/1 var(--fm); letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.builder__sum span { font: 500 16px/1 var(--f); letter-spacing: 0; color: var(--text-3); margin-right: 8px; }
.builder__lines { margin-top: 22px; display: grid; gap: 8px; font-size: 14px; color: var(--text-2); }
.builder__lines p { display: flex; justify-content: space-between; gap: 12px; }
.builder__lines em { font-style: normal; font-family: var(--fm); color: var(--text); white-space: nowrap; }
.builder__r .btn { margin-top: auto; }
.builder__note { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--text-3); }
.builder__r .builder__spacer { flex: 1; min-height: 24px; }

.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.cases .case { width: auto; }
.case .work__frame { width: 100%; }
.case .work__meta { grid-template-columns: 1fr auto; padding-top: 18px; }
.case .work__meta h3 { grid-column: 1; }
.case .work__meta p { grid-column: 1 / -1; }
.case .work__tag { grid-column: 2; }
.case .link { margin-top: 12px; font-size: 14.5px; }

.lsteps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.endcta { position: relative; padding: 140px 0; text-align: left; overflow: hidden; isolation: isolate; }
.endcta__box { position: relative; padding: 64px; border-radius: var(--r-xl); overflow: hidden; background: #0b1026; box-shadow: inset 0 0 0 1px var(--line-2); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.endcta__box::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("img/aurora.webp") 70% 0 / cover no-repeat; opacity: 0.55; -webkit-mask-image: linear-gradient(90deg, transparent 10%, #000 70%); mask-image: linear-gradient(90deg, transparent 10%, #000 70%); }
.endcta__box .h2 { max-width: 14em; }
.endcta__box .lead { margin-top: 18px; max-width: 46ch; }
.endcta__go { display: grid; gap: 12px; justify-items: start; }
.handle--end { margin: 0; width: min(320px, 100%); }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1599px) {
  .nav__right .status { display: none; }
}
@media (max-width: 1280px) {
  .nav__links a.hide-lg { display: none; }
  .stage .obj--chat { right: -3%; }
}
@media (max-width: 1180px) {
  .status { display: none; }
  .stage .phone { width: 270px; height: 560px; top: -210px; }
  .stage { height: 540px; }
  .stage .push { left: 40%; }
  .work { width: 540px; }
  .tile--site .tile__obj { width: 270px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 46px 26px; }
  .steps::before, .steps::after { display: none; }
  .step__dot { margin: 8px 0 20px; }
  .lsteps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about { gap: 56px; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); }
  .faq { gap: 56px; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
  .lhero__grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 36px; }
  .demo .phone { width: 290px; height: 600px; }
  .demo__stage { height: auto; padding-bottom: 96px; }
  .demo .obj--chat { top: auto; bottom: 150px; right: -34px; width: 120px; }
  .demo .push { left: auto; right: 0; top: auto; bottom: 0; width: 300px; }
  .demo .obj--plane { display: none; }
  .stage .push { left: 33%; top: 150px; }
  .builder { grid-template-columns: minmax(0, 1fr); }
  .demo .obj--chat { right: -24px; }
  .builder__r { box-shadow: inset 0 1px 0 var(--line); }
}
@media (max-width: 1080px) {
  .nav__links a.hide-md { display: none; }
  .hero__title { max-width: 13em; }
  .bento .tile { grid-column: span 6; }
  .tile--site, .tile--bot { grid-column: span 12; min-height: 400px; }
  .tile--care { grid-column: span 12; grid-template-columns: 170px 1fr; }
  .tile--care .checks { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .tile--care .tile__obj { width: 160px; }
  .types .type, .types .type:nth-child(1), .types .type:nth-child(2) { grid-column: span 3; }
  .types .type:last-child { grid-column: span 6; }
  .contact__grid { grid-template-columns: 1fr; }
  .preview { position: relative; top: 0; max-width: 560px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .incl { grid-template-columns: 1fr; }
}

/* ---------- телефон ---------- */
@media (max-width: 860px) {
  :root { --gut: 20px; }
  body { font-size: 16px; }
  .grain { display: none; }
  .nav { height: 60px; }
  .nav.is-scrolled { height: 58px; background: rgba(7, 11, 26, 0.92); }
  .nav__links, .nav__right .btn { display: none; }
  .nav__right { margin-left: auto; }
  .status { display: inline-flex; font-size: 12.5px; }
  .logo { font-size: 15px; }
  .logo__mark { width: 30px; height: 30px; }
  .crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
  .mbar { display: flex; }
  .page { padding-bottom: 86px; }
  .js [data-reveal] { transform: translateY(16px); transition-duration: 0.7s; }

  .hero { padding-top: 92px; }
  .sky { height: 760px; }
  .sky__img { top: -40px; right: -55%; width: 190%; animation: none; }
  .sky__img--2 { display: none; }
  .hero .chip { height: 44px; font-size: 13.5px; padding-left: 7px; }
  .hero__meta li + li::before { display: none; }
  .hero__meta { gap: 8px 16px; }
  .hero__title { margin-top: 20px; font-size: clamp(31px, 9.4vw, 42px); line-height: 1.02; letter-spacing: -0.04em; }
  .hero__title br { display: none; }
  .hero__sub { margin-top: 18px; }
  .lead { font-size: 16.5px; line-height: 1.55; }
  .hero__cta { margin-top: 24px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .hero__meta { margin-top: 22px; font-size: 13px; gap: 8px 18px; }

  .stage { height: 640px; margin-top: 36px; perspective: none; }
  .stage__plane { transform: none !important; }
  .stage .browser, .stage .obj--cart, .stage__cap { display: none; }
  .phone { border-radius: 46px; padding: 8px; }
  .stage .phone { left: 50%; right: auto; top: 0; width: 262px; height: 536px; margin-left: -131px; }
  .phone__screen { border-radius: 39px; }
  .phone__island { width: 80px; height: 24px; margin-left: -40px; top: 10px; }
  .phone__status { height: 40px; font-size: 12px; padding: 5px 22px 0 26px; }
  .msg { font-size: 12.8px; }
  .tg__who b { font-size: 13.5px; }
  .stage .push { left: 50%; right: auto; top: 552px; width: 300px; margin-left: -150px; padding: 11px 14px 11px 11px; border-radius: 18px; gap: 11px; }
  .push__ic { width: 34px; height: 34px; border-radius: 10px; }
  .push__t { font-size: 12px; }
  .push__t b { font-size: 13px; }
  .stage .obj--chat { width: 104px; right: -6px; top: 150px; z-index: 5; }
  .obj img { animation: none; }

  .facts { grid-template-columns: 1fr 1fr; margin-top: 74px; }
  .fact { padding: 24px 0 22px; }
  .fact + .fact { border-left: 0; }
  .fact:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .fact__n { font-size: 34px; }
  .fact__l { font-size: 13.5px; margin-top: 10px; }

  .sec { padding: 92px 0; }
  .sec--tight { padding: 72px 0; }
  .sec__head { grid-template-columns: minmax(0, 1fr); margin-bottom: 30px; gap: 16px; }
  .sec__head > * { min-width: 0; }
  .h2 { font-size: clamp(29px, 8vw, 36px); line-height: 1.06; }
  .sec__aside { font-size: 15px; }
  .works__tools { width: 100%; }
  .filters { overflow-x: auto; flex-wrap: nowrap; max-width: 100%; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; height: 44px; }
  .works__tools { margin-top: 4px; }
  .arrows { display: none; }

  .rail { cursor: auto; padding-bottom: 20px; }
  .rail__track { gap: 14px; }
  .work { width: 236px; }
  .work__frame { border-radius: 34px; padding: 6px; background: linear-gradient(155deg, #262f60, #0b0f22 35%, #090c1c 70%, #1c2450); box-shadow: 0 0 0 1px rgba(190, 200, 255, 0.2), 0 30px 50px -30px rgba(0, 0, 0, 0.9); }
  .work__frame:hover { transform: none; }
  .work__bar { display: none; }
  .rail .work__img { aspect-ratio: 390 / 844; border-radius: 28px; }
  .work__meta { grid-template-columns: 1fr; padding: 14px 4px 0; gap: 4px; }
  .work__n, .work__tag { display: none; }
  .work__meta h3 { font-size: 18px; }
  .work__meta p { grid-column: 1; font-size: 13.5px; }
  .botcover { aspect-ratio: 390 / 844; border-radius: 28px; grid-template-columns: 1fr; align-content: center; padding: 22px; text-align: left; }
  .botcover__t { font-size: 24px; }
  .botcover img { max-width: 150px; order: -1; }
  .rail__hint { display: none; }

  .bento { gap: 12px; }
  .bento .tile, .tile--site, .tile--bot { grid-column: span 12; min-height: 0; padding: 24px 22px; }
  .tile::before, .tile::after { display: none; }
  .tile__obj, .tile--bot .tile__obj { width: 124px; margin: -12px -10px 4px auto; }
  .tile--site .tile__obj { position: relative; z-index: 0; width: 150px; right: auto; top: auto; margin: -12px -10px 4px auto; }
  .tile__n { top: 24px; left: 22px; }
  .tile__body { margin-top: 0; }
  .tile--site .tile__body { max-width: none; }
  .tile h3 { font-size: 24px; max-width: 12ch; }
  .tile__text { font-size: 15px; }
  .tile__links .link, .sec__head > .link { min-height: 44px; }
  .fact a.fact__l { min-height: 44px; border-bottom: 0; text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 4px; }
  .logo { min-height: 44px; }
  .price__v { font-size: 25px; }
  .prices dd { font-size: 17px; }
  .prices dt { font-size: 14px; }
  .tile--care { display: flex; padding: 24px 22px; gap: 0; }
  .tile--care .tile__obj { position: absolute; right: -8px; top: -4px; width: 120px; margin: 0; z-index: -1; }
  .tile--care .checks { grid-template-columns: 1fr; margin-top: 22px; }
  .tile--care > div:nth-child(2) { margin-top: 64px; }
  .more-line { flex-direction: column; align-items: flex-start; padding: 20px; }
  .more-line .btn { width: 100%; }

  .process__top { grid-template-columns: 1fr; margin-bottom: 36px; gap: 24px; }
  .bigfig b { font-size: 38px; }
  .steps, .lsteps { grid-template-columns: 1fr; gap: 0; padding-left: 30px; }
  .steps::before, .steps::after { display: block; left: 6px; top: 8px; bottom: 8px; width: 1px; height: auto; }
  .steps::before { right: auto; }
  .steps::after { height: calc(var(--p) * (100% - 16px)); width: 1px; }
  .step { position: relative; padding-bottom: 32px; }
  .step__when { height: auto; }
  .step__dot { position: absolute; left: -30px; top: 1px; margin: 0; }
  .step h3 { margin-top: 10px; font-size: 19px; }
  .step p { font-size: 15px; }

  .about { grid-template-columns: 1fr; gap: 34px; }
  .portrait { position: relative; top: 0; }
  .portrait__img { aspect-ratio: 1 / 1.05; border-radius: 26px; }
  .about__p { font-size: 16px; }
  .quote { padding: 22px; }
  .quote p { font-size: 19px; }
  .manifest li { font-size: 15px; grid-template-columns: 34px 1fr; }
  .about__cta .btn { flex: 1 1 auto; }

  .dark-wrap { padding-top: 60px; }
  .audit { padding: 40px 0 96px; }
  .audit__in { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .audit__title { font-size: clamp(46px, 13.4vw, 64px); }
  .audit__lead { font-size: 16.5px; }
  .audit__list li { grid-template-columns: 38px 1fr; padding: 14px; }
  .audit__list em { display: none; }
  .audit__cta .btn { width: 100%; }
  .scan__body { grid-template-columns: minmax(0, 1fr); justify-items: stretch; padding: 22px 16px 14px; }
  .gauge { justify-self: center; }
  .scan__foot { padding: 14px 16px 16px; }
  .alt { grid-template-columns: minmax(0, 1fr); }
  .viewer, .viewer.is-phone { width: 100%; height: 100%; max-height: none; margin: 0; }
  .vw-box { border-radius: 0; padding-top: env(safe-area-inset-top); }
  .vw-bar { grid-template-columns: minmax(0, 1fr) auto; padding-left: 12px; }
  .vw-bar .dots { display: none; }
  .vw-url { justify-self: start; }

  .faq { grid-template-columns: 1fr; gap: 26px; }
  .faq__side { position: relative; top: 0; }
  .ask { display: none; }
  .qa summary { font-size: 17px; padding: 20px 0; gap: 16px; }
  .qa__ic { width: 30px; height: 30px; }
  .qa__a { padding: 0 0 22px; font-size: 15.5px; }

  .contact__grid { gap: 36px; }
  .form__row { grid-template-columns: 1fr; }
  .form__go .btn { width: 100%; white-space: normal; height: auto; min-height: 56px; padding: 14px 20px; text-align: center; line-height: 1.25; }
  .contact__grid > * { min-width: 0; }
  .pills button { min-height: 44px; font-size: 14.5px; padding: 0 14px; }
  .preview__chat { min-height: 0; }

  .foot { padding: 64px 0 120px; }
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
  .foot__about { grid-column: 1 / -1; }
  .foot__word { margin-top: 44px; font-size: 25vw; }

  /* посадочная */
  .lhero { padding: 90px 0 30px; }
  .lhero__grid { grid-template-columns: 1fr; gap: 34px; }
  .lhero__title { font-size: clamp(40px, 12.4vw, 56px); }
  .pricebar { padding: 16px 18px; gap: 10px 18px; }
  .pricebar__v { font-size: 32px; }
  .lhero__cta .btn { flex: 1 1 auto; }
  .demo .phone { width: 270px; height: 550px; }
  .demo .push { left: 50%; right: auto; margin-left: -150px; width: 300px; padding: 11px 14px 11px 11px; }
  .demo .obj--chat { width: 96px; right: -8px; top: 200px; }
  .demo__tabs button { font-size: 13px; height: 44px; }
  .demo__skin button { height: 44px; }
  .demo .phone { margin: 0 auto; }
  .demo__skin, .demo__cap { justify-content: center; text-align: center; }
  .why .tile { grid-column: span 12; min-height: 0; }
  .why .tile, .types .type:nth-child(-n+2) { display: flex; }
  .why .tile__obj, .types .type:nth-child(-n+2) .tile__obj { width: 112px; margin: -12px -10px 4px auto; }
  .why .tile__body, .types .type:nth-child(-n+2) .tile__body { padding-top: 0; }
  .incl { padding: 24px 22px; }
  .incl ul { grid-template-columns: 1fr; }
  .types { gap: 12px; }
  .types .type, .types .type:nth-child(1), .types .type:nth-child(2), .types .type:last-child { grid-column: span 6; min-height: 0; }
  .type--max .maxbig { width: 84px; height: 84px; right: 20px; top: 20px; }
  .builder__l, .builder__r { padding: 24px 20px; }
  .opts { grid-template-columns: 1fr; }
  .builder__sum { font-size: 44px; }
  .cases { grid-template-columns: 1fr; }
  .case .work__frame { border-radius: 16px; padding: 0; background: #0a0f23; }
  .case .work__bar { display: flex; height: 30px; }
  .case .botcover { aspect-ratio: 16 / 10; grid-template-columns: 1fr 120px; border-radius: 0; }
  .case .botcover img { order: 0; }
  .case .work__tag { display: inline-flex; }
  .case .work__meta { grid-template-columns: 1fr auto; }
  .endcta { padding: 80px 0; }
  .endcta__box { grid-template-columns: 1fr; padding: 30px 22px; }
  .endcta__go .btn { width: 100%; }
}
@media (max-width: 400px) {
  :root { --gut: 16px; }
  .lhero .chip svg { display: none; }
  .kb span { font-size: 11.5px; }
  .hero__title { font-size: 33px; }
  .status { display: none; }
  .stage .phone { width: 250px; height: 512px; margin-left: -125px; }
  .stage { height: 616px; }
  .stage .push { width: 288px; margin-left: -144px; top: 528px; }
  .work { width: 220px; }
  .fact__n { font-size: 30px; }
  .lhero__title { font-size: 40px; }
  .demo .phone { width: 256px; height: 524px; }
  .demo .push { width: 290px; margin-left: -145px; }
}
@media (max-width: 340px) {
  .hero__title { font-size: 29px; }
  .hero__meta { font-size: 11.5px; }
  .stage .phone { width: 236px; height: 484px; margin-left: -118px; }
  .stage { height: 590px; }
  .stage .push { width: 280px; margin-left: -140px; top: 500px; }
  .demo .phone { width: 240px; height: 492px; }
  .demo .push { width: 280px; margin-left: -140px; }
  .mbar .btn { font-size: 15px; padding: 0 14px; }
  .foot__grid { grid-template-columns: 1fr; }
  .pricebar__v { font-size: 28px; }
}

/* ---------- без анимаций ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .sky__img, .obj img { animation: none !important; }
}
