/* Статический демо-кабинет: прячем то, что без сервера не работает, и сообщение «Это демо».
   Подсказки обучения — .gd-* из стилей админки; приветствие, ссылка над меню и руководство — .dg-* (demo-tour.js, guide-page.mjs). */
.ash-user button, .ash-ws-list { display: none !important; }
.demo-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; transition: .2s; background: #1d211f; color: #f3efe6; border: 1px solid #c8742f; padding: 11px 18px; border-radius: 12px; font: 500 14.5px system-ui, sans-serif; z-index: 9999; pointer-events: none; }
.demo-toast.on { opacity: 1; transform: translate(-50%, 0); }
.gd-tips ul { margin: 6px 0 0; padding-left: 18px; color: var(--sub); font-size: 13.5px; line-height: 1.5; }
.dg-foot { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.dg-foot .btn { justify-content: center; text-align: center; }

/* ссылка над меню */
.dg-side { display: flex; align-items: center; gap: 10px; margin: 0 12px 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-accent); background: linear-gradient(135deg, var(--card3), var(--card)); color: var(--ink); text-decoration: none; }
.dg-side:hover, .dg-side.on { border-color: var(--copper); }
.dg-side i { font-style: normal; font-size: 20px; }
.dg-side span { display: flex; flex-direction: column; line-height: 1.25; }
.dg-side b { font: 700 13.5px Manrope, sans-serif; }
.dg-side em { font-style: normal; font-size: 12px; color: var(--mut); }
.dg-side.dg-pto { margin-top: -4px; background: var(--card); }

/* приветствие при первом входе */
.dg-welcome { position: fixed; inset: 0; z-index: 210; background: rgba(0, 0, 0, .6); display: grid; place-items: center; padding: 16px; animation: dg-in .25s ease-out; }
.dg-welcome-card { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--bg2); color: var(--ink); border: 1px solid var(--line3); border-top: 3px solid var(--copper); border-radius: 18px; padding: 26px 26px 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.dg-welcome-card h2 { font: 800 26px/1.2 Manrope, sans-serif; margin: 6px 0 12px; }
.dg-welcome-card p { margin: 0 0 12px; color: var(--ink2); line-height: 1.55; }
.dg-welcome-card ul { margin: 0 0 18px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.dg-welcome-card li { padding-left: 24px; position: relative; color: var(--sub); font-size: 14.5px; }
.dg-welcome-card li::before { content: '✓'; position: absolute; left: 2px; color: var(--copper-l); font-weight: 800; }
.dg-welcome-go { display: flex; flex-wrap: wrap; gap: 8px; }
.dg-welcome-go .btn:first-child { flex: 1 1 100%; justify-content: center; font-size: 15.5px; padding-top: 12px; padding-bottom: 12px; }
.dg-welcome-go .btn.ghost { flex: 1 1 0; justify-content: center; }
@keyframes dg-in { from { opacity: 0; } to { opacity: 1; } }
.dg-k { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--copper-l); font-weight: 700; }

/* руководство /admin/guide/ */
.dg { display: flex; flex-direction: column; gap: 34px; max-width: 1100px; padding-bottom: 60px; }
.dg section { padding: 0; }
.dg-h { font: 800 21px Manrope, sans-serif; margin: 0 0 14px; }
.dg-hero { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 26px !important; border-radius: 18px; border: 1px solid var(--line-accent); background: radial-gradient(120% 140% at 100% 0, var(--card3), var(--card) 60%); }
.dg-hero h2 { font: 800 24px/1.25 Manrope, sans-serif; margin: 8px 0 10px; max-width: 680px; }
.dg-hero p { margin: 0; color: var(--ink2); line-height: 1.55; max-width: 680px; }
.dg-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.dg-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dg-facts li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); min-width: 210px; }
.dg-facts b { font: 800 24px Manrope, sans-serif; color: var(--copper-l); min-width: 34px; text-align: center; }
.dg-facts span { color: var(--sub); font-size: 13.5px; }
.dg-company { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; padding: 18px 20px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.dg-company p { margin: 0; line-height: 1.6; color: var(--ink2); }
.dg-company ul { margin: 0; padding-left: 18px; color: var(--sub); line-height: 1.6; font-size: 14.5px; }
.dg-how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.dg-how div { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.dg-how i { font-style: normal; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--copper); color: var(--on-copper, #fff); font-weight: 800; font-size: 16px; }
.dg-how b { font: 700 15px Manrope, sans-serif; }
.dg-how span { color: var(--sub); font-size: 13.5px; line-height: 1.5; }
.dg-scen { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.dg-scen article { border-radius: 14px; background: var(--card); border: 1px solid var(--line); padding: 16px 18px; }
.dg-scen header { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.dg-scen header i { font-style: normal; font-size: 24px; line-height: 1; }
.dg-scen header div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.dg-scen header b { font: 700 16.5px Manrope, sans-serif; }
.dg-scen header span { color: var(--sub); font-size: 13.5px; }
.dg-scen header em { font-style: normal; font-size: 12px; color: var(--mut); white-space: nowrap; border: 1px solid var(--line3); border-radius: 20px; padding: 2px 9px; }
.dg-scen ol { margin: 0; padding: 0; list-style: none; counter-reset: dg; display: flex; flex-direction: column; gap: 8px; }
.dg-scen li { counter-increment: dg; display: grid; grid-template-columns: 24px 1fr; column-gap: 8px; font-size: 13.5px; line-height: 1.45; }
.dg-scen li::before { content: counter(dg); grid-row: span 2; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--card3); color: var(--copper-l); font-size: 12px; font-weight: 700; }
.dg-scen li a, .dg-scen li > span { font-weight: 700; color: var(--ink); }
.dg-scen li a { text-decoration: underline; text-decoration-color: var(--copper-d); text-underline-offset: 3px; }
.dg-scen li a:hover { color: var(--copper-l); }
.dg-scen li small { color: var(--sub); font-size: 13.5px; }
.dg-map { columns: 2; column-gap: 14px; }
.dg-map details, .dg-faq details { break-inside: avoid; margin: 0 0 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.dg-map summary, .dg-faq summary { cursor: pointer; padding: 12px 16px; font: 700 15px Manrope, sans-serif; }
.dg-map summary small { color: var(--mut); font-weight: 600; margin-left: 4px; }
.dg-map ul { list-style: none; margin: 0; padding: 0 16px 12px; display: flex; flex-direction: column; gap: 8px; }
.dg-map li { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.dg-map li a { color: var(--copper-l); font-weight: 600; }
.dg-map li small { color: var(--sub); font-size: 13px; line-height: 1.45; }
.dg-faq { display: flex; flex-direction: column; }
.dg-faq p { margin: 0; padding: 0 16px 14px; color: var(--sub); line-height: 1.55; }
.dg-end { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px !important; border-radius: 16px; border: 1px solid var(--copper); background: var(--card3); }
.dg-end div { display: flex; flex-direction: column; gap: 4px; }
.dg-end b { font: 800 18px Manrope, sans-serif; }
.dg-end span { color: var(--sub); }
@media (max-width: 1000px) { .dg-how { grid-template-columns: repeat(2, 1fr); } .dg-scen { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .dg-hero, .dg-company { grid-template-columns: 1fr; }
  .dg-hero { padding: 18px !important; }
  .dg-hero h2 { font-size: 20px; }
  .dg-facts { flex-direction: row; flex-wrap: wrap; }
  .dg-facts li { min-width: 0; flex: 1 1 140px; }
  .dg-map { columns: 1; }
  .dg-end { flex-direction: column; align-items: stretch; text-align: left; }
  .dg-welcome-card { padding: 20px 18px 18px; }
  .dg-welcome-card h2 { font-size: 22px; }
}
