/* Лендинг helpbot.uz. После правки пересоберите страницы: php landing/build.php */

:root {
  --bg: #ffffff;
  --bg-soft: #f3f8fc;
  --card: #ffffff;
  --ink: #0d1b2a;
  --ink-2: #46586b;
  --ink-3: #6f8093;
  --line: #e1e9f1;
  --accent: #1878bd;
  --accent-soft: #e6f3fc;
  --btn: #1a7fc4;
  --btn-hover: #136aa8;
  --shadow: 0 24px 60px -24px rgba(16, 62, 102, .28), 0 2px 6px rgba(16, 62, 102, .06);

  --tg-wall: linear-gradient(155deg, #cfe3f4 0%, #d3ecdf 100%);
  --tg-head: #ffffff;
  --tg-msg: #ffffff;
  --tg-ink: #111b26;
  --tg-meta: #8a98a6;
  --tg-key: rgba(22, 45, 66, .42);
  --tg-blue: #3390ec;
  --tg-green: #2fae4f;
  --tg-red: #e5484d;

  --radius: 14px;
  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1621;
    --bg-soft: #121d2a;
    --card: #17222e;
    --ink: #f0f5fa;
    --ink-2: #aebccb;
    --ink-3: #8496a8;
    --line: #233243;
    --accent: #6bb8f2;
    --accent-soft: #15314a;
    --btn: #2389d2;
    --btn-hover: #3a9be0;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .3);

    --tg-wall: linear-gradient(155deg, #16283a 0%, #142e2b 100%);
    --tg-head: #17222e;
    --tg-msg: #1d2b3a;
    --tg-ink: #f0f5fa;
    --tg-meta: #8fa1b3;
    --tg-key: rgba(255, 255, 255, .14);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

h1, h2 { font-weight: 700; letter-spacing: -.022em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); line-height: 1.06; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.14; }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }

code { font: 500 .9em/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1140px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 40px); }
.center { text-align: center; }

.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Кнопки */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; border-radius: 12px;
  background: var(--btn); color: #fff;
  font-weight: 600; font-size: 1rem; line-height: 1.2; white-space: nowrap;
  transition: background-color .15s, transform .15s, border-color .15s;
}
.btn:hover { background: var(--btn-hover); }
.btn:active { transform: translateY(1px); }
.btn--small { padding: 9px 14px; font-size: .92rem; border-radius: 10px; }
.btn--big { padding: 16px 26px; font-size: 1.06rem; border-radius: 14px; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { background: var(--bg-soft); }
.btn--white { background: #fff; color: #0f5f99; }
.btn--white:hover { background: #eaf5fd; }

/* Шапка */

.header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__row { display: flex; align-items: center; gap: 22px; height: 66px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.16rem; letter-spacing: -.01em; }
.logo-mark { width: 30px; height: 30px; flex: none; }

.nav { display: flex; gap: 26px; margin-left: 18px; margin-right: auto; font-size: .95rem; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }

.langs { display: flex; padding: 3px; border-radius: 10px; background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--line); font-size: .8rem; font-weight: 600; }
.langs a { padding: 5px 9px; border-radius: 7px; color: var(--ink-3); }
.langs a:hover { color: var(--ink); }
.langs a[aria-current] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(16, 62, 102, .16); }

/* Первый экран */

.hero {
  padding: 72px 0 40px;
  background:
    radial-gradient(760px 420px at 88% -6%, color-mix(in srgb, var(--btn) 17%, transparent), transparent 70%),
    radial-gradient(520px 320px at -4% 18%, color-mix(in srgb, var(--tg-green) 9%, transparent), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 56px; align-items: center; }

.badge {
  display: inline-block; margin-bottom: 22px; padding: 7px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: .88rem; font-weight: 600;
}
.lead { margin-top: 22px; max-width: 34em; font-size: 1.18rem; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__note { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-size: .93rem; color: var(--ink-3); }

.hero__bottom { position: relative; margin-top: 104px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.facts li { padding: 26px 24px 8px 0; }
.facts li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.facts b { display: block; font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.facts span { display: block; margin-top: 6px; font-size: .93rem; line-height: 1.45; color: var(--ink-2); }

/* Секции */

.section { padding: 104px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section__lead { margin-top: 16px; font-size: 1.1rem; color: var(--ink-2); }
.eyebrow { margin-bottom: 12px; color: var(--accent); font-size: .82rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }

/* Макеты экранов Telegram */

.tg { border-radius: 26px; overflow: hidden; background: var(--tg-head); box-shadow: var(--shadow), 0 0 0 1px var(--line); color: var(--tg-ink); font-size: .93rem; line-height: 1.42; }
.tg--hero { transform: rotate(1.4deg); }
.tg__head { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.tg__head b { display: block; font-weight: 600; }
.tg__head small { display: block; font-size: .8rem; color: var(--tg-meta); }
.tg__avatar { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: linear-gradient(160deg, #f6a15f, #d8527a); color: #fff; font-weight: 700; }
.tg__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 16px 20px; background: var(--tg-wall); }

.msg { position: relative; max-width: 88%; padding: 9px 13px; border-radius: 16px 16px 16px 6px; background: var(--tg-msg); box-shadow: 0 1px 1.5px rgba(16, 35, 47, .14); }
.msg p + p { margin-top: 4px; }
.msg--post { width: 100%; max-width: 100%; }
.msg--post + .kb { margin-top: -2px; }
.msg__media {
  height: 168px; margin: -5px -9px 10px; border-radius: 12px;
  background:
    radial-gradient(120px 120px at 78% 30%, rgba(255, 255, 255, .5), transparent 70%),
    radial-gradient(180px 140px at 20% 90%, rgba(126, 40, 88, .55), transparent 70%),
    linear-gradient(135deg, #f8cf9d 0%, #ee8e6c 52%, #c25583 100%);
}
.msg__meta { display: block; margin-top: 4px; text-align: right; font-size: .74rem; color: var(--tg-meta); }

.kb { display: grid; gap: 5px; width: 100%; }
.kb__row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 5px; }
.kb__btn { padding: 10px 8px; border-radius: 10px; background: var(--tg-key); color: #fff; font-weight: 500; font-size: .9rem; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb__btn.is-blue { background: var(--tg-blue); }
.kb__btn.is-green { background: var(--tg-green); }
.kb__btn.is-red { background: var(--tg-red); }

/* Шаги */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 44px; counter-reset: step; }
.steps li { position: relative; overflow: hidden; padding: 0 0 30px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; top: 18px; left: 18px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--btn); color: #fff; font-weight: 700; font-size: 1.1rem; }
.steps h3, .steps p { padding: 0 28px; }
.steps p { margin-top: 10px; color: var(--ink-2); font-size: .98rem; }

/* Сравнение */

.compare { border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.compare table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.compare th, .compare td { padding: 18px 24px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { font-size: .95rem; font-weight: 600; color: var(--ink-2); }
.compare tbody th { width: 24%; font-weight: 600; }
.compare tbody td { width: 38%; color: var(--ink-2); }
.compare .compare__us { background: var(--accent-soft); color: var(--ink); font-weight: 500; }
.compare thead .compare__us { color: var(--accent); font-weight: 700; font-size: 1.05rem; }

/* Вопросы */

.faq { display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--accent); font-size: 1.6rem; font-weight: 400; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq h3 { font-size: 1.06rem; }
.faq details > p { padding: 0 24px 22px; color: var(--ink-2); }
.faq code { padding: 2px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--ink); overflow-wrap: anywhere; }

/* Финальный призыв и подвал */

.final {
  padding: 72px 32px; border-radius: 32px; text-align: center; color: #fff;
  background:
    radial-gradient(520px 300px at 85% 0%, rgba(255, 255, 255, .22), transparent 70%),
    linear-gradient(135deg, #136aa8 0%, #229ed9 100%);
}
.final p { margin: 16px auto 32px; max-width: 32em; font-size: 1.15rem; color: rgba(255, 255, 255, .88); }

.footer { padding: 44px 0 36px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .93rem; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer__row p { margin-top: 10px; }
.footer .logo { color: var(--ink); }
.footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.footer__links a:hover { color: var(--ink); }
.footer__links a:first-child { color: var(--accent); font-weight: 600; }
.footer__legal { margin-top: 28px; color: var(--ink-3); font-size: .84rem; }

/* Возможности: тёмная сетка карточек с анимированными иллюстрациями */

.bento {
  --b-bg: #eef1f5;
  --b-tile: #fbfcfd;
  --b-line: rgba(13, 27, 42, .09);
  --b-ink: #0d1b2a;
  --b-ink-2: #53657a;
  --b-ink-3: #9aa7b5;
  --b-inset: #eef2f6;
  --b-accent: #1878bd;
  --b-code: #33475b;
  --b-bubble: #ffffff;
  --b-skel: rgba(13, 27, 42, .17);
  --b-skel-2: rgba(13, 27, 42, .09);
  --b-key: rgba(22, 45, 66, .42);
  --b-node: #dfe6ee;
  --b-off: #c5cfda;
  --b-glow: rgba(42, 150, 220, .1);
  --b-shadow: rgba(16, 62, 102, .3);
  --loop: 7s;
  --shift: 0s;
  padding: 104px 0;
  background:
    radial-gradient(900px 420px at 50% -10%, var(--b-glow), transparent 70%),
    var(--b-bg);
  color: var(--b-ink);
}

@media (prefers-color-scheme: dark) {
  .bento {
    --b-bg: #0a1018;
    --b-tile: #121a25;
    --b-line: rgba(255, 255, 255, .08);
    --b-ink: #f0f5fa;
    --b-ink-2: #98a8b9;
    --b-ink-3: #5f7083;
    --b-inset: #0c131c;
    --b-accent: #54b4f5;
    --b-code: #cfe0f0;
    --b-bubble: #1d2b3a;
    --b-skel: rgba(255, 255, 255, .26);
    --b-skel-2: rgba(255, 255, 255, .14);
    --b-key: rgba(255, 255, 255, .13);
    --b-node: #1b2735;
    --b-off: #2a3746;
    --b-glow: rgba(42, 150, 220, .2);
    --b-shadow: rgba(0, 0, 0, .8);
  }
}
.bento .eyebrow { color: var(--b-accent); }
.bento .section__lead { color: var(--b-ink-2); }

.bento__grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "buttons posts id"
    "privacy posts extras"
    "privacy publish extras"
    "schedule schedule schedule";
}
.tile--buttons { grid-area: buttons; }
.tile--posts { grid-area: posts; }
.tile--id { grid-area: id; }
.tile--privacy { grid-area: privacy; }
.tile--publish { grid-area: publish; }
.tile--extras { grid-area: extras; }
.tile--schedule { grid-area: schedule; }

/* У каждой карточки свой цикл и сдвиг: анимации не начинаются и не заканчиваются одновременно. */
.tile--buttons { --loop: 6.5s; --shift: -1s; }
.tile--posts { --loop: 9s; --shift: -4.5s; }
.tile--id { --loop: 7s; --shift: -2.6s; }
.tile--privacy { --loop: 10s; --shift: -6.2s; }
.tile--publish { --loop: 7.5s; --shift: -3.4s; }
.tile--extras { --loop: 8.5s; --shift: -5.3s; }
.tile--schedule { --loop: 11s; --shift: -1.8s; }

.tile {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  padding: 26px 26px 28px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 40%), var(--b-tile);
  box-shadow: inset 0 0 0 1px var(--b-line), inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: box-shadow .25s;
}
.tile:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--b-accent) 45%, transparent), inset 0 1px 0 rgba(255, 255, 255, .06); }
.tile h3 { font-size: 1.04rem; line-height: 1.35; }
.tile > p, .tile__text p { margin-top: 8px; color: var(--b-ink-2); font-size: .95rem; line-height: 1.55; }
.tile__art { display: flex; flex: 1; flex-direction: column; justify-content: center; min-height: 150px; }
.tile > .tile__art:first-child { margin-bottom: 24px; }
.tile > .tile__art:last-child { margin-top: 28px; }

/* Кнопки: строка печатается, под ней появляется кнопка */

.art-type { align-items: center; gap: 16px; }
.art-type__line {
  max-width: 100%; padding: 10px 14px; border-radius: 10px; overflow: hidden;
  background: var(--b-inset); box-shadow: inset 0 0 0 1px var(--b-line);
  color: var(--b-code); font-size: .8rem; white-space: nowrap;
}
.art-type__line span {
  display: inline-block; overflow: hidden; vertical-align: bottom; width: calc(var(--n) * 1ch);
  border-right: 2px solid var(--b-accent);
  animation: type var(--loop) steps(var(--n)) infinite, caret .8s step-end infinite;
  animation-delay: var(--shift), 0s;
}
.art-type__btn {
  min-width: 62%; padding: 11px 18px; border-radius: 11px;
  background: var(--tg-green); color: #fff; font-weight: 600; font-size: .92rem; text-align: center;
  box-shadow: 0 10px 30px -8px rgba(47, 174, 79, .6);
  animation: pop var(--loop) infinite;
  animation-delay: var(--shift);
}
@keyframes type { 0% { width: 0; } 36%, 80% { width: calc(var(--n) * 1ch); } 94%, 100% { width: 0; } }
@keyframes caret { 50% { border-color: transparent; } }
@keyframes pop {
  0%, 40% { opacity: 0; transform: translateY(8px) scale(.94); }
  47% { opacity: 1; transform: translateY(0) scale(1.03); }
  52%, 66% { opacity: 1; transform: none; }
  74%, 100% { opacity: 0; transform: none; }
}

/* Конструктор: пост собирается по частям */

.art-post { align-self: center; width: min(280px, 100%); gap: 6px; }
.art-post__card { padding: 8px 8px 14px; border-radius: 16px 16px 16px 6px; background: var(--b-bubble); box-shadow: 0 20px 50px -20px var(--b-shadow), 0 0 0 1px var(--b-line); }
.art-post__media {
  height: 124px; border-radius: 10px;
  background: linear-gradient(135deg, #f8cf9d 0%, #ee8e6c 52%, #c25583 100%);
  animation: rise var(--loop) infinite backwards; animation-delay: var(--shift);
}
.art-post__line { display: block; height: 9px; margin: 12px 6px 0; border-radius: 5px; background: var(--b-skel); transform-origin: left; animation: draw var(--loop) infinite backwards; animation-delay: calc(var(--shift) + .8s); }
.art-post__line--short { width: 58%; margin-top: 8px; background: var(--b-skel-2); animation-delay: calc(var(--shift) + 1.4s); }
.art-post__keys { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.art-post__keys span { padding: 9px 6px; border-radius: 9px; background: var(--b-key); color: #fff; font-weight: 500; font-size: .84rem; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; animation: key var(--loop) infinite backwards; animation-delay: calc(var(--shift) + 2.3s); }
.art-post__keys span:first-child { grid-column: 1 / -1; }
.art-post__keys span:nth-child(2) { animation-delay: calc(var(--shift) + 2.9s); }
.art-post__keys span:nth-child(3) { animation-delay: calc(var(--shift) + 3.5s); }
.art-post__keys .is-green { background: var(--tg-green); }
.art-post__keys .is-blue { background: var(--tg-blue); }
@keyframes rise { 0%, 3% { opacity: 0; transform: translateY(10px); } 10%, 82% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: none; } }
@keyframes draw { 0%, 3% { transform: scaleX(0); opacity: 1; } 12%, 82% { transform: none; opacity: 1; } 90%, 100% { transform: none; opacity: 0; } }
@keyframes key { 0%, 3% { opacity: 0; transform: scale(.9); } 9%, 82% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: none; } }

/* ID: цифры прокручиваются до нужных */

.art-id { flex-direction: row; align-items: center; justify-content: center; gap: 12px; }
.art-id__label { padding: 5px 10px; border-radius: 8px; background: color-mix(in srgb, var(--b-accent) 15%, transparent); color: var(--b-accent); font-size: .78rem; font-weight: 700; letter-spacing: .06em; }
.art-id__num {
  display: flex; padding: 10px 14px; border-radius: 12px;
  background: var(--b-inset); box-shadow: inset 0 0 0 1px var(--b-line);
  font: 600 clamp(1rem, 1.7vw, 1.3rem)/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--b-ink);
}
.art-id__num b { display: block; width: 1ch; height: 1.5em; overflow: hidden; font-weight: inherit; }
.art-id__num i {
  display: block; width: 1ch; font-style: normal; word-break: break-all;
  transform: translateY(calc(var(--d) * -1.5em));
  animation: roll var(--loop) cubic-bezier(.2, .8, .2, 1) infinite; animation-delay: calc(var(--shift) + var(--i) * .12s);
}
@keyframes roll { 0% { transform: translateY(0); } 30%, 100% { transform: translateY(calc(var(--d) * -1.5em)); } }

/* Права: строки проверяются по очереди */

.art-rights { justify-content: flex-start; }
.art-rights__title { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; background: var(--b-inset); box-shadow: inset 0 0 0 1px var(--b-line); color: var(--b-code); font: 500 .8rem/1.3 ui-monospace, "Cascadia Mono", Consolas, monospace; }
.art-rights__spinner { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2px solid var(--b-skel); border-top-color: var(--b-accent); animation: spin 1s linear infinite; }
.art-rights ul { position: relative; display: grid; gap: 4px; margin: 6px 0 0 20px; padding: 14px 0 0; }
.art-rights ul::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 14px; width: 1px; background: var(--b-line); }
.art-rights li { position: relative; padding: 8px 0 8px 34px; color: var(--b-ink-2); font-size: .92rem; animation: check var(--loop) infinite; animation-delay: calc(var(--shift) + var(--i) * .45s); }
.art-rights li::before { content: ""; position: absolute; left: 0; top: 50%; width: 15px; height: 15px; margin-top: -8px; border-radius: 50%; background: var(--b-tile) center / 9px no-repeat; box-shadow: 0 0 0 1px var(--b-ink-3); }
.art-rights .is-on { color: var(--b-ink); }
.art-rights .is-on::before { background-color: var(--tg-green); box-shadow: 0 0 0 4px rgba(47, 174, 79, .18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2 5.2 2 2 4-4.2'/%3E%3C/svg%3E"); }
.art-rights .is-off { text-decoration: line-through; text-decoration-color: var(--b-ink-3); }
.art-rights .is-off::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%235f7083' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M3 3l4 4M7 3 3 7'/%3E%3C/svg%3E"); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes check { 0%, 6% { opacity: .2; transform: translateX(-6px); } 14%, 90% { opacity: 1; transform: none; } 100% { opacity: .2; transform: none; } }

/* Публикация: пост расходится по каналам */

.art-hub svg { display: block; width: 100%; max-width: 360px; margin: 0 auto; overflow: visible; }
.art-hub__lines path { fill: none; stroke: var(--b-accent); opacity: .6; stroke-width: 1.5; stroke-dasharray: 3 7; animation: flow 1s linear infinite; }
.art-hub__nodes circle { fill: var(--b-node); stroke: var(--b-line); transform-box: fill-box; transform-origin: center; animation: node var(--loop) infinite; animation-delay: calc(var(--shift) + var(--i) * .5s); }
.art-hub__checks path { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; animation: tick var(--loop) infinite; animation-delay: calc(var(--shift) + var(--i) * .5s); }
.art-hub__core { fill: #229ed9; filter: drop-shadow(0 8px 22px rgba(34, 158, 217, .55)); }
@keyframes flow { to { stroke-dashoffset: -10; } }
@keyframes node { 0%, 12% { fill: var(--b-node); transform: scale(1); } 18% { fill: var(--tg-green); transform: scale(1.14); } 24%, 86% { fill: var(--tg-green); transform: scale(1); } 100% { fill: var(--b-node); } }
@keyframes tick { 0%, 14% { opacity: 0; } 22%, 86% { opacity: 1; } 100% { opacity: 0; } }

/* Альбом и настройки: переключатели щёлкают по очереди */

.art-extras { justify-content: flex-start; gap: 18px; }
.art-extras__album { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 54px 54px; gap: 5px; }
.art-extras__album i { border-radius: 9px; background: linear-gradient(135deg, #f8cf9d, #ee8e6c 55%, #c25583); animation: shine var(--loop) infinite; animation-delay: var(--shift); }
.art-extras__album i:first-child { grid-row: 1 / 3; }
.art-extras__album i:nth-child(2) { background: linear-gradient(135deg, #8fd3f4, #4f8fe8); animation-delay: calc(var(--shift) + .6s); }
.art-extras__album i:nth-child(3) { grid-column: 3; grid-row: 1 / 3; background: linear-gradient(160deg, #b8e986, #2fae4f); animation-delay: calc(var(--shift) + 1.2s); }
.art-extras__album i:nth-child(4) { grid-column: 2; grid-row: 2; background: linear-gradient(135deg, #d4b4ff, #7c5ce0); animation-delay: calc(var(--shift) + 1.8s); }
.art-extras li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--b-line); color: var(--b-ink); font-size: .92rem; }
.art-extras__switch { position: relative; width: 38px; height: 22px; flex: none; border-radius: 11px; background: var(--tg-blue); animation: track var(--loop) infinite; animation-delay: calc(var(--shift) + var(--i) * .9s); }
.art-extras__switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transform: translateX(16px); animation: knob var(--loop) infinite; animation-delay: inherit; }
@keyframes shine { 0%, 100% { opacity: .55; transform: scale(.96); } 12%, 80% { opacity: 1; transform: none; } }
@keyframes track { 0%, 12% { background: var(--b-off); } 18%, 100% { background: var(--tg-blue); } }
@keyframes knob { 0%, 12% { transform: translateX(0); } 18%, 100% { transform: translateX(16px); } }

/* Отложенные посты: слоты расписания выходят по очереди */

.tile--schedule { flex-direction: row; align-items: center; gap: 40px; }
.tile__text { flex: 1 1 36%; }
.tile--schedule > .tile__art { flex: 1 1 64%; flex-direction: row; gap: 12px; min-height: 0; margin: 0; }
.art-sched__slot {
  flex: 1; min-width: 0; padding: 14px 14px 16px; border-radius: 14px;
  background: var(--b-inset); box-shadow: inset 0 0 0 1px var(--b-line);
  animation: slot var(--loop) infinite backwards; animation-delay: calc(var(--shift) + var(--i) * 1.7s);
}
.art-sched__time, .art-sched__done { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.art-sched__time { color: var(--b-code); font: 600 .8rem/1.3 ui-monospace, "Cascadia Mono", Consolas, monospace; }
.art-sched__time::before, .art-sched__done::before { content: ""; width: 15px; height: 15px; flex: none; background: center / contain no-repeat; }
.art-sched__time::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236f8093' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6.2'/%3E%3Cpath d='M8 4.6V8l2.2 1.6'/%3E%3C/svg%3E"); }
.art-sched__slot i { display: block; height: 8px; margin-top: 14px; border-radius: 4px; background: var(--b-skel-2); }
.art-sched__slot i + i { width: 60%; margin-top: 7px; }
.art-sched__done { margin-top: 16px; color: var(--tg-green); font-size: .8rem; font-weight: 600; animation: done var(--loop) infinite backwards; animation-delay: inherit; }
.art-sched__done::before { border-radius: 50%; background-color: var(--tg-green); background-size: 9px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2 5.2 2 2 4-4.2'/%3E%3C/svg%3E"); }
@keyframes slot { 0%, 18% { box-shadow: inset 0 0 0 1px var(--b-line); } 26%, 70% { box-shadow: inset 0 0 0 1.5px var(--tg-green); } 80%, 100% { box-shadow: inset 0 0 0 1px var(--b-line); } }
@keyframes done { 0%, 20% { opacity: 0; transform: translateY(4px); } 28%, 70% { opacity: 1; transform: none; } 78%, 100% { opacity: 0; transform: none; } }

@media (max-width: 960px) {
  .bento { padding: 72px 0; }
  .bento__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "posts buttons"
      "posts id"
      "privacy extras"
      "publish publish"
      "schedule schedule";
  }
}

@media (max-width: 640px) {
  .bento__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "posts" "buttons" "publish" "id" "schedule" "extras" "privacy"; }
  .tile { padding: 22px 20px 24px; }
  .tile--schedule { flex-direction: column; align-items: stretch; gap: 22px; }
  .tile--schedule > .tile__art { flex-direction: column; gap: 8px; }
  .art-sched__slot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; }
  .art-sched__slot i { display: none; }
  .art-sched__done { margin-top: 0; }
}

/* Робот-маскот */

.bot { display: block; width: auto; height: auto; max-width: none; user-select: none; pointer-events: none; }

/* Стоит на верхней линии блока преимуществ, у левого края примера поста. */
.bot--hero {
  position: absolute; bottom: 100%; right: calc((100% - 56px) * .44 - 40px); z-index: 2; width: 236px;
  filter: drop-shadow(0 16px 22px rgba(16, 62, 102, .28));
}
@keyframes float { 50% { transform: translateY(-9px); } }

.steps__art {
  display: flex; align-items: flex-end; justify-content: center; height: 176px; margin-bottom: 24px; padding-top: 18px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(240px 150px at 50% 100%, color-mix(in srgb, var(--btn) 20%, transparent), transparent 75%), var(--accent-soft);
}
.bot--step { height: 150px; }

.bot--head { height: 150px; margin: 0 auto 18px; }

.faq__bot { display: flex; justify-content: flex-end; margin-top: -64px; padding-right: 28px; }
.bot--faq { height: 116px; }

.bot--final {
  height: 150px; margin: -8px auto 18px;
  filter: drop-shadow(0 18px 26px rgba(6, 42, 74, .4));
  animation: float 4.5s ease-in-out infinite;
}

@media (min-width: 961px) {
  .final { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 48px; padding: 56px 72px; text-align: left; }
  .final > * { grid-column: 1; }
  .final p { margin-left: 0; }
  .final .btn { justify-self: start; }
  .bot--final { grid-column: 2; grid-row: 1 / 4; height: 250px; margin: 0; }
}

@media (max-width: 960px) {
  .hero__bottom { margin-top: 52px; }
  .bot--hero, .tg--hero { display: none; }
  .steps__art { height: 160px; }
  .bot--step { height: 134px; }
}

@media (max-width: 640px) {
  .bot--head { height: 124px; }
  .faq__bot { margin-top: -40px; }
  .bot--faq { height: 96px; }
}

/* Адаптив */

@media (max-width: 960px) {
  .nav { display: none; }
  .langs { margin-left: auto; }
  .hero { padding-top: 48px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .tg { width: min(430px, 100%); margin-inline: auto; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .section { padding: 72px 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .header__row { gap: 10px; height: 60px; }
  .header .logo span { display: none; }
  .lead { font-size: 1.08rem; }
  .actions .btn { width: 100%; }
  .facts b { font-size: 1.25rem; }
  .facts li { padding-right: 14px; }
  .facts li + li { padding-left: 14px; }
  .facts li:nth-child(3) { padding-left: 0; }
  .final { padding: 52px 20px; border-radius: 24px; }
  .final .btn { width: 100%; }

  .compare thead { display: none; }
  .compare table, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100% !important; }
  .compare tbody tr { padding: 18px 18px 20px; border-bottom: 1px solid var(--line); }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare tbody th, .compare tbody td { padding: 0; border: 0; }
  .compare tbody th { margin-bottom: 12px; font-size: 1.05rem; }
  .compare tbody td { padding: 10px 12px; border-radius: 10px; }
  .compare tbody td + td { margin-top: 8px; }
  .compare tbody td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: .78rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
  .compare tbody td:not(.compare__us) { background: var(--bg-soft); }
  .compare tbody .compare__us::before { color: var(--accent); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
