/* Articles public pages — layout matches /law/ (float columns). */
/* ================================================================
   ARTICLE DETAIL — rich editorial design (artd-* namespace)
   All rules scoped under .artd-wrap to avoid collisions with
   the existing site header / footer / sidebar styles.
   ================================================================ */

.artd-wrap {
  --artd-ink:       #1B2A4A;
  --artd-ink-soft:  #3C4A66;
  --artd-seal:      #8B3A3A;
  --artd-seal-deep: #6E2C2C;
  --artd-line:      #D8CDB4;
  --artd-gold:      #A8823A;
  --artd-text:      #272320;
  --artd-text-soft: #5B5650;
  --artd-bg-deep:   #F1EAD9;
  --artd-serif: "PT Serif", "Iowan Old Style", Georgia, serif;
  --artd-sans:  "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  padding: 0 6px 32px;
  box-sizing: border-box;
}

/* ── Back link ── */
.artd-back {
  margin: 16px 0 22px;
  font-size: 13.5px;
}

/* ── Hero ── */
.artd-hero {
  padding: 26px 0 30px;
  border-bottom: 1px solid var(--artd-line);
  margin-bottom: 36px;
}

.artd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--artd-seal);
  font-weight: 600;
  margin-bottom: 14px;
  font-family: var(--artd-sans);
}
.artd-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--artd-seal);
  display: inline-block;
}

.artd-title {
  font-family: var(--artd-serif);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.2;
  margin: 0 0 18px;
  color: var(--artd-ink);
  letter-spacing: -.01em;
}

/* SEO tail of a form-page H1 («: бланк и образец»): same line/font as the
   form name, lighter weight and colour so the name stays the anchor. */
.artd-title__suffix {
  font-family: inherit; /* the site's global span rule would force Arial */
  font-weight: 400;
  color: var(--artd-text-soft);
}

.artd-lede {
  /* Preamble: plain text under the hero meta, no coloured callout
     (no background or accent border) on article and form pages. */
  padding: 0;
  margin: 18px 0;
  font-size: 15px;
  color: var(--artd-ink-soft);
  line-height: 1.6;
}

.artd-hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.artd-hero-meta > div {
  font-size: 12.5px;
  color: var(--artd-text-soft);
  font-family: var(--artd-sans);
}
.artd-hero-meta > div strong {
  display: block;
  font-family: var(--artd-serif);
  font-size: 18px;
  color: var(--artd-ink);
  font-weight: 700;
}

/* ── Author chip: hover (desktop) or click/tap (touch, keyboard) reveals a
      card with the author's name and description ── */
.artd-hero-meta > .artd-author {
  position: relative;
}

.artd-author-trigger {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.artd-author-trigger strong {
  display: inline-block;
  border-bottom: 1px dashed var(--artd-gold);
  transition: color .18s ease, border-color .18s ease;
}
.artd-author-trigger:hover strong,
.artd-author-trigger:focus-visible strong,
.artd-author.is-open .artd-author-trigger strong {
  color: var(--artd-seal);
  border-bottom-color: var(--artd-seal);
}
.artd-author-trigger:focus {
  outline: none;
}
.artd-author-trigger:focus-visible {
  outline: 2px solid var(--artd-gold);
  outline-offset: 4px;
  border-radius: 3px;
}

.artd-author-card {
  position: absolute;
  left: -16px;
  top: calc(100% + 14px);
  z-index: 40;
  width: max-content;
  max-width: min(340px, calc(100vw - 40px));
  padding: 13px 17px 15px;
  background: #FFFDF7;
  border: 1px solid var(--artd-line);
  border-top: 3px solid var(--artd-gold);
  border-radius: 4px;
  box-shadow:
    0 18px 38px -14px rgba(27, 42, 74, .38),
    0 2px 6px rgba(27, 42, 74, .07);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  pointer-events: none;
}
.artd-author:hover .artd-author-card,
.artd-author-trigger:focus-visible + .artd-author-card,
.artd-author.is-open .artd-author-card {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .18s ease, transform .18s ease, visibility 0s;
  pointer-events: auto;
}

/* Pointer: two stacked triangles so the 1px border stays visible. The inner
   one is gold, so it reads as an extension of the card's top rule. */
.artd-author-card::before,
.artd-author-card::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 28px;
  width: 0;
  height: 0;
  border: 9px solid transparent;
}
.artd-author-card::before {
  border-bottom-color: var(--artd-line);
}
.artd-author-card::after {
  margin-left: 1px;
  border-width: 8px;
  border-bottom-color: var(--artd-gold);
}

.artd-author-card__role {
  font-family: var(--artd-sans);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--artd-seal);
  margin-bottom: 6px;
}
.artd-author-card__name {
  font-family: var(--artd-serif);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--artd-ink);
}
.artd-author-card__desc {
  margin: 7px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--artd-line);
  font-family: var(--artd-sans);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--artd-text-soft);
}

@media (max-width: 560px) {
  /* Too little room to hang the card off the chip — stretch it across the
     whole meta row instead, and drop the pointer that would no longer line up. */
  .artd-hero-meta {
    position: relative;
  }
  .artd-hero-meta > .artd-author {
    position: static;
  }
  .artd-author-card {
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
  }
  .artd-author-card::before,
  .artd-author-card::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .artd-author-trigger strong,
  .artd-author-card {
    transition: none;
  }
}

/* ── Body layout: single column — TOC card, dock and article stack in flow ── */
.artd-body-layout {
  display: block;
  margin-bottom: 48px;
}

/* Article column: TOC card + download dock + body, all in one flow. */
.artd-body-main {
  min-width: 0;
  width: 100%;
}
.artd-body-main > .artd-dock:last-child {
  margin-bottom: 0;
}

/* ── Table of contents — same callout style as .artd-dock ── */
.artd-toc {
  border-left: 3px solid var(--artd-gold);
  background: var(--artd-bg-deep);
  border-radius: 0 6px 6px 0;
  padding: 14px 18px 16px;
  margin: 0 0 28px;
  scroll-margin-top: 125px;
}
.artd-toc-label {
  font-size: 10.5px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--artd-gold);
  font-weight: 700;
  margin: 0 0 10px;
  font-family: var(--artd-sans);
}
.artd-toc a {
  display: block;
  font-size: 13px;
  color: var(--artd-text-soft);
  text-decoration: none;
  padding: 4px 0;
  transition: color .15s ease;
  font-family: var(--artd-sans);
  line-height: 1.35;
}
.artd-toc a:hover { color: var(--artd-seal-deep); }
.artd-toc a.artd-toc-sub {
  padding-left: 14px;
  font-size: 12px;
}
.artd-toc a.artd-toc-sub-4 { padding-left: 28px; }
.artd-toc a.artd-toc-sub-5 { padding-left: 42px; }
.artd-toc a.artd-toc-sub-6 { padding-left: 56px; }

/* No H2–H6 in the body: the TOC block is omitted (and JS removes it if leftover). */
.artd-body-layout--no-toc .artd-toc {
  display: none;
}


/* ── Article body ── */
.artd-article {
  font-size: 16px;
  color: var(--artd-text);
  max-width: 100%;
  font-family: var(--artd-sans);
  line-height: 1.7;
}

.artd-article h2 {
  font-family: var(--artd-serif);
  font-size: 22px;
  color: var(--artd-ink);
  margin: 36px 0 14px;
  scroll-margin-top: 125px; /* clears the 3 stacked fixed bars (bottom at 115px) + 10px gap */
  font-weight: 700;
  text-align: left; /* overrides site-wide `h2 { text-align:center }` */
}
.artd-article h2:first-child { margin-top: 0; }

.artd-article h3 {
  font-family: var(--artd-serif);
  font-size: 18px;
  color: var(--artd-ink-soft);
  margin: 28px 0 10px;
  scroll-margin-top: 125px;
  text-align: left;
}

.artd-article h4,
.artd-article h5,
.artd-article h6 {
  font-family: var(--artd-serif);
  color: var(--artd-ink-soft);
  margin: 22px 0 8px;
  scroll-margin-top: 125px;
  font-weight: 700;
  text-align: left;
}
.artd-article h4 { font-size: 16.5px; }
.artd-article h5 { font-size: 15.5px; }
.artd-article h6 { font-size: 14.5px; }

.artd-article p {
  margin: 0 0 16px;
  color: var(--artd-text-soft);
}

.artd-article a {
  color: var(--artd-seal);
  text-decoration: underline;
  text-decoration-color: rgba(139, 58, 58, .35);
  text-underline-offset: 2px;
}

/* ── Цитата ──────────────────────────────────────────────────────────────
   The article editor can emit a quote in either of two shapes, and both must
   render identically here:
     * Styles → «Quote»             → <p class="editor_quote">…</p>
     * Toolbar → Blockquote button  → <blockquote><p>…</p></blockquote>
   `.callout` is the legacy hand-written class kept for imported bodies.
   Keep in sync with css/editor.css (CKEditor contentsCss) so the admin
   preview matches the published page.                                      */
.artd-article blockquote,
.artd-article .editor_quote,
.artd-article .callout {
  position: relative;
  border-left: 3px solid var(--artd-seal);
  background: var(--artd-bg-deep);
  padding: 14px 18px 14px 46px;
  margin: 22px 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--artd-ink-soft);
  border-radius: 0 4px 4px 0;
  font-style: italic;
  font-family: var(--artd-serif);
  quotes: none;
}

/* Decorative opening guillemet in the left gutter. `content` is re-declared
   because reset.css blanks blockquote::before globally. */
.artd-article blockquote::before,
.artd-article .editor_quote::before,
.artd-article .callout::before {
  content: "\00AB";
  position: absolute;
  left: 14px;
  top: 6px;
  font-family: var(--artd-serif);
  font-style: normal;
  font-size: 34px;
  line-height: 1;
  color: var(--artd-gold);
}

/* Children inherit the quote's own typography instead of the body-paragraph
   rules above (which would otherwise reset colour and add a trailing gap). */
.artd-article blockquote > p,
.artd-article .editor_quote > p,
.artd-article .callout > p {
  margin: 0 0 10px;
  color: inherit;
  font: inherit;
}
.artd-article blockquote > :first-child,
.artd-article .editor_quote > :first-child,
.artd-article .callout > :first-child { margin-top: 0; }
.artd-article blockquote > :last-child,
.artd-article .editor_quote > :last-child,
.artd-article .callout > :last-child { margin-bottom: 0; }

/* Attribution line: <cite> inside a quote, or standing on its own. */
.artd-article cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-family: var(--artd-sans);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--artd-text-soft);
}
.artd-article cite::before { content: "— "; }

/* Inline quotation — <q> gets its guillemets back (reset.css removes them). */
.artd-article q { quotes: "\00AB" "\00BB" "\201E" "\201C"; }
.artd-article q::before { content: open-quote; }
.artd-article q::after  { content: close-quote; }

/* Flat note variant — same box, but not a quote: no guillemet, no gutter. */
.artd-article .callout-flat {
  background: transparent;
  border: 1px dashed var(--artd-line);
  border-left: 3px solid var(--artd-gold);
  font-style: normal;
  font-family: var(--artd-sans);
  color: var(--artd-text-soft);
  font-size: 14.5px;
  padding-left: 18px;
}
.artd-article .callout-flat::before { content: none; }

/* Unordered list */
.artd-article ul {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.artd-article ul > li {
  padding: 7px 0 7px 24px;
  position: relative;
  color: var(--artd-text-soft);
 /* border-bottom: 1px solid var(--artd-line);*/
}
.artd-article ul > li:last-child { border-bottom: none; }
.artd-article ul > li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 7px;
  color: var(--artd-seal);
}

/* Ordered list — editorial style: a large serif numeral in gold sits in the
   gutter, inside the bordered striped box. No enclosing badge shape.
   The core structural fix stays: <li> is a normal block (position:relative,
   NOT display:flex), so nested lists, paragraphs and images flow naturally. */
.artd-article ol {
  margin: 0 0 20px;
  padding: 0;
  counter-reset: artd-clause;
  list-style: none;
  border: 1px solid var(--artd-line);
  border-radius: 6px;
  overflow: hidden;
}
.artd-article ol > li {
  counter-increment: artd-clause;
  position: relative;
  padding: 12px 16px 12px 44px;     /* left gutter reserved for the numeral */
  background: #fff;
  color: var(--artd-text-soft);
  font-size: 14px;
  border-bottom: 1px solid var(--artd-line);
}
.artd-article ol > li:nth-child(even) { background: #FBF8F1; }
.artd-article ol > li:last-child { border-bottom: none; }
.artd-article ol > li::before {
  content: counter(artd-clause);
  position: absolute;
  left: 16px;
  top: 11px;
  color: var(--artd-gold);
  font-family: var(--artd-serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

/* Let real content flow inside list items: images, paragraphs, nested lists */
.artd-article li > :first-child { margin-top: 0; }
.artd-article li > :last-child  { margin-bottom: 0; }
.artd-article li img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 10px 0;
  border-radius: 4px;
}
/* Nested lists render as a plain sub-list, not another bordered/striped box */
.artd-article li ul,
.artd-article li ol {
  margin: 8px 0 2px;
  border: none;
  border-radius: 0;
}
.artd-article li ul > li {
  border-bottom: none;
  padding-top: 3px;
  padding-bottom: 3px;
}

/* Tables */
.artd-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 14.5px;
}
.artd-article table th,
.artd-article table td {
  padding: 9px 12px;
  border: 1px solid var(--artd-line);
  text-align: left;
  vertical-align: top;
}
.artd-article table th {
  background: var(--artd-bg-deep);
  font-family: var(--artd-serif);
  color: var(--artd-ink);
}

/* ── Download Dock — Option C: compact callout rows ── */
.artd-dock {
  border-left: 3px solid var(--artd-gold);
  background: var(--artd-bg-deep);
  border-radius: 0 6px 6px 0;
  padding: 14px 18px 16px;
  margin-bottom: 36px;
  scroll-margin-top: 125px; /* clears the fixed header stack when reached via the "Шаблоны документа" TOC link */
}

.artd-dock-label {
  font-size: 10.5px;
  font-family: var(--artd-sans);
  letter-spacing: .11em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--artd-gold);
  margin-bottom: 10px;
}

.artd-dock-files {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ── File row ── */
.artd-file-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--artd-line);
  border-radius: 5px;
  padding: 7px 10px;
  transition: border-color .15s, box-shadow .15s;
}
.artd-file-card:hover {
  border-color: var(--artd-gold);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .07);
}

/* Coloured document-style icon (smaller than before) */
.artd-fc-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 36px;
  border-radius: 3px;
  background: #2B579A;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 5px;
  position: relative;
}
.artd-fc-icon::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, .25);
  clip-path: polygon(0 0, 100% 100%, 100% 0);
}
.artd-fc-ext {
  font-size: 7.5px;
  font-weight: 800;
  color: rgba(255, 255, 255, .9);
  letter-spacing: .04em;
  font-family: var(--artd-sans);
  text-transform: uppercase;
}

/* File-type colours */
.artd-file-card[data-ext="pdf"]  .artd-fc-icon { background: #B93028; }
.artd-file-card[data-ext="xls"]  .artd-fc-icon,
.artd-file-card[data-ext="xlsx"] .artd-fc-icon { background: #1D7245; }

/* File name */
.artd-fc-name {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  font-family: var(--artd-sans);
  color: var(--artd-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Compact download button */
.artd-fc-dl {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  background: rgba(168, 130, 58, .12);
  border: 1px solid rgba(168, 130, 58, .32);
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--artd-ink);
  text-decoration: none;
  font-family: var(--artd-sans);
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.artd-fc-dl:hover {
  background: rgba(168, 130, 58, .22);
  border-color: var(--artd-gold);
  color: var(--artd-seal-deep);
}
.artd-fc-dl svg { transition: transform .15s ease; }
.artd-fc-dl:hover svg { transform: translateY(2px); }

/* ── Responsive ── */
@media (max-width: 560px) {
  .artd-dock,
  .artd-toc { padding: 12px 14px 14px; }
  .artd-title { font-size: 22px; }
  .artd-fc-name { font-size: 13px; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .artd-fc-dl svg,
  .artd-file-card,
  .artd-toc a { transition: none; }
}

/* ── Inline document file links (ex_pic_down in article body) ── */
.artd-article .ex_pic_down {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  background: var(--artd-bg-deep);
  border: 1px solid var(--artd-line);
  border-top: 2px solid var(--artd-gold);
  border-radius: 0 0 8px 8px;
  padding: 14px 16px 16px;
  margin: 20px 0 26px;
}

.artd-article .ex_pic_down strong {
  flex: 0 0 100%;
  font-size: 10.5px;
  font-family: var(--artd-sans);
  letter-spacing: .11em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--artd-gold);
  margin-bottom: 4px;
}

/* Hide links that were not rewritten by the importer (still relative) */
.artd-article .ex_pic_down a[href^="../"] {
  display: none !important;
}

.artd-article .ex_pic_down a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 10px;
  background: #fff;
  border: 1px solid var(--artd-line);
  border-radius: 6px;
  font-family: var(--artd-sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--artd-ink);
  text-decoration: none;
  line-height: 1.3;
  transition: border-color .15s, box-shadow .15s, color .15s;
}

/* Document-page icon via inline SVG data URI */
.artd-article .ex_pic_down a::before {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A8823A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3C/svg%3E") center / contain no-repeat;
}

.artd-article .ex_pic_down a:hover {
  border-color: var(--artd-gold);
  color: var(--artd-seal-deep);
  box-shadow: 0 2px 8px rgba(0,0,0,.09);
}

/* Attention callout (ex_pic_atte) */
.artd-article .ex_pic_atte {
  border-left: 3px solid var(--artd-gold);
  background: var(--artd-bg-deep);
  padding: 12px 16px;
  margin: 18px 0;
  font-size: 15px;
  color: var(--artd-ink-soft);
  border-radius: 0 4px 4px 0;
}

/* Centered tilde separator callout (ex_center_tilda) */
.artd-article .ex_center_tilda {
  text-align: center;
  font-style: italic;
  font-family: var(--artd-serif);
  color: var(--artd-text-soft);
  padding: 12px 24px;
  border-top: 1px solid var(--artd-line);
  border-bottom: 1px solid var(--artd-line);
  margin: 22px 0;
}



/*

 * Sidebar floats left; main column uses overflow (BFC) to fill the rest.

 * Avoids calc(100% - Npx) which overflows and breaks layout with ?type= filters.

 */

.h-content-wrap3.articles-public .h-col2-main {

    float: left;

}



/*
 * The shared .adv_inside_text banner (main.css) defaults to max-width:728px
 * with auto margins, sized for a wide content column. Here it's dropped
 * into the narrow .h-col2-main sidebar (290px), so without a page-scoped
 * override the ad renders at its full width and spills out over the
 * article list text to the right. Constrain it to the sidebar's own width
 * on this page only - the shared .adv_inside_text rule itself is untouched.
 */
.h-content-wrap3.articles-public .h-col2-main .adv_inside_text {
    max-width: 100%;
    overflow: hidden;
    margin-left: 0;
    margin-right: 0;
    /*
     * The injected ad creative (rendered by AdFox inside #adfox_... after
     * page load) uses position:fixed internally, so it paints pinned to
     * the viewport and overlaps whatever sidebar text happens to be
     * scrolled underneath it, instead of staying inside this box.
     * `transform` on this wrapper makes it the containing block for any
     * position:fixed descendant (per the CSS Transforms spec), which traps
     * the creative inside .adv_inside_text's own box instead of the
     * viewport - combined with overflow:hidden above, it can no longer
     * escape over the category list. This only affects layout containment
     * on this page; the ad's own markup/script/style is untouched.
     */
    position: relative;
    transform: translateZ(0);
    z-index: 0;
}



/*
 * Detail page has no sidebar (the types nav is list-page only), so the
 * article column drops the shared 644/885px float sizing, spans the full
 * content width, and .artd-wrap is capped at a comfortable reading width
 * and centered instead.
 */
.h-content-wrap3.articles-public.articles-public--detail .h-col1-main {
    float: none;
    display: block;
    max-width: none;
    width: 100%;
    box-sizing: border-box;
}

.articles-public--detail .artd-wrap {
    max-width: 1000px;
    width: 100%;
    margin: 0; /* left-align with the top nav, do not center */
}



.h-content-wrap3.articles-public .h-col1-main.articles-public__main {

    float: none;

    overflow: hidden;

    max-width: none;

    width: auto;

    box-sizing: border-box;

}



.h-content-wrap3.articles-public .articles-public__header.main-info0 {
    max-width: none;
    width: 100%;
    float: none;
    clear: both;
    box-sizing: border-box;
    margin-bottom: 0;
    overflow: auto;
}

/* SEO tail of a forms type-page H1 («— образцы и бланки документов»):
   part of the <h1> text, visually quieter than the section name. */
.h-content-wrap3.articles-public .articles-public__header .articles-public__h1-suffix {
    font-family: inherit;
    font-weight: normal;
    color: #777;
}

.h-content-wrap3.articles-public .articles-public__header .articles-public__type-label {
    float: none;
    margin: 10px 0 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    font-weight: bold;
    color: #555;
    line-height: 1.35;
}



.h-content-wrap3.articles-public .articles-public__content {

    clear: both;

    width: 100%;

    box-sizing: border-box;

}



.h-content-wrap3.articles-public .articles-public__content .results2 {

    margin: 15px 0 0;

    padding: 0;

}



.h-content-wrap3.articles-public .articles-public__content .prompting3 {

    margin-left: 0;

}



.h-content-wrap3.articles-public .articles-public__content .h-pager-wrap {

    max-width: 100%;

    box-sizing: border-box;

}





.articles-sidebar__title {

    font-size: 1.1em;

    margin: 0 0 10px;

}



.articles-sidebar__all {

    margin: 0 0 12px;

}



.h-content-wrap3.articles-public .articles-sidebar__all--active a,

.h-content-wrap3.articles-public .articles-type-nav__item--active > a {

    font-weight: bold;

    color: #B13533 !important;

}



.articles-type-nav {

    margin: 0;

    padding-left: 0;

    list-style: none;

}



.articles-type-nav__item {

    margin-bottom: 6px;

    line-height: 1.35;

}



.articles-public .article-list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 22px;
    padding: 0;
}

.articles-public .article-list-item__icon {
    display: block;
    flex: none;
    width: 32px;
    height: 32px;
    margin-top: 1px;
    object-fit: contain;
}

.articles-public .article-list-item__body {
    min-width: 0;
    flex: 1;
}

.articles-public .article-list-item h4 {
    margin: 0 0 4px;
    line-height: 1.35;
}

.articles-public .article-list-item__desc {

    color: #444;

    line-height: 1.45;

    margin: 4px 0 8px;

}



/* Document scan gallery (visible thumbnails -> full-size original in new tab).
   Scoped to .articles-public so it applies whether the block sits inside the
   article body or is moved out to sit just before the download dock. */
.articles-public .article-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 20px;
}
.articles-public .article-gallery a {
    display: inline-block;
    cursor: zoom-in;
    line-height: 0;
}
.articles-public .article-gallery img {
    display: block;
    max-width: 180px;
    height: auto;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}
.articles-public .article-gallery a:hover img {
    opacity: 0.92;
}

/* Embedded media in article body */

.h-content-wrap3.articles-public .rich_text img,

.h-content-wrap3.articles-public .rich_text video,

.h-content-wrap3.articles-public .rich_text iframe {

    max-width: 100%;

    height: auto;

}



.h-content-wrap3.articles-public .rich_text table {

    max-width: 100%;

}



@media (max-width: 800px) {

    /* Keep TWO columns at all widths: the type sidebar stays beside
       the content, it just gets narrower on small screens. */
    .h-content-wrap3.articles-public {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
    }

    .h-content-wrap3.articles-public .h-col2-main {

        float: none;

        flex: 0 0 160px;

        width: 160px;

        max-width: 160px;

        padding: 0 10px 10px 5px;

        box-sizing: border-box;

    }



    .h-content-wrap3.articles-public .h-col1-main {

        float: none;

        overflow: visible;

        flex: 1 1 auto;

        min-width: 0;

        width: auto;

        max-width: 100%;

        padding-left: 5px;

        padding-right: 5px;

        padding-bottom: 24px;

        box-sizing: border-box;

    }



    /* Keep the narrow sidebar readable and its ad inside the column */
    .articles-type-nav {
        padding-left: 0;
    }

    .articles-type-nav__item {
        font-size: 12px;
    }

    .h-content-wrap3.articles-public .h-col2-main .adv_inside_text {
        max-width: 100%;
        overflow: hidden;
    }



    .h-content-wrap3.articles-public .h-col1-inner3 {

        padding: 10px 5px 24px;

    }

}



@media (max-width: 600px) {

    .h-content-wrap3.articles-public .h-col1-main.articles-public__main {

        max-width: 100%;

        padding-bottom: 0;

    }

}


