@import url(color-scheme.css);
html, body { overflow-x: hidden; }
body {
  background: var(--body-bg);
}

.container-fluid {
  padding: 0 60px;
}
.top-bar {
  background-color: var(--main-color);
  color: var(--white);
  font-size: 0.9rem;
  display: flex;
  align-items: stretch;
}

.top-bar .address {
  max-width: 690px;
  max-height: 45px;
  overflow: hidden;
}

.top-bar a {
  align-items: center;
  color: var(--white);
  text-decoration: none;
  padding: 4px 10px;
  display: flex;
  height: 100%;
  transition: background-color 0.3s;
}

.top-bar a:hover {
  background-color: var(--main-color-hover);
}

.lang .lang-active {
  background-color: var(--main-color-active);
}

.top-bar .eye i {
  margin-right: 5px;
}

.header .logo-title h5 {
  font-weight: 700;
  margin-bottom: 0.1rem;
}

.header .logo-title small {
  color: var(--gray);
}

.social-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--main-color);
  color: var(--white);
  margin-left: 8px;
  text-decoration: none;
}

.main-menu {
  background-color: var(--main-color);
}

.main-menu a {
  color: var(--white) !important;
  font-weight: 600;
}

.search-form {
  min-width: 120px;
  max-width: 280px;
}

.search-form input {
  padding-right: 2.2rem;
  min-width: 80px;
  flex: 1 1 80px;
}

.search-form button {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  background-color: var(--main-color);
  border: none;
  --bs-btn-padding-y: 0.47rem;
}

.header {
  padding-top: 15px;
  padding-bottom: 15px;
}

.social-circle:hover,
.search-form button:hover {
  background-color: var(--main-color-hover);
  color: var(--white);
}

.social-circle:active,
.btn-check:checked + .btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check) + .btn:active {
  background-color: var(--main-color-active);
  color: var(--white);
}

.header .logo {
  display: flex;
  align-items: center;
  max-height: 100px;
  overflow: hidden;
  margin-right: 20px;
  height: 100px;
  max-width: 250px;
  justify-content: center;
  flex-shrink: 0;
}

.header .logo img {
  max-height: 100px;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* Для многострочного названия */
.site-title {
  flex: 1 1 0;
  min-width: 0;
}

.site-title h1 {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0;
  line-height: 1.2;
  word-break: break-word;
}

.burger-icon {
  width: 24px;
  height: 18px;
  position: relative;
  display: inline-block;
  transition: transform 0.3s ease;
}
.burger-icon span {
  background: var(--burger-bar);
  display: block;
  height: 2px;
  border-radius: 1px;
  margin: 4px 0;
  transition: all 0.3s ease;
}
.burger-icon.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.burger-icon.active span:nth-child(2) {
  opacity: 0;
}
.burger-icon.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -1px;
}

.b-full-width .navbar-nav {
  display: flex;
  width: 100%;
}

.b-full-width .navbar-nav > li {
  flex: 1 1 0;
  text-align: center;
}

.is-initializing {
  opacity: 0;
}
.initialized {
  opacity: 1;
  flex-wrap: wrap;
}
.bilim-menu {
  box-shadow: rgba(0, 0, 0, 0.04) -1.362px 2.673px 7px 0px;
}

.bilim-menu {
  background-color: var(--menu-bg);
}

.bilim-menu .navbar {
  padding: 0px 0px;
  /* background-color: var(--menu-bg); */
}

.bilim-menu .navbar-nav .nav-link {
  padding: 15px 30px;
  text-transform: uppercase;
  transition: all 0.2s, color 0.2s;
  white-space: nowrap;
}
.navbar .navbar-nav > .nav-item > .nav-link {
  color: var(--menu-link-color);
}

.bilim-menu .navbar-nav .nav-link.nav-link.disabled,
.bilim-menu .navbar-nav .nav-link.nav-link:disabled {
  color: var(--bs-nav-link-disabled-color);
}

.bilim-menu .nav-item:hover > .nav-link,
.bilim-menu .nav-item > .nav-link.show {
  color: var(--menu-link-hover-color);
  background-color: var(--menu-link-hover-bg);
}

.bilim-menu .dropdown-item {
  padding: 7px 30px;
}

.bilim-menu #offcanvas-toggler {
  position: absolute;
  right: 10%;
  top: 10%;
}

.navbar .nav-link {
  color: var(--dropdown-item-color);
  font-weight: 600;
  padding: 8px 15px;
  transition: all 0.2s, color 0.2s;
}



/* .navbar .nav-link:hover {
  color: var(--menu-link-hover-color);
} */

.navbar .nav-link.active,
.navbar .nav-item.active .nav-link,
.navbar .nav-link.show {
  background-color: var(--main-color);
  color: var(--menu-link-active-color);
}

.dropdown-item {
  color: var(--dropdown-item-color);
}

.dropdown-submenu:hover > .dropdown-item {
  background-color: var(--dropdown-item-bg-hover);
  color: var(--dropdown-item-hover-color);
}

.dropdown-item:hover {
  background-color: var(--dropdown-item-bg-hover);
  color: var(--dropdown-item-hover-color);
}

.dropdown-item.active,
.dropdown-submenu:hover > .dropdown-item.active {
  background-color: var(--main-color);
  color: var(--dropdown-item-active-color);
}

#overflow-menu {
  max-width: 100px;
}

#overflow-menu > .dropdown-toggle::after {
  display: none; /* уберём стрелку */
}

#overflow-menu .dropdown,
#overflow-menu .dropdown-submenu {
  position: relative;
}

#overflow-menu .dropdown > .dropdown-menu,
#overflow-menu .dropdown-submenu > .dropdown-menu {
  top: 0;
  right: 100%; /* именно это открывает меню влево */
  left: auto !important; /* перекрывает возможное наследование left от Bootstrap */
  margin-top: -0.125rem;
  display: none;
  position: absolute;
}

/* #overflow-menu .dropdown-submenu:hover > .dropdown-menu { */
#overflow-menu .dropdown:hover > .dropdown-menu,
#overflow-menu .dropdown-submenu:hover > .dropdown-menu {
  display: block;
  border-radius: 0;
}

#overflow-menu .dropdown-menu > li:hover > a {
  background-color: var(--main-color);
  color: var(--menu-link-active-color);
}

#overflow-menu .dropdown-menu li.dropdown a::after {
  display: none;
}
#overflow-menu > .dropdown-menu .dropdown-toggle::before {
  display: inline-block;
  margin-right: 0.4em; /* Отступ между стрелкой и текстом */
  vertical-align: 0.255em;
  content: "";
  border-right: 0.3em solid; /* Стрелка вправо (базовая форма) */
  border-top: 0.3em solid transparent;
  border-bottom: 0.3em solid transparent;
  transform: translateX(-2px);
  position: absolute;
  top: 50%;
  left: 23px;
  margin-top: -3px;
}

.navbar-expand-lg .navbar-nav .dropdown-menu-end {
  right: 0;
  margin-top: 0;
}

.top-bar .eye,
.top-bar .lang {
  white-space: nowrap;
}

.top-bar .container {
  gap: 15px;
}

#offcanvas-toggler {
  margin-left: 15px; /* Замените 15px на желаемый размер отступа */
}
.offcanvas-header .btn-close {
  padding: 15px;
  position: absolute;
  right: 15px;
  top: 15px;
}

.offcanvas-header-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
  gap: 15px;
}
.offcanvas-header .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  max-height: 80px;
  overflow: hidden;
  height: 100px;
  max-width: 100%;
  flex-shrink: 0;
}

.offcanvas-header .logo img {
  max-height: 80px;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* Общие стили для всех кнопок-языков в offcanvas */
.offcanvas .lng a {
  display: block;
  padding: 5px 10px;
  font-size: 0.9rem;
  border: 1px solid var(--main-color); /* Тонкая рамка */
  background-color: transparent; /* Прозрачный фон */
  color: var(--main-color); /* Цвет текста */
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
  font-weight: 600;
}
.offcanvas .d-flex.flex-row .lng {
  margin: 0 5px; /* Текущий отступ */
}
/* Стили для активной кнопки */
.offcanvas .lng.lang-active a {
  background-color: var(--main-color); /* Синий фон для активного языка */
  color: var(--white); /* Белый текст */
  pointer-events: none; /* Запрещаем клик по активной кнопке */
}

/* Стили при наведении на кнопку */
.offcanvas .lng a:hover {
  background-color: var(--main-color-hover);
  color: var(--white);
}

.offcanvas-header-wrap .offcanvas-title {
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  word-break: break-word;
}

.flex-column .offcanvas-title {
  margin-top: 25px;
}

.flex-column .logo + .offcanvas-title {
  margin-top: 0;
}

.offcanvas-header .offcanvas-title-wrap.flex-row {
  margin-top: 25px;
}
.offcanvas-header .offcanvas-title-wrap.flex-row .offcanvas-title {
  text-align: left;
}

.offcanvas-header .offcanvas-title-wrap.flex-row .logo {
  max-width: 150px;
}

.navbar-nav .dropdown-menu {
  border-radius: 0;
  margin-top: 0;
  /* padding-left: 10px; */
}

.header__bg {
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--header-bg-color);
}

.header__bg .header__overlay {
  background-color: var(--overlay-bg-color);
}

.header__bg .header .logo-title small {
  color: var(--header-bg-color);
}

.header__bg .header {
  padding-top: 50px;
  padding-bottom: 50px;
}

.header__bg .burger-icon span {
  background: var(--burger-bar-white);
}

.header__bg .logo-title {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.header__bg .search-form input {
  -webkit-box-shadow: 0 5px 10px 1px rgba(0, 0, 0, 0.5);
  box-shadow: 0 5px 10px 1px rgba(0, 0, 0, 0.5);
}

.header__bg .social-circle {
  -webkit-box-shadow: 0 5px 10px 1px rgba(0, 0, 0, 0.5);
  box-shadow: 0 5px 10px 1px rgba(0, 0, 0, 0.5);
}

.custom__header {
  -webkit-box-shadow: 0 0px 5px 1px rgba(0, 0, 0, 0.3);
  box-shadow: 0 0px 5px 1px rgba(0, 0, 0, 0.3);

  position: relative;
  z-index: 10;
}
/* ======================
   bilimSwiper
======================== */
#bilimSlider-full.bilimSwiper {
  height: 70vh;
}

#bilimSlider-content.bilimSwiper {
  height: 400px;
  margin-bottom: 30px;
}

.bilimSwiper {
  width: 100%;
  min-height: 400px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  z-index: 1;
}

.bilimSwiper .swiper-wrapper {
  height: 100%;
  box-sizing: border-box;
}

.bilimSwiper .swiper-slide {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center; /* центр по вертикали */
  justify-content: center; /* центр по горизонтали */
  box-sizing: border-box;
  overflow: hidden;
}

.bilimSwiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

/* Контент поверх изображения */
.bilimSwiper .slide-content {
  position: relative;
  z-index: 2;
  max-width: 80%;
  padding: 30px;
  text-align: center;
  /*background: rgba(0, 0, 0, 0.45);*/
  /*backdrop-filter: blur(4px);*/
  color: #fff;
}

.bilimSwiper .slide-content h3 {
  margin: 0 0 15px;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
}

.bilimSwiper .slide-content p {
  margin: 0 0 20px;
  font-size: 1.125rem;
  line-height: 1.6;
}

/* Кнопки */
.bilimSwiper .slide-content .btn {
  display: inline-block;
  padding: 10px 22px;
  margin: 0 8px;
  font-size: 1rem;
  background-color: var(--main-color, #0056d2);
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  transition: background-color 0.3s ease;
  font-weight: 500;
}

.bilimSwiper .slide-content .btn:hover {
  background-color: var(--main-color-hover, #003ea1);
}

/* Стрелки */
.bilimSwiper .swiper-button-next,
.bilimSwiper .swiper-button-prev {
  color: var(--white);
  text-shadow: 0 0 5px #000;
  width: 40px;
  height: 40px;
  z-index: 2;
}

/* Пагинация */
.bilimSwiper .swiper-pagination-bullet {
  background: var(--white);
  opacity: 0.7;
}

.bilimSwiper .swiper-pagination-bullet-active {
  background: var(--main-color);
  opacity: 1;
}

.bilimSwiper .swiper-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.bilimSwiper .swiper-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bilimSwiper .slide-content + .swiper-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--overlay-bg-color);
  z-index: 1;
}

.btn-blue {
  background: linear-gradient(45deg, var(--main-color), var(--main-color-hover));
  color: #fff;
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(var(--btn-box-shadow), 0.3);
  transition: all 0.3s ease;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
}

.btn-blue:hover {
  background-position: right center;
  background: linear-gradient(45deg, var(--main-color-hover), var(--main-color));
  color: #e0eaff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(var(--btn-box-shadow), 0.4);
}

#bilim-about {
  padding: 30px 0;
}

.bilim-about-main {
  width: 100%;
  margin-bottom: 15px;
}

.bilim-about-main {
  width: 100%;
  height: 340px;
}

.bilim-about-main .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bilim-about-thumbs {
  height: 100px;
  box-sizing: border-box;
  padding: 10px 0;
}

.bilim-about-thumbs .swiper-slide {
  width: 25%;
  height: 100%;
  opacity: 0.5;
  cursor: pointer;
  transition: 0.3s;
}

.bilim-about-thumbs .swiper-slide-thumb-active {
  opacity: 1;
  border: 3px solid var(--main-color);
}

.bilim-about-thumbs .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s;
}

/**************************/

.menu_icons {
  display: flex;
  flex-wrap: wrap;
  /* padding: 30px 0; */
  padding: 0;
  justify-content: flex-start;
  gap: 20px;
}

.menu_icons li {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: 10px;
  border: 1px solid var(--block-border-color);
  height: 220px;
  background-color: var(--block-bg-color);
  width: calc(25% - 16px);
  margin: 0;
  padding: 10px;
  text-align: center;
  box-sizing: border-box;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease-out, all 0.3s ease-out;
}

.menu_icons li a {
  display: flex;
  flex-direction: column;
  text-align: center;
  color: var(--menu-icons-color);
  text-decoration: none;
  align-items: center;
  margin: 0 auto;
}

.menu_icons li a i,
.menu_icons li a svg,
.menu_icons li a iconify-icon.qi-icon {
  display: block;
  width: 78px;
  height: 78px;
  margin-bottom: 30px;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  font-size: 78px;
  color: var(--main-color);
}
.menu_icons li:hover iconify-icon.qi-icon {
  color: var(--white);
}

.menu_icons li a .name {
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  line-height: normal;
}

/* Icon specific styles */
.menu_icons li a.government i {
  background: url(../img/icons/government.png) no-repeat 50% 50%;
}

.menu_icons li:hover a.government i {
  background: url(../img/icons/government-hover.png) no-repeat 50% 50%;
}

.menu_icons li a.diary i {
  background: url(../img/icons/diary.png) no-repeat 50% 50%;
}

.menu_icons li:hover a.diary i {
  background: url(../img/icons/diary-hover.png) no-repeat 50% 50%;
}

.menu_icons li a.book i {
  background: url(../img/icons/book.png) no-repeat 50% 50%;
}

.menu_icons li:hover a.book i {
  background: url(../img/icons/book-hover.png) no-repeat 50% 50%;
}

.menu_icons li a.kon i {
  background: url(../img/icons/kon.png) no-repeat 50% 50%;
}

.menu_icons li:hover a.kon i {
  background: url(../img/icons/kon-hover.png) no-repeat 50% 50%;
}

.menu_icons li a.knight i {
  background: url(../img/icons/knight.png) no-repeat 50% 50%;
}

.menu_icons li:hover a.knight i {
  background: url(../img/icons/knight-hover.png) no-repeat 50% 50%;
}

.menu_icons li a.coin i {
  background: url(../img/icons/coin.png) no-repeat 50% 50%;
}

.menu_icons li:hover a.coin i {
  background: url(../img/icons/coin-hover.png) no-repeat 50% 50%;
}

.menu_icons li a.soup i {
  background: url(../img/icons/soup.png) no-repeat 50% 50%;
}

.menu_icons li:hover a.soup i {
  background: url(../img/icons/soup-hover.png) no-repeat 50% 50%;
}

.menu_icons li a.playground i {
  background: url(../img/icons/playground.png) no-repeat 50% 50%;
}

.menu_icons li:hover a.playground i {
  background: url(../img/icons/playground-hover.png) no-repeat 50% 50%;
}

.menu_icons li:hover {
  background: #0063c3;
  color: #fff;
}

.menu_icons li:hover a {
  color: #fff;
}

.menu_icons li:hover i {
  color: #fff;
}

/*************************/

.sidebar-nav,
.sidebar .block > div {
  -webkit-box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3);
}

.entry-content .gallery {
  clear: both;
}

/***************************/

.block .virtual {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  background: var(--sidebar-bg-color);
  overflow: hidden;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
}

.block .virtual .photo {
  overflow: hidden;
  width: 50%;
  position: relative;
  text-align: center;
}

.block .virtual .photo .pic {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.block .virtual .photo .pic img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  transition: all 0.3s linear;
}
.block .virtual .photo .overlay {
  position: absolute;
  background: -moz-linear-gradient(top, rgba(255, 255, 255, 0) 0%, rgba(219, 219, 219, 0) 14%, rgba(0, 0, 0, 0.6) 100%); /* FF3.6-15 */
  background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0) 0%, rgba(219, 219, 219, 0) 14%, rgba(0, 0, 0, 0.6) 100%); /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(219, 219, 219, 0) 14%, rgba(0, 0, 0, 0.6) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#99000000',GradientType=0 ); /* IE6-9 */
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.block .virtual .txt {
  overflow: hidden;
  width: 50%;
  padding: 15px;
  background: var(--sidebar-bg-color);
  min-height: 240px;
  display: flex;
  flex-direction: column;
}

.block .virtual .photo .block_name {
  max-height: calc(2.5em);
  width: 90%;
  position: absolute;
  bottom: 0;
  left: 5%;
  text-align: center;
  color: var(--white);
  text-transform: uppercase;
  font-weight: bold;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
}

.block .virtual .photo .block_name div {
  margin: 0 auto;
  margin-bottom: 25px;
}

.block .virtual .txt .name {
  font-size: 20px;
  text-align: center;
  font-weight: bold;
  margin: 10px 0;
}

.block .virtual .txt .stat {
  font-size: 14px;
  line-height: 24px;
  text-align: center;
  margin-top: 15px;
  margin-bottom: 30px;
}

.block .virtual .txt .stat span {
  font-weight: bold;
  font-size: 18px;
}

.block .virtual .txt .btn {
  margin: 0 auto;
  margin-top: 15px;
}

/*************************/

.block .symbols ul {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.block .symbols ul li {
  text-align: center;
}

.block .symbols ul li img {
  display: block;
  margin: 0 auto;
}

.block .symbols ul li .image-title {
  margin-top: 10px;
  display: block;
}

/*************************/

.block .posl {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  background: var(--sidebar-bg-color);
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  overflow: hidden;
}

.block .posl .photo {
  overflow: hidden;
  width: 100%;
  min-height: 240px;

  position: relative;
  text-align: center;
}

.block .posl .photo .pic {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.block .posl .photo .pic img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  transition: all 0.2s linear;
}
.block .posl .photo .overlay {
  position: absolute;
  background: -moz-linear-gradient(top, rgba(255, 255, 255, 0) 0%, rgba(219, 219, 219, 0) 14%, rgba(0, 0, 0, 0.6) 100%); /* FF3.6-15 */
  background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0) 0%, rgba(219, 219, 219, 0) 14%, rgba(0, 0, 0, 0.6) 100%); /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(219, 219, 219, 0) 14%, rgba(0, 0, 0, 0.6) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#99000000',GradientType=0 ); /* IE6-9 */
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.block .posl .photo .block_name {
  max-height: calc(2.5em);

  width: 90%;
  position: absolute;
  bottom: 0;
  left: 5%;

  text-align: center;
  color: var(--white);
  text-transform: uppercase;

  font-size: 14px;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
}

.block .posl .photo .block_name a {
  color: var(--white);
  text-decoration: none;
}

.block .posl .photo .block_name a:hover {
  text-decoration: underline;
}
.block .posl .photo .block_name div {
  margin: 0 auto;
  margin-bottom: 25px;
}

.block .posl .photo .block_name div p {
  margin-bottom: 0;
}

.block .img_block {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  background: var(--sidebar-bg-color);
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  overflow: hidden;
}

.block .img_block .photo {
  overflow: hidden;
  width: 100%;
  min-height: 240px;
  position: relative;
  text-align: center;
}

.block .img_block .photo .pic {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.block .img_block .photo .pic img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  transition: all 0.2s linear;
}
.block .img_block .photo .overlay {
  position: absolute;
  background: -moz-linear-gradient(top, rgba(255, 255, 255, 0) 0%, rgba(219, 219, 219, 0) 14%, rgba(0, 0, 0, 0.6) 100%); /* FF3.6-15 */
  background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0) 0%, rgba(219, 219, 219, 0) 14%, rgba(0, 0, 0, 0.6) 100%); /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(219, 219, 219, 0) 14%, rgba(0, 0, 0, 0.6) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#99000000',GradientType=0 ); /* IE6-9 */
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.block {
  margin-bottom: 15px;
  margin-top: 15px;
  position: relative;
}

/**************************/

.sidebar .block {
  margin-top: 0;
  margin-bottom: 30px;
}

.sidebar .block .virtual {
  flex-direction: column;
}
.sidebar .block .virtual .photo {
  width: 100%;
}

.sidebar .block .virtual .photo .pic img {
  position: relative;
  left: auto;
  top: auto;
  transform: inherit;
}
.sidebar .block .virtual .photo .sidebar .block_name {
  font-size: 14px;
}
.sidebar .block .virtual .photo .sidebar .block_name div {
  margin-bottom: 15px;
}
.sidebar .block .virtual .txt {
  width: 100%;
  min-height: auto;
}
.sidebar .block .virtual .txt .name {
  font-size: 18px;
}
.sidebar .block .virtual .txt .stat {
  margin-bottom: 0;
  margin-top: 0;
}

.sidebar-nav,
.sidebar .block > div {
  -webkit-box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3);
}

.sidebar .nws {
  margin-bottom: 15px;
}

.sidebar .submenu {
  margin-bottom: 30px;
}

.submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.submenu li {
  display: block;
}

.submenu li > a:hover,
.submenu li.active > a,
.submenu li > a.active {
  background: var(--main-color);
  color: var(--white);
}

.sidebar-nav ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav .metismenu {
  display: flex;
  flex-direction: column;
}

.sidebar-nav .metismenu li + li {
  margin-top: 1px;
}

.sidebar-nav .metismenu li:first-child {
  margin-top: 0px;
}
.sidebar-nav .metismenu li:last-child {
  margin-bottom: 0px;
}

.sidebar-nav .metismenu > li {
  display: flex;
  flex-direction: column;
  position: relative;
}
.sidebar-nav .metismenu a {
  position: relative;
  display: block;
  padding: 13px 15px;
  color: var(--block-text-color);
  transition: all 0.3s ease-out;
  text-decoration: none;
  overflow-wrap: break-word;
  white-space: normal;
  font-size: 13px;
  text-transform: uppercase;
  background: var(--sidebar-bg-color);
}

.sidebar-nav .metismenu ul a {
  padding: 10px 15px 10px 30px;
}

.sidebar-nav .metismenu ul ul a {
  padding: 10px 15px 10px 45px;
}

.sidebar-nav .metismenu .mm-active > a {
  border-radius: 0px;
}

/**************************************/

.news-section-base {
  margin: 30px auto;
  position: relative;
  z-index: 1;
}

.news-item {
  border: 1px solid var(--block-border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
  display: flex;
  background: var(--block-bg-color);
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.news-item-image-wrapper {
  position: relative;
  overflow: hidden;
}

.news-item-image-wrapper img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s ease-out;
}

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

.news-item-date-badge {
  position: absolute;
  color: var(--badge-color);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  top: 15px;
  left: 15px;
  background-color: var(--overlay-bg-color);
}

.news-item-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Базовые стили для заголовка новости */
.news-item-title {
  font-weight: 600;
  color: var(--block-text-color);
  line-height: 1.3;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.news-item-title a {
  color: var(--block-text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-item-title a:hover {
  color: var(--main-color);
}

.news-item-description {
  font-size: 0.95rem;
  color: var(--block-description-color);
  margin-bottom: 15px;
}
.news-item-description p {
  margin-bottom: 0;
}

.news-item-read-more-link {
  display: inline-flex;
  align-items: center;
  color: var(--main-color);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
  gap: 5px;
}

.news-item-read-more-link:hover {
  color: var(--main-color-hover);
  transform: translateX(5px);
}

.news-layout-grid {
  padding: 60px 0;
}

.news-layout-grid .news-item {
  height: 100%;
  flex-direction: column;
}

.news-layout-grid .news-item-image-wrapper {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.news-layout-grid .news-item-image-wrapper img {
  height: 220px;
}

.news-layout-grid .news-item-content {
  padding: 15px;
}

.news-layout-grid .news-item-read-more-link {
  position: relative;
  padding-right: 15px;
}

.news-layout-grid .news-item-read-more-link::after {
  content: "\2192";
  position: absolute;
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s ease, right 0.3s ease;
}

.news-layout-grid .news-item-read-more-link:hover::after {
  opacity: 1;
  right: -5px;
}
/*****/
.news-layout-list {
  padding: 60px 0;
  margin: 40px auto;
}

.news-layout-list .news-item {
  align-items: center;
  margin-bottom: 30px;
}

.news-layout-list .news-item-image-wrapper {
  flex-shrink: 0;
  width: 35%;
  max-width: 300px;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.news-layout-list .news-item-image-wrapper img {
  height: 200px;
}

.news-layout-list .news-item-content {
  padding: 28px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-header .section-title {
  position: relative;
  padding-bottom: 0.5rem;
  color: var(--block-title-color);
}

.section-header .section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background-color: var(--main-color);
}

.section-header .all-section-link {
  display: inline-flex;
  align-items: center;
  color: var(--main-color);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
  gap: 5px;
  position: relative;
  padding-right: 15px;
}

.section-header .all-section-link::after {
  content: "\21B4";
  position: absolute;
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s ease, right 0.3s ease;
}

.section-header .all-section-link:hover {
  color: var(--main-color-hover);
  transform: translateX(-5px);
}

.section-header .all-section-link:hover::after {
  opacity: 1;
  right: -5px;
}

.bg-odd {
  background-color: var(--section-odd-bg-color);
}

.bg-even {
  background-color: var(--section-even-bg-color);
}

/****************************/
.sliderSites {
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
  list-style: none;
  padding: 0;
  z-index: 1;
  position: relative;
  margin-top: 20px;
  margin-bottom: 20px;
}

.sliderSites .slider_link {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--block-border-color);
  border-radius: 12px;
  padding: 7px 15px;
  background: var(--block-bg-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

/* .sliderSites .slider_link:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
} */

.sliderSites .slider_link img {
  height: 130px;
  /*transition: all 0.1s linear;*/
}

.sliderSites .slider-pagination {
  text-align: center;
  margin-top: 15px;
}

/*****************************/
.footer {
  padding: 30px 0;
  border-top: 2px solid var(--footer-border-color);
  margin-top: 30px;
  background-color: var(--footer-bg-color);
}

.footer .copyright {
  color: var(--footer-color);
  font-size: 14px;
}

.footer .copyright a {
  color: var(--footer-color);
}

.footer .copyright a:hover {
  text-decoration: none;
}

/*******************************/
#main-content {
  margin-top: 30px;
  margin-bottom: 30px;
}

#content .news-layout-grid {
  padding: 0;
  margin-top: 0;
  margin-bottom: 30px;
}

#content .bilim-about-main {
  height: 320px;
}

#content #bilim-about {
  margin-bottom: 30px;
  padding: 0;
}

#content .menu_icons {
  margin: 0 0 30px 0;
  padding: 0;
}

/*********************/
.content .section-header h1.section-title {
  font-size: 1.6rem;
}

.news-single-img {
  float: left; /* или right, если хотите справа */
  max-width: 40%; /* ограничиваем ширину (на мобилке будет адаптивно) */
  margin: 0 20px 10px 0; /* отступы справа и снизу от текста */
}

.news-single-img img {
  display: block;
  width: 100%; /* растягиваем по контейнеру */
  height: auto;
  border-radius: 8px; /* скруглённые углы для красоты */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.content .entry-content p a {
  word-break: break-word;
}

.gallery:after {
  content: "";
  display: table;
  clear: both;
}
/*img.aligncenter, div.aligncenter, figure.aligncenter, img.wp-post-image {display:block; margin:1em auto;}*/
img.alignright,
div.alignright,
figure.alignright {
  float: right;
  margin: 1em 0 1em 2em;
}
img.alignleft,
div.alignleft,
figure.alignleft,
img.wp-post-image.attachment-thumb {
  float: left;
  margin: 1em 1em 2em 0;
}
figure {
  max-width: 100%;
  height: auto;
  margin: 1em 0;
}
p img.alignright,
p img.alignleft {
  margin-top: 0;
}

.gallery figure img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}

.gallery figure {
  float: left;
  margin: 0 2% 1em 0;
}

.gallery.gallery-columns-1 figure {
  width: 100%;
  margin: 0 0 1em 0;
  float: none;
}

.gallery.gallery-columns-3 figure {
  width: 32%;
}
.gallery.gallery-columns-3 figure:nth-of-type(3n + 3) {
  margin-right: 0;
}
.gallery.gallery-columns-3 figure:nth-of-type(3n + 4) {
  clear: left;
}

.gallery.gallery-columns-2 figure {
  width: 49%;
}
.gallery.gallery-columns-2 figure:nth-of-type(even) {
  margin-right: 0;
}
.gallery.gallery-columns-2 figure:nth-of-type(odd) {
  clear: left;
}

.gallery.gallery-columns-4 figure {
  width: 23.25%;
}
.gallery.gallery-columns-4 figure:nth-of-type(4n + 4) {
  margin-right: 0;
}
.gallery.gallery-columns-4 figure:nth-of-type(4n + 5) {
  clear: left;
}

.gallery.gallery-columns-5 figure {
  width: 18%;
}
.gallery.gallery-columns-5 figure:nth-of-type(5n + 5) {
  margin-right: 0;
}
.gallery.gallery-columns-5 figure:nth-of-type(5n + 6) {
  clear: left;
}

.gallery.gallery-columns-6 figure {
  width: 14.2%;
}
.gallery.gallery-columns-6 figure:nth-of-type(6n + 6) {
  margin-right: 0;
}
.gallery.gallery-columns-6 figure:nth-of-type(6n + 7) {
  clear: left;
}

.gallery.gallery-columns-7 figure {
  width: 12%;
}
.gallery.gallery-columns-7 figure:nth-of-type(7n + 7) {
  margin-right: 0;
}
.gallery.gallery-columns-7 figure:nth-of-type(7n + 8) {
  clear: left;
}

.gallery.gallery-columns-8 figure {
  width: 10.2%;
}
.gallery.gallery-columns-8 figure:nth-of-type(8n + 8) {
  margin-right: 0;
}
.gallery.gallery-columns-8 figure:nth-of-type(8n + 9) {
  clear: left;
}

.gallery.gallery-columns-9 figure {
  width: 8.85%;
}
.gallery.gallery-columns-9 figure:nth-of-type(9n + 9) {
  margin-right: 0;
}
.gallery.gallery-columns-9 figure:nth-of-type(9n + 10) {
  clear: left;
}

/****************************/
.breadcrumb {
  font-size: 14px;
  margin-top: 0px;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  list-style: none;
  background-color: #e9ecef;
  border-radius: 0.25rem;
  color: var(--breadcrumb-color);
}

.breadcrumb span {
  margin: 0 5px;
}

.breadcrumb .current-item {
  color: var(--breadcrumb-color);
}

.breadcrumb span:first-child {
  margin-left: 0;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb span[property="name"] {
  display: inline-block;
  padding: 0;
  margin-top: -3px;
  vertical-align: middle;
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.content .page-date {
  background: var(--main-color);
  display: block;
  color: var(--badge-color);
  font-size: 14px;
  display: inline-block;
  padding: 7px 15px;
  border-radius: 10px;
  margin-bottom: 15px;
}

.content .news-layout-list {
  margin: 0;
  padding: 0;
}

.pageError {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: 0;
  background: linear-gradient(to bottom, #ffe6f0, #f9f9e6, #fdffe6);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
  text-align: center;
  padding-bottom: 50px;
}
.pageError .error-code {
  font-size: 175px;
  line-height: 175px;
  font-weight: bold;
  background: url("../img/error.png") center/cover;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}
.pageError .error-message {
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 30px;
}

#content .search-form {
  max-width: 300px;
  position: relative;
}

#content .search-form input[type="search"] {
  width: 100%;
  padding: 7px 30px 7px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}

#content .search-form input[type="search"]:focus {
  border-color: #007bff;
}

#content .search-form button,
#content .search-form input[type="submit"] {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  border: none;
  background: #007bff;
  color: #fff;
  padding: 0 15px;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  transition: background 0.2s;
}

#content .search-form button:hover,
#content .search-form input[type="submit"]:hover {
  background: #0056b3;
}

#content .search-form button::before,
#content .search-form input[type="submit"]::before {
  content: "\1F50D";
  font-size: 16px;
}

body.custom-background #main-content {
  background-color: var(--white);
  padding-top: 30px;
}

.pagination {
  margin: 18px 0;
  text-align: center;
}
.pagination ul {
  padding: 0;
  display: inline-block;
  *display: inline;
  *zoom: 1;
  margin-left: 0;
  margin-bottom: 0;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.pagination li {
  display: inline;
}
.pagination a {
  float: left;
  padding: 0 14px;
  line-height: 34px;
  text-decoration: none;
  border: 1px solid var(--block-border-color);
  border-left-width: 0;
}
.pagination a:hover {
  background-color: var(--main-color-hover);
  color: var(--white);
}
.pagination .active a {
  background-color: var(--main-color-active);
}
.pagination .active a {
  color: var(--white);
  cursor: default;
}
.pagination .disabled span,
.pagination .disabled a,
.pagination .disabled a:hover {
  color: #999;
  background-color: transparent;
  cursor: default;
}
.pagination li:first-child a {
  border-left-width: 1px;
  -webkit-border-radius: 3px 0 0 3px;
  -moz-border-radius: 3px 0 0 3px;
  border-radius: 3px 0 0 3px;
}
.pagination li:last-child a {
  -webkit-border-radius: 0 3px 3px 0;
  -moz-border-radius: 0 3px 3px 0;
  border-radius: 0 3px 3px 0;
}
.pagination-centered {
  text-align: center;
}
.pagination-right {
  text-align: right;
}

.post-edit-link {
  display: inline-block;
  margin-bottom: 15px;
}

.section-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
  margin-top: 30px;
  margin-bottom: 0;
}
.eapps-widget {
  margin: 30px 0 !important;
}

#bilim-about {
  position: relative;
}
#bilim-about .sticky {
  position: sticky;
  top: 0;
}