/* Тестовая площадка контент-завода CRT. 27.10.2026 — упрощённая версия в стилистике нового сайта:
   светлый фон, заголовки Unbounded, текст RF Dewi, тонкие линии, один акцент #3d12fc. */
@font-face { font-family: 'Unbounded'; src: url('/fonts/Unbounded-cyr.woff2') format('woff2'); font-weight: 200 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; src: url('/fonts/Unbounded-lat.woff2') format('woff2'); font-weight: 200 900; font-display: swap; 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+20BD, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: 'RFDewi'; src: url('/fonts/RFDewi-Regular.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'RFDewi'; src: url('/fonts/RFDewi-Semibold.woff') format('woff'); font-weight: 600; font-display: swap; }

:root {
  --bg: #fafafa; --card: #fff; --ink: #0e0d16; --text: #3a3946; --mute: #6d6c78; --faint: #a3a2ad;
  --line: rgba(14, 13, 22, .1); --line2: rgba(14, 13, 22, .18);
  --acc: #3d12fc; --accp: #efecff; --ok: #0c9a6a; --okp: #e6f6ef; --bad: #e0464e; --badp: #fdeced; --warn: #b96f00; --warnp: #fff3dc;
  --tg: #229ed9; --vk: #0077ff;
  --d: 'Unbounded', 'RFDewi', Arial, sans-serif; --sans: 'RFDewi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--acc); text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--d); font-weight: 600; letter-spacing: -.02em; }
p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 6px; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mute { color: var(--mute); }

/* шапка */
.top { position: sticky; top: 0; z-index: 40; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 68px; padding: env(safe-area-inset-top) 32px 0; background: rgba(250, 250, 250, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--ink); }
.brand__logo { flex: none; padding: 6px 12px; border: 1.5px dashed var(--line2); border-radius: 10px; font-family: var(--d); font-weight: 600; font-size: 14px; letter-spacing: -.01em; }
.brand__note { font-size: 13px; color: var(--mute); line-height: 1.3; }
.tabs { display: flex; gap: 4px; }
.tabs a { position: relative; padding: 10px 14px; color: var(--mute); font-size: 15px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current] { color: var(--ink); }
.tabs a[aria-current]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--acc); border-radius: 2px; }
.tabs sup { font-size: 11px; color: var(--faint); margin-left: 3px; }
.tabs i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-left: 6px; vertical-align: 2px; }
.tabs i.is-wait { background: #f0a400; }
.top__act { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.top__tour { border: 0; background: none; color: var(--mute); padding: 8px 10px; font-size: 15px; }
.top__tour:hover { color: var(--ink); }
.top__x { display: none; }

/* кнопки, метки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--line2); background: #fff; color: var(--ink); font-size: 15px; font-weight: 600; white-space: nowrap; transition: background .15s, border-color .15s, opacity .15s; }
.btn:hover { border-color: var(--ink); }
.btn[disabled] { opacity: .45; cursor: default; }
.btn--acc { background: var(--acc); border-color: var(--acc); color: #fff; }
.btn--acc:hover { background: #3209e0; border-color: #3209e0; }
.btn--dark { background: var(--ink); border-color: var(--ink); color: #fff; min-height: 40px; font-size: 14px; }
.btn--dark:hover { background: #2a2836; }
.btn--big { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn .ic { width: 16px; height: 16px; }
.ic--play { fill: currentColor; stroke: none; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.6; background: #f0f0f3; color: var(--text); white-space: nowrap; }
.tag .ic { width: 13px; height: 13px; stroke-width: 2.6; }
.tag--ok { background: var(--okp); color: #0a7a54; }
.tag--bad { background: var(--badp); color: #b8323a; }
.tag--warn { background: var(--warnp); color: var(--warn); }
.tag--acc { background: var(--acc); color: #fff; }
.tag--v { background: var(--accp); color: var(--acc); }
.dir { font-size: 13px; font-weight: 600; color: var(--c); }
.ava { --c: var(--acc); width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; background: color-mix(in srgb, var(--c) 13%, #fff); color: var(--c); font-weight: 600; font-size: 12px; }
.sw { position: relative; width: 44px; height: 26px; border-radius: 999px; border: 0; padding: 0; background: #d9d8e0; flex: none; transition: background .2s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0003; transition: transform .2s var(--ease); }
.sw[aria-checked="true"] { background: var(--acc); }
.sw[aria-checked="true"]::after { transform: translateX(18px); }
.sw[disabled] { opacity: .5; cursor: default; }

/* страница */
main { max-width: 1120px; margin: 0 auto; padding: 44px 32px 56px; outline: 0; }
.head { margin-bottom: 28px; }
.head h1 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; }
.head p { margin-top: 12px; color: var(--mute); font-size: 17px; max-width: 640px; }
.go { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-bottom: 30px; }
.go__sw { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text); border: 0; background: none; padding: 4px 0; text-align: left; }
.go__sw[disabled] { opacity: .5; cursor: default; }

/* шаги */
.steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.st { min-width: 0; }
.st__bar { position: relative; display: block; height: 3px; border-radius: 3px; background: var(--line2); overflow: hidden; }
.st__bar i { position: absolute; inset: 0; background: var(--acc); transform-origin: left center; transform: scaleX(0); }
.st__n { display: block; margin-top: 10px; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.st b { display: block; font-weight: 400; font-size: 15px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st.is-on b, .st.is-wait b { color: var(--acc); font-weight: 600; }
.st.is-done b { color: var(--ink); }
.st.is-wait .st__bar i { background: #f0a400; }
.steps__now { display: none; }

/* сцена */
.stage { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 30px 32px 32px; min-height: 440px; }
.sc { animation: fade .35s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.sc__k { font-size: 13px; color: var(--mute); }
.sc__h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.sc h2 { font-size: 24px; line-height: 1.2; margin-top: 4px; }
.sc__lead { margin-top: 8px; color: var(--mute); max-width: 640px; }
.sc__clock { flex: none; font-family: var(--mono); font-size: 13px; color: var(--faint); }
.sc__body { margin-top: 24px; }
.rv { opacity: 0; transform: translateY(6px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.rv.is-on { opacity: 1; transform: none; }
.note { margin-top: 16px; font-size: 14px; color: var(--mute); }
.say { margin-top: 18px; padding: 14px 18px; border-radius: 14px; background: #f6f5f9; font-size: 15px; color: var(--text); }
.say b { color: var(--ink); font-weight: 600; }

/* строки: темы, источники, проверки */
.rows { display: grid; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; padding: 13px 8px; border-top: 1px solid var(--line); transition: background .2s, opacity .3s; }
.row:last-child { border-bottom: 1px solid var(--line); }
.row__t { color: var(--ink); font-size: 16px; min-width: 0; }
.row__s { display: block; font-size: 13px; color: var(--mute); }
.row__v { opacity: 0; transition: opacity .25s; text-align: right; }
.row.is-seen .row__v { opacity: 1; }
.row.is-seen:not(.is-pick) .row__t { color: var(--mute); }
.row.is-scan { background: #f6f5f9; }
.row.is-pick { background: var(--accp); }
.row.is-pick .row__t { color: var(--acc); font-weight: 600; }
.row.is-bad .row__t { text-decoration: line-through; color: var(--faint); }
.freq { font-variant-numeric: tabular-nums; color: var(--mute); font-size: 14px; margin-left: 10px; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--accp); border-top-color: var(--acc); animation: spin .8s linear infinite; display: inline-block; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.row q { quotes: "«" "»"; font-weight: 600; color: #b8323a; }
.row.is-fixed q { color: var(--mute); text-decoration: line-through; font-weight: 400; }

/* черновик */
.paper { max-width: 720px; padding: 26px 28px 30px; border-radius: 16px; border: 1px solid var(--line); background: #fff; box-shadow: 0 24px 48px -36px #0e0d1640; }
.paper__by { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--mute); margin-bottom: 14px; }
.paper__by b { color: var(--ink); font-weight: 600; }
.paper h3 { font-size: 21px; line-height: 1.3; min-height: 1.3em; }
.paper__kor { margin-top: 16px; padding: 14px 18px; border-radius: 12px; background: #f6f5f9; font-size: 15px; }
.paper__kor b { display: block; color: var(--ink); margin-bottom: 4px; }
.paper__kor li { position: relative; padding-left: 16px; margin-top: 2px; }
.paper__kor li::before { content: ""; position: absolute; left: 2px; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: var(--acc); }
.paper h4 { margin: 18px 0 0; font-size: 17px; color: var(--ink); font-weight: 600; }
.paper p { margin-top: 8px; font-size: 16px; line-height: 1.65; }
.caret { display: inline-block; width: 2px; height: 1.05em; vertical-align: -.15em; background: var(--acc); margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.count { margin-top: 14px; font-size: 14px; color: var(--mute); font-variant-numeric: tabular-nums; }
.count b { color: var(--ink); font-weight: 600; }

/* редактор */
.diff { display: grid; gap: 12px; max-width: 760px; }
.diff p { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: #fff; font-size: 16px; line-height: 1.6; }
.diff del { position: relative; text-decoration: none; color: #a14047; }
.diff del::after { content: ""; position: absolute; left: 0; right: 100%; top: 52%; height: 2px; background: var(--bad); transition: right .5s var(--ease); }
.diff p.is-cut del { color: var(--faint); }
.diff p.is-cut del::after { right: 0; }
.diff mark { background: none; color: var(--ink); opacity: 0; transition: opacity .4s; box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--c) 45%, transparent); }
.diff p.is-new mark { opacity: 1; }

/* публикация */
.pub { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.bw { border: 1px solid var(--line2); border-radius: 14px; overflow: hidden; background: #fff; }
.bw__bar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: #f6f5f9; }
.bw__dots { display: flex; gap: 5px; }
.bw__dots i { width: 9px; height: 9px; border-radius: 50%; background: #dcdbe3; }
.bw__url { flex: 1; min-width: 0; font-family: var(--mono); font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bw__page { padding: 16px; }
.bw__page h3 { font-size: 17px; line-height: 1.3; margin: 12px 0 8px; }
.bw__by { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mute); }
.ann { display: grid; gap: 12px; }
.ann__c { opacity: .25; transition: opacity .35s; }
.ann__c.is-on { opacity: 1; }
.ann__h { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.ann__h i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-style: normal; font-size: 10px; font-weight: 700; }
.ann__h span { margin-left: auto; font-size: 13px; color: var(--ok); opacity: 0; transition: opacity .3s; }
.ann__c.is-sent .ann__h span { opacity: 1; }
.ann__b { padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.ann__b--tg { background: #e7f1f9; }
.ann__b--vk { background: #fff; border: 1px solid var(--line); }
.ann__off { font-size: 14px; color: var(--mute); }

/* согласование и готово */
.two { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.ask { padding: 18px; border-radius: 16px; background: var(--warnp); display: grid; gap: 10px; }
.ask b { color: #5a3600; font-weight: 600; font-size: 16px; }
.ask p { color: #6d4100; font-size: 14px; }
.ask .btn { width: 100%; }
.ask__back { display: grid; gap: 6px; margin-top: 4px; }
.ask__back button { text-align: left; border: 1px solid #ecd9ae; background: #fff; border-radius: 10px; padding: 9px 12px; font-size: 14px; }
.ask__back button:hover { border-color: var(--warn); }
.revnote { margin-bottom: 16px; padding: 10px 14px; border-radius: 12px; background: var(--warnp); color: #6d4100; font-size: 14px; }
.done__big { font-family: var(--d); font-weight: 600; font-size: 28px; line-height: 1.2; color: var(--ink); letter-spacing: -.02em; margin-top: 4px; }
.done__act { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.done__card { display: grid; gap: 10px; padding: 0; border: 0; background: none; text-align: left; }
.done__card b { color: var(--ink); font-weight: 600; font-size: 16px; line-height: 1.35; }

/* обложка: тон направления, тонкая сетка и крупное слово — как карточки сайта */
.cover { --c: var(--acc); position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; container-type: inline-size;
  background: linear-gradient(color-mix(in srgb, var(--c) 9%, transparent) 1px, transparent 1px) 0 0 / 28px 28px,
              linear-gradient(90deg, color-mix(in srgb, var(--c) 9%, transparent) 1px, transparent 1px) 0 0 / 28px 28px,
              color-mix(in srgb, var(--c) 6%, #fff); }
.cover::after { content: ""; position: absolute; right: 10%; top: 16%; width: 30%; aspect-ratio: 1; border: 1.5px solid color-mix(in srgb, var(--c) 45%, transparent); border-radius: 50%; }
.cover b { position: absolute; left: 6%; right: 6%; bottom: 9%; font-family: var(--d); font-weight: 600; font-size: 11cqi; line-height: 1.05; color: var(--c); letter-spacing: -.02em; }
.cover i { position: absolute; left: 6%; top: 8%; font-style: normal; font-size: 11px; color: color-mix(in srgb, var(--c) 70%, #fff); }

/* журнал */
.log { margin-top: 14px; }
.log summary { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; color: var(--mute); font-size: 14px; padding: 6px 0; list-style: none; }
.log summary::-webkit-details-marker { display: none; }
.log summary::before { content: "+"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; border: 1px solid var(--line2); font-size: 14px; line-height: 1; }
.log[open] summary::before { content: "−"; }
.log ol { margin-top: 8px; padding: 14px 16px; border-radius: 14px; background: var(--ink); color: #c9c7d6; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; max-height: 240px; overflow-y: auto; }
.log li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; }
.log time { color: #75738c; }
.log .is-ok { color: #6be3b0; }
.log .is-bad { color: #ff8f95; }
.log .is-v { color: #c4b8ff; }
.log .log__empty { display: block; color: #75738c; }

/* материалы */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
.post { display: flex; flex-direction: column; gap: 12px; padding: 0; border: 0; background: none; text-align: left; }
.post:hover h3 { color: var(--acc); }
.post h3 { font-family: var(--sans); font-weight: 600; font-size: 17px; line-height: 1.35; letter-spacing: 0; transition: color .15s; }
.post__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--mute); }
.post__res { margin-left: auto; color: var(--ok); font-weight: 600; white-space: nowrap; }
.post__res.is-wait { color: var(--faint); font-weight: 400; }

/* панель статьи */
.shade { position: fixed; inset: 0; z-index: 60; background: #0e0d1659; animation: fade .2s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(640px, 100vw); display: flex; flex-direction: column; background: #fff; box-shadow: -24px 0 60px -24px #0e0d1640; animation: slide .3s var(--ease); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.dr-top { display: flex; justify-content: flex-end; padding: 12px 14px 0; }
.dr-x { width: 40px; height: 40px; border: 0; border-radius: 10px; background: #f3f2f6; display: grid; place-items: center; }
.dr-x:hover { background: var(--accp); color: var(--acc); }
.dr-body { overflow-y: auto; padding: 4px 28px 40px; }
.rd h2 { font-size: 24px; line-height: 1.25; margin: 12px 0 14px; }
.rd__by { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--mute); padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.rd__by b { display: block; color: var(--ink); font-weight: 600; }
.rd h4 { margin: 24px 0 6px; font-size: 18px; color: var(--ink); font-weight: 600; }
.rd p { margin-top: 8px; line-height: 1.65; }
.rd__list li { padding: 9px 0; border-top: 1px solid var(--line); color: var(--ink); }
.rd__faq b { display: block; color: var(--ink); margin-top: 12px; }
.res { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.res div { padding: 14px; border-radius: 14px; background: #f6f5f9; }
.res b { display: block; font-family: var(--d); font-size: 24px; font-weight: 600; color: var(--ink); line-height: 1.1; }
.res span { font-size: 13px; color: var(--mute); }
.rd__ai { margin-top: 18px; font-size: 13px; color: var(--mute); font-style: italic; }

/* настройки */
.set { column-count: 2; column-gap: 20px; }
.set .box { break-inside: avoid; margin-bottom: 20px; }
.box { padding: 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.box h3 { font-size: 17px; margin-bottom: 4px; }
.box > p { color: var(--mute); font-size: 14px; margin-bottom: 14px; }
.days { display: flex; flex-wrap: wrap; gap: 8px; }
.days button { min-width: 48px; min-height: 42px; border-radius: 12px; border: 1px solid var(--line2); background: #fff; font-weight: 600; font-size: 14px; color: var(--mute); }
.days button[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: #fff; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.line:first-of-type { border-top: 0; }
.line b { color: var(--ink); font-weight: 600; font-size: 15px; }
.line span:not(.tag):not(.ava) { display: block; font-size: 13px; color: var(--mute); }
.line .tag { display: inline-flex; font-size: 12px; color: inherit; }
.line .tag--ok { color: #0a7a54; }
.line .tag--v { color: var(--acc); }
.line .tag--warn { color: var(--warn); }
.line__act { display: flex; align-items: center; gap: 8px; }
.mini { border: 1px solid var(--line2); background: #fff; border-radius: 9px; padding: 5px 12px; font-size: 13px; font-weight: 600; }
.mini:hover { border-color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 0; padding: 26px 28px; border-radius: 20px; background: var(--ink); color: #c9c7d6; }
.cta b { display: block; font-family: var(--d); font-weight: 600; font-size: 19px; color: #fff; letter-spacing: -.01em; }
.cta p { margin-top: 6px; font-size: 15px; max-width: 560px; }
.cta .btn { background: #fff; border-color: #fff; color: var(--ink); flex: none; }

/* подвал, всплывашки */
.foot { max-width: 1120px; margin: 0 auto; padding: 0 32px 40px; display: flex; gap: 16px 24px; flex-wrap: wrap; justify-content: space-between; font-size: 13px; color: var(--faint); }
.foot p { max-width: 720px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 16px); opacity: 0; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.pill { position: fixed; right: 24px; bottom: 24px; z-index: 55; display: flex; align-items: center; gap: 10px; padding: 11px 18px 11px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 16px 40px -12px #0e0d1680; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: #5ff0b5; }
.pill.is-wait i { background: #ffc94d; }

/* приветствие */
.wel { width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; border: 0; border-radius: 24px; padding: 32px; color: var(--text); box-shadow: 0 30px 80px #0e0d1640; }
.wel::backdrop { background: #0e0d1666; backdrop-filter: blur(3px); }
.wel__k { font-size: 13px; color: var(--mute); }
.wel h2 { font-size: 26px; line-height: 1.15; margin-top: 6px; }
.wel__lead { margin-top: 12px; color: var(--mute); }
.wel__steps { margin-top: 20px; display: grid; gap: 12px; counter-reset: w; }
.wel__steps li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; counter-increment: w; font-size: 15px; }
.wel__steps li::before { content: counter(w); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accp); color: var(--acc); font-weight: 600; font-size: 13px; }
.wel__steps b { color: var(--ink); font-weight: 600; }
.wel__act { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }

/* тур */
.touring body { overflow: hidden; }
.tour-block { position: fixed; inset: 0; z-index: 80; }
.tour-hole { position: fixed; z-index: 81; border-radius: 14px; box-shadow: 0 0 0 9999px #0e0d16a6; pointer-events: none; transition: top .3s var(--ease), left .3s var(--ease), width .3s var(--ease), height .3s var(--ease); }
.tour-pop { position: fixed; z-index: 82; width: 340px; max-width: calc(100vw - 24px); padding: 20px 22px 18px; border-radius: 18px; background: #fff; color: var(--text); box-shadow: 0 24px 60px #0e0d1640; transition: top .3s var(--ease), left .3s var(--ease), opacity .15s; }
.tour-pop.is-busy { opacity: 0; }
.tp-k { font-size: 13px; color: var(--mute); }
.tour-pop h3 { font-size: 18px; line-height: 1.25; margin: 4px 26px 6px 0; }
.tp-p { font-size: 15px; line-height: 1.5; }
.tp-act { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.tp-act .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.tp-act .btn--acc { margin-left: auto; }
.tp-x { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--faint); font-size: 22px; line-height: 1; }

/* ---------- адаптив ---------- */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two, .pub { grid-template-columns: minmax(0, 1fr); }
  .brand__note { display: none; }
}
@media (max-width: 720px) {
  .top { grid-template-columns: minmax(0, 1fr) auto; padding: env(safe-area-inset-top) 12px 0 16px; min-height: 0; gap: 0 8px; }
  .brand { padding: 10px 0; }
  .brand__logo { font-size: 13px; padding: 5px 10px; }
  .tabs { grid-column: 1 / -1; grid-row: 2; margin: 0 -12px 0 -16px; padding: 0 8px; border-top: 1px solid var(--line); }
  .tabs a { flex: 1; text-align: center; padding: 12px 6px; font-size: 15px; }
  .tabs a[aria-current]::after { left: 18%; right: 18%; bottom: 0; }
  .top__cta { display: none; }
  .top__x { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--mute); }
  .top__x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  main { padding: 26px 16px 40px; }
  .head { margin-bottom: 20px; }
  .head p { font-size: 16px; }
  .go { gap: 14px; margin-bottom: 22px; }
  .go .btn--big { width: 100%; }
  .steps { gap: 5px; margin-bottom: 0; }
  .st__n, .st b { display: none; }
  .steps__now { display: block; margin: 10px 0 14px; font-size: 14px; color: var(--mute); }
  .steps__now b { color: var(--acc); font-weight: 600; }
  .stage { padding: 20px 18px 22px; border-radius: 18px; min-height: 0; }
  .sc h2 { font-size: 20px; }
  .sc__clock { display: none; }
  .sc__body { margin-top: 18px; }
  .row { padding: 12px 4px; gap: 6px 10px; }
  .row__t { font-size: 15px; }
  .freq { display: block; margin: 2px 0 0; font-size: 13px; }
  .paper { padding: 18px 16px 22px; }
  .paper h3 { font-size: 18px; }
  .diff p { padding: 14px; font-size: 15px; }
  .ask { order: -1; }
  .done__big { font-size: 23px; }
  .done__act .btn { flex: 1 1 100%; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .set { column-count: 1; }
  .set .box { margin-bottom: 14px; }
  .box { padding: 18px; border-radius: 18px; }
  .cta { flex-direction: column; align-items: stretch; padding: 22px 20px; }
  .drawer { top: env(safe-area-inset-top); width: 100vw; border-radius: 18px 18px 0 0; }
  .dr-body { padding: 0 18px calc(32px + env(safe-area-inset-bottom)); }
  .rd h2 { font-size: 21px; }
  .foot { padding: 0 16px calc(32px + env(safe-area-inset-bottom)); }
  .pill { left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); justify-content: center; }
  .toast { bottom: calc(20px + env(safe-area-inset-bottom)); }
  .wel { padding: 24px 20px; border-radius: 20px; }
  .wel h2 { font-size: 22px; }
  .wel__act .btn { flex: 1 1 100%; }
  .tour-pop.is-sheet { left: 12px !important; right: 12px; width: auto; top: auto !important; bottom: calc(12px + env(safe-area-inset-bottom)); }
  .tour-pop.is-sheet.is-top { top: calc(12px + env(safe-area-inset-top)) !important; bottom: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
