/* назначить ширина контейнеров */
/* @media and (min-width: 1920px) {
.container{ max-width: 1440px;}
.container-fluid { max-width: 1440px;}  
.container-fluid { max-width: 1366px;} 
} */

/* Цвет #1264AD синий */

/* Общие правила на всём сайте */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/oswald-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/oswald-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/oswald-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/oswald-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/commissioner-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/commissioner-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/commissioner-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/roboto-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/roboto-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/roboto-700.woff2') format('woff2');
}
body {
  font-family: 'Commissioner', 'Oswald', 'Roboto', Arial, sans-serif;
}
.f-os {
  font-family: 'Oswald', serif;
  letter-spacing: 2px;
  font-style: normal;
}

.f-com {
  font-family: 'Commissioner', serif;
  letter-spacing: 1px;
  font-style: normal;
}

.f-rb {
  font-family: 'Roboto', sans-serif;
  font-style: normal;
}

/* Корректировка стиля 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;}

/* Толщина текста */
.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; }

/* Список в шапке 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: #1264AD; text-decoration:none;}
a:hover {color:#00131D; text-decoration:none;}
.comment-link a {color: #1264AD;}
.comment-link a:hover {color: #1264AD;}

.m-color {color: #1264AD;}  /* Главный цвет */
.m-bg {background: #1264AD;}
.m-bg-light {background: #FCFDFF;}
b, strong {font-weight:600;}

  /* размер текста */
  .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;}
  
 /* Радиус */
 .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,
.header-h h2 {
  position: relative;
  padding: 0.6rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  text-align: center;
  color: #181818;
}

.header-h h1 {
  font-size: 1.5rem;
}

.header-h h2 {
  font-size: 1.4rem;
}

.header-h h1::before,
.header-h h2::before {
  content: "";
  position: absolute;
  border-bottom: 1px solid #666;
  left: 50%;
  width: 25%;
  transform: translateX(-50%);
}

.header-h h1::before {
  bottom: 0.3rem;
}

.header-h h2::before {
  bottom: 0.5rem;
}

.header-h h1::after,
.header-h h2::after {
  content: "";
  position: absolute;
  border-bottom: 1px solid #666;
  left: 50%;
  width: 18%;
  transform: translateX(-50%);
}

.header-h h1::after {
  bottom: 0rem;
}

.header-h h2::after {
  bottom: 0.2rem;
}

.header-h a i { vertical-align: 0.09em; }
.header-h a:hover i { color: #00CC33 !important;}

/* Картинки фонов */
.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;}

/* Полная новость */
/* Регулируем верт. отступы, когда "Автоматический перенос строк" */
.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 h2, .h2 {font-size: 1.3rem; font-weight: 400;}
.full-text h2, .h2 {font-size: 1.3rem; font-weight: 600;}
.full-text b {font-weight: 600; color:#3a3a3a;}

.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;
}

/* Кнопка 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;}

/* При наведении моб. меню */
@media (max-width: 991.98px) {
  .nav-item-hover {
    transition: background-color .2s ease;
  }

  .nav-item-hover:hover {
    background-color: rgba(13, 110, 253, 0.08);
  }
}

/* Меню сайдбара */
.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: #1264AD;
    border-color: #0b4476;
}

/* хлебные крошки */
.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;
}

/* Карусель на главной */
  #carouselCat {
    position: relative;
  }
  
  #carouselCat .carousel-control-prev,
  #carouselCat .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: #1264AD;
    border: none;
    border-radius: 4px;
    opacity: 0.9;
    margin: 0;
    z-index: 10;
  }
  
  #carouselCat .carousel-control-prev {
    left: 15px; /* слева */
  }
  
  #carouselCat .carousel-control-next {
    right: 15px; /* справа */
  }
  
  #carouselCat .carousel-control-prev:hover,
  #carouselCat .carousel-control-next:hover {
    opacity: 1;
    background-color: #0d4c7f;
  }
  
  #carouselCat .carousel-control-prev-icon,
  #carouselCat .carousel-control-next-icon {
    width: 24px;
    height: 24px;
    background-size: 24px;
  }

/* Квадратики внизу */

#carouselCat .carousel-indicators {
    margin: 0; /* по центру */
    bottom: 10px;
  }

#carouselCat .carousel-indicators {
  justify-content: flex-end; /* справа  */ 
  padding-right: 15px;
  bottom: 10px;
}

  #carouselCat .carousel-indicators button {
    width: 20px;
    height: 20px;
    border-radius: 2px;
    margin: 0 5px;
    border: 2px solid #fff;
    background-color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
  }
  
  #carouselCat .carousel-indicators button.active {
    background-color: #1264AD;
    border-color: #1264AD;
  }
  
  #carouselCat .carousel-indicators button:hover {
    background-color: rgba(255, 255, 255, 0.8);
  }
  
  #carouselCat .carousel-indicators button.active:hover {
    background-color: #0d4c7f;
    border-color: #0d4c7f;
  }

/* Подсветка текста на слайдах */
/* Выравнивание по центру вертикально */
.carousel-caption {
  background: rgba(18, 100, 173, 0.8);
  padding: 1rem 2rem;
  border-radius: 4px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  right: auto;
  bottom: auto;
}

.carousel-zag {
  font-weight: 400;
  color: #fff;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  margin-bottom: 0.5rem;
}

.carousel-par {
	font-weight: 400;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  line-height: 1.4;
}
/* конец карусель */

/* Корректирую кнопки BS5 по желанию */
/* для иконок - поиск */
  .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;}

.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";   
}


/* Меню полной новости */
.menufull {
  background: #fbfdff;
  /* border: 1px solid #d8edff; */
  padding: 10px 10px 5px 0;
  /* display: table; */
  /* border-radius: 2px; */
  /* 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: 140px;      /* 60px фиксированное меню + 80px дополнительный отступ */
  margin-top: -140px; /* Компенсация с таким же значением */
  visibility: hidden;
  pointer-events: none;
}

/* Для мобильных устройств (если шапка меняет высоту) */
@media (max-width: 991.98px) {
  :target::before,
  h2[id]::before {
    height: 100px;
    margin-top: -100px;
  }
}

/*  */

.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;
  }

  /* Уменьшаем внутренние отступы для больших иконок */
  .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: 'Bootstrap Icons'; 
    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;
      }
  }


/* диапазон конкретных брекпоинтов */
/* 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: -20px 0 0;
}
  
}

/* до md */
@media screen and (max-width: 768px) {
#loginpanel {left: 10%;}

}

/* xs (ноль) - sm */
@media screen and (max-width: 576px) {

}
