/* ============================================================
   ИИ-Упряжка, вариант C: контрастный плакатный.
   Плакат продаёт, бумага учит.
   Лендинг: красное поле первого экрана и тарифы, дуотон-портрет.
   Кабинет: красная шапка, вывески залов на бумаге в клетку.
   Урок: бумага, красного только кнопка сдачи.
   ============================================================ */

:root {
  --paper: #edeae1;
  --paper-cool: #e9ebe8;
  --cream: #f4efe4;
  --ink: #141414;
  --line: #23282b;
  --line-soft: rgba(35, 40, 43, 0.3);
  --line-faint: rgba(35, 40, 43, 0.12);
  --red: #c8231f;
  --red-deep: #9e1a17;

  --display: "Unbounded", system-ui, sans-serif;
  --text: "Golos Text", system-ui, sans-serif;
  --mono: "PT Mono", ui-monospace, monospace;

  --pad: 6vw;
  --grid: 40px;

  /* два кегля заголовков: первый экран и все остальные */
  --d1: clamp(1.75rem, 4.6vw, 4.25rem);
  --d2: clamp(1.5rem, 3.6vw, 2.75rem);
  --h3: clamp(1.125rem, 1.35vw, 1.375rem);
  --lead: clamp(1rem, 1.3vw, 1.1875rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 400;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
svg { display: block; }
a { color: inherit; }
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { list-style: none; padding: 0; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.poster :focus-visible,
.site-foot :focus-visible,
.cab-foot :focus-visible,
.les-foot :focus-visible { outline-color: var(--cream); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.ico { width: 18px; height: 18px; flex: none; }

/* --- плакатная типографика --- */
.display {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.045em;
  word-spacing: 0.08em;
  /* Две строки и больше: интерлиньяж 0.95–1.0. При 0.86 Ё/Й врезаются в строку выше, у Д хвост
     касается строки ниже. Односрочные плакатные заголовки остаются плотнее (0.9): .cab-head h1, .tariff h3. */
  line-height: 0.95;
  /* переносов внутри слов нет: слово целиком влезает в ширину или уходит на новую строку целиком */
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}
.d1 { font-size: var(--d1); }
.d2 { font-size: var(--d2); }
.mono { font-family: var(--mono); letter-spacing: 0.02em; }

/* --- кнопки --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  padding: 0 clamp(16px, 1.8vw, 28px);
  min-height: 44px;
  transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.btn-ghost {
  color: var(--cream);
  border-color: var(--cream);
  font-size: clamp(12px, 0.95vw, 13px);
}
.btn-ghost:hover { background: var(--cream); color: var(--red); }

.btn-cream {
  background: var(--cream);
  color: var(--red);
  font-size: clamp(14px, 1.25vw, 17px);
  min-height: 56px;
  padding: 0 clamp(20px, 2.4vw, 32px);
}
.btn-cream:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.btn-paper {
  background: var(--cream);
  color: var(--ink);
  font-size: clamp(13px, 1.05vw, 14px);
  min-height: 52px;
  padding: 0 clamp(18px, 2vw, 26px);
}
.btn-paper:hover { background: var(--red); color: var(--cream); border-color: var(--red); }

.btn-red {
  background: var(--red);
  color: var(--cream);
  font-size: 13px;
  min-height: 48px;
  padding: 0 18px;
}
.btn-red:hover { background: var(--red-deep); }

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
  font-size: 12px;
  min-height: 44px;
  padding: 0 16px;
}
.btn-outline:hover { background: var(--ink); color: var(--cream); }

/* ============================================================
   ЛЕНДИНГ
   ============================================================ */

/* --- шапка на красном --- */
.site-head {
  background: var(--red);
  color: var(--cream);
}
.head-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "brand nav cta";
  align-items: center;
  gap: 10px clamp(12px, 2vw, 32px);
  padding: clamp(12px, 1.4vw, 18px) var(--pad);
}
.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(13px, 1.05vw, 15px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav {
  grid-area: nav;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 clamp(10px, 1.6vw, 24px);
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}
.nav a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.head-row .btn-ghost { grid-area: cta; justify-self: end; }

/* --- первый экран: красное поле, портрет с обрезом --- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--red);
  color: var(--cream);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(280px, 31vw, 440px);
  align-items: end;
  gap: clamp(16px, 3vw, 56px);
  padding-left: var(--pad);
  min-height: clamp(480px, 48.5vw, 700px);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(24px, 3.6vw, 44px);
  padding: clamp(22px, 3.4vw, 44px) 0 clamp(24px, 3.6vw, 44px);
  min-width: 0;
}
.hero h1 { margin: 0; }
.hero-sub {
  font-size: clamp(1rem, 1.35vw, 1.3125rem);
  line-height: 1.35;
  max-width: 42ch;
  margin: 0 0 clamp(20px, 2.4vw, 30px);
}
.hero-cta .btn { min-width: 220px; }
.hero-note {
  font-family: var(--mono);
  font-size: clamp(11px, 1vw, 13px);
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin-top: 14px;
}
.hero-art {
  position: relative;
  align-self: end;
  height: clamp(440px, 48.5vw, 700px);
  overflow: hidden;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

/* --- полоса фактов --- */
.facts {
  background: var(--ink);
  color: var(--cream);
  padding: 15px var(--pad);
  font-family: var(--mono);
  font-size: clamp(11px, 0.95vw, 13px);
  line-height: 1.5;
  letter-spacing: 0.04em;
}

/* --- общие секции на бумаге --- */
.sec { padding: clamp(52px, 7vw, 112px) var(--pad); }
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(14px, 3vw, 64px);
  margin-bottom: clamp(28px, 4vw, 52px);
}
.sec-head h2 { margin: 0; }
.sec-lead {
  font-size: var(--lead);
  line-height: 1.45;
  max-width: 52ch;
  margin: 0;
}

/* --- три урока: спокойная бумага, красного только метка времени --- */
.lessons-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 40px);
}
.lesson {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 2px solid var(--line);
}
.lesson-label {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.03em;
  color: var(--line);
}
.lesson h3 {
  font-size: var(--h3);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}
.lesson-desc {
  font-size: 0.9375rem;
  line-height: 1.5;
  max-width: 42ch;
  margin: 0;
}
.lesson-foot {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
}
.lesson-time {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.4;
}
.lesson-state {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
  color: var(--line);
  margin: 0;
}
.honest {
  margin: clamp(26px, 4vw, 44px) 0 0;
  padding-left: 16px;
  border-left: 2px solid var(--line);
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: 78ch;
}

/* --- тарифы: второе красное поле --- */
.tariffs {
  background: var(--red);
  color: var(--cream);
}
.tariffs .sec-head { margin-bottom: clamp(20px, 2.6vw, 32px); }
.window-line {
  margin: 0 0 clamp(26px, 3.4vw, 44px);
  padding-top: 12px;
  border-top: 2px solid var(--cream);
  font-family: var(--mono);
  font-size: clamp(11.5px, 1.05vw, 13.5px);
  line-height: 1.5;
  letter-spacing: 0.02em;
  max-width: 82ch;
}
.tariff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(14px, 1.6vw, 24px);
}
.tariff {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--cream);
  color: var(--ink);
  padding: clamp(20px, 2.2vw, 30px);
}
.tariff h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.25rem, 1.75vw, 1.625rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0;
}
.tariff-price {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.875rem, 2.9vw, 2.625rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0;
}
.tariff-desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.tariff .btn { width: 100%; margin-top: auto; }
.tariff-legal {
  margin: clamp(22px, 3vw, 34px) 0 0;
  font-family: var(--mono);
  font-size: clamp(11.5px, 1vw, 13px);
  line-height: 1.5;
  max-width: 76ch;
}

/* --- кто ведёт: бумага и контурный портрет --- */
.author-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
}
.author-copy,
.author-art { min-width: 0; }
.author-copy h2 {
  margin: 0 0 clamp(20px, 2.8vw, 34px);
}
.author-copy p {
  font-size: clamp(1.0625rem, 1.45vw, 1.375rem);
  line-height: 1.4;
  max-width: 44ch;
  margin: 0;
}
.author-copy .author-facts {
  margin: clamp(22px, 3vw, 32px) 0 0;
  padding-top: 14px;
  border-top: 2px solid var(--line);
  font-family: var(--mono);
  font-size: clamp(11.5px, 1vw, 13px);
  line-height: 1.5;
  letter-spacing: 0.04em;
}
.author-art img {
  width: 100%;
  height: auto;
  max-height: min(42vw, 430px);
  object-fit: contain;
  object-position: center bottom;
  margin-left: auto;
}

/* --- подвал --- */
.site-foot {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(36px, 4.5vw, 60px) var(--pad);
}
.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 20px clamp(20px, 4vw, 48px);
  margin-bottom: clamp(24px, 3.4vw, 40px);
}
.foot-top p {
  font-size: clamp(1rem, 1.3vw, 1.1875rem);
  line-height: 1.4;
  max-width: 34ch;
  margin: 0;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 0 22px;
}
.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  text-decoration: none;
}
.foot-links a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(244, 239, 228, 0.28);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
}

/* ============================================================
   КАБИНЕТ ДЕПО
   ============================================================ */

.cab-head {
  background: var(--red);
  color: var(--cream);
  padding: clamp(16px, 1.8vw, 26px) var(--pad) clamp(20px, 2.4vw, 32px);
}
.cab-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px clamp(20px, 3vw, 40px);
  margin-bottom: clamp(18px, 2.4vw, 28px);
}
.cab-head h1 {
  font-size: clamp(2.25rem, 5.6vw, 4.5rem);
  /* односрочный плакатный заголовок: можно плотнее, но 0.8 резало выносные элементы */
  line-height: 0.9;
  margin: 0;
}
.cab-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px clamp(16px, 2.4vw, 32px);
  font-family: var(--mono);
  font-size: clamp(11.5px, 1vw, 13px);
  line-height: 1.5;
}
.cab-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.cab-user a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.progress-label {
  margin: 0 0 10px;
  font-size: clamp(0.9375rem, 1.25vw, 1.0625rem);
  font-weight: 500;
  line-height: 1.35;
}
.seg {
  display: flex;
  gap: 6px;
  max-width: 560px;
}
.seg span {
  display: block;
  flex: 1;
  height: 12px;
  background: var(--cream);
}
.seg span.is-empty {
  background: rgba(244, 239, 228, 0.3);
}

/* --- карта залов на бумаге в клетку --- */
.cab-map {
  background-color: var(--paper-cool);
  background-image:
    repeating-linear-gradient(to right, var(--line-faint) 0 1px, transparent 1px var(--grid)),
    repeating-linear-gradient(to bottom, var(--line-faint) 0 1px, transparent 1px var(--grid));
  padding: clamp(38px, 5.5vw, 84px) var(--pad);
}
.cab-map h2 {
  margin: 0 0 clamp(24px, 3.4vw, 44px);
  font-size: var(--d2);
}
.map {
  position: relative;
  display: grid;
  gap: clamp(24px, 3vw, 40px);
  padding-left: clamp(26px, 3vw, 40px);
}
.map::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}
.circle { position: relative; }
.circle::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(26px, 3vw, 40px) + 2px);
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--red);
  border: 2px solid var(--line);
}
.circle.is-locked::before {
  background: var(--paper-cool);
  border-style: dashed;
}
.circle-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--line);
}
.circle.is-locked .circle-head { border-bottom-style: dashed; }
.circle-num {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.4;
  color: var(--line);
}
.circle-head h3 {
  font-size: var(--h3);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}
.circle-state {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.4;
  color: var(--line);
}
.halls {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.hall {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  background: transparent;
  color: rgba(35, 40, 43, 0.72);
  border: 2px dashed var(--line);
  text-decoration: none;
}
.hall.is-done,
a.hall.is-current {
  background: var(--red);
  color: var(--cream);
  border-color: var(--red);
}
.hall-num {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  opacity: 0.85;
}
.hall-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}
.hall .ico { width: 16px; height: 16px; }
.hall.is-current { outline: 3px solid var(--ink); outline-offset: 3px; }
a.hall:hover { background: var(--cream); color: var(--red); border-color: var(--red); }
a.hall:focus-visible { outline-color: var(--ink); }
.map-note {
  margin: clamp(24px, 3.4vw, 40px) 0 0;
  padding-top: 14px;
  border-top: 2px solid var(--line);
  font-family: var(--mono);
  font-size: clamp(11.5px, 1vw, 13px);
  line-height: 1.6;
  max-width: 76ch;
}

/* --- тело кабинета: следующий шаг и работы --- */
.cab-body { padding: 0 var(--pad) clamp(44px, 6vw, 80px); }
.next {
  margin: clamp(32px, 4vw, 52px) 0 clamp(40px, 5vw, 64px);
  padding: clamp(24px, 3.2vw, 40px);
  background: var(--ink);
  color: var(--cream);
}
.next h2 {
  margin: 0 0 clamp(14px, 1.8vw, 22px);
  /* «СЛЕДУЮЩИЙ» 902 px на 100 px (Unbounded 800, ls −0.045em); доступно 100vw − 2·20 px − 2·20 px,
     запас 3 px. Кегль не больше предела по слову, но и не больше штатного --d2. */
  font-size: clamp(1.5rem, 3.6vw, min(2.75rem, calc((100vw - 83px) / 9.02)));
  /* на 320 px «СЛЕДУЮЩИЙ / ШАГ» переносится: у Д хвост, у Й выносной элемент,
     поэтому здесь интерлиньяж 1.0, иначе между строками остаётся меньше 1 px */
  line-height: 1;
}
.next-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px clamp(20px, 3vw, 40px);
}
.next-row p {
  margin: 0;
  font-size: clamp(1rem, 1.3vw, 1.1875rem);
  line-height: 1.35;
  max-width: 44ch;
}
.works h2 {
  margin: 0 0 clamp(18px, 2.6vw, 28px);
  font-size: var(--d2);
}
.works-list { display: grid; }
.work {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px clamp(14px, 2.2vw, 28px);
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
}
.work:first-child { border-top: 2px solid var(--line); }
.work-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
}
.work-mark .ico { width: 20px; height: 20px; }
.work-mark.is-empty { border: 2px solid var(--line); }
.work-name {
  flex: 1 1 260px;
  min-width: 0;
  font-weight: 600;
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  line-height: 1.3;
}
.work-state {
  flex: none;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.4;
  color: var(--line);
}
.work .btn { margin-left: auto; }

.workbench { margin-top: clamp(38px, 5vw, 60px); }
.workbench h2 {
  margin: 0 0 clamp(16px, 2.4vw, 26px);
  font-size: var(--d2);
}
.bench-list {
  display: grid;
  border-top: 2px solid var(--line);
}
.bench-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.bench-row .ico {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}
.bench-row p { margin: 0; flex: 1 1 260px; min-width: 0; }
.bench-row a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-left: auto;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.bench-row a:hover { text-decoration-thickness: 2px; }

.cab-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 16px var(--pad);
  background: var(--ink);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
}
.cab-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ============================================================
   УРОК: полностью бумага
   ============================================================ */

.lesson-head {
  padding: clamp(26px, 3.4vw, 44px) var(--pad) clamp(20px, 2.6vw, 30px);
  border-bottom: 2px solid var(--line);
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0 0 clamp(16px, 2.4vw, 26px);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.02em;
}
.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.crumbs span { color: var(--line); }
.lesson-head h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 20ch;
}
.lesson-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--line);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 2px solid var(--ink);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1;
}

.lesson-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  align-items: start;
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(28px, 3.6vw, 44px) var(--pad) clamp(48px, 6vw, 80px);
}
.lesson-main { min-width: 0; }
.l-block {
  max-width: 76ch;
  margin: 0 0 clamp(28px, 3.6vw, 42px);
}
.l-block--wide { max-width: none; }
.l-block h2 {
  margin: 0 0 12px;
  font-size: var(--h3);
  font-weight: 600;
  line-height: 1.2;
}
.l-goal {
  margin: 0;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.4;
  max-width: 46ch;
}
.l-block p { line-height: 1.6; }

/* плеер */
.player { margin: 0 0 10px; }
.player-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  background: var(--ink);
}
.play {
  display: grid;
  place-items: center;
  width: clamp(58px, 6vw, 80px);
  height: clamp(58px, 6vw, 80px);
  border: 2px solid var(--cream);
}
.play::before {
  content: "";
  margin-left: 4px;
  border-left: clamp(14px, 1.6vw, 19px) solid var(--cream);
  border-top: clamp(9px, 1vw, 12px) solid transparent;
  border-bottom: clamp(9px, 1vw, 12px) solid transparent;
}
.play:hover { background: var(--cream); }
.play:hover::before { border-left-color: var(--ink); }
.player-caption {
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.4;
  color: var(--line);
}

/* шаги и команды */
.steps { display: grid; gap: 18px; }
.step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 4px 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.step:first-child { padding-top: 0; border-top: 0; }
.step-num {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--line);
}
.step h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}
.cmd {
  display: block;
  margin: 0 0 8px;
  padding: 12px 14px;
  background: var(--cream);
  border-left: 2px solid var(--line);
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.step p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* предупреждение */
.warn {
  margin: 0 0 clamp(28px, 3.6vw, 42px);
  padding: 16px 18px;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.9375rem;
  line-height: 1.5;
  max-width: 76ch;
}

/* чек-лист */
.checklist {
  display: grid;
  border-top: 1px solid var(--line-soft);
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 48px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.9375rem;
  line-height: 1.45;
  cursor: pointer;
}
.check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  margin-top: 1px;
  accent-color: var(--ink);
  cursor: pointer;
}

/* сдача */
.submit {
  max-width: 56ch;
  padding-top: 20px;
  border-top: 2px solid var(--line);
}
.submit > p {
  margin: 0 0 18px;
  font-size: 1rem;
  line-height: 1.5;
}
.field { display: block; }
.field-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.field input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.4;
}
.field input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.btn-submit {
  width: 100%;
  max-width: 320px;
  min-height: 56px;
  margin-top: 16px;
  background: var(--red);
  color: var(--cream);
  font-size: clamp(14px, 1.4vw, 16px);
  border: 0;
}
.btn-submit:hover { background: var(--red-deep); }
.submit-note {
  margin: 12px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--line);
}

/* правая колонка */
.lesson-aside {
  position: sticky;
  top: 24px;
  padding-top: 16px;
  border-top: 2px solid var(--line);
  font-size: 14px;
}
.aside-title {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--line);
}
.toc { display: grid; }
.toc a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
}
.toc a:hover { text-decoration: underline; text-underline-offset: 3px; }
.aside-meta {
  display: grid;
  gap: 4px;
  margin: 18px 0;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--line);
}
.aside-note {
  margin: 0;
  padding-top: 14px;
  border-top: 2px solid var(--line);
  font-size: 13px;
  line-height: 1.5;
}

.les-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: clamp(24px, 3vw, 40px) var(--pad);
  background: var(--ink);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
}
.les-foot p { margin: 0; }
.les-foot nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.les-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */

@media (max-width: 980px) {
  .cab-top { align-items: flex-start; }
}

@media (max-width: 880px) {
  :root { --pad: 20px; }

  /* шапка в одну строку: знак и кнопка, ссылки скрыты */
  .head-row {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand cta";
    padding: 12px 20px;
    gap: 0 14px;
  }
  .nav { display: none; }

  /* первый экран в одну колонку */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
    padding-left: 0;
  }
  .hero-copy {
    display: block;
    padding: clamp(20px, 5vw, 32px) 20px 20px;
  }
  .hero-sub { max-width: 44ch; }
  .hero h1 {
    /* Кегль по самой длинной строке и по самому длинному слову: «СОБЕРИТЕ» 665 px,
       «УПРЯЖКУ» 646 px на 100 px (Unbounded 800, ls −0.045em), запас 3 px. */
    font-size: clamp(1.375rem, min(calc((100vw - 40px) / 12.6), calc((100vw - 43px) / 6.65)), 3.5rem);
    margin: 0 0 14px;
  }
  .hero-cta .btn { min-width: 0; }
  .hero-art {
    width: 100%;
    max-width: 460px;
    height: clamp(280px, 84vw, 360px);
    margin-top: 8px;
  }
  .hero-art img { object-position: 50% top; }
  .facts { padding: 14px 20px; }

  .sec { padding: clamp(44px, 8vw, 64px) 20px; }
  .sec-head { grid-template-columns: 1fr; align-items: start; }
  .sec-lead { max-width: 56ch; }

  /* Кегль по самому длинному слову: «БЕСПЛАТНО» 775 px на 100 px (Unbounded 800, ls −0.045em),
     доступно 100vw − 2·20 px, запас 3 px; кегль не больше этого предела, но и не больше своего штатного. */
  .d2 { font-size: clamp(1.5rem, 3.6vw, min(2.75rem, calc((100vw - 43px) / 7.75))); }

  .lessons-grid { grid-template-columns: 1fr; gap: 0; }
  .lesson {
    padding: 18px 0;
    border-top: 1px solid var(--line-soft);
  }
  .lesson:first-child { border-top: 2px solid var(--line); }
  .lesson-desc { max-width: 62ch; }
  .honest { margin-top: 24px; }

  .tariff-grid { grid-template-columns: 1fr; }
  .tariff { max-width: 560px; }

  .author-grid { grid-template-columns: 1fr; }
  .author-art { max-width: 380px; }
  .author-art img { max-height: 360px; margin-left: 0; }

  .foot-top { grid-template-columns: 1fr; }
  .foot-top p { max-width: 40ch; }

  /* кабинет */
  .cab-head { padding: 16px 20px 22px; }
  .cab-head h1 { font-size: clamp(2.25rem, 11vw, 3.25rem); }
  .cab-top { margin-bottom: 16px; }
  .cab-meta { gap: 4px 16px; }
  .cab-map { padding: clamp(32px, 6vw, 48px) 20px; }
  .map { padding-left: 26px; }
  .circle::before { left: calc(-26px + 2px); }
  .halls { gap: 8px; }
  .hall { min-height: 50px; padding: 11px 13px; }
  .circle-head { padding-bottom: 8px; margin-bottom: 12px; }
  .map-note { margin-top: 26px; }

  .cab-body { padding: 0 20px 48px; }
  .next { margin: 28px 0 40px; padding: 24px 20px; }
  .next-row { flex-direction: column; align-items: flex-start; }
  .work-name { flex: 1 1 180px; }
  .work-state { margin-left: 0; }
  .work .btn { margin-left: 0; }
  .bench-row p { flex: 1 1 60%; }
  .bench-row a { margin-left: 32px; }

  /* урок */
  .lesson-head { padding: 24px 20px 22px; }
  .lesson-head h1 { max-width: none; }
  .lesson-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 26px 20px 52px;
  }
  .lesson-aside { position: static; }
  .toc { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .toc a { min-height: 44px; }
}

@media (max-width: 560px) {
  .brand { font-size: 13px; }
  .nav { gap: 0 14px; }
  .nav a { font-size: 13.5px; }

  .cab-head h1 { line-height: 0.9; }
  .cab-meta { flex-direction: column; align-items: flex-start; gap: 2px; }
  .cab-user a { min-height: 44px; }

  .work { gap: 6px 12px; }
  .work-mark { width: 22px; height: 22px; }
  .author-copy .author-facts { font-size: 11px; letter-spacing: 0.01em; }

  .lesson-meta { gap: 8px 14px; }
  .l-block { max-width: none; }
  .step { grid-template-columns: 26px minmax(0, 1fr); }
  .cmd { font-size: 12.5px; padding: 10px 12px; }
  .les-foot nav { gap: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ============================================================
   ПРОТОТИП ПЛАТФОРМЫ ДЕПО
   Общий каркас, состояния, экраны пути ученика.
   Добавлено 09.11.2026. База: mocks/v3 (выбранный плакатный вариант).
   ============================================================ */

/* --- общий каркас: шапка --- */
.p-head {
  position: relative;
  background: var(--red);
  color: var(--cream);
}
.p-head--paper {
  background: var(--paper);
  color: var(--ink);
  border-bottom: 2px solid var(--line);
}
.p-thin {
  height: 4px;
  background: rgba(244, 239, 228, 0.25);
}
.p-thin span {
  display: block;
  height: 100%;
  background: var(--cream);
}
.p-head-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px clamp(14px, 2.4vw, 36px);
  padding: clamp(12px, 1.6vw, 20px) var(--pad) clamp(6px, 0.8vw, 10px);
}
.p-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.045em;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1;
  text-decoration: none;
}
.p-brand--lg { font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 0.9; }
.p-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 clamp(10px, 1.8vw, 26px);
  margin-right: auto;
}
.p-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.p-head--red .p-nav a:hover { border-bottom-color: var(--cream); }
.p-head--paper .p-nav a:hover { border-bottom-color: var(--ink); }
.p-nav a.is-current { border-bottom-color: currentColor; font-weight: 600; }
.p-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.4;
}
.p-user a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.p-head-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px clamp(14px, 2.4vw, 32px);
  padding: 0 var(--pad) clamp(12px, 1.4vw, 18px);
  font-family: var(--mono);
  font-size: clamp(11px, 0.95vw, 12.5px);
  line-height: 1.6;
}
.p-head-meta .is-sep { opacity: 0.5; }
.p-progress {
  padding: 0 var(--pad) clamp(14px, 1.8vw, 22px);
}
.p-progress-label {
  margin: 0 0 10px;
  font-size: clamp(0.9375rem, 1.25vw, 1.0625rem);
  font-weight: 500;
  line-height: 1.35;
}
.p-head .seg { max-width: 640px; }

/* --- общий каркас: подвал --- */
.p-foot {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(30px, 4vw, 48px) var(--pad) clamp(20px, 2.6vw, 30px);
}
.p-foot-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px clamp(20px, 4vw, 48px);
  padding-bottom: clamp(18px, 2.6vw, 28px);
  border-bottom: 1px solid rgba(244, 239, 228, 0.28);
}
.p-foot-brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.p-foot-brand span { display: block; }
.p-foot-brand small {
  display: block;
  margin-top: 10px;
  font-family: var(--text);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  max-width: 34ch;
}
.p-foot-nav {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 0 22px;
}
.p-foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  text-decoration: none;
}
.p-foot-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.p-foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 16px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
}
.p-foot-bottom a { text-decoration: underline; text-underline-offset: 4px; }

/* --- общие элементы экранов --- */
.p-main {
  padding: clamp(28px, 4vw, 56px) var(--pad) clamp(48px, 6vw, 88px);
}
.p-main--grid {
  background-color: var(--paper-cool);
  background-image:
    repeating-linear-gradient(to right, var(--line-faint) 0 1px, transparent 1px var(--grid)),
    repeating-linear-gradient(to bottom, var(--line-faint) 0 1px, transparent 1px var(--grid));
}
.p-crumbs { margin: 0 0 clamp(16px, 2.2vw, 24px); }
.p-title {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 24ch;
}
.p-lead {
  margin: 0;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.5;
  max-width: 62ch;
}
.mono-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--line);
}
.note {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(11px, 0.95vw, 12.5px);
  line-height: 1.55;
  color: var(--line);
}
.rule {
  height: 2px;
  margin: 0;
  border: 0;
  background: var(--line);
}
.btn-block { width: 100%; }
.btn-line {
  border-color: var(--ink);
  color: var(--ink);
  font-size: 13px;
  min-height: 48px;
  padding: 0 18px;
  background: transparent;
}
.btn-line:hover { background: var(--ink); color: var(--cream); }
.btn-dark {
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  min-height: 48px;
  padding: 0 20px;
}
.btn-dark:hover { background: var(--red); }
.btn:disabled,
.btn[aria-disabled="true"] {
  background: var(--line-faint);
  color: var(--line);
  border-color: var(--line-soft);
  cursor: not-allowed;
  pointer-events: none;
}
.btn:disabled:hover { background: var(--line-faint); color: var(--line); }

/* статусы работ: не начата, в работе, сдана, принята, возвращена */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 10px 6px 8px;
  border: 2px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.status::before {
  content: "";
  flex: none;
  width: 4px;
  align-self: stretch;
  background: var(--line-soft);
}
.status--none { border-style: dashed; border-color: var(--line-soft); color: var(--line); }
.status--none::before { background: transparent; }
.status--work::before { background: var(--ink); }
.status--sent { background: var(--cream); }
.status--sent::before { background: var(--ink); }
.status--done { background: var(--cream); }
.status--done::before { background: var(--marker); }
.status--back { background: var(--cream); border-style: dashed; }
.status--back::before { background: var(--ink); }
.status--error { border-color: var(--red); color: var(--red); }
.status--error::before { background: var(--red); }

/* ============================================================
   ВХОД
   ============================================================ */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--paper-cool);
  background-image:
    repeating-linear-gradient(to right, var(--line-faint) 0 1px, transparent 1px var(--grid)),
    repeating-linear-gradient(to bottom, var(--line-faint) 0 1px, transparent 1px var(--grid));
}
.login-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: clamp(14px, 1.8vw, 22px) var(--pad);
  border-bottom: 2px solid var(--line);
}
.login-top .p-brand { font-size: clamp(16px, 1.3vw, 19px); }
.login-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(28px, 4vw, 64px) var(--pad);
}
.login-card {
  width: 100%;
  max-width: 460px;
  background: var(--paper);
  border: 2px solid var(--line);
  border-top: 6px solid var(--red);
  padding: clamp(24px, 3vw, 36px);
}
.login-card h1 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.login-lead {
  margin: 0 0 clamp(20px, 2.6vw, 28px);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--line);
}
.login-form { display: grid; gap: 14px; }
.login-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--line);
}
.login-sep::before,
.login-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}
.login-alt-title {
  margin: 0 0 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}
.login-alt p {
  margin: 0 0 12px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--line);
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  cursor: pointer;
}
.consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  margin-top: 1px;
  accent-color: var(--ink);
}
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.field-error {
  margin: 8px 0 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--red-deep);
}
.field-error[hidden] { display: none; }
.login-result {
  margin-top: 16px;
  padding: 14px 16px;
  border: 2px solid var(--ink);
  background: var(--cream);
  font-size: 0.875rem;
  line-height: 1.5;
}
.login-result[hidden] { display: none; }
.login-result p { margin: 0 0 10px; }
.login-result .btn { width: 100%; }
.login-help {
  margin: clamp(20px, 2.4vw, 28px) 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--line);
}
.login-help button {
  font-family: var(--mono);
  font-size: 11.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px 0;
  min-height: 0;
}
.login-foot {
  padding: 16px var(--pad);
  border-top: 2px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--line);
}
.login-foot a { text-decoration: underline; text-underline-offset: 4px; }

/* ============================================================
   КАБИНЕТ
   ============================================================ */
.map-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 24px;
  margin: 0 0 clamp(22px, 3vw, 40px);
}
.map-head h2 { margin: 0; font-size: var(--d2); }
.map-head a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.map-head a:hover { text-decoration-thickness: 2px; }
.hall-lock {
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: 0.02em;
  opacity: 0.8;
  margin-left: 2px;
}
.next-what {
  display: grid;
  gap: 6px;
  margin: 0 0 clamp(16px, 2vw, 22px);
  padding: 0;
}
.next-what li {
  display: flex;
  gap: 10px;
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  line-height: 1.45;
}
.next-what li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  background: var(--cream);
}
.next-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.next-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.works-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 20px;
  margin: 0 0 clamp(16px, 2.2vw, 24px);
}
.works-head h2 { margin: 0; font-size: var(--d2); }
.work-state--done { color: var(--ink); }
.work-state--back { color: var(--line); }
.work-state--sent { color: var(--ink); }

/* ============================================================
   ЗАЛ (круг): вывеска плакатом, список уроков бумагой
   ============================================================ */
.hall-sign {
  background: var(--red);
  color: var(--cream);
  padding: clamp(26px, 3.4vw, 48px) var(--pad) clamp(24px, 3vw, 40px);
}
.hall-sign-label {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: clamp(11px, 1vw, 12.5px);
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.hall-sign h1 {
  margin: 0 0 clamp(14px, 2vw, 22px);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 5.6vw, 4.25rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  max-width: 14ch;
}
.hall-sign p {
  margin: 0;
  font-size: clamp(1rem, 1.35vw, 1.1875rem);
  line-height: 1.45;
  max-width: 56ch;
}
.hall-sign-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px clamp(16px, 2.6vw, 32px);
  margin-top: clamp(18px, 2.4vw, 28px);
  padding-top: 14px;
  border-top: 2px solid var(--cream);
  font-family: var(--mono);
  font-size: clamp(11.5px, 1vw, 13px);
  line-height: 1.5;
}
.hall-list { display: grid; }
.hall-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px clamp(14px, 2.2vw, 28px);
  padding: clamp(18px, 2.2vw, 26px) 0;
  border-bottom: 1px solid var(--line-soft);
}
.hall-row:first-child { border-top: 2px solid var(--line); }
.hall-step-num {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--line);
}
.hall-body { min-width: 0; }
.hall-body h3 {
  margin: 0 0 6px;
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  font-weight: 600;
  line-height: 1.2;
}
.hall-body p {
  margin: 0 0 10px;
  font-size: 0.9375rem;
  line-height: 1.5;
  max-width: 60ch;
}
.hall-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--line);
}
.hall-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.hall-actions .btn { min-width: 112px; }
.statuses-legenda { margin-top: clamp(36px, 5vw, 64px); }
.statuses-legenda h2,
.hall-next h2 {
  margin: 0 0 clamp(14px, 2vw, 20px);
  font-size: var(--d2);
}
.status-legenda {
  display: grid;
  border-top: 2px solid var(--line);
}
.status-legenda-row {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: 8px clamp(14px, 2.4vw, 28px);
  align-items: start;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}
.status-legenda-row p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--line);
}
.hall-next {
  margin-top: clamp(36px, 5vw, 60px);
  padding: clamp(22px, 3vw, 34px);
  border: 2px solid var(--line);
  background: var(--cream);
}
.hall-next p {
  margin: 0 0 16px;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.5;
  max-width: 62ch;
}
.hall-next .note { margin-top: 12px; }

/* ============================================================
   УРОК: копирование команд, квиз, CTA задания
   ============================================================ */
.cmd-wrap {
  display: flex;
  align-items: stretch;
  margin: 0 0 8px;
  background: var(--cream);
  border-left: 2px solid var(--line);
}
.cmd-wrap .cmd {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  border-left: 0;
  background: transparent;
}
.copy-cmd {
  flex: none;
  align-self: stretch;
  min-height: 44px;
  padding: 0 14px;
  border-left: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--line);
  text-align: center;
}
.copy-cmd:hover { background: var(--ink); color: var(--cream); }
.copy-cmd.is-done { background: var(--ink); color: var(--cream); }
.js .copy-cmd { display: inline-flex; align-items: center; justify-content: center; }
html:not(.js) .copy-cmd { display: none; }

.quiz { display: grid; gap: 22px; margin: 0; }
.quiz-q {
  margin: 0;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line-soft);
}
.quiz-q legend {
  padding: 0;
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}
.quiz-q legend .quiz-n {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  color: var(--line);
  margin-right: 8px;
}
.quiz-opts { display: grid; gap: 4px; }
.quiz-opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 46px;
  padding: 9px 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  cursor: pointer;
}
.quiz-opt input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  margin-top: 2px;
  accent-color: var(--ink);
  cursor: pointer;
}
.quiz-opt.is-right { font-weight: 600; }
.quiz-opt.is-wrong { text-decoration: line-through; text-decoration-color: var(--red); }
.quiz-verdict {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-left: 2px solid var(--line);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.quiz-verdict[hidden] { display: none; }
.quiz-verdict.is-ok { border-left-color: var(--marker); }
.quiz-verdict.is-bad { border-left-color: var(--red); }
.quiz-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

.lesson-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: clamp(8px, 1.4vw, 14px);
  padding-top: 20px;
  border-top: 2px solid var(--line);
}
.lesson-cta .note { max-width: 34ch; }

/* ============================================================
   ЗАДАНИЕ 1: САЙТ НА ПОДДОМЕНЕ (шаг 5, главный экран)
   ============================================================ */
.task-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: clamp(28px, 4vw, 64px);
}
.ts-main { min-width: 0; }
.ts-block {
  margin: 0 0 clamp(30px, 4vw, 48px);
  padding-top: clamp(20px, 2.6vw, 30px);
  border-top: 2px solid var(--line);
}
.ts-block--first { border-top: 0; padding-top: 0; }
.ts-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 18px;
  margin: 0 0 clamp(14px, 2vw, 22px);
}
.ts-block h2 {
  margin: 0;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 600;
  line-height: 1.2;
}
.ts-block-head .note { margin: 0; }
.ts-lead {
  margin: 0 0 clamp(16px, 2.2vw, 24px);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 66ch;
}
.style-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
}
.style-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border: 2px solid var(--line);
  background: var(--paper);
  text-align: left;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}
.style-card:hover { background: var(--cream); }
.style-card[aria-pressed="true"] {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  background: var(--cream);
}
.style-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  aspect-ratio: 4 / 3;
  padding: 12px;
  overflow: hidden;
  border-bottom: 2px solid var(--line);
}
.style-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px 12px;
}
.style-card-body h3 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
}
.style-card-body p {
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--line);
}
.style-pick {
  display: none;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.3;
  letter-spacing: 0.01em;
}
.style-card[aria-pressed="true"] .style-pick { display: block; }
.sp-plakat { background: var(--red); color: var(--cream); }
.sp-plakat .sp-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.1rem, 1.7vw, 1.5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.sp-plakat .sp-line { width: 42%; height: 3px; background: var(--cream); }
.sp-plakat .sp-sub {
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.03em;
}
.sp-chertezh {
  background-color: var(--paper-cool);
  background-image:
    repeating-linear-gradient(to right, var(--line-faint) 0 1px, transparent 1px 20px),
    repeating-linear-gradient(to bottom, var(--line-faint) 0 1px, transparent 1px 20px);
  color: var(--ink);
}
.sp-chertezh .sp-title {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
}
.sp-chertezh .sp-line { width: 70%; height: 2px; background: var(--line); }
.sp-chertezh .sp-sub {
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.45;
}
.sp-noch { background: var(--ink); color: var(--cream); }
.sp-noch .sp-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.sp-noch .sp-line { width: 30%; height: 3px; background: var(--marker); }
.sp-noch .sp-sub {
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.4;
}

.sub-field { display: grid; gap: 8px; max-width: 560px; }
.sub-field-label {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.sub-row {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--ink);
  background: var(--cream);
}
.sub-row .sub-fix {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.2;
  color: var(--line);
  border-right: 1px solid var(--line-soft);
  white-space: nowrap;
}
.sub-row .sub-fix--end { border-right: 0; border-left: 1px solid var(--line-soft); }
.sub-row input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  min-height: 52px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.3;
}
.sub-row input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.sub-hint {
  margin: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--line);
}
.sub-check {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 12px;
}
.sub-check-result {
  margin: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.45;
}
.dns-box {
  margin: clamp(14px, 2vw, 20px) 0 0;
  border: 2px solid var(--line);
  background: var(--cream);
}
.dns-head {
  padding: 8px 14px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.dns-rows { margin: 0; }
.dns-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.875rem;
  line-height: 1.45;
}
.dns-row:last-child { border-bottom: 0; }
.dns-row dt {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--line);
  margin: 0;
}
.dns-row dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.goal-card {
  margin: clamp(16px, 2.2vw, 24px) 0 0;
  padding: clamp(16px, 2.4vw, 24px);
  background: var(--ink);
  color: var(--cream);
}
.goal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 12px;
}
.goal-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: rgba(244, 239, 228, 0.7);
}
.goal-copy {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(244, 239, 228, 0.5);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.2;
}
.goal-copy:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.goal-copy.is-done { background: var(--cream); color: var(--ink); }
.goal-text {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(12.5px, 1.15vw, 14px);
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.goal-text b { font-weight: 400; color: var(--marker); }

.run-card {
  margin-top: clamp(16px, 2.2vw, 24px);
  border: 2px solid var(--line);
  background: var(--paper);
}
.run-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding: 14px clamp(14px, 2vw, 20px);
  border-bottom: 2px solid var(--line);
}
.run-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}
.run-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 2px solid var(--line);
}
.stage {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px clamp(10px, 1.4vw, 16px);
  border-left: 1px solid var(--line-soft);
}
.stage:first-child { border-left: 0; }
.stage-name {
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--line);
}
.stage-bar {
  height: 6px;
  background: var(--line-faint);
  overflow: hidden;
}
.stage-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--line);
  transition: width 0.4s ease;
}
.stage.is-run .stage-bar span { width: 55%; }
.stage.is-done .stage-bar span { width: 100%; background: var(--marker); }
.stage-state {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.35;
  color: var(--line);
}
.stage.is-run .stage-state,
.stage.is-done .stage-state { color: var(--ink); }
.run-log {
  margin: 0;
  padding: 12px clamp(14px, 2vw, 20px) 16px;
  min-height: 92px;
  max-height: 190px;
  overflow: auto;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--line);
}
.run-log p { margin: 0; }
.run-log p b { font-weight: 400; color: var(--ink); }

.result-panel {
  margin-top: clamp(16px, 2.2vw, 24px);
  padding: clamp(16px, 2.4vw, 24px);
  border: 2px solid var(--line);
  background: var(--cream);
}
.result-panel[hidden] { display: none; }
.result-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  margin-bottom: 14px;
}
.result-address {
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: clamp(0.9375rem, 1.5vw, 1.1875rem);
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.result-address a { text-decoration: underline; text-underline-offset: 4px; }
.result-note { margin: 0 0 16px; font-size: 0.875rem; line-height: 1.5; color: var(--line); }
.browser {
  border: 2px solid var(--line);
  background: var(--paper);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper-cool);
}
.browser-dots { display: flex; gap: 4px; }
.browser-dots span {
  display: block;
  width: 7px;
  height: 7px;
  background: var(--line-soft);
}
.browser-dot { width: 7px; height: 7px; background: var(--line-soft); }
.browser-url {
  flex: 1;
  min-width: 0;
  padding: 3px 8px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.browser-body { padding: clamp(10px, 1.6vw, 18px); }
.mini-site {
  min-height: 210px;
  padding: clamp(16px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
}
.mini-site .ms-kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: 0.03em;
}
.mini-site .ms-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.mini-site .ms-lead {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: 38ch;
}
.mini-site .ms-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 11px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.mini-site.ms-plakat { background: var(--red); color: var(--cream); }
.mini-site.ms-plakat .ms-btn { background: var(--cream); color: var(--red); }
.mini-site.ms-chertezh {
  background-color: var(--paper-cool);
  background-image:
    repeating-linear-gradient(to right, var(--line-faint) 0 1px, transparent 1px var(--grid)),
    repeating-linear-gradient(to bottom, var(--line-faint) 0 1px, transparent 1px var(--grid));
  color: var(--ink);
}
.mini-site.ms-chertezh .ms-btn { border: 2px solid var(--ink); color: var(--ink); }
.mini-site.ms-noch { background: var(--ink); color: var(--cream); }
.mini-site.ms-noch .ms-btn { background: var(--cream); color: var(--ink); }
.result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: clamp(14px, 2vw, 20px);
}
.task-aside {
  position: sticky;
  top: 24px;
  padding-top: 16px;
  border-top: 2px solid var(--line);
}
.task-aside h2 {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--line);
}
.aside-list {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
}
.aside-list li {
  display: flex;
  gap: 10px;
  font-size: 0.875rem;
  line-height: 1.5;
}
.aside-list li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 7px;
  background: var(--ink);
}
.aside-list--quiet li::before { background: var(--line-soft); }
.task-aside .note { padding-top: 12px; border-top: 1px solid var(--line-soft); }

/* ============================================================
   СДАЧА РАБОТЫ
   ============================================================ */
.sub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: clamp(28px, 4vw, 60px);
}
.sub-main { min-width: 0; }
.sub-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin: 0 0 clamp(20px, 2.6vw, 30px);
}
.sub-head .status { font-size: 12px; }
.status-card {
  margin: 0 0 clamp(26px, 3.4vw, 40px);
  padding: clamp(18px, 2.6vw, 26px);
  border: 2px solid var(--line);
  background: var(--cream);
}
.status-card--flat { background: var(--paper); }
.status-card h2 {
  margin: 0 0 12px;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 600;
  line-height: 1.2;
}
.status-card p { margin: 0 0 10px; font-size: 0.9375rem; line-height: 1.55; }
.status-card p:last-child { margin-bottom: 0; }
.comment {
  margin: 14px 0 0;
  padding: 14px 16px;
  background: var(--paper);
  border-left: 4px solid var(--ink);
}
.comment-label {
  margin: 0 0 8px !important;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--line);
}
.comment p { margin: 0; }
.reviewer {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 12px !important;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--line);
}
.sub-form {
  max-width: none;
  padding-top: clamp(18px, 2.4vw, 26px);
  border-top: 2px solid var(--line);
}
.sub-form > h2 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 600;
  line-height: 1.2;
}
.sub-form > p {
  margin: 0 0 18px;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 64ch;
}
.form-row { display: grid; gap: 8px; margin: 0 0 18px; }
.form-row .field-label { margin-bottom: 0; }
.form-row input[type="text"],
.form-row input[type="url"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="search"],
.form-row textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.45;
}
.form-row textarea { min-height: 96px; resize: vertical; }
.form-row input[type="text"]:focus-visible,
.form-row input[type="url"]:focus-visible,
.form-row input[type="email"]:focus-visible,
.form-row textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.file-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 12px 14px;
  border: 2px dashed var(--line-soft);
  background: var(--paper);
}
.file-row input[type="file"] {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.4;
  max-width: 100%;
}
.file-row .note { flex: 1 1 220px; }
.form-note { margin: 14px 0 0; font-size: 0.875rem; line-height: 1.5; color: var(--line); max-width: 64ch; }
.form-error {
  margin: 8px 0 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--red-deep);
}
.form-error[hidden] { display: none; }
.sub-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 18px;
}
.sub-actions .note { max-width: 34ch; }
.after-list { display: grid; gap: 16px; margin-top: clamp(30px, 4vw, 48px); }
.after-list h2 {
  margin: 0;
  font-size: var(--d2);
}
.after-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}
.after-card {
  padding: clamp(16px, 2.2vw, 22px);
  border: 2px solid var(--line);
  background: var(--paper);
}
.after-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}
.after-card p { margin: 0 0 10px; font-size: 0.875rem; line-height: 1.5; }
.after-card p:last-child { margin-bottom: 0; }
.sub-aside {
  position: sticky;
  top: 24px;
  padding-top: 16px;
  border-top: 2px solid var(--line);
}
.sub-aside h2 {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--line);
}
.sub-aside .checklist { margin-bottom: 20px; }
.sub-aside .check { font-size: 0.875rem; min-height: 0; padding: 10px 0; }
.sub-aside .note { padding-top: 12px; border-top: 1px solid var(--line-soft); }

/* ============================================================
   ОПЛАТА
   ============================================================ */
.pay-hero {
  background: var(--red);
  color: var(--cream);
  padding: clamp(20px, 3vw, 40px) var(--pad) clamp(24px, 3.4vw, 46px);
}
.pay-hero h1 {
  margin: 0 0 clamp(14px, 2vw, 22px);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.875rem, 5vw, 3.75rem);
  line-height: 0.93;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  max-width: 16ch;
}
.pay-hero p {
  margin: 0;
  font-size: clamp(0.9375rem, 1.25vw, 1.125rem);
  line-height: 1.5;
  max-width: 60ch;
}
.pay-window {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px clamp(14px, 2.4vw, 28px);
  margin-top: clamp(18px, 2.4vw, 26px);
  padding-top: 14px;
  border-top: 2px solid var(--cream);
  font-family: var(--mono);
  font-size: clamp(11.5px, 1vw, 13px);
  line-height: 1.5;
}
.pay-window-state {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--cream);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.pay-main { padding: clamp(32px, 4.4vw, 64px) var(--pad) clamp(48px, 6vw, 88px); }
.pay-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 28px;
  margin: 0 0 clamp(22px, 3vw, 34px);
}
.pay-head h2 {
  margin: 0;
  font-size: var(--d2);
}
.pay-head .note { max-width: 46ch; }
.pay-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); align-items: stretch; }
.tariff-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(18px, 2.2vw, 28px);
  border: 2px solid var(--line);
  background: var(--cream);
}
.tariff-card h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.tariff-badge {
  align-self: flex-start;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.2;
}
.tariff-card .tariff-price {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.75rem, 2.7vw, 2.375rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.tariff-desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}
.tariff-what {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line-soft);
}
.tariff-what li {
  display: flex;
  gap: 9px;
  font-size: 0.8125rem;
  line-height: 1.45;
}
.tariff-what li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 6px;
  background: var(--line);
}
.tariff-card > .note { margin-top: auto; font-size: 11px; }
.tariff-card .btn { width: 100%; margin-top: 4px; }
.pay-notes {
  display: grid;
  gap: clamp(18px, 2.6vw, 28px);
  margin-top: clamp(30px, 4vw, 48px);
  padding-top: clamp(20px, 2.6vw, 30px);
  border-top: 2px solid var(--line);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.pay-notes h2 {
  margin: 0 0 12px;
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  font-weight: 600;
  line-height: 1.25;
}
.pay-notes p,
.pay-notes li {
  font-size: 0.875rem;
  line-height: 1.55;
  margin: 0 0 8px;
}
.pay-notes ul { display: grid; gap: 6px; margin: 0 0 10px; }
.pay-notes li::marker { color: var(--line); }
.pay-notes .refund {
  padding: clamp(16px, 2vw, 22px);
  border: 2px solid var(--line);
  background: var(--paper);
}
.demo-states {
  margin-top: clamp(24px, 3vw, 36px);
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--line);
}
.demo-states a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.demo-states a.is-current { color: var(--ink); font-weight: 400; text-decoration-thickness: 2px; }

/* ============================================================
   ПРОФИЛЬ И МАТЕРИАЛЫ
   ============================================================ */
.prof-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: clamp(26px, 4vw, 56px);
}
.prof-main { min-width: 0; }
.prof-card {
  padding: clamp(18px, 2.4vw, 26px);
  border: 2px solid var(--line);
  background: var(--cream);
}
.prof-card h2 {
  margin: 0 0 14px;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 600;
  line-height: 1.2;
}
.prof-rows { display: grid; margin: 0; }
.prof-row {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  gap: 8px 18px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.prof-row:first-child { border-top: 1px solid var(--line-soft); }
.prof-row dt {
  margin: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--line);
}
.prof-row dd { margin: 0; }
.spent {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  margin: 0 0 14px;
}
.spent-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
}
.spent-note { font-family: var(--mono); font-size: 11.5px; line-height: 1.5; color: var(--line); }
.access-list { display: grid; margin-top: clamp(26px, 3.4vw, 38px); }
.access-list > h2 {
  margin: 0 0 clamp(14px, 2vw, 20px);
  font-size: var(--d2);
}
.access-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px clamp(14px, 2.4vw, 28px);
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
.access-row:first-of-type { border-top: 2px solid var(--line); }
.access-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}
.access-name small {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--line);
}
.access-state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--line);
}
.access-state .status { min-height: 28px; padding: 4px 8px 4px 6px; font-size: 10.5px; }
.access-row .btn { justify-self: end; }
.access-row--locked .access-name { color: var(--line); }
.materials {
  display: grid;
  gap: 10px;
  margin: 0 0 clamp(26px, 3.4vw, 38px);
}
.material {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}
.material:first-child { border-top: 2px solid var(--line); }
.material-name {
  flex: 1 1 260px;
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}
.material-name small {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--line);
}
.material .status { font-size: 10.5px; }
.material-lock {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
  color: var(--line);
}
.key-box {
  margin-top: clamp(26px, 3.4vw, 38px);
  padding: clamp(18px, 2.4vw, 26px);
  border: 2px solid var(--line);
  background: var(--paper);
}
.key-box h2 {
  margin: 0 0 12px;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 600;
  line-height: 1.2;
}
.key-steps {
  counter-reset: keystep;
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
}
.key-steps li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 4px 10px;
  font-size: 0.9375rem;
  line-height: 1.5;
  counter-increment: keystep;
}
.key-steps li::before {
  content: counter(keystep, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--line);
}
.key-steps b { font-weight: 600; }
.prof-aside {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 24px;
}
.prof-aside .prof-card { padding: clamp(16px, 2vw, 22px); }
.prof-aside h2 {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--line);
}
.prof-aside p { margin: 0 0 10px; font-size: 0.875rem; line-height: 1.5; }
.prof-aside p:last-child { margin-bottom: 0; }

/* ============================================================
   АДМИНКА: только чертёж
   ============================================================ */
.a-head {
  background: var(--paper);
  color: var(--ink);
  border-bottom: 2px solid var(--line);
}
.a-head-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px clamp(14px, 2.4vw, 32px);
  padding: 10px var(--pad);
}
.a-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.a-brand b { font-weight: 600; }
.a-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 clamp(10px, 1.8vw, 22px);
  margin-right: auto;
}
.a-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.2;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.a-nav a:hover,
.a-nav a.is-current { border-bottom-color: var(--ink); }
.a-user {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
  color: var(--line);
}
.a-main { padding: clamp(24px, 3.4vw, 44px) var(--pad) clamp(44px, 5vw, 72px); }
.a-headline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  margin: 0 0 clamp(20px, 2.6vw, 30px);
  padding-bottom: 14px;
  border-bottom: 2px solid var(--line);
}
.a-headline h1 {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.a-headline .note { max-width: 52ch; }
.a-grid {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(22px, 3vw, 44px);
}
.a-panel {
  border: 1px solid var(--line-soft);
  border-top: 2px solid var(--line);
  background: var(--paper);
}
.a-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.a-panel-head h2 {
  margin: 0;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11.5px;
  line-height: 1.4;
  letter-spacing: 0.03em;
}
.a-panel-head span {
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--line);
}
.queue { display: grid; margin: 0; }
.queue-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-left: 4px solid transparent;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.queue-row:hover { background: var(--cream); }
.queue-row[aria-current="true"] {
  background: var(--cream);
  border-left-color: var(--ink);
}
.queue-name {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}
.queue-sub {
  grid-column: 1 / -1;
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--line);
}
.queue-status {
  align-self: start;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.4;
  color: var(--line);
  white-space: nowrap;
}
.review { padding: clamp(16px, 2.2vw, 24px); }
.review h2 {
  margin: 0 0 4px;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
}
.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--line);
}
.review-proof {
  margin: 0 0 16px;
  padding: 11px 13px;
  background: var(--cream);
  border-left: 2px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.review-proof b { font-weight: 400; color: var(--ink); }
.review h3 {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11.5px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--line);
}
.review-criteria { display: grid; margin: 0 0 16px; }
.review-criteria .check { min-height: 0; padding: 9px 0; font-size: 0.875rem; }
.review-comment { display: grid; gap: 6px; margin: 0 0 14px; }
.review-comment span {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
  color: var(--line);
}
.review-comment textarea {
  width: 100%;
  min-height: 84px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--text);
  font-size: 15px;
  line-height: 1.45;
  resize: vertical;
}
.review-comment textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.review-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.review-message {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-left: 2px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
}
.review-message[hidden] { display: none; }
.review-message.is-ok { border-left-color: var(--marker); }
.review-message.is-bad { border-left-color: var(--red); }
.a-students { margin-top: clamp(28px, 3.6vw, 44px); }
.a-table-wrap { overflow-x: auto; }
.a-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  text-align: left;
}
.a-table th {
  padding: 9px 10px;
  border-bottom: 2px solid var(--line);
  font-family: var(--mono);
  font-weight: 400;
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--line);
  white-space: nowrap;
}
.a-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.875rem;
  line-height: 1.4;
  vertical-align: middle;
}
.a-table td .btn { min-height: 36px; padding: 0 12px; font-size: 10.5px; }
.a-table .mono { font-size: 11px; color: var(--line); }
.a-table tr.is-focus td { background: var(--cream); }

/* ============================================================
   СОСТОЯНИЯ
   ============================================================ */
.states-intro { margin: 0 0 clamp(26px, 3.4vw, 40px); }
.state-block {
  margin: 0 0 clamp(30px, 3.6vw, 44px);
}
.state-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 20px;
  margin: 0 0 10px;
}
.state-head h2 {
  margin: 0;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  font-weight: 600;
  line-height: 1.25;
}
.state-head .note { margin: 0; }
.state-frame {
  border: 2px dashed var(--line-soft);
  background: var(--paper-cool);
  padding: clamp(12px, 1.8vw, 20px);
}
.state-frame--admin {
  background: var(--paper);
  border-style: solid;
  border-width: 2px 2px 2px 2px;
}
.state-ui {
  border: 2px solid var(--line);
  background: var(--cream);
  padding: clamp(18px, 2.8vw, 30px);
}
.state-ui--red { border-top: 6px solid var(--red); }
.state-ui--ink { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.state-ui--center { text-align: center; }
.state-ui h3 {
  margin: 0 0 8px;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  font-weight: 600;
  line-height: 1.25;
}
.state-ui p { margin: 0 0 14px; font-size: 0.9375rem; line-height: 1.5; max-width: 56ch; }
.state-ui--center p { margin-left: auto; margin-right: auto; }
.state-ui .status { margin-bottom: 12px; }
.state-actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.state-code {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(244, 239, 228, 0.72);
}
.state-ui--ink .state-code { color: rgba(244, 239, 228, 0.72); }
.state-ui--ink a { color: var(--cream); }
.state-empty {
  padding: clamp(22px, 3.4vw, 40px) clamp(16px, 2.4vw, 24px);
  border: 1px dashed var(--line-soft);
  background: var(--paper);
  text-align: center;
}
.state-empty p { margin: 0 auto 8px; font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--line); max-width: 52ch; }
.state-empty .btn { margin-top: 10px; }
.state-mini-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 0 0 10px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
}
.state-mini-head b { font-weight: 600; }

/* ============================================================
   ОБЗОР ПРОТОТИПА (index)
   ============================================================ */
.proto-main { padding: clamp(28px, 4vw, 56px) var(--pad) clamp(48px, 6vw, 80px); }
.proto-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(20px, 3.4vw, 48px);
  margin: 0 0 clamp(30px, 4vw, 48px);
  padding-bottom: clamp(22px, 3vw, 34px);
  border-bottom: 2px solid var(--line);
}
.proto-intro h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4.2vw, 3rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.03em;
  max-width: 20ch;
}
.proto-intro p { margin: 0; font-size: clamp(1rem, 1.3vw, 1.125rem); line-height: 1.5; max-width: 58ch; }
.proto-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px clamp(16px, 2.4vw, 30px);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
}
.screen-list { display: grid; margin: 0 0 clamp(34px, 4.4vw, 54px); }
.screen-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px clamp(14px, 2.4vw, 32px);
  padding: clamp(15px, 2vw, 20px) 0;
  border-bottom: 1px solid var(--line-soft);
  border-left: 4px solid transparent;
  text-decoration: none;
}
.screen-row:first-child { border-top: 2px solid var(--line); }
.screen-row:hover { background: var(--cream); }
.screen-row--key { background: var(--cream); border-left-color: var(--marker); }
.screen-route {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--line);
  overflow-wrap: anywhere;
}
.screen-body { min-width: 0; }
.screen-body h2 {
  margin: 0 0 4px;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
}
.screen-body p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--line);
  max-width: 66ch;
}
.screen-body .screen-tag {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.4;
  color: var(--line);
  border: 1px solid var(--line-soft);
  padding: 2px 6px;
}
.screen-open {
  align-self: center;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}
.screen-row:hover .screen-open { text-decoration-thickness: 2px; }
.proto-section { margin: 0 0 clamp(34px, 4.4vw, 54px); }
.proto-section > h2 {
  margin: 0 0 clamp(14px, 2vw, 20px);
  font-size: var(--d2);
}
.flow-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.flow-item {
  position: relative;
  padding: 14px 12px 12px;
  border: 1px solid var(--line-soft);
  border-top: 2px solid var(--line);
  background: var(--paper);
  counter-increment: step;
  min-width: 0;
}
.flow-item::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
  color: var(--line);
}
.flow-item h3 {
  margin: 0 0 6px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}
.flow-item p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--line);
}
.proto-list { display: grid; gap: 0; margin: 0; padding: 0; }
.proto-list li {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 6px 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.proto-list li:first-child { border-top: 2px solid var(--line); }
.proto-list b { font-weight: 600; }
.proto-list span { color: var(--line); }
.proto-note {
  margin-top: clamp(26px, 3.4vw, 40px);
  padding: clamp(16px, 2.2vw, 24px);
  border: 2px solid var(--line);
  background: var(--cream);
}
.proto-note h2 {
  margin: 0 0 10px;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}
.proto-note p { margin: 0 0 8px; font-size: 0.875rem; line-height: 1.55; max-width: 74ch; }
.proto-note p:last-child { margin-bottom: 0; }
.proto-note code {
  font-family: var(--mono);
  font-size: 0.85em;
  padding: 1px 4px;
  background: var(--paper);
}

/* фокус на тёмных и красных полях */
.p-head--red :focus-visible,
.pay-hero :focus-visible,
.p-foot :focus-visible,
.goal-card :focus-visible,
.state-ui--ink :focus-visible { outline-color: var(--cream); }

/* ============================================================
   ПОЯВЛЕНИЕ КАРТОЧЕК (минимум движения)
   ============================================================ */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.screen-row,
.hall-row,
.work,
.step,
.style-card,
.stage,
.state-block,
.flow-item,
.access-row,
.material,
.tariff-card,
.after-card {
  animation: riseIn 0.22s ease both;
}
.screen-row:nth-child(2),
.hall-row:nth-child(2),
.work:nth-child(2),
.step:nth-child(2),
.style-card:nth-child(2),
.stage:nth-child(2),
.state-block:nth-child(2),
.flow-item:nth-child(2),
.access-row:nth-child(2),
.material:nth-child(2),
.tariff-card:nth-child(2),
.after-card:nth-child(2) { animation-delay: 0.04s; }
.screen-row:nth-child(3),
.hall-row:nth-child(3),
.work:nth-child(3),
.step:nth-child(3),
.style-card:nth-child(3),
.stage:nth-child(3),
.state-block:nth-child(3),
.flow-item:nth-child(3),
.access-row:nth-child(3),
.material:nth-child(3),
.tariff-card:nth-child(3) { animation-delay: 0.08s; }
.screen-row:nth-child(4),
.hall-row:nth-child(4),
.work:nth-child(4),
.step:nth-child(4),
.stage:nth-child(4),
.state-block:nth-child(4),
.flow-item:nth-child(4),
.access-row:nth-child(4),
.material:nth-child(4) { animation-delay: 0.12s; }
.screen-row:nth-child(5),
.hall-row:nth-child(5),
.work:nth-child(5),
.state-block:nth-child(5),
.flow-item:nth-child(5),
.access-row:nth-child(5) { animation-delay: 0.16s; }
.status,
.stage-bar span,
.result-panel,
.run-card { transition: background-color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease; }

/* ============================================================
   АДАПТИВ ПРОТОТИПА
   ============================================================ */
@media (max-width: 1100px) {
  .task-grid,
  .sub-grid { grid-template-columns: minmax(0, 1fr) 260px; }
  .prof-grid { grid-template-columns: minmax(0, 1fr) 290px; }
  .a-grid { grid-template-columns: minmax(280px, 330px) minmax(0, 1fr); }
}

@media (max-width: 980px) {
  .task-grid,
  .sub-grid,
  .prof-grid,
  .a-grid { grid-template-columns: 1fr; gap: 28px; }
  .task-aside,
  .sub-aside,
  .prof-aside { position: static; }
  .prof-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pay-grid { grid-template-columns: 1fr; }
  .tariff-card { max-width: 620px; }
  .pay-notes { grid-template-columns: 1fr; }
  .proto-intro { grid-template-columns: 1fr; align-items: start; }
  .flow-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .screen-row { grid-template-columns: 150px minmax(0, 1fr) auto; }
  .state-ui p { max-width: none; }
}

@media (max-width: 880px) {
  .p-head-in { align-items: center; }
  .p-brand--lg { font-size: clamp(2rem, 7vw, 3.25rem); }
  .p-nav { order: 3; width: 100%; margin-right: 0; gap: 0 16px; }
  .p-user { margin-left: auto; }
  .p-head-meta { padding-bottom: 10px; }
  .p-head .seg { max-width: none; }
  .p-foot-in { grid-template-columns: 1fr; }
  .p-foot-nav { gap: 0 18px; }

  .hall-row { grid-template-columns: 34px minmax(0, 1fr); }
  .hall-actions {
    grid-column: 2;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
  }
  .hall-actions .btn { min-width: 0; }
  .status-legenda-row { grid-template-columns: 1fr; gap: 8px; }
  .status-legenda-row p { grid-column: 1; }

  .style-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage:nth-child(3) { border-left: 0; border-top: 1px solid var(--line-soft); }
  .stage:nth-child(4) { border-top: 1px solid var(--line-soft); }

  .pay-hero h1 { max-width: none; }
  .prof-grid { gap: 26px; }
  .access-row { grid-template-columns: minmax(0, 1fr) auto; }
  .access-state { grid-column: 1 / -1; }
  .access-row .btn { justify-self: start; grid-column: 1 / -1; }

  .screen-row { grid-template-columns: 1fr auto; }
  .screen-route { grid-column: 1 / -1; }
  .screen-body { grid-column: 1; }
  .screen-open { grid-column: 2; grid-row: 2; }

  .after-grid { grid-template-columns: 1fr; }
  .a-headline { margin-bottom: 20px; }
}

@media (max-width: 640px) {
  .p-main { padding-top: 24px; }
  .p-title { font-size: clamp(1.5rem, 7vw, 2rem); }
  .style-grid { grid-template-columns: 1fr; }
  .style-preview { aspect-ratio: 16 / 9; }
  .flow-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proto-list li { grid-template-columns: 1fr; gap: 2px; }
  .sub-head { gap: 8px 14px; }
  .sub-grid { gap: 24px; }
}

@media (max-width: 560px) {
  .p-brand--lg { font-size: 2rem; }
  .p-nav a { font-size: 13.5px; }
  .p-user { font-size: 11px; }
  .p-user a { min-height: 40px; }

  .login-card { padding: 20px 16px; }
  .login-top { padding: 12px 20px; }

  .hall-sign { padding: 24px 20px 22px; }
  .hall-row { grid-template-columns: 28px minmax(0, 1fr); }
  .hall-body p { font-size: 0.875rem; }
  .hall-meta { gap: 6px 12px; }

  .p-head-meta { font-size: 10.5px; }
  .p-head .seg { max-width: none; }

  .sub-row .sub-fix { display: none; }
  .sub-row input { min-height: 50px; font-size: 14px; }
  .dns-row { grid-template-columns: 82px minmax(0, 1fr); padding: 8px 12px; }
  .dns-head { padding: 7px 12px; }

  .goal-card { padding: 14px; }
  .goal-text { font-size: 12px; }
  .run-head { padding: 12px 14px; }
  .run-log { padding: 10px 14px 14px; font-size: 11px; }

  .stages { grid-template-columns: 1fr 1fr; }
  .stage { padding: 10px 12px; }
  .stage-name { font-size: 10px; }

  .mini-site { min-height: 180px; padding: 18px 16px; }
  .mini-site .ms-title { font-size: clamp(1.25rem, 7vw, 1.875rem); }

  .pay-hero { padding: 18px 20px 24px; }
  .pay-hero h1 { font-size: clamp(1.625rem, 9vw, 2.25rem); }
  .pay-main { padding: 28px 20px 52px; }
  .tariff-card { padding: 18px; }

  .prof-aside { grid-template-columns: 1fr; }
  .prof-row { grid-template-columns: 1fr; gap: 2px; }
  .access-row { grid-template-columns: 1fr; }
  .access-row .btn { justify-self: start; }
  .key-box { padding: 16px; }

  .a-main { padding: 22px 20px 48px; }
  .review { padding: 14px; }
  .review-actions .btn { flex: 1 1 100%; }
  .state-frame { padding: 10px; }
  .state-ui { padding: 16px; }
  .state-actions .btn { flex: 1 1 auto; }

  .proto-main { padding: 24px 20px 48px; }
  .proto-facts { gap: 6px 14px; }
  .screen-row { padding: 14px 0; }
  .screen-body h2 { font-size: 1rem; }
  .flow-list { grid-template-columns: 1fr 1fr; }
  .flow-item { padding: 12px 10px; }

  .step { grid-template-columns: 24px minmax(0, 1fr); }
  .cmd-wrap { flex-wrap: wrap; }
  .cmd-wrap .cmd { flex: 1 1 100%; }
  .copy-cmd {
    width: 100%;
    min-height: 44px;
    border-left: 0;
    border-top: 1px solid var(--line-soft);
    text-align: left;
    padding: 10px 14px;
  }
  .quiz-opts { gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .screen-row,
  .hall-row,
  .work,
  .step,
  .style-card,
  .stage,
  .state-block,
  .flow-item,
  .access-row,
  .material,
  .tariff-card,
  .after-card { opacity: 1 !important; transform: none !important; }
}

/* --- карта шагов входа в кабинете --- */
.step-desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  max-width: 72ch;
  color: var(--line);
}
.step-artifact {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink);
}
.circle.is-current::before { background: var(--marker); }
.circle.is-current .circle-head { border-bottom-color: var(--marker); }
.circle.is-current .circle-state { color: var(--ink); font-weight: 600; }
.circle .halls { margin-top: 12px; }
.circle.is-locked .step-desc { color: var(--line); }
@media (max-width: 560px) {
  .step-desc { font-size: 0.875rem; }
  .circle .halls { gap: 8px; }
}

.next-lead {
  margin: 0 0 clamp(14px, 2vw, 22px);
  max-width: 62ch;
  font-size: clamp(1.0625rem, 1.5vw, 1.375rem);
  line-height: 1.4;
}
.works-head .next-link { color: var(--ink); }

.p-subtitle {
  margin: 0 0 clamp(14px, 2vw, 20px);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.p-section { margin-top: clamp(32px, 4vw, 52px); }
.crumbs--in { margin: 0; padding: 14px var(--pad) 0; }
.link-ink { color: var(--ink); }

/* --- утилиты и добор компонентов --- */
.cmd--prompt { white-space: pre-wrap; }
.lesson-cta .btn-submit {
  width: auto;
  max-width: none;
  margin-top: 0;
  min-height: 52px;
  padding: 0 clamp(20px, 2.4vw, 28px);
}
.a-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 16px var(--pad);
  border-top: 2px solid var(--line);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
}
.a-foot nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.a-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.state-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--cream);
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.state-actions--center { justify-content: center; }
.note--top { margin-top: 14px; }
.note--tight { margin-top: 12px; }
.note--inline { margin: 0; }
.checklist--flush { border-top: 0; }
.status-card--result { margin-top: 18px; }
.pay-hero .mono-label { color: var(--cream); }
.pay-pick-title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
}
.p-lead--gap { margin-bottom: clamp(24px, 3.2vw, 36px); }
.materials > h2 { margin: 0 0 6px; font-size: var(--d2); }
.materials > .note { margin-bottom: 14px; }
.a-panel-head--flush { border-bottom: 0; padding-left: 0; padding-right: 0; }
.a-students .note { margin-top: 12px; }
.state-ui--ink .field-error { color: var(--cream); }
.p-foot-bottom span:last-child { text-align: right; }

/* --- правки после первого просмотра скриншотов (09.11) --- */
.quiz-q {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.checklist { grid-template-columns: minmax(0, 1fr); }
.checklist > .check { min-width: 0; }
.check { min-width: 0; }
.statuses-legenda h2,
.hall-next h2 { font-weight: 600; }

@media (max-width: 640px) {
  .a-table { min-width: 0; }
  .a-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .a-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .a-table td { border: 0; padding: 1px 0; }
  .a-table td:nth-child(1) { font-weight: 600; }
  .a-table td:nth-child(2),
  .a-table td:nth-child(3),
  .a-table td:nth-child(4) { grid-column: 1; }
  .a-table td:nth-child(5) { grid-column: 2; grid-row: 1 / span 4; align-self: center; }
  .a-table td:nth-child(2)::before { content: "тариф: "; font-family: var(--mono); font-size: 10px; color: var(--line); }
  .a-table td:nth-child(3)::before { content: "прогресс: "; font-family: var(--mono); font-size: 10px; color: var(--line); }
  .a-table td:nth-child(4)::before { content: "доступ: "; font-family: var(--mono); font-size: 10px; color: var(--line); }
}

@media (max-width: 560px) {
  .hall-sign h1 { font-size: clamp(1.375rem, 7vw, 2.5rem); }
}

@media (max-width: 640px) {
  .a-table tr.is-focus td { background: transparent; }
  .a-table tr.is-focus { background: var(--cream); }
}

/* ============================================================
   Дописано UI-сессией каркаса М1 (09.11.2026), существующие
   правила выше не менялись. Новые имена не заводим: только
   привязка существующих классов к живым страницам.
   ============================================================ */

/* .p-thin: ширина ступенью по 10% — без инлайн-стиля из прототипа */
.p-thin span.p0 { width: 0; }
.p-thin span.p10 { width: 10%; }
.p-thin span.p20 { width: 20%; }
.p-thin span.p30 { width: 30%; }
.p-thin span.p40 { width: 40%; }
.p-thin span.p50 { width: 50%; }
.p-thin span.p60 { width: 60%; }
.p-thin span.p70 { width: 70%; }
.p-thin span.p80 { width: 80%; }
.p-thin span.p90 { width: 90%; }
.p-thin span.p100 { width: 100%; }

/* очередь админки: строки — ссылки, а не кнопки */
a.queue-row { color: inherit; text-decoration: none; }
a.queue-row:hover .queue-name { text-decoration: underline; text-underline-offset: 3px; }

/* ссылка на видео внутри плеера */
a.play { text-decoration: none; }

/* замечания урока: несколько .note из blocks в одном блоке .warn */
.warn p + p { margin-top: 10px; }

/* многострочные команды урока: переводы строк из данных видны как в терминале */
.cmd { white-space: pre-wrap; }

/* токен из прототипа: в скопированной версии style.css его не было,
   а правила выше уже на него ссылаются (маркер «готово», пломба, текущий круг) */
:root { --marker: #d2691e; }

/* экран входа в Упряжку: список в карточке без нижнего отступа,
   отступ между кнопкой и подписью под ней */
.state-ui .aside-list { margin-bottom: 0; }
.state-ui form + .note { margin-top: 12px; }
