/* ============================================================
   КОНЦЕПТ C · КАБИНЕТ · The Reading Desk
   Смелое направление: пространство, а не сетка.
   ============================================================ */

.c-app {
  min-height: calc(100vh - 53px);
  background: var(--ink-1);
  color: var(--ink-fg);
  font-family: var(--sans);
  /* лёгкая «деревянная» текстура — горизонтальные пряди дерева */
  background-image:
    linear-gradient(180deg, #181E24 0%, #1A2128 30%, #1B232A 100%),
    repeating-linear-gradient(2deg,
      transparent 0 28px,
      rgba(160,140,90,.012) 28px 30px);
  background-blend-mode: normal;
}

/* —— верх: компактная навигация + «состояние стола» —— */
.c-top {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 36px 14px;
  border-bottom: 1px solid var(--ink-line-soft);
}
.c-top .nav {
  display: flex;
  gap: 2px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  padding: 3px;
}
.c-top .nav button {
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--ink-fg-3);
}
.c-top .nav button.is-active {
  background: var(--ink-3);
  color: var(--sage);
}
.c-top .nav button:hover { color: var(--ink-fg); }

.c-top .mode-toggle {
  display: flex;
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  padding: 3px;
}
.c-top .mode-toggle button {
  padding: 7px 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-fg-3);
  border-radius: 999px;
}
.c-top .mode-toggle button.is-active {
  background: var(--sage);
  color: #14191D;
}

.c-top .spacer { flex: 1; }

.c-top .search {
  flex: 0 0 320px;
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  padding: 8px 14px;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--ink-fg-2);
}
.c-top .search input { flex: 1; border: 0; background: transparent; outline: none; }
.c-top .search input::placeholder { color: var(--ink-fg-3); }
.c-top .search kbd {
  font-family: var(--mono); font-size: 10px; color: var(--ink-fg-3);
  padding: 2px 6px; border: 1px solid var(--ink-line); border-radius: 999px;
}

.c-top .state {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage);
}
.c-top .state .dot {
  width: 8px; height: 8px;
  background: var(--sage);
  border-radius: 50%;
  animation: cpulse 1.6s infinite;
}
@keyframes cpulse { 0%,100%{opacity:.5;transform:scale(.95)} 50%{opacity:1;transform:scale(1.1)} }

/* ============================================================
   «На столе сейчас» — главная зона
   ============================================================ */

.c-desk {
  margin: 28px 36px 24px;
  border: 1px solid var(--ink-line);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(143,174,124,.05), transparent 60%),
    linear-gradient(180deg, #1D252E 0%, #181F26 100%);
  border-radius: var(--r-16);
  position: relative;
  overflow: hidden;
}
.c-desk::before {
  /* лёгкая «доска под лампой» */
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% -20%, rgba(255,240,200,.04), transparent 50%);
  pointer-events: none;
}

.c-desk-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 20px 28px 0;
  position: relative;
}
.c-desk-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -.02em;
  color: var(--ink-fg);
}
.c-desk-head h2 em { font-style: italic; color: var(--sage); font-weight: 400; }
.c-desk-head .sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-fg-4);
}
.c-desk-head .spacer { flex: 1; }
.c-desk-head .qotd-pill {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-fg-2);
  max-width: 36em;
  text-align: right;
  line-height: 1.35;
}
.c-desk-head .qotd-pill::before {
  content: '“';
  color: var(--sage);
  font-style: normal;
  margin-right: 4px;
}
.c-desk-head .qotd-pill .src {
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-fg-4);
  margin-top: 6px;
}

.c-desk-items {
  padding: 24px 28px 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* «открытая книга» — карточка материала на столе */
.c-open {
  background: var(--paper-1);
  color: var(--paper-fg);
  border-radius: var(--r-8);
  padding: 20px 22px 18px;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  position: relative;
  box-shadow:
    0 1px 0 rgba(255,255,255,.04),
    0 18px 36px -16px rgba(0,0,0,.6),
    0 2px 6px rgba(0,0,0,.4);
  /* «корешок» сверху */
  border-top: 1px solid #C9BC9E;
  transform: rotate(-.4deg);
  transition: transform .25s ease;
}
.c-open:nth-child(2) { transform: rotate(.2deg); }
.c-open:nth-child(3) { transform: rotate(-.2deg) translateY(2px); }
.c-open:hover { transform: rotate(0) translateY(-2px); }

.c-open .ribbon {
  position: absolute;
  top: -2px; right: 22px;
  width: 14px; height: 30px;
  background: linear-gradient(180deg, var(--sage) 0%, var(--sage-2) 100%);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.c-open .ribbon::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0; right: 0;
  height: 6px;
  background: var(--sage-2);
  clip-path: polygon(0 0, 50% 100%, 100% 0);
}

.c-open .cover {
  width: 76px;
  aspect-ratio: 2 / 3;
  background: var(--paper-3);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 4px 10px -4px rgba(40,30,20,.5);
}
.c-open .cover img { width: 100%; height: 100%; object-fit: cover; }
.c-open .cover.typo {
  display: flex; flex-direction: column;
  padding: 8px 7px;
  justify-content: space-between;
  font-family: var(--serif);
  color: #FDFAF1;
}
.c-open .cover.typo.t-book { background: linear-gradient(160deg, #74849A 0%, #5B6878 100%); }
.c-open .cover.typo.t-article { background: linear-gradient(160deg, #94B484 0%, #739363 100%); }
.c-open .cover.typo.t-lecture { background: linear-gradient(160deg, #C29560 0%, #95713F 100%); }
.c-open .cover.typo .au {
  font-family: var(--mono); font-size: 7px; letter-spacing: .08em; text-transform: uppercase; opacity: .85;
}
.c-open .cover.typo .ti {
  font-family: var(--serif); font-size: 11px; line-height: 1.05; font-weight: 500;
}
.c-open .cover.typo .jp {
  font-family: var(--jp); font-size: 14px; opacity: .9; align-self: flex-end;
}

.c-open .info { min-width: 0; }
.c-open .type {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sage-paper-fg);
  margin-bottom: 6px;
}
.c-open .ti {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.1;
  letter-spacing: -.015em;
  color: #1F1A14;
  margin-bottom: 4px;
}
.c-open .au {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--paper-fg-3);
  margin-bottom: 12px;
}
.c-open .pos {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13.5px;
  color: var(--paper-fg-2);
  line-height: 1.4;
  margin-bottom: 8px;
}
.c-open .pos b { font-style: normal; color: var(--sage-paper-fg); font-weight: 500; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; }
.c-open .last {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--paper-fg-4);
}
.c-open .progress {
  margin-top: 10px;
  height: 3px;
  background: var(--paper-line-soft);
  border-radius: 2px;
  overflow: hidden;
}
.c-open .progress span { display: block; height: 100%; background: var(--sage-dark); }

.c-open .bm {
  /* «закладки» — последние цитаты, вкладочки сбоку */
  position: absolute;
  right: -10px;
  top: 30px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.c-open .bm .b {
  background: var(--sage-dark);
  color: #F4ECD8;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
  padding: 2px 6px;
  border-radius: 0 2px 2px 0;
  box-shadow: 1px 1px 3px rgba(0,0,0,.4);
}
.c-open .bm .b:nth-child(2) { background: #95713F; }
.c-open .bm .b:nth-child(3) { background: #735E80; }

/* ============================================================
   Стопки по статусам — горизонтальные ленты
   ============================================================ */

.c-stack {
  margin: 36px 36px 0;
}
.c-stack-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--ink-line);
}
.c-stack-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -.01em;
  color: var(--ink-fg);
}
.c-stack-head .badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 2px;
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  color: var(--ink-fg-3);
}
.c-stack-head .cnt {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-fg-4);
  letter-spacing: .04em;
}
.c-stack-head .spacer { flex: 1; }
.c-stack-head .all {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-fg-3);
}
.c-stack-head .all:hover { color: var(--sage); }

/* горизонтальная лента — карточки рядом */
.c-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 160px;
  gap: 18px;
  padding-bottom: 14px;
  overflow-x: auto;
}
.c-strip::-webkit-scrollbar { height: 4px; }
.c-strip::-webkit-scrollbar-thumb { background: var(--ink-line); border-radius: 2px; }
.c-strip::-webkit-scrollbar-track { background: transparent; }

.c-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
}
.c-card .img {
  aspect-ratio: 2 / 3;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 1px 0 rgba(255,255,255,.04),
    0 14px 24px -10px rgba(0,0,0,.55),
    0 2px 4px rgba(0,0,0,.4);
  transition: transform .2s ease, box-shadow .2s ease;
}
.c-card:hover .img {
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.05),
    0 22px 30px -10px rgba(0,0,0,.7),
    0 4px 6px rgba(0,0,0,.45);
}
.c-card .img img { width: 100%; height: 100%; object-fit: cover; }

.c-card .img.typo {
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 10px 12px;
  font-family: var(--serif);
  color: rgba(255,255,255,.94);
}
.c-card .img.typo.t-book      { background: linear-gradient(165deg, #74849A 0%, #485463 100%); }
.c-card .img.typo.t-article   { background: linear-gradient(165deg, #94B484 0%, #5E7E50 100%); }
.c-card .img.typo.t-lecture   { background: linear-gradient(165deg, #C29560 0%, #7C5C30 100%); }
.c-card .img.typo.t-video     { background: linear-gradient(165deg, #8987B0 0%, #5C5982 100%); }
.c-card .img.typo.t-interview { background: linear-gradient(165deg, #B47878 0%, #774B4B 100%); }
.c-card .img.typo.t-note      { background: linear-gradient(165deg, #D5BD83 0%, #9F8848 100%); color: rgba(40,30,15,.85); }

.c-card .img.typo .top {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .85;
  display: flex; justify-content: space-between;
}
.c-card .img.typo .top .jp { font-family: var(--jp); font-size: 12px; letter-spacing: 0; text-transform: none; }
.c-card .img.typo .ti {
  align-self: end;
  font-size: 16px;
  line-height: 1.05;
  letter-spacing: -.01em;
  font-weight: 500;
}
.c-card .img.typo .au {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .82;
}

.c-card .ti {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1.18;
  color: var(--ink-fg);
  letter-spacing: -.005em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.c-card .au {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-fg-3);
}

/* ============================================================
   ЦИТАТНИК — отдельная лента
   ============================================================ */
.c-quotes {
  margin: 48px 36px 0;
  padding: 28px 0;
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
  position: relative;
  /* лёгкий «свет от лампы сверху» */
  background: radial-gradient(ellipse at 50% 0%, rgba(143,174,124,.03), transparent 60%);
}
.c-quotes-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
}
.c-quotes-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -.02em;
  color: var(--ink-fg);
}
.c-quotes-head h3 .jp {
  font-family: var(--jp);
  color: var(--sage);
  margin-right: 6px;
}
.c-quotes-head .sub {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-fg-4);
}
.c-quotes-head .spacer { flex: 1; }
.c-quotes-head .filter {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-fg-3);
  display: flex; gap: 18px;
}
.c-quotes-head .filter span.is-active { color: var(--sage); border-bottom: 1px solid var(--sage); padding-bottom: 2px; }

.c-quotes-river {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}

.c-quote {
  background: var(--ink-2);
  border: 1px solid var(--ink-line-soft);
  border-radius: var(--r-8);
  padding: 22px 24px 18px;
  position: relative;
  cursor: pointer;
  transition: border-color .12s, transform .15s;
}
.c-quote:hover { border-color: var(--sage); transform: translateY(-2px); }
.c-quote::before {
  content: '“';
  position: absolute;
  left: 12px; top: -2px;
  font-family: var(--serif);
  font-size: 64px;
  color: rgba(143,174,124,.14);
  line-height: 1;
  font-style: italic;
  pointer-events: none;
}
.c-quote .pg {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 10px;
  position: relative;
}
.c-quote .body {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink-fg);
  position: relative;
  text-wrap: pretty;
}
.c-quote .src {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--ink-line-soft);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--ink-fg-3);
  display: flex; justify-content: space-between; gap: 12px;
}
.c-quote .src b { color: var(--ink-fg-2); font-weight: 500; }
.c-quote.short .body { font-size: 22px; line-height: 1.32; text-wrap: balance; }
.c-quote.long  .body { font-size: 15px; line-height: 1.5; }

.c-quote.note {
  background: linear-gradient(165deg, #322D22 0%, #28241B 100%);
  border-color: #4A4030;
}
.c-quote.note::before { color: rgba(192,168,120,.16); }
.c-quote.note .body { color: #E8DFC4; font-style: normal; }
.c-quote.note .body b { font-weight: 500; color: #D8C58A; }
.c-quote.note .pg { color: #C0A878; }

/* ============================================================
   C · READER · разворот книги
   ============================================================ */

.c-reader {
  background: #18201F;
  background-image:
    radial-gradient(ellipse at 50% 30%, rgba(255,240,200,.04), transparent 60%),
    linear-gradient(180deg, #161E1F 0%, #131A1B 100%);
  min-height: calc(100vh - 53px);
  color: var(--ink-fg);
  font-family: var(--serif);
  padding: 24px 0 60px;
}

.c-rd-chrome {
  max-width: 1240px;
  margin: 0 auto 18px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.c-rd-chrome .back {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-fg-3);
  display: flex; align-items: center; gap: 8px;
}
.c-rd-chrome .ti {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-fg-2);
}
.c-rd-chrome .ti b { font-family: var(--mono); font-style: normal; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-fg-3); margin-right: 8px; font-weight: 500; }
.c-rd-chrome .spacer { flex: 1; }
.c-rd-chrome .timer {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--sage);
  display: flex; align-items: center; gap: 8px;
}
.c-rd-chrome .timer .dot { width: 6px; height: 6px; background: var(--sage); border-radius: 50%; animation: cpulse 1.8s infinite; }
.c-rd-chrome .tools {
  display: flex; gap: 4px;
}
.c-rd-chrome .tools button {
  width: 32px; height: 32px;
  border: 1px solid var(--ink-line);
  border-radius: var(--r-4);
  color: var(--ink-fg-3);
  display: flex; align-items: center; justify-content: center;
}
.c-rd-chrome .tools button:hover { color: var(--ink-fg); border-color: var(--ink-fg-3); }

/* —— РАЗВОРОТ —— */
.c-spread {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  position: relative;
  border-radius: 6px;
  box-shadow:
    0 30px 80px -30px rgba(0,0,0,.7),
    0 10px 24px -8px rgba(0,0,0,.5);
}
.c-spread::before {
  /* gutter shadow */
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 60px;
  transform: translateX(-50%);
  background:
    linear-gradient(90deg,
      transparent 0%,
      rgba(40,30,20,.0) 30%,
      rgba(40,30,20,.18) 50%,
      rgba(40,30,20,.0) 70%,
      transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* левая страница — текст и цитаты */
.c-page-l {
  background: var(--paper-1);
  background-image:
    radial-gradient(at 5% 10%, rgba(180,140,80,.04), transparent 60%);
  color: var(--paper-fg);
  padding: 56px 56px 60px 60px;
  border-radius: 6px 0 0 6px;
  position: relative;
  min-height: 820px;
}
.c-page-l::after {
  /* gutter inner shadow */
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 14px;
  background: linear-gradient(90deg, transparent, rgba(40,30,20,.10));
  pointer-events: none;
}

.c-page-l .chapter {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sage-paper-fg);
  margin-bottom: 18px;
}
.c-page-l h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: #1B1612;
  margin: 0 0 22px;
}
.c-page-l h2 .jp {
  display: block;
  font-family: var(--jp);
  font-size: 22px;
  color: var(--paper-fg-3);
  margin-bottom: 8px;
  font-weight: 500;
  line-height: 1;
}
.c-page-l .lede::first-letter {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 72px;
  float: left;
  line-height: .88;
  margin: 6px 10px 0 -2px;
  color: var(--sage-paper-fg);
}
.c-page-l p {
  font-family: var(--serif);
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--paper-fg);
  margin: 0 0 16px;
  text-wrap: pretty;
  font-feature-settings: 'kern','liga','onum';
}
.c-page-l blockquote {
  margin: 22px 0 22px;
  padding: 8px 0 6px 18px;
  border-left: 2px solid var(--sage-dark);
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.4;
  color: var(--paper-fg);
  position: relative;
}
.c-page-l blockquote cite {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--paper-fg-3);
}
.c-page-l .anchor {
  background: linear-gradient(180deg, transparent 60%, rgba(143,174,124,.32) 60%, rgba(143,174,124,.32) 92%, transparent 92%);
  padding: 0 1px;
  cursor: pointer;
}
.c-page-l .anchor.note { background: linear-gradient(180deg, transparent 60%, rgba(192,168,120,.36) 60%, rgba(192,168,120,.36) 92%, transparent 92%); }

.c-page-l .folio {
  position: absolute;
  bottom: 22px; left: 60px; right: 60px;
  display: flex; justify-content: space-between;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--paper-fg-3);
}
.c-page-l .folio .ttl { font-style: italic; font-family: var(--serif); text-transform: none; letter-spacing: 0; }

/* правая страница — заметки на полях */
.c-page-r {
  background-color: #F2EAD3;
  background-image:
    radial-gradient(at 95% 10%, rgba(180,140,80,.06), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 26px, rgba(120,90,40,.05) 26px 27px),
    linear-gradient(180deg, rgba(245,237,216,1) 0%, rgba(239,229,204,1) 100%);
  color: var(--paper-fg);
  padding: 56px 60px 60px 56px;
  border-radius: 0 6px 6px 0;
  position: relative;
  min-height: 820px;
}
.c-page-r::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 14px;
  background: linear-gradient(-90deg, transparent, rgba(40,30,20,.10));
  pointer-events: none;
}

.c-page-r .header {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--paper-fg-3);
  margin-bottom: 24px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.c-page-r .header .scope {
  color: var(--sage-paper-fg);
}

.c-page-r .marg-tabs {
  position: absolute;
  left: -28px; top: 80px;
  display: flex; flex-direction: column; gap: 4px;
}
.c-page-r .marg-tabs button {
  width: 28px; padding: 8px 6px;
  border-radius: 3px 0 0 3px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  background: var(--paper-3);
  color: var(--paper-fg-3);
  box-shadow: -2px 0 4px -2px rgba(40,30,20,.3);
}
.c-page-r .marg-tabs button.is-active {
  background: var(--sage-dark);
  color: #F4ECD8;
}

.c-marg {
  position: relative;
  padding-left: 24px;
  margin-bottom: 22px;
}
.c-marg::before {
  content: '';
  position: absolute;
  left: 0; top: 4px;
  width: 14px;
  border-top: 1px solid var(--sage-dark);
}
.c-marg.note::before { border-color: #B8A06A; }

.c-marg .pg {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sage-paper-fg);
  margin-bottom: 6px;
  display: flex; justify-content: space-between;
}
.c-marg .pg .date { color: var(--paper-fg-4); }
.c-marg.note .pg { color: #8A7330; }
.c-marg .body {
  font-family: var(--serif);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--paper-fg);
}
.c-marg.q .body { font-style: italic; }
.c-marg.note .body b { color: #6B5320; font-weight: 500; }
.c-marg .tags {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .04em;
  color: var(--paper-fg-3);
  display: flex; gap: 8px;
  flex-wrap: wrap;
}
.c-marg .tags span:hover { color: var(--sage-paper-fg); cursor: pointer; }
.c-marg .actions {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--paper-fg-4);
  display: flex; gap: 14px;
}
.c-marg .actions span:hover { color: var(--sage-paper-fg); cursor: pointer; }

.c-page-r .folio {
  position: absolute;
  bottom: 22px; left: 56px; right: 60px;
  display: flex; justify-content: space-between;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--paper-fg-3);
}
.c-page-r .folio .ttl { font-style: italic; font-family: var(--serif); text-transform: none; letter-spacing: 0; }
.c-page-r .folio .add {
  color: var(--sage-paper-fg);
  cursor: pointer;
}

/* —— нижняя «ножка стола»: мини-граф + связанное —— */
.c-rd-foot {
  max-width: 1240px;
  margin: 28px auto 0;
  padding: 24px 24px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  border-top: 1px solid var(--ink-line);
  font-family: var(--sans);
}
.c-rd-foot h5 {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-fg-3);
  display: flex; justify-content: space-between;
}
.c-rd-foot h5 a { color: var(--sage); }
.c-rd-foot .graph svg { width: 100%; height: 200px; display: block; }

.c-rd-foot .related {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
}
.c-rd-foot .related .it {
  padding: 10px 12px;
  border: 1px solid var(--ink-line-soft);
  background: var(--ink-2);
  border-radius: var(--r-4);
  cursor: pointer;
}
.c-rd-foot .related .it:hover { border-color: var(--sage); }
.c-rd-foot .related .it .ti {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 14.5px;
  line-height: 1.2;
  color: var(--ink-fg);
}
.c-rd-foot .related .it .au {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--ink-fg-3);
  text-transform: uppercase;
  margin-top: 4px;
}
