/* Landing /telegram-kanal/, part 2 — blocks 4–9: features carousel, three formats, split
   sections with example panels (posts, autoposting, images, bot), the dark preview block and
   Telegram · ВК · MAX. Loaded without blocking the first paint; shared pieces are in
   telegram-kanal-landing.css. Figma A 627:5. */

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

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

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

/* 4а · Three formats */
.tg-sec--formats { padding: 96px 0 96px; }
.tg-formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.tg-format { display: flex; flex-direction: column; gap: 20px; }
.tg-format__panel { display: flex; align-items: center; justify-content: center; height: 560px; padding: 28px; border: 1px solid var(--v2-line); border-radius: 28px; }
.tg-format__desc { display: flex; flex-direction: column; gap: 8px; }
.tg-format__over { color: var(--tone-ink); font-size: 12px; font-weight: 700; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; }
.tg-format__title { font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.tg-format__desc > p:last-child { color: var(--v2-ink-secondary); font-size: 14px; line-height: 1.55; }
.tg-post__text p + p { margin-top: 0; }
.tg-code { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; border-radius: 10px; background: var(--v2-sand); }
.tg-code__head { display: flex; align-items: center; gap: 4px; color: var(--v2-ink-muted); font-size: 12px; font-weight: 500; line-height: 1.4; }
.tg-code__head span { flex: 1 1 auto; }
.tg-code__head .tg-ico { font-size: 14px; color: var(--v2-forest); }
.tg-code__head b { color: var(--v2-forest); font-weight: 500; }
.tg-code__body { font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: 13px; line-height: 1.4; }
.tg-post .tg-album { height: 240px; gap: 2px; }
.tg-post .tg-album > div { flex: 0 0 104px; gap: 2px; }
.tg-spoiler { position: relative; display: block; flex: 0 0 78px; overflow: hidden; }
.tg-spoiler img { height: 100%; filter: blur(6px) brightness(0.8); transform: scale(1.15); }
.tg-spoiler::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, var(--v2-cream) 0.8px, transparent 1.2px); background-size: 7px 7px; opacity: 0.85; }
.tg-chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 40px; }
.tg-chips > p { color: var(--v2-ink-muted); font-size: 14px; font-weight: 500; line-height: 1.4; }
.tg-chips ul { display: contents; }
.tg-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; }
.tg-chips .tg-ico { font-size: 18px; stroke-width: 1.75; }

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

/* 7 · Images: three drawn variants inside the AI answer */
.tg-bubble--ai.tg-bubble--full { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.tg-variants { display: flex; gap: 8px; }
.tg-variant { position: relative; flex: 1 1 0; min-width: 0; height: 120px; overflow: hidden; border-radius: 14px; }
.tg-variant img { width: 100%; height: 100%; object-fit: cover; }
.tg-variant .tg-tag { position: absolute; left: 8px; top: 8px; }
.tg-variant--picked { border: 3px solid var(--v2-forest); }
.tg-variant--picked .tg-tag { left: 5px; top: 5px; }

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

/* 6б · Preview: the only dark block */
.tg-dark { position: relative; display: flex; align-items: center; gap: 64px; overflow: hidden; padding: 72px 64px; border-radius: 36px; background: var(--v2-night); }
.tg-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; }
.tg-dark__text { position: relative; display: flex; flex: 1 1 0; flex-direction: column; align-items: flex-start; gap: 32px; min-width: 0; }
.tg-head--dark .tg-eyebrow { color: var(--v2-lilac); }
.tg-head--dark .tg-h2 { color: var(--v2-ink-on-dark); }
.tg-page .tg-head--dark .tg-h2 em { color: var(--v2-lime); }
.tg-head--dark .tg-lead { color: var(--v2-ink-on-dark); opacity: 0.8; }
.tg-dark .tg-ticks .tg-ticks__title { color: var(--v2-ink-on-dark); }
.tg-dark .tg-ticks p { color: var(--v2-ink-on-dark); opacity: 0.72; }
.tg-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; }
.tg-phone--preview { position: relative; flex: 0 0 380px; height: 700px; border-color: var(--v2-ink); box-shadow: none; }

/* 8 · Bot panel */
.tg-botpanel { overflow: hidden; border: 1px solid var(--v2-line); border-radius: 32px; background: var(--v2-sand); }
.tg-botpanel__chat { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 24px; }
.tg-botpanel__chat > .tg-tgbubble { align-self: center; }
.tg-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); }
.tg-picker__head { padding: 10px 16px 8px; font-size: 14px; font-weight: 600; line-height: 1.4; }
.tg-picker__row { display: flex; align-items: center; gap: 10px; padding: 8px 16px; }
.tg-picker__row.is-picked { background: var(--v2-lime-soft); }
.tg-picker__row > .tg-ico { font-size: 20px; color: var(--v2-forest); }
.tg-picker__name { display: flex; flex: 1 1 auto; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.4; }
.tg-picker__name b { font-size: 14px; font-weight: 600; }
.tg-picker__name small { color: var(--v2-ink-muted); font-size: 12px; }
.tg-botpanel__btns { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--v2-line); background: var(--v2-card); }
.tg-botpanel__caption { padding-bottom: 12px; background: var(--v2-card); text-align: center; }

/* 9 · Telegram · ВК · MAX */
.tg-multi { display: flex; flex-direction: column; gap: 28px; padding: 48px; border-radius: 36px; background: var(--v2-rose); }
.tg-multi .tg-h2 em { color: var(--v2-rose-ink); }
.tg-multi__top { display: flex; align-items: flex-end; gap: 40px; }
.tg-multi__top .tg-head { flex: 1 1 0; min-width: 0; }
.tg-facts { display: flex; flex: none; gap: 12px; }
.tg-fact { display: flex; flex-direction: column; gap: 2px; padding: 16px 20px; border-radius: 20px; background: var(--v2-card); white-space: nowrap; }
.tg-fact b { color: var(--v2-rose-ink); font-size: 30px; font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; }
.tg-fact span { color: var(--v2-ink-secondary); font-size: 13px; font-weight: 500; line-height: 18px; }
.tg-multi__changes { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.tg-multi__changes > span { color: var(--v2-ink-secondary); font-size: 14px; font-weight: 500; line-height: 1.4; }
.tg-multi__posts { display: flex; justify-content: center; align-items: flex-start; gap: 20px; padding: 28px; border-radius: 28px; }
.tg-multi__col { display: flex; flex: 0 1 320px; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.tg-multi__col--main { flex-basis: 400px; }
.tg-post--main .tg-post__bubble { border: 3px solid var(--v2-lime); }
.tg-post--main .tg-ibtn { border: 2px solid var(--v2-lime); }
.tg-copy { display: flex; flex-direction: column; gap: 10px; width: 100%; padding: 14px 16px; border-radius: 16px; background: var(--v2-card); box-shadow: var(--tg-shadow-tile); }
.tg-copy__head { display: flex; align-items: center; gap: 8px; }
.tg-copy__head img { width: 20px; height: 20px; }
.tg-copy__head span { display: flex; flex-direction: column; line-height: 1.4; }
.tg-copy__head b { font-size: 14px; font-weight: 600; }
.tg-copy__head small { color: var(--v2-ink-muted); font-size: 12px; }
.tg-copy__text { font-size: 14px; line-height: 1.55; }
.tg-copy__text b { font-size: 15px; font-weight: 600; }
.tg-copy__carousel { display: flex; gap: 4px; }
.tg-copy__carousel img { flex: 1 1 0; min-width: 0; height: 76px; border-radius: 8px; object-fit: cover; }
.tg-copy__photo img { width: 100%; height: 150px; border-radius: 12px; object-fit: cover; }
.tg-poll { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--v2-sand); }
.tg-poll__q { font-size: 13px; font-weight: 500; line-height: 18px; }
.tg-poll p:not(.tg-poll__q) { padding: 6px 10px; border-radius: 8px; background: var(--v2-card); color: var(--v2-ink-secondary); font-size: 12px; line-height: 1.4; }
.tg-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; }
.tg-multi__ai > span:first-child { font-size: 16px; }
.tg-multi__caption { color: var(--v2-rose-ink); font-size: 12px; font-weight: 500; line-height: 1.4; }

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

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