/* назначить ширина контейнеров */
/* @media and (min-width: 1920px) {
.container{ max-width: 1440px;}
.container-fluid { max-width: 1440px;}  
.container-fluid { max-width: 1366px;} 
} */

/* Цвет #1264AD синий */

@font-face {
  font-display: swap; 
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/Oswald-Regular.woff2') format('woff2'); 
}

@font-face {
  font-display: swap; 
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/Roboto-Regular.woff2') format('woff2'); 
}

@font-face {
  font-display: swap; 
  font-family: 'Commissioner';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/Commissioner-Regular.woff2') format('woff2'); 
}

/* Общие правила на всём сайте */
body {font-family: 'Commissioner','Oswald','Roboto', Arial, sans-serif;}

.f-os {
  font-family: "Oswald", serif !important;
  font-optical-sizing: auto;
  letter-spacing: 2px;
  font-style: normal;
}

.f-com {
  font-family: "Commissioner", serif;
  font-optical-sizing: auto;
  letter-spacing: 1px;
  font-style: normal;
}

.f-rb {
  font-family: 'Roboto',sans-serif;
  font-optical-sizing: auto;
  letter-spacing:  auto;
  font-style: normal;
}

.full h2, .h2 {font-size: 1.3rem; font-weight: 400;}

/* Корректировка стиля Bootstrap */
h1, .h1 {font-size: 1.4rem; }
h2, .h2 {font-size: 1.3rem;}
h3, .h3 {font-size: 1.2rem;}
h4, .h4 {font-size: 1.1rem;}
h5, .h5 {font-size: 1rem;}
h6, .h6 {font-size: 1rem;}

/* Список в шапке block-main.tpl */
.ai-features {
  color: #333;
}

.features-list {
  list-style-type: none;
  padding-left: 0;
}

.features-list li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.features-list i {
  color: #1264AD;
  width: 20px;
  text-align: center;
  margin-right: 10px;
}

.note {
  font-style: italic;
  color: #666;
}
/*  */
.lead {font-size: 1.2rem; font-weight: 400;}

.bg-light { background-color: rgba(248, 249, 250, 1) !important;}
/* .sticky-top {z-index:99;}  Иначе выпад. меню ред. прячется под sticky-top сайдбара */

/* Адаптивность всех картинок */
img{max-width: 100%; height: auto;}
  
a { color: #015aff; text-decoration:none;}
a:hover {color:#00131D; text-decoration:none;}
.comment-link a {color: #015aff;}
.comment-link a:hover {color: #00131D;}

.m-color {color: #1264AD;}  /* Главный цвет */
.m-bg {background: #1264AD;}
.m-bg-light {background: #FCFDFF;}
b, strong {font-weight:500;text-shadow: 0.4px 0 0 #000;}
/* li { list-style-type: none;}  Убираем маркеры */

  /* размер текста */
  .fs-13 {font-size:13px;} .fs-14 {font-size:14px;} .fs-15 {font-size:15px;}.fs-16 {font-size:16px;}.fs-17 {font-size:17px;}.fs-18 {font-size:18px;}.fs-19 {font-size:19px;}.fs-20 {font-size:20px;}.fs-22 {font-size:22px;}.fs-24 {font-size:24px;}.fs-26 {font-size:26px;}.fs-28 {font-size:28px;}.fs-30 {font-size:30px;}.fs-34 {font-size:34px;}.fs-36 {font-size:36px;}.fs-40 {font-size:40px;}.fs-50 {font-size:50px;}.fs-60 {font-size:60px;}
  
  .fs-13 a{font-size:13px;}.fs-14 a{font-size:14px;}.fs-15 a{font-size:15px;}.fs-16 a{font-size:16px;}.fs-17 a{font-size:17px;}.fs-18 a{font-size:18px;}.fs-19 a{font-size:19px;}.fs-20 a{font-size:20px;}.fs-22 a{font-size:22px;}.fs-24 a{font-size:24px;}.fs-26 a{font-size:26px;}.fs-28 a{font-size:28px;}.fs-30 a{font-size:30px;}.fs-34 a{font-size:34px;}.fs-36 a{font-size:36px;}.fs-40 a{font-size:40px;}.fs-50 a{font-size:50px;}.fs-60 a{font-size:60px;}
  
  /* Толщина текста */
  .fw-300 {font-weight:300 !important;}.fw-400 {font-weight:400 !important;}.fw-500 {font-weight:500 !important;}.fw-600 {font-weight:600 !important;}.fw-700 {font-weight:700 !important;}
  
/* Между буквами */
.fl-3 {letter-spacing: 3px;}
.fl-4 {letter-spacing: 4px;}
.fl-5 {letter-spacing: 5px;} 

/* Между строками */
.fh-1 {line-height: 1;}
.fh-2 {line-height: 1.2;}
.fh-3 {line-height: 1.3;}

 /* Радиус */
 .radius-2 {border-radius: 0.25rem;}
 .radius-4 {border-radius: 0.4rem;}
 .radius-6 {border-radius: 0.6rem;}
 .radius-8 {border-radius: 0.8rem;}
 .radius-10 {border-radius: 1rem;}
 .radius-25 {border-radius: 2rem;}

/* Оформление заголовков H1 */
.header-h h1 {
  font-family: 'Commissioner';
  position: relative;
  padding: .6rem;
  font-size: 1.5rem;
  /* text-transform: uppercase; */
  text-align: center;
  color: #1264AD;
}

.header-h h1::before {
  content: "";
  position: absolute;
  border-bottom: 1px solid #666;
  bottom: .3rem;
  left: 50%;
  width: 25%;
  transform: translateX(-50%);
}

.header-h h1::after {
  content: "";
  position: absolute;
  border-bottom: 1px solid #666;
  bottom: 0rem;
  left: 50%;
  width: 18%;
  transform: translateX(-50%);
}

/* Оформление заголовков H2 */
.header-h h2 {
  position: relative;
  padding: .6rem;
  font-size: 1.3rem;
  text-transform: uppercase;
  text-align: center;
  color: #1264AD;
}

.header-h h2::before {
  content: "";
  position: absolute;
  border-bottom: 1px solid #666;
  bottom: .5rem;
  left: 50%;
  width: 25%;
  transform: translateX(-50%);
}

.header-h h2::after {
  content: "";
  position: absolute;
  border-bottom: 1px solid #666;
  bottom: 0.2rem;
  left: 50%;
  width: 18%;
  transform: translateX(-50%);
}

.header-h .h2-main {font-size: 1.15rem; font-weight: 600;}
@media screen and (max-width: 768px)  {
.header-h .h2-main {font-size: 1.1rem;}}

/* Картинки фонов */
.bg-1 {background:url('../img/bg/bg-1.webp')no-repeat center center; background-size:cover;background-attachment: fixed;}
.bg-2 {background:url('../img/bg/bg-1-y.webp')no-repeat center center; background-size:cover;background-attachment: fixed;}
.bg-3 {background:url('../img/bg/bg.webp')no-repeat center center; background-size:cover;background-attachment: fixed;}

/* короткая новость*/
.short-story h2 {
    font-weight: 500;
    text-transform: none;
    margin: 0 0 10px 0;
    padding: 0;
    line-height: 1.4;
    color: #1264AD;
}
.short-story h2 a {font-size: 1.3rem; color: inherit; text-decoration: none;}
.short-story h2 a:hover {color: #0271e8;}

/* Полная новость */
/* Регулируем верт. отступы, когда "Автоматический перенос строк" */
.br-none br {display: block; content: ""; padding: 3px 0;}  /* Управляем br от DLE */
.br-none h2,h3,h4,h5 {margin: 12px 0 3px 0;}

/* картинка-миниатюра + обтекаемость */
/* .full-text {font-size: 1rem;} */

.full-text h2, .h2 {margin:25px 0 10px 0; font-size: 1.3rem; font-weight: 600; color: #1264AD;}
.full-text h3, .h3 {font-size: 1.25rem; font-weight: 500; text-shadow: 0.4px 0 0 #000;}
/* .full-text a{font-size: 1.125rem; font-weight: 500; text-shadow: 0.3px 0 0 #1f001c;} */
/* .full-text b {font-weight: 500; color:#3a3a3a; text-shadow: 0.4px 0 0 #000;} */

.full-text:after {content: ""; display: block; clear: both;}

.full-text-img img[style*="left"], .full-text-img .highslide img[style*="left"] { margin: 2px 2% 0.8% 0; }
.full-text-img img[style*="right"], .full-text-img .highslide img[style*="right"] { margin: 2px 0 0.8% 1.6%; }

/*.full-text-img img {
	min-width:300px; height: auto;
	border-radius: 0.3rem;
}*/

/* стрелка H2 вверх */
.back-to-menu {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-bottom: 6px;
    margin-right: 3px;
}

.back-to-menu svg {transition: transform 0.2s ease;}
.back-to-menu:hover svg {transform: translateY(-2px);}
h2:hover .back-to-menu svg {transform: translateY(-2px);transition: transform 0.2s ease;}

/* Убираем стандартные маркеры */
#anchor-menu ul {list-style: none;padding-left: 0;}

/* Стили для пунктов меню */
#anchor-menu li {margin-bottom: 8px;}

/* Иконка перед пунктом */
#anchor-menu li:before {
    content: "\f192"; 
    font-family: FontAwesome;
    font-size: 16px;
    color: #007bff;
    display: inline-block;
    margin-right: 8px;
}

#anchor-menu li:hover:before {color: #1571c1;}

/* Ссылка в меню */
#anchor-menu li a {text-decoration: none;color: #333;}
#anchor-menu li a:hover {color: #007bff;}

/* Кнопка DeepSeek */
.btn-deepseek {
  --deepseek-blue: #1890ff;
  --deepseek-border: #1890ff;
  background-color: rgba(24, 144, 255, 0.1); /* Полупрозрачный фон */
  border: 1px solid var(--deepseek-border); /* Яркий тонкий бордюр */
  color: #1890ff; /* Цвет текста как у градиента */
  transition: all 0.3s ease;
  font-weight: 400;
  backdrop-filter: blur(2px); /* Легкое размытие фона */
}

.btn-deepseek:hover {
  background-color: rgba(24, 144, 255, 0.2); /* Немного темнее при наведении */
  border-color: #40a9ff; /* Более светлый бордюр */
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(24, 144, 255, 0.15);
}

.btn-deepseek:active {
  transform: translateY(0);
  background-color: rgba(24, 144, 255, 0.25);
}

/* Галерея в карточке */
.gal-pad img {padding-bottom: 0px;}
.gal-pad-pf img {padding: 0px;}

/* конец полная новость */

/* Карточка во 2-м блоке главной и похожих новостях */
.h-max-car-top img{width: 310px; height: 200px; object-fit: cover; object-position: top;}
.h-tittl-car-top {height: 70px;}
@media screen and (max-width: 768px) {
.h-max-car-top img{width: 500px; height: 333px; object-fit: cover; object-position: top;}
.h-tittl-car-top {height: 80px;}
}

/* Вход - выход - Админка Логин */
#loginpanel {
  position: absolute;
  top: 15%;
  left: 30%;      
  width:300px;    
  display: none;
  z-index: 10;
  background: #fff;
  border: solid 3px #ccc;
  padding: 5px;
}

/* Подсветка пункта верхнего меню */
.navbar-nav .navbar-brand {color:#FFF;}
.navbar-nav .nav-item .nav-link {color: #FFF;}
.navbar-nav .nav-item .nav-link.active {color: #cadfff; text-decoration:none;}
.navbar-nav .nav-link {font-size:17px; padding-left: 15px; margin:4px 8px 3px 0;}
.navbar-nav .none-active .nav-link {text-decoration:none; color:#FFF;} /* без подменю вставить nav-item */

.navbar-nav .nav-item .nav-link {color: #FFF;}
.navbar-nav .nav-item.active .nav-link, .navbar-nav .nav-item:hover .nav-link {color: #ccdffa;}

/* Подменю */

.dropdown-menu {background: #1264AD;}
.nav-link .dropdown-toggle {color:#FFF;}
.dropdown-item.active, .dropdown-item:active {background-color: #045296;font-size:16px; color: #FFF;  font-weight:400;}
.dropdown-item {font-size:16px; color:#FFF;}

/* хлебные крошки */
.breadcrumb-item a{color:#1264AD;}
.breadcrumb-item a:hover{color:#000;}

/* навигация по страницам */
.pagination {
  display: inline-block;
  padding-left: 0;
  margin: 20px 0;
  border-radius: 4px;
}
.pagination > li {
  display: inline;
}
.pagination > li > a,
.pagination > li > span {
  position: relative;
  float: left;
  padding: 6px 12px;
  margin-left: -1px;
  line-height: 1.42857143;
  text-decoration: none;
  border: 1px solid #ddd;
}

.pagination > li > a {
  background-color: #fff;
}

.pagination > li > span {
  background-color: #fafafa;
}

.pagination > li > a:hover,
.pagination > li > .pagination > li {
  z-index: 2;
  color: #000;
  background-color: #f5f5f5;
  border-color: #dcdcdc;
}

/* Похожие публикации */
.publication-block {
  position: relative;
  background: #1264AD;
  overflow: hidden;
  z-index: 1;
  transition: background-color 0.7s ease;
}

.publication-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, #1264AD, #1a7bc8);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.7s ease;
}

.publication-block:hover::before {
  opacity: 1;
}

/* Текст + индикаторы в карусели в топе на главной #mainCarousel */
#mainCarousel .carousel-caption {
  right: 0%;
  left: 0%;    
  bottom: 0rem;
  padding-top: .5rem;
  padding-bottom: 2rem;
  color: #fff;
  text-align: left;
}

#mainCarousel .carousel-indicators [data-bs-target] {
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
}

/* Текст + индикаторы в карусели в каталоге #catCarousel */
#catCarousel .carousel-caption {
  right: 0%;
  left: 0%;    
  bottom: 0rem;
  padding-top: .5rem;
  padding-bottom: 2rem;
  color: #fff;
  text-align: left;
}

#catCarousel .carousel-indicators [data-bs-target] {
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
}

/* Корректирую кнопки BS5 по желанию */
.btn-outline-primary {
  color: #1264AD;
  border-color: #1264AD;
}
.btn-outline-primary:hover {
  color: #fff;
  background-color: #1264AD;
  border-color: #1264AD;
}
.btn-check:focus + .btn-outline-primary, .btn-outline-primary:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.5);
}
.btn-check:checked + .btn-outline-primary, .btn-check:active + .btn-outline-primary, .btn-outline-primary:active, .btn-outline-primary.active, .btn-outline-primary.dropdown-toggle.show {
  color: #fff;
  background-color: #1264AD;
  border-color: #1264AD;
}
.btn-check:checked + .btn-outline-primary:focus, .btn-check:active + .btn-outline-primary:focus, .btn-outline-primary:active:focus, .btn-outline-primary.active:focus, .btn-outline-primary.dropdown-toggle.show:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.5);
}
.btn-outline-primary:disabled, .btn-outline-primary.disabled {
  color: #1264AD;
  background-color: transparent;
}
.border-primary {
  border-color: #1264AD !important;
}

/* Бургер меню */
.navbar-toggler {
  width: 20px;
  height: 20px;
  position: relative;
  transition: .5s ease-in-out;
  }
  
/* Обнуляем BS */
  .navbar-toggler, 
  .navbar-toggler:focus,
  .navbar-toggler:active,
  .navbar-toggler-icon:focus {
  outline: none;
  box-shadow: none;
  border:0;
  }
  
  .navbar-toggler span {
  margin:0;
  padding:0;
  }
  
  .toggler-icon {
  display: block;
  position: absolute;
  height:2px;  /* толщина линии */
  width: 100%;
  background: #FFF;
  border-radius: 1px;
  opacity: 1;
  left:0;
  transform:rotate(0deg);
  transition: .25s ease-in-out;
  }
  
  .middle-bar {
    margin-top:0px;
  }
  
  /* при нажатии */
  .navbar-toggler .top-bar {
    margin-top: 0px;
    transform: rotate(135deg);
  }
  
  .navbar-toggler .middle-bar {
   opacity:0;
   filter: alpha(opacity=0);
  }
  
  .navbar-toggler .bottom-bar {
    margin-top: 0px;
    transform: rotate(-135deg);
  }
  
  /* иконка при открытом */
  .navbar-toggler.collapsed .top-bar {
    margin-top:-20px;
    transform: rotate(0deg);
  }
  .navbar-toggler.collapsed .middle-bar {
    opacity: 1;
    filter: alpha(opacity=100);
  }
  .navbar-toggler.collapsed .bottom-bar {
   margin-top: 20px;
   transform: rotate(0deg);
  }
/* конец бургер */


/* обрамление обратной связи */
.service-forms{background:repeating-linear-gradient(-45deg,#383838,#383838 10px,#fff 10px,#fff 20px,#1264AD 20px,#1264AD 30px,#fff 30px,#fff 40px),#fff;padding:8px;margin:30px 0}
.service-forms .service-forms-content{background:#fff;padding:25px}

/* Иконки выпадающего списка в аккордеоне - поворот */
.panel-heading .fa-chevron:after {
  content: "\f078";   
}
.panel-heading.collapsed .fa-chevron:after {
  content: "\f054";   
}

/* Меню сайдбара */
.menu-side {
  list-style-type: none;
  padding-left: 0;
}

.active-indicator {
  display: contents;
}

.active-indicator .list-group-item.active {
    z-index: 2;
    color: #fff;
    background-color: #217ccc;
    border-color: #1264AD;
}


/* Меню полной новости */
.menufull {
  background: #f2f8ff;
  border: 1px solid #bbdfff;
  padding: 0 10px 5px 0;
  /* display: table; */
  border-radius: 8px;
  /* margin-bottom: 10px; */
}
.menufull h2 {font-size: 20px; font-weight: 500; color: #333; margin-bottom: 10px;}

.h-menu {
  margin: 0;
  padding: 0 0 0 15px;
  list-style: none;
}

.h-menu li a {font-size: 18px;}
.h-menu li { margin: 6px; padding: 1px 0;}
/* Цифры */
.h-menu li span {
  color: #333;
  font-size: 17px; 
  margin-right: 5px;
}

/* Стили для якоря */
.anchor-wrapper {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  position: relative;
  vertical-align: middle;
}
.anchor {
  display: block;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23a0d2ff"><path d="M12 4l-8 8h5v8h6v-8h5z"/></svg>') no-repeat;
  background-size: contain;
  opacity: 0.7;
  transition: opacity 0.3s;
  text-decoration: none;
  font-size: 0;
}
h2:hover .anchor {
  opacity: 1;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%236699CC"><path d="M12 4l-8 8h5v8h6v-8h5z"/></svg>') no-repeat;
}

/* Фикс для скролла под шапку */
:target::before,
h2[id]::before {
  content: "";
  display: block;
  height: 20px;      /* 60px фиксированное меню + 80px дополнительный отступ */
  margin-top: -20px; /* Компенсация с таким же значением */
  visibility: hidden;
  pointer-events: none;
}

/* Для мобильных устройств (если шапка меняет высоту) */
@media (max-width: 991.98px) {
  :target::before,
  h2[id]::before {
    height: 20px;
    margin-top: -20px;
  }
}

/*  */
.m-opac {
  opacity: 0.3;
}
.m-opacity a{
  opacity: 0.2;
}.m-opacity a:hover{
  opacity: 1;
}

/* Иконки соцсетей */
  /* Увеличенные иконки с фирменными цветами
  .btn-social-ok i { color: #ee8208; } 
  .btn-social-vk i { color: #2787F5; } 
  .btn-social-tg i { color: #2AABEE; } 
  .btn-social-wa i { color: #25D366; } 
   */

  /* Эффекты при наведении */
  .btn-outline-primary:hover i {
    color: white !important;
  }

/* Баннер тест нейросеть */
.icons-container {
  width: 260px;
  height: 260px;
  margin: 0 auto;
  display: inline-block;
  position: relative;
}
.icon {
  position: absolute;
  display: block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: opacity 0.5s ease;
}

.icon-corner {
  width: 120px;
  height: 120px;
}

.icon-corner.top-0.start-0 { top: 0; left: 0; }
.icon-corner.top-0.end-0 { top: 0; right: 0; }
.icon-corner.bottom-0.start-0 { bottom: 0; left: 0; }
.icon-corner.bottom-0.end-0 { bottom: 0; right: 0; }

.icon-center {
  width: 200px;
  height: 200px;
  top: 30px;
  left: 30px;
}

.neurotest-box:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15); /* как у Bootstrap shadow */
    transition: box-shadow 0.3s ease-in-out;
  }

.neurotest-box:hover .m-color {
  color: #000 !important;
}

  /* Уменьшаем внутренние отступы для больших иконок */
  .btn-outline-primary {
    padding: 0.25rem 0.5rem;
  }

/* Вверх-вниз прокрутка */
    .scroll-buttons {
      position: fixed;
      right: 20px;
      bottom: 20px;
      z-index: 9999;
      display: flex;
      flex-direction: column;
      gap: 6px;
  }
  
  .scroll-btn {
    width: 36px;
    height: 32px;
    background-color: rgba(18, 100, 173, 0.4);
    color: white;
    border: 1px solid #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    opacity: 1;
    visibility: visible;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Добавляем тень для лучшей видимости */
    backdrop-filter: blur(2px); /* Лёгкое размытие фона под кнопкой */
}
  
  .scroll-btn.hidden {
      opacity: 0;
      visibility: hidden;
      transform: translateY(10px) scale(0.9);
      pointer-events: none;
  }
  
  .scroll-btn:hover {
    background-color: rgba(18, 100, 173, 0.7);
    transform: scale(1.1);
    border-color: #FFF; /* Убедимся, что граница остается белой при наведении */
    box-shadow: 0 3px 8px rgba(0,0,0,0.3); /* Усиливаем тень при наведении */
}
  
  .scroll-btn i {
      font-family: 'FontAwesome';
      font-style: normal;
      -webkit-font-smoothing: antialiased;
      line-height: 1;
      display: block;
  }
  
  /* Адаптивность для мобильных */
  @media (max-width: 768px) {
      .scroll-btn {
          width: 30px;
          height: 28px;
          font-size: 16px;
      }
      
      .scroll-buttons {
          right: 10px;
          bottom: 15px;
          gap: 6px;
      }
      .full-text h2, .h2 {font-size: 1.1rem;}
      .header-h h1 {font-size: 1.4rem;}
  }

/* код без pre */
code {font-size: 18px; color: #d63384;}

/* Кнопка копировать Prism JS */
code[class*=language-], pre[class*=language-] {
    color: #000;
    background: 0 0;
    text-shadow: 0 1px #fff;
    font-size: 17px;
    text-align: left;
    white-space: pre-wrap !important; /* Принудительный перенос строк */
    word-spacing: normal;
    word-break: break-word !important; /* Разрешаем перенос длинных слов */
    word-wrap: break-word !important;
    line-height: 1.5;
    -moz-tab-size: 4;
    -o-tab-size: 4;
    tab-size: 4;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
    margin-top: 1em; /* не было */
}

/* Основной контейнер кода */
:not(pre) > code[class*=language-], pre[class*=language-] {
    background: #f9fafa;
    border: 1px solid #dce7e7;
    border-radius: 6px; 
    max-height: 25em;
    overflow: auto !important; /* Оставляем auto, но с white-space: pre-wrap переносы будут работать */
    scrollbar-width: thin; /* Тонкий скроллбар всегда */
    padding: 1.5em 1em .6em 1em; /* было padding: 1em; */
    margin: .5em 1em 1.5em .5em;  /* было margin-top: 1.5em; */
    position: relative;
}

/* Убираем изменение скроллбара при наведении */
:not(pre) > code[class*=language-]:hover, pre[class*=language-]:hover {
    scrollbar-width: thin; /* Оставляем тонким всегда */
}

/* Стили для тулбара (кнопки копирования) */
div.code-toolbar { position: relative;}

/* Делаем кнопку всегда видимой и позиционируем её красиво */
div.code-toolbar > .toolbar {
    position: absolute;
    z-index: 10;
    top: -1rem; /* Поднимаем немного вверх */
    right: 0.5rem; /* Сдвигаем вправо */
    opacity: 1 !important; /* Всегда видима */
    transition: none; /* Убираем плавное появление */
}

/* Стили для самой кнопки */
div.code-toolbar > .toolbar > .toolbar-item {
    display: inline-block;
}

div.code-toolbar > .toolbar > .toolbar-item > button {
    background: #1264AD !important; /* Синий фон как в вашем CSS */
    border: 1px solid #64b7ff !important;
    color: white !important;
    font-size: 1rem !important;
    padding: 0.15rem 0.75rem !important;
    border-radius: 0.3rem !important;
    cursor: pointer;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
    font-family: inherit;
    line-height: 1.5;
    text-shadow: none !important;
    transition: background-color 0.2s ease;
}

/* Стиль для svg иконки (если используется) */
div.code-toolbar > .toolbar > .toolbar-item > button svg {
    display: inline-block;
    vertical-align: middle;
    margin-top: -2px;
    margin-right: 4px;
    fill: white;
}

/* Эффект при наведении на кнопку */
div.code-toolbar > .toolbar > .toolbar-item > button:hover,
div.code-toolbar > .toolbar > .toolbar-item > button:focus {
    background: #009933 !important; 
    border-color: #00c040 !important;
    color: white !important;
    text-decoration: none;
}

/* Состояние "скопировано" - добавлено через JS */
div.code-toolbar > .toolbar > .toolbar-item > button.copied {
    background: #000 !important;
    border-color: #4f4f4f !important;
}


/* диапазон конкретных брекпоинтов */
/* xl - xxl */
@media (min-width: 1200px) and (max-width: 1400px) {

}

/* lg - xl */
@media (min-width: 992px) and (max-width: 1200px) {

}

/* md -lg */
@media (min-width: 768px) and (max-width: 992px) {

}

/* sm - md */
@media (min-width: 576px) and (max-width: 768px) {

}

/* от минимального до конкретного брекпоинта */
/* до xxl */
@media screen and (max-width: 1400px) {
	

}

/* до xl */
@media screen and (max-width: 1200px) {	

}

/* до lg */
@media screen and (max-width: 992px) {

.anchor:before {
display: block;
content: "";
height: 60px;
margin: -3px 0 0;
}
  
}

/* до md */
@media screen and (max-width: 768px) {
#loginpanel {left: 10%;}

}

/* xs (ноль) - sm */
@media screen and (max-width: 576px) {

}
