/* Блог Yomems (C280): язык лендинга — тёмный фон, мятный акцент, Golos Text и моно-подписи. */
:root {
  color-scheme: dark;
  --bg: #06060f;
  --panel: #0d0f1a;
  --panel-2: #12152290;
  --text: #e9ede8;
  --muted: #a1a4b0;
  --accent: #a3efd2;
  --line: #c0d4de24;
  --error: #f39ab4;
  --warn: #f2d08a;
  --c1: #a3efd2;
  --c2: #9ab8f3;
  --c3: #f2d08a;
  --c4: #f39ab4;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --measure: 720px;
  font-family: 'Golos Text', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); line-height: 1.6; overflow-x: clip; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img, video, svg { max-width: 100%; height: auto; display: block; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #070c0c; }
.skip-link { position: fixed; top: -80px; left: 16px; background: var(--accent); color: var(--bg); padding: 12px; z-index: 50; }
.skip-link:focus { top: 8px; }

.label { font: 400 12px/1.6 var(--mono); letter-spacing: .04em; text-transform: lowercase; color: var(--muted); margin: 0 0 8px; }
.label a { text-decoration: none; }
.label a:hover { color: var(--accent); }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; box-shadow: 0 0 10px var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.lead { font-size: 20px; line-height: 1.5; max-width: 640px; }
.button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--accent); color: var(--accent); background: transparent; padding: 10px 18px; border-radius: 999px; text-decoration: none; cursor: pointer; font-weight: 500; }
.button:hover { background: var(--accent); color: var(--bg); }
.button.small { padding: 6px 14px; font-size: 14px; }
.quiet { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.quiet:hover { color: var(--accent); }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px max(16px, calc(50% - 560px)); border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #06060fe8; backdrop-filter: blur(10px); z-index: 20; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; font-size: 18px; }
.brand span { font: 12px var(--mono); color: var(--accent); }
.nav { display: flex; gap: 20px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; }
.nav a[aria-current], .nav a:hover { color: var(--text); }
.who { display: flex; align-items: center; gap: 14px; }
.who form { margin: 0; }

.page { padding: 0 max(16px, calc(50% - 560px)) 64px; min-height: 70vh; }
.hero { padding: 56px 0 32px; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.05; font-weight: 500; margin: 0 0 16px; letter-spacing: -.02em; }
.empty { padding: 32px 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--panel); display: flex; flex-direction: column; }
.card-cover img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card-body { padding: 18px 20px 22px; }
.card h2 { font-size: 21px; line-height: 1.25; margin: 0 0 8px; font-weight: 500; }
.card h2 a { text-decoration: none; }
.card h2 a:hover { color: var(--accent); }
.card p.muted { margin: 0; font-size: 15px; }
.pager { display: flex; gap: 24px; align-items: center; justify-content: center; padding: 32px 0 0; }

.article { max-width: var(--measure); margin: 0 auto; }
.crumbs { padding-top: 32px; }
.article-head h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.1; font-weight: 500; margin: 8px 0 16px; letter-spacing: -.015em; }
.meta { margin-top: 12px; }
.cover { border-radius: 18px; margin: 24px 0; width: 100%; }
.toc { border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin: 24px 0; background: var(--panel); }
.toc ol { margin: 0; padding-left: 20px; }
.toc a { text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--accent); }

.prose { font-size: 18px; line-height: 1.7; }
.prose h2 { font-size: 30px; line-height: 1.2; font-weight: 500; margin: 48px 0 12px; scroll-margin-top: 90px; }
.prose h3 { font-size: 23px; line-height: 1.3; font-weight: 500; margin: 32px 0 8px; scroll-margin-top: 90px; }
.prose h4 { font-size: 19px; margin: 24px 0 6px; scroll-margin-top: 90px; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose code { font: 15px var(--mono); background: var(--panel); padding: 2px 6px; border-radius: 6px; }
.prose pre { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose blockquote { margin: 28px 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--accent); font-size: 20px; }
.prose blockquote cite { display: block; font: 13px var(--mono); color: var(--muted); font-style: normal; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.fig { margin: 32px 0; }
.fig img { border-radius: 14px; width: 100%; }
.fig figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; text-align: center; }
.fig-wide { margin-inline: min(0px, calc((var(--measure) - min(100vw - 32px, 1000px)) / 2)); }
.fig-full { margin-inline: calc(50% - 50vw + 16px); }
.ratio { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--panel); }
.ratio iframe, .ratio video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.compare-box { position: relative; overflow: hidden; border-radius: 14px; --pos: 50%; }
.compare-box img { border-radius: 0; }
.compare-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare-after img { width: 100%; height: 100%; object-fit: cover; }
.compare-box::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--accent); pointer-events: none; }
.compare-box input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.table-wrap { overflow-x: auto; margin: 28px 0; border: 1px solid var(--line); border-radius: 12px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th { color: var(--accent); font-weight: 500; }
.prose caption { caption-side: bottom; padding: 8px; color: var(--muted); font-size: 14px; }
.chart { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.chart-title { text-align: left !important; color: var(--text) !important; font-size: 16px !important; margin: 0 0 8px !important; }
.chart-svg text { fill: var(--muted); font: 12px var(--mono); }
.chart-svg .grid { stroke: var(--line); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; padding: 0; margin: 8px 0; font-size: 14px; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.chart details { font-size: 14px; color: var(--muted); }
.cols { display: grid; gap: 24px; margin: 28px 0; }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols .fig { margin: 0 0 16px; }
.callout { border: 1px solid var(--line); border-left: 3px solid var(--c2); border-radius: 12px; padding: 4px 20px; margin: 28px 0; background: var(--panel); }
.callout-tip { border-left-color: var(--accent); }
.callout-warn { border-left-color: var(--warn); }
.cta { text-align: center; border: 1px solid var(--line); border-radius: 18px; padding: 28px; margin: 40px 0; background: radial-gradient(circle at 50% 0, #a3efd21a, transparent 70%), var(--panel); }
.faq details { border-bottom: 1px solid var(--line); padding: 8px 0; }
.faq summary { cursor: pointer; list-style: none; }
.faq summary h3 { display: inline; font-size: 19px; margin: 0; }
.faq summary::before { content: "+"; color: var(--accent); margin-right: 12px; font-family: var(--mono); }
.faq details[open] summary::before { content: "–"; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font: 13px var(--mono); text-decoration: none; color: var(--muted); }
.chip:hover { color: var(--accent); border-color: var(--accent); }

.changes { list-style: none; padding: 0; margin: 16px 0; }
.change { padding: 6px 0; display: flex; gap: 12px; align-items: baseline; }
.tag { font: 11px var(--mono); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; color: var(--muted); white-space: nowrap; }
.change-new .tag { color: var(--accent); border-color: #a3efd255; }
.change-improved .tag { color: var(--c2); border-color: #9ab8f355; }
.change-fixed .tag { color: var(--warn); border-color: #f2d08a55; }
/* Журнал выпусков (/updates): хроника по месяцам, «Главное за месяц», каждая версия сворачивается.
   Точка — элемент сетки: центр точки совпадает с центром цифр номера (сдвиг на 1px — оптика). */
.month-bar { position: sticky; top: var(--header-h, 64px); z-index: 10; display: flex; gap: 22px; padding: 12px 0; background: var(--bg); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.month-bar a { font: 500 13px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #6b6f7c; text-decoration: none; white-space: nowrap; padding: 4px 0; border-bottom: 2px solid transparent; }
.month-bar a[aria-current="true"] { color: var(--text); border-bottom-color: var(--accent); }
.month-bar a:hover { color: var(--text); }
.month { padding-top: 56px; scroll-margin-top: calc(var(--header-h, 64px) + 60px); }
.month-high { margin: 0 0 16px; padding: 28px 32px; border-radius: 16px; border: 1px solid var(--line); background: radial-gradient(120% 140% at 100% 0, #a3efd21c, transparent 60%), var(--panel); }
.month-high h3 { margin: 0 0 18px; font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.month-high ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px 32px; }
.month-high li { font-size: 16px; line-height: 1.55; }
.month-high b { display: block; font: 400 12px var(--mono); color: #6b6f7c; margin-bottom: 6px; }
.release { border-bottom: 1px solid var(--line); }
.release > summary { list-style: none; display: grid; grid-template-columns: 132px minmax(0, 1fr) 24px; gap: 32px; padding: 34px 0; cursor: pointer; }
.release > summary::-webkit-details-marker { display: none; }
.release > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.release > summary:hover .release-title { color: #fff; }
.release-when { display: grid; grid-template-columns: 10px auto; column-gap: 10px; align-items: center; align-content: start; }
.pin { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--accent); background: var(--bg); transform: translateY(1px); }
.release.latest .pin { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.release-when b { font-size: 15px; font-weight: 600; line-height: 30px; }
.release-when time, .release-count { grid-column: 1 / -1; font: 12.5px/18px var(--mono); color: #6b6f7c; }
.release-count { margin-top: 4px; }
.release[open] .release-count { visibility: hidden; }
.release-head { display: grid; gap: 6px; min-width: 0; }
.release-title { font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
.release-sum { font-size: 16.5px; line-height: 1.7; margin-top: 8px; color: var(--muted); max-width: 62ch; }
.release-chev { width: 22px; height: 22px; color: #6b6f7c; margin-top: 4px; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.release[open] .release-chev { transform: rotate(180deg); }
.release-body { padding: 4px 0 40px 164px; }
.release-group { margin-top: 24px; }
.release-group:first-child { margin-top: 0; }
.release-group h4 { margin: 0 0 12px; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.release-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.release-group li { font-size: 16px; line-height: 1.65; padding-left: 18px; position: relative; }
.release-group li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 6px; height: 6px; border-radius: 2px; background: currentColor; }
.kind-new h3, .kind-new li::before { color: var(--accent); }
.kind-improved h3, .kind-improved li::before { color: var(--c2); }
.kind-fixed h3, .kind-fixed li::before { color: var(--warn); }

/* Главная — одна страница из трёх разделов (дорожная карта, журнал, идеи). Много воздуха:
   разделы разделены большим отступом и тонкой линией, текст свободнее по интерлиньяжу. Журнал и
   идеи — колонкой для чтения слева, под заголовком раздела. */
.sec { padding-block: 96px; scroll-margin-top: var(--header-h, 64px); }
.sec + .sec { border-top: 1px solid var(--line); }
.sec:first-child { padding-top: 64px; }
.sec-head { margin-bottom: 56px; }
.sec-head .lead { max-width: 64ch; }
.sec-head h1, .sec-head h2 { font-size: clamp(32px, 4.6vw, 46px); line-height: 1.1; font-weight: 600; letter-spacing: -.02em; margin: 14px 0 18px; text-wrap: balance; }
.sec-head .lead { font-size: 18px; line-height: 1.7; margin: 0; }
/* Появление при прокрутке: только когда работает скрипт (класс js на html), иначе всё видно сразу. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--reveal-delay, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.nav a { position: relative; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.nav a[aria-current="true"] { color: var(--text); }
.nav a[aria-current="true"]::after { transform: scaleX(1); }
.vote:active { scale: .94; }
.vote[aria-pressed="true"] svg { animation: vote-pop .4s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes vote-pop { 50% { transform: translateY(-4px) scale(1.25); } }
.release[open] > .release-body { animation: rm-rise .45s cubic-bezier(.2, .7, .2, 1) both; }
@media (max-width: 640px) {
  .sec { padding-block: 64px; }
  .sec:first-child { padding-top: 40px; }
  .sec-head { margin-bottom: 36px; }
  .sec-head .lead { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Последний раздел главной — статьи блога: три свежие карточкой и ссылка на все. */
.sec-blog .grid { margin-bottom: 40px; }
.sec-blog .button { padding: 12px 22px; }

/* Дорожная карта: линия этапов. На широком экране этапы в ряд, подробности выбранного — панелью
   под линией (вторая строка сетки); на узком линия идёт сверху вниз, подробности — прямо под этапом.
   Отрезок линии идёт от центра точки этапа до центра следующей: ширина колонки плюс зазор. */
.rm { --gap: 24px; --dot: 14px; --axis: 22px; }
.st-done { --st: #7fd8b4; } .st-now { --st: var(--accent); } .st-next { --st: var(--c2); } .st-later { --st: #c3a6f5; }
.rm-line { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); column-gap: var(--gap); margin-top: 24px; }
.rm-stage { all: unset; grid-row: 1; box-sizing: border-box; display: flex; flex-direction: column; align-items: flex-start; cursor: pointer; padding-bottom: 8px; border-radius: 12px; animation: rm-rise .6s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 90ms); }
.rm-stage:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.rm-when { font-size: 15px; color: var(--muted); white-space: nowrap; }
.rm-label { font: 500 12px/1.6 var(--mono); color: #6b6f7c; }
.rm-axis { position: relative; display: block; align-self: stretch; height: var(--axis); margin: 10px 0 14px; }
.rm-seg { position: absolute; left: calc(var(--dot) / 2); top: calc(var(--axis) / 2 - 1px); width: calc(100% + var(--gap)); height: 2px; background: repeating-linear-gradient(90deg, #c0d4de38 0 5px, transparent 5px 10px); }
.rm-seg b { position: absolute; inset: 0 auto 0 0; width: var(--fill); background: var(--accent); box-shadow: 0 0 10px #a3efd299; transform-origin: left center; animation: rm-grow-x .9s cubic-bezier(.4, 0, .2, 1) both; animation-delay: calc(300ms + var(--i) * 260ms); }
.rm-last .rm-seg { display: none; }
.rm-dot { position: absolute; left: 0; top: calc(var(--axis) / 2 - var(--dot) / 2); width: var(--dot); height: var(--dot); box-sizing: border-box; border-radius: 50%; background: var(--bg); border: 2px solid #6b6f7c; z-index: 1; transition: scale .25s; animation: rm-pop .4s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(200ms + var(--i) * 260ms); }
.st-done .rm-dot { background: #7fd8b4; border-color: #7fd8b4; }
.st-now .rm-dot { background: var(--accent); border-color: var(--accent); animation: rm-pop .4s cubic-bezier(.3, 1.6, .5, 1) both, rm-pulse 2.4s ease-out 1.2s infinite; animation-delay: calc(200ms + var(--i) * 260ms), 1.4s; }
.rm-stage[aria-expanded="true"] .rm-dot { scale: 1.3; }
.rm-today { position: absolute; left: calc(var(--dot) / 2 + (100% + var(--gap)) * var(--fill-n, 0)); top: -20px; transform: translateX(-50%); font: 600 11px/1 var(--mono); font-style: normal; color: var(--accent); white-space: nowrap; animation: rm-fade .5s both 1.3s; }
.rm-today::after { content: ""; position: absolute; left: 50%; top: 15px; width: 2px; height: 12px; margin-left: -1px; border-radius: 2px; background: var(--accent); }
.rm-name { font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; margin: 4px 0 10px; transition: color .2s; }
.rm-goal { font-size: 14.5px; line-height: 1.65; color: var(--muted); margin-bottom: 16px; }
.st-done .rm-name, .st-done .rm-goal, .st-done .rm-when { color: #6b6f7c; }
.st-now .rm-when { color: var(--text); }
.rm-stage:hover .rm-name, .rm-stage[aria-expanded="true"] .rm-name { color: var(--st); }
.rm-chip { display: inline-flex; align-items: center; gap: 6px; margin: 0; font: 500 11px/1 var(--mono); letter-spacing: .04em; padding: 5px 9px; border-radius: 999px; border: 1px solid currentColor; color: var(--st); white-space: nowrap; }
.st-done .rm-chip { color: #6b6f7c; }
.st-now .rm-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: rm-blink 1.8s ease-in-out infinite; }
.rm-detail { grid-row: 2; grid-column: 1 / -1; margin-top: 40px; }
.rm-detail:not([hidden]) .rm-panel { animation: rm-rise .45s cubic-bezier(.2, .7, .2, 1) both; }
.rm-panel { position: relative; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 44px; align-items: center; padding: 44px; border-radius: 24px; border: 1px solid color-mix(in srgb, var(--st) 30%, transparent); background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--st) 14%, transparent), transparent 55%), var(--panel); overflow: hidden; }
.rm-panel::after { content: ""; position: absolute; inset: auto -20% -60% 40%; height: 120%; background: radial-gradient(closest-side, color-mix(in srgb, var(--st) 8%, transparent), transparent); pointer-events: none; animation: rm-drift 9s ease-in-out infinite alternate; }
@property --rm-p { syntax: "<number>"; inherits: false; initial-value: 0; }
.rm-ring { --rm-p: var(--p); width: 180px; height: 180px; border-radius: 50%; display: grid; place-items: center; position: relative; background: conic-gradient(var(--st) calc(var(--rm-p) * 1%), #ffffff12 0); animation: rm-ring 1.1s cubic-bezier(.4, 0, .2, 1) both .15s; }
.rm-ring::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--panel); }
.rm-ring div { position: relative; text-align: center; }
.rm-ring b { display: block; font-size: 44px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.rm-ring span { font-size: 13px; color: var(--muted); }
.rm-info { position: relative; z-index: 1; min-width: 0; }
.rm-info h3 { margin: 12px 0 6px; font-size: 30px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
.rm-lead { margin: 0 0 32px; color: var(--muted); font-size: 17px; line-height: 1.7; max-width: 62ch; }
.rm-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.rm-cols h4 { margin: 0 0 14px; font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #6b6f7c; }
.rm-cols ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.rm-cols li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.rm-cols li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: #6b6f7c; }
.rm-cols .rm-ok li::before { top: 6px; width: 9px; height: 5px; border-radius: 0; background: none; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.rm-cols .rm-left li::before { background: none; border: 1.5px solid var(--warn); }
.rm-empty { margin: 0; font-size: 14px; color: #6b6f7c; }
/* Классы вместо атрибута style (CSP): колонки, задержки по порядку, заливка и процент шагом 5. */
.rm-n2 { --n: 2; } .rm-n3 { --n: 3; } .rm-n4 { --n: 4; } .rm-n5 { --n: 5; } .rm-n6 { --n: 6; } .rm-n7 { --n: 7; } .rm-n8 { --n: 8; }
.rm-stage:nth-of-type(1) { --i: 0; } .rm-stage:nth-of-type(2) { --i: 1; } .rm-stage:nth-of-type(3) { --i: 2; } .rm-stage:nth-of-type(4) { --i: 3; } .rm-stage:nth-of-type(5) { --i: 4; } .rm-stage:nth-of-type(6) { --i: 5; } .rm-stage:nth-of-type(7) { --i: 6; } .rm-stage:nth-of-type(8) { --i: 7; }
.rm-f0 { --fill: 0%; --fill-n: 0; } .rm-p0 { --p: 0; }
.rm-f5 { --fill: 5%; --fill-n: 0.05; } .rm-p5 { --p: 5; }
.rm-f10 { --fill: 10%; --fill-n: 0.1; } .rm-p10 { --p: 10; }
.rm-f15 { --fill: 15%; --fill-n: 0.15; } .rm-p15 { --p: 15; }
.rm-f20 { --fill: 20%; --fill-n: 0.2; } .rm-p20 { --p: 20; }
.rm-f25 { --fill: 25%; --fill-n: 0.25; } .rm-p25 { --p: 25; }
.rm-f30 { --fill: 30%; --fill-n: 0.3; } .rm-p30 { --p: 30; }
.rm-f35 { --fill: 35%; --fill-n: 0.35; } .rm-p35 { --p: 35; }
.rm-f40 { --fill: 40%; --fill-n: 0.4; } .rm-p40 { --p: 40; }
.rm-f45 { --fill: 45%; --fill-n: 0.45; } .rm-p45 { --p: 45; }
.rm-f50 { --fill: 50%; --fill-n: 0.5; } .rm-p50 { --p: 50; }
.rm-f55 { --fill: 55%; --fill-n: 0.55; } .rm-p55 { --p: 55; }
.rm-f60 { --fill: 60%; --fill-n: 0.6; } .rm-p60 { --p: 60; }
.rm-f65 { --fill: 65%; --fill-n: 0.65; } .rm-p65 { --p: 65; }
.rm-f70 { --fill: 70%; --fill-n: 0.7; } .rm-p70 { --p: 70; }
.rm-f75 { --fill: 75%; --fill-n: 0.75; } .rm-p75 { --p: 75; }
.rm-f80 { --fill: 80%; --fill-n: 0.8; } .rm-p80 { --p: 80; }
.rm-f85 { --fill: 85%; --fill-n: 0.85; } .rm-p85 { --p: 85; }
.rm-f90 { --fill: 90%; --fill-n: 0.9; } .rm-p90 { --p: 90; }
.rm-f95 { --fill: 95%; --fill-n: 0.95; } .rm-p95 { --p: 95; }
.rm-f100 { --fill: 100%; --fill-n: 1; } .rm-p100 { --p: 100; }
@keyframes rm-rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes rm-grow-x { from { transform: scaleX(0); } }
@keyframes rm-grow-y { from { transform: scaleY(0); } }
@keyframes rm-pop { from { transform: scale(0); } }
@keyframes rm-fade { from { opacity: 0; } }
@keyframes rm-blink { 50% { opacity: .25; } }
@keyframes rm-pulse { 0% { box-shadow: 0 0 0 0 #a3efd280; } 70%, 100% { box-shadow: 0 0 0 12px #a3efd200; } }
@keyframes rm-ring { from { --rm-p: 0; } }
@keyframes rm-drift { from { transform: translate(0, 0); } to { transform: translate(-12%, -8%); } }
@media (max-width: 860px) {
  .rm-line { grid-template-columns: minmax(0, 1fr); margin-top: 8px; }
  .rm-stage, .rm-detail { grid-row: auto; grid-column: 1; }
  .rm-stage { position: relative; padding: 0 0 26px 34px; }
  .rm-axis { position: absolute; left: 0; top: 0; bottom: 0; width: var(--axis); height: auto; margin: 0; }
  .rm-dot { left: calc(var(--axis) / 2 - var(--dot) / 2); top: 4px; }
  .rm-seg { left: calc(var(--axis) / 2 - 1px); top: calc(4px + var(--dot) / 2); width: 2px; height: calc(100% - 4px - var(--dot) / 2); background: repeating-linear-gradient(180deg, #c0d4de38 0 5px, transparent 5px 10px); }
  .rm-seg b { inset: 0 0 auto 0; width: auto; height: var(--fill); transform-origin: center top; animation-name: rm-grow-y; }
  .rm-today { display: none; }
  .rm-name { font-size: 19px; margin: 4px 0 6px; }
  .rm-detail { position: relative; margin: -12px 0 0; padding: 0 0 26px 34px; }
  .rm-detail::before { content: ""; position: absolute; left: calc(var(--axis) / 2 - 1px); top: 0; bottom: 0; width: 2px; background: repeating-linear-gradient(180deg, #c0d4de38 0 5px, transparent 5px 10px); }
  .rm-detail.rm-full::before { background: var(--accent); box-shadow: 0 0 10px #a3efd299; }
  .rm-detail:last-child::before { display: none; }
  .rm-panel { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px 20px; justify-items: start; }
  .rm-ring { width: 112px; height: 112px; }
  .rm-ring::before { inset: 9px; }
  .rm-ring b { font-size: 28px; }
  .rm-info h3 { font-size: 22px; margin-top: 10px; }
  .rm-cols { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .rm *, .rm-stage, .rm-panel, .rm-ring { animation: none !important; }
}

.form { display: grid; gap: 12px; max-width: 560px; margin: 16px 0; }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.form input, .form textarea { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 16px; }
.form .button { justify-self: start; }
.form-status { min-height: 1em; margin: 0; font-size: 14px; color: var(--accent); }
.form-status.error { color: var(--error); }
.hint { color: var(--muted); }
.hint a { color: var(--accent); }
.rating, .comments { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.stars { display: flex; gap: 4px; }
.stars button { background: none; border: 0; font-size: 28px; color: var(--line); cursor: pointer; padding: 0 2px; line-height: 1; }
.stars button[aria-checked="true"], .stars button.lit { color: var(--accent); }
.stars button:disabled { cursor: default; }
.comment { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment .label { margin: 0; }
.comment-body { margin: 4px 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment.reply { margin-left: 24px; border-bottom: 0; border-left: 2px solid var(--line); padding-left: 16px; }
.comment.pending { opacity: .7; }

/* Идеи: блоки по статусу одной страницей, полоса блоков липнет под шапкой (как месяцы журнала). */
.st-open { --st: var(--accent); } .st-in_progress { --st: var(--warn); } .st-planned { --st: var(--c2); } .st-done { --st: #7fd8b4; }
.idea-bar a { display: flex; align-items: center; gap: 7px; font-family: inherit; font-size: 15px; font-weight: 400; line-height: 1.4; letter-spacing: 0; text-transform: none; color: var(--muted); }
.idea-bar a i { width: 7px; height: 7px; border-radius: 50%; background: var(--st); }
.idea-bar a b { font: 500 12px var(--mono); color: #6b6f7c; }
.idea-block { padding-top: 56px; }
.idea-block-head { display: flex; align-items: baseline; gap: 12px; margin: 0 0 8px; }
.idea-block-head h3 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.idea-block-head span { font: 500 13px var(--mono); color: #6b6f7c; }
.idea-block-sub { color: var(--muted); font-size: 15.5px; line-height: 1.6; margin: 0 0 16px; }
.ideas { list-style: none; padding: 0; margin: 0; }
.idea { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.idea:last-child { border-bottom: 0; }
.idea h4 { margin: 0; font-size: 17px; line-height: 1.45; font-weight: 600; overflow-wrap: anywhere; }
.idea-no { font: 500 13px var(--mono); color: #6b6f7c; margin-right: 10px; font-variant-numeric: tabular-nums; }
.idea p { margin: 8px 0 0; font-size: 15.5px; line-height: 1.65; color: var(--muted); overflow-wrap: anywhere; }
.lite .idea, .mine .idea { grid-template-columns: 10px minmax(0, 1fr) auto; gap: 16px; padding: 18px 0; align-items: start; }
.lite .idea::before, .mine .idea::before { content: ""; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--st, #6b6f7c); }
.lite .votes-static { line-height: 24px; }
.lite .idea h4, .mine .idea h4 { font-size: 16px; font-weight: 500; }
.st-done .idea::before { width: 10px; height: 6px; border-radius: 0; background: none; border-left: 2px solid var(--st); border-bottom: 2px solid var(--st); transform: rotate(-45deg) translate(1px, 0); margin-top: 6px; }
.mine .idea::before { background: none; border: 1.5px dashed #6b6f7c; }
.vote { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); text-decoration: none; white-space: nowrap; transition: border-color .15s, background .15s; }
.vote svg { width: 14px; height: 14px; color: var(--muted); }
.vote:hover { border-color: var(--accent); }
.vote[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.vote[aria-pressed="true"] svg { color: var(--bg); }
.votes-static { font: 500 12px var(--mono); color: #6b6f7c; white-space: nowrap; font-variant-numeric: tabular-nums; }
.propose { margin-top: 72px; padding: 40px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.propose h3 { font-size: 26px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 10px; }
.propose > p { margin: 0 0 12px; font-size: 16px; line-height: 1.6; }
.propose .form { max-width: 620px; }
.propose .form input, .propose .form textarea { background: var(--bg); border-radius: 12px; padding: 12px 14px; }
.propose .form input:focus, .propose .form textarea:focus { outline: none; border-color: var(--accent); }
.propose .note { color: #6b6f7c; font-size: 13px; }
.btn { justify-self: start; background: var(--accent); color: var(--bg); border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 600; font-size: 15px; cursor: pointer; }

.related { max-width: 1120px; margin: 64px auto 0; }
.site-footer { border-top: 1px solid var(--line); padding: 24px max(16px, calc(50% - 560px)); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
.site-footer p { margin: 0; }

@media (max-width: 640px) {
  .nav { order: 3; width: 100%; overflow-x: auto; gap: 16px; }
  .who .button { display: none; }
  .cols-2, .cols-3 { grid-template-columns: 1fr; }
  .month-bar { gap: 18px; }
  .idea { gap: 12px; align-items: start; }
  .idea h4 { font-size: 16px; }
  .lite .votes-static { display: none; }
  .propose { padding: 28px 20px; margin-top: 56px; }
  .propose h3 { font-size: 20px; }
  .month-high { padding: 18px; }
  .release > summary { grid-template-columns: minmax(0, 1fr) 22px; gap: 10px 12px; padding: 22px 0; }
  .release-when { grid-column: 1 / -1; grid-template-columns: 10px auto auto auto; justify-content: start; column-gap: 8px; }
  .release-when b { line-height: 22px; }
  .release-when time, .release-count { grid-column: auto; line-height: 22px; margin: 0 0 0 4px; }
  .release-head { grid-column: 1; }
  .release-chev { grid-column: 2; grid-row: 2; margin-top: 2px; }
  .release-title { font-size: 21px; line-height: 1.3; }
  .release-sum { font-size: 16px; }
  .release-body { padding: 0 0 24px; }
  .prose { font-size: 17px; }
  .lead { font-size: 18px; }
  .fig-wide, .fig-full { margin-inline: 0; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
