/* Основные стили */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #fff;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Карточка меню */
.card {
    --card-border-width: none;
	border: none;
    border-radius: none;
    padding: 0;
}

/* Стили для меню */
.mod-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin: 0;
}

.nav-item a {
    display: block;
    padding: 0 10px;
}

.mod-list li ul li {
    padding: .07em 0;
}

.nav-item a:hover {
    color: #0026ff;
}

.mod-list li.active>a {
    text-decoration: none;
}

/* Стили для вложенного меню */
.mod-menu__sub {
    padding-left: 20px;
    margin: 10px 0 0 0;
}

.mod-menu__sub .nav-item a:hover {
    color: #ff0000;
}

/* Адаптивное меню */
@media (max-width: 768px) {
    .nav-item a {
        padding: 10px;
    }
    
    .mod-menu__sub {
        padding-left: 10px;
    }
    
    .mod-menu__sub .nav-item a {
        padding: 8px 10px;
    }
}

/* Стили для основного контента */
.container {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    gap: 20px;
}

.content {
    flex: 1;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sidebar {
    flex: 0 0 250px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .sidebar {
        flex: 1;
    }
}

/* Заголовки */
h1 {
    color: #0056b3!important;
}

h2 {
    color: #333!important;
}

/* Дополнительные стили */
.breadcrumb {
    background-color: #fff!important;
}

.breadcrumb a {
    color: #007bff!important;
    text-decoration: none!important;
}

.breadcrumb a:hover {
    text-decoration: underline!important;
}

/* Адаптивная сетка для миниатюр */
.color-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}


.item-color {

    padding: 5px;
    text-align: center;
    width: 95%;
    position: relative;
     margin-bottom: 10px;
}

.item-color img {
    width: 100%;
    height: auto;
    border-radius: 10px;
	padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
	    margin: 10px 0;
}

@media (max-width: 768px) {
    .color-categories {
        grid-template-columns: 1fr;
    }
    
    .item-color {
        margin-bottom: 20px;
    }
}

/* Стили для header */
header.header {
    background-color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-image: none;
    border-bottom: 1px solid #ccc;
}

header.header .navbar-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

header.header .navbar-brand a .logo {
    height: 50px;
    margin-right: 15px;
}

header.header .container-nav {
    display: flex;
    align-items: center;
}

header.header .container-nav .nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

header.header .container-nav .nav-item {
    margin-left: 20px;
}

header.header .container-nav .nav-item a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

header.header .container-nav .nav-item a:hover {
    color: #ff0000;
}

@media (max-width: 768px) {
    header.header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    header.header .container-nav {
        margin-top: 10px;
        width: 100%;
        justify-content: flex-start;
    }
    
    header.header .container-nav .nav-item {
        margin-left: 0;
        margin-right: 20px;
    }
}

/* Новые стили для бокового меню */
.sidebar-left .card-header {
    border-bottom: 2px solid #ccc;
    font-size: 1.5rem;
}

.sidebar-left .mod-menu > .nav-item > a {
    border-bottom: 1px solid #ccc;
    color: #333;
    font-weight: bold;
}

.sidebar-left .mod-menu > .nav-item > a:hover {
    color: #ff0000;
}

.sidebar-left .mod-menu__sub .nav-item > a {
    font-weight: 100;
    padding: 0 15px;
    color: #333;
}

.sidebar-left .mod-menu__sub .nav-item > a:hover {
    color: #ff0000;
}

.sidebar-left .mod-menu__sub .nav-item {
    margin-bottom: 0;
}

/* Новые стили для верхнего меню */
.container-nav > .mod-menu > .nav-item > a:hover {
    color: #ff0000;
}

/* Новые стили для блока с информацией об авторе и дате */
.article-info {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
}

.article-info dd,
.article-info dt {
    display: inline;
    margin: 0;
}

.article-info dt::after {
    content: ":";
}
.item-color img:hover {
transform: scale(1.05);
}
.item-color a {
    text-decoration: none;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    font-size: 14px;
}

.icon-location:before {
    content: none;
}
@media (max-width: 768px) {
    .item-color {
        margin-bottom: 20px;
        margin-left: auto;
        margin-right: auto;
    }
}
/* Адаптивное меню */
@media (max-width: 768px) {
    .nav-item a {
        padding: 10px;
        font-size: 1.5em; /* Увеличение размера шрифта */
    }

    .mod-menu__sub {
        padding-left: 10px;
    }

    .mod-menu__sub .nav-item a {
        padding: 8px 10px;
        font-size: 1.4em; /* Увеличение размера шрифта для вложенного меню */
    }
}
.page-header {
    padding: 20px 0;
}

/* Основной стиль модального окна */
#sigplus-bootstrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Затемняющий фон */
    z-index: 1050; /* Модальное окно будет поверх всех остальных элементов */
    display: none; /* Окно скрыто */
}

/* Отображение модального окна */
#sigplus-bootstrap.show {
    display: block; /* Делает окно видимым */
}

/* Модальный диалог */
#sigplus-bootstrap .modal-dialog {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Вертикальное центрирование */
    margin: 2rem auto; /* Отступы сверху и снизу */
    max-height: calc(100% - 8rem); /* Ограничение высоты */
    max-width: 50%; /* Ограничение ширины */
    background-color: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Тень */
    overflow: hidden; /* Скрываем излишки */
}

/* Модальное содержимое */
#sigplus-bootstrap .modal-content {
    display: flex;
    flex-direction: column;
    max-height: 100%; /* Ограничение высоты */
    overflow: hidden;
	border:none;
}

/* Заголовок модального окна */
#sigplus-bootstrap .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

/* Кнопка закрытия */
#sigplus-bootstrap .btn-close {
    
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
}

/* Основная область с изображением */
#sigplus-bootstrap .modal-body {
    flex: 1; /* Заполняет оставшееся пространство */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 5px;
    overflow-y: auto; /* Прокрутка, если содержимое превышает высоту */
}

/* Изображения в модальном окне */
#sigplus-bootstrap .modal-body img {
    max-width: 60%; /* Изображение занимает 90% ширины */
    max-height: 60vh; /* Ограничение высоты */
    margin: 5px;
}


/* Нижний футер с кнопками */
#sigplus-bootstrap .modal-footer {
    display: flex;
    justify-content: center;
    padding: 10px;

    flex-wrap: wrap; /* Кнопки переносятся на новую строку при необходимости */
    gap: 10px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 576px) {
    #sigplus-bootstrap .modal-dialog {
        margin: 0.5rem auto;
        max-width: calc(100% - 1rem); /* Увеличиваем доступную ширину */
    }

    #sigplus-bootstrap .modal-body img {
        max-width: 100%; /* Изображение занимает 100% ширины */
        max-height: 50vh; /* Уменьшаем высоту для мобильных */
    }

    #sigplus-bootstrap .modal-footer {

        align-items: stretch; /* Растягиваем кнопки */
    }
}
#sigplus-bootstrap .btn {
    display: inline-block;
    width: 220px;
    height: 45px;
    font-size: 0.8rem; /* Размер текста */
    font-weight: 600; /* Жирность текста */
    text-align: center; /* Выравнивание текста */
    text-decoration: none; /* Убираем подчеркивание */
    border-radius: 0.375rem; /* Скругленные углы */
    border: none; /* Убираем рамку */

}


/* Адаптация для мобильных устройств */
@media (max-width: 576px) {
    #sigplus-bootstrap .btn {
        font-size: 0.875rem; /* Уменьшаем текст на мобильных */
        padding: 0.5rem; /* Уменьшаем отступы */
    }
}
@media (max-width: 576px) { #sigplus-bootstrap .modal {
--modal-margin: 1.25rem !important;
    }
}



* Добавляем стили, чтобы фон модального окна был кликабельным */
#sigplus-bootstrap.show {
    pointer-events: auto; /* Включаем взаимодействие с фоном */
}

/* Фон модального окна */
#sigplus-bootstrap {
    pointer-events: none; /* По умолчанию фон не кликабельный */
}

/* Обработчик клика по фону */
#sigplus-bootstrap.show {
    pointer-events: auto; /* Фон становится кликабельным, когда окно открыто */
}

/* Реклама внутри модального окна */
#sigplus-bootstrap .modal-advertisement {
    width: 100%; /* Растягиваем на всю ширину блока */
    height: 160px; /* Фиксированная высота */
    overflow: hidden; /* Обрезаем все, что выходит за пределы */
    display: flex;
    justify-content: center; /* Центрируем содержимое */
    align-items: center; /* Центрируем содержимое */

}

/* Стили для рекламы */
#sigplus-bootstrap .modal-advertisement > div,
#sigplus-bootstrap .modal-advertisement > ins {
    max-width: 100%; /* Реклама не выходит за пределы по ширине */
    max-height: 100%; /* Реклама не выходит за пределы по высоте */
    object-fit: contain; /* Масштабирование без искажения */
}
/* Реклама в мобильной версии */
@media (max-width: 576px) {
    #sigplus-bootstrap .modal-advertisement {
        height: 120px; /* Уменьшаем высоту блока рекламы для мобильных */
        padding: 0; /* Убираем лишние отступы */
        box-sizing: border-box; /* Учитываем отступы внутри блока */
    }

    #sigplus-bootstrap .modal-advertisement > div,
    #sigplus-bootstrap .modal-advertisement > ins {
        max-width: 100%; /* Реклама не выходит за пределы по ширине */
        max-height: 100%; /* Реклама не выходит за пределы по высоте */
        object-fit: contain; /* Масштабирование без искажения */
    }
}



#sigplus_1001 a.sigplus-image > img {

    border: 1px solid #ddd !important;
    margin: 5px;
	padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, .75);
}
.captionplus>.captionplus-overlay.captionplus-mouseover {
     visibility: visible!important;
	 position: relative;
}
.captionplus-overlay {
background: none!important;
    color: #333!important;
}
.captionplus-overlay {
    height: 15%!important;
}
label.finder {
    display: none;
}

@media (width >= 576px) {
    .modal {
        --modal-margin: 1.25rem!important;

    }
}
.mod-menu {
    list-style: none; /* Убираем маркеры списка */
    padding: 0; /* Убираем внутренние отступы */

}

.mod-menu li {
    display: block; /* Отображаем каждый элемент списка в виде блока в одной линии */
    margin-right: 10px; /* Отступ между каждым элементом списка (можно настроить по желанию) */
}

.mod-menu li:last-child {
    margin-right: 0; /* Убираем отступ справа у последнего элемента списка */
}

.mod-menu a {
    text-decoration: none; /* Убираем подчеркивание у ссылок */
    color: #000; /* Цвет ссылок (можно настроить по вашему желанию) */
}
.footer .mod-menu {
    display: inline-block;
}
.header .navbar-brand img {
    height: 70px;
}
.site-grid {
grid-template-columns: [full-start] minmax(0, 1fr) [main-start] repeat(4, minmax(0, 19.875rem)) [main-end] minmax(0, 1fr) [full-end];
grid-gap: 0 1em;
padding: 0;
}
.container-sidebar-left {
    padding: 0;
}
.nav {
    gap: 0;
}
.container-component {
    padding: 0;
}
.footer a:not(.btn):hover, .footer a:not(.btn):focus, .footer .btn-link:hover, .footer .btn-link:focus {
    color: #b3b6ff;
}
.nav-item a:hover {
   background-color: transparent;
}
.captionplus-horizontal-center.captionplus-vertical-center {
    transform: translate(0, 0)!important;
	    left: 0!important;
}
.captionplus-align {
    position: relative!important;
	}
.captionplus-overlay.captionplus-bottom.captionplus-mouseover {
    max-width: 240px;
}
.menu-navigation {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9; /* Светло-серый фон для блока */
    border: 1px solid #000; /* Легкая граница */
    border-radius: 5px; /* Скругленные углы */
}

.menu-navigation p {
    font-size: 18px;
    color: #333;
    font-weight: bold;
    margin-bottom: 10px;
}

.menu-navigation a {
    display: block; /* Или use display: inline-block; */
    margin-bottom: 8px; /* Отступ между ссылками */
    font-size: 16px;
    color: #007bff; /* Синий цвет ссылок */
    text-decoration: none;
}

.menu-navigation a:hover {
    text-decoration: underline;
    color: #0056b3; /* Более темный синий цвет при наведении */
}

nav-item > a {
    text-decoration: none;
}

/* Добавляем подчеркивание у дочерних ссылок */
.mod-menu__sub .nav-item a {
    text-decoration: underline;
}

/* Или более специфичный вариант для второго уровня */
.nav-item.deeper .mod-menu__sub .nav-item a {
    text-decoration: underline;
}

/* Для списка в футере */
footer .mod-menu.mod-list.nav {
    display: flex !important;
    flex-direction: row !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Для элементов меню */
footer .mod-menu.mod-list.nav .nav-item {
    display: inline-block !important;
    margin-right: 15px !important;
}

/* Убираем отступ у последнего элемента */
footer .mod-menu.mod-list.nav .nav-item:last-child {
    margin-right: 0 !important;
}
div.mod-languages ul li.lang-active {
    background-color: unset;
}


/* Делаем подпись жирной и прижимаем к верху */
.captionplus-overlay.captionplus-bottom {
    top: auto !important; /* Сбрасываем позиционирование */
    bottom: 0 !important; /* Прижимаем к низу картинки */
    background: rgba(0, 0, 0, 0.6); /* Полупрозрачный фон для лучшей читаемости */
        padding: 0 0 8px 0;
}

/* Центрируем текст и делаем его жирным */
.captionplus-align div {
    font-weight: bold !important; /* Жирный шрифт */
color: #3a3d97;
    text-align: center !important; /* Центрируем текст */
    margin: 0 !important; /* Убираем отступы */
    padding: 0 5px !important; /* Небольшие отступы по бокам */
}

/* Убираем возможные отступы у списка */
.sigplus-gallery ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Опционально: добавляем небольшой отступ между картинками */
.sigplus-gallery li {
    margin-bottom: 15px !important;
}

.modal-footer {

  border-top:none!important;
  }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
  margin-bottom: 40px;
}

/* На мобильных – один столбец */
@media (max-width: 700px) {
  .gallery {
    grid-template-columns: 1fr;
    margin-bottom: 30px;
  }
}

/* Оформление каждого блока figure */
figure {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  margin: 0;
}

figure:hover {
  
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Ссылка-обертка изображения */
figure a {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Изображение */
figure img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid #eee;
  transition: opacity 0.3s ease;
}

figure img:hover {
  opacity: 0.95;
}

/* Подпись под изображением */
figcaption {
  text-align: center;
  padding: 10px 5px;
  font-size: 0.95rem;
  background: #fff;
}

figcaption a {
  color: #0073aa;
  text-decoration: none;
  font-weight: 500;
  word-break: break-word;
}

figcaption a:hover {
  text-decoration: underline;
}

/* Оптимизация для SEO и UX */
figure[itemtype*="ImageObject"] img {
  aspect-ratio: 3 / 4; /* помогает стабилизировать макет при lazy-loading */
  object-fit: cover;
}

@media (prefers-color-scheme: dark) {
  body {
    background: #111;
    color: #eee;
  }
  figure {
    background: #1a1a1a;
    box-shadow: 0 2px 6px rgba(255, 255, 255, 0.05);
  }
  figcaption a {
    color: #4cb3ff;
  }
}
.figure-item img {
  width: 100%;        /* изображение подстраивается под контейнер */
  max-width: 400px;   /* максимум для ПК */
  height: auto;       /* сохраняем пропорции */
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  object-fit: cover;
}