/* Service screens: information pages, author page, 404. Port of proto/info.html, author.html, 404.html. */

/* ---------- information page ---------- */
.ih { position: relative; overflow-x: clip; padding: 20px 0 8px; }
.ih .wrap { position: relative; container-type: inline-size; }
/* the title fits the column: a long word ("Конфиденциальность") does not break */
.ih h1 { margin-top: 8px; font-size: min(10.4vw, 88px, calc(100cqw / (var(--len, 10) * .62))); line-height: .98; font-weight: 600; letter-spacing: -.045em; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
.ih .upd { margin-top: 14px; font-size: 13px; color: var(--tx2); }
.ig { position: relative; display: grid; gap: 24px; padding-top: 24px; }
.toc { border-radius: var(--r-ctl); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.toc summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 16px; font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary svg { width: 16px; height: 16px; color: var(--tx2); transition: transform .2s; }
.toc[open] summary svg { transform: rotate(180deg); }
.toc ol { margin: 0; padding: 0 8px 8px; list-style: none; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: flex; gap: 10px; align-items: baseline; min-height: 44px; padding: 11px 8px; border-radius: var(--r-badge); font-size: 15px; line-height: 1.35; color: var(--tx-body); }
.toc a::before { content: counter(t); flex: none; width: 18px; font-size: 13px; font-weight: 600; color: var(--tx3); font-variant-numeric: tabular-nums; }
.doc { min-width: 0; max-width: 680px; font-size: 17px; line-height: 1.6; color: var(--tx-body); }
.doc > :first-child { margin-top: 0; }
.doc h2 { margin-top: 48px; font-size: 28px; line-height: 1.15; font-weight: 600; letter-spacing: -.03em; color: var(--tx); text-wrap: balance; scroll-margin-top: 80px; }
.doc h3 { margin-top: 28px; font-size: 20px; line-height: 1.25; font-weight: 600; letter-spacing: -.02em; color: var(--tx); }
.doc p, .doc ul, .doc ol, .doc table { margin-top: 16px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li + li { margin-top: 8px; }
.doc li::marker { color: var(--tx3); }
.doc a { color: var(--tx); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.doc strong { color: var(--tx); font-weight: 600; }
.doc code { font-size: 13px; padding: 2px 6px; border-radius: var(--r-badge); background: rgba(255,255,255,.07); color: var(--tx); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.doc th { text-align: left; font-size: 13px; font-weight: 600; color: var(--tx2); }

/* ---------- author ---------- */
.au { position: relative; overflow-x: clip; padding: 20px 0 8px; }
.aug { position: relative; display: grid; gap: 24px; }
.ph { order: 2; position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; max-width: 240px; margin: 0; border-radius: var(--r-card); background: var(--card); box-shadow: inset 0 0 0 1px var(--line2); overflow: hidden; }
.ph svg { width: 34%; height: auto; opacity: .22; }
.ph picture, .ph img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph img { object-fit: cover; }
.alab { font-size: 13px; font-weight: 600; color: var(--tx2); }
.au h1 { margin-top: 8px; font-size: clamp(40px, 10.4vw, 88px); line-height: .98; font-weight: 600; letter-spacing: -.045em; }
.arole { margin-top: 12px; font-size: 17px; font-weight: 500; color: var(--tx); }
.asub { max-width: 26em; margin-top: 16px; font-size: 20px; line-height: 1.3; font-weight: 500; letter-spacing: -.02em; color: var(--tx-body); text-wrap: pretty; }
.alink { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 44px; margin-top: 16px; font-size: 15px; font-weight: 500; color: var(--tx); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.alink svg { width: 16px; height: 16px; color: var(--tx2); }
.facts { display: grid; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.facts li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-radius: var(--r-ctl); background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; line-height: 1.4; }
.facts b { font-size: 13px; font-weight: 600; color: var(--tx2); }
.facts span { color: var(--tx); }
.arel { max-width: 680px; }
.arel h2 { font-size: 28px; line-height: 1.15; font-weight: 600; letter-spacing: -.03em; }
.arel p { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--tx-body); }
.arel .more { display: flex; flex-wrap: wrap; column-gap: 20px; row-gap: 4px; margin-top: 20px; }
.arel .more a { display: inline-flex; align-items: center; max-width: 100%; min-height: 44px; font-size: 15px; color: var(--tx); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ---------- 404 ---------- */
.e4 { position: relative; overflow: clip; padding: 20px 0 8px; }
.e4g { position: relative; display: grid; gap: 28px; }
.e4m { display: block; width: 56px; height: 56px; margin-bottom: 16px; }
.e4m .ln { fill: none; stroke: var(--tx); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.e4m .gone { fill: none; stroke: var(--tx3); stroke-width: 1.6; stroke-dasharray: 2.4 2.6; }
.e4m .gl2 { stroke: var(--tx3); stroke-width: 2; stroke-dasharray: 2.4 3; stroke-linecap: round; }
.e4c { font-size: 13px; font-weight: 600; color: var(--tx2); }
.e4 h1 { margin-top: 8px; font-size: clamp(40px, 10.4vw, 88px); line-height: .98; font-weight: 600; letter-spacing: -.045em; text-wrap: balance; }
.e4 .lp2 { max-width: 30em; margin-top: 16px; font-size: 17px; line-height: 1.5; color: var(--tx-body); }
.e4 .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.e4q { padding: 16px; border-radius: var(--r-card); background: var(--card); box-shadow: inset 0 0 0 1px var(--line2), 0 30px 60px -34px #000; }
.e4q .qh { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--tx2); }
.e4q .qh .gl { flex: none; width: 24px; height: 24px; color: var(--c); }
.e4q .qh b { color: var(--tx); font-weight: 600; }
.e4q .qq { margin: 14px 0 12px; font-size: 20px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; text-wrap: pretty; }
.e4q .qa { display: grid; gap: 6px; }
.e4q .qa a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border-radius: var(--r-ctl); background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; line-height: 1.25; transition: background-color .15s, box-shadow .15s; }
.e4q .qa .kk { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: var(--r-badge); background: rgba(255,255,255,.08); font-size: 12px; font-weight: 600; color: var(--tx2); }
.e4q .qnote { margin-top: 12px; font-size: 13px; color: var(--tx2); }

@media (max-width: 899px) {
  .doc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .doc tr { display: block; padding: 12px 14px; border-radius: var(--r-ctl); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
  .doc tr + tr { margin-top: 8px; }
  .doc td { display: block; padding: 4px 0; }
}
@media (min-width: 900px) {
  .ih { padding: 48px 0 8px; }
  .ig { grid-template-columns: 260px minmax(0, 680px); gap: 64px; align-items: start; padding-top: 40px; }
  .toc { position: sticky; top: 24px; background: none; box-shadow: none; }
  .toc summary { display: none; }
  .toc ol { padding: 0; border-left: 1px solid var(--line); }
  .toc a { padding: 8px 12px; border-radius: 0 var(--r-badge) var(--r-badge) 0; }
  .doc h2 { margin-top: 64px; font-size: 38px; }
  .doc th, .doc td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
  .au { padding: 64px 0 8px; }
  .aug { grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: start; }
  .ph { max-width: none; }
  .asub { font-size: 24px; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts li { grid-template-columns: 1fr; gap: 6px; padding: 18px; }
  .arel h2 { font-size: 38px; }
  .e4 { padding: 64px 0 24px; }
  .e4g { grid-template-columns: minmax(0, 1fr) 460px; gap: 64px; align-items: center; }
  .e4m { width: 72px; height: 72px; }
  .e4q { padding: 24px; }
  .e4q .qq { font-size: 24px; margin: 18px 0 16px; }
  .e4q .qa a { min-height: 52px; }
}
@media (hover: hover) and (pointer: fine) {
  .toc a:hover { background: rgba(255,255,255,.05); color: var(--tx); }
  .e4q .qa a:hover { background: color-mix(in srgb, var(--c) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent); }
  .btn.sec:hover { background: rgba(255,255,255,.12); }
}
