/* ─── Refresh pass — overrides styles.css for the cut-down landing ─── */

/* 1. Type system: Spectral (serif display) + IBM Plex Sans (body) + IBM Plex Mono */
:root {
  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-body:    "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-serif:   "Spectral", Georgia, serif;
}
[data-fontpair="modern"],
[data-fontpair="contrast"],
[data-fontpair="book"],
[data-fontpair="mono"] {
  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-body:    "IBM Plex Sans", system-ui, sans-serif;
}

body {
  font-feature-settings: normal;
}

/* Display headings — serif with italic emphasis */
.h-display, .h1, .h2, .h3,
.dir .name,
.face-name, .step .ttl,
.event-title, .ed-month, .ed-day,
.faq-list summary,
.cta-banner h2,
.app-h, .word .a, .word .b,
.rc-card-title, .rc-card-meta dd,
.kc-latin, .kc-dir-name,
.brand,
.lm-label,
.face-q, .testi blockquote,
.dir-title {
  font-family: var(--font-display);
  font-feature-settings: "ss01";
}

.h-display {
  margin: 0;
  font-weight: 600;
  font-size: clamp(2rem, 1.1rem + 2.6vw, 3.9rem);
  letter-spacing: -0.02em;
  line-height: 1.04;
  text-wrap: balance;
}
.h-display em,
.hm-quote em,
.hm-yes em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  font-feature-settings: "ss01";
}

.h1 {
  font-weight: 600;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem);
  letter-spacing: -0.014em;
  line-height: 1.05;
}

/* Brand mark — keep sans for the disc */
.brand .mark { font-family: var(--font-body); font-weight: 700; }
.brand > span:last-child { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.004em; }

/* Buttons — sans, tighter */
.btn {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: -0.004em;
}

/* Nav links */
.nav-links a { font-family: var(--font-body); letter-spacing: -0.002em; }
/* Scoped to beat `.nav-links a` specificity — otherwise the pill's label
   inherits --ink-2 and goes dark-on-dark against its --ink background. */
.nav-links a.nav-cta,
.nav-links a.nav-cta:hover { font-family: var(--font-body); font-weight: 500; color: #F3ECE0; } /* фон кнопки терракотовый в обеих темах (styles.css), а --bg в тёмной теме тёмный: текст пропадал */


/* 2. Hero — tighter, fits CTA in first screen */
/* Cap the height so a short hero isn't lost in a full-viewport cavern,
   while still filling most of the first screen on laptops. */
.hero { padding-top: 24px; padding-bottom: 48px; min-height: min(82vh, 680px); display: flex; align-items: center; }
.hero .wrap { width: 100%; }
.hero-top {
  grid-template-columns: 1.2fr .8fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 0;
}
/* Even, deliberate rhythm — flex gap is the single source of vertical spacing,
   so children must not add their own (UA) margins on top of it. */
.hero-meta { gap: 20px; padding-top: 0; min-width: 0; }
.hero-meta > * { margin: 0; }
/* Heading must never spill past its grid track into the manifest card —
   min-width:0 lets the track shrink, max-width:100% + wrapping keep text in. */
.h-display { max-width: 100%; overflow-wrap: break-word; }
.hero-cta { margin-top: 8px; }
.hero .lead { font-size: clamp(1.04rem, .94rem + .42vw, 1.24rem); max-width: 46ch; }

/* Hero manifest aside (replaces stock-photo mosaic) */
.hero-manifest {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.hero-manifest::before {
  content: "";
  position: absolute;
  top: -1px; left: 30px;
  width: 48px; height: 3px;
  background: var(--accent);
}
.hm-eyebrow {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hm-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.hm-list li {
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.3;
  color: var(--ink);
  display: flex;
  gap: 12px;
  align-items: baseline;
  text-wrap: pretty;
}
.hm-list li em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}
.hm-yes {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  width: 14px;
  flex-shrink: 0;
  line-height: 1;
  color: var(--accent);
}

@media (max-width: 920px) {
  .hero { min-height: 0; padding-top: 32px; padding-bottom: 40px; }
  .hero-top { grid-template-columns: 1fr; gap: 32px; }
}


/* 3. Direction cards — typographic, no SVG glyphs */
/* 9 directions → 3×3 grid: three even rows, no lonely card on its own row. */
.dir-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 880px) { .dir-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .dir-grid { grid-template-columns: 1fr; } }

.dir {
  padding: 24px 24px 20px;
  min-height: 280px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0;
  transition: border-color .25s, transform .25s, background .25s;
}
.dir > .num {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .18em;
  color: var(--ink-3);
  align-self: start;
}
.dir-glyph {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 0 14px;
  pointer-events: none;
}
.dir-glyph span {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(5rem, 4rem + 3vw, 7rem);
  line-height: .82;
  letter-spacing: -0.04em;
  color: var(--ink);
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink) 65%, var(--accent) 65%, var(--accent) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform .35s cubic-bezier(.18,.74,.22,1);
}
.dir:hover .dir-glyph span { transform: translateY(-2px); }

.dir-body { display: flex; flex-direction: column; gap: 8px; }
.dir-cat {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.dir .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.012em;
  line-height: 1.05;
  margin: 0;
}
.dir .desc {
  font-family: var(--font-body);
  font-size: .88rem;
  color: var(--ink-2);
  line-height: 1.45;
  margin: 4px 0 0;
  text-wrap: pretty;
}
.dir .meta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dir .meta .cat {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.dir .meta .cnt {
  font-family: var(--font-mono);
  font-size: .9rem;
  color: var(--ink-3);
}
a.dir:hover .meta .cnt { color: var(--accent); transform: translateX(3px); }
.dir .meta .cnt { transition: transform .2s, color .2s; }

/* Active vs. forming */
.dir.is-soon { opacity: .82; }
.dir.is-soon::after {
  content: "формируется";
  position: absolute;
  top: 22px; right: 24px;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
}

/* Active direction (Неглинка) — subtle accent */
a.dir:not(.is-soon) {
  border-color: var(--ink);
  position: relative;
}
a.dir:not(.is-soon)::after {
  content: "идёт набор";
  position: absolute;
  top: 22px; right: 24px;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
a.dir:not(.is-soon):hover { transform: translateY(-2px); }


/* 5. Method steps — adjust */
.step .ttl { font-weight: 600; letter-spacing: -0.008em; }


/* 6. FAQ summary — serif */
.faq-list summary { font-weight: 500; letter-spacing: -0.008em; }


/* 7. CTA — serif headline */
.cta-banner h2 { font-weight: 600; letter-spacing: -0.012em; }


/* 8. Section breathing */
section { padding-top: calc(88px * var(--dens)); padding-bottom: calc(88px * var(--dens)); }
section.tight { padding-top: calc(48px * var(--dens)); padding-bottom: calc(48px * var(--dens)); }
.sec-head { margin-bottom: 40px; }


/* 9. Hero pill — sans for "26 сентября", no wrap */
.hero-pill b { font-family: var(--font-body); font-weight: 600; }
.hero-pill { white-space: nowrap; }

/* Nav layout — keep on one line on common widths */
.brand { white-space: nowrap; flex-shrink: 0; }
.nav-links { gap: 22px; }
.nav-links a { white-space: nowrap; }
@media (max-width: 1080px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: .88rem; }
}
@media (max-width: 960px) {
  .nav-links a:not(.nav-cta):nth-child(3) { display: none; }
}


/* 10. Eyebrow → keep mono but slightly smaller */
.eyebrow { font-size: .68rem; letter-spacing: .18em; }


/* 11. Footer brand */
.foot h4 { font-family: var(--font-body); }


/* 12. Drop heavy reveal on everything but key elements is handled in HTML */


/* 13. Опорный круг — фрейминг через новую типографику */
#cross { background: var(--bg); }
#cross .h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.cross-note {
  margin: 32px auto 0;
  padding: 18px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .94rem;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 640px;
  text-align: center;
  text-wrap: pretty;
}
.cross-note .mono {
  display: inline-block;
  margin-right: 8px;
  color: var(--ink);
  font-weight: 500;
}
.cross-note em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  font-size: 1.04em;
}

/* Тоньше визуально — карточки опоры с серифным заголовком */
.rc-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: normal;
  letter-spacing: .04em;
}
.rc-card-meta dd {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
}

/* Центральный круг без фотографии — больше воздуха для SVG */
.rc-center { min-height: 220px; }
.rc-svg { max-width: 220px; max-height: 220px; }

/* Подвал круга — серифный италик */
.rc-foot {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: -0.008em;
}
.rc-foot-r { font-style: normal; font-weight: 600; color: var(--ink); }


/* ─── Direction page: logo plate + kicker (Граника) ───────────────── */
.dir-hero-id {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.dir-hero-id .dir-title { margin: 0; }
/* Let the title/kicker column shrink so a long kicker wraps instead of
   forcing the hero wider than the viewport (horizontal overflow on mobile). */
.dir-hero-id > :not(.dir-logo) { min-width: 0; }
.dir-kicker { overflow-wrap: break-word; }
.dir-logo {
  width: 116px; height: 116px;
  flex-shrink: 0;
  border-radius: 22px;
  /* Подложка под эмблемой светлая всегда: --paper переворачивается вместе
     с темой, и тёмные эмблемы ложились на тёмную плитку. */
  background: var(--na-tyomnoy, var(--paper));
  border: 1px solid var(--line);
  display: grid; place-items: center;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(26,23,20,.06);
}
.dir-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dir-kicker {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 10px;
}
@media (max-width: 560px) {
  .dir-logo { width: 76px; height: 76px; border-radius: 16px; }
  .dir-hero-id { gap: 16px; }
}

/* "Для кого" rows */
.for-row {
  display: flex; gap: 10px; align-items: baseline;
  font-size: .92rem; line-height: 1.4; color: var(--ink);
}
.for-mark { color: var(--accent); flex-shrink: 0; font-size: .8rem; }
@media (max-width: 560px) {
  .for-row { font-size: .88rem; }
}

/* (моб. коллапс сетки «Чем занимаемся» — см. .fmt-grid в разделе
   «Компоненты страниц управлений» внизу файла) */

/* Mobile overflow fix (applies to Неглинка + Граника dashboards): grid/flex
   children default to min-width:auto = min-content, so long event/material text
   forces the column — and the whole page — wider than the viewport. Let them
   shrink so the text wraps instead. */
.dash, .dash > .col { min-width: 0; }
.ev .body, .mat .ti { min-width: 0; }

/* ─── Direction card: logo glyph + leader line ────────────────────── */
.dir-glyph.has-logo {
  padding: 6px 0 12px;
}
.dir-glyph.has-logo img {
  width: 76px; height: 76px;
  object-fit: contain;
  display: block;
}
.dir-lead {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .03em;
  color: var(--ink-3);
  margin-top: 12px;
}
.dir-lead b { color: var(--ink-2); font-weight: 500; }


/* ─── Brand mark as ЯСНА emblem image (шапка и подвал — одинаково) ── */
.brand img.mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line);
  font-size: 0;
}

/* ─── Бренд-локап: имя + описание под ним ──────────────────────────
   Один и тот же блок в шапке и в подвале всех страниц. */
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.15;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.004em;
  color: var(--ink);
}
.brand-sub {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: .58rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-3);
}
/* Ниже ~360px локап упирается в кнопку «Вступить» — прячем подпись.
   На 375px зазор ещё 48px, поэтому обычные телефоны её видят. */
@media (max-width: 359px) {
  .brand-sub { display: none; }
}


/* ─── Wordmark logo (ЛитПроСвет) — wider than an emblem; it carries the
   name itself, so the text .name is hidden on this card. ──────────────── */
.dir-glyph.has-wordmark {
  min-height: 76px;
  padding: 8px 0 12px;
  align-items: center;
  justify-content: flex-start;
}
.dir-glyph.has-wordmark img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 52px;
  object-fit: contain;
}
.dir.is-wordmark .name { display: none; }


/* ─── Tile logo (Ясна-Школа) — colored emblem on its own background,
   shown as a rounded app-icon-style badge. ───────────────────────────── */
.dir-glyph.has-tile { padding: 6px 0 12px; }
.dir-glyph.has-tile img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(26,23,20,.10);
}


/* ─── Alexandria page: photo gallery, video, voices ───────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 20px 24px 24px;
}
.photo-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  background: var(--bg-deep);
}
@media (max-width: 680px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid img { height: 150px; }
  /* Нечётное число снимков оставляет последний одиноко в ряду — растягиваем
     его на обе колонки, иначе рядом зияет пустая клетка. */
  .photo-grid img:last-child:nth-child(odd) { grid-column: span 2; height: 190px; }
}

.video-box {
  padding: 22px 24px 24px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.video-box video {
  width: min(300px, 100%);
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  background: #000;
  flex-shrink: 0;
}
.video-note { flex: 1; min-width: 220px; }

.voice { padding: 20px 24px; border-bottom: 1px solid var(--line); }
.voice:last-child { border-bottom: 0; }
.voice blockquote {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.5;
  font-style: italic;
  color: var(--ink);
  text-wrap: pretty;
}
.voice-by {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
}


/* ─── Обращение (вместо событийного баннера) ──────────────────────── */
.appeal {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 58px clamp(24px, 7vw, 100px) 54px;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.appeal::before {
  content: "";
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 64px; height: 3px;
  background: var(--accent);
}
.appeal-emblem {
  width: 74px; height: 74px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 0 0 7px color-mix(in oklab, var(--accent) 10%, transparent);
}
.appeal-emblem img { width: 100%; height: 100%; object-fit: cover; display: block; }
.appeal-eyebrow {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 30px;
}
.appeal-invoc { display: flex; flex-direction: column; gap: 8px; margin-bottom: 38px; }
.appeal-invoc p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 1rem + 1vw, 1.62rem);
  letter-spacing: -0.012em;
  line-height: 1.3;
  text-wrap: balance;
}
.appeal-invoc p em { font-style: italic; font-weight: 500; color: var(--accent); }
.appeal-body { max-width: 60ch; margin: 0 auto; text-align: left; }
.appeal-body p {
  margin: 0 0 18px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-2);
  text-wrap: pretty;
}
.appeal-body p:last-child { margin-bottom: 0; }
.appeal-body b { font-weight: 600; color: var(--ink); }
/* Буквица в первом абзаце */
.appeal-lead p:first-child::first-letter {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 3.1em;
  line-height: .82;
  float: left;
  padding: 6px 12px 0 0;
  color: var(--accent);
}
.appeal-accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.35rem, 1.15rem + 1.2vw, 1.9rem);
  line-height: 1.35;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-align: center;
  max-width: 26ch;
  margin: 36px auto;
  text-wrap: balance;
}
.appeal-accent .gold { color: var(--accent); }
.appeal-final { margin-bottom: 6px; }
@media (max-width: 560px) {
  .appeal { padding-top: 44px; padding-bottom: 40px; }
  .appeal-invoc { margin-bottom: 28px; }
  .appeal-accent { margin: 28px auto; }
}


/* ═══════════════════════════════════════════════════════════════════
   КОМПОНЕНТЫ СТРАНИЦ УПРАВЛЕНИЙ
   Единые классы вместо inline-стилей. Используются на neglinka /
   granika / alexandria. Новую страницу управления собирайте из них.
   ═══════════════════════════════════════════════════════════════════ */

/* Сетка «Чем занимаемся» — 4 формата работы */
.fmt-grid {
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 760px) { .fmt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .fmt-grid { grid-template-columns: 1fr; } }
.fmt-num {
  font-family: var(--font-mono);
  color: var(--accent);
  letter-spacing: .12em;
  margin-bottom: 10px;
}
.fmt-title {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.fmt-desc { margin: 0; font-size: .88rem; color: var(--ink-2); line-height: 1.5; }

/* Панель «Об управлении» */
.about-body { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.about-text { margin: 0; font-size: 1.02rem; line-height: 1.6; color: var(--ink); }
.mission-box { padding: 18px 20px; background: var(--bg-deep); border-radius: var(--radius); }
.mission-text {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.4;
  font-style: italic;
}
.unique-text { margin: 0; font-size: .94rem; line-height: 1.55; color: var(--ink-2); }
.label-accent, .label-muted {
  font-family: var(--font-mono);
  letter-spacing: .12em;
  font-size: .7rem;
  margin-bottom: 8px;
}
.label-accent { color: var(--accent); }
.label-muted { color: var(--ink-3); }

/* Панель «Как присоединиться» — шаги I/II/III */
.join-body { padding: 22px 24px; display: flex; flex-direction: column; gap: 18px; }
.join-step { display: flex; gap: 14px; align-items: flex-start; }
.join-num {
  font-family: var(--font-mono);
  color: var(--accent);
  letter-spacing: .12em;
  flex-shrink: 0;
}
.join-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
}
.join-desc { margin: 0; font-size: .86rem; color: var(--ink-2); line-height: 1.5; }
.join-cta { margin-top: 6px; justify-content: center; }

/* ─── Критерии приёма в управление ────────────────────────────────
   Общий блок для страниц управлений: ставится панелью над «Как
   присоединиться», чтобы сначала читали, что нужно, потом — как.
   Уровни разведены группами, а не ярлыком у каждой строки: с первого
   взгляда видно, что обязательного мало. Уровень держится и формой
   маркера (сплошной — обязательно, полый — желательно), не только
   цветом. Особый путь — отдельной заметкой внизу.
   Первая панель — на странице Граники; остальным управлениям хватит
   той же разметки со своими строками. */
.krit-body { padding: 20px 24px 22px; display: flex; flex-direction: column; gap: 18px; }
.krit-lead { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--ink-2); }
.krit-lead b { color: var(--ink); font-weight: 600; }
.krit-group { display: flex; flex-direction: column; gap: 10px; }
.krit-label {
  display: flex; align-items: baseline; gap: 8px; margin: 0;
  font-family: var(--font-mono); font-size: .7rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
}
.krit-group--must .krit-label { color: var(--accent); }
.krit-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.krit-list li { position: relative; padding-left: 20px; font-size: .92rem; line-height: 1.45; color: var(--ink); }
.krit-list li::before {
  content: ""; position: absolute; left: 1px; top: calc(.725em - 4px);
  width: 8px; height: 8px; border-radius: 50%; box-sizing: border-box;
}
.krit-group--must li::before { background: var(--accent); }
.krit-group--nice li::before { border: 1.5px solid var(--ink-3); }
.krit-list a {
  color: inherit; text-decoration: underline;
  text-decoration-color: var(--line-strong); text-underline-offset: 3px;
}
.krit-list a:hover { text-decoration-color: currentColor; }
/* Вложенный перечень внутри строки — например, конкретные уроки.
   Без своего маркера: уровень задаёт строка-родитель. */
.krit-sub { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.krit-list .krit-sub li { padding-left: 0; font-size: .84rem; line-height: 1.4; color: var(--ink-2); }
.krit-list .krit-sub li::before { content: none; }
.krit-foot { margin: -4px 0 0; font-size: .78rem; line-height: 1.45; color: var(--ink-3); }
/* Заметка тонируется от чернил, а не своим цветом: чернила
   переворачиваются с темой, и подложка остаётся тише текста в обеих. */
.krit-note {
  margin: 0; padding: 14px 16px; border-radius: 10px;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  font-size: .86rem; line-height: 1.5; color: var(--ink-2);
}
.krit-note b { display: block; margin-bottom: 3px; color: var(--ink); font-weight: 600; }

/* Панель «Формат» — строки ключ-значение */
.kv-list { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.kv-row { display: flex; justify-content: space-between; gap: 16px; font-size: .92rem; }
.kv-row .kv-val { font-family: var(--font-display); text-align: right; }
.kv-line { height: 1px; background: var(--line); }


/* ─── Большой лист — событийный блок под Обращением ──────────────────── */
.day-banner {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(28px, 5vw, 64px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px);
}
@media (max-width: 920px) { .day-banner { grid-template-columns: 1fr; } }
.day-tag {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.day-date { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.day-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(4rem, 3rem + 4vw, 6rem);
  line-height: .9;
  letter-spacing: -0.03em;
}
.day-meta { display: flex; flex-direction: column; gap: 4px; }
.day-meta b {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.day-meta span {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.day-lead { margin: 0 0 24px; font-size: 1rem; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }
.day-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.day-eyebrow {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.day-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem);
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0 0 20px;
}
.day-title .dim { color: var(--ink-3); font-weight: 500; }
.day-prog { list-style: none; margin: 0; padding: 0; counter-reset: prog; }
.day-prog li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.day-prog li:first-child { border-top: 0; padding-top: 0; }
.day-prog .t {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--accent);
  text-transform: uppercase;
  flex-shrink: 0;
  width: 74px;
}
.day-prog b {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.04rem;
  letter-spacing: -0.008em;
  margin-bottom: 2px;
}
.day-prog p { margin: 0; font-size: .88rem; line-height: 1.5; color: var(--ink-2); }
.day-note {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: .86rem;
  color: var(--ink-3);
}


/* Пилюля-ссылка у человека в списке .coord (TG руководителя и т.п.) */
.coord .link{padding:6px 12px;border:1px solid var(--line-strong);border-radius:999px;font-size:.74rem;font-family:var(--font-mono);letter-spacing:.06em;color:var(--ink-2);transition:background .15s,color .15s;white-space:nowrap}
.coord .link:hover{background:var(--ink);color:var(--bg);border-color:var(--ink)}


/* Аватар-фото в списке людей (.coord) — вместо инициалов */
.av.av-photo { overflow: hidden; padding: 0; }
.av.av-photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }


/* ─── Промо-ролик в hero страницы управления (Александрия) ─────────── */
.promo-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(26,23,20,.12);
  border: 1px solid var(--line);
  background: #f7f3ea;
  line-height: 0;
}
.promo-video { width: 100%; height: auto; display: block; }
.promo-sound {
  position: absolute;
  right: 12px; bottom: 12px;
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(26,23,20,.72);
  color: #fbfaf6;
  font-family: var(--font-body);
  font-size: .8rem;
  cursor: pointer;
  line-height: 1;
  transition: background .2s;
}
.promo-sound:hover { background: rgba(26,23,20,.9); }

/* Статистика строкой под hero (когда правую колонку занял ролик) */
.dir-stats-row {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 28px;
}
.dir-stats-row .dir-stat { border-bottom: 0; }
.dir-stats-row .dir-stat:nth-child(2n) { border-right: 1px solid var(--line); }
.dir-stats-row .dir-stat:last-child { border-right: 0; }
@media (max-width: 720px) {
  .dir-stats-row { grid-template-columns: repeat(2, 1fr); }
  .dir-stats-row .dir-stat:nth-child(2n) { border-right: 0; }
  .dir-stats-row .dir-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}


/* ─── Панель «Узоры родовой памяти» — два вертикальных видео рядом ── */
.video-duo-intro { padding: 20px 24px 0; }
.video-duo-intro p { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.video-duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: 20px 24px 24px;
}
.video-duo figure { margin: 0; }
.video-duo video {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  background: #000;
  display: block;
}
.video-duo figcaption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.video-duo .dur-tag { color: var(--accent); }
@media (max-width: 480px) {
  .video-duo { grid-template-columns: 1fr; }
}


/* ─── Уважение к prefers-reduced-motion ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  /* показываем скрытые reveal-блоки сразу, без появления */
  .reveal { opacity: 1 !important; transform: none !important; }
}


/* ─── Каналы управления (Неглинка) ───────────────────────────────── */
/* Колонки считаем от ширины ПАНЕЛИ, а не от числа каналов.

   Было repeat(3, 1fr). 1fr — это minmax(auto, 1fr): колонка не сжимается ниже
   своего содержимого, а «Астроневод» дисплейным шрифтом плюс поля требует
   ~132px. Три такие колонки просят 443px, тогда как панель в правой колонке
   даёт 301px на 1024 и 367px на 1280. Панель обрезает по overflow:hidden —
   и третий канал («Дзен») уезжал за край: ни прокрутки, ни подсказки, что там
   что-то есть. Замерено: не влезало 142px на 1024 и 76px на 1280.

   auto-fit сам решает, сколько колонок поместится: три в широкой панели, две
   в узкой, одна на телефоне. minmax(0, …) снизу разрешает сжатие. */
.chan-grid {
  display: grid;
  /* Нижняя граница дорожки — не меньше трети панели, поэтому колонок
     никогда не больше трёх. Без этого auto-fit раскладывал пять узких
     дорожек под три канала, и справа зияла пустота. */
  grid-template-columns: repeat(auto-fit, minmax(max(124px, (100% - 24px) / 3), 1fr));
  gap: 12px;
  padding: 20px 24px 24px;
}
/* длинное название канала переносится, а не распирает колонку */
.chan { min-width: 0; }
.chan-name { overflow-wrap: anywhere; }
@media (max-width: 680px) { .chan-grid { grid-template-columns: 1fr; } }
/* Если последняя карточка осталась в ряду одна — растягиваем её на всю ширину,
   чтобы не висела сиротой рядом с двумя пустыми ячейками (так вышло с седьмым
   каналом). Правило общее: сработает и при 10-м, 13-м и т.д. */
.chan-grid > *:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
.chan {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color .2s, transform .2s;
}
.chan:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.chan-plat {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
/* Значок площадки — фирменный знак, поэтому цветом не управляем и при
   наведении не перекрашиваем: подпись теплеет, знак остаётся собой.
   Коробка квадратная, знак вписывается: у ютуба логотип широкий, у прочих
   квадратный, contain держит их на одной оптической высоте. */
.chan-ico {
  width: 16px; height: 16px; flex: none;
  object-fit: contain;
}
.chan:hover .chan-plat { color: var(--accent); }
.chan-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--ink);
}
.chan-go {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .06em;
  color: var(--accent);
  margin-top: 4px;
}


/* ─── Блок «Как участвовать» — четыре пути ────────────────────────── */
.ways-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1000px) { .ways-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .ways-grid { grid-template-columns: 1fr; } }
.way {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 24px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .25s, transform .25s;
}
.way:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.way-num {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .18em;
  color: var(--ink-3);
}
.way-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.24rem;
  letter-spacing: -0.012em;
  line-height: 1.1;
  margin: 2px 0 0;
}
.way-desc {
  font-size: .88rem;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 0;
  text-wrap: pretty;
  flex: 1;
}
.way-link {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--accent);
  margin-top: 8px;
}
.way-link:hover { color: var(--ink); }

/* Надстройка в подвале */



/* Честная сноска о текущем состоянии управления */
.dir-note-quiet {
  margin: 28px 0 0;
  padding: 18px 22px;
  background: var(--bg-deep);
  border-radius: var(--radius);
  font-size: .92rem;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 760px;
}

/* Карточка управления: работает, но набор не ведётся */
a.dir.is-quiet::after {
  content: "работает";
  color: var(--ink-3);
}


/* ─── Страница заявки ─────────────────────────────────────────────── */
.zv-head { max-width: 620px; }
.zv-head .dir-title { margin-bottom: 16px; }
.zv-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 980px) { .zv-layout { grid-template-columns: 1fr; } }

/* Форма заявки встроена как Яндекс.Форма (iframe). Точка монтирования —
   .zv-mount; iframe создаётся скриптом внизу zayavka.html, embed.js
   подгоняет высоту. Пока форма грузится — показываем .zv-loading. */
.zv-mount { padding: 20px 20px 8px; min-height: 520px; }
.zv-mount iframe { width: 100%; border: 0; display: block; }
.zv-loading {
  margin: 0; padding: 24px 4px;
  font-family: var(--font-mono); font-size: .82rem;
  letter-spacing: .04em; color: var(--ink-3); line-height: 1.6;
}
.zv-loading a { color: var(--accent); white-space: nowrap; }
.zv-chan { grid-template-columns: 1fr; }

/* ─── МОБИЛЬНАЯ ГИГИЕНА ВНУТРЕННИХ СТРАНИЦ ─────────────────────────── */
/* styles.css:136 скрывает на ≤760px ВСЕ ссылки шапки, а бургера на этих
   страницах нет: на zayavka.html не остаётся ни одной (0 видимых ссылок).
   Возвращаем их второй строкой — горизонтально прокручиваемой лентой.
   Sticky на телефоне снимаем: две строки шапки съедали бы 14% экрана. */
@media (max-width: 760px) {
  .nav { position: static; }
  .nav-row { height: auto; flex-wrap: wrap; row-gap: 4px; padding-top: 8px; padding-bottom: 6px; }
  /* Ссылки шапки на телефоне живут в раскрывающемся списке — см. блок
     «ШАПКА НА ТЕЛЕФОНЕ» в конце файла. Здесь остаётся только базовое. */
  .nav-links { order: 3; width: 100%; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a:not(.nav-cta),
  .nav-links a:not(.nav-cta):nth-child(3) {
    display: inline-flex; align-items: center;
    min-height: 32px; flex: 0 0 auto; font-size: .86rem;
  }
  .nav-links a.nav-cta { order: -1; flex: 0 0 auto; padding: 8px 14px; }
}
@media (min-width: 761px) and (max-width: 960px) {
  /* порог 960px прятал «Управления» при 283.9px свободного места в строке */
  .nav-links a:not(.nav-cta):nth-child(3) { display: inline; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: .84rem; }
}
/* Точку в .strip нельзя сжимать: без flex-shrink:0 на 375px она превращалась
   в серп 2.2x7px. Ниже 680px пилюля с тремя строками текста — уже карточка. */
.strip .dot { flex-shrink: 0; }
@media (max-width: 680px) {
  .strip { border-radius: var(--radius); align-items: flex-start; padding: 14px 16px; gap: 10px; flex-wrap: wrap; }
  .strip > span:nth-child(2) { flex: 1 1 100%; order: 2; }
  .strip .dot { order: 1; margin-top: 7px; }
  .strip > a { order: 3; }
}
/* Панель «Для кого»: сетка задана инлайном в granika.html:193 и
   yasna-shkola.html:236 — перебить её можно только !important.
   Два столбца на 375px давали меру ~11 знаков в строке. */
@media (max-width: 620px) {
  .panel-body:has(.for-row) { grid-template-columns: 1fr !important; padding: 20px !important; }
}
@media (max-width: 560px) {
  /* подпись панели уходит на свою строку только когда не влезает */
  .panel-head { flex-wrap: wrap; row-gap: 4px; padding: 18px 20px 12px; }
  /* тач-цели подвала: 19px при шаге 32px, а среди ссылок два телефона */
  .foot ul { gap: 2px; }
  .foot ul a { display: inline-flex; align-items: center; min-height: 40px; }
}
.kv-row .kv-val a { display: inline-flex; align-items: center; min-height: 32px; }
/* .fmt-num печатался унаследованным 1rem и спорил по кеглю с .fmt-title 16.8px */
.fmt-num { font-size: .68rem; }


/* ─── Граника: видео с VK Видео (плеер грузится по клику) ────────── */
.vk-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 20px 24px 24px;
}
.vk-item { margin: 0; }
.vk-play {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-deep);
  cursor: pointer;
}
/* contain, а не cover: два ролика сняты вертикально (9:16). При cover
   от них остаётся середина; плеер VK покажет их так же — с полями. */
.vk-play img { width: 100%; height: 100%; object-fit: contain; display: block; background: #17140f; }
.vk-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
  background: rgba(26, 23, 20, .22);
  transition: background .25s ease;
}
@media (hover: hover) {
  .vk-play:hover .vk-mark { background: rgba(26, 23, 20, .38); }
}
.vk-play:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.vk-item iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  display: block;
  background: #000;
}
.vk-item figcaption {
  margin-top: 10px;
  font-size: .92rem;
  color: var(--ink);
}
.vk-dur { color: var(--accent); font-family: var(--font-mono); font-size: .78rem; }
@media (max-width: 680px) {
  .vk-grid { grid-template-columns: 1fr; }
}


/* Запасной способ связи на странице заявки — виден всегда, на случай,
   если Яндекс-форма не поднялась или её отрезал блокировщик. */
.zv-fallback {
  margin: 0;
  padding: 0 24px 14px;
  font-size: .92rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.zv-fallback a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }


/* Ссылка «к содержанию»: не видна, пока не получила фокус с клавиатуры. */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: var(--bg);
  border-radius: 0 0 8px 0; font-size: 14px; text-decoration: none;
}
.skip:focus { left: 0; }


/* Подпись «Ведёт · Имя» в карточке урока. С отчествами самое длинное имя
   не помещается рядом с меткой и разрывалось посередине. Теперь метка
   и имя переносятся целиком: имя уходит на свою строку неразрывным. */
.res .ft { flex-wrap: wrap; gap: 2px 10px; }
.res .ft > span:last-child { white-space: nowrap; }


/* Плитки статистики в шапке управления. С отчествами длинное имя
   (ФИО руководителя целиком) перестало помещаться: 1fr — это
   minmax(auto,1fr), колонка не сжимается ниже самого длинного слова
   и растягивала шапку за край экрана. Разрешаем сжатие и перенос. */
.dir-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dir-stat { min-width: 0; }
.dir-stat .val { overflow-wrap: anywhere; line-height: 1.15; }



/* На 761–830px показываются все пять пунктов, а марка с подписью
   «Интеграционный центр» шире, чем на страницах управлений, — строка
   не помещалась и уезжала за край на 27px. Ужимаем просветы и кегль.
   После переименования в «Управления» строка стала короче на 9px, но
   у 768px оставался хвост в 1.8px — отсюда просвет 7px вместо 9px. */
@media (min-width: 761px) and (max-width: 830px) {
  .nav-links { gap: 7px; }
  .nav-links a { font-size: .8rem; }
  .nav-links a.nav-cta { padding: 8px 12px; }
}

/* ─── Карточка натурного урока раскрывается ─────────────────────────
   Сводка в свёрнутом виде повторяет прежнюю карточку .res, внутри —
   перечень вопросов со слайда-описания презентации, управление ведущего
   и категория урока. Значок «плюс» повторяет тот, что в блоке вопросов
   на главной (.faq-list summary .pl), но живёт в своей раскладке: там
   summary — строка, здесь — колонка. */
/* Нечётное число связанных управлений оставляло последнюю карточку одну
   в ряду из двух колонок — растягиваем её на всю ширину. */
.rel-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 680px) { .rel-grid > :last-child:nth-child(odd) { grid-column: auto; } }

/* Карточки в строке больше не тянутся по высоте соседа: иначе раскрытая
   карточка раздувала закрытую, и подпись «Ведёт» повисала у неё внизу
   на пустом месте (из-за margin-top:auto у .ft). */
.res-grid { align-items: start; }
.res-grid details.res { display: flex; flex-direction: column; }
.res-grid summary.res-sum {
  display: flex; flex-direction: column; gap: 8px;
  cursor: pointer; list-style: none; position: relative; padding-right: 28px;
}
.res-grid summary.res-sum::-webkit-details-marker { display: none; }
.res-grid summary.res-sum::marker { content: ""; }
.res-sum .pl {
  position: absolute; top: 1px; right: 0; width: 20px; height: 20px;
  border: 1px solid var(--line-strong); border-radius: 50%;
}
.res-sum .pl::before, .res-sum .pl::after {
  content: ""; position: absolute; background: var(--ink);
  left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.res-sum .pl::before { width: 9px; height: 1.5px; }
.res-sum .pl::after  { width: 1.5px; height: 9px; transition: transform .2s, opacity .2s; }
details.res[open] .pl::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
details.res[open] { border-color: var(--line-strong); }
/* Подъём карточки при наведении мешает читать раскрытую — гасим */
details.res[open]:hover { transform: none; }

.res-more {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line);
}
.res-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.res-chip { font-size: .72rem; padding: 3px 9px; }
a.res-chip { text-decoration: none; }
a.res-chip:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.res-cat { font-family: var(--font-mono); letter-spacing: .03em; color: var(--ink-3); }
.res-sub {
  margin: 0; font-family: var(--font-display); font-style: italic;
  font-size: .88rem; color: var(--ink-2); line-height: 1.4;
}
.res-q-lbl {
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3);
}
.res-q { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.res-q li { position: relative; padding-left: 15px; font-size: .82rem; color: var(--ink-2); line-height: 1.45; }
.res-q li::before { content: "·"; position: absolute; left: 3px; top: -2px; color: var(--accent); font-weight: 700; }
.res-cta {
  align-self: flex-start; font-family: var(--font-mono); font-size: .72rem;
  letter-spacing: .06em; color: var(--accent); text-decoration: none;
  border-bottom: 1px solid transparent; transition: border-color .15s;
}
.res-cta:hover { border-bottom-color: var(--accent); }
/* Ссылка на управление внутри строки ведущего */
.coord .info p a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.coord .info p a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ─── Ролик внутри карточки урока ──────────────────────────────────
   Видео живёт в раскрытой части .res-more, поэтому в свёрнутом виде
   браузер его не строит и постер не грузит. preload="none" — чтобы
   даже раскрытая карточка не тянула сам файл до нажатия. */
.res-video { margin-top: 2px; }
.res-video video {
  width: 100%; height: auto; display: block;
  border-radius: 10px; background: var(--bg-deep);
}
.res-video-note {
  margin: 7px 0 0; font-family: var(--font-mono); font-size: .64rem;
  letter-spacing: .05em; color: var(--ink-3); line-height: 1.4;
}

/* ═══ ЧИСЛА УПРАВЛЕНИЯ ══════════════════════════════════════════════
   На 375px четыре плитки в две колонки занимали 151px, и справа от
   каждого числа пустовала половина меры. Ниже 920px — там же, где
   .dir-hero-row смыкается в одну колонку (styles.css:432) — плитки
   уступают место описи: пары «ПОДПИСЬ: значение» по базовой линии
   с переносом по мере надобности. Плиточная сетка остаётся от 921px.

   Замерено на всех семи страницах управлений при 320, 360, 375, 800,
   1000 и 1280px; горизонтального переполнения нет нигде. Блок чисел
   на 375px: Маршруты 151 → 74; Ясна-Школа 152 → 74; Александрия
   167 → 74; Неглинка 235 → 89; Извод, Астроневод и Граника 77 → 40. */

/* Разделители рисует просвет в 1px: между плитками просвечивает фон
   контейнера. Такие линии живут при любом числе плиток и не зависят
   от инлайновых border-bottom:0 в разметке четырёх страниц. Заодно
   чинится десктоп: на «Ясных маршрутах» инлайн убирал линию между
   рядами, а на Неглинке третья плитка висела с рамкой справа в пустой
   клетке — теперь она занимает ряд целиком. */
.dir-stats { gap: 1px; background: var(--line); overflow: hidden; }
.dir-stats > .dir-stat,
.dir-stats.dir-stats-row > .dir-stat { border: 0; background: var(--bg); }
.dir-stats > .dir-stat:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Строчный вариант снова идёт в четыре колонки. Правило .dir-stats выше
   стоит вне медиазапроса и ниже по файлу, вес у обоих одноклассовый —
   поэтому Александрия на 1280px показывала две колонки по 568px вместо
   строки из четырёх. Двухклассовый селектор возвращает задуманное. */
.dir-stats.dir-stats-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 920px) {
  .dir-stats,
  .dir-stats.dir-stats-row {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    column-gap: 22px;      /* просвет между парами втрое шире внутреннего —
                              он и держит группировку «подпись: значение» */
    row-gap: 9px;
    background: none;      /* иначе просвет в 22px залился бы цветом линии */
    overflow: visible;     /* засечке нужно выйти за верхний край */
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    padding: 15px 0 0;
    margin-top: 10px;
  }
  /* Охряная засечка на линейке — тот же приём, что у .hero-manifest::before
     на главной. С ней строка читается как выходные данные управления даже
     там, где чисел всего два. */
  .dir-stats::before {
    content: "";
    position: absolute;
    left: 0; top: -1px;
    width: 34px; height: 2px;
    background: var(--accent);
  }
  .dir-stats > .dir-stat,
  .dir-stats.dir-stats-row > .dir-stat {
    display: flex;
    align-items: baseline;
    gap: 7px;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    grid-column: auto;
    padding: 0; border: 0; background: none;
  }
  .dir-stats .dir-stat .lbl {
    margin-bottom: 0;
    flex-shrink: 0;
    font-size: .64rem;
    letter-spacing: .12em;
  }
  /* Двоеточие разводит подпись и значение: без него соседняя пара
     читается как «16 ведущих». */
  .dir-stats .dir-stat .lbl::after { content: ":"; }
  .dir-stats .dir-stat .val { font-size: 1.22rem; line-height: 1.25; min-width: 0; }
  /* «+» у «5+» и «7+» набирается в долях от числа и держится рядом с ним;
     штатный отступ в 6px в строке давал «5 +». */
  .dir-stats .dir-stat .val small { font-size: .62em; margin-left: 1px; }

  /* Плитка, где вместо числа лежит строка: ФИО руководителя,
     «Москва + онлайн». Серифный кегль числа спорит там с заголовком
     страницы, поэтому текст печатается основным шрифтом. */
  .dir-stats .dir-stat.is-text .val {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0;
  }

  /* 48px между колонками шапки (styles.css:431) — десктопная величина;
     ниже 920px колонки смыкаются, и просвет становится вертикальным. */
  .dir-hero-row { gap: 22px; }
}

/* ═══ МОБИЛЬНЫЕ ПОЧИНКИ СТРАНИЦЫ УПРАВЛЕНИЯ ═════════════════════════ */

/* Карточка урока вылезала из панели: ширину колонки задаёт самая длинная
   карточка, а у элемента сетки min-width по умолчанию auto — он не даёт
   ей ужаться уже своего содержимого. На 320px карточка выходила за панель
   на 48px и срезала значок «+», то есть единственный признак того, что
   карточку можно раскрыть. Замерено: с min-width:0 вылета нет ни на 320,
   ни на 360, ни на 375px. */
.res-grid > * { min-width: 0; }
/* На узком экране длинному ФИО нужен перенос: без него имя упирается
   в край карточки. */
@media (max-width: 400px) {
  .res .ft > span:last-child { white-space: normal; }
}

/* Зоны нажатия. Замерено: «← ВСЕ УПРАВЛЕНИЯ» 18,7px, «Оставить заявку»
   внутри карточки урока 18,3px, ссылка на управление в чипе 17,5px —
   втрое меньше опорных 44px, в которые целится палец. Высоту добавляем
   отступом, чтобы рисунок строки не поехал. */
@media (hover: none) {
  .dir-back { display: inline-flex; align-items: center; min-height: 44px; }
  .res-cta { min-height: 44px; display: inline-flex; align-items: center; }
  a.res-chip { min-height: 34px; padding-top: 6px; padding-bottom: 6px; }
  .coord .info p a { display: inline-block; padding: 4px 0; }
}

/* Отступы секций на телефоне. 88px сверху и снизу — величина для широкого
   экрана; на 375px это седьмая часть экрана на пустоту между блоками. */
@media (max-width: 680px) {
  section { padding-top: 44px; padding-bottom: 44px; }
  .dir-hero { padding-top: 24px; }
}

/* Порядок панелей на телефоне. Колонки смыкаются в одну (styles.css:445),
   и правая целиком уезжает за левую: «Как присоединиться» оказывалась
   на 9800-м пикселе — за каталогом уроков в 3783px и галереей в 1451px.
   display:contents убирает колонки из потока, и панели становятся прямыми
   детьми сетки; дальше их можно переставить по содержимому, не трогая
   разметку семи страниц. Тяжёлая галерея уходит в конец. */
@media (max-width: 980px) {
  .dash { gap: 24px; }
  .dash > .col { display: contents; }
  .dash .panel { order: 5; }
  .dash .panel:has(.about-body)  { order: 1; }
  .dash .panel:has(.res-grid)    { order: 2; }
  .dash .panel:has(.join-body)   { order: 3; }
  /* Критерии приёма — в ту же ступень, что «Как присоединиться»: всегда
     рядом с ней, а кто из двух первым, решает разметка страницы. У Граники
     критерии впереди — это условия входа; у Воспитания позади — они для
     будущих ведущих, а путь для семей идёт первым. */
  .dash .panel:has(.krit-body)   { order: 3; }
  .dash .panel:has(.chan-grid)   { order: 4; }
  .dash .panel:has(.coord)       { order: 5; }
  .dash .panel:has(.for-row)     { order: 6; }
  .dash .panel:has(.kv-list)     { order: 7; }
  .dash .panel:has(.photo-grid)  { order: 8; }
}

/* ═══ ШАПКА НА ТЕЛЕФОНЕ: разделы под раскрытием ══════════════════════
   Шесть целей в строку не умещаются ни на одной телефонной ширине:
   одни только буквы пяти разделов занимают 329px при 335px содержимого
   на 375px. Лента с прокруткой вбок прятала 163px из 498 — «Метод»
   и «Вопросы» не видно при загрузке, а «Вступить» ездила вместе с лентой.
   Поэтому разделы уходят под кнопку «Разделы», а строка шапки одна.

   Разметка: <details class="nav-menu"> с одним <summary> стоит ПЕРЕД
   <nav class="nav-links">. Список лежит за пределами <details>, поэтому
   ничего не зависит от того, как браузер прячет содержимое свёрнутого
   <details>; раскрытие читается соседним селектором [open] ~ .nav-links.
   JS для самого раскрытия не нужен: <summary> — нативная кнопка
   с состоянием и работой от клавиатуры. */

html { scroll-padding-top: 74px; }
@media (max-width: 760px) { html { scroll-padding-top: 70px; } }

.nav-menu { display: none; }
.nav-burger {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; min-width: 44px; padding: 11px 15px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--paper); color: var(--ink-2);
  font-family: var(--font-body); font-size: .86rem; line-height: 1;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  list-style: none;
}
.nav-burger::-webkit-details-marker { display: none; }
.nav-burger:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.nav-burger .bars {
  position: relative; flex: 0 0 auto; width: 15px; height: 11px;
  background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
}
.nav-burger .bars::before,
.nav-burger .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: currentColor; transition: transform .18s ease;
}
.nav-burger .bars::before { top: 2px; }
.nav-burger .bars::after { bottom: 2px; }
.nav-menu[open] .nav-burger { color: var(--ink); border-color: var(--ink-3); }
.nav-menu[open] .nav-burger .bars { background-size: 0 1px; }
.nav-menu[open] .nav-burger .bars::before { transform: translateY(3px) rotate(45deg); }
.nav-menu[open] .nav-burger .bars::after  { transform: translateY(-3px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) {
  .nav-burger .bars::before, .nav-burger .bars::after { transition: none; }
}
/* На 320px локап и кнопка со словом расходятся: 164 + 12 + 112 = 288
   при 280 доступных. Слово убираем из виду, оставляя его в дереве
   доступности — кнопка по-прежнему называется «Разделы». */
@media (max-width: 359px) {
  .nav-burger { padding: 11px 14px; }
  .nav-burger .cap {
    position: absolute; width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
}

@media (max-width: 760px) {
  /* Шапка снова липкая: одна строка стоит 61px, зато «Разделы»
     и «Вступить» под рукой на всём протяжении страницы в 13 700px.
     Размытие подложки снимаем: непрозрачный фон дешевле при прокрутке
     и не даёт содержимому просвечивать сквозь шапку. */
  .nav {
    position: sticky; top: 0;
    background: var(--bg);
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .nav-row { height: 60px; flex-wrap: nowrap; gap: 12px; }
  .nav .brand-sub { display: none; }
  .nav-menu { display: block; flex: 0 0 auto; }

  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 2px var(--gutter) 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 34px -28px rgba(0,0,0,.45);
    max-height: calc(100dvh - 60px); overflow-y: auto; overscroll-behavior: contain;
  }
  .nav-menu[open] ~ .nav-links { display: flex; }

  .nav-links a:not(.nav-cta),
  .nav-links a:not(.nav-cta):nth-child(3) {
    display: flex; align-items: center; min-height: 50px;
    font-size: 1rem; color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  /* На privacy.html и zayavka.html кнопки «Вступить» в шапке нет —
     у последней ссылки линия снизу лишняя. */
  .nav-links a:not(.nav-cta):last-child { border-bottom: 0; }
  .nav-links a.nav-cta {
    order: 0; align-self: flex-start;
    margin-top: 16px; padding: 12px 22px; font-size: .94rem;
  }
}

/* На 320px длинные заголовки управлений не влезают: «Обработка
   персональных данных» просит 313px при 280 доступных, и слово
   «персональных» рисуется за краем. Уменьшаем кегль и разрешаем
   переносить слово, если и этого мало. */
@media (max-width: 360px) {
  .dir-title { font-size: clamp(1.7rem, 1.1rem + 4.4vw, 2.4rem); overflow-wrap: break-word; }
}

/* ─── Четыре столпа воспитания ─────────────────────────────────────────
   У каждого столпа свой круг взрослых — родители, учителя, мастера,
   наставники. Это часть содержания, а не подпись: держим отдельной
   строкой под описанием, набранной как метка. */
.fmt-who {
  margin-top: auto;
  padding-top: 10px;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}
/* Описания у столпов разной длины, и без выравнивания метки ответственных
   скачут по высоте. Колонка + margin-top:auto ставит их на одну линию,
   как в исходном материале. :has() трогает только эту сетку — на других
   страницах .fmt-who нет. */
.fmt-grid > div:has(.fmt-who) { display: flex; flex-direction: column; }

/* ─── Кольцо двенадцати управлений на странице сбора ───────────────────
   Тот же визуал, что на главной: медальоны слетаются к надписи и снова
   разлетаются. Смысл ровно в этом — двенадцать управлений сходятся
   в одном месте 26 сентября, поэтому кольцо живёт на странице сбора,
   а не на страницах отдельных управлений.
   Логотипы лежат в разметке, скрипт только расставляет их по окружности:
   робот без выполнения js видит все двенадцать. */
.sbor-day {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(56px, 8vw, 96px) 0;
  overflow: hidden;                    /* разлёт уходит за край, а не в скролл */
  --gold: #b98a3c;
}
.sbor-day .sbor-lead {
  text-align: center;
  color: rgba(251,250,246,.72);
  font-size: clamp(1rem, .95rem + .3vw, 1.12rem);
  line-height: 1.6;
  max-width: 46ch;
  margin: clamp(24px, 4vw, 40px) auto 0;
}
.reel { position: relative; aspect-ratio: 1; max-width: 470px; width: 100%; margin: 0 auto; }
.reel svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.reel .letterfly {
  position: absolute; left: 50%; top: 50%;
  will-change: transform, opacity;
  animation: sbor-converge 13s cubic-bezier(.55,.06,.25,1) infinite;
}
.reel .letterfly .med {
  display: grid; place-items: center;
  width: clamp(44px, 12vw, 56px); height: clamp(44px, 12vw, 56px);
  border-radius: 50%; overflow: hidden; background: var(--na-tyomnoy, var(--paper));
  box-shadow: 0 0 0 1.5px rgba(185,138,60,.65), 0 4px 18px rgba(0,0,0,.4);
}
.reel .letterfly .med img { width: 100%; height: 100%; object-fit: cover; padding: 5px; border-radius: 50%; }
/* Подпроект управления на кольце сбора. Тринадцатым медальоном он не
   становится: скрипт расставляет по кольцу элементы .letterfly, а этот
   знак лежит ВНУТРИ letterfly ЛитПроСвета — значит и летит вместе с ним,
   и число в кольце остаётся двенадцать.
   Размеры и смещение — в долях медальона: кольцо на телефоне уже, и
   пиксельное смещение дало бы наезд вместо касания. */
.reel .letterfly .med-sub {
  position: absolute; left: 55.7%; top: -58.9%;
  width: 72%; aspect-ratio: 1; z-index: 2;
  border-radius: 50%; overflow: hidden;
  background: var(--na-tyomnoy, var(--paper));
  box-shadow: 0 0 0 3px var(--bl-bg, #082F1E), 0 0 0 4.5px rgba(185,138,60,.65);
}
.reel .letterfly .med-sub img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.reel .center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: min(320px, calc(84% - 66px)); text-align: center;
}
@media (max-width: 400px) { .reel .center { width: calc(84% - 78px); } }
.reel .center .d {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 8px;
}
/* Число вместо слова «двенадцать»: в узкой середине круга длинное слово
   занимало три строки, цифра читается сразу и на телефоне тоже. */
.reel .center .num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(46px, 4.4vw + 24px, 78px); line-height: .92;
  letter-spacing: -.02em; margin: 6px 0 4px;
}
.reel .center .t { font-family: var(--font-display); font-size: clamp(15px, 1.4vw + 9px, 21px); line-height: 1.25; margin: 0; font-weight: 500; }
.reel .center .s { font-size: .8rem; color: rgba(251,250,246,.55); margin-top: 9px; }

@keyframes sbor-converge {
  0%   { transform: translate(calc(-50% + var(--sx)), calc(-50% + var(--sy))) scale(.85); opacity: 0 }
  16%  { opacity: .4 }
  40%  { transform: translate(calc(-50% + var(--cx)), calc(-50% + var(--cy))) scale(1); opacity: 1 }
  72%  { transform: translate(calc(-50% + var(--cx)), calc(-50% + var(--cy))) scale(1); opacity: 1 }
  90%  { opacity: .5 }
  100% { transform: translate(calc(-50% + var(--sx)), calc(-50% + var(--sy))) scale(.85); opacity: 0 }
}
/* Кольцо просто едет по часовой, без разворотов: привязка к фазам слёта
   оказалась лишней сложностью. Полный оборот за 80 с — 4,5°/с, движение
   заметно, но глаз не отвлекает. */
@keyframes sbor-spin { to { transform: rotate(360deg) } }
.reel .ring-rot {
  transform-box: fill-box; transform-origin: center;
  animation: sbor-spin 80s linear infinite;
}
/* При выключенной анимации медальоны просто стоят на кольце — скрипт
   проставляет им итоговое положение. */
@media (prefers-reduced-motion: reduce) {
  .reel .letterfly, .reel .ring-rot { animation: none; }
}

/* Сноска об авторстве материалов. Короткая суть в подвале, подробности
   на странице правил: за содержание отвечает автор, а не центр. */
.foot-note{margin-top:48px;padding-top:24px;border-top:1px solid var(--line);
  font-size:.82rem;line-height:1.55;color:var(--ink-3);max-width:78ch}
.foot-note a{color:var(--accent);text-decoration:underline;text-underline-offset:2px}
.foot-note + .foot-bottom{margin-top:14px;padding-top:0;border-top:0}

/* ═══ ТЕМА В МЕНЮ ШАПКИ ═══════════════════════════════════════════════
   Переключатель темы — строка «Тёмная тема» внутри меню, а не кнопка
   в самой шапке. Метка [data-tema-mesto] стоит последней в .nav-links:
   на телефоне она попадает в раскрывающийся список сама собой.
   На компьютере ссылки стоят в строку, поэтому бургер (только значок,
   имя «Разделы» остаётся для чтения с экрана) показываем и здесь —
   но лишь там, где есть метка темы, — а раскрытие выводит строку темы
   небольшой панелью под ним. Ширина бургера = ширина прежней кнопки
   темы (34px) и просвет тот же, так что строка шапки не удлиняется. */
@media (min-width: 761px) {
  .nav-row:has([data-tema-mesto]) { position: relative; }
  .nav-row:has([data-tema-mesto]) .nav-links { margin-left: auto; }
  .nav-menu:has(~ .nav-links [data-tema-mesto]) {
    display: block; order: 2; flex: 0 0 auto; margin-left: 22px;
  }
  .nav-menu:has(~ .nav-links [data-tema-mesto]) .nav-burger {
    width: 34px; height: 34px; min-width: 34px; min-height: 34px; padding: 0; gap: 0;
  }
  .nav-menu:has(~ .nav-links [data-tema-mesto]) .nav-burger .cap {
    position: absolute; width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
  .nav-links .tema-mesto { display: none; }
  .nav-menu[open] ~ .nav-links .tema-mesto {
    display: block; position: absolute; z-index: 60;
    top: calc(100% + 6px); right: var(--gutter);
    width: 260px; padding: 2px 18px;
    background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 18px 34px -18px rgba(0,0,0,.45);
  }
}
@media (max-width: 1080px) and (min-width: 761px) {
  .nav-menu:has(~ .nav-links [data-tema-mesto]) { margin-left: 18px; }
}
@media (min-width: 761px) and (max-width: 960px) {
  .nav-menu:has(~ .nav-links [data-tema-mesto]) { margin-left: 14px; }
}
@media (min-width: 761px) and (max-width: 830px) {
  .nav-menu:has(~ .nav-links [data-tema-mesto]) { margin-left: 7px; }
}
@media (max-width: 760px) {
  /* В списке: разделы, затем строка темы, затем кнопка действия. */
  .nav-links .tema-mesto { order: 0; }
  .nav-links a.nav-cta { order: 1; }
}
