html, body {
    height: 100%;
    margin: 0;
    font-family: 'Raleway', sans-serif;
    background-color: #F8F8F8;
    transform-origin: 0 0;
}

.page-wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

hr {
    border: none;
    height: 1px;
    background-color: #B59C6B;
    width: 100%;
    opacity: 1;
}

.breadcrumb {
    background-color: #ffffff;
    padding: 10px;
    font-size: small;
    border-radius: 10px;    
}

/* Стили для футера */
.footer {
    background-color: #FAF3ED;
    height: 300px;
    bottom: 0;
    left: 0;
    z-index: 10;
    margin-top: 100px;
    position: relative;
}

@media (max-width: 768px) {
    .footer {
        height: 600px;
    }
}

.footer-logo {
    width: 400px;
}

@media (max-width: 768px) {
    .footer-logo {
        width: 350px;
    }
}

.title-ft {
    font-family: 'Source Serif 4', serif;
    font-size: 27px;
    font-weight: 300;
}

@media (max-width: 768px) {
    .title-ft {
        font-size: 21px;
    }
}

.social-ft {
    padding-top: 10px;
}

.phone-ft {
    padding-top: 10px;
    padding-bottom: 20px;
}

.logo-mcr {
    width: 70px;
}
/* Стили для футера */







/* Стили для ссылок */
a {
    text-decoration: none;
    color: #B59C6B;
}

a:hover {    
    color: #000000;
}
/* Стили для ссылок */





/* logo */
.responsive-logo {
  width: 220px;
}

@media (min-width: 768px) {
  .responsive-logo {
      width: 290px;
  }
}
/* logo */





/* Общие стили для контейнера слайдера */
/* Настройки слайдера */
.carousel-inner {
    position: relative;
}
  
.carousel-item {
    height: 305px; /* Десктоп по умолчанию */
}
  
.carousel-img {
    height: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 576px) {
    .carousel-img {
      width: 100%; /* Планшет */
    }
}
  
@media (max-width: 992px) {
    .carousel-item {
      height: 230px; /* Планшет */
    }
}
  
@media (max-width: 576px) {
    .carousel-item {
      height: 500px; /* Телефон */
    }
}
/* Настройки слайдера */









/* Настройки файлов */
.file-card {
  height: 100%;
}

.file-link {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: normal;
  text-decoration: none;
  color: #000000;
  transition: all 0.3s ease;
}

.file-link:hover {
  color: #B59C6B;
}

.ico-file {
  width: auto;
  height: 50px;
}






/* Блок избранного на главной */
.featured-block {
    border: 1px solid #B59C6B;
    border-radius: 10px;
}

/* Декорация тайтлов и разного текста*/
.title {
    font-family: 'Source Serif 4', serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 28px;
}

.title-idx {
    font-family: 'Source Serif 4', serif;
    font-size: 30px;
    font-weight: 300;
    line-height: 25px;
}

.title-h3 {
    font-family: 'Source Serif 4', serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 19px;
    text-decoration: none;
}

@media (max-width: 1190px) {
  .title-h3 {
    font-size: 16px;
    line-height: 18px;
  }  
}

.title-a {
  text-decoration: none;
  color: #000000;
  transition: color 0.3s;
}

.title-a:hover {
    color: #B59C6B;
}

.title-page {
    font-size: 30px;
    font-weight: 400;
    line-height: 34px;
}

.date {
    font-size: 18px;
    font-weight: 400;
    color: #B59C6B;
}

.subtitle {
    font-family: 'Raleway', sans-serif;
    font-size: 19px;
}





/* Декоративная линия*/
.decor_line {
    height: 1px;
    width: 100%;
    background: linear-gradient(
        to right,
        #B59C6B 0%,
        #B59C6B 40%,
        #BB0000 50%,
        #B59C6B 60%,
        #B59C6B 100%
    );
    background-size: 200% 100%;
    background-position: center;
    animation: shineFromCenter 2s ease-out forwards;
    border: none;
    opacity: 0;
}

/* Анимация "засветки" от центра к краям для дива декоротивной линии */
@keyframes shineFromCenter {
  0% {
    background-size: 0% 100%;
    opacity: 0;
  }
  50% {
    background-size: 100% 100%;
    opacity: 1;
  }
  100% {
    background-size: 200% 100%;
    opacity: 1;
  }
}


/* Для ссылки архива на главной */
.read-more {
    font-size: 21px;
    color: #000000;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    transition: color 0.3s; 
}

/* Для кнопок предыдущий следующий */
.read-more-btn {
    font-size: 16px;
    color: #000000;
    font-weight: 300;
    text-align: center;
    text-decoration: none;
    transition: color 0.3s; 
}

.read-more-btn:hover {
    color: #B59C6B; 
}

.read-more:hover {
    color: #B59C6B; 
}

/* Для ссылки читать больше */
.custom-read-more {
    font-size: 15px;
    color: #B59C6B;
    text-decoration: underline;
    transition: color 0.3s;
}

.custom-read-more:hover {
    color: #000000;
}

/* Стили для пагинации */
.pagination {
    background-color: #FAF3ED;
    border-radius: 10px;
    padding: 10px 15px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.pagination-numbers {
    font-family: 'Source Serif 4', serif;
    font-size: 18px;
    font-weight: 300;
}

.pagination-link {
    text-decoration: none;
    color: inherit;
    font-size: 18px;
}

.pagination-current {
    font-size: 20px;
    font-weight: 400;
}

.pagination-dots {
    font-size: 18px;
    opacity: 0.6;
}
/* Стили для пагинации КОНЕЦ */


/* Стили для текста в блоке */
.text-block {
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    text-align: justify;
    text-justify: inter-word;
    letter-spacing: -0.015em;
    word-spacing: -0.02em;
    font-variation-settings: "wdth" 95, "wght" 400;
    max-width: 800px;

    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.6;
    transition: all 0.3s ease-in-out;
}

@media (max-width: 1536px) {
    .text-block {
        font-size: 14px;
    }
}

@media (max-width: 1280px) {
  .text-block {
      font-size: 15px;
  }
}
  
  /* И важное изменение: чтобы последняя строка НЕ растягивалась */
.text-block::after {
    content: none;
}

.text-block h1,
.text-block h2,
.text-block h3,
.text-block h4,
.text-block h5,
.text-block h6 {
    white-space: normal !important;
    text-align: start;
    line-height: normal;
    hyphens: manual;
    font-weight: 600;
}

/* Сброс стилей для контейнера .nored */
.text-block .nored {
    display: block; /* Возвращаем блочный контекст */
    font-weight: inherit;
    letter-spacing: inherit;
    hyphens: manual;
    text-align: start;
    word-break: normal;
    overflow-wrap: normal;
    line-height: normal;
    max-width: none; /* Отменяем ограничение ширины */
}

/* Восстанавливаем базовые стили */
.text-block .nored * {
    font-weight: inherit;
    text-align: inherit;
    letter-spacing: inherit;
    line-height: normal;
}
/* Стили для текста в блоке КОНЕЦ*/






/* Стили для спанов */  
.gold-30 {
    font-family: 'Source Serif 4', serif;
    color: #B59C6B;
    font-stretch: normal; /* отключаем любое растяжение */
    font-variation-settings: normal; /* сбрасываем варьируемые настройки */
    text-align: initial; /* нормальное поведение */
    letter-spacing: normal; /* стандартное расстояние между буквами */
    display: inline; /* чтобы оставался в потоке текста */
    vertical-align: baseline;
    line-height: 1;
    font-size: clamp(24px, 5vw, 30px); /* адаптивный размер шрифта */
}

.ss-30 {
    font-family: 'Source Serif 4', serif;
    font-stretch: normal; /* отключаем любое растяжение */
    font-variation-settings: normal; /* сбрасываем варьируемые настройки */
    text-align: initial; /* нормальное поведение */
    letter-spacing: normal; /* стандартное расстояние между буквами */
    display: inline; /* чтобы оставался в потоке текста */
    vertical-align: baseline;
    line-height: 1;
    font-size: clamp(24px, 5vw, 30px); /* адаптивный размер шрифта */
}

.gold-23 {
    font-family: 'Source Serif 4', serif;
    color: #B59C6B;
    font-stretch: normal; /* отключаем любое растяжение */
    font-variation-settings: normal; /* сбрасываем варьируемые настройки */
    text-align: initial; /* нормальное поведение */
    letter-spacing: normal; /* стандартное расстояние между буквами */
    display: inline; /* чтобы оставался в потоке текста */
    vertical-align: baseline;
    line-height: 1;
    font-size: clamp(16px, 5vw, 23px); /* адаптивный размер шрифта */
}
/* Стили для спанов */





/* Стили для фото на планшете */
@media (min-width: 768px) and (max-width: 991.98px) {
  .responsive-img-md {
    width: 100%;
  }
}





/* Поисковик */
.search-wrapper {
    position: relative;
}
    
.search-input {
    padding-right: 40px; /* пространство под иконку */
    padding-left: 30px;
    border-radius: 30px;
    border-color: #B59C6B;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;    
}

.search-button {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button img {
    height: 28px;
}

.search-input:focus {
    border-color: #B59C6B;
    box-shadow: 0 0 6px 3px rgba(181, 156, 107, 0.4); /* мягкое сияние */
    outline: none;
}

/* Подсказки */
.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: none;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 20px;
}

.autocomplete-item {
    padding: 10px 15px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #B59C6B; /* Линия разделения */
    border-radius: 20px;
}

.autocomplete-item:last-child {
    border-bottom: none; /* У последнего убираем разделитель */
}

.autocomplete-item:hover {
    background-color: #FAF3ED;
}

.autocomplete-item a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

.autocomplete-date {
    font-family: 'Source Serif 4', serif;
    font-size: 12px;
    color: #B59C6B;
    margin-bottom: 5px;
}

.autocomplete-text {
    font-size: 14px;
    color: #333;
}

.autocomplete-title {
    font-size: 16px;
    line-height: 17px;
    margin-bottom: 5px;
}

/* Подсказки */








