/* ===========================================
   ОСНОВНЫЕ НАСТРОЙКИ
   =========================================== */
:root {
    --primary-brown: #af764d;
    --dark-brown:  #644a38;
    --secondary-orange: #d6945b;
    --light-brown: rgb(125,111,90);
    --dark-blue: #4c6986;
    --light-blue: rgb(0, 176, 240);
    --light-bg: #f8f5f0;
    --light-gray: #f8f9fa;
    --medium-gray: #eaeaea;
    --head-color : rgb(239,234,222);
    --white: #ffffff;
    --black: #333333;

        /* Фоновые изображения */
    --bg-obol-paint: url('/images/obol_paint.png');
    --bg-obol-paint2: url('/images/obol_paint2.png');
    --bg-church: url('/images/church.png');
}

@import url('https://fonts.cdnfonts.com/css/gabriola');
@import url('https://fonts.cdnfonts.com/css/aptos');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
 
}

body {
    background-color: var(--light-bg);
    color: var(--black);
    overflow-x: hidden;
}

/* Класс для блокировки скролла при открытом меню */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* ===========================================
   ШАПКА И СЛАЙДЕР
   =========================================== */
.fullscreen-header {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.header-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.header-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.header-slide.active {
    opacity: 1;
}

/* Фото для слайдов */
.home-slide1,
.contacts-slide1 { 
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                    url('/images/01/05.jpg'); 
}

.home-slide2,
.contacts-slide2 { 
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                     url('/images/01/04.jpeg');
    background-position: center 10%; /* По центру горизонтально, 80% вниз по вертикали */
}

.home-slide3,
.contacts-slide3 { 
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                    url('/images/01/06.jpg'); 
}


/* ===========================================
   МЕНЮ НАВИГАЦИИ - ДЕСКТОП
   =========================================== */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--dark-blue);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: var(--secondary-orange);
    transform: scale(1.05);
}

.header-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--head-color);
      color: var(--secondary-orange);
    backdrop-filter: blur(10px);
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.menu-container {
    max-width: 1400px;
    margin: 0 auto;
     padding: 0 20px;
}

.menu {
    display: flex;
    list-style: none;
    align-items: center;
    justify-content: space-between; 
    height: 80px;
    position: relative;
}

/* ОБЕРТКА ДЛЯ ЦЕНТРАЛЬНОГО МЕНЮ */
.menu-center-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
     top: 8px; 
    z-index: 2;
    margin-left: 40px;
}

/* СТИЛИ ДЛЯ ЭЛЕМЕНТОВ ВНУТРИ menu-center-container */
.menu-center-container > li {
    position: relative;
    text-align: center;
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Центральные пункты меню */
.menu-center-container > li > a {
    display: flex;
    flex-direction: column; /* слова друг под другом */
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    height: 80px;
    color: var(--light-brown);
    text-decoration: none;
    font-size: 16px;
      font-family: "Gambria", "Calibri", "Candara", "Segoe", "Segoe UI", Aptos, sans-serif;
    transition: all 0.3s ease;
    position: relative;
    line-height: 1.3; /* межстрочный интервал между словами */
    text-align: center;
    white-space: normal;
}

.menu-center-container > li > a:hover {
    color: rgb(59, 55, 50);
    background: rgba(255, 255, 255, 0.1);
}

.menu-center-container > li.active > a {
    color: var(--white);
    background: rgb(190, 138, 100);
}

/* Подменю для центральных элементов */
.menu-center-container > li.has-submenu:hover > .submenu {
    display: block;
}

/* Логотип и название храма - левая часть */
.menu-left-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    margin-right: auto;
    margin-left: 20px; /* Добавьте эту строку */
    z-index: 100;
}

.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 5px;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: translateY(-2px);
}

.logo-image {
    height: 55px;
    width: auto;
    max-width: 65px;
    object-fit: contain;
    border-radius: 8px;
       filter: 
        sepia(0.6)    /* Добавляет коричневый оттенок */
}


.church-name-container {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    padding-left: 10px;
    border-left: 2px solid rgba(255, 255, 255, 0.3);
}

.church-name-line1,
.church-name-line2 {
    color: var(--light-brown);
      font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
      font-family: "Gambria", "Calibri", "Candara", "Segoe", "Segoe UI", Aptos, sans-serif;
    letter-spacing: 0.3px;
     text-transform: uppercase;
     text-align: left; 
}


/* Подменю */
.submenu {
    display: none;
    position: absolute;
    background: var(--dark-brown);
    min-width: 220px;
    top: 100%;
    left: 0;
    list-style: none;
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-top: 3px solid rgb(190, 138, 100);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.submenu a {
    display: block;
    padding: 14px 20px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    text-align: left;
      font-family: "Gambria", "Calibri", "Candara", "Segoe", "Segoe UI", Aptos, sans-serif;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.submenu a:hover {
    background: var(--dark-brown);
    padding-left: 25px;
}

.submenu a:last-child {
    border-bottom: none;
}

/* Языковой переключатель - правая часть */
.language-menu-item {
    margin-left: auto;
    flex-shrink: 0;
    z-index: 3;
}

.language-switcher-menu {
    position: relative;
    height: 40px;
}

.language-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: var(--light-brown);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    height: 100%;
    font-weight: 500;
    position: relative;
    margin-right: 15px;
    z-index: 1001;
}

.language-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgb(190, 138, 100);
    transform: translateY(-2px);
}

.language-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--light-brown);
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    min-width: 110px;
    z-index: 1002;
    overflow: hidden;
    margin-top: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.language-switcher-menu:hover .language-dropdown-menu,
.language-dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -5px;
    right: 20px;
    width: 10px;
    height: 10px;
    background: var(--primary-brown);
    transform: rotate(45deg);
    border-left: 1px solid #eee;
    border-top: 1px solid #eee;
    z-index: 1;
}

.language-dropdown-menu .lang-option {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    text-align: center;
    font-size: 14px;
      font-family: "Gambria", "Calibri", "Candara", "Segoe", "Segoe UI", Aptos, sans-serif;
    border-bottom: 1px solid #eee;
    transition: all 0.2s ease;
    position: relative;
    z-index: 2;
    background: white;
}

.language-dropdown-menu .lang-option:hover {
    background: #f8f5f0;
    color: var(--primary-brown);
    padding-left: 20px;
}

.language-dropdown-menu .lang-option:last-child {
    border-bottom: none;
}

/* ===========================================
   КОНТЕНТ В ШАПКЕ
   =========================================== */
.header-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    text-align: center;
    color: var(--white);
    width: 90%;
    max-width: 900px;
}

.church-title h1 {
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
  font-family: Aptos, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    font-weight: bold;
    letter-spacing: 0.5px;
}

.church-title p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    opacity: 0.95;
        font-family: Gabriola, cursive; 
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);

}

/* ===========================================
   ЦИТАТА И СТРЕЛКА ДЛЯ СКРОЛЛА
   =========================================== */
.scroll-section {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    color: var(--white);
    width: 100%;
}

.header-quote {
    font-family: Gabriola, cursive; 
    font-size: 1.7rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9);
    line-height: 1.5;
    padding: 0 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    letter-spacing: 0.3px;
}

.scroll-down {
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    animation: bounce 2s infinite;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.scroll-down:hover {
    opacity: 1;
    color: var(--secondary-orange);
    transform: scale(1.1);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-12px); }
    60% { transform: translateY(-6px); }
}

/* ===========================================
   ИКОНКА INSTAGRAM
   =========================================== */
.header-instagram {
    position: absolute;
    bottom: 35px;
    right: 35px;
    z-index: 10;
}

.instagram-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(45deg, #405DE6, #833AB4, #C13584, #E1306C, #FD1D1D);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 28px;
    text-decoration: none;
    border: 3px solid var(--white);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.instagram-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* ===========================================
   УПРАВЛЕНИЕ СЛАЙДЕРОМ
   =========================================== */
.header-slider-controls {
    position: absolute;
    bottom: 35px;
    left: 35px;
    z-index: 10;
    display: flex;
    gap: 12px;
}

.slider-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.slider-dot.active {
    background: var(--white);
    transform: scale(1.2);
}

/* ===========================================
   ТАИНСТВА - КОМПАКТНАЯ ВЕРСИЯ
   =========================================== */
.sacraments-section {
    padding: 20px 0;
    position: relative;
    width: 100%;
    background: 
        linear-gradient(rgba(248, 245, 240, 0.85), rgba(248, 245, 240, 0.85));
    background-size: cover;
    background-position: center;
    overflow: hidden;
    font-family: "Gambria", "Calibri", "Candara", "Segoe", "Segoe UI", Aptos, sans-serif;
}

.sacraments-section h2 {
    text-align: center;
    color: var(--dark-brown);
    font-size: clamp(2rem, 2.5vw, 2.4rem);
    position: relative;
    padding-bottom: 20px;
    font-family: "Gambria", "Calibri", "Candara", "Segoe", "Segoe UI", Aptos, sans-serif;
}

.sacraments-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 176, 240, 0.5) 50%,
        transparent 100%
    );
    border-radius: 2px;
}

/* Контейнер для двух колонок */
.sacraments-container {
    max-width: 1100px;
    margin: 30px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
    font-family: "Gambria", "Calibri", "Candara", "Segoe", "Segoe UI", Aptos, sans-serif;
}

/* Левая колонка - фото */
.sacraments-photo {
    position: relative;
    display: flex;
    font-family: "Gambria", "Calibri", "Candara", "Segoe", "Segoe UI", Aptos, sans-serif;
}

.photo-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    position: relative;
    transition: transform 0.3s ease;
    width: 100%;
    height: 100%;
    display: flex;
}

.sacraments-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* Правая колонка - компактная карточка */
.sacraments-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(175, 118, 77, 0.12);
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: "Gambria", "Calibri", "Candara", "Segoe", "Segoe UI", Aptos, sans-serif;
}

/* Определение таинства - верхний блок */
.sacraments-definition {
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--black);
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(175, 118, 77, 0.1);
    margin: 0 0 20px 0;
    font-family: "Gambria", "Calibri", "Candara", "Segoe", "Segoe UI", Aptos, sans-serif;
}

.sacraments-definition strong {
    color: var(--light-brown);
    font-weight: 600;
    font-size: 1.1rem;
    font-family: "Gambria", "Calibri", "Candara", "Segoe", "Segoe UI", Aptos, sans-serif;
}

/* Центральный блок с таинствами - ТЕКСТ В ОДНУ СТРОКУ */
.sacraments-text-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: "Gambria", "Calibri", "Candara", "Segoe", "Segoe UI", Aptos, sans-serif;
}

.sacraments-text-content {
    width: 100%;
    font-family: "Gambria", "Calibri", "Candara", "Segoe", "Segoe UI", Aptos, sans-serif;
}

.sacraments-card h3 {
    color: var(--light-brown);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 15px 0;
    font-family: "Gambria", "Calibri", "Candara", "Segoe", "Segoe UI", Aptos, sans-serif;
}

/* Текст таинств в одну строку */
.sacraments-text-line {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--dark-brown);
    margin: 0;
    font-family: "Gambria", "Calibri", "Candara", "Segoe", "Segoe UI", Aptos, sans-serif;
}

.sacrament-name {
    display: inline-block;
    margin: 0 8px;
    position: relative;
    color: var(--dark-brown);
    font-family: "Gambria", "Calibri", "Candara", "Segoe", "Segoe UI", Aptos, sans-serif;
}

/* Разделители между названиями */
.sacrament-name:not(:last-child)::after {
    content: '•';
    margin-left: 8px;
    color: var(--light-brown);
    opacity: 0.7;
    font-family: "Gambria", "Calibri", "Candara", "Segoe", "Segoe UI", Aptos, sans-serif;
}

/* Контактная информация - нижний блок */
.sacraments-contact {
    border-top: 3px solid rgba(175, 118, 77, 0.9);
    padding-top: 20px;
    margin-top: 20px;
    font-family: "Gambria", "Calibri", "Candara", "Segoe", "Segoe UI", Aptos, sans-serif;
}

.contactsacr-info {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    font-family: "Gambria", "Calibri", "Candara", "Segoe", "Segoe UI", Aptos, sans-serif;
}

.contactsacr-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, 
        rgba(175, 118, 77, 0.1) 0%, 
        rgba(214, 148, 91, 0.1) 100%
    );
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-brown);
    font-size: 1.8rem;
    transition: all 0.4s ease;
    font-family: "Gambria", "Calibri", "Candara", "Segoe", "Segoe UI", Aptos, sans-serif;
}

.contactsacr-details {
    flex: 1;
    font-family: "Gambria", "Calibri", "Candara", "Segoe", "Segoe UI", Aptos, sans-serif;
}

.contactsacr-title {
    color: var(--black);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 3px;
    line-height: 1.3;
    font-family: "Gambria", "Calibri", "Candara", "Segoe", "Segoe UI", Aptos, sans-serif;
}

.contactsacr-title strong {
    color: var(--light-blue);
    font-weight: 600;
    font-size: 1.1rem;
    font-family: "Gambria", "Calibri", "Candara", "Segoe", "Segoe UI", Aptos, sans-serif;
}

.phone-number {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark-brown);
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.2;
    font-family: "Gambria", "Calibri", "Candara", "Segoe", "Segoe UI", Aptos, sans-serif;
}

.phone-number:hover {
    color: var(--light-blue);
}

.contactsacr-person {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
    font-style: italic;
    line-height: 1.2;
    font-family: "Gambria", "Calibri", "Candara", "Segoe", "Segoe UI", Aptos, sans-serif;
}





/* ===========================================
   НОВОСТИ И ПАРТНЕРСТВА (СОВМЕСТНЫЕ СТИЛИ)
   =========================================== */
.news-section,
.partnerships-section {
    padding: 100px 0;
    position: relative;
}

.news-section {
    background: var(--white);
    border-bottom: 1px solid rgba(175, 118, 77, 0.1);
}

.partnerships-section {
    background: linear-gradient(135deg, 
        rgba(76, 105, 134, 0.03) 0%, 
        rgba(175, 118, 77, 0.03) 100%
    );
}

/* Заголовки секций */
.news-section h2,
.partnerships-section h2 {
    text-align: center;
    color: var(--dark-brown);
    margin-bottom: 60px;
    font-size: clamp(2.4rem, 4vw, 3rem);
    position: relative;
    padding-bottom: 25px;
    font-weight: 700;
      font-family: "Gambria", "Calibri", "Candara", "Segoe", "Segoe UI", Aptos, sans-serif;
    letter-spacing: 0.5px;
}

.news-section h2::after,
.partnerships-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-brown) 50%, 
        transparent 100%
    );
    border-radius: 3px;
}

/* Контейнеры для горизонтальной прокрутки */
.news-scroll-container,
.partners-scroll-container {
    max-width: 1400px;
    margin: 0 auto 70px;
    padding: 0 30px;
    position: relative;
}

/* Обертки для скролла */
.news-scroll-wrapper,
.partners-scroll-wrapper {
    position: relative;
    overflow: hidden;
    padding: 20px 10px;
    margin: 0 -10px;
}

/* Списки элементов */
.news-list,
.partners-list {
    display: flex;
    gap: 35px;
    padding: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Скрываем стандартный скроллбар */
    scroll-snap-type: x proximity;
}

.news-list::-webkit-scrollbar,
.partners-list::-webkit-scrollbar {
    display: none; /* Скрываем скроллбар для WebKit */
}

/* ===========================================
   КАРТОЧКИ НОВОСТЕЙ
   =========================================== */
.news-item {
    flex: 0 0 380px;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.12),
        0 5px 20px rgba(175, 118, 77, 0.08);
    border: 1px solid rgba(175, 118, 77, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    scroll-snap-align: start;
}

.news-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.18),
        0 15px 35px rgba(175, 118, 77, 0.15);
    border-color: var(--primary-brown);
}

/* Фото новости */
.news-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.news-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        transparent 60%, 
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 1;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-item:hover .news-image img {
    transform: scale(1.15);
}

/* Дата новости */
.news-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-brown);
    padding: 8px 18px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(175, 118, 77, 0.2);
    transition: all 0.3s ease;
}

.news-item:hover .news-date {
    background: var(--primary-brown);
    color: var(--white);
    transform: translateY(-3px);
}

/* Информация о новости */
.news-info {
    padding: 35px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, 
        var(--white) 0%,
        rgba(248, 245, 240, 0.8) 100%
    );
}

.news-info h3 {
    color: var(--light-blue);
    font-size: 1.5rem;
    margin: 0 0 20px 0;
    font-weight: 700;
    line-height: 1.4;
    min-height: 4.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-bottom: 15px;
}

.news-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--secondary-orange) 0%, 
        var(--primary-brown) 100%
    );
    border-radius: 2px;
    transition: width 0.3s ease;
}

.news-item:hover .news-info h3::after {
    width: 80px;
}

.news-description {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 30px;
    flex-grow: 1;
    font-family: Aptos, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    letter-spacing: 0.3px;
}

.news-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 30px;
    background: linear-gradient(135deg, 
        var(--primary-brown) 0%, 
        var(--secondary-orange) 100%
    );
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    box-shadow: 0 6px 20px rgba(175, 118, 77, 0.3);
    position: relative;
    overflow: hidden;
}

.news-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent
    );
    transition: left 0.6s ease;
}

.news-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(175, 118, 77, 0.4);
    letter-spacing: 0.5px;
}

.news-link:hover::before {
    left: 100%;
}

.news-link i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.news-link:hover i {
    transform: translateX(5px);
}

/* ===========================================
   КАРТОЧКИ ПАРТНЕРОВ
   =========================================== */
.partner {
    flex: 0 0 350px;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.12),
        0 5px 20px rgba(76, 105, 134, 0.08);
    border: 1px solid rgba(76, 105, 134, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    scroll-snap-align: start;
}

.partner:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.18),
        0 15px 35px rgba(76, 105, 134, 0.15);
    border-color: var(--dark-blue);
}

/* Лого партнера */
.partner-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, 
        rgba(76, 105, 134, 0.05) 0%, 
        rgba(175, 118, 77, 0.05) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border-bottom: 2px solid rgba(76, 105, 134, 0.1);
}

.partner-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--primary-brown), 
        var(--secondary-orange), 
        var(--dark-blue)
    );
    border-radius: 4px 4px 0 0;
}

.partner-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.partner:hover .partner-image img {
    transform: scale(1.1) rotate(2deg);
    filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.15));
}

/* Информация о партнере */
.partner-info {
    padding: 35px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, 
        var(--white) 0%,
        rgba(248, 245, 240, 0.8) 100%
    );
}

.partner-info h3 {
    color: var(--light-blue);
    font-size: 1.5rem;
    margin: 0 0 20px 0;
    font-weight: 700;
    line-height: 1.4;
    position: relative;
    padding-bottom: 15px;
}

.partner-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--primary-brown) 0%, 
        var(--dark-blue) 100%
    );
    border-radius: 2px;
    transition: width 0.3s ease;
}

.partner:hover .partner-info h3::after {
    width: 80px;
}

.partner-description {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 30px;
    flex-grow: 1;
    font-family: Aptos, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    letter-spacing: 0.3px;
}

.partner-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 30px;
    background: linear-gradient(135deg, 
        var(--dark-blue) 0%, 
        rgba(76, 105, 134, 0.8) 100%
    );
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    box-shadow: 0 6px 20px rgba(76, 105, 134, 0.3);
    position: relative;
    overflow: hidden;
}

.partner-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent
    );
    transition: left 0.6s ease;
}

.partner-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(76, 105, 134, 0.4);
    letter-spacing: 0.5px;
}

.partner-link:hover::before {
    left: 100%;
}

.partner-link i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.partner-link:hover i {
    transform: translateX(5px);
}

/* ===========================================
   КНОПКИ НАВИГАЦИИ
   =========================================== */
.scroll-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.scroll-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--primary-brown);
    color: var(--primary-brown);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.3rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.scroll-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        var(--primary-brown) 0%, 
        var(--secondary-orange) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.scroll-btn i {
    position: relative;
    z-index: 1;
}

.scroll-btn:hover {
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 12px 35px rgba(175, 118, 77, 0.25);
    color: var(--white);
    border-color: transparent;
}

.scroll-btn:hover::before {
    opacity: 1;
}

.scroll-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    border-color: #ccc;
    color: #ccc;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.scroll-btn:disabled:hover {
    background: var(--white);
    transform: none;
    color: #ccc;
    border-color: #ccc;
}

.scroll-btn:disabled:hover::before {
    opacity: 0;
}

/* Кнопка "Все новости" */
.news-section .btn {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 16px 45px;
    font-size: 1.1rem;
    border-radius: 30px;
}



/* ===========================================
   ФОТОГАЛЕРЕЯ
   =========================================== */
.gallery-section {
    padding: 100px 0;
    background: linear-gradient(135deg, 
        rgba(76, 105, 134, 0.03) 0%, 
        rgba(175, 118, 77, 0.03) 100%
    );
    position: relative;
    overflow: hidden;
}

.gallery-section h2 {
    text-align: center;
    color: var(--dark-blue);
    margin-bottom: 60px;
    font-size: clamp(2.4rem, 4vw, 3rem);
    position: relative;
    padding-bottom: 25px;
    font-weight: 700;
      font-family: "Gambria", "Calibri", "Candara", "Segoe", "Segoe UI", Aptos, sans-serif;
    letter-spacing: 0.5px;
}

.gallery-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-brown) 50%, 
        transparent 100%
    );
    border-radius: 3px;
}

/* Контейнер слайдера */
.gallery-slider {
    max-width: 1200px;
    margin: 0 auto 50px;
    position: relative;
    padding: 0 80px;
}

/* Обертка слайдов */
.gallery-slides {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.25),
        0 15px 40px rgba(175, 118, 77, 0.15);
    border: 3px solid var(--white);
}

/* Слайд */
.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    transform: scale(0.95);
}

.gallery-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* Фото в слайде */
.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 8s ease-in-out;
}

.gallery-slide.active img {
    transform: scale(1.05);
}

/* Номер слайда */
.slide-number {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    z-index: 10;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Название фото */
.slide-caption {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 120px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 500;
    z-index: 10;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

/* Стрелки навигации */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 10px 35px rgba(0, 0, 0, 0.2),
        0 5px 20px rgba(175, 118, 77, 0.15);
}

.gallery-nav:hover {
    background: var(--primary-brown);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 
        0 15px 45px rgba(0, 0, 0, 0.3),
        0 8px 25px rgba(175, 118, 77, 0.25);
}

.gallery-nav i {
    font-size: 1.8rem;
    color: var(--dark-blue);
    transition: all 0.3s ease;
}

.gallery-nav:hover i {
    color: var(--white);
    transform: scale(1.1);
}

.gallery-nav.prev {
    left: 10px;
}

.gallery-nav.next {
    right: 10px;
}

/* Индикаторы слайдов (точки) */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(175, 118, 77, 0.3);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: var(--secondary-orange);
    transform: scale(1.3);
}

.dot.active {
    background: var(--primary-brown);
    border-color: var(--white);
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(175, 118, 77, 0.5);
}

/* Кнопка "Вся галерея" */
.gallery-preview {
    text-align: center;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid rgba(175, 118, 77, 0.1);
}

.gallery-preview p {
    font-size: 1.3rem;
    color: #555;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    font-family: Aptos, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

/* Анимация для перехода слайдов */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.gallery-slide.active {
    animation: slideIn 0.8s ease-out;
}


/* ===========================================
   ПОСЕЩЕНИЕ ХРАМА И КАК ДОБРАТЬСЯ (ОБЪЕДИНЕННЫЙ БЛОК)
   =========================================== */
.visit-section {
    padding: 100px 0;
    position: relative;
    width: 100%;
    background: 
        /* Затемняющий градиент для читаемости */
        linear-gradient(rgba(248, 245, 240, 0.85), rgba(248, 245, 240, 0.85)),
        /* Фоновое изображение на всю ширину */
        var(--bg-obol-paint);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.visit-section h2 {
    text-align: center;
    color: var(--dark-blue);
    margin-bottom: 60px;
    font-size: clamp(2.4rem, 4vw, 3rem);
    position: relative;
    padding-bottom: 25px;
    font-weight: 700;
      font-family: "Gambria", "Calibri", "Candara", "Segoe", "Segoe UI", Aptos, sans-serif;
    letter-spacing: 0.5px;
    z-index: 2;
}

.visit-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-brown) 50%, 
        transparent 100%
    );
    border-radius: 3px;
}

/* Основной контейнер */
.visit-container {
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Общая информация */
.visit-info {
    text-align: center;
    margin-bottom: 70px;
    padding: 50px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 10px 30px rgba(175, 118, 77, 0.1);
    border: 2px solid rgba(175, 118, 77, 0.15);
    position: relative;
    overflow: hidden;
}

.visit-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, 
        var(--primary-brown), 
        var(--secondary-orange), 
        var(--primary-brown)
    );
    border-radius: 6px 6px 0 0;
}

.visit-info p {
    font-size: 1.3rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 40px;
    font-family: Aptos, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    letter-spacing: 0.3px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Блок "Как добраться" */
.directions-block {
    margin-top: 30px;
}

.directions-block h3 {
    text-align: center;
    color: var(--dark-blue);
    margin-bottom: 50px;
    font-size: 2rem;
    position: relative;
    padding-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    z-index: 2;
}

.directions-block h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--secondary-orange) 0%, 
        var(--dark-blue) 100%
    );
    border-radius: 2px;
}

.directions-block h3 i {
    color: var(--primary-brown);
    font-size: 1.8rem;
}

/* Контейнер карточек транспорта */
.transport-info {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Карточка транспорта */
.transport-card {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.1),
        0 8px 25px rgba(76, 105, 134, 0.08);
    border: 2px solid rgba(76, 105, 134, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.transport-card:hover {
    transform: translateY(-15px);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.15),
        0 15px 35px rgba(76, 105, 134, 0.12);
    border-color: var(--primary-brown);
    background: rgba(255, 255, 255, 0.98);
}

.transport-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, 
        var(--dark-blue), 
        var(--primary-brown), 
        var(--secondary-orange)
    );
    border-radius: 5px 5px 0 0;
}

/* Иконка транспорта */
.transport-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, 
        var(--dark-blue) 0%, 
        rgba(76, 105, 134, 0.9) 100%
    );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
    box-shadow: 0 10px 30px rgba(76, 105, 134, 0.3);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.transport-card:hover .transport-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 15px 40px rgba(76, 105, 134, 0.4);
}

.transport-card:nth-child(2) .transport-icon {
    background: linear-gradient(135deg, 
        var(--primary-brown) 0%, 
        var(--secondary-orange) 100%
    );
    box-shadow: 0 10px 30px rgba(175, 118, 77, 0.3);
}

.transport-card:nth-child(2):hover .transport-icon {
    box-shadow: 0 15px 40px rgba(175, 118, 77, 0.4);
}

/* Заголовок карточки */
.transport-card h3 {
    text-align: center;
    color: var(--dark-blue);
    margin-bottom: 25px;
    font-size: 1.6rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.transport-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--secondary-orange);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.transport-card:hover h3::after {
    width: 70px;
}

/* Детали маршрута */
.route-details {
    color: #555;
    line-height: 1.7;
}

.route-details p {
    margin-bottom: 12px;
    font-size: 1.05rem;
    position: relative;
    padding-left: 25px;
}

.route-details p::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-brown);
    font-size: 1.5rem;
    font-weight: bold;
}

.route-details strong {
    color: var(--dark-blue);
    font-weight: 600;
}

.route-details p:has(strong) {
    padding-left: 0;
    margin-top: 20px;
    margin-bottom: 15px;
}

.route-details p:has(strong)::before {
    display: none;
}

.route-details p:has(strong):first-child {
    margin-top: 0;
}

/* Декоративные элементы */
.visit-info::after {
    content: '✝';
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 2.5rem;
    color: rgba(175, 118, 77, 0.15);
    transform: rotate(15deg);
}

.transport-card::after {
    content: '';
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%234c6986" opacity="0.1"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 010-5 2.5 2.5 0 010 5z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.3;
}

/* Кнопка "Подробнее" */
.visit-section .btn {
    display: block;
    width: fit-content;
    margin: 60px auto 0;
    padding: 16px 45px;
    font-size: 1.1rem;
    border-radius: 30px;
    background: linear-gradient(135deg, 
        var(--primary-brown) 0%, 
        var(--secondary-orange) 100%
    );
    border: none;
    box-shadow: 0 8px 25px rgba(175, 118, 77, 0.3);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.visit-section .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(175, 118, 77, 0.4);
    letter-spacing: 0.5px;
}

/* Декоративные элементы фона */
.visit-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.visit-decoration .dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(175, 118, 77, 0.08);
    border-radius: 50%;
    animation: float 25s infinite linear;
}

.visit-decoration .dot:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.visit-decoration .dot:nth-child(2) { top: 40%; right: 20%; animation-delay: 8s; }
.visit-decoration .dot:nth-child(3) { bottom: 25%; left: 15%; animation-delay: 16s; }

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
    25% { transform: translateY(-15px) translateX(10px) rotate(90deg); }
    50% { transform: translateY(0) translateX(20px) rotate(180deg); }
    75% { transform: translateY(15px) translateX(10px) rotate(270deg); }
}



/* ===========================================
   СВЯТЫНИ ХРАМА - ГОРИЗОНТАЛЬНЫЕ БЛОКИ
   =========================================== */
.relics-section {
    text-align: center;
    padding: 80px 20px; 
    background: linear-gradient(135deg, 
        rgba(248, 245, 240, 0.9) 0%, 
        rgba(240, 232, 220, 0.9) 100%
    );
    position: relative;
    overflow: hidden; 
}

.relics-section h2 {
    color: var(--dark-brown);
    margin-bottom: 60px;
    font-size: clamp(2.2rem, 3vw, 2.8rem);
    position: relative;
    padding-bottom: 20px;
    font-family: "Gambria", "Calibri", "Candara", "Segoe", "Segoe UI", Aptos, sans-serif;
    
}

.relics-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
   background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 176, 240, 0.5) 50%, /* 50% прозрачности в центре */
        transparent 100%
    );
}

/* Обертка для слайдера */
.relics-slider-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto 50px;
    padding: 0 80px;
}

/* Вьюпорт - видимая область */
.relics-viewport {
    width: 100%;
    overflow: hidden; 
    padding: 20px 0; 
}

/* Контейнер для святынь */
.relics-container {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    gap: 40px;
}

/* ГОРИЗОНТАЛЬНАЯ КАРТОЧКА святыни */
.relic-item {
    flex: 0 0 calc(50% - 30px); /* 2 блока на ПК */
    display: flex; /* Горизонтальное расположение */
    background: var(--light-gray);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(175, 118, 77, 0.2);
    transition: all 0.4s ease;
    position: relative;
    min-height: 280px;
}

.relic-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, 
        var(--primary-brown), 
        var(--secondary-orange), 
        var(--primary-brown)
    );
    z-index: 2;
}

.relic-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-brown);
}

/* ИКОНА (слева) */
.relic-photo {
    flex: 0 0 200px; /* Фиксированная ширина для иконы */
    position: relative;
    overflow: hidden;
}

.relic-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.relic-item:hover .relic-photo img {
    transform: scale(1.08);
}

/* Декоративная рамка для фото */
.relic-photo::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, 
        transparent 50%, 
        rgba(175, 118, 77, 0.1) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.relic-item:hover .relic-photo::before {
    opacity: 1;
}


/* ИНФОРМАЦИЯ (справа) */
.relic-info {
    flex: 1;
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.relic-name {
    font-size: 1.5rem;
    color: var(--light-blue);
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    font-family: "Gambria", "Calibri", "Candara", "Segoe", "Segoe UI", Aptos, sans-serif;
    padding-bottom: 15px;
}

.relic-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, 
        var(--primary-brown), 
        var(--dark-brown)
    );
    transition: width 0.3s ease;
}

.relic-item:hover .relic-name::after {
    width: 80px;
}

.relic-description {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    font-family: "Gambria", "Calibri", "Candara", "Segoe", "Segoe UI", Aptos, sans-serif;
    flex-grow: 1; /* Занимает доступное пространство */
}

/* Кнопка подробнее на карточке */
.relic-link {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(175, 118, 77, 0.1);
    color: var(--primary-brown);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    border: 2px solid rgba(175, 118, 77, 0.3);
    transition: all 0.3s ease;
    font-size: 0.95rem;
    align-self: flex-start; /* Выравнивание по левому краю */
}

.relic-link:hover {
    background: var(--primary-brown);
    color: var(--white);
    transform: translateY(-3px);
    border-color: var(--primary-brown);
    box-shadow: 0 5px 15px rgba(175, 118, 77, 0.3);
}

/* Кнопки прокрутки */
.relic-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid rgba(175, 118, 77, 0.3);
    color: var(--primary-brown);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    opacity: 0.9;
}

.relic-scroll-btn:hover:not(.disabled) {
    background: var(--primary-brown);
    color: var(--white);
    border-color: var(--primary-brown);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(175, 118, 77, 0.3);
    opacity: 1;
}

.relic-scroll-btn:active:not(.disabled) {
    transform: translateY(-50%) scale(0.95);
}

.scroll-left {
    left: 15px;
}

.scroll-right {
    right: 15px;
}

/* Отключенные стрелки */
.relic-scroll-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
    cursor: not-allowed;
}

/* Скрытые стрелки (когда все элементы видны) */
.relic-scroll-btn.hidden {
    display: none;
}

/* Индикаторы прогресса */
.relics-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.relic-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(175, 118, 77, 0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.relic-indicator.active {
    background: var(--primary-brown);
    transform: scale(1.2);
}

.relic-indicator:hover {
    background: var(--primary-brown);
}

/* ===========================================
   РАСПИСАНИЕ БОГОСЛУЖЕНИЙ
   =========================================== */
.schedule-section {
    text-align: center;
    background: rgb(191, 182, 172);
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.schedule-section h2 {
    color: var(--light-gray);
    margin-bottom: 60px;
    font-size: clamp(2.2rem, 3vw, 2.8rem);
    position: relative;
      font-family: "Gambria", "Calibri", "Candara", "Segoe", "Segoe UI", Aptos, sans-serif;
    padding-bottom: 20px;
}

.schedule-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
   background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 176, 240, 0.5) 50%, /* 50% прозрачности в центре */
        transparent 100%
    );
}

/* Обертка для слайдера */
.schedule-slider-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
}

/* Вьюпорт */
.schedule-viewport {
    width: 100%;
    overflow: hidden;
}

/* Контейнер для дней */
.schedule-container {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
     justify-content: center;
    gap: 30px;
}

/* День недели */
.schedule-day {
    flex: 0 0 calc(33.333% - 20px); /* 3 дня в ряд на десктопе */
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(175, 118, 77, 0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: auto;
    position: relative;
    overflow: hidden;
    min-width: 300px;
}

.schedule-day:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-brown);
}

/* Декоративный элемент */
.schedule-day::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, 
        var(--primary-brown), 
        var(--secondary-orange), 
        var(--primary-brown)
    );
}

/* День недели */
.day-header {
    margin-bottom: 20px;
    text-align: center;
}

.day-name {
    font-size: 1.8rem;
    color: var(--dark-brown);
    font-weight: bold;
    margin-bottom: 8px;
    text-transform: uppercase;
     font-family: "Gambria", "Calibri", "Candara", "Segoe", "Segoe UI", Aptos, sans-serif;
    letter-spacing: 1px;
}

.day-date {
    font-size: 1.1rem;
    color: var(--primary-brown);
    font-weight: 500;
     font-family: "Gambria", "Calibri", "Candara", "Segoe", "Segoe UI", Aptos, sans-serif;
    margin-bottom: 15px;
}

/* Разделительная линия */
.day-divider {
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--dark-brown) 20%, 
        var(--dark-brown) 80%, 
        transparent 100%
    );
    margin: 15px 0 25px;
    border-radius: 1px;
}

/* Заголовок типа богослужения */
.service-type {
    font-size: 1.4rem;
    color: var(--light-blue);
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
    padding: 0 10px;
}

/* Список богослужений */
.service-list {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: rgba(248, 245, 240, 0.5);
    border-radius: 10px;
    border-left: 4px solid var(--primary-brown);
    transition: all 0.3s ease;
    text-align: left;
}

.service-item:hover {
    background: rgba(175, 118, 77, 0.1);
    transform: translateX(5px);
}

.service-time {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-brown);
    min-width: 70px;
    text-align: center;
}

.service-name {
    font-size: 1rem;
    color: #333;
    flex-grow: 1;
    margin-left: 15px;
    line-height: 1.4;
}

/* Кнопки прокрутки */
.schedule-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid rgba(175, 118, 77, 0.3);
    color: var(--primary-brown);
    cursor: pointer;
    display: none; /* По умолчанию скрыты */
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    opacity: 0.9;
}

.schedule-scroll-btn:hover:not(.disabled) {
    background: var(--primary-brown);
    color: var(--white);
    border-color: var(--primary-brown);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(175, 118, 77, 0.3);
    opacity: 1;
}

.schedule-scroll-btn:active:not(.disabled) {
    transform: translateY(-50%) scale(0.95);
}

.schedule-scroll-left {
    left: 15px;
}

.schedule-scroll-right {
    right: 15px;
}

/* Отключенные стрелки */
.schedule-scroll-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
    cursor: not-allowed;
}

/* Кнопка для всего расписания */
.schedule-preview {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(175, 118, 77, 0.2);
}

.schedule-preview p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 25px;
}


/* ===========================================
   ИСТОРИЧЕСКАЯ СЕКЦИЯ
   =========================================== */
.history-section {
    text-align: center;
    background: linear-gradient(135deg, 
        rgba(248, 245, 240, 0.9) 0%, 
        rgba(240, 232, 220, 0.9) 100%
    );
}

.history-section h2 {
     color: var(--dark-brown);
    margin-bottom: 60px;
    font-size: clamp(2.2rem, 3vw, 2.8rem);
    position: relative;
      font-family: "Gambria", "Calibri", "Candara", "Segoe", "Segoe UI", Aptos, sans-serif;
    padding-bottom: 20px;
}

.history-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
     background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 176, 240, 0.5) 50%, /* 50% прозрачности в центре */
        transparent 100%
    );
}

/* ===========================================
   ИСТОРИЧЕСКАЯ ЛЕНТА (ТАЙМЛАЙН)
   =========================================== */
.timeline-section {
    margin: 60px 0;
    padding: 100px 0;
    position: relative;
    width: 100%;
    background: 
        /* Затемняющий градиент для читаемости */
        linear-gradient(rgba(248, 245, 240, 0.85), rgba(248, 245, 240, 0.85)),
        /* Фоновое изображение на всю ширину */
         var(--bg-obol-paint);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Вертикальная центральная линия */
.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(
        to bottom,
        rgba(175, 118, 77, 0.2) 0%,
        var(--primary-brown) 20%,
        var(--primary-brown) 80%,
        rgba(175, 118, 77, 0.2) 100%
    );
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px;
    box-shadow: 
        0 0 30px rgba(175, 118, 77, 0.1),
        inset 0 0 10px rgba(255, 255, 255, 0.5);
    z-index: 1;
}

/* Декоративные элементы линии */
.timeline::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary-brown);
    border-radius: 50%;
    top: 0;
    left: 50%;
    transform: translate(-50%, -6px);
    box-shadow: 
        0 0 20px var(--primary-brown),
        0 0 40px rgba(214, 148, 91, 0.3);
    animation: pulseGlow 2s infinite;
    z-index: 2;
}

@keyframes pulseGlow {
    0%, 100% { 
        box-shadow: 
            0 0 20px var(--primary-brown),
            0 0 40px rgba(214, 148, 91, 0.3); 
    }
    50% { 
        box-shadow: 
            0 0 30px var(--primary-brown),
            0 0 60px rgba(214, 148, 91, 0.5); 
    }
}

/* КОНТЕЙНЕРЫ ДЛЯ ЭЛЕМЕНТОВ */
.timeline-item {
    position: relative;
    width: 100%;
    margin-bottom: 80px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    opacity: 1;
    transform: translateY(0);
    z-index: 2;
}

/* ГОД СЛЕВА */
.timeline-year-container {
    position: relative;
    width: 45%;
    text-align: right;
    padding-right: 40px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.timeline-year {
    display: inline-block;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--dark-brown);
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    box-shadow: 
        0 8px 25px rgba(175, 118, 77, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
    z-index: 2;
    min-width: 100px;
    text-align: center;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(175, 118, 77, 0.1);
}

.timeline-item:hover .timeline-year {
    background: var(--dark-brown);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 
        0 12px 30px rgba(214, 148, 91, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    border-color: var(--primary-brown);
}

/* ЦЕНТРАЛЬНАЯ ОБЛАСТЬ С ФОТО/КРУЖКОМ */
.timeline-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    top: 0;
}

/* ФОТО ПО ЦЕНТРУ */
.timeline-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.25),
        0 6px 20px rgba(175, 118, 77, 0.35),
        0 0 0 6px rgba(175, 118, 77, 0.15),
        inset 0 3px 6px rgba(255, 255, 255, 0.9);
   
    transform-origin: center;
    position: relative;
    z-index: 4;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: block;
    backdrop-filter: blur(5px);
}

/* Анимация фото при наведении */
.timeline-photo:hover {
    box-shadow: 
        0 18px 45px rgba(0, 0, 0, 0.3),
        0 8px 25px rgba(175, 118, 77, 0.45),
        0 0 0 8px rgba(175, 118, 77, 0.2),
        inset 0 4px 8px rgba(255, 255, 255, 0.95);
    filter: brightness(1.08) contrast(1.1);
}

/* КРУЖОК ДЛЯ ЭЛЕМЕНТОВ БЕЗ ФОТО */
.timeline-item:not(:has(.timeline-photo)) .timeline-center::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border: 6px solid var(--primary-brown);
    border-radius: 50%;
    top: 30px;
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 3;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        0 0 0 6px rgba(175, 118, 77, 0.15),
        inset 0 3px 6px rgba(255, 255, 255, 0.8);
    transition: all 0.4s ease;
}

.timeline-item:not(:has(.timeline-photo)):hover .timeline-center::after {
    border-color: var(--primary-brown);
    background: var(--dark-brown);
    transform: translate(-50%, 0) scale(1.3);
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.25),
        0 0 0 8px rgba(175, 118, 77, 0.2);
}

/* ОПИСАНИЕ СПРАВА */
.timeline-content {
    width: 45%;
    padding-left: 40px;
    text-align: left;
}

.timeline-content-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 30px 35px;
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.1),
        0 8px 25px rgba(175, 118, 77, 0.1),
        0 0 0 1px rgba(175, 118, 77, 0.05);
    border: 1px solid rgba(175, 118, 77, 0.1);
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

/* Элегантная градиентная полоска сверху */
.timeline-content-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, 
    var(--primary-brown) 0%, 
        var(--dark-brown) 100%);
    border-radius: 18px 18px 0 0;
}

/* Эффект свечения при наведении */
.timeline-content-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.15),
        0 12px 35px rgba(175, 118, 77, 0.15),
        0 0 0 1px rgba(175, 118, 77, 0.1);
}



/* Заголовок события */
.timeline-content h4 {
    margin: 0 0 18px 0;
    color: var(--light-blue);
    font-size: 1.2rem;
    line-height: 1.3;
    font-weight: 500;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(175, 118, 77, 0.1);
    position: relative;
}

.timeline-content h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 70px;
    height: 2px;
    background: linear-gradient(90deg, 
        var(--secondary-orange) 0%, 
        var(--primary-brown) 100%);
    transition: width 0.4s ease;
}

.timeline-content-wrapper:hover h4::after {
    width: 120px;
}

.timeline-content p {
    margin: 1em 0; 
    line-height: 1.7;
    color: #000000;
    font-size: 1.03rem;
    font-family: Aptos, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

/* Декоративные элементы для красоты */
.timeline-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.timeline-decoration .dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(175, 118, 77, 0.1);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

.timeline-decoration .dot:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.timeline-decoration .dot:nth-child(2) { top: 60%; right: 25%; animation-delay: 5s; }
.timeline-decoration .dot:nth-child(3) { bottom: 30%; left: 30%; animation-delay: 10s; }
.timeline-decoration .dot:nth-child(4) { top: 40%; right: 35%; animation-delay: 15s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(0) rotate(180deg); }
    75% { transform: translateY(20px) rotate(270deg); }
}

/* Стили для последнего элемента */
.timeline-item:last-child {
    margin-bottom: 40px;
}

/* ===========================================
   ОСНОВНОЕ СОДЕРЖИМОЕ
   =========================================== */
.main-content {
    background: var(--white);

    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

.section {
    padding: 70px 0;
    border-bottom: 1px solid var(--medium-gray);
}

.section:last-child {
    border-bottom: none;
}

.section h1 {
    color: var(--dark-blue);
    margin-bottom: 35px;
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    position: relative;
    padding-bottom: 15px;
         font-family: "Gambria", "Calibri", "Candara", "Segoe", "Segoe UI", Aptos, sans-serif;
}

.section h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--primary-brown);
}



/* ===========================================
   ГЛАВНАЯ СТРАНИЦА
   =========================================== */
.welcome-section {
    text-align: center;
}

.welcome-section > p {
    font-size: 1.3rem;
    color: #555;
    max-width: 850px;
    margin: 0 auto 50px;
    line-height: 1.7;
}

.welcome-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.feature {
    text-align: center;
    padding: 45px 25px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--medium-gray);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-brown);
}

.feature i {
    font-size: 3.5rem;
    color: var(--primary-brown);
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.feature:hover i {
    transform: scale(1.1);
}

.feature h3 {
    margin: 20px 0 15px;
    color: var(--dark-blue);
    font-size: 1.5rem;
    font-weight: bold;
        font-family: "Gambria", "Calibri", "Candara", "Segoe", "Segoe UI", Aptos, sans-serif;
}

.feature p {
    color: #666;
    line-height: 1.6;
    font-size: 1.05rem;
}


/* ===========================================
   КОНТАКТЫ И КАРТА
   =========================================== */
.contacts-section {
    padding: 100px 0;
    position: relative;
    width: 100%;
    background: 
        /* Затемняющий градиент для читаемости */
        linear-gradient(rgba(248, 245, 240, 0.9), rgba(248, 245, 240, 0.9)),
        /* Фоновое изображение через переменную */
        var(--bg-obol-paint);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.contacts-section h2 {
    text-align: center;
    color: var(--dark-blue);
    margin-bottom: 60px;
    font-size: clamp(2.4rem, 4vw, 3rem);
    position: relative;
    padding-bottom: 25px;
    font-weight: 700;
      font-family: "Gambria", "Calibri", "Candara", "Segoe", "Segoe UI", Aptos, sans-serif;
    letter-spacing: 0.5px;
    z-index: 2;
}

.contacts-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-brown) 50%, 
        transparent 100%
    );
    border-radius: 3px;
}

/* Основной контейнер */
.contacts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto 60px;
}

/* Левая колонка - контактная информация */
.contact-info {
    flex: 1;
    min-width: 300px;
    background: var(--white);
    border-radius: 25px;
    padding: 20px 30px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 10px 30px rgba(175, 118, 77, 0.1);
    border: 2px solid rgba(175, 118, 77, 0.15);
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, 
        var(--primary-brown), 
        var(--secondary-orange), 
        var(--primary-brown)
    );
    border-radius: 6px 6px 0 0;
}

/* Список контактов */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(175, 118, 77, 0.1);
    transition: all 0.3s ease;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, 
        rgba(175, 118, 77, 0.1) 0%, 
        rgba(214, 148, 91, 0.1) 100%
    );
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-brown);
    font-size: 1.8rem;
    transition: all 0.4s ease;
}

.contact-item:hover .contact-icon {
    background: linear-gradient(135deg, 
        var(--primary-brown) 0%, 
        var(--secondary-orange) 100%
    );
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
}

.contact-text {
    flex-grow: 1;
}

.contact-text p {
    margin: 0;
    font-size: 1.2rem;
    color: var(--dark-blue);
    font-weight: 500;
    line-height: 1.5;
}

.contact-description {
    font-size: 0.95rem;
    color: #666;
    margin-top: 5px;
    font-family: Aptos, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    font-style: italic;
}

/* Правая колонка - карта */
.map-block {
    flex: 1;
    min-width: 300px;
    background: var(--white);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 10px 30px rgba(76, 105, 134, 0.1);
    border: 2px solid rgba(76, 105, 134, 0.15);
    position: relative;
}

.map-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, 
        var(--dark-blue), 
        var(--primary-brown), 
        var(--secondary-orange)
    );
    border-radius: 6px 6px 0 0;
    z-index: 10;
}

/* Заголовок карты */
.map-header {
    padding: 30px 40px 20px;
    text-align: center;
    background: linear-gradient(to bottom, 
        var(--white) 0%,
        rgba(248, 245, 240, 0.8) 100%
    );
}

.map-header h3 {
    color: var(--dark-blue);
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.map-header h3 i {
    color: var(--primary-brown);
    font-size: 1.6rem;
}

.map-description {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
    font-family: Aptos, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

/* Контейнер для карты */
.map-container {
    height: 400px;
    position: relative;
}

#yandex-map {
    width: 100%;
    height: 100%;
    border-radius: 0 0 25px 25px;
}

/* Кнопки под картой */
.map-actions {
    padding: 30px 40px;
    background: linear-gradient(to top, 
        var(--white) 0%,
        rgba(248, 245, 240, 0.8) 100%
    );
    border-top: 1px solid rgba(175, 118, 77, 0.1);
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-map {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 35px;
    background: linear-gradient(135deg, 
        var(--dark-blue) 0%, 
        rgba(76, 105, 134, 0.9) 100%
    );
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    box-shadow: 0 6px 20px rgba(76, 105, 134, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-map::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent
    );
    transition: left 0.6s ease;
}

.btn-map:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(76, 105, 134, 0.4);
    letter-spacing: 0.3px;
}

.btn-map:hover::before {
    left: 100%;
}

.btn-map i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.btn-map:hover i {
    transform: translateX(3px);
}

/* Кнопка "Все контакты" */
.contacts-section .btn {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 16px 45px;
    font-size: 1.1rem;
    border-radius: 30px;
    background: linear-gradient(135deg, 
        var(--primary-brown) 0%, 
        var(--secondary-orange) 100%
    );
    border: none;
    box-shadow: 0 8px 25px rgba(175, 118, 77, 0.3);
    transition: all 0.4s ease;
}

.contacts-section .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(175, 118, 77, 0.4);
    letter-spacing: 0.5px;
}

/* Декоративные элементы */
.contact-info::after {
    content: '☦';
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 3rem;
    color: rgba(175, 118, 77, 0.1);
    transform: rotate(10deg);
}

.map-block::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23af764d" opacity="0.2"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 010-5 2.5 2.5 0 010 5z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 5;
}



/* ===========================================
   КНОПКИ
   =========================================== */
.btn {
    display: inline-block;
    margin-top: 25px;
    padding: 14px 35px;
    background: var(--primary-brown);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(175, 118, 77, 0.3);
}

.btn:hover {
    background: var(--secondary-orange);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(214, 148, 91, 0.4);
}

/* ===========================================
   ФУТЕР
   =========================================== */
footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 50px 0 25px;
    text-align: center;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

footer p {
    margin-bottom: 18px;
    line-height: 1.6;
    font-size: 1.05rem;
    opacity: 0.9;
}

.footer-social {
    margin: 30px 0;
}

.footer-social a {
    display: inline-block;
    color: var(--white);
    background: var(--primary-brown);
    width: 45px;
    height: 45px;
    line-height: 45px;
    border-radius: 50%;
    margin: 0 10px;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.footer-social a:hover {
    background: var(--secondary-orange);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Духовенство - фон на всю ширину экрана */
.clergy-section {
    position: relative;
    width: 100%;
    background: #ffffff;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 0;
    margin: 0;
    overflow: hidden;
}

/* Контейнер для контента - ограничен по ширине */
.clergy-section > .content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

/* Заголовок секции */
.clergy-section h2 {
    text-align: center;
    color: var(--dark-brown);
    font-size: clamp(2.2rem, 3vw, 2.8rem);
    margin-bottom: 80px;
    position: relative;
    padding-bottom: 25px;
    font-family: "Gambria", "Calibri", "Candara", "Segoe", "Segoe UI", Aptos, sans-serif;
}

.clergy-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 176, 240, 0.5) 50%, /* 50% прозрачности в центре */
        transparent 100%
    );
    border-radius: 2px;
}

/* Контейнер для духовенства */
.clergy-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Ряды духовенства - 2 слева, 2 справа */
.clergy-row {
    display: flex;
    justify-content: center;
    gap: 130px;
    margin-bottom: 80px;
    flex-wrap: wrap;
}

.clergy-row:last-child {
    margin-bottom: 0;
}

/* Карточки духовных лиц */
.clergy-member {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 500px;
    text-align: left;
    padding: 30px;
    background: #ffffff;
    border-radius: 15px;
    border: 1px solid rgba(87, 73, 63, 0.5);
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

/* Эффект при наведении */
.clergy-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--black);
}

/* Фото духовного лица */
.clergy-photo {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(107, 91, 79, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
}

.clergy-photo::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    background: #6d6761;
    border-radius: 50%; /* Добавлено чтобы рамка была круглой */
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.clergy-member:hover .clergy-photo::before {
    opacity: 1;
}

.clergy-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.clergy-member:hover .clergy-photo img {
    transform: scale(1.05);
}

.clergy-info h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    font-family: "Gambria", "Calibri", "Candara", "Segoe", "Segoe UI", Aptos, sans-serif;
    color: var(--black);
    line-height: 1.4;
    position: relative;
    padding-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Сан - коричневый цвет */
.clergy-rank {
    color: var(--dark-brown); 
    font-weight: 600;
    font-size: 20px;
    font-family: "Gambria", "Calibri", "Candara", "Segoe", "Segoe UI", Aptos, sans-serif;
}

/* Имя - черный цвет */
.clergy-name {
    color: var(--black);
    font-weight: 600; /* жирный */
    font-style: italic; /* курсив */
    font-size: 17px;
    font-family: "Gambria", "Calibri", "Candara", "Segoe", "Segoe UI", Aptos, sans-serif;
}

.clergy-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #BFB6AC;
    transition: width 0.3s ease;
}

.clergy-member:hover .clergy-info h3::after {
    width: 80px;
}

/* Декоративные элементы на фоне */
.clergy-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 10%, rgba(175, 118, 77, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 90% 90%, rgba(76, 105, 134, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(214, 148, 91, 0.08) 0%, transparent 35%);
    z-index: 1;
}

/* Границы сверху и снизу */
.clergy-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-brown) 25%, 
        var(--dark-brown) 50%, 
        var(--primary-brown) 75%, 
        transparent 100%
    );
    z-index: 1;
}

/* Граница сверху - только если это не первая секция */
.clergy-section:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-brown) 25%, 
        var(--secondary-orange) 50%, 
        var(--primary-brown) 75%, 
        transparent 100%
    );
    z-index: 1;
}

