@font-face {
  font-family: "Manrope";
  src: url("assets/manrope-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Unbounded";
  src: url("assets/unbounded-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Unbounded";
  src: url("assets/unbounded-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Oswald";
  src: url("assets/oswald-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #090713;
  --ink-2: #0f0c1c;
  --ink-3: #171329;
  --panel: #141124;
  --panel-2: #1b1730;
  --paper: #f3f1ff;
  --paper-2: #dedaf2;
  --text: #f7f5ff;
  --text-soft: #c5c0d7;
  --muted: #918aa9;
  --violet: #6b4cff;
  --violet-2: #8a75ff;
  --cyan: #33d5f3;
  --mint: #55e6b7;
  --line: rgba(207, 198, 242, 0.16);
  --line-strong: rgba(207, 198, 242, 0.3);
  --font-body: "Manrope", system-ui, sans-serif;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-brand: "Unbounded", "Manrope", sans-serif;
  --container: 1440px;
  --header-height: 72px;
  --activity-tape-height: 51px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1, h2 { text-transform: uppercase; }
h2 { font-size: clamp(2.7rem, 4.6vw, 4.8rem); }
h3 { font-size: clamp(1.55rem, 2.25vw, 2.45rem); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-150%);
  background: var(--paper);
  color: var(--ink);
  border-radius: 8px;
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 7, 19, 0.97);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(100%, var(--container));
  min-height: var(--header-height);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-brand);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
/* СЛОВОМАРКА С ФИРМЕННЫМ ПЕРЕЛИВОМ. Тот же приём, что в панели расширения и в кабинете
   (.wordmark в theme.css): градиент течёт по буквам, потому что фон в три раза шире надписи и
   ездит влево-вправо. Цвета и время взяты оттуда буква в букву - логотип обязан выглядеть
   одинаково на сайте, в кабинете и в панели.
   Это ЕДИНСТВЕННОЕ место на сайте, где текст залит градиентом (правило оформления). */
.brand > span,
.footer-brand {
  background: linear-gradient(135deg, #7c5cff 0%, #a78bfa 25%, #34d399 50%, #a78bfa 75%, #7c5cff 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: brandflow 6s ease infinite;
}
@keyframes brandflow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
/* Надпись остаётся читаемой, если браузер не умеет заливать текст фоном: без этой проверки
   старый движок показал бы прозрачные буквы на прозрачном фоне, то есть пустое место. */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .brand > span,
  .footer-brand { background: none; -webkit-text-fill-color: currentColor; color: var(--text); }
}

.brand-mark { width: 30px; height: 30px; }
.brand-mark .mark-input,
.brand-mark .mark-output { fill: none; stroke-width: 3.1; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark .mark-input { stroke: var(--violet-2); }
.brand-mark .mark-output { stroke: var(--cyan); }
.brand-mark .mark-node { fill: var(--mint); stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }

.primary-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.7vw, 28px);
}
.primary-nav a, .text-link {
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color .2s ease;
}
.primary-nav a:hover, .text-link:hover { color: var(--text); }
.primary-nav a[aria-current="location"] { color: var(--cyan); }

.header-actions { display: flex; align-items: center; gap: 20px; }
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--muted);
  line-height: 1;
}
.language-switch a {
  min-width: 34px;
  padding: 7px 6px;
  border-radius: 6px;
  color: var(--text-soft);
  font-size: .72rem;
  font-weight: 800;
  text-align: center;
  transition: background .2s ease, color .2s ease;
}
.language-switch a:hover { color: var(--text); }
.language-switch a[aria-current="page"] { background: var(--paper); color: var(--ink); }
.language-switch-mobile { display: none; }
.mobile-menu-actions { display: none; }
.menu-toggle { display: none; }

.button {
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--violet);
  color: white;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .22s var(--ease), background .22s ease, border-color .22s ease, color .22s ease;
}
.button:hover { transform: translateY(-2px); background: #7a5eff; }
.button:active { transform: translateY(0); }
.button svg, .text-arrow svg { width: 20px; height: 20px; }
.button svg path, .text-arrow svg path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button-small { min-height: 44px; padding: 0 16px; font-size: 0.86rem; }
.button-primary { background: var(--violet); }
.button-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.button-ghost:hover { background: var(--panel-2); border-color: var(--violet-2); }
.button-light { background: var(--paper); color: var(--ink); }
.button-light:hover { background: white; }

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  border-bottom: 1px solid var(--line);
}
@supports (height: 100dvh) {
  .hero { min-height: calc(100dvh - var(--header-height)); }
}
.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  /* Светлая подложка на боковом поле (видна, когда окно шире контейнера) обрывалась на высоте
     ленты, тогда как белый блок доходит до самой ленты - слева внизу оставался тёмный
     прямоугольник, панель «висела на ножке» (скриншот владельца, 19.08). Ведём подложку до низа
     первого экрана; саму ленту она не закрасит - лента лежит выше по z-index и во всю ширину. */
  bottom: 0;
  left: 0;
  width: max(0px, calc((100% - var(--container)) / 2 + 2px));
  background: var(--paper);
}
.hero-grid {
  position: relative;
  z-index: 1;
  width: min(100%, var(--container));
  min-height: 0;
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(490px, .88fr) minmax(0, 1.12fr);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: clamp(74px, 7vw, 112px) clamp(76px, 7vw, 120px) 70px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--paper);
  color: var(--ink);
  clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
}

.hero-context {
  max-width: 46ch;
  margin-bottom: 24px;
  color: #645f75;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-copy h1 { max-width: 13ch; margin-bottom: 28px; font-size: clamp(3.75rem, 4.7vw, 4.8rem); line-height: 1.03; }
.hero-lead { max-width: 58ch; margin-bottom: 30px; color: #3d384d; font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.55; }
.hero-actions { display: flex; gap: 12px; }
.hero-copy .button-ghost { border-color: rgba(9,7,19,.24); color: var(--ink); }
.hero-copy .button-ghost:hover { background: #e3dffa; border-color: rgba(9,7,19,.42); }
.hero-note { margin: 18px 0 0; color: #6a6478; font-size: 0.82rem; }

.live-market {
  position: relative;
  align-self: stretch;
  min-width: 0;
  padding: 38px 20px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 86% 10%, rgba(107, 76, 255, .12), transparent 32%),
    var(--ink);
}
.live-market::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 72px 100%;
  mask-image: linear-gradient(90deg, transparent, black 18%, black 90%, transparent);
}
.market-head, .market-list li {
  position: relative;
  display: grid;
  /* Значок, тема с категорией, живой текст поста, график, статус. Полоски убраны: рядом с
     графиком они читались как прочерки, будто данных нет, и повторяли его же смысл. */
  grid-template-columns: 26px minmax(150px, .85fr) minmax(230px, 1.5fr) 96px 136px;
  column-gap: 26px;
  align-items: center;
  gap: 18px;
}
/* В шапке три подписи на четыре колонки: первая накрывает значок и тему. */
/* В шапке четыре подписи на шесть колонок: первая накрывает значок и тему, «Динамика» - полоски
   с графиком. */
.market-head > :first-child { grid-column: 1 / 3; }
/* «Динамика» — над графиком, «Сейчас» — над статусом, по той же левой линии. */
.market-head > :nth-child(3) { text-align: center; }
.market-head > :nth-child(4) { text-align: center; }
.market-filter i { margin-left: 8px; }
.market-head { min-height: 0; }
.market-head {
  padding: 0 14px 18px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.market-live { color: var(--violet-2); }
.market-live span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 5px rgba(107,76,255,.12);
}
.market-filter { text-align: right; }
.market-filter i { display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: var(--mint); }
.market-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.market-list li { min-height: 86px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.market-list li { padding-top: 14px; padding-bottom: 14px; }
/* Значок скорости - те же три состояния, что в кабинете: корона у лидера, огонь у горячей темы,
   стрелка у растущей. Значок говорит, ЧЕМ тема сильна; одного числа для этого мало. */
.topic-mark { width: 22px; height: 22px; }
.topic-mark svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Строки проявляются по очереди - лента оживает на глазах, а не возникает разом. */
.market-list li { animation: строка-входит .5s var(--ease, cubic-bezier(.22,1,.36,1)) both; animation-delay: var(--задержка, 0ms); }
@keyframes строка-входит { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* Значок первой темы дышит: взгляд сам находит лидера. */
.topic-mark.crown { color: var(--cyan); animation: значок-дышит 2.6s ease-in-out infinite; }
@keyframes значок-дышит { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) {
  .market-list li { animation: none; }
  .topic-mark.crown { animation: none; }
}
.topic-mark.fire { color: #e6b85c; }
.topic-mark.up { color: var(--mint); }
.market-list strong { display: block; font-size: 0.95rem; line-height: 1.25; }
.topic-category { display: block; margin-top: 5px; color: var(--muted); font-size: 0.74rem; }
/* Текст поста - две строки и не больше: длиннее он ломает ритм ленты. */
.topic-main { min-width: 0; }
.topic-quote { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--text-soft); font-size: 0.86rem; line-height: 1.45; }
.topic-quote a { color: inherit; text-decoration: none; }
.topic-quote a:hover { color: #fff; }
.topic-author { display: inline-flex; min-height: 28px; margin-top: 2px; align-items: center; color: var(--violet-2); font-size: 0.74rem; font-weight: 700; text-decoration: none; }
.topic-author:hover { text-decoration: underline; }
/* График — украшение ленты: линия задаёт ритм и разводит строки по цвету. */
.sparkline { width: 96px; height: 28px; overflow: visible; justify-self: center; }
.sparkline path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sparkline.cyan { color: var(--cyan); }
.sparkline.violet { color: var(--violet-2); }
.sparkline.mint { color: var(--mint); }
/* Последний столбец: подписи по центру своей колонки. По левому краю они липли к графику,
   по правому - давали рваный край, потому что слова разной длины. Перенос запрещён. */
.topic-status { justify-self: center; text-align: center; white-space: nowrap; color: var(--violet-2); font-size: 0.78rem; font-weight: 700; }
@media (max-width: 900px) {
  /* На узком экране график и полоски прячем: там читают тему и текст, а не форму линии.
     Раскладка в две строки: сверху значок, тема и статус, снизу текст поста во всю ширину.
     Места в клетках задаём явно - иначе текст поста уезжает в узкую колонку статуса. */
  .market-head { display: none; }
  .market-list li { grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px 12px; }
  .sparkline { display: none; }
  .topic-mark { grid-column: 1; grid-row: 1; }
  .topic-main { grid-column: 2; grid-row: 1; }
  .topic-status { grid-column: 3; grid-row: 1; }
  .topic-col { grid-column: 2 / -1; grid-row: 2; min-width: 0; }
}
.market-caption { margin-top: 18px; padding: 0 14px; color: var(--muted); font-size: 0.72rem; }

.activity-tape { position: relative; z-index: 1; height: var(--activity-tape-height); overflow: hidden; border-top: 1px solid var(--line); background: #0b0915; }
.tape-track { width: max-content; min-height: 50px; display: flex; align-items: center; animation: tape 32s linear infinite; }
.tape-track span { padding: 0 32px; border-right: 1px solid var(--line); color: var(--text-soft); font-size: 0.76rem; white-space: nowrap; }
.tape-dot { display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: currentColor; }
.tape-dot.cyan { color: var(--cyan); }.tape-dot.violet { color: var(--violet-2); }.tape-dot.mint { color: var(--mint); }
@keyframes tape { to { transform: translateX(-50%); } }
.activity-tape:hover .tape-track { animation-play-state: paused; }

.carousel-guide { display: none; }

.section-shell { width: min(100%, var(--container)); margin: 0 auto; padding: 96px 48px; }
main section[id] { scroll-margin-top: 92px; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(320px, .72fr); align-items: end; gap: 64px; margin-bottom: 54px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading p, .stats-intro p, .pricing-head p, .faq-intro p { margin-bottom: 0; color: var(--text-soft); font-size: 1.06rem; }

.mechanism { padding-bottom: 104px; }
.flow { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.flow-step { position: relative; min-width: 0; min-height: 470px; padding: 28px 24px 24px; border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.025), transparent 56%); }
.flow-step:last-child { border-right: 0; }
.flow-step > p { min-height: 78px; color: var(--text-soft); font-size: 0.88rem; }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.step-head > span { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 50%; background: var(--violet); color: white; font-size: .8rem; font-weight: 800; }
.comment-step .step-head > span { background: var(--cyan); color: var(--ink); }
.reach-step .step-head > span { background: var(--mint); color: var(--ink); }
.step-head h3 { margin: 0; font-family: var(--font-body); font-size: 1rem; letter-spacing: -0.02em; }
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 42px;
  right: -8px;
  width: 15px;
  height: 15px;
  transform: rotate(45deg);
  border-top: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
  background: var(--ink-2);
}
.trend-stack { display: grid; gap: 14px; padding: 20px; background: var(--panel); border-radius: 12px; }
.trend-stack div { display: grid; gap: 7px; }
.trend-stack span { color: var(--text-soft); font-size: .78rem; }
.trend-stack i { position: relative; width: 100%; height: 4px; overflow: hidden; border-radius: 4px; background: #302a47; }
.trend-stack i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--level); background: var(--violet-2); }
.thread-demo, .post-demo { padding: 18px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.thread-demo { display: grid; grid-template-columns: 32px 1fr; gap: 12px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(145deg, var(--paper-2), #777186); }
.thread-lines { display: grid; gap: 6px; align-content: center; }
.thread-lines i, .post-demo-lines i { height: 5px; border-radius: 5px; background: #4d475f; }
.thread-lines i:nth-child(1) { width: 62%; }.thread-lines i:nth-child(2) { width: 94%; }.thread-lines i:nth-child(3) { width: 76%; }
.comment-draft { grid-column: 1 / -1; margin-top: 6px; padding: 13px; background: #1d1832; border-radius: 9px; color: #e9e5f8; font-size: .79rem; line-height: 1.48; }
.demo-state { grid-column: 1 / -1; color: var(--mint); font-size: .72rem; }
.demo-state span { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: currentColor; }
.post-demo-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: .72rem; }
.post-demo-top span { color: var(--violet-2); font-weight: 800; }.post-demo-top i { color: var(--muted); font-style: normal; }
.post-demo > p { min-height: 96px; padding: 16px 0 8px; color: var(--text-soft); font-size: .82rem; line-height: 1.5; }
.post-demo-lines { display: grid; gap: 6px; }
.post-demo-lines i:nth-child(1) { width: 90%; }.post-demo-lines i:nth-child(2) { width: 62%; }
.post-demo button, .trend-result button { margin-top: 16px; padding: 8px 10px; border: 0; border-radius: 7px; background: #302852; color: #978cae; font-size: .7rem; }
.mini-chart { padding-top: 4px; }
.mini-chart svg { width: 100%; height: 190px; overflow: visible; }
.chart-grid { fill: none; stroke: rgba(204,196,234,.12); stroke-width: 1; }
.chart-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.enhanced .chart-line { stroke-dasharray: 1300; stroke-dashoffset: 1300; }
.enhanced .is-visible .chart-line { animation: draw-line 1.7s var(--ease) forwards; }
.enhanced .is-visible .chart-line:nth-of-type(3) { animation-delay: .12s; }
.enhanced .is-visible .chart-line:nth-of-type(4) { animation-delay: .24s; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
.violet-line { stroke: var(--violet); }.cyan-line { stroke: var(--cyan); }.mint-line { stroke: var(--mint); }
.mini-chart > div, .chart-legend { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: .7rem; }
.mini-chart i, .chart-legend i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: currentColor; }
.mini-chart i.violet, .chart-legend i.violet { color: var(--violet); }.mini-chart i.cyan, .chart-legend i.cyan { color: var(--cyan); }.chart-legend i.mint { color: var(--mint); }

.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0b0916; }
.stats-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; margin-bottom: 42px; }
.stats-intro > div:first-child { display: grid; grid-template-columns: minmax(460px, 1.35fr) minmax(280px, .65fr); align-items: end; gap: 48px; }
.stats-intro h2 { max-width: none; margin-bottom: 0; font-size: clamp(3.2rem, 4.25vw, 4rem); }
.stats-intro p { max-width: 42ch; }
.stats-intro .demo-disclaimer { grid-column: 2; display: flex; align-items: center; gap: 9px; margin-top: 14px; color: var(--muted); font-size: .78rem; font-weight: 700; }
.demo-disclaimer span { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(51,213,243,.09); }
.period-tabs { display: flex; padding: 4px; border: 1px solid var(--line-strong); border-radius: 10px; }
.period-tabs button { min-width: 100px; padding: 9px 16px; border: 0; border-radius: 7px; background: transparent; color: var(--text-soft); cursor: pointer; }
.period-tabs button[aria-selected="true"] { background: var(--violet); color: white; font-weight: 800; }
.stats-board { display: grid; grid-template-columns: 340px 1fr; min-height: 430px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.stats-values { padding: 28px; display: grid; grid-template-rows: repeat(3, 1fr); border-right: 1px solid var(--line); }
.stats-values[hidden] { display: none; }
.stats-values > div { padding: 18px 0; display: grid; grid-template-columns: 1fr auto; align-items: center; border-bottom: 1px solid var(--line); }
.stats-values > div:last-child { border-bottom: 0; }
.stats-values span { color: var(--text-soft); font-weight: 700; }
.stats-values strong { grid-row: span 2; font-family: var(--font-display); font-size: 2.5rem; color: var(--paper); }
.stats-values small { color: var(--muted); }
.stats-chart { position: relative; padding: 38px 30px 28px; }
.stats-chart svg { width: 100%; height: 300px; overflow: visible; }
.stats-chart .chart-legend { position: absolute; top: 24px; right: 26px; }
.stats-chart > p { margin: 12px 0 0; color: var(--muted); font-size: .75rem; }

.stories { padding-top: 104px; }
.story { min-height: 580px; display: grid; grid-template-columns: .78fr 1.22fr; border-top: 1px solid var(--line); }
.story:last-child { border-bottom: 1px solid var(--line); }
.story:nth-child(even) { grid-template-columns: 1.18fr .82fr; }
.story-copy { padding: 62px 56px 58px 0; }
.story:nth-child(even) .story-copy { grid-column: 2; grid-row: 1; padding: 62px 0 58px 60px; }
.story-stage { grid-column: 2; grid-row: 1; }
.story:nth-child(even) .story-stage { grid-column: 1; }
.story-copy h3 { margin-bottom: 28px; font-size: clamp(1.9rem, 3vw, 3.35rem); }
.story-copy > p { max-width: 60ch; color: var(--text-soft); }
.plain-list { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.plain-list li { position: relative; padding-left: 25px; color: var(--paper-2); font-weight: 600; }
.plain-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 12px;
  height: 8px;
  background:
    linear-gradient(45deg, transparent 43%, var(--mint) 44% 58%, transparent 59%) 0 3px / 6px 5px no-repeat,
    linear-gradient(-45deg, transparent 43%, var(--mint) 44% 58%, transparent 59%) 4px 0 / 9px 8px no-repeat;
}
.story-stage { align-self: center; min-width: 0; padding: 34px; border-radius: 16px; background: var(--paper); color: var(--ink); }
.source-post, .generated-comment, .instruction-source, .autopost-preview, .trend-source, .trend-result { padding: 24px; border-radius: 12px; background: white; border: 1px solid #d7d2e7; }
.post-author { display: flex; gap: 12px; align-items: center; }
.post-author > div { display: grid; }.post-author small, .generated-comment small, .trend-result small { color: #736d80; }
.source-post > p { margin: 20px 0; font-size: 1.08rem; font-weight: 700; }
.post-actions { display: flex; gap: 12px; }
.post-actions span { width: 18px; height: 18px; border: 2px solid #8f899b; border-radius: 50%; }
.ai-route { min-height: 76px; padding: 0 24px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; color: #5d44db; font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.ai-route i { height: 2px; background: linear-gradient(90deg, var(--violet), var(--cyan), var(--mint)); }
.generated-comment { border-color: #7f68ef; }
.generated-comment p { margin: 8px 0 0; color: #342f40; }
.autopost-stage, .trend-stage { display: grid; grid-template-columns: 1fr; align-content: center; }
.instruction-source > div:first-child, .trend-source-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.instruction-source > div:first-child span, .trend-source-head span { color: #6956c7; font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.instruction-source small, .trend-source-head small { color: #736d80; }
.instruction-source > strong { display: block; margin: 14px 0 18px; color: #342f40; font-size: 1.05rem; }
.instruction-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.instruction-tags span { padding: 6px 9px; border-radius: 7px; background: #eeeafd; color: #5d44db; font-size: .68rem; font-weight: 800; }
.autopost-route { min-height: 70px; display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 10px; color: #6d667a; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.autopost-route i { height: 2px; background: linear-gradient(90deg, var(--violet), var(--cyan)); }
.autopost-route strong { color: #238667; }
.autopost-preview { display: grid; grid-template-columns: 150px 1fr; gap: 20px; border-color: #50cba3; }
.autopost-image { min-height: 152px; position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: #0b0916; }
.autopost-image::after { content: ""; position: absolute; inset: 12%; border: 1px solid rgba(130,106,255,.2); border-radius: 50%; filter: blur(10px); }
.autopost-image svg { width: 74%; height: 74%; filter: drop-shadow(0 0 12px rgba(51,213,243,.25)); }
.autopost-image .mark-input { fill: none; stroke: #8c6cff; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.autopost-image .mark-output { fill: none; stroke: #33d5f3; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.autopost-image .mark-node { fill: #55e0ae; }
.autopost-image > span { position: absolute; left: 10px; bottom: 9px; color: #bdb1ff; font-size: .58rem; font-weight: 900; letter-spacing: .1em; }
.autopost-body { display: flex; flex-direction: column; justify-content: center; }
.autopost-body small { color: #736d80; }
.autopost-body p { margin: 10px 0 18px; color: #342f40; font-weight: 650; }
.publish-state { display: flex; align-items: center; gap: 8px; color: #238667; font-size: .72rem; font-weight: 800; }
.publish-state span { width: 8px; height: 8px; border-radius: 50%; background: #50cba3; box-shadow: 0 0 0 4px rgba(80,203,163,.14); }
.trend-source-head { margin-bottom: 14px; }
.trend-ranking { margin: 0; padding: 0; list-style: none; }
.trend-ranking li { min-height: 64px; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 12px; border-top: 1px solid #ebe8f2; }
.trend-ranking b { color: #8c6cff; font-size: .72rem; }
.trend-ranking li > span { min-width: 0; display: grid; gap: 2px; }
.trend-ranking strong { overflow: hidden; color: #342f40; font-size: .92rem; text-overflow: ellipsis; white-space: nowrap; }
.trend-ranking small { color: #736d80; }
.trend-ranking i { min-width: 34px; padding: 6px; border-radius: 7px; background: #eeeafd; color: #5d44db; font-size: .72rem; font-style: normal; font-weight: 900; text-align: center; }
.trend-transform { min-height: 70px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; color: #6d667a; font-size: .72rem; }
.trend-transform i { height: 2px; background: linear-gradient(90deg, var(--violet), var(--cyan)); }
.trend-result { border-color: #50cba3; }
.trend-result p { margin: 10px 0 0; color: #342f40; font-weight: 600; }
.trend-result > div { display: flex; gap: 8px; }
.trend-result button { background: #e8e4f5; color: #6e6879; }

.control { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; padding-top: 96px; padding-bottom: 96px; }
.control-title h2 { font-size: clamp(2rem, 3.5vw, 3.6rem); }
.control-title p { color: var(--text-soft); }
.control-rows { border-top: 1px solid var(--line); }
.control-rows > div { position: relative; padding: 24px 0 24px 28px; display: grid; grid-template-columns: 170px 1fr; gap: 24px; border-bottom: 1px solid var(--line); }
.control-rows p { margin: 0; color: var(--text-soft); }
.control-signal { position: absolute; left: 0; top: 32px; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.control-signal.violet { color: var(--violet-2); }.control-signal.cyan { color: var(--cyan); }.control-signal.mint { color: var(--mint); }

.start { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; border-top: 1px solid var(--line); }
.start-copy h2 { max-width: 12ch; font-size: clamp(3.1rem, 4.25vw, 4rem); }
.start-copy p { max-width: 52ch; color: var(--text-soft); }
.text-arrow { display: inline-flex; align-items: center; gap: 10px; color: var(--cyan); font-weight: 800; }
.start-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.start-steps li { min-height: 126px; display: grid; grid-template-columns: 50px 1fr; gap: 24px; align-items: center; border-bottom: 1px solid var(--line); }
.start-steps li > span { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--violet-2); font-weight: 800; }
.start-steps strong { font-size: 1.05rem; }.start-steps p { margin: 4px 0 0; color: var(--text-soft); }

.pricing { border-top: 1px solid var(--line); }
.pricing-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 50px; align-items: end; margin-bottom: 48px; }
.pricing-head > div { display: grid; grid-template-columns: minmax(460px, 1.35fr) minmax(280px, .65fr); align-items: end; gap: 48px; }
.pricing-head h2 { max-width: none; margin-bottom: 0; font-size: clamp(3.2rem, 4.25vw, 4rem); }
.pricing-head p { max-width: 44ch; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1200px; margin-inline: auto; align-items: stretch; }
/* Six shared rows keep prices, descriptions and actions aligned across all three offers. */
.plan { position: relative; min-width: 0; padding: 28px 24px 24px; display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, rgba(255,255,255,.018), transparent); }
.plan-featured { background: linear-gradient(180deg, rgba(107,76,255,.15), rgba(51,213,243,.035)); }
.plan-featured { border-color: var(--violet-2); }
.plan-label { position: absolute; top: 24px; left: 24px; color: var(--mint); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.plan-name { grid-row: 1; margin-top: 32px; font-family: var(--font-display); font-size: 1rem; }
.plan-price { grid-row: 2; margin: 16px 0 8px; display: flex; align-items: baseline; gap: 8px; }
.plan-price strong { font-family: var(--font-display); font-size: 2.25rem; letter-spacing: -0.04em; }
.plan-price span { color: var(--muted); }
.plan-first { grid-row: 3; color: var(--mint); font-size: .8rem; font-weight: 700; }
.plan > p { grid-row: 4; margin: 20px 0 24px; color: var(--text-soft); }
.plan ul { grid-row: 5; align-content: start; margin: 0 0 28px; padding: 0; list-style: none; display: grid; gap: 12px; }
.plan li { position: relative; padding-left: 22px; color: var(--paper-2); font-size: .86rem; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .58em; width: 9px; height: 4px; transform: rotate(-45deg); border-left: 2px solid var(--mint); border-bottom: 2px solid var(--mint); }
/* Чего в тарифе НЕТ. Галочку заменяем на прочерк и гасим строку: отсутствие должно читаться
   с одного взгляда, а не вычитаться сравнением двух списков. */
.plan li.plan-off { color: var(--muted); }
.plan li.plan-off::before { top: .78em; width: 9px; height: 0; transform: none; border-left: 0;
  border-bottom: 2px solid var(--muted); }
/* Главное в списке выделяем начертанием, а не цветом: цвет здесь уже занят смыслом. */
.plan li b { color: #fff; font-weight: 800; }
.plan .button { grid-row: 6; width: 100%; align-self: end; min-height: 48px; }

.partners { border-top: 1px solid var(--line); }
.partners-head { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); gap: 70px; align-items: end; margin-bottom: 54px; }
.partners-head h2 { max-width: 16ch; margin-bottom: 24px; font-size: clamp(3.1rem, 4.55vw, 4.45rem); }
.partners-head p { max-width: 66ch; margin: 0; color: var(--text-soft); font-size: 1.06rem; }
.lifetime-share { min-height: 132px; padding: 20px 0; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 24px; border-top: 1px solid var(--cyan); border-bottom: 1px solid var(--line-strong); }
.lifetime-share strong { color: var(--paper); font-family: var(--font-display); font-size: clamp(4.8rem, 7vw, 7.2rem); line-height: .82; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.lifetime-share span { color: var(--cyan); font-size: .82rem; font-weight: 800; line-height: 1.45; letter-spacing: .045em; text-transform: uppercase; }
.partners-body { display: grid; grid-template-columns: .84fr 1.16fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.partner-route { margin: 0; padding: 0 42px 0 0; list-style: none; }
.partner-route li { min-height: 134px; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 22px; align-items: center; border-bottom: 1px solid var(--line); }
.partner-route li:last-child { border-bottom: 0; }
.partner-route li > span { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--violet-2); font-weight: 800; font-variant-numeric: tabular-nums; }
.partner-route strong { font-size: 1rem; }
.partner-route p { max-width: 52ch; margin: 4px 0 0; color: var(--text-soft); font-size: .9rem; }
.partner-ledger { padding: 32px 0 30px 44px; border-left: 1px solid var(--line); background: linear-gradient(115deg, rgba(107,76,255,.08), rgba(51,213,243,.025) 64%, transparent); }
.ledger-head { min-height: 48px; display: flex; align-items: start; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.ledger-head strong { font-size: .9rem; }
.ledger-head span { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.ledger-row { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 20px 0 0; border-bottom: 1px solid var(--line); }
.ledger-row > span { display: grid; gap: 2px; font-weight: 800; }
.ledger-row small { color: var(--muted); font-size: .75rem; font-weight: 600; }
.ledger-row > strong { color: var(--paper); font-family: var(--font-display); font-size: 2.55rem; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ledger-row.is-featured { margin-left: -44px; padding-left: 44px; background: linear-gradient(90deg, rgba(107,76,255,.18), rgba(51,213,243,.055)); }
.ledger-row.is-featured > strong { color: var(--cyan); }
.ledger-note { max-width: 72ch; margin: 22px 28px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.partners-action { min-height: 138px; padding-top: 30px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 50px; }
.partners-action p { max-width: 76ch; margin: 0; color: var(--text-soft); }
.partners-action p strong { color: var(--text); }
.partners-action .button { min-width: 210px; }

.faq { display: grid; grid-template-columns: .6fr 1.4fr; gap: 80px; border-top: 1px solid var(--line); }
.faq-intro h2 { font-size: clamp(2.2rem, 4vw, 4rem); }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 24px 50px 24px 0; cursor: pointer; list-style: none; font-weight: 800; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; top: 34px; right: 8px; width: 16px; height: 2px; background: var(--violet-2); transition: transform .25s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { max-width: 72ch; margin: -4px 0 26px; color: var(--text-soft); }
.faq-link { display: inline; color: var(--cyan); font-weight: 800; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.faq-link:hover { color: white; }

.closing { position: relative; min-height: 480px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 70px; overflow: hidden; border-radius: 18px 18px 0 0; background: var(--violet); }
.closing > div:not(.closing-signal), .closing > a { position: relative; z-index: 2; }
.closing h2 { max-width: 16ch; margin-bottom: 24px; font-size: clamp(2.5rem, 4.8vw, 5.2rem); }
.closing p { max-width: 65ch; margin: 0; color: rgba(255,255,255,.82); font-size: 1.08rem; }
.closing-signal { position: absolute; inset: 0; opacity: .55; }
.closing-signal span { position: absolute; top: 50%; left: 65%; width: 12px; height: 12px; border: 2px solid rgba(255,255,255,.55); border-radius: 50%; animation: signal 6s var(--ease) infinite; }
.closing-signal span:nth-child(2) { animation-delay: -1.2s; }.closing-signal span:nth-child(3) { animation-delay: -2.4s; }.closing-signal span:nth-child(4) { animation-delay: -3.6s; }.closing-signal span:nth-child(5) { animation-delay: -4.8s; }
@keyframes signal { 0% { transform: translate(-50%,-50%) scale(0); opacity: .8; } 75%,100% { transform: translate(-50%,-50%) scale(38); opacity: 0; } }

.site-footer { width: min(100%, var(--container)); min-height: 150px; margin: 0 auto; padding: 42px 48px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 50px; border-top: 1px solid rgba(255,255,255,.2); }
.site-footer p { max-width: none; overflow-x: auto; color: var(--muted); white-space: nowrap; scrollbar-width: none; }
.site-footer p::-webkit-scrollbar { display: none; }
.site-footer nav { display: flex; gap: 22px; color: var(--text-soft); font-size: .86rem; }
.site-footer a:hover { color: white; }

@supports not (clip-path: polygon(0 0)) { .hero-copy { clip-path: none; } }

@media (min-width: 1221px) {
  /* На ПК первый экран — это ровно высота окна под шапкой. Внутри заранее зарезервировано
     место под новостную ленту, поэтому она всегда остаётся нижней границей hero. */
  .hero {
    height: calc(100svh - var(--header-height));
    min-height: 540px;
  }
  @supports (height: 100dvh) {
    .hero { height: calc(100dvh - var(--header-height)); }
  }
  /* height: 100%, а не calc(100% - высота ленты): .hero - грид из двух рядов (1fr auto), место под
     ленту он уже отвёл ВТОРЫМ рядом. Вычитая её высоту ещё и здесь, мы вычитали дважды - под белым
     блоком оставалась пустая тёмная полоса в 51px перед бегущей строкой (артефакт на EN, 19.08). */
  .hero-grid { height: 100%; }
  .hero-copy {
    padding-top: clamp(28px, 5.4dvh, 64px);
    padding-bottom: clamp(26px, 4.6dvh, 56px);
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
  }
  .hero-context { margin-bottom: clamp(10px, 1.8dvh, 20px); }
  .hero-copy h1 {
    margin-bottom: clamp(14px, 2.2dvh, 26px);
    font-size: clamp(3.25rem, min(4.7vw, 8.4dvh), 4.8rem);
  }
  .hero-lead {
    margin-bottom: clamp(14px, 2.2dvh, 26px);
    font-size: clamp(.96rem, min(1.35vw, 2.15dvh), 1.15rem);
    line-height: 1.5;
  }
  .hero-note { margin-top: clamp(8px, 1.4dvh, 16px); }
  .hero-actions { flex-wrap: nowrap; }
  .hero-actions .button {
    min-height: clamp(44px, 6.6dvh, 48px);
    flex: 0 0 auto;
    padding-inline: clamp(15px, 1.4vw, 18px);
    white-space: nowrap;
    font-size: clamp(.82rem, 1.45dvh, .88rem);
  }
  .live-market { padding-top: clamp(18px, 4.2dvh, 38px); padding-bottom: clamp(16px, 3.2dvh, 28px); }
  .market-head { padding-bottom: clamp(10px, 2dvh, 18px); }
  .market-list li { min-height: clamp(68px, 10.3dvh, 86px); padding-top: clamp(9px, 1.55dvh, 14px); padding-bottom: clamp(9px, 1.55dvh, 14px); }
  .market-caption { margin-top: clamp(8px, 1.8dvh, 18px); }
  html[lang="en"] .hero-copy h1 { font-size: clamp(3.05rem, min(4vw, 7.2dvh), 4rem); }
}

@media (min-width: 1221px) and (max-height: 700px) {
  .hero-copy { padding-right: clamp(68px, 6vw, 96px); }
  .hero-copy h1 { line-height: .98; }
  .hero-lead { line-height: 1.42; }
  .hero-context { font-size: .7rem; }
  .hero-note { font-size: .76rem; }
  .market-list strong { font-size: .88rem; }
  .topic-category, .market-caption { font-size: .68rem; }
  .topic-quote { font-size: .8rem; line-height: 1.35; }
  html[lang="en"] .hero-copy h1 { font-size: clamp(2.9rem, min(3.8vw, 7.2dvh), 3.35rem); }
}

@media (max-width: 1350px) and (min-width: 1221px) {
  .market-head, .market-list li { grid-template-columns: 26px minmax(135px, .8fr) minmax(200px, 1.3fr) 82px 108px; gap: 14px; }
  .sparkline { width: 82px; }
}

@media (max-width: 1220px) {
  .header-inner { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); gap: 22px; }
  .primary-nav { gap: 18px; }
  .hero { min-height: 0; display: block; }
  .hero-grid { height: auto; grid-template-columns: 1fr; }
  .hero-copy { min-height: 560px; padding: 76px clamp(72px, 11vw, 150px) 98px 48px; clip-path: polygon(0 0, 100% 0, 100% 88%, 76% 100%, 0 100%); }
  .hero-copy h1 { max-width: 15ch; }
  .live-market { min-height: 500px; padding: 48px; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow-step:nth-child(2) { border-right: 0; }.flow-step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .flow-step:nth-child(2)::after { display: none; }
  .plans { gap: 12px; }
  .plan { padding-inline: 20px; }.plan-label { left: 20px; }
  .partners-head { grid-template-columns: 1.3fr .7fr; gap: 48px; }
}

@media (max-width: 1120px) {
  html { scroll-padding-top: 68px; }
  .header-inner { min-height: 66px; grid-template-columns: 1fr auto; }
  .menu-toggle { width: 46px; height: 46px; display: grid; place-content: center; gap: 6px; border: 1px solid var(--line-strong); border-radius: 10px; background: transparent; color: white; }
  .menu-toggle span:not(.sr-only) { width: 19px; height: 2px; background: currentColor; transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-last-child(2) { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .primary-nav { position: absolute; top: 66px; left: 0; right: 0; width: 100%; min-height: calc(100svh - 66px); max-height: calc(100svh - 66px); overflow-y: auto; justify-self: stretch; padding-top: 12px; padding-right: max(24px, env(safe-area-inset-right)); padding-bottom: max(24px, env(safe-area-inset-bottom)); padding-left: max(24px, env(safe-area-inset-left)); display: none; align-items: stretch; flex-direction: column; gap: 0; background: var(--ink); border-bottom: 1px solid var(--line); box-shadow: 0 18px 36px rgba(2, 1, 8, .24); }
  .primary-nav[data-open="true"] { display: flex; }
  .primary-nav > a { min-height: 48px; display: flex; align-items: center; border-bottom: 1px solid var(--line); font-size: .95rem; }
  .primary-nav .language-switch-mobile { display: inline-flex; width: fit-content; margin-top: 16px; }
  .primary-nav .language-switch-mobile a { min-width: 46px; min-height: 44px; display: grid; place-items: center; padding: 7px 8px; font-size: .75rem; }
  .mobile-menu-actions { display: grid; grid-template-columns: minmax(150px, .7fr) minmax(260px, 1fr); gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
  .mobile-login { min-height: 48px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--text); font-weight: 800; }
  .header-actions { display: none; }
  .hero-copy { padding-left: max(32px, env(safe-area-inset-left)); }
  .section-shell { padding-top: 84px; padding-right: max(32px, env(safe-area-inset-right)); padding-bottom: 84px; padding-left: max(32px, env(safe-area-inset-left)); }
  .section-heading { grid-template-columns: 1fr; align-items: start; gap: 24px; }
  .stats-board { grid-template-columns: 1fr; }
  .stats-values { grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr; border-right: 0; border-bottom: 1px solid var(--line); }
  .stats-values > div { display: block; border-bottom: 0; border-right: 1px solid var(--line); }
  .stats-values > div:last-child { border-right: 0; }
  .stats-values strong { display: block; margin: 12px 0 2px; }
  .story, .story:nth-child(even) { grid-template-columns: 1fr; }
  .story-copy, .story:nth-child(even) .story-copy { grid-column: 1; grid-row: 1; padding: 58px 0 38px; }
  .story-stage, .story:nth-child(even) .story-stage { grid-column: 1; grid-row: 2; }
  .control, .start, .faq { grid-template-columns: 1fr; gap: 48px; }
  .partners-head, .partners-body, .partners-action { grid-template-columns: 1fr; }
  .partners-head { align-items: start; gap: 34px; }
  .lifetime-share { width: min(100%, 520px); }
  .partner-route { padding-right: 0; }
  .partner-ledger { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .ledger-row.is-featured { margin-left: 0; padding-left: 0; }
  .partners-action { align-items: start; gap: 24px; }
  .partners-action .button { justify-self: start; }
  .control-rows > div { grid-template-columns: 150px 1fr; }
  .start-copy h2 { max-width: 12ch; }
  .closing { grid-template-columns: 1fr; gap: 34px; }
  .closing .button { justify-self: start; }
  .site-footer { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 900px) {
  .hero-copy { min-height: auto; padding: 72px 32px 96px; }
  .hero-copy h1 { max-width: 14ch; font-size: clamp(3rem, 7vw, 3.55rem); }
  .live-market { min-height: auto; padding: 42px 28px; }
  .stats-intro { grid-template-columns: 1fr; align-items: start; gap: 28px; }
  .stats-intro > div:first-child, .pricing-head > div { grid-template-columns: 1fr; align-items: start; gap: 18px; }
  .stats-intro .demo-disclaimer { grid-column: 1; margin-top: 0; }
  .stats-intro h2, .pricing-head h2 { max-width: 13ch; }
  .period-tabs { justify-self: start; }
  .pricing-head { grid-template-columns: 1fr; align-items: start; gap: 28px; }
  .pricing-head .button { justify-self: start; }
}

@media (max-width: 700px) {
  main section[id] { scroll-margin-top: 78px; }
  body { font-size: 15px; }
  .header-inner { padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
  .brand { font-size: .78rem; }.brand-mark { width: 27px; height: 27px; }
  .primary-nav { padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
  .mobile-menu-actions { grid-template-columns: 1fr; }
  .hero-copy { min-height: auto; padding: 54px max(20px, env(safe-area-inset-right)) 78px max(20px, env(safe-area-inset-left)); clip-path: polygon(0 0, 100% 0, 100% 94%, 68% 100%, 0 100%); }
  .hero-context { font-size: .68rem; }
  .hero-copy h1 { max-width: 13ch; font-size: clamp(2.1rem, 11vw, 2.85rem); }
  html[lang="en"] .hero-copy h1 { max-width: 15ch; font-size: clamp(2.05rem, 10.2vw, 2.75rem); }
  .hero-lead { font-size: 1rem; }
  .hero-actions { display: grid; }.hero-actions .button { width: 100%; }
  .live-market { min-height: auto; padding: 32px max(14px, env(safe-area-inset-right)) 32px max(14px, env(safe-area-inset-left)); }
  .market-head { grid-template-columns: 1fr auto; }.market-head > div:nth-child(2) { display: none; }
  /* Раскладка та же, что на планшете, только теснее: значок, тема со статусом, текст под ними.
     Прежние две колонки остались от старой ленты - в них тема не помещалась и обрезалась. */
  .market-list li { min-height: 76px; padding-top: 12px; padding-bottom: 12px; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 6px 10px; }
  .market-list strong { font-size: .82rem; }
  .topic-status { font-size: .72rem; }
  .topic-author { min-height: 44px; margin-top: -2px; margin-bottom: -12px; padding: 8px 0; }
  .market-caption { padding: 0 10px; }
  h2 { font-size: clamp(2.35rem, 10.5vw, 2.7rem); }
  .section-shell { padding-top: 60px; padding-right: max(18px, env(safe-area-inset-right)); padding-bottom: 60px; padding-left: max(18px, env(safe-area-inset-left)); }
  .section-heading { margin-bottom: 36px; }
  .mechanism { padding-bottom: 64px; }
  .mechanism-heading { margin-bottom: 34px; }
  .carousel-guide { min-height: 48px; margin: -4px 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .carousel-guide-copy { display: flex; align-items: baseline; gap: 9px; }
  .carousel-guide-copy strong { color: var(--paper); font-size: .82rem; }
  .carousel-guide-copy span { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
  .carousel-guide-controls { display: flex; align-items: center; gap: 8px; }
  .carousel-guide output { min-width: 48px; color: var(--muted); font-size: .72rem; font-variant-numeric: tabular-nums; text-align: center; }
  .carousel-guide button { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--panel-2); color: var(--paper); cursor: pointer; }
  .carousel-guide button:disabled { color: #5f586f; cursor: default; }
  .carousel-guide button:not(:disabled):active { transform: scale(.96); }
  .carousel-guide button svg { width: 18px; height: 18px; }
  .carousel-guide button path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .flow, .stories-track, .plans { width: calc(100% + 18px); margin-right: -18px; padding: 4px 0 24px; scroll-snap-type: x mandatory; scroll-padding-left: 0; scrollbar-width: none; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }
  .flow::-webkit-scrollbar, .stories-track::-webkit-scrollbar, .plans::-webkit-scrollbar { display: none; }
  .flow { display: flex; gap: 12px; overflow-x: auto; border: 0; border-radius: 0; }
  .flow-step { min-height: 400px; flex: 0 0 80%; padding: 24px 20px; scroll-snap-align: start; scroll-snap-stop: always; border: 0; border-radius: 16px; background: var(--panel); box-shadow: 0 16px 34px rgba(0,0,0,.24); }
  .flow-step:last-child { border-bottom: 0; }
  .flow-step::after { display: none !important; }
  .flow-step > p { min-height: auto; margin-bottom: 18px; }
  .trend-stack { gap: 10px; padding: 16px; }
  .thread-demo, .post-demo { padding: 15px; }
  .post-demo > p { min-height: 0; }
  .mini-chart svg { height: 118px; }
  .stats-intro { grid-template-columns: 1fr; align-items: start; }
  .stats-intro h2, .pricing-head h2, .start-copy h2 { max-width: 12ch; font-size: clamp(2.35rem, 10.5vw, 2.7rem); }
  .period-tabs { width: 100%; }.period-tabs button { min-height: 44px; flex: 1; }
  .stats-board { min-height: 0; }
  .stats-values { grid-template-columns: 1fr; }
  .stats-values > div { padding: 14px 0; display: grid; grid-template-columns: 1fr auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .stats-values > div:last-child { border-bottom: 0; }
  .stats-values strong { margin: 0; grid-row: span 2; font-size: 2rem; }
  .stats-chart { padding: 58px 16px 18px; }.stats-chart svg { height: 180px; }.stats-chart .chart-legend { top: 18px; left: 16px; right: auto; }
  .stories { padding-top: 64px; }
  .stories-track { display: flex; gap: 12px; overflow-x: auto; }
  .story, .story:nth-child(even) { min-height: 0; flex: 0 0 80%; align-content: start; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; border: 0; border-radius: 16px; background: var(--panel); box-shadow: 0 16px 34px rgba(0,0,0,.24); }
  .story-copy, .story:nth-child(even) .story-copy { min-height: var(--story-copy-height, auto); padding: 38px 22px 28px; }
  .story-copy h3 { margin-bottom: 20px; font-size: clamp(1.8rem, 8.5vw, 2.3rem); }
  .plain-list { margin-top: 22px; gap: 10px; }
  .story-stage, .story:nth-child(even) .story-stage { min-height: var(--story-stage-height, 0); margin: 0 14px 16px; padding: 14px; }
  .source-post, .generated-comment, .instruction-source, .autopost-preview, .trend-source, .trend-result { padding: 18px; }
  .ai-route { min-height: 54px; padding: 0 8px; grid-template-columns: auto 1fr; }.ai-route strong { grid-column: 1 / -1; }
  .autopost-preview { grid-template-columns: 1fr; gap: 14px; }
  .autopost-image { min-height: 150px; }
  .autopost-route { min-height: 54px; gap: 7px; font-size: .62rem; }
  .trend-ranking li { min-height: 58px; gap: 9px; }
  .trend-transform span { max-width: 170px; text-align: center; }
  .trend-transform { min-height: 52px; }
  .control, .start, .faq { gap: 36px; }
  .control { padding-top: 60px; padding-bottom: 60px; }
  .control-rows > div { grid-template-columns: 1fr; gap: 7px; padding-left: 24px; }
  .control-signal { top: 34px; }
  .start-steps li { min-height: 104px; grid-template-columns: 42px 1fr; gap: 14px; }
  .plans { display: flex; gap: 12px; overflow-x: auto; border: 0; border-radius: 0; }
  .plan { min-height: 520px; flex: 0 0 80%; padding: 24px 20px; grid-template-rows: auto auto auto auto 1fr auto; scroll-snap-align: start; scroll-snap-stop: always; background-color: var(--panel); }
  .plan-name { margin-top: 32px; }
  .plan-label { top: 20px; left: 20px; }
  .plan > p { min-height: auto; margin: 14px 0; }
  .plan ul { margin-bottom: 22px; gap: 10px; }
  .pricing-head { grid-template-columns: 1fr; align-items: start; }
  .pricing-head .button { width: 100%; }
  .partners-head { margin-bottom: 38px; }
  .partners-head h2 { max-width: 12ch; font-size: clamp(2.35rem, 10.5vw, 2.7rem); }
  .partners-head p { font-size: 1rem; }
  .lifetime-share { min-height: 108px; gap: 18px; }
  .lifetime-share strong { font-size: clamp(4.5rem, 22vw, 6rem); }
  .lifetime-share span { font-size: .7rem; }
  .partner-route li { min-height: 116px; grid-template-columns: 42px 1fr; gap: 14px; }
  .partner-route p { font-size: .84rem; }
  .partner-ledger { padding-top: 24px; padding-bottom: 24px; }
  .ledger-head { min-height: 58px; align-items: start; }
  .ledger-head strong { max-width: 19ch; }
  .ledger-row { min-height: 82px; padding-right: 0; }
  .ledger-row > strong { font-size: 2.25rem; }
  .ledger-note { margin-right: 0; }
  .partners-action { min-height: 0; padding-top: 28px; }
  .partners-action .button { width: 100%; }
  .faq summary { min-height: 58px; padding-top: 20px; padding-bottom: 20px; }
  .faq summary::before, .faq summary::after { top: 30px; }
  .closing { min-height: 480px; padding-top: 60px; padding-bottom: 60px; border-radius: 0; }
  .closing h2 { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .closing .button { width: 100%; }
  .site-footer { min-height: 0; padding-top: 34px; padding-right: max(18px, env(safe-area-inset-right)); padding-bottom: max(34px, env(safe-area-inset-bottom)); padding-left: max(18px, env(safe-area-inset-left)); }
  .site-footer p { width: 100%; font-size: .82rem; }
  .site-footer nav { flex-wrap: wrap; gap: 8px 22px; }
  .site-footer nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .brand, .text-arrow { min-height: 44px; }
}

@media (max-width: 420px) {
  .brand { gap: 8px; font-size: .72rem; }
  .brand-mark { width: 25px; height: 25px; }
  .hero-copy .button { padding-left: 16px; padding-right: 16px; font-size: .92rem; }
  .chart-legend { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .tape-track { transform: none !important; }
}

/* ==================== РАЗДЕЛ СТАТЕЙ ====================
   ВОЗВРАЩЕНО 21.08.2026. Правила жили в файле с 18.08, но 19.08 styles.css заменили целиком на
   присланный владельцем — вместе с заменой раздел статей остался без оформления: заголовок и текст
   прижимались к левому краю, обложка растягивалась во всю ширину окна, карточки шли в один столбец
   огромными плитками. Снаружи это выглядело как «вёрстка в блоге слетела», хотя разметка статей не
   менялась ни разу.
   Возвращена ПОСЛЕДНЯЯ рабочая версия (коммит 78865e3): список — сетка по ширине окна, обложка в
   карточке фиксированной высоты 150px с обрезкой по центру, а не во весь экран.
   Своего визуального мира разделу не нужно: цвета, шрифты и рамки берутся токенами сайта, здесь
   задан только ритм чтения — мера строки 65–75 знаков, иначе глаз теряет начало следующей.
*/
.article-page { background: var(--ink); }
/* ПОДВАЛ ПРИЖАТ К НИЗУ ОКНА. Короткая страница (404, свежий раздел блога) заканчивалась там, где
   кончался текст, а ниже оставался голый фон — подвал выглядел «поднятым» (22.08). Колонка на всю
   высоту окна: середина растёт, подвал остаётся внизу. Длинным статьям это ничего не меняет. */
.article-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.article-page > main { flex: 1 0 auto; }
.article-page > .site-footer { flex-shrink: 0; }
/* Страница «не найдено» — не статья: текста мало, и прижимать его к шапке незачем.
   Ставим по центру выросшей середины. */
.error-page > main.article-shell {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding-top: 64px; padding-bottom: 64px;
}
.error-page > main.article-shell > * { width: 100%; }
.article-shell {
  width: 100%;
  min-width: 0;
  max-width: 760px;
  margin: 0 auto;
  padding: 120px 22px 80px;
}
.article { min-width: 0; }
.article .article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  margin: -20px 0 26px; color: var(--muted); font-size: 13px; line-height: 1.45;
}
.article .article-meta time { color: var(--text-soft); }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.crumbs a { color: var(--text-soft); text-decoration: none; }
.crumbs a:hover { color: var(--cyan); }
.crumbs span { margin: 0 6px; opacity: .5; }

.article h1 {
  font-family: var(--font-display, inherit);
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  text-wrap: balance;
}
.article-lead {
  font-size: 17px; line-height: 1.6; color: var(--text-soft);
  margin-bottom: 34px; padding-bottom: 26px; border-bottom: 1px solid var(--line);
}
.article h2 {
  font-size: 25px; line-height: 1.2; margin: 46px 0 14px;
  letter-spacing: -0.01em; text-wrap: balance;
}
.article h3 { font-size: 19px; margin: 32px 0 10px; }
.article p { font-size: 16.5px; line-height: 1.72; color: var(--text-soft); margin-bottom: 18px; }
.article strong { color: var(--text); font-weight: 600; }
.article a { color: var(--cyan); text-underline-offset: 3px; }
.article ul { margin: 0 0 20px; padding-left: 22px; }
.article li { font-size: 16.5px; line-height: 1.68; color: var(--text-soft); margin-bottom: 9px; }
.article li::marker { color: var(--violet-2); }
/* Цитата отделяется фоном и рамкой по периметру, а не цветной полосой слева: полоса-акцент
   сбоку — самый узнаваемый штамп машинной вёрстки, и на сайте её нет больше нигде. */
.article blockquote {
  margin: 0 0 22px; padding: 16px 20px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 12px;
}
.article blockquote p:last-child { margin-bottom: 0; }
.article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px; background: var(--panel-2); padding: 2px 6px; border-radius: 5px; color: var(--text);
}

/* Таблицы в статьях уезжают за край на телефоне — прокручиваем их в своей области, чтобы вбок
   не ехала вся страница. */
.table-scroll { width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 12px; }
.article table { width: 100%; border-collapse: collapse; min-width: 420px; }
.article th {
  text-align: left; font-size: 12px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.article td { padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--text-soft); }
.article tbody tr:last-child td { border-bottom: 0; }

/* Содержание. Показывается только у длинных статей — у короткой оно занимает экран и ничего
   не даёт. Решение принимает сборщик: меньше трёх разделов — оглавления нет. */
.toc { margin: 0 0 34px; padding: 16px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.toc p { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.toc ul { margin: 0; padding-left: 18px; }
.toc li { font-size: 15px; margin-bottom: 6px; line-height: 1.45; }
.toc a { color: var(--text-soft); text-decoration: none; }
.toc a:hover { color: var(--cyan); }

/* Следующие статьи и предложение. Предложение — единственное место в тексте, где мы говорим
   о себе, и стоит оно в конце: сначала человек получает ответ, ради которого пришёл. */
.article-next { margin: 46px 0 0; padding-top: 26px; border-top: 1px solid var(--line); }
.article-next p { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.article-next a {
  display: block; padding: 14px 18px; margin-bottom: 8px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 12px; color: var(--text);
  text-decoration: none; font-size: 16px; transition: border-color .18s, transform .18s;
}
.article-next a:hover { border-color: var(--violet-2); transform: translateX(3px); }

.article-cta {
  margin-top: 40px; padding: 30px 28px; border-radius: 16px;
  background: linear-gradient(140deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-strong);
}
.article-cta h2 { margin: 0 0 10px; font-size: 22px; }
.article-cta p { margin-bottom: 20px; }
.article-cta .btn-primary { display: inline-flex; }

/* Оглавление раздела. Две колонки на широком экране: одна карточка с обложкой занимала почти
   весь экран, и десять статей превращались в бесконечную ленту — список переставал работать как
   список, по нему нельзя было выбрать. */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; margin-top: 30px; }
.post-card {
  display: block; padding: 18px 18px 20px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; text-decoration: none; transition: border-color .18s, transform .18s;
}
.post-card:hover { border-color: var(--violet-2); transform: translateY(-2px); }
.post-card h2 { font-size: 18px; margin: 0 0 8px; color: var(--text); line-height: 1.25; }
.post-card p { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0; }

@media (max-width: 640px) {
  .article-shell { padding: 96px 18px 60px; }
  .article h2 { font-size: 22px; margin-top: 36px; }
  .article p, .article li { font-size: 16px; }
  .article-cta { padding: 24px 20px; }
}

/* Обложка статьи. Соотношение задано атрибутами width/height в разметке — без них браузер не знает
   высоту до загрузки картинки и дёргает вёрстку, а это прямо бьёт по Core Web Vitals. */
.article-cover { width: 100%; height: auto; border-radius: 14px; margin-bottom: 30px; display: block; }
/* Обложка в карточке — узкой полосой: она подсказывает тему, но решение принимают по заголовку,
   и отдавать ей высоту экрана незачем. */
.post-card img { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; margin-bottom: 14px; display: block; }
