/* Дизайн-система Юли — версия 1.0 (01.12.2026)
   По мотивам стиля кэш'ю: чёрный фон, жёлтый акцент, белый текст, крупный узкий заголовок.
   Логотип и название кэш'ю НЕ используются — только визуальный язык. */

@font-face { font-family: "Bebas Neue J"; src: url("fonts/BebasNeue-Bold.ttf") format("truetype"); font-weight: 700; }
@font-face { font-family: "Bebas Neue J"; src: url("fonts/BebasNeue-Regular.ttf") format("truetype"); font-weight: 400; }
@font-face { font-family: "Inter Tight J"; src: url("fonts/InterTight.ttf") format("truetype"); font-weight: 100 900; }

:root {
  --bg: #000000;
  --panel: #111111;
  --panel-2: #1c1c1c;
  --line: #2e2e2e;
  --yellow: #F7FB4B;
  --white: #FFFFFF;
  --muted: #9A9A9A;
  --soft: #DCDCDC;
  --red: #FF4D4D;
  --green: #3DDC84;
  --head: "Bebas Neue J", "Bebas Neue", "Arial Narrow", sans-serif;
  --body: "Inter Tight J", "Inter Tight", Inter, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Слайд ---------- */
.slide {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9; width: 100%;
  background: var(--bg); color: var(--white);
  font-family: var(--body);
  container-type: inline-size;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 5cqw 7cqw; box-sizing: border-box; text-align: center;
}
.slide.square { aspect-ratio: 1 / 1; padding: 8cqw; }
.slide.story  { aspect-ratio: 9 / 16; padding: 10cqw 8cqw; }
.slide.yellow { background: var(--yellow); color: #000; }
.slide.left { align-items: flex-start; text-align: left; }
.slide *, .slide *::before, .slide *::after { box-sizing: border-box; }

/* Логотип-подпись в шапке слайда */
.brand {
  position: absolute; top: 3.6cqw; left: 0; right: 0;
  display: flex; align-items: center; justify-content: center; gap: .8cqw;
  font-family: var(--body); font-weight: 700; font-size: 1.8cqw; letter-spacing: .02em;
  color: var(--yellow); white-space: nowrap;
}
.brand svg { width: 2.8cqw; height: 2.8cqw; }
.slide.yellow .brand { color: #000; }
.slide.square .brand { font-size: 3.4cqw; top: 6cqw; }
.slide.square .brand svg { width: 5cqw; height: 5cqw; }

/* Надзаголовок: маленькие разреженные капслоком */
.eyebrow {
  font-family: var(--body); font-weight: 700; text-transform: uppercase;
  letter-spacing: .22em; font-size: 1.5cqw; color: var(--muted); margin-bottom: 1.6cqw;
}
.square .eyebrow { font-size: 2.6cqw; }

/* Заголовки */
.h-mega, .h1, .h2, .h3 { font-family: var(--head); font-weight: 700; text-transform: uppercase; line-height: .95; margin: 0; letter-spacing: .005em; }
.h-mega { font-size: 17cqw; line-height: .85; }
.h1 { font-size: 9cqw; }
.h2 { font-size: 6.4cqw; }
.h3 { font-size: 2.6cqw; }
.square .h1 { font-size: 14cqw; }
.square .h2 { font-size: 11cqw; }
.y { color: var(--yellow); }
.slide.yellow .y { color: #000; text-decoration: underline; text-decoration-thickness: .5cqw; text-underline-offset: .8cqw; }

/* Текст */
.lead { font-size: 2.4cqw; font-weight: 500; line-height: 1.35; color: var(--soft); max-width: 66cqw; margin: 2.2cqw auto 0; }
.left .lead { margin-left: 0; }
.small { font-size: 1.4cqw; color: var(--muted); }
.square .lead { font-size: 4cqw; max-width: 80cqw; }
.pl { font-family: var(--body); font-weight: 700; color: var(--yellow); }

/* Карточки */
.cards { display: flex; gap: 1.6cqw; margin-top: 3.4cqw; width: 100%; justify-content: center; }
.card {
  flex: 1; max-width: 20cqw; border-radius: 1.4cqw; padding: 2.2cqw 1.6cqw;
  background: var(--panel-2); border: .15cqw solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: .8cqw;
}
.card .big { font-family: var(--head); font-weight: 700; font-size: 7cqw; line-height: .9; color: var(--yellow); }
.card .label { font-size: 2cqw; font-weight: 600; color: var(--white); }
.card .hint { font-size: 1.5cqw; color: var(--muted); }
.card.white { background: var(--white); color: #000; border-color: var(--white); }
.card.white .label { color: #000; }
.card.yel { background: var(--yellow); color: #000; border-color: var(--yellow); }
.card.yel .label, .card.yel .big { color: #000; }
.square .cards { gap: 3cqw; margin-top: 6cqw; }
.square .card { max-width: 38cqw; border-radius: 3cqw; padding: 5cqw 3cqw; }
.square .card .label { font-size: 5cqw; }
.square .card .big { font-size: 9cqw; }
.icon { font-size: 3.4cqw; line-height: 1; }
.square .icon { font-size: 9cqw; }

/* Жёлтая «таблетка»-кнопка */
.pill {
  display: inline-block; margin-top: 3cqw; padding: 1.3cqw 3.4cqw; border-radius: 99cqw;
  background: var(--yellow); color: #000; font-family: var(--head); font-weight: 700; font-size: 2.8cqw; letter-spacing: .02em;
}
.slide.yellow .pill { background: #000; color: var(--yellow); }

/* Рукописный овал вокруг вывода */
.oval { position: relative; display: inline-block; padding: 2.4cqw 5cqw; }
.oval svg { position: absolute; inset: -1cqw -2cqw; width: calc(100% + 4cqw); height: calc(100% + 2cqw); overflow: visible; }
.oval svg path { fill: none; stroke: var(--yellow); stroke-width: .45cqw; stroke-linecap: round; }

/* Путь из шагов (В3, версия 2): одна линия слева направо, номера по порядку, без змейки */
.steps { position: relative; width: 100%; margin-top: 5cqw; display: flex; justify-content: space-between; }
.steps::before { content: ""; position: absolute; top: 2.6cqw; left: 6%; right: 6%; border-top: .35cqw dashed var(--yellow); }
.steps .step { position: relative; flex: 1; width: auto; min-width: 0; }
.steps .step .num { box-shadow: 0 0 0 1.2cqw var(--bg); }
.slide.yellow .steps::before { border-color: #000; }
.slide.yellow .steps .step .num { background: #000; color: var(--yellow); box-shadow: 0 0 0 1.2cqw var(--yellow); }
.step { display: flex; flex-direction: column; align-items: center; gap: 1.2cqw; width: 16cqw; }
.step .h { font-size: 1.5cqw; color: var(--muted); line-height: 1.3; }
.step .num {
  width: 5.2cqw; height: 5.2cqw; border-radius: 50%; background: var(--yellow); color: #000;
  display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 3.2cqw;
}
.step .t { font-size: 2.1cqw; font-weight: 600; white-space: nowrap; }

/* Определение */
.def { display: grid; grid-template-columns: auto 1fr; gap: 3cqw; align-items: center; text-align: left; margin-top: 3cqw; max-width: 76cqw; }
.def .term { font-family: var(--head); font-weight: 700; font-size: 10cqw; color: var(--yellow); line-height: .9; }
.def .mean { font-size: 2.8cqw; line-height: 1.35; color: var(--soft); border-left: .3cqw solid var(--yellow); padding-left: 2.4cqw; }

/* Формула */
.formula { display: flex; align-items: center; gap: 2.4cqw; margin-top: 3.6cqw; font-family: var(--head); font-weight: 700; }
.formula .part { font-size: 9cqw; line-height: .9; }
.formula .op { font-size: 6cqw; color: var(--muted); }
.formula .res { font-size: 9cqw; line-height: .9; color: #000; background: var(--yellow); border-radius: 1.4cqw; padding: .8cqw 2.4cqw .2cqw; }
.formula .sound { display: block; font-family: var(--body); font-size: 2cqw; font-weight: 600; color: var(--muted); margin-top: 1cqw; text-align: center; }

/* Трекер прогресса */
.tracker { display: flex; gap: 1.2cqw; margin-top: 4cqw; }
.tracker .dot {
  width: 6.4cqw; height: 6.4cqw; border-radius: 1.2cqw; border: .2cqw solid var(--line);
  display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 3cqw; color: var(--muted);
}
.tracker .dot.done { background: var(--yellow); border-color: var(--yellow); color: #000; }
.tracker .dot.now { border-color: var(--yellow); color: var(--yellow); }

/* Список-задание */
.todo { list-style: none; padding: 0; margin: 3cqw 0 0; text-align: left; display: grid; gap: 1.4cqw; }
.todo li { display: flex; align-items: center; gap: 1.8cqw; font-size: 2.8cqw; font-weight: 600; }
.todo li::before {
  content: ""; flex: none; width: 2.6cqw; height: 2.6cqw; border-radius: .6cqw; border: .3cqw solid var(--yellow);
}

/* Цифра-табло */
.board { display: flex; gap: 1.6cqw; margin-top: 3.4cqw; }
.board .cell { background: var(--panel); border: .15cqw solid var(--line); border-radius: 1.4cqw; padding: 2.4cqw 3cqw; min-width: 18cqw; }
.board .cell .big { font-family: var(--head); font-weight: 700; font-size: 10cqw; line-height: .9; color: var(--yellow); }
.board .cell .label { font-size: 2cqw; font-weight: 600; color: var(--soft); margin-top: .8cqw; }

/* Стрелка от руки */
.arrow path { fill: none; stroke: var(--yellow); stroke-width: .35cqw; stroke-linecap: round; stroke-linejoin: round; }

/* Анимация появления (в HTML-презентациях) */
.anim > * { opacity: 0; transform: translateY(1.6cqw); transition: opacity .6s ease, transform .6s ease; }
.anim.in > * { opacity: 1; transform: none; }
.anim.in > *:nth-child(2) { transition-delay: .12s; }
.anim.in > *:nth-child(3) { transition-delay: .24s; }
.anim.in > *:nth-child(4) { transition-delay: .36s; }
.anim.in > *:nth-child(5) { transition-delay: .48s; }
@media (prefers-reduced-motion: reduce) { .anim > * { opacity: 1; transform: none; transition: none; } }

/* ---------- Конспект (вертикальная страница) ---------- */
.notes { background: var(--bg); color: var(--white); font-family: var(--body); max-width: 760px; margin: 0 auto; padding: 56px 32px; }
.notes .eyebrow { font-size: 13px; margin-bottom: 14px; }
.notes h1 { font-family: var(--head); font-weight: 700; text-transform: uppercase; font-size: 64px; line-height: .95; margin: 0 0 28px; }
.notes h2 { font-family: var(--head); font-weight: 700; text-transform: uppercase; font-size: 40px; line-height: 1; margin: 48px 0 16px; }
.notes p { font-size: 19px; line-height: 1.5; color: var(--soft); margin: 0 0 18px; }
.notes .toc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; }
.notes .toc div { border: 1px solid var(--line); border-radius: 14px; padding: 16px; font-size: 15px; font-weight: 500; }
.notes .toc b { display: block; font-family: var(--head); font-size: 32px; color: var(--yellow); font-weight: 700; margin-bottom: 4px; }
.notes blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--yellow); font-size: 20px; font-weight: 600; color: var(--white); }

/* Метка шага «ШАГ 4» — заметная, но меньше темы (разделители Г1, начало шага урока) */
.step-tag {
  display: inline-block; margin-bottom: 2.2cqw; padding: .7cqw 2.2cqw .3cqw; border-radius: 99cqw;
  border: .3cqw solid var(--yellow); color: var(--yellow);
  font-family: var(--head); font-weight: 700; font-size: 3.6cqw; line-height: 1; letter-spacing: .06em; text-transform: uppercase;
}
.step-tag small { font-family: var(--body); font-size: 1.6cqw; font-weight: 600; letter-spacing: .02em; text-transform: none; color: var(--soft); margin-left: 1cqw; vertical-align: .4cqw; }
.slide.yellow .step-tag { border-color: #000; color: #000; }
.slide.yellow .step-tag small { color: #000; }
