.article-header h1{max-width:24ch;text-wrap:balance}
.article-sheet .article-cover{margin:0 0 36px}
.article-sheet .article-cover img{display:block;width:100%;height:auto;aspect-ratio:2/1;object-fit:cover}
.article-next-step{margin-top:44px;padding:28px;background:#f4f3ef;border-radius:14px}
.article-copy .article-next-step h2{margin-top:0}
.article-next-button{display:inline-block;padding:13px 18px;background:var(--blue,#247fa8);color:#fff!important;text-decoration:none!important;font:600 16px/1.45 Inter,sans-serif;border-radius:8px;max-width:100%;box-sizing:border-box}
.article-next-button:hover{filter:brightness(.9)}
.article-next-button:focus-visible{outline:3px solid #252627;outline-offset:4px}
.source-fragment img{background:#fff}
@media(max-width:700px){.article-next-step{padding:22px 18px}.article-next-button{display:block;text-align:center}.article-sheet .article-cover{margin-bottom:28px}}
.article-copy h2{text-wrap:balance;scroll-margin-top:100px}
.article-sheet .ty-keep{display:inline-block;max-inline-size:100%;white-space:normal;hyphens:none;letter-spacing:inherit;vertical-align:baseline;text-wrap:pretty}
.article-sheet .article-lead,.article-copy p,.article-copy li,.source-fragment figcaption{text-wrap:pretty}
.article-copy .source-fragment{margin:32px 0;max-width:780px}
.source-overview{display:block;overflow:hidden;border:1px solid var(--line,#dededb);border-radius:8px;background:#fff}
.source-overview picture,.source-overview img{display:block;width:100%;height:auto}
.source-zoom{display:block;padding:10px 14px;background:var(--paper,#f4f3ef);font:14px/1.4 Inter,sans-serif;color:var(--muted,#60656b)}
.source-fragment figcaption{font:14px/1.5 Inter,sans-serif;color:var(--muted,#60656b);margin-top:12px}
.article-copy .article-contact{color:var(--blue,#247fa8);text-decoration:underline}
.article-table-scroll{overflow-x:auto;margin:28px 0}
@media(max-width:700px){
 .article-copy .article-table-scroll{overflow:visible}
 .article-copy table{min-width:0}
 .article-copy table,.article-copy tbody,.article-copy tr,.article-copy td,.article-copy th{display:block;width:auto}
 .article-copy thead{display:none}
 .article-copy tbody tr{margin:0 0 16px;padding:14px;border:1px solid var(--line,#dededb);border-radius:8px}
 .article-copy tbody th,.article-copy td{padding:6px 0;border:0;width:auto;min-width:0}
 .article-copy td:before{content:attr(data-label);display:block;font-size:12px;font-weight:600;color:var(--muted,#60656b);margin-bottom:3px}
 .article-copy .source-fragment{max-width:460px}
 .source-overview picture img{width:100%;height:auto;aspect-ratio:auto}
 .source-zoom{font-size:13px}
}

/* Переносы и баланс строк — локальное превью статьи, без правки общего CSS. */
.article-breadcrumb,
.article-header .byline a,
.article-header .byline span,
.left-rail .rail-label,
.left-rail .rail-bottom p,
.page-footer,
.page-footer a,
.source-zoom{font-size:14px;line-height:1.5}
.article-header .byline span{display:block;text-wrap:balance}
.article-header .byline{flex-wrap:nowrap;align-items:flex-start}
.article-header .byline>div{flex:1;min-width:0}
.article-breadcrumb,
.article-header .byline span,
.left-rail .rail-label,
.left-rail .rail-bottom p,
.page-footer,
.page-footer a{color:#5c636a}
.article-copy blockquote{margin:24px 0;padding:4px 0 4px 22px;border-left:3px solid var(--blue,#247fa8)}
.article-copy blockquote p{margin:0 0 12px}
.article-copy blockquote p:last-child{margin-bottom:0}
.article-copy a[href="https://kontur.ru/about"]{white-space:nowrap}
.article-next-button{text-wrap:balance;white-space:normal}
.article-copy .article-next-step p{text-wrap:balance}
.article-copy ol>li>strong{display:block;text-wrap:balance;margin-bottom:3px}
@media(max-width:700px){
 .article-copy p,.article-copy li{text-wrap:balance}
 .article-next-step{padding:22px 16px}
 .article-next-button{padding-left:16px;padding-right:16px}
 .source-zoom{font-size:14px}
}

/* Publication component counterparts, no authored text changes. */
body[data-material-id="tekst-o-kompanii"] .article-copy>section:last-of-type{margin-bottom:32px}
body[data-material-id="tekst-o-kompanii"] .article-copy .article-source-quote{margin:24px 0;padding:4px 0 4px 22px;border-left:3px solid var(--blue,#247fa8);background:none;border-radius:0}
body[data-material-id="tekst-o-kompanii"] .article-copy .article-source-quote p{margin:0 0 12px}
body[data-material-id="tekst-o-kompanii"] .article-copy .article-source-quote p:last-child{margin-bottom:0}
