/* Reading layout shared by articles, comparisons and document pages. */
.material-article { width: min(100%, 1180px); margin-inline: auto; }
.material-head { padding: clamp(20px, 4vw, 44px); }
.material-head h1 { max-width: 22ch; overflow-wrap: anywhere; text-wrap: balance; }
.reader-columns { max-width: 896px; }
.reader-columns.has-rail { grid-template-columns: minmax(0, 1fr) minmax(210px, 250px); }
.reader-main, .reader-rail, .passport-main, .product-side { min-width: 0; }
.reader-toc li a { padding-block: 6px; }
.reader-download { justify-self: start; }
.material-text {
  --reading-width: 72ch;
  padding: clamp(18px, 3.35vw, 42px);
  color: var(--ink);
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.66;
  overflow-wrap: anywhere;
}
.material-text :is(p, li, blockquote, dd) { max-width: var(--reading-width); }
.material-text p + * { margin-top: .82em; }
.material-text p:last-child, .material-text :is(ul, ol):last-child { margin-bottom: 0; }
.material-text a { text-decoration-thickness: .08em; text-underline-offset: .2em; }
.material-text :is(h2, h3, h4) { line-height: 1.22; text-wrap: pretty; }
.material-text h2 { margin: 1.4em 0 .55em; }
.material-text h3 { margin: 1.15em 0 .45em; }
.material-text h4 { font-size: 1em; }
.material-text :where([id]) { scroll-margin-top: 24px; }
.material-text :where(section + section, section + details, div + section) { margin-top: 26px; }
.material-text :where(#part-main) > section {
  margin-block: 0;
  padding-block: clamp(20px, 3vw, 34px);
}
.material-text :where(#part-main) > section + section { border-top: 1px solid var(--soft-line); }
.material-text :where(#part-main) > section:first-of-type { padding-top: 0; }
.material-text :where(#part-main) > div:first-child:not(:has(h2,h3,p,section)) {
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--muted);
}
.material-text .article-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 8px;
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
}
.material-text .article-crumbs > span { margin: 0; }
.evidence-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 14px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-accent);
  color: var(--link-strong);
  font-size: 13px;
  line-height: 1.45;
}
.evidence-note .icon { flex: 0 0 17px; margin-top: .12em; }
.evidence-note a { white-space: normal; font-weight: 620; }
.reader-offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 13px 16px;
  margin-bottom: 12px;
  border: 1px solid var(--positive-line);
  border-radius: 12px;
  background: var(--positive-bg);
  font-size: 14px;
}
.reader-offer :is(small,strong) { display: block; }
.reader-offer small { color: var(--muted); }
.reader-offer p { color: var(--positive); }
.material-text :is(.article-link-list, .article-service-list, .article-heading-links) {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}
.material-text .article-service-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}
.material-text .article-heading-links {
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid var(--soft-line);
  border-radius: 12px;
  background: var(--paper);
}
.material-text .article-heading-links > :is(h2,h3,h4) { margin: 0 0 4px; }
.material-text :is(.article-link-list, .article-service-list) > :is(a, span) {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-raised);
  line-height: 1.42;
}
.material-text :is(.article-link-list, .article-service-list) > a:hover {
  background: var(--tint-hover);
}
.material-text a.article-service-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
}
.material-text .article-service-link > span:first-child {
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  width: 32px;
  min-height: 32px;
  border-radius: 8px;
  background: var(--tint);
  color: var(--link-strong);
  font-weight: 650;
}
.material-text .article-service-link > span:first-child:has(img) { background: #e9f0f7; }
.material-text .article-service-link img { width: 28px; height: 28px; object-fit: contain; }
.material-text .article-service-link > span:last-child { min-width: 0; }
.material-text .article-service-link > span:last-child > :is(b,strong,span) { display: block; }
.material-text .article-service-link > span:last-child > span {
  margin-top: 3px;
  font-size: 13px;
  color: var(--muted);
}
.material-text :is(.article-link-list, .article-service-list) > a.article-service-link { display: flex; }
.material-text span:has(> img) > img { object-fit: contain; }
.material-text :where(#part-main section:first-of-type) div:has(> span > span > img):not(:has(> p, > h2)) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-block: 15px;
}
.material-text :where(#part-main section:first-of-type) div:has(> span > span > img):not(:has(> p, > h2)) > span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin: 0;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
}
.material-text :where(#part-main section:first-of-type) div:has(> span > span > img):not(:has(> p, > h2)) img {
  max-width: 54px;
  max-height: 28px;
}
.material-text :where(#part-main section:first-of-type) div:has(> span > span > img):not(:has(> p, > h2)) + span {
  display: table;
  margin: 12px 0 6px;
  padding: 8px 12px;
  border-radius: 9px;
  background: var(--tint);
  color: var(--blue);
  font-weight: 650;
}
.material-text :is(#part-kak-oplatit, #part-where) ol:has(> li > span:first-child + span:last-child):not(:has(> li:not(:has(> span:first-child + span:last-child)))) {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}
.material-text :is(#part-kak-oplatit, #part-where) ol > li:has(> span:first-child + span:last-child) {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: start;
  column-gap: 12px;
  padding: 12px 14px;
  margin: 0;
  border-radius: 11px;
  border: 1px solid var(--soft-line);
  background: var(--surface-raised);
}
.material-text :is(#part-kak-oplatit, #part-where) ol > li > span:first-child:has(+ span:last-child) {
  border-radius: 7px;
  align-self: start;
  text-align: center;
  background: var(--tint);
  color: var(--link-strong);
  font-weight: 650;
}
.material-text :is(#part-kak-oplatit, #part-where) ol > li > span:first-child + span:last-child {
  grid-column: 2;
  color: var(--muted);
}
.material-text div:has(> article:nth-of-type(2)) { display: grid; gap: 12px; }
.material-text div > article { padding: 15px 16px; border: 1px solid var(--line); border-radius: 12px; }
.material-text img { max-width: 100%; }
.material-text figure { margin: 16px 0; }
.material-text .report-line {
  display: block;
  margin: 0;
  padding: 7px 0;
  border-bottom: 1px solid var(--soft-line);
}
.material-text .report-line:last-child { border-bottom: 0; }
.material-text figcaption { margin-top: 8px; }
.material-text details { background: var(--surface-raised); padding: 12px 15px; }
.material-text details[open] > summary { margin-bottom: 10px; }
.material-text details > summary:focus-visible, .article-table:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 3px;
}
.article-table { max-width: 100%; min-width: 0; overscroll-behavior-inline: contain; }
.article-table table { min-width: 100%; width: max-content; border-collapse: separate; border-spacing: 0; }
.article-table :is(td, th) {
  vertical-align: top;
  padding: 10px 12px;
  max-width: min(335px, 65vw);
  white-space: normal;
  overflow-wrap: anywhere;
}
.article-table thead th { background: var(--table-head); color: var(--link-strong); }
.article-table td + td, .article-table th + th { border-inline-start: 1px solid var(--soft-line); }
.article-table :is(thead, tbody) tr > :first-child { min-width: 92px; }
.document-archive { margin: 15px auto 0; max-width: 930px; }
.document-archive p { max-width: 74ch; }
.study-archive > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.study-archive[open] > summary { border-bottom: 1px solid var(--soft-line); }

@media (max-width: 870px) {
  .reader-columns.has-rail {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "rail" "main";
  }
  .reader-rail { position: static; max-height: none; }
  .material-text { --reading-width: 69ch; }
}
@media (max-width: 650px) {
  .material-head { padding: 19px 16px; }
  .material-head h1 { max-width: none; }
  .material-text { padding: 16px; }
  .material-text :where([id]) { scroll-margin-top: 72px; }
  .evidence-note { margin-bottom: 16px; }
  .material-text :where(#part-main) > section { padding-block: 18px; }
  .article-table :is(td,th) { padding: 9px; font-size: 13px; }
}
@media print {
  .material-text { padding: 0; color: #000; }
  .article-table table { width: 100%; }
}
