:root {
  --vchr-green-950: #08261e;
  --vchr-green-900: #0b3327;
  --vchr-green-800: #104533;
  --vchr-green-700: #15583f;
  --vchr-green-100: #edf5f1;
  --vchr-border: #dfe8e3;
  --vchr-text: #1e2723;
  --vchr-muted: #68756e;
  --vchr-bg: #f6f8f6;
  --vchr-white: #ffffff;
  --vchr-gold: #d3a447;
  --vchr-blue: #3c8bb9;
  --vchr-orange: #d9852c;
  --vchr-shadow: 0 18px 45px rgba(13, 44, 32, .08);
  --vchr-radius: 18px;
}

body {
  background: var(--vchr-bg);
  color: var(--vchr-text);
  font-family: Arial, "PT Sans", sans-serif;
}

#wrapper,
#page,
.container,
.container-inner,
.main,
.main-inner {
  max-width: none;
}

#page {
  background: var(--vchr-bg);
  padding: 0;
}

.main,
.main-inner {
  background: transparent;
}

#header.vchr-header {
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.08), transparent 32%),
    linear-gradient(135deg, var(--vchr-green-950), var(--vchr-green-800));
  color: var(--vchr-white);
  box-shadow: none;
}

.vchr-mobile-menu-toggle {
  display: none;
}

.vchr-header-container,
.vchr-home,
.vchr-footer-container {
  width: min(1440px, calc(100vw - 64px));
  margin-left: auto;
  margin-right: auto;
}

.vchr-header-top {
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.vchr-header-top-inner {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.vchr-primary-nav,
.vchr-subnav {
  min-width: 0;
}

.vchr-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 26px;
}

.vchr-menu-list li {
  position: relative;
  margin: 0;
  padding: 0;
}

.vchr-menu-list a {
  color: rgba(255,255,255,.94);
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
}

.vchr-menu-list a:hover,
.vchr-menu-list a:focus {
  color: #fff;
  text-decoration: underline;
}

.vchr-menu-list .sub-menu {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 50;
  min-width: 230px;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  display: none;
  background: var(--vchr-white);
  color: var(--vchr-text);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 18px 30px rgba(0,0,0,.16);
}

.vchr-menu-list li:hover > .sub-menu,
.vchr-menu-list li:focus-within > .sub-menu {
  display: block;
}

.vchr-menu-list .sub-menu a {
  min-height: auto;
  display: block;
  padding: 9px 16px;
  color: var(--vchr-text);
  font-size: 14px;
}

.vchr-brand-zone {
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.vchr-brand-inner {
  min-height: 142px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.vchr-brand {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  color: var(--vchr-white);
  min-width: 0;
}

.vchr-brand:hover,
.vchr-brand:focus {
  color: var(--vchr-white);
  text-decoration: none;
}

.vchr-logo-mark {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  border: 3px solid rgba(255,255,255,.75);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .04em;
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 7px rgba(255,255,255,.06);
  overflow: hidden;
}

.vchr-logo-mark img {
  max-width: 74px;
  max-height: 74px;
  object-fit: contain;
}

.vchr-brand-text {
  display: flex;
  align-items: center;
  gap: 32px;
  min-width: 0;
}

.vchr-brand-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5vw, 76px);
  letter-spacing: .16em;
  font-weight: 700;
  line-height: 1;
}

.vchr-brand-subtitle {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2vw, 32px);
  line-height: 1.15;
  white-space: nowrap;
}

.vchr-search-form {
  flex: 0 1 420px;
  height: 48px;
  display: flex;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 9px;
  overflow: hidden;
  background: rgba(255,255,255,.07);
}

.vchr-search-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 0 16px;
  color: var(--vchr-white);
  background: transparent;
  outline: none;
  font-size: 14px;
}

.vchr-search-form input::placeholder {
  color: rgba(255,255,255,.65);
}

.vchr-search-form button {
  width: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  color: var(--vchr-white);
  background: transparent;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.vchr-subnav-wrap {
  background: rgba(0,0,0,.08);
}

.vchr-subnav {
  min-height: 48px;
  display: flex;
  align-items: center;
  overflow-x: auto;
}

.vchr-subnav .vchr-menu-list {
  flex-wrap: nowrap;
  gap: 0 30px;
}

.vchr-subnav .vchr-menu-list a {
  min-height: 48px;
}

.content.vchr-content {
  width: 100%;
  float: none;
  margin: 0;
}

.vchr-home {
  padding: 34px 0 42px;
}

.vchr-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(330px, .95fr);
  gap: 32px;
  margin-bottom: 32px;
}

.vchr-hero-card,
.vchr-important-card,
.vchr-panel {
  border: 1px solid var(--vchr-border);
  border-radius: var(--vchr-radius);
  background: var(--vchr-white);
  box-shadow: var(--vchr-shadow);
}

.vchr-hero-card {
  overflow: hidden;
}

.vchr-hero-media {
  min-height: 380px;
  position: relative;
  display: flex;
  align-items: flex-end;
  background-color: #d9e5df;
  background-size: cover;
  background-position: center;
}

.vchr-hero-media:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.30) 56%, rgba(0,0,0,.08));
}

.vchr-hero-media.no-image {
  background:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,.22), transparent 35%),
    linear-gradient(135deg, var(--vchr-green-700), var(--vchr-green-900));
}

.vchr-hero-content {
  position: relative;
  max-width: 720px;
  padding: 34px;
  color: var(--vchr-white);
}

.vchr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 88px;
}

.vchr-chip,
.vchr-tag,
.vchr-document-type {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.vchr-chip {
  color: var(--vchr-green-900);
  background: rgba(255,255,255,.9);
}

.vchr-hero-content time {
  display: block;
  margin-bottom: 10px;
  font-weight: 800;
}

.vchr-hero-content h1 {
  margin: 0 0 12px;
  font-size: clamp(29px, 3.2vw, 48px);
  line-height: 1.08;
  color: var(--vchr-white);
}

.vchr-hero-content h1 a {
  color: var(--vchr-white);
}

.vchr-hero-content p {
  max-width: 620px;
  margin: 0 0 20px;
  opacity: .95;
}

.vchr-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  color: var(--vchr-white) !important;
  background: var(--vchr-green-700);
  font-weight: 800;
}

.vchr-button:hover,
.vchr-button:focus {
  background: var(--vchr-green-800);
  text-decoration: none;
}

.vchr-important-card {
  padding: 24px 22px;
}

.vchr-important-card h2,
.vchr-panel h2 {
  margin: 0;
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--vchr-text);
}

.vchr-important-card h2 {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--vchr-border);
}

.vchr-important-link {
  display: grid;
  grid-template-columns: 42px 1fr 16px;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--vchr-border);
  color: var(--vchr-text);
}

.vchr-important-link:last-child {
  border-bottom: 0;
}

.vchr-important-link:hover strong,
.vchr-important-link:focus strong {
  color: var(--vchr-green-700);
}

.vchr-important-link strong,
.vchr-important-link small {
  display: block;
}

.vchr-important-link small {
  color: var(--vchr-muted);
}

.vchr-doc-icon,
.vchr-file-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--vchr-white);
  background: var(--vchr-green-700);
  font-style: normal;
  font-weight: 900;
}

.vchr-doc-icon.gold { background: var(--vchr-gold); }
.vchr-doc-icon.green { background: #2d7a45; }
.vchr-doc-icon.blue { background: var(--vchr-blue); }
.vchr-doc-icon.orange { background: var(--vchr-orange); }

.vchr-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(380px, 1fr);
  gap: 32px;
}

.vchr-panel {
  padding: 24px;
}

.vchr-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.vchr-section-head a {
  color: var(--vchr-green-700);
  font-weight: 800;
}

.vchr-news-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.vchr-news-card {
  min-width: 0;
}

.vchr-thumb {
  height: 118px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #d9e5df, #edf2ef);
  background-size: cover;
  background-position: center;
}

.vchr-tag {
  margin-bottom: 10px;
  color: var(--vchr-white);
  background: var(--vchr-green-700);
}

.vchr-news-card time,
.vchr-document-item time {
  display: block;
  margin-bottom: 6px;
  color: var(--vchr-muted);
  font-size: 14px;
}

.vchr-news-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
  color: var(--vchr-text);
}

.vchr-news-card h3 a {
  color: var(--vchr-text);
}

.vchr-news-card h3 a:hover,
.vchr-news-card h3 a:focus {
  color: var(--vchr-green-700);
}

.vchr-news-card p {
  margin: 0;
  color: var(--vchr-muted);
  font-size: 15px;
}

.vchr-document-list {
  display: grid;
  gap: 0;
}

.vchr-document-item {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--vchr-border);
  color: var(--vchr-text);
}

.vchr-document-item:last-child {
  border-bottom: 0;
}

.vchr-document-item strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
}

.vchr-document-type {
  color: var(--vchr-green-700);
  background: var(--vchr-green-100);
  font-style: normal;
  white-space: nowrap;
}

.vchr-file-icon {
  background: transparent;
  color: var(--vchr-green-700);
  border: 2px solid var(--vchr-green-700);
}

.vchr-empty {
  color: var(--vchr-muted);
  margin: 0;
}

#footer.vchr-footer {
  background: var(--vchr-white);
  color: var(--vchr-text);
  border-top: 1px solid var(--vchr-border);
  margin-top: 0;
}

.vchr-footer-main {
  padding: 30px 0;
}

.vchr-footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1.2fr 1.2fr 1fr;
  gap: 28px;
}

.vchr-footer-title {
  display: block;
  color: var(--vchr-green-700);
  margin-bottom: 8px;
  font-size: 16px;
}

.vchr-footer p {
  margin: 0 0 8px;
  color: var(--vchr-muted);
}

.vchr-footer a {
  color: var(--vchr-green-700);
}

.vchr-footer a:hover,
.vchr-footer a:focus {
  text-decoration: underline;
}

.vchr-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vchr-footer-links li {
  margin: 0 0 8px;
}

.vchr-footer-copy {
  margin-top: 16px !important;
  font-size: 14px;
}

.vchr-footer-bottom {
  border-top: 1px solid var(--vchr-border);
}

.vchr-footer-bottom-inner {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--vchr-muted);
  font-size: 14px;
}

.vchr-footer-bottom-inner span {
  margin-right: auto;
}

#back-to-top {
  position: static;
  display: inline;
  width: auto;
  height: auto;
  background: transparent;
  color: var(--vchr-green-700);
  line-height: inherit;
  border-radius: 0;
}

@media (max-width: 1100px) {
  .vchr-brand-inner,
  .vchr-hero-grid,
  .vchr-content-grid,
  .vchr-footer-grid {
    grid-template-columns: 1fr;
  }

  .vchr-brand-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 0;
  }

  .vchr-search-form {
    width: 100%;
    flex-basis: auto;
  }

  .vchr-news-list {
    grid-template-columns: 1fr;
  }

  .vchr-footer-grid {
    gap: 18px;
  }
}

@media (max-width: 820px), (orientation: landscape) and (max-width: 900px) and (max-height: 500px) {
  .vchr-header-container,
  .vchr-home,
  .vchr-footer-container {
    width: min(100vw - 28px, 1440px);
  }

  .vchr-header-top-inner {
    align-items: flex-start;
    padding: 14px 0;
    flex-direction: column;
  }

  .vchr-menu-list {
    gap: 0 18px;
  }

  .vchr-menu-list a {
    min-height: 36px;
  }

  .vchr-brand {
    align-items: flex-start;
  }

  .vchr-brand-text {
    display: block;
  }

  .vchr-brand-title {
    font-size: 38px;
  }

  .vchr-brand-subtitle {
    display: block;
    margin-top: 6px;
    font-size: 18px;
    white-space: normal;
  }

  .vchr-logo-mark {
    flex-basis: 66px;
    width: 66px;
    height: 66px;
    font-size: 13px;
  }

  .vchr-hero-media {
    min-height: 450px;
  }

  .vchr-chips {
    margin-bottom: 42px;
  }

  .vchr-document-item {
    grid-template-columns: 34px 1fr;
  }

  .vchr-document-type {
    grid-column: 2;
    justify-self: start;
  }

  .vchr-footer-bottom-inner {
    flex-wrap: wrap;
    padding: 16px 0;
  }
}


/* ========================================================================
   Vestnik width fix v2
   Forces the redesigned page out of Hueman's boxed/narrow layout and makes
   the header, homepage and footer use the browser width.
   ======================================================================== */
html,
body {
  width: 100% !important;
  max-width: none !important;
}

body #wrapper,
body.boxed #wrapper,
body.full-width #wrapper,
body #page,
body #page.container,
body .container,
body .container-inner,
body .main,
body .main-inner {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body #page.container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body .container-inner,
body .main,
body .main-inner {
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: transparent !important;
}

body #header.vchr-header,
body #footer.vchr-footer {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

body .vchr-header-container,
body .vchr-home,
body .vchr-footer-container {
  width: min(1440px, calc(100vw - 64px)) !important;
  max-width: 1440px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body .vchr-brand-inner {
  gap: 32px;
}

body .vchr-brand-title {
  font-size: clamp(42px, 4vw, 64px);
  letter-spacing: .13em;
}

body .vchr-brand-subtitle {
  font-size: clamp(20px, 1.65vw, 28px);
  white-space: normal;
}

body .vchr-search-form {
  flex: 0 1 360px;
}

@media (max-width: 1400px) {
  body .vchr-brand-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 26px 0;
  }

  body .vchr-brand {
    width: 100%;
  }

  body .vchr-search-form {
    width: 100%;
    max-width: none;
    flex-basis: auto;
  }
}

@media (max-width: 980px) {
  body .vchr-home,
  body .vchr-footer-container {
    width: min(100vw - 28px, 1440px) !important;
  }

  body .vchr-hero-grid,
  body .vchr-content-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ========================================================================
   Vestnik corrections v3
   User requested: real logo, TIK pages in Important, shorter documents,
   news images from post content, footer contacts/socials.
   ======================================================================== */
:root {
  --vchr-green-950: #113f34;
  --vchr-green-900: #164a3d;
  --vchr-green-800: #1b5545;
  --vchr-green-700: #23664f;
  --vchr-green-100: #edf6f2;
  --vchr-red: #d2504d;
  --vchr-red-dark: #b93f3d;
  --vchr-border: #dfe8e3;
  --vchr-text: #1d2823;
  --vchr-muted: #65756d;
  --vchr-bg: #f5f8f6;
}

#header.vchr-header {
  background:
    radial-gradient(circle at 18% 12%, rgba(210,80,77,.17), transparent 30%),
    linear-gradient(135deg, var(--vchr-green-950), var(--vchr-green-800));
}

.vchr-logo-mark {
  flex: 0 0 98px;
  width: 98px;
  height: 98px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  box-shadow: 0 12px 28px rgba(0,0,0,.14);
  padding: 0;
}

.vchr-logo-mark img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  border-radius: 14px;
}

.vchr-brand-title {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.12);
}

.vchr-brand-subtitle {
  color: rgba(255,255,255,.96);
}

.vchr-button,
.vchr-tag,
.vchr-doc-icon,
.vchr-socials a:hover,
.vchr-socials a:focus {
  background: var(--vchr-red);
}

.vchr-button:hover,
.vchr-button:focus {
  background: var(--vchr-red-dark);
}

.vchr-doc-icon.gold,
.vchr-doc-icon.green,
.vchr-doc-icon.blue,
.vchr-doc-icon.orange {
  background: var(--vchr-green-700);
}

.vchr-important-link:nth-of-type(2) .vchr-doc-icon,
.vchr-important-link:nth-of-type(4) .vchr-doc-icon {
  background: var(--vchr-red);
}

.vchr-important-link:hover strong,
.vchr-important-link:focus strong,
.vchr-news-card h3 a:hover,
.vchr-news-card h3 a:focus,
.vchr-section-head a,
.vchr-footer a,
#back-to-top {
  color: var(--vchr-red-dark);
}

.vchr-thumb {
  display: block;
  height: 140px;
  background-color: #d8e3de;
}

.vchr-news-card h3 {
  font-size: 17px;
  font-weight: 700;
}

.vchr-news-card p {
  font-size: 14px;
}

.vchr-documents-panel {
  align-self: start;
}

.vchr-document-item {
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 11px 0;
}

.vchr-document-item strong,
.vchr-doc-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--vchr-text);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 400;
}

.vchr-document-item time {
  margin-bottom: 4px;
  font-size: 13px;
}

.vchr-document-type {
  min-height: 20px;
  padding: 2px 8px;
  font-size: 10px;
  color: var(--vchr-green-700);
  background: var(--vchr-green-100);
}

.vchr-file-icon {
  width: 30px;
  height: 30px;
  color: var(--vchr-green-700);
  border-color: var(--vchr-green-700);
  font-size: 13px;
}

.vchr-footer-grid {
  grid-template-columns: 1.35fr 1.15fr 1.2fr .95fr;
}

.vchr-footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.vchr-footer-brand img {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: contain;
  flex: 0 0 54px;
}

.vchr-footer-title {
  color: var(--vchr-green-800);
  line-height: 1.25;
}

.vchr-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vchr-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--vchr-green-800);
  background: var(--vchr-green-100);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}

.vchr-socials a:hover,
.vchr-socials a:focus {
  color: #fff;
  text-decoration: none;
}

@media (max-width: 820px), (orientation: landscape) and (max-width: 900px) and (max-height: 500px) {
  .vchr-logo-mark {
    flex-basis: 72px;
    width: 72px;
    height: 72px;
  }

  .vchr-thumb {
    height: 180px;
  }

  .vchr-footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================================
   Vestnik corrections v4
   Reading comfort for inner pages: posts, pages, archives and search should
   not stretch text across the whole monitor. Homepage stays wide.
   ======================================================================== */
body:not(.home) .main {
  padding: 34px 0 52px !important;
}

body.single .main-inner,
body.page:not(.home) .main-inner,
body.archive .main-inner,
body.search .main-inner,
body.error404 .main-inner,
body.blog:not(.home) .main-inner {
  width: min(1180px, calc(100vw - 96px)) !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.single .content,
body.page:not(.home) .content,
body.error404 .content {
  width: min(920px, 100%) !important;
  max-width: 920px !important;
  float: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.archive .content,
body.search .content,
body.blog:not(.home) .content {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.single article.post,
body.page:not(.home) article.page,
body.page:not(.home) article.hentry,
body.error404 .notebox,
body.error404 .entry {
  background: var(--vchr-white) !important;
  border: 1px solid var(--vchr-border) !important;
  border-radius: var(--vchr-radius) !important;
  box-shadow: var(--vchr-shadow) !important;
  overflow: hidden;
}

body.single .post-inner,
body.page:not(.home) .post-inner,
body.page:not(.home) article .entry,
body.error404 .notebox,
body.error404 .entry {
  padding: 36px 42px !important;
}

body.single .post-title,
body.single .entry-title,
body.page:not(.home) .post-title,
body.page:not(.home) .entry-title {
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
  color: var(--vchr-text) !important;
  font-size: clamp(30px, 3vw, 44px) !important;
  line-height: 1.15 !important;
  letter-spacing: -.02em;
}

body.single .post-meta,
body.single .post-byline,
body.single .single-heading,
body.page:not(.home) .post-meta {
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}

body.single .image-container,
body.page:not(.home) .image-container {
  max-width: 920px;
  margin: 22px auto 28px !important;
  border-radius: 14px;
  overflow: hidden;
}

body.single .entry,
body.single .entry-inner,
body.page:not(.home) .entry,
body.page:not(.home) .entry-inner {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  color: var(--vchr-text);
  font-size: 18px;
  line-height: 1.72;
}

body.single .entry p,
body.page:not(.home) .entry p {
  margin-bottom: 1.15em;
}

body.single .entry img,
body.page:not(.home) .entry img {
  height: auto;
  border-radius: 12px;
}

body.single .post-tags,
body.single .author-bio,
body.single .post-nav,
body.single .related-posts,
body.single #comments,
body.page:not(.home) #comments {
  width: min(920px, 100%) !important;
  max-width: 920px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.single .sidebar,
body.page:not(.home) .sidebar,
body.error404 .sidebar {
  display: none !important;
}

body.archive .sidebar,
body.search .sidebar,
body.blog:not(.home) .sidebar {
  display: none !important;
}

body.archive .post-list,
body.search .post-list,
body.blog:not(.home) .post-list {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

body.archive .grid-item,
body.search .grid-item,
body.blog:not(.home) .grid-item {
  background: var(--vchr-white);
  border: 1px solid var(--vchr-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(13, 44, 32, .06);
}

body.archive .post-inner,
body.search .post-inner,
body.blog:not(.home) .post-inner {
  padding: 18px !important;
}

@media (max-width: 980px) {
  body.single .main-inner,
  body.page:not(.home) .main-inner,
  body.archive .main-inner,
  body.search .main-inner,
  body.error404 .main-inner,
  body.blog:not(.home) .main-inner {
    width: min(100vw - 40px, 1180px) !important;
  }

  body.single .post-inner,
  body.page:not(.home) .post-inner,
  body.page:not(.home) article .entry,
  body.error404 .notebox,
  body.error404 .entry {
    padding: 30px 28px !important;
  }
}

@media (max-width: 620px) {
  body:not(.home) .main {
    padding: 22px 0 34px !important;
  }

  body.single .main-inner,
  body.page:not(.home) .main-inner,
  body.archive .main-inner,
  body.search .main-inner,
  body.error404 .main-inner,
  body.blog:not(.home) .main-inner {
    width: min(100vw - 24px, 1180px) !important;
  }

  body.single .post-inner,
  body.page:not(.home) .post-inner,
  body.page:not(.home) article .entry,
  body.error404 .notebox,
  body.error404 .entry {
    padding: 24px 18px !important;
  }

  body.single .entry,
  body.single .entry-inner,
  body.page:not(.home) .entry,
  body.page:not(.home) .entry-inner {
    font-size: 16px;
    line-height: 1.65;
  }
}


/* ========================================================================
   Vestnik corrections v5
   - Logo separation from the dark header
   - Top search link removed; the large brand-zone search remains
   - Important block alternates red / green
   - Four latest documents display cleanly
   - Long document/postanovlenie titles are calmer and easier to read
   ======================================================================== */

.vchr-header-top-inner {
  justify-content: flex-start;
}

.vchr-primary-nav {
  width: 100%;
}

.vchr-logo-mark {
  background: #f8fbf9 !important;
  border: 1px solid rgba(255,255,255,.78) !important;
  border-radius: 20px !important;
  padding: 10px !important;
  box-shadow: 0 18px 36px rgba(0,0,0,.20), 0 0 0 1px rgba(255,255,255,.10) !important;
}

.vchr-logo-mark img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 0 0 1px rgba(22,74,61,.12);
}

.vchr-footer-brand img {
  background: #f8fbf9;
  padding: 5px;
  box-shadow: 0 6px 18px rgba(13, 44, 32, .10);
}

.vchr-important-link .vchr-doc-icon,
.vchr-important-link .vchr-doc-icon.gold,
.vchr-important-link .vchr-doc-icon.green,
.vchr-important-link .vchr-doc-icon.blue,
.vchr-important-link .vchr-doc-icon.orange {
  background: var(--vchr-green-700);
}

.vchr-important-link:nth-of-type(1) .vchr-doc-icon,
.vchr-important-link:nth-of-type(3) .vchr-doc-icon,
.vchr-important-link:nth-of-type(5) .vchr-doc-icon {
  background: var(--vchr-red);
}

.vchr-important-link:nth-of-type(2) .vchr-doc-icon,
.vchr-important-link:nth-of-type(4) .vchr-doc-icon {
  background: var(--vchr-green-700);
}

.vchr-important-link:nth-of-type(1):hover strong,
.vchr-important-link:nth-of-type(3):hover strong,
.vchr-important-link:nth-of-type(5):hover strong,
.vchr-important-link:nth-of-type(1):focus strong,
.vchr-important-link:nth-of-type(3):focus strong,
.vchr-important-link:nth-of-type(5):focus strong {
  color: var(--vchr-red-dark);
}

.vchr-important-link:nth-of-type(2):hover strong,
.vchr-important-link:nth-of-type(4):hover strong,
.vchr-important-link:nth-of-type(2):focus strong,
.vchr-important-link:nth-of-type(4):focus strong {
  color: var(--vchr-green-700);
}

.vchr-document-item {
  min-height: 82px;
}

.vchr-document-item strong,
.vchr-doc-title {
  -webkit-line-clamp: 2;
  font-size: 13.5px;
  line-height: 1.34;
}

body.vchr-document-entry .content {
  width: min(980px, 100%) !important;
  max-width: 980px !important;
}

body.vchr-document-entry article.post,
body.vchr-document-entry article.hentry {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.vchr-document-entry .post-inner {
  background: var(--vchr-white) !important;
  border: 1px solid var(--vchr-border) !important;
  border-radius: 18px !important;
  box-shadow: var(--vchr-shadow) !important;
  padding: 30px 38px 38px !important;
}

body.vchr-document-entry .post-title,
body.vchr-document-entry .entry-title {
  max-width: 880px !important;
  margin: 0 auto 16px !important;
  padding: 20px 24px !important;
  border-left: 5px solid var(--vchr-red) !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, rgba(237,246,242,.96), rgba(255,255,255,.98)) !important;
  color: var(--vchr-text) !important;
  font-family: Arial, "PT Sans", sans-serif !important;
  font-size: clamp(22px, 2.05vw, 31px) !important;
  line-height: 1.32 !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-wrap: balance;
}

body.vchr-document-entry .post-byline,
body.vchr-document-entry .post-meta,
body.vchr-document-entry .single-heading {
  max-width: 880px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.vchr-document-entry .post-byline,
body.vchr-document-entry .post-meta {
  color: var(--vchr-muted) !important;
  font-size: 14px !important;
}

body.vchr-document-entry .entry,
body.vchr-document-entry .entry-inner {
  max-width: 820px !important;
  font-size: 17px !important;
  line-height: 1.72 !important;
}

body.vchr-document-entry .entry p,
body.vchr-document-entry .entry li {
  margin-bottom: 1em;
}

@media (max-width: 820px), (orientation: landscape) and (max-width: 900px) and (max-height: 500px) {
  .vchr-logo-mark {
    padding: 7px !important;
    border-radius: 16px !important;
  }

  body.vchr-document-entry .post-inner {
    padding: 24px 18px 30px !important;
  }

  body.vchr-document-entry .post-title,
  body.vchr-document-entry .entry-title {
    padding: 16px 18px !important;
    font-size: clamp(20px, 6vw, 25px) !important;
  }
}


/* ========================================================================
   Vestnik corrections v6
   - Fixed TIK link is in template
   - Hero category chips are clickable
   - Header search stays opposite the brand on half-width desktop screens
   ======================================================================== */

.vchr-chip {
  color: var(--vchr-green-900) !important;
  background: rgba(255,255,255,.92);
  text-decoration: none !important;
}

.vchr-chip:hover,
.vchr-chip:focus {
  color: var(--vchr-red-dark) !important;
  background: #ffffff;
  text-decoration: none !important;
}

/* Keep brand and search on one line for ordinary desktop/tablet widths. */
@media (max-width: 1400px) {
  body .vchr-brand-inner {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 22px !important;
    padding: 22px 0 !important;
  }

  body .vchr-brand {
    width: auto !important;
    flex: 1 1 auto !important;
    min-width: min-content !important;
  }

  body .vchr-brand-text {
    min-width: 0 !important;
    flex-wrap: nowrap !important;
    gap: clamp(14px, 2vw, 28px) !important;
  }

  body .vchr-brand-title {
    font-size: clamp(34px, 4.2vw, 58px) !important;
    letter-spacing: .11em !important;
  }

  body .vchr-brand-subtitle {
    font-size: clamp(16px, 1.7vw, 24px) !important;
    white-space: nowrap !important;
  }

  body .vchr-logo-mark {
    flex: 0 0 82px !important;
    width: 82px !important;
    height: 82px !important;
  }

  body .vchr-search-form {
    width: auto !important;
    min-width: 160px !important;
    max-width: min(360px, var(--vchr-search-natural-width, 360px)) !important;
    flex: 1 1 min(clamp(250px, 28vw, 360px), var(--vchr-search-natural-width, 360px)) !important;
  }
}

@media (max-width: 980px) {
  body .vchr-brand-inner {
    gap: clamp(14px, calc(5vw - 27px), 22px) !important;
  }

  body .vchr-brand {
    gap: clamp(14px, calc(7.5vw - 47.5px), 26px) !important;
  }

  body .vchr-brand-title {
    font-size: clamp(34px, 4.2vw, 42px) !important;
  }

  body .vchr-brand-subtitle {
    font-size: clamp(15px, 1.7vw, 16.66px) !important;
    line-height: 1.15 !important;
  }

  body .vchr-logo-mark {
    flex-basis: clamp(66px, calc(10vw - 16px), 82px) !important;
    width: clamp(66px, calc(10vw - 16px), 82px) !important;
    height: clamp(66px, calc(10vw - 16px), 82px) !important;
    padding: clamp(0px, calc(49px - 5vw), 8px) !important;
  }

  body .vchr-search-form {
    flex-basis: min(clamp(220px, 28vw, 275px), var(--vchr-search-natural-width, 360px)) !important;
    max-width: min(clamp(220px, 28vw, 275px), var(--vchr-search-natural-width, 360px)) !important;
    height: clamp(44px, 4.9vw, 48px) !important;
  }

  body .vchr-search-form input {
    padding: 0 clamp(10px, 1.63vw, 16px) !important;
    font-size: clamp(13px, 1.43vw, 14px) !important;
  }

  body .vchr-search-form button {
    width: clamp(42px, 6vw, 56px) !important;
  }
}

/* At narrow desktop/tablet widths keep search opposite the logo by simplifying the brand text. */
@media (max-width: 900px) {
  body .vchr-brand-subtitle {
    display: block !important;
    font-size: clamp(12px, 1.6vw, 14px) !important;
  }

  body .vchr-brand-title {
    font-size: clamp(26px, 5vw, 36px) !important;
  }

  body .vchr-search-form {
    flex-basis: min(clamp(220px, 28vw, 252px), var(--vchr-search-natural-width, 360px)) !important;
    max-width: min(clamp(220px, 28vw, 252px), var(--vchr-search-natural-width, 360px)) !important;
  }

  body .vchr-search-form input::placeholder {
    color: rgba(255,255,255,.65) !important;
  }
}

/* Only on very narrow phones the search may go under the logo for usability. */
@media (max-width: 620px) {
  body .vchr-brand-inner {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  body .vchr-brand {
    width: 100% !important;
  }

  body .vchr-brand-subtitle {
    display: block !important;
  }

  body .vchr-search-form {
    width: 100% !important;
    max-width: none !important;
    flex: 0 0 auto !important;
  }

  body .vchr-search-form input::placeholder {
    color: rgba(255,255,255,.65) !important;
  }
}


/* ========================================================================
   Vestnik corrections v7
   - Restored legal/editorial information at the very bottom of the site
   ======================================================================== */

.vchr-legal-strip {
  border-top: 1px solid rgba(13, 44, 32, .12);
  background: #f4f7f5;
  color: #5b6862;
}

.vchr-legal-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 28px;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 14px;
  font-size: 12.5px;
  line-height: 1.55;
}

.vchr-legal-text {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  min-width: 0;
}

.vchr-legal-text span {
  display: inline;
}

.vchr-legal-strip a {
  color: var(--vchr-green-800);
  font-weight: 700;
  text-decoration: none;
}

.vchr-legal-strip a:hover,
.vchr-legal-strip a:focus {
  text-decoration: underline;
}

.vchr-age-mark {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  color: var(--vchr-red-dark);
  background: rgba(206, 50, 44, .10);
  font-weight: 800;
}

@media (max-width: 900px) {
  .vchr-legal-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 620px) {
  .vchr-legal-inner {
    font-size: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .vchr-legal-text {
    gap: 3px 8px;
  }
}


/* ========================================================================
   Vestnik corrections v9
   - restore latest messages section on homepage
   - cleaner header logo without white plate
   - tighter header/subnav vertical rhythm
   - remove duplicate 2021/editorial contact line from legal strip
   ======================================================================== */

/* tighter vertical rhythm in the header */
.vchr-header-top-inner {
  min-height: 44px;
}

.vchr-menu-list a {
  min-height: 44px;
}

.vchr-brand-zone {
  border-bottom: 1px solid rgba(255,255,255,.09);
}

.vchr-brand-inner {
  min-height: 112px;
  gap: 28px;
  padding: 12px 0;
}

.vchr-subnav {
  min-height: 40px;
}

.vchr-subnav .vchr-menu-list a {
  min-height: 40px;
}

/* header logo: transparent image with white outline, no white tile */
.vchr-logo-mark {
  flex: 0 0 90px !important;
  width: 90px !important;
  height: 90px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: visible !important;
}

.vchr-logo-mark img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.85)) drop-shadow(0 0 1px rgba(255,255,255,.95));
}

.vchr-brand-title {
  line-height: .95;
}

.vchr-brand-subtitle {
  line-height: 1.08;
}

/* cleaner legal strip after requested removals */
.vchr-legal-text {
  gap: 4px 14px;
}

/* keep search opposite the logo while reducing header bulk */
@media (max-width: 1400px) {
  body .vchr-brand-inner {
    padding: 12px 0 !important;
    min-height: 104px !important;
  }

  body .vchr-logo-mark {
    flex-basis: 82px !important;
    width: 82px !important;
    height: 82px !important;
  }

  body .vchr-search-form {
    max-width: 340px !important;
    flex: 0 0 clamp(240px, 27vw, 340px) !important;
  }
}

@media (max-width: 980px) {
  body .vchr-brand-inner {
    min-height: 96px !important;
  }

  body .vchr-logo-mark {
    flex-basis: clamp(68px, calc(17.5vw - 89.5px), 82px) !important;
    width: clamp(68px, calc(17.5vw - 89.5px), 82px) !important;
    height: clamp(68px, calc(17.5vw - 89.5px), 82px) !important;
  }

  .vchr-header-top-inner,
  .vchr-menu-list a {
    min-height: clamp(40px, calc(5vw - 5px), 44px);
  }

  .vchr-subnav,
  .vchr-subnav .vchr-menu-list a {
    min-height: clamp(36px, calc(5vw - 9px), 40px);
  }
}

/* ========================================================================
   Vestnik corrections v11
   Modern color system based on the official logo:
   deep emerald + soft mint + restrained red accent.
   ======================================================================== */

:root {
  --vchr-green-950: #0b2f29;
  --vchr-green-900: #103d35;
  --vchr-green-800: #185345;
  --vchr-green-700: #237157;
  --vchr-green-600: #2e8b68;
  --vchr-green-100: #eaf5f0;
  --vchr-green-050: #f6faf8;
  --vchr-red: #cf4d49;
  --vchr-red-dark: #a93431;
  --vchr-red-soft: #fdebea;
  --vchr-border: #dce8e2;
  --vchr-text: #16231f;
  --vchr-muted: #60736a;
  --vchr-bg: #f5f8f6;
  --vchr-white: #ffffff;
  --vchr-gold: #d8b15f;
  --vchr-blue: #347f93;
  --vchr-orange: #c97b32;
  --vchr-shadow: 0 18px 46px rgba(11, 47, 41, .09);
  --vchr-radius: 18px;
}

body,
body #wrapper {
  background:
    radial-gradient(circle at top left, rgba(46, 139, 104, .08), transparent 34%),
    var(--vchr-bg) !important;
  color: var(--vchr-text) !important;
}

#header.vchr-header {
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.13), transparent 24%),
    radial-gradient(circle at 78% 10%, rgba(207,77,73,.16), transparent 28%),
    linear-gradient(135deg, #0b2f29 0%, #16483d 48%, #237157 100%) !important;
}

.vchr-header-top {
  border-bottom-color: rgba(255,255,255,.10) !important;
  background: rgba(7, 31, 27, .18);
}

.vchr-subnav-wrap {
  background: rgba(7, 31, 27, .18) !important;
  border-top: 1px solid rgba(255,255,255,.06);
}

.vchr-menu-list a {
  color: rgba(255,255,255,.91) !important;
}

.vchr-menu-list a:hover,
.vchr-menu-list a:focus {
  color: #ffffff !important;
  text-decoration: none !important;
}

.vchr-menu-list > li > a {
  position: relative;
}

.vchr-menu-list > li > a:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7px;
  height: 2px;
  border-radius: 999px;
  background: var(--vchr-red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .18s ease;
}

.vchr-menu-list > li > a:hover:after,
.vchr-menu-list > li > a:focus:after {
  transform: scaleX(1);
}

.vchr-brand-title {
  color: #ffffff !important;
  text-shadow: 0 3px 18px rgba(0,0,0,.14);
}

.vchr-brand-subtitle {
  color: rgba(255,255,255,.94) !important;
}

.vchr-search-form {
  border-color: rgba(255,255,255,.24) !important;
  background: rgba(255,255,255,.11) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09);
}

.vchr-search-form:focus-within {
  border-color: rgba(255,255,255,.54) !important;
  background: rgba(255,255,255,.15) !important;
}

.vchr-search-form input::placeholder {
  color: rgba(255,255,255,.70) !important;
}

.vchr-hero-card,
.vchr-important-card,
.vchr-panel,
body.single article.post,
body.page:not(.home) article.page,
body.page:not(.home) article.hentry,
body.vchr-document-entry .post-inner {
  border-color: rgba(22, 83, 69, .13) !important;
  box-shadow: 0 18px 48px rgba(11, 47, 41, .08) !important;
}

.vchr-hero-media:before {
  background:
    linear-gradient(90deg, rgba(11,47,41,.78), rgba(11,47,41,.36) 58%, rgba(11,47,41,.10)) !important;
}

.vchr-chip {
  color: var(--vchr-green-900) !important;
  background: rgba(255,255,255,.92) !important;
}

.vchr-chip:hover,
.vchr-chip:focus {
  color: var(--vchr-red-dark) !important;
}

.vchr-button,
.vchr-tag,
.vchr-important-link:nth-of-type(1) .vchr-doc-icon,
.vchr-important-link:nth-of-type(3) .vchr-doc-icon,
.vchr-important-link:nth-of-type(5) .vchr-doc-icon {
  background: var(--vchr-red) !important;
}

.vchr-button:hover,
.vchr-button:focus {
  background: var(--vchr-red-dark) !important;
}

.vchr-important-link .vchr-doc-icon,
.vchr-important-link .vchr-doc-icon.gold,
.vchr-important-link .vchr-doc-icon.green,
.vchr-important-link .vchr-doc-icon.blue,
.vchr-important-link .vchr-doc-icon.orange,
.vchr-important-link:nth-of-type(2) .vchr-doc-icon,
.vchr-important-link:nth-of-type(4) .vchr-doc-icon {
  background: var(--vchr-green-700) !important;
}

.vchr-important-link {
  border-bottom-color: rgba(22, 83, 69, .12) !important;
}

.vchr-important-link:hover strong,
.vchr-important-link:focus strong,
.vchr-section-head a,
.vchr-news-card h3 a:hover,
.vchr-news-card h3 a:focus,
.vchr-footer a,
#back-to-top {
  color: var(--vchr-red-dark) !important;
}

.vchr-thumb {
  background-color: #dcebe4 !important;
}

.vchr-news-card h3 a,
.vchr-document-item,
.vchr-doc-title {
  color: var(--vchr-text) !important;
}

.vchr-news-card p,
.vchr-document-item time,
.vchr-footer p,
.vchr-footer-bottom-inner,
.vchr-legal-strip {
  color: var(--vchr-muted) !important;
}

.vchr-document-type {
  color: var(--vchr-green-800) !important;
  background: var(--vchr-green-100) !important;
}

.vchr-file-icon {
  color: var(--vchr-green-700) !important;
  border-color: var(--vchr-green-700) !important;
}

body.vchr-document-entry .post-title,
body.vchr-document-entry .entry-title {
  border-left-color: var(--vchr-red) !important;
  background:
    linear-gradient(135deg, rgba(234,245,240,.96), rgba(255,255,255,.99)) !important;
}

#footer.vchr-footer {
  background: #ffffff !important;
  border-top-color: rgba(22, 83, 69, .13) !important;
}

.vchr-footer-title {
  color: var(--vchr-green-900) !important;
}

.vchr-socials a {
  color: var(--vchr-green-900) !important;
  background: var(--vchr-green-100) !important;
}

.vchr-socials a:hover,
.vchr-socials a:focus {
  color: #ffffff !important;
  background: var(--vchr-red) !important;
}

.vchr-footer-bottom {
  border-top-color: rgba(22, 83, 69, .12) !important;
  background: #fbfdfc;
}

.vchr-legal-strip {
  background: #eef5f1 !important;
  border-top-color: rgba(22, 83, 69, .12) !important;
}

.vchr-age-mark {
  color: var(--vchr-red-dark) !important;
  background: var(--vchr-red-soft) !important;
}

.post-title a:hover,
.entry a,
.page-title a,
.notebox a {
  color: var(--vchr-red-dark) !important;
}

.themeform input[type="submit"],
.s1 .sidebar-top,
.s2 .sidebar-top {
  background: var(--vchr-green-700) !important;
}


/* ========================================================================
   Vestnik refinements v11.1
   Return to v11 palette with improved header gradient, symmetric outlined logo,
   better important-section icons, and cleaner legal/footer text.
   ======================================================================== */

/* Header gradient inspired by the provided reference */
#header.vchr-header {
  background:
    radial-gradient(circle at 69% -8%, rgba(255,255,255,.10) 0 19%, transparent 19.5%),
    radial-gradient(circle at 72% 8%, rgba(255,255,255,.06) 0 20%, transparent 20.5%),
    linear-gradient(135deg, #07322b 0%, #0c5344 52%, #136551 100%) !important;
}

.vchr-header-top {
  background: transparent !important;
  border-bottom-color: rgba(255,255,255,.18) !important;
}

.vchr-brand-zone {
  background: transparent !important;
  border-bottom-color: rgba(255,255,255,.10) !important;
}

.vchr-subnav-wrap {
  background: rgba(0, 28, 24, .88) !important;
  border-top-color: rgba(255,255,255,.06) !important;
}

.vchr-menu-list a,
.vchr-brand-title,
.vchr-brand-subtitle {
  text-shadow: 0 1px 0 rgba(0,0,0,.08);
}

/* Symmetric outlined logo without white tile */
.vchr-logo-mark {
  flex: 0 0 96px !important;
  width: 96px !important;
  height: 96px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.vchr-logo-mark img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  filter: none !important;
}

/* Important icons: more suitable symbols and alternating colors */
.vchr-doc-icon {
  font-size: 17px !important;
  line-height: 1 !important;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif !important;
}

.vchr-doc-icon.is-info {
  font-family: Arial, sans-serif !important;
  font-weight: 800 !important;
  font-size: 18px !important;
}

.vchr-important-link:nth-of-type(1) .vchr-doc-icon,
.vchr-important-link:nth-of-type(3) .vchr-doc-icon,
.vchr-important-link:nth-of-type(5) .vchr-doc-icon {
  background: var(--vchr-red) !important;
}

.vchr-important-link:nth-of-type(2) .vchr-doc-icon,
.vchr-important-link:nth-of-type(4) .vchr-doc-icon {
  background: var(--vchr-green-700) !important;
}

.vchr-important-link:nth-of-type(1):hover strong,
.vchr-important-link:nth-of-type(3):hover strong,
.vchr-important-link:nth-of-type(5):hover strong,
.vchr-important-link:nth-of-type(1):focus strong,
.vchr-important-link:nth-of-type(3):focus strong,
.vchr-important-link:nth-of-type(5):focus strong {
  color: var(--vchr-red-dark) !important;
}

.vchr-important-link:nth-of-type(2):hover strong,
.vchr-important-link:nth-of-type(4):hover strong,
.vchr-important-link:nth-of-type(2):focus strong,
.vchr-important-link:nth-of-type(4):focus strong {
  color: var(--vchr-green-800) !important;
}

/* Footer bottom without the extra sentence */
.vchr-footer-bottom-inner {
  justify-content: flex-end;
}

/* Legal strip tidy layout */
.vchr-legal-text {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: center;
}

.vchr-legal-text span:nth-of-type(4) {
  margin-left: 0;
}

@media (max-width: 980px) {
  .vchr-logo-mark {
    flex-basis: 74px !important;
    width: 74px !important;
    height: 74px !important;
  }
}


/* ========================================================================
   Vestnik refinements v11.2
   - remove decorative circles from header
   - keep gradient only
   - use original logo with symmetric CSS glow/outline, no image distortion
   - line icons in Important block
   - no red accents in footer
   - stronger image handling is in PHP helpers
   ======================================================================== */

#header.vchr-header {
  background: linear-gradient(135deg, #07322b 0%, #0c4c40 52%, #136551 100%) !important;
}

.vchr-brand-zone {
  background: transparent !important;
}

.vchr-header-top {
  background: transparent !important;
}

.vchr-logo-mark {
  flex: 0 0 94px !important;
  width: 94px !important;
  height: 94px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 6px !important;
  overflow: visible !important;
}

.vchr-logo-mark img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter:
    drop-shadow(0 -1px 0 rgba(255,255,255,.88))
    drop-shadow(0 1px 0 rgba(255,255,255,.88))
    drop-shadow(1px 0 0 rgba(255,255,255,.88))
    drop-shadow(-1px 0 0 rgba(255,255,255,.88))
    drop-shadow(0 -2px 2px rgba(255,255,255,.28)) !important;
}

/* Important block line icons, closer to the provided reference */
.vchr-doc-icon,
.vchr-doc-icon.gold,
.vchr-doc-icon.green,
.vchr-doc-icon.blue,
.vchr-doc-icon.orange,
.vchr-important-link:nth-of-type(1) .vchr-doc-icon,
.vchr-important-link:nth-of-type(2) .vchr-doc-icon,
.vchr-important-link:nth-of-type(3) .vchr-doc-icon,
.vchr-important-link:nth-of-type(4) .vchr-doc-icon,
.vchr-important-link:nth-of-type(5) .vchr-doc-icon {
  width: 34px !important;
  height: 34px !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  display: grid !important;
  place-items: center !important;
}

.vchr-doc-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vchr-important-link:nth-of-type(1) .vchr-doc-icon,
.vchr-important-link:nth-of-type(3) .vchr-doc-icon,
.vchr-important-link:nth-of-type(5) .vchr-doc-icon {
  color: var(--vchr-red) !important;
}

.vchr-important-link:nth-of-type(2) .vchr-doc-icon,
.vchr-important-link:nth-of-type(4) .vchr-doc-icon {
  color: var(--vchr-green-700) !important;
}

/* Remove red from footer, keep calm official green/neutral */
.vchr-footer a,
#back-to-top,
.vchr-legal-strip a {
  color: var(--vchr-green-800) !important;
}

.vchr-footer a:hover,
.vchr-footer a:focus,
.vchr-legal-strip a:hover,
.vchr-legal-strip a:focus,
#back-to-top:hover,
#back-to-top:focus {
  color: var(--vchr-green-700) !important;
}

.vchr-socials a:hover,
.vchr-socials a:focus {
  background: var(--vchr-green-700) !important;
  color: #fff !important;
}

.vchr-footer-bottom-inner {
  justify-content: flex-end;
}

.vchr-footer-bottom-inner span:empty {
  display: none;
}

@media (max-width: 980px) {
  .vchr-logo-mark {
    flex-basis: 74px !important;
    width: 74px !important;
    height: 74px !important;
    padding: 5px !important;
  }
}


/* ========================================================================
   Vestnik refinements v11.3
   Fix news photos: real WordPress images must not be covered by placeholder CSS.
   Placeholder gradient is applied only when there is no inline background image.
   ======================================================================== */

.vchr-thumb {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #dcebe4 !important;
}

.vchr-thumb:not([style]) {
  background-image:
    linear-gradient(135deg, rgba(35,102,79,.18), rgba(210,80,77,.08)) !important;
}

.vchr-thumb[style] {
  background-color: transparent !important;
}


/* ========================================================================
   Vestnik refinements v11.6
   - restore hero text behavior from v10 only
   - keep the rest of v11.3 untouched
   - fix mobile header search so it does not stretch downward
   ======================================================================== */

/* Hero text/overlay exactly in the v10 direction: text over the photo, no text panel. */
.vchr-hero-card .vchr-hero-media:before,
.vchr-hero-media:before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  background:
    linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.30) 56%, rgba(0,0,0,.08)) !important;
  pointer-events: none !important;
}

.vchr-hero-content {
  position: relative !important;
  max-width: 720px !important;
  margin: 0 !important;
  padding: 34px !important;
  color: var(--vchr-white) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.vchr-chips {
  margin-bottom: 88px !important;
}

.vchr-hero-content time {
  display: block !important;
  margin-bottom: 10px !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--vchr-white) !important;
  font-weight: 800 !important;
}

.vchr-hero-content h1 {
  margin: 0 0 12px !important;
  font-size: clamp(29px, 3.2vw, 48px) !important;
  line-height: 1.08 !important;
  color: var(--vchr-white) !important;
  text-shadow: none !important;
}

.vchr-hero-content h1 a {
  color: var(--vchr-white) !important;
}

.vchr-hero-content p {
  max-width: 620px !important;
  margin: 0 0 20px !important;
  opacity: .95 !important;
  color: var(--vchr-white) !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

.vchr-button {
  box-shadow: none !important;
}

/* Mobile search fix: keep it compact, do not stretch into a tall full-width block. */
@media (max-width: 620px) {
  body .vchr-brand-inner {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 10px 0 !important;
  }

  body .vchr-brand {
    width: auto !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    gap: 10px !important;
  }

  body .vchr-brand-subtitle {
    display: none !important;
  }

  body .vchr-brand-title {
    font-size: clamp(24px, 8vw, 34px) !important;
    letter-spacing: .06em !important;
    white-space: nowrap !important;
  }

  body .vchr-logo-mark {
    flex: 0 0 56px !important;
    width: 56px !important;
    height: 56px !important;
    padding: 4px !important;
  }

  body .vchr-search-form {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    flex: 0 0 42px !important;
    height: 42px !important;
    border-radius: 9px !important;
  }

  body .vchr-search-form input {
    width: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
  }

  body .vchr-search-form button {
    width: 42px !important;
    min-width: 42px !important;
    padding: 0 !important;
  }

  body .vchr-search-form input::placeholder {
    color: transparent !important;
  }

  .vchr-hero-content {
    padding: 24px 20px !important;
  }

  .vchr-chips {
    margin-bottom: 42px !important;
  }
}

@media (max-width: 420px) {
  body .vchr-brand-title {
    font-size: 25px !important;
    letter-spacing: .04em !important;
  }

  body .vchr-logo-mark {
    flex-basis: 48px !important;
    width: 48px !important;
    height: 48px !important;
  }
}


/* ========================================================================
   Vestnik ticker layout
   These styles do not appear unless the ticker is enabled in Customizer.
   ======================================================================== */

.vchr-ticker {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 46px;
  margin: 0 0 28px;
  padding: 10px 14px;
  border: 1px solid rgba(22, 83, 69, .14);
  border-radius: 14px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 12px 28px rgba(11, 47, 41, .06);
  overflow: hidden;
}

.vchr-ticker:has(.vchr-ticker-label) {
  grid-template-columns: auto minmax(0, 1fr);
  padding-left: 10px;
}

.vchr-ticker-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--vchr-green-700, #15583f);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}

.vchr-ticker-track {
  position: relative;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.vchr-ticker-track:before,
.vchr-ticker-track:after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 42px;
  pointer-events: none;
}

.vchr-ticker-track:before {
  left: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,0));
}

.vchr-ticker-track:after {
  right: 0;
  background: linear-gradient(270deg, rgba(255,255,255,.96), rgba(255,255,255,0));
}

.vchr-ticker-text {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: max-content;
  white-space: nowrap;
  color: var(--vchr-text, #1e2723);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  animation: vchrTickerMove 28s linear infinite;
  will-change: transform;
}

.vchr-ticker-group {
  display: inline-flex;
  align-items: center;
  gap: 54px;
  padding-right: 54px;
  white-space: nowrap;
}

.vchr-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.vchr-ticker-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2em;
  color: var(--vchr-green-700, #15583f);
  font-weight: 900;
  line-height: 1;
}

.vchr-ticker-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 42px;
  min-width: 18px;
  height: 24px;
  overflow: hidden;
}

.vchr-ticker-logo img {
  max-width: 42px;
  max-height: 24px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.vchr-ticker-item-link {
  color: inherit;
  text-decoration: none;
}

.vchr-ticker-item-link:hover,
.vchr-ticker-item-link:focus {
  text-decoration: underline;
}

@keyframes vchrTickerMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .vchr-ticker-text {
    animation: none;
    white-space: normal;
    min-width: 0;
  }

  .vchr-ticker-group[aria-hidden="true"] {
    display: none;
  }
}

@media (max-width: 820px), (orientation: landscape) and (max-width: 900px) and (max-height: 500px) {
  .vchr-ticker {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 22px;
  }

  .vchr-ticker-label {
    justify-self: start;
  }

  .vchr-ticker-text {
    font-size: 14px;
  }

  .vchr-ticker-logo,
  .vchr-ticker-logo img {
    max-width: 34px;
    max-height: 20px;
  }
}


/* ========================================================================
   Vestnik settings overlay v3: ticker color and alignment fix.
   ======================================================================== */

body .vchr-ticker {
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  background: var(--vchr-ticker-bg, #ffffff) !important;
  color: var(--vchr-ticker-text, #1e2723) !important;
  border-color: var(--vchr-ticker-border, #dce8e2) !important;
}

body .vchr-ticker,
body .vchr-ticker * {
  box-sizing: border-box !important;
}

body .vchr-ticker-track {
  width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

body .vchr-ticker-track:before {
  background: linear-gradient(90deg, var(--vchr-ticker-bg, #ffffff), rgba(255,255,255,0)) !important;
}

body .vchr-ticker-track:after {
  background: linear-gradient(270deg, var(--vchr-ticker-bg, #ffffff), rgba(255,255,255,0)) !important;
}

body .vchr-ticker-text {
  color: var(--vchr-ticker-text, #1e2723) !important;
  font-size: var(--vchr-ticker-font-size, 15px) !important;
  transform: translateX(0);
  will-change: transform;
}

body .vchr-ticker-label {
  background: var(--vchr-ticker-label-bg, #15583f) !important;
  color: var(--vchr-ticker-label-text, #ffffff) !important;
}

body .vchr-ticker-icon {
  color: var(--vchr-ticker-icon, #15583f) !important;
}

body .vchr-ticker-item,
body .vchr-ticker-item-text,
body .vchr-ticker-item-link {
  color: inherit !important;
}

body .vchr-ticker-item-link {
  text-decoration: none !important;
}

body .vchr-ticker-item-link:hover,
body .vchr-ticker-item-link:focus {
  text-decoration: underline !important;
}

/* When there is no label, ticker content starts exactly from the inner left edge. */
body .vchr-ticker:not(:has(.vchr-ticker-label)) {
  grid-template-columns: minmax(0, 1fr) !important;
}

/* Small safe inset so the text is not clipped by rounded corners/fade. */
body .vchr-ticker-track {
  padding-left: 8px !important;
  padding-right: 8px !important;
}


/* ========================================================================
   Vestnik settings overlay v7
   Fixed hero mode is controlled only from:
   Настроить → Вестник → 02. Главное фото → Фиксировать главное фото и текст.
   No active global layout changes are applied here by default.
   ======================================================================== */


/* ========================================================================
   Vestnik settings overlay v10
   Hard fix for the main photo button.
   The "Читать подробнее" button must never stretch across the hero image.
   ======================================================================== */

body .vchr-hero-media .vchr-hero-content a.vchr-button,
body .vchr-hero-media .vchr-hero-content .vchr-button,
body .vchr-hero-card .vchr-hero-content a.vchr-button,
body .vchr-hero-card .vchr-hero-content .vchr-button {
  display: inline-flex !important;
  width: fit-content !important;
  width: -moz-fit-content !important;
  max-width: calc(100% - 68px) !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  align-self: flex-start !important;
  justify-self: start !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  white-space: nowrap !important;
  text-align: center !important;
}

body .vchr-hero-media .vchr-hero-content a.vchr-button:before,
body .vchr-hero-media .vchr-hero-content a.vchr-button:after,
body .vchr-hero-card .vchr-hero-content a.vchr-button:before,
body .vchr-hero-card .vchr-hero-content a.vchr-button:after {
  max-width: none !important;
}

@media (max-width: 820px), (orientation: landscape) and (max-width: 900px) and (max-height: 500px) {
  body .vchr-hero-media .vchr-hero-content a.vchr-button,
  body .vchr-hero-media .vchr-hero-content .vchr-button,
  body .vchr-hero-card .vchr-hero-content a.vchr-button,
  body .vchr-hero-card .vchr-hero-content .vchr-button {
    width: fit-content !important;
    max-width: calc(100% - 44px) !important;
    white-space: normal !important;
  }
}


/* ========================================================================
   Vestnik settings overlay v11
   No hyphenation: words should not break like "избиратель-ным".
   Text may wrap only between words where possible.
   ======================================================================== */

body .vchr-hero-content,
body .vchr-hero-content h1,
body .vchr-hero-content h1 a,
body .vchr-hero-content p,
body .vchr-news-card,
body .vchr-news-card h3,
body .vchr-news-card h3 a,
body .vchr-news-card p,
body .vchr-document-item,
body .vchr-document-item strong,
body .vchr-doc-title,
body .vchr-important-link,
body .vchr-important-link strong,
body .vchr-important-link small,
body .vchr-ticker,
body .vchr-ticker-item,
body .vchr-ticker-item-text,
body .vchr-ticker-item-link {
  -webkit-hyphens: none !important;
  -ms-hyphens: none !important;
  hyphens: none !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  word-wrap: normal !important;
}

/* Safety: if there is a very long official number or URL, it may still wrap inside narrow containers. */
body .vchr-document-item a,
body .vchr-important-link a,
body .vchr-ticker a {
  overflow-wrap: anywhere !important;
}



/* ========================================================================
   V27 clean helpers for 04. Новости and 05. Документы.
   These helpers are intentionally small and do not affect the working v20 layout
   unless the new Customizer options hide document icon/label.
   ======================================================================== */

.vchr-document-item.vchr-doc-no-icon {
  grid-template-columns: 1fr auto;
}

.vchr-document-item.vchr-doc-no-label {
  grid-template-columns: 34px 1fr;
}

.vchr-document-item.vchr-doc-no-icon.vchr-doc-no-label {
  grid-template-columns: 1fr;
}

.vchr-news-card {
  box-sizing: border-box;
}


/* ========================================================================
   Vestnik v56 clean mobile cascade
   Base: v55, but old layered mobile blocks v43–v55 are removed.
   One clean mobile block controls:
   - no horizontal overflow;
   - mobile header/brand/search;
   - mobile hero/chips/title/button.
   ======================================================================== */

@media (max-width: 820px), (orientation: landscape) and (max-width: 900px) and (max-height: 500px) {
  html,
  body {
    overflow-x: hidden !important;
  }

  /* Keep the desktop header untouched. On phones the brand stays visible,
     while both navigation rows live behind one explicit menu button. */
  html.vchr-menu-js body #header.vchr-header {
    display: flex !important;
    flex-direction: column !important;
  }

  html.vchr-menu-js body #header.vchr-header .vchr-brand-zone {
    order: 1;
  }

  html.vchr-menu-js body #header.vchr-header .vchr-mobile-menu-toggle {
    grid-area: menu;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 112px;
    height: 34px;
    min-height: 34px;
    margin: 0;
    padding: 0 11px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 9px;
    color: #fff;
    background: rgba(255,255,255,.07);
    box-shadow: none;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-align: left;
    cursor: pointer;
  }

  html.vchr-menu-js body #header.vchr-header .vchr-mobile-menu-toggle:hover,
  html.vchr-menu-js body #header.vchr-header .vchr-mobile-menu-toggle:focus-visible {
    color: #fff;
    background: rgba(255,255,255,.13);
    border-color: rgba(255,255,255,.46);
  }

  html.vchr-menu-js body #header.vchr-header .vchr-mobile-menu-icon {
    display: inline-flex;
    flex: 0 0 18px;
    flex-direction: column;
    gap: 4px;
    width: 18px;
  }

  html.vchr-menu-js body #header.vchr-header .vchr-mobile-menu-icon span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  html.vchr-menu-js body #header.vchr-header .vchr-mobile-menu-label {
    flex: 1 1 auto;
  }

  html.vchr-menu-js body #header.vchr-header .vchr-header-top {
    order: 3;
  }

  html.vchr-menu-js body #header.vchr-header .vchr-subnav-wrap {
    order: 4;
  }

  html.vchr-menu-js body #header.vchr-header .vchr-header-top,
  html.vchr-menu-js body #header.vchr-header .vchr-subnav-wrap {
    max-height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    opacity: 0;
    transition: max-height .24s ease, opacity .18s ease, visibility 0s linear .24s;
  }

  html.vchr-menu-js body #header.vchr-header.vchr-menu-open .vchr-header-top,
  html.vchr-menu-js body #header.vchr-header.vchr-menu-open .vchr-subnav-wrap {
    max-height: 900px !important;
    visibility: visible !important;
    opacity: 1;
    transition: max-height .28s ease, opacity .2s ease, visibility 0s;
  }

  html.vchr-menu-js body #header.vchr-header.vchr-menu-open .vchr-header-top .vchr-menu-list,
  html.vchr-menu-js body #header.vchr-header.vchr-menu-open .vchr-subnav .vchr-menu-list {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100% !important;
    padding-left: 8px !important;
    gap: 0 !important;
  }

  html.vchr-menu-js body #header.vchr-header.vchr-menu-open .vchr-header-top .vchr-menu-list li,
  html.vchr-menu-js body #header.vchr-header.vchr-menu-open .vchr-subnav .vchr-menu-list li {
    display: block !important;
    width: 100% !important;
  }

  html.vchr-menu-js body #header.vchr-header.vchr-menu-open .vchr-header-top .vchr-menu-list a,
  html.vchr-menu-js body #header.vchr-header.vchr-menu-open .vchr-subnav .vchr-menu-list a {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 38px !important;
    padding: 4px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.10);
    font-size: 13px !important;
    line-height: 1.2 !important;
  }

  /* Repeat the desktop green band on the mobile homepage: the card starts
     inside the band and then continues onto the light page background. */
  html body.home #page.container {
    background:
      linear-gradient(
        to bottom,
        #0c4c40 0,
        #136551 58px,
        var(--vchr-bg) 58px,
        var(--vchr-bg) 100%
      ) !important;
  }

  html body.home .vchr-home {
    background: transparent !important;
  }

  body #wrapper,
  body.boxed #wrapper,
  body.full-width #wrapper,
  body #page,
  body #page.container,
  body .container,
  body .container-inner,
  body .main,
  body .main-inner,
  body #header.vchr-header,
  body #footer.vchr-footer {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  body .vchr-header-container,
  body .vchr-home,
  body .vchr-footer-container {
    width: calc(100% - 28px) !important;
    max-width: 1440px !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  /* Menus wrap instead of forcing horizontal scroll. */
  body .vchr-header-top,
  body .vchr-brand-zone,
  body .vchr-subnav-wrap {
    overflow: hidden !important;
  }

  body .vchr-header-top-inner,
  body .vchr-menu-list,
  body .vchr-subnav .vchr-menu-list {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    column-gap: 14px !important;
    row-gap: 2px !important;
  }

  body .vchr-menu-list li,
  body .vchr-subnav .vchr-menu-list li {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body .vchr-menu-list a,
  body .vchr-subnav .vchr-menu-list a {
    min-height: 30px !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    line-height: 1.15 !important;
    font-size: 13px !important;
  }

  /* Brand row: left-aligned and stable. */
  body .vchr-brand-inner {
    display: grid !important;
    grid-template-columns: 112px minmax(0, 1fr) !important;
    grid-template-areas: "menu search" "brand brand" !important;
    align-items: center !important;
    justify-items: start !important;
    gap: 10px !important;
    min-width: 0 !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  body .vchr-brand {
    grid-area: brand !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 9px !important;
    text-align: left !important;
  }

  body .vchr-logo-mark {
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    padding: 4px !important;
    margin: 0 !important;
    align-self: center !important;
  }

  body .vchr-brand-text {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-width: 0 !important;
    max-width: 100% !important;
    gap: 8px !important;
    text-align: left !important;
  }

  body .vchr-brand-title {
    flex: 0 0 auto !important;
    display: block !important;
    margin: 0 !important;
    overflow: hidden !important;
    color: inherit !important;
    font-size: clamp(23px, 7vw, 31px) !important;
    line-height: 1 !important;
    letter-spacing: .045em !important;
    white-space: nowrap !important;
    text-align: left !important;
    transform: none !important;
  }

  body .vchr-brand-subtitle {
    position: static !important;
    display: block !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    overflow: visible !important;
    color: inherit !important;
    font-size: clamp(8.4px, calc(1.5vw - .3px), 12px) !important;
    line-height: 1.08 !important;
    white-space: nowrap !important;
    text-align: left !important;
    pointer-events: auto !important;
  }

  /* Search compact state. */
  body .vchr-search-form {
    grid-area: search !important;
    justify-self: end !important;
    align-self: center !important;
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
    flex: none !important;
    border-radius: 9px !important;
    overflow: hidden !important;
  }

  body .vchr-search-form input {
    display: block !important;
    flex: 1 1 auto !important;
    width: 0 !important;
    min-width: 0 !important;
    height: 26px !important;
    padding: 0 !important;
    opacity: 0 !important;
    font-size: 11.5px !important;
    line-height: 26px !important;
  }

  body .vchr-search-form button {
    flex: 0 0 32px !important;
    width: 32px !important;
    min-width: 32px !important;
    height: 26px !important;
    min-height: 26px !important;
    padding: 0 !important;
  }

  /* Hero layout. */
  body .vchr-hero-grid,
  body .vchr-content-grid,
  body .vchr-footer-grid {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body .vchr-hero-card,
  body .vchr-important-card,
  body .vchr-panel,
  body .vchr-news-card,
  body .vchr-document-item {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body .vchr-hero-media {
    --vchr-m-hero-min-h: 300px;
    --vchr-m-hero-pad-x: 18px;
    --vchr-m-hero-pad-bottom: 20px;
    --vchr-m-hero-title-size: clamp(22px, 6.8vw, 28px);
    --vchr-m-hero-chip-font: 9px;
    display: block !important;
    min-height: var(--vchr-m-hero-min-h) !important;
    height: auto !important;
    overflow: hidden !important;
    background-position: center center !important;
    isolation: isolate !important;
    text-align: left !important;
  }

  body .vchr-hero-media:before {
    z-index: 1 !important;
    background:
      linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.48) 45%, rgba(0,0,0,.84)),
      linear-gradient(90deg, rgba(0,0,0,.58), rgba(0,0,0,.20)) !important;
  }

  body .vchr-hero-content {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
    display: grid !important;
    grid-template-rows: auto minmax(18px, 1fr) auto auto auto !important;
    align-items: end !important;
    justify-items: stretch !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 14px var(--vchr-m-hero-pad-x) var(--vchr-m-hero-pad-bottom) !important;
    color: #fff !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: left !important;
    box-sizing: border-box !important;
  }

  body .vchr-hero-content > * {
    left: auto !important;
    right: auto !important;
    transform: none !important;
  }

  body .vchr-hero-content > .vchr-chips {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    grid-row: 1 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    gap: 5px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    justify-self: stretch !important;
    align-self: start !important;
    text-align: left !important;
  }

  body .vchr-hero-content .vchr-chip,
  body .vchr-chip {
    min-height: 20px !important;
    max-width: 100% !important;
    padding: 3px 6px !important;
    border-radius: 5px !important;
    font-size: var(--vchr-m-hero-chip-font) !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    text-align: left !important;
  }

  body .vchr-hero-content .vchr-chip:nth-child(n+3) {
    display: none !important;
  }

  body .vchr-hero-content > time:not(.vchr-chips) {
    grid-row: 3 !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-self: stretch !important;
    margin: 0 0 7px !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-align: left !important;
    text-shadow: 0 2px 10px rgba(0,0,0,.45) !important;
  }

  body .vchr-hero-content > h1:not(.vchr-chips) {
    grid-row: 4 !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    justify-self: stretch !important;
    margin: 0 !important;
    overflow: hidden !important;
    color: #fff !important;
    font-size: var(--vchr-m-hero-title-size) !important;
    line-height: var(--vchr-m-hero-title-lh, 1.12) !important;
    text-align: left !important;
    text-shadow: 0 2px 14px rgba(0,0,0,.58) !important;
  }

  body .vchr-hero-content > h1:not(.vchr-chips) a {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    color: #fff !important;
    font-size: inherit !important;
    line-height: inherit !important;
    text-align: left !important;
    text-shadow: inherit !important;
  }

  body .vchr-hero-content .vchr-button,
  body .vchr-hero-content a.vchr-button {
    grid-row: 5 !important;
    position: relative !important;
    z-index: 3 !important;
    justify-self: start !important;
    width: fit-content !important;
    width: -moz-fit-content !important;
    max-width: 100% !important;
    min-height: 32px !important;
    margin-top: 11px !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    padding: 0 12px !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    font-size: 11px !important;
    line-height: 1 !important;
  }

  body .vchr-news-list {
    grid-template-columns: 1fr !important;
  }

  body .vchr-document-item {
    grid-template-columns: 30px minmax(0, 1fr) !important;
    min-height: 0 !important;
  }

  body .vchr-documents-panel .vchr-doc-title {
    display: block !important;
    margin: 0 !important;
    line-height: 1.22 !important;
    overflow-wrap: anywhere !important;
  }

  body img,
  body video,
  body iframe,
  body embed,
  body object {
    max-width: 100% !important;
  }
}

/* Full-width mobile search mode.
   These rules are also generated dynamically by Customizer when enabled.
   Search follows the same content width as the mobile hero card. */
@media (max-width: 820px), (orientation: landscape) and (max-width: 900px) and (max-height: 500px) {
  body.vchr-mobile-search-wide .vchr-brand-inner {
    grid-template-columns: 112px minmax(0, 1fr) !important;
    grid-template-areas: "menu search" "brand brand" !important;
    justify-items: stretch !important;
    gap: 8px !important;
  }

  body.vchr-mobile-search-wide .vchr-brand {
    justify-content: flex-start !important;
  }

  body.vchr-mobile-search-wide .vchr-search-form {
    grid-area: search !important;
    justify-self: start !important;
    width: min(100%, var(--vchr-search-natural-width, 360px)) !important;
    max-width: min(100%, var(--vchr-search-natural-width, 360px)) !important;
    min-width: 0 !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    display: flex !important;
  }

  body.vchr-mobile-search-wide .vchr-search-form input {
    display: block !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: 34px !important;
    opacity: 1 !important;
    padding: 0 12px !important;
    color: #fff !important;
    font-size: 11.5px !important;
    line-height: 34px !important;
  }

  body.vchr-mobile-search-wide .vchr-search-form input::placeholder {
    color: rgba(255,255,255,.72) !important;
  }

  body.vchr-mobile-search-wide .vchr-search-form button {
    flex: 0 0 32px !important;
    width: 32px !important;
    min-width: 32px !important;
    height: 34px !important;
    min-height: 34px !important;
  }
}

@media (max-width: 420px) {
  body .vchr-home,
  body .vchr-footer-container {
    width: calc(100% - 22px) !important;
  }

  body .vchr-brand-inner {
    gap: 8px !important;
  }

  body .vchr-brand {
    gap: 8px !important;
  }

  body .vchr-logo-mark {
    flex-basis: 40px !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
  }

  body .vchr-brand-title {
    font-size: clamp(21px, 6.7vw, 27px) !important;
  }

  body .vchr-brand-subtitle {
    font-size: 8px !important;
    line-height: 1.08 !important;
  }

  body .vchr-hero-media {
    --vchr-m-hero-min-h: 280px;
    --vchr-m-hero-pad-x: 16px;
    --vchr-m-hero-pad-bottom: 18px;
    --vchr-m-hero-title-size: clamp(20px, 7vw, 25px);
  }

  body .vchr-hero-content .vchr-button,
  body .vchr-hero-content a.vchr-button {
    min-height: 33px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    font-size: 11px !important;
  }
}



/* ========================================================================
   Vestnik mobile hero stack
   Keeps categories at the top and the date, title and button at the bottom.
   ======================================================================== */

@media (max-width: 820px), (orientation: landscape) and (max-width: 900px) and (max-height: 500px) {
  body .vchr-hero-media {
    position: relative !important;
    overflow: hidden !important;
    text-align: left !important;
  }

  body .vchr-hero-content {
    position: absolute !important;
    inset: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 14px var(--vchr-m-hero-pad-x, 18px) var(--vchr-m-hero-pad-bottom, 20px) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
    text-align: left !important;
    overflow: hidden !important;
  }

  body .vchr-hero-content > .vchr-chips {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    margin: 0 !important;
    text-align: left !important;
    transform: none !important;
    flex: 0 0 auto !important;
  }

  body .vchr-hero-content > time:not(.vchr-chips) {
    position: static !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: auto 0 7px 0 !important;
    padding: 0 !important;
    text-align: left !important;
    transform: none !important;
    flex: 0 0 auto !important;
  }

  body .vchr-hero-content > h1:not(.vchr-chips) {
    position: static !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    transform: none !important;
    flex: 0 0 auto !important;
  }

  body .vchr-hero-content > h1:not(.vchr-chips) a {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    transform: none !important;
  }

  body .vchr-hero-content .vchr-button,
  body .vchr-hero-content a.vchr-button {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    max-width: 100% !important;
    min-height: 32px !important;
    margin: 10px 0 0 0 !important;
    padding: 0 12px !important;
    white-space: nowrap !important;
    font-size: 11px !important;
    line-height: 1 !important;
    text-align: center !important;
    transform: none !important;
    flex: 0 0 auto !important;
  }
}





/* ========================================================================
   Mobile documents heading
   "Все документы →" uses the same small visual scale as "Все новости →".
   ======================================================================== */

@media (max-width: 820px), (orientation: landscape) and (max-width: 900px) and (max-height: 500px) {
  body .vchr-documents-panel .vchr-section-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas: "title link" !important;
    align-items: center !important;
    column-gap: 12px !important;
    row-gap: 0 !important;
    margin-bottom: 22px !important;
  }

  body .vchr-documents-panel .vchr-section-head h2 {
    grid-area: title !important;
    margin: 0 !important;
    max-width: 100% !important;
    min-width: 0 !important;
    font-size: 17px !important;
    line-height: 1.28 !important;
    letter-spacing: .008em !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  body .vchr-documents-panel .vchr-section-head a {
    grid-area: link !important;
    justify-self: end !important;
    align-self: center !important;
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    text-align: right !important;
    white-space: nowrap !important;
  }
}

/* ========================================================================
   Vestnik v15 desktop overflow fix
   Reason: desktop page could get horizontal browser scroll because old full-width
   header/footer rule used 100vw + calc(50% - 50vw). On systems with vertical
   scrollbar, 100vw is wider than the visible document area by scrollbar width.
   ======================================================================== */

html,
body {
  max-width: 100% !important;
  overflow-x: clip;
}

@supports not (overflow-x: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

body #wrapper,
body.boxed #wrapper,
body.full-width #wrapper,
body #page,
body #page.container,
body .container,
body .container-inner,
body .main,
body .main-inner {
  max-width: 100% !important;
  overflow-x: clip;
  box-sizing: border-box !important;
}

@supports not (overflow-x: clip) {
  body #wrapper,
  body.boxed #wrapper,
  body.full-width #wrapper,
  body #page,
  body #page.container,
  body .container,
  body .container-inner,
  body .main,
  body .main-inner {
    overflow-x: hidden;
  }
}

body #header.vchr-header,
body #footer.vchr-footer {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

body .vchr-header-container,
body .vchr-home,
body .vchr-footer-container {
  width: min(1440px, calc(100% - clamp(28px, calc(30vw - 266px), 64px))) !important;
  max-width: 1440px !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

body .vchr-header *,
body .vchr-home *,
body .vchr-footer * {
  box-sizing: border-box !important;
}

body .vchr-header-top,
body .vchr-brand-zone,
body .vchr-subnav-wrap,
body .vchr-subnav,
body .vchr-home,
body .vchr-footer {
  max-width: 100% !important;
}

@media (max-width: 980px) {
  body .vchr-header-container,
  body .vchr-home,
  body .vchr-footer-container {
    width: calc(100% - 28px) !important;
  }
}

/* ========================================================================
   Vestnik desktop home hover unification
   Adds visible hover/focus feedback to the two "Все ..." links.
   ======================================================================== */

@media (min-width: 721px) {
  body.home .vchr-section-head a,
  body.front-page .vchr-section-head a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 5px 8px;
    margin: -5px -8px;
    text-decoration: none !important;
    transition:
      color .18s ease,
      background-color .18s ease,
      border-color .18s ease,
      box-shadow .18s ease,
      transform .18s ease;
  }

  body.home .vchr-news-panel .vchr-section-head a:hover,
  body.home .vchr-news-panel .vchr-section-head a:focus-visible,
  body.front-page .vchr-news-panel .vchr-section-head a:hover,
  body.front-page .vchr-news-panel .vchr-section-head a:focus-visible {
    color: var(--vchr-red-dark) !important;
    background: rgba(190, 48, 54, .09) !important;
    border-color: #f2c7c7;
    box-shadow: 0 0 0 1px rgba(190, 48, 54, .16);
    transform: translateY(-1px);
  }

  body.home .vchr-documents-panel .vchr-section-head a:hover,
  body.home .vchr-documents-panel .vchr-section-head a:focus-visible,
  body.front-page .vchr-documents-panel .vchr-section-head a:hover,
  body.front-page .vchr-documents-panel .vchr-section-head a:focus-visible {
    color: var(--vchr-green-800) !important;
    background: rgba(22, 83, 69, .09) !important;
    border-color: #bddfd4;
    box-shadow: 0 0 0 1px rgba(22, 83, 69, .16);
    transform: translateY(-1px);
  }
}

body.home .vchr-section-head a:focus-visible,
body.front-page .vchr-section-head a:focus-visible,
body.home .vchr-document-item:focus-visible,
body.front-page .vchr-document-item:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  body.home .vchr-section-head a,
  body.front-page .vchr-section-head a,
  body.home .vchr-document-item,
  body.front-page .vchr-document-item {
    transition: none !important;
    transform: none !important;
  }
}

/* VCHR: document rows hover like the Important block */
/*
 * Верхние ссылки «Все новости» и «Все документы» не меняем.
 * Строки документов ведут себя как пункты блока «Важное»:
 * без цветной заливки всей строки, без боковой полосы и без сдвига.
 */
body.home .vchr-documents-panel .vchr-document-item,
body.front-page .vchr-documents-panel .vchr-document-item {
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  transition: color .18s ease !important;
}

/* Убираем прежнюю заливку, внутреннюю рамку и движение при наведении. */
body.home .vchr-documents-panel .vchr-document-item:nth-child(odd):hover,
body.home .vchr-documents-panel .vchr-document-item:nth-child(odd):focus-visible,
body.home .vchr-documents-panel .vchr-document-item:nth-child(even):hover,
body.home .vchr-documents-panel .vchr-document-item:nth-child(even):focus-visible,
body.front-page .vchr-documents-panel .vchr-document-item:nth-child(odd):hover,
body.front-page .vchr-documents-panel .vchr-document-item:nth-child(odd):focus-visible,
body.front-page .vchr-documents-panel .vchr-document-item:nth-child(even):hover,
body.front-page .vchr-documents-panel .vchr-document-item:nth-child(even):focus-visible {
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Метка «Документ» остаётся спокойной и не превращается в цветную плашку. */
body.home .vchr-documents-panel .vchr-document-item:hover .vchr-document-type,
body.home .vchr-documents-panel .vchr-document-item:focus-visible .vchr-document-type,
body.front-page .vchr-documents-panel .vchr-document-item:hover .vchr-document-type,
body.front-page .vchr-documents-panel .vchr-document-item:focus-visible .vchr-document-type {
  color: var(--vchr-green-700) !important;
  background: var(--vchr-green-100) !important;
}

@media (prefers-reduced-motion: reduce) {
  body.home .vchr-documents-panel .vchr-document-item,
  body.front-page .vchr-documents-panel .vchr-document-item {
    transition: none !important;
  }
}

/* VCHR: clean red-green alternation only */
/*
 * Только цвета. Без фона, рамок, теней, сдвигов и изменений размеров.
 * Верхние ссылки «Все новости» и «Все документы» не затрагиваются.
 */

/* «Важное»: 1/3/5 — красный, 2/4 — заметный зелёный. */
body.home .vchr-important-link:nth-of-type(1):hover strong,
body.home .vchr-important-link:nth-of-type(3):hover strong,
body.home .vchr-important-link:nth-of-type(5):hover strong,
body.home .vchr-important-link:nth-of-type(1):focus-visible strong,
body.home .vchr-important-link:nth-of-type(3):focus-visible strong,
body.home .vchr-important-link:nth-of-type(5):focus-visible strong,
body.front-page .vchr-important-link:nth-of-type(1):hover strong,
body.front-page .vchr-important-link:nth-of-type(3):hover strong,
body.front-page .vchr-important-link:nth-of-type(5):hover strong,
body.front-page .vchr-important-link:nth-of-type(1):focus-visible strong,
body.front-page .vchr-important-link:nth-of-type(3):focus-visible strong,
body.front-page .vchr-important-link:nth-of-type(5):focus-visible strong {
  color: #b42318 !important;
}

body.home .vchr-important-link:nth-of-type(2):hover strong,
body.home .vchr-important-link:nth-of-type(4):hover strong,
body.home .vchr-important-link:nth-of-type(2):focus-visible strong,
body.home .vchr-important-link:nth-of-type(4):focus-visible strong,
body.front-page .vchr-important-link:nth-of-type(2):hover strong,
body.front-page .vchr-important-link:nth-of-type(4):hover strong,
body.front-page .vchr-important-link:nth-of-type(2):focus-visible strong,
body.front-page .vchr-important-link:nth-of-type(4):focus-visible strong {
  color: #00845f !important;
}

/* «Последние документы»: нечётные — красный, чётные — заметный зелёный. */
body.home .vchr-documents-panel .vchr-document-item:nth-child(odd):hover .vchr-doc-title,
body.home .vchr-documents-panel .vchr-document-item:nth-child(odd):focus-visible .vchr-doc-title,
body.front-page .vchr-documents-panel .vchr-document-item:nth-child(odd):hover .vchr-doc-title,
body.front-page .vchr-documents-panel .vchr-document-item:nth-child(odd):focus-visible .vchr-doc-title {
  color: #b42318 !important;
}

body.home .vchr-documents-panel .vchr-document-item:nth-child(even):hover .vchr-doc-title,
body.home .vchr-documents-panel .vchr-document-item:nth-child(even):focus-visible .vchr-doc-title,
body.front-page .vchr-documents-panel .vchr-document-item:nth-child(even):hover .vchr-doc-title,
body.front-page .vchr-documents-panel .vchr-document-item:nth-child(even):focus-visible .vchr-doc-title {
  color: #00845f !important;
}

/* Иконки документов тоже чередуются, но без изменения фона строки. */
body.home .vchr-documents-panel .vchr-document-item:nth-child(odd) .vchr-file-icon,
body.front-page .vchr-documents-panel .vchr-document-item:nth-child(odd) .vchr-file-icon {
  color: #cf4d49 !important;
  border-color: #cf4d49 !important;
}

body.home .vchr-documents-panel .vchr-document-item:nth-child(even) .vchr-file-icon,
body.front-page .vchr-documents-panel .vchr-document-item:nth-child(even) .vchr-file-icon {
  color: #00845f !important;
  border-color: #00845f !important;
}

/* Document badge stays in the top row; the title continues below it. */
body.home .vchr-documents-panel .vchr-document-item,
body.front-page .vchr-documents-panel .vchr-document-item {
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 12px !important;
  padding: 11px 0 !important;
}

body.home .vchr-documents-panel .vchr-document-item.vchr-doc-no-icon,
body.front-page .vchr-documents-panel .vchr-document-item.vchr-doc-no-icon {
  grid-template-columns: minmax(0, 1fr) !important;
}

body.home .vchr-documents-panel .vchr-document-item .vchr-file-icon,
body.front-page .vchr-documents-panel .vchr-document-item .vchr-file-icon {
  margin-top: 2px;
}

body.home .vchr-documents-panel .vchr-document-item .vchr-doc-content,
body.front-page .vchr-documents-panel .vchr-document-item .vchr-doc-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "date badge"
    "title title";
  column-gap: 12px;
  row-gap: 2px;
  align-items: start;
  min-width: 0;
}

body.home .vchr-documents-panel .vchr-document-item .vchr-document-type,
body.front-page .vchr-documents-panel .vchr-document-item .vchr-document-type {
  grid-area: badge;
  justify-self: end;
  align-self: start;
  margin: 0 !important;
  padding: 2px 8px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: rgba(22, 83, 69, .042) !important;
  color: #2d6f5d !important;
  box-shadow: none !important;
}

body.home .vchr-documents-panel .vchr-document-item time,
body.front-page .vchr-documents-panel .vchr-document-item time {
  grid-area: date;
  display: block;
  margin: 0;
}

body.home .vchr-documents-panel .vchr-document-item .vchr-doc-title,
body.front-page .vchr-documents-panel .vchr-document-item .vchr-doc-title {
  grid-area: title;
  display: block;
  width: calc(100% - 32px);
  max-width: calc(100% - 32px);
  margin-top: 1px;
  -webkit-line-clamp: 4;
}

@media (max-width: 575px) {
  body.home .vchr-documents-panel .vchr-document-item .vchr-doc-content,
  body.front-page .vchr-documents-panel .vchr-document-item .vchr-doc-content {
    grid-template-columns: 1fr;
    grid-template-areas:
      "badge"
      "date"
      "title";
    row-gap: 4px;
  }

  body.home .vchr-documents-panel .vchr-document-item .vchr-document-type,
  body.front-page .vchr-documents-panel .vchr-document-item .vchr-document-type {
    justify-self: start;
  }

  body.home .vchr-documents-panel .vchr-document-item .vchr-doc-title,
  body.front-page .vchr-documents-panel .vchr-document-item .vchr-doc-title {
    width: 100%;
    max-width: 100%;
  }
}

/* ========================================================================
   Tables inside official documents
   Respects native Gutenberg controls: styles, colours, typography,
   fixed-width cells, header/footer sections and cell alignment.
   ======================================================================== */
body.vchr-document-entry .entry .wp-block-table {
  max-width: 100%;
  margin: 1.45em 0 1.75em;
  overflow-x: auto;
  border-radius: 12px;
  color: var(--vchr-text);
  font-size: 15px;
  -webkit-overflow-scrolling: touch;
}

body.vchr-document-entry .entry table {
  width: 100%;
  max-width: 100%;
  margin: 1.45em 0 1.75em;
  border: 1px solid rgba(22, 83, 69, .20);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  background: #ffffff;
  color: var(--vchr-text);
  font-size: 15px;
  line-height: 1.48;
  box-shadow: 0 8px 24px rgba(11, 47, 41, .055);
  overflow: hidden;
}

/* Gutenberg wraps block tables in a figure. The table inherits the block's
   selected text colour and font size instead of replacing them. */
body.vchr-document-entry .entry .wp-block-table table {
  margin: 0;
  color: inherit;
  font-size: inherit;
}

/* The editor option «Fixed width table cells». */
body.vchr-document-entry .entry .wp-block-table table.has-fixed-layout {
  table-layout: fixed;
}

body.vchr-document-entry .entry table th,
body.vchr-document-entry .entry table td {
  padding: 13px 18px;
  border: 0;
  border-right: 1px solid rgba(22, 83, 69, .16);
  border-bottom: 1px solid rgba(22, 83, 69, .16);
  background: #ffffff;
  color: inherit;
  text-align: center;
  vertical-align: middle;
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Respect horizontal alignment selected for an individual cell. */
body.vchr-document-entry .entry table .has-text-align-left {
  text-align: left;
}

body.vchr-document-entry .entry table .has-text-align-center {
  text-align: center;
}

body.vchr-document-entry .entry table .has-text-align-right {
  text-align: right;
}

/* Respect vertical alignment selected for an individual cell. */
body.vchr-document-entry .entry table .has-vertical-align-top {
  vertical-align: top;
}

body.vchr-document-entry .entry table .has-vertical-align-middle {
  vertical-align: middle;
}

body.vchr-document-entry .entry table .has-vertical-align-bottom {
  vertical-align: bottom;
}

/* The editor option «Header section». */
body.vchr-document-entry .entry table thead th,
body.vchr-document-entry .entry table thead td,
body.vchr-document-entry .entry table th {
  background: #eef5f1;
  color: var(--vchr-green-900);
  font-weight: 650;
}

/* The editor option «Footer section». */
body.vchr-document-entry .entry table tfoot th,
body.vchr-document-entry .entry table tfoot td {
  background: #f6f8f7;
  color: var(--vchr-green-900);
  font-weight: 600;
}

/* A text colour selected in Gutenberg also applies to header/footer cells. */
body.vchr-document-entry .entry .wp-block-table.has-text-color table thead th,
body.vchr-document-entry .entry .wp-block-table.has-text-color table thead td,
body.vchr-document-entry .entry .wp-block-table.has-text-color table tfoot th,
body.vchr-document-entry .entry .wp-block-table.has-text-color table tfoot td,
body.vchr-document-entry .entry .wp-block-table.has-text-color table th,
body.vchr-document-entry .entry .wp-block-table table.has-text-color thead th,
body.vchr-document-entry .entry .wp-block-table table.has-text-color thead td,
body.vchr-document-entry .entry .wp-block-table table.has-text-color tfoot th,
body.vchr-document-entry .entry .wp-block-table table.has-text-color tfoot td,
body.vchr-document-entry .entry .wp-block-table table.has-text-color th {
  color: inherit;
}

/* Ordinary tables remain plain, including legacy rows carrying the .alt class. */
body.vchr-document-entry .entry table tr.alt > th,
body.vchr-document-entry .entry table tr.alt > td {
  background: #ffffff;
}

/* Gutenberg style «Stripes». Only this selected style receives alternating rows. */
body.vchr-document-entry .entry .wp-block-table.is-style-stripes {
  border-bottom: 0;
}

body.vchr-document-entry .entry .wp-block-table.is-style-stripes tbody tr:nth-child(odd) > th,
body.vchr-document-entry .entry .wp-block-table.is-style-stripes tbody tr:nth-child(odd) > td {
  background: #f4f7f5;
}

body.vchr-document-entry .entry .wp-block-table.is-style-stripes tbody tr:nth-child(even) > th,
body.vchr-document-entry .entry .wp-block-table.is-style-stripes tbody tr:nth-child(even) > td {
  background: #ffffff;
}

/* Header and footer keep their own treatment in striped tables. */
body.vchr-document-entry .entry .wp-block-table.is-style-stripes thead th,
body.vchr-document-entry .entry .wp-block-table.is-style-stripes thead td {
  background: #e8f1ed;
}

body.vchr-document-entry .entry .wp-block-table.is-style-stripes tfoot th,
body.vchr-document-entry .entry .wp-block-table.is-style-stripes tfoot td {
  background: #eef3f0;
}

/* A background colour selected in Gutenberg is authoritative. It may be
   written on either the figure or the table depending on the WP version. */
body.vchr-document-entry .entry .wp-block-table.has-background table,
body.vchr-document-entry .entry .wp-block-table[style*="background"] table {
  background-color: transparent;
}

body.vchr-document-entry .entry .wp-block-table.has-background table th,
body.vchr-document-entry .entry .wp-block-table.has-background table td,
body.vchr-document-entry .entry .wp-block-table[style*="background"] table th,
body.vchr-document-entry .entry .wp-block-table[style*="background"] table td,
body.vchr-document-entry .entry .wp-block-table table.has-background th,
body.vchr-document-entry .entry .wp-block-table table.has-background td,
body.vchr-document-entry .entry .wp-block-table table[style*="background"] th,
body.vchr-document-entry .entry .wp-block-table table[style*="background"] td {
  background-color: transparent;
}

body.vchr-document-entry .entry table tr > :last-child {
  border-right: 0;
}

body.vchr-document-entry .entry table tbody:last-child tr:last-child > td,
body.vchr-document-entry .entry table tbody:last-child tr:last-child > th,
body.vchr-document-entry .entry table tfoot:last-child tr:last-child > td,
body.vchr-document-entry .entry table tfoot:last-child tr:last-child > th {
  border-bottom: 0;
}

body.vchr-document-entry .entry table p {
  margin: 0;
}

body.vchr-document-entry .entry .wp-block-table figcaption,
body.vchr-document-entry .entry table caption {
  margin-top: 8px;
  padding: 0 4px;
  color: var(--vchr-muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}

@media (max-width: 600px) {
  body.vchr-document-entry .entry .wp-block-table {
    margin: 1.25em 0 1.5em;
    border-radius: 10px;
    font-size: 14px;
  }

  body.vchr-document-entry .entry table {
    margin: 1.25em 0 1.5em;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.42;
    box-shadow: 0 6px 18px rgba(11, 47, 41, .045);
  }

  body.vchr-document-entry .entry .wp-block-table table {
    margin: 0;
    font-size: inherit;
  }

  body.vchr-document-entry .entry table th,
  body.vchr-document-entry .entry table td {
    padding: 11px 10px;
  }
}
