/* ========================================
   CLASSIC THEME - Классическая тема храмового сайта
   Обновлённый дизайн: компактный, читаемый, адаптивный
   ======================================== */

/* ========== ROOT VARIABLES ========== */
:root {
  --primary-gold: transparent;
  --primary-gold-light: transparent;
  --primary-gold-dark: transparent;
  --primary-gold-rgb: 201, 169, 97;
  --primary-deep: transparent;
  --primary-deep-light: transparent;
  --primary-deep-dark: transparent;
  --primary-deep-rgb: 76, 96, 61;
  --accent-brown: transparent;
  --accent-brown-rgb: 139, 117, 93;
  --color-background-body: transparent;
  --color-background-card: transparent;
  --color-background-header: transparent;
  --color-background-footer: transparent;
  --text-dark: transparent;
  --text-on-primary: transparent;
  --text-on-dark: transparent;
  --border-light: transparent;
  --shadow-color: transparent;
  --white: #FFFFFF;
}

/* ========== THEME BASE ========== */
body.theme-classic {
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.25rem;
  --spacing-lg: 1.75rem;
  --spacing-xl: 2.25rem;
  --spacing-xxl: 3.5rem;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.25s ease;
  
  background-color: var(--color-background-body, #F8F7F4);
  color: var(--text-dark, #2D2A26);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 16px;
  margin: 0;
  padding: 0;
  width: 100%;
  min-width: 0;
  -webkit-font-smoothing: antialiased;
}

.theme-classic .container,
body.theme-classic .container {
  max-width: 1160px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-md);
  padding-right: var(--spacing-md);
  box-sizing: border-box;
}

body.theme-classic img {
  max-width: 100%;
  height: auto;
}

body.theme-classic table {
  width: 100%;
  table-layout: fixed;
}

body.theme-classic table,
body.theme-classic pre,
body.theme-classic .content-block,
body.theme-classic p,
body.theme-classic h1, body.theme-classic h2, body.theme-classic h3 {
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ========== HEADER - Заметный логотип и название ========== */
.main-header.classic-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, 
    var(--primary-deep, #3D4F35) 0%, 
    var(--primary-deep-dark, #2D3D26) 100%);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.classic-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
  padding: 1rem var(--spacing-md);
  min-height: 84px;
}

.classic-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  transition: opacity var(--transition-fast);
}

.classic-logo:hover {
  opacity: 0.95;
}

/* Логотип — крупнее, заметный */
.logo-icon {
  width: 60px;
  height: 60px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 50%;
}

.classic-logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* Текст в header — всегда белый, КРУПНЫЙ для читаемости */
body.theme-classic .main-header.classic-header .logo-title,
body.theme-classic .main-header.classic-header .logo-subtitle {
  color: #FFFFFF !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.35);
}

/* Название в шапке — компактный размер для обеих строк */
.logo-title,
.logo-subtitle {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF !important;
  line-height: 1.25;
  margin: 0;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.35);
}

/* Nav - в одной строке с логотипом */
.classic-nav-bar {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  background: transparent;
}

.classic-nav-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.15rem;
  justify-content: flex-end;
  align-items: center;
}

.classic-nav-list li {
  margin: 0;
}

.classic-nav-link {
  display: block;
  padding: 0.55rem 0.85rem;
  color: #FFFFFF !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: all var(--transition-fast);
  border-radius: var(--radius-sm);
  text-shadow: 0 1px 3px rgba(0,0,0,0.35);
}

.classic-nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF !important;
}

/* Mobile menu */
.mobile-menu-toggle {
  display: none;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.5rem;
  cursor: pointer;
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.mobile-menu-close {
  display: none;
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 1.75rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  z-index: 10;
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 997;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* ========== MAIN ========== */
.main-content.classic-main {
  padding: var(--spacing-xl) 0 var(--spacing-xxl);
  min-height: 50vh;
}

.classic-layout-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: var(--spacing-xl);
  align-items: start;
  width: 100%;
  min-width: 0;
}

/* ========== SIDEBAR ========== */
.classic-sidebar {
  position: sticky;
  top: calc(84px + var(--spacing-md));
}

.classic-sidebar-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.classic-sidebar-widget {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0,0,0,0.06);
}

/* Заголовки виджетов — белый текст, не зависит от палитры */
.classic-widget-header {
  background: linear-gradient(135deg, 
    var(--primary-deep, #3D4F35) 0%, 
    var(--primary-deep-dark, #2D3D26) 100%);
  padding: 0.75rem 1rem;
}

body.theme-classic .classic-widget-header *,
body.theme-classic .classic-widget-title {
  color: #FFFFFF !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.classic-widget-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: #FFFFFF !important;
  margin: 0;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.classic-widget-body {
  padding: var(--spacing-md);
}

/* VK виджет: classic-widget-body padding 0, виджет по ширине body */
body.theme-classic .vk-widget-wrapper .classic-widget-body {
  padding: 0 !important;
  width: 100%;
}
body.theme-classic .vk-widget-wrapper.classic-info-widget {
  padding: 0 !important;
  gap: 0 !important;
  align-items: stretch !important;
  text-align: left !important;
}
.vk-widget-wrapper #vk_groups {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  overflow: hidden;
}
.vk-widget-wrapper #vk_groups iframe,
.vk-widget-wrapper #vk_groups * {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  box-sizing: border-box !important;
}

.classic-service-widget .classic-widget-body {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.hero-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.9rem;
  color: var(--text-dark, #2D2A26);
  line-height: 1.5;
}

.hero-card-meta .hero-service-date {
  font-weight: 700;
  color: var(--primary-deep, #3D4F35);
}

.hero-card-meta .hero-service-time {
  font-weight: 600;
  color: var(--primary-gold-dark, #9A7B3D);
}

.hero-card-meta .hero-service-name {
  font-weight: 600;
}

.hero-card-empty {
  font-size: 0.9rem;
  color: var(--text-dark, #666);
  margin: 0.5rem 0;
}

.hero-card-cta {
  margin-top: 0.5rem;
}

.classic-btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  background: var(--primary-gold, #B89647);
  color: var(--text-on-primary, #1A1A1A) !important;
  border: none;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all var(--transition-fast);
  text-align: center;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.classic-btn:hover {
  background: var(--primary-gold-dark, #9A7B3D);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.classic-info-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--spacing-md);
  text-decoration: none;
  color: inherit;
  transition: background var(--transition-fast);
  border-radius: var(--radius-md);
}

.classic-info-widget:hover {
  background: rgba(var(--primary-gold-rgb, 201, 169, 97), 0.06);
}

.info-logo-wrapper {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.info-logo {
  width: 36px;
  height: 36px;
}

.info-eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-brown, #6B5A45);
}

.info-copy strong {
  display: block;
  color: var(--text-dark, #2D2A26);
  margin: 0.25rem 0;
  font-size: 0.95rem;
}

.info-meta {
  font-size: 0.8rem;
  color: var(--text-dark, #666);
}

/* ========== CONTENT ========== */
.classic-content-area {
  min-width: 0;
}

/* Hero */
.hero.classic-hero {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}

/* Hero с фото — тёмный оверлей и белый текст */
.hero.classic-hero.hero-has-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero.classic-hero.hero-has-photo .classic-hero-inner {
  position: relative;
  z-index: 2;
}

.hero.classic-hero.hero-has-photo .classic-hero-badge {
  background: rgba(255,255,255,0.95);
  color: #1A1A1A !important;
  text-shadow: none;
}

.hero.classic-hero.hero-has-photo .hero-intro.classic-hero-intro,
.hero.classic-hero.hero-has-photo .hero-title.classic-hero-title,
.hero.classic-hero.hero-has-photo .hero-title.classic-hero-title .title-line {
  color: #FFFFFF !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.3);
}

.hero.classic-hero.hero-has-photo .hero-title.classic-hero-title .title-line.highlight {
  color: #F5E6C8 !important;
}

/* Hero без фото */
.classic-hero-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: var(--primary-gold, #B89647);
  color: var(--text-on-primary, #1A1A1A) !important;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
  border-radius: var(--radius-sm);
}

.hero-intro.classic-hero-intro {
  font-size: 0.9rem;
  color: var(--text-dark, #555);
  margin-bottom: 0.5rem;
}

.hero-title.classic-hero-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dark, #2D2A26);
  margin: 0;
  line-height: 1.35;
}

.hero-title.classic-hero-title .title-line.highlight {
  color: var(--primary-gold-dark, #9A7B3D);
}

/* Hero inner скрыт при наличии фото — hero показывает только картинку */
.hero.classic-hero .classic-hero-inner.classic-hero-inner-hidden {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
}

/* Секция названия храма под hero — впритык к картинке, без зазора */
.church-name-section {
  margin-top: -2px !important; /* перекрытие на 2px, чтобы убрать щель */
  margin-bottom: var(--spacing-lg);
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}

.church-name-section .church-name-title,
.church-name-section h1.section-title.church-name-title,
#church-name-title {
  font-size: 1.25rem !important;
  font-weight: 700;
  margin: 0;
}

/* Hero с фото — восстанавливаем высоту картинки (как было раньше) */
body.theme-classic .hero.classic-hero.hero-has-photo {
  margin-bottom: 0 !important;
  padding: 2.5rem !important;
  padding-bottom: 0 !important;
  min-height: 280px !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

@media (min-width: 769px) {
  body.theme-classic .hero.classic-hero.hero-has-photo {
    min-height: 400px !important;
  }
}

@media (min-width: 1025px) {
  body.theme-classic .hero.classic-hero.hero-has-photo {
    min-height: 50vh !important;
  }
}

body.theme-classic .hero.classic-hero {
  margin-bottom: 0 !important;
}

/* Sections - заголовки с высоким контрастом */
.content-section.classic-section {
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0,0,0,0.06);
}

.classic-section-header {
  background: linear-gradient(135deg, 
    var(--primary-deep, #3D4F35) 0%, 
    var(--primary-deep-dark, #2D3D26) 100%);
  padding: 0.75rem 1.25rem;
}

.classic-section-body {
  padding: var(--spacing-md);
}

/* ========== CLERGY SECTION ========== */
.clergy-section {
  margin-bottom: var(--spacing-xxl);
}

.clergy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-lg);
  padding: 0;
}

.classic-section-body .clergy-grid {
  margin-top: 0;
  padding: 0;
}

.clergy-card {
  background: var(--white);
  border-left: 4px solid var(--primary-gold);
  border-right: 1px solid rgba(var(--primary-gold-rgb, 201, 169, 97), 0.2);
  border-top: 1px solid rgba(var(--primary-gold-rgb, 201, 169, 97), 0.2);
  border-bottom: 1px solid rgba(var(--primary-gold-rgb, 201, 169, 97), 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.clergy-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.clergy-card-inner {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg);
}

.clergy-photo-wrap {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-gold);
  box-shadow: 0 4px 12px rgba(61, 40, 23, 0.12);
  background: linear-gradient(135deg, rgba(var(--primary-gold-rgb), 0.08) 0%, var(--white) 100%);
}

.clergy-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.clergy-body {
  flex: 1;
  min-width: 0;
}

.clergy-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark, #2D2A26);
  margin: 0 0 var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid rgba(var(--primary-gold-rgb, 201, 169, 97), 0.3);
  line-height: 1.3;
}

.clergy-fields {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.clergy-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.clergy-group-basic {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm) var(--spacing-lg);
}

.clergy-field {
  font-size: 0.9rem;
  line-height: 1.55;
}

.clergy-field-label {
  display: block;
  font-weight: 600;
  color: var(--primary-deep, #2D2A26);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2em;
}

.clergy-field-value {
  color: var(--text-dark, #2D2A26);
}

.clergy-field-value div {
  margin-top: 0.25em;
  padding-left: 0.5em;
  border-left: 2px solid rgba(var(--primary-gold-rgb, 201, 169, 97), 0.3);
}

.clergy-field-value div:first-child {
  margin-top: 0;
  padding-left: 0;
  border-left: none;
}

.clergy-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(var(--primary-gold-rgb, 201, 169, 97), 0.2);
}

.clergy-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  color: var(--primary-gold-dark, #8B7044);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
  border: 1px solid rgba(var(--primary-gold-rgb, 201, 169, 97), 0.3);
}

.clergy-contact-link:hover {
  background: rgba(var(--primary-gold-rgb, 201, 169, 97), 0.1);
  color: var(--primary-deep, #2D2A26);
  border-color: var(--primary-gold);
}

.clergy-contact-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
}

/* Clergy: планшет и десктоп — горизонтальная карточка */
@media (min-width: 768px) {
  .clergy-card-inner {
    flex-direction: row;
    align-items: flex-start;
    padding: var(--spacing-xl);
    gap: var(--spacing-xl);
  }

  .clergy-photo-wrap {
    width: 160px;
    height: 160px;
    margin: 0;
  }

  .clergy-name {
    font-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .clergy-photo-wrap {
    width: 180px;
    height: 180px;
  }

  .clergy-name {
    font-size: 1.6rem;
  }
}

/* Clergy: мобильные */
@media (max-width: 767px) {
  .clergy-photo-wrap {
    width: 120px;
    height: 120px;
  }

  .clergy-contact-link {
    font-size: 0.8rem;
    padding: 0.35rem 0.6rem;
  }
}

.classic-section-body .content-block {
  margin-bottom: var(--spacing-md);
}

.classic-section-body .content-block:last-child {
  margin-bottom: 0;
}

body.theme-classic .classic-section-header *,
body.theme-classic .section-title.classic-section-title {
  color: #FFFFFF !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.section-title.classic-section-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF !important;
  margin: 0;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* News */
.classic-news-list,
.news-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.classic-news-list .news-card,
.news-grid .news-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  align-items: start;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: var(--white);
  transition: background var(--transition-fast);
}

/* Верх фото/карусели на уровне заголовка — без отступа сверху */
.classic-news-list .news-card > img,
.classic-news-list .news-card > .news-carousel,
.news-grid .news-card > img,
.news-grid .news-card > .news-carousel {
  padding-top: 0;
  box-sizing: border-box;
}

.classic-news-list .news-card:last-child,
.news-grid .news-card:last-child {
  border-bottom: none;
}

.classic-news-list .news-card:hover,
.news-grid .news-card:hover {
  background: rgba(var(--primary-gold-rgb, 201, 169, 97), 0.03);
}

.classic-news-list .news-card img,
.news-grid .news-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
}

/* Карусель в карточках новостей (Последние новости) */
.classic-news-list .news-carousel,
.news-grid .news-carousel {
  position: relative;
  width: 100%;
  min-height: 200px;
  height: 200px;
  overflow: hidden;
}

.classic-news-list .news-carousel .carousel-container,
.news-grid .news-carousel .carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.classic-news-list .news-carousel .carousel-slide,
.news-grid .news-carousel .carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.classic-news-list .news-carousel .carousel-slide.active,
.news-grid .news-carousel .carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.classic-news-list .news-carousel .carousel-slide img,
.news-grid .news-carousel .carousel-slide img {
  width: 100%;
  height: 200px;
  object-fit: contain;
}

.classic-news-list .news-carousel .carousel-controls,
.news-grid .news-carousel .carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 6px;
  pointer-events: none;
  z-index: 2;
}

.classic-news-list .news-carousel .carousel-btn,
.news-grid .news-carousel .carousel-btn {
  pointer-events: auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--primary-gold, #C9A961);
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-deep, #2D2A26);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
}

.classic-news-list .news-carousel .carousel-btn:hover,
.news-grid .news-carousel .carousel-btn:hover {
  background: var(--primary-gold, #C9A961);
  color: var(--white);
}

.classic-news-list .news-carousel .carousel-indicators,
.news-grid .news-carousel .carousel-indicators {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.classic-news-list .news-carousel .carousel-indicator,
.news-grid .news-carousel .carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.classic-news-list .news-carousel .carousel-indicator.active,
.news-grid .news-carousel .carousel-indicator.active {
  background: var(--white);
}

.classic-news-list .news-card-content,
.news-grid .news-card-content {
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.classic-news-list .news-card h3,
.news-grid .news-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark, #2D2A26);
  margin: 0;
  line-height: 1.3;
}

.classic-news-list .news-card h3 a,
.news-grid .news-card h3 a {
  color: inherit;
  text-decoration: none;
}

.classic-news-list .news-card h3 a:hover {
  color: var(--primary-gold-dark);
}

.classic-news-list .news-card p,
.news-grid .news-card p {
  font-size: 0.9rem;
  color: var(--text-dark, #555);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.classic-news-list .news-read-more-btn,
.news-grid .news-read-more-btn {
  color: var(--primary-gold-dark);
  font-weight: 600;
  font-size: 0.85rem;
}

/* Schedule */
.classic-schedule-list,
.schedule-list {
  padding: var(--spacing-md);
}

.classic-schedule-list .schedule-item,
.schedule-list .schedule-item {
  border-radius: var(--radius-sm);
  margin-bottom: var(--spacing-sm);
  padding: var(--spacing-md);
  background: #FAFAF8;
  border-left: 4px solid var(--primary-gold);
  transition: all var(--transition-fast);
}

.classic-schedule-list .schedule-item:hover,
.schedule-list .schedule-item:hover {
  background: #F5F4F0;
}

.classic-schedule-list .schedule-date,
.schedule-list .schedule-date {
  font-weight: 700;
  color: var(--primary-deep, #3D4F35);
}

.classic-schedule-list .schedule-time,
.schedule-list .schedule-time {
  font-weight: 700;
  color: var(--primary-gold-dark, #9A7B3D);
}

.classic-schedule-list .schedule-title,
.schedule-list .schedule-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark, #2D2A26);
  margin: 0;
}

/* Content blocks */
.classic-content-area .content-block {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.classic-content-area .content-block h1,
.classic-content-area .content-block h2,
.classic-content-area .content-block h3 {
  font-family: var(--font-heading);
  color: var(--text-dark, #2D2A26);
  font-weight: 700;
  margin-top: 1.25rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-gold);
}

.classic-content-area .content-block h1 { font-size: 1.4rem; margin-top: 0; }
.classic-content-area .content-block h2 { font-size: 1.2rem; }
.classic-content-area .content-block h3 { font-size: 1.05rem; }

.classic-content-area .content-block p {
  line-height: 1.7;
  margin-bottom: 1rem;
  color: var(--text-dark, #444);
}

/* Ограничение размеров изображений — единообразие (О храме, История и др.) */
.classic-section-body .content-block img,
.classic-section-body .page-image-wrapper img,
.classic-section-body .full-news-image-wrapper img,
.content-block img,
.page-image-wrapper img,
.full-news-image-wrapper img {
  max-width: 100% !important;
  max-height: 450px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.classic-content-area .content-block img {
  margin: 1rem auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(var(--primary-gold-rgb), 0.3);
}

.page-image-wrapper,
.full-news-image-wrapper {
  margin: var(--spacing-lg) 0;
  text-align: center;
}

.page-image-wrapper img,
.full-news-image-wrapper img {
  border-radius: var(--radius-md);
}

/* Плавный переход от контента к футеру */
.footer-transition {
  height: 50px;
  margin-top: var(--spacing-xl);
  background: linear-gradient(to bottom, 
    var(--color-background-body, var(--background-light, #F8F7F4)) 0%, 
    transparent 40%,
    transparent 60%,
    color-mix(in srgb, var(--primary-deep, #3D4F35) 15%, transparent) 100%);
  pointer-events: none;
}

/* ========== FOOTER - как шапка: тёмный градиент, светлый текст ========== */
.main-footer.classic-footer {
  background: linear-gradient(165deg, 
    var(--primary-deep, #3D4F35) 0%, 
    color-mix(in srgb, var(--primary-deep, #3D4F35) 95%, black) 50%,
    var(--primary-deep-dark, #2D3D26) 100%) !important;
  color: #FFFFFF !important;
  padding: var(--spacing-lg) 0 var(--spacing-md) !important;
  margin-top: -40px;
  position: relative;
  border-top: none;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

/* Православный орнамент сверху — декоративная полоса в стиле меандра */
.main-footer.classic-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='16' viewBox='0 0 64 16'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0%25' y1='0%25' x2='100%25' y2='0%25'%3E%3Cstop offset='0%25' stop-color='%23B89647'/%3E%3Cstop offset='50%25' stop-color='%23E8D5A3'/%3E%3Cstop offset='100%25' stop-color='%23B89647'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='none' stroke='url(%23g)' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M0 8 L8 8 L8 4 L16 4 L16 8 L24 8 L24 12 L32 12 L32 8 L40 8 L40 4 L48 4 L48 8 L56 8 L56 12 L64 12'/%3E%3Cpath fill='none' stroke='url(%23g)' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M0 8 L8 8 L8 12 L16 12 L16 8 L24 8 L24 4 L32 4 L32 8 L40 8 L40 12 L48 12 L48 8 L56 8 L56 4 L64 4' opacity='0.6'/%3E%3Ccircle cx='8' cy='8' r='1.5' fill='url(%23g)'/%3E%3Ccircle cx='24' cy='8' r='1.5' fill='url(%23g)'/%3E%3Ccircle cx='40' cy='8' r='1.5' fill='url(%23g)'/%3E%3Ccircle cx='56' cy='8' r='1.5' fill='url(%23g)'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 64px 16px;
}

.main-footer.classic-footer::after {
  content: '';
  position: absolute;
  top: -24px;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(to bottom, transparent 0%, rgba(45, 61, 38, 0.5) 60%, transparent 100%);
  pointer-events: none;
}

/* Универсальное переопределение — всё содержимое футера светлое */
body.theme-classic .main-footer.classic-footer,
body.theme-classic .main-footer.classic-footer *,
body.theme-classic .main-footer.classic-footer p,
body.theme-classic .main-footer.classic-footer span,
body.theme-classic .main-footer.classic-footer li,
body.theme-classic .main-footer.classic-footer a,
body.theme-classic .main-footer.classic-footer div,
body.theme-classic .main-footer.classic-footer .classic-footer-description {
  color: rgba(255, 255, 255, 0.95) !important;
}

.classic-footer-title,
.classic-footer .footer-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF !important;
  margin: 0 0 0.35rem 0;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.classic-footer-description {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.classic-footer-bottom {
  padding-top: var(--spacing-md);
  margin-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.classic-footer-bottom .classic-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  margin-bottom: var(--spacing-md);
}

.classic-footer-copyright {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.8rem;
  margin: 0 0 0.25rem 0;
}

.classic-footer-credits {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.8rem;
}

.footer-credits-link {
  color: #FFFFFF !important;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 1px;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.footer-credits-link:hover {
  color: #FFFFFF !important;
  border-bottom-color: rgba(255, 255, 255, 0.7);
}

/* Donations in content */
#donations-container .donations-container {
  padding: var(--spacing-md);
}

#donations-container .donation-method {
  border-radius: var(--radius-sm);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  background: #FAFAF8;
  border-left: 4px solid var(--primary-gold);
}

#donations-container .donation-method h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark, #2D2A26);
  margin: 0 0 0.5rem 0;
}

.loading {
  padding: var(--spacing-lg);
  text-align: center;
  color: var(--text-dark, #666);
}

/* Modals */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
  box-sizing: border-box;
}

.image-modal-overlay,
.calendar-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.88);
  cursor: pointer;
}

.image-modal-content {
  position: relative;
  z-index: 1;
  max-width: min(900px, 95vw);
  max-height: min(85vh, 750px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: var(--radius-md);
}

.image-modal-content img {
  max-width: 100%;
  max-height: min(85vh, 700px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 2;
  transition: all 0.2s ease;
}

.image-modal-close:hover {
  background: rgba(255,255,255,0.25);
}

/* Calendar Modal — выплывающее модальное окно */
.calendar-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.calendar-modal.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.calendar-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

.calendar-modal-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--spacing-xl);
  padding-top: 3rem;
  background: #F8F7F4 !important;
  background-color: #F8F7F4 !important;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-md);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

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

.calendar-modal-close {
  position: absolute !important;
  top: 0.75rem !important;
  right: 0.75rem !important;
  width: 44px !important;
  height: 44px !important;
  border: 2px solid var(--primary-gold, #C9A961) !important;
  background: #FFFFFF !important;
  color: var(--primary-deep, #2D2A26) !important;
  font-size: 1.75rem !important;
  line-height: 1 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  transition: all 0.2s ease !important;
  z-index: 100 !important;
  padding: 0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.calendar-modal-close:hover {
  background: var(--primary-gold, #C9A961) !important;
  color: #FFFFFF !important;
  border-color: var(--primary-gold-dark, #A0874D) !important;
}

#calendar-container {
  padding-top: 2.5rem;
  min-height: 400px;
  background: #F8F7F4 !important;
  background-color: #F8F7F4 !important;
}

/* ========== MOBILE - Полноценная адаптация ========== */
@media (max-width: 1024px) {
  .classic-layout-wrapper {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .classic-sidebar {
    position: static;
    top: auto;
  }
  
  .classic-sidebar-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-md);
  }
  
  .classic-news-list .news-card,
  .news-grid .news-card {
    grid-template-columns: 160px 1fr;
  }
  
  .classic-news-list .news-card img,
  .news-grid .news-card img {
    height: 160px;
    object-fit: contain;
  }
  .classic-news-list .news-carousel,
  .news-grid .news-carousel {
    height: 160px;
    min-height: 160px;
  }
  .classic-news-list .news-carousel .carousel-slide img,
  .news-grid .news-carousel .carousel-slide img {
    height: 160px;
    object-fit: contain;
  }
}

@media (max-width: 768px) {
  /* На внутренних страницах — скрыть sidebar (богослужение и ВК только на главной) */
  body.is-inner-page .classic-sidebar {
    display: none !important;
  }

  /* На главной: Добро пожаловать → Ближайшее богослужение → Новости */
  body.is-main-page .classic-content-area {
    display: contents;
  }

  body.is-main-page .classic-sidebar {
    order: 0;
  }

  body.is-main-page .hero.classic-hero {
    order: -3;
  }

  body.is-main-page #church-name-section {
    order: -2;
  }
  .classic-header-inner {
    flex-wrap: wrap;
    padding: 0.75rem var(--spacing-md);
    min-height: 72px;
  }
  
  .mobile-menu-toggle {
    display: flex;
    order: 2;
    min-width: 48px;
    min-height: 48px;
    padding: 12px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    z-index: 1000;
  }
  
  .classic-logo {
    order: 1;
    flex: 1;
    min-width: 0;
  }
  
  .logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
  }
  
  .classic-header .logo-title,
  .classic-header .logo-subtitle {
    font-size: 0.95rem;
  }
  
  .classic-nav-bar {
    order: 3;
    flex-basis: 100%;
    justify-content: stretch;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: auto;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    background: linear-gradient(180deg, var(--primary-deep, #3D4F35) 0%, var(--primary-deep-dark, #2D3D26) 100%);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    z-index: 998;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  }
  
  .classic-nav-bar.active,
  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .classic-nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: var(--spacing-md);
    gap: 0;
  }
  
  .classic-nav-link {
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    border-radius: 0;
  }
  
  .classic-nav-list li:last-child .classic-nav-link {
    border-bottom: none;
  }
  
  .mobile-menu-close {
    display: block;
  }
  
  .classic-sidebar {
    top: auto;
  }
  
  .classic-sidebar-content {
    grid-template-columns: 1fr;
  }
  
  .classic-news-list .news-card,
  .news-grid .news-card {
    grid-template-columns: 1fr;
  }
  .classic-news-list .news-card > img,
  .classic-news-list .news-card > .news-carousel,
  .news-grid .news-card > img,
  .news-grid .news-card > .news-carousel {
    padding-top: 0;
  }
  .classic-news-list .news-card img,
  .news-grid .news-card img {
    height: auto;
    min-height: 220px;
    max-height: 280px;
    object-fit: contain;
  }
  
  /* Карусель новостей на мобильном — больше высота, фото не обрезаются */
  .classic-news-list .news-carousel,
  .news-grid .news-carousel {
    height: 240px;
  }
  
  .classic-news-list .news-carousel .carousel-slide img,
  .news-grid .news-carousel .carousel-slide img {
    height: 100%;
    min-height: 240px;
    object-fit: contain;
  }
  
  .hero.classic-hero {
    padding: var(--spacing-lg);
  }

  /* Hero с фото на мобильном: на всю ширину экрана, впритык к шапке */
  .hero.classic-hero.hero-has-photo {
    width: calc(100% + 2rem);
    max-width: 100vw;
    margin-left: -1rem;
    margin-right: -1rem;
    margin-bottom: 0 !important;
    min-height: 400px !important;
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 0 !important;
    box-sizing: border-box;
  }

  .church-name-section .church-name-title,
  #church-name-title {
    font-size: 1.2rem !important;
  }

  /* Секция названия на мобильном: те же размеры что hero, впритык к hero */
  .church-name-section {
    width: calc(100% + 2rem) !important;
    max-width: 100vw !important;
    margin-left: -1rem !important;
    margin-right: -1rem !important;
    margin-top: calc(-1 * var(--spacing-xl) - 4px) !important; /* grid gap + перекрытие hero */
    border-radius: 0 !important;
    box-sizing: border-box;
  }

  body.is-main-page .main-content.classic-main {
    padding-top: 0;
  }
  
  .hero-title.classic-hero-title {
    font-size: 1.35rem;
  }
  
  .classic-footer-main {
    text-align: center;
  }
  
  body.theme-classic .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 480px) {
  .classic-header-inner {
    padding: 0.5rem 1rem;
  }
  
  .classic-header .logo-title,
  .classic-header .logo-subtitle {
    font-size: 0.875rem;
  }
  
  .classic-section-header,
  .classic-widget-header {
    padding: 0.65rem 1rem;
  }
  
  .section-title.classic-section-title,
  .classic-widget-title {
    font-size: 0.85rem;
  }

  .church-name-section .church-name-title,
  #church-name-title {
    font-size: 1.1rem !important;
  }
}

/* ========== FULL NEWS PAGE ========== */
.full-news-section {
  padding: 0 0 var(--spacing-xl);
  min-height: 60vh;
}

/* Совпадает по ширине с section-header и clergy-section */
.full-news-container {
  max-width: 100%;
  margin: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

.full-news-article {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--spacing-md) var(--spacing-xxl) var(--spacing-xxl);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(var(--primary-gold-rgb, 201, 169, 97), 0.2);
}

.full-news-header {
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 2px solid var(--primary-gold);
}

.full-news-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  color: var(--primary-deep, #2D2A26);
  line-height: 1.3;
  margin-bottom: var(--spacing-md);
  font-weight: 700;
}

.full-news-meta {
  display: flex;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--text-dark, #666);
}

.full-news-content {
  margin-top: var(--spacing-sm);
  line-height: 1.8;
  font-size: 1.05rem;
}

.full-news-content p {
  margin-bottom: var(--spacing-md);
}

.full-news-content strong {
  color: var(--primary-deep, #2D2A26);
}

.full-news-content a {
  color: var(--primary-gold);
  text-decoration: underline;
}

.full-news-content blockquote {
  border-left: 4px solid var(--primary-gold);
  padding-left: var(--spacing-md);
  margin: var(--spacing-lg) 0;
  font-style: italic;
}

.full-news-article .full-news-image-wrapper {
  margin: 0 0 var(--spacing-sm) 0;
}

.full-news-image-wrapper {
  position: relative;
}

.full-news-carousel {
  position: relative;
  overflow: hidden;
}

.full-news-carousel .carousel-container {
  position: relative;
  width: 100%;
  min-height: clamp(320px, 45vw, 450px);
}

.full-news-carousel .carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.full-news-carousel .carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.full-news-carousel .carousel-slide img {
  width: 100%;
  height: auto;
  max-height: clamp(320px, 45vw, 450px);
  object-fit: contain;
  display: block;
}

/* Стрелки поверх фотографий */
.full-news-carousel .carousel-controls {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--spacing-sm);
  pointer-events: none;
  z-index: 10;
}

.full-news-carousel .carousel-btn {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--primary-gold, #C9A961);
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-deep, #2D2A26);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  padding: 0;
}

.full-news-carousel .carousel-btn:hover {
  background: var(--primary-gold, #C9A961);
  color: var(--white);
}

/* Индикаторы поверх фотографий */
.full-news-carousel .carousel-indicators {
  position: absolute;
  bottom: var(--spacing-sm);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.full-news-carousel .carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.full-news-carousel .carousel-indicator.active {
  background: var(--white);
}

.full-news-footer {
  margin-top: var(--spacing-xxl);
  padding-top: var(--spacing-xl);
  border-top: 2px solid rgba(var(--primary-gold-rgb, 201, 169, 97), 0.3);
}

.full-news-navigation {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.full-news-navigation > div:empty {
  flex: 1;
  min-width: 0;
}

.full-news-nav-btn,
.full-news-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-body);
  border: 2px solid var(--primary-gold);
  background: var(--white);
  color: var(--primary-gold);
  min-height: 48px;
  box-sizing: border-box;
  min-width: 0;
}

.full-news-back-btn {
  background: var(--primary-gold);
  color: var(--white);
  border-color: var(--primary-gold);
}

.full-news-nav-btn:hover,
.full-news-back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--primary-gold-rgb, 201, 169, 97), 0.3);
}

.full-news-nav-btn:hover {
  background: var(--primary-gold);
  color: var(--white);
}

.full-news-nav-btn.full-news-nav-disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 768px) {
  .full-news-section {
    overflow-x: hidden;
  }
  .full-news-article {
    padding: var(--spacing-lg);
  }
  /* Карусель full-news на мобильных — фиксированная высота, корректный вид */
  .full-news-carousel {
    min-height: 280px;
    height: 280px;
  }
  .full-news-carousel .carousel-container {
    min-height: 280px;
    height: 100%;
    position: relative;
  }
  .full-news-carousel .carousel-slide img {
    max-height: 280px;
    height: 280px;
    object-fit: contain;
  }
  .full-news-content {
    margin-top: var(--spacing-sm);
  }
  .full-news-footer {
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
  }
  .full-news-navigation {
    flex-direction: column;
    gap: var(--spacing-sm);
    width: 100%;
  }
  .full-news-navigation > div:empty {
    display: none;
  }
  .full-news-nav-btn,
  .full-news-back-btn {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    text-align: center;
  }
}

/* ============================================
   КЛАССИЧЕСКАЯ ТЕМА — РАЗДЕЛ ТРЕБЫ (ФОРМА ЗАКАЗА)
   ============================================ */
body.theme-classic .requiem-form-block {
  box-sizing: border-box;
  max-width: 100%;
}

/* Строка «Сумма» + «Имя» — сетка без перекрытия на десктопе */
body.theme-classic .requiem-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

body.theme-classic .requiem-form-row .form-group {
  min-width: 0; /* чтобы ячейки грида не выталкивали друг друга */
}

body.theme-classic .requiem-order-form input,
body.theme-classic .requiem-order-form textarea {
  box-sizing: border-box;
  max-width: 100%;
}

body.theme-classic .requiem-order-form .form-group label {
  display: block;
}

/* Обёртка инпута суммы — не даём контенту вылезать */
body.theme-classic .requiem-field-amount > div {
  min-width: 0;
  position: relative;
}

body.theme-classic .requiem-field-amount input {
  width: 100%;
  box-sizing: border-box;
}

/* Мобильная версия — адаптация раздела Требы (инпуты сразу в основной секции, без вложенной карточки) */
@media (max-width: 767px) {
  body.theme-classic .requiem-form-block {
    padding: 20px 16px !important;
  }

  body.theme-classic .requiem-form-block > div:first-child {
    margin-bottom: 28px !important;
    text-align: center;
  }

  body.theme-classic .requiem-form-block p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 10px !important;
  }

  /* Убираем карточку: форма визуально часть основной секции, не узкая вложенная область */
  body.theme-classic .requiem-order-form {
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
  }

  body.theme-classic .requiem-form-row {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 24px;
  }

  body.theme-classic .requiem-order-form .form-group {
    margin-bottom: 22px !important;
  }

  body.theme-classic .requiem-order-form .form-group:last-of-type {
    margin-bottom: 28px !important;
  }

  body.theme-classic .requiem-order-form label {
    font-size: 1rem !important;
    margin-bottom: 10px !important;
  }

  body.theme-classic .requiem-order-form input,
  body.theme-classic .requiem-order-form textarea {
    padding: 14px 16px !important;
    font-size: 16px !important; /* убирает зум на iOS при фокусе */
  }

  body.theme-classic .requiem-field-amount input {
    padding-left: 44px !important;
  }

  body.theme-classic #requiem-submit-btn {
    padding: 16px 24px !important;
    font-size: 1rem !important;
  }

  body.theme-classic #requiem-message {
    margin-top: 16px !important;
    padding: 12px !important;
    font-size: 0.95rem !important;
  }
}

/* Переопределение размера названия храма под hero — гарантированный приоритет */
@media (max-width: 768px) {
  body.theme-classic .church-name-section #church-name-title,
  body.theme-classic #church-name-section #church-name-title {
    font-size: 1.2rem !important;
  }
}
@media (max-width: 480px) {
  body.theme-classic .church-name-section #church-name-title,
  body.theme-classic #church-name-section #church-name-title {
    font-size: 1.1rem !important;
  }
}
