/* ============================================================================
   messiah.by — личное: «Помянник» (/pomyannik/) и «Молитвенное правило»
   (/pravilo/). Палитра и шрифты — общие (style.css).
   ========================================================================= */

[hidden] { display: none !important; }

.pm-head, .pr-head { padding-block: clamp(2rem, 5vw, 3.25rem) clamp(1.25rem, 3vw, 2rem); }
.pm-head h1, .pr-head h1 { margin-bottom: .45em; }
.pm-head p, .pr-head p { color: var(--ink-600); font-size: var(--t-lead); max-width: 40rem; }
.pm-auth { font-size: .95rem !important; padding: .75rem 1rem; border-radius: var(--r-sm);
  background: rgba(176, 135, 51, .08); border: 1px solid var(--line-gold); }

.pm-app, .pr-app { display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); padding-bottom: var(--section-y);
  transition: opacity var(--dur) var(--ease); }
.is-loading { opacity: .45; pointer-events: none; }

.pm-panel, .pm-list { padding: clamp(1.2rem, 3vw, 1.75rem); border-radius: var(--r-lg);
  background: var(--paper-0); border: 1px solid var(--line-hair); box-shadow: var(--shadow-sm); min-width: 0; }
.pm-panel h2, .pm-list h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: 0 0 .3rem; }
.pm-panel__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.pm-sub { color: var(--ink-500); font-size: .92rem; margin: 0 0 1rem; }
.pm-empty { color: var(--ink-500); font-size: .92rem; margin: .5rem 0 1rem; }
.pm-status { color: var(--red-600); font-size: .9rem; margin: 0; }

/* ---- Помянник: две колонки имён ------------------------------------ */
.pm-grid { display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.pm-list h2 { display: flex; align-items: center; gap: .6rem; }
.pm-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red-600); box-shadow: 0 0 0 4px rgba(166, 42, 48, .12); }
.pm-list--u .pm-dot { background: var(--ink-700); box-shadow: 0 0 0 4px rgba(27, 21, 18, .1); }
.pm-list--z { border-top: 3px solid var(--red-600); }
.pm-list--u { border-top: 3px solid var(--ink-700); }
.pm-list ul { list-style: none; margin: .75rem 0 1rem; padding: 0; display: grid; }
.pm-list li { display: flex; align-items: center; gap: .75rem; padding: .6rem 0; border-top: 1px solid var(--line-hair); }
.pm-list li:first-child { border-top: 0; }
.pm-name { flex: 1; min-width: 0; display: grid; }
.pm-name b { font: 600 1.2rem/1.25 var(--font-display); color: var(--ink-900); }
.pm-name span { font-size: .8rem; color: var(--ink-400); }
.pm-del { width: 32px; height: 32px; flex: none; border-radius: 50%; border: 1px solid transparent; background: none;
  color: var(--ink-400); cursor: pointer; }
.pm-del:hover { color: var(--red-600); border-color: var(--line); }

.pm-add { display: grid; gap: .75rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.pm-row { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); }
.pm-field { display: grid; gap: .3rem; font-size: .85rem; color: var(--ink-600); }
.pm-field i { color: var(--ink-400); font-style: normal; }
.pm-field input, .pm-field select { font: inherit; font-size: 1rem; padding: .6rem .8rem; border: 1px solid var(--line);
  border-radius: 10px; background: var(--paper-1); color: var(--ink-900); min-width: 0; width: 100%; }
.pm-field--name { grid-column: span 2; }
@media (max-width: 480px) { .pm-field--name { grid-column: auto; } }
.pm-hint { margin: 0; font-size: .85rem; color: var(--gold-700); background: var(--gold-100); padding: .5rem .75rem; border-radius: 8px; }
.pm-add .btn { justify-self: start; }

.pm-days { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.pm-days li { display: flex; align-items: center; gap: 1rem; padding: .75rem 1rem; border-radius: var(--r-sm);
  background: var(--paper-1); border: 1px solid var(--line-hair); }
.pm-days li.is-today { background: #fff5f3; border-color: rgba(166, 42, 48, .3); }
.pm-when { flex: none; width: 8.5rem; display: grid; font-weight: 600; color: var(--red-700); font-size: .92rem; }
.pm-when small { font-weight: 400; color: var(--ink-400); font-size: .78rem; }
.pm-what { display: grid; min-width: 0; }
.pm-what b { font-weight: 500; color: var(--ink-900); }
.pm-what span { font-size: .85rem; color: var(--ink-500); }

/* Записки — как бумажные бланки в свечной лавке. */
.pm-notes { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.pm-note { position: relative; padding: 1.25rem 1.25rem 1rem; background: #fff; border: 1px solid var(--line);
  border-radius: 4px; box-shadow: var(--shadow-xs); text-align: center; }
.pm-note svg { width: 22px; margin: 0 auto .4rem; fill: var(--red-600); }
.pm-note--u svg { fill: var(--ink-800); }
.pm-note h3 { font: 600 1.25rem/1.2 var(--font-display); margin: 0 0 .6rem; color: var(--red-700); }
.pm-note--u h3 { color: var(--ink-900); }
.pm-note ol { margin: 0; padding: 0 0 0 1.4rem; text-align: left; font: 500 1.08rem/1.65 var(--font-display); color: var(--ink-900); }

@media print {
  body.pm-printing > *:not(.page), body.pm-printing .crumbs, body.pm-printing .page-art,
  body.pm-printing .pm-head, body.pm-printing .pm-grid, body.pm-printing .pm-panel:not(.pm-print-area),
  body.pm-printing .pm-panel__head, body.pm-printing .site-head, body.pm-printing .site-foot,
  body.pm-printing .pm-status { display: none !important; }
  body.pm-printing .pm-print-area { border: 0; box-shadow: none; padding: 0; }
  body.pm-printing .pm-notes { grid-template-columns: 1fr 1fr; gap: 8mm; }
  body.pm-printing .pm-note { break-inside: avoid; box-shadow: none; border: 1px solid #000; }
}

/* ---- Молитвенное правило ------------------------------------------- */
.pr-today__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; }
.pr-today__head .pm-sub { margin: 0; }
.pr-ring { --p: 0; width: 64px; height: 64px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--gold-500) calc(var(--p) * 1%), var(--paper-40) 0); }
.pr-ring span { width: 50px; height: 50px; border-radius: 50%; background: var(--paper-0); display: grid; place-items: center;
  font: 600 .85rem/1 var(--font-text); color: var(--ink-800); }

.pr-list { list-style: none; margin: 0; padding: 0; display: grid; }
.pr-item { display: flex; align-items: center; gap: .9rem; padding: .8rem 0; border-top: 1px solid var(--line-hair); flex-wrap: wrap; }
.pr-item:first-child { border-top: 0; }
.pr-check { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-strong);
  background: var(--paper-0); cursor: pointer; display: grid; place-items: center; transition: all var(--dur-fast) var(--ease); }
.pr-check svg { width: 18px; fill: none; stroke: transparent; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pr-check:hover { border-color: var(--gold-500); }
.pr-item.is-done .pr-check { background: var(--gold-500); border-color: var(--gold-500); }
.pr-item.is-done .pr-check svg { stroke: #fff; }
.pr-item__txt { flex: 1; min-width: 10rem; display: grid; }
.pr-item__txt b { font-weight: 500; color: var(--ink-900); }
.pr-item.is-done .pr-item__txt b { color: var(--ink-500); text-decoration: line-through; text-decoration-color: var(--gold-300); }
.pr-count { font-size: .82rem; color: var(--gold-700); font-variant-numeric: tabular-nums; }
.pr-chotki-btn { padding: .4rem .9rem; border-radius: var(--r-pill); border: 1px solid var(--line-gold); background: var(--gold-100);
  font: 500 .85rem/1 var(--font-text); color: var(--ink-800); cursor: pointer; }
.pr-chotki-btn:hover { background: var(--gold-300); }
.pr-open { font-size: .88rem; font-weight: 500; white-space: nowrap; }

.pr-stats { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr)); margin: .75rem 0 1.25rem; }
.pr-stats div { padding: .8rem 1rem; border-radius: var(--r-sm); background: var(--paper-1); border: 1px solid var(--line-hair); display: grid; }
.pr-stats b { font: 500 1.9rem/1 var(--font-display); color: var(--red-700); font-variant-numeric: lining-nums; }
.pr-stats span { font-size: .8rem; color: var(--ink-500); line-height: 1.3; }

.pr-yearwrap { overflow-x: auto; padding-bottom: .25rem; }
.pr-months, .pr-year { display: grid; grid-template-columns: repeat(var(--cols, 53), 13px); gap: 3px; width: max-content; }
.pr-months { font-size: .68rem; color: var(--ink-400); margin-bottom: 4px; height: 1rem; }
.pr-months span { white-space: nowrap; }
.pr-year { grid-template-rows: repeat(7, 13px); grid-auto-flow: column; }
.pr-year i, .pr-legend i { display: block; width: 13px; height: 13px; border-radius: 3px; background: var(--paper-40); }
.pr-year .l1, .pr-legend .l1 { background: #efdcae; }
.pr-year .l2, .pr-legend .l2 { background: #dcb966; }
.pr-year .l3, .pr-legend .l3 { background: #b98a2e; }
.pr-year .l4, .pr-legend .l4 { background: #8a6723; }
.pr-legend { display: flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--ink-500); margin: .75rem 0 0; }
.pr-legend i { display: inline-block; }

.pr-presets { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.pr-preset { display: flex; align-items: center; gap: .6rem; padding: .65rem .85rem; border-radius: var(--r-sm);
  border: 1px solid var(--line-hair); background: var(--paper-1); cursor: pointer; font-size: .93rem; }
.pr-preset:has(input:checked) { border-color: var(--line-gold); background: #fffaf0; }
.pr-preset input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--red-600); flex: none; }
.pr-preset span { flex: 1; }
.pr-n { width: 4.5rem; font: inherit; padding: .3rem .4rem; border: 1px solid var(--line); border-radius: 8px; }
.pr-own-title { font-size: 1.2rem; margin: 1.25rem 0 .5rem; }
.pr-own { list-style: none; margin: 0 0 .75rem; padding: 0; }
.pr-own li { display: flex; align-items: center; justify-content: space-between; padding: .4rem 0; }
.pr-del { border: 0; background: none; color: var(--ink-400); cursor: pointer; }
.pr-own-form { display: grid; gap: .75rem; grid-template-columns: 2fr 1fr auto; align-items: end; }
.pr-own-form .pm-field--name { grid-column: auto; }
@media (max-width: 640px) { .pr-own-form { grid-template-columns: 1fr; } }

/* ---- Чётки: во весь экран, тёплая ночь, как в храме при лампадах ---- */
.pr-chotki { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 1rem;
  background: radial-gradient(40rem 30rem at 50% 40%, #3a2a1c, var(--night-950) 70%); color: var(--night-text); }
.pr-chotki__box { position: relative; width: min(100%, 28rem); text-align: center; display: grid; gap: .9rem; justify-items: center; }
.pr-chotki__close { position: absolute; top: -.25rem; right: 0; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--night-line); background: transparent; color: var(--night-text); cursor: pointer; font-size: 1rem; }
.pr-chotki__title { margin: 0; font-size: var(--t-micro); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--gold-300); }
.pr-chotki__prayer { margin: 0; font: italic 500 clamp(1.3rem, 1rem + 1.5vw, 1.7rem)/1.35 var(--font-display); max-width: 22rem; }
.pr-tap { position: relative; width: min(78vw, 300px); aspect-ratio: 1; border-radius: 50%; border: 0; cursor: pointer;
  background: radial-gradient(circle, rgba(217, 191, 134, .16), rgba(217, 191, 134, .02) 62%, transparent 63%);
  color: var(--night-text); -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.pr-tap:active { transform: scale(.985); }
.pr-tap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pr-tap circle { fill: rgba(239, 230, 214, .16); transition: fill .15s ease; }
.pr-tap circle.big { fill: rgba(239, 230, 214, .26); }
.pr-tap circle.on { fill: var(--gold-300); }
.pr-tap circle.on.big { fill: #f0dfb4; }
.pr-tap__n { position: absolute; inset: 0; display: grid; place-items: center; font: 500 clamp(3.5rem, 12vw, 5rem)/1 var(--font-display);
  color: #fff; font-variant-numeric: lining-nums tabular-nums; padding-bottom: 1.2rem; }
.pr-tap__of { position: absolute; left: 0; right: 0; top: 62%; font-size: .85rem; color: var(--night-mute); }
.pr-chotki__hint { margin: 0; font-size: .82rem; color: var(--night-mute); max-width: 22rem; }
.pr-chotki__actions { display: flex; gap: .6rem; }
.pr-chotki .btn--ghost { color: var(--night-text); border-color: rgba(217, 191, 134, .38); background: rgba(255,255,255,.03); }

/* ---- День Ангела (/imeniny/) --------------------------------------- */
.im-head { padding-block: clamp(2rem, 5vw, 3.25rem) clamp(1rem, 2.5vw, 1.5rem); }
.im-head p { color: var(--ink-600); font-size: var(--t-lead); max-width: 40rem; }
.im-form { display: grid; gap: .9rem; grid-template-columns: 2fr 1.2fr auto; align-items: end; max-width: 46rem;
  padding: clamp(1.1rem, 3vw, 1.5rem); border-radius: var(--r-lg); background: var(--paper-0);
  border: 1px solid var(--line-gold); box-shadow: var(--shadow-md); margin-bottom: clamp(1.5rem, 3vw, 2rem); }
.im-form .pm-field--name { grid-column: auto; }
@media (max-width: 640px) { .im-form { grid-template-columns: 1fr; } }
.im-result { display: grid; gap: 1.25rem; margin-bottom: clamp(1.5rem, 3vw, 2rem); scroll-margin-top: calc(var(--head-h, 72px) + 1rem); }
.im-card { padding: clamp(1.2rem, 3vw, 1.75rem); border-radius: var(--r-lg); background: var(--paper-0);
  border: 1px solid var(--line-hair); box-shadow: var(--shadow-sm); }
.im-angel { padding: clamp(1.2rem, 3vw, 1.75rem); margin: calc(-1 * clamp(1.2rem, 3vw, 1.75rem)) calc(-1 * clamp(1.2rem, 3vw, 1.75rem)) 1.25rem;
  border-radius: var(--r-lg) var(--r-lg) 0 0; color: var(--night-text);
  background: radial-gradient(30rem 16rem at 85% 0%, rgba(217, 170, 90, .28), transparent 70%), linear-gradient(160deg, var(--night-800), var(--night-950)); }
.im-angel .eyebrow { color: var(--gold-300); margin-bottom: .4rem; }
.im-date { margin: 0; font: 500 clamp(2.6rem, 1.6rem + 4vw, 4.2rem)/1 var(--font-display); color: #fff; }
.im-date--name { font-size: clamp(2rem, 1.4rem + 3vw, 3rem); }
.im-when { margin: .4rem 0 1rem; color: var(--gold-300); font-size: .92rem; }
.im-who { margin: 0 0 .35rem; font-size: 1.05rem; }
.im-who b { font: 500 1.35rem/1.3 var(--font-display); color: #fff; }
.im-why { margin: 0 0 1rem; font-size: .85rem; color: var(--night-mute); }
.im-angel .btn--ghost { color: var(--night-text); border-color: rgba(217, 191, 134, .38); background: rgba(255,255,255,.04); padding: .6rem 1.1rem; font-size: .9rem; }
.im-kept { font-size: .85rem; color: var(--night-mute); margin-left: .5rem; }
.im-kept a { color: var(--gold-300); }
.im-card h3 { font-size: 1.4rem; margin: 0 0 .6rem; }
.im-card h3 small { font: 500 .8rem/1 var(--font-text); color: var(--ink-400); }
.im-days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 0 1.5rem; }
.im-days li { display: flex; gap: .9rem; padding: .55rem 0; border-top: 1px solid var(--line-hair); }
.im-d { flex: none; width: 6.2rem; font-weight: 600; font-size: .88rem; color: var(--red-700); }
.im-w { display: grid; font-size: .92rem; color: var(--ink-800); }
.im-w small { color: var(--ink-400); font-size: .78rem; }
.im-days li.is-major .im-w b { color: var(--red-700); }
.im-days li.is-angel { background: var(--gold-100); border-radius: 8px; padding-inline: .6rem; margin-inline: -.6rem; }
.im-none { padding: 1.5rem; border-radius: var(--r-lg); background: var(--paper-0); border: 1px solid var(--line-gold); }
.im-none h2 { font-size: 1.6rem; }
.im-today { margin-bottom: var(--section-y); }
.im-today h2 small { font: 500 .9rem/1 var(--font-text); color: var(--ink-400); margin-left: .4rem; }
.im-names { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.im-names a { display: inline-grid; padding: .5rem .9rem; border-radius: var(--r-md); text-decoration: none;
  background: var(--paper-1); border: 1px solid var(--line-hair); color: var(--ink-900); }
.im-names a:hover { border-color: var(--line-gold); background: #fffaf0; }
.im-names a b { font: 600 1.1rem/1.2 var(--font-display); }
.im-names a.is-major b { color: var(--red-700); }
.im-names a span { font-size: .75rem; color: var(--ink-400); }
.pm-name .pm-angel { color: var(--gold-700); }
/* Второе и дальше церковное имя — тише: главный ответ один. */
.im-angel--alt { background: linear-gradient(160deg, var(--paper-25), var(--paper-30)); color: var(--ink-800); }
.im-angel--alt .eyebrow { color: var(--gold-700); }
.im-angel--alt .im-date, .im-angel--alt .im-who b { color: var(--ink-900); font-size: clamp(1.8rem, 1.3rem + 2vw, 2.4rem); }
.im-angel--alt .im-who b { font-size: 1.2rem; }
.im-angel--alt .im-when { color: var(--gold-700); }
.im-angel--alt .im-why { color: var(--ink-500); }

/* ---- Открытки (/otkrytki/) ------------------------------------------- */
.ok-head { padding-block: clamp(2rem, 5vw, 3.25rem) clamp(1rem, 2.5vw, 1.5rem); }
.ok-head p { color: var(--ink-600); font-size: var(--t-lead); max-width: 40rem; }
.ok-app { display: grid; gap: clamp(1.25rem, 3vw, 2.5rem); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start; padding-bottom: var(--section-y); }
@media (max-width: 860px) { .ok-app { grid-template-columns: 1fr; } }
.ok-preview { position: sticky; top: calc(var(--head-h, 72px) + 1rem); }
.ok-preview canvas { width: 100%; height: auto; border-radius: var(--r-md); box-shadow: var(--shadow-lg); display: block; background: #130e0b; }
@media (max-width: 860px) { .ok-preview { position: static; max-width: 420px; margin-inline: auto; width: 100%; } }
.ok-tools { display: grid; gap: 1.1rem; padding: clamp(1.2rem, 3vw, 1.6rem); border-radius: var(--r-lg);
  background: var(--paper-0); border: 1px solid var(--line-hair); box-shadow: var(--shadow-sm); }
.ok-group h2 { font: 600 var(--t-micro)/1.4 var(--font-text); letter-spacing: var(--track-caps); text-transform: uppercase;
  color: var(--gold-700); margin: 0 0 .6rem; }
.ok-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.ok-chip { padding: .45rem .85rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--paper-1);
  font: 500 .88rem/1.2 var(--font-text); color: var(--ink-700); cursor: pointer; }
.ok-chip[aria-pressed="true"] { background: var(--red-600); border-color: var(--red-600); color: #fff; }
.ok-arts { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: .45rem; }
.ok-art { padding: 0; border: 2px solid transparent; border-radius: 10px; background: none; cursor: pointer; aspect-ratio: 1; overflow: hidden; }
.ok-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; display: block; }
.ok-art[aria-pressed="true"] { border-color: var(--red-600); box-shadow: 0 0 0 3px rgba(166, 42, 48, .15); }
.ok-tools textarea { font: inherit; font-size: 1rem; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper-1); color: var(--ink-900); resize: vertical; width: 100%; }
.ok-theme { display: flex; gap: 1.25rem; font-size: .93rem; color: var(--ink-700); }
.ok-theme input { accent-color: var(--red-600); }
.ok-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.im-angel .im-card-link { color: var(--night-text); border-color: rgba(217, 191, 134, .38); background: rgba(255,255,255,.04); padding: .6rem 1.1rem; font-size: .9rem; }

/* ---- Готовлюсь к исповеди (/ispoved/) ------------------------------- */
.is-head { padding-block: clamp(2rem, 5vw, 3.25rem) clamp(1rem, 2.5vw, 1.5rem); }
.is-head p { color: var(--ink-600); font-size: var(--t-lead); max-width: 40rem; }
.is-secret { font-size: .92rem !important; padding: .75rem 1rem; border-radius: var(--r-sm); background: var(--paper-30); border: 1px solid var(--line); }
.is-steps { list-style: none; counter-reset: s; margin: 0 0 clamp(1.5rem, 3vw, 2.25rem); padding: 0;
  display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.is-steps li { counter-increment: s; display: grid; gap: .25rem; padding: 1rem 1.1rem 1.1rem; border-radius: var(--r-md);
  background: var(--paper-0); border: 1px solid var(--line-hair); box-shadow: var(--shadow-xs); }
.is-steps li::before { content: counter(s); font: 500 2rem/1 var(--font-display); color: var(--gold-500); }
.is-steps b { font: 600 1.15rem/1.2 var(--font-display); color: var(--ink-900); }
.is-steps span { font-size: .88rem; color: var(--ink-600); }
.is-app { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; margin-bottom: clamp(1.5rem, 3vw, 2rem); }
@media (max-width: 900px) { .is-app { grid-template-columns: minmax(0, 1fr); } }
.is-parts { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.is-part { padding: clamp(1.1rem, 3vw, 1.5rem); border-radius: var(--r-lg); background: var(--paper-0); border: 1px solid var(--line-hair); box-shadow: var(--shadow-sm); }
.is-part h2 { font-size: 1.6rem; margin: 0 0 .2rem; }
.is-hint { margin: 0 0 .8rem; font: italic 500 1.05rem/1.4 var(--font-display); color: var(--gold-700); }
.is-part ul { list-style: none; margin: 0; padding: 0; display: grid; }
.is-part li label { display: flex; gap: .7rem; align-items: flex-start; padding: .55rem .4rem; border-top: 1px solid var(--line-hair); cursor: pointer; border-radius: 6px; }
.is-part li:first-child label { border-top: 0; }
.is-part li label:hover { background: var(--paper-1); }
.is-part input { width: 18px; height: 18px; margin-top: .2rem; accent-color: var(--red-600); flex: none; }
.is-part li span { font-size: .96rem; color: var(--ink-800); }
.is-sheet-box { position: sticky; top: calc(var(--head-h, 72px) + 1rem); transition: opacity .6s ease, filter .6s ease, transform .6s ease; }
.is-sheet-box.is-burning { opacity: 0; filter: blur(6px) sepia(1); transform: translateY(-10px) scale(.98); }
.is-sheet { padding: clamp(1.1rem, 3vw, 1.5rem); border-radius: 4px; background: #fffdf8;
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
  background-image: repeating-linear-gradient(transparent 0 31px, rgba(176, 135, 51, .14) 31px 32px); }
.is-sheet h2 { font-size: 1.5rem; margin: 0 0 .6rem; }
.is-sheet h2 span { font: 600 .8rem/1 var(--font-text); color: #fff; background: var(--red-600); border-radius: 999px; padding: .2rem .5rem; vertical-align: middle; }
.is-sheet h2 span:empty { display: none; }
.is-sheet ol { margin: 0 0 1rem; padding-left: 1.3rem; font: 500 1.08rem/2rem var(--font-display); color: var(--ink-900); }
.is-empty { color: var(--ink-500); font-size: .9rem; }
.is-own { display: flex; gap: .5rem; margin-bottom: 1rem; }
.is-own input { flex: 1; min-width: 0; font: inherit; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.is-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.is-prich { margin-bottom: var(--section-y); }
.is-prich__grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); margin: .75rem 0 1rem; }
.is-prich h3 { font-size: 1.25rem; margin: 0 0 .3rem; }
.is-prich p { font-size: .92rem; color: var(--ink-700); margin: 0; }
@media print {
  body.is-printing > *:not(.page), body.is-printing .crumbs, body.is-printing .page-art, body.is-printing .is-head,
  body.is-printing .is-steps, body.is-printing .is-parts, body.is-printing .is-prich, body.is-printing .is-own,
  body.is-printing .is-actions, body.is-printing .site-head, body.is-printing .site-foot { display: none !important; }
  body.is-printing .is-app { display: block; }
  body.is-printing .is-sheet { box-shadow: none; border: 0; background-image: none; }
}
/* ---- Читаем Библию по плану (/plan/) ------------------------------- */
.pl-mine { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.pl-mine__lbl { font-size: .85rem; color: var(--ink-500); margin-right: .25rem; }
.pl-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .5rem .95rem; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--paper-0); font: 500 .9rem/1.2 var(--font-text); color: var(--ink-800);
  cursor: pointer; max-width: 100%; text-align: left; }
.pl-chip small { color: var(--gold-700); font-weight: 600; font-variant-numeric: tabular-nums; }
.pl-chip i { font-style: normal; color: var(--gold-500); }
.pl-chip:hover { border-color: var(--line-gold); }
.pl-chip[aria-pressed="true"] { background: var(--ink-800); border-color: var(--ink-800); color: var(--paper-0); }
.pl-chip[aria-pressed="true"] small, .pl-chip[aria-pressed="true"] i { color: var(--gold-300); }

.pl-today { border-top: 3px solid var(--gold-500); scroll-margin-top: calc(var(--head-h, 72px) + 1rem); }
.pl-today__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.pl-today__head > div:first-child { min-width: 0; }
.pl-today__head .pm-sub { margin: 0; }
.pl-kicker { display: block; font-size: var(--t-micro); font-weight: 600; letter-spacing: var(--track-caps);
  text-transform: uppercase; color: var(--gold-700); margin-bottom: .3rem; }
.pl-list .pr-item { row-gap: .5rem; }
.pl-list .pr-item__txt { min-width: 8rem; }
.pl-book { font-size: .8rem; color: var(--ink-400); }
.pl-chs { display: flex; flex-wrap: wrap; gap: .3rem; }
.pl-chs a { min-width: 30px; height: 30px; padding: 0 .35rem; display: grid; place-items: center; border-radius: 8px;
  border: 1px solid var(--line); background: var(--paper-1); font-size: .82rem; font-weight: 500; color: var(--ink-700);
  text-decoration: none; font-variant-numeric: tabular-nums; }
.pl-chs a:hover { border-color: var(--gold-500); color: var(--ink-900); }
.pl-chs a.is-on { background: var(--gold-100); border-color: var(--gold-300); color: var(--gold-700); }
.pl-list .pr-item.is-done .pl-chs { display: none; }
@media (max-width: 560px) {
  .pl-list .pr-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; column-gap: .8rem; }
  .pl-list .pl-chs { grid-column: 2 / -1; grid-row: 2; }
}

.pl-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
.pl-actions--quiet { padding-top: 1rem; border-top: 1px dashed var(--line); }
.pl-actions--quiet .btn { padding: .55rem 1.1rem; font-size: .88rem; }
.pl-done { font: italic 500 1.35rem/1.4 var(--font-display); color: var(--red-700); margin: .5rem 0 0; }

.pl-catch { margin: .25rem 0 .75rem; padding: .85rem 1rem; border-radius: var(--r-sm); font-size: .92rem; line-height: 1.5;
  background: #fff5f3; border: 1px solid rgba(166, 42, 48, .22); color: var(--ink-700); }
.pl-catch b { color: var(--red-700); }
.pl-catch__btns { display: flex; margin-top: .6rem; }
.pl-catch .btn { padding: .5rem 1rem; font-size: .86rem; }

.pl-bar { display: block; height: 10px; border-radius: var(--r-pill); background: var(--paper-40); overflow: hidden; margin: .75rem 0 0; }
.pl-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold-500), var(--gold-700)); }
.pl-bar--thin { height: 6px; margin: 0 0 .9rem; }
.pl-stats b small { font: 500 .95rem/1 var(--font-text); color: var(--ink-400); }
.pl-stats .pl-stats__date { font-size: 1.5rem; line-height: 1.27; }

.pl-cal__title { font-size: 1.3rem; margin: .25rem 0 .75rem; }
.pl-cal__title small { font: 400 .82rem/1 var(--font-text); color: var(--ink-400); margin-left: .35rem; }
.pl-cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 5px; }
.pl-cal button { aspect-ratio: 1; min-width: 0; padding: 0; border-radius: 8px; border: 1px solid var(--line-hair);
  background: var(--paper-1); color: var(--ink-500); font: 500 .74rem/1 var(--font-text); font-variant-numeric: tabular-nums;
  cursor: pointer; position: relative; }
.pl-cal--dense { grid-template-columns: repeat(auto-fill, minmax(25px, 1fr)); gap: 3px; }
.pl-cal--dense button { border-radius: 5px; font-size: .6rem; }
.pl-cal button:hover { border-color: var(--gold-500); color: var(--ink-900); }
.pl-cal .is-read, .pl-legend .is-read { background: var(--gold-500); border-color: var(--gold-500); color: #fff; }
.pl-cal .is-part, .pl-legend .is-part { background: var(--gold-100); border-color: var(--gold-300); color: var(--gold-700); }
.pl-cal .is-miss, .pl-legend .is-miss { background: #fbecea; border-color: rgba(166, 42, 48, .25); color: var(--red-600); }
.pl-cal .is-cur, .pl-legend .is-cur { box-shadow: 0 0 0 2px var(--red-600); border-color: transparent; color: var(--ink-900); font-weight: 700; }
.pl-cal .is-sched::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--red-600); }
.pl-cal .is-read.is-sched::after { background: #fff; }
.pl-cal .is-view { outline: 2px solid var(--ink-800); outline-offset: 1px; }
.pl-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: .9rem 0 .2rem; font-size: .8rem; color: var(--ink-500); }
.pl-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.pl-legend i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line-hair); background: var(--paper-1); }
.pl-cal__hint { margin: .25rem 0 0; font-size: .82rem; }

.pl-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); margin-top: .5rem; }
.pl-card { display: flex; flex-direction: column; padding: 1.15rem 1.2rem 1.2rem; border-radius: var(--r-md);
  background: var(--paper-1); border: 1px solid var(--line-hair); min-width: 0; }
.pl-card.is-on { background: #fffaf0; border-color: var(--line-gold); }
.pl-card.is-view { box-shadow: 0 0 0 2px var(--gold-300); }
.pl-card__days { display: inline-flex; align-items: baseline; gap: .35rem; font-size: .8rem; color: var(--ink-500); margin-bottom: .35rem; }
.pl-card__days b { font: 500 2.1rem/1 var(--font-display); color: var(--red-700); font-variant-numeric: lining-nums; }
.pl-card h3 { font-size: 1.35rem; line-height: 1.2; margin: 0 0 .4rem; }
.pl-card p { font-size: .9rem; color: var(--ink-600); margin: 0 0 .5rem; }
.pl-card .pl-card__meta { font-size: .8rem; color: var(--gold-700); margin-bottom: 1rem; }
.pl-card .btn { margin-top: auto; align-self: flex-start; padding: .6rem 1.2rem; font-size: .9rem; }
.pl-card .pl-bar--thin { margin-top: auto; }
.pl-card .pl-bar--thin + .btn { margin-top: 0; }

/* ---- Сегодня (/segodnya/) ------------------------------------------- */
.sg-head { padding-block: clamp(2rem, 5vw, 3rem) 1rem; }
.sg-app { display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); padding-bottom: var(--section-y); }
.sg-day { grid-column: 1 / -1; padding: clamp(1.3rem, 3vw, 2rem); border-radius: var(--r-lg); color: var(--night-text);
  background: radial-gradient(36rem 20rem at 85% 0%, rgba(217, 170, 90, .26), transparent 70%), linear-gradient(160deg, var(--night-800), var(--night-950)); }
.sg-date { display: flex; align-items: center; gap: 1rem; }
.sg-num { font: 500 clamp(3.5rem, 2rem + 6vw, 5.5rem)/.9 var(--font-display); color: var(--gold-300); }
.sg-when { display: grid; } .sg-when b { font: 500 1.6rem/1.2 var(--font-display); color: #fff; } .sg-when span { color: var(--night-mute); font-size: .9rem; }
.sg-week { margin: .8rem 0 .3rem; color: var(--gold-300); font-size: .92rem; }
.sg-fast { display: inline-block; margin: 0 0 1rem; padding: .3rem .75rem; border-radius: var(--r-pill); font-size: .85rem;
  background: rgba(255,255,255,.06); border: 1px solid var(--night-line); color: var(--night-text); }
.sg-feast h2 { color: #fff; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); margin: 0 0 .4rem; }
.sg-feast p { color: var(--night-mute); max-width: 46rem; }
.sg-label { margin: 1rem 0 .5rem; font: 600 var(--t-micro)/1.4 var(--font-text); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--gold-700); }
.sg-day .sg-label { color: var(--gold-300); }
.sg-saints { margin: 0 0 1rem; padding-left: 1.1rem; color: var(--night-text); }
.sg-day .btn--ghost { color: var(--night-text); border-color: rgba(217,191,134,.38); background: rgba(255,255,255,.04); }
.sg-col { min-width: 0; display: grid; gap: 1rem; align-content: start; }
.sg-col .sg-label { margin-top: 0; }
.sg-read, .sg-box { padding: clamp(1.1rem, 3vw, 1.5rem); border-radius: var(--r-lg); background: var(--paper-0); border: 1px solid var(--line-hair); box-shadow: var(--shadow-sm); }
.sg-read + .sg-read { margin-top: 1rem; }
.sg-kind { margin: 0; font: 600 var(--t-micro)/1.4 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--red-600); }
.sg-read h3, .sg-box h3 { font-size: 1.35rem; margin: .2rem 0 .6rem; } .sg-read h3 a, .sg-box h3 a { color: var(--ink-900); text-decoration: none; }
.sg-text { font: 400 1.18rem/1.6 var(--font-display); color: var(--ink-800); margin: 0; }
.sg-text sup { font: 600 .62rem/1 var(--font-text); color: var(--gold-700); }
.sg-names { display: flex; flex-wrap: wrap; gap: .4rem; }
.sg-names a { padding: .35rem .8rem; border-radius: var(--r-pill); background: var(--paper-1); border: 1px solid var(--line-hair);
  font: 600 1.05rem/1.2 var(--font-display); color: var(--ink-900); text-decoration: none; }
.sg-names a:hover { border-color: var(--line-gold); color: var(--red-600); }
.sg-quote blockquote { margin: 0; font: italic 500 1.25rem/1.5 var(--font-display); color: var(--ink-900); }
.sg-by { margin: .6rem 0 0; font-size: .85rem; } .sg-by a { color: var(--gold-700); }
.sg-pstitle { margin: 0 0 .4rem; font-style: italic; color: var(--ink-500); font-size: .9rem; }
.sg-links { display: grid; gap: .4rem; } .sg-links a { font-weight: 500; }
.sg-empty { color: var(--ink-500); font-size: .92rem; }
@media (max-width: 860px) { .sg-app { grid-template-columns: minmax(0, 1fr); } }
.sg-qp { font: 500 1.2rem/1.35 var(--font-display); color: var(--ink-900); margin: 0 0 .7rem; }
.sg-opts { display: grid; gap: .4rem; }
.sg-opts button { text-align: left; padding: .6rem .8rem; border-radius: 10px; border: 1px solid var(--line); background: var(--paper-1);
  font: 500 .92rem/1.35 var(--font-text); color: var(--ink-800); cursor: pointer; }
.sg-opts button:hover:not(:disabled) { border-color: var(--gold-500); }
.sg-opts .is-ok { background: #e8f3e6; border-color: #5c9a57; color: #24521f; }
.sg-opts .is-bad { background: #fbe9e7; border-color: #c0544a; color: #7d1f17; }
.sg-opts .is-off { opacity: .55; }
.sg-qx { margin: .7rem 0 0; font-size: .9rem; color: var(--ink-700); }

/* ---- Святцы (/svyattsy/) ------------------------------------------- */
.sv-head { padding-block: clamp(2rem, 5vw, 3.25rem) clamp(1rem, 2.5vw, 1.5rem); }
.sv-head p { color: var(--ink-600); font-size: var(--t-lead); max-width: 40rem; }
.sv-bar { position: sticky; top: var(--head-h, 64px); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem;
  padding: .8rem 1rem; margin-bottom: 1rem; border-radius: var(--r-md); background: rgba(255, 253, 250, .95);
  border: 1px solid var(--line-gold); box-shadow: var(--shadow-sm); backdrop-filter: blur(8px); }
.sv-bar h2 { margin: 0; font-size: 1.6rem; min-width: 10rem; text-align: center; }
.sv-nav { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper-1); cursor: pointer; font-size: 1.1rem; }
.sv-nav:hover { border-color: var(--gold-500); }
.sv-bar input { flex: 1; min-width: 12rem; font: inherit; padding: .55rem .85rem; border: 1px solid var(--line); border-radius: var(--r-pill); background: #fff; }
.sv-count { font-size: .85rem; color: var(--ink-500); }
.sv-days { display: grid; gap: .75rem; padding-bottom: var(--section-y); }
.sv-day { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; padding: 1rem 1.2rem; border-radius: var(--r-md);
  background: var(--paper-0); border: 1px solid var(--line-hair); scroll-margin-top: 140px; }
.sv-day.is-today { border-color: var(--red-500); box-shadow: 0 0 0 3px rgba(166, 42, 48, .1); }
.sv-day header { display: flex; gap: .6rem; align-items: baseline; }
.sv-day header b { font: 500 2.4rem/1 var(--font-display); color: var(--gold-500); }
.sv-day.is-sun header b { color: var(--red-600); }
.sv-day header span { display: grid; font-size: .85rem; color: var(--ink-600); }
.sv-day header i { font-style: normal; font-size: .75rem; color: var(--ink-400); }
.sv-day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.sv-day li { font-size: .95rem; line-height: 1.45; }
.sv-day li a { color: var(--ink-800); text-decoration: none; }
.sv-day li a:hover { color: var(--red-600); text-decoration: underline; }
.sv-day li.is-major a { color: var(--red-700); font-weight: 600; }
.sv-day li small { color: var(--ink-400); font-size: .78rem; }
.sv-empty { color: var(--ink-500); }
@media (max-width: 640px) { .sv-day { grid-template-columns: 1fr; gap: .5rem; } .sv-bar h2 { min-width: 0; flex: 1; font-size: 1.3rem; } }
.sg-listen { display: inline-flex; margin-top: .8rem; padding: .45rem .9rem; border-radius: var(--r-pill); border: 1px solid var(--line-gold);
  background: var(--gold-100); color: var(--ink-900); font-size: .88rem; font-weight: 500; text-decoration: none; }
.sg-listen:hover { background: var(--gold-300); color: var(--ink-900); }
.sg-feasts { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.sg-feasts li { display: grid; padding-left: .8rem; border-left: 2px solid var(--gold-300); }
.sg-feasts b { font: 600 1.05rem/1.25 var(--font-display); color: var(--ink-900); }
.sg-feasts span { font-size: .82rem; color: var(--ink-500); }

/* ---- Какую молитву прочитать (/nuzhda/) ----------------------------- */
.nd-head { padding-block: clamp(2rem, 5vw, 3.25rem) clamp(1.25rem, 3vw, 2rem); }
.nd-head h1 { margin-bottom: .45em; }
.nd-head p { color: var(--ink-600); font-size: var(--t-lead); max-width: 42rem; }
.nd-app { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); align-items: start;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); padding-bottom: var(--section-y);
  transition: opacity var(--dur) var(--ease); }
.nd-grid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr)); min-width: 0; }
.nd-tile { position: relative; display: flex; flex-direction: column; gap: .25rem; min-width: 0;
  padding: .95rem 1.05rem .85rem; border-radius: var(--r-md); text-decoration: none; color: var(--ink-800);
  background: var(--paper-0); border: 1px solid var(--line-hair); box-shadow: var(--shadow-xs);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
.nd-tile:hover { border-color: var(--line-gold); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.nd-tile:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }
.nd-tile[aria-current="true"] { border-color: var(--line-gold); background: linear-gradient(180deg, var(--paper-0), var(--paper-25));
  box-shadow: var(--shadow-md); }
.nd-tile[aria-current="true"]::before { content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--red-600); }
.nd-tile__title { font: 600 1.28rem/1.15 var(--font-display); color: var(--ink-900); overflow-wrap: anywhere; }
.nd-tile[aria-current="true"] .nd-tile__title { color: var(--red-700); }
.nd-tile__descr { font-size: .84rem; line-height: 1.35; color: var(--ink-500); }
.nd-tile__count { margin-top: auto; padding-top: .35rem; font: 600 var(--t-micro)/1.4 var(--font-text);
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold-700); }

.nd-panel { position: sticky; top: 5.5rem; min-width: 0; padding: clamp(1.2rem, 3vw, 1.75rem); border-radius: var(--r-lg);
  background: var(--paper-0); border: 1px solid var(--line-hair); border-top: 3px solid var(--red-600); box-shadow: var(--shadow-sm); }
.nd-kicker { margin: 0 0 .3rem; font: 600 var(--t-micro)/1.4 var(--font-text); letter-spacing: var(--track-caps);
  text-transform: uppercase; color: var(--red-600); }
.nd-panel h2 { font-size: clamp(1.6rem, 1.25rem + 1.2vw, 2.2rem); margin: 0 0 .25rem; outline: none; }
.nd-descr { margin: 0 0 .8rem; color: var(--ink-500); font-size: .95rem; }
.nd-intro p { color: var(--ink-600); margin: .6rem 0 0; }
.nd-list { list-style: none; margin: .5rem 0 0; padding: 0; counter-reset: nd; }
.nd-list li { counter-increment: nd; border-top: 1px solid var(--line-hair); }
.nd-list li:first-child { border-top: 0; }
.nd-mol { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); column-gap: .4rem; padding: .7rem 0;
  text-decoration: none; color: inherit; }
.nd-mol::before { content: counter(nd); grid-row: 1 / span 2; padding-top: .2rem; font: 600 .8rem/1.4 var(--font-text); color: var(--gold-700); }
.nd-mol__title { font: 600 1.14rem/1.3 var(--font-display); color: var(--ink-900); overflow-wrap: anywhere;
  transition: color var(--dur-fast) var(--ease); }
.nd-mol__sub { font-size: .8rem; color: var(--ink-400); }
.nd-mol:hover .nd-mol__title, .nd-mol:focus-visible .nd-mol__title { color: var(--red-600); }
.nd-advice { margin-top: 1.1rem; padding: 1rem 1.1rem; border-radius: var(--r-sm);
  background: rgba(176, 135, 51, .08); border: 1px solid var(--line-gold); }
.nd-advice h3 { margin: 0 0 .35rem; font: 600 var(--t-micro)/1.4 var(--font-text); letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold-700); }
.nd-advice p { margin: 0; color: var(--ink-700); font-size: .95rem; line-height: 1.55; }
.nd-links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
.nd-links a { padding: .32rem .8rem; border-radius: var(--r-pill); background: var(--paper-0); border: 1px solid var(--line-gold);
  font-size: .85rem; font-weight: 500; color: var(--gold-700); text-decoration: none; }
.nd-links a:hover { color: var(--red-600); }
.nd-all { display: inline-block; margin-top: 1rem; font-size: .9rem; font-weight: 500; }
.nd-loading, .nd-noscript { color: var(--ink-500); }
.nd-error { color: var(--red-600); }
@media (max-width: 900px) {
  .nd-app { grid-template-columns: minmax(0, 1fr); }
  .nd-panel { position: static; scroll-margin-top: 5rem; }
}
@media (max-width: 520px) {
  .nd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .nd-tile { padding: .8rem .8rem .7rem; }
  .nd-tile__title { font-size: 1.12rem; }
  .nd-tile__descr { font-size: .78rem; }
}

/* ---- Как читать икону (/ikony/) -------------------------------------- */
.ik-head { padding-block: clamp(2rem, 5vw, 3.25rem) clamp(1rem, 2.5vw, 1.5rem); }
.ik-head p { color: var(--ink-600); font-size: var(--t-lead); max-width: 42rem; }
.ik-app { padding-bottom: var(--section-y); }
.ik-gallery { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.ik-tile { display: grid; gap: .6rem; text-decoration: none; color: inherit; }
.ik-tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: var(--r-md);
  box-shadow: var(--shadow-md); transition: transform var(--dur) var(--ease-out); }
.ik-tile:hover img { transform: translateY(-4px); }
.ik-tile b { font: 500 1.35rem/1.15 var(--font-display); color: var(--ink-900); display: block; }
.ik-tile span span { font-size: .85rem; color: var(--ink-500); }
.ik-back { display: inline-flex; padding: .45rem .9rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--paper-0);
  font-size: .9rem; text-decoration: none; color: var(--ink-700); margin-bottom: 1rem; }
.ik-grid { display: grid; gap: clamp(1.25rem, 3vw, 2.5rem); grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .ik-grid { grid-template-columns: minmax(0, 1fr); } }
.ik-fig { position: relative; margin: 0; max-height: calc(100vh - 120px); max-width: 100%; justify-self: center; width: 100%;
  border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-lg); position: sticky; top: calc(var(--head-h, 72px) + 1rem); }
@media (max-width: 900px) { .ik-fig { position: relative; top: 0; } }
.ik-fig img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ik-dot { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid #fff; background: rgba(141, 27, 33, .88); color: #fff; font: 700 .85rem/1 var(--font-text); cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.45); transition: transform .2s ease, background-color .2s ease; }
.ik-dot:hover, .ik-dot.is-on { transform: translate(-50%, -50%) scale(1.25); background: var(--gold-500); }
.ik-dot.is-on { box-shadow: 0 0 0 6px rgba(217, 191, 134, .45), 0 2px 10px rgba(0,0,0,.45); }
.ik-side h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); margin: .2rem 0 .6rem; }
.ik-lead { color: var(--ink-700); }
.ik-points { list-style: none; counter-reset: k; margin: 1rem 0; padding: 0; display: grid; gap: .5rem; }
.ik-points li { counter-increment: k; position: relative; padding: .75rem .9rem .75rem 3rem; border-radius: var(--r-sm);
  background: var(--paper-0); border: 1px solid var(--line-hair); cursor: pointer; display: grid; gap: .2rem;
  transition: border-color .2s ease, background-color .2s ease; }
.ik-points li::before { content: counter(k); position: absolute; left: .9rem; top: .8rem; width: 24px; height: 24px; border-radius: 50%;
  background: var(--red-600); color: #fff; font: 700 .75rem/24px var(--font-text); text-align: center; }
.ik-points li b { font: 600 1.12rem/1.25 var(--font-display); color: var(--ink-900); }
.ik-points li span { font-size: .92rem; color: var(--ink-700); line-height: 1.55; }
.ik-points li.is-on { border-color: var(--gold-500); background: #fffaf0; }
.ik-points li.is-on::before { background: var(--gold-500); }
.ik-hint { font-size: .85rem; color: var(--ink-500); }
.ik-dot { white-space: nowrap; letter-spacing: -.04em; font-size: .78rem; padding: 0; }
.sg-feasts b a { color: inherit; text-decoration-color: var(--line-gold); }

/* ---- Пазлы (/pazly/) --------------------------------------------- */
.pz-head { padding-block: clamp(2rem, 5vw, 3.25rem) clamp(1rem, 2.5vw, 1.5rem); }
.pz-head p { color: var(--ink-600); font-size: var(--t-lead); max-width: 40rem; }
.pz-app { display: grid; gap: clamp(1.25rem, 3vw, 2rem); grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; padding-bottom: var(--section-y); }
@media (max-width: 900px) { .pz-app { grid-template-columns: minmax(0, 1fr); } }
.pz-bar { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; align-items: center; margin-bottom: .75rem; font-size: .92rem; color: var(--ink-600); }
.pz-bar b { color: var(--ink-900); font-variant-numeric: tabular-nums; }
.pz-peek { margin-left: auto; padding: .4rem .9rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--paper-0); cursor: pointer; font: inherit; }
.pz-board { --n: 3; position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 2px; width: 100%;
  margin-inline: auto; background: #1b1512; padding: 2px; border-radius: var(--r-md); box-shadow: var(--shadow-lg); touch-action: manipulation; }
.pz-cell { border: 0; padding: 0; cursor: pointer; background-repeat: no-repeat; border-radius: 3px; transition: transform .15s ease, box-shadow .15s ease, filter .2s ease; }
.pz-cell:hover:not(.is-ok) { filter: brightness(1.08); }
.pz-cell.is-sel { box-shadow: inset 0 0 0 3px var(--gold-300); transform: scale(.96); }
.pz-cell.is-ok { cursor: default; }
.pz-board.is-peek .pz-cell { opacity: .15; }
.pz-board.is-peek { background-image: var(--img); }
.pz-board.is-solved { gap: 0; box-shadow: 0 0 0 4px var(--gold-300), var(--shadow-lg); }
.pz-board.is-solved .pz-cell { border-radius: 0; }
.pz-done { margin-top: 1rem; padding: 1.1rem 1.25rem; border-radius: var(--r-md); background: #fffaf0; border: 1px solid var(--line-gold); }
.pz-done__title { font: 500 1.8rem/1 var(--font-display); color: var(--red-700); margin: 0 0 .3rem; }
.pz-done__btns { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.pz-side { padding: clamp(1.1rem, 3vw, 1.5rem); border-radius: var(--r-lg); background: var(--paper-0); border: 1px solid var(--line-hair); box-shadow: var(--shadow-sm); }
.pz-side h2 { font: 600 var(--t-micro)/1.4 var(--font-text); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--gold-700); margin: 0 0 .6rem; }
.pz-levels { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.2rem; }
.pz-levels button { padding: .45rem .85rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--paper-1); cursor: pointer; font: 500 .9rem/1 var(--font-text); }
.pz-levels button[aria-pressed="true"] { background: var(--red-600); border-color: var(--red-600); color: #fff; }
.pz-pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; margin-bottom: 1rem; }
.pz-pic { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; aspect-ratio: 1; cursor: pointer; background: none; }
.pz-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; display: block; }
.pz-pic[aria-pressed="true"] { border-color: var(--red-600); }

/* ---- Вопросы о вере (/voprosy/) ------------------------------------- */
.vq-head { padding-block: clamp(2rem, 5vw, 3.25rem) clamp(1rem, 2.5vw, 1.5rem); }
.vq-head p { color: var(--ink-600); font-size: var(--t-lead); max-width: 40rem; }
.vq-search { width: min(100%, 34rem); font: inherit; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: var(--r-pill); background: #fff; margin-top: .5rem; }
.vq-list { display: grid; gap: 1.25rem; max-width: 52rem; padding-bottom: var(--section-y); }
.vq-group { padding-block: 0; }
.vq-group h2 { font-size: 1.6rem; margin: 0 0 .5rem; }
.vq-item { border-bottom: 1px solid var(--line); }
.vq-item summary { cursor: pointer; list-style: none; position: relative; padding: 1rem 2.5rem 1rem 0;
  font: 600 clamp(1.1rem, 1rem + .4vw, 1.3rem)/1.3 var(--font-display); color: var(--ink-900); }
.vq-item summary::-webkit-details-marker { display: none; }
.vq-item summary::after { content: ''; position: absolute; right: .4rem; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 1.5px solid var(--gold-500); border-bottom: 1.5px solid var(--gold-500); transform: rotate(45deg); transition: transform .2s ease; }
.vq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.vq-a { padding: 0 0 1.1rem; color: var(--ink-700); line-height: 1.7; }
.vq-none { color: var(--ink-500); }
