/* Landing /max-kanal/, part 2 — blocks 4–10: features carousel, crossposting (Было → ИИ → Стало),
   split sections with example panels (autoposting, stats, bot), «Ведение» formats and the dark
   comments block. Loaded without blocking the first paint; shared pieces are in
   max-kanal-landing.css. Figma A 885:25187. */

/* Ticks list (Landing / Check Item) */
.mx-ticks { display: flex; flex-direction: column; gap: 20px; }
.mx-ticks li { display: flex; align-items: flex-start; gap: 14px; }
.mx-ticks li > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mx-tick { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: var(--tone); color: var(--tone-ink); }
.mx-tick .mx-ico { font-size: 17px; }
.mx-ticks .mx-ticks__title { color: var(--v2-ink); font-size: 17px; font-weight: 600; line-height: 1.3; }
.mx-ticks p { color: var(--v2-ink-secondary); font-size: 15px; line-height: 1.55; }
.mx-ticks-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.mx-ticks-cols .mx-ticks { gap: 18px; }

/* Split section: text + example panel */
.mx-split { display: flex; align-items: center; gap: 64px; }
.mx-split__text { display: flex; flex: 1 1 0; flex-direction: column; gap: 32px; min-width: 0; }
.mx-split__panel { flex: 0 0 var(--pw, 560px); min-width: 0; }
.mx-panel { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 32px 32px 28px; border: 1px solid var(--v2-line); border-radius: 32px; }
.mx-panel > .mx-window, .mx-panel > .mx-qlist, .mx-panel > .mx-hint { width: 100%; }

/* 4 · Features carousel */
.mx-sec--top { padding-top: 112px; }
.mx-sec--dark { padding: 24px 0; }
.mx-carousel { display: flex; gap: 20px; margin-top: 32px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.mx-carousel::-webkit-scrollbar { display: none; }
.mx-fcard { display: flex; flex: 0 0 300px; flex-direction: column; overflow: hidden; border: 1px solid var(--v2-line); border-radius: 24px; background: var(--v2-card); scroll-snap-align: start; }
.mx-fcard__illus { display: flex; flex: none; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 230px; padding: 18px; }
.mx-fcard__body { display: flex; flex: 1 1 auto; flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px 24px 24px; }
.mx-fcard__over { color: var(--tone-ink); font-size: 12px; font-weight: 700; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; }
.mx-fcard__title { font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.mx-fcard__text { color: var(--v2-ink-secondary); font-size: 15px; line-height: 1.55; }
.mx-more { color: var(--v2-ink); font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: none; }
.mx-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.mx-album { display: flex; gap: 3px; }
.mx-album > img { flex: 1 1 auto; min-width: 0; height: 100%; object-fit: cover; }
.mx-album > div { display: flex; flex-direction: column; gap: 3px; }
.mx-album > div img { flex: 1 1 0; min-height: 0; width: 100%; object-fit: cover; }
.mx-album--card { width: 250px; height: 170px; overflow: hidden; border-radius: 16px; }
.mx-album--card > div { flex: 0 0 82px; }
.mx-fcard__illus .mx-sticker { margin-top: -10px; }
.mx-carousel__nav { display: flex; align-items: center; gap: 10px; margin-top: 32px; }
.mx-round { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--v2-line); border-radius: 50%; background: var(--v2-card); color: var(--v2-ink); cursor: pointer; }
.mx-round .mx-ico { font-size: 20px; }
.mx-round:disabled { color: var(--v2-ink-muted); cursor: default; opacity: 0.6; }

/* 7 · Ведение: three post examples */
.mx-sec--formats { padding: 96px 0 96px; }
.mx-formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.mx-format { display: flex; flex-direction: column; gap: 20px; }
.mx-format__panel { display: flex; align-items: center; justify-content: center; height: 560px; padding: 28px; border: 1px solid var(--v2-line); border-radius: 28px; }
.mx-format__desc { display: flex; flex-direction: column; gap: 8px; }
.mx-format__over { color: var(--tone-ink); font-size: 12px; font-weight: 700; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; }
.mx-format__title { font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.mx-format__desc > p:last-child { color: var(--v2-ink-secondary); font-size: 14px; line-height: 1.55; }
.mx-post__text p + p { margin-top: 0; }
.mx-code { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; border-radius: 10px; background: var(--v2-sand); }
.mx-code__head { display: flex; align-items: center; gap: 4px; color: var(--v2-ink-muted); font-size: 12px; font-weight: 500; line-height: 1.4; }
.mx-code__head span { flex: 1 1 auto; }
.mx-code__head .mx-ico { font-size: 14px; color: var(--v2-forest); }
.mx-code__head b { color: var(--v2-forest); font-weight: 500; }
.mx-code__body { font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: 13px; line-height: 1.4; }
.mx-post .mx-album { height: 240px; gap: 2px; }
.mx-post .mx-album > div { flex: 0 0 104px; gap: 2px; }
.mx-chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 40px; }
.mx-chips > p { color: var(--v2-ink-muted); font-size: 14px; font-weight: 500; line-height: 1.4; }
.mx-chips ul { display: contents; }
.mx-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 12px; border: 1px solid var(--v2-line); border-radius: var(--radius-pill); background: var(--v2-card); font-size: 14px; font-weight: 500; line-height: 1.4; }
.mx-chips .mx-ico { font-size: 18px; stroke-width: 1.75; }

/* 8 · Stats: rows inside the AI answer (format — posts — average views) */
.mx-steps { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 12px; border-radius: 18px; background: var(--v2-sand); }
.mx-steps > p:first-child { font-size: 14px; line-height: 1.55; }
.mx-step { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--v2-card); }
.mx-step__icon { font-size: 18px; color: var(--v2-green); }
.mx-step__icon--wait { color: var(--v2-butter-ink); }
.mx-step__text { display: flex; flex: 1 1 auto; flex-direction: column; gap: 1px; min-width: 0; }
.mx-step__text b { font-size: 13px; font-weight: 500; line-height: 18px; }
.mx-step__text small { color: var(--v2-ink-muted); font-size: 12px; line-height: 1.4; }


/* 6 · Autoposting: queue by days */
.mx-qlist { overflow: hidden; padding: 4px 0; border: 1px solid var(--v2-line); border-radius: 24px; background: var(--v2-card); box-shadow: var(--mx-shadow-pop); }
.mx-qlist__head { display: flex; align-items: center; gap: 8px; padding: 12px 18px; font-size: 14px; font-weight: 600; line-height: 1.4; }
.mx-qlist__head .mx-ico { font-size: 18px; }
.mx-day { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 9px 18px; border-top: 1px solid var(--v2-grid); }
.mx-day > b { width: 28px; color: var(--v2-ink-secondary); font-size: 13px; font-weight: 600; line-height: 1; }
.mx-day__free { color: var(--v2-ink-muted); font-size: 12px; line-height: 1.4; }
.mx-day__gap { width: 10px; }
.mx-hint { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid var(--v2-line); border-radius: 18px; background: var(--v2-card); font-size: 14px; line-height: 1.55; }
.mx-hint__pills { display: flex; flex-wrap: wrap; gap: 8px; }

/* 9 · Comments: the only dark block */
.mx-dark { position: relative; display: flex; align-items: center; gap: 64px; overflow: hidden; padding: 72px 64px; border-radius: 36px; background: var(--v2-night); }
.mx-dark::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(90deg, var(--v2-cream) 1px, transparent 1px), linear-gradient(180deg, var(--v2-cream) 1px, transparent 1px); background-position: 40px 0, 0 40px; background-size: 64px 100%, 100% 64px; opacity: 0.08; pointer-events: none; }
.mx-dark__text { position: relative; display: flex; flex: 1 1 0; flex-direction: column; align-items: flex-start; gap: 32px; min-width: 0; }
.mx-head--dark .mx-eyebrow { color: var(--v2-lilac); }
.mx-head--dark .mx-h2 { color: var(--v2-ink-on-dark); }
.mx-page .mx-head--dark .mx-h2 em { color: var(--v2-lilac); }
.mx-head--dark .mx-lead { color: var(--v2-ink-on-dark); opacity: 0.8; }
.mx-dark .mx-ticks .mx-ticks__title { color: var(--v2-ink-on-dark); }
.mx-dark .mx-ticks p { color: var(--v2-ink-on-dark); opacity: 0.72; }
.mx-dark__note { padding: 8px 14px 8px 12px; border-radius: var(--radius-pill); background: var(--v2-lilac); box-shadow: var(--v2-shadow-card); color: var(--v2-lilac-ink); font-size: 14px; font-weight: 600; line-height: 1.4; }
.mx-phone--thread { position: relative; flex: 0 0 380px; height: 700px; border-color: var(--v2-ink); box-shadow: none; }
.mx-phone--thread .mx-phone__feed { align-items: stretch; }
.mx-msg--full { width: 100%; }

/* 10 · Bot panel */
.mx-botpanel { overflow: hidden; border: 1px solid var(--v2-line); border-radius: 32px; background: var(--v2-sand); }
.mx-botpanel__chat { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 24px; }
.mx-botpanel__chat > .mx-msg { align-self: center; }
.mx-picker { width: min(420px, 100%); padding: 6px 0; border: 1px solid var(--v2-line); border-radius: 20px; background: var(--v2-card); box-shadow: 0 6px 6px rgba(28, 43, 37, 0.08), 0 24px 24px rgba(28, 43, 37, 0.14); }
.mx-picker__head { padding: 10px 16px 8px; font-size: 14px; font-weight: 600; line-height: 1.4; }
.mx-picker__row { display: flex; align-items: center; gap: 10px; padding: 8px 16px; }
.mx-picker__row.is-picked { background: var(--v2-lime-soft); }
.mx-picker__row > .mx-ico { font-size: 20px; color: var(--v2-forest); }
.mx-picker__name { display: flex; flex: 1 1 auto; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.4; }
.mx-picker__name b { font-size: 14px; font-weight: 600; }
.mx-picker__name small { color: var(--v2-ink-muted); font-size: 12px; }
.mx-botpanel__btns { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--v2-line); background: var(--v2-card); }
.mx-botpanel__caption { padding-bottom: 12px; background: var(--v2-card); text-align: center; }

/* 5 · Crossposting: Было → ИИ → Стало */
.mx-multi { display: flex; flex-direction: column; gap: 28px; padding: 48px; border-radius: 36px; background: var(--v2-rose); }
.mx-multi .mx-h2 em { color: var(--v2-rose-ink); }
.mx-multi__top { display: flex; align-items: flex-end; gap: 40px; }
.mx-multi__top .mx-head { flex: 1 1 0; min-width: 0; }
.mx-facts { display: flex; flex: none; gap: 12px; }
.mx-fact { display: flex; flex-direction: column; gap: 2px; padding: 16px 20px; border-radius: 20px; background: var(--v2-card); white-space: nowrap; }
.mx-fact b { color: var(--v2-rose-ink); font-size: 30px; font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; }
.mx-fact span { color: var(--v2-ink-secondary); font-size: 13px; font-weight: 500; line-height: 18px; }
.mx-multi__posts { display: flex; justify-content: center; align-items: center; gap: 20px; padding: 28px; border-radius: 28px; }
.mx-multi__col { display: flex; flex: 0 1 320px; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.mx-multi__mid { display: flex; flex: 0 1 300px; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.mx-multi__midtitle { font-size: 14px; font-weight: 600; line-height: 1.3; }
.mx-changes { display: flex; flex-direction: column; gap: 10px; width: 100%; padding: 14px; border: 1px solid var(--v2-line); border-radius: 14px; background: var(--v2-card); }
.mx-changes li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 18px; }
.mx-changes .mx-ico { flex: none; margin-top: 1px; font-size: 16px; color: var(--v2-green); }
.mx-fromtg { display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 12px 14px; border-radius: 14px; background: var(--v2-sky); color: var(--v2-sky-ink); font-size: 12px; line-height: 17px; }
.mx-fromtg b { font-size: 13px; font-weight: 600; line-height: 1.3; }
.mx-copy--now { border: 3px solid var(--v2-lime); }
.mx-copy__head .mx-ava { flex: none; }
.mx-copy { display: flex; flex-direction: column; gap: 10px; width: 100%; padding: 14px 16px; border-radius: 16px; background: var(--v2-card); box-shadow: var(--mx-shadow-tile); }
.mx-copy__head { display: flex; align-items: center; gap: 8px; }
.mx-copy__head img { width: 20px; height: 20px; }
.mx-copy__head span { display: flex; flex-direction: column; line-height: 1.4; }
.mx-copy__head b { font-size: 14px; font-weight: 600; }
.mx-copy__head small { color: var(--v2-ink-muted); font-size: 12px; }
.mx-copy__text { font-size: 14px; line-height: 1.55; }
.mx-copy__text b { font-size: 15px; font-weight: 600; }
.mx-copy__carousel { display: flex; gap: 4px; }
.mx-copy__carousel img { flex: 1 1 0; min-width: 0; height: 76px; border-radius: 8px; object-fit: cover; }
.mx-copy__photo img { width: 100%; height: 150px; border-radius: 12px; object-fit: cover; }
.mx-copy .mx-ibtn { width: 100%; }
.mx-poll { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--v2-sand); }
.mx-poll__q { font-size: 13px; font-weight: 500; line-height: 18px; }
.mx-poll p:not(.mx-poll__q) { padding: 6px 10px; border-radius: 8px; background: var(--v2-card); color: var(--v2-ink-secondary); font-size: 12px; line-height: 1.4; }
.mx-multi__ai { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: var(--radius-pill); background: var(--v2-card); box-shadow: var(--v2-shadow-card); font-size: 14px; font-weight: 500; line-height: 1.4; }
.mx-multi__ai > span:first-child { font-size: 16px; }
.mx-multi__caption { color: var(--v2-rose-ink); font-size: 12px; font-weight: 500; line-height: 1.4; }

/* --- Tablet --- */
@media (max-width: 1239px) {
  .mx-split { gap: 40px; }
  .mx-split__panel { flex-basis: min(var(--pw, 560px), 50%); }
  .mx-dark { gap: 40px; padding: 56px 40px; }
  .mx-multi__top { flex-direction: column; align-items: flex-start; }
  .mx-multi__posts { flex-direction: column; align-items: center; }
  .mx-multi__col, .mx-multi__mid { flex: none; width: min(320px, 100%); }
  .mx-multi__mid .mx-node__mark { transform: rotate(90deg); }
}
@media (max-width: 1023px) {
  .mx-split, .mx-split--rev { flex-direction: column; align-items: stretch; }
  .mx-split--rev .mx-split__panel { order: 2; }
  .mx-split__panel { flex: none; width: min(var(--pw, 560px), 100%); margin-inline: auto; }
  .mx-formats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mx-dark { flex-direction: column; align-items: stretch; }
  .mx-phone--thread { flex: none; width: min(380px, 100%); margin-inline: auto; }
}

/* --- Phone --- */
@media (max-width: 767px) {
  .mx-ticks { gap: 16px; }
  .mx-ticks li.mx-desk-item { display: none; }
  .mx-ticks li { gap: 12px; }
  .mx-tick { flex-basis: 26px; width: 26px; height: 26px; }
  .mx-tick .mx-ico { font-size: 15px; }
  .mx-ticks .mx-ticks__title { font-size: 16px; }
  .mx-ticks p { font-size: 14px; }
  .mx-ticks-cols { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .mx-split__text { gap: 24px; }
  .mx-panel { padding: 14px 14px 16px; border-radius: 24px; }
  .mx-carousel { gap: 12px; margin-top: 24px; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .mx-fcard { flex-basis: 280px; }
  .mx-carousel__nav { margin-top: 20px; }
  .mx-sec--formats { padding: 0 0 64px; }
  .mx-post--w300 { width: min(300px, 100%); }
  .mx-chips { justify-content: flex-start; gap: 8px; margin-top: 28px; }
  .mx-chips > p { width: 100%; }
  .mx-chips li { padding: 6px 12px 6px 10px; font-size: 13px; }
  .mx-dark { padding: 32px 20px 20px; border-radius: 28px; gap: 28px; }
  .mx-dark__text { gap: 24px; }
  .mx-dark__note { border-radius: 16px; white-space: normal; }
  .mx-phone--thread { height: 620px; }
  .mx-botpanel { border-radius: 24px; }
  .mx-botpanel__chat { padding: 16px 12px; }
  .mx-multi { gap: 20px; padding: 24px 16px; border-radius: 28px; }
  .mx-multi__top { gap: 20px; }
  .mx-facts { flex-direction: column; width: 100%; gap: 8px; }
  .mx-fact { padding: 12px 14px; white-space: normal; }
  .mx-fact b { font-size: 24px; }
  .mx-multi__posts { align-items: stretch; padding: 14px; border-radius: 22px; }
  .mx-multi__col, .mx-multi__mid { width: 100%; }
  .mx-multi__col .mx-pill { white-space: normal; }
  .mx-hint__pills { flex-direction: column; align-items: flex-start; }
  .mx-multi__ai { align-items: flex-start; border-radius: 18px; }
}
