/* Modern Minimal Church - Complete Redesign */

:root {
  /* Colors - Simple & Elegant */
  --primary: #2C2416;
  --primary-light: #4A3F2E;
  --accent: #B89968;
  --text: #1A1A1A;
  --text-muted: #737373;
  --bg: #FFFFFF;
  --bg-soft: #FAFAF9;
  --border: #E5E5E5;

  /* Typography */
  --font-display: 'Cormorant', serif;
  --font-body: 'Manrope', sans-serif;

  /* Spacing */
  --space-unit: 8px;
  --space-xs: calc(var(--space-unit) * 1);
  --space-sm: calc(var(--space-unit) * 2);
  --space-md: calc(var(--space-unit) * 3);
  --space-lg: calc(var(--space-unit) * 4);
  --space-xl: calc(var(--space-unit) * 6);
  --space-2xl: calc(var(--space-unit) * 8);
  --space-3xl: calc(var(--space-unit) * 12);
  --space-4xl: calc(var(--space-unit) * 16);
  --space-5xl: calc(var(--space-unit) * 24);

  /* Layout */
  --max-width: 1440px;
  --content-width: 1200px;
  --text-width: 680px;
  /* Единые поля страницы: узко на телефоне, ровно на десктопе */
  --page-gutter: clamp(1rem, 4.5vw, 1.75rem);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* Simple fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content,
.section-header,
.news-card,
.schedule-day,
.clergy-card {
  animation: fadeIn 0.6s ease-out backwards;
}

.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }

.schedule-day:nth-child(1) { animation-delay: 0.1s; }
.schedule-day:nth-child(2) { animation-delay: 0.2s; }
.schedule-day:nth-child(3) { animation-delay: 0.3s; }

.clergy-card:nth-child(1) { animation-delay: 0.1s; }
.clergy-card:nth-child(2) { animation-delay: 0.2s; }
.clergy-card:nth-child(3) { animation-delay: 0.3s; }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  color: var(--primary);
}

h1 { font-size: clamp(44px, 5vw, 64px); }
h2 { font-size: clamp(32px, 4vw, 48px); }
h3 { font-size: clamp(24px, 3vw, 32px); }
h4 { font-size: 20px; }

p {
  margin-bottom: 1.5em;
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  padding: 12px 24px;
  background: var(--primary);
  color: white;
  z-index: 9999;
}

.skip-link:focus {
  top: 20px;
}

/* Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.header-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 0;
  min-width: 0;
}

.header-logo__name {
  overflow: visible;
  white-space: normal;
  line-height: 1.25;
  /* На мобилке не переносим слово с дефисом: перенос только целым словом */
  word-wrap: normal;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
}

/* Десктоп: все пункты в выпадающей панели «Разделы сайта» */
.header-nav {
  display: none;
}

.header-nav-dropdown {
  position: relative;
}

.header-sections-btn {
  display: none;
}

.header-nav__panel {
  display: none;
}

@media (min-width: 1024px) {
  .header-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    margin: 0;
  }

  .header-sections-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--primary);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 2px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
  }

  .header-sections-btn:hover {
    border-color: rgba(0, 0, 0, 0.12);
    background: var(--bg-soft);
  }

  .header-nav-dropdown--open .header-sections-btn {
    border-color: var(--primary);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  }

  .header-sections-btn__chevron {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    opacity: 0.45;
    transition: transform 0.25s ease;
  }

  .header-nav-dropdown--open .header-sections-btn__chevron {
    transform: rotate(180deg);
    opacity: 0.65;
  }

  .header-nav__panel {
    display: block;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    min-width: min(100vw - 48px, 320px);
    max-width: min(100vw - 32px, 380px);
    max-height: min(70vh, 520px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: var(--space-sm) 0;
    margin: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 2px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.06);
    z-index: 500;
    -webkit-overflow-scrolling: touch;
  }

  .header-nav__panel[hidden] {
    display: none !important;
  }

  .header-nav__panel .nav-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .header-nav__panel .nav-list > li {
    border-bottom: 1px solid var(--border);
  }

  .header-nav__panel .nav-list > li:last-child {
    border-bottom: none;
  }

  .header-nav__panel-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .header-nav__panel-inner > a {
    display: block;
    padding: 12px 18px;
    font-size: 15px;
    color: var(--text-muted);
    transition: color 0.2s ease, background 0.2s ease;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
  }

  .header-nav__panel-inner > a:last-child {
    border-bottom: none;
  }

  .header-nav__panel-inner > a:hover {
    color: var(--primary);
    background: var(--bg-soft);
  }
}

.header-nav a {
  font-size: 15px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--primary);
}

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn span {
  width: 22px;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s;
}

/* Mobile Menu: область под шапкой, список листается (иначе при overflow:hidden у body обрезается) */
.mobile-menu {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 0;
  z-index: 99;
  display: none;
  flex-direction: column;
  overflow: hidden;
  max-height: calc(100dvh - 80px);
  max-height: calc(100vh - 80px);
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-xl) var(--page-gutter);
  padding-bottom: max(var(--space-2xl), env(safe-area-inset-bottom, 0px));
  scrollbar-width: thin;
}

/* Намёк, что ниже ещё есть пункты (классы выставляет app.js) */
.mobile-menu-nav.mobile-menu-nav--scrollable:not(.mobile-menu-nav--at-end) {
  box-shadow: inset 0 -36px 32px -28px rgba(0, 0, 0, 0.14);
}

.mobile-menu-nav a {
  font-size: 18px;
  color: var(--text);
  padding: calc(var(--space-xs) + 2px) 0;
  transition: color 0.2s;
  flex-shrink: 0;
}

.mobile-menu-nav a:hover {
  color: var(--primary);
}

/* Hero */
.hero {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--page-gutter) var(--space-5xl);
}

.hero-content {
  display: grid;
  gap: var(--space-2xl);
  align-items: start;
}

@media (min-width: 1024px) {
  .hero {
    padding: var(--space-xl) var(--page-gutter) var(--space-5xl);
  }

  .hero-content {
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-rows: auto auto;
    column-gap: var(--space-3xl);
    row-gap: var(--space-md);
    align-items: start;
  }

  .hero-lead {
    grid-column: 1;
    grid-row: 1;
  }

  .hero-actions {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
  }

  .hero-col-media {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
}

/* «По благословению …» — тот же шрифт, что у названия храма (display), плюс токены конструктора */
.hero-blessing {
  font-family: var(--font-display);
  font-size: clamp(0.8125rem, 1.65vw, 0.9375rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 var(--space-sm) 0;
  line-height: 1.45;
  max-width: 36rem;
}

.hero-lead h1 {
  margin-top: 0;
  margin-bottom: var(--space-md);
  line-height: 1;
}

.hero-lead p {
  font-size: 18px;
  margin-bottom: 0;
  max-width: 500px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: var(--primary);
  color: white;
  font-size: 16px;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.3s;
}

.hero-cta:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

/* Планшет/телефон: заголовок и вводка — по центру; фото между ними и блоком кнопки+карточек; кнопка и инфо — по центру.
   Отступ lead → фото = как между «По благословению» и названием (--space-sm), не --space-2xl */
@media (max-width: 1023px) {
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .hero-actions {
    margin-top: var(--space-lg);
  }

  .hero-lead {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .hero-lead h1 {
    width: 100%;
  }

  .hero-lead .hero-blessing {
    width: 100%;
    max-width: 36rem;
  }

  .hero-lead p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    align-items: center;
    text-align: center;
  }

  /* Mobile: кнопка «Расписание богослужений» по ширине как фото/соцкнопки */
  .hero-actions .hero-cta {
    width: 100%;
    max-width: min(100%, 26rem);
    justify-content: center;
    box-sizing: border-box;
  }

  .hero-minimal-links {
    width: 100%;
    align-self: stretch;
  }

  .hero-col-media {
    margin-top: var(--space-sm);
    width: 100%;
    max-width: min(100%, 26rem);
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-image {
  position: relative;
  /* было 3/4 — чуть ниже кадр */
  aspect-ratio: 4/5;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Кнопки ВК / Telegram / MAX / телефон в hero (tenant-config), визуально как бывшие .info-card */
.hero-minimal-links {
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  width: 100%;
}

@media (min-width: 640px) {
  .hero-minimal-links {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-minimal-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: var(--space-lg);
  background: var(--bg-soft);
  border-radius: 2px;
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-minimal-link:hover {
  border-color: var(--accent);
  background: var(--bg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.hero-minimal-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.hero-minimal-link__inner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-align: left;
}

.hero-minimal-link__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.hero-minimal-link__icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.hero-minimal-link__sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 2px;
  font-weight: 600;
  display: block;
}

.hero-minimal-link__line {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--primary);
  line-height: 1.3;
  display: block;
}

.hero-minimal-link__textcol {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* Section */
.section {
  max-width: var(--content-width);
  margin: 0 auto;
  /* Меньше «воздуха» у заголовка сверху/снизу (раньше --space-4xl давало слишком много пустоты) */
  padding: var(--space-xl) var(--page-gutter) var(--space-2xl);
  border-top: 1px solid var(--border);
}

.section:first-of-type {
  border-top: none;
}

.section-header {
  margin-bottom: var(--space-lg);
  text-align: center;
  max-width: min(100%, 42rem);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}

.section-title {
  margin: 0;
  padding: 0;
  position: relative;
}

/* Была одна короткая черта сверху — заменено на две линии по бокам (см. body.theme-minimal ниже) */
.section-title::before {
  display: none;
  content: none;
}

.section-description {
  font-size: 18px;
  color: var(--text-muted);
  max-width: var(--text-width);
  margin-left: auto;
  margin-right: auto;
}

/* Заголовки разделов: две линии по краям, как в modern (разметка с .section-decoration из app.js) */
body.theme-minimal .section-header:has(.section-decoration) {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

body.theme-minimal .section-header .section-decoration {
  flex: 1 1 0;
  min-width: 0;
  height: 2px;
  max-width: 140px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 1px;
  opacity: 0.92;
}

body.theme-minimal .section-header:has(.section-decoration) .section-title {
  flex: 0 1 auto;
  min-width: 0;
  text-align: center;
}

/* Статичные секции в minimal/index.html (без .section-decoration): линии через псевдоэлементы + сетка, если есть .section-description */
body.theme-minimal .section-header:not(:has(.section-decoration)) {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto;
  column-gap: var(--space-md);
  row-gap: var(--space-sm);
  align-items: center;
}

body.theme-minimal .section-header:not(:has(.section-decoration))::before {
  content: '';
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  width: 100%;
  max-width: 140px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent));
  border-radius: 1px;
  opacity: 0.92;
}

body.theme-minimal .section-header:not(:has(.section-decoration))::after {
  content: '';
  grid-column: 3;
  grid-row: 1;
  justify-self: start;
  width: 100%;
  max-width: 140px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 1px;
  opacity: 0.92;
}

body.theme-minimal .section-header:not(:has(.section-decoration)) .section-title {
  grid-column: 2;
  grid-row: 1;
  text-align: center;
}

body.theme-minimal .section-header:not(:has(.section-decoration)) .section-description {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 0;
  margin-bottom: 0;
}

/* News Grid */
.news-grid {
  display: grid;
  gap: var(--space-xl);
}

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

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

.news-card {
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 0;
}

.news-card:hover {
  border-color: var(--border);
}

.news-image {
  aspect-ratio: 4/3;
  margin-bottom: var(--space-md);
  overflow: hidden;
  border-radius: 2px;
  background: var(--bg-soft);
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-card:hover .news-image img {
  transform: scale(1.04);
}

.news-date {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: var(--space-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-title {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: var(--space-xs);
  color: var(--primary);
  line-height: 1.3;
}

.news-excerpt {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Schedule */
.schedule-list {
  display: grid;
  gap: var(--space-lg);
  max-width: 100%;
  margin: 0;
}

.schedule-day {
  padding: calc(var(--space-xl) + 2px);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  background: var(--bg);
  border-radius: 2px;
  transition: all 0.3s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.schedule-day:hover {
  border-left-color: var(--primary);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
}

.schedule-date {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: var(--space-md);
  color: var(--primary);
  letter-spacing: 0.01em;
}

.schedule-events {
  display: grid;
  gap: 0;
  margin-top: var(--space-sm);
}

.schedule-event {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: var(--space-md);
  align-items: start;
  padding: var(--space-md) 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.schedule-event:first-child {
  border-top: none;
  padding-top: 0;
}

.schedule-event:last-child {
  padding-bottom: 0;
}

.event-time {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  border-radius: 999px;
  width: fit-content;
}

.event-name {
  font-size: 16px;
  color: var(--text);
  line-height: 1.45;
  margin-top: 2px;
}

/* Описание события (если есть) */
.schedule-event-description {
  grid-column: 2;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 6px;
}

/* Выделение дней (как в modern/classic): red/green/purple/blue/cyan */
.schedule-day--red { border-left-color: #c62828; }
.schedule-day--green { border-left-color: #2e7d32; }
.schedule-day--purple { border-left-color: #6a1b9a; }
.schedule-day--blue { border-left-color: #1565c0; }
.schedule-day--cyan { border-left-color: #00838f; }

.schedule-day--red .schedule-date { color: #b71c1c; }
.schedule-day--green .schedule-date { color: #1b5e20; }
.schedule-day--purple .schedule-date { color: #4a148c; }
.schedule-day--blue .schedule-date { color: #0d47a1; }
.schedule-day--cyan .schedule-date { color: #006064; }

.schedule-day--red .event-time { border-color: rgba(198, 40, 40, 0.25); background: rgba(198, 40, 40, 0.06); }
.schedule-day--green .event-time { border-color: rgba(46, 125, 50, 0.22); background: rgba(46, 125, 50, 0.06); }
.schedule-day--purple .event-time { border-color: rgba(106, 27, 154, 0.22); background: rgba(106, 27, 154, 0.06); }
.schedule-day--blue .event-time { border-color: rgba(21, 101, 192, 0.22); background: rgba(21, 101, 192, 0.06); }
.schedule-day--cyan .event-time { border-color: rgba(0, 131, 143, 0.22); background: rgba(0, 131, 143, 0.06); }

/* Clergy — превью на главной (#home-clergy-grid); полная страница — см. body.theme-minimal .clergy-page-block ниже */
#home-clergy-grid.clergy-grid {
  display: grid;
  gap: var(--space-3xl);
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  #home-clergy-grid.clergy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  #home-clergy-grid.clergy-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

#home-clergy-grid .clergy-card {
  text-align: center;
  padding: var(--space-lg);
  border-radius: 2px;
  transition: all 0.3s;
}

#home-clergy-grid .clergy-card:hover {
  background: var(--bg-soft);
}

#home-clergy-grid .clergy-photo {
  width: 180px;
  height: 180px;
  margin: 0 auto var(--space-lg);
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-soft);
  transition: all 0.3s;
}

#home-clergy-grid .clergy-card:hover .clergy-photo {
  border-color: var(--accent);
}

#home-clergy-grid .clergy-name {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: var(--space-xs);
  color: var(--primary);
  line-height: 1.2;
}

#home-clergy-grid .clergy-title {
  font-size: 14px;
  color: var(--accent);
  margin-bottom: var(--space-md);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#home-clergy-grid .clergy-bio {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Donations */
.donation-form {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-3xl);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 2px;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input,
.form-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: inherit;
  font-size: 15px;
  background: white;
  transition: all 0.2s;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(44, 36, 22, 0.05);
}

.donation-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.amount-btn {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-weight: 500;
  transition: all 0.2s;
  font-size: 15px;
}

.amount-btn:hover {
  border-color: var(--primary);
}

.amount-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.btn-submit {
  width: 100%;
  padding: 14px 28px;
  background: var(--primary);
  color: white;
  font-size: 15px;
  font-weight: 500;
  border-radius: 2px;
  transition: all 0.3s;
}

.btn-submit:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Footer — цвет темы (primary), светлая типографика */
.footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.82);
  margin-top: var(--space-4xl);
  padding: var(--space-xl) var(--page-gutter) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Тот же узел: footer.footer.main-footer — инжект #color-override-style задаёт .main-footer { background: transparent !important }, из‑за чего просвечивает белый body. Перебиваем большей специфичностью. */
body.theme-minimal .main-footer {
  background: var(--primary) !important;
  /* Базовый .footer даёт margin-top: 4xl — после «На главную» слишком много пустоты */
  margin-top: var(--space-md) !important;
}

.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.footer-main {
  display: grid;
  gap: var(--space-xl);
  align-items: start;
}

/* Минималистичный футер: лёгкий, без “карточек”, больше воздуха */
body.theme-minimal .footer-section--about,
body.theme-minimal .footer-nav-map-wrap .footer-section--nav,
body.theme-minimal #footer-section-contacts,
body.theme-minimal .footer-map-aside {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  backdrop-filter: none;
}

body.theme-minimal .footer-main {
  gap: var(--space-lg);
}

body.theme-minimal .footer-nav-map-wrap {
  gap: var(--space-lg);
}

/* Без разделительных полос — компактный minimal */

/* Карта + навигация: на мобилке столбиком (карта сверху), на десктопе — одна строка, навигация слева */
.footer-nav-map-wrap {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
  align-items: start;
  min-width: 0;
}

@media (min-width: 880px) {
  /* Minimal: увеличиваем карту, но держим футер по высоте за счёт более компактных отступов */
  body.theme-minimal .footer {
    padding-top: var(--space-lg);
  }

  body.theme-minimal .footer-main,
  body.theme-minimal .footer-nav-map-wrap {
    gap: var(--space-lg);
  }

  body.theme-minimal .footer-bottom {
    margin-top: var(--space-md);
  }

  .footer-main {
    grid-template-columns: 1fr minmax(200px, 32%);
    gap: var(--space-2xl);
    align-items: start;
  }

  .footer-section--about {
    grid-column: 1;
    grid-row: 1;
  }

  .footer-nav-map-wrap {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: 1fr minmax(200px, 32%);
    gap: var(--space-2xl);
  }

  /* В DOM сначала карта, на экране — навигация слева, карта справа */
  .footer-nav-map-wrap .footer-section--nav {
    grid-column: 1;
    grid-row: 1;
  }

  .footer-nav-map-wrap .footer-map-aside {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  #footer-section-contacts {
    grid-column: 1;
    grid-row: 3;
  }
}

.footer-section h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.96);
  margin: 0 0 var(--space-sm);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

/* Minimal footer: название храма над описанием должно быть заметнее */
body.theme-minimal .main-footer #footer-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
  margin-bottom: calc(var(--space-xs) + 2px);
}

body.theme-minimal .main-footer #footer-about-text {
  font-size: 15px;
  line-height: 1.6;
}

.footer-section p {
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.footer-map-aside {
  min-width: 0;
}

.footer-map-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-xs);
}

.footer-map-heading__icon {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.92);
  opacity: 1;
}

.footer-map-heading .footer-map-label {
  margin: 0;
}

.footer-map-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 var(--space-xs);
}

.footer-map-wrap {
  position: relative;
  width: 100%;
  /* На мобилке карта не должна быть «плоской» */
  height: 190px;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.18);
}

@media (min-width: 880px) {
  .footer-map-wrap {
    height: 220px;
    max-height: 280px;
  }
}

.footer-map-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.footer-links {
  display: block;
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.1rem var(--space-lg);
  align-items: start;
  justify-items: start;
  text-align: left;
}

/* На узких экранах оставляем 2 колонки — компактнее, чем один длинный столбец */
@media (max-width: 380px) {
  .footer-nav {
    gap: 0.08rem var(--space-md);
    font-size: 13px;
  }
}

.footer-links a {
  transition: color 0.2s;
  font-size: 14px;
  padding: 2px 0;
  color: rgba(255, 255, 255, 0.9);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-nav li {
  margin: 0;
  padding: 0;
  break-inside: avoid;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  padding: 2px 0;
  display: inline-block;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: var(--space-xs);
  font-size: 14px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.75);
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.92);
}

.footer-contact-item a:hover {
  color: var(--accent);
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 3px;
  opacity: 0.92;
  color: rgba(255, 255, 255, 0.96);
}

.footer-bottom {
  max-width: var(--content-width);
  margin: var(--space-lg) auto 0;
  padding: var(--space-sm) var(--page-gutter) var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.68);
  background: transparent;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom a:hover {
  color: var(--accent);
}

.footer-social-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.footer-social-links__icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
}

.footer-social-label {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 0;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}

.footer-social-icon {
  display: block;
  width: 24px;
  height: 24px;
  line-height: 0;
}

.footer-social-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* Responsive */
@media (max-width: 767px) {
  .hero {
    padding: var(--space-lg) var(--page-gutter) var(--space-4xl);
  }

  .section {
    padding: var(--space-3xl) var(--page-gutter);
  }

  .footer-section--about,
  #footer-section-contacts {
    text-align: center;
  }

  .footer-map-aside {
    text-align: center;
  }

  .footer-map-heading {
    justify-content: center;
  }

  .footer-section--nav,
  .footer-section--nav .footer-links,
  .footer-section--nav .footer-nav {
    text-align: left;
  }

  .footer-contact-item {
    justify-content: center;
  }

  .hero-image {
    aspect-ratio: 1;
  }

  .hero-minimal-links {
    gap: var(--space-xs);
  }

  .hero-minimal-link {
    padding: var(--space-md);
  }

  .donation-form {
    padding: var(--space-xl);
  }

  .donation-amounts {
    grid-template-columns: repeat(2, 1fr);
  }

  .schedule-event {
    grid-template-columns: 60px 1fr;
    gap: var(--space-md);
  }

  .event-time {
    font-size: 16px;
  }

  .event-name {
    font-size: 15px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero {
    padding: var(--space-xl) var(--page-gutter) var(--space-4xl);
  }
}
/* =============================================================================
   САЙТХРАМА — слой конструктора (minimal = /minimal/minimal.css без правок макета)
   ============================================================================= */

body.theme-minimal {
  /* Палитра конструктора → те же токены, что в /minimal/minimal.css */
  --primary: var(--color-primary, var(--primary-gold, #2c2416));
  --primary-light: var(--color-primary-light, var(--primary-gold-light, #4a3f2e));
  --accent: var(--color-accent, var(--accent-brown, #b89968));
  --text: var(--color-text-on-light, var(--text-on-light, #1a1a1a));
  --text-muted: var(--color-text-muted, #737373);
  --bg: var(--color-background-body, var(--background-light, #ffffff));
  --bg-soft: var(--color-background-light, var(--neutral-light, #fafaf9));
  --border: var(--color-border-light, var(--border-light, #e5e5e5));
  --font-display: var(--modern-display-heading-font, 'Cormorant', Georgia, 'Times New Roman', serif);
  --font-body: var(--modern-body-font, 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
}

body.theme-minimal .hero-blessing {
  font-family: var(--font-display);
}

body.theme-minimal,
body.theme-minimal button,
body.theme-minimal input,
body.theme-minimal select,
body.theme-minimal textarea {
  font-family: var(--font-body);
}

/* Контент внутренних страниц (конструктор): ширина как у главной; поля задаёт секция внутри — без двойного gutter */
body.theme-minimal #main-content {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

body.theme-minimal #main-content:has(> .content-section) {
  padding-left: 0;
  padding-right: 0;
}

body.theme-minimal #main-content:has(.video-page-section),
body.theme-minimal #main-content:has(.news-single-page) {
  padding-left: 0;
  padding-right: 0;
}

body.theme-minimal .skip-link {
  background: var(--primary);
  transition: top 0.2s ease, background 0.2s ease;
}

body.theme-minimal .skip-link:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

body.theme-minimal .mobile-menu-nav a {
  font-size: 18px;
  color: var(--text);
  transition: color 0.2s ease;
}

body.theme-minimal .mobile-menu-nav a:hover {
  color: var(--primary);
}

body.theme-minimal .mobile-menu-btn span {
  background: var(--primary);
  transition: transform 0.3s ease, opacity 0.2s ease;
}

body.theme-minimal .header-nav .nav-link {
  transition: color 0.2s ease;
}

body.theme-minimal .hero-cta {
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

body.theme-minimal .hero-cta:hover {
  background: var(--primary-light);
}

/* Главная: убрать лишний «воздух» между hero (фото, соцсети) и следующим разделом (новости) */
body.theme-minimal .hero {
  padding-bottom: var(--space-lg);
}

@media (max-width: 767px) {
  body.theme-minimal .hero {
    padding-bottom: var(--space-md);
  }
}

body.theme-minimal .hero + .section {
  padding-top: var(--space-md);
}

body.theme-minimal .news-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

body.theme-minimal .news-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.07);
}

body.theme-minimal .news-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Фотогалерея (карточки альбомов) — делаем обложку ровной и “премиальной” */
body.theme-minimal #gallery-section .news-card-image {
  width: 100%;
  height: 220px;
  max-height: min(240px, 55vw);
  object-fit: cover;
  display: block;
  margin: 0;
  background: var(--bg-soft);
}

body.theme-minimal #gallery-section .news-card-content {
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

body.theme-minimal #gallery-section .news-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.25;
  margin: 0;
}

body.theme-minimal #gallery-section .news-card-excerpt {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text-muted);
}

body.theme-minimal #gallery-section .news-read-more-btn {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.02em;
}

body.theme-minimal #gallery-section .news-card-footer {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

body.theme-minimal #gallery-section .news-card-date {
  font-size: 0.8rem;
  color: rgba(26, 26, 26, 0.6);
}

/* Видеогалерея — те же карточки, что альбомы в фотогалерее */
body.theme-minimal #video-gallery-section .news-card.video-gallery-card .news-card-image.video-card-poster {
  position: relative;
  width: 100%;
  height: 220px;
  max-height: min(240px, 55vw);
  overflow: hidden;
  flex-shrink: 0;
  margin: 0;
  border-radius: 0;
  background: var(--bg-soft);
}

body.theme-minimal #video-gallery-section .news-card.video-gallery-card .video-card-poster-area {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  display: block;
  overflow: hidden;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body.theme-minimal #video-gallery-section .news-card.video-gallery-card .video-card-preview {
  width: 100%;
  height: 100%;
  max-width: none;
  min-height: 0;
  object-fit: cover;
  display: block;
  pointer-events: none;
  background: var(--bg-soft);
  vertical-align: top;
}

body.theme-minimal #video-gallery-section .video-folder-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.theme-minimal #video-gallery-section .video-folder-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 2.25rem;
}

body.theme-minimal #video-gallery-section .video-card-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.75rem;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

body.theme-minimal #video-gallery-section .news-card-content {
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

body.theme-minimal #video-gallery-section .news-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.25;
  margin: 0;
}

body.theme-minimal #video-gallery-section .news-card-excerpt {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text-muted);
}

body.theme-minimal #video-gallery-section .news-read-more-btn {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.02em;
}

body.theme-minimal #video-gallery-section .news-card-footer {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

body.theme-minimal #video-gallery-section .news-card-date {
  font-size: 0.8rem;
  color: rgba(26, 26, 26, 0.6);
}

/* Папки видео: та же карточка, но явно «папка» */
body.theme-minimal #video-gallery-section .video-gallery-folder-card {
  border-left: 3px solid var(--accent);
}

body.theme-minimal #video-gallery-section .video-gallery-folder-card .news-card-image.video-card-poster::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(44, 36, 22, 0.2);
  pointer-events: none;
  z-index: 1;
}

body.theme-minimal #video-gallery-section .video-gallery-folder-card .video-folder-poster-area {
  background: linear-gradient(160deg, var(--bg-soft) 0%, rgba(44, 36, 22, 0.06) 100%);
}

body.theme-minimal #video-gallery-section .video-folder-chip {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 2px;
  background: rgba(44, 36, 22, 0.88);
  color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Новости (главная, minimal): секция имеет id="news" (не news-section) */
body.theme-minimal #news .news-carousel,
body.theme-minimal #news .news-card-image {
  width: 100%;
  height: 220px;
  max-height: min(240px, 55vw);
  border-radius: 0;
  margin: 0;
  overflow: hidden;
  background: var(--bg-soft);
}

body.theme-minimal #news .news-carousel {
  position: relative;
}

body.theme-minimal #news .news-card-content {
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

body.theme-minimal #news .news-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.25;
  margin: 0;
}

body.theme-minimal #news .news-card-excerpt {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text-muted);
}

body.theme-minimal #news .news-read-more-btn {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.02em;
}

body.theme-minimal #news .news-card-footer {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

body.theme-minimal #news .news-card-date {
  font-size: 0.8rem;
  color: rgba(26, 26, 26, 0.6);
}

/* Видеогалерея: превью не на весь экран — как в modern (фиксированная высота + object-fit) */
body.theme-minimal .news-card.video-gallery-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
}

body.theme-minimal a.news-card.video-gallery-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  outline: none;
}

body.theme-minimal a.news-card.video-gallery-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

body.theme-minimal .news-card.video-gallery-card .news-card-image.video-card-poster {
  position: relative;
  width: 100%;
  height: 220px;
  max-height: min(220px, 52vw);
  overflow: hidden;
  flex-shrink: 0;
  margin: 0;
  border-radius: 2px;
  background: #141414;
}

body.theme-minimal .news-card.video-gallery-card .video-card-poster-area {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  display: block;
  overflow: hidden;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body.theme-minimal .news-card.video-gallery-card .video-card-preview {
  width: 100%;
  height: 100%;
  max-width: none;
  min-height: 0;
  object-fit: cover;
  display: block;
  pointer-events: none;
  background: #141414;
  vertical-align: top;
}

body.theme-minimal .news-card.video-gallery-card .video-card-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.75rem;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

body.theme-minimal .news-card.video-gallery-card .news-card-content {
  flex: 1;
  min-width: 0;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  box-sizing: border-box;
}

body.theme-minimal .news-card.video-gallery-card .news-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
  line-height: 1.3;
}

body.theme-minimal .news-card.video-gallery-card .news-card-excerpt {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}

body.theme-minimal .news-card.video-gallery-card .news-read-more-btn {
  margin-top: var(--space-xs);
}

body.theme-minimal .schedule-day {
  transition: border-left-color 0.3s ease, box-shadow 0.3s ease;
}

body.theme-minimal .clergy-card {
  transition: background 0.3s ease;
}

body.theme-minimal .clergy-photo {
  transition: border-color 0.3s ease;
}

body.theme-minimal #hero-intro,
body.theme-minimal .section-description {
  color: var(--text-muted);
}

body.theme-minimal .form-input:focus,
body.theme-minimal .form-select:focus {
  box-shadow: 0 0 0 3px rgba(var(--minimal-rgb-primary, 44, 36, 22), 0.08);
}

a.header-logo {
  text-decoration: none;
  color: inherit;
}

body.theme-minimal .header-logo__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
}

body.theme-minimal .header-logo__img {
  flex-shrink: 0;
}

body.theme-minimal .header-logo {
  align-items: center;
}

body.theme-minimal .header-logo__name {
  overflow: visible;
  white-space: normal;
  text-overflow: unset;
  word-wrap: normal;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
}

/* Кнопка «Разделы» не сжимается — название занимает оставшееся место и переносится */
@media (min-width: 1024px) {
  body.theme-minimal .header-nav-dropdown {
    flex-shrink: 0;
  }
}

@media (min-width: 1024px) {
  body.theme-minimal nav.header-nav {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto !important;
    margin: 0;
  }

  body.theme-minimal .header-sections-btn {
    color: var(--primary) !important;
    background: var(--bg) !important;
    border-color: var(--border) !important;
  }

  body.theme-minimal .header-nav__panel .nav-link {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 400;
    color: var(--text-muted) !important;
    background: none !important;
    box-shadow: none !important;
    border-radius: 0;
    text-transform: none;
    letter-spacing: normal;
    white-space: normal;
  }

  body.theme-minimal .header-nav__panel .nav-link:hover {
    color: var(--primary) !important;
    background: var(--bg-soft) !important;
  }

  body.theme-minimal .header-nav__panel .nav-folder {
    position: relative;
    list-style: none;
  }

  /* Подпапки — аккордеон внутри панели */
  body.theme-minimal .header-nav__panel .nav-folder__menu {
    display: none;
    position: static;
    margin: 0;
    padding: 0 0 var(--space-sm) 0;
    list-style: none;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    z-index: auto;
  }

  body.theme-minimal .header-nav__panel .nav-folder--open .nav-folder__menu {
    display: block;
  }

  body.theme-minimal .header-nav__panel .nav-folder__trigger {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    width: 100%;
    box-sizing: border-box;
  }

  body.theme-minimal .header-nav__panel .nav-folder__link {
    display: block;
    padding: 10px 18px 10px 24px;
    font-size: 14px;
    color: var(--text) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
  }

  body.theme-minimal .header-nav__panel .nav-folder__link:hover {
    background: var(--bg-soft);
    color: var(--primary) !important;
  }

  body.theme-minimal .main-header:has(.header-nav-dropdown--open) {
    z-index: 400;
  }
}

@media (max-width: 1023px) {
  body.theme-minimal .header-nav .nav-folder__menu {
    position: static;
    display: none;
    margin: 0.35rem 0 0;
    padding: 0 0 0 var(--space-md);
    border-left: 2px solid var(--accent);
    background: transparent;
    list-style: none;
    box-shadow: none;
    border-top: none;
    border-right: none;
    border-bottom: none;
  }

  body.theme-minimal .header-nav .nav-folder--open .nav-folder__menu {
    display: block;
  }
}

body.theme-minimal .footer-nav a {
  transition: color 0.2s;
}

body.theme-minimal .footer-bottom .footer-legal,
body.theme-minimal .footer-bottom .footer-credits-link {
  color: rgba(255, 255, 255, 0.65);
}

body.theme-minimal .footer-social-links a {
  color: rgba(255, 255, 255, 0.88);
}

body.theme-minimal .footer-social-links a:hover {
  color: var(--accent);
}

body.theme-minimal .news-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  margin-bottom: var(--space-md);
  overflow: hidden;
  border-radius: 2px;
  background: var(--bg-soft);
  touch-action: pan-y pinch-zoom;
}

body.theme-minimal .news-carousel .carousel-container {
  position: absolute;
  inset: 0;
  touch-action: none;
}

body.theme-minimal .news-carousel .carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}

body.theme-minimal .news-carousel .carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

body.theme-minimal .news-carousel .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Полная новость / альбом: без обрезки — как в modern/style */
body.theme-minimal .full-news-carousel .carousel-slide img {
  object-fit: contain;
}

body.theme-minimal .news-card:hover .news-carousel .carousel-slide.active img {
  transform: scale(1.04);
}

body.theme-minimal .carousel-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 8px;
  z-index: 2;
  pointer-events: none;
}

body.theme-minimal .carousel-btn {
  pointer-events: all;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(var(--minimal-rgb-primary, 44, 36, 22), 0.35);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

body.theme-minimal .carousel-btn:hover {
  background: rgba(var(--minimal-rgb-primary, 44, 36, 22), 0.5);
}

body.theme-minimal .carousel-indicators {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

body.theme-minimal .carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.35);
  padding: 0;
  cursor: pointer;
}

body.theme-minimal .carousel-indicator.active {
  background: #fff;
}

/* Пагинация: app.js создаёт .pagination-button (не только .pagination-btn) */
body.theme-minimal .news-pagination,
body.theme-minimal .pagination,
body.theme-minimal #news-pagination,
body.theme-minimal #gallery-pagination,
body.theme-minimal #video-gallery-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-3xl);
  padding: var(--space-lg) 0;
  width: 100%;
  box-sizing: border-box;
  border-top: 1px solid var(--border);
}

body.theme-minimal .pagination-button,
body.theme-minimal .pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--primary);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.62rem 1.15rem;
  min-height: 44px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  box-shadow: none;
}

body.theme-minimal .pagination-button:hover:not(:disabled),
body.theme-minimal .pagination-btn:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--bg-soft);
  color: var(--primary);
}

body.theme-minimal .pagination-button:focus-visible,
body.theme-minimal .pagination-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

body.theme-minimal .pagination-button:disabled,
body.theme-minimal .pagination-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

body.theme-minimal .pagination-info {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  padding: 0 var(--space-sm);
  min-width: 7.5rem;
  text-align: center;
}

@media (max-width: 520px) {
  body.theme-minimal .pagination,
  body.theme-minimal #news-pagination,
  body.theme-minimal #gallery-pagination,
  body.theme-minimal #video-gallery-pagination {
    gap: var(--space-sm);
  }

  body.theme-minimal .pagination-info {
    order: -1;
    width: 100%;
    flex-basis: 100%;
    padding-bottom: var(--space-xs);
  }

  body.theme-minimal .pagination-button,
  body.theme-minimal .pagination-btn {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
  }
}

/* Image Modal (minimal): как в modern — поверх страницы и шапки */
body.theme-minimal .image-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

body.theme-minimal .image-modal.active {
  display: flex !important;
  opacity: 1;
  visibility: visible;
}

body.theme-minimal .image-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.88);
}

body.theme-minimal .image-modal-content {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 960px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

body.theme-minimal .image-modal-content img {
  max-height: 85vh;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
}

body.theme-minimal .image-modal-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

@media (max-width: 767px) {
  body.theme-minimal .image-modal {
    align-items: center;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top, 0)) max(12px, env(safe-area-inset-right, 0))
      max(12px, env(safe-area-inset-bottom, 0)) max(12px, env(safe-area-inset-left, 0));
    box-sizing: border-box;
  }

  body.theme-minimal .image-modal-content {
    max-width: 100%;
    width: auto;
    height: auto;
    min-height: 0;
    max-height: min(100dvh, 100vh);
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
  }

  body.theme-minimal .image-modal-content img {
    display: block;
    max-width: 100%;
    max-height: calc(min(100dvh, 100vh) - 24px);
    width: auto;
    height: auto;
    object-fit: contain;
    flex: 0 0 auto;
  }

  body.theme-minimal .image-modal-close {
    top: max(12px, env(safe-area-inset-top, 12px));
    right: max(12px, env(safe-area-inset-right, 12px));
  }
}

body.theme-minimal .calendar-modal.active {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

/* Calendar Modal (minimal) — фиксируем поверх всего и перекрываем header */
body.theme-minimal .calendar-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top, 0)) max(12px, env(safe-area-inset-right, 0))
    max(12px, env(safe-area-inset-bottom, 0)) max(12px, env(safe-area-inset-left, 0));
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

body.theme-minimal .calendar-modal.active {
  display: flex !important;
  opacity: 1;
  visibility: visible;
}

body.theme-minimal .calendar-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.85);
  cursor: pointer;
}

body.theme-minimal .calendar-modal-content {
  position: relative;
  z-index: 1;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 2px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 22px 22px;
  transform: scale(0.98);
  transition: transform 0.25s ease;
}

body.theme-minimal .calendar-modal.active .calendar-modal-content {
  transform: scale(1);
}

body.theme-minimal .calendar-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 2px;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.theme-minimal #calendar-container {
  padding-top: 8px;
  min-height: 320px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Подгоняем виджет под минималистичную типографику */
body.theme-minimal #calendar-container,
body.theme-minimal #calendar-container * {
  font-family: var(--font-body) !important;
}

body.theme-minimal #calendar-container h1,
body.theme-minimal #calendar-container h2,
body.theme-minimal #calendar-container h3,
body.theme-minimal #calendar-container h4,
body.theme-minimal #calendar-container .ortox-title,
body.theme-minimal #calendar-container [class*="title"] {
  font-family: var(--font-display) !important;
  color: var(--primary) !important;
}

body.theme-minimal #calendar-container a {
  color: var(--primary) !important;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

body.theme-minimal #calendar-container iframe,
body.theme-minimal #calendar-container [id*="ortox"],
body.theme-minimal #calendar-container [class*="ortox"],
body.theme-minimal #calendar-container [id*="calendar"],
body.theme-minimal #calendar-container [class*="calendar"] {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

body.theme-minimal .hero-image img,
body.theme-minimal .hero-image__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.theme-minimal .hero-title .title-line.highlight {
  color: var(--accent);
}

/* Доп. пояснения к дню в расписании (API), если есть */
body.theme-minimal .schedule-day-info {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

/* Разделы: «На главную» под списком */
body.theme-minimal .section-back-home-wrap {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  margin-bottom: 0;
  padding-bottom: 0;
  border-top: 1px solid var(--border);
  width: 100%;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
}

body.theme-minimal .btn-back-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.65rem 1.35rem;
  max-width: min(100%, 22rem);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--primary);
  text-decoration: none;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  box-sizing: border-box;
}

body.theme-minimal .btn-back-home:hover {
  border-color: var(--accent);
  background: var(--bg-soft);
  color: var(--primary);
}

body.theme-minimal .btn-back-home:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Текстовые разделы (createModernSectionHTML): тот же ритм, что у блоков на главной */
body.theme-minimal .content-section.modern-section {
  width: 100%;
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  padding: var(--space-xl) var(--page-gutter) var(--space-md);
  box-sizing: border-box;
  border-top: 1px solid var(--border);
  min-width: 0;
  overflow-x: clip;
}

body.theme-minimal .content-section.modern-section:first-child {
  border-top: none;
}

body.theme-minimal .modern-section .section-header {
  margin-bottom: var(--space-lg);
  max-width: min(100%, 42rem);
}

/* .section-decoration показываем — боковые линии (общие стили выше у body.theme-minimal .section-header .section-decoration) */

body.theme-minimal .modern-section .section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.2vw, 2.35rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary);
  text-align: center;
}

body.theme-minimal .modern-section-body {
  width: 100%;
  min-width: 0;
  overflow-x: clip;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
}

/* Каркас страницы с обтеканием фото — как в modern: без горизонтального вылезания контента */
body.theme-minimal .modern-section-body:has(.section-page-layout) {
  padding: 0;
  overflow: hidden;
  border-radius: 2px;
}

/* Медиа и встроенные размеры из Quill не должны расширять страницу */
body.theme-minimal .modern-section-body .content-block img,
body.theme-minimal .modern-section-body .content-block video,
body.theme-minimal .modern-section-body .content-block iframe,
body.theme-minimal .section-page-layout img,
body.theme-minimal .section-page-layout video,
body.theme-minimal .section-page-layout iframe {
  max-width: 100% !important;
  height: auto !important;
  box-sizing: border-box;
}

body.theme-minimal .content-block table,
body.theme-minimal .section-page-layout table {
  max-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  word-wrap: break-word;
}

body.theme-minimal .content-block pre,
body.theme-minimal .section-page-layout pre {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Галереи / списки в main-content без .modern-section — тот же вертикальный ритм */
body.theme-minimal #main-content > .content-section:not(.classic-section) {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  padding: var(--space-xl) var(--page-gutter) var(--space-md);
  box-sizing: border-box;
  border-top: 1px solid var(--border);
}

body.theme-minimal #main-content > .content-section:not(.classic-section) .section-header {
  margin-bottom: var(--space-lg);
  max-width: min(100%, 42rem);
}

body.theme-minimal #main-content > .content-section:not(.classic-section) .section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.2vw, 2.35rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary);
}

/* Карточка текста из админки (в minimal не подключается style.css — задаём здесь) */
body.theme-minimal .content-block {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  box-sizing: border-box;
  min-width: 0;
  overflow-x: auto;
}

body.theme-minimal .content-block:last-child {
  margin-bottom: 0;
}

body.theme-minimal .modern-section-body .content-block:not(.donations-page-block):not(.zapiski-page):not(.clergy-page-block) {
  max-width: min(100%, var(--text-width));
  margin-left: auto;
  margin-right: auto;
}

body.theme-minimal .modern-section-body .content-block.donations-page-block,
body.theme-minimal .modern-section-body .content-block.clergy-page-block {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* Страница «Духовенство» (та же разметка, что modern/classic; minimal не подключает modern.css) */
body.theme-minimal .clergy-page-block.content-block {
  padding: 0;
  margin-bottom: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
}

body.theme-minimal .clergy-page-block.content-block::before {
  display: none;
}

body.theme-minimal .clergy-page-block.content-block:hover {
  transform: none;
  box-shadow: none;
}

body.theme-minimal .clergy-page-block .clergy-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
}

body.theme-minimal .clergy-page-block .clergy-card {
  position: relative;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(44, 36, 22, 0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  animation: fadeIn 0.55s ease-out both;
}

body.theme-minimal .clergy-page-block .clergy-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--primary-light) 100%);
  border-radius: 4px 0 0 4px;
}

body.theme-minimal .clergy-page-block .clergy-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(44, 36, 22, 0.1);
}

body.theme-minimal .clergy-page-block .clergy-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-lg);
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(184, 153, 104, 0.08) 0%, var(--bg) 50%);
}

body.theme-minimal .clergy-page-block .clergy-photo-wrap {
  width: 168px;
  height: 208px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid var(--accent);
  box-shadow: 0 8px 24px rgba(44, 36, 22, 0.1);
}

body.theme-minimal .clergy-page-block .clergy-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  margin: 0 !important; /* перебиваем global body.theme-minimal .content-block img margin */
}

body.theme-minimal .clergy-page-block .clergy-name {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--primary);
  margin: 0;
  line-height: 1.2;
}

body.theme-minimal .clergy-page-block .clergy-role {
  margin: 0.35rem 0 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 42ch;
}

body.theme-minimal .clergy-page-block .clergy-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-lg);
}

body.theme-minimal .clergy-page-block .clergy-panel {
  padding: var(--space-md) var(--space-lg);
  border-radius: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
}

body.theme-minimal .clergy-page-block .clergy-panel-title {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--primary);
  margin: 0 0 var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--border);
}

body.theme-minimal .clergy-page-block .clergy-field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

body.theme-minimal .clergy-page-block .clergy-field--inline {
  padding: var(--space-sm) var(--space-md);
  background: var(--bg);
  border-radius: 4px;
  border: 1px solid var(--border);
}

body.theme-minimal .clergy-page-block .clergy-field-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

body.theme-minimal .clergy-page-block .clergy-field-value {
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.5;
}

body.theme-minimal .clergy-page-block .clergy-field-value--text div {
  margin-top: 0.35em;
  padding-left: 0.65rem;
  border-left: 2px solid rgba(184, 153, 104, 0.45);
}

body.theme-minimal .clergy-page-block .clergy-field-value--text div:first-child {
  margin-top: 0;
  padding-left: 0;
  border-left: none;
}

body.theme-minimal .clergy-page-block .clergy-contacts {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

body.theme-minimal .clergy-page-block .clergy-contacts-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin: 0 0 var(--space-sm);
}

body.theme-minimal .clergy-page-block .clergy-contacts-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

body.theme-minimal .clergy-page-block .clergy-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.875rem;
  font-family: var(--font-body);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.theme-minimal .clergy-page-block .clergy-contact-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

@media (min-width: 640px) {
  body.theme-minimal .clergy-page-block .clergy-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  body.theme-minimal .clergy-page-block .clergy-profile {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding: var(--space-xl);
    gap: var(--space-xl);
  }
}

body.theme-minimal .content-block h1,
body.theme-minimal .content-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 var(--space-md);
  line-height: 1.25;
}

body.theme-minimal .clergy-page-block h2.clergy-name {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
}

body.theme-minimal .content-block h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin: var(--space-lg) 0 var(--space-sm);
  line-height: 1.3;
}

body.theme-minimal .clergy-page-block h3.clergy-panel-title {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--border);
  line-height: 1.35;
}

/* Текст из Quill: как в modern.css (.section-page-layout / .donations-text) — margin 0 + pre-wrap, без лишнего зазора между <p> как «пустая строка» */
body.theme-minimal .content-block p {
  margin: 0;
  color: var(--text);
  line-height: 1.65;
  font-size: 18px;
  text-align: inherit;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

body.theme-minimal .content-block ul:not(.zapiski-memo-list),
body.theme-minimal .content-block ol {
  margin: var(--space-md) 0;
  margin-left: 0;
  padding-left: 2.2em;
  list-style-position: outside;
}

body.theme-minimal .content-block li {
  margin-bottom: var(--space-xs);
  line-height: 1.55;
  white-space: pre-wrap;
  word-wrap: break-word;
}

body.theme-minimal .content-block a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.theme-minimal .content-block a:hover {
  color: var(--primary-light);
}

body.theme-minimal .content-block img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 2px;
  margin: var(--space-md) 0;
}

body.theme-minimal .content-block video,
body.theme-minimal .content-block iframe {
  max-width: 100% !important;
  height: auto !important;
}

body.theme-minimal .content-block [style*="text-align:center"],
body.theme-minimal .content-block [style*="text-align: center"],
body.theme-minimal .content-block .ql-align-center {
  text-align: center;
}

body.theme-minimal .content-block [style*="text-align:right"],
body.theme-minimal .content-block [style*="text-align: right"],
body.theme-minimal .content-block .ql-align-right {
  text-align: right;
}

body.theme-minimal .content-block [style*="text-align:justify"],
body.theme-minimal .content-block [style*="text-align: justify"],
body.theme-minimal .content-block .ql-align-justify {
  text-align: justify;
}

body.theme-minimal .content-block .ql-align-left {
  text-align: left;
}

body.theme-minimal .content-block blockquote {
  margin: var(--space-lg) 0;
  padding: var(--space-sm) 0 var(--space-sm) var(--space-md);
  border-left: 3px solid var(--accent);
  color: var(--text-muted);
  font-style: italic;
}

/* Текст без обёртки .content-block (часть страниц) */
body.theme-minimal .modern-section-body > p,
body.theme-minimal .modern-section-body > ul,
body.theme-minimal .modern-section-body > ol {
  max-width: min(100%, var(--text-width));
  margin-left: auto;
  margin-right: auto;
}

body.theme-minimal .modern-section-body > p {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

body.theme-minimal .modern-section-body > h2,
body.theme-minimal .modern-section-body > h3 {
  font-family: var(--font-display);
  color: var(--primary);
  max-width: min(100%, var(--text-width));
  margin-left: auto;
  margin-right: auto;
}

body.theme-minimal .modern-section-body > h2 {
  font-size: clamp(1.4rem, 3vw, 1.65rem);
  margin: var(--space-xl) 0 var(--space-sm);
  font-weight: 600;
}

body.theme-minimal .modern-section-body > h3 {
  font-size: 1.2rem;
  margin: var(--space-lg) 0 var(--space-xs);
  font-weight: 600;
}

/* Разделы с фото/каруселью — обтекание и типографика как в modern, палитра minimal */
body.theme-minimal .section-page-layout {
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
  padding: var(--space-md);
}

body.theme-minimal .section-page-layout::after {
  content: '';
  display: table;
  clear: both;
}

/* Как body.theme-modern .section-page-layout p */
body.theme-minimal .section-page-layout p {
  line-height: 1.65;
  margin: 0;
  color: var(--text);
  font-size: inherit;
  text-align: inherit;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

body.theme-minimal .section-page-layout ul,
body.theme-minimal .section-page-layout ol {
  margin: var(--space-md) 0;
  margin-left: 0;
  padding-left: 2.2em;
  list-style-position: outside;
}

body.theme-minimal .section-page-layout ul li,
body.theme-minimal .section-page-layout ol li {
  line-height: 1.6;
  margin-bottom: var(--space-xs);
  white-space: pre-wrap;
  word-wrap: break-word;
}

body.theme-minimal .section-page-layout [style*='text-align:center'],
body.theme-minimal .section-page-layout [style*='text-align: center'],
body.theme-minimal .section-page-layout .ql-align-center {
  text-align: center;
}

body.theme-minimal .section-page-layout [style*='text-align:right'],
body.theme-minimal .section-page-layout [style*='text-align: right'],
body.theme-minimal .section-page-layout .ql-align-right {
  text-align: right;
}

body.theme-minimal .section-page-layout [style*='text-align:justify'],
body.theme-minimal .section-page-layout [style*='text-align: justify'],
body.theme-minimal .section-page-layout .ql-align-justify {
  text-align: justify;
}

body.theme-minimal .section-page-layout .ql-align-left {
  text-align: left;
}

body.theme-minimal .section-page-layout h1,
body.theme-minimal .section-page-layout h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 var(--space-md);
  line-height: 1.25;
}

body.theme-minimal .section-page-layout h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin: var(--space-lg) 0 var(--space-sm);
  line-height: 1.3;
}

body.theme-minimal .section-page-layout blockquote {
  margin: var(--space-lg) 0;
  padding: var(--space-sm) 0 var(--space-sm) var(--space-md);
  border-left: 3px solid var(--accent);
  color: var(--text-muted);
  font-style: italic;
}

body.theme-minimal .section-page-layout a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.theme-minimal .section-page-layout a:hover {
  color: var(--primary-light);
}

body.theme-minimal .section-page-media {
  float: left;
  width: 50%;
  max-width: 50%;
  margin: 0 var(--space-xl) var(--space-md) 0;
  box-sizing: border-box;
  padding: 0;
}

body.theme-minimal .section-page-media .page-image-wrapper,
body.theme-minimal .section-page-media .page-carousel {
  width: 100%;
  max-width: 100%;
  margin: 0 !important;
  padding: 0;
  border-radius: 2px 0 0 0;
  overflow: hidden;
}

/* .page-carousel совмещён с .news-carousel — сбрасываем фикс. соотношение сторон и позиционирование */
body.theme-minimal .section-page-media .page-carousel.news-carousel {
  aspect-ratio: unset;
  height: auto;
  min-height: 0;
  margin-bottom: 0;
}

body.theme-minimal .section-page-media .page-carousel.news-carousel .carousel-container {
  position: relative;
  inset: auto;
  height: auto;
  min-height: 0;
}

body.theme-minimal .section-page-media .page-carousel .carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

body.theme-minimal .section-page-media .page-carousel .carousel-slide.active {
  position: relative;
  height: auto;
  opacity: 1;
  z-index: 1;
}

body.theme-minimal .section-page-media .page-carousel .carousel-slide img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  max-width: 100% !important;
}

body.theme-minimal .section-page-media img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
  margin: 0;
  max-width: 100% !important;
}

body.theme-minimal .section-page-layout > .section-page-media + * {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.theme-minimal .section-page-layout > .section-page-media + * > *:first-child {
  margin-top: 0 !important;
}

@media (max-width: 768px) {
  body.theme-minimal .section-page-media {
    float: none;
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-bottom: var(--space-md);
    margin-top: 0;
  }

  body.theme-minimal .section-page-media .page-image-wrapper,
  body.theme-minimal .section-page-media .page-carousel {
    border-radius: 2px 2px 0 0;
  }
}

/* ========== Пожертвования — структура как в theme-modern / theme-classic, палитра minimal ========== */
/*
 * В modern: main > .container (один горизонтальный отступ) > секция > .modern-section-body (padding 0) > карточка.
 * В minimal было: .section (padding + max-width) + .content-block (ещё padding) — двойные поля и узкая форма.
 * Выравниваем: один «контейнер» по ширине как у modern, внутренняя карточка без лишнего второго gutter.
 */
body.theme-minimal #donations.section {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

body.theme-minimal #donations .section-header {
  max-width: min(100%, var(--content-width));
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
  box-sizing: border-box;
}

body.theme-minimal #donations #donations-container {
  max-width: min(100%, var(--content-width));
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
  box-sizing: border-box;
}

body.theme-minimal .donations-page-block.content-block {
  max-width: 100%;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
  box-sizing: border-box;
  /* только внутренние отступы карточки — боковые поля страницы уже на #donations-container */
  padding: var(--space-xl) var(--space-md);
}

@media (min-width: 640px) {
  body.theme-minimal .donations-page-block.content-block {
    padding: var(--space-xl) var(--space-xl);
  }
}

/* ЮКасса checkout (donation-checkout__*): в minimal нет modern.css, поэтому базовую сетку/кликабельность задаём здесь */
body.theme-minimal .content-block:has(.donation-checkout) {
  overflow: visible;
}

body.theme-minimal .donation-checkout {
  max-width: 28rem;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: visible;
}

body.theme-minimal .donation-checkout__head {
  text-align: center;
  margin-bottom: 1.35rem;
}

body.theme-minimal .donation-checkout__form {
  width: 100%;
  max-width: 100%;
}

body.theme-minimal .donation-checkout__period {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 2;
  overflow: visible;
}

body.theme-minimal .donation-checkout__pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  min-height: 2.85rem;
  padding: 0.5rem 0.65rem;
  border-radius: 2px;
  border: 1px solid rgba(var(--minimal-rgb-primary, 44, 36, 22), 0.22);
  background: rgba(var(--minimal-rgb-primary, 44, 36, 22), 0.06);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary) !important;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

body.theme-minimal .donation-checkout__pill input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  pointer-events: none;
}

body.theme-minimal .donation-checkout__pill:not(:has(input:checked)):hover {
  background: rgba(var(--minimal-rgb-primary, 44, 36, 22), 0.1);
}

body.theme-minimal .donation-checkout__pill:has(input:checked) {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-color: transparent;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(44, 36, 22, 0.18);
}

body.theme-minimal .donation-checkout label.donation-checkout__pill:has(input:checked) .donation-checkout__pill-text,
body.theme-minimal .donation-checkout .donation-checkout__pill:has(input:checked) span.donation-checkout__pill-text {
  color: #fff !important;
}

body.theme-minimal .donation-checkout__pill:has(input:checked) .donation-period-hint {
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.15);
}

body.theme-minimal .donation-checkout__amounts {
  margin-bottom: 1.25rem;
}

body.theme-minimal .donation-checkout__amount-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  align-items: stretch;
}

body.theme-minimal .donation-checkout__chip {
  margin: 0;
  padding: 0.5rem 0.4rem;
  min-height: 2.85rem;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 1px solid rgba(var(--minimal-rgb-primary, 44, 36, 22), 0.22);
  border-radius: 2px;
  background: rgba(var(--minimal-rgb-primary, 44, 36, 22), 0.06);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  color: var(--primary) !important;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

body.theme-minimal .donation-checkout__chip:hover:not(.donation-checkout__chip--active) {
  background: rgba(var(--minimal-rgb-primary, 44, 36, 22), 0.1);
}

body.theme-minimal .donation-checkout__chip:focus-visible {
  outline: 2px solid rgba(var(--minimal-rgb-primary, 44, 36, 22), 0.35);
  outline-offset: 2px;
}

body.theme-minimal .donation-checkout__chip--active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(44, 36, 22, 0.18);
}

body.theme-minimal .donation-checkout__custom {
  position: relative;
  grid-column: 3 / 5;
  display: flex;
  align-items: stretch;
  min-width: 0;
  border-radius: 2px;
  transition: box-shadow 0.2s, background 0.2s;
}

body.theme-minimal .donation-checkout__custom--active {
  padding: 2px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  box-shadow: 0 6px 18px rgba(44, 36, 22, 0.18);
}

body.theme-minimal .donation-checkout__custom-input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 2rem 0.65rem 0.65rem !important;
  border-radius: 2px !important;
}

body.theme-minimal .donation-checkout__custom--active .donation-checkout__custom-input {
  border-color: transparent !important;
  background: #fff !important;
  color: var(--text) !important;
}

body.theme-minimal .donation-checkout__currency {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

body.theme-minimal .donation-checkout__field {
  margin-bottom: 1rem;
}

body.theme-minimal .donation-checkout__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary);
}

body.theme-minimal .donation-checkout__hint {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-muted);
}

@media (max-width: 520px) {
  body.theme-minimal .donation-checkout__amount-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.theme-minimal .donation-checkout__custom {
    grid-column: 1 / -1;
  }
}

body.theme-minimal .donations-container {
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Текст из админки — как .donations-text в modern */
body.theme-minimal .donations-text {
  margin-bottom: var(--space-lg);
  font-size: clamp(1rem, 1.5vw, 1.0625rem);
  line-height: 1.7;
  color: var(--text);
}

/* Как .donations-text p в modern.css */
body.theme-minimal .donations-text p {
  line-height: inherit;
  margin: 0;
  text-align: inherit;
  white-space: pre-wrap;
}

body.theme-minimal .donations-text h1:first-child,
body.theme-minimal .donations-text h2:first-child,
body.theme-minimal .donations-text h3:first-child {
  margin-top: 0;
}

body.theme-minimal .donations-text h1,
body.theme-minimal .donations-text h2,
body.theme-minimal .donations-text h3 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 700;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-md);
  line-height: 1.3;
}

body.theme-minimal .donations-text h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

body.theme-minimal .donations-text h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

body.theme-minimal .donations-text h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

body.theme-minimal .donations-text ul,
body.theme-minimal .donations-text ol {
  margin: var(--space-md) 0;
  padding-left: var(--space-xl);
}

body.theme-minimal .donations-text ul li,
body.theme-minimal .donations-text ol li {
  margin-bottom: var(--space-xs);
  line-height: 1.55;
}

body.theme-minimal .donations-text a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

body.theme-minimal .donations-text a:hover {
  color: var(--primary-light);
}

body.theme-minimal .donations-text img {
  max-width: 100%;
  height: auto;
  border-radius: 2px;
  margin: var(--space-md) 0;
}

body.theme-minimal .donations-text [style*='text-align:center'],
body.theme-minimal .donations-text [style*='text-align: center'],
body.theme-minimal .donations-text .ql-align-center {
  text-align: center;
}

body.theme-minimal .donations-text [style*='text-align:right'],
body.theme-minimal .donations-text [style*='text-align: right'],
body.theme-minimal .donations-text .ql-align-right {
  text-align: right;
}

body.theme-minimal .donations-text [style*='text-align:justify'],
body.theme-minimal .donations-text [style*='text-align: justify'],
body.theme-minimal .donations-text .ql-align-justify {
  text-align: justify;
}

body.theme-minimal .donations-text blockquote {
  border-left: 3px solid var(--accent);
  padding-left: var(--space-md);
  margin: var(--space-lg) 0;
  font-style: italic;
  color: var(--text-muted);
}

/* Блок «Другие способы» — разделитель как в modern */
body.theme-minimal .donations-other-ways {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

body.theme-minimal .donations-other-ways-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 var(--space-md);
}

body.theme-minimal .donations-methods {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

body.theme-minimal .donation-method {
  padding: var(--space-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  border-left: 4px solid var(--accent);
  box-sizing: border-box;
  box-shadow: 0 4px 20px rgba(44, 36, 22, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

body.theme-minimal .donation-method:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(44, 36, 22, 0.1);
  border-color: rgba(184, 153, 104, 0.45);
}

body.theme-minimal .donation-method h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 var(--space-sm);
  line-height: 1.3;
}

body.theme-minimal .donation-method p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.98rem;
}

body.theme-minimal .donation-method p + p {
  margin-top: var(--space-sm);
}

body.theme-minimal .donation-qr-description {
  color: var(--text);
}

body.theme-minimal .donation-qr-placeholder {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

body.theme-minimal .donation-qr-open-wrap {
  margin-top: var(--space-md);
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.theme-minimal .donation-link-url {
  margin-top: 1em;
  margin-bottom: 0;
  word-break: break-word;
  font-size: 0.9rem;
  color: var(--text-muted);
}

body.theme-minimal .donation-method-clickable {
  cursor: pointer;
}

body.theme-minimal .donation-method-clickable:hover {
  border-left-color: var(--primary);
}

/* Подсказка «ежемесячно» — как в modern */
body.theme-minimal .donation-period-label {
  position: relative;
}

body.theme-minimal .donation-period-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  margin-left: 0.2rem;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  cursor: help;
  flex-shrink: 0;
}

body.theme-minimal .donation-period-hint:hover,
body.theme-minimal .donation-period-hint:focus {
  color: var(--text);
  border-color: var(--accent);
}

body.theme-minimal .donation-period-tooltip {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 30;
  padding: 0.6rem 0.75rem;
  max-width: min(280px, 92vw);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(44, 36, 22, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

body.theme-minimal .donation-period-label:hover .donation-period-tooltip,
body.theme-minimal .donation-period-label:focus-within .donation-period-tooltip {
  opacity: 1;
  visibility: visible;
}

body.theme-minimal .donations-yookassa-form {
  max-width: 100%;
  box-sizing: border-box;
  padding: 0;
  margin-left: auto;
  margin-right: auto;
}

body.theme-minimal .donation-payment-form {
  max-width: 100%;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body.theme-minimal .donation-payment-form .form-group {
  margin-bottom: var(--space-md);
}

body.theme-minimal .donation-payment-form label,
body.theme-minimal .donations-yookassa-form .donation-period-group > div:first-child {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9375rem;
}

body.theme-minimal .donation-period-radios label {
  font-weight: 400 !important;
  color: var(--text) !important;
  font-size: 0.95rem !important;
}

body.theme-minimal .donation-payment-form input[type='number'],
body.theme-minimal .donation-payment-form input[type='email'],
body.theme-minimal .donation-payment-form input[type='text'],
body.theme-minimal .donation-payment-form textarea,
body.theme-minimal .donation-payment-form select {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 0.75rem 1rem !important;
  border: 1px solid var(--border) !important;
  border-radius: 2px !important;
  font-size: 1rem !important;
  font-family: var(--font-body) !important;
  background: var(--bg) !important;
  color: var(--text) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.theme-minimal .donation-payment-form input:focus,
body.theme-minimal .donation-payment-form textarea:focus,
body.theme-minimal .donation-payment-form select:focus {
  outline: none !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(44, 36, 22, 0.08) !important;
}

body.theme-minimal .donation-payment-form textarea {
  min-height: 5rem;
  resize: vertical;
  line-height: 1.45;
}

body.theme-minimal .donations-yookassa-form .btn-donation-pay,
body.theme-minimal .donation-payment-form .btn-donation-pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: var(--space-sm);
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: 2px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(44, 36, 22, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

body.theme-minimal .donations-yookassa-form .btn-donation-pay:hover,
body.theme-minimal .donation-payment-form .btn-donation-pay:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(44, 36, 22, 0.28);
  filter: brightness(1.03);
}

body.theme-minimal .donations-yookassa-form .btn-donation-pay:focus-visible,
body.theme-minimal .donation-payment-form .btn-donation-pay:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

body.theme-minimal .donations-yookassa-form .btn-donation-pay:active,
body.theme-minimal .donation-payment-form .btn-donation-pay:active {
  transform: translateY(0);
}

body.theme-minimal #donation-form-message {
  margin-top: var(--space-md);
  padding: var(--space-md);
  border-radius: 2px;
  font-size: 0.9375rem;
  line-height: 1.5;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  body.theme-minimal .donation-payment-form {
    max-width: 100%;
    min-width: 0;
  }

  body.theme-minimal .donations-methods {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  body.theme-minimal .donation-payment-form input[type='number'],
  body.theme-minimal .donation-payment-form input[type='email'],
  body.theme-minimal .donation-payment-form input[type='text'],
  body.theme-minimal .donation-payment-form textarea,
  body.theme-minimal .donation-payment-form select {
    font-size: 16px !important;
  }
}

/* ========== Записки (онлайн) — логика и структура как в theme-modern / theme-classic ========== */
/* Узость шла от вложенности: .modern-section даёт page-gutter, .content-block — ещё большой padding.
   Секцию с #zapiski-root делаем по ширине ближе к контенту страницы; карточке — меньше бокового padding. */
body.theme-minimal .content-section.modern-section:has(#zapiski-root) {
  max-width: min(100%, var(--content-width));
  padding-left: max(0.65rem, env(safe-area-inset-left, 0px));
  padding-right: max(0.65rem, env(safe-area-inset-right, 0px));
}

@media (min-width: 768px) {
  body.theme-minimal .content-section.modern-section:has(#zapiski-root) {
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
  }
}

body.theme-minimal .zapiski-page.content-block {
  max-width: 100%;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
  /* переопределение общего .content-block: не дублировать горизонтальный «коридор» */
  padding: var(--space-lg) clamp(0.4rem, 2vw, 0.85rem);
}

@media (min-width: 640px) {
  body.theme-minimal .zapiski-page.content-block {
    padding: var(--space-xl) clamp(0.75rem, 2.5vw, 1.5rem);
  }
}

body.theme-minimal .zapiski-lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 1.5rem;
  text-align: center;
  font-weight: 500;
}

body.theme-minimal .zapiski-memo {
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--bg-soft);
  margin-bottom: 1.75rem;
  /* visible — чтобы маркеры списка не резались по краю; скругление даёт сам фон */
  overflow: visible;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-minimal .zapiski-memo-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.05rem;
}

body.theme-minimal .zapiski-memo-summary::-webkit-details-marker {
  display: none;
}

body.theme-minimal .zapiski-memo-q {
  flex-shrink: 0;
  width: 1.95rem;
  height: 1.95rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Специфичность выше .content-block ul — отступы от рамки zapiski-memo */
body.theme-minimal .content-block .zapiski-memo-list,
body.theme-minimal .zapiski-memo-list {
  margin: 0;
  padding: 0 clamp(1.35rem, 5.5vw, 2.5rem) var(--space-lg);
  list-style-position: inside;
  list-style-type: disc;
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.65;
  opacity: 0.95;
}

body.theme-minimal .content-block .zapiski-memo-list li,
body.theme-minimal .zapiski-memo-list li {
  margin-bottom: 0.5rem;
  padding-left: 0;
  padding-right: 0;
}

body.theme-minimal .zapiski-subtitle {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 1.1rem;
  color: var(--primary);
  text-align: center;
  font-weight: 600;
}

body.theme-minimal .zapiski-treba-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

@media (min-width: 640px) {
  body.theme-minimal .zapiski-treba-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }
}

body.theme-minimal .zapiski-treba-btn {
  display: block;
  width: 100%;
  padding: 1rem 1rem;
  border: 2px solid var(--border);
  border-radius: 2px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body.theme-minimal .zapiski-treba-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(44, 36, 22, 0.12);
  transform: translateY(-2px);
}

body.theme-minimal .zapiski-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 1.25rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--primary);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-family: var(--font-body);
}

body.theme-minimal .zapiski-order-form {
  padding: var(--space-sm) 0 var(--space-md);
  box-sizing: border-box;
}

body.theme-minimal .zapiski-step--form {
  padding-top: var(--space-xs);
}

body.theme-minimal .zapiski-form-heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--primary);
  margin: 0 0 1rem;
  text-align: center;
  font-weight: 600;
}

body.theme-minimal .zapiski-names-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

body.theme-minimal .zapiski-names-block .zapiski-form-heading {
  margin: 0;
  text-align: center;
}

body.theme-minimal .zapiski-orthodox-cross {
  flex-shrink: 0;
  width: auto;
  height: 2.1rem;
  aspect-ratio: 390 / 580;
  color: var(--primary);
  opacity: 0.95;
  display: block;
}

body.theme-minimal .zapiski-field {
  margin-bottom: 1.25rem;
}

body.theme-minimal .zapiski-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-size: 0.9375rem;
  text-transform: none;
  letter-spacing: normal;
}

body.theme-minimal .zapiski-req {
  color: #c2410c;
}

body.theme-minimal .zapiski-field input[type="text"],
body.theme-minimal .zapiski-field input[type="email"],
body.theme-minimal .zapiski-field input[type="number"] {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.theme-minimal .zapiski-field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(44, 36, 22, 0.12);
}

body.theme-minimal .zapiski-field-hint {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-muted);
}

body.theme-minimal .zapiski-intent-block {
  margin-bottom: 1.25rem;
}

body.theme-minimal .zapiski-block-label {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

body.theme-minimal .zapiski-intent-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

body.theme-minimal .zapiski-intent-btn {
  padding: 0.9rem 0.5rem;
  border: 2px solid var(--border);
  border-radius: 2px;
  background: var(--bg);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  color: var(--text);
  font-family: var(--font-body);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

body.theme-minimal .zapiski-intent-btn.is-active {
  background: linear-gradient(135deg, var(--primary) 0%, #1a1610 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(44, 36, 22, 0.25);
}

body.theme-minimal .zapiski-names-block {
  margin-bottom: 1.25rem;
  padding: 1.1rem;
  border-radius: 2px;
  border: 2px dashed var(--border);
  background: var(--bg-soft);
}

body.theme-minimal .zapiski-names-intro {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
}

body.theme-minimal .zapiski-enter-hint {
  margin: 0.55rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

body.theme-minimal .zapiski-enter-hint--mobile {
  display: block;
}

body.theme-minimal .zapiski-enter-hint--desktop {
  display: none;
}

@media (min-width: 768px) {
  body.theme-minimal .zapiski-enter-hint--mobile {
    display: none;
  }

  body.theme-minimal .zapiski-enter-hint--desktop {
    display: block;
  }
}

body.theme-minimal .zapiski-name-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.4rem;
}

body.theme-minimal .zapiski-name-num {
  flex-shrink: 0;
  width: 1.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

body.theme-minimal .zapiski-name-input {
  flex: 1;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 0.45rem 0.25rem;
  font-size: 1rem;
  font-family: var(--font-body);
  background: transparent;
  color: var(--text);
}

body.theme-minimal .zapiski-name-input:focus {
  outline: none;
  border-bottom-color: var(--primary);
}

body.theme-minimal .zapiski-recommended-line {
  margin: 0.4rem 0 0;
  font-size: 0.98rem;
  color: var(--text);
}

body.theme-minimal .zapiski-subtotal-line {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text);
  opacity: 0.88;
}

body.theme-minimal .zapiski-subtotal-line.is-hidden {
  display: none;
}

body.theme-minimal .zapiski-check-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  font-size: 0.9375rem;
}

body.theme-minimal .zapiski-add-options {
  margin-top: 0.75rem;
  padding: 0.85rem;
  border-radius: 2px;
  background: var(--bg);
  border: 1px solid var(--border);
}

body.theme-minimal .zapiski-add-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  margin-bottom: 0.65rem;
}

body.theme-minimal .zapiski-radio-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  cursor: pointer;
}

body.theme-minimal .zapiski-add-custom {
  max-width: 12rem;
}

body.theme-minimal .zapiski-total-line {
  margin: 0.85rem 0 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

body.theme-minimal .zapiski-total-line:not(.is-visible) {
  display: none;
}

body.theme-minimal .zapiski-submit-btn {
  width: 100%;
  margin-top: 1.1rem;
  padding: 1.05rem 1.25rem;
  border: none;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--primary) 0%, #1a1610 100%);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(44, 36, 22, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.theme-minimal .zapiski-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(44, 36, 22, 0.28);
}

body.theme-minimal .zapiski-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

body.theme-minimal .zapiski-message {
  margin-top: 1rem;
  padding: 0.9rem;
  border-radius: 2px;
  text-align: center;
  font-size: 0.9375rem;
}

body.theme-minimal .is-hidden {
  display: none !important;
}

@media (max-width: 767px) {
  body.theme-minimal input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]),
  body.theme-minimal textarea,
  body.theme-minimal select {
    font-size: 16px !important;
  }
}

/* Полная новость / альбом / видео: карточка и нижняя навигация (без «золотых» кнопок из общего style.css) */
body.theme-minimal .full-news-section {
  width: 100%;
  box-sizing: border-box;
}

body.theme-minimal .full-news-container {
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.theme-minimal .full-news-article {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  box-shadow: none;
  backdrop-filter: none;
}

body.theme-minimal .full-news-header {
  border-bottom: 1px solid var(--border);
  padding: var(--space-xl);
}

body.theme-minimal .full-news-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--primary);
  margin: 0 0 var(--space-md);
}

body.theme-minimal .full-news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 14px;
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

body.theme-minimal .full-news-content {
  padding: var(--space-xl);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
}

body.theme-minimal .full-news-content p {
  margin: 0 0 var(--space-md);
}

body.theme-minimal .full-news-content p:last-child {
  margin-bottom: 0;
}

body.theme-minimal .full-news-content ul,
body.theme-minimal .full-news-content ol {
  margin: var(--space-md) 0;
  padding-left: 1.35em;
}

body.theme-minimal .full-news-content h2,
body.theme-minimal .full-news-content h3 {
  font-family: var(--font-display);
  color: var(--primary);
  margin: var(--space-xl) 0 var(--space-sm);
  font-weight: 600;
}

body.theme-minimal .full-news-content h2 {
  font-size: 1.35rem;
}

body.theme-minimal .full-news-content h3 {
  font-size: 1.15rem;
}

body.theme-minimal .full-news-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.theme-minimal .full-news-content img {
  max-width: 100%;
  height: auto;
  border-radius: 2px;
}

/* Одна новость (/news/:id): та же сетка, что видео/альбом — без тяжёлой карточки, узкая колонка текста */
body.theme-minimal .news-single-page .full-news-article.video-page-article {
  background: transparent;
  border: none;
  box-shadow: none;
}

body.theme-minimal .news-single-page .full-news-title {
  margin-bottom: var(--space-sm);
}

body.theme-minimal .news-single-page .full-news-meta {
  margin-top: 0;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

body.theme-minimal .news-single-page .full-news-header.video-page-header {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding: var(--space-sm) var(--page-gutter) var(--space-md);
}

@media (min-width: 768px) {
  body.theme-minimal .news-single-page .full-news-header.video-page-header {
    padding: var(--space-md) var(--space-xl) var(--space-lg);
  }
}

body.theme-minimal .news-single-page .video-page-article .full-news-content.video-page-description {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding: var(--space-md) var(--page-gutter) var(--space-2xl);
  font-size: 1.0625rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  body.theme-minimal .news-single-page .video-page-article .full-news-content.video-page-description {
    padding: var(--space-lg) var(--space-xl) var(--space-2xl);
  }
}

/* Страница одного видео (/videogalereya/video/:id) */
body.theme-minimal .video-page-section {
  padding-top: var(--space-sm);
}

body.theme-minimal .video-page-section .video-page-container {
  max-width: min(100%, 920px);
  margin: 0 auto;
  box-sizing: border-box;
}

body.theme-minimal .video-page-nav {
  margin: 0 0 var(--space-md);
  padding: 0;
}

body.theme-minimal .video-page-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 2px;
  transition: color 0.2s ease, background 0.2s ease;
  padding: 0.4rem 0.6rem 0.4rem 0;
  margin-left: -0.15rem;
}

body.theme-minimal .video-page-back-link:hover {
  color: var(--primary);
}

body.theme-minimal .video-page-back-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

body.theme-minimal .video-page-article {
  overflow: hidden;
}

body.theme-minimal .full-news-header.video-page-header {
  border-bottom: none;
  padding-bottom: var(--space-md);
  margin-bottom: 0;
}

body.theme-minimal .video-page-player-wrap,
body.theme-minimal .album-page-media-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-lg) var(--space-xl);
  margin: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, var(--bg-soft) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-sizing: border-box;
}

body.theme-minimal .album-page-media-wrap {
  flex-direction: column;
  align-items: stretch;
}

body.theme-minimal .album-page-media-wrap .full-news-image-wrapper {
  margin: 0;
  border-radius: 2px;
  overflow: hidden;
}

body.theme-minimal .album-page-media-wrap .full-news-carousel {
  border-radius: 2px;
  overflow: hidden;
}

/* Страница альбома — делаем блок “чище” и ближе к minimal */
body.theme-minimal .gallery-album-page .full-news-title {
  letter-spacing: 0.01em;
}

body.theme-minimal .gallery-album-page .album-page-media-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

body.theme-minimal .gallery-album-page .album-page-media-wrap .full-news-image-wrapper,
body.theme-minimal .gallery-album-page .album-page-media-wrap .full-news-carousel {
  border-radius: 2px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

body.theme-minimal .gallery-album-page .full-news-image-clickable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

body.theme-minimal .video-page-player {
  width: 100%;
  max-width: 100%;
  max-height: min(72vh, 640px);
  height: auto;
  display: block;
  vertical-align: top;
  background: #0a0a0a;
  border-radius: 2px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

body.theme-minimal .video-page-article .video-page-description {
  padding-top: var(--space-lg);
}

body.theme-minimal .full-news-footer.video-page-footer {
  margin-top: 0;
  padding: var(--space-xl);
  border-top: 1px solid var(--border);
  box-sizing: border-box;
}

@media (max-width: 767px) {
  body.theme-minimal .video-page-section .video-page-container {
    max-width: 100%;
  }

  body.theme-minimal .video-page-nav {
    padding: 0 var(--page-gutter);
  }

  body.theme-minimal .full-news-header.video-page-header {
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
    padding-top: var(--space-md);
  }

  body.theme-minimal .video-page-player-wrap,
  body.theme-minimal .album-page-media-wrap {
    padding: var(--space-sm) 0;
  }

  body.theme-minimal .video-page-player {
    max-height: none;
    min-height: 36vh;
    border-radius: 0;
    box-shadow: none;
  }

  body.theme-minimal .video-page-article .video-page-description {
    padding: var(--space-lg) var(--page-gutter) 0;
  }

  body.theme-minimal .full-news-footer.video-page-footer {
    padding: var(--space-lg) var(--page-gutter) var(--space-xl);
  }

  /* Карусель альбома: крупнее по высоте на узком экране */
  body.theme-minimal .album-page-media-wrap .news-carousel {
    aspect-ratio: 1;
    min-height: min(92vw, 520px);
    margin-bottom: 0;
  }

  body.theme-minimal .album-page-media-wrap .full-news-image-wrapper {
    border-radius: 0;
  }
}

body.theme-minimal .full-news-footer:not(.video-page-footer) {
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}

body.theme-minimal .full-news-navigation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: var(--space-sm);
}

body.theme-minimal .full-news-navigation > .full-news-nav-btn.full-news-next {
  grid-column: 1;
  justify-self: start;
}

body.theme-minimal .full-news-navigation > .full-news-back-btn {
  grid-column: 2;
  justify-self: center;
}

body.theme-minimal .full-news-navigation > .full-news-nav-btn.full-news-prev {
  grid-column: 3;
  justify-self: end;
}

body.theme-minimal .full-news-back-btn,
body.theme-minimal a.full-news-nav-btn,
body.theme-minimal button.full-news-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1rem;
  min-height: 44px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--primary);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  box-shadow: none;
  transform: none;
  white-space: normal;
  text-align: center;
}

body.theme-minimal .full-news-back-btn:hover,
body.theme-minimal a.full-news-nav-btn:hover {
  border-color: var(--accent);
  background: var(--bg-soft);
  color: var(--primary);
  box-shadow: none;
  transform: none;
}

body.theme-minimal .full-news-nav-btn.full-news-nav-disabled,
body.theme-minimal span.full-news-nav-btn.full-news-nav-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  border-style: dashed;
  background: var(--bg-soft);
}

@media (max-width: 768px) {
  body.theme-minimal .full-news-navigation {
    grid-template-columns: 1fr;
  }

  body.theme-minimal .full-news-navigation > .full-news-nav-btn.full-news-next,
  body.theme-minimal .full-news-navigation > .full-news-nav-btn.full-news-prev,
  body.theme-minimal .full-news-navigation > .full-news-back-btn {
    grid-column: 1;
    justify-self: stretch;
    width: 100%;
    margin-left: 0 !important;
    justify-content: center;
  }
}

/* Кнопка «Наверх» (#scroll-to-top-btn из app.js): без fixed она оказывается в конце body под контентом */
body.theme-minimal button.scroll-to-top {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  right: auto;
  z-index: 1100;
  box-sizing: border-box;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(var(--minimal-rgb-primary, 44, 36, 22), 0.28);
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

body.theme-minimal button.scroll-to-top.scroll-to-top--visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

body.theme-minimal button.scroll-to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
}

body.theme-minimal button.scroll-to-top:focus {
  outline: none;
}

body.theme-minimal button.scroll-to-top:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

body.theme-minimal button.scroll-to-top .scroll-to-top__icon {
  display: block;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  body.theme-minimal button.scroll-to-top {
    left: 1.5rem;
    bottom: 1.5rem;
    width: 3rem;
    height: 3rem;
  }

  body.theme-minimal button.scroll-to-top .scroll-to-top__icon {
    width: 24px;
    height: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.theme-minimal button.scroll-to-top {
    transition: opacity 0.15s ease, visibility 0.15s ease;
  }

  body.theme-minimal button.scroll-to-top.scroll-to-top--visible {
    transform: none;
  }
}
