/* Закрытый кабинет «Чистого разума». Бренд — как pay-silatishiny/site/style.css.
   Шрифты — из самой функции (/cr/app/fonts/*), тот же origin: ноль внешних запросов, CSP font-src 'self'. */
@font-face { font-family: 'Museo'; src: url('/cr/app/fonts/MuseoSansCyrl-100.ttf') format('truetype'); font-weight: 100; font-display: swap; }
@font-face { font-family: 'Museo'; src: url('/cr/app/fonts/MuseoSansCyrl-300.ttf') format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Museo'; src: url('/cr/app/fonts/MuseoSansCyrl-500.ttf') format('truetype'); font-weight: 500; font-display: swap; }

:root {
  --bg: #f6f1e6;
  --ink: #1c1a17;
  --ink-soft: #6f6558;
  --body: #3d3831;
  --seal: #a8321f;
  --stroke: rgba(28,26,23,0.10);
  --card: rgba(255,255,255,0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--bg); overflow-x: hidden; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font-family: 'Museo', -apple-system, sans-serif; font-weight: 300; line-height: 1.55;
  min-height: 100vh; overflow-x: hidden; overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* водяной знак — поверх фона, под текстом не мешает кликам */
.wm { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
@media print { .wm { position: fixed; } }

.wrap { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; padding: 28px 18px 8vh; }
.welcome .wrap, body:not(.home):not(.doc) .wrap { padding-top: 9vh; }
@media (min-width: 600px) { .wrap { padding-left: 24px; padding-right: 24px; } }

.kicker { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 22px; }
h1 { font-weight: 100; font-size: clamp(34px, 9vw, 64px); line-height: 1.06; letter-spacing: -0.03em; }
.doc h1 { font-size: clamp(30px, 7.5vw, 48px); }
.accent { color: var(--seal); font-weight: 300; }
.seal { display: inline-block; width: 0.16em; height: 0.16em; min-width: 9px; min-height: 9px; background: var(--seal);
  border-radius: 1px; transform: rotate(-8deg); vertical-align: middle; margin-left: 0.2em; opacity: 0.9; }
.lead { margin-top: 22px; font-size: clamp(16px, 4.2vw, 19px); color: var(--ink-soft); max-width: 34em; }
.lead b { color: var(--ink); font-weight: 500; }

a { color: var(--ink); text-decoration-color: rgba(28,26,23,0.25); text-underline-offset: 3px; }
a:hover { color: var(--seal); }

/* формы */
.card { margin-top: 36px; padding: 26px 20px; background: var(--card); border: 1px solid var(--stroke); border-radius: 6px; }
@media (min-width: 600px) { .card { padding: 34px 36px; } }
.field { display: block; margin-top: 16px; }
.field:first-of-type { margin-top: 0; }
.field span { display: block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.field input { width: 100%; padding: 14px 16px; font: 300 16px 'Museo', sans-serif; color: var(--ink);
  background: rgba(255,255,255,0.75); border: 1px solid var(--stroke); border-radius: 4px; outline: none; }
.field input:focus { border-color: var(--ink-soft); }
.hint { margin-top: 8px; font-size: 13px; color: var(--ink-soft); }
.err { margin-bottom: 16px; padding: 12px 14px; border-left: 3px solid var(--seal); background: rgba(168,50,31,0.06); color: var(--seal); font-size: 14px; }
.smart-captcha { margin-top: 18px; min-height: 100px; }
.btn { display: block; width: 100%; margin-top: 24px; padding: 17px 20px; background: var(--ink); color: var(--bg);
  border: 0; border-radius: 4px; font: 500 16px 'Museo', sans-serif; letter-spacing: 0.02em; text-align: center;
  text-decoration: none; cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--seal); color: var(--bg); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--stroke); }
.btn.ghost:hover { border-color: var(--seal); color: var(--seal); background: transparent; }
.note { margin-top: 28px; font-size: 13px; color: var(--ink-soft); max-width: 36em; }

/* шапка кабинета */
.bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 40px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.bar a { color: var(--ink-soft); text-decoration: none; }
.bar form { margin: 0; }
.link { background: none; border: 0; padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--ink-soft); cursor: pointer; }
.link:hover, .bar a:hover { color: var(--seal); }

.disclaimer { margin-top: 40px; padding: 14px 16px; border: 1px solid var(--stroke); border-radius: 4px; font-size: 13px; color: var(--ink-soft); }

footer { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--stroke); font-size: 12px; line-height: 1.8; color: var(--ink-soft); }

/* ===== v2: кабинет по этапам ===== */
:root { --paper: #fffdf8; --line: rgba(28,26,23,0.12); --seal-soft: rgba(168,50,31,0.08); }
.bar { margin-bottom: 28px; }
.bar > span { color: var(--ink-soft); }
.bar.sticky { position: sticky; top: 0; z-index: 5; margin: -28px -18px 0; padding: 14px 18px; background: rgba(246,241,230,0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--stroke); }
.link.small { font-size: 13px; letter-spacing: 0; text-transform: none; text-decoration: underline; text-underline-offset: 3px; margin-top: 10px; }

.home h1, .doc h1 { font-size: clamp(32px, 8.6vw, 46px); line-height: 1.08; }
.facts { margin-top: 12px; font-size: 14px; color: var(--ink-soft); letter-spacing: 0.02em; }
.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.block { margin-top: 36px; }

/* быстрый вход для тех, кто уже принимает */
.quick { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; padding: 14px 16px;
  background: var(--ink); color: var(--bg); border-radius: 10px; text-decoration: none; font-size: 14px; }
.quick span { opacity: 0.7; }
.quick b { font-weight: 500; }
.quick:hover { background: var(--seal); color: var(--bg); }

/* путь по этапам — вертикальная лента */
.stages { position: relative; }
.stages::before { content: ""; position: absolute; left: 15px; top: 22px; bottom: 22px; width: 1px; background: var(--line); }
.stage { position: relative; display: grid; grid-template-columns: 32px 1fr 16px; gap: 14px; align-items: center; padding: 12px 0;
  text-decoration: none; color: var(--ink); }
.stage .dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg);
  border: 1px solid var(--seal); color: var(--seal); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.stage:first-child .dot { background: var(--seal); color: var(--bg); }
.stage .t { display: flex; flex-direction: column; gap: 2px; }
.stage .st { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.stage b { font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }
.stage .go { color: var(--ink-soft); }
.stage:hover b, .stage:hover .go { color: var(--seal); }

/* три пути: сам / статус / под ключ */
.paths { display: grid; gap: 10px; margin-top: 4px; }
.welcome .paths { margin-top: 28px; }
.path, .up-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--paper); text-decoration: none; color: var(--ink); }
.path.own { background: transparent; border-style: dashed; }
.path-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.path-head b { font-weight: 500; font-size: 18px; }
.price { font-weight: 500; font-size: 15px; color: var(--seal); font-variant-numeric: tabular-nums; white-space: nowrap; }
.incl { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.path-text { font-size: 14.5px; line-height: 1.5; color: var(--body); }
.path-go { font-size: 14px; font-weight: 500; color: var(--seal); margin-top: 2px; }
a.path:hover, .up-card:hover { border-color: var(--seal); }
.welcome .btn { margin-top: 22px; }

/* прогресс этапов в разделе */
.progress { display: flex; gap: 4px; margin: 18px 0 22px; }
.progress span { flex: 1; height: 3px; border-radius: 2px; background: var(--line); }
.progress span.on { background: var(--seal); }

/* типографика чтения */
.content { margin-top: 22px; }
.content p, .content li { font-size: 17px; line-height: 1.62; color: var(--body); }
.content p { margin-top: 14px; }
.content h3 { font-weight: 500; font-size: 19px; letter-spacing: -0.01em; color: var(--ink); margin: 38px 0 4px; }
.content b { font-weight: 500; color: var(--ink); }
.content .hint { font-size: 14px; line-height: 1.5; padding: 12px 14px; background: var(--card); border-radius: 8px; margin-top: 18px; }

/* цепочка смыслов — фишки со стрелками */
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 20px 0 6px; }
.flow-label { width: 100%; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 2px; }
.chip { padding: 6px 11px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.arr { color: var(--seal); font-size: 13px; }

/* 7 компонентов */
.comps { list-style: none; margin-top: 18px; padding: 0; }
.comps li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--stroke); margin: 0; }
.comps .num { font-size: 13px; color: var(--seal); font-weight: 500; padding-top: 3px; font-variant-numeric: tabular-nums; }
.comps .sub, .phases .sub { display: block; font-size: 15px; line-height: 1.5; color: var(--ink-soft); margin-top: 2px; letter-spacing: 0; text-transform: none; font-weight: 300; }

/* продукты: название · доза · кнопка */
.products { display: grid; gap: 10px; margin-top: 14px; }
.prod { padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.prod-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.prod-head b { font-weight: 500; font-size: 17px; color: var(--ink); }
.dose { font-size: 14px; font-weight: 500; color: var(--seal); background: var(--seal-soft); padding: 3px 9px; border-radius: 999px; }
.content .prod-name { margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.ext { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--seal); padding-bottom: 1px; }
.budget { margin-top: 16px; padding: 14px 16px; border-left: 3px solid var(--seal); background: var(--card); }

/* шаги и корзины с галочками */
.steps, .cart { list-style: none; padding: 0; margin-top: 12px; }
.steps li, .cart li { margin: 0; }
.chk { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--stroke); cursor: pointer; }
.chk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chk .tick { width: 22px; height: 22px; margin-top: 2px; border: 1.5px solid var(--ink-soft); border-radius: 6px; display: grid; place-items: center; transition: all .15s; }
.chk input:checked + .tick { background: var(--seal); border-color: var(--seal); }
.chk input:checked + .tick::after { content: ""; width: 6px; height: 11px; border: solid var(--bg); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.chk input:focus-visible + .tick { outline: 2px solid var(--seal); outline-offset: 2px; }
.chk input:checked ~ .txt { color: var(--ink-soft); }
.chk input:checked ~ .txt b, .chk input:checked ~ .txt a { color: var(--ink-soft); }
.cart .txt a { color: var(--ink); font-weight: 500; text-decoration-color: var(--seal); }
.qty { color: var(--ink-soft); }

/* день — лента времени */
.timeline { list-style: none; padding: 0; margin-top: 18px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 20px 26px; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--seal); }
.timeline .when { display: block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--seal); font-weight: 500; }
.timeline .what { display: block; margin-top: 3px; }

/* 12 недель — фазы */
.phases { list-style: none; padding: 0; margin-top: 16px; }
.phases li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--stroke); margin: 0; }
.phases .wk { font-size: 20px; font-weight: 300; color: var(--seal); font-variant-numeric: tabular-nums; line-height: 1.1; }
.phases .wk small { display: block; font-size: 11px; letter-spacing: 0.12em; color: var(--ink-soft); text-transform: uppercase; }

/* апгрейд внутри раздела */
.upsell { margin: 30px 0 8px; }
.content .up-lead { font-size: 15px; color: var(--ink); margin: 0 0 10px; }

/* навигация по этапам */
.btn.next { margin-top: 44px; display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 16px 18px; border-radius: 12px; }
.btn.next small { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; font-weight: 300; }
.prev { display: inline-block; margin-top: 16px; font-size: 14px; color: var(--ink-soft); text-decoration: none; }
.prev:hover { color: var(--seal); }

/* служебное внизу главной — тихо и мелко */
.box { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--stroke); }
.home .block + .box { margin-top: 44px; }
.box h2 { font-weight: 500; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.box p { font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.box p b { font-weight: 500; color: var(--ink); }
.devices { list-style: none; font-size: 14px; color: var(--ink-soft); }
.devices li { padding: 2px 0; }
.devices b { font-weight: 500; }

/* бюджет */
.budget { margin-top: 18px; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 12px; }
.content .b-title { margin: 0 0 8px; font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); }
.b-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--stroke); font-size: 15px; color: var(--body); }
.b-row b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.b-row:last-of-type { border-bottom: 0; font-size: 17px; }
.b-row:last-of-type b { color: var(--seal); }
.content .b-note { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }

/* апгрейды — явно отдельно от протокола */
.sep { margin: 8px 0 -2px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.content .sep-note { margin-top: 8px; font-size: 12px; color: var(--ink-soft); letter-spacing: 0.02em; }

/* обычные списки в тексте — маркеры внутри колонки */
.content ul:not(.cart):not(.steps), .content ol:not(.steps):not(.comps):not(.timeline):not(.phases) { margin-top: 10px; padding-left: 1.25em; }
.content ul:not(.cart) li::marker { color: var(--seal); }
.content li + li { margin-top: 4px; }

/* этап 1: главная мысль и архитектура */
.content .lede { margin-top: 0; font-size: 21px; line-height: 1.42; font-weight: 300; color: var(--ink); letter-spacing: -0.01em; }
.arch { list-style: none; padding: 0; margin: 22px 0 6px; position: relative; }
.arch::before { content: ""; position: absolute; left: 6px; top: 12px; bottom: 14px; width: 1px; background: var(--seal); opacity: .35; }
.arch > li { position: relative; padding: 0 0 18px 28px; margin: 0; }
.arch > li::before { content: ""; position: absolute; left: 0; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--seal); }
.arch > li:last-child { padding-bottom: 0; }
.arch .lvl { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--seal); margin-bottom: 4px; }
.arch .it { display: block; font-size: 16px; line-height: 1.5; color: var(--ink-soft); padding: 3px 0; }
.arch .it b { font-weight: 500; color: var(--ink); }
.cart .pr { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--ink-soft); }
.content .lede + .budget { margin-top: 20px; }
.content .example { margin-top: 12px; padding: 14px 16px; background: var(--paper); border: 1px dashed var(--line); border-radius: 10px;
  font-size: 15px; line-height: 1.6; color: var(--ink); font-variant-numeric: tabular-nums; }

/* схема на день */
.schedule { margin-top: 6px; }
.part-h { font-size: 12px !important; font-weight: 500 !important; letter-spacing: 0.2em; text-transform: uppercase; color: var(--seal) !important; margin: 26px 0 6px !important; }
.schedule .part:first-child .part-h { margin-top: 4px !important; }
.doses { list-style: none; padding: 0; margin: 0; }
.doses li { margin: 0; }
.take { padding: 14px 0; }
.take .when { display: block; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.dose-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 2px 0; }
.dose-row b { font-weight: 500; color: var(--ink); font-size: 17px; }
.amt { font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cond { display: block; margin-top: 3px; font-size: 14px; color: var(--ink-soft); }
.chk.take input:checked ~ .txt b, .chk.take input:checked ~ .txt .amt { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: rgba(28,26,23,0.3); }
.content .rule { margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--seal); background: var(--seal-soft); color: var(--ink); border-radius: 0 8px 8px 0; font-size: 16px; }
.content .chain { margin-top: 18px; padding: 12px 14px; border-left: 3px solid var(--seal); background: var(--card); color: var(--ink); font-weight: 500; font-size: 15px; line-height: 1.55; border-radius: 0 8px 8px 0; }
