/* Памятка для мамы: крупный шрифт, высокий контраст, на бумаге без фона */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/onest-cyrillic.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 800;
  font-display: swap;
  src: url('/fonts/onest-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC;
}
:root { --ink: #1f1426; --soft: #5a4d60; --line: #d9ccd3; --ember: #d9481f; --ok: #157f58; --bad: #c62f36; --paper: #fffaf7; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 22px/1.5 'Onest', -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
main { max-width: 760px; margin: 0 auto; padding: 32px 20px 56px; }
p, h1, h2, ol { margin: 0; }
.top { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 22px; }
.mark { position: relative; width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(180deg, #ff9b4e, var(--ember)); }
.mark i { position: absolute; border-radius: 50%; }
.mark i:nth-child(1) { inset: 6px; border: 2px solid rgba(255, 255, 255, 0.45); }
.mark i:nth-child(2) { inset: 10px; border: 2px solid rgba(255, 255, 255, 0.75); }
.mark i:nth-child(3) { inset: 13px; background: #fff; }
h1 { margin-top: 28px; font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; }
.intro { margin-top: 16px; font-size: 24px; color: var(--soft); }
ol { list-style: none; padding: 0; margin-top: 32px; counter-reset: n; display: grid; gap: 0; }
ol li { counter-increment: n; position: relative; padding: 22px 0 22px 64px; border-top: 2px solid var(--line); }
ol li::before { content: counter(n); position: absolute; left: 0; top: 22px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 750; font-size: 24px; color: #fff; background: var(--ember); }
h2 { font-size: 28px; line-height: 1.2; letter-spacing: -0.01em; }
ol p { margin-top: 8px; }
.key { display: inline-block; padding: 2px 14px; border-radius: 12px; border: 2px solid var(--ink); font-weight: 700; white-space: nowrap; }
.key.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.key.help { color: var(--bad); border-color: var(--bad); }
.write { display: flex; align-items: flex-end; gap: 10px; margin-top: 14px; font-weight: 650; }
.write span { flex: 1; min-width: 120px; height: 1.4em; border-bottom: 2px solid var(--ink); }
.sos { margin-top: 28px; padding: 18px 20px; border-radius: 18px; border: 3px solid var(--bad); font-size: 26px; font-weight: 650; }
.sos b { font-size: 32px; }
.phone-sos { margin-top: 28px; }
.phone-sos p { margin-top: 8px; }
.kids { margin-top: 28px; font-weight: 700; }
.wide { margin-top: 18px; }
.print { margin-top: 36px; min-height: 56px; padding: 0 28px; border: 0; border-radius: 28px; font: 700 20px/1 inherit; font-family: inherit; color: #fff; background: linear-gradient(180deg, #ff9b4e, var(--ember)); cursor: pointer; }
.back { margin-top: 20px; font-size: 18px; display: flex; flex-wrap: wrap; gap: 20px; }
.back a { color: var(--soft); }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; }
@media print {
  body { background: #fff; font-size: 20px; }
  main { padding: 0; max-width: none; }
  .print, .back { display: none; }
  ol li { break-inside: avoid; }
}
@media (max-width: 520px) {
  body { font-size: 20px; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  ol li { padding-left: 56px; }
  ol li::before { width: 40px; height: 40px; }
}
