.navbar-header .wrap-gerb {
    margin-right: 10px;
    text-align: right;
    padding-top: 6px;
    width: 45px;
    padding-right: 15px;
  }
  
  .navbar-header .wrap-gerb img {
    max-height: 56px;
    max-width: 45px;
    height: auto;
  }
  
  .navbar-header .logo-gorizontal {
    transform: rotate(90deg);
  }
  
  .navbar-header .logo-gorizontal img {
    transform: rotate(-90deg);
    max-height: 45px;
    max-width: 56px;
  }
  
  .navbar-header .logo-big {
    width: calc(55px * 1.5);
  }
  
  .navbar-header .logo-big img {
    max-height: calc(56px * 1.5);
    max-width: calc(45px * 1.5);
  }
  
  .navbar-header .logo-verybig {
    width: calc(55px * 1.7);
  }
  
  .navbar-header .logo-verybig img {
    max-height: calc(56px * 1.7);
    max-width: calc(45px * 1.7);
  }
  
  .navbar-header .title-site {
    display: table-cell;
    vertical-align: middle;
    float: none;
    width: calc(55% - 55px);
    line-height: 1.2;
    font-size: 1.8rem;
  }

@media (min-width: 768px) {
    .owl-banners-main .banners-item .top,
    .owl-banners-main .banners-item .bottom {
        min-height: 151px;
        padding: 12px 14px 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }

    .owl-banners-main .banners-item a {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        min-height: 129px;
        text-decoration: none;
    }

    .owl-banners-main .banners-item p.title {
        color: #0e7498;
        margin: 8px auto 0;
        width: 92%;
        line-height: 1.05;
        height: 45px;
        overflow: hidden;
        display: block;
        text-align: center;
    }

    .owl-banners-main .banners-item img {
        width: 100%;
        height: 76px;
        max-height: 76px;
        display: block;
        object-fit: contain;
        object-position: center center;
    }
}

/* Footer social icon cleanup: Max/Dzen rendered as compact icons, not text labels */
.nav-soc .footer-social-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.05em;
    height: 1.05em;
    vertical-align: -0.08em;
    line-height: 1;
}
.nav-soc .footer-social-svg svg {
    display: block;
    width: 1em;
    height: 1em;
    fill: currentColor;
}
.nav-soc .footer-social-max svg {
    width: 1.14em;
    height: 1.14em;
}
.nav-soc .footer-social-dzen svg {
    width: 1.02em;
    height: 1.02em;
}

/* Hermes mobile contacts fix 2026-06-05 */
@media (max-width: 767px) {
  .box-body table.tg {
    display: block;
    width: 100% !important;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .box-body table.tg td,
  .box-body table.tg th {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .box-body img {
    max-width: 100%;
    height: auto !important;
  }

  .box-body a[href*="pos.gosuslugi.ru"] img {
    display: block;
    width: 100% !important;
    height: auto !important;
  }
}
/* /Hermes mobile contacts fix */



/* Hermes contacts page mobile card layout 2026-06-05 */
@media (max-width: 767px) {
  .contacts-mobile-page {
    font-size: 15px;
    line-height: 1.45;
  }

  .contacts-mobile-page > b {
    display: block;
    margin: 18px 0 10px;
    font-size: 16px;
    line-height: 1.3;
  }

  .contacts-mobile-page .contacts-table {
    display: block !important;
    width: 100% !important;
    border: 0 !important;
    overflow: visible !important;
  }

  .contacts-mobile-page .contacts-table thead {
    display: none !important;
  }

  .contacts-mobile-page .contacts-table tbody,
  .contacts-mobile-page .contacts-table tr,
  .contacts-mobile-page .contacts-table td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  .contacts-mobile-page .contacts-table tr {
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid #d7dfe5;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
  }

  .contacts-mobile-page .contacts-table td,
  .contacts-mobile-page .contacts-table th {
    border: 0 !important;
    padding: 5px 0 !important;
    text-align: left !important;
    font-size: 15px !important;
    line-height: 1.35;
    word-break: normal !important;
    overflow-wrap: anywhere;
    color: #1f2d3d;
  }

  .contacts-mobile-page .contacts-table td:empty {
    display: none !important;
  }

  .contacts-mobile-page .contacts-table td::before {
    display: block;
    margin: 0 0 2px;
    color: #6b7c8f;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .02em;
  }

  .contacts-mobile-page .contacts-table-admin td:nth-child(1)::before { content: "Должность"; }
  .contacts-mobile-page .contacts-table-admin td:nth-child(2)::before { content: "ФИО"; }
  .contacts-mobile-page .contacts-table-admin td:nth-child(3)::before { content: "Кабинет"; }
  .contacts-mobile-page .contacts-table-admin td:nth-child(4)::before { content: "Телефон"; }
  .contacts-mobile-page .contacts-table-admin td:nth-child(5)::before { content: "Email"; }

  .contacts-mobile-page .contacts-table-deputies td:nth-child(1)::before { content: "Ф.И.О."; }
  .contacts-mobile-page .contacts-table-deputies td:nth-child(2)::before { content: "Телефон"; }
  .contacts-mobile-page .contacts-table-deputies td:nth-child(3)::before { content: "Время приёма"; }
  .contacts-mobile-page .contacts-table-deputies td:nth-child(4)::before { content: "Место приёма"; }

  .contacts-mobile-page .contacts-table-emergency td:nth-child(1)::before { content: "Служба"; }
  .contacts-mobile-page .contacts-table-emergency td:nth-child(2)::before { content: "Телефон"; }

  .contacts-mobile-page .contacts-table a {
    display: inline-block;
    max-width: 100%;
    word-break: break-word;
  }

  .contacts-mobile-page [id*="map"],
  .contacts-mobile-page .bx-yandex-map,
  .contacts-mobile-page .ymaps-2-1-79-map {
    max-width: 100% !important;
  }

  .contacts-mobile-page .contacts-pos-banner,
  .contacts-mobile-page .contacts-pos-banner img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .contacts-mobile-page + .date-update,
  .contacts-mobile-page .date-update {
    font-size: 12px;
  }
}
/* /Hermes contacts page mobile card layout */


/* Hermes contacts mobile compact override 2026-06-05 */
@media (max-width: 767px) {
  .contacts-mobile-page {
    font-size: 14px;
    line-height: 1.32;
  }

  .contacts-mobile-page > b {
    margin: 12px 0 8px;
    font-size: 15px;
  }

  .contacts-mobile-page .contacts-table tr {
    margin: 0 0 8px;
    padding: 8px 10px;
    border-radius: 6px;
  }

  .contacts-mobile-page .contacts-table td,
  .contacts-mobile-page .contacts-table th {
    padding: 2px 0 !important;
    font-size: 14px !important;
    line-height: 1.28;
  }

  .contacts-mobile-page .contacts-table td::before {
    content: none !important;
    display: none !important;
  }

  .contacts-mobile-page .contacts-table-admin td:nth-child(1),
  .contacts-mobile-page .contacts-table-deputies td:nth-child(1),
  .contacts-mobile-page .contacts-table-emergency td:nth-child(1) {
    font-weight: 700;
    color: #1f2d3d;
  }

  .contacts-mobile-page .contacts-table-admin td:nth-child(2),
  .contacts-mobile-page .contacts-table-deputies td:nth-child(2),
  .contacts-mobile-page .contacts-table-admin td:nth-child(4),
  .contacts-mobile-page .contacts-table-admin td:nth-child(5),
  .contacts-mobile-page .contacts-table-emergency td:nth-child(2) {
    color: #35495e;
  }

  .contacts-mobile-page br {
    line-height: 1.1;
  }
}
/* /Hermes contacts mobile compact override */


/* Hermes contacts mobile hide cabinets compact override 2026-06-05 */
@media (max-width: 767px) {
  /* В мобильной версии убираем номера кабинетов из карточек администрации */
  .contacts-mobile-page .contacts-table-admin td:nth-child(3) {
    display: none !important;
  }

  /* Еще компактнее карточки на телефоне */
  .contacts-mobile-page .contacts-table tr {
    margin-bottom: 6px;
    padding: 7px 9px;
  }

  .contacts-mobile-page .contacts-table td,
  .contacts-mobile-page .contacts-table th {
    padding-top: 1px !important;
    padding-bottom: 1px !important;
    line-height: 1.24;
  }

  .contacts-mobile-page .contacts-table-admin td:nth-child(1),
  .contacts-mobile-page .contacts-table-deputies td:nth-child(1),
  .contacts-mobile-page .contacts-table-emergency td:nth-child(1) {
    margin-bottom: 2px;
  }
}
/* /Hermes contacts mobile hide cabinets compact override */


/* Hermes news summary compact mobile 2026-06-06 */
.hermes-readable-summary {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-left: 4px solid #3498db;
  background: #f4f8fb;
  border-radius: 8px;
}
.hermes-readable-summary .hermes-summary-title {
  margin: 0 0 8px;
  color: #1f4e79;
  font-size: 18px;
  line-height: 1.25;
}
.hermes-readable-summary ul {
  margin: 0;
  padding-left: 18px;
}
.hermes-readable-summary li {
  margin: 0 0 7px;
  line-height: 1.45;
}
.hermes-readable-summary li:last-child { margin-bottom: 0; }
@media (max-width: 767px) {
  .news-tag-filter { margin-bottom: 16px !important; gap: 8px !important; }
  .news-tag-filter .btn { padding: 6px 12px; font-size: 14px; line-height: 1.25; }
  .hermes-readable-summary {
    margin: 0 0 14px;
    padding: 11px 12px;
    border-left-width: 3px;
    border-radius: 6px;
    font-size: 15px;
  }
  .hermes-readable-summary .hermes-summary-title {
    margin-bottom: 6px;
    font-size: 16px;
  }
  .hermes-readable-summary ul { padding-left: 17px; }
  .hermes-readable-summary li { margin-bottom: 5px; line-height: 1.35; }
  .box-body p, .box-body li { line-height: 1.45; }
}
/* /Hermes news summary compact mobile */


/* Hermes news mobile gap compact 2026-06-06 */
@media (max-width: 767px) {
  /* Убираем пустое место между заголовком раздела и первой новостью */
  body .box .box-title { margin-bottom: 0 !important; }
  body .box .box-title h1 { margin-bottom: 4px !important; }
  body .box .box-body { padding-top: 0 !important; }
  body .box .box-body > a[href="/news/rss/"] { display: none !important; }
  body .news-tag-filter { margin: 0 0 10px !important; }
  body .news-list .item:first-child { margin-top: 0 !important; }
  body .news-list .item:first-child .wrap-media { margin-top: 0 !important; }
}
/* /Hermes news mobile gap compact */

/* Hermes hide mobile news filters 2026-06-06 */
@media (max-width: 767px) {
  body .news-tag-filter {
    display: none !important;
  }
}
/* /Hermes hide mobile news filters */


/* Hermes contacts desktop redesign 2026-06-06 */
.contacts-full-width-col .box,
.contacts-full-width-col .box-body {
  width: 100%;
}

.contacts-desktop-page {
  color: #263238;
}

.contacts-desktop-page .contacts-hero {
  margin: 0 0 28px;
  padding: 28px;
  border-radius: 18px;
  background: linear-gradient(135deg, #eef7ff 0%, #f7fbff 55%, #ffffff 100%);
  border: 1px solid #d9e8f5;
  box-shadow: 0 10px 28px rgba(31, 78, 121, .08);
}

.contacts-desktop-page .contacts-eyebrow {
  margin-bottom: 7px;
  color: #1b75bb;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contacts-desktop-page .contacts-hero h2 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  color: #17344f;
}

.contacts-desktop-page .contacts-hero p {
  max-width: 760px;
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.55;
  color: #526371;
}

.contacts-desktop-page .contacts-hero__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.contacts-desktop-page .contacts-card {
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e3edf5;
}

.contacts-desktop-page .contacts-card span {
  display: block;
  margin-bottom: 6px;
  color: #748494;
  font-size: 13px;
}

.contacts-desktop-page .contacts-card strong {
  display: block;
  font-size: 17px;
  line-height: 1.35;
  color: #1f3448;
}

.contacts-desktop-page .contacts-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contacts-desktop-page .contacts-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid #b9d8ef;
  background: #fff;
  color: #1b75bb;
  font-weight: 700;
  text-decoration: none;
}

.contacts-desktop-page .contacts-action:hover,
.contacts-desktop-page .contacts-action:focus {
  background: #eef7ff;
  text-decoration: none;
}

.contacts-desktop-page .contacts-action--primary {
  background: #1b75bb;
  border-color: #1b75bb;
  color: #fff;
}

.contacts-desktop-page .contacts-action--primary:hover,
.contacts-desktop-page .contacts-action--primary:focus {
  background: #145f99;
  color: #fff;
}

.contacts-desktop-page .contacts-section-title {
  margin: 30px 0 14px;
  padding-left: 14px;
  border-left: 4px solid #1b75bb;
  color: #17344f;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
}

.contacts-desktop-page .contacts-table {
  width: 100% !important;
  margin: 0 0 24px;
  border-collapse: separate !important;
  border-spacing: 0;
  border: 1px solid #dce7f0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 22px rgba(31, 78, 121, .05);
}

.contacts-desktop-page .contacts-table th,
.contacts-desktop-page .contacts-table td {
  border: 0 !important;
  border-bottom: 1px solid #edf2f6 !important;
  padding: 13px 14px !important;
  color: #263238 !important;
  font-size: 15px !important;
  line-height: 1.45;
  vertical-align: middle !important;
  word-break: normal !important;
  overflow-wrap: anywhere;
}

.contacts-desktop-page .contacts-table th,
.contacts-desktop-page .contacts-table thead td {
  background: #eef5fb !important;
  color: #17344f !important;
  font-weight: 700 !important;
  text-align: left !important;
}

.contacts-desktop-page .contacts-table tbody tr:nth-child(even) td {
  background: #fafcff !important;
}

.contacts-desktop-page .contacts-table tbody tr:hover td {
  background: #f2f8fd !important;
}

.contacts-desktop-page .contacts-table tr:last-child td {
  border-bottom: 0 !important;
}

.contacts-desktop-page .contacts-table a[href^="tel:"],
.contacts-desktop-page .contacts-table a[href^="mailto:"],
.contacts-desktop-page .contacts-card a {
  color: #1268a8;
  font-weight: 700;
  text-decoration: none;
}

.contacts-desktop-page .contacts-table a:hover,
.contacts-desktop-page .contacts-card a:hover {
  text-decoration: underline;
}

.contacts-desktop-page .contacts-table-admin td:nth-child(1),
.contacts-desktop-page .contacts-table-admin td:nth-child(2),
.contacts-desktop-page .contacts-table-deputies td:nth-child(1) {
  font-weight: 600;
  color: #1f3448 !important;
}

.contacts-desktop-page .contacts-pos-banner {
  display: block;
  max-width: 760px;
  margin: 28px auto 0;
  padding: 12px;
  border-radius: 18px;
  background: #f4f9fd;
  border: 1px solid #d9e8f5;
}

.contacts-desktop-page .contacts-pos-banner img {
  display: block;
  width: 100% !important;
  height: auto !important;
  border-radius: 12px;
}

@media (min-width: 768px) {
  .contacts-full-width-col .box-body {
    padding: 24px 28px 34px;
  }
}

@media (max-width: 767px) {
  .contacts-desktop-page .contacts-hero {
    margin-bottom: 18px;
    padding: 16px;
    border-radius: 14px;
  }
  .contacts-desktop-page .contacts-hero h2 {
    font-size: 20px;
  }
  .contacts-desktop-page .contacts-hero p {
    font-size: 14px;
  }
  .contacts-desktop-page .contacts-hero__cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .contacts-desktop-page .contacts-card {
    padding: 12px;
  }
  .contacts-desktop-page .contacts-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .contacts-desktop-page .contacts-action {
    width: 100%;
  }
  .contacts-desktop-page .contacts-section-title {
    margin: 20px 0 10px;
    font-size: 18px;
  }
}
/* /Hermes contacts desktop redesign */

/* Hermes contacts keep mobile compact after desktop redesign 2026-06-06 */
@media (max-width: 767px) {
  .contacts-desktop-page .contacts-hero {
    display: none;
  }
}
/* /Hermes contacts keep mobile compact */


/* Hermes contacts cabinet column removed 2026-06-06 */
@media (max-width: 767px) {
  .contacts-mobile-page .contacts-table-admin td:nth-child(3) {
    display: block !important;
  }
  .contacts-mobile-page .contacts-table-admin td:nth-child(3)::before { content: "Телефон"; }
  .contacts-mobile-page .contacts-table-admin td:nth-child(4)::before { content: "Email"; }
}
/* /Hermes contacts cabinet column removed */

/* Hermes contacts center table headers 2026-06-06 */
.contacts-desktop-page .contacts-table th,
.contacts-desktop-page .contacts-table thead td {
  text-align: center !important;
}
/* /Hermes contacts center table headers */

/* Hermes news titles match detail safe 2026-06-09 */
/* Безопасная правка: только типографика, без изменения display/разметки карточек. */
body .news-list .item a.title,
body .news-list .item .wrap-text a.title,
body .news-list-main .item a.title,
body .news-list-main .item .wrap-text a.title {
  color: #3498DB !important;
  font-size: 20px !important;
  line-height: 1.1 !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
}

body .news-list .item a.title b,
body .news-list .item .wrap-text a.title b,
body .news-list-main .item a.title b,
body .news-list-main .item .wrap-text a.title b {
  color: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  font-weight: inherit !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
}

body .news-list .item a.title:hover,
body .news-list .item a.title:focus,
body .news-list-main .item a.title:hover,
body .news-list-main .item a.title:focus {
  color: #3498DB !important;
  text-decoration: none !important;
}
/* /Hermes news titles match detail safe */

/* Hermes news detail views counter */
.news-detail .hermes-news-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 0 0 14px;
  color: #777;
  font-size: 14px;
  line-height: 1.35;
}
.news-detail .hermes-news-detail-meta .date,
.news-detail .hermes-news-detail-meta .hermes-news-views {
  margin: 0;
  color: #777;
}
.news-detail .hermes-news-views:before {
  content: "\f06e";
  font-family: FontAwesome;
  margin-right: 6px;
  color: #3498DB;
}
@media (max-width: 767px) {
  .news-detail .hermes-news-detail-meta {
    font-size: 13px;
    margin-bottom: 12px;
  }
}

/* Hermes hide homepage news date icons */
body .wrap-main-news .news-list-main .item .date,
body .wrap-main-news .news-list-main .item .wrap-text .date {
  background: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}
body .wrap-main-news .news-list-main .item .date:before,
body .wrap-main-news .news-list-main .item .date::before,
body .wrap-main-news .news-list-main .item .wrap-text .date:before,
body .wrap-main-news .news-list-main .item .wrap-text .date::before,
body .wrap-main-news .news-list-main .item .date:after,
body .wrap-main-news .news-list-main .item .date::after,
body .wrap-main-news .news-list-main .item .wrap-text .date:after,
body .wrap-main-news .news-list-main .item .wrap-text .date::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

/* Hermes mobile PDF viewer overflow fix 2026-06-09 */
@media (max-width: 767px) {
  .bx-pdf-container,
  .bx-pdf-container .outerContainer,
  .bx-pdf-container .mainContainer,
  .bx-pdf-container .viewerContainer,
  .bx-pdf-container .toolbarContainer {
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .bx-pdf-container {
    overflow-x: hidden !important;
  }
  .bx-pdf-container .sidebarContainer {
    display: none !important;
  }
  .bx-pdf-container .mainContainer {
    left: 0 !important;
  }
  .bx-pdf-container .toolbarViewer,
  .bx-pdf-container .toolbarViewerLeft,
  .bx-pdf-container .toolbarViewerRight,
  .bx-pdf-container .toolbarViewerMiddle {
    max-width: 100% !important;
  }
}
/* /Hermes mobile PDF viewer overflow fix */
