/* --- Исправление для Font Awesome --- */
i.fa-solid, i.fas {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}
i.fa-regular, i.far {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
}
i.fa-brands, i.fab {
    font-family: "Font Awesome 6 Brands" !important;
}

/* --- Тема, адаптированная под дизайн --- */

/* Синяя тема для шапки, кнопок и ссылок (ОБНОВЛЕНО) */
.w3-theme {color:#fff !important; background-color:#214778 !important;}
.w3-theme-d2 {color:#fff !important; background-color:#012e5c !important;}
.w3-hover-theme:hover {color:#fff !important; background-color:#214778 !important;}
.w3-text-theme {color:#214778 !important;}
.w3-hover-text-theme:hover {color:#214778 !important;}

/* Красная тема для заголовков разделов */
.w3-red-theme {background-color: #a2262d !important; color: white !important;}

/* Серая тема для футера */
.w3-gray-theme {background-color: #818181 !important; color: white !important;}
    
/* Старый градиент убираем. Делаем благородный плоский цвет, как в Telegram */
.w3-gradient-theme {
  color: #fff !important;
  background-color: #214778 !important;
}

/* --- Кастомные стили (добавлен префикс pm-) --- */
.pm-placeholder-box {
  background-color: #f3f3f3;
  background-clip: content-box;
  padding: 2px;
  border: 2px solid #E8E8E8;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aabeda;
}

.pm-placeholder-box i {
  font-size: 2rem;
}

.pm-placeholder-box--small {height: 50px;}

/* Квадратный холдер для "Главных тем" */
.pm-placeholder-box--main-theme {
    height: auto;
    aspect-ratio: 1 / 1;
}

/* Прямоугольный холдер для списков статей */
.pm-placeholder-box--pub-rect {
  width: 100%;
  height: auto !important; /* Жестко отменяем любые старые высоты (типа 100px) */
  aspect-ratio: 3 / 2 !important; /* Принудительно держим пропорцию фото 3:2 */
  margin: 8px 0; /* Точно такой же отступ, как у реальных фото (.w3-image) */
  min-height: 0; /* Не даем иконке распирать блок изнутри */
}

/* Уменьшаем иконку на средних экранах, чтобы она помещалась в сжатый прямоугольник */
@media (max-width: 992px) {
  .pm-placeholder-box i {
    font-size: 1.2rem;
  }
}

/* Полностью скрываем заглушку на мобильных экранах (смартфонах) */
@media (max-width: 600px) {
  .pm-placeholder-box--pub-rect {
    display: none !important; 
  }
}
    
.pm-telegram-banner {
  background: linear-gradient(135deg, #024285 0%, #012e5c 100%);
  color: white; border-radius: 8px;
}

/* ==========================================================================
   ФИНАЛЬНЫЙ СТИЛЬ САЙДБАРА (Bold & Clean)
   ========================================================================== */

/* 1. Пункты меню (Жирные и контрастные) */
.pm-sidebar-nav-item {
    font-size: 16px !important;
    font-weight: 700 !important; /* ЖИРНЫЙ ШРИФТ (как просили) */
    color: #000 !important; /* Насыщенный черный цвет */
    padding: 14px 16px !important; /* Чуть больше высоты для удобства */
    
    border-bottom: 1px solid #e0e0e0 !important; /* Линия-разделитель внутри меню */
    
    background: none !important;
    text-align: left;
    transition: all 0.2s ease;
    display: flex !important;
    align-items: center;
}

/* Убираем нижнюю линию у последнего пункта, чтобы не было двойной границы */
.w3-bar-block .pm-sidebar-nav-item:last-child {
    border-bottom: none !important;
}

/* Эффект при наведении */
.pm-sidebar-nav-item:hover {
    background-color: #fff !important;
    color: #214778 !important; /* Синеет при наведении */
    padding-left: 20px !important; /* Сдвиг */
    box-shadow: -4px 0 0 #214778 inset; /* Синий акцент слева */
    text-decoration: none !important;
}

/* 2. ИКОНКИ */
.pm-sidebar-nav-item i {
    width: 32px;
    font-size: 18px;
    color: #214778 !important; /* Цвет как в хедере */
    margin-right: 8px;
    text-align: center;
    font-weight: normal; /* Иконки не жирним, чтобы не плыли */
}

/* 3. РАЗДЕЛИТЕЛЬ (Для перехода к Телеграму) */
.pm-sidebar-separator {
    height: 2px;
    background-color: #214778; /* Синяя линия бренда */
    opacity: 0.1; /* Но очень прозрачная, чтобы не резала глаз */
    margin: 10px 16px 20px 16px; /* Отступы, чтобы отделить блоки */
    border-radius: 2px;
}

/* 4. Текст описания Телеграма */
.pm-telegram-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
    padding: 0 5px; /* Небольшой отступ от краев */
}

/* --- Стили для заголовка сайта --- */
.pm-header-row {
    display: flex;
    align-items: center; 
}
.pm-header-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center; 
    padding-left: 16px; 
}
.pm-header-title {
    font-size: 1.7rem; 
    font-weight: bold; 
    margin: 0;
    white-space: nowrap; /* Название никогда не переносится */
    line-height: 1; /* ДОБАВЛЕНО: Убирает скрытое пустое пространство над и под текстом */
}

.pm-header-title a {
    text-decoration: none;
    color: white;
}

.pm-header-subtitle {
  font-size: 1rem; 
  font-weight: bold; 
  margin: 0; 
  color: #6FADFD !important; 
}
    
/* --- Новый стиль для чередующихся заголовков в контенте --- */
/* Первый тип заголовка */
.pm-content-header-1 {
  background-color: #E2EFFF; 
  color: #3A3A3A !important; 
  font-weight: bolder;
  padding: 4px 16px;
  position: relative;
  border-top: 2px solid #6FADFD; 
  border-bottom: 1px solid #E0E0E0; 
}
    
/* Второй тип заголовка */
.pm-content-header-2 {
  background-color: #E8E8E8; 
  color: #3A3A3A !important; 
  font-weight: bolder;
  padding: 4px 16px;
  position: relative;
  border-top: 1px solid #BDBDBD; 
  border-bottom: 2px solid #818181; 
}
    
.pm-content-header-1 h1, .pm-content-header-1 h2,
.pm-content-header-2 h1, .pm-content-header-2 h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: normal; 
  text-transform: none; 
  text-shadow: none; 
}

.pm-content-header-1 h1,
.pm-content-header-2 h1 {
  font-size: 1.5rem; 
  font-weight: bold;  
}

.pm-content-header-1 h2,
.pm-content-header-2 h2 {
  font-size: 1.3rem; 
  font-weight: bold !important; 
}

/* Новый стиль для хедера цепочки навигации (прозрачный фон, без границ) */
.pm-breadcrumb-header {
  background-color: transparent;
  color: #3A3A3A !important;
  font-weight: bolder;
  padding: 2px 0; 
  position: relative;
  margin-bottom: 4px; 
}

.w3-sidebar-nav a {
  color: #024285;
}
.w3-sidebar-nav a:hover {
  background-color: #f1f1f1;
}
    
.w3-text-gray {
  color: #555 !important;
}

/* Адаптивное поведение меню в футере */
@media (max-width: 992px) {
    footer .w3-bar {
        text-align: center;
        display: block;
    }
    footer .w3-bar-item {
        width: 100%;
        text-align: center;
    }
    footer .w3-col.s12.m6.l6 {
        margin-bottom: 20px;
    }
}
    
/* --- Стили для адаптивной навигации --- */
main.w3-row {
    display: flex;
    flex-wrap: wrap;
}

@media (min-width: 993px) {
    /* ПК Версия */
    .pm-main-content-column {
        width: calc(75% - 16px); 
        order: 1;
        margin-right: 16px; 
    }
    .pm-sidebar-column {
        width: 25%; 
        order: 2;
        display: block !important;
        flex-shrink: 0;
        min-height: 100vh; /* Фон дорисовывается до конца страницы — только на десктопе */
    }
    /* Кнопка ≡ в хедере — скрывается на десктопе */
    .pm-header-nav-btn {
        display: none !important;
    }
}

@media (max-width: 992px) {
    /* Мобильная версия */
    .pm-main-content-column {
        width: 100%; 
        order: 2;
    }
    .pm-sidebar-column {
        width: calc(100%); 
        order: 1;
        display: none; /* Скрыто по умолчанию */
        position: relative;
        background-color: white; /* Белый фон выпадающего меню */
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        border-top: 1px solid #ddd;
        margin: 0px 0px 16px 0px; 
        padding: 0; 
    }
    .pm-sidebar-column.w3-show {
        display: block;
    }
    
    /* Кнопка ≡ в хедере — показывается на мобильных/планшетах, стиль как у текстовых ссылок */
    .pm-header-nav-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: transparent !important;
        border: none !important;
        color: #E2EFFF !important;
        cursor: pointer;
        padding: 4px 6px;
        font-size: 1.05rem;
        opacity: 0.9;
        transition: opacity 0.2s;
    }
    .pm-header-nav-btn:hover {
        opacity: 1;
        background: transparent !important;
    }
}

/* Блок ссылок хедера — скрывается на ≤760px (защита от перекрытия названия) */
.pm-header-links {
    display: flex;
    align-items: center;
}

@media (max-width: 760px) {
    .pm-header-links {
        display: none !important;
    }
}

/* Иконка поиска в хедере — скрыта везде кроме ≤760px */
.pm-header-search-icon {
    display: none;
}

@media (max-width: 760px) {
    .pm-header-search-icon {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: #E2EFFF !important;
        padding: 4px 6px;
        font-size: 1.05rem;
        text-decoration: none;
        opacity: 0.9;
        transition: opacity 0.2s;
    }
    .pm-header-search-icon:hover {
        opacity: 1;
        color: white !important;
    }
}

/* Стиль для компактных новостей */
.pm-news-compact p {
    margin-top: 4px; 
    margin-bottom: 8px; 
}
    
/* Новые стили для футера */
.pm-footer-link {
    color: #fff !important;
    background-color: transparent !important;
    font-weight: bold; 
    font-size: 16px; 
    transition: background-color 0.15s ease, opacity 0.15s ease;
}
.pm-footer-link:hover {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.12) !important; /* Тонкий белый оверлей на тёмном фоне */
}
.pm-footer-link-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}
@media (max-width: 992px) {
    .pm-footer-link-group {
        justify-content: center;
    }
    .pm-footer-nav {
        text-align: center;
    }
}
    
.pm-footer-counters {
  text-align: center;
  margin-top: 16px;
}
    
.pm-footer-counters .w3-row {
  display: inline-flex;
  gap: 5px;
}

.pm-footer-bottom-text p {
    font-size: 14px;
    font-weight: bold;
    color: #BCBCBC !important; 
}

/* Новые стили для центрирования логотипа и текста в футере */
.pm-footer-logo-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.pm-footer-logo-text-container .w3-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}
.pm-footer-logo-text-container h3, .pm-footer-logo-text-container p {
    margin: 0;
}
    
/* Стили для увеличенных отступов в футере */
.pm-footer-padding {
  padding-top: 20px !important;
  padding-bottom: 20px !important;
}

/* Обновленные стили для списка документов */
.pm-document-list {
  list-style: none; 
  padding-left: 20px; 
}
.pm-document-list li {
  position: relative; 
  margin-bottom: 8px; 
  padding-left: 15px; 
}

.pm-document-list li::before {
  content: '•'; 
  color: #CC1C24; 
  font-size: 1.2rem; 
  position: absolute; 
  left: 0; 
  top: 0;
}
.pm-document-list li a {
  color: #3A3A3A !important; 
  text-decoration: none !important; 
}
.pm-document-list li a:hover {
  text-decoration: underline !important; 
}

/* Стили для изображений в карточках главной страницы */
.w3-image {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border: 2px solid #E8E8E8;
  margin: 8px 0;
  padding: 2px;
}

/* Адаптивность для изображений */
.pm-placeholder-box--pub-rect {
  height: 100px;
}

@media (max-width: 600px) {
  .pm-placeholder-box--pub-rect {
    height: 80px;
  }
  .pm-placeholder-box i {
    font-size: 1.5rem; /* На мобильных иконка тоже должна пропорционально уменьшаться */
  }
}

/* Исправление для адаптивного отображения карточек */
@media (max-width: 600px) {
  .pm-news-card .w3-col.s12.m2,
  .pm-news-card .w3-col.s12.m10 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  .pm-news-card .w3-image {
    margin: 0;
  }
}



.pm-breadcrumb {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px; 
  line-height: 1.4; 
  font-weight: 500; 
}

.pm-breadcrumb-item {
  display: inline;
}

.pm-breadcrumb-item + .pm-breadcrumb-item::before {
  content: "›";  
  margin: 0 8px;
  color: #6c757d;
}

.pm-breadcrumb-item a,
.pm-breadcrumb-item-active {
  color: #214778;
  text-decoration: none;
}

.pm-breadcrumb-item a:hover {
  text-decoration: underline;
}

.pm-breadcrumb-item-active {
  color: #214778;  
  font-weight: 600;  
}

.pm-breadcrumb-item .fa-home {
  font-size: 12px; 
  color: #214778;
  text-decoration: none; 
}

.pm-breadcrumb-item a:not(:has(.fa-home)) {
  text-decoration: underline;
}

.pm-breadcrumb-section {
  font-weight: bold;
}

/* Стили для H1 в основной контентной области */
.w3-container h1 {
  font-size: 1.8rem; 
  font-weight: normal;
  color: #1F4971; 
  margin-top: 16px; 
  margin-bottom: 12px; 
  line-height: 1.2; 
}

/* --- Pagination --- */
.pm-pagination {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.pm-pagination-list {
  display: flex;
  list-style-type: none;
  padding-left: 0;
  margin: 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.pm-pagination-item {
  margin: 0;
}

.pm-pagination-link {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: #024285;
  border-right: 1px solid #ccc;
  white-space: nowrap;
}

.pm-pagination-item:last-child .pm-pagination-link {
  border-right: 0;
}

.pm-pagination-link:hover:not(.is-disabled):not(.is-current) {
  background-color: #f1f1f1;
}

.pm-pagination-link.is-current {
  background-color: #024285;
  color: #fff;
  cursor: default;
}

.pm-pagination-link.is-disabled {
  color: #aaa;
  cursor: not-allowed;
  background-color: #f9f9f9;
}

/* Разделительная линия между элементами списка */
.w3-row.w3-margin-bottom:not(:last-child) {
  border-bottom: 1px solid #E8E8E8;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

/* Разделительная линия в "Последние новости" */
.pm-news-compact article.w3-margin-bottom:not(:last-child) {
  border-bottom: 1px dotted #BFBFBF;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

/* Разделительная линия на Главной после последнего элемента первой колонки в блоках Последние новости и Документы на средних и мобильных экранах */
@media (max-width: 992px) {
  .pm-news-compact .w3-col.s12.m6:nth-child(1) article:last-child {
    border-bottom: 1px solid #E8E8E8;
    padding-bottom: 12px;
    margin-bottom: 12px;
  }
}

.pm-pagination-link.is-ellipsis {
  color: #666;
  border-right: 1px solid #ccc;
  cursor: default;
}

@media (max-width: 600px) {
  .pm-pagination {
    justify-content: center;
    padding-left: 8px;
    padding-right: 8px;
  }
  .pm-pagination-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    border: none;
    gap: 6px;
  }
  .pm-pagination-item {
    margin: 0;
  }
  .pm-pagination-link {
    min-width: 36px;
    text-align: center;
    border: 1px solid #ccc !important;
    border-radius: 4px;
    padding: 8px 10px;
  }
  .pm-pagination-item:last-child .pm-pagination-link {
    border-right: 1px solid #ccc !important;
  }
  
  /* Принудительно растягиваем изображения статей на всю ширину на смартфонах (и в списках, и внутри статьи) */
  article .w3-col.s12.m2 img.w3-image,
  article.w3-row .w3-col.s12.m2 img.w3-image {
    width: 100% !important;
    height: auto !important;
    margin: 0 0 12px 0 !important;
    display: block;
  }
}


/* --- Стили со старого сайта (Legacy Styles) --- */

article h2 {
	color: #1F4971;
  font-weight: normal;
  font-size: 1.5rem;
}

article h3 {
	color: #1F4971;
  font-weight: normal;
  font-size: 1.3rem;
}

article h4 {
	color: #1F4971;
  font-weight: normal;
  font-size: 1.1rem;
}

article a {
	color: #214778;
}

article a:hover {
	color: #6fadfd;
}

article ol li::marker {
  color: #6fadfd !important;
}

article ul li::marker {
  color: #CC1C24 !important;
}

/* Стандартная горизонтальная прокрутка для тега pre (документы) */
article pre {
  max-width: 100%;
  overflow-x: auto; /* Включает горизонтальную прокрутку */
  white-space: pre; /* Жестко сохраняет все пробелы и запрещает перенос строк */
  -webkit-overflow-scrolling: touch; /* Обеспечивает плавный скролл пальцем на iOS */
  

}

.citata {
	border-left: 2px solid #214778;
	padding: 8px 19px 12px 19px;
	background: #f3f3f3;
	clear: both;
}

.citata p {
	margin-bottom: 6px!important;
}

.citata ol,
.citata ul,
.info ol,
.info ul {
	margin: 0;
	padding: 0;
}

.citata ol li:before {
	color: #214778;
}

.citata-title {
	font: Tahoma, Geneva, sans-serif;
	margin: 0 0 10px;
}

.citata {
	color: #000;
	margin: 20px 0;
}

.info {
	padding: 0 0 0 12px;
	margin: 20px 0 20px 17px;
	position: relative;
	border-left: 2px solid #cc1c24;
}

.warning-message {
	border: 1px solid #aabeda;
	background: url('images/warning.png') #f6f6f6 15px center no-repeat;
	padding: 15px 15px 15px 45px;
	font-size: 12px;
}

.warning-message a {
	color: #336799;
	text-decoration: none;
	border-bottom: 1px dashed #336799;
}

.warning-message a:hover {
	color: #336799;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.message {
	margin: 20px 0;
	position: relative;
}

.message:before {
	content: "i";
	width: 14px;
	height: 14px;
	margin: 0 5px 7px 0;
	display: inline-block;
	border: 2px solid #6fadfd;
	color: #6fadfd;
	line-height: 14px;
	font-weight: bold;
	font-size: 13px;
	text-align: center;
}

.tips {
	padding: 0 0 0 34px;
	position: relative;
}

.tips:before {
	content: "";
	width: 8px;
	height: 13px;
	background: url("/images/lamp.png") no-repeat;
	position: absolute;
	top: 2px;
	left: 13px;
}

.picture {
	margin: 20px auto 29px;
	text-align: center
}

.picture img {
	display: inline-block;
	border: 1px solid #fff;
	outline: 1px solid #e8e8e8;
	max-width: 100%;
	height: auto;
} 

.picture .caption {
	font: italic 13px Arial, "Times New Roman", sans-serif;
	color: #818181;
	text-align: center;
	padding: 8px 0 0;
	margin: 0;
}

.video {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 13px auto;
}

.video iframe {
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
}

.download {
	margin: 20px 0;
	border: 2px solid #e8e8e8;
	padding: 6px 6px 6px 45px;
	line-height: 1.2;
	position: relative;
}

.download a {
	font-weight: bold;
}

.download:before {
	content: "";
	width: 25px;
	height: 25px;
	background: url("/images/document-download.png") no-repeat;
	position: absolute;
	top: 10px;
	left: 9px;
}

.document-download {
	margin: 20px 0;
	border: 2px solid #e8e8e8;
	padding: 6px 6px 6px 45px;
	line-height: 1.2;
	position: relative;
}

.document-download:before {
	content: "";
	width: 25px;
	height: 25px;
	background: url("/images/document-download.png") no-repeat;
	position: absolute;
	top: 10px;
	left: 9px;
}

.document-download a {
	font-weight: bold;
}

.document-download a:hover {
	color: #428ff3;
}

table.blue {
	width: 100%;
	margin: 20px 0;
	border: 1px solid #e8e8e8;
	border-collapse: separate;
}

table.blue tr:nth-child(2n) td {
	background: #f3f3f3;
}

table.blue tr:first-child th {
	background: #214778;
	color: #fff;
	text-align: center;
	padding: 5px 10px;
	border-bottom: 1px solid #fff;
	border-top: 0;
}

table.blue tr:last-child th {
	border-bottom: 0;
}

table.blue th {
	background: #e2efff;
	color: #214778;
	padding: 5px 10px;
	text-align: left;
	border-bottom: 1px solid #fff;
	border-top: 1px solid #e8e8e8;
	vertical-align: top;
}

table.blue td {
	border-top: 1px solid #e8e8e8;
	padding: 5px 10px;
}

blockquote {
	padding: 0 30px;
	margin: 20px 0 25px;
	color: #818181;
}

/* Таблица .gray в детальных элементах */
table.gray {
	width: 100%;
	margin: 20px 0;
	border-bottom: 1px solid #d7d7d7;
	border-collapse: separate;
}

table.gray tr:nth-child(2n + 1) td {
	background: #f3f3f3;
}

table.gray td:first-child {
	color: #33363a;
}

table.gray th {
	background: #818181;
	color: #fff;
	text-align: left;
	padding: 5px 10px;
	border-bottom: 1px solid #fff;
	border-top: 0;
}

table.gray td {
	border-top: 1px solid #d7d7d7;
	padding: 5px 10px;
	color: #000;
	text-align: left;
}

table td.align-center {
	text-align: center;
}

/* Делаем все изображения внутри контента поста адаптивными */
.w3-row p img {
    max-width: 100%;    
    height: auto;       
    display: block;     
    margin: 10px 0;     
}

/* Кнопка "Задать вопрос" в сайдбаре */
.pm-sidebar-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f7ff; 
    color: #214778 !important; /* Фирменный синий */
    border: 2px solid #214778; /* Синяя рамка */
    text-decoration: none !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    padding: 10px 0; /* Уменьшено на 2px из-за рамки */
    transition: all 0.2s ease;
}

.pm-sidebar-cta-btn:hover {
    /* Вместо сплошного синего используем очень легкий оттенок из навигации */
    background-color: #ffffff; 
    border-color: #6FADFD; /* Цвет акцента из subtitle */
    color: #012e5c !important; /* Текст становится чуть глубже */
    box-shadow: 0 2px 8px rgba(33, 71, 120, 0.1); /* Мягкая тень */
}


/* Кнопка в Telegram баннере — исправленный вариант */
.pm-telegram-btn {
    display: block;
    background-color: #f1f7ff; 
    color: #214778 !important; 
    border: 2px solid white; 
    text-decoration: none; 
    text-align: center;
    font-weight: 800; 
    text-transform: uppercase;
    font-size: 0.95rem;
    padding: 12px 0;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.pm-telegram-btn:hover {
    background-color: #ffffff; /* Белый фон при наведении для яркости */
    color: #012e5c !important; /* Темно-синий текст для контраста */
    border-color: #6FADFD; /* Тот же акцент, что и у первой кнопки */
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); /* Чуть больше глубины */
}

/* --- Оптическая корректировка выравнивания правого меню --- */
.pm-header-right-side {
    margin-top:4px; /* Опускает весь правый блок чуть ниже на линию Title. 
                        Можно изменить на 2px или 4px для идеального результата на ваш вкус */
}

/* ==========================================================================
   ФИНАЛЬНОЕ РЕШЕНИЕ ДЛЯ ИКОНОК В ШАПКЕ (Анти-зум баг)
   ========================================================================== */

/* ==========================================================================
   ФИНАЛЬНОЕ РЕШЕНИЕ ДЛЯ ИКОНОК В ШАПКЕ (Анти-зум баг)
   ========================================================================== */

/* 1. Задаем тексту жесткий пиксельный размер */
.pm-header-links a {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 12px !important; /* ИЗМЕНЕНО: уменьшили до 13px */
    line-height: 1 !important;  
}

/* 2. Принудительно уравниваем коробку иконки с коробкой текста */
.pm-header-links a i {
    display: block !important; 
    font-size: 12px !important; /* ИЗМЕНЕНО: уменьшили до 13px синхронно с текстом */
    line-height: 1 !important;
    
    /* Убиваем все старые сдвиги, из-за которых ломался Chrome */
    transform: none !important;
    position: static !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    
    /* Оптическая микро-корректировка. 
       Оставляем 0, но если при 13px иконки покажутся чуть высоковаты, поменяйте на 1px */
    margin-top: 0px !important; 
}

/* Выравниваем гамбургер и мобильные иконки строго по линии текста */
.pm-header-nav-btn,
.pm-header-search-icon {
    margin-top: 0px !important; /* Опускает иконки. Если нужно сильнее — ставьте 3px или 4px */
}

/* Верстка для раздела документов */

table { margin-top:0pt; margin-bottom:14px }
.p_cell { margin-right:0pt; margin-left:0pt; text-align:left; font-family:'Courier New'; }
.p_doclist { margin-right:0pt; margin-left:0pt; text-align:left; font-family:'Courier New'; }
.p_nonformat { margin-right:0pt; margin-left:0pt; text-align:left; font-family:'Courier New'; }
.p_normal { font-family:Arial; }
.p_textlist { margin-right:0pt; margin-left:0pt; text-align:left; }
.p_textlist1 { margin-right:0pt; margin-left:0pt; text-align:left;  }
.p_title {
  color:#000;
 }

/* ===== Cookie-уведомление ===== */
.cookie-alert {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #ffffff; /* Чистый белый фон */
    border-top: 3px solid #214778; /* Фирменная синяя линия отсечки */
    padding: 15px 20px;
    text-align: center;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.15); /* Глубокая тень для эффекта парения */
    box-sizing: border-box;

    /* Начальное состояние: сдвинут вниз на 120% (чтобы скрыть и тень) */
    transform: translateY(120%);
    visibility: hidden;
    /* Настройка плавности движения */
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s 0.5s;
}

/* Класс, который добавляет скрипт для показа */
.cookie-alert.show {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s;
}

.cookie-alert p {
    margin: 0 0 10px 0;
    color: #333333; /* Темно-серый текст для контраста */
    font-size: 13px;
    line-height: 1.4;
}

.cookie-alert a:not(.accept-cookie) {
    color: #214778; /* Синяя ссылка */
    text-decoration: underline;
}

.cookie-alert .accept-cookie {
    display: inline-block;
    background: #214778; /* Синяя кнопка */
    color: #ffffff; /* Белый текст на кнопке */
    padding: 6px 30px;
    border: none;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cookie-alert .accept-cookie:hover {
    background: #012e5c; /* Более темный синий при наведении из твоей палитры */
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}



