.slider-container-st {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    height: auto;
    position: relative;
    display: inline-block;
}

.main-image-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    display: inline-block;
}

.main-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    cursor: pointer;
}

.thumbnails-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px;
    max-width: 100%;
    justify-content: center;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;  /* для IE и Edge */
    scrollbar-width: none;     /* для Firefox */
    justify-content: center;
}

.thumbnails-container::-webkit-scrollbar {
    display: none;  /* для Chrome, Safari и Opera */
}

.thumbnail {
    flex-shrink: 0;
    height: 100px;
    width: 160px;
}

@media (max-width: 768px) {
    .thumbnail {
        height: 60px;
        width: 100px;
    }
}

.thumbnail img {
    height: 100%;
    width: auto;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.thumbnail img:hover {
    opacity: 1;
}

/* Маркер количества изображений */
.gallery-marker {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.75);
    border: #B59C6B 1px solid;
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 10;
    pointer-events: none;
}

/* Блок стилей АККАРДИОНА */

.accordionrks, .accordionrks h1, .accordionrks h2
    {
        font-size:12px;
        font-weight:400;
    }

.accordion 
    {
        border:6px solid #cfe2ff;
    }
    
.accordion-button:hover, .accordion-header:hover

    {
        border-color:0px;
    }

/* Блок стилей АККАРДИОНА */


.card-img-overlay {
    background: linear-gradient(to top, rgb(255, 255, 255) 0%, 
                  rgba(255, 255, 255, 0.863) 30%, 
                  rgba(216, 216, 216, 0.527) 60%, 
                  rgba(181, 156, 107, 0.1) 80%, 
                  rgba(181, 156, 107, 0) 100%);

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.card-img {
    height: 100%;
    object-fit: cover;
}

.btn-custom {
    background-color: #b59c6b;
    color: #fff;
    border: none;
    margin-top: 1rem;
    font-size: small;
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-custom:hover {
    background-color: #333;
    color: #fff;
}

/* Блок стилей в Комитетах и остальных карточках */

.card-text {
    font-weight: normal;
    font-size: 13px;
    line-height: 13px;
}

.card-title {
    font-weight: 700;
    font-family: 'Source Serif 4', serif;
    line-height: 16px;
    font-size: 16px;
}

.committee-title {
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 1rem;
    min-height: 3.5rem; /* Фиксированная высота для выравнивания */
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-body {
    padding: 1.5rem;
}

.card-title-mb2 {
    font-size:14px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center; /* Добавлено для центрирования по горизонтали */
    text-align: center; /* Дополнительное выравнивание текста */
}

.title-mb2 {
    font-size:14px;
}

.bg-management2 {
    background-color: #FAF3ED;
    padding: 0.5rem;
    border: 1px solid #b59c6b;
    border-radius: 0.375rem;
    width: 100%; /* Чтобы flex-центрирование работало правильно */
}

/* Конец блока стилей в Комитетах и остальных карточках */


.rks-card {
    border: 1px solid #b59c6b !important;
}
.rks-card-title {
    font-weight: bold;
    text-align: left !important;
    color: #000 !important;
}
.rks-card-subtitle {
    font-size: 0.95rem;
    text-align: left !important;
    color: #000 !important;
}
.rks-icon-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-start !important;
    color: #000 !important;
}

.rks-icon-title .bi-info-circle {
    color: #b59c6b !important;
}

.rks-icon-title a {text-decoration:underline; text-align: left; }

.rks-card-title9 {
       min-height: 60px;
       text-align: center;
}

/* Стили для страницы структуры */




/* карусель фансибокс */
#myCarousel {
    width: 100%;
}

.carousel-st {
    width: 100%;
    height: auto;
}

#myCarousel {
    max-width: 640px;
    margin: 0 auto;
    overflow: hidden; /* прячем выход за пределы контейнера */
    height: 370px;    /* фиксированная высота слайдера */
    position: relative;
}

@media (max-width: 500px) {
    #myCarousel {
        max-width: 100%;
        height: 210px; /* уменьшаем высоту для мобильных устройств */
    }
}

#myCarousel .f-carousel__slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    overflow: hidden; /* прячем лишнее внутри слайда */
}

#myCarousel img {
    height: 400px;        /* фиксированная высота */
    width: auto;          /* ширина авто, сохраняет пропорции */
    max-width: none;      /* отменяем max-width: 100%, чтобы не ограничивало */
    object-fit: cover;    /* чтобы заполнить по высоте */
}

@media (max-width: 500px) {
    #myCarousel img {
        height: 200px; /* уменьшаем высоту для мобильных устройств */
    }
}

#myCarousel .f-carousel__nav .f-button {
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

@media (max-width: 500px) {
    #myCarousel .f-carousel__nav .f-button {
        width: 30px;
        height: 30px;
    }
}
/* карусель фансибокс */


/* Активируется только если скрипт добавил класс
.fix-bootstrap .container,
.fix-bootstrap .container-lg,
.fix-bootstrap .container-xl {
    max-width: var(--custom-container-width);
}

.fix-bootstrap .row {
    --bs-gutter-x: var(--custom-gutter-x);
}
 */

/* Экраны выше 1536px — фиксируем 1200px */
@media (min-width: 1537px) {
    .container {
      max-width: 1200px;
    }
}
  
/* Экраны до 1536px — фиксируем 1080px */
@media (max-width: 1536px) {
    .container {
      max-width: 1013px;
    }
}
  
/* Экраны до 1280px — фиксируем 1010px */
@media (max-width: 1280px) {
    .container {
      max-width: 1010px;
    }
}









/* кастомные буллииы */
ul.custom-bullets {
    list-style: none; 
    padding-left: 1.5em; 
    line-height:18px;
}
  
ul.custom-bullets li {
    position: relative;
    margin-bottom: 0.5em;
}
  
ul.custom-bullets li::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 0.2em; 
    top: 0.2em; 
    width: 12px; 
    height: 12px;
    background: url("/static/bullet.svg") no-repeat center center;
    background-size: contain;
    transform: scale(1.5);
}

ul.custom-bullets-rks {
    list-style: none; 
    padding-left: 1.5em; 
}
  
ul.custom-bullets-rks li {
    position: relative;
    margin-bottom: 0.5em;
}
  
ul.custom-bullets-rks li::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 5px; 
    width: 12px; 
    height: 12px;
    background: url("/static/bullet.svg") no-repeat center center;
    background-size: contain;
    transform: scale(1.5);
}
/* кастомные буллииы */






/* кастомные буллииы архива */
ul.custom-bullets-archive {
    list-style: none; 
    padding-left: 1.5em; 
}
  
ul.custom-bullets-archive li {
    position: relative;
    margin-bottom: 0.5em;
}
  
ul.custom-bullets-archive li::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 5px; 
    width: 12px; 
    height: 12px;
    background: url("/static/bullet.svg") no-repeat center center;
    background-size: contain;
    transform: scale(1.5);
}

ul.custom-bullets-rks {
    list-style: none; 
    padding-left: 1.5em; 
}
  
ul.custom-bullets-rks li {
    position: relative;
    margin-bottom: 0.5em;
}
  
ul.custom-bullets-rks li::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 5px; 
    width: 12px; 
    height: 12px;
    background: url("/static/bullet.svg") no-repeat center center;
    background-size: contain;
    transform: scale(1.5);
}

/* кастомные буллииы архива */







/* Текстура на карточках */
.card {
    transition: outline 0.3s ease;
}
  
.card:hover {
    outline: 1px solid #b59c6b;
    outline-offset: -1px;
}
/* Текстура на карточках */


/* Карточки */
.card-wd-title {
    font-size: 14px;
    line-height: 14px;
    font-weight: 500;
    font-family: 'Source Serif 4', serif;
}

.card-link {
    color: black;
    transition: color 0.3s;
    font-size: 14px;
    font-weight: 500;
    line-height: 12px;
}

.card-link:hover {
    color: #B59C6B;
}

.card-title-hr {
    font-size: 16px;
    line-height: 16px;
    font-weight: 500;
    font-family: 'Source Serif 4', serif;
    margin-bottom: 0.5rem;
}

/* Экраны до 1400px */
@media (max-width: 1399px) {
    .card-title-hr {
      margin-right: 10px;
    }
}

/* Экраны до 800px */
@media (max-width: 800px) {
    .card-title-hr {
      margin-right: 0px;
    }
}

/* Экраны от 1015px */
@media (min-width: 1015px) {
    .title {
      margin-right: 15px;
    }
}

@media (min-width: 992px) {
    .w-lg-60 {
        width: 60% !important;
    }
}

/* Экраны от 1536px 
@media (min-width: 1536px) {
    .title {
      margin-right: 160px;
    }
}*/


/* Тайтлы для левой колонки*/
.title-lf {
    font-size: 20px;
    line-height: 18px;
    font-weight: 500;
    font-family: 'Source Serif 4', serif;
}

.link-sec {
    color: black;
    transition: color 0.3s;
    font-size: 16px;
    font-weight: 500;
    line-height: 14px;
}

.link-sec:hover {
    color: #B59C6B;
}

.link-sec2 {
    color: black;
}

.link-sec2:hover {
    color: #B59C6B;
}

/* Стили для кнопки "Показать еще" */
.link-bullets {
    font-weight: 400;
    font-size: 14px;
    line-height: 14px;
    font-family: 'Source Serif 4', serif;
}




/* Стили для категорий описание */
.category-desc {
    font-weight: 400;
    font-size: 14px;
    line-height: 14px;
    font-family: 'Source Serif 4', serif;
    margin-bottom: 1rem;
}


/* Стиль badge в карточках */

.bg-rks {
    --bs-bg-opacity: 1;
    background-color: #FAF3ED; var(--bs-bg-opacity)) !important;
    font-weight: 400; 
}

/* Стиль заголовков в Премиях */
.awards-title {
    font-family: 'Source Serif 4', serif;
    color: #B59C6B;
    font-weight: 800;
}

/* Стрелки слайдера с тенью */
.carousel-control-next-icon, .carousel-control-prev-icon
{
 filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.5));
 background-size: contain;
 background-repeat: no-repeat;
}


/* Фикс переноса слов в абзацу */

.fixword {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;

    text-justify: inter-word;

    hyphenate-limit-chars: 6 3 3;

    /* слегка разрешаем “псевдотрекинг” */
    letter-spacing: 0.01em;

    /* ограничиваем растяжение строк */
    max-width: 70ch;
}

/* гранин */

.awards-img {
    width: 75%;
    max-width: 200px;
    height: auto;
}
@media (max-width: 767.98px) {
    .awards-img {
        width: 30%;
    }
}

/* контакты */

.contact-card {
            margin-bottom: 30px;
            border: none;
            box-shadow: 0 0 15px rgba(0,0,0,0.1);
            transition: transform 0.3s;
        }
        .contact-card:hover {
            transform: translateY(-5px);
        }
        .contact-icon {
            font-size: 2rem;
            margin-bottom: 1rem;
            color: #0d6efd;
        }
        .person-card {
            border-left: 4px solid #B59C6B;
            padding-left: 15px;
            margin-bottom: 20px;
        }
        .person-name {
            font-weight: 600;
            margin-bottom: 5px;
        }
        .person-position {
            color: #6c757d;
            font-size: 0.9rem;
            margin-bottom: 10px;
        }
  .card-body {
    background-color: #ffffff;
    border: 1px solid transparent;
    border-radius: 10px;
    transition: border-color 0.3s;
  }
  .card-body:hover {
        border-color: #B59C6B;
    }

.text-hide-opt {display:none;}

/* активная страница поиска */

.pagination-current {
    font-size: 20px;
    background-color: #f8ebe1;
    font-weight: 800;
    padding: 10px;
}
