/* Danifo deck — AI-трансформация Данифо
   Самодостаточный слайд-дек на ванильном JS. Бренд-токены и шрифты — из danifo.css. */

/* ---------- Brand fonts ---------- */
@font-face {
  font-family: "Unbounded";
  src: url("../assets/fonts/Unbounded-Light.ttf") format("truetype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Unbounded";
  src: url("../assets/fonts/Unbounded-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Unbounded";
  src: url("../assets/fonts/Unbounded-Black.ttf") format("truetype");
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Futura PT";
  src: url("../assets/fonts/FuturaPTBook.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Futura PT";
  src: url("../assets/fonts/FuturaPTBold.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Brand tokens ---------- */
:root {
  --danifo-orange: #F47929;
  --danifo-navy:   #29256A;
  --danifo-purple: #60489D;
  --danifo-gray:   #D1D3D4;
  --danifo-white:  #FFFFFF;
  --danifo-black:  #000000;

  --danifo-font-display: "Unbounded", system-ui, sans-serif;
  --danifo-font-body:    "Futura PT", "Helvetica Neue", Arial, sans-serif;

  /* размер «холста» слайда (16:9) — текст всегда крупный, дек масштабируется целиком */
  --stage-w: 1600px;
  --stage-h: 900px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--danifo-black);
  font-family: var(--danifo-font-body);
  color: var(--danifo-navy);
  overflow: hidden;
}

/* ---------- Сцена / масштабирование ---------- */
.stage-wrap {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
}
.stage {
  position: relative;
  width: var(--stage-w);
  height: var(--stage-h);
  transform-origin: center center;
  /* масштаб задаётся из JS через --scale */
  transform: scale(var(--scale, 1));
  background: var(--danifo-white);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

/* ---------- Слайд ---------- */
.slide {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 7rem;
}
.slide.active { display: flex; }
.slide.pad-0 { padding: 0; }
.slide.center { align-items: center; justify-content: center; text-align: center; }

/* среднего размера заголовок секции (роли, списки) */
.deck-h2 {
  font-family: var(--danifo-font-display);
  font-weight: 900;
  font-size: 3.2rem;
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0;
}

/* шкала шрифтов на холсте 1600×900 */
.stage { font-size: 28px; }

/* ---------- Background utilities ---------- */
.bg-orange { background: var(--danifo-orange); color: var(--danifo-white); }
.bg-navy   { background: var(--danifo-navy);   color: var(--danifo-white); }
.bg-purple { background: var(--danifo-purple); color: var(--danifo-white); }
.bg-gray   { background: var(--danifo-gray);   color: var(--danifo-navy);  }
.bg-white  { background: var(--danifo-white);  color: var(--danifo-navy);  }

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: var(--danifo-font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  opacity: 0.85;
}
.bg-white .eyebrow, .bg-gray .eyebrow { color: var(--danifo-orange); }

/* ---------- Statement (крупный тезис) ---------- */
.statement {
  font-family: var(--danifo-font-display);
  font-weight: 900;
  font-size: 5rem;
  line-height: 1.04;
  letter-spacing: -0.015em;
  max-width: 22ch;
  margin: 0;
}
.statement.sm  { font-size: 4.1rem; max-width: 26ch; }
.statement.lg  { font-size: 6rem;   max-width: 16ch; }
.statement .accent { color: var(--danifo-orange); }
.bg-orange .statement .accent,
.bg-navy   .statement .accent,
.bg-purple .statement .accent { color: var(--danifo-white); text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.12em; }

.substatement {
  font-family: var(--danifo-font-body);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1.4;
  max-width: 46ch;
  margin: 2rem 0 0 0;
  opacity: 0.92;
}

/* «вайб-» список на слайде 3 */
.vibe-list {
  font-family: var(--danifo-font-display);
  font-weight: 900;
  font-size: 3.4rem;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 2rem 0 0 0;
  max-width: 24ch;
}
.vibe-list .accent { color: var(--danifo-orange); }
.vibe-list .muted  { color: var(--danifo-navy); opacity: 0.32; }

/* ---------- Иллюстрация-акцент ---------- */
.slide-illu {
  position: absolute;
  right: -2rem;
  bottom: -2rem;
  width: 460px;
  height: auto;
  opacity: 0.96;
  pointer-events: none;
}
.slide-illu.right-mid { bottom: 50%; transform: translateY(50%); right: 5rem; width: 420px; }
.slide-illu.bottom-right { right: 6rem; bottom: 7rem; width: 360px; }
.slide-illu.small { width: 360px; }

/* ---------- Кликабельные блоки ---------- */
.link-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.6rem;
  max-width: 70%;
}
.link-cards.single { grid-template-columns: 1fr; max-width: 60%; }
.link-card {
  display: block;
  text-decoration: none;
  border-radius: 18px;
  padding: 2.2rem 2.2rem 2rem;
  background: var(--danifo-white);
  border: 2px solid rgba(41, 37, 106, 0.14);
  color: var(--danifo-navy);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.link-card:hover {
  transform: translateY(-4px);
  border-color: var(--danifo-orange);
  box-shadow: 0 20px 40px rgba(41, 37, 106, 0.16);
}
.bg-navy .link-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--danifo-white);
}
.bg-navy .link-card:hover { border-color: var(--danifo-orange); background: rgba(255,255,255,0.1); }
.link-card .lc-num {
  font-family: var(--danifo-font-display);
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--danifo-orange);
  margin-bottom: 0.8rem;
}
.link-card .lc-title {
  font-family: var(--danifo-font-body);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.25;
  margin-bottom: 0.9rem;
}
.link-card .lc-url {
  font-family: var(--danifo-font-body);
  font-weight: 400;
  font-size: 1.05rem;
  opacity: 0.7;
  word-break: break-all;
}
.link-card .lc-url::after { content: "  ↗"; opacity: 0.8; }

/* ---------- Роли (слайд 10) — 3 вертикальные колонки ---------- */
.roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem 3rem;
  margin-top: 3rem;
}
.role-col {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.r-name {
  font-family: var(--danifo-font-display);
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--danifo-navy);
}
.r-name.accent { color: var(--danifo-orange); }

/* ---------- Цитата (слайд 8) ---------- */
.quote-split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 4rem;
  align-items: center;
  height: 100%;
}
.quote-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.quote-photo-wrap {
  height: 100%;
  margin: -6rem 0 -6rem -7rem;
  overflow: hidden;
}
.quote {
  font-family: var(--danifo-font-display);
  font-weight: 300;
  font-size: 1.7rem;
  line-height: 1.36;
  color: var(--danifo-navy);
  margin: 0;
}
.quote::before { content: "«"; color: var(--danifo-orange); }
.quote::after  { content: "»"; color: var(--danifo-orange); }
.quote-author {
  font-family: var(--danifo-font-body);
  font-weight: 700;
  font-size: 1.4rem;
  margin-top: 1.8rem;
  color: var(--danifo-orange);
  letter-spacing: 0.02em;
}

/* ---------- Видео iframe (слайд 0) ---------- */
.embed-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Cover / финал ---------- */
.cover-logo { width: 360px; height: auto; margin-bottom: 2.4rem; }
.final-logo { width: 320px; height: auto; margin-top: 3rem; opacity: 0.95; }

/* ---------- Footer ---------- */
.footer-long {
  position: absolute;
  bottom: 2.6rem;
  left: 7rem;
  right: 7rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--danifo-font-body);
  font-weight: 400;
  font-size: 0.95rem;
  opacity: 0.78;
  z-index: 2;
}
.footer-long img { height: 20px; }
.bg-navy .footer-long, .bg-orange .footer-long, .bg-purple .footer-long { color: var(--danifo-white); }
.bg-white .footer-long, .bg-gray .footer-long { color: var(--danifo-navy); }

/* ---------- Навигация: точки + стрелки ---------- */
.dots {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
  z-index: 50;
}
.dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.dots button:hover { background: rgba(255, 255, 255, 0.6); }
.dots button.on { background: var(--danifo-orange); transform: scale(1.25); }

.nav-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.32);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 50;
  opacity: 0;
  transition: opacity .2s ease, background .2s ease;
}
.stage-wrap:hover .nav-arrow { opacity: 1; }
.nav-arrow:hover { background: var(--danifo-orange); }
.nav-arrow.prev { left: 22px; }
.nav-arrow.next { right: 22px; }

.counter {
  position: fixed;
  top: 18px; right: 22px;
  font-family: var(--danifo-font-body);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  z-index: 50;
  letter-spacing: 0.04em;
}
