/* ═══════════════════════════════════════════════
   XXX Digest 03.08 — 14.08
   Тема: светлая нейтральная. Бумага, тёмный текст, янтарные акценты.
   Прежняя тема «школьная доска» с рисовалкой сохранена в ../theme-1-sentyabrya/.
   Standalone CSS — не использует ../style.css
   ═══════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* фон и поверхности */
  --slate: #F6F4EF;           /* бумага */
  --slate-2: #EBE7DE;         /* фон поглубже */
  --slate-3: #FFFFFF;         /* карточка */

  /* текст: имена оставлены прежними, чтобы не переписывать весь файл */
  --chalk: #23201C;           /* основной текст */
  --chalk-dim: rgba(35, 32, 28, 0.72);
  --chalk-faint: rgba(35, 32, 28, 0.45);
  --chalk-line: rgba(35, 32, 28, 0.16);
  --chalk-2: rgba(35, 32, 28, 0.42);

  --yellow: #9C6B0E;          /* янтарный акцент, читаемый на светлом */
  --marker: rgba(242, 208, 107, 0.55);   /* жёлтый маркер поверх бумаги */
  --drinkit: #0066FF;         /* Дринкит — синий */

  --board: #22362C;           /* доска осталась только в блоке про 1 сентября */
  --wood: #8B5E34;
  --wood-dark: #6A4524;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max: 1060px;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --hand: 'Caveat', 'Comic Sans MS', cursive;   /* только хиро, флейвор-строки и «67» */
  --face: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='12'%3E%3Cpath d='M0 7 Q30 2 60 7 T120 7 T180 7 T240 7' fill='none' stroke='%2323201C' stroke-width='2' stroke-linecap='round' opacity='0.8'/%3E%3C/svg%3E");
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--face);
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--chalk);
  /* только тайл-шум: фиксированные градиенты перерисовывались на каждый скролл */
  background-color: var(--slate);
  background-image: var(--noise);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
.lnk { color: var(--yellow); font-weight: 500; text-decoration: none; border-bottom: 1px solid rgba(156, 107, 14, 0.45); }
.lnk:hover { border-bottom-style: solid; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ═══════════ ХИРО ═══════════ */
.hero {
  position: relative; z-index: 1;
  min-height: min(78vh, 720px);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(60px, 9vw, 110px) 24px clamp(40px, 6vw, 64px);
  overflow: hidden;
}
.hero-inner { position: relative; max-width: var(--max); margin: 0 auto; width: 100%; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1.6px;
  color: var(--yellow); font-weight: 500;
  padding: 7px 14px; border-radius: 100px;
  border: 1.5px solid rgba(156, 107, 14, 0.35);
}
/* единственная рукописная строка на странице — сам заголовок */
.hero h1 {
  margin-top: 22px;
  font-family: var(--hand); font-weight: 700;
  font-size: clamp(52px, 10vw, 118px); line-height: 0.92; letter-spacing: -0.01em;
}
.hero h1 .accent { color: var(--yellow); }
.hero-lead {
  margin-top: 18px; max-width: 660px;
  font-size: clamp(16.5px, 1.9vw, 19.5px); line-height: 1.5; color: var(--chalk-dim);
}

.hero-foot {
  margin-top: clamp(26px, 4vw, 44px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px 30px;
  border-top: 2px dashed var(--chalk-line); padding-top: 20px;
}
.hf-k { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--chalk-faint); }
.hf-v { margin-top: 6px; font-size: 15px; font-weight: 500; color: var(--chalk); }

.hero-hint {
  margin-top: clamp(22px, 3vw, 34px);
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--chalk-faint);
}
.hero-hint svg { width: 42px; height: 20px; flex-shrink: 0; }
.hero-hint a { color: var(--yellow); font-weight: 500; text-decoration: none; border-bottom: 1px solid rgba(156, 107, 14, 0.45); }

/* ═══════════ СЕКЦИИ ═══════════ */
.story { position: relative; padding: clamp(46px, 7vw, 88px) 24px; }
.story::before {
  content: ''; display: block;
  max-width: var(--max); margin: 0 auto clamp(30px, 5vw, 56px);
  height: 12px; background-image: var(--wave); background-repeat: repeat-x; opacity: .3;
}
.story-inner { max-width: var(--max); margin: 0 auto; }

.eyebrow {
  display: inline-block; margin-bottom: 12px;
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--yellow); font-weight: 500;
  padding: 5px 11px; border: 1.5px solid rgba(156, 107, 14, 0.32); border-radius: 8px;
}
.tale-line { font-family: var(--hand); font-size: clamp(20px, 2.8vw, 28px); color: var(--chalk-2); margin-bottom: 8px; }
.headline {
  font-weight: 800;
  font-size: clamp(27px, 4.2vw, 44px); line-height: 1.08; letter-spacing: -0.025em;
}
.lede { margin-top: 14px; font-size: clamp(15.5px, 1.9vw, 17.5px); color: var(--chalk-dim); max-width: 620px; }
.lede strong, .wc-text p strong { color: var(--chalk); font-weight: 600; border-bottom: 2px solid var(--marker); }
.section-gap { margin-top: 34px; }

/* ── Широкая карточка: текст + медиа ── */
.wide-card { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(22px, 4vw, 46px); align-items: start; }
.wide-card.flip { grid-template-columns: 1.05fr 0.95fr; }
.wide-card.flip .wc-media { order: -1; }
.wc-text p { margin-top: 11px; font-size: 15.5px; color: var(--chalk-dim); }

/* спойлеры */
.spoiler { margin-top: 16px; border-top: 1px dashed var(--chalk-line); padding-top: 12px; }
.spoiler summary {
  cursor: pointer; list-style: none;
  font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .9px;
  color: var(--yellow);
}
.spoiler summary::-webkit-details-marker { display: none; }
.spoiler summary::after { content: ' ▾'; }
.spoiler[open] summary::after { content: ' ▴'; }
.spoiler p, .spoiler li { margin-top: 9px; font-size: 14.5px; color: var(--chalk-dim); }
.spoiler ul { margin-top: 6px; padding-left: 18px; }
.spoiler b { color: var(--chalk); font-weight: 600; }

/* ── Медиа ── */
.wc-media { display: flex; flex-direction: column; gap: 14px; }

/* фото приклеено к доске скотчем */
figure.shot {
  position: relative; z-index: 61; margin: 0; padding: 11px 11px 6px;
  background: #FFFFFF; border-radius: 4px;
  box-shadow: 0 14px 30px -18px rgba(35, 32, 28, 0.35);
  transform: rotate(-1.1deg);
}
figure.shot::before, figure.shot::after {
  content: ''; position: absolute; width: 78px; height: 24px;
  background: rgba(242, 208, 107, 0.6); border-left: 1px dashed rgba(0, 0, 0, 0.12); border-right: 1px dashed rgba(0, 0, 0, 0.12);
}
figure.shot::before { top: -11px; left: -18px; transform: rotate(-24deg); }
figure.shot::after { top: -11px; right: -18px; transform: rotate(21deg); }
figure.shot img { width: 100%; height: auto; max-height: 440px; object-fit: contain; display: block; cursor: zoom-in; }
figure.shot video { width: 100%; height: auto; max-height: 440px; object-fit: contain; display: block; border-radius: 2px; }
.chart-stack { display: flex; flex-direction: column; gap: 20px; width: 100%; }
.chart-stack figure.shot { margin: 0; }
.chart-stack figure.shot:nth-child(even) { transform: rotate(1deg); }
figure.shot figcaption { font-size: 12.5px; color: #4A4032; padding: 8px 4px 3px; text-align: center; }

/* слот под медиа, которое ещё не сняли */
.slot {
  border: 2px dashed var(--chalk-line); border-radius: var(--radius-md);
  background: rgba(35, 32, 28, 0.035);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 8px; padding: 26px 22px;
  min-height: clamp(190px, 26vw, 280px);
  color: var(--chalk-faint);
}
.slot .slot-ico { font-size: 28px; line-height: 1; filter: grayscale(.25); }
.slot .slot-t { color: var(--chalk-dim); font-size: 14.5px; max-width: 320px; }
.slot .slot-src { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .7px; }
.slot.tall { min-height: clamp(240px, 32vw, 360px); }

/* ── Слайдер с видео (портретные записи с киоска) ── */
/* z-index выше слоя мела: «67» с фона не пачкают видео и скрины */
.vslider { position: relative; z-index: 61; width: 100%; max-width: 320px; margin: 0 auto; }
.vs-window { overflow: hidden; border-radius: var(--radius-md); border: 2px dashed var(--chalk-line); background: var(--slate-2); }
.vs-track { display: flex; transition: transform .45s cubic-bezier(.3,.8,.2,1); }
.vs-slide { flex: 0 0 100%; position: relative; }
.vs-stage {
  position: relative; width: 100%; aspect-ratio: 540 / 962;
  display: flex; align-items: center; justify-content: center;
  background: var(--slate-2);
}
.vs-stage video { width: 100%; height: 100%; object-fit: contain; display: block; opacity: 0; transition: opacity .3s; }
.vs-slide.has-file .vs-stage video { opacity: 1; }
.vs-slide.has-file .vs-fallback { display: none; }
.vs-fallback {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 26px 22px; text-align: center; color: var(--chalk-faint);
}
.vs-fallback .slot-ico { font-size: 28px; }
.vs-fallback .slot-t { color: var(--chalk-dim); font-size: 14.5px; max-width: 320px; }
.vs-fallback .slot-src { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .7px; }
.vs-cap {
  display: flex; align-items: center; flex-wrap: wrap; gap: 7px 9px;
  padding: 11px 14px; font-size: 14px; color: var(--chalk-dim);
  border-top: 1px dashed var(--chalk-line); background: rgba(35, 32, 28, 0.045);
}
.vs-cap .vs-tag {
  flex-shrink: 0; padding: 3px 9px; border-radius: 100px;
  font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .8px;
  color: var(--yellow); border: 1.5px solid rgba(156, 107, 14, 0.32);
}
.vs-nav {
  position: absolute; top: calc(50% - 26px); transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  font: 400 26px/1 var(--face); color: var(--chalk);
  background: rgba(255, 255, 255, 0.92); border: 1.5px solid var(--chalk-line);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
}
.vs-nav:hover { background: #FFFFFF; border-color: var(--chalk); }
.vs-nav.prev { left: -14px; }
.vs-nav.next { right: -14px; }
.vs-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.vs-dot {
  width: 11px; height: 11px; border-radius: 50%; cursor: pointer;
  background: none; border: 1.5px solid var(--chalk-faint); padding: 0;
}
.vs-dot.is-on { background: var(--chalk); border-color: var(--chalk); }

/* тултипы */
.tip { border-bottom: 1.5px dotted var(--chalk-faint); cursor: help; position: relative; }
.tip::after {
  content: attr(data-tip);
  position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%) translateY(6px);
  width: max-content; max-width: 290px;
  background: #23201C; color: #F6F4EF; font-family: var(--face);
  font-size: 13px; line-height: 1.45; letter-spacing: 0; text-transform: none;
  padding: 11px 13px; border-radius: 12px; border: 1px solid var(--chalk-line);
  opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; z-index: 70;
  box-shadow: 0 14px 34px -14px rgba(35, 32, 28, 0.45);
}
.tip:hover::after, .tip:focus::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* статы */
.stats { display: flex; flex-wrap: wrap; gap: 22px 44px; margin-top: 22px; }
.stat .stat-num { font-weight: 800; font-size: clamp(36px, 5.2vw, 58px); line-height: 1; letter-spacing: -0.03em; }
.stat .stat-num.gold { color: var(--yellow); }
.stat .stat-cap { margin-top: 8px; font-size: 14px; color: var(--chalk-dim); max-width: 250px; }

.readiness { margin-top: 18px; max-width: 460px; }
.readiness-bar { height: 16px; border-radius: 100px; border: 1.5px dashed var(--chalk-line); overflow: hidden; }
.readiness-fill {
  height: 100%; width: 72%;
  background: repeating-linear-gradient(115deg, rgba(242, 208, 107, .85) 0 3px, rgba(242, 208, 107, .28) 3px 8px);
}
.readiness-legend { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--chalk-faint); margin-top: 7px; }

/* ═══════════ АНОНС 1 СЕНТЯБРЯ — компактная полоса ═══════════ */
/* Единственная доска, которая осталась на светлой странице: блок буквально
   про то, что финальный экран станет доской, поэтому он и выглядит доской. */
.board-section {
  position: relative; z-index: 1;
  margin: clamp(30px, 5vw, 56px) auto;
  max-width: var(--max);
  padding: clamp(34px, 5vw, 62px) clamp(22px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--board);
  border: 10px solid var(--wood);
  box-shadow: 0 18px 40px -24px rgba(35, 32, 28, .5), inset 0 0 60px rgba(0, 0, 0, .25);
  color: #F4F1E4;
}
.board-section .lede { color: rgba(244, 241, 228, .78); }
.board-section .lede strong { color: #F4F1E4; border-bottom-color: rgba(242, 208, 107, .7); }
.board-section .eyebrow { color: #F2D06B; border-color: rgba(242, 208, 107, .5); }
.board-section { overflow: hidden; }
#sixty-seven { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.board-head { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; }
.board-head .lede { max-width: 720px; }
.board-section .spoiler { max-width: 720px; border-top-color: rgba(244, 241, 228, .28); }
.board-section .spoiler summary { color: #F2D06B; }
.board-section .spoiler p, .board-section .spoiler li { color: rgba(244, 241, 228, .74); }
.board-section .spoiler b { color: #F4F1E4; }

/* ── Мини-карточки ── */
.mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.mini { border: 1.5px dashed var(--chalk-line); border-radius: var(--radius-sm); padding: 15px 16px; background: var(--slate-3); }
.mini:nth-child(odd) { transform: rotate(-.35deg); }
.mini:nth-child(even) { transform: rotate(.4deg); }
.mini h4 { font-size: 15.5px; font-weight: 700; margin: 6px 0 4px; }
.mini p { font-size: 14px; color: var(--chalk-dim); }
.done-mark, .work-mark, .wait-mark { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .6px; }
.done-mark { color: var(--chalk-dim); }
.work-mark { color: var(--yellow); }
.wait-mark { color: var(--chalk-2); }

/* ── Входящие ── */
.inbox-list { list-style: none; display: flex; flex-direction: column; margin-top: 8px; }
.inbox-list li { display: grid; grid-template-columns: 1fr auto; gap: 5px 18px; align-items: center; padding: 14px 4px; border-bottom: 1px dashed var(--chalk-line); }
.inbox-what { font-size: 15.5px; font-weight: 600; }
.inbox-fix { grid-column: 1 / 2; font-size: 14px; color: var(--chalk-dim); }
.inbox-status { grid-row: 1 / 2; grid-column: 2 / 3; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .6px; padding: 5px 10px; border-radius: 100px; white-space: nowrap; border: 1px solid currentColor; }
.st-done { color: var(--chalk-dim); }
.st-work { color: var(--yellow); }

/* лайтбокс */
.lightbox { position: fixed; inset: 0; z-index: 130; background: rgba(12, 20, 16, .93); display: none; align-items: center; justify-content: center; padding: 4vmin; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 96%; max-height: 96%; border-radius: 8px; }
.lightbox-close { position: absolute; top: 16px; right: 22px; font: 400 34px/1 var(--face); color: #F6F4EF; background: none; border: none; cursor: pointer; }

/* футер */
footer {
  position: relative; z-index: 1;
  text-align: center; padding: 54px 24px clamp(96px, 12vw, 128px);
  color: var(--chalk-faint); font-size: 14px;
  border-top: 2px dashed var(--chalk-line);
}
footer .tale-end { font-family: var(--hand); font-size: 24px; color: var(--chalk-2); margin-bottom: 12px; }
footer a { color: var(--yellow); text-decoration: none; border-bottom: 1px solid rgba(156, 107, 14, .45); }
footer a:hover { border-bottom-style: solid; }

/* ── Адаптив ── */
@media (max-width: 860px) {
  .wide-card, .wide-card.flip { grid-template-columns: 1fr; }
  .wide-card.flip .wc-media { order: 0; }
  .hero { min-height: auto; padding-top: clamp(56px, 14vw, 90px); }
}
