/* Горицы — прототип v9 «Левкас». Токены: DESIGN.md, правила: design-system.md
   Тёмный фон (олифа), светлые панели (левкас), чернила; светлая кнопка действия, вишнёвый у праздников.
   Композиция по kooz-optic.ru, формы по msdm.ru (скругление 10px), удобство по valaam.ru.
   Шрифты: Prata (заголовки, Cyreal) + Literata (текст, TypeTogether), OFL; курсива нет */

@font-face { font-family: "Prata"; src: url("../fonts/prata-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* Олифа, левкас, чернила (DESIGN.md). Цвет только по смыслу: светлая кнопка главного действия
     и сегодняшний день; вишнёвый только у воскресений и праздников (аудит unslop, 02.11.2026) */
  --canvas: #24211D;
  --canvas-2: #2F2B26;
  --night: #1A1815;
  --on-dark: #EDE7DB;
  --on-dark-muted: #B3A996;
  --line-dark: rgba(237, 231, 219, .16);
  --panel: #F6F2EA;
  --field: #FFFDF8;
  --tint: #ECE6DA;
  --chip: #E0D8C8;
  --feast-tint: #F1E1E1;
  --ink: #1E1B17;
  --muted: #625B50;
  --rule: #D6CDBC;
  --rule-strong: #8C8270;
  --feast: #8B1E2D;
  --feast-light: #E89AA3;
  --action: #EDE7DB;
  --action-hover: #FFFFFF;
  --action-edge: #EDE7DB;

  /* Контекст «на тёмном фоне»; панели переопределяют (.panel и др.) */
  --fg: var(--on-dark);
  --fg-muted: var(--on-dark-muted);
  --line: var(--line-dark);
  --rubric: rgba(237, 231, 219, .4);
  --surface: var(--canvas);
  --hover: rgba(237, 231, 219, .08);

  --font-display: "Prata", "Literata", Georgia, serif;
  --font-text: "Literata", Georgia, "Times New Roman", serif;

  /* Сетка 8px в rem */
  --s0: .125rem; --s1: .25rem; --s1h: .75rem;
  --s2: .5rem; --s3: 1rem; --s4: 1.5rem;
  --s5: 2rem; --s6: 3rem; --s7: 4rem; --s8: 6rem; --s9: 8rem;

  /* Скругления как на msdm.ru: кнопки, панели, поля — 10px, фото и пункты внутри — 8px */
  --r: 10px;
  --r-img: 8px;

  --dur-fast: 150ms;
  --dur-base: 250ms;
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  --container: 108rem;
  --pad: 1rem;
  --gap: .75rem;
  --panel-pad: 1.5rem;
  --section: 4rem;
  --text-size: 1.0625rem;
  --btn-h: 3.25rem;
  --nav-h: 4.25rem;
  --mbar-h: 3.75rem;

  --z-sticky: 30;
  --z-overlay: 50;
}

/* Временно: варианты цвета на сравнение владельцу (?accent=gold — прежние золото и киноварь, stone, sky).
   После выбора удалить блок вместе с data-accent в layout.php */
[data-accent="gold"] { --action: #C9A86A; --action-hover: #D8BB84; --action-edge: #B08F55; --feast: #A3301F; --feast-light: #E0846C; --feast-tint: #F2E2DA; }
[data-accent="stone"] { --feast: #1E1B17; --feast-light: #EDE7DB; --feast-tint: #E0D8C8; }
[data-accent="sky"] { --action: #A8C3DA; --action-hover: #BED3E5; --action-edge: #8FAFCB; --feast: #2B4F7A; --feast-light: #9DBEE0; --feast-tint: #DFE6EE; }

html { font-size: 100%; }
@media (min-width: 1920px) { html { font-size: 106.25%; } }
@media (min-width: 2400px) { html { font-size: 112.5%; } }

@media (min-width: 768px) {
  :root { --pad: var(--s4); --gap: var(--s3); --panel-pad: var(--s5); }
}
@media (min-width: 1024px) {
  :root { --section: 5.5rem; --text-size: 1.125rem; --nav-h: 5rem; }
}
@media (min-width: 1280px) {
  :root { --pad: clamp(2rem, 4vw, 6rem); --gap: 1.25rem; --panel-pad: var(--s6); }
}

/* Светлые поверхности: текст чернилами, линейки и подчёркивания нейтральные */
.panel, .tile, .leaf, .drawer__panel {
  --fg: var(--ink);
  --fg-muted: var(--muted);
  --line: var(--rule);
  --rubric: var(--rule-strong);
  --surface: var(--panel);
  --hover: var(--tint);
  color: var(--fg);
}

/* Основа */

*, *::before, *::after { box-sizing: border-box; }

/* На телефоне без серой вспышки при нажатии; отклик даёт :active в конце файла */
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + var(--s3)); }

/* Страница никогда не сдвигается вбок: на iPhone overflow-x у body без html не держит.
   clip, а не hidden: hidden у html и body ломает липкую шапку. Пока открыто меню — страница стоит */
html { overflow-x: clip; }
html.is-locked, html.is-locked body { overflow: hidden; }

body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--canvas);
  color: var(--fg);
  font: 400 var(--text-size)/1.7 var(--font-text);
  font-variant-numeric: lining-nums;
  padding-bottom: calc(var(--mbar-h) + env(safe-area-inset-bottom));
}

img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }

h1, h2, h3 { margin: 0; font-weight: 400; overflow-wrap: break-word; }
h2 { font: 400 2rem/1.15 var(--font-display); }
h3 { font: 400 1.5rem/1.25 var(--font-display); }
p { margin: 0 0 var(--s3); }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
em, i { font-style: normal; font-weight: 700; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; touch-action: manipulation; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.container--lg { max-width: calc(84rem + 2 * var(--pad)); }
.container--mid { max-width: calc(60rem + 2 * var(--pad)); }

.skip { position: absolute; left: var(--s2); top: -100px; z-index: var(--z-overlay); padding: var(--s1h) var(--s4); border-radius: var(--r); background: var(--panel); color: var(--ink); }
.skip:focus { top: var(--s2); }

main { padding-bottom: var(--section); }

/* Ссылка с подчёркиванием рубрикой */
.link { font: 400 1rem/1.3 var(--font-text); color: var(--fg); text-decoration-color: var(--rubric); text-underline-offset: 5px; }
.note { margin: 0; color: var(--fg-muted); font-size: 1rem; }

@media (min-width: 768px) {
  h2 { font-size: 2.5rem; }
}
@media (min-width: 1440px) {
  h2 { font-size: 2.875rem; line-height: 1.1; }
}

/* Панель: светлый контейнер на тёмном фоне, без тени */

.panel { padding: var(--panel-pad); border-radius: var(--r); background: var(--panel); }
/* Лист: текст колонкой 42rem по центру панели */
.sheet { padding-block: calc(var(--panel-pad) * 1.33); padding-inline: max(var(--panel-pad), calc((100% - 42rem) / 2)); }

/* Кнопки как на msdm.ru: прямоугольник 10px, тонкая рамка.
   Светлая заливка — главное действие (Помочь обители, Пожертвовать на фото); внутри панелей — чернила */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: var(--btn-h); padding: 0 1.5rem;
  border: 1px solid transparent; border-radius: var(--r);
  font: 400 1.0625rem/1.2 var(--font-text);
  text-align: center; text-decoration: none; white-space: nowrap;
  cursor: pointer; touch-action: manipulation;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.btn--primary { background: var(--fg); color: var(--surface); }
.btn--outline { border-color: currentColor; background: transparent; color: var(--fg); }
.btn--accent { border-color: var(--action-edge); background: var(--action); color: var(--ink); }
/* Вторая кнопка на фото: лёгкая тёмная подложка с размытием, чтобы текст читался на светлом небе и стенах */
.btn--ghost { border-color: rgba(255, 255, 255, .75); background: rgba(18, 16, 14, .38); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn--sm { justify-self: start; min-height: 2.75rem; padding: 0 1.25rem; font-size: 1rem; }
.btn--square { width: 2.75rem; min-height: 2.75rem; padding: 0; }
.btn--square .icon { width: 1.25rem; height: 1.25rem; }

@media (max-width: 479px) {
  .btn { width: 100%; white-space: normal; padding: var(--s1h) 1.25rem; }
  .header .btn { width: auto; white-space: nowrap; }
  .header .btn--square { width: 2.75rem; padding: 0; }
}

/* Круглая стрелка на плитках (kooz, msdm) */
.go {
  display: grid; place-items: center; flex: none;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--hover); color: var(--fg);
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.go .icon { width: 1.25rem; height: 1.25rem; }
.go--light { background: rgba(246, 242, 234, .94); color: var(--ink); }

/* Вкладки: тёмная плашка с пунктами (меню в шапке, страницы раздела); якоря — без плашки */

.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s1); padding: var(--s1); border: 1px solid var(--line-dark); border-radius: var(--r); background: var(--canvas-2); }
.tabs__item {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem;
  border-radius: var(--r-img);
  font: 400 1.0625rem/1.2 var(--font-text); color: var(--on-dark);
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.tabs__item[aria-current] { background: rgba(237, 231, 219, .16); }
.tabs__item[aria-current="page"] { background: var(--panel); color: var(--ink); }

@media (max-width: 479px) {
  .tabs__item { padding: var(--s2) .875rem; white-space: normal; text-align: center; }
}

/* Страницы раздела на телефоне: без плашки, кнопки в тонкой рамке в две-три строки вместо столбика на полэкрана.
   Текущая страница — рамка ярче и толще, без светлой заливки: заливку принимали за «залипшее» нажатие */
@media (max-width: 767px) {
  .subnav .tabs { gap: var(--s2); padding: 0; border: 0; background: none; }
  .subnav .tabs__item { min-height: 2.75rem; padding: 0 var(--s2); border: 1px solid rgba(237, 231, 219, .28); font-size: 1rem; white-space: nowrap; }
  .subnav .tabs__item[aria-current="page"] { background: none; color: var(--on-dark); border-color: var(--on-dark); box-shadow: inset 0 0 0 1px var(--on-dark); }
}

/* Шапка: название слева, меню в плашке, телефон и «Помочь обители» справа */

.header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: var(--canvas); border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) ease, background-color var(--dur-base) ease;
}
.header.is-scrolled { border-bottom-color: var(--line-dark); background: rgba(36, 33, 29, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.header__bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s3); height: var(--nav-h); }

.logo { display: flex; align-items: center; gap: .625rem; min-height: 2.75rem; color: var(--on-dark); text-decoration: none; }
.logo__cross { width: .9375rem; height: 1.5rem; flex: none; fill: none; stroke: var(--on-dark); stroke-width: 1.5; stroke-linecap: round; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font: 400 1.375rem/1.1 var(--font-display); white-space: nowrap; }
.logo__sub { display: none; margin-top: .125rem; font: 400 1rem/1.2 var(--font-text); color: var(--on-dark-muted); white-space: nowrap; }

.nav { display: none; }
.nav .tabs { padding: 0; border: 0; background: none; }
.header__actions { grid-column: 3; display: flex; align-items: center; gap: var(--s2); }
.header__phone, .header__cta { display: none; }
.header__cta { min-height: 2.75rem; padding: 0 1.25rem; border-radius: 999px; }

.burger { min-height: 2.75rem; padding: 0 .875rem; }
.burger .icon { width: 1.25rem; height: 1.25rem; }
.burger span { display: none; }

@media (max-width: 559px) {
  .header__bar { gap: var(--s2); }
  .logo { gap: var(--s2); }
  .logo__name { font-size: 1.1875rem; }
}
@media (max-width: 439px) {
  .logo__name { font-size: 1.0625rem; }
}
@media (max-width: 359px) {
  .header__call { display: none; } /* телефон остаётся в меню */
}
@media (min-width: 440px) {
  .burger span { display: inline; }
}
@media (min-width: 560px) {
  .logo__sub { display: block; }
  .logo__name { font-size: 1.375rem; }
}
@media (min-width: 1024px) {
  .header__cta { display: inline-flex; }
  .header__actions { gap: var(--s3); }
  .logo__cross { width: 1.125rem; height: 1.8rem; }
  .logo__name { font-size: 1.5rem; }
}
@media (min-width: 1280px) {
  .header__call, .burger { display: none; }
  .nav { display: flex; justify-content: center; }
}
@media (min-width: 1440px) {
  .header__actions { gap: var(--s4); }
  .header__phone { display: inline-flex; font: 400 1.0625rem/1 var(--font-text); white-space: nowrap; text-decoration: none; color: var(--on-dark); }
}

/* Меню-шторка: светлый лист с гравюрой монастыря (владелец, 19.11.2026).
   overflow: clip — шторка не прокручивается сама, когда фокус уходит на крестик во время выезда
   (из-за этого меню сначала «проскакивало», потом выезжало) */

.drawer { position: fixed; inset: 0; z-index: var(--z-overlay); overflow: hidden; overflow: clip; visibility: hidden; transition: visibility 0s linear 320ms; }
.drawer.is-open { visibility: visible; transition: none; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(10, 9, 8, .6); opacity: 0; transition: opacity var(--dur-base) ease; touch-action: none; }
.drawer.is-open .drawer__overlay { opacity: 1; }
.drawer__panel {
  position: absolute; top: var(--s2); right: var(--s2); bottom: var(--s2);
  width: min(420px, calc(100vw - 2rem));
  display: flex; flex-direction: column;
  padding: 0 var(--s4) var(--s5);
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y;
  border-radius: var(--r); background: var(--panel); outline: 0;
  transform: translateX(calc(100% + var(--s3))); transition: transform 320ms var(--ease-smooth);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  margin: 0 calc(-1 * var(--s4)); padding: var(--s2) var(--s2) var(--s2) var(--s4);
  background: var(--panel);
}
.logo--drawer { gap: var(--s2); color: var(--ink); }
.logo--drawer .logo__cross { stroke: var(--ink); }
.logo--drawer .logo__name { font-size: 1.25rem; }
.drawer__close {
  display: grid; place-items: center; flex: none;
  width: 3rem; height: 3rem; border: 0; border-radius: var(--r); background: transparent; color: var(--ink); cursor: pointer;
}
.drawer__close .icon { width: 1.5rem; height: 1.5rem; }
/* Гравюра на всю ширину листа; проявляется чуть позже выезда шторки */
.drawer__art {
  width: calc(100% + 2 * var(--s4)); max-width: none; height: clamp(7rem, 30vw, 10rem); margin: var(--s1) calc(-1 * var(--s4)) var(--s3);
  object-fit: cover; object-position: 50% 45%;
  opacity: 0; transform: translateY(var(--s2));
  transition: opacity 600ms ease 120ms, transform 600ms var(--ease-smooth) 120ms;
}
.drawer.is-open .drawer__art { opacity: 1; transform: none; }
/* Разделы гармошкой: строка раздела со стрелкой, подпункты раскрываются по нажатию, открыт один раздел */
.drawer__nav { margin-bottom: var(--s5); }
.drawer__group { border-top: 1px solid var(--rule); }
.drawer__group:last-child { border-bottom: 1px solid var(--rule); }
.drawer__section {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  min-height: 3.25rem; font: 400 1.375rem/1.2 var(--font-display); text-decoration: none; list-style: none; cursor: pointer;
}
.drawer__section::-webkit-details-marker { display: none; }
.drawer__section .icon { width: 1.25rem; height: 1.25rem; color: var(--muted); transition: transform var(--dur-base) var(--ease-smooth); }
.drawer__group[open] .drawer__section .icon { transform: rotate(180deg); }
.drawer__sub { padding-bottom: var(--s3); }
.drawer__group[open] .drawer__sub { animation: drawer-sub var(--dur-base) var(--ease-smooth); }
@keyframes drawer-sub { from { opacity: 0; transform: translateY(calc(-1 * var(--s1))); } }
.drawer__sub a { display: flex; align-items: center; min-height: 2.75rem; padding-left: var(--s3); border-left: 1px solid var(--rule); color: var(--muted); text-decoration: none; }
.drawer__sub a[aria-current="page"], .drawer__section[aria-current="page"] { color: var(--ink); }
.drawer__sub a[aria-current="page"] { border-left: 2px solid var(--ink); padding-left: calc(var(--s3) - 1px); }
.drawer__actions { display: grid; gap: var(--s2); margin-top: auto; }

/* Первый экран: фото в панели, текст слева, «Сегодня» полосой внизу */

.hero {
  --hero-x: var(--panel-pad);
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  min-height: 34rem; overflow: hidden;
  border-radius: var(--r); color: #fff; background: var(--night);
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__slide { position: absolute; inset: 0; display: block; opacity: 0; transition: opacity 600ms var(--ease-smooth); }
.hero__slide.is-active { opacity: 1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 45%); }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(18, 16, 14, .66) 0, rgba(18, 16, 14, .42) 50%, rgba(18, 16, 14, .1) 75%, rgba(18, 16, 14, .4) 100%);
}

.hero__content {
  flex: 1;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: var(--s6) var(--hero-x) var(--s7);
}
.hero__title { font: 400 clamp(1.875rem, 7.4vw, 3.25rem)/1.12 var(--font-display); text-shadow: 0 2px 30px rgba(0, 0, 0, .3); }
.hero__lead { max-width: 40ch; margin: var(--s4) 0 0; font-size: 1.0625rem; line-height: 1.55; color: rgba(255, 255, 255, .9); text-wrap: balance; }
.hero__actions { display: grid; gap: var(--s2); width: 100%; margin-top: var(--s5); }
.hero__nav { align-self: flex-end; display: flex; align-items: center; gap: var(--s2); margin: 0 var(--hero-x) var(--s3); }
.hero__nav .go { padding: 0; border: 0; cursor: pointer; }
.hero__count { min-width: 4.5rem; font-size: 1rem; text-align: center; color: rgba(255, 255, 255, .9); }

.today {
  display: grid; gap: var(--s2) var(--s5);
  padding: var(--s3) var(--hero-x);
  background: rgba(18, 16, 14, .6); border-top: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.today__date { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s1) var(--s2); margin: 0; }
.today__date b { font: 400 1.375rem/1.2 var(--font-display); color: #fff; }
.today__date span { font-size: 1rem; color: rgba(255, 255, 255, .78); }
.today__list { display: grid; gap: var(--s1); }
.today__list li { display: grid; grid-template-columns: 3.5rem 1fr; gap: var(--s1h); }
.today__list time { font-weight: 700; font-variant-numeric: tabular-nums lining-nums; }
.today__link { justify-self: start; display: inline-flex; align-items: center; min-height: 2.75rem; color: #fff; font: 400 1rem/1.3 var(--font-text); text-decoration-color: rgba(255, 255, 255, .5); }

@media (min-width: 480px) {
  .hero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); width: auto; }
}
@media (min-width: 768px) {
  .hero__title { font-size: clamp(3rem, 4.6vw, 4.75rem); }
  .hero__lead { font-size: 1.1875rem; }
  .hero__media::after {
    background:
      linear-gradient(to bottom, rgba(18, 16, 14, .35) 0, rgba(18, 16, 14, 0) 30%, rgba(18, 16, 14, 0) 70%, rgba(18, 16, 14, .4) 100%),
      linear-gradient(to right, rgba(18, 16, 14, .74) 0, rgba(18, 16, 14, .42) 40%, rgba(18, 16, 14, 0) 68%);
  }
  .today { grid-template-columns: auto 1fr; align-items: center; }
  .today__date { flex-direction: column; gap: 0; padding-right: var(--s5); border-right: 1px solid rgba(255, 255, 255, .25); }
  .today__link { grid-column: 2; }
}
@media (min-width: 1024px) {
  .hero { --hero-x: clamp(2.5rem, 5vw, 6rem); min-height: clamp(32rem, calc(100svh - var(--nav-h) - 12rem), 48rem); }
  .hero__content { padding-top: var(--s7); padding-bottom: var(--s7); }
  .today { padding-top: var(--s4); padding-bottom: var(--s4); }
}
@media (min-width: 1280px) {
  .today { grid-template-columns: auto 1fr auto; }
  .today__link { grid-column: auto; justify-self: end; }
  .today__list { grid-auto-flow: column; justify-content: start; column-gap: var(--s5); }
  .today__list span { white-space: nowrap; }
}

/* Плитки главных действий (valaam): на телефоне строки с миниатюрой, с 768 — фото сверху */

.quick { margin-top: var(--gap); }
.tiles { display: grid; gap: var(--gap); }
.tile {
  display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; align-items: center; gap: var(--s3);
  padding: var(--s2) var(--s3) var(--s2) var(--s2);
  border-radius: var(--r); background: var(--panel); text-decoration: none;
}
/* Фото плиток из разных источников приведены к одной тёплой приглушённой гамме */
.tile__img { width: 4.5rem; height: 3.75rem; object-fit: cover; border-radius: var(--r-img); filter: saturate(.65) sepia(.2); }
.tile__title { min-width: 0; font: 400 1.125rem/1.25 var(--font-display); hyphens: auto; }

/* Узкий телефон: миниатюра и стрелка меньше, но стрелка остаётся — по ней видно, что плитка нажимается */
@media (max-width: 399px) {
  .tile { grid-template-columns: 4rem minmax(0, 1fr) auto; gap: var(--s2); }
  .tile__img { width: 4rem; height: 3.5rem; }
  .tile .go { width: 2.25rem; height: 2.25rem; }
}
@media (min-width: 768px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s2) var(--s3); padding: var(--s2) var(--s2) var(--s3); }
  .tile__img { grid-column: 1 / -1; width: 100%; height: auto; aspect-ratio: 16 / 10; }
  .tile__title { padding-left: var(--s2); font-size: 1.125rem; }
  .tile .go { margin-right: var(--s1); }
}
@media (min-width: 1024px) {
  .tile__title { font-size: 1.375rem; }
}
@media (min-width: 1280px) {
  .tile__img { aspect-ratio: 16 / 9; }
  .tile__title { font-size: 1.5rem; }
}

/* «За воинов молимся бесплатно до Победы» под плитками главных действий (монастырь, 10.11.2026) */

.voiny { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s5); margin-top: var(--gap); padding-block: var(--s4); }
.voiny__title { font: 400 1.375rem/1.25 var(--font-display); }

@media (min-width: 1024px) {
  .voiny__title { font-size: 1.75rem; }
}

/* Секции главной: заголовок по центру с короткой линейкой рубрики, кнопка «ещё» по центру внизу */

.section { padding-top: var(--section); }
.section__head { margin-bottom: var(--s5); text-align: center; }
.section__head h2::after,
.block__title::after,
.page-head__title::after {
  content: ""; display: block; width: 2.5rem; height: 2px; margin: var(--s3) auto 0; background: var(--rubric);
}
.section__foot { display: flex; flex-direction: column; align-items: center; gap: var(--s3); margin-top: var(--s4); text-align: center; }

/* Неделя: листки церковного календаря. Сегодня — шапка листка чернилами,
   воскресенья и великие праздники — киноварная черта сверху и красное число */

.week { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
.week.is-collapsed .leaf:nth-child(n+4) { display: none; }
.week__toggle { display: flex; margin: var(--s3) auto 0; }

.leaf { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); overflow: hidden; border-radius: var(--r); background: var(--panel); }
.leaf__head {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin: 0; padding: var(--s3) var(--s2); background: var(--tint); text-align: center;
  border-right: 1px dashed var(--rule-strong); /* линия отрыва, как у отрывного календаря */
}
.leaf__wd { font-size: 1rem; line-height: 1.25; color: var(--muted); }
.leaf__num { margin: var(--s1) 0; font: 400 2.75rem/1 var(--font-display); }
.leaf__month { font-size: 1rem; line-height: 1.25; color: var(--muted); }
.leaf__body { padding: var(--s3) var(--s3) var(--s3) var(--s4); }
.leaf__feast { margin-bottom: var(--s2); font-size: 1rem; line-height: 1.4; color: var(--feast); }
.leaf__list { display: grid; gap: var(--s2); font-size: 1rem; line-height: 1.45; }
.leaf__list li { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: var(--s2); }
.leaf__list time { font-weight: 700; font-variant-numeric: tabular-nums lining-nums; }

.leaf--feast .leaf__head { background: var(--feast-tint); box-shadow: inset 0 4px 0 var(--feast); }
.leaf--feast .leaf__num { color: var(--feast); }
.leaf--today { box-shadow: 0 0 0 3px var(--canvas), 0 0 0 5px var(--action); }
.leaf--today .leaf__head { background: var(--ink); }
.leaf--today .leaf__wd { color: var(--action); }
.leaf--today .leaf__num { color: var(--panel); }
.leaf--today .leaf__month { color: var(--on-dark-muted); }
.leaf--today.leaf--feast .leaf__num { color: var(--feast-light); }

/* Телефон: шапка листка полосой сверху — число слева, день недели и месяц справа */
@media (max-width: 767px) {
  .leaf { display: flex; flex-direction: column; }
  .leaf__head {
    display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "num wd" "num month";
    align-items: center; column-gap: var(--s3); padding: var(--s2) var(--s3); text-align: left;
    border-right: 0; border-bottom: 1px dashed var(--rule-strong);
  }
  .leaf__num { grid-area: num; margin: 0; font-size: 2.5rem; }
  .leaf__wd { grid-area: wd; align-self: end; }
  .leaf__month { grid-area: month; align-self: start; }
  .leaf__body { padding: var(--s3); }
}
@media (min-width: 768px) {
  .week { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
  .leaf { grid-template-columns: 7.5rem minmax(0, 1fr); }
}
@media (min-width: 1280px) {
  .week { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--s2); }
  .leaf { display: flex; flex-direction: column; }
  .leaf__head { padding: var(--s4) var(--s2) var(--s3); border-right: 0; border-bottom: 1px dashed var(--rule-strong); }
  .leaf__num { font-size: 3.5rem; }
  .leaf__body { padding: var(--s3) var(--s3) var(--s4); }
  .leaf__feast { padding-bottom: var(--s2); border-bottom: 1px solid var(--rule); }
  .leaf__list li { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* Как помочь: пожертвование крупно, рядом трудничество и волонтёры */

.bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
.give { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); align-items: center; }
.give__title { margin-bottom: var(--s3); font: 400 clamp(1.75rem, 8vw, 2.25rem)/1.15 var(--font-display); }
.give__text > p { max-width: 48ch; }
.give__actions { display: grid; justify-items: start; gap: var(--s2); margin-top: var(--s4); }

/* QR-код СБП: белая подложка, чтобы код читался камерой; по центру своей колонки */
.qr { display: grid; justify-items: center; gap: var(--s2); width: 15rem; max-width: 100%; margin: 0 auto; }
.qr__code { display: block; width: 11rem; padding: var(--s1); border: 1px solid var(--rule); border-radius: var(--r-img); background: #fff; }
.qr__code img { display: block; width: 100%; height: auto; }
.qr__hint { color: var(--fg-muted); font-size: 1rem; line-height: 1.4; text-align: center; }

/* Кнопка в приложение банка — только на телефонах и планшетах: там qr.nspk.ru открывает выбор банка.
   На компьютере вместо неё QR-код для камеры телефона */
.bank-btn { display: none; }
@media (hover: none) and (pointer: coarse) {
  .bank-btn { display: inline-flex; }
  .qr__code { width: 9rem; }
  .qr__hint { display: none; }
}

/* Пожертвование на странице: приложение банка, QR-код, реквизиты по кнопке — всё по центру */
.pay { display: grid; justify-items: center; gap: var(--s4); width: 100%; margin-top: var(--s5); text-align: center; }
.done__pay .pay { margin-top: 0; }
.done__pay form { justify-self: stretch; text-align: center; }
.nowrap { white-space: nowrap; }

/* Реквизиты под кнопкой «Показать реквизиты» */
.reveal { width: 100%; }
.reveal__btn { list-style: none; }
.reveal__btn::-webkit-details-marker { display: none; }
.reveal[open] .reveal__show, .reveal:not([open]) .reveal__hide { display: none; }
.reveal__body { margin-top: var(--s4); text-align: left; }
.reveal__body .pay-card { margin-top: 0; }

.card { display: flex; flex-direction: column; gap: var(--s2); text-decoration: none; }
.card__title { font: 400 1.625rem/1.2 var(--font-display); }
.card__text { margin: 0 0 var(--s3); color: var(--fg-muted); }
/* Стрелка внизу карточки: на телефоне без неё было непонятно, что карточка нажимается (владелец, 19.11.2026) */
.card .go { margin-top: auto; }

@media (min-width: 768px) {
  .give { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s6); }
  .qr { width: 13rem; }
  .qr__code { width: 12rem; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .bento .give { grid-row: span 2; }
}
/* В узкой колонке bento QR-код уходит под текст, иначе ломается заголовок и номер карты */
@media (min-width: 1024px) and (max-width: 1279px) {
  .give { grid-template-columns: minmax(0, 1fr); }
}

/* Номер карты и копирование */

.pay-card { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s3); margin: var(--s4) 0; }
.pay-card__label { width: 100%; color: var(--fg-muted); font-size: 1rem; }
.card-num { font: 400 1.75rem/1.2 var(--font-text); font-variant-numeric: lining-nums tabular-nums; letter-spacing: .02em; white-space: nowrap; }
.copy {
  display: inline-flex; align-items: center; gap: var(--s2);
  min-height: 2.75rem; padding: 0 .875rem;
  border: 1px solid var(--rule-strong); border-radius: var(--r); background: transparent; color: inherit;
  font: 400 1rem/1 var(--font-text); cursor: pointer; touch-action: manipulation;
}
.copy.is-done { border-color: transparent; }
.copy--icon { width: 2.75rem; margin-left: auto; padding: 0; justify-content: center; flex: none; border-color: var(--rule); }

@media (max-width: 399px) {
  .card-num { font-size: 1.5rem; }
}
@media (max-width: 359px) {
  .card-num { white-space: normal; }
}

/* Паломникам: панель с фактами и фото с подписью на стекле (kooz) */

.visit { display: grid; gap: var(--gap); }
.visit__body h2 { margin-bottom: var(--s3); }
.visit__lead { max-width: 48ch; color: var(--fg-muted); }
.visit__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin: 0; }
.visit__media { position: relative; min-height: 18rem; margin: 0; overflow: hidden; border-radius: var(--r); background: var(--night); }
.visit__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.visit__media figcaption {
  position: absolute; left: var(--s3); bottom: var(--s3);
  padding: var(--s2) var(--s3); border-radius: var(--r-img);
  background: rgba(18, 16, 14, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff; font: 400 1.125rem/1.3 var(--font-display);
}

.facts { margin: var(--s4) 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; gap: var(--s1); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 400 1.375rem/1.3 var(--font-display); }
.facts dt a { text-decoration-color: var(--rubric); text-underline-offset: 6px; }
.facts dd { margin: 0; color: var(--fg-muted); }

@media (min-width: 768px) {
  .visit__media { min-height: 24rem; }
}
@media (min-width: 1024px) {
  .visit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .facts > div { grid-template-columns: 12rem minmax(0, 1fr); gap: var(--s4); align-items: baseline; }
}

/* Святыни: колонки с линейкой слева (kooz) */

.shrines { display: grid; gap: var(--s5); }
.shrines li { padding-left: var(--s3); border-left: 2px solid var(--rule); }
.shrines h3 { margin-bottom: var(--s2); font-size: 1.375rem; }
.shrines p { color: var(--fg-muted); }

@media (min-width: 768px) {
  .shrines { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s6); }
}
@media (min-width: 1280px) {
  .shrines { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); }
}

/* Об обители: текст с буквицей и высокие плитки-фото */

.about { display: grid; gap: var(--gap); }
.about__text h2 { margin-bottom: var(--s4); }
.about__first::first-letter, .prose--book > p:first-child::first-letter {
  float: left; margin: .1em .12em 0 0;
  font: 400 3.4em/.8 var(--font-display); color: var(--fg);
}
.about__actions { margin-top: var(--s4); }

@media (min-width: 1280px) {
  .about { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); }
}

/* Плитки-фото с подписью поверх и круглой стрелкой (kooz, valaam) */

.ptiles { display: grid; gap: var(--gap); }
.ptiles > li { display: flex; }
.ptile {
  position: relative; isolation: isolate; flex: 1;
  display: flex; align-items: flex-end; min-height: 16rem; overflow: hidden;
  border: 1px solid var(--line-dark); border-radius: var(--r); background: var(--night); color: #fff; text-decoration: none;
}
.ptile__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.ptile::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(18, 16, 14, .85) 0, rgba(18, 16, 14, .35) 45%, rgba(18, 16, 14, 0) 75%);
  transition: background-color var(--dur-base) ease;
}
/* Телефон: плитка невысокая и текст доходит до светлого неба — затемнение плотнее по всей высоте */
@media (max-width: 767px) {
  .ptile::after { background: linear-gradient(to top, rgba(18, 16, 14, .9) 0, rgba(18, 16, 14, .62) 55%, rgba(18, 16, 14, .4) 100%); }
}
.ptile__body { display: grid; justify-items: start; gap: var(--s1); padding: var(--s4); }
.ptile__title { font: 400 1.625rem/1.2 var(--font-display); text-wrap: balance; }
.ptile__text { max-width: 44ch; font-size: 1rem; line-height: 1.5; color: rgba(255, 255, 255, .88); }
.ptile .go { margin-top: var(--s2); }

@media (min-width: 768px) {
  .ptiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ptiles--lead > li:first-child { grid-column: 1 / -1; }
  .ptile { min-height: 20rem; }
  .ptiles--lead > li:first-child .ptile { min-height: 24rem; }
  .ptiles--tall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ptiles--tall .ptile { min-height: 24rem; }
  .ptiles--tall .ptile__title { font-size: 1.25rem; }
}
@media (min-width: 1280px) {
  .ptiles--tall .ptile__title { font-size: 1.625rem; }
}

/* Отзывы */

.quotes { display: grid; gap: var(--gap); }
.quote { display: flex; flex-direction: column; gap: var(--s3); }
.quote blockquote { margin: 0; font-size: 1.0625rem; line-height: 1.7; }
.quote blockquote p { margin-bottom: var(--s2); }
.quote__name { margin: auto 0 0; padding-top: var(--s3); border-top: 1px solid var(--line); font: 400 1.125rem/1.3 var(--font-display); color: var(--fg-muted); }

.reviews { columns: 3 22rem; column-gap: var(--gap); }
.reviews .quote { width: 100%; margin-bottom: var(--gap); break-inside: avoid; }

@media (min-width: 1024px) {
  .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quotes--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Подвал: самая тёмная панель */

.footer { padding-bottom: var(--gap); }
.footer__panel { padding: var(--s6) var(--panel-pad) var(--s4); border: 1px solid var(--line-dark); border-radius: var(--r); background: var(--night); color: var(--on-dark-muted); }
.footer a { color: var(--on-dark); text-decoration-color: rgba(237, 231, 219, .35); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
.footer__title { margin-bottom: var(--s3); font: 400 1.375rem/1.25 var(--font-display); color: var(--on-dark); }
.footer__list { display: grid; gap: var(--s2); }
.footer address { max-width: 32ch; margin: var(--s3) 0; }
.logo--footer { margin: 0; }
.logo--footer .logo__name, .logo--footer .logo__sub { white-space: normal; }
.logo--footer .logo__sub { display: block; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s4);
  margin-top: var(--s6); padding-top: var(--s4);
  border-top: 1px solid var(--line-dark);
  font-size: 1rem;
}
.footer__bottom p { margin: 0; }
/* Подпись разработчика: самой нижней строкой, приглушённо */
.footer__made { margin: var(--s3) 0 0; color: var(--fg-muted); font-size: 1rem; }
.footer__made a { color: inherit; text-decoration-color: var(--line-dark); text-underline-offset: 4px; }

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .footer__grid { grid-template-columns: minmax(0, 4fr) repeat(4, minmax(0, 3fr)); gap: var(--s5); }
}

/* Нижняя панель действий на телефоне */

.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
  display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: var(--s1);
  height: calc(var(--mbar-h) + env(safe-area-inset-bottom));
  padding: var(--s1) var(--s1) calc(var(--s1) + env(safe-area-inset-bottom));
  background: var(--night); border-top: 1px solid var(--line-dark);
  transition: transform var(--dur-base) var(--ease-smooth), height var(--dur-base) ease, padding-bottom var(--dur-base) ease;
}
/* Уходит вниз при прокрутке вниз и в конце страницы (main.js), возвращается при прокрутке вверх */
.mbar.is-hidden { transform: translateY(100%); }
.mbar a { display: flex; align-items: center; justify-content: center; border-radius: var(--r-img); color: var(--on-dark); font: 400 1rem/1.1 var(--font-text); text-decoration: none; touch-action: manipulation; }
.mbar a:not(.mbar__cta) { background: var(--canvas-2); }
.mbar .mbar__cta { background: var(--action); color: var(--ink); }

@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .mbar { display: none; }
}

/* Внутренние страницы: заголовок по центру на тёмном фоне, страницы раздела вкладками */

.page-head { padding: var(--s5) 0; text-align: center; }
.crumbs ol { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s1) 0; margin-bottom: var(--s4); font-size: 1rem; color: var(--on-dark-muted); }
/* Косая черта после пункта, а не перед: при переносе строка не начинается с «/» */
.crumbs li:not(:last-child)::after { content: "/"; margin: 0 var(--s2); color: rgba(237, 231, 219, .4); }
.crumbs a { color: var(--on-dark-muted); text-decoration-color: rgba(237, 231, 219, .35); }
.page-head__title { max-width: 22ch; margin: 0 auto; font: 400 2.25rem/1.15 var(--font-display); text-wrap: balance; }
.page-head__lead { max-width: 52ch; margin: var(--s4) auto 0; font-size: 1.125rem; line-height: 1.5; color: var(--on-dark-muted); }

.subnav { display: flex; justify-content: center; margin-top: var(--s4); }

.page-body--center { display: grid; place-items: center; min-height: 60vh; padding-top: var(--s5); }
.page-body > .block:first-child { padding-top: 0; }

/* «Листайте вниз»: на телефоне после смены страницы раздела видно мало содержимого (владелец, 19.11.2026).
   Показывает main.js, если содержимое начинается ниже середины экрана; стрелка качнётся три раза */
.scroll-hint {
  display: flex; flex-direction: column; align-items: center; gap: var(--s1);
  min-height: 2.75rem; margin: var(--s4) auto 0; padding: var(--s1) var(--s3);
  border: 0; background: none; color: var(--on-dark-muted); font: 400 1rem/1.2 var(--font-text); cursor: pointer;
  transition: opacity var(--dur-base) ease;
}
.scroll-hint .icon { width: 1.5rem; height: 1.5rem; animation: hint-bounce 1.2s var(--ease-smooth) 3; }
.scroll-hint.is-gone { opacity: 0; pointer-events: none; }
@keyframes hint-bounce { 50% { transform: translateY(var(--s1)); } }
@media (min-width: 768px) {
  .scroll-hint { display: none; }
}

@media (min-width: 768px) {
  .page-head { padding: var(--s6) 0 var(--s5); }
  .page-head__title { font-size: 3rem; }
}
@media (min-width: 1440px) {
  .page-head__title { font-size: 3.375rem; }
}

/* Текст страницы: колонка по центру листа, как в книге */

.prose { overflow-wrap: break-word; hyphens: auto; }
.prose h2 { margin: var(--s6) 0 var(--s3); font: 400 1.75rem/1.25 var(--font-display); text-align: center; scroll-margin-top: calc(var(--nav-h) + var(--s3)); }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin: var(--s5) 0 var(--s2); font: 400 1.375rem/1.3 var(--font-display); }
.prose p, .prose ul, .prose ol { margin: 0 0 var(--s3); }
.prose > :last-child { margin-bottom: 0; }
.prose ul { padding-left: 1.25em; list-style: disc; }
.prose ol { padding-left: 1.5em; list-style: decimal; }
.prose li { margin-bottom: var(--s1); }
.prose li::marker { color: var(--rule-strong); }
.prose img { margin: var(--s5) auto; border-radius: var(--r-img); }
.prose a:not(.btn) { color: var(--fg); text-decoration-color: var(--rubric); }
.prose strong { font-weight: 700; }
.prose--intro > p:first-child { font: 400 1.25rem/1.5 var(--font-display); text-align: center; }
.prose .names-list { columns: 2 13rem; column-gap: var(--s5); padding: 0; list-style: none; }
.prose .names-list li { margin: 0; padding: var(--s1) 0; break-inside: avoid; }

@media (min-width: 768px) {
  .prose h2 { font-size: 2rem; }
}

.toc { margin: 0 0 var(--s6); padding: var(--s4) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.toc__title { margin-bottom: var(--s2); font: 400 1.25rem/1.3 var(--font-display); color: var(--fg-muted); }
.toc ol { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s1) var(--s4); }
.toc a { display: inline-flex; min-height: 2.75rem; align-items: center; font-size: 1rem; line-height: 1.25; text-decoration-color: var(--rubric); }

.figure { margin: 0 0 var(--s5); }
.figure img { width: 100%; border-radius: var(--r-img); }
.figure--icon { width: min(60%, 15rem); margin: 0 auto var(--s5); }

/* Блоки внутри страницы: панели одна под другой */

.block { padding-top: var(--gap); scroll-margin-top: calc(var(--nav-h) + var(--s3)); }
.block__title, .prose .block__title { margin: 0 0 var(--s5); font: 400 2rem/1.15 var(--font-display); text-align: center; }
.block__title--canvas { margin-top: var(--s6); }
.block__lead { margin: calc(-1 * var(--s3)) 0 var(--s5); color: var(--fg-muted); text-align: center; }
.block__actions { margin-top: var(--s4); text-align: center; }
.block__more { margin-top: var(--s4); text-align: center; }

@media (min-width: 768px) {
  .block__title, .prose .block__title { font-size: 2.5rem; }
}

.notice { margin-bottom: var(--s4); padding: var(--s3) var(--s4); border-radius: var(--r-img); background: var(--tint); text-align: center; }

/* Заглушка: текст даст монастырь */
.wip { margin: 0; padding: var(--s5) 0; font: 400 1.75rem/1.2 var(--font-display); text-align: center; }
.stub { margin: var(--s5) 0; padding: var(--s4); border: 1px dashed var(--rule-strong); border-radius: var(--r); color: var(--fg-muted); text-align: left; }
.stub:first-child { margin-top: 0; }
.stub:last-child { margin-bottom: 0; }
.stub__label { margin-bottom: var(--s1); font: 700 1rem/1.3 var(--font-text); color: var(--fg); }

/* Якоря страницы «Паломникам»: вкладки без плашки */
.anchors { display: flex; justify-content: center; }
.anchors .tabs { border-color: transparent; background: transparent; }
/* Ссылки по странице подчёркнуты: на телефоне иначе выглядели простым текстом */
.anchors .tabs__item { text-decoration: underline; text-decoration-color: var(--rubric); text-underline-offset: 5px; }

.map { margin: var(--s4) 0; overflow: hidden; border-radius: var(--r); background: var(--tint); }
.map iframe { display: block; width: 100%; height: 22rem; border: 0; }
.map--tall { margin: 0; }
.map--tall iframe { height: clamp(22rem, 38vw, 32rem); }

/* Список объявлений */

.index { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
.index__item { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); text-decoration: none; }
.index__body { display: grid; gap: var(--s1); min-width: 0; }
.index__title { font: 400 1.625rem/1.25 var(--font-display); overflow-wrap: break-word; hyphens: auto; }
.index__meta { font-size: 1rem; color: var(--fg-muted); }
.index + .note { margin-top: var(--s4); text-align: center; }
.note a { color: var(--fg); text-decoration-color: var(--rubric); }

/* Расписание на месяц: дни строками, дата — листок календаря */

.month-bar { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: var(--s2) var(--s3); margin-bottom: var(--s4); }
.month-bar__title { grid-column: 1 / -1; order: -1; font: 400 1.75rem/1.15 var(--font-display); text-align: center; white-space: nowrap; }
.month-bar__link { display: inline-flex; align-items: center; gap: var(--s1); min-height: 2.75rem; color: var(--fg); font-size: 1rem; text-decoration: none; }
.month-bar__link[rel="next"] { justify-self: end; }
.month__past { display: flex; margin: 0 auto var(--s4); }

.month { display: grid; gap: var(--s2); }
.month.is-collapsed .is-past { display: none; }
.mday {
  display: grid; grid-template-columns: 7.25rem minmax(0, 1fr); gap: var(--s3);
  padding: var(--s2); padding-right: var(--s3);
  border: 1px solid var(--rule); border-radius: var(--r);
  scroll-margin-top: calc(var(--nav-h) + var(--s3));
}
.mday__date { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--s2) var(--s1); border-radius: var(--r-img); background: var(--tint); text-align: center; }
.mday__num { font: 400 2.25rem/1 var(--font-display); }
.mday__wd { margin-top: var(--s1); font-size: 1rem; line-height: 1.25; color: var(--muted); }
.mday__wd b { display: block; margin-top: var(--s1); font-weight: 700; color: var(--action); }
.mday__body { align-self: center; padding: var(--s2) 0; }
.mday__feast { margin-bottom: var(--s2); font: 400 1.1875rem/1.35 var(--font-display); }
.mday__list { display: grid; gap: var(--s1); }
.mday__list li { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: var(--s1h); }
.mday__list time { font-weight: 700; font-variant-numeric: tabular-nums lining-nums; }

.mday.is-sunday .mday__date, .mday.is-great .mday__date { background: var(--feast-tint); box-shadow: inset 0 3px 0 var(--feast); }
.mday.is-sunday .mday__num, .mday.is-great .mday__num, .mday.is-great .mday__feast { color: var(--feast); }
.mday.is-past { color: var(--muted); }
.mday.is-past .mday__num { opacity: .6; }
.mday.is-today { border-color: var(--ink); }
.mday.is-today .mday__date { background: var(--ink); box-shadow: inset 0 3px 0 var(--action); }
.mday.is-today .mday__num { color: var(--panel); }
.mday.is-today .mday__wd { color: var(--on-dark-muted); }

/* Узкий телефон: дата полосой над службами */
@media (max-width: 479px) {
  .mday { grid-template-columns: minmax(0, 1fr); gap: var(--s2); padding-right: var(--s2); }
  .mday__date { flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: 0 var(--s3); padding: var(--s2) var(--s3); text-align: left; }
  .mday__num { font-size: 2rem; }
  .mday__wd { margin: 0; }
  .mday__wd b { display: inline; margin: 0 0 0 var(--s2); }
  .mday__body { padding: 0 var(--s2) var(--s2); }
}
@media (min-width: 768px) {
  .month-bar { grid-template-columns: 1fr auto 1fr; }
  .month-bar__title { grid-column: auto; order: 0; font-size: 2.25rem; }
  .mday { grid-template-columns: 8rem minmax(0, 1fr); gap: var(--s4); }
  .mday__num { font-size: 2.5rem; }
}

.rule { margin-top: var(--gap); scroll-margin-top: calc(var(--nav-h) + var(--s3)); }
.rule__title { margin-bottom: var(--s5); font: 400 2rem/1.15 var(--font-display); text-align: center; }
.rule__title::after { content: ""; display: block; width: 2.5rem; height: 2px; margin: var(--s3) auto 0; background: var(--rubric); }
.rule__list { display: grid; gap: var(--s4) var(--s6); margin: 0 0 var(--s4); }
.rule__list dt { margin-bottom: var(--s1); font: 400 1.375rem/1.25 var(--font-display); }
.rule__list dd { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: var(--s1h); margin: 0; }
.rule__list time { font-weight: 700; font-variant-numeric: tabular-nums lining-nums; }
.rule__note { color: var(--fg-muted); font-size: 1rem; text-align: center; }

@media (min-width: 768px) {
  .rule__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rule__title { font-size: 2.5rem; }
}

/* Требы: цены с отточием, как в оглавлении книги */

.price { display: grid; gap: var(--s6); }
.price__group h4 { margin: 0 0 var(--s3); font: 400 1.375rem/1.3 var(--font-display); text-align: center; }
/* Треба: название слева, справа цена и кнопка «Заказать» — она открывает записку с этой требой (main.js) */
.price__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name sum" "name order"; align-items: start; gap: var(--s1) var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--rule); }
.price__item:first-child { border-top: 1px solid var(--rule); }
.price__name { grid-area: name; line-height: 1.4; }
.price__sum { grid-area: sum; justify-self: end; font-weight: 700; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.price__order {
  grid-area: order; justify-self: end; display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 var(--s3);
  border: 1px solid var(--ink); border-radius: var(--r-img); color: var(--ink); font-size: 1rem; text-decoration: none; touch-action: manipulation;
}
/* Треба выбрана из списка: строка в листке на миг подсвечивается, чтобы было видно, что подставилось */
.slip__pick.is-picked .slip__value { background: var(--chip); border-radius: var(--r-img); transition: background-color 600ms ease; }
.price__group small { color: var(--fg-muted); font-size: 1rem; }

/* Записка, «За воинов», «Требы» — вкладки одной панели, как на valaam.ru; выбранная подчёркнута */
.zap-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: calc(-1 * var(--s2)) 0 var(--s5); border-bottom: 1px solid var(--rule); }
.zap-tabs__item {
  min-height: 3.25rem; padding: var(--s2) var(--s1); border: 0; background: none; cursor: pointer;
  color: var(--muted); font: 400 clamp(1.0625rem, 4.4vw, 1.375rem)/1.2 var(--font-display);
  box-shadow: inset 0 -3px 0 transparent; transition: color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.zap-tabs__item[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--ink); }
.zap-tabs__item:focus-visible { outline-offset: -2px; }
.zap-pane__title { margin: 0 0 var(--s4); font: 400 1.75rem/1.2 var(--font-display); text-align: center; }
.zap-pane__lead { margin: calc(-1 * var(--s2)) 0 var(--s4); color: var(--muted); text-align: center; }
.rules { display: grid; gap: var(--s2); max-width: 42rem; margin: var(--s6) auto 0; }
.rules li { padding-left: var(--s3); border-left: 2px solid var(--rule); }

@media (min-width: 1024px) {
  .price { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6) var(--s7); }
}

/* Формы */

.form { display: grid; gap: var(--s4); }
.form__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
.field { display: grid; gap: var(--s2); min-width: 0; margin: 0; padding: 0; border: 0; }
.field__label { padding: 0; font: 700 1rem/1.3 var(--font-text); }
/* legend не участвует в сетке fieldset, поэтому отступ до полей задаём ему сам */
legend.field__label { margin-bottom: var(--s2); }
.field__hint { margin: 0; color: var(--fg-muted); font-size: 1rem; }
.input {
  width: 100%; min-height: 3.25rem; padding: var(--s1h) var(--s3);
  border: 1px solid var(--rule-strong); border-radius: var(--r); background: var(--field); color: var(--ink);
  font: 400 var(--text-size)/1.4 var(--font-text);
}
textarea.input { resize: vertical; }
.input:focus { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 0; }
/* Ошибка в поле (телефон, почта): вишнёвая рамка и текст под полем — цвет по смыслу, как предупреждение */
.input[aria-invalid="true"] { border-color: var(--feast); outline: 1px solid var(--feast); outline-offset: 0; }
.field__error { margin: 0; color: var(--feast); font-size: 1rem; font-weight: 700; }

.choice { display: flex; flex-wrap: wrap; gap: var(--s2); }
.choice__item {
  display: inline-flex; align-items: center; gap: var(--s2); min-height: 3.25rem; padding: 0 1.25rem;
  border: 1px solid var(--rule-strong); border-radius: var(--r); background: var(--field); cursor: pointer;
}
.choice__item:has(input:checked) { border-color: var(--ink); background: var(--chip); }
.choice input, .check input { width: 1.25rem; height: 1.25rem; margin: 0; flex: none; accent-color: var(--ink); }

.names { display: grid; gap: var(--s2); }

.check { display: flex; align-items: flex-start; gap: var(--s2); font-size: 1rem; cursor: pointer; }
.check input { margin-top: .25em; }

.sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2) var(--s3); margin: 0; padding: var(--s3) var(--s4); border-radius: var(--r-img); background: var(--tint); }
.sum b { font: 400 2rem/1.1 var(--font-display); }
.form__note { margin: 0; color: var(--fg-muted); font-size: 1rem; }
.form .btn { justify-self: start; }

@media (min-width: 768px) {
  .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 479px) {
  .form .btn, .btn--sm { justify-self: stretch; }
}
.form__actions { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); }

/* Записка — листок, как на valaam.ru (владелец, 19.11.2026): «о здравии» с красным крестом и чертой сверху,
   «об упокоении» с чёрными. Цвет здесь по смыслу церковной записки */
.slip {
  --mark: var(--feast);
  display: grid; gap: var(--s4);
  padding: var(--s4) var(--s3);
  border: 1px solid var(--rule); border-radius: var(--r); background: var(--field);
  box-shadow: inset 0 4px 0 var(--mark);
}
.slip[data-o="upokoenie"] { --mark: var(--ink); }
.slip__cross { justify-self: center; width: 1.25rem; height: 2rem; fill: none; stroke: var(--mark); stroke-width: 1.6; stroke-linecap: round; }
/* «О здравии / Об упокоении» — две большие кнопки рядом, выбранная залита цветом записки (владелец, 19.11.2026) */
.slip__type { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s1); min-width: 0; margin: calc(-1 * var(--s2)) 0 0; padding: var(--s1); border: 1px solid var(--rule-strong); border-radius: var(--r); }
.slip__tab {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0 var(--s2); border-radius: var(--r-img);
  font: 400 1.0625rem/1.2 var(--font-text); color: var(--ink); text-align: center; cursor: pointer;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.slip__tab input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.slip__tab:has(input:checked) { background: var(--mark); color: var(--panel); }
.slip__tab:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Шапка листка как на valaam.ru: «О здравии ⌄» и треба ⌄ — выпадающие строки, текст виден целиком.
   Поверх лежит прозрачный настоящий select: на телефоне открывается родной список с полными названиями и ценами */
.slip__pick { position: relative; justify-self: center; max-width: 100%; margin-top: calc(-1 * var(--s3)); border-radius: var(--r-img); text-align: center; cursor: pointer; }
.slip__pick select { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; font-size: 1rem; cursor: pointer; }
.slip__value { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 3rem; padding: var(--s1) var(--s2); }
.slip__value .icon { width: 1.25rem; height: 1.25rem; flex: none; color: var(--mark); stroke-width: 2; }
.slip__pick--treba .slip__value { font: 400 1.125rem/1.35 var(--font-display); color: var(--mark); }
.slip__pick:has(select:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.slip__sum { margin: 0; color: var(--muted); font-size: 1rem; text-align: right; }
.slip__sum b { margin-left: var(--s1); color: var(--ink); font-size: 1.125rem; }
.slip__error { margin: 0; font-weight: 700; }

/* Телефон: листок почти во всю ширину панели */
@media (max-width: 767px) {
  .slip { margin-inline: calc(var(--s2) - var(--panel-pad)); padding-inline: var(--s3); }
}
@media (min-width: 768px) {
  .slip { padding: var(--s5); }
  .slip__pick--treba .slip__value { font-size: 1.25rem; }
}
/* Реквизиты под заголовком блока: отступ уже задан заголовком */
.block__title + .pay { margin-top: 0; }

/* Имена строками, как в бумажной записке: имя и пометка (воина, болящей…), под строкой — подсказка падежа */
.lines { display: grid; }
.line { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); column-gap: var(--s3); }
.line__name, .line__mark {
  width: 100%; min-height: 3rem; padding: var(--s2) 0;
  border: 0; border-bottom: 1px solid var(--rule-strong); border-radius: 0; background: transparent;
  color: var(--ink); font: 400 var(--text-size)/1.3 var(--font-text);
}
.line__mark { font-size: 1rem; }
.line__name::placeholder, .line__mark::placeholder { color: var(--rule-strong); opacity: 1; }
.line__name:focus, .line__mark:focus { outline: 0; border-bottom: 2px solid var(--ink); padding-bottom: calc(var(--s2) - 1px); }
.line__tip, .genitive-tip {
  grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: var(--s1);
  min-height: 2.75rem; margin: var(--s2) 0; padding: 0 var(--s3);
  border: 1px solid var(--rule-strong); border-radius: var(--r-img); background: var(--tint);
  color: var(--ink); font: 400 1rem/1.3 var(--font-text); text-align: left; cursor: pointer;
}
.genitive-tip { margin: 0; }

/* Список записок перед отправкой */
.form .zap__more { justify-self: center; }
.cart { display: grid; gap: var(--s3); }
.cart__title { font: 400 1.5rem/1.2 var(--font-display); text-align: center; }
.cart__list { display: grid; gap: var(--s2); }
.cart__item {
  --mark: var(--feast);
  display: grid; gap: var(--s1); padding: var(--s3) var(--s3) var(--s3) var(--s4);
  border: 1px solid var(--rule); border-radius: var(--r); background: var(--field);
  box-shadow: inset 4px 0 0 var(--mark);
}
.cart__item--upokoenie { --mark: var(--ink); }
.cart__head { display: flex; justify-content: space-between; gap: var(--s3); margin: 0; font-weight: 700; }
.cart__head span { white-space: nowrap; }
.cart__what { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.4; }
.cart__names { margin: 0; overflow-wrap: anywhere; }
.cart__foot { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s1) 0 0; }
.cart__btn {
  min-height: 2.75rem; padding: 0 var(--s3);
  border: 1px solid var(--rule-strong); border-radius: var(--r); background: transparent;
  color: var(--ink); font: 400 1rem/1 var(--font-text); cursor: pointer; touch-action: manipulation;
}

/* Реквизиты */

.req { display: grid; margin: 0; border-top: 1px solid var(--line); }
.req__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s1); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.req dt { color: var(--fg-muted); font-size: 1rem; }
.req dd { display: flex; align-items: center; gap: var(--s3); margin: 0; font-variant-numeric: tabular-nums lining-nums; overflow-wrap: anywhere; }

@media (min-width: 768px) {
  .req__row { grid-template-columns: 10rem minmax(0, 1fr); align-items: center; gap: var(--s4); }
}

/* Способы пожертвования: две панели рядом */

.ways { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
.way { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.way__title { margin-bottom: var(--s3); font: 400 1.625rem/1.2 var(--font-display); }
.way .pay-card { justify-content: center; margin: 0; }
.way .stub { margin: var(--s4) 0 0; }

@media (min-width: 768px) {
  .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Контакты */

.contacts { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); margin: 0; text-align: center; }
.contacts dt { margin-bottom: var(--s1); color: var(--fg-muted); font-size: 1rem; }
.contacts dd { margin: 0; font: 400 1.5rem/1.35 var(--font-display); overflow-wrap: anywhere; }
.contacts a { color: var(--fg); text-decoration-color: var(--rubric); }

@media (min-width: 768px) {
  .contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s6); }
}

/* Объявления */


/* Фотогалерея */

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: var(--gap); }
.gallery__item { display: block; overflow: hidden; border: 1px solid var(--line-dark); border-radius: var(--r); background: var(--canvas-2); }
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity var(--dur-fast) ease; }

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: var(--s6) var(--s3); border: 0; background: rgba(18, 16, 14, .96); }
.lightbox::backdrop { background: rgba(18, 16, 14, .6); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r-img); }
.lightbox__close {
  position: absolute; top: var(--s3); right: var(--s3); display: grid; place-items: center;
  width: 3rem; height: 3rem; border: 1px solid rgba(255, 255, 255, .5); border-radius: var(--r); background: transparent; color: #fff; cursor: pointer;
}
.lightbox__close .icon { width: 1.5rem; height: 1.5rem; }

/* Видео: превью, плеер загружается по нажатию */

.videos { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
.video-card { padding: var(--s2) var(--s2) var(--s4); }
.video { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--r-img); background: var(--night); }
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video__play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: grid; place-items: center; width: 4.5rem; height: 4.5rem;
  border: 1px solid rgba(255, 255, 255, .7); border-radius: 50%; background: rgba(18, 16, 14, .55); color: #fff; cursor: pointer;
}
.video__play .icon { width: 1.5rem; height: 1.5rem; margin-left: .2rem; fill: currentColor; }
.video-card__title { margin: var(--s3) var(--s2) var(--s1); font: 400 1.375rem/1.25 var(--font-display); }
.video-card__author { margin: 0 var(--s2); color: var(--fg-muted); font-size: 1rem; }

@media (min-width: 1024px) {
  .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Спасибо и 404 */

.done { display: grid; justify-items: center; gap: var(--s3); width: 100%; max-width: 44rem; padding: var(--s6) var(--panel-pad); text-align: center; }
.done__cross { width: 1.25rem; height: 2rem; fill: none; stroke: var(--fg); stroke-width: 1.4; stroke-linecap: round; }
.done__code { margin: 0; font: 400 4.5rem/1 var(--font-display); color: var(--rule-strong); }
.done__title { font: 400 2.5rem/1.15 var(--font-display); }
.done__text { color: var(--fg-muted); }
.done__pay { display: grid; justify-items: center; gap: var(--s3); width: 100%; margin: var(--s2) 0; padding: var(--s4) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.done__pay .pay-card { justify-content: center; margin: 0; }
.done__links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2) var(--s4); margin-bottom: var(--s3); }
.done__links a { display: inline-flex; min-height: 2.75rem; align-items: center; font-size: 1rem; text-decoration-color: var(--rubric); }

/* Ловушка для роботов в формах: поле за пределами экрана, людям не видно */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Дата новости над текстом */
.news-date { margin-bottom: var(--s4); font-size: 1rem; color: var(--fg-muted); text-align: center; }

/* Наведение — только там, где есть мышь: на телефоне :hover оставался на пункте после нажатия
   (владелец, 19.11.2026). На касание — короткий отклик :active, пока палец на кнопке */
@media (hover: hover) {
  a:hover { text-decoration-thickness: 2px; }
  .btn--primary:hover { background: color-mix(in srgb, var(--fg) 82%, var(--surface)); }
  .btn--outline:hover { background: var(--fg); border-color: var(--fg); color: var(--surface); }
  .btn--accent:hover { background: var(--action-hover); }
  .btn--ghost:hover { border-color: #fff; background: rgba(18, 16, 14, .55); }
  .tabs__item:not([aria-current]):hover { background: rgba(237, 231, 219, .1); }
  .header__phone:hover { text-decoration: underline; }
  .drawer__close:hover { background: var(--tint); }
  .hero__nav .go:hover { background: #fff; }
  .tile:hover .go, .index__item:hover .go { background: var(--ink); color: var(--panel); }
  .card:hover .card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
  .copy:not(.is-done):hover { border-color: currentColor; }
  .facts dt a:hover { text-decoration-thickness: 2px; }
  .slip__pick:hover .slip__value { background: var(--tint); border-radius: var(--r-img); }
  .card:hover .go { background: var(--ink); color: var(--panel); }
  .ptile:hover::after { background-color: rgba(18, 16, 14, .12); }
  .ptile:hover .go { background: #fff; }
  .footer__made a:hover { color: var(--fg); }
  .crumbs a:hover { color: var(--on-dark); }
  .month-bar__link:hover { text-decoration: underline; text-decoration-color: var(--rubric); }
  .gallery__item:hover img { opacity: .9; }
  .video__play:hover { background: rgba(18, 16, 14, .8); }
  .cart__btn:hover, .line__tip:hover, .genitive-tip:hover { border-color: var(--ink); }
  .slip__tab:not(:has(input:checked)):hover { background: var(--tint); }
  .zap-tabs__item:not([aria-selected="true"]):hover { color: var(--ink); }
  .price__order:hover { background: var(--ink); color: var(--panel); }
}
@media (hover: none) {
  .btn:active, .tabs__item:active, .mbar a:active, .tile:active, .ptile:active, .card:active, .slip__pick:active, .price__order:active, .zap-tabs__item:active,
  .cart__btn:active, .copy:active, .drawer__nav a:active, .line__tip:active, .genitive-tip:active { opacity: .7; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
