/* ======================================================================
   Слайды для защиты проекта. Экран (навигация) + печать (A4 альбомная).
   Акцент задаётся переменной --accent в каждой презентации.
   ====================================================================== */
:root {
  --accent: #5b4bdb; --accent2: #2e2585; --ink: #1c2130; --soft: #5a6072;
  --card: #fff; --line: #e2e4ee; --bg: #2a2d3a;
  --sans: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --mono: "Cascadia Code", Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); background: var(--bg); color: var(--ink); }

.deck { }
.slide {
  position: relative;
  width: 1280px; height: 720px; margin: 0 auto;
  background: var(--card); overflow: hidden;
  display: none; flex-direction: column;
}
.slide.active { display: flex; }

/* экранный просмотр: подгон под окно */
@media screen {
  body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
  .deck { transform-origin: center; }
  .slide { box-shadow: 0 10px 40px rgba(0,0,0,.4); border-radius: 10px; }
}

/* ---- Заголовочная плашка слайда ---- */
.slide .bar {
  background: linear-gradient(100deg, var(--accent), var(--accent2));
  color: #fff; padding: 22px 48px; display: flex; align-items: baseline; gap: 16px;
}
.slide .bar h2 { margin: 0; font-size: 34px; font-weight: 800; line-height: 1.1; }
.slide .bar .no { margin-left: auto; font-size: 15px; opacity: .8; font-weight: 600; }
.slide .body { padding: 34px 48px; flex: 1; display: flex; flex-direction: column; gap: 14px; font-size: 24px; line-height: 1.4; min-height: 0; }
.slide .body.center { justify-content: center; align-items: center; text-align: center; }
.slide .foot { padding: 12px 48px; border-top: 1px solid var(--line); color: var(--soft); font-size: 15px; display: flex; justify-content: space-between; }

.slide ul { margin: 0; padding-left: 10px; list-style: none; }
.slide li { margin: 12px 0; padding-left: 40px; position: relative; }
.slide li::before { content: ""; position: absolute; left: 6px; top: 12px; width: 14px; height: 14px; border-radius: 4px; background: var(--accent); }
.slide b { color: var(--accent2); }
.slide .mono { font-family: var(--mono); background: #eef0f6; padding: 1px 7px; border-radius: 5px; font-size: .92em; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; flex: 1; min-height: 0; }
.two.wide-right { grid-template-columns: 1fr 1.3fr; }
.two.wide-left { grid-template-columns: 1.3fr 1fr; }
.fig { text-align: center; }
.fig img { max-width: 100%; max-height: 480px; border: 1px solid var(--line); border-radius: 10px; }
.fig .cap { font-size: 16px; color: var(--soft); margin-top: 8px; }

.big-num { font-family: var(--mono); font-weight: 800; color: var(--accent); }
.kpi-row { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.kpi { background: #f4f3fc; border-radius: 14px; padding: 20px 26px; text-align: center; min-width: 190px; }
.kpi .v { font-size: 46px; font-weight: 800; font-family: var(--mono); color: var(--accent); line-height: 1; }
.kpi .k { font-size: 17px; color: var(--soft); margin-top: 8px; }
.pill { display: inline-block; background: var(--accent); color: #fff; padding: 6px 16px; border-radius: 999px; font-size: 18px; font-weight: 700; }
.note { background: #f4f3fc; border-left: 5px solid var(--accent); border-radius: 8px; padding: 14px 20px; font-size: 21px; }

/* ---- Титульный слайд ---- */
.slide.title { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; justify-content: center; align-items: center; text-align: center; padding: 60px; }
.slide.title .eyebrow { font-size: 20px; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.slide.title h1 { font-size: 58px; font-weight: 800; margin: 18px 0; line-height: 1.12; max-width: 1000px; }
.slide.title .kind { font-size: 24px; opacity: .9; }
.slide.title .who { margin-top: 42px; font-size: 22px; line-height: 1.7; }
.slide.title .who b { color: #fff; }
.slide.title .emoji { font-size: 90px; margin-bottom: 6px; }

/* ---- Навигация (экран) ---- */
.nav { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; align-items: center; background: #1c1f2b; padding: 8px 14px; border-radius: 999px; z-index: 50; }
.nav button { background: #333848; color: #fff; border: none; width: 38px; height: 38px; border-radius: 50%; font-size: 18px; cursor: pointer; }
.nav button:hover { background: var(--accent); }
.nav .count { color: #cfd3e2; font-size: 15px; font-family: var(--mono); min-width: 54px; text-align: center; }
.hint { position: fixed; top: 14px; right: 16px; color: #9aa0b4; font-size: 13px; z-index: 50; }

/* ---- Печать: каждый слайд — своя альбомная страница ---- */
@page { size: A4 landscape; margin: 0; }
@media print {
  body { background: #fff; display: block; padding: 0; }
  .nav, .hint { display: none !important; }
  .deck { transform: none !important; }
  .slide { display: flex !important; width: 297mm; height: 209mm; margin: 0; box-shadow: none; border-radius: 0; page-break-after: always; }
  .slide .bar { padding: 14mm 18mm 8mm; }
  .slide .body { padding: 10mm 18mm; }
}
