/* Гайд по Будке (/guide). Отдельная страница без меню Будки, на токенах ЧЕКЛАП UI.
   Фуксия — только то, что нажимают; кобальт и небо — важное; без жёлтого и красного. */
:root {
  color-scheme: light;
  --bg: var(--milk);
  --card: var(--white);
  --text: var(--graphite);
  --muted: var(--steel);
  --line: #DDDAD9;
  --sky-soft: #EAF0FA;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-sans); font-size: 15px; line-height: 1.5; font-weight: 500; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
.wrap { max-width: 1120px; margin-inline: auto; padding: 0 clamp(16px, 4vw, 40px) 120px; }
h1, h2, h3 { color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-weight: 900; font-size: clamp(30px, 5vw, 52px); line-height: 1.06; }
h2 { font-weight: 700; font-size: clamp(22px, 3vw, 30px); line-height: 1.15; }
h3 { font-weight: 700; font-size: 17px; line-height: 1.3; }
p { margin: 0; max-width: 66ch; }
button, select, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--cobalt); }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: clamp(17px, 2vw, 20px); line-height: 1.35; color: var(--ink); max-width: 48ch; }
.muted { color: var(--muted); font-size: 14px; }

/* шапка: логотип, таблетки глав (главная) или «← к началу гайда» (внутренние) */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px clamp(16px, 4vw, 40px); background: var(--white); margin-inline: calc(-1 * clamp(16px, 4vw, 40px)); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
/* Полный логотип «Будка» (static/budka/budka.css): кегль слова 30px. */
.logo .budka-logo { font-size: 30px; }
.logo .pill { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--radius-pill); background: var(--milk); color: var(--graphite); font-size: 13px; font-weight: 700; }
.me { font-size: 13px; color: var(--muted); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.me b { color: var(--ink); }
.chapters { display: flex; gap: 8px; flex-wrap: wrap; }
.chapters a { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: var(--radius-pill); background: var(--milk); color: var(--ink); font-size: 14px; text-decoration: none; }
.chapters a:hover { box-shadow: inset 0 0 0 1px var(--cobalt); color: var(--cobalt); }
.chapters a.go { background: var(--rose); color: var(--fuchsia); font-weight: 700; }
.chapters a.go:hover { box-shadow: inset 0 0 0 1px var(--fuchsia); color: var(--fuchsia); }
.back { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: var(--radius-pill); background: var(--white); color: var(--cobalt); border: 2px solid var(--cobalt); font-weight: 700; font-size: 14px; text-decoration: none; }
.back svg { width: 16px; height: 16px; flex: none; }
.back:hover { background: var(--sky-light); }
body.on-start .back, body:not(.on-start) .chapters { display: none; }
.panel { padding-top: 36px; display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
.panel[hidden] { display: none; }
.panel > *, .sec > *, .hero > * { min-width: 0; }
.sec { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.head { display: grid; gap: 8px; }

/* чипы */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; background: var(--card); color: var(--text); border-radius: var(--radius-pill); padding: 4px 12px; max-width: 100%; box-shadow: inset 0 0 0 1px var(--line); }
.chip.cb { background: var(--sky-soft); color: var(--cobalt); font-weight: 700; box-shadow: none; }
.chip.live { background: var(--cobalt); color: var(--white); font-weight: 700; box-shadow: none; }
.chip.plan { background: transparent; color: var(--cobalt); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--cobalt); border: 0; }
.chip.dk { background: rgba(255,255,255,.12); color: var(--white); box-shadow: none; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* герой */
/* Внутренняя страница (хэндофф §8): hero на rose со звёздами, «← к началу гайда». */
.hero { position: relative; overflow: hidden; background: var(--rose); border-radius: 28px; padding: clamp(28px, 5vw, 72px) clamp(22px, 4.5vw, 48px) clamp(32px, 5vw, 88px); display: grid; gap: 18px; }
.hero > * { position: relative; }
.hero .stars, .shero .stars, section.go .stars { position: absolute; right: 0; top: 0; width: min(60%, 700px); height: 100%; pointer-events: none; }
.hero .label, .hero .tag { font-size: 13px; font-weight: 700; color: var(--fuchsia); text-transform: none; letter-spacing: 0; }
.hero .tag { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--radius-pill); background: var(--white); justify-self: start; }
.hero h1 { font-size: clamp(34px, 6vw, 72px); line-height: 1; }
.hero .lead { color: var(--graphite); }
.hero.ink { background: var(--rose); }
.hero.ink h1 { color: var(--ink); } .hero.ink .lead { color: var(--graphite); }
.hero.ink .label { color: var(--fuchsia); }
.hero h1 em { font-style: normal; color: var(--fuchsia); }
.hero.ink h1 em { color: var(--fuchsia); }
.who { display: grid; gap: 8px; }
.who button { border: 0; background: rgba(255,255,255,.1); color: var(--white); font-weight: 700; font-size: 15px; padding: 10px 18px; border-radius: var(--radius-button); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); }
.who button:hover { box-shadow: inset 0 0 0 1.5px var(--fuchsia); }
.who button[aria-pressed="true"] { background: var(--fuchsia); box-shadow: none; }

/* схема-круг */
.loop { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.loop.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.step { background: var(--card); border-radius: var(--radius-card); padding: 16px; display: grid; gap: 8px; align-content: start; position: relative; min-width: 0; }
.step .t { font-weight: 700; color: var(--ink); line-height: 1.25; }
.step .d { font-size: 14px; color: var(--muted); line-height: 1.4; }
.step.crm { background: var(--ink); }
.step.crm .t { color: var(--white); }
.step.crm .d { color: var(--sky-light); }
.step:not(:last-child)::after { content: "→"; position: absolute; right: -10px; top: 50%; transform: translate(50%, -50%); z-index: 2; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); color: var(--cobalt); font-weight: 900; font-size: 14px; box-shadow: inset 0 0 0 1px var(--line); }

.two, .three, .four { display: grid; gap: 12px; }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--card); border-radius: var(--radius-card); padding: 20px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.card.dark { background: var(--ink); }
.card.dark h3, .card.dark .big { color: var(--white); }
.card.dark p, .card.dark li { color: var(--sky-light); }
.card.dark .label, .card.dark .pace { color: var(--powder); }
.card.sky { background: var(--sky-soft); }
.card.outline { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.card ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.big { font-size: 22px; font-weight: 900; color: var(--ink); line-height: 1.15; }
.pace { font-size: 12px; font-weight: 700; color: var(--cobalt); letter-spacing: .04em; }
.note { background: var(--sky-soft); border-radius: 14px; padding: 12px 16px; max-width: none; }
.note b { color: var(--cobalt); }

/* роли */
.rolepick { display: flex; flex-wrap: wrap; gap: 8px; }
.rolepick button { border: 0; background: var(--card); padding: 8px 16px; border-radius: var(--radius-pill); font-size: 15px; box-shadow: inset 0 0 0 1.5px var(--line); }
.rolepick button[aria-pressed="true"] { background: var(--ink); color: var(--white); font-weight: 700; box-shadow: none; }
.roleview { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 16px; }
.side { background: var(--card); border-radius: var(--radius-card); padding: 14px; display: grid; gap: 2px; align-content: start; }
.side .it { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; font-size: 14px; color: var(--text); }
.side .it.off { opacity: .3; text-decoration: line-through; }
.side .it.home { background: var(--cobalt); color: var(--white); font-weight: 700; }
.side .it::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .6; flex: none; }
.side .grp { font-size: 10px; letter-spacing: .12em; font-weight: 700; color: var(--fog); padding: 10px 10px 2px; text-transform: uppercase; }
.rolebody { display: grid; gap: 12px; align-content: start; }
.matrix { overflow-x: auto; border-radius: 16px; background: var(--card); }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 14px; }
th { text-align: left; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; font-weight: 700; }
td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
td:first-child { color: var(--ink); }
td.c, th.c { text-align: center; }
th.on { color: var(--cobalt); }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: middle; }
.dot.full { background: var(--cobalt); }
.dot.half { background: linear-gradient(90deg, var(--cobalt) 50%, transparent 50%); box-shadow: inset 0 0 0 2px var(--cobalt); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); align-items: center; }

/* таймлайн дня */
.tl { display: grid; gap: 10px; }
.band { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
.band > .when { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cobalt); padding-top: 18px; }
.band > .items { display: grid; gap: 10px; border-left: 2px solid var(--line); padding-left: 16px; }
.act { background: var(--card); border-radius: var(--radius-card); padding: 14px 16px; display: grid; gap: 8px; min-width: 0; }
.act .top2 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.act .t { font-weight: 700; color: var(--ink); font-size: 16px; }
.act .out { font-size: 13px; color: var(--muted); }
.act .out b { color: var(--cobalt); }

/* «Ок / Не ок» */
.fb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fb .q { font-size: 12px; color: var(--muted); margin-right: 4px; background: none; padding: 0; border-radius: 0; }
.fb button { border: 0; background: var(--card); border-radius: var(--radius-pill); padding: 5px 16px; font-size: 13px; font-weight: 700; color: var(--fuchsia); box-shadow: inset 0 0 0 1.5px var(--fuchsia); }
.fb button[aria-pressed="true"] { background: var(--fuchsia); color: var(--white); }
.fb input { flex: 1 1 220px; min-width: 0; font-size: 14px; border: 0; box-shadow: inset 0 0 0 1.5px var(--fuchsia); background: var(--card); color: var(--ink); border-radius: var(--radius-button); padding: 7px 10px; }
.fb input[hidden] { display: none; }
.add { display: grid; gap: 6px; }
.add textarea { font-size: 15px; width: 100%; background: var(--card); color: var(--ink); border: 0; box-shadow: inset 0 0 0 1.5px var(--line); border-radius: 14px; padding: 10px 14px; resize: vertical; min-height: 64px; }
.add textarea:focus { box-shadow: inset 0 0 0 1.5px var(--cobalt); outline: none; }

/* макеты экранов */
.mock { background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.mock .bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.mock .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--fog); opacity: .5; }
.mock .bar span { margin-left: 8px; font-size: 12px; color: var(--muted); background: var(--bg); border-radius: var(--radius-pill); padding: 2px 12px; }
.mock .body { padding: 16px; display: grid; gap: 10px; }
.fld { position: relative; display: grid; gap: 3px; min-width: 0; }
.fld > span { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fld > div { box-shadow: inset 0 0 0 1.5px var(--line); border-radius: 10px; padding: 8px 12px; font-size: 14px; color: var(--ink); background: var(--card); min-height: 38px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.fld > div.req { box-shadow: inset 0 0 0 1.5px var(--fuchsia); }
.fld > div.auto { background: var(--sky-soft); box-shadow: none; color: var(--cobalt); }
.fld > div.plan { box-shadow: inset 0 0 0 1.5px var(--cobalt); border-style: dashed; background: transparent; color: var(--cobalt); }
.btnm { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-button); background: var(--fuchsia); color: var(--white); }
.btnm.o { background: transparent; color: var(--fuchsia); box-shadow: inset 0 0 0 1.5px var(--fuchsia); }
.pin { position: absolute; top: -4px; right: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--cobalt); color: var(--white); font-weight: 900; font-size: 12px; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--card); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form .full { grid-column: 1 / -1; }
.legendlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px 24px; }
.legendlist li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; font-size: 14px; align-items: start; }
.legendlist .n { width: 24px; aspect-ratio: 1; border-radius: 50%; background: var(--cobalt); color: var(--white); font-weight: 900; font-size: 12px; display: grid; place-items: center; }
.legendlist b { color: var(--ink); display: block; font-size: 15px; }
.trow { display: grid; grid-template-columns: .5fr 1.3fr .9fr 1fr 1.3fr 1.4fr; gap: 10px; align-items: end; }

/* калькулятор статуса */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; align-items: start; }
.calc select { font-size: 16px; width: 100%; padding: 12px 14px; border-radius: var(--radius-button); border: 0; box-shadow: inset 0 0 0 1.5px var(--cobalt); background: var(--card); color: var(--ink); }
.res { background: var(--ink); border-radius: var(--radius-card); padding: 20px; display: grid; gap: 12px; color: var(--white); }
.res .label { color: var(--powder); }
.res .big { font-size: 34px; color: var(--white); }
.res .kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.res .kv div { background: rgba(255,255,255,.08); border-radius: 12px; padding: 10px 12px; }
.res .kv small { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--powder); font-weight: 700; }
.res p { color: var(--sky-light); font-size: 13px; }
.pbar { display: inline-flex; gap: 3px; vertical-align: middle; }
.pbar i { width: 10px; height: 14px; border-radius: 3px; background: var(--line); display: block; }
.pbar i.on { background: var(--cobalt); }
.res .pbar i { background: rgba(255,255,255,.2); }
.res .pbar i.on { background: var(--powder); }

/* справочники */
.ref { display: grid; gap: 8px; }
.refrow { display: grid; grid-template-columns: minmax(0, 1.5fr) 80px 90px minmax(0, 1.4fr); gap: 10px; align-items: center; background: var(--card); border-radius: 14px; padding: 10px 14px; }
.refrow.h { background: none; padding-block: 0; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.refrow .nm2 { font-weight: 700; color: var(--ink); }
.refrow .nm2 small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.refrow .fbw { grid-column: 1 / -1; }
.refrow .n { font-weight: 700; color: var(--ink); }
.grpttl { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cobalt); padding: 8px 2px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
button.pick { border: 0; background: var(--card); color: var(--text); font-size: 14px; border-radius: var(--radius-pill); padding: 5px 13px; box-shadow: inset 0 0 0 1.5px var(--line); }
button.pick[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--fuchsia); color: var(--fuchsia); text-decoration: line-through; }
.grp-card { background: var(--card); border-radius: var(--radius-card); padding: 14px 16px; display: grid; gap: 8px; min-width: 0; align-content: start; }
.kw { display: flex; flex-wrap: wrap; gap: 5px; }
.kw span { font-size: 13px; background: var(--bg); border-radius: 8px; padding: 1px 8px; }
.kw span.rep { background: var(--sky-soft); color: var(--cobalt); }
.grid-ref { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.onoff { font-size: 12px; font-weight: 700; border-radius: var(--radius-pill); padding: 3px 10px; white-space: nowrap; }
.onoff.on { background: var(--cobalt); color: var(--white); }
.onoff.off { background: var(--bg); color: var(--muted); }

/* маршруты */
.route { display: grid; grid-template-columns: 52px minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 6px 12px; background: var(--card); border-radius: 14px; padding: 12px 14px; align-items: start; }
.route .id { font-weight: 900; color: var(--cobalt); font-size: 18px; }
.route .sit { font-weight: 700; color: var(--ink); }
.route .sit small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.route .fbw { grid-column: 1 / -1; }
.q { background: var(--card); border-radius: 16px; padding: 14px 16px; display: grid; gap: 8px; }
.q b { color: var(--ink); }
.q .id { color: var(--cobalt); font-weight: 900; margin-right: 6px; }
.three-bot { display: grid; grid-template-columns: 1fr 40px 1fr 40px 1fr; }
.arrow { display: grid; place-items: center; color: var(--cobalt); font-size: 26px; font-weight: 900; }

/* что от вас */
.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.todo li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; background: var(--card); border-radius: 16px; padding: 14px 16px; align-items: start; }
.todo li[hidden] { display: none; }
.todo input { appearance: none; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--fog); background: var(--card); cursor: pointer; margin: 0; display: grid; place-items: center; }
.todo input:checked { background: var(--fuchsia); border-color: var(--fuchsia); }
.todo input:checked::after { content: "✓"; color: var(--white); font-weight: 900; font-size: 15px; line-height: 1; }
.todo li:has(input:checked) .tt { text-decoration: line-through; color: var(--muted); }
.todo .tt { font-weight: 700; color: var(--ink); }
.todo .dd { font-size: 14px; color: var(--muted); }
.progress { height: 10px; background: var(--line); border-radius: var(--radius-pill); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--cobalt); width: 0; transition: width .2s; }

/* нижняя полоса */
.dock { position: fixed; left: 50%; transform: translateX(-50%); width: min(1100px, calc(100% - 24px)); bottom: 12px; z-index: 30; background: var(--ink); color: var(--white); border-radius: 18px; padding: 12px 16px 12px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; box-shadow: 0 12px 32px rgba(19,21,42,.25); }
.dock .dk { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; min-width: 0; }
.dock span { font-size: 17px; font-weight: 700; }
.dock span small { display: block; color: var(--sky-light); font-size: 12px; font-weight: 500; }
.dock .segs { display: flex; gap: 6px; }
.dock .segs i { width: 28px; height: 8px; border-radius: 999px; background: var(--graphite); }
.dock .segs i.ok { background: var(--sky-light); }
.dock .segs i.no { background: var(--fuchsia); }
.dock button { border: 0; background: var(--fuchsia); color: var(--white); font-weight: 700; height: 48px; padding: 0 32px; border-radius: 8px; font-size: 15px; }
.dock button:hover { background: var(--fuchsia-hover); }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--cobalt); color: var(--white); padding: 8px 16px; border-radius: var(--radius-pill); font-weight: 700; font-size: 14px; z-index: 40; max-width: calc(100% - 32px); text-align: center; }
.toast[hidden] { display: none; }
.foot { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); max-width: none; }

@media (max-width: 900px) {
  .loop, .loop.six { grid-template-columns: minmax(0, 1fr); }
  .step:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -10px; transform: translate(-50%, 50%) rotate(90deg); }
  .three, .four, .two, .calc, .roleview, .three-bot { grid-template-columns: minmax(0, 1fr); }
  .three-bot .arrow { height: 32px; transform: rotate(90deg); }
  .trow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .band { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .band > .when { padding-top: 0; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .refrow { grid-template-columns: minmax(0, 1fr) 60px 70px; }
  .refrow .seg { grid-column: 1 / -1; }
  .route { grid-template-columns: 44px minmax(0, 1fr); }
  .route > :nth-child(n+3) { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.dayt { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--card); border-radius: var(--radius-card); overflow: hidden; }
.dayt th, .dayt td { text-align: left; padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.dayt th { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-top: 0; }
.dayt td:first-child { white-space: nowrap; color: var(--muted); }

/* ===== Главная гайда — «Гайд 2 · Главная» (хэндофф §8) ===== */
.story { padding-top: 0; gap: 0; }
.shero, section.go { position: relative; overflow: hidden; background: var(--rose); margin-inline: calc(-1 * clamp(16px, 4vw, 40px)); padding: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 40px) clamp(56px, 9vw, 120px); }
.shero .in, section.go .in, .next { position: relative; max-width: 1100px; margin-inline: auto; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--radius-pill); background: var(--white); color: var(--fuchsia); font-size: 13px; font-weight: 700; }
.shero h1 { max-width: 820px; font-size: clamp(38px, 6.5vw, 72px); line-height: .99; font-weight: 900; }
.shero h1 em { font-style: normal; color: var(--fuchsia); }
.shero .lead, .go .lead { max-width: 600px; font-size: 20px; line-height: 26px; color: var(--graphite); }
.btnf { display: inline-flex; align-items: center; height: 48px; padding: 0 28px; border-radius: 8px; background: var(--fuchsia); color: var(--white); font-weight: 700; font-size: 15px; text-decoration: none; }
.btnf:hover { background: var(--fuchsia-hover, #a81b78); }
.chapters-body { max-width: 1100px; margin-inline: auto; width: 100%; display: flex; flex-direction: column; }
.chap { display: flex; flex-direction: column; gap: 48px; padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 96px); border-top: 1px solid var(--sky-light); }
.chap:first-child { border-top: 0; }
.chno { display: flex; flex-direction: column; gap: 8px; }
.chno .k { font-size: 15px; font-weight: 700; color: var(--fuchsia); }
.chno .word { font-size: clamp(64px, 12vw, 140px); line-height: .92; font-weight: 900; color: var(--ink); letter-spacing: -.02em; }
.chno h2 { margin-top: 16px; }
.chap h2 { font-size: clamp(26px, 3.5vw, 36px); line-height: 1.2; }
.chap p { font-size: 17px; line-height: 23px; }
.chgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; align-items: center; }
.chgrid .txt { display: flex; flex-direction: column; gap: 20px; }
.illus { position: relative; height: 340px; min-width: 0; }
.illus .tg { position: absolute; background: var(--white); border-radius: 8px; padding: 8px 12px; font-size: 13px; font-weight: 700; color: var(--graphite); box-shadow: 0 2px 8px rgba(19,21,42,.08); white-space: nowrap; }
.illus .arr { position: absolute; left: 180px; top: 150px; width: 120px; height: 80px; }
.illus .win { position: absolute; right: 0; bottom: 20px; width: 220px; background: var(--cobalt); color: var(--white); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 12px 28px rgba(25,81,181,.3); }
.illus .win .bar { display: flex; gap: 5px; } .illus .win .bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); }
.illus .win .ttl { font-weight: 900; font-size: 15px; }
.illus .win .ln { height: 8px; border-radius: 4px; background: rgba(255,255,255,.35); } .illus .win .ln.s { width: 60%; }
.vmcrm .card ul { margin: 0; padding-left: 18px; font-size: 15px; }
.vsteps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.vsteps li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 0 16px; }
.vsteps .rail { display: flex; flex-direction: column; align-items: center; }
.vsteps .n { width: 56px; height: 56px; border-radius: 50%; background: var(--white); color: var(--ink); display: grid; place-items: center; font-weight: 900; font-size: 20px; box-shadow: inset 0 0 0 2px var(--sky-light); }
.vsteps li.crm .n { background: var(--fuchsia); color: var(--white); box-shadow: none; }
.vsteps .rail i { flex: 1; border-left: 2px dashed var(--fog); min-height: 32px; margin: 6px 0; }
.vsteps .b { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; padding: 12px 0 28px; }
.vsteps .t { font-size: 24px; line-height: 30px; font-weight: 700; color: var(--ink); }
.vsteps .who { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--radius-pill); background: var(--sky-light); color: var(--cobalt); font-size: 13px; font-weight: 700; }
.vsteps .d { flex-basis: 100%; font-size: 17px; line-height: 23px; max-width: 66ch; }
.plaque { display: flex; align-items: center; gap: 16px; padding: 20px 24px; background: var(--white); border-radius: var(--radius-card); }
.plaque svg { width: 40px; height: 40px; flex: none; }
.plaque p { color: var(--ink); }
.who3 .card { display: flex; flex-direction: column; gap: 16px; padding: 32px; }
.who3 .ic { width: 72px; height: 72px; border-radius: 50%; background: var(--sky-light); color: var(--cobalt); display: grid; place-items: center; }
.who3 .ic svg { width: 36px; height: 36px; }
.who3 h3 { font-size: 24px; line-height: 30px; }
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); background: var(--white); border-radius: var(--radius-card); overflow: hidden; }
.rules > div { padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.rules > div + div { border-left: 1px solid var(--line); }
.rules h3 { font-size: 20px; line-height: 26px; }
.rules p { font-size: 15px; line-height: 21px; }
.main-plaque { background: var(--cobalt); color: var(--white); border-radius: var(--radius-card); padding: 32px; display: flex; flex-direction: column; gap: 8px; }
.main-plaque span { color: var(--sky-light); font-weight: 700; font-size: 15px; }
.main-plaque p { font-size: clamp(24px, 3vw, 32px); line-height: 1.25; font-weight: 900; color: var(--white); max-width: none; }
.go .head, .next .head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.go .k, .next .k { font-size: 15px; font-weight: 700; color: var(--fuchsia); }
.next .k { color: var(--cobalt); }
.go h2 { font-size: clamp(34px, 6vw, 72px); line-height: .99; font-weight: 900; }
.gosteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; width: 100%; }
.gosteps li { background: var(--white); border-radius: var(--radius-card); padding: 24px; display: flex; gap: 16px; align-items: flex-start; }
.gosteps .n { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--white); display: grid; place-items: center; font-weight: 900; }
.gosteps span:not(.n) { font-size: 17px; line-height: 23px; color: var(--ink); }
.entries { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; width: 100%; }
.entry { display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; border: 0; border-radius: var(--radius-card); padding: 28px 32px; background: var(--white); color: var(--ink); cursor: pointer; }
.entry .s { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.entry .r { font-size: 15px; font-weight: 700; color: var(--fuchsia); }
.entry .t { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; font-weight: 900; }
.entry .d { font-size: 14px; color: var(--steel); }
.entry svg { width: 32px; height: 32px; flex: none; }
.entry.f { background: var(--fuchsia); color: var(--white); }
.entry.f .r, .entry.f .d { color: rgba(255,255,255,.85); }
.entry.o { border: 2px solid var(--fuchsia); }
.entry.o svg { color: var(--fuchsia); }
.entry:hover { box-shadow: 0 0 0 3px var(--sky-light); }
.entry[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--cobalt); }
.entry.sm .t { font-size: 22px; }
.go .two { width: 100%; }
.next { padding: clamp(48px, 7vw, 96px) 0 0; gap: 24px; }
.pages { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; width: 100%; }
.pg { display: flex; flex-direction: column; gap: 10px; background: var(--white); border-radius: var(--radius-card); padding: 24px; text-decoration: none; color: var(--graphite); min-height: 160px; }
.pg:hover { box-shadow: 0 0 0 2px var(--cobalt); }
.pg .t { font-size: 20px; line-height: 26px; font-weight: 700; color: var(--ink); }
.pg .d { font-size: 14px; }
.pg .o { margin-top: auto; color: var(--cobalt); font-weight: 700; }
.tagp { align-self: flex-start; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; }
.tagp.ask { background: var(--rose); color: var(--fuchsia); }
.tagp.ref { background: var(--sky-light); color: var(--cobalt); }
.next .todo { width: 100%; }
.next .progress { width: 100%; }
/* шаги дня — карточки */
.tl { display: flex; flex-direction: column; gap: 16px; }
.stepcard { background: var(--white); border-radius: var(--radius-card); padding: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; }
.stepcard.bad { box-shadow: inset 0 0 0 2px var(--fuchsia); }
.stepcard .num { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--white); display: grid; place-items: center; font-weight: 900; font-size: 20px; }
.stepcard.plan .num { background: var(--white); color: var(--cobalt); box-shadow: inset 0 0 0 2px var(--cobalt); }
.stepcard .b { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.stepcard .top2 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.stepcard .when { font-size: 13px; font-weight: 700; color: var(--fuchsia); }
.stepcard h2 { font-size: 24px; line-height: 30px; }
.stepcard p { font-size: 17px; line-height: 23px; max-width: none; }
.stepcard .out { font-size: 15px; color: var(--steel); } .stepcard .out b { color: var(--ink); }
.hc-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; }
.hc-divider span { font-size: 13px; font-weight: 700; color: var(--fuchsia); text-transform: uppercase; letter-spacing: .04em; }
.hc-divider i { flex: 1; border-top: 1px solid var(--powder); }
.fb.stepfb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: none; padding: 0; }
.fb.stepfb .hint { font-size: 13px; color: var(--steel); }
.fb.stepfb .cmt { flex-basis: 100%; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--ink); }
.fb.stepfb .cmt i { font-style: normal; font-weight: 400; color: var(--steel); }
.fb.stepfb textarea { flex-basis: 100%; width: 100%; min-width: 0; font-size: 16px; line-height: 22px; color: var(--ink); background: var(--white); border: 1px solid var(--fog); border-radius: var(--radius-button); padding: 12px 16px; resize: vertical; }
.fb.stepfb textarea:focus { border-color: var(--cobalt); }
.stepcard.bad .fb.stepfb textarea { border-color: var(--fuchsia); }
.fb button.ok, .fb button.no { height: 40px; padding: 0 18px; border-radius: var(--radius-pill); font-weight: 700; font-size: 14px; background: var(--white); box-shadow: none; }
.fb button.ok { border: 2px solid var(--cobalt); color: var(--cobalt); }
.fb button.ok[aria-pressed="true"] { background: var(--cobalt); color: var(--white); }
.fb button.no { border: 2px solid var(--fuchsia); color: var(--fuchsia); }
.fb button.no[aria-pressed="true"] { background: var(--fuchsia); color: var(--white); }
.endgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; align-items: stretch; }
.important { background: var(--sky-light); border-radius: var(--radius-card); padding: 24px; display: flex; flex-direction: column; gap: 8px; color: var(--ink); }
.important .k { font-size: 15px; font-weight: 700; color: var(--cobalt); }
.important p { color: var(--ink); max-width: none; }
.important .legendlist { grid-template-columns: minmax(0, 1fr); }
.important .legendlist .n { background: var(--cobalt); }
.nextcard { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--white); border-radius: var(--radius-card); padding: 20px 24px; text-decoration: none; color: var(--ink); }
.nextcard span { display: flex; flex-direction: column; gap: 4px; }
.nextcard small { font-size: 13px; color: var(--steel); }
.nextcard b { font-size: 20px; line-height: 26px; }
.nextcard svg { width: 28px; height: 28px; flex: none; color: var(--cobalt); }
.nextcard:hover { box-shadow: 0 0 0 2px var(--cobalt); }
.card.avatar { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: start; }
.card.avatar img { width: 72px; height: 72px; border-radius: 50%; }
.card.avatar > div { display: grid; gap: 8px; }
@media (max-width: 700px) {
  .vsteps li { grid-template-columns: 48px minmax(0, 1fr); } .vsteps .n { width: 40px; height: 40px; font-size: 16px; }
  .stepcard { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; } .stepcard .num { width: 40px; height: 40px; font-size: 16px; }
  .illus { height: 300px; } .illus .win { width: 170px; }
  .dock { padding-left: 16px; } .dock button { width: 100%; }
}

/* ТЗ на неделю 13–16.10: блок роли (показан один, остальные hidden) */
.wk { display: grid; gap: 16px; }
.wk[hidden] { display: none; }
