/*
Theme Name: Чернила и бумага
Theme URI: https://borisbelentsov.ru/
Description: Тема сайта поэта Бориса Беленцова: сайт как рукопись писателя — бумага, чернила, тетрадный лист, каталожные карточки. Стихи с разделами, проза, песни с аудио.
Author: Максим Пахраев
Version: 1.0.0
Requires PHP: 8.0
Text Domain: belentsov
*/
/* Макет «Чернила и бумага»: сайт как рукопись писателя. Полноэкранное фото с рваным бумажным краем →
   оглавление-«главы» → тетрадный лист со стихотворением → библиотечные каталожные карточки → альбомное фото
   с экслибрисом → «чернильный» подвал. Рваный край бумаги рисуется на canvas; пятен и размывов нет — просьба Максима.
   Единый светлый образ сознательно: бумага и чернила. */
:root {
  --paper: #fbf8f1;          /* бумага */
  --paper-card: #fffdf8;     /* каталожная карточка, тетрадь */
  --paper-edge: #e6dccb;     /* кромка бумаги, линии */
  --linen: #f0e7d8;          /* лист потемнее: чередующиеся блоки */
  --ink: #26307a;            /* фиолетово-синие чернила: заголовки, акценты */
  --ink-deep: #171d4f;       /* подвал */
  --text: #2b2d3a;           /* основной текст — чёрные чернила с синевой */
  --muted: #5f5e6b;          /* второстепенный */
  --sepia: #8a6a45;          /* сепия: машинопись, подписи */
  --margin-red: #c4473a;     /* поле тетради, верхняя линейка карточки — редко */
  --rule-blue: rgba(38, 48, 122, .14);

  --f-display: 'Prata', 'Playfair Display', Georgia, serif;
  --f-text: 'Literata', 'PT Serif', Georgia, serif;
  --f-hand: 'Marck Script', 'Segoe Script', cursive;
  --f-type: 'PT Mono', 'Courier New', monospace;

  --page: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);

  /* росчерк пера под словом: тонкая неровная линия чернилами */
  --pen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.04 .6' numOctaves='2' seed='3'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='3'/%3E%3C/filter%3E%3Cg filter='url(%23r)' fill='none' stroke='%2326307a' stroke-linecap='round'%3E%3Cpath d='M4 15 C60 10 140 17 230 11 S286 9 296 6' stroke-width='2.6'/%3E%3Cpath d='M30 19 C110 14 190 19 270 14' stroke-width='1.2' opacity='.55'/%3E%3C/g%3E%3C/svg%3E");
  --pen-sepia: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.04 .6' numOctaves='2' seed='8'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='3'/%3E%3C/filter%3E%3Cpath d='M4 13 C80 18 170 9 296 14' filter='url(%23r)' fill='none' stroke='%238a6a45' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  /* бумажное зерно */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .22 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper) var(--grain); color: var(--text); font: 400 18px/1.65 var(--f-text);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; color: var(--ink); margin: 0; text-wrap: balance; letter-spacing: 0; }
p { margin: 0; }
.wrap { max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter); position: relative; z-index: 1; }
:focus-visible { outline: 2px dashed var(--ink); outline-offset: 4px; border-radius: 4px; }
.hand { font-family: var(--f-hand); font-weight: 400; color: var(--ink); }
.pen { background: var(--pen) no-repeat 0 100% / 100% .42em; padding-bottom: .12em; }
.pen.sepia { background-image: var(--pen-sepia); }
.deckle { position: absolute; pointer-events: none; }
section { position: relative; }

/* Кнопки — «чернильные» */
.btn { display: inline-flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 30px; border-radius: 999px;
  font: 500 17px/1 var(--f-text); background: var(--ink); color: var(--paper-card); transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 2px 0 rgba(23,29,79,.25), 0 10px 26px rgba(38,48,122,.22); }
.btn:hover { background: var(--ink-deep); transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; transition: transform .2s; }
.btn:hover svg { transform: translateX(4px); }
.btn-paper { background: rgba(255,253,248,.72); color: var(--ink); border: 1.5px solid var(--ink); box-shadow: none; backdrop-filter: blur(4px); }
.more { font: 400 26px/1 var(--f-hand); color: var(--ink); display: inline-flex; align-items: center; gap: 10px;
  background: var(--pen) no-repeat 0 100% / 0 .35em; padding-bottom: 6px; transition: background-size .4s ease; }
.more:hover { background-size: 100% .35em; }

/* Шапка */
.top { position: absolute; inset: 0 0 auto 0; z-index: 6; padding-top: env(safe-area-inset-top, 0px);
  background: linear-gradient(180deg, rgba(243,242,247,.85), rgba(243,242,247,0)); }
.top .wrap { max-width: 1320px; display: flex; align-items: center; gap: 32px; height: 96px; }
.logo { display: grid; line-height: 1; }
.logo b { font: 400 25px/1 var(--f-display); color: var(--ink); }
.logo span { font: 400 19px/1.1 var(--f-hand); color: var(--sepia); margin-top: 4px; }
.nav { display: flex; gap: clamp(18px, 2.4vw, 36px); margin-left: auto; position: relative; isolation: isolate; }
.nav::before { content: ""; position: absolute; inset: -26px -44px; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(251,248,241,.9), rgba(251,248,241,.72) 55%, rgba(251,248,241,0));
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent); mask-image: radial-gradient(closest-side, #000 55%, transparent); }
.nav a { font: 600 16px/1 var(--f-text); color: var(--ink); padding: 10px 2px 12px; text-shadow: 0 0 10px rgba(251,248,241,.95), 0 0 2px rgba(251,248,241,.9);
  background: var(--pen) no-repeat 0 100% / 0 .55em; transition: background-size .45s ease; }
.nav a:hover, .nav a[aria-current] { background-size: 100% .55em; }
.burger { display: none; width: 48px; height: 48px; margin-left: auto; border: 0; border-radius: 50%; background: rgba(255,253,248,.8); color: var(--ink); }

/* Первый экран */
.hero { min-height: max(660px, min(100svh, 1000px)); display: grid; align-items: center; overflow: hidden; background: #ecebf3; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero picture img { object-fit: cover; object-position: 0% 45%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(246,244,247,.88) 0%, rgba(246,244,247,.55) 25%, rgba(246,244,247,0) 42%); }
.hero-text { z-index: 3; width: 100%; max-width: 1320px; padding-top: 70px; padding-bottom: 60px; }
.hero-text > div { max-width: 600px; display: grid; gap: 24px; }
.hero .over { font: 400 15px/1.5 var(--f-type); letter-spacing: .14em; text-transform: uppercase; color: var(--sepia); }
.hero h1 { font-size: clamp(56px, 7vw, 104px); line-height: 1; }
.signature { font: 400 clamp(38px, 4vw, 58px)/1 var(--f-hand); color: var(--ink); margin-top: -6px; padding-left: .2em;
  clip-path: inset(0 0 -20% 0); animation: write 1.7s .3s cubic-bezier(.45,.05,.35,1) backwards; }
@keyframes write { from { clip-path: inset(0 100% -20% 0); } }
.hero .lead { font: italic 400 clamp(20px, 1.7vw, 24px)/1.5 var(--f-text); color: var(--text); max-width: 30ch; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.deckle { left: 0; right: 0; bottom: -1px; height: 70px; width: 100%; z-index: 4; }
.deckle.top-edge { top: -1px; bottom: auto; transform: scaleY(-1); }

/* Оглавление */
.toc-sec { padding-block: calc(var(--section) * .7) var(--section); }
.toc-head { display: grid; justify-items: center; text-align: center; gap: 10px; margin-bottom: 48px; }
.toc-head .hand { font-size: 30px; color: var(--sepia); }
.toc-head h2 { font-size: clamp(42px, 4.6vw, 64px); }
.toc { list-style: none; padding: 0; margin: 0 auto; max-width: 980px; display: grid; gap: 6px; }
.toc a { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 4px 28px; padding: 26px 20px; border-radius: 18px; position: relative; transition: background .3s; }
.toc a:hover { background: rgba(38,48,122,.045); }
.toc .num { grid-row: span 2; font: 400 64px/1 var(--f-display); color: var(--ink); opacity: .9; text-align: right; padding-top: 4px; }
.toc .line { display: flex; align-items: baseline; gap: 16px; min-width: 0; }
.toc h3 { font-size: clamp(34px, 3.4vw, 46px); line-height: 1.1; white-space: nowrap; }
.toc .dots { flex: 1; border-bottom: 2px dotted rgba(38,48,122,.35); transform: translateY(-8px); min-width: 24px; }
.toc .go { font: 400 26px/1 var(--f-hand); color: var(--ink); white-space: nowrap; }
.toc .go svg { width: 22px; height: 22px; vertical-align: -3px; transition: transform .25s; }
.toc a:hover .go svg { transform: translateX(5px); }
.toc p { color: var(--muted); max-width: 52ch; }
.toc a:hover h3 { background: var(--pen) no-repeat 0 100% / 100% .3em; }

/* Тетрадный лист со стихотворением */
.poem-sec { padding-block: calc(var(--section) + 30px); overflow: hidden; background: var(--linen); }
.notebook { max-width: 760px; margin-inline: auto; background-color: var(--paper-card); position: relative; transform: rotate(-.8deg);
  box-shadow: 0 1px 0 var(--paper-edge), 0 22px 50px rgba(60,50,30,.12), 0 2px 6px rgba(60,50,30,.08);
  padding: 56px clamp(24px, 5vw, 64px) 56px clamp(72px, 10vw, 112px);
  background-image: linear-gradient(90deg, transparent calc(clamp(56px, 8vw, 90px) - 1px), rgba(196,71,58,.55) calc(clamp(56px, 8vw, 90px) - 1px), rgba(196,71,58,.55) calc(clamp(56px, 8vw, 90px) + 1px), transparent calc(clamp(56px, 8vw, 90px) + 1px)),
    repeating-linear-gradient(180deg, transparent 0 35px, var(--rule-blue) 35px 36px);
  background-position: 0 0, 0 20px; }
.notebook::before { content: ""; position: absolute; top: -14px; left: 50%; width: 120px; height: 30px; transform: translateX(-50%) rotate(2deg);
  background: rgba(236,226,205,.8); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.notebook .when { font: 400 14px/36px var(--f-type); color: var(--sepia); letter-spacing: .06em; }
.notebook h2 { font: 400 48px/72px var(--f-hand); color: var(--ink); }
.notebook .verse { font: 400 20px/36px var(--f-text); color: var(--text); display: grid; gap: 36px; margin-top: 18px; }
.notebook .sign { font: 400 32px/72px var(--f-hand); color: var(--ink); text-align: right; }
.notebook .note { font: italic 400 15px/36px var(--f-text); color: var(--muted); }

/* Каталожные карточки */
.fresh { padding-block: var(--section); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(40px, 4.4vw, 60px); line-height: 1.05; }
.sec-head .hand { font-size: 28px; color: var(--sepia); display: block; margin-bottom: 8px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.card { position: relative; display: grid; gap: 10px; align-content: start; padding: 26px 26px 54px; min-width: 0;
  background-color: var(--paper-card); border: 1px solid var(--paper-edge); border-radius: 4px;
  background-image: linear-gradient(var(--margin-red), var(--margin-red)), repeating-linear-gradient(180deg, transparent 0 31px, var(--rule-blue) 31px 32px);
  background-size: 100% 2px, 100% 100%; background-position: 0 58px, 0 66px; background-repeat: no-repeat, repeat;
  box-shadow: 0 10px 26px rgba(60,50,30,.08); transition: transform .3s, box-shadow .3s; }
.card:nth-child(1) { transform: rotate(-1.2deg); } .card:nth-child(2) { transform: rotate(.6deg) translateY(10px); } .card:nth-child(3) { transform: rotate(-.4deg); }
.card:hover { transform: rotate(0) translateY(-6px); box-shadow: 0 18px 40px rgba(60,50,30,.14); }
.card::after { content: ""; position: absolute; left: 50%; bottom: 16px; width: 18px; height: 18px; border-radius: 50%; transform: translateX(-50%);
  background: var(--paper); box-shadow: inset 0 1px 3px rgba(0,0,0,.18); }
.card .code { display: flex; justify-content: space-between; gap: 12px; font: 400 14px/1 var(--f-type); color: var(--sepia); letter-spacing: .08em; text-transform: uppercase; height: 32px; }
.card h3 { font-size: 28px; line-height: 32px; margin-top: 4px; }
.card p { font-size: 17px; line-height: 32px; color: var(--muted); }
.card .read { font: 400 24px/32px var(--f-hand); color: var(--ink); }

/* Об авторе */
.about { padding-block: calc(var(--section) + 30px); overflow: hidden; background: var(--linen); }
.about .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.album { position: relative; padding: 18px; background: var(--paper-card); box-shadow: 0 16px 40px rgba(60,50,30,.14); transform: rotate(-2deg); margin: 0; }
.album picture { display: block; }
.album img { aspect-ratio: 760 / 870; object-fit: cover; width: 100%; }
.album figcaption { font: 400 24px/1.2 var(--f-hand); color: var(--sepia); text-align: center; padding-top: 14px; }
.about-text { display: grid; gap: 22px; min-width: 0; }
.about-text .hand { font-size: 30px; color: var(--sepia); }
.about h2 { font-size: clamp(40px, 4.4vw, 58px); line-height: 1.08; }
.about .drop::first-letter { float: left; font: 400 84px/.82 var(--f-display); color: var(--ink); margin: 8px 12px 0 0; }
.about-text p { font-size: 19px; }
.about .btn { justify-self: start; margin-top: 8px; }

/* Подвал */
.foot { background: var(--ink-deep); color: #e9e6f3; position: relative; padding-block: 92px 32px; overflow: hidden; }
.foot .wrap { display: grid; gap: 36px; }
.foot .quote { font: 400 clamp(34px, 4vw, 56px)/1.15 var(--f-hand); color: #fff; max-width: 20ch; }
.foot .row { display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 30px; }
.foot nav a { opacity: .85; } .foot nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.socials { display: flex; gap: 12px; }
.socials a { width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(233,230,243,.35); display: grid; place-items: center; transition: background .2s, color .2s; }
.socials a:hover { background: #e9e6f3; color: var(--ink-deep); }
.socials svg { width: 22px; height: 22px; }
.foot .copy { font: 400 14px/1.6 var(--f-type); opacity: .7; padding-top: 26px; border-top: 1px solid rgba(233,230,243,.15); }


@media (max-width: 1000px) {
  .nav { display: none; } .burger { display: grid; place-items: center; }
  .cards { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
  .card:nth-child(n) { transform: none; }
  .about .wrap { grid-template-columns: minmax(0, 1fr); }
  .album { max-width: 480px; }
}
@media (min-width: 721px) and (max-aspect-ratio: 3/2) {
  .hero-text > div { max-width: 470px; }
  .hero h1 { font-size: clamp(52px, 6.2vw, 90px); }
  .hero picture img { object-position: 0% 45%; }
}
@media (max-width: 720px) {
  .top .wrap { height: 76px; }
  /* телефон: текст сверху, под ним фото — выходит из фона без жёсткой границы */
  .hero { min-height: 0; display: flex; flex-direction: column; align-items: stretch; background: linear-gradient(180deg, #f4f3f5, #e0dfe0); }
  .hero picture { position: relative; inset: auto; height: auto; order: 2; margin-top: -28px; }
  .hero picture img { position: relative; inset: auto; height: auto; aspect-ratio: 820 / 941; object-position: center;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%); mask-image: linear-gradient(180deg, transparent 0, #000 16%); }
  .hero::before { display: none; }
  .hero-text { padding-top: 96px; padding-bottom: 0; }
  .hero-text > div { gap: 14px; }
  .hero .over { font-size: 13px; }
  .hero .actions { flex-wrap: nowrap; gap: 10px; }
  .hero .btn { flex: 1 1 0; justify-content: center; padding: 0 14px; font-size: 16px; }
  .deckle { height: 40px; }
  .toc a { grid-template-columns: 56px minmax(0, 1fr); gap: 4px 16px; padding: 20px 6px; }
  .toc .num { font-size: 40px; }
  .toc h3 { font-size: 32px; }
  .toc .go { display: none; }
  .notebook { transform: none; }
  }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ===================== Эффекты: прокрутка и наведение (без пятен и без следования за мышью) =====================
   Скрытые начальные состояния действуют только под html.fx — класс ставит скрипт, если движение не отключено.
   Без JS и при «уменьшить движение» всё видно сразу. */

/* кнопка-контур: заливка чернилами слева направо */
.btn-paper { background-image: linear-gradient(var(--ink), var(--ink)); background-repeat: no-repeat; background-size: 0 100%;
  transition: background-size .45s cubic-bezier(.6,.05,.3,1), color .3s .05s, transform .2s; }
.btn-paper:hover { background-size: 100% 100%; color: var(--paper-card); }

/* первый экран: фото мягко «отъезжает» при загрузке, при прокрутке уходит медленнее текста */
.hero picture img { animation: settle 2.6s cubic-bezier(.2,.7,.2,1) both; will-change: translate; }
@keyframes settle { from { scale: 1.06; } to { scale: 1; } }

/* закладка-ляссе: показывает, сколько прочитано */
.ribbon { position: fixed; top: 0; right: clamp(14px, 2.4vw, 34px); z-index: 30; width: 22px; height: calc(48px + var(--p, 0) * 170px);
  background: linear-gradient(90deg, #7d2a26, #a23a33 45%, #8a2f2a); pointer-events: none;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 11px), 0 100%);
  box-shadow: inset -3px 0 0 rgba(0,0,0,.12); opacity: 0; transform: translateY(-20px); transition: opacity .4s, transform .4s; }
.ribbon.on { opacity: .92; transform: none; }

/* росчерк пером дописывается */
html.fx .pen { background-size: 0 .42em; transition: background-size 1.1s cubic-bezier(.6,.1,.3,1) .25s; }
html.fx .in .pen, html.fx .pen.in { background-size: 100% .42em; }

/* оглавление: цифры проявляются, отточие протягивается */
html.fx .toc li { opacity: 0; translate: 0 18px; transition: opacity .7s, translate .7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i) * .15s); }
html.fx .toc li .dots { transform-origin: left; scale: 0 1; transition: scale 1.1s cubic-bezier(.6,.1,.3,1); transition-delay: calc(var(--i) * .15s + .35s); }
html.fx .toc li .num { opacity: 0; transition: opacity 1.2s; transition-delay: calc(var(--i) * .15s + .2s); }
html.fx .toc.in li { opacity: 1; translate: 0 0; }
html.fx .toc.in li .dots { scale: 1 1; }
html.fx .toc.in li .num { opacity: .9; }

/* тетрадь: заголовок, строки и подпись пишутся по очереди */
html.fx .notebook .w { display: inline-block; clip-path: inset(-10% 100% -20% 0); transition: clip-path var(--d, .9s) cubic-bezier(.45,.05,.35,1); transition-delay: var(--t, 0s); }
html.fx .notebook.in .w { clip-path: inset(-10% 0 -20% 0); }

/* каталожные карточки выдвигаются из ящика по одной, штамп ставится с ударом */
html.fx .cards .card { opacity: 0; translate: 0 60px; transition: opacity .6s, translate .8s cubic-bezier(.2,.8,.25,1.05), transform .3s, box-shadow .3s; transition-delay: calc(var(--i) * .16s); }
html.fx .cards.in .card { opacity: 1; translate: 0 0; }

/* альбомное фото проявляется из сепии в цвет, экслибрис штампуется */
html.fx .album img { filter: sepia(.85) saturate(.55) contrast(.92) brightness(1.05); transition: filter 2.4s ease .2s; }
html.fx .album.in img { filter: none; }
/* цитата в подвале дописывается */
html.fx .foot .quote { clip-path: inset(-10% 100% -20% 0); transition: clip-path 2.2s cubic-bezier(.45,.05,.35,1) .2s; }
html.fx .foot .quote.in { clip-path: inset(-10% 0 -20% 0); }

@media (max-width: 720px) { .ribbon { width: 18px; } }
@media (prefers-reduced-motion: reduce) { .ribbon { display: none; } }

/* ===================== Внутренние страницы ===================== */

.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 12px; }
.i { width: 1.15em; height: 1.15em; flex: none; }
.more .i { width: 22px; height: 22px; }

/* поиск в шапке */
.search-link { width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink); border-radius: 50%; margin-left: -12px; }
.search-link:hover { background: rgba(38,48,122,.07); }
.search-link .i { width: 22px; height: 22px; }
.nav-search { display: none; }

/* шапка страницы: пейзаж уходит в бумагу */
.page-head { position: relative; overflow: hidden; background: #efeae4; min-height: clamp(340px, 36vw, 470px); display: grid; align-items: end; }
.page-head picture, .page-head picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-head picture img { object-fit: cover; object-position: 100% 50%; }  /* натюрморты design/banner2/ (Nano Banana, 16.10.2026): still_2 — стихи, knigi, pesni, video; предметы справа */
.page-head-plain { background: #f1e8da; }
.page-head-plain::before { display: none; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(251,248,241,.94) 0%, rgba(251,248,241,.78) 34%, rgba(251,248,241,.2) 70%, rgba(251,248,241,0)),
              linear-gradient(0deg, rgba(251,248,241,.6), rgba(251,248,241,0) 45%); }
.page-head-text { z-index: 3; width: 100%; max-width: 1320px; padding-top: 120px; padding-bottom: clamp(56px, 6vw, 84px); display: grid; gap: 10px; justify-items: start; }
.page-head h1 { font-size: clamp(48px, 6.4vw, 92px); line-height: 1.02; max-width: 16ch; }
.page-head .hand { font-size: clamp(26px, 2.4vw, 34px); color: var(--sepia); }
.page-head .lead { font: italic 400 clamp(18px, 1.5vw, 22px)/1.5 var(--f-text); color: var(--text); max-width: 34ch; margin-top: 6px; }
.crumbs { font: 400 14px/1.4 var(--f-type); letter-spacing: .04em; color: var(--sepia); display: flex; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 8px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.crumbs-plain { margin: 0 0 34px; }

/* полка: разделы + список стихов */
.shelf { padding-block: clamp(40px, 5vw, 72px) var(--section); }
.narrow { max-width: 860px; }
.shelf-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; max-width: 1320px; }
.sections { position: sticky; top: 24px; display: grid; gap: 28px; }
.sections-box { background: var(--paper-card); border: 1px solid var(--paper-edge); border-radius: 6px; padding: 18px 10px 14px; box-shadow: 0 10px 26px rgba(60,50,30,.06); }
.sections-box summary { font: 400 26px/1 var(--f-hand); color: var(--sepia); padding: 0 12px 10px; cursor: pointer; list-style: none; }
.sections-box summary::-webkit-details-marker { display: none; }
.sections-box ul { list-style: none; margin: 0; padding: 0; max-height: calc(100vh - 160px); overflow: auto; overscroll-behavior: contain; }
.sections-box a { display: flex; justify-content: space-between; gap: 10px; padding: 7px 12px; border-radius: 6px; font-size: 16px; line-height: 1.35; color: var(--text); }
.sections-box a small { font: 400 13px/1.6 var(--f-type); color: var(--sepia); }
.sections-box a:hover { background: rgba(38,48,122,.05); color: var(--ink); }
.sections-box a[aria-current] { background: rgba(38,48,122,.08); color: var(--ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--ink); }
.aside-quote { font: 400 24px/1.3 var(--f-hand); color: var(--ink); padding: 0 12px; opacity: .85; }

.shelf-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.shelf-head h2 { font-size: clamp(36px, 3.6vw, 52px); line-height: 1.1; }
.term-desc { color: var(--muted); margin-top: 10px; max-width: 60ch; }
.shelf-count { font: 400 14px/1.5 var(--f-type); color: var(--sepia); letter-spacing: .04em; margin: 14px 0 22px; }
.search-box { position: relative; width: min(100%, 320px); }
.search-box input { width: 100%; height: 50px; padding: 0 50px 0 18px; border: 1px solid var(--paper-edge); border-radius: 999px; background: var(--paper-card);
  font: 400 16px/1 var(--f-text); color: var(--text); }
.search-box input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(38,48,122,.12); }
.search-box button { position: absolute; right: 4px; top: 4px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.search-box button .i { width: 22px; height: 22px; }
.search-big { width: 100%; margin-bottom: 8px; }
.search-big input { height: 60px; font-size: 18px; }
.search-big button { top: 9px; }

.poem-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 48px; }
.poem-list li { break-inside: avoid; border-bottom: 1px dotted rgba(38,48,122,.22); }
.poem-list a { display: grid; gap: 2px; padding: 12px 6px 12px 2px; }
.poem-list .t { font: 400 21px/1.3 var(--f-display); color: var(--ink); }
.poem-list .first { font-size: 15px; line-height: 1.4; color: var(--muted); font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poem-list a:hover .t { background: var(--pen) no-repeat 0 100% / 100% .32em; }
.poem-list-one { columns: 1; }
.empty { color: var(--muted); font-style: italic; padding: 30px 0; }

.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 48px; }
.pager .page-numbers { min-width: 46px; height: 46px; padding: 0 12px; display: grid; place-items: center; border-radius: 999px; font: 400 16px/1 var(--f-type); color: var(--ink); border: 1px solid transparent; }
.pager a.page-numbers:hover { border-color: var(--paper-edge); background: var(--paper-card); }
.pager .current { background: var(--ink); color: var(--paper-card); }
.pager .dots { border: 0; }

/* одно стихотворение — тетрадный лист */
.sheet-sec { padding-block: 130px var(--section); background: var(--linen); }
.notebook-single { transform: rotate(-.4deg); }
.notebook-single h1 { font: 400 clamp(40px, 5vw, 56px)/72px var(--f-hand); color: var(--ink); }
.notebook .verse p { margin: 0; }
.notebook h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; }
.neighbors { max-width: 760px; margin: 48px auto 0; display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; }
.neighbors a { display: grid; gap: 2px; }
.neighbors small { font: 400 13px/1.4 var(--f-type); color: var(--sepia); letter-spacing: .04em; }
.neighbors span { font: 400 20px/1.25 var(--f-display); color: var(--ink); }
.neighbors .next { text-align: right; }
.neighbors .all { font: 400 24px/1 var(--f-hand); color: var(--ink); white-space: nowrap; }
.neighbors a:hover span { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.back { max-width: 760px; margin: 40px auto 0; }

/* проза */
.prose-list { display: grid; gap: 0; }
.prose-item { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr) auto; gap: clamp(20px, 3vw, 40px); align-items: center; padding: 28px 0; border-bottom: 1px solid var(--paper-edge); }
.prose-pic img, .prose-ph { aspect-ratio: 760 / 480; width: 100%; object-fit: cover; border-radius: 4px; box-shadow: 0 10px 24px rgba(60,50,30,.1); }
.prose-ph { display: grid; place-items: center; background: var(--paper-card); border: 1px solid var(--paper-edge);
  background-image: repeating-linear-gradient(180deg, transparent 0 31px, var(--rule-blue) 31px 32px); }
.prose-ph span { font: 400 92px/1 var(--f-display); color: var(--ink); opacity: .85; }
.prose-body { display: grid; gap: 10px; }
.prose-body h2 { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.15; }
.prose-body h2 a:hover { background: var(--pen) no-repeat 0 100% / 100% .3em; }
.prose-body p { color: var(--muted); }

.reading { padding-block: clamp(48px, 6vw, 80px) var(--section); }
.prose-text { max-width: 720px; margin-inline: auto; font-size: 19px; line-height: 1.75; }
.prose-text > * + * { margin-top: 1.1em; }
.prose-text h2, .prose-text h3 { margin-top: 1.6em; }
.prose-text h2 { font-size: 34px; } .prose-text h3 { font-size: 26px; }
.prose-text a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.prose-text blockquote { margin-inline: 0; padding-left: 24px; border-left: 2px solid var(--paper-edge); font-style: italic; color: var(--muted); }
.prose-text .wp-block-verse, .prose-text pre.wp-block-verse { font: italic 400 19px/1.75 var(--f-text); white-space: pre-wrap; background: none; padding: 0; }
.prose-text img { height: auto; border-radius: 4px; }
.prose-text .sign { font: 400 32px/1.2 var(--f-hand); color: var(--ink); text-align: right; margin-top: 1.6em; }
/* книги прозы: аннотация, эпиграф, оглавление, переходы между главами */
.prose-text > h2:first-child { margin-top: 0; }
.prose-book p:not([class]) { text-indent: 1.5em; }
.prose-text .date { text-align: right; font-style: italic; color: var(--muted); }
.prose-text .annot { font-size: 21px; color: var(--muted); }
.prose-text .epigraph { margin: 2em 0 0 auto; max-width: 30em; border: 0; padding: 0; text-align: right; }
.prose-text .epigraph cite { display: block; margin-top: .4em; font: 400 24px/1.2 var(--f-hand); color: var(--ink); }
.book-toc { max-width: 720px; margin: 48px auto 0; padding-top: 36px; border-top: 1px solid var(--paper-edge); }
.book-toc h2 { font-size: 34px; margin-bottom: 18px; }
.book-toc ol { list-style: none; margin: 0 0 32px; padding: 0; }
.book-toc li a { display: block; padding: 9px 0; border-bottom: 1px dotted var(--paper-edge); color: var(--text); font-size: 18px; }
.book-toc li a:hover { color: var(--ink); }
.book-toc .part { margin-top: 26px; padding-bottom: 6px; font: 400 26px/1.2 var(--f-hand); color: var(--ink); }
.chapter-nav { max-width: 720px; margin: 56px auto 0; padding-top: 24px; border-top: 1px solid var(--paper-edge);
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: start; }
.chapter-nav a, .chapter-nav .end { color: var(--ink); font-size: 17px; line-height: 1.35; }
.chapter-nav a span { display: block; font: 400 24px/1.2 var(--f-hand); margin-bottom: 4px; }
.chapter-nav .next, .chapter-nav .end { text-align: right; }
.chapter-nav .end { font: 400 24px/1.2 var(--f-hand); }
.chapter-nav .to-toc { font: 400 24px/1.2 var(--f-hand); padding-top: 0; }
.chapter-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 640px) {
  .chapter-nav { grid-template-columns: 1fr 1fr; }
  .chapter-nav .to-toc { grid-column: 1 / -1; grid-row: 2; text-align: center; }
}

/* об авторе */
.about-page { background: var(--paper); padding-block: clamp(48px, 6vw, 88px) var(--section); }
.about-page .wrap { align-items: start; }
.about-page .album { position: sticky; top: 30px; }
.about-page .prose-text { margin: 0; max-width: none; }

/* песни */
.songs { list-style: none; margin: 0; padding: 0; max-width: 1000px; }
.song { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 24px; align-items: center; padding: 16px 0; border-bottom: 1px dotted rgba(38,48,122,.22); }
.song-title { display: grid; gap: 4px; }
.song-title a { font: 400 24px/1.25 var(--f-display); color: var(--ink); }
.song-title small { font: italic 400 15px/1.4 var(--f-text); color: var(--muted); }
.song[hidden] { display: none; }
.song .more { justify-self: end; font-size: 22px; }
.singers { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 36px; max-width: 1000px; }
.singers .label { font: italic 400 16px/1 var(--f-text); color: var(--muted); margin-right: 4px; }
.singers a.on { background: var(--ink); border-color: var(--ink); color: var(--paper-card); }
.singers a.on span { color: inherit; opacity: .75; }
.singers a { padding: 8px 16px; border: 1px solid var(--paper-edge); border-radius: 999px; background: var(--paper-card); color: var(--ink); font-size: 16px; }
.singers a span { color: var(--muted); font-size: 14px; margin-left: 4px; }
.singers a:hover { border-color: var(--ink); }
.notebook-single .when a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.player { display: flex; align-items: center; gap: 16px; }
.player .play { width: 52px; height: 52px; flex: none; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper-card); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s; }
.player .play svg { width: 22px; height: 22px; }
.player .play .pa { display: none; }
.player.on .play { background: var(--ink); color: var(--paper-card); }
.player.on .play .pa { display: inline; } .player.on .play .pl { display: none; }
.player .bar { flex: 1; height: 4px; border-radius: 4px; background: rgba(38,48,122,.15); position: relative; cursor: pointer; }
.player .bar::before { content: ""; position: absolute; inset: -12px 0; }
.player .fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 4px; background: var(--ink); }
.player .time { font: 400 13px/1 var(--f-type); color: var(--sepia); min-width: 84px; text-align: right; }
.player-big { margin: 10px 0 26px; }
.video { margin: 10px 0 26px; aspect-ratio: 16 / 9; } .video iframe { width: 100%; height: 100%; border: 0; }
.empty-note { max-width: 680px; display: grid; gap: 20px; justify-items: start; padding-block: 20px; }
.empty-note .hand { font-size: 34px; color: var(--sepia); }
.empty-note p { color: var(--muted); }

/* контакты */
.contacts { padding-block: clamp(48px, 6vw, 80px) var(--section); }
.contacts-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contacts-side { display: grid; gap: 28px; align-content: start; }
.contacts-side .prose-text { margin: 0; }
.mail-line { display: flex; align-items: center; gap: 18px; font: 400 22px/1.3 var(--f-display); color: var(--ink); }
.mail-line small { display: block; font: 400 14px/1.4 var(--f-type); color: var(--sepia); }
.mail-line .ic, .socials-ink a { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--paper-edge); background: var(--paper-card); color: var(--ink); flex: none; }
.mail-line .ic svg { width: 24px; height: 24px; }
.socials-ink a:hover { background: var(--ink); color: var(--paper-card); }
.letter { background-color: var(--paper-card); border: 1px solid var(--paper-edge); border-radius: 4px; padding: clamp(26px, 4vw, 48px); display: grid; gap: 18px;
  box-shadow: 0 18px 44px rgba(60,50,30,.1); transform: rotate(.4deg);
  background-image: linear-gradient(var(--margin-red), var(--margin-red)); background-size: 100% 2px; background-position: 0 92px; background-repeat: no-repeat; }
.letter h2 { font: 400 42px/1.1 var(--f-hand); color: var(--ink); padding-bottom: 18px; }
.letter label { display: grid; gap: 6px; }
.letter label > span { font: 400 13px/1 var(--f-type); letter-spacing: .06em; text-transform: uppercase; color: var(--sepia); }
.letter input[type=text], .letter input[type=email], .letter textarea { width: 100%; border: 0; border-bottom: 1.5px solid var(--paper-edge); background: transparent; padding: 10px 2px; font: 400 18px/1.5 var(--f-text); color: var(--text); border-radius: 0; }
.letter textarea { resize: vertical; background-image: repeating-linear-gradient(180deg, transparent 0 26px, var(--rule-blue) 26px 27px); line-height: 27px; }
.letter input:focus, .letter textarea:focus { outline: none; border-bottom-color: var(--ink); }
.letter .two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.letter .agree { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.letter .agree input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--ink); }
.letter .agree a { color: var(--ink); text-decoration: underline; }
.letter .btn { justify-self: start; border: 0; cursor: pointer; }
.hp { position: absolute; left: -9999px; }
.flash { padding: 12px 16px; border-radius: 6px; font-size: 16px; }
.flash.ok { background: #e7f0e3; color: #2e5426; } .flash.err { background: #f6e3df; color: #7d2a26; }

/* меню на телефоне */
@media (max-width: 1000px) {
  .search-link { margin-left: auto; }
  .burger { margin-left: 0; cursor: pointer; }
  .nav.open { display: grid; position: fixed; inset: 0; z-index: 40; margin: 0; padding: 96px 28px 40px; gap: 6px; align-content: start;
    background: var(--paper) var(--grain); overflow: auto; }
  .nav.open::before { display: none; }
  .nav.open a { font: 400 34px/1.2 var(--f-display); padding: 10px 0; text-shadow: none; justify-self: start; }
  .nav.open .nav-search { display: block; margin-top: 18px; }
  .nav.open .nav-search input { width: 100%; height: 54px; padding: 0 18px; border: 1px solid var(--paper-edge); border-radius: 999px; background: var(--paper-card); font: 400 17px/1 var(--f-text); }
  body.menu-open { overflow: hidden; }
  body.menu-open .burger { position: relative; z-index: 41; }
  body.menu-open .burger .b1 { d: path("M6 6c4 4 8 8 12 12"); } body.menu-open .burger .b2 { d: path("M6 18c4-4 8-8 12-12"); }
  .shelf-grid { grid-template-columns: minmax(0, 1fr); }
  .sections { position: static; }
  .sections-box ul { max-height: 50vh; }
  .aside-quote { display: none; }
  .prose-item { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); }
  .prose-item .more { grid-column: 2; }
  .contacts-grid { grid-template-columns: minmax(0, 1fr); }
  .about-page .album { position: relative; top: 0; }
}
@media (max-width: 720px) {
  .page-head { min-height: 300px; }
  .page-head::before { background: linear-gradient(0deg, rgba(251,248,241,.95) 10%, rgba(251,248,241,.55) 60%, rgba(251,248,241,.25)); }
  .page-head-text { padding-top: 96px; padding-bottom: 50px; }
  .poem-list { columns: 1; }
  .sheet-sec { padding-top: 100px; }
  .notebook-single { transform: none; padding-left: 64px; padding-right: 18px; }
  .notebook .verse { font-size: 18px; }
  .neighbors { grid-template-columns: 1fr 1fr; }
  .neighbors .all { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .prose-item { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .prose-item .more { grid-column: auto; }
  .song { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .song .more { justify-self: start; }
  .letter { transform: none; }
  .letter .two { grid-template-columns: minmax(0, 1fr); }
  .search-box { width: 100%; }
}

/* поправки после проверки в браузере */
.album img { height: auto; }
.page-head-text { max-width: var(--page); }
.letter .agree > span { font: 400 15px/1.5 var(--f-text); text-transform: none; letter-spacing: 0; color: var(--muted); }
.sections-box summary .cur { display: none; }
@media (max-width: 1000px) {
  .sections-box { padding: 14px 10px; }
  .sections-box summary { display: flex; align-items: center; gap: 12px; padding-bottom: 0; }
  .sections-box summary .cur { display: inline; font: 400 16px/1.2 var(--f-text); color: var(--ink); margin-left: auto; }
  .sections-box summary::after { content: ""; width: 9px; height: 9px; border: solid var(--ink); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
  .sections-box[open] summary::after { transform: rotate(-135deg); }
  .sections-box[open] summary { padding-bottom: 10px; }
}
.admin-bar .top { top: 32px; }
@media (max-width: 782px) { .admin-bar .top { top: 46px; } }
.shelf-main { transition: opacity .2s; }
.shelf-main.loading { opacity: .45; pointer-events: none; }

/* ---------- Видео ---------- */
.video-group + .video-group { margin-top: 64px; }
.video-group h2 { font-size: clamp(28px, 2.6vw, 36px); margin-bottom: 24px; }
.videos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 36px; max-width: 1100px; }
.vplayer { background: #10153a; border-radius: 6px; overflow: hidden; box-shadow: 0 10px 30px -18px rgba(20,26,70,.5); }
.vplayer video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #10153a; }
.video-card h3 { font: 400 24px/1.25 var(--f-display); margin: 16px 0 4px; }
.video-card h3 a { color: var(--ink); }
.video-card .credit { font: italic 400 15px/1.4 var(--f-text); color: var(--muted); margin: 0; }
.video-single { max-width: 980px; }
.video-single h1 { margin: 6px 0 24px; }
.video-single .btn { margin-top: 28px; }
.video-single .prose-text { margin-top: 24px; }
.related-video { margin-top: 40px; }
.related-video .when a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .videos { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

/* ---------- Книги: обложка, аннотация, отрывок, ЛитРес ---------- */
.prose-item { grid-template-columns: minmax(0, 190px) minmax(0, 1fr) auto; }
.prose-pic img, .prose-pic .prose-ph { aspect-ratio: 415 / 594; height: auto; object-fit: cover; border-radius: 3px; box-shadow: 0 12px 28px -10px rgba(40,34,20,.35); }
.prose-links { display: grid; gap: 10px; justify-items: start; margin: 0; }
.book-top { max-width: 980px; margin: 0 auto 56px; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.book-cover img, .book-cover .prose-ph { display: block; width: 100%; height: auto; aspect-ratio: 415 / 594; object-fit: cover; border-radius: 3px; box-shadow: 0 18px 40px -14px rgba(40,34,20,.45); }
.book-info .annot { font-size: 21px; line-height: 1.6; color: var(--text); margin: 0; }
.book-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 0; }
.book-contents { margin-top: 32px; border-top: 1px solid var(--paper-edge); padding-top: 16px; }
.book-contents summary { cursor: pointer; font: 400 26px/1.2 var(--f-hand); color: var(--ink); }
.book-contents ol { list-style: none; margin: 14px 0 0; padding: 0; columns: 2; column-gap: 32px; font-size: 16px; color: var(--muted); }
.book-contents li { padding: 4px 0; break-inside: avoid; }
.book-contents li.part { font-weight: 600; color: var(--text); padding-top: 12px; column-span: none; }
#otryvok { scroll-margin-top: 24px; }
.prose-text .cut { text-indent: 0; text-align: center; letter-spacing: .3em; color: var(--muted); }
.book-more { max-width: 720px; margin: 56px auto 0; padding: 36px 32px; text-align: center; background: var(--paper-card); border: 1px solid var(--paper-edge); border-radius: 6px; }
.book-more .hand { font: 400 30px/1.2 var(--f-hand); color: var(--ink); margin: 0 0 20px; }
@media (max-width: 1000px) { .prose-item { grid-template-columns: minmax(0, 150px) minmax(0, 1fr); } .prose-item .prose-links { grid-column: 2; } }
@media (max-width: 760px) {
  .prose-item { grid-template-columns: minmax(0, 110px) minmax(0, 1fr); align-items: start; }
  .prose-item .prose-links { grid-column: 1 / -1; display: flex; gap: 24px; }
  .book-top { grid-template-columns: minmax(0, 1fr); }
  .book-cover { max-width: 220px; }
  .book-contents ol { columns: 1; }
  .book-more { padding: 28px 18px; }
}
.prose-item .prose-links .more { grid-column: auto; }
#otryvok > .annot { display: none; }  /* аннотация уже стоит рядом с обложкой */

/* награды и дипломы на «Об авторе» */
.diplomas { padding-block: 0 var(--section); }
.diplomas h2 { font-size: clamp(34px, 3.6vw, 52px); margin: 4px 0 clamp(24px, 3vw, 40px); }
.diplomas .hand { font-size: clamp(24px, 2.2vw, 30px); color: var(--sepia); }
.diploma-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: clamp(14px, 2vw, 26px); align-items: start; }
.diploma { display: block; background: #fff; padding: 8px; box-shadow: 0 1px 2px rgba(30,49,80,.08), 0 10px 24px -14px rgba(30,49,80,.35); transition: transform .25s, box-shadow .25s; cursor: zoom-in; }
.diploma:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(30,49,80,.08), 0 16px 30px -14px rgba(30,49,80,.45); }
.diploma img { display: block; width: 100%; height: auto; }
.viewer { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; overflow: visible; }
.viewer::backdrop { background: rgba(20,26,40,.82); }
.viewer img { display: block; max-width: 94vw; max-height: 94vh; width: auto; height: auto; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.viewer-close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }
@media (max-width: 520px) { .diploma-grid { grid-template-columns: 1fr 1fr; } .viewer-close { top: 6px; right: 6px; } }

/* ---------- 16.10.2026, №10053–10054 ---------- */
/* «Как талая вода…» перед биографией на «Об авторе» */
.about-text .about-verse { font: italic 400 21px/1.6 var(--f-text); color: var(--ink); margin: 0 0 6px; padding-left: 22px; border-left: 2px solid var(--paper-edge); }
.about-text .about-verse + .about-verse { margin-top: -6px; }
.about-text .about-sign { font: 400 26px/1.2 var(--f-hand); color: var(--sepia); text-align: right; margin: -8px 0 10px; }

/* Поэты о поэте */
.tributes { padding-block: 0 var(--section); }
.tributes .hand { font-size: clamp(24px, 2.2vw, 30px); color: var(--sepia); }
.tributes h2 { font-size: clamp(34px, 3.6vw, 52px); margin: 4px 0 clamp(24px, 3vw, 40px); }
.tribute-list { columns: 2 340px; column-gap: clamp(20px, 3vw, 40px); }
.tribute { break-inside: avoid; margin: 0 0 clamp(20px, 3vw, 40px); padding: clamp(22px, 3vw, 36px); background: var(--linen); border-radius: 4px; box-shadow: 0 1px 2px rgba(30,49,80,.06); }
.tribute h3 { font-size: clamp(22px, 2vw, 27px); line-height: 1.2; margin: 0 0 14px; }
.tribute p { font: 400 18px/1.65 var(--f-text); margin: 0 0 1em; }
.tribute .tribute-author { font: 400 26px/1.2 var(--f-hand); color: var(--sepia); text-align: right; margin: 6px 0 0; }

/* Сборники стихов в «Книгах» */
.poem-books { margin-top: clamp(48px, 6vw, 88px); }
.poem-books .hand { font-size: clamp(24px, 2.2vw, 30px); color: var(--sepia); }
.poem-books h2 { font-size: clamp(34px, 3.6vw, 52px); margin: 4px 0 clamp(24px, 3vw, 40px); }
.poem-book-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: clamp(24px, 3vw, 40px); }
.poem-book { display: grid; gap: 10px; align-content: start; }
.poem-book-cover img, .poem-book-cover .prose-ph { display: block; width: 100%; height: auto; aspect-ratio: 415 / 594; object-fit: cover; border-radius: 3px; box-shadow: 0 12px 28px -10px rgba(40,34,20,.35); transition: transform .25s; }
.poem-book-cover:hover img { transform: translateY(-3px); }
.poem-book h3 { font-size: 24px; line-height: 1.2; margin: 8px 0 0; }
.poem-book p { color: var(--muted); font-size: 16px; margin: 0; }
.poem-book .more { justify-self: start; font-size: 23px; white-space: nowrap; }
@media (max-width: 520px) { .poem-book-grid { grid-template-columns: 1fr 1fr; gap: 18px; } .poem-book h3 { font-size: 19px; } .poem-book p { display: none; } }
