@font-face {
  font-family: 'Old Standard TT';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/fonts/old-standard-tt-cyrillic-400-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Old Standard TT';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/fonts/old-standard-tt-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Old Standard TT';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/assets/fonts/old-standard-tt-cyrillic-700-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Old Standard TT';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/assets/fonts/old-standard-tt-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Old Standard TT';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/fonts/old-standard-tt-cyrillic-400-italic.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Old Standard TT';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/fonts/old-standard-tt-latin-400-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'PT Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/fonts/pt-mono-cyrillic-400-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'PT Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/fonts/pt-mono-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* «Среди книг» — «Формуляр».
   Холодный картон каталожного ящика, белые карточки с красным полем, фиолетовая штемпельная краска.
   Old Standard TT — печатное, PT Mono — напечатанное на машинке. У каждого номера свой цвет обложки. */
:root {
  --f-paper: #E4E8EE; --f-card: #FCFCFD; --f-ink: #1F1B3A; --f-type: #29254B; --f-muted: #575470;
  --f-violet: #4F32C8; --f-on-violet: #FFFFFF; --f-rule: #C9D4E6; --f-line: #B9C2D0; --f-margin: #D9534F; --f-red: #B3372F;
  --f-grid: #DCE4F0; --f-tab: #D0D7E1; --f-edge: rgba(31, 27, 58, .14); --f-shadow: rgba(31, 27, 58, .42);
  --f-night: #1D1842; --f-night-ink: #EEEBFA; --f-night-muted: #A9A3CF; --f-blend: multiply;
  --f-serif: "Old Standard TT", "Times New Roman", Georgia, serif;
  --f-mono: "PT Mono", "Courier New", monospace;
  --paper: var(--f-paper); --card: var(--f-card); --ink: var(--f-ink); --muted: var(--f-muted); --rule: var(--f-line);
  --display: var(--f-serif); --reading: var(--f-serif); --label: var(--f-serif); --mono: var(--f-mono);
  --issue: var(--f-violet); --club: var(--f-violet); --on-cover: #F7F4EE; --book-ink: #2A241E;
  --gut: max(20px, env(safe-area-inset-left), env(safe-area-inset-right));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --f-paper: #17151F; --f-card: #221F2E; --f-ink: #ECE9F4; --f-type: #DDD9EF; --f-muted: #A8A3BC;
    --f-violet: #A996FF; --f-on-violet: #17151F; --f-rule: #37324B; --f-line: #3C3750; --f-margin: #C25B56; --f-red: #F2918A;
    --f-grid: #2B273B; --f-tab: #2A2636; --f-edge: rgba(0, 0, 0, .5); --f-shadow: rgba(0, 0, 0, .7); --f-night: #0E0C1B; --f-blend: normal;
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .themed { --issue: var(--issue-d); }
}
:root[data-theme="dark"] {
  --f-paper: #17151F; --f-card: #221F2E; --f-ink: #ECE9F4; --f-type: #DDD9EF; --f-muted: #A8A3BC;
  --f-violet: #A996FF; --f-on-violet: #17151F; --f-rule: #37324B; --f-line: #3C3750; --f-margin: #C25B56; --f-red: #F2918A;
  --f-grid: #2B273B; --f-tab: #2A2636; --f-edge: rgba(0, 0, 0, .5); --f-shadow: rgba(0, 0, 0, .7); --f-night: #0E0C1B; --f-blend: normal;
  color-scheme: dark;
}
.themed { --issue: var(--issue-l); }
:root[data-theme="dark"] .themed { --issue: var(--issue-d); }

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.6 var(--reading);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--f-violet); outline-offset: 3px; }
::selection { background: var(--f-violet); color: var(--f-on-violet); }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: var(--gut); }
.column { max-width: 720px; margin: 0 auto; }

/* ---------- шапка ---------- */
.mast .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 76px; padding-block: 10px; }
.wordmark { font: 700 15px/1 var(--display); letter-spacing: .16em; text-decoration: none; color: var(--ink); }
.mast nav { display: flex; gap: 26px; margin-left: auto; font: 400 17px/1.2 var(--display); }
.mast nav a { text-decoration: none; color: var(--muted); white-space: nowrap; }
.mast nav a:hover { color: var(--ink); }
.mast nav a[aria-current="page"] { color: var(--f-violet); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.msearch { position: relative; flex: 0 0 200px; margin: 0; }
.msearch input { width: 100%; height: 38px; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; padding: 0 4px 0 26px;
  font: italic 400 17px var(--display); color: var(--ink); -webkit-appearance: none; appearance: none; }
.msearch input::placeholder { color: var(--muted); }
.msearch input:focus { outline: 2px solid var(--f-violet); outline-offset: 2px; border-color: transparent; }
.msearch svg { position: absolute; left: 2px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); color: var(--ink); pointer-events: none; }
.mast nav .nav-s { display: none; }
@media (max-width: 720px) {
  .mast .wrap { gap: 10px 12px; }
  .msearch { order: 2; flex: 1 1 140px; }
  .mast nav { order: 3; flex: 1 1 100%; margin-left: 0; justify-content: space-between; }
}
@media (max-width: 520px) { .mast nav { font-size: 15.5px; gap: 12px; } }
@media (max-width: 900px) { .mast nav .nav-l { display: none; } .mast nav .nav-s { display: inline; } }
@media (max-width: 400px) { .mast nav { font-size: 14.5px; gap: 8px; } }

main { padding-block: 40px 88px; min-height: 70vh; }

/* ---------- общее ---------- */
.eyebrow { font: italic 400 16px/1.35 var(--display); letter-spacing: 0; text-transform: none; color: var(--muted); }
.eyebrow.accent { color: var(--issue); }
h1, h2, h3 { text-wrap: balance; font-weight: 700; }
.display { font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -.01em; margin: 0; }
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.chip { font: italic 400 15px var(--display); color: var(--muted); white-space: nowrap; }
.chip.ready { color: var(--issue); }
.status { display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; font: italic 400 15px/1.4 var(--display); color: var(--muted); }
.meter { flex: 1 1 60px; max-width: 120px; height: 2px; background: var(--rule); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--issue); }
.note { margin-top: 20px; padding: 14px 18px 14px 22px; background: var(--card); box-shadow: 0 0 0 1px var(--f-edge), inset 3px 0 0 var(--issue); font-size: 16px; line-height: 1.55; color: var(--muted); }
.note.club-cta { box-shadow: 0 0 0 1px var(--f-edge), inset 3px 0 0 var(--f-violet); }
.note.club-cta a { color: var(--f-violet); font-weight: 700; text-underline-offset: 3px; }
.back { display: inline-flex; gap: 6px; font: italic 400 16px var(--display); color: var(--muted); text-decoration: none; }
.back:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 56px 0 14px; }
.section-title h2 { font: 700 34px/1.08 var(--display); margin: 0; }
.section-title span { font: italic 400 16px var(--display); color: var(--muted); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 72px 0 0; }
.section-head h2 { font: 700 clamp(34px, 3.8vw, 50px)/1.05 var(--display); margin: 0; }
mark { background: color-mix(in srgb, var(--f-violet) 20%, transparent); color: inherit; padding: 0 1px; }
.empty { margin-top: 20px; padding: 22px 24px; outline: 1.5px dashed var(--f-violet); outline-offset: -1.5px; color: var(--muted); }
.empty a { color: var(--f-violet); }
.more { margin: 22px 0 0; font: 400 16px var(--display); }
.more a { text-underline-offset: 3px; }

/* карточка с красным полем — общий приём для содержания, вопросов, полки */
.toc, .question, .notes li, .pentry, .bibcard, .club-promo {
  background-color: var(--card);
  background-image: linear-gradient(var(--f-margin), var(--f-margin));
  background-size: 1.5px 100%; background-repeat: no-repeat; background-position: 64px 0;
  box-shadow: 0 0 0 1px var(--f-edge), 0 24px 44px -36px var(--f-shadow); }

/* ---------- главная ---------- */
.home-head { display: grid; gap: 12px; }
.home-head h1 { font-size: clamp(60px, 9.4vw, 120px); color: var(--f-violet); letter-spacing: -.015em; }
.home-head .lead { margin: 0; max-width: 30em; font: italic 400 clamp(22px, 2.6vw, 30px)/1.3 var(--display); color: var(--ink); text-wrap: pretty; }
.club-promo { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 28px; align-items: center; margin-top: 48px;
  padding: 22px 28px 24px 90px; text-decoration: none; color: var(--ink); }
.club-promo .cp-st { position: absolute; left: 6px; top: 50%; width: 52px; height: 52px; margin-top: -26px; display: grid; place-items: center; border: 2px solid var(--f-violet); border-radius: 50%;
  box-shadow: inset 0 0 0 3px var(--card), inset 0 0 0 4.5px var(--f-violet); font: 700 9.5px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--f-violet); transform: rotate(-14deg); }
.club-promo .eyebrow { grid-column: 1; color: var(--f-violet); }
.club-promo strong { grid-column: 1; font: 700 clamp(26px, 3.2vw, 36px)/1.08 var(--display); }
.club-promo .cp-t { grid-column: 1; max-width: 40em; font-size: 17px; color: var(--muted); }
.club-promo .cp-a { grid-column: 2; grid-row: 1 / span 3; font: 700 17px var(--display); color: var(--f-violet); text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.club-promo:hover strong { color: var(--f-violet); }
@media (max-width: 640px) { .club-promo { grid-template-columns: minmax(0, 1fr); padding: 20px 20px 22px 82px; } .club-promo .cp-a { grid-column: 1; grid-row: auto; margin-top: 8px; } }

.issues { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 48px 28px; align-items: start; margin-top: 28px; }
.issue-card { text-decoration: none; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 12px; min-width: 0; }
.issue-card > * { min-width: 0; }
.issue-card h2 { font: 700 30px/1.05 var(--display); margin: 2px 0 0; }
.issue-card:hover h2 { color: var(--issue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.issue-card p { margin: 4px 0 0; color: var(--muted); font-style: italic; font-size: 16px; line-height: 1.45; }
.cover { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 4 / 3; max-width: 100%; padding: 18px 20px;
  background: var(--cover); color: var(--on-cover); box-shadow: inset -4px 0 0 rgba(0, 0, 0, .14), 0 18px 34px -26px var(--f-shadow); }
.cover .who { font: 700 12px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; }
.cover .num { font: 700 76px/.9 var(--display); letter-spacing: -.02em; }
.cover.tall { aspect-ratio: auto; min-height: 280px; }
.about { margin-top: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 24px; border-top: 3px double var(--ink); padding-top: 28px; }
.about h3 { font: 700 24px var(--display); margin: 0 0 6px; }
.about p { margin: 0; font-size: 16px; color: var(--muted); }

/* ---------- номер ---------- */
.issue-top { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .issue-top { grid-template-columns: 340px minmax(0, 1fr); gap: 56px; align-items: start; } .issue-top .cover { position: sticky; top: 24px; } }
.issue-title { font-size: clamp(50px, 7vw, 86px); }
.lede { font: italic 400 22px/1.4 var(--display); color: var(--muted); margin: 12px 0 0; }
.parts { margin-top: 14px; font: italic 400 17px/1.4 var(--display); color: var(--issue); }
.cta { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-top: 24px; min-height: 54px; padding: 14px 22px; background: var(--ink); color: var(--paper);
  text-decoration: none; font: 700 18px/1.2 var(--display); }
.cta span:last-child { font: italic 400 16px var(--display); opacity: .85; }
.cta:hover { background: var(--f-violet); color: var(--f-on-violet); }

.toc { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { position: relative; counter-increment: toc; border-bottom: 1px solid var(--f-rule); }
.toc li:last-child { border-bottom: 0; }
.toc li::before { content: counter(toc); position: absolute; left: 0; top: 19px; width: 64px; text-align: center; font: 400 14px/1.6 var(--mono); color: var(--muted); }
.toc a, .toc .planned { display: grid; gap: 3px; padding: 16px 24px 17px 86px; text-decoration: none; }
.toc h3 { font: 700 25px/1.12 var(--display); margin: 0; }
.toc a:hover h3 { color: var(--issue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.toc p { margin: 0; font-style: italic; font-size: 16px; line-height: 1.45; color: var(--muted); }
.toc .planned h3, .toc .planned p { color: var(--muted); }

.routes { display: grid; gap: 22px; margin-top: 14px; }
.route { min-width: 0; padding: 22px 26px 18px; background: var(--card); box-shadow: 0 0 0 1px var(--f-edge), 0 24px 44px -36px var(--f-shadow); }
.route h3 { font: 700 28px/1.08 var(--display); margin: 4px 0 6px; }
.route > p { margin: 0 0 16px; font-size: 16px; color: var(--muted); }
.stops { list-style: none; margin: 0; padding: 0; display: grid; }
.stop { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; }
.stop .mark { position: relative; display: flex; justify-content: center; }
.stop .mark::before { content: ""; position: absolute; top: 0; bottom: 0; width: 1.5px; background: var(--f-rule); }
.stop:first-child .mark::before { top: 12px; }
.stop:last-child .mark::before { bottom: calc(100% - 12px); }
.stop .mark i { position: relative; margin-top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--card); border: 2px solid var(--issue); }
.stop.fork .mark i { border-radius: 1px; transform: rotate(45deg); }
.stop .body { padding-bottom: 16px; min-width: 0; }
.stop .kind { font: italic 400 15px var(--display); color: var(--muted); }
.stop .t { display: block; font: 700 20px/1.2 var(--display); }
.stop a.t { text-decoration: none; }
.stop a.t:hover { color: var(--issue); text-decoration: underline; text-underline-offset: 3px; }
.stop .n { font-size: 16px; color: var(--muted); }
.stop .tr { margin-top: 4px; font-size: 15px; font-style: italic; color: var(--muted); }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 8px; margin-top: 8px; }
.opt { display: grid; gap: 2px; padding: 9px 12px; box-shadow: inset 0 0 0 1px var(--rule); text-decoration: none; }
.opt b { font: 700 15px var(--display); }
.opt span { font-size: 14.5px; color: var(--muted); }
a.opt:hover { box-shadow: inset 0 0 0 1.5px var(--issue); }
.postcard { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--rule); font: italic 400 22px/1.25 var(--display); }

/* полка номера и книги */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 30px 20px; margin-top: 16px; }
.book { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-content: start; min-width: 0; }
.book > a { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; text-decoration: none; }
.book p, .book .bt { overflow-wrap: break-word; hyphens: auto; }
.book > a:hover .bt { color: var(--f-violet); text-decoration: underline; text-underline-offset: 3px; }
.bcover { container-type: inline-size; aspect-ratio: 1 / 1.45; max-width: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 12px;
  background: var(--bc); color: var(--book-ink); border-radius: 1px; box-shadow: inset -3px 0 0 rgba(0, 0, 0, .12), 2px 8px 16px -8px var(--f-shadow); }
.bcover small { font: 700 9.5px/1.4 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.bcover strong { display: block; font-family: var(--display); font-weight: 700; font-size: min(21px, calc(100cqi / var(--mw, 7))); line-height: 1.06;
  overflow-wrap: normal; word-break: normal; hyphens: manual; text-wrap: balance; }
.bcover small, .bcover strong { -webkit-hyphens: manual; }
.bcover hr { border: 0; border-top: 1px solid currentColor; opacity: .35; margin: 8px 0 0; }
.book .bt { font: 700 15.5px/1.25 var(--display); color: var(--ink); }
.book p { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--muted); }

/* ---------- Полка: каталог ---------- */
.pfilter { position: relative; margin-top: 24px; max-width: 520px; }
.pfilter input { width: 100%; height: 50px; padding: 0 14px 0 42px; border: 0; border-radius: 0; background: var(--card); box-shadow: 0 0 0 1px var(--rule);
  font: 400 16.5px var(--mono); color: var(--f-type); -webkit-appearance: none; appearance: none; }
.pfilter input:focus { outline: none; box-shadow: 0 0 0 2px var(--f-violet); }
.pfilter svg { position: absolute; left: 15px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.pcount { margin-top: 12px; font: italic 400 16px/1.45 var(--display); color: var(--muted); }
.pcount a { color: var(--f-violet); }
.letters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.letters a { min-width: 40px; height: 36px; padding: 0 6px; display: inline-grid; place-items: center; font: 700 17px var(--display); text-decoration: none; color: var(--ink);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--f-line), inset 0 0 0 3px var(--card), inset 0 0 0 4px var(--f-line); }
.letters a:hover { color: var(--f-violet); box-shadow: inset 0 0 0 1px var(--f-violet), inset 0 0 0 3px var(--card), inset 0 0 0 4px var(--f-violet); }
.pgroup { scroll-margin-top: 16px; }
.pgroup h2 { margin: 44px 0 14px; font: 700 48px/1 var(--display); color: var(--f-violet); }
.plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pentry { display: grid; grid-template-columns: 64px minmax(0, 1fr); }
.pentry > a { padding: 16px 10px; }
.pentry > div { min-width: 0; padding: 14px 22px 16px 22px; }
.pentry .bcover { padding: 5px; justify-content: flex-end; box-shadow: inset -2px 0 0 rgba(0, 0, 0, .12), 1px 3px 8px -3px var(--f-shadow); }
.pentry .bcover small, .pentry .bcover strong { display: none; }
.pentry .bcover hr { margin: 0 0 5px; }
.pentry .bcover hr + hr { margin: 0 0 12px; }
.bib { margin: 0; font: 400 15px/1.6 var(--mono); color: var(--f-type); }
.bib + .bib { margin-top: 2px; }
.bib .hd { color: var(--ink); }
.bib .life { color: var(--muted); }
.bib a.ti { color: var(--f-violet); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.bib a.ti:hover { text-decoration-thickness: 2px; }
.pnote { margin: 8px 0 0; font-size: 16px; line-height: 1.5; font-style: italic; color: var(--muted); }
.where { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; }
.where a { font: 400 15px var(--display); color: var(--f-violet); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.where a:hover { text-decoration-thickness: 2px; }
.bookpage { display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr); gap: 40px; margin-top: 28px; align-items: start; }
@media (max-width: 620px) { .bookpage { grid-template-columns: minmax(0, 1fr); gap: 24px; } .bookpage .bcover { max-width: 170px; } .pentry { grid-template-columns: 56px minmax(0, 1fr); background-position: 56px 0; } .pentry > div { padding: 12px 16px 14px 16px; } }
.bookpage h1 { font-size: clamp(38px, 5.6vw, 58px); margin: 10px 0 0; }
.bookpage .by { margin: 8px 0 0; font: italic 400 24px var(--display); }
.bibcard { position: relative; margin-top: 26px; padding: 16px 22px 44px 86px; }
.bibcard::after { content: ""; position: absolute; left: 50%; bottom: 12px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .3); }
.bibcard .eyebrow { display: block; margin-bottom: 8px; }
.mlist { list-style: none; margin: 10px 0 0; padding: 0; display: grid; }
.mlist a { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.mlist a:hover strong { color: var(--f-violet); text-decoration: underline; text-underline-offset: 3px; }
.mlist strong { display: block; font: 700 22px/1.15 var(--display); }

/* ---------- поиск ---------- */
.sres { list-style: none; margin: 8px 0 0; padding: 0; }
.sres li { border-bottom: 1px solid var(--rule); }
.sres a { display: block; padding: 16px 0; text-decoration: none; }
.sres strong { display: block; margin-top: 3px; font: 700 23px/1.15 var(--display); }
.sres a:hover strong { color: var(--f-violet); text-decoration: underline; text-underline-offset: 3px; }
.sres p { margin: 4px 0 0; font-size: 16px; line-height: 1.5; color: var(--muted); }

/* ---------- материал ---------- */
.art-head { margin-top: 28px; }
.art-title { font-size: clamp(42px, 6.4vw, 68px); margin-top: 10px; }
.art-sub { margin: 14px 0 24px; font: italic 400 22px/1.4 var(--display); color: var(--muted); }
.prose { font-size: 20px; line-height: 1.68; }
.prose p { margin: 0 0 1em; hyphens: auto; }
.prose > p:first-child { font-size: 22px; line-height: 1.6; }
.prose h3 { margin: 1.6em 0 .5em; font: 700 30px/1.12 var(--display); }
.prose blockquote { margin: 1.3em 0; padding-left: 22px; border-left: 2px solid var(--issue); font: italic 400 27px/1.3 var(--display); color: var(--issue); }
.prose .cap { margin-top: -.6em; font-style: italic; font-size: 16px; color: var(--muted); }
.prose .sign { margin-top: 1.6em; text-align: right; font-style: italic; color: var(--muted); }
.prose ol, .prose ul { margin: 0 0 1em; padding-left: 1.5em; }
.prose li { margin-bottom: .55em; padding-left: .2em; }
.prose li::marker { color: var(--issue); font: 400 .8em var(--mono); }
.prose strong { font-weight: 700; }
.prose a { color: var(--f-violet); text-underline-offset: 3px; }

/* вопрос для заметки — разлинованная карточка */
.question, .notes li { position: relative; }
.question { margin-top: 44px; padding: 20px 24px 22px 86px; }
.question p { margin: 6px 0 0; font: italic 400 26px/1.25 var(--display); }
.question small { display: block; margin-top: 12px; font: 400 15px/1.5 var(--display); color: var(--muted); }
.question small a { color: var(--f-violet); }
.question textarea, .notes textarea { display: block; width: 100%; min-height: 160px; margin-top: 14px; padding: 0 6px; resize: vertical; border: 0; border-radius: 0;
  font: 400 16.5px/32px var(--mono); color: var(--f-type);
  background: transparent repeating-linear-gradient(180deg, transparent 0 31px, var(--f-rule) 31px 32px); background-attachment: local; }
.question textarea:focus, .notes textarea:focus { outline: 2px solid var(--f-violet); outline-offset: 4px; }
.saved { min-height: 1.4em; margin-top: 6px; font: italic 400 15px var(--display); color: var(--muted); }
.cite { margin: 34px 0 0; padding: 16px 20px; background: var(--card); box-shadow: 0 0 0 1px var(--f-edge); font: 400 14px/1.65 var(--mono); color: var(--f-type); overflow-wrap: anywhere; }
.cite .eyebrow { display: block; margin-bottom: 6px; }

.next { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 56px; padding: 22px 0; border-top: 3px double var(--ink); border-bottom: 1px solid var(--rule); text-decoration: none; }
.next h3 { margin: 4px 0 0; font: 700 30px/1.1 var(--display); }
.next:hover h3 { color: var(--issue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* ---------- заметки ---------- */
.notes { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 20px; }
.notes li { min-width: 0; padding: 20px 22px 16px 86px; }
.notes h2 { margin: 6px 0 4px; font: 700 24px/1.15 var(--display); }
.notes h2 a { text-decoration: none; }
.notes h2 a:hover { color: var(--issue); text-decoration: underline; text-underline-offset: 3px; }
.notes .q { margin: 0; font: italic 400 19px/1.3 var(--display); color: var(--muted); }
.notes .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.linkbtn { padding: 6px 0; border: 0; background: none; font: italic 400 15px var(--display); color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn.danger { color: var(--f-red); }
.export { margin-top: 24px; padding: 20px 22px; background: var(--card); box-shadow: 0 0 0 1px var(--f-edge), inset 3px 0 0 var(--f-violet); }
.export h2 { margin: 0 0 6px; font: 700 23px/1.2 var(--display); }
.export p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.export .btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.export button { min-height: 46px; padding: 0 18px; border: 0; border-radius: 0; background: var(--f-violet); color: var(--f-on-violet); font: 700 16px var(--display); cursor: pointer; }
.export button.alt { background: transparent; color: var(--f-violet); box-shadow: inset 0 0 0 1.5px var(--f-violet); }
.export button:disabled { opacity: .6; cursor: progress; }
.export .saved { display: block; margin-top: 10px; min-height: 1.2em; }
@media (max-width: 620px) { .export button { flex: 1 1 100%; } }

/* ---------- подвал ---------- */
footer { border-top: 1px solid var(--rule); padding-block: 24px 40px; font: 400 15px/1.5 var(--display); color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--ink); }

@media (max-width: 620px) {
  .toc, .question, .notes li, .club-promo { background-position: 48px 0; }
  .toc li::before { width: 48px; }
  .toc a, .toc .planned { padding: 14px 16px 15px 64px; }
  .toc h3 { font-size: 22px; }
  .question { padding: 18px 16px 20px 64px; }
  .notes li { padding: 18px 16px 14px 64px; }
  .bibcard { background-position: 48px 0; padding: 14px 16px 40px 64px; }
  .club-promo .cp-st { left: -2px; width: 44px; height: 44px; margin-top: -22px; font-size: 8px; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .prose { font-size: 19px; }
  .prose > p:first-child { font-size: 20px; }
  .cover .num { font-size: 60px; }
  .cta { width: 100%; }
}

/* ---------- полка номеров на главной: корешки и раскрытая обложка ---------- */
.hero { position: relative; width: 100vw; margin-left: calc(50% - 50vw); margin-top: 40px;
  --sw: 34px; --sg: 5px; --gg: 30px; --cg: 16px; --cw: 380px; --sh: 460px; --ease: cubic-bezier(.22, .8, .2, 1); }
@media (max-width: 720px) { .hero { --sw: 28px; --sg: 4px; --gg: 20px; --cg: 12px; --cw: 262px; --sh: 400px; margin-top: 28px; } .bk .bt { font-size: 14px; } .hero .hero-ctrl [data-go] { display: none; } .hero .hero-count { display: inline-block; } }
.hero.many .hero-ctrl [data-go] { display: none; } .hero.many .hero-count { display: inline-block; }
.hero-stage { position: relative; height: var(--sh); border-bottom: 1px solid var(--f-rule); }
.hero-viewport { position: absolute; inset: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.hero-track { position: absolute; left: 0; bottom: 0; height: 100%; display: flex; align-items: flex-end; gap: var(--gg); transition: transform 1s var(--ease); will-change: transform; }
.hero-track.instant, .hero-track.instant * { transition: none !important; }
.grp { display: flex; align-items: flex-end; height: 100%; }
.grp .books { display: flex; align-items: flex-end; gap: var(--sg); height: 100%; }
.bk { flex: 0 0 auto; min-width: var(--sw); height: var(--h); position: relative; cursor: pointer; background: var(--cover); color: var(--on-cover);
  filter: brightness(var(--b, 1)); display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 6px 16px;
  box-shadow: inset -3px 0 0 rgba(0, 0, 0, .14), inset 2px 0 0 rgba(255, 255, 255, .07); transition: transform .35s var(--ease), filter .35s ease; }
.bk::before, .bk::after { content: ""; position: absolute; left: 5px; right: 5px; height: 1px; background: currentColor; opacity: .35; }
.bk::before { top: 9px; } .bk::after { bottom: 9px; }
.bk:hover { transform: translateY(-12px); filter: brightness(calc(var(--b, 1) * 1.1)); }
.bk .bt, .bk .ba { writing-mode: vertical-rl; transform: rotate(180deg); white-space: normal; overflow-wrap: normal; word-break: normal; hyphens: manual; text-wrap: balance; flex: 0 0 auto; }
.bk .bt { font: 700 15.5px/1.08 var(--display); max-height: 64%; }
.bk .ba { font: 400 9px/1.5 var(--display); letter-spacing: .14em; text-transform: uppercase; max-height: 30%; opacity: .88; }
.cov { flex: 0 0 auto; width: 0; height: 100%; position: relative; overflow: hidden; background: var(--cover); color: var(--on-cover); text-decoration: none;
  transition: width 1s var(--ease), margin-right 1s var(--ease); box-shadow: inset -4px 0 0 rgba(0, 0, 0, .14), 0 18px 40px -18px rgba(0, 0, 0, .45); }
.grp.on .cov { width: var(--cw); margin-right: var(--cg); }
.cov-in { position: absolute; top: 0; left: 0; bottom: 0; width: var(--cw); padding: 26px 26px 24px; display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; transform: translateY(14px); transition: opacity .5s ease .35s, transform .7s var(--ease) .35s; }
.grp.on .cov-in { opacity: 1; transform: none; }
.ci-who { font: 700 12px/1 var(--display); letter-spacing: .22em; text-transform: uppercase; text-align: center; }
.ci-mid { text-align: center; display: grid; gap: 10px; justify-items: center; }
.ci-num { font: 400 15px/1 var(--display); letter-spacing: .12em; }
.ci-title { font: 700 clamp(36px, 4.4vw, 48px)/1 var(--display); text-wrap: balance; }
.ci-sub { font: italic 400 15px/1.4 var(--display); opacity: .92; max-width: 26ch; }
.ci-orn { width: 120px; height: 14px; position: relative; }
.ci-orn::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; opacity: .7; }
.ci-orn::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border: 1px solid currentColor; background: var(--cover); transform: translate(-50%, -50%) rotate(45deg); }
.ci-foot { display: grid; gap: 10px; text-align: center; }
.ci-parts { font: italic 400 14px/1.4 var(--display); opacity: .88; }
.ci-cta { font: 700 15px var(--display); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.cov:hover .ci-cta { text-decoration-thickness: 2px; }
.hero-ctrl { display: flex; align-items: center; justify-content: center; gap: 2px; flex-wrap: wrap; padding: 14px 16px 0; }
.hero-ctrl button { min-width: 34px; height: 34px; padding: 0 6px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font: 400 15px var(--display); cursor: pointer; }
.hero-ctrl button:hover { color: var(--ink); }
.hero-ctrl button[aria-current="true"] { color: var(--f-violet); border-bottom-color: var(--f-violet); font-weight: 700; }
.hero-ctrl .arrow-btn { font-size: 18px; }
.hero-count { display: none; min-width: 160px; text-align: center; font: 700 15px var(--display); color: var(--ink); }
.hero-count span { color: var(--muted); font-weight: 400; font-style: italic; }

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

/* litj-atlas-navigation:start */
.mast nav { display: flex; align-items: center; gap: 0; margin-left: auto; }
.mast nav .nav-group { display: flex; align-items: center; gap: 22px; }
.mast nav .nav-group-clubs { margin-left: 24px; }
.mast nav a { white-space: nowrap; }
.msearch-submit {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 18px; height: 32px;
  padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer;
}
.msearch-submit:hover { color: var(--f-violet); }
.msearch-submit svg {
  position: static; left: auto; top: auto; width: 14px; height: 14px;
  transform: none; color: inherit; pointer-events: none;
}
@media (max-width: 960px) {
  .mast nav .nav-group { gap: 15px; }
  .mast nav .nav-group-clubs { margin-left: 17px; }
  .mast nav { font-size: 16px; }
}
@media (max-width: 720px) {
  .mast .wrap { gap: 10px 12px; }
  .mast nav {
    order: 3; display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-start;
    flex: 1 1 100%; min-width: 0; margin: 0; gap: 12px; font-size: 16px;
  }
  .mast nav .nav-group { display: flex; flex-wrap: nowrap; gap: 9px; }
  .mast nav .nav-group-clubs { margin: 0; }
  .mast nav a { display: inline-flex; align-items: center; min-height: 38px; padding: 3px 0; white-space: nowrap; }
  .msearch { order: 4; flex: 1 1 100%; min-width: 0; }
}
@media (max-width: 400px) {
  .mast nav { font-size: 16px; gap: 10px; }
  .mast nav .nav-group { gap: 7px; }
}
@media (max-width: 360px) {
  .mast nav { font-size: 14px; gap: 4px; }
  .mast nav .nav-group { gap: 5px; }
}
/* litj-atlas-navigation:end */
