/* Презентация проекта (/presentation). Слайд = подложка из PowerPoint + слои
   в процентах слайда (ролики, рамки устройств, логотип). Размеры слоёв —
   в cqw от ширины слайда, поэтому слайд один и тот же на любом экране.
   Токены страницы — как у дневника и главной (блок «Calm workspace»). */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --font:"Onest","Inter",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --dur:.18s;--ease:cubic-bezier(.22,1,.36,1);
  --top-h:60px;--hero-h:122px;
}
:root[data-theme="light"]{
  --bg:#faf9f8;--surface:#fff;--surface-2:#f7f7f6;--surface-3:#f0f0ef;
  --text:#171717;--text-2:#535353;--text-3:#707070;
  --line:#e9e8e6;--line-2:#d9d8d6;
  --accent:#1d64c8;--accent-soft:#edf4ff;
  --stage-sh:0 1px 2px rgba(0,0,0,.06),0 12px 40px -12px rgba(30,30,60,.22);
}
:root[data-theme="dark"]{
  --bg:#151515;--surface:#1d1d1d;--surface-2:#252525;--surface-3:#303030;
  --text:#f2f2f2;--text-2:#c0c0c0;--text-3:#a0a0a0;
  --line:#303030;--line-2:#434343;
  --accent:#8ebaff;--accent-soft:#263246;
  --stage-sh:0 1px 2px rgba(0,0,0,.4),0 16px 48px -16px rgba(0,0,0,.7);
}
html{scroll-behavior:smooth}
body{font-family:var(--font);background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;min-height:100dvh}
button{font:inherit;border:0;background:none;cursor:pointer;color:inherit}
a{color:inherit;text-decoration:none}
svg{display:block;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:8px}
.dk-skip{position:fixed;z-index:100;top:10px;left:10px;padding:10px 14px;border-radius:10px;
  background:var(--text);color:var(--bg);font-weight:600;transform:translateY(calc(-100% - 22px));
  transition:transform var(--dur) ease}
.dk-skip:focus{transform:none}

/* ── Шапка ── */
.dk-top{position:sticky;top:0;z-index:20;height:var(--top-h);display:flex;align-items:center;gap:16px;
  padding:0 max(20px,env(safe-area-inset-right)) 0 max(20px,env(safe-area-inset-left));
  background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:saturate(1.4) blur(12px);
  border-bottom:1px solid var(--line)}
.dk-home{display:flex;align-items:center;gap:6px;padding:6px 10px 6px 6px;border-radius:12px;
  transition:background var(--dur)}
.dk-home:hover{background:var(--surface-2)}
.dk-home svg{width:18px;height:18px;color:var(--text-2)}
.dk-brand{font-family:"Unbounded",var(--font);font-weight:700;font-size:15px;letter-spacing:-.02em}
.dk-brand b{color:#18a9b0}
.dk-ttl{display:flex;flex-direction:column;min-width:0;line-height:1.25;padding-left:16px;border-left:1px solid var(--line)}
.dk-ttl b{font-size:14px;font-weight:600}
.dk-ttl span{font-size:12.5px;color:var(--text-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dk-actions{margin-left:auto;display:flex;align-items:center;gap:6px}
.dk-count{font-size:13px;color:var(--text-2);font-variant-numeric:tabular-nums;padding:0 8px;min-width:58px;text-align:right}
.dk-btn{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 12px;border-radius:12px;
  border:1px solid var(--line);background:var(--surface-2);font-size:12.5px;font-weight:600;
  transition:border-color var(--dur),background var(--dur),box-shadow var(--dur)}
.dk-btn:hover{border-color:var(--line-2);background:var(--surface);box-shadow:0 1px 3px rgba(0,0,0,.06)}
.dk-btn[aria-pressed="true"]{background:var(--accent-soft);color:var(--accent);border-color:transparent}
.dk-btn svg{width:16px;height:16px}

/* ── Сводка над слайдами ── */
.dk-hero{display:flex;align-items:center;gap:28px;margin:0 auto 18px;width:min(100%,1680px);
  padding:16px 18px 16px 22px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.dk-hero-txt{flex:1 1 300px;min-width:0}
.dk-hero h1{font-size:19px;font-weight:700;letter-spacing:-.015em;line-height:1.25;text-wrap:balance}
.dk-hero p{margin-top:5px;font-size:13.5px;line-height:1.45;color:var(--text-2);text-wrap:pretty}
.dk-facts{list-style:none;display:flex;gap:10px;flex:0 1 auto}
.dk-facts li{display:flex;flex-direction:column;gap:3px;width:172px;padding:10px 12px;border-radius:12px;background:var(--surface-2)}
.dk-facts b{font-size:22px;font-weight:700;letter-spacing:-.02em;color:#6439b8;font-variant-numeric:tabular-nums}
.dk-facts li:nth-child(2) b{color:#008f9f}
:root[data-theme="dark"] .dk-facts b{color:#b9a2f0}
:root[data-theme="dark"] .dk-facts li:nth-child(2) b{color:#5fd0d8}
.dk-facts span{font-size:12px;line-height:1.35;color:var(--text-2)}
.dk-cta{flex:0 0 auto;display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 18px;border-radius:12px;
  background:var(--accent);color:#fff;font-size:14px;font-weight:600;transition:filter var(--dur),transform var(--dur)}
:root[data-theme="dark"] .dk-cta{color:#0f1a2b}
.dk-cta:hover{filter:brightness(1.08)}
.dk-cta:active{transform:scale(.98)}
.dk-cta svg{width:18px;height:18px;stroke-width:2.2}

/* ── Просмотр по одному слайду ── */
.dk-main{padding:18px max(20px,env(safe-area-inset-right)) 56px max(20px,env(safe-area-inset-left))}
.dk-show[hidden],.dk-feed[hidden]{display:none}
.dk-frame{position:relative;margin:0 auto;
  width:min(100%,1680px,calc((100dvh - var(--top-h) - var(--hero-h) - 120px) * 16 / 9));min-width:min(100%,560px)}
.dk-stage{position:relative;aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:#fff;
  box-shadow:var(--stage-sh);outline:none;touch-action:pan-y}
.dk-stage>.dk-slide{position:absolute;inset:0;animation:dkIn .38s var(--ease) both}
.dk-stage>.dk-slide.out{animation:dkOut .3s ease both;pointer-events:none}
@keyframes dkIn{from{opacity:0}to{opacity:1}}
@keyframes dkOut{from{opacity:1}to{opacity:0}}
.dk-nav{position:absolute;top:50%;z-index:3;width:46px;height:46px;margin-top:-23px;border-radius:50%;
  display:grid;place-items:center;color:#1f2230;background:rgba(255,255,255,.86);
  box-shadow:0 2px 10px rgba(20,20,40,.18);backdrop-filter:blur(6px);
  opacity:0;transition:opacity var(--dur),transform var(--dur)}
.dk-nav svg{width:22px;height:22px;stroke-width:2.2}
.dk-nav.prev{left:14px}.dk-nav.next{right:14px}
.dk-frame:hover .dk-nav,.dk-nav:focus-visible{opacity:1}
.dk-nav:hover{transform:scale(1.06)}
.dk-nav:disabled{opacity:0!important;pointer-events:none}
@media(hover:none){.dk-nav{opacity:.9}}
.dk-progress{height:3px;margin:12px 2px 0;border-radius:3px;background:var(--line);overflow:hidden}
.dk-progress i{display:block;height:100%;width:0;background:var(--accent);border-radius:3px;transition:width .35s var(--ease)}

.dk-thumbs{position:relative;display:flex;gap:8px;overflow-x:auto;margin:14px auto 0;padding:4px 2px 8px;
  width:min(100%,1680px);scrollbar-width:thin;justify-content:safe center}
.dk-thumb{position:relative;flex:0 0 auto;width:112px;aspect-ratio:16/9;border-radius:8px;overflow:hidden;
  border:1px solid var(--line);opacity:.62;transition:opacity var(--dur),box-shadow var(--dur),transform var(--dur)}
.dk-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.dk-thumb span{position:absolute;left:5px;bottom:4px;font-size:10.5px;font-weight:700;color:#fff;
  background:rgba(20,20,30,.62);border-radius:5px;padding:1px 5px}
.dk-thumb:hover{opacity:.9}
.dk-thumb[aria-current="true"]{opacity:1;box-shadow:0 0 0 2px var(--accent)}

.dk-speech{max-width:760px;margin:22px auto 0;min-height:120px}
.dk-speech h2,.dk-item h2{font-size:12.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--text-3);margin-bottom:10px}
.dk-speech p,.dk-item p{font-size:17px;line-height:1.62;color:var(--text);margin-bottom:10px;text-wrap:pretty}

/* ── Лента ── */
.dk-feed{display:flex;flex-direction:column;gap:56px;max-width:1180px;margin:0 auto}
.dk-item .dk-slide{border-radius:14px;overflow:hidden;box-shadow:var(--stage-sh)}
.dk-item .dk-text{max-width:760px;margin:18px auto 0}

/* ── Во весь экран ── */
.dk-frame:fullscreen{width:100vw;height:100vh;max-width:none;display:flex;flex-direction:column;
  align-items:center;justify-content:center;background:#000}
.dk-frame:fullscreen .dk-stage{width:min(100vw,calc(100vh * 16 / 9));border-radius:0;box-shadow:none}
.dk-frame:fullscreen .dk-progress{position:absolute;left:0;right:0;bottom:0;margin:0;border-radius:0;background:rgba(255,255,255,.12)}

/* ── Слайд: подложка и слои ── */
.dk-slide{position:relative;aspect-ratio:16/9;container-type:inline-size;overflow:hidden;background:#fff;user-select:none}
.dk-bg{position:absolute;inset:0;width:100%;height:100%;display:block}
.dk-l{position:absolute}
.dk-l.video{overflow:hidden;background:#f4f4f6}
.dk-l.video video{width:100%;height:100%;object-fit:fill;display:block}
.dk-l.img{pointer-events:none}
.dk-l.img img,.dk-l.logo img{width:100%;height:100%;display:block}
.dk-l.island{background:#08080a}
.dk-l.link{border-radius:1cqw;transition:box-shadow var(--dur)}
.dk-l.link:hover,.dk-l.link:focus-visible{box-shadow:0 0 0 .3cqw rgba(29,100,200,.55)}

/* Логотип обложки — как на сайте и в PowerPoint: точка → буквы поднимаются
   → кольцо и AI раскрывается из точки → точка гаснет. Без .play — итог. */
.dk-l.logo.dot{background:#18c0b8;border-radius:50%;opacity:0}
.dk-l.logo.ring{border:.16cqw solid #18c0b8;border-radius:50%;opacity:0}
.dk-slide.play .dk-l.logo.dot{animation:dkDotIn .45s .1s var(--ease) both,dkFade .3s 1.65s ease forwards}
.dk-slide.play .dk-l.logo.letter{animation:dkRise .6s var(--d) cubic-bezier(.16,1,.3,1) both}
.dk-slide.play .dk-l.logo.ring{animation:dkRing .8s 1.25s cubic-bezier(.16,1,.3,1) both}
.dk-slide.play .dk-l.logo.ai{animation:dkReveal .75s 1.3s ease-out both}
@keyframes dkDotIn{from{opacity:0;transform:scale(.2)}to{opacity:1;transform:none}}
@keyframes dkFade{to{opacity:0}}
@keyframes dkRise{from{opacity:0;transform:translateY(3.4cqw)}60%{opacity:1}to{opacity:1;transform:none}}
@keyframes dkRing{0%{opacity:0;transform:scale(.1)}12%{opacity:1}35%{opacity:1}100%{opacity:0;transform:scale(1.4)}}
@keyframes dkReveal{from{clip-path:circle(0% at 50% 45%)}to{clip-path:circle(75% at 50% 50%)}}

@media(prefers-reduced-motion:reduce){
  .dk-stage>.dk-slide,.dk-slide.play .dk-l.logo{animation:none!important}
  html{scroll-behavior:auto}
}

/* ── Узкий экран ── */
@media(max-width:1180px){
  .dk-hero{flex-wrap:wrap;gap:14px 20px}
  .dk-facts{flex:1 1 100%;order:3}
  .dk-facts li{flex:1 1 0;width:auto}
}
@media(max-width:820px){
  .dk-ttl span{display:none}
  .dk-btn span{display:none}
  .dk-btn{width:40px;padding:0;justify-content:center}
  .dk-thumb{width:88px}
}
@media(max-width:560px){
  :root{--top-h:56px}
  .dk-ttl{display:none}
  .dk-main{padding-top:12px}
  .dk-frame{min-width:0}
  .dk-stage,.dk-item .dk-slide{border-radius:10px}
  .dk-nav{width:38px;height:38px;margin-top:-19px}
  .dk-nav.prev{left:6px}.dk-nav.next{right:6px}
  .dk-speech p,.dk-item p{font-size:16px}
  .dk-hero{padding:14px;gap:12px}
  .dk-hero h1{font-size:17px}
  .dk-facts{gap:6px}
  .dk-facts li{padding:8px 9px}
  .dk-facts b{font-size:18px}
  .dk-facts span{font-size:11.5px}
  .dk-cta{flex:1 1 100%;justify-content:center;order:4}
  .dk-feed{gap:40px}
}
.dk-noscript{max-width:760px;margin:40px auto;padding:0 20px;line-height:1.8}
.dk-noscript a{color:var(--accent)}
