/* ─────────────────────────────────────────────────────────────
   Цифровой дизайнер слайдов — стили
   ─────────────────────────────────────────────────────────────
   Копия композиции ЦДС.aep (750×422). Всё внутри .scene задано
   в пикселях композиции; app.js масштабирует .scene под окно и
   двигает элементы по ключевым кадрам из проекта.
   ───────────────────────────────────────────────────────────── */

:root {
  --bg: #000000;
  --panel: #000911;          /* заливка «Прямоугольник 1» из PSD */
  --ink: #ffffff;
  --orange: #dd5e11;         /* цвет из текстовых слоёв PSD «САЙТ_нравится2» */
  --red: #be1212;
  --font: "Unbounded", "Arial Black", sans-serif;        /* заголовки — Unbounded-Black */
  --font-body: "SF Pro Display", "Helvetica Neue", Arial, sans-serif;   /* текст — SF Pro Display Thin */
}

@font-face {
  font-family: "SF Pro Display";
  src: url("assets/SF-Pro-Display-Thin.otf") format("opentype");
  font-weight: 100;
  font-display: swap;
}

* { box-sizing: border-box; }

html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

/* ── Сцена ── */
.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;           /* колесо и тач уходят в документ */
}

/* Слой 0 — живая сетка на canvas (вместо статичной из PSD) */
.gridc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

/* координатная система композиции */
.scene {
  position: absolute;
  left: 0;
  top: 0;
  width: 750px;
  height: 422px;
  transform-origin: 0 0;
}
.scene--clip { overflow: hidden; }   /* квадрат обрезается границей композиции, как в AE */

/* ══════════ Слайды 1–3 ══════════ */
.sc {
  position: absolute;
  inset: 0;
}

/* ── Слайд 1: панель главного экрана ── */
.shell {
  position: absolute;
  left: 0;
  top: -40px;                       /* уходит за верхний край, как в композиции */
  width: 750px;
  height: 447px;
  border-radius: 0 0 34px 34px;
  overflow: hidden;

  /* лёгкое стекло: сетка за панелью видна, но размыта и приглушена */
  background:
    linear-gradient(155deg, rgba(255,255,255,.065) 0%, rgba(255,255,255,.02) 48%, rgba(0,0,0,.38) 100%),
    rgba(5,6,9,.62);
  -webkit-backdrop-filter: blur(var(--shell-blur, 16px)) saturate(130%) brightness(.34);
  backdrop-filter: blur(var(--shell-blur, 16px)) saturate(130%) brightness(.34);
  box-shadow:
    inset 0 -0.5px 0 rgba(255,255,255,.35),      /* светлая фаска по срезу */
    inset 0.5px 0 0 rgba(255,255,255,.12),
    inset -0.5px 0 0 rgba(255,255,255,.12),
    0 24px 70px rgba(0,0,0,.55);
}
.shell::before,
.shell::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; }
.shell::before {                    /* мягкий свет по стеклу: сверху холодный, у профиля тёплый */
  background:
    linear-gradient(160deg, rgba(255,255,255,.055) 0%, rgba(255,255,255,0) 38%),
    radial-gradient(70% 55% at 12% -10%, rgba(255,255,255,.12), rgba(255,255,255,0) 60%),
    radial-gradient(50% 40% at 92% 8%, rgba(221,94,17,.11), rgba(255,255,255,0) 65%);
}
.shell::after {                     /* тонкая светлая кромка по нижнему скруглению */
  border-bottom: 0.5px solid rgba(255,255,255,.28);
}

/* шапка */
.top {
  position: absolute;
  left: 0; right: 0;
  top: 40px;                        /* компенсируем сдвиг .shell */
  height: 62px;
}
.logo {
  position: absolute;
  left: 46px;
  top: 40.6px;                      /* по центру с пилюлей навигации (её центр — y = 44.5) */
  font-size: 42px;
  line-height: 0;
  letter-spacing: -0.3em;          /* буквы входят друг в друга, как в логотипе */
  color: var(--orange);
}

/* liquid glass — общий вид для панелей интерфейса */
.glass {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.035) 50%, rgba(255,255,255,.02) 100%);
  -webkit-backdrop-filter: blur(6px) saturate(150%);
  backdrop-filter: blur(6px) saturate(150%);
  border: 0.5px solid rgba(255,255,255,.3);
  box-shadow:
    inset 0 0.5px 0 rgba(255,255,255,.5),
    inset 0 -0.5px 0 rgba(255,255,255,.06),
    0 8px 22px rgba(0,0,0,.4);
}
.glass::after {                     /* блик в верхнем углу */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 90% at 10% 0%, rgba(255,255,255,.16), rgba(255,255,255,0) 60%);
  pointer-events: none;
}

.nav {
  position: absolute;
  left: 193px;
  top: 25px;
  width: 361px;
  height: 39px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px;
  border-radius: 999px;
  pointer-events: auto;
}
.nav__item {
  position: relative;
  z-index: 1;
  padding: 7px 14px;
  font-size: 10px;
  line-height: 1;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav__item:hover { color: var(--ink); background: rgba(255,255,255,.1); }
.nav__item.is-active { color: #000; background: var(--orange); }
.nav__item:focus-visible { outline: 1.5px solid var(--orange); outline-offset: 2px; }

.avatar {
  position: absolute;
  left: 662px;
  top: 25px;
  width: 39px;
  height: 39px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--orange);
  pointer-events: auto;
}
.avatar svg { position: relative; z-index: 1; width: 20px; height: 20px; }
.avatar:hover { color: var(--ink); }
.avatar:focus-visible { outline: 1.5px solid var(--orange); outline-offset: 2px; }

/* ── вкладка с интерфейсом конфигуратора ── */
.tab {
  position: absolute;
  left: 312px;
  top: 168px;                       /* 128 + 40 из-за сдвига .shell */
  width: 378px;
  height: 200px;
  display: flex;
  flex-direction: column;
  padding: 7px;
  background: #d8d8d8;              /* серебристая рамка окна */
  border-radius: 26px;
  box-shadow: 0 26px 60px rgba(0,0,0,.75);
  transform-origin: 50% 50%;
  pointer-events: auto;
  cursor: pointer;
  will-change: transform;
}
.tab__bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 15px;
  padding: 0 7px;
  background: #ececec;
  border-radius: 19px 19px 0 0;
}
.tab__dot { width: 4.5px; height: 4.5px; border-radius: 50%; background: #b9b9b9; }
.tab__dot:first-child { background: var(--orange); }
.tab__name { margin-left: 6px; font-size: 5.6px; color: #4a4a4a; }
.tab__live {
  margin-left: auto;
  padding: 2px 6px;
  font-size: 5px;
  color: #fff;
  background: var(--orange);
  border-radius: 999px;
}
.tab__body {
  flex: 1;
  display: flex;
  gap: 4px;
  min-height: 0;
  padding: 4px;
  background: #f4f4f4;
  border-radius: 0 0 19px 19px;
}
.tab__rail {
  flex: none;
  width: 32px;
  display: flex;
  flex-direction: column;
  gap: 3.5px;
}
.thumb {
  flex: 1;
  border-radius: 2px;
  background: #ffffff;
  border: 0.5px solid #d3d3d3;
}
.thumb.is-on { border: 1px solid var(--orange); background: #fff4ec; }
.thumb--new { background: repeating-linear-gradient(45deg, #e6e6e6 0 3px, #f4f4f4 3px 6px); }

.tab__canvas {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e4e4e4;
  border-radius: 3px;
}
.tslide {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 10px 11px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,.14);
  overflow: hidden;
}
.tslide__t { display: block; font-size: 10px; line-height: 1.1; color: #111; }
.tslide__t em { font-style: normal; color: var(--orange); }
.tslide__l { display: block; height: 2.5px; width: 62%; margin-top: 6px; background: #d2d2d2; border-radius: 2px; }
.tslide__l.short { width: 42%; }
.tslide__chart {
  position: absolute;
  left: 11px; bottom: 10px;
  width: 92px; height: 46px;
  display: flex; align-items: flex-end; gap: 4px;
}
.tslide__chart b { flex: 1; height: calc(var(--h) * 100%); background: #1a1a1a; border-radius: 1.5px 1.5px 0 0; }
.tslide__chart b:last-child { background: var(--orange); }
.tslide__img {
  position: absolute;
  right: 11px; bottom: 10px;
  width: 72px; height: 54px;
  border-radius: 2px;
  background: linear-gradient(135deg, #2a2a2a, #0d0d0d);
}

.tab__panel {
  flex: none;
  width: 58px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 3px;
  padding: 5px 4px;
  background: #fff;
  border-radius: 3px;
}
.tab__cap { width: 100%; font-size: 4.6px; letter-spacing: .08em; text-transform: uppercase; color: #9a9a9a; }
.tab__panel .sw { width: 9px; height: 9px; border-radius: 2px; border: 0.5px solid #ccc; }
.sw--a { background: #050505; } .sw--b { background: #fff; }
.sw--c { background: var(--orange); } .sw--d { background: var(--red); }
.tab__panel .lay { width: 15px; height: 10px; border: 0.5px solid #c4c4c4; border-radius: 1px; position: relative; background: #fafafa; }
.tab__panel .lay::before { content: ""; position: absolute; left: 1.5px; top: 1.5px; width: 7px; height: 1.5px; background: #bdbdbd; }
.tab__panel .lay--b::before { width: 4px; height: 6px; }
.tab__panel .lay--c::before { left: 1.5px; top: 4px; width: 10px; height: 3px; }
.tab__fmt { width: 100%; font-size: 5.4px; white-space: nowrap; color: #333; }

.tab__progress { flex: none; height: 6px; margin: 2px 4px 0; background: #dcdcdc; border-radius: 999px; overflow: hidden; }
.tab__progress i { display: block; height: 100%; width: 0; background: var(--orange); border-radius: 999px; }

/* ── заголовок и лид ── */
.hero {
  position: absolute;
  left: 45px;
  top: 133px;                       /* капитель первой строки на y = 101 */
  margin: 0;
  font-size: 34px;
  line-height: 41px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.hero span { display: block; }
.hero em { font-style: normal; color: var(--orange); }

.lead {
  position: absolute;
  left: 45px;
  top: 275px;                       /* капитель первой строки на y = 239 */
  margin: 0;
  font-family: var(--font-body);
  font-weight: 100;
  font-size: 17.7px;
  line-height: 21.8px;
  color: var(--ink);
  white-space: nowrap;
}
.lead em { font-style: normal; color: var(--orange); }

/* ── Пояснения под заголовками (тот же шрифт, что и лид на первом слайде) ── */
.sub {
  position: absolute;
  margin: 0;
  font-family: var(--font-body);
  font-weight: 100;
  font-size: 11.5px;
  line-height: 1.55;
  color: rgba(255,255,255,.72);
}
.sub em { font-style: normal; color: var(--orange); }

.sub--s2    { left: 45px;  top: 152px; max-width: 190px; }
.sub--s3    { left: 45px;  top: 258px; max-width: 330px; }
.sub--tpl   { left: 48px;  top: 332px; max-width: 320px; }
.sub--brief { left: 48px;  top: 266px; max-width: 330px; }
.sub--var   { left: 48px;  top: 118px; max-width: 420px; }
.sub--audit { left: 48px;  top: 348px; max-width: 620px; }
.sub--final { position: static; max-width: 430px; text-align: center; }

/* ── Слайды 2–3: текст вдоль ленты ── */
.slab {
  position: absolute;
  margin: 0;
  font-size: 27px;
  line-height: 1.18;
  color: var(--ink);
  will-change: transform;
}
.slab em { font-style: normal; color: var(--orange); }
.slab b  { font-weight: inherit; color: var(--red); }

.slab--l   { left: 45px;  top: 74px;  max-width: 270px; }
.slab--r   { right: 46px; bottom: 74px; max-width: 270px; text-align: right; }
.slab--big { left: 45px; top: 122px; max-width: 430px; }

/* ── Прекомп «Слайды» ── */
.stream {
  position: absolute;
  inset: 0;
  z-index: 0;                      /* лента идёт позади блоков и панели */
  will-change: opacity;
}

/* карточка ленты: размер под коридор между косыми блоками (см. CARD_W/H в app.js) */
.card {
  position: absolute;
  left: 0;
  top: 0;
  width: 272px;
  height: 152px;
  margin-left: -136px;
  margin-top: -76px;
  overflow: hidden;
  border-radius: 16px;
  background: #101010;
  box-shadow: 0 10px 22px rgba(0,0,0,.5);
  contain: paint;                  /* перерисовка карточки не трогает соседей */
  will-change: transform;
  backface-visibility: hidden;
}
/* ── Макеты шаблонов внутри карточки (272×152) ── */
.t {
  position: absolute;
  inset: 0;
  padding: 16px;
  font-family: var(--font);
  overflow: hidden;
}
.t__title  { display: block; font-size: 12px; line-height: 1.12; letter-spacing: -.01em; }
.t__kicker { display: block; font-size: 6px; letter-spacing: .14em; text-transform: uppercase; }
.t__foot   { position: absolute; right: 16px; bottom: 13px; font-size: 6px; opacity: .5; }
.t__bar    { display: block; height: 3px; margin-top: 6px; border-radius: 2px; background: currentColor; opacity: .3; }
.w90 { width: 90%; } .w85 { width: 85%; } .w80 { width: 80%; } .w75 { width: 75%; }
.w70 { width: 70%; } .w60 { width: 60%; } .w55 { width: 55%; } .w50 { width: 50%; }

/* 1 — тёмный титул */
.t--hero { background: #0c0c0e; color: #fff; }
.t--hero .t__kicker { color: var(--orange); }
.t--hero .t__title { margin-top: 12px; font-size: 21px; line-height: 1.04; }
.t__rule { position: absolute; left: 16px; bottom: 26px; width: 46px; height: 3px; background: var(--orange); }

/* 2 — светлый отчёт с графиком */
.t--report { background: #f4f2ee; color: #14140f; }
.t--report .t__chart {
  position: absolute; left: 16px; bottom: 14px;
  width: 116px; height: 46px; display: flex; align-items: flex-end; gap: 5px;
}
.t--report .t__chart b { flex: 1; height: calc(var(--h) * 100%); background: #14140f; border-radius: 2px 2px 0 0; }
.t--report .t__chart b:last-child { background: var(--orange); }

/* 3 — большая цифра */
.t--metric { background: #0a1018; color: #fff; }
.t__num { display: block; margin-top: 22px; font-size: 40px; line-height: .9; color: var(--orange); }
.t__num small { font-size: 20px; }
.t__label { display: block; margin-top: 8px; font-size: 8px; line-height: 1.35; opacity: .7; }
.t__spark {
  position: absolute; right: 16px; bottom: 16px;
  width: 52px; height: 42px; display: flex; align-items: flex-end; gap: 4px;
}
.t__spark b { flex: 1; height: calc(var(--h) * 100%); background: rgba(255,255,255,.28); border-radius: 2px 2px 0 0; }
.t__spark b:last-child { background: var(--orange); }

/* 4 — две колонки */
.t--cols { background: #ecebe6; color: #14140f; }
.t--cols .t__col { position: absolute; top: 58px; width: 104px; }
.t--cols .t__col:nth-of-type(1) { left: 16px; }
.t--cols .t__col:nth-of-type(2) { left: 140px; }

/* 5 — фото и текст */
.t--photo { background: #f4f2ee; color: #14140f; padding: 0; }
.t__img {
  position: absolute; left: 0; top: 0; bottom: 0; width: 44%;
  background: linear-gradient(150deg, #3a3a3e, #0d0d0f 70%);
}
.t__img::after {
  content: ""; position: absolute; left: 14px; bottom: 14px;
  width: 26px; height: 3px; background: var(--orange);
}
.t__side { position: absolute; left: 48%; right: 16px; top: 20px; }

/* 6 — повестка */
.t--agenda { background: #0c0c0e; color: #fff; }
.t--agenda .t__kicker { color: var(--orange); margin-bottom: 12px; }
.t__row { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.t__row b { font-size: 8px; color: var(--orange); }
.t__row .t__bar { margin-top: 0; }

/* 7 — сравнение */
.t--compare { background: #ecebe6; color: #14140f; }
.t__pair { position: absolute; left: 16px; right: 16px; top: 54px; display: flex; gap: 10px; }
.t__pane { flex: 1; padding: 10px; border: 1px solid rgba(0,0,0,.18); border-radius: 4px; }
.t__pane .t__bar:first-child { margin-top: 0; }
.t__pane.is-on { border-color: var(--orange); background: rgba(221,94,17,.08); }
.t__mark { display: block; width: 18px; height: 6px; margin-top: 8px; border-radius: 2px; background: var(--orange); }

/* 8 — цитата на оранжевом */
.t--quote { background: var(--orange); color: #fff; }
.t__mark2 { display: block; font-size: 32px; line-height: .7; opacity: .55; }
.t__q { display: block; margin-top: 8px; font-size: 12px; line-height: 1.2; }
.t__who { position: absolute; left: 16px; bottom: 15px; font-size: 6.5px; opacity: .75; }

/* ── Кнопки под текстом (координаты композиции, двигаются вместе с текстом) ── */
.btn {
  position: absolute;
  z-index: 50;                       /* над потоком шаблонов */
  padding: 8px 18px;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .01em;
  white-space: nowrap;
  color: #000;
  background: var(--ink);
  border-radius: 999px;
  text-decoration: none;
  pointer-events: auto;
  will-change: transform, opacity, filter;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--orange); color: var(--ink); }
.btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.btn--pick   { left: 45.5px; top: 300px; }               /* под «как основу» */
.btn--export { right: 21.4px; top: 322px; }              /* под «pptx, html, pdf» */

/* ══════════ Слайды по ТЗ ══════════ */
.ui-title {
  position: absolute;
  left: 48px;
  top: 44px;
  margin: 0;
  font-size: 26px;
  line-height: 1.1;
  text-transform: uppercase;
  transform: scaleX(.8);
  transform-origin: 0 0;
  white-space: nowrap;
}
.ui-title em { font-style: normal; color: var(--orange); }

.ui { position: absolute; inset: 0; }   /* без will-change/filter — см. place() в app.js */

/* общая «панель» в стиле квадрата с первого слайда */
.panel-base {
  background: var(--panel);
  border: 3px solid var(--ink);
  border-radius: 16px 0 0 0;
}

/* ── Слайд 4: шаблон и токены ── */
.tpl {
  position: absolute;
  left: 48px;
  top: 150px;
  width: 300px;
  height: 170px;
  padding: 16px 18px;
  overflow: hidden;
  background: var(--panel);
  border: 3px solid var(--ink);
  border-radius: 16px 0 0 0;
}
.tpl__logo { position: absolute; right: 14px; top: 12px; width: 26px; height: 10px; background: var(--orange); border-radius: 2px; }
.tpl__title { font-size: 14px; margin-bottom: 8px; }
.tpl__line { height: 4px; width: 70%; margin-bottom: 5px; background: rgba(255,255,255,.35); border-radius: 2px; }
.tpl__line.short { width: 45%; }
.tpl__chart { position: absolute; left: 18px; bottom: 26px; width: 150px; height: 46px; display: flex; align-items: flex-end; gap: 6px; }
.tpl__chart b { flex: 1; background: var(--ink); border-radius: 2px 2px 0 0; }
.tpl__chart b:nth-child(1) { height: 40%; } .tpl__chart b:nth-child(2) { height: 55%; }
.tpl__chart b:nth-child(3) { height: 45%; } .tpl__chart b:nth-child(4) { height: 80%; background: var(--orange); }
.tpl__chart b:nth-child(5) { height: 100%; }
.tpl__foot { position: absolute; right: 12px; bottom: 8px; font-size: 6.5px; color: rgba(255,255,255,.45); }
.tpl__scan {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: var(--orange);
  box-shadow: 0 0 14px 3px rgba(190,97,18,.7);
}

.tokens { position: absolute; left: 400px; top: 118px; width: 310px; }
.tokens__head { font-size: 8px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 10px; }
.tok {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 9px;
  padding: 8px 12px;
  font-size: 8.5px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.035) 50%, rgba(255,255,255,.02) 100%);
  -webkit-backdrop-filter: blur(4px) saturate(150%);   /* лёгкое преломление, а не матовое стекло */
  backdrop-filter: blur(4px) saturate(150%);
  border: 0.5px solid rgba(255,255,255,.28);
  border-radius: 13px;
  box-shadow:
    inset 0 0.5px 0 rgba(255,255,255,.45),       /* тонкая световая кромка сверху */
    inset 0 -0.5px 0 rgba(255,255,255,.05),
    0 8px 22px rgba(0,0,0,.35);
  will-change: transform, opacity;
}
.tok span { width: 58px; flex: none; font-size: 7px; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); }
.tok b { color: var(--ink); }
.sw  { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(255,255,255,.35); }
.lay { display: inline-block; width: 18px; height: 11px; border: 1px solid rgba(255,255,255,.7); border-radius: 1px; position: relative; }
.lay::before, .lay::after { content: ""; position: absolute; background: rgba(255,255,255,.6); }
.lay--a::before { left: 2px; top: 2px; width: 8px; height: 2px; }
.lay--a::after  { left: 2px; top: 5px; width: 12px; height: 4px; }
.lay--b::before { left: 2px; top: 2px; width: 6px; height: 7px; }
.lay--b::after  { left: 10px; top: 2px; width: 6px; height: 7px; }
.lay--c::before { left: 2px; top: 3px; width: 14px; height: 2px; }
.lay--c::after  { left: 5px; top: 6px; width: 8px; height: 2px; }
.lay--d::before { left: 2px; top: 2px; width: 14px; height: 7px; }
.lay--d::after  { display: none; }

/* ── Слайд 5: бриф → структура → колода ── */
.prompt {
  position: absolute;
  left: 48px;
  top: 160px;
  width: 300px;
  min-height: 74px;
  padding: 26px 16px 14px;
  background: var(--panel);
  border: 3px solid var(--ink);
  border-radius: 16px 0 0 0;
  font-size: 10px;
  line-height: 1.45;
  white-space: normal;
}
.prompt__label { position: absolute; left: 16px; top: 9px; font-size: 7px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.prompt__caret { display: inline-block; width: 2px; height: 11px; margin-left: 2px; vertical-align: -1px; background: var(--orange); animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.outline { position: absolute; left: 420px; top: 52px; width: 190px; }
.outline__head { font-size: 8px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 8px; }
.outline__row { display: flex; gap: 8px; align-items: baseline; margin-bottom: 4px; font-size: 10px; will-change: transform, opacity; }
.outline__row b { font-size: 7px; color: var(--orange); }
.outline__more { font-size: 7.5px; color: rgba(255,255,255,.4); }

.deck { position: absolute; left: 0; top: 0; }
.mini {
  position: absolute;
  left: 0; top: 0;
  width: 150px;
  height: 85px;
  margin: -42px 0 0 -75px;
  padding: 9px 11px;
  background: #0d0d0d;
  border: 1.5px solid rgba(255,255,255,.6);
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(0,0,0,.7);
  will-change: transform, opacity;
}
.mini > i, .mini b { display: block; }
.mini .mini__bars { display: flex; }
.mini__t   { height: 8px; width: 62%; margin-bottom: 7px; background: var(--ink); border-radius: 2px; }
.mini__l   { height: 4px; width: 88%; margin-bottom: 5px; background: rgba(255,255,255,.35); border-radius: 2px; }
.mini__l.short { width: 55%; }
.mini__box { position: absolute; right: 11px; bottom: 9px; width: 40px; height: 26px; background: var(--orange); border-radius: 3px; }
.mini__box.big { position: static; width: 100%; height: 30px; margin-bottom: 7px; }
.mini--e .mini__box { position: static; display: inline-block; width: 36px; height: 34px; margin-right: 5px; }
.mini--e .mini__box:nth-child(3) { background: rgba(255,255,255,.25); }
.mini--e .mini__box:nth-child(4) { background: var(--red); }
.mini__bars { position: absolute; left: 11px; right: 11px; bottom: 9px; height: 38px; display: flex; align-items: flex-end; gap: 5px; }
.mini__bars b { flex: 1; background: var(--orange); border-radius: 2px 2px 0 0; }
.mini__bars b:nth-child(1) { height: 40%; } .mini__bars b:nth-child(2) { height: 65%; background: rgba(255,255,255,.35); }
.mini__bars b:nth-child(3) { height: 50%; } .mini__bars b:nth-child(4) { height: 100%; }
.mini__num { position: absolute; right: 11px; bottom: 5px; font-size: 22px; font-style: normal; color: var(--orange); }

/* ── Слайд 6: три варианта ── */
.variants { position: absolute; left: 0; top: 0; }
.variant { position: absolute; left: 0; top: 0; width: 200px; margin-left: -100px; text-align: center; will-change: transform, opacity; }
.variant__name { display: block; margin-top: 8px; font-size: 8px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.vslide {
  position: relative;
  width: 200px;
  height: 112px;
  padding: 11px 13px;
  text-align: left;
  background: var(--panel);
  border: 2px solid var(--ink);
  border-radius: 8px 0 0 0;
  overflow: hidden;
}
.vslide > i, .vslide b { display: block; }
.vslide .v-chart { display: flex; }
.v-t { height: 8px; width: 60%; margin-bottom: 7px; background: var(--ink); border-radius: 2px; }
.v-l { height: 3.5px; width: 90%; margin-bottom: 4px; background: rgba(255,255,255,.35); border-radius: 2px; }
.v-l.short { width: 60%; }
.v-chart { position: absolute; display: flex; align-items: flex-end; gap: 4px; }
.v-chart b { flex: 1; background: var(--ink); border-radius: 2px 2px 0 0; }
.v-chart b:nth-child(1) { height: 40%; } .v-chart b:nth-child(2) { height: 60%; }
.v-chart b:nth-child(3) { height: 50%; } .v-chart b:nth-child(4) { height: 100%; background: var(--orange); }
.vslide--dense .v-chart { left: 13px; bottom: 10px; width: 80px; height: 34px; }
.v-tbl { position: absolute; right: 13px; bottom: 10px; width: 70px; height: 34px; background: repeating-linear-gradient(0deg, rgba(255,255,255,.3) 0 1px, transparent 1px 8px); border: 1px solid rgba(255,255,255,.3); }
.vslide--balanced .v-chart { left: 13px; right: 13px; bottom: 10px; height: 50px; }
.vslide--visual .v-chart { left: 13px; bottom: 10px; width: 84px; height: 66px; }
.v-num { position: absolute; right: 13px; bottom: 12px; font-size: 18px; font-style: normal; color: var(--orange); }
.variants__frame {
  position: absolute;
  left: 0; top: 0;
  width: 212px;
  height: 124px;
  margin: -6px 0 0 -106px;
  border: 2px solid var(--orange);
  border-radius: 10px 0 0 0;
  box-shadow: 0 0 20px rgba(190,97,18,.35);
  will-change: transform, opacity;
}
.variants__frame span { position: absolute; right: -2px; top: -12px; padding: 2px 7px; font-size: 6.5px; letter-spacing: .08em; text-transform: uppercase; color: #000; background: var(--orange); border-radius: 3px; }

/* ── Слайд 7: аудит ── */
.audit {
  position: absolute;
  left: 48px;
  top: 150px;
  width: 330px;
  height: 186px;
  padding: 14px 18px;
  background: var(--panel);
  border: 3px solid var(--ink);
  border-radius: 16px 0 0 0;
}
.audit__title { font-size: 13px; margin-bottom: 8px; }
.audit__text {
  position: absolute;
  left: 18px; top: 44px;
  width: 150px;
  height: 46px;
  font-size: 7.5px;
  line-height: 1.4;
  white-space: normal;
  color: rgba(255,255,255,.85);
  transition: font-size .5s;
}
.audit.is-fix0 .audit__text { font-size: 5.6px; }
.audit__list { position: absolute; left: 18px; bottom: 16px; width: 150px; margin: 0; padding: 0; list-style: none; }
.audit__list li { height: 3.5px; width: 100%; margin-bottom: 4px; background: rgba(255,255,255,.35); border-radius: 2px; transition: opacity .4s, height .4s, margin .4s; }
.audit__list li::before { content: ""; }
.audit.is-fix1 .audit__list li:nth-child(n+6) { height: 0; margin: 0; opacity: 0; }
.audit__box { position: absolute; right: 18px; top: 44px; width: 110px; height: 100px; background: #7c3aed; border-radius: 4px; transition: background .5s; }
.audit.is-fix2 .audit__box { background: var(--orange); }
.audit__foot { position: absolute; right: 12px; bottom: 6px; font-size: 6.5px; color: rgba(255,255,255,.4); }

.hl {
  position: absolute;
  border: 1.5px dashed var(--red);
  border-radius: 3px;
  will-change: opacity, transform;
  transition: border-color .4s;
}
.hl span { position: absolute; left: -2px; bottom: 100%; margin-bottom: 3px; padding: 2px 5px; font-size: 6px; white-space: nowrap; color: #fff; background: var(--red); border-radius: 2px; transition: background .4s; }
.hl.is-ok { border-color: #3fbf6a; }
.hl.is-ok span { background: #3fbf6a; color: #000; }
.hl--text { left: 14px; top: 40px; width: 160px; height: 56px; }
.hl--list { left: 14px; bottom: 12px; width: 160px; height: 56px; }
.hl--box  { right: 14px; top: 40px; width: 118px; height: 108px; }

.checks { position: absolute; left: 400px; top: 118px; width: 310px; }
.checks__head { font-size: 8px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 10px; }
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding: 8px 12px;
  font-size: 8.5px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.035) 50%, rgba(255,255,255,.02) 100%);
  -webkit-backdrop-filter: blur(4px) saturate(150%);   /* лёгкое преломление, а не матовое стекло */
  backdrop-filter: blur(4px) saturate(150%);
  border: 0.5px solid rgba(255,255,255,.28);
  border-radius: 13px;
  box-shadow:
    inset 0 0.5px 0 rgba(255,255,255,.45),       /* тонкая световая кромка сверху */
    inset 0 -0.5px 0 rgba(255,255,255,.05),
    0 8px 22px rgba(0,0,0,.35);
  will-change: transform, opacity;
}
.check span { display: flex; flex-direction: column; gap: 2px; }
.check em { font-style: normal; font-size: 6px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.check__box { position: relative; flex: none; width: 13px; height: 13px; border: 1.5px solid var(--ink); border-radius: 3px; transition: background .3s; }
.check__box::after { content: ""; position: absolute; left: 3px; top: 0.5px; width: 4px; height: 7px; border: solid #000; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .25s; }
.check.is-on .check__box { background: var(--orange); border-color: var(--orange); }
.check.is-on .check__box::after { transform: rotate(45deg) scale(1); }
.check--ok { opacity: .55; }
.check--ok .check__box { border-color: #3fbf6a; background: #3fbf6a; }
.check--ok .check__box::after { transform: rotate(45deg) scale(1); }

/* ── Слайд 6: воронка + бейдж ── */
.final {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4vh;
  will-change: transform, opacity;
}
.final__kicker {
  margin: 0;
  font-size: clamp(14px, 1.6vw, 26px);
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  transform: scaleX(.8);
}
.badge {
  position: relative;
  width: clamp(180px, 26vmin, 300px);
  height: clamp(180px, 26vmin, 300px);
  display: block;
  color: var(--ink);
  text-decoration: none;
  pointer-events: auto;
  border-radius: 50%;
}
.badge__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 14s linear infinite;
}
.badge:hover .badge__ring { animation-duration: 4s; }
@keyframes spin { to { transform: rotate(360deg); } }
.badge__text {
  font-family: var(--font);
  font-size: 14px;
  letter-spacing: .05em;
  text-transform: uppercase;
  fill: var(--ink);
}
.badge__core {
  position: absolute;
  left: 50%; top: 50%;
  width: 46%;
  height: 46%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  background: var(--ink);
  border-radius: 50%;
  transition: background .25s, color .25s, transform .25s;
}
.badge:hover .badge__core { background: var(--orange); color: var(--ink); transform: translate(-50%, -50%) scale(1.08); }
.badge:focus-visible { outline: 3px solid var(--orange); outline-offset: 6px; }

/* ── Навигация ── */
.dots {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: auto;
}
.dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1.5px solid rgba(255,255,255,.55);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background .25s, transform .25s, border-color .25s;
}
.dots button:hover { border-color: var(--ink); }
.dots button.is-active { background: var(--ink); border-color: var(--ink); transform: scale(1.25); }
.dots button:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.hint {
  position: absolute;
  left: 50%;
  bottom: 3vh;
  transform: translateX(-50%);
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--orange);
  cursor: pointer;
  pointer-events: auto;
}
.hint svg { animation: hint-bob 1.6s ease-in-out infinite; }
@keyframes hint-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}

@media (prefers-reduced-motion: reduce) {
  .hint svg, .badge__ring { animation: none; }
}

/* ── Liquid glass: блик и преломление на стеклянных панелях ── */
.tok::before, .check::before {
  content: "";
  position: absolute;
  left: -30%;
  top: -120%;
  width: 70%;
  height: 300%;
  background: linear-gradient(115deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.16) 45%, rgba(255,255,255,0) 60%);
  transform: rotate(8deg);
  pointer-events: none;
  animation: sheen 6s ease-in-out infinite;
}
.check::before { animation-delay: -2.5s; }
@keyframes sheen {
  0%, 60% { left: -40%; }
  100%    { left: 130%; }
}
.tok::after, .check::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 90% at 8% 0%, rgba(255,255,255,.12), rgba(255,255,255,0) 55%);
  pointer-events: none;
}
.tok > *, .check > * { position: relative; z-index: 1; }
.tokens__head, .checks__head { color: rgba(255,255,255,.6); }
.check__box {
  background: rgba(255,255,255,.08);
  border-width: 1px;
  border-color: rgba(255,255,255,.6);
  box-shadow: inset 0 0.5px 0 rgba(255,255,255,.4);
}
.check--ok { opacity: .7; }
@media (prefers-reduced-motion: reduce) {
  .tok::before, .check::before { animation: none; }
}
