html {
    scroll-behavior: smooth;
}
/* Отступ для якорных ссылок (чтобы хедер не перекрывал) */
.scroll-mt-24 {
    scroll-margin-top: 6rem;
}

/* Уникальный стиль для страницы Символизм */
.inherited-css {
    color: #678574;
    font-family: Georgia, serif;
    font-weight: 300;
    line-height: 24px;
    text-align: left;
}

/* =========================================
   2. ТИПОГРАФИКА И ЦВЕТОВЫЕ АКЦЕНТЫ
   ========================================= */
/* Примечание: Основные цвета настроены в tailwind.config (JS) */

/* Декоративные заголовки */
.decorated-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2.5rem 0 1.5rem;
}

.decorated-header::before,
.decorated-header::after {
    content: '';
    width: 3.5rem;
    height: 2px;
    background: linear-gradient(135deg, #D4B99A 0%, #C2A88B 100%);
    margin: 0 1rem;
}

/* =========================================
   3. КОМПОНЕНТЫ: АККОРДЕОНЫ
   ========================================= */
/* --- FAQ Аккордеон (Страницы: Крестное знамение, Поведение) --- */
.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1rem 1.5rem;
    background: #FDF9F5;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: #7A5C48;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.faq-question:hover {
    background: #F0E8E0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding: 0 1.5rem;
    background: #fff;
}

.faq-answer.open {
    padding: 1rem 1.5rem;
}

.faq-icon {
    transition: transform 0.3s;
}

.faq-icon.rotate {
    transform: rotate(180deg);
}

/* --- Аккордеон Таинств и Истории (Страницы: Таинства, История) --- */
.sacrament-accordion-item {
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.sacrament-accordion-header {
    background: #7A5C48;
    color: white;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.sacrament-accordion-header:hover {
    background: #493628;
}

.sacrament-accordion-header.active {
    background: linear-gradient(135deg, #5D4636 0%, #4A382B 100%);
}

.sacrament-accordion-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-left: 3.5rem;
}

.sacrament-accordion-text h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.sacrament-accordion-text p {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 300;
}

.sacrament-accordion-arrow {
    font-size: 1.2rem;
    color: #D4B99A;
    transition: transform 0.3s ease;
}

.sacrament-accordion-arrow.rotate {
    transform: rotate(180deg);
}

.sacrament-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.4s ease-out;
    opacity: 0;
    background: #FDF9F5;
}

.sacrament-accordion-content.open {
    opacity: 1;
}

.sacrament-accordion-body {
    padding: 1.5rem;
}

/* Уголок страницы (Таинства/История) */
.sacrament-page-corner {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 55px 55px 0 0;
    border-color: #D4B99A transparent transparent transparent;
    opacity: 0.4;
    z-index: 2;
}

/* Номер таинства/главы */
.sacrament-number,
.chapter-number {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #D4B99A 0%, #C2A88B 100%);
    color: #7A5C48;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(122, 92, 72, 0.3);
}

/* --- Навигационный Аккордеон (Страницы: Поведение, Святыни) --- */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
    opacity: 0;
}

.accordion-content.open {
    opacity: 1;
}


/* =========================================
   5. КОМПОНЕНТЫ: СЛАЙДЕРЫ
   ========================================= */
.slider-wrapper {
    overflow: hidden;
}

.slide {
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slider-btn {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#consecration-slider:hover .slider-btn,
#church-slider:hover .slider-btn {
    opacity: 1;
}

.dot.active {
    background-color: #D4B99A;
    width: 1.5rem;
}

/* Слайдер (общие стили) */
.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.slider-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.slider-slide {
    flex-shrink: 0;
    width: 100%;
    position: relative;
}

.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
}

.slider-dots {
    position: absolute;
    bottom: 2px;
    left: 1/2;
    gap: 4px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 90%;
    z-index: 10;
    transform: translateX(-50%);
}

/* =========================================
   6. КОМПОНЕНТЫ: БОКОВОЕ МЕНЮ (TOC)
   ========================================= */
/* Плавающая кнопка (Десктоп) */
.floating-toc-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 40;
    background: linear-gradient(135deg, #7A5C48 0%, #5D4636 100%);
    border: 2px solid #D4B99A;
    color: #fff;
    padding: 0.85rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 6px 20px rgba(122, 92, 72, 0.4), 0 0 0 4px rgba(212, 185, 154, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    letter-spacing: 0.3px;
}

.floating-toc-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: gentlePulse 2s ease-in-out 3;
}

.floating-toc-btn:hover {
    background: linear-gradient(135deg, #D4B99A 0%, #C2A88B 100%);
    color: #7A5C48;
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 10px 30px rgba(122, 92, 72, 0.5), 0 0 0 6px rgba(212, 185, 154, 0.25);
    border-color: #7A5C48;
}

.floating-toc-btn:active {
    transform: translateY(-2px) scale(1);
}

.floating-toc-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.floating-toc-btn:hover i {
    transform: rotate(-10deg) scale(1.1);
}

/* Сайдбар */
.sticky-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 320px;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.sticky-sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    padding: 1.25rem;
    background: #F0E8E0;
    border-bottom: 1px solid #D4B99A;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.sidebar-close {
    background: transparent;
    border: none;
    color: #5A504B;
    font-size: 1.25rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.sidebar-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #7A5C48;
}

.sidebar-list {
    overflow-y: auto;
    padding: 1rem;
    flex-grow: 1;
}

.sidebar-list::-webkit-scrollbar {
    width: 6px;
}

.sidebar-list::-webkit-scrollbar-thumb {
    background-color: #D4B99A;
    border-radius: 3px;
}

.sidebar-link {
    display: block;
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
    color: #5A504B;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s;
    font-size: 0.95rem;
    line-height: 1.4;
}

.sidebar-link:hover {
    background-color: #F0E8E0;
    color: #7A5C48;
    transform: translateX(4px);
}

.sidebar-link.active {
    background-color: #7A5C48;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(122, 92, 72, 0.2);
}

/* Затемнение фона */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 45;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Мобильная кнопка навигации */
.mobile-nav-toggle {
    display: none; /* По умолчанию скрыта, показывается в медиа-запросе */
    position: sticky;
    top: 20px;
    z-index: 40;
    margin: 2rem auto;
    width: fit-content;
    background: #7A5C48;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(122, 92, 72, 0.3);
    cursor: pointer;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-nav-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(122, 92, 72, 0.4);
}

.mobile-nav-toggle:active {
    transform: scale(0.95);
}

/* =========================================
   7. КОМПОНЕНТЫ: КАРТОЧКИ И БЛОКИ
   ========================================= */
/* Информационные карточки */
.info-card {
    border-left: 4px solid #D4B99A;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-left-width: 8px;
    transform: translateX(4px);
}

/* Карточки контактов */
.contact-card {
    border-radius: 1rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
}

/* Цитаты */
.quote-box {
    background: #F0E8E0;
    border-left: 4px solid #D4B99A;
    padding: 1.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
}

/* Выделенный рефрен */
.highlighted {
    background: linear-gradient(135deg, rgba(212, 185, 154, 0.18) 0%, rgba(194, 168, 139, 0.18) 100%);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid #D4B99A;
    border-right: 4px solid #D4B99A;
    text-align: center;
}

.refrain {
    color: #7A5C48;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    line-height: 1.4;
}

/* Список икосов */
.ikos-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.ikos-list li {
    padding-left: 0;
    margin-bottom: 0.65rem;
    line-height: 1.7;
}

.ikos-list .refrain-prefix {
    color: #7A5C48;
    font-weight: 600;
    margin-right: 0.35rem;
}

/* Разделитель секций */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 3rem 0;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    border-bottom: 2px solid #D4B99A;
    margin: 0 1.5rem;
}

/* Оглавление */
.toc-container {
    background: #FDF9F5;
    border: 1px solid #E8E0D8;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2.5rem;
}

.toc-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #7A5C48;
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #D4B99A;
}

.toc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    max-width: 4xl;
    margin: 0 auto;
}

.toc-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #5A504B;
    text-decoration: none;
    background: #fff;
    border: 1px solid #E8E0D8;
    border-radius: 8px;
    transition: none;
    font-size: 0.95rem;
}

.toc-link:hover {
    background: #F5F0EB;
    border-color: #D4B99A;
    color: #7A5C48;
}

.toc-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #D4B99A;
    color: #7A5C48;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* =========================================
   8. СПЕЦИФИЧЕСКИЕ СТИЛИ СТРАНИЦ
   ========================================= */
/* Страница Святыни / Символизм (Списки) */
.temple-interior-list,
.temple-symbols-list {
    margin-bottom: 4rem;
}

.temple-interior-list .list-item,
.temple-symbols-list .list-item {
    display: flex;
    padding: 2rem 6rem;
}

.temple-interior-list .list-item .item-img,
.temple-symbols-list .list-item .item-img {
    flex: 0 0 280px;
    height: 280px;
    display: block;
}

.temple-interior-list .list-item .item-img img,
.temple-symbols-list .list-item .item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}

.temple-interior-list .list-item .item-body,
.temple-symbols-list .list-item .item-body {
    display: block;
    padding-left: 4rem;
}

.temple-interior-list .list-item .item-body h3,
.temple-symbols-list .list-item .item-body h3 {
    margin: 0 0 1.5rem 0;
    text-align: left;
    font-family: "Pobeda", serif; /* Проверьте подключение шрифта */
    font-size: 40px;
    font-weight: bold;
    text-transform: uppercase;
    line-height: 1;
}

.description {
    margin-top: 24px;
    margin-bottom: 32px;
    font-family: Georgia, serif;
    font-size: 16px;
    line-height: 155%;
}

.rich-text p:last-child {
    margin-bottom: 0;
}

/* Уникальный разделитель */
.separator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2.5rem auto;
    height: 2px;
    width: 80%;
    background: linear-gradient(to right, #a07340 0%, #d9b49c 10%, #7A5C48 90%, #D4B99A 100%);
}

/* Контакты */
.map-container {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    height: 300px;
}

.transport-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0.25rem 0.125rem;
    background-color: #4CAF50;
    color: white;
}

/* Иллюстрация креста */
.cross-diagram {
    position: relative;
    width: 200px;
    height: 280px;
    margin: 0 auto;
}

.cross-point {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #D4B99A;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(122, 92, 72, 0.3);
}

.cross-point.head { top: 0; left: 50%; transform: translateX(-50%); }
.cross-point.belly { top: 100px; left: 50%; transform: translateX(-50%); }
.cross-point.right { top: 180px; left: 20%; }
.cross-point.left { top: 180px; right: 20%; }



/* =========================================
   9. АНИМАЦИИ
   ========================================= */
@keyframes gentlePulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(122, 92, 72, 0.4), 0 0 0 4px rgba(212, 185, 154, 0.15);
    }
    50% {
        box-shadow: 0 6px 20px rgba(122, 92, 72, 0.5), 0 0 0 8px rgba(212, 185, 154, 0.25);
    }
}

/* =========================================
   10. МЕДИАЗАПРОСЫ (АДАПТИВ)
   ========================================= */
@media (max-width: 768px) {
    .map-container {
        height: 250px;
    }

    .slider-btn {
        opacity: 1;
    }

    .slider-dots {
        bottom: 4px;
        gap: 4px;
    }

    .dot {
        width: 6px;
        height: 6px;
    }

    .dot.active {
        width: 24px;
    }
    
    /* Скрытие навигации слайдера на мобильных */
    .slider-nav {
        display: none;
    }

    /* Скрытие десктопного слайдера если есть мобильная версия */
    .slider-container {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .temple-interior-list .list-item,
    .temple-symbols-list .list-item {
        padding: 0;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .temple-interior-list .list-item .item-img,
    .temple-symbols-list .list-item .item-img {
        width: 70vw;
        max-width: 400px;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .temple-interior-list .list-item .item-body,
    .temple-symbols-list .list-item .item-body {
        padding-left: 0;
        margin-top: 0;
        text-align: center;
    }

    .temple-interior-list .list-item .item-body h3,
    .temple-symbols-list .list-item .item-body h3 {
        text-align: center;
        font-size: 20px;
        margin-bottom: 0.75rem;
    }

    .description {
        margin-top: 16px;
        margin-bottom: 24px;
        font-size: 14px;
    }
    
    /* Скрытие аккордеона навигации на мобильных (если дублируется кнопкой) */
    #start-accordion {
        display: none !important;
    }
    
    /* Скрытие десктопной кнопки TOC */
    .floating-toc-btn {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .temple-interior-list .list-item,
    .temple-symbols-list .list-item {
        padding: 0 4px;
    }

    .temple-interior-list .list-item .item-body,
    .temple-symbols-list .list-item .item-body {
        padding-left: 1.5rem;
    }
}

@media (min-width: 768px) {
    .toc-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem 2rem;
    }
    
    .section-full-width {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1025px) {
    .mobile-nav-toggle {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .sticky-sidebar {
        width: 100%;
        max-width: 320px;
        border-radius: 0 10px 10px 0;
    }
    
    .icons-grid-3 { 
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (min-width: 1024px) {
    .icons-grid-3 { 
        grid-template-columns: repeat(3, 1fr); 
    }
}

/* Утилиты для полноширинных секций */
.main-container-full {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100%;
}

.content-max-width {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

/* SCROLL REVEAL (Плавное появление при скролле) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Каскадные задержки для групп элементов */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Уважение к настройкам ОС (отключение анимации для пользователей с вестибулярными нарушениями) */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
/* === Стили для календаря на Swiper === */
.calendarSwiper {
  width: 100%;
  padding: 1rem 0 5.5rem; /* 🔹 Увеличили с 4rem до 5.5rem */
  position: relative;
  overflow: visible !important;
}

.calendarSwiper .swiper-slide {
  text-align: center;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* Контейнер изображения */
.calendarSwiper .slider__item_wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.75rem;
}

.calendarSwiper .slider__item_img {
  width: 100%;
  max-width: 280px;
  height: 280px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 0.5rem;
  margin: 0 auto;
  transition: transform 0.3s ease;
  position: relative;
}

.calendarSwiper .swiper-slide:hover .slider__item_img {
  transform: scale(1.02);
}

/* === СТРЕЛКИ: центрирование по вертикали изображения === */
#ortoxCalendar .calendarSwiper .swiper-button-prev,
#ortoxCalendar .calendarSwiper .swiper-button-next {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 30 !important;
  
  /* Размеры и форма */
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  
  /* Цвета: accent и primary */
  background: #D4B99A !important;
  border: 2px solid #7A5C48 !important;
  color: #7A5C48 !important;
  
  /* Тени и эффекты */
  box-shadow: 0 4px 12px rgba(122, 92, 72, 0.25) !important;
  transition: all 0.3s ease !important;
  
  /* Позиционирование */
  margin: 0 !important;
  padding: 0 !important;
}

#ortoxCalendar .calendarSwiper .swiper-button-prev {
  left: -20px !important;
  right: auto !important;
}

#ortoxCalendar .calendarSwiper .swiper-button-next {
  left: auto !important;
  right: -20px !important;
}

/* Ховер-эффекты для стрелок */
#ortoxCalendar .calendarSwiper .swiper-button-prev:hover,
#ortoxCalendar .calendarSwiper .swiper-button-next:hover {
  background: #7A5C48 !important;
  color: #FDF9F5 !important;
  border-color: #5D4636 !important;
  transform: translateY(-50%) scale(1.1) !important;
  box-shadow: 0 6px 20px rgba(93, 70, 54, 0.4) !important;
}

/* Иконки внутри стрелок (Font Awesome) */
#ortoxCalendar .calendarSwiper .swiper-button-prev::after,
#ortoxCalendar .calendarSwiper .swiper-button-next::after {
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  font-size: 16px !important;
}

#ortoxCalendar .calendarSwiper .swiper-button-prev::after {
  content: "\f053" !important;
}

#ortoxCalendar .calendarSwiper .swiper-button-next::after {
  content: "\f054" !important;
}

/* Состояние disabled для стрелок */
#ortoxCalendar .calendarSwiper .swiper-button-prev.swiper-button-disabled,
#ortoxCalendar .calendarSwiper .swiper-button-next.swiper-button-disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}



/* === ПАГИНАЦИЯ (точки) — строго по центру === */
.calendarSwiper .swiper-pagination {
  position: absolute !important;
  bottom: 1rem !important; 
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  text-align: center !important;
  line-height: 1 !important;
  z-index: 20 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

.calendarSwiper .swiper-pagination-bullet {
  width: 10px !important;
  height: 10px !important;
  background: #D4B99A !important;
  border: 2px solid #7A5C48 !important;
  opacity: 0.6 !important; /* Неактивные точки чуть прозрачнее */
  margin: 0 4px !important; /* Фиксированный отступ */
  border-radius: 50% !important;
  transition: all 0.3s ease !important;
  display: inline-block !important;
  cursor: pointer !important;
  /* Важно: точки не должны сжиматься или растягиваться */
  flex-shrink: 0 !important;
}

.calendarSwiper .swiper-pagination-bullet:hover {
  opacity: 1 !important;
  transform: scale(1.15) !important;
  background: #7A5C48 !important;
}

.calendarSwiper .swiper-pagination-bullet-active {
  background: #7A5C48 !important;
  border-color: #5D4636 !important;
  opacity: 1 !important;
  transform: scale(1.25) !important;
  box-shadow: 0 0 0 2px rgba(212, 185, 154, 0.5) !important;
}

/* Отключаем стили dynamic bullets если они есть */
.calendarSwiper .swiper-pagination-bullet-dynamic {
  transform: none !important;
  position: static !important;
}

.calendarSwiper .swiper-pagination-dynamic {
  overflow: visible !important;
}

/* === Список праздников/икон === */
.persons-block {
  position: relative;
  z-index: 10;
  margin-top: 2rem !important;
  padding: 1.5rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  background: #FDF9F5;
  border-radius: 0.75rem;
  border: 1px solid #D4B99A/30;
}

.persons-block a {
  color: #7A5C48;
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  background: #fff;
  border: 1px solid #D4B99A;
  border-radius: 9999px;
  transition: all 0.3s ease;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  display: inline-block;
}

.persons-block a:hover {
  background: #7A5C48;
  color: #fff;
  border-color: #7A5C48;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(122, 92, 72, 0.2);
}

/* === АДАПТИВ для планшетов === */
@media (min-width: 769px) and (max-width: 1024px) {
  #ortoxCalendar .calendarSwiper .swiper-button-prev,
  #ortoxCalendar .calendarSwiper .swiper-button-next {
    width: 36px !important;
    height: 36px !important;
    left: -18px !important;
    right: -18px !important;
  }
  
  .calendarSwiper .slider__item_img {
    height: 240px;
    max-width: 240px;
  }
}

/* === АДАПТИВ для мобильных === */
@media (max-width: 768px) {
  .calendarSwiper {
    padding: 0.5rem 0 3.5rem;
  }
  
  .calendarSwiper .slider__item_img {
    height: 220px;
    max-width: 220px;
  }
  
  /* Стрелки внутри блока на мобильных */
  #ortoxCalendar .calendarSwiper .swiper-button-prev,
  #ortoxCalendar .calendarSwiper .swiper-button-next {
    width: 34px !important;
    height: 34px !important;
    left: 10px !important;
    right: auto !important;
    top: 50% !important;
  }
  
  #ortoxCalendar .calendarSwiper .swiper-button-next {
    left: auto !important;
    right: 10px !important;
  }
  
  /* Точки пагинации чуть крупнее на мобильных */
  .calendarSwiper .swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    margin: 0 6px !important;
  }
  
  .persons-block {
    padding: 1rem 0.75rem;
    gap: 0.5rem;
  }
  
  .persons-block a {
    font-size: 5rem;
    padding: 0.375rem 0.75rem;
  }
}

@media (max-width: 480px) {
  .calendarSwiper .slider__item_img {
    height: 180px;
    max-width: 180px;
  }
  
  #ortoxCalendar .calendarSwiper .swiper-button-prev,
  #ortoxCalendar .calendarSwiper .swiper-button-next {
    width: 30px !important;
    height: 30px !important;
  }
  
  #ortoxCalendar .calendarSwiper .swiper-button-prev::after,
  #ortoxCalendar .calendarSwiper .swiper-button-next::after {
    font-size: 12px !important;
  }
  
  .persons-block a {
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
  }
}
/* отступ от краев стрелок на ПК */
@media (min-width: 769px) {
  #ortoxCalendar .calendarSwiper .swiper-button-prev {
    left: 0.5rem !important; /* Отступ слева */
    right: auto !important;
  }
  
  #ortoxCalendar .calendarSwiper .swiper-button-next {
    left: auto !important;
    right: 0.5rem !important; /* Отступ справа */
  }
}

/* Для планшетов — чуть меньше отступ */
@media (min-width: 769px) and (max-width: 1024px) {
  #ortoxCalendar .calendarSwiper .swiper-button-prev {
    left: 1rem !important;
  }
  
  #ortoxCalendar .calendarSwiper .swiper-button-next {
    right: 1rem !important;
  }
}
/* === УВЕЛИЧЕНИЕ ФОТО ДЛЯ 3 СЛАЙДОВ НА ПК === */
@media (min-width: 1024px) {
    /* Делаем картинку крупнее */
    .calendarSwiper .slider__item_img {
        max-width: 320px !important; /* Было 230px — увеличиваем */
        height: 320px !important;    /* Увеличиваем высоту для пропорции */
        width: 100%;                 /* Чтобы заполняло доступное место */
    }
    
    /* Уменьшаем padding внутри слайда, чтобы картинка была ближе к краям */
    .calendarSwiper .swiper-slide {
        padding: 2rem 1rem 3rem !important;
    }
    .calendarSwiper .swiper-pagination {
        bottom: -1rem !important; 
    }
}

/* Показываем 3 активные точки для 3 слайдов */
@media (min-width: 1024px) {
  .calendarSwiper .swiper-pagination-bullet-active,
  .calendarSwiper .swiper-pagination-bullet-active-next,
  .calendarSwiper .swiper-pagination-bullet-active-prev {
    background: #7A5C48 !important;
    opacity: 1 !important;
    transform: scale(1.25) !important;
  }
}

/* === АДАПТИВ для планшетов (768px - 1024px) === */
@media (min-width: 768px) and (max-width: 1024px) {
  .persons-block {
    padding: 1.25rem 0.875rem;
    gap: 0.625rem;
    margin-top: 1.75rem !important;
  }
  
  .persons-block a {
    font-size: 0.8125rem; /* 13px */
    padding: 0.4375rem 0.875rem;
  }
}

/* === АДАПТИВ для мобильных (до 768px) === */
@media (min-width: 480px) and (max-width: 768px) {
  .persons-block {
    padding: 1rem 0.75rem;
    gap: 0.5rem;
    margin-top: 1.5rem !important;
    flex-direction: row; /* 🔹 Оставляем в строку */
    flex-wrap: wrap;
  }
  
  .persons-block a {
    font-size: 0.75rem; /* 🔹 Исправлено: было 5rem (ошибка) */
    padding: 0.375rem 0.75rem;
    white-space: normal; /* 🔹 Разрешаем перенос на маленьких экранах */
    max-width: calc(50% - 0.5rem); /* 🔹 Не больше 50% ширины */
    text-align: center;
  }
}
