/* Памятка сотруднику. Отдельный светлый документ: его печатают и раздают,
   поэтому style.css (тёмная тема сайта) здесь намеренно не подключается. */

:root{--ink:#14181F;--muted:#5B6675;--line:#DDE3EA;--bg:#FFFFFF;--soft:#F4F7FA;--brand:#1F4FD8;--ok:#0B7A4B;--warn:#B3541E}
*{box-sizing:border-box}
body{margin:0;background:#E9EDF2;color:var(--ink);font-family:Archivo,system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;-webkit-font-smoothing:antialiased;line-height:1.6}
.mono{font-family:'JetBrains Mono',ui-monospace,monospace}
a{color:var(--brand)}
h1,h2,h3{margin:0;letter-spacing:-.02em;line-height:1.2}

/* лист */
.sheet{max-width:940px;margin:0 auto;background:var(--bg);padding:clamp(26px,4vw,54px) clamp(20px,4vw,56px) clamp(34px,4vw,58px)}

/* панель редактора — только на экране */
.note{max-width:940px;margin:0 auto;background:var(--ink);color:#EAF0F7;padding:16px clamp(20px,4vw,56px);display:flex;flex-wrap:wrap;gap:12px 20px;align-items:center;justify-content:space-between}
.note p{margin:0;font-size:13.5px;line-height:1.55;max-width:64ch;color:#C3CEDC}
.note b{color:#fff}
.note-act{display:flex;gap:10px;flex-wrap:wrap}
.note button,.note a.btn{font:inherit;font-size:13px;padding:9px 15px;border-radius:3px;border:1px solid rgba(255,255,255,.28);background:none;color:#EAF0F7;cursor:pointer;text-decoration:none;white-space:nowrap}
.note button:hover,.note a.btn:hover{background:rgba(255,255,255,.1)}
.note button.pri{background:#EAF0F7;color:var(--ink);border-color:#EAF0F7;font-weight:600}

/* шапка памятки */
.hd{border-bottom:2px solid var(--ink);padding-bottom:22px;margin-bottom:30px}
.org{font-family:'JetBrains Mono',ui-monospace,monospace;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin:0 0 14px}
.hd h1{font-size:clamp(25px,3.6vw,40px);font-weight:700}
.hd p{margin:14px 0 0;font-size:16px;color:var(--muted);max-width:70ch}

/* поле для заполнения */
.fill{display:inline-block;min-width:70px;padding:1px 7px;background:#FFF7DA;border-bottom:1.5px dashed #C9A227;color:#6B5200;font-weight:600;white-space:nowrap}
.fill[contenteditable]{cursor:text;border-radius:3px 3px 0 0}
.fill[contenteditable]:hover{background:#FFF0BD}
.fill[contenteditable]:focus{outline:2px solid var(--brand);outline-offset:1px;background:#fff;color:var(--ink)}
.fill:empty::before{content:"—";opacity:.5}

/* даты */
.dates{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;margin-bottom:32px}
.date{border:1px solid var(--line);border-inline-start:4px solid var(--brand);border-radius:4px;padding:18px 20px;background:var(--soft)}
.date.fin{border-inline-start-color:var(--warn)}
.date b{display:block;font-size:19px;font-weight:700;margin-bottom:7px}
.date span{font-size:14.5px;color:var(--muted);line-height:1.55}

/* секции */
.sec{margin-bottom:32px}
.sec>h2{font-size:19px;font-weight:700;padding-inline-start:13px;border-inline-start:4px solid var(--ink);margin-bottom:18px}

/* шаги */
.steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:12px}
.steps li,.card,.date{min-width:0}
.steps li{border:1px solid var(--line);border-radius:4px;padding:16px 18px;background:var(--bg)}
.steps .num{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:var(--ink);color:#fff;font-family:'JetBrains Mono',ui-monospace,monospace;font-size:12px;margin-bottom:11px}
.steps h3{font-size:15.5px;font-weight:700;margin-bottom:6px}
.steps p{margin:0;font-size:14px;color:var(--muted);line-height:1.55}
.steps b{color:var(--ink)}

/* чек-лист */
.check{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:4px}
.check li{display:flex;gap:13px;align-items:flex-start;padding:13px 18px;border-bottom:1px solid var(--line);font-size:15px}
.check li:last-child{border-bottom:0}
.check li::before{content:"";flex:0 0 17px;width:17px;height:17px;margin-top:3px;border:1.5px solid var(--muted);border-radius:3px}
.check li>span{flex:1 1 auto;min-width:0}

/* карточки */
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px}
.card{border:1px solid var(--line);border-radius:4px;padding:20px 22px;background:var(--soft)}
.card h3{font-size:16px;font-weight:700;margin-bottom:10px}
.card p,.card li{font-size:14.5px;color:var(--muted);line-height:1.6}
.card p{margin:0 0 9px}
.card p:last-child{margin-bottom:0}
.card ul{list-style:none;margin:0;padding:0}
.card li{padding:5px 0}
.card b{color:var(--ink)}
.act{display:inline-block;margin-top:12px;padding:11px 20px;border-radius:4px;background:var(--brand);color:#fff;text-decoration:none;font-size:14px;font-weight:600}
.act:hover{background:#173CA6;color:#fff}
code{font-family:'JetBrains Mono',ui-monospace,monospace;font-size:.88em;background:#EBF0F6;border:1px solid var(--line);border-radius:3px;padding:1px 5px;word-break:break-word}

/* примечания */
.notes{background:var(--soft);border-inline-start:4px solid var(--muted);border-radius:0 4px 4px 0;padding:20px 24px;margin-top:32px}
.notes h2{font-size:16px;font-weight:700;margin-bottom:12px;border:0;padding:0}
.notes ul{list-style:none;margin:0;padding:0}
.notes li{font-size:14.5px;color:var(--muted);line-height:1.65;padding-inline-start:18px;margin-bottom:10px;position:relative}
.notes li:last-child{margin-bottom:0}
.notes li::before{content:"";position:absolute;inset-inline-start:0;top:9px;width:6px;height:6px;border-radius:50%;background:var(--muted)}

.print-foot{display:none}
.src{margin-top:30px;padding-top:18px;border-top:1px solid var(--line);font-size:12.5px;color:var(--muted);line-height:1.6}
.src a{color:var(--brand)}

@media (max-width:560px){.sheet{padding-inline:18px}.note{padding-inline:18px}}

/* печать: A4, без интерфейса, карточки не рвутся между страницами */
@page{size:A4;margin:14mm 12mm}
@media print{
  body{background:#fff}
  .noprint{display:none!important}
  .sheet{max-width:none;margin:0;padding:0}
  .date,.steps li,.check,.card,.notes{break-inside:avoid;background:#fff}
  .steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sheet,.steps,.cards,.check,.notes{max-width:100%}
  .act{background:none;color:var(--ink);border:1px solid var(--ink);font-weight:600}
  /* position:fixed в печати повторяется на каждой странице */
  .print-foot{display:block;position:fixed;bottom:0;left:0;right:0;margin:0;padding-top:5px;
              border-top:1px solid #C9CFD8;text-align:center;color:#5B6675;
              font-family:'JetBrains Mono',ui-monospace,monospace;font-size:9px;letter-spacing:.1em;text-transform:uppercase}
  .sheet{padding-bottom:14mm}
  .fill[contenteditable]:focus{outline:none}
  .fill{background:#FFF7DA;color:#000;font-weight:700;border-bottom:1.2px solid #000;
        -webkit-print-color-adjust:exact;print-color-adjust:exact}
  a{color:var(--ink);text-decoration:underline}
  .sec{break-inside:avoid-page}
}
