/* Шрифт Onest лежит на нашем сервере (site/fonts, лицензия OFL): браузер посетителя не обращается к Google */
@font-face { font-family: Onest; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/onest-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Onest; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/onest-cyrillic-500-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Onest; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/onest-cyrillic-600-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Onest; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/onest-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Onest; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/onest-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Onest; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/onest-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Onest; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/onest-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Onest; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/onest-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Onest; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/onest-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Onest; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/onest-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/*
 * Сайт «Галёрка»: светлый и тихий, цвет живёт только внутри «экранов зала».
 * Токены — из ТЗ-сайт.md, раздел 2. Акцент задаёт атрибут data-accent на <body>:
 * рабочий — небесно-синий (окончательное решение 17.11), янтарный оставлен для сравнения (?accent=amber).
 */
:root {
  --bg: #FFFFFF;
  --bg-2: #F6F6FA;
  --ink: #16163A;
  --ink-2: #5B5B7A;
  --line: #E4E4EE;

  /* Небесно-синий — рабочий акцент */
  --accent: #2A6DF4;
  --accent-hover: #1F5AD6;
  --accent-ink: #FFFFFF;        /* текст на кнопке */
  --accent-text: #2160E0;       /* ссылки и выделения на белом: чуть глубже акцента — контраст ≥ 4,8 на белом, сером и голубом фоне */
  --accent-soft: #E3EEFF;
  --btn: #6FD3FF;               /* цвет кнопок (решение Дмитрия 23.11) */
  --btn-hover: #4CC6F7;
  --btn-ink: #16163A;

  /* Экран зала */
  --stage: #16163A;
  --stage-text: #F4F1FF;
  --s-amber: #FFB547; --s-coral: #FF7A8A; --s-sky: #6FD3FF; --s-mint: #7EE8B5; --s-lilac: #C9A7FF;

  --font: Onest, "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --screen-font: Bahnschrift, "DIN Alternate", "Segoe UI", "Arial Narrow", Arial, sans-serif;
  --r: 14px;
  --wrap: 1180px;
}
/* Янтарный — запасной вариант для сравнения (?accent=amber); текст на кнопке тёмный */
body[data-accent="amber"] {
  --accent: #FF9F1C;
  --accent-hover: #F08C00;
  --accent-ink: #16163A;
  --accent-text: #B35F00;
  --accent-soft: #FFF1DC;
  --btn: #FF9F1C; --btn-hover: #F08C00; --btn-ink: #16163A;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-text); }
h1, h2, h3 { font-weight: 700; line-height: 1.12; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(28px, 3.6vw, 42px); text-wrap: balance; }
h3 { font-size: 20px; letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding: 96px 0; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { margin-top: 14px; color: var(--ink-2); font-size: 19px; }

/* ---------- Кнопки и поля ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  border: 0; border-radius: 12px; padding: 12px 20px; cursor: pointer; text-decoration: none;
  font-weight: 600; font-size: 16px; line-height: 1.2; white-space: nowrap; min-height: 44px;
  transition: background .2s ease, box-shadow .2s ease, color .2s ease, transform .08s ease;
}
.btn:active { transform: scale(.98); }
.btn-accent { background: var(--btn); color: var(--btn-ink); }   /* кнопки небесно-голубые, текст тёмный: белый на голубом не читается */
.btn-accent:hover { background: var(--btn-hover); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-lg { font-size: 18px; padding: 16px 28px; border-radius: 14px; }
.field {
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff; padding: 11px 14px; min-width: 0; min-height: 44px;
  transition: border-color .15s;
}
.field:focus { outline: none; border-color: var(--accent); }
.field::placeholder { color: #9A9AB4; }

/* Поле «код с экрана»: цифры крупно и с разрядкой */
.code-form { display: flex; gap: 8px; }
.code-form .field { width: 130px; letter-spacing: .14em; font-weight: 600; text-align: center; }
.code-form .field::placeholder { letter-spacing: .14em; font-weight: 400; }

/* ---------- Полоса для участников ---------- */
.codebar { background: var(--ink); color: #fff; font-size: 15px; }
.codebar-in { display: flex; align-items: center; justify-content: center; gap: 14px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.codebar .field { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); color: #fff; padding: 6px 10px; width: 112px; min-height: 40px; }
.codebar .field::placeholder { color: rgba(255,255,255,.45); }
.codebar .field:focus { border-color: var(--accent); }
.codebar .btn { padding: 7px 14px; font-size: 15px; min-height: 40px; background: rgba(255,255,255,.14); color: #fff; }
.codebar .btn:hover { background: rgba(255,255,255,.24); }

/* ---------- Шапка ---------- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { font-weight: 700; font-size: 24px; letter-spacing: -.03em; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; min-height: 44px; }
/* Знак логотипа — img/logo.svg (утвердил Дмитрий 01.12): зритель с дальнего ряда встал и говорит. Вкладка — img/favicon.svg. */
.logo-mark { width: 40px; height: 40px; background: url("../img/logo.svg") center / contain no-repeat; flex: none; }
.nav { display: flex; gap: 26px; margin-right: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; padding: 12px 0; }
.nav a:hover { color: var(--accent-text); }

/* ---------- Первый экран ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hero > * { min-width: 0; }
/* С вкладками демо правая колонка меняет высоту — прижимаем к верху, чтобы текст слева не прыгал */
.hero.is-tabs { align-items: start; }
.hero.is-tabs > div:first-child { padding-top: 56px; }
.hero h1 { font-size: clamp(34px, 3.9vw, 54px); line-height: 1.06; text-wrap: balance; letter-spacing: -.035em; }
.hero .lead { margin-top: 24px; font-size: 20px; color: var(--ink-2); max-width: 34em; }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.note { font-size: 14px; color: var(--ink-2); }
.hero-code { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-code label { font-size: 15px; color: var(--ink-2); }

/* ---------- Экран зала (компонент) ---------- */
.stage {
  position: relative; aspect-ratio: 16 / 9; background: var(--stage); color: var(--stage-text);
  border-radius: 16px; overflow: hidden; font-family: var(--screen-font); container-type: inline-size;
}
.stage-q { position: absolute; left: 4.5%; top: 6%; right: 30%; font-weight: 700; font-stretch: semi-condensed; font-size: 4.2cqw; line-height: 1.08; }
.stage-meta { position: absolute; left: 4.5%; bottom: 6%; font-size: 2.1cqw; opacity: .55; }
.stage-cloud { position: absolute; left: 3%; right: 3%; top: 22%; bottom: 12%; }
.stage-join { position: absolute; right: 3.5%; bottom: 6%; display: flex; gap: 1.6cqw; align-items: center; background: rgba(255,255,255,.07); border-radius: 1.4cqw; padding: 1.2cqw; }
.stage-join img { width: 9cqw; height: 9cqw; border-radius: .6cqw; display: block; background: #fff; }
.stage-url { font-size: 1.7cqw; opacity: .8; }
.stage-code { font-weight: 700; font-size: 3.6cqw; letter-spacing: .06em; color: var(--s-amber); line-height: 1.05; }
.cloud-word {
  position: absolute; left: 0; top: 0; text-align: center; white-space: nowrap;
  font-family: var(--screen-font); font-weight: 600; font-stretch: semi-condensed;
  transition: transform .7s cubic-bezier(.2,.8,.2,1), font-size .7s cubic-bezier(.2,.8,.2,1), opacity .5s ease;
}
.cloud-word.is-new { opacity: 0; font-size: 1px !important; }
.cloud-word.is-gone { opacity: 0; }
.cloud-word.is-mine { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .12em; }

.try { margin-top: 16px; display: flex; gap: 10px; }
.try .field { flex: 1; font-size: 17px; padding: 13px 16px; }
.try-hint { margin-top: 10px; font-size: 14px; color: var(--ink-2); min-height: 1.5em; }

/* ---------- Как это работает ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.steps li { background: #fff; border-radius: var(--r); padding: 32px; border: 1px solid var(--line); }
/* Шаг: значок (что делаем) + подпись «Шаг N» */
.step-top { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.step-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--btn); color: var(--stage); flex: none; }
.steps li:nth-child(2) .step-ico { background: var(--warm-1, var(--btn)); }
.steps li:nth-child(3) .step-ico { background: var(--warm-2, var(--btn)); }
.step-n { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.steps p { margin-top: 10px; color: var(--ink-2); }

/* ---------- Механики ---------- */
.mechs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mech { border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 24px; display: flex; flex-direction: column; text-decoration: none; color: inherit; background: #fff; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.mech:hover { border-color: #C8C8DA; transform: translateY(-3px); box-shadow: 0 16px 32px -20px rgba(22,22,58,.35); }
.mech:hover .mech-more { text-decoration: underline; text-underline-offset: 3px; }
.mech .stage { border-radius: 12px; }
.mech-body { padding: 24px 8px 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mech-body p { color: var(--ink-2); }
.mech-more { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--accent-text); }
.badge { display: inline-block; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 3px 10px; background: var(--accent-soft); color: var(--accent-text); vertical-align: 3px; margin-left: 8px; letter-spacing: 0; }

/* мини-опрос */
.mini-poll { position: absolute; left: 6%; right: 6%; top: 24%; bottom: 10%; display: grid; align-content: center; gap: 4.4cqw; }
.mini-row { display: grid; grid-template-columns: 5.4cqw 1fr 8cqw; align-items: center; gap: 2.4cqw; }
.mini-l { height: 5.4cqw; border-radius: 1.2cqw; background: var(--c); color: var(--stage); display: grid; place-items: center; font-weight: 700; font-size: 3cqw; }
.mini-track { display: block; height: 3.2cqw; border-radius: 2cqw; background: rgba(255,255,255,.08); overflow: hidden; }
.mini-fill { display: block; height: 100%; width: var(--w, 10%); background: var(--c); border-radius: inherit; transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.mini-n { text-align: right; font-weight: 700; font-size: 3.4cqw; }
/* мини-стена вопросов */
.mini-wall { position: absolute; left: 4.5%; right: 4.5%; top: 25%; bottom: 8%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8cqw; align-content: start; }
.mini-q { background: rgba(255,255,255,.08); border-radius: 1.4cqw; padding: 2cqw; font-size: 2.7cqw; line-height: 1.25; border-left: .6cqw solid var(--c); }

/* ---------- Факты ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; }
.fact b { display: block; font-size: 20px; letter-spacing: -.01em; line-height: 1.25; margin-bottom: 8px; }
.fact b::before { content: ""; display: block; width: 28px; height: 3px; border-radius: 2px; background: var(--accent); margin-bottom: 16px; }
.fact p { color: var(--ink-2); }

/* ---------- Для кого ---------- */
.who { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.who > div { border-top: 3px solid var(--ink); padding-top: 18px; }
.who p { margin-top: 10px; color: var(--ink-2); font-size: 18px; }

/* ---------- Сценарии ---------- */
.scens { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.scen { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.scen.is-season { border: 2px solid var(--accent); }
.scen ol { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 15px; display: grid; gap: 6px; }
.scen .btn { margin-top: auto; align-self: flex-start; }
.scen-kind { font-size: 13px; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; font-weight: 600; font-size: 19px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 30px; width: 10px; height: 10px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 34px; }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 680px; }

/* ---------- Финальный призыв ---------- */
.final { text-align: center; }
.final h2 { max-width: 760px; margin: 0 auto; }
.final p { margin-top: 14px; color: var(--ink-2); font-size: 19px; }
.final-cta { margin-top: 32px; display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Подвал ---------- */
.foot { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 15px; color: var(--ink-2); }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot .foot-h { margin: 0 0 8px; font-size: 15px; line-height: 1.4; letter-spacing: 0; color: var(--ink); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.foot ul a { display: inline-block; padding: 10px 0; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot-note { margin-top: 12px; max-width: 30em; }

/* ---------- Текущая страница в шапке ---------- */
.nav a[aria-current="page"] { color: var(--accent-text); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }

/* ---------- Ваши комнаты (главная) ---------- */
.mine { margin-top: 24px; font-size: 15px; color: var(--ink-2); }
.mine b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 6px; }
.mine ul { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 0; }
.mine ul a, .mine-lab { display: inline-block; padding: 10px 0; }
.mine a { color: var(--accent-text); }
.mine-lab { font-size: 14px; }

/* ---------- Страница механики ---------- */
.ticks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 8px; color: var(--ink-2); }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 11px; height: 6px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-2); border-radius: 12px; margin-bottom: 14px; }
.tab { border: 0; background: transparent; border-radius: 9px; padding: 9px 16px; min-height: 40px; font-weight: 600; font-size: 15px; cursor: pointer; color: var(--ink-2); }
.tab.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(22,22,58,.12); }

.stage-cloud.is-full { top: 7%; bottom: 9%; }
.stage-mark { position: absolute; right: 3.5%; bottom: 3.5%; font-size: 1.7cqw; opacity: .45; }
.stage.is-light { background: #F6F5FB; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.stage.is-light .cloud-word { filter: saturate(1.4) brightness(.72); }
.stage.is-light .cloud-word.is-pale { color: var(--ink) !important; filter: none; }

.gen { margin-top: 14px; display: grid; gap: 10px; }
.gen-label { font-size: 14px; color: var(--ink-2); }
.gen textarea { resize: vertical; min-height: 92px; line-height: 1.45; font-size: 15px; }
.gen-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.gen-row .field { flex: 1; min-width: 200px; }
.gen-stat { font-size: 14px; color: var(--ink-2); min-height: 1.4em; margin: -2px 0 0; }
.gen-file { position: relative; overflow: hidden; cursor: pointer; }
.gen-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.gen-file:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.stage-logo { position: absolute; right: 4%; top: 5%; max-width: 20%; max-height: 13%; object-fit: contain; }
.trust { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--ink-2); }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 10px 14px; min-height: 41px; cursor: pointer; font-size: 15px; font-weight: 500; }
.seg button.is-on { background: var(--ink); color: #fff; }

.bridge { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.bridge > div { max-width: 680px; }
.bridge p { margin-top: 14px; color: var(--ink-2); font-size: 19px; }

.qlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 900px; }
.qlist li { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 16px 16px 22px; font-size: 18px; font-weight: 500; }

.examples { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.examples figure { margin: 0; }
.examples figcaption { margin-top: 12px; color: var(--ink-2); font-size: 15px; }

/* ---------- Служебное: панель макета и всплывашка ---------- */
.maket-panel {
  position: fixed; left: 16px; bottom: 16px; z-index: 20; display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px 8px 8px 14px;
  box-shadow: 0 8px 28px rgba(22,22,58,.14); font-size: 14px;
}
.maket-panel span { color: var(--ink-2); }
.maket-panel button { border: 0; border-radius: 9px; padding: 7px 12px; cursor: pointer; background: var(--bg-2); font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 7px; }
.maket-panel button i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.maket-panel button.is-on { background: var(--ink); color: #fff; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 30; font-size: 15px; max-width: calc(100% - 32px); text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Адаптивность ---------- */
@media (max-width: 1080px) {
  .scens { grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 18px; }
  .nav a { font-size: 15px; }
}
@media (max-width: 920px) {
  .top-in { flex-wrap: wrap; justify-content: space-between; height: auto; padding-top: 10px; row-gap: 0; }
  .nav { order: 3; flex-basis: 100%; margin: 0; gap: 24px; }
  .hero.is-tabs > div:first-child { padding-top: 0; }
  /* Облако слов: с поиска приходят «сделать облако слов» — генератор сразу под заголовком, кнопка и плашки после */
  .hero.gen-first { gap: 0; }
  .hero.gen-first > div:first-child { display: contents; }
  .hero.gen-first h1 { order: 1; }
  .hero.gen-first .lead { order: 2; }
  .hero.gen-first > div:last-child { order: 3; margin-top: 28px; }
  .hero.gen-first .hero-cta { order: 4; margin-top: 36px; }
  .hero.gen-first .trust { order: 5; }
  .hero.gen-first .ticks { order: 6; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 44px; padding-bottom: 64px; }
  .steps, .facts, .who { grid-template-columns: 1fr; }
  .facts { gap: 28px; }
  .mechs { grid-template-columns: 1fr; }
  .examples { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .scens { grid-template-columns: 1fr; }
  .codebar-in { justify-content: space-between; gap: 8px; flex-wrap: nowrap; }
  .codebar-label { font-size: 13px; line-height: 1.25; }
  .codebar .field { width: 92px; }
  .top-in { gap: 12px; }
  .nav { gap: 20px; }
  .nav a { font-size: 15px; }
  .logo { font-size: 21px; }
  .logo-mark { width: 36px; height: 36px; }
  .top .btn { padding: 10px 14px; font-size: 15px; }
  .hero .lead { font-size: 18px; }
  .hero-cta .btn-lg { width: 100%; }
  .hero-code { display: none; }   /* на телефоне код вводят в полосе сверху — второе поле только отодвигает демо */
  .try .btn { padding: 12px 14px; }
  .foot-in { grid-template-columns: 1fr; }
  .qlist li { flex-direction: column; align-items: flex-start; padding: 16px; font-size: 17px; }
  .gen-row .field { min-width: 0; flex-basis: 100%; }
  .maket-panel { left: 8px; right: 8px; bottom: 8px; justify-content: center; }
  .maket-panel span { display: none; }
}

/* ---------- Доступность и «скоро» (проверка Pro Max) ---------- */
/* Ссылка «Перейти к содержанию» — видна только при переходе клавишей Tab */
.skip { position: absolute; left: 16px; top: -100px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
/* То, что ещё не сделано, выглядит неактивным и подписано, а не притворяется рабочим */
.soon { display: inline-block; font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: 0; vertical-align: 3px; border-radius: 999px; padding: 1px 8px; margin-left: 6px; background: var(--bg-2); color: var(--ink-2); }
.btn.is-soon { color: var(--ink-2); cursor: not-allowed; }
.btn.is-soon:hover { box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.is-soon:active { transform: none; }

/* ---------- Второй проход Pro Max: экран как главный герой, «в эфире», ритм ---------- */
/* Экран на первом экране — единственное яркое пятно: даём ему глубину, как у настоящего проектора */
.hero .stage { box-shadow: 0 32px 64px -32px rgba(22,22,58,.55); }
/* Мягкое голубое свечение за экраном зала на первом экране — «экран светится в зале» */
main { overflow-x: clip; }   /* свечение не должно давать прокрутку вбок */
.hero > div:last-child { position: relative; }
.hero > div:last-child::before { content: ""; position: absolute; inset: -12% -10% -6%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(42,109,244,.16), rgba(111,211,255,.08) 55%, transparent); }

/* Появление блоков при прокрутке: только если сработал скрипт и человек не просил «меньше движения» */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .4s ease-out, transform .4s ease-out; transition-delay: var(--d, 0s); }
.rv.is-in { opacity: 1; transform: none; }

/* Полоска прогресса чтения в статьях блога */
/* Плашка согласия на Метрику: две равные кнопки, ничего не включено заранее */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 35; max-width: 560px; margin-left: auto; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: 0 16px 40px -16px rgba(22,22,58,.45); font-size: 15px; line-height: 1.45; }
.cookie-bar div { margin-top: 12px; display: flex; gap: 10px; }
.cookie-bar .btn { flex: 1; min-height: 44px; }

/* Документы: политика, согласие, условия */
.legal { max-width: 820px; }
.legal h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -.03em; margin-top: 16px; }
.legal .prose { font-size: 17px; margin-top: 28px; }
.legal .prose h2 { font-size: clamp(22px, 2.4vw, 26px); margin-top: 44px; }
.legal .prose ul { padding-left: 22px; }
.legal-brief { background: var(--bg-2); border-radius: 14px; padding: 20px 24px; }
.legal-brief ul { margin: 10px 0 0; padding-left: 20px; }
.legal .table-wrap { overflow-x: auto; }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.45; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; min-width: 130px; }
.legal th { background: var(--bg-2); }
mark.fill { background: #FFE9A8; color: var(--ink); border-radius: 4px; padding: 1px 5px; font-weight: 600; }
/* Генератор: главное сразу, настройки внешнего вида — по нажатию */
.gen-more { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.gen-more summary { cursor: pointer; list-style: none; min-height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; font-weight: 600; font-size: 15px; }
.gen-more summary::-webkit-details-marker { display: none; }
.gen-more summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); transition: transform .2s; }
.gen-more[open] summary::after { transform: rotate(-135deg); }
.gen-more-in { display: grid; gap: 10px; padding: 4px 14px 14px; }

/* Группировка по смыслу */
.group-demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.group-demo > * { min-width: 0; }
.group-demo .lead { margin-top: 16px; font-size: 19px; color: var(--ink-2); }
.group-demo .seg { margin-top: 14px; display: flex; }
.group-demo .seg button { flex: 1; }
.grp-zones { position: absolute; left: 3.5%; right: 3.5%; top: 25%; bottom: 5%; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 1.6cqw; }
.grp-zone { background: rgba(255,255,255,.06); border-radius: 1.6cqw; padding: 1.4cqw 2cqw; overflow: hidden; color: var(--c); font-family: var(--screen-font); font-weight: 600; line-height: 1.12; }
.grp-zone b { display: block; font-size: 2.3cqw; margin-bottom: .8cqw; }
.grp-zone span { display: inline-block; margin-right: 1.5cqw; font-size: calc(var(--s) * 1cqw); }
.grp-legend { position: absolute; left: 3.5%; bottom: 3.5%; display: flex; flex-wrap: wrap; gap: .6cqw 2cqw; font-size: 2cqw; }
.grp-legend span { color: var(--c); }
.grp-legend i { display: inline-block; width: 1.3cqw; height: 1.3cqw; border-radius: 50%; background: var(--c); margin-right: .7cqw; }

/* Какие проблемы решаем */
.pains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pain { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pain p { padding: 18px 20px; font-size: 16px; line-height: 1.4; }
.pain span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.pain-was { color: var(--ink-2); }
.pain-now { background: var(--accent-soft); color: var(--ink); font-weight: 500; }
.pain-now span { color: var(--accent-text); }

/* Цена */
.price-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.price-plan { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.price-plan.is-main { border: 2px solid var(--accent); box-shadow: 0 20px 40px -28px rgba(42,109,244,.6); }
.price-plan .badge { margin-left: 0; align-self: flex-start; }
.price-plan h3 { font-size: 20px; }
.price-plan p { color: var(--ink-2); }
.price-plan .ticks { margin-top: 4px; font-size: 16px; }
.price-num { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.price-num b { font-size: clamp(36px, 3.6vw, 44px); line-height: 1.05; letter-spacing: -.03em; }
.is-main .price-num b { font-size: clamp(44px, 4.8vw, 58px); }
.price-num span { font-size: 16px; color: var(--ink-2); }
.price-launch { margin-top: 16px; background: var(--accent-soft); border-radius: 16px; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; }
.price-launch p { flex: 1 1 320px; }
.price-more { margin-top: 14px; font-size: 14px; color: var(--ink-2); }

/* Сопровождение */
.support { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.support > div p { margin: 14px 0 26px; font-size: 19px; color: var(--ink-2); }
.support-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.support-steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; display: grid; gap: 4px; }
.support-steps span { color: var(--ink-2); }
@media (max-width: 1080px) { .who { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 920px) {
  .who, .group-demo, .support, .price-grid, .pains { grid-template-columns: minmax(0, 1fr); }
  .price-plan.is-main { order: -1; }
  .group-demo, .support { gap: 32px; }
}
@media (max-width: 480px) {
  .pain { grid-template-columns: minmax(0, 1fr); }
  .group-demo .seg button { padding-left: 6px; padding-right: 6px; font-size: 14px; }
  .grp-zone b { font-size: 3cqw; }
}

.speller-credit { margin-top: 24px; }
.speller-credit a { color: inherit; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }

.read-bar { position: fixed; left: 0; top: 0; height: 3px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); z-index: 40; pointer-events: none; }
/* Метка «в эфире» — показывает, что демо живое (рекомендация Pro Max: live-индикатор) */
.stage-live { position: absolute; right: 3.5%; top: 6%; display: inline-flex; align-items: center; gap: .8cqw; font-family: var(--font); font-weight: 600; font-size: 1.6cqw; letter-spacing: .04em; text-transform: uppercase; color: var(--stage-text); background: rgba(255,255,255,.08); border-radius: 999px; padding: .6cqw 1.4cqw; }
.stage-live::before { content: ""; width: 1cqw; height: 1cqw; border-radius: 50%; background: #FF5D73; animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { opacity: .35; } }
.stage.is-light .stage-live { color: var(--ink); background: rgba(22,22,58,.06); }
/* Списки готовых вопросов: отклик на наведение */
.qlist li { transition: border-color .2s ease; }
.qlist li:hover { border-color: #C8C8DA; }
/* Сценарии: карточка сезона чуть заметнее */
.scen { transition: border-color .2s ease; }
.scen-kind { display: inline-block; font-size: 13px; color: var(--ink-2); }

/* ---------- Страница «Опрос»: большие полосы на экране и кнопки голоса ---------- */
.big-poll { position: absolute; left: 4.5%; right: 4.5%; top: 24%; bottom: 13%; display: grid; align-content: center; gap: 2.6cqw; }
.bp-row { display: grid; grid-template-columns: 5.4cqw minmax(0, 1fr) 8cqw; gap: 2cqw; align-items: center; transition: opacity .4s ease; }
.bp-l { height: 5.4cqw; border-radius: 1.2cqw; background: var(--c); color: var(--stage); display: grid; place-items: center; font-weight: 700; font-size: 2.8cqw; transition: box-shadow .3s ease; }
.bp-text { font-weight: 600; font-size: 2.5cqw; line-height: 1.2; margin-bottom: .8cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-track { display: block; height: 2.2cqw; border-radius: 2cqw; background: rgba(255,255,255,.08); overflow: hidden; }
.bp-fill { display: block; height: 100%; width: var(--w, 0%); background: var(--c); border-radius: inherit; transition: width .9s cubic-bezier(.2,.8,.2,1); }
.bp-n { text-align: right; font-weight: 700; font-size: 3.2cqw; font-variant-numeric: tabular-nums; }
.bp-row.is-dim { opacity: .35; }
.bp-row.is-right .bp-l { box-shadow: 0 0 0 .5cqw var(--s-mint); }
.bp-row.is-right .bp-n { color: var(--s-mint); }

.vote { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.vote-btn { display: flex; align-items: center; gap: 12px; min-height: 52px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; padding: 8px 14px 8px 8px; font-weight: 500; font-size: 16px; cursor: pointer; text-align: left; transition: border-color .2s ease, background .2s ease; }
.vote-btn:hover { border-color: var(--ink-2); }
.vote-btn:disabled { cursor: default; }
.vote-l { flex: none; width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; background: var(--c); color: var(--stage); }
.vote-btn.is-picked { border-color: var(--accent); background: var(--accent-soft); }
.vote-btn.is-right { border-color: #1E9E63; background: #E6F7EE; }
.vote-btn.is-wrong { border-color: #C2334A; background: #FDECEF; }
.vote-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 12px; }

/* Режимы опроса: карточки с маленькой картинкой режима */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mode { border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 24px; background: #fff; }
.mode h3 { margin: 22px 8px 0; }
.mode p { margin: 10px 8px 0; color: var(--ink-2); }
.mode-pic { aspect-ratio: 16 / 9; border-radius: 12px; background: var(--bg-2); display: grid; place-items: center; overflow: hidden; container-type: inline-size; }
.phone-mock { width: 34%; aspect-ratio: 9 / 16; max-height: 88%; border-radius: 3.2cqw; background: #fff; box-shadow: inset 0 0 0 .8cqw var(--stage); padding: 3.2cqw 2.6cqw; display: grid; grid-template-columns: 1fr 1fr; gap: 1.8cqw; align-content: center; }
.phone-mock span { aspect-ratio: 1; border-radius: 1.6cqw; display: grid; place-items: center; font-weight: 700; font-size: 4.4cqw; background: var(--c); color: var(--stage); }
.mode-pic .stage { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.wait-n { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-family: var(--screen-font); }
.wait-n b { font-size: 16cqw; line-height: 1; color: var(--s-amber); }
.wait-n span { font-size: 3.4cqw; opacity: .75; margin-top: 1cqw; }
.mode-pic .big-poll { top: 14%; bottom: 14%; gap: 3.6cqw; }
.mode-pic .bp-row { grid-template-columns: 7cqw minmax(0, 1fr) 10cqw; gap: 2.6cqw; }
.mode-pic .bp-l { height: 7cqw; font-size: 3.6cqw; }
.mode-pic .bp-track { height: 3cqw; }
.mode-pic .bp-n { font-size: 4cqw; }
.more-list { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; }
.qlist small { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; color: var(--ink-2); }

/* ---------- Страница «Вопросы из зала»: стена карточек и мини-пульт ---------- */
.big-wall { position: absolute; left: 4.5%; right: 4.5%; top: 22%; bottom: 7%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: min-content; gap: 1.6cqw; align-content: start; overflow: hidden; }
.wq { background: rgba(255,255,255,.08); border-radius: 1.2cqw; padding: 1.5cqw 1.8cqw; font-size: 2.1cqw; line-height: 1.3; border-left: .5cqw solid var(--c); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wq.is-new { animation: wq-in .5s ease-out; }
.wq.is-mine { background: rgba(111,211,255,.2); }
@keyframes wq-in { from { opacity: 0; transform: translateY(-1cqw) scale(.97); } }
.host-mini { margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 6px; background: #fff; }
.host-mini-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: var(--ink-2); margin-bottom: 6px; }
.host-mini-h b { color: var(--ink); font-size: 15px; white-space: nowrap; }
.host-mini ul { list-style: none; margin: 0; padding: 0; }
.host-mini li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; border-top: 1px solid var(--bg-2); font-size: 15px; }
.host-mini li:first-child { border-top: 0; }
.host-mini li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.host-mini li.is-hidden span { color: var(--ink-2); text-decoration: line-through; }
.host-mini button { flex: none; min-height: 40px; border: 0; background: transparent; color: var(--accent-text); font-weight: 600; cursor: pointer; padding: 0 4px; }

@media (max-width: 920px) {
  .modes { grid-template-columns: 1fr; }
  .more-list { grid-template-columns: 1fr; }
}

/* На узком экране (телефон) демо-экран маленький — крупнее текст внутри, чтобы его можно было прочитать */
@container (max-width: 520px) {
  .big-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); top: 24%; }
  .wq { font-size: 3.3cqw; padding: 1.8cqw 2.2cqw; }
  .bp-text { font-size: 3.4cqw; }
  .stage-meta { font-size: 2.8cqw; }
  .stage-live { font-size: 2.4cqw; }
  .stage-url { font-size: 2.4cqw; }
}

/* ---------- Блог ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-2); padding-top: 32px; }
.crumbs a { color: var(--ink-2); text-decoration: none; padding: 10px 0; }
.crumbs a:hover { color: var(--accent-text); }
.blog-head { padding-bottom: 32px; }
.blog-head h1 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.06; letter-spacing: -.035em; margin-top: 16px; text-wrap: balance; }
.blog-head .lead { margin-top: 20px; font-size: 19px; color: var(--ink-2); max-width: 44em; }
.blog-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.blog-filter button { min-height: 44px; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 18px; font-weight: 600; font-size: 15px; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.blog-filter button:hover { border-color: var(--ink-2); }
.blog-filter button.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.blog-filter b { font-weight: 500; opacity: .6; margin-left: 4px; }
.blog-list { padding-bottom: 96px; }
.blog-all { margin-top: 28px; font-weight: 600; }
.blog-all a { text-decoration: none; display: inline-block; padding: 10px 0; }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; color: inherit; text-decoration: none; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.post-card:hover { border-color: #C8C8DA; transform: translateY(-3px); box-shadow: 0 16px 32px -20px rgba(22,22,58,.35); }
.post-card:hover .mech-more { text-decoration: underline; text-underline-offset: 3px; }
.post-card[hidden] { display: none; }
.post-pic.stage { border-radius: 0; aspect-ratio: 16 / 7; }
.post-pic .big-poll { top: 14%; bottom: 14%; gap: 3.2cqw; }
.post-pic .big-wall { top: 16%; bottom: 10%; }
.post-pic .wq { font-size: 2.6cqw; }
.post-cloud { position: absolute; inset: 10% 6%; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4em 1.4em; font-family: var(--screen-font); font-weight: 600; font-stretch: semi-condensed; line-height: 1; }
.post-cloud span { font-size: calc(var(--s) * 3.2cqw); }
.post-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card-body h3 { font-size: 19px; line-height: 1.25; }
.post-card-body p { color: var(--ink-2); font-size: 15px; }
.post-card .mech-more { margin-top: auto; }
.post-tag { font-size: 13px; font-weight: 600; color: var(--accent-text); }

.post-wrap { padding-bottom: 80px; }
.post-eyebrow { margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.post-eyebrow a { font-weight: 600; text-decoration: none; display: inline-block; padding: 12px 0; margin: -12px 0; }   /* палец попадает: 44 px по высоте, строка не раздвигается */
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.links-404 { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px; }
.post-title { font-size: clamp(32px, 4vw, 50px); line-height: 1.08; letter-spacing: -.03em; margin-top: 12px; max-width: 22em; text-wrap: balance; }
.post-lead { margin-top: 20px; font-size: 20px; color: var(--ink-2); max-width: 40em; }
.post-layout { display: grid; grid-template-columns: minmax(0, 720px) 260px; gap: 64px; margin-top: 48px; align-items: start; }
.post-toc { position: sticky; top: 96px; border-left: 2px solid var(--line); padding-left: 20px; font-size: 14px; }
.post-toc-h { font-weight: 600; color: var(--ink-2); margin-bottom: 8px; text-transform: none; }
.post-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.post-toc a { display: block; padding: 6px 0; color: var(--ink); text-decoration: none; line-height: 1.35; }
.post-toc a:hover { color: var(--accent-text); }

/* Текст статьи */
.prose { font-size: 18px; line-height: 1.7; }
.prose > * + * { margin-top: 20px; }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; margin-top: 52px; scroll-margin-top: 96px; }
.prose h3 { font-size: 21px; margin-top: 36px; scroll-margin-top: 96px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 8px; }
.prose a { text-underline-offset: 3px; }
.prose code { background: var(--bg-2); border-radius: 6px; padding: 1px 6px; font-size: .9em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--bg-2); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
.checklist { list-style: none; padding-left: 0 !important; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 36px; margin: 0 !important; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border: 2px solid var(--accent); border-radius: 6px; }
.post-cta { margin-top: 32px !important; background: var(--accent-soft); border-radius: 16px; padding: 24px 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.post-cta p { font-size: 17px; margin: 0; max-width: 28em; }
.post-more { font-size: 17px; }
.post-faq { border-bottom: 1px solid var(--line); padding: 4px 0 18px; }
.post-faq h3 { margin-top: 22px; font-size: 19px; }
.post-faq p { margin-top: 8px; }
.wq .wq-likes { display: block; margin-top: .6cqw; font-weight: 600; color: var(--c); }
.sources { margin-top: 48px !important; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.sources h2 { font-size: 18px; margin: 0 0 12px; color: var(--ink); }
.sources ul { padding-left: 20px; }

@media (max-width: 1080px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); }
  .post-toc { display: none; }
}
@media (max-width: 920px) {
  .post-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .prose { font-size: 17px; }
  .post-lead { font-size: 18px; }
  .post-cta { padding: 20px; }
  .post-cta .btn { width: 100%; }
}
/* картинки карточек блога: облако по темам и «было → стало» */
.post-zones { position: absolute; inset: 12% 5%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; }
.post-zones > div { border-radius: 1.6cqw; background: rgba(255,255,255,.05); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1cqw;
  font-family: var(--screen-font); font-weight: 600; font-stretch: semi-condensed; color: var(--c); line-height: 1; }
.post-zones b { font-size: 2.4cqw; opacity: .8; }
.post-zones span { font-size: calc(var(--s) * 2.6cqw); }
.post-rounds .bp-track + .bp-track { margin-top: .8cqw; }
.post-rounds .is-was .bp-fill { opacity: .35; }
.post-rounds .bp-n { font-size: 2.6cqw; white-space: nowrap; }
.post-rounds { gap: 2.6cqw; }
/* Меню из четырёх пунктов на телефоне — в одну строку, без переносов внутри пункта */
.nav a { white-space: nowrap; }
@media (max-width: 560px) {
  .nav { gap: 0; justify-content: space-between; }
  .nav a { font-size: 14.5px; min-width: 44px; text-align: center; }
}

/* Самые узкие телефоны: меню в одну строку без прокрутки вбок (правило стоит последним, чтобы перекрыть размеры выше) */
@media (max-width: 340px) {
  .top .nav { gap: 0; }
  .top .nav a { font-size: 12.5px; min-width: 0; padding-left: 0; padding-right: 0; letter-spacing: -.01em; }
}

/* ═════ «Выдержанная» палитра (выбор Дмитрия 25.11) — пока только на главной: <body data-palette="calm"> ═════
   Голубой + золотистый + коралл (триада colorscheme.ru). Тёплые цвета — только мелкие детали; текст на белом тёмный.
   Откатить: убрать data-palette="calm" из index.html. Прошлые пробы (Seagull, «Яркий») — в коммите 6849d37. */
body[data-palette="calm"] {
  /* Основа — тёмный индиго (текст и экраны), акценты — кобальт (заголовки, меню, ссылки, надписи на кнопках). Вариант 25.11 */
  --bg-2: #F4F6FC;          /* фон чередующихся блоков — чуть синеватый, без зелени */
  --line: #E1E6F2;          /* рамки */
  --title: var(--stage);    /* крупные заголовки (h1, h2) — цвет доски (Дмитрий 01.12; был кобальт #12358F) */
  --head: var(--stage);     /* подзаголовки, меню, логотип — тоже цвет доски (01.12; был #1A2147) */
  --accent: var(--stage);   /* галочки, точки, черта меню, рамки — цвет доски (Дмитрий 01.12; был ярко-синий #2F5FD0) */
  --accent-text: var(--stage);   /* ссылки, значки, метки — цвет доски (Дмитрий 01.12; был кобальт #12358F) */
  --accent-soft: #E7EDFB;   /* плашки */
  --stage: #16163A;         /* все экраны-примеры, с 01.12 и первый экран главной, — тёмный индиго (кобальт и голубой пробовали) */
  --ink: #1D254F;           /* основной текст — тёмно-синий, как у Wooclap */
  --ink-2: #656686;         /* описания и абзацы — серо-сиреневый, как у Wooclap (контраст 5,7 на белом) */
  --btn: #6FD4FF; --btn-hover: #4CC6F7; --btn-ink: var(--stage);   /* надписи на кнопках — как подзаголовки (Дмитрий 25.11) */
  --s-amber: #FFD468; --s-coral: #FF8568; --s-sky: #6FD4FF; --s-mint: #7EE8B5; --s-lilac: #C9A7FF;
  /* ↑ доски: золотистый, коралловый, голубой. Мятный — только вариант Г и верный ответ, сиреневый — запасной (как на телефоне и пульте) */
  --cloud-palette: #FFD468, #FF8568, #6FD4FF;   /* слова в облаках: три ярких цвета, бледных нет (Дмитрий 01.12) */
  --warm-1: #FFD468; --warm-1-soft: #FFEDC2; --warm-2: #FF8568; --warm-2-soft: #FFE2D9;
}
body[data-palette="calm"] :is(h3), body[data-palette="calm"] .logo, body[data-palette="calm"] .nav a { color: var(--head); }
body[data-palette="calm"] :is(h1, h2) { color: var(--title); }  /* крупные заголовки — цвет доски (Дмитрий 01.12) */
/* Заголовки, которые свёрстаны не через h1–h3: факты, шаги сопровождения, вопросы, цены, подвал */
body[data-palette="calm"] :is(.fact b, .support-steps b, .faq summary, .price-num b, .foot .foot-h) { color: var(--head); }
/* Полоса «Вы участник?» — небесно-голубая, как кнопки; текст в цвет доски (01.12), «Войти» золотистая */
body[data-palette="calm"] .codebar { background: var(--btn); color: var(--stage); }
body[data-palette="calm"] .codebar-label { font-weight: 500; }
body[data-palette="calm"] .codebar .field { background: #fff; border-color: rgba(22,22,58,.2); color: var(--stage); }
body[data-palette="calm"] .codebar .field::placeholder { color: rgba(22,22,58,.45); }
body[data-palette="calm"] .codebar .field:focus { border-color: var(--stage); }
/* Ссылки одного цвета с текстом: в статьях они подчёркнуты всегда, остальные — при наведении */
body[data-palette="calm"] :is(.nav a, .post-toc a, .crumbs a, .blog-all a, .post-eyebrow a, .foot a):hover { text-decoration: underline; text-underline-offset: 4px; }
body[data-palette="calm"] .codebar .btn { background: var(--warm-1); color: var(--btn-ink); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
body[data-palette="calm"] .codebar .btn:hover { background: #FFC94A; }
body[data-palette="calm"] .btn { font-weight: 500; }  /* надписи на кнопках средней толщины (Дмитрий 25.11; было 600) */
body[data-palette="calm"] .hero .stage { box-shadow: 0 32px 64px -32px rgba(22,22,58,.55); }
body[data-palette="calm"] .hero > div:last-child::before { background: radial-gradient(closest-side, rgba(255,133,104,.12), rgba(255,212,104,.12) 50%, transparent); }
body[data-palette="calm"] .stage-live::before { background: var(--warm-2); }
body[data-palette="calm"] .scen.is-season { border-color: var(--warm-2); }
body[data-palette="calm"] .scen.is-season .badge { background: var(--warm-2); color: var(--stage); }
body[data-palette="calm"] .price-plan.is-main .badge { background: var(--warm-1); color: var(--stage); }
body[data-palette="calm"] .fact:nth-child(2) b::before { background: var(--warm-1); }
body[data-palette="calm"] .fact:nth-child(3) b::before { background: var(--warm-2); }
/* Подсветка карточек при наведении — по очереди голубая, золотистая, коралловая (Дмитрий 01.12) */
body[data-palette="calm"] :is(.mech, .scen, .post-card, .qlist li) { --hl: var(--btn); }
body[data-palette="calm"] :is(.mech, .scen, .post-card, .qlist li):nth-child(3n+2) { --hl: var(--warm-1); }
body[data-palette="calm"] :is(.mech, .scen, .post-card, .qlist li):nth-child(3n) { --hl: var(--warm-2); }
body[data-palette="calm"] .scen.is-season { --hl: var(--warm-2); }   /* у сезонного сценария рамка всегда коралловая */
body[data-palette="calm"] :is(.scen, .qlist li) { transition: border-color .2s ease, box-shadow .2s ease; }
body[data-palette="calm"] :is(.mech, .post-card):is(:hover, :focus-visible) { border-color: var(--hl); box-shadow: 0 0 0 1.5px var(--hl), 0 16px 32px -20px rgba(22,22,58,.3); }
body[data-palette="calm"] :is(.scen, .qlist li):hover { border-color: var(--hl); box-shadow: 0 0 0 1.5px var(--hl); }
body[data-palette="calm"] .price-plan.is-main { box-shadow: 0 20px 40px -28px rgba(22,22,58,.5); }
/* Подача текста по образцу Notion (Дмитрий 25.11): заголовки крупнее, но средней толщины, много воздуха,
   узкие абзацы, кнопки и поля — «таблетки». Только главная; откатить — удалить этот блок. */
body[data-palette="calm"] :is(.hero h1, .section h2) { font-weight: 500; }
body[data-palette="calm"] .hero h1 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -.03em; }
body[data-palette="calm"] .section h2 { font-size: clamp(30px, 3.9vw, 50px); line-height: 1.08; letter-spacing: -.025em; }
body[data-palette="calm"] .section h3 { font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
body[data-palette="calm"] .hero .lead { font-size: 19px; line-height: 1.5; max-width: 30em; }
body[data-palette="calm"] .section { padding: 136px 0; }
body[data-palette="calm"] .section-head { margin-bottom: 56px; }
body[data-palette="calm"] :is(.section-head p, .final p) { margin-top: 20px; font-size: 18px; line-height: 1.55; max-width: 34em; }
body[data-palette="calm"] .final p { margin-left: auto; margin-right: auto; }
body[data-palette="calm"] :is(.btn, .btn-lg, input.field) { border-radius: 999px; }
@media (max-width: 920px) { body[data-palette="calm"] .section { padding: 96px 0; } }
@media (max-width: 560px) { body[data-palette="calm"] .section { padding: 80px 0; } body[data-palette="calm"] .section-head { margin-bottom: 40px; } }
/* Проверка ui-ux-pro-max (25.11): одна шкала размеров на главной — 13 (метки) · 15 (мелкий текст, меню, кнопки)
   · 17 (основной текст и заголовки карточек) · 19 (вводные абзацы); жирного 700 больше нет — только 500/600. */
body[data-palette="calm"] :is(.section h3, .fact b, .support-steps b, .price-launch b) { font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
body[data-palette="calm"] .fact b { margin-bottom: 6px; }
body[data-palette="calm"] :is(.price-num b, .foot .foot-h) { font-weight: 600; }
body[data-palette="calm"] .faq summary { font-size: 19px; font-weight: 500; }
body[data-palette="calm"] :is(.section-head p, .final p, .support > div p) { font-size: 19px; }
body[data-palette="calm"] :is(.who p, .price-plan .ticks, .pain p) { font-size: 17px; }
body[data-palette="calm"] :is(.note, .try-hint, .price-more, .trust, .price-num span) { font-size: 15px; }
body[data-palette="calm"] :is(.btn, .nav a) { font-size: 15px; }
body[data-palette="calm"] .btn-lg { font-size: 17px; }
/* Кнопки в голубой полосе — не ниже 44 px, чтобы попадать пальцем */
body[data-palette="calm"] .codebar :is(.field, .btn) { min-height: 44px; }
/* Рамка фокуса (Tab) повторяет форму «таблетки», а не делает кнопку квадратной */
body[data-palette="calm"] :is(.btn, input.field):focus-visible { border-radius: 999px; }
@media (max-width: 560px) { body[data-palette="calm"] :is(.who p, .price-plan .ticks, .pain p) { font-size: 16px; } }
body[data-palette="calm"] .hero { align-items: start; }
/* ВЫКЛЮЧЕНО 01.12: экран на главной снова тёмный, как на остальных страницах. Вернуть голубой — дописать класс
   stage-glass к <div class="stage"> первого экрана в index.html.
   Экран с облаком на первом экране главной — небесно-голубой #6FD4FF с прозрачностью (приём AhaSlides): цвет остаётся
   насыщенным, белый фон почти не просвечивает, сквозь стекло чуть видно тёплое свечение (Дмитрий 25.11).
   На таком голубом читаются только тёмные слова: кобальт, индиго и тёмные тона триады (контраст от 4,2 : 1). */
body[data-palette="calm"] .stage-glass {
  background: rgba(111,212,255,.82); color: var(--title);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 0 32px 64px -32px rgba(18,53,143,.45);
  --cloud-palette: #12358F, #A33A22, #16163A, #6B4500, #5B2178, #8E2F1C, #1D4FA8, #7A3B00;
}
body[data-palette="calm"] .stage-glass .stage-live { color: var(--title); background: rgba(255,255,255,.55); }
body[data-palette="calm"] .stage-glass .stage-meta { opacity: .75; }
body[data-palette="calm"] .stage-glass .stage-join { background: rgba(255,255,255,.7); }
body[data-palette="calm"] .stage-glass .stage-code { color: var(--title); }
/* Значки в «Сделано для живых залов» и «Для кого» — как у шагов: голубая, золотистая, коралловая плашка по кругу */
.ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--btn); color: var(--stage); flex: none; margin-bottom: 18px; }
.facts > :nth-child(3n+2) .ico, .who > :nth-child(3n+2) .ico { background: var(--warm-1, var(--btn)); }
.facts > :nth-child(3n) .ico, .who > :nth-child(3n) .ico { background: var(--warm-2, var(--btn)); }
.fact .ico + b::before { display: none; }   /* значок вместо чёрточки */
.who > div:has(> .ico) { border-top: 0; padding-top: 0; }
/* Плавные облака на сайте: движения мягче и чуть дольше, новое слово распускается из своей точки */
body[data-palette="calm"] .cloud-word { transition: transform .9s cubic-bezier(.22,.61,.36,1), font-size .9s cubic-bezier(.22,.61,.36,1), opacity .6s ease, color .6s ease; }
/* Значки у готовых сценариев — та же система плашек */
.scen .ico { margin-bottom: 0; }
.scens > :nth-child(3n+2) .ico { background: var(--warm-1, var(--btn)); }
.scens > :nth-child(3n) .ico { background: var(--warm-2, var(--btn)); }
/* «В Галёрке» — галочка: голубой кружок, галочка в цвет доски */
.pain-tick { vertical-align: -4px; margin-right: 7px; }
.pain-tick circle { fill: var(--btn); }
.pain-tick path { fill: none; stroke: var(--accent-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Галочки в списках — такие же: голубой кружок (::before), галочка той же формы в цвет доски (::after) (утвердил Дмитрий 01.12).
   Вернуть простые тёмные галочки — удалить эти три правила. */
body[data-palette="calm"] .ticks li { padding-left: 30px; }
body[data-palette="calm"] .ticks li::before, body[data-palette="calm"] .ticks li::after { content: ""; position: absolute; left: 0; top: calc((1.55em - 20px) / 2); width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--btn); transform: none; }
body[data-palette="calm"] .ticks li::after { border-radius: 0; background: var(--stage); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.8 10.3 2.7 2.7 5.7-5.8' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.8 10.3 2.7 2.7 5.7-5.8' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
/* Кружки по очереди: голубой, золотистый, коралловый — цвета доски, тот же порядок, что у плашек значков (Дмитрий 01.12) */
body[data-palette="calm"] .ticks li:nth-child(3n+2)::before { background: var(--warm-1); }
body[data-palette="calm"] .ticks li:nth-child(3n)::before { background: var(--warm-2); }
body[data-palette="calm"] .pain:nth-child(3n+2) .pain-tick circle { fill: var(--warm-1); }
body[data-palette="calm"] .pain:nth-child(3n) .pain-tick circle { fill: var(--warm-2); }
/* Фон разделов чередуется сам (белый / светлый), в каком бы порядке ни стояли блоки */
body[data-palette="calm"] main > section.section { background: transparent; }
body[data-palette="calm"] main > section.section:nth-of-type(even) { background: var(--bg-2); }
/* Статьи, блог и документы — те же правила: крупные заголовки средней толщины, подзаголовки текста полужирные */
body[data-palette="calm"] main h1 { font-weight: 500; letter-spacing: -.03em; }
body[data-palette="calm"] .prose :is(h2, h3) { font-weight: 600; }
body[data-palette="calm"] .post-card-body h3 { font-size: 17px; font-weight: 600; }
/* Выравнивание (Дмитрий 01.12): верх БУКВ заголовка — на одной линии с верхом экрана или карточки справа.
   Над буквами в строке есть пустота, она растёт вместе с кеглем, поэтому сдвиг задан в em. Только две колонки (шире 920 px).
   На страницах с вкладками линия — верх экрана: левый текст опускается на высоту вкладок (50 + 14 = 64 px). */
@media (min-width: 921px) {
  body[data-palette="calm"] :is(.group-demo, .support) { align-items: start; }
  body[data-palette="calm"] .hero h1 { margin-top: -.138em; }
  body[data-palette="calm"] :is(.group-demo, .support) h2 { margin-top: -.142em; }
  body[data-palette="calm"] .hero.is-tabs .tabs { display: flex; width: fit-content; height: 50px; margin-bottom: 14px; }
  body[data-palette="calm"] .hero.is-tabs > div:first-child { padding-top: 64px; }
}

/* ---------- Короткая главная (12.2026) ---------- */
.faq-grid { display: grid; gap: 32px; }
body[data-palette] .faq-grid .section-head { margin-bottom: 0; }
.help { background: var(--accent-soft); border-radius: 16px; padding: 24px 26px; }
.help p { margin: 10px 0 20px; color: var(--ink-2); font-size: 17px; line-height: 1.5; }
.scen-sum { display: none; color: var(--ink-2); font-size: 16px; line-height: 1.45; }
@media (min-width: 921px) {
  .faq-grid { grid-template: "head faq" auto "help faq" 1fr / minmax(0, .8fr) minmax(0, 1.2fr); column-gap: 72px; align-items: start; }
  .faq-grid .section-head { grid-area: head; }
  .faq-grid .faq { grid-area: faq; max-width: none; }
  .faq-grid .help { grid-area: help; max-width: 420px; }
  .faq-grid .faq details:first-child summary { padding-top: 1px; }
  .faq-grid .faq details:first-child summary::after { top: 9px; }
  .faq-grid .faq details[open]:first-child summary::after { top: 13px; }
}
@media (max-width: 560px) {
  .scen ol { display: none; }
  .scen-sum { display: block; }
}

/* ---------- Сжатая цена (12.2026): список платных тарифов — строкой под карточками ---------- */
.price-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.price-top .badge { align-self: auto; margin-block: -5px; }
.price-incl { margin-top: 24px; }
.price-incl .ticks { margin-top: 12px; display: flex; justify-content: space-between; gap: 10px 24px; }
body[data-palette="calm"] .price-incl .ticks { font-size: 17px; }
.price-incl + .price-launch { margin-top: 24px; }
@media (max-width: 1200px) {
  .price-incl .ticks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1080px) { .price-top .badge { margin-block: 0; } }
@media (max-width: 560px) {
  body[data-palette="calm"] .price-incl .ticks { grid-template-columns: minmax(0, 1fr); font-size: 16px; gap: 6px; }
  /* на телефоне название слева, цена справа */
  .price-plan { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 10px 12px; padding: 20px 22px; }
  .price-plan > p { grid-column: 1 / -1; }
  .price-plan .price-num { flex-direction: column; align-items: flex-end; gap: 2px; }
  .price-top { flex-direction: column; align-items: flex-start; }
}

/* ---------- Метка с числом ответов у слова облака (12.2026): вместо серой подсказки браузера ---------- */
.cloud-tip {
  position: absolute; left: 0; top: 0; z-index: 5; display: inline-flex; align-items: center; gap: .55em;
  padding: .42em .8em; border-radius: 999px; background: #fff; color: #16163A;
  font: 500 13px/1.3 Onest, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,.5); opacity: 0;
  transition: opacity .16s ease-out, transform .9s cubic-bezier(.22,.61,.36,1);
}
.cloud-tip.is-on { opacity: 1; }
.cloud-tip i { width: max(10px, .7em); height: max(10px, .7em); border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(22,22,58,.18); flex: none; }
.cloud-tip::after {
  content: ""; position: absolute; left: calc(50% + var(--a, 0px)); top: 100%; margin-left: -.4em; margin-top: -1px;
  border: .4em solid transparent; border-bottom: 0; border-top-color: #fff;
}
.cloud-tip.is-below::after { top: auto; bottom: 100%; margin: 0 0 -1px -.4em; border: .4em solid transparent; border-top: 0; border-bottom-color: #fff; }
.stage.is-light .cloud-tip { background: #16163A; color: #fff; }
.stage.is-light .cloud-tip::after { border-top-color: #16163A; }
.stage.is-light .cloud-tip.is-below::after { border-top-color: transparent; border-bottom-color: #16163A; }
.stage.is-light .cloud-tip i { box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .cloud-tip { transition: none; } }

/* ---------- Проверка UI/UX Pro Max (12.2026) ---------- */
a, button, summary, label { touch-action: manipulation; }          /* касание без задержки */
.blog-filter b { opacity: .8; }                                     /* контраст числа от 4,5 : 1 */
.try-hint { min-height: 3.1em; }                                    /* две строки: страница не прыгает, когда меняется текст */
@media (max-width: 920px) {
  /* iPhone сам приближает страницу, если текст в поле мельче 16 px */
  input.field.field, .codebar .field, textarea, select, #genWords { font-size: 16px; }
  .nav a, .foot ul a, .crumbs a { min-height: 44px; display: inline-flex; align-items: center; }
  .nav a { justify-content: center; }
  .tab, .seg button, .host-mini button { min-height: 44px; }
}
@media (max-width: 560px) { .try-hint { min-height: 4.65em; } }
@media (max-width: 340px) { .try-hint { min-height: 6.2em; } }
/* Телефон боком: закреплённая шапка занимала больше четверти экрана */
@media (max-height: 480px) and (orientation: landscape) { .top { position: static; } }
