/* Landing /max-kanal/ (ИИ для канала в MAX), part 1 — render-blocking: base, shared channel
   pieces (post, message, pill, tag, phone, AI window), first screen (2), demo (2б), short definition
   (2в) and numbers (3). Blocks 4–10 live in max-kanal-landing-blocks.css, 11–20 in
   max-kanal-landing-sections.css; both load without blocking the first paint.
   Figma «LidFly — Проекты · новая структура», page 28: A · Desktop 1440 (885:25187), A2 (921:55777),
   B1–B3 phone (921:54992, 921:55022, 921:55117). Built on the /telegram-kanal/ components (same Figma
   kit, page 00 «Лендинг · Telegram»), own namespace mx-; the MAX accent is the lilac pair
   --v2-lilac / --v2-lilac-ink. MAX interface, gradients and logo are not copied (ТЗ 26.10.2026, 4 и 6). */

@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/playfair-display/playfair-display-cyrillic-400-italic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Effect styles of the landing kit (Landing/Mega Menu, TG post, Logo Tile) and the neutral TG tints */
body.mx-page {
  --mx-shadow-pop: 0 6px 12px -4px rgba(28, 43, 37, 0.08), 0 24px 48px -12px rgba(28, 43, 37, 0.14);
  --mx-shadow-post: 0 4px 10px -4px rgba(28, 43, 37, 0.06), 0 1px 2px rgba(28, 43, 37, 0.08);
  --mx-shadow-tile: 0 1px 2px rgba(28, 43, 37, 0.08), 0 4px 10px -4px rgba(28, 43, 37, 0.06);
  --mx-tint-5: rgba(20, 20, 20, 0.05);
  --mx-tint-7: rgba(20, 20, 20, 0.07);
  --mx-mine-line: rgba(44, 110, 53, 0.14);
  margin: 0;
  background: var(--v2-cream);
  color: var(--v2-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
.mx-page *, .mx-page *::before, .mx-page *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
:where(.mx-page) img { display: block; max-width: 100%; }
.mx-page main { overflow-x: clip; }
:where(.mx-page main) a { color: inherit; }
:where(.mx-page main) :where(p, h2, h3, ul, ol) { margin: 0; }
:where(.mx-page main) :where(ul, ol) { padding: 0; list-style: none; }
:where(.mx-page) button { font: inherit; }
.mx-page [id] { scroll-margin-top: 64px; }
.mx-page [data-price] { white-space: nowrap; }
.mx-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.mx-ico { flex: none; width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mx-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mx-skip { position: fixed; left: 16px; top: -80px; z-index: 40; padding: 10px 14px; border-radius: var(--radius-element); background: var(--v2-ink); color: var(--v2-cream); }
.mx-skip:focus { top: 16px; }
.nowrap { white-space: nowrap; }
.mx-center { text-align: center; }
.mx-page :is(a, button, summary):focus-visible { outline: 3px solid var(--btn-focus-ring); outline-offset: 2px; }

/* Layout and section heads */
.mx-wrap { width: min(calc(100% - 40px), 1200px); margin-inline: auto; }
.mx-sec { padding: 24px 0 112px; }
.mx-sec--y { padding-top: 112px; }
.mx-tone-green { --tone: var(--v2-lime-soft); --tone-ink: var(--v2-green); }
.mx-tone-forest { --tone: var(--v2-lime-soft); --tone-ink: var(--v2-forest); }
.mx-tone-butter { --tone: var(--v2-butter); --tone-ink: var(--v2-butter-ink); }
.mx-tone-lilac { --tone: var(--v2-lilac); --tone-ink: var(--v2-lilac-ink); }
.mx-tone-peach { --tone: var(--v2-peach); --tone-ink: var(--v2-peach-ink); }
.mx-tone-sky { --tone: var(--v2-sky); --tone-ink: var(--v2-sky-ink); }
.mx-tone-mint { --tone: var(--v2-mint); --tone-ink: var(--v2-mint-ink); }
.mx-tone-rose { --tone: var(--v2-rose); --tone-ink: var(--v2-rose-ink); }
.mx-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.mx-head--center { align-items: center; text-align: center; }
.mx-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--tone-ink, var(--v2-green)); font-size: 13px; font-weight: 700; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; }
.mx-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.mx-h2 { color: var(--v2-ink); font-size: 46px; font-weight: 600; line-height: 1.08; letter-spacing: -0.03em; }
.mx-head--center .mx-h2 { text-wrap: balance; }
.mx-page :is(.mx-h2, .mx-final__title) em { font-family: var(--v2-font-accent); font-size: 1.087em; font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--v2-green); }
.mx-lead { color: var(--v2-ink-secondary); font-size: 19px; line-height: 1.5; }
.mx-lead a, .mx-ticks p a, .mx-connect__foot a { color: var(--v2-green); text-underline-offset: 3px; }
.mx-caption { color: var(--v2-ink-muted); font-size: 12px; line-height: 1.4; }

/* Chat wallpaper (Figma «Обои»: coffee, calendar, heart, sparkle, leaf, bean, clip) */
.mx-wp {
  background-color: var(--v2-sand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='160' viewBox='0 0 320 160' fill='none' stroke='rgb(232,227,214)' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='translate(20,20) rotate(24 15 15)'%3E%3Cpath d='M12.5 2.5V5M17.5 2.5V5M7.5 2.5V5M20 10H5a1.25 1.25 0 0 0-1.25 1.25v10A5 5 0 0 0 8.75 26.25h7.5a5 5 0 0 0 5-5V11.25A1.25 1.25 0 0 0 20 10Zm0 0h2.5a5 5 0 0 1 0 10H21.25'/%3E%3C/g%3E%3Cg transform='translate(100,20)'%3E%3Cpath d='M10 2.5V7.5M20 2.5V7.5M6.25 5h17.5A2.5 2.5 0 0 1 26.25 7.5V25a2.5 2.5 0 0 1-2.5 2.5H6.25a2.5 2.5 0 0 1-2.5-2.5V7.5A2.5 2.5 0 0 1 6.25 5ZM3.75 12.5h22.5'/%3E%3C/g%3E%3Cg transform='translate(180,20) rotate(-24 15 15)'%3E%3Cpath d='M23.75 17.5c1.86-1.83 3.75-4.01 3.75-6.88a6.88 6.88 0 0 0-6.88-6.87c-2.2 0-3.75.63-5.62 2.5-1.88-1.87-3.43-2.5-5.63-2.5A6.88 6.88 0 0 0 2.5 10.62c0 2.88 1.88 5.06 3.75 6.88L15 26.25l8.75-8.75Z'/%3E%3C/g%3E%3Cg transform='translate(260,20) rotate(8 15 15)'%3E%3Cpath d='M12.42 19.38a2.5 2.5 0 0 0-1.8-1.8L2.96 15.6a.63.63 0 0 1 0-1.2l7.66-1.98a2.5 2.5 0 0 0 1.8-1.8l1.98-7.66a.63.63 0 0 1 1.2 0l1.98 7.66a2.5 2.5 0 0 0 1.8 1.8l7.66 1.98a.63.63 0 0 1 0 1.2l-7.66 1.98a2.5 2.5 0 0 0-1.8 1.8l-1.98 7.66a.63.63 0 0 1-1.2 0l-1.98-7.66Z'/%3E%3C/g%3E%3Cg transform='translate(60,100) rotate(-16 15 15)'%3E%3Cpath d='M13.75 25a8.75 8.75 0 0 1-1.5-17.38c7.13-1.37 9-2.02 11.5-5.12 1.25 2.5 2.5 5.23 2.5 10 0 6.88-5.98 12.5-12.5 12.5ZM2.5 26.25c0-3.75 2.31-6.7 6.35-7.5 3.03-.6 6.15-2.5 7.4-3.75'/%3E%3C/g%3E%3Cg transform='translate(140,100) rotate(16 15 15)'%3E%3Cpath d='M12.7 8.25c-.26 1.1-.65 2.2-1.45 3s-1.9 1.19-3 1.46A7.5 7.5 0 0 0 10 27.5C19.67 27.5 27.5 19.67 27.5 10a7.5 7.5 0 0 0-14.8-1.75ZM6.68 13.28a6.25 6.25 0 0 0 8.1 1.5 6.25 6.25 0 0 0-1.5-8.1'/%3E%3C/g%3E%3Cg transform='translate(220,100) rotate(-8 15 15)'%3E%3Cpath d='M20 7.5 9.48 18.23a2.5 2.5 0 0 0 3.54 3.54L23.54 11.04a5 5 0 0 0-7.08-7.08L5.99 14.65a7.5 7.5 0 0 0 10.6 10.61L27.07 14.57'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 320px 160px;
}

/* Channel pieces (Figma kit «Landing / TG …»): post, reaction, button under a post, message, pill, chat header, avatar */
.mx-post { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.mx-post--w250 { width: 250px; }
.mx-post--w300 { width: 300px; }
.mx-post__bubble { overflow: hidden; border-radius: 16px; background: var(--v2-card); box-shadow: var(--mx-shadow-post); }
.mx-post__media { position: relative; height: var(--h, 200px); }
.mx-post__media img { width: 100%; height: 100%; object-fit: cover; }
.mx-post__body { display: flex; flex-direction: column; gap: 6px; padding: 10px 14px 8px; }
.mx-post__author { color: var(--v2-forest); font-size: 14px; font-weight: 600; line-height: 1.4; }
.mx-post__text { color: var(--v2-ink); font-size: 14px; line-height: 1.55; }
.mx-post__text b { font-size: 15px; font-weight: 600; }
.mx-post__meta { display: flex; align-items: center; justify-content: flex-end; gap: 4px; color: var(--v2-ink-muted); font-size: 12px; line-height: 1.4; }
.mx-post__meta .mx-ico, .mx-post__views .mx-ico { font-size: 14px; stroke-width: 1.75; }
.mx-post__views { display: inline-flex; align-items: center; gap: 3px; margin-right: 1px; }
.mx-post__reacts { display: flex; gap: 6px; padding: 0 14px 12px; }
.mx-react { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px 4px 7px; border-radius: var(--radius-pill); background: var(--mx-tint-5); color: var(--v2-ink-secondary); font-size: 12px; font-weight: 600; line-height: 18px; white-space: nowrap; }
.mx-react i { font-size: 13px; font-style: normal; font-weight: 500; }
.mx-react--mine { padding: 3px 8px 3px 6px; border: 1px solid var(--mx-mine-line); background: var(--v2-lime-soft); color: var(--v2-forest); }
.mx-ibtn { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border: 1px solid var(--v2-line); border-radius: 12px; background: var(--v2-card); color: var(--v2-forest); font-size: 14px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.mx-ibtn .mx-ico { font-size: 14px; }
.mx-ibtn--w250 { width: 250px; }
.mx-msg { display: flex; flex-direction: column; gap: 2px; width: 260px; padding: 8px 12px 6px; border-radius: 16px 16px 16px 4px; background: var(--v2-card); box-shadow: var(--mx-shadow-tile); }
.mx-msg--w250 { width: 250px; }
.mx-msg--w380 { width: min(380px, 100%); }
.mx-msg--full { width: 100%; }
.mx-msg__author { color: var(--v2-lilac-ink); font-size: 13px; font-weight: 600; line-height: 1; }
.mx-msg__text { color: var(--v2-ink); font-size: 14px; line-height: 1.55; }
.mx-msg__meta { color: var(--v2-ink-muted); font-size: 12px; line-height: 1.4; text-align: right; }
.mx-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--mx-tint-7); color: var(--v2-ink-secondary); font-size: 12px; font-weight: 500; line-height: 1.4; white-space: nowrap; }
.mx-pill .mx-ico { font-size: 14px; }
.mx-pill--card { border: 1px solid var(--v2-line); background: var(--v2-card); color: var(--v2-ink); }
.mx-pill--lime { background: var(--v2-lime-soft); color: var(--v2-forest); }
.mx-pill--lilac { background: var(--v2-lilac); color: var(--v2-lilac-ink); }
.mx-tag { display: inline-flex; flex: none; padding: 3px 8px; border-radius: var(--radius-pill); background: var(--tone); color: var(--tone-ink); font-size: 11px; font-weight: 700; line-height: 1; white-space: nowrap; }
.mx-tag--m { padding: 4px 10px; font-size: 12px; font-weight: 600; }
.mx-sticker { display: inline-flex; align-items: center; padding: 8px 14px 8px 12px; border-radius: var(--radius-pill); background: var(--v2-card); box-shadow: var(--v2-shadow-card); color: var(--v2-green); font-size: 14px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.mx-sticker--peach { color: var(--v2-peach-ink); }
.mx-sticker--rose { color: var(--v2-rose-ink); }
.mx-sticker--sky { color: var(--v2-sky-ink); }
.mx-ava { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; font-size: 15px; font-weight: 600; line-height: 1; }
.mx-ava--34 { width: 34px; height: 34px; }
.mx-ava--44 { width: 44px; height: 44px; font-size: 18px; letter-spacing: -0.02em; }
.mx-ava--64 { width: 64px; height: 64px; border: 4px solid var(--v2-sky); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.mx-ava--peach { background: var(--v2-peach); color: var(--v2-peach-ink); }
.mx-ava--lime { background: var(--v2-lime); color: var(--v2-forest); }
.mx-ava--lilac { background: var(--v2-lilac); color: var(--v2-lilac-ink); }
.mx-ava--rose { background: var(--v2-rose); color: var(--v2-rose-ink); }
.mx-ava--sky { background: var(--v2-sky); color: var(--v2-sky-ink); }
.mx-ava--card { background: var(--v2-card); color: var(--v2-sky-ink); }
.mx-chathdr { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--v2-line); background: var(--v2-card); }
.mx-chathdr__name { display: flex; flex: 1 1 auto; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.4; white-space: nowrap; }
.mx-chathdr__name b { color: var(--v2-ink); font-size: 14px; font-weight: 600; }
.mx-chathdr__name small { color: var(--v2-ink-muted); font-size: 12px; }
.mx-chathdr__more { font-size: 20px; color: var(--v2-ink-muted); stroke-width: 2.5; }

/* MAX additions: phone/desktop wording, video badge, «Стало» pill, small avatar */
.mx-mob { display: none; }
.mx-sticker--lilac { background: var(--v2-lilac); color: var(--v2-lilac-ink); }
.mx-pill--lime-line { border: 1px solid var(--v2-line); background: var(--v2-lime-soft); color: var(--v2-ink); }
.mx-ava--20 { width: 20px; height: 20px; font-size: 11px; }
.mx-vbadge { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px 4px 7px; border-radius: var(--radius-pill); background: rgba(20, 20, 20, 0.62); color: var(--v2-cream); font-size: 12px; font-weight: 600; line-height: 1.2; }
.mx-vbadge .mx-ico { font-size: 12px; fill: currentColor; stroke: none; }
.mx-msg--removed { opacity: 0.55; }
.mx-msg--removed .mx-msg__author { color: var(--v2-ink-muted); }

/* Phone frame */
.mx-phone { display: flex; flex-direction: column; overflow: hidden; padding: 6px; border: 6px solid var(--v2-ink); border-radius: 44px; background: var(--v2-sand); box-shadow: var(--mx-shadow-pop); }
.mx-phone > .mx-chathdr { flex: none; }
.mx-status { display: flex; flex: none; align-items: center; justify-content: space-between; padding: 12px 22px 4px 26px; border-radius: 38px 38px 0 0; background: var(--v2-card); }
.mx-status b { font-size: 13px; font-weight: 600; line-height: 1; }
.mx-status__notch { width: 84px; height: 22px; border-radius: var(--radius-pill); background: var(--v2-ink); }
.mx-status__battery { width: 24px; height: 11px; border: 1.5px solid var(--v2-ink); border-radius: 3px; }
.mx-phone__feed { display: flex; flex: 1 1 auto; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; min-height: 0; overflow: hidden; padding: 12px 10px 14px; }
.mx-phone__feed > .mx-post { flex: none; }

/* AI window and chat bubbles (Landing / Chat Bubble) */
.mx-window { overflow: hidden; border: 1px solid var(--v2-line); border-radius: 24px; background: var(--v2-card); box-shadow: var(--mx-shadow-pop); }
.mx-window__bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--v2-line); color: var(--v2-ink-secondary); font-size: 13px; font-weight: 600; line-height: 1; }
.mx-dots { display: flex; gap: 6px; }
.mx-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--v2-peach); }
.mx-dots i:nth-child(2) { background: var(--v2-butter); }
.mx-dots i:nth-child(3) { background: var(--v2-lime); }
.mx-window__msgs { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 18px 20px; }
.mx-row-me { display: flex; justify-content: flex-end; width: 100%; }
.mx-bubble { width: min(var(--w, 380px), 100%); padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.55; }
.mx-bubble--me { background: var(--v2-forest); color: var(--v2-ink-on-dark); box-shadow: var(--v2-shadow-card); }
.mx-bubble--ok { background: var(--v2-lime-soft); color: var(--v2-ink); box-shadow: var(--v2-shadow-card); }
.mx-bubble--ai { background: var(--v2-sand); color: var(--v2-ink); }
.mx-bubble--full { width: 100%; }
.mx-att { display: flex; flex-direction: column; gap: 8px; width: min(440px, 100%); padding: 12px 14px; border: 1px solid var(--v2-line); border-radius: 16px; background: var(--v2-card); }
.mx-att__title { display: flex; align-items: center; gap: 6px; color: var(--v2-ink-muted); font-size: 12px; font-weight: 500; line-height: 1.4; }
.mx-att__title .mx-ico { font-size: 14px; }
.mx-att__row { display: flex; align-items: center; gap: 8px; }
.mx-att__q { flex: 1 1 auto; min-width: 0; font-size: 14px; line-height: 1.55; }
.mx-att__row b { color: var(--v2-forest); font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; }
.mx-att__what { flex: 1 1 auto; min-width: 0; font-size: 13px; font-weight: 500; line-height: 18px; }

/* 2 · First screen */
.mx-hero { position: relative; padding: 93px 0 80px; }
.mx-hero__bg { position: absolute; top: 0; left: 50%; width: 1440px; height: 760px; margin-left: -720px; background-image: var(--v2-fade-to-cream), linear-gradient(90deg, var(--v2-grid) 1px, transparent 1px), linear-gradient(180deg, var(--v2-grid) 1px, transparent 1px); background-position: 0 100%, 48px 0, 0 32px; background-size: 100% 260px, 72px 100%, 100% 72px; background-repeat: no-repeat, repeat-x, repeat-y; pointer-events: none; }
.mx-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 640px) 520px; justify-content: space-between; align-items: start; gap: 40px; }
.mx-hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.mx-brands { display: flex; align-items: center; gap: 8px; }
.mx-brands__tile { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--v2-line); border-radius: 12px; background: var(--v2-card); }
.mx-brands__tile img { width: 20px; height: 20px; }
.mx-brands__label { color: var(--v2-ink-muted); font-size: 12px; font-weight: 500; line-height: 1.4; }
.mx-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border: 1px solid var(--v2-line); border-radius: var(--radius-pill); background: var(--v2-card); color: var(--v2-ink-secondary); font-size: 14px; font-weight: 500; line-height: 1.4; }
.mx-badge b { padding: 3px 10px; border-radius: var(--radius-pill); background: var(--v2-lime); color: var(--v2-forest); font-size: 13px; font-weight: 600; line-height: 1; }
.mx-h1 { display: flex; flex-direction: column; gap: 6px; margin: 0; color: var(--v2-ink); font-weight: 600; }
.mx-h1__main { font-size: 56px; line-height: 1.05; letter-spacing: -0.03em; }
.mx-h1__main em { font-family: var(--v2-font-accent); font-size: 1.107em; font-style: italic; font-weight: 400; letter-spacing: -0.03em; color: var(--v2-lilac-ink); }
.mx-h1__sub { color: var(--v2-ink-secondary); font-size: 40px; font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; }
.mx-hero__lead { color: var(--v2-ink-secondary); font-size: 19px; line-height: 1.5; }
.mx-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mx-actions .btn { margin: 0; }
.mx-page .btn .mx-ico { font-size: 20px; }
.mx-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.mx-trust li { display: inline-flex; align-items: center; gap: 6px; color: var(--v2-ink-secondary); font-size: 14px; font-weight: 500; line-height: 1.4; }
.mx-trust .mx-ico { font-size: 20px; color: var(--v2-green); }
.mx-hero__scene { position: relative; width: 520px; height: 680px; margin-top: -37px; pointer-events: none; user-select: none; }
.mx-hero__phone { position: absolute; left: 130px; top: 10px; width: 340px; height: 640px; }
.mx-hero__sticker { position: absolute; left: 244px; top: -20px; z-index: 2; transform: rotate(-3deg); }
.mx-hero__sticker2 { position: absolute; left: 404px; top: 324px; z-index: 2; transform: rotate(-4deg); }
.mx-glow { position: absolute; border-radius: 50%; pointer-events: none; }
.mx-glow--sky { left: -50px; top: 0; width: 560px; height: 560px; background: radial-gradient(closest-side, var(--v2-sky), color-mix(in srgb, var(--v2-sky) 40%, transparent) 45%, transparent); }
.mx-glow--lilac { left: 70px; top: 170px; width: 580px; height: 580px; background: radial-gradient(closest-side, var(--v2-lilac), color-mix(in srgb, var(--v2-lilac) 45%, transparent) 45%, transparent); }
.mx-hero__from { position: absolute; left: -27px; top: 200px; z-index: 2; width: 250px; box-shadow: 0 6px 6px rgba(28, 43, 37, 0.08), 0 24px 24px rgba(28, 43, 37, 0.14); transform: rotate(-3deg); }
.mx-hero__caption { position: absolute; left: 0; right: 0; top: 664px; text-align: center; }

/* 2б · Demo with auto-advancing tabs (Landing / TG Demo + Play Toggle) */
.mx-demo-sec { padding: 8px 0 96px; }
.mx-demo__controls { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 12px; margin-bottom: 20px; padding-bottom: 9px; }
.mx-demo__tabs { display: flex; gap: 8px; }
.mx-chip { position: relative; padding: 8px 18px; border: 0; border-radius: var(--radius-pill); background: var(--v2-sand); color: var(--v2-ink-secondary); font-size: 14px; font-weight: 600; line-height: 1.4; white-space: nowrap; cursor: pointer; }
.mx-chip:hover { color: var(--v2-ink); }
.mx-chip.is-active { background: var(--v2-ink); color: var(--v2-cream); }
.mx-demo__track { position: absolute; left: 0; right: 0; bottom: -9px; height: 3px; overflow: hidden; border-radius: 2px; background: var(--v2-sand); }
.mx-demo__track i { display: block; height: 100%; background: var(--v2-ink); transform: scaleX(0); transform-origin: left center; }
.mx-demo__toggle { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--v2-sand); color: var(--v2-ink); cursor: pointer; }
.mx-demo__toggle .mx-ico { font-size: 16px; }
.mx-demo__toggle .mx-ico[hidden] { display: none; }
.mx-demo__panel { display: flex; align-items: center; gap: 24px; padding: 40px; border: 1px solid var(--v2-line); border-radius: 32px; animation: mx-fade 300ms ease; }
.mx-demo__panel[hidden] { display: none; }
@keyframes mx-fade { from { opacity: 0; } to { opacity: 1; } }
.mx-demo__chat { flex: 0 0 560px; }
.mx-node { display: flex; flex: none; flex-direction: column; align-items: center; gap: 6px; }
.mx-node__mark { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 0; border-radius: 50%; background: var(--v2-night); color: var(--v2-cream); box-shadow: var(--mx-shadow-tile); }
.mx-node__mark .mx-ico { font-size: 24px; }
.mx-node b { font-size: 13px; font-weight: 600; line-height: 1; }
.mx-node small { color: var(--v2-ink-muted); font-size: 12px; line-height: 1.4; }
.mx-queue { display: flex; flex: 1 1 0; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.mx-demo-sec .mx-caption { margin-top: 20px; }

/* 2в · Short definition */
.mx-about-sec { padding: 8px 0 64px; }
.mx-about { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 960px; margin-inline: auto; padding: 40px 56px; border: 1px solid var(--v2-line); border-radius: 32px; background: var(--v2-card); text-align: center; }
.mx-about__text { color: var(--v2-ink); font-size: 22px; font-weight: 500; line-height: 1.55; }
.mx-about__date { color: var(--v2-ink-muted); font-size: 14px; font-weight: 500; line-height: 1.4; }

/* 3 · Numbers: a pinned message */
.mx-nums-sec { padding: 8px 0 104px; }
.mx-pinned { display: flex; align-items: center; gap: 24px; padding: 20px 20px 20px 28px; border: 1px solid var(--v2-line); border-radius: 24px; background: var(--v2-card); box-shadow: var(--mx-shadow-tile); }
.mx-pinned__head { display: flex; flex: none; flex-direction: column; align-items: flex-start; gap: 6px; }
.mx-pinned__label { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: var(--radius-pill); background: var(--v2-lime-soft); color: var(--v2-forest); font-size: 12px; font-weight: 500; line-height: 1.4; }
.mx-pinned__label .mx-ico { font-size: 14px; }
.mx-pinned__title { font-size: 17px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.mx-nums { display: flex; flex: 1 1 auto; gap: 12px; min-width: 0; }
.mx-num { display: flex; flex: 1 1 0; flex-direction: column; gap: 4px; min-width: 0; padding: 14px 16px; border-radius: 18px; background: var(--tone); }
.mx-num b { color: var(--tone-ink); font-size: 40px; font-weight: 600; line-height: 1; letter-spacing: -0.03em; white-space: nowrap; }
.mx-num.mx-tone-green b { color: var(--v2-forest); }
.mx-num span { font-size: 13px; font-weight: 500; line-height: 18px; }
.mx-num small { color: var(--v2-ink-secondary); font-size: 12px; line-height: 1.4; }

@media (min-width: 768px) { .mx-hero__scene.mx-wp { background: none; } }

/* --- Tablet and small desktop --- */
@media (max-width: 1239px) {
  .mx-hero__grid { grid-template-columns: minmax(0, 1fr) 440px; }
  .mx-hero__scene { width: 440px; }
  .mx-hero__phone { left: 90px; }
  .mx-hero__sticker { left: 160px; }
  .mx-hero__from { left: -20px; }
  .mx-demo__panel { flex-direction: column; align-items: stretch; }
  .mx-demo__chat { flex: none; width: min(560px, 100%); margin-inline: auto; }
  .mx-node { flex-direction: row; justify-content: center; }
  .mx-node__mark { transform: rotate(90deg); }
  .mx-queue { width: min(428px, 100%); margin-inline: auto; }
}

@media (max-width: 1023px) {
  .mx-hero { padding-top: 48px; }
  .mx-hero__grid { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .mx-hero__text { width: 100%; }
  .mx-hero__scene { margin-top: 24px; }
  /* No auto-advance below 1024 px: no track, no pause button (ТЗ 5.2) */
  .mx-demo__track, .mx-demo__toggle { display: none; }
  .mx-demo__controls { padding-bottom: 0; }
  .mx-pinned { flex-direction: column; align-items: stretch; }
  .mx-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --- Phone (Figma B1–B3, 375) --- */
@media (max-width: 767px) {
  .mx-wrap { width: calc(100% - 32px); }
  .mx-desk { display: none; }
  .mx-sec { padding: 0 0 64px; }
  .mx-sec--y { padding-top: 64px; }
  .mx-head { gap: 12px; }
  .mx-head--center { align-items: flex-start; text-align: left; }
  .mx-eyebrow { gap: 6px; font-size: 12px; }
  .mx-eyebrow::before { width: 7px; height: 7px; }
  .mx-h2 { font-size: 30px; line-height: 1.1; }
  .mx-lead { font-size: 16px; }
  .mx-actions { width: 100%; }
  .mx-actions .btn { --btn-height: 52px; --btn-pad-x: 20px; width: 100%; }
  .mx-actions .btn .mx-ico { display: none; }

  .mx-hero { padding: 20px 0 40px; }
  .mx-hero__bg { display: none; }
  .mx-hero__text { gap: 16px; }
  .mx-badge { gap: 6px; padding: 4px 10px 4px 4px; font-size: 12px; }
  .mx-badge b { padding: 3px 8px; font-size: 11px; }
  .mx-h1 { gap: 10px; }
  .mx-h1__main { font-size: 36px; line-height: 1.06; }
  .mx-h1__sub { font-size: 22px; line-height: 1.2; }
  .mx-hero__lead { font-size: 16px; }
  .mx-trust { flex-direction: column; gap: 6px; }
  .mx-trust li { font-size: 13px; }
  .mx-trust .mx-ico { font-size: 16px; }
  /* B1: no phone frame on phones — the bot preview and the post sit on a wallpaper panel */
  .mx-hero__scene { display: flex; flex-direction: column; align-items: stretch; gap: 10px; width: 100%; height: auto; margin-top: 8px; padding: 12px 12px 14px; border: 1px solid var(--v2-line); border-radius: 24px; }
  .mx-hero__sticker, .mx-hero__sticker2, .mx-glow, .mx-hero__phone .mx-status, .mx-hero__phone .mx-chathdr { display: none; }
  .mx-mob { display: inline; }
  .mx-hero__phone { display: contents; }
  .mx-hero__phone .mx-phone__feed { padding: 0; overflow: visible; background: none; }
  .mx-hero__from { position: static; order: -1; width: auto; box-shadow: var(--mx-shadow-tile); transform: none; }
  /* B1 (923:68196): the scene is cut at 470 px with a soft fade; the caption stays on top of the fade */
  .mx-hero__scene { position: relative; max-height: 470px; overflow: hidden; }
  .mx-hero__scene > *, .mx-hero__phone .mx-phone__feed { flex: none; }
  .mx-hero__scene::after { content: ""; position: absolute; inset: auto 0 0; height: 120px; background: linear-gradient(180deg, transparent, var(--v2-sand) 78%); pointer-events: none; }
  .mx-hero__caption { position: absolute; left: 0; right: 0; bottom: 12px; top: auto; z-index: 1; }

  .mx-demo-sec { padding: 0 0 56px; }
  .mx-demo__tabs { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .mx-demo__panel { padding: 14px; border-radius: 24px; gap: 16px; }
  .mx-window__msgs { padding: 12px 12px 14px; gap: 10px; }
  .mx-window__bar { padding: 12px 14px; }
  .mx-bubble { font-size: 13px; }
  .mx-att { padding: 10px 12px; }
  .mx-att__q { font-size: 13px; }
  .mx-att__row--plan .mx-att__what { flex: 1 1 0; }

  .mx-about-sec { padding: 0 0 40px; }
  .mx-about { align-items: flex-start; gap: 12px; padding: 24px 20px; border-radius: 24px; text-align: left; }
  .mx-about__text { font-size: 16px; line-height: 1.55; }
  .mx-about__date { font-size: 13px; }
  .mx-nums-sec { padding: 0 0 56px; }
  .mx-pinned { padding: 16px; gap: 14px; }
  .mx-nums { gap: 8px; }
  .mx-num { padding: 12px; }
  .mx-num b { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mx-demo__panel { animation: none; }
}
