@font-face { font-family: "Alegreya"; src: url(/fonts/alegreya-cyr-400.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Alegreya"; src: url(/fonts/alegreya-cyr-500.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Alegreya"; src: url(/fonts/alegreya-cyr-700.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Alegreya"; src: url(/fonts/alegreya-cyr-800.woff2) format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Alegreya"; src: url(/fonts/alegreya-cyr-400i.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; src: url(/fonts/oswald-cyr-400.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; src: url(/fonts/oswald-cyr-500.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; src: url(/fonts/oswald-cyr-700.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Alegreya"; src: url(/fonts/alegreya-lat-400.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Alegreya"; src: url(/fonts/alegreya-lat-400i.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Alegreya"; src: url(/fonts/alegreya-lat-700.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Oswald"; src: url(/fonts/oswald-lat-400.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Oswald"; src: url(/fonts/oswald-lat-500.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Oswald"; src: url(/fonts/oswald-lat-700.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+2000-206F, U+20AC, U+2122, U+2212; }

:root {
  /* палитра снята с авторских картин */
  --night: #172a6b;        /* кобальтовое небо */
  --night-deep: #0d1940;
  --night-line: #2c4089;
  --bone: #e8e4d9;         /* кость, бумага страниц */
  --bone-dim: #b9b5ab;
  --ink: #1d1c22;          /* уголь */
  --ink-soft: #4a4850;
  --ember: #c73a22;        /* глаза Мёртвого Зверя */
  --ember-hi: #e0533a;
  --daisy: #eec53a;        /* сердцевина ромашки */
  --tg: #2a9bd8;

  --serif: "Alegreya", Georgia, "Times New Roman", serif;
  --poster: "Oswald", "Arial Narrow", sans-serif;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --paper-grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .3  0 0 0 0 .25  0 0 0 0 .2  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--bone);
  background: var(--night-deep);
  background-image: var(--grain), radial-gradient(120% 80% at 30% 0%, var(--night) 0%, var(--night-deep) 70%);
  background-attachment: fixed;
  font: 400 1.125rem/1.6 var(--serif);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--daisy); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; display: inline-flex; align-items: center; min-height: 44px; background: var(--bone); color: var(--ink); padding: 8px 16px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: 2px; cursor: pointer;
  font: 500 1.05rem/1 var(--poster); letter-spacing: .04em; text-decoration: none;
  transition: background-color .15s, transform .15s;
}
.btn--primary { background: var(--ember); color: #fff; }
.btn--primary:hover { background: var(--ember-hi); }
.btn--primary:active { transform: translateY(1px); }
.btn--tg { background: var(--tg); color: #fff; }
.btn--tg:hover { background: #3aaae6; }
.btn[aria-disabled="true"] { background: transparent; color: var(--ink-soft); border: 1px dashed currentColor; cursor: default; }
.btn--small { min-height: 40px; padding: 0 18px; background: var(--bone); color: var(--ink); }
.link { background: none; border: 0; padding: 0; color: var(--bone); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- первый экран ----------
   Одна композиция для всех ширин: обложка несёт название, рядом (на телефоне — под ней)
   подзаголовок, кнопка, аннотация. На десктопе обложка слева, текст справа. */
.hero {
  min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center; gap: clamp(32px, 6vw, 96px);
  padding: clamp(24px, 5vh, 88px) clamp(16px, 6vw, 96px);
  max-width: 1240px; margin: 0 auto;
}
.hero__book { order: -1; }
/* название — на обложке; заголовок h1 остаётся для поиска и скринридеров */
.title { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero__lead { margin: 0; max-width: 15em; text-wrap: balance; font: italic 400 clamp(1.6rem, 3.2vw, 2.7rem)/1.22 var(--serif); color: var(--bone); }
.hero__lead::after { content: ""; display: block; width: 56px; height: 3px; margin-top: .55em; background: var(--ember); }
.hero__annotation { margin: 1.2em 0 0; max-width: 32em; text-wrap: pretty; color: var(--bone-dim); font-size: 1.2rem; }
.hero__actions { margin-top: 2.2em; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hero__actions .btn { min-height: 60px; padding: 0 48px; font-size: 1.2rem; }
.hero__meta { margin: 0; max-width: 17em; font-size: 1rem; line-height: 1.4; color: var(--bone-dim); }
.hero__resume { margin: 1.2em 0 0; }

.hero__book { margin: 0; display: flex; justify-content: center; }
.cover {
  position: relative; width: min(100%, 400px, (100svh - 80px) * .6667); aspect-ratio: 2 / 3;
  background: var(--ink); border-radius: 3px 8px 8px 3px; overflow: hidden;
  transform: rotateZ(-2deg);
  box-shadow: -1px 0 0 rgba(255,255,255,.08) inset, 10px 0 0 -4px #d9d4c6, 11px 1px 0 -4px #bdb7a7,
              30px 40px 60px rgba(0,0,0,.55);
}
.cover::before { /* корешок */
  content: ""; position: absolute; inset: 0 auto 0 0; width: 14px; z-index: 2;
  background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(255,255,255,.08) 60%, transparent);
}
.cover picture { display: block; height: 100%; }
.cover img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- читалка ---------- */
.reader {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  padding: 12px clamp(8px, 3vw, 40px) 16px; border-top: 1px solid var(--night-line);
}
.reader__bar { display: flex; align-items: center; gap: 12px; max-width: 1180px; width: 100%; margin: 0 auto; }
.reader__bar--top { justify-content: space-between; min-height: 48px; }
.reader__where .wide-only { display: inline; }
.reader__where { margin: 0; flex: 1; text-align: center; font: italic 400 1rem/1.3 var(--serif); color: var(--bone-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reader__tools { display: flex; gap: 6px; }
.icon-btn {
  min-height: 44px; min-width: 44px; padding: 0 12px; border: 1px solid var(--night-line); border-radius: 2px;
  background: transparent; color: var(--bone); font: 500 .95rem/1 var(--poster); letter-spacing: .03em; cursor: pointer;
}
.icon-btn:hover { background: rgba(232,228,217,.08); }
.reader__close { display: none; }
.narrow-only { display: none; }
@media (max-width: 520px) { .wide-only { display: none; } .narrow-only { display: inline; } }

.reader__stage { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 420px; padding: 10px 0; }
.reader__loading { position: absolute; color: var(--bone-dim); font-style: italic; }
.book { margin: 0 auto; transition: transform .6s ease; }
.book.is-ready + .reader__loading { display: none; }

.reader__bar--bottom { min-height: 52px; }
.nav-btn {
  width: 48px; height: 48px; flex: none; border-radius: 50%; border: 1px solid var(--night-line);
  background: transparent; color: var(--bone); font: 400 1.9rem/1 var(--serif); cursor: pointer; padding-bottom: 4px;
}
.nav-btn:hover { background: rgba(232,228,217,.08); }
.progress { position: relative; flex: 1; height: 3px; background: var(--night-line); }
.progress__fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ember); transition: width .4s; }
.reader__page { margin: 0; min-width: 7.5em; text-align: right; font: 400 .95rem/1 var(--poster); letter-spacing: .03em; color: var(--bone-dim); }

.toc {
  position: absolute; z-index: 30; top: 64px; left: clamp(8px, 3vw, 40px); width: min(380px, calc(100% - 16px));
  max-height: calc(100% - 140px); overflow: auto; padding: 8px 0;
  background: var(--bone); color: var(--ink); box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
.toc__list { list-style: none; margin: 0; padding: 0; counter-reset: ch; }
.toc__list button {
  display: grid; grid-template-columns: 2.2em 1fr; width: 100%; padding: 9px 18px; border: 0; background: none;
  text-align: left; font: 400 1.05rem/1.3 var(--serif); color: var(--ink); cursor: pointer;
}
.toc__list button:hover, .toc__list button[aria-current="true"] { background: rgba(23,42,107,.08); }
.toc__list button[aria-current="true"] { font-weight: 700; }
.toc__n { font: 500 .9rem/1.45 var(--poster); color: var(--ember); }

/* режим чтения во весь экран (мобильные) */
body.is-focus { overflow: hidden; }
body.is-focus .reader {
  position: fixed; inset: 0; z-index: 40; padding: max(6px, env(safe-area-inset-top)) 6px max(8px, env(safe-area-inset-bottom));
  background: var(--night-deep); border: 0;
}
body.is-focus .reader__close { display: inline-block; }
body.is-focus .reader__stage { min-height: 0; }

/* ---------- страницы книги ---------- */
.page {
  background-color: var(--bone); background-image: var(--paper-grain); color: var(--ink);
  overflow: hidden;
}
.page__inner {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  padding: var(--pad-y, 44px) var(--pad-x, 42px) calc(var(--pad-y, 44px) - 10px);
}
.page--left .page__inner { background: linear-gradient(270deg, rgba(0,0,0,.13), rgba(0,0,0,0) 9%); }
.page--right .page__inner { background: linear-gradient(90deg, rgba(0,0,0,.13), rgba(0,0,0,0) 9%); }
.page__head { flex: none; height: 1.6em; margin-bottom: 1em; font: italic 400 .8em/1.6 var(--serif); color: #8a8578; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page__body { flex: 1; overflow: hidden; font-size: var(--fs, 18px); line-height: 1.55; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.page__body p { margin: 0; text-indent: 1.3em; }
.page__body p.cont { text-indent: 0; }
.page__foot { flex: none; height: 1.6em; margin-top: .5em; font: 400 .78em/1.6 var(--poster); color: #8a8578; text-align: center; letter-spacing: .05em; }

.page--start .page__head { visibility: hidden; }
.chapter-head { text-align: center; padding-top: .6em; margin-bottom: 1.6em; }
.chapter-head__n { display: block; font: 500 .82em/1 var(--poster); letter-spacing: .14em; color: var(--ember); }
.chapter-head__t { display: block; margin-top: .45em; font: 700 1.6em/1.15 var(--serif); }
.chapter-head::after { content: ""; display: block; width: 36px; height: 2px; margin: .9em auto 0; background: var(--ink); opacity: .6; }
.page__body p.first { text-indent: 0; }
.page__body p.first::first-letter { float: left; font: 700 3.35em/.82 var(--poster); padding: .08em .08em 0 0; color: var(--night); }

.page--pic .page__inner { padding: 0; justify-content: center; align-items: center; }
.pic { margin: 0; display: flex; flex-direction: column; align-items: center; }
.pic picture { display: block; }
.pic img { max-width: none; background: #cfcabd; box-shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 22px rgba(0,0,0,.22); }
.pic figcaption { margin-top: 14px; font: italic 400 .85rem/1.3 var(--serif); color: var(--ink-soft); text-align: center; }

.page--cover { background: var(--night-deep); color: var(--bone); box-shadow: inset 0 0 0 1px var(--night-line); }
.page--cover .page__inner { padding: 0; container-type: inline-size; }
.page--cover picture { display: block; width: 100%; height: 100%; }
.page--cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.cv {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 6cqw 4cqw 7cqw;
  background: linear-gradient(to bottom, rgba(10,13,30,.7) 0, rgba(10,13,30,0) 24%, rgba(10,13,30,0) 70%, rgba(10,13,30,.92) 100%);
  color: #eee8da; text-align: center;
}
.cv__t { font: 700 21cqw/1.05 var(--poster); letter-spacing: .07em; margin-right: -.07em; }
.cv__s { margin-top: 1.2cqw; font: italic 400 5.4cqw/1.1 var(--serif); }
.cv__s::after { content: ""; display: block; width: 9cqw; height: max(2px, .35cqw); margin: 1.2cqw auto 0; background: var(--ember); }
.cv__a { margin-top: auto; font: 400 3.5cqw/1 var(--poster); letter-spacing: .5em; margin-right: -.5em; text-transform: uppercase; }
.page--cover-wide img { object-position: 50% 38%; }
.page--cover-wide .cv { padding: 3cqw 4cqw 4cqw; }
.page--cover-wide .cv__t { font-size: 12cqw; }
.page--cover-wide .cv__s { font-size: 3.2cqw; }
.page--cover-wide .cv__a { font-size: 2.2cqw; }
.page--title .page__inner, .page--end .page__inner { justify-content: center; align-items: center; text-align: center; }
.title-page__t { font: 700 3.6em/1 var(--poster); letter-spacing: .08em; }
.title-page__s { margin-top: .6em; font: italic 400 1.15em/1.4 var(--serif); color: var(--ink-soft); }
.title-page__key { margin-top: 2.4em; max-width: 17em; font: 400 .95em/1.5 var(--serif); color: var(--ink-soft); }
.end-page__t { font: 500 1.1em/1 var(--poster); letter-spacing: .2em; color: var(--ember); }
.end-page__q { margin: 1.2em 0 1.6em; font: italic 400 1.15em/1.45 var(--serif); max-width: 16em; }
.end-page .btn { margin-top: 10px; min-height: 46px; font-size: .95rem; }
.page--back { background: var(--night-deep); background-image: var(--grain); color: var(--bone); box-shadow: inset 0 0 0 1px var(--night-line); }
.page--back .page__inner { padding: 0; justify-content: center; align-items: center; }
.back { display: flex; flex-direction: column; align-items: center; text-align: center; }
.back__t { font: 700 2em/1 var(--poster); letter-spacing: .1em; }
.back__t::after { content: ""; display: block; width: 40px; height: 3px; margin: .5em auto; background: var(--ember); }
.back__a { font: italic 400 1.05em/1.2 var(--serif); color: var(--bone-dim); }
.back__age { margin-top: 2.2em; font: 500 .8em/1 var(--poster); letter-spacing: .1em; color: var(--bone-dim); }
.book.is-short .page__head { display: none; }

/* ---------- автор ---------- */
.author, .reviews { padding: clamp(64px, 9vw, 120px) clamp(16px, 6vw, 96px); }
.author { background: var(--bone); background-image: var(--paper-grain); color: var(--ink); }
.author__inner, .reviews__inner { max-width: 760px; margin: 0 auto; }
.section-title { margin: 0 0 .8em; font: 700 clamp(2.2rem, 5vw, 3.4rem)/1 var(--poster); letter-spacing: .02em; }
.author__text p { margin: 0 0 1em; font-size: 1.2rem; line-height: 1.65; }
.author__sign { font-style: italic; }
.author__sign span { display: block; margin-top: .4em; font: 500 1rem/1 var(--poster); font-style: normal; letter-spacing: .06em; color: var(--ember); }
.author .btn--tg { margin-top: 1em; }

/* ---------- отзывы ---------- */
.reviews__intro { margin: 0 0 2em; color: var(--bone-dim); font-size: 1.15rem; max-width: 36em; }
.review-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; padding-bottom: 48px; border-bottom: 1px solid var(--night-line); }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field--wide, .beasts { grid-column: 1 / -1; }
.field label, .field legend { font: 500 .95rem/1.2 var(--poster); letter-spacing: .04em; color: var(--bone); padding: 0; }
.hint { font: italic 400 .9rem var(--serif); letter-spacing: 0; color: var(--bone-dim); margin-left: .3em; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--night-line); border-radius: 2px;
  background: rgba(13,25,64,.6); color: var(--bone); font: 400 1.1rem/1.45 var(--serif);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--daisy); }
.field [aria-invalid="true"] { border-color: var(--ember-hi); }
.beasts__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.beast { position: relative; }
.beast input { position: absolute; opacity: 0; inset: 0; }
.beast span {
  display: inline-block; padding: 8px 14px; border: 1px solid var(--night-line); border-radius: 999px;
  font: 400 1rem/1.2 var(--serif); color: var(--bone-dim); cursor: pointer;
}
.beast input:checked + span { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.beast input:focus-visible + span { outline: 2px solid var(--daisy); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 1rem; line-height: 1.4; color: var(--bone-dim); }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--ember); flex: none; }
.review-form__end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-msg { margin: 0; font-size: 1.05rem; }
.form-msg.is-error { color: #ff9b86; }
.form-msg.is-ok { color: var(--daisy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }

.review-list { list-style: none; margin: 0; padding: 0; }
.review { padding: 30px 0; border-bottom: 1px solid var(--night-line); }
.review__text { margin: 0; font-size: 1.2rem; line-height: 1.6; white-space: pre-line; }
.review__who { margin: .8em 0 0; font: 400 1rem/1.3 var(--serif); color: var(--bone-dim); }
.review__who b { font: 500 1rem var(--poster); letter-spacing: .04em; color: var(--bone); margin-right: .5em; }
.review__beast { font-style: italic; }
.review-empty { padding: 30px 0; color: var(--bone-dim); font-style: italic; }

.footer { padding: 28px clamp(16px, 6vw, 96px) 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .95rem; color: var(--bone-dim); border-top: 1px solid var(--night-line); }
.footer p { margin: 0; }

.cookie {
  position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 440px;
  display: flex; gap: 16px; align-items: center; padding: 14px 16px;
  background: var(--night-deep); border: 1px solid var(--night-line); box-shadow: 0 10px 30px rgba(0,0,0,.5);
  font-size: .95rem; line-height: 1.4; color: var(--bone-dim);
}
.cookie p { margin: 0; }
/* атрибут hidden должен побеждать display у компонентов (иначе «Понятно» не закрывает плашку) */
[hidden] { display: none !important; }
body.is-focus .cookie { display: none; }

/* ---------- адаптив ---------- */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 28px; gap: 8px; }
  .cover { width: min(58vw, 260px); }
  .hero__book { margin-bottom: 26px; }
  .hero__lead { margin: 0 auto; text-align: center; font-size: clamp(1.35rem, 5.6vw, 1.7rem); }
  .hero__lead::after { margin: .5em auto 0; width: 44px; }
  .hero__actions .btn { min-height: 56px; padding: 0 28px; font-size: 1.1rem; }
  .hero__meta { text-align: center; }
  .hero__text { display: flex; flex-direction: column; }
  .hero__annotation { order: 3; margin-top: 1.4em; font-size: 1.05rem; }
  .hero__actions { order: 2; margin-top: 1.4em; }
  .hero__resume { order: 4; }
  .review-form { grid-template-columns: 1fr; }
  .reader__where { font-size: .9rem; }
}
@media (max-width: 520px) {
  .icon-btn { padding: 0 9px; }
  .reader__bar--top { gap: 8px; }
  .reader__where { font-size: .85rem; }
  .reader__where .wide-only { display: none; }
  .reader__close { width: 44px; padding: 0; font-size: 0; }
  .reader__close::before { content: "✕"; font: 400 1.15rem/1 var(--serif); }
  .toc { left: 6px; right: 6px; width: auto; top: 60px; max-height: calc(100% - 130px); }
  .toc__list button { padding: 11px 16px; }
  .reader__page { min-width: 5.5em; font-size: .85rem; }
  .btn { width: 100%; }
  .cookie { left: 8px; right: 8px; bottom: 8px; padding: 10px 12px; font-size: .88rem; gap: 10px; }
  .cookie .btn { width: auto; flex: none; }
  .hero__meta { max-width: none; }
  .author .btn--tg, .review-form__end .btn { width: 100%; }
}
@media (max-height: 520px) {
  body.is-focus .reader__bar--top { min-height: 40px; }
  body.is-focus .reader__bar--bottom { min-height: 44px; }
  body.is-focus .icon-btn { min-height: 38px; }
  body.is-focus .nav-btn { width: 42px; height: 42px; }
  body.is-focus .reader__stage { padding: 4px 0; }
  .toc { top: 50px; max-height: calc(100% - 60px); }
}
@media (min-width: 881px) {
  .cookie { left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
