/* Страница «Контракт вместо приговора»: СИЗО, следствие, условный срок.
   Компоненты fx-* берём из foreigners.css. Здесь только то, чего там нет. */
.page-custody .hero-custody{background-image:linear-gradient(100deg,rgba(14,16,19,.97) 0%,rgba(16,18,21,.93) 44%,rgba(16,18,21,.5) 68%,rgba(16,18,21,.08) 100%),url('custody-hero.svg');background-position:72% center;background-size:cover}
.page-custody .article-hero-copy h1{max-width:19ch}

/* обещают / по закону */
.cx-vs{display:grid;gap:10px;margin-top:6px}
.cx-row{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fff}
.cx-row>div{padding:16px 18px;font-size:15px;line-height:1.5}
.cx-say{background:#171817;color:#fff;font-weight:700;font-size:16px;display:flex;flex-direction:column;gap:6px;justify-content:center}
.cx-say small,.cx-law small{font:800 11px/1.3 inherit;letter-spacing:.12em;text-transform:uppercase}
.cx-say small{color:#ffb27a}
.cx-law small{display:block;margin-bottom:6px;color:var(--accent-2)}
.cx-law p{margin:0 0 8px}
.cx-law p:last-child{margin:0}

/* образец жалобы */
.cx-letter{margin-top:16px;border:1px solid var(--line);border-radius:18px;background:#fff;overflow:hidden}
.cx-letter-head{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:14px 18px;background:#f1efe8}
.cx-letter-head b{font-size:16px}
.cx-letter-head .button{min-height:40px}
.cx-letter pre{margin:0;padding:18px;white-space:pre-wrap;overflow-wrap:anywhere;font:14.5px/1.6 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#2b2e2a}

/* порядок: кому и о чём */
.cx-order{counter-reset:o;display:grid;gap:8px;margin:10px 0 0;padding:0;list-style:none}
.cx-order li{counter-increment:o;display:flex;gap:12px;align-items:flex-start;font-size:15px;line-height:1.5}
.cx-order li::before{content:counter(o);flex:none;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--accent);color:#fff;font:800 13px/1 inherit;margin-top:1px}

@media (max-width:680px){
 .cx-row{grid-template-columns:1fr}
}
@media print{.cx-letter-head .button{display:none!important}}

/* Читаемые факты вместо неподтверждённой статистики. */
.page-custody .cx-facts .fx-stat b{font-size:22px;line-height:1.2;letter-spacing:-.02em;overflow-wrap:anywhere}
.page-custody .cx-facts .fx-stat small{display:block;margin-top:12px;line-height:1.45}
.page-custody .cx-check-form{min-width:0}
.page-custody .cx-check-form fieldset{min-width:0;border:0;padding:0;margin:0 0 24px}
.page-custody .cx-check-form legend{font-size:17px;font-weight:750;margin-bottom:10px;padding:0;line-height:1.4}
.page-custody .cx-check-form input{flex:none;accent-color:#a63b0a;width:20px;height:20px;margin:2px 0 0}
.page-custody .fx-verdict{position:static;align-self:start;background:#f0f1ef;border-color:#d3d6d0;box-shadow:none}
.page-custody .fx-verdict .fx-do{display:grid}
.page-custody .fx-verdict h3{margin-top:0}
.page-custody .cx-danger{border-top:1px solid #d09890;margin-top:16px;padding-top:16px}
.page-custody .cx-danger h4{margin:0 0 8px;font-size:18px}
.page-custody .cx-source{border-top:1px solid var(--line);padding-top:12px;margin-top:14px;overflow-wrap:anywhere}
.page-custody .cx-source p{font-size:13px;line-height:1.55;margin:0 0 8px;color:#55584e}
.page-custody .cx-source a{color:#97400b;text-decoration:underline;text-underline-offset:3px}
.page-custody .fx-exit{text-decoration:none;max-width:calc(100vw - 32px)}
.page-custody :is(a,button,input,summary):focus-visible{outline:3px solid #215aa5;outline-offset:4px}
.page-custody .cx-skip{position:fixed;top:-200px;left:16px;z-index:1000;padding:12px 20px;background:#fff;color:#111;border:2px solid #215aa5;border-radius:10px}
.page-custody .cx-skip:focus{top:10px}
.page-custody [id]{scroll-margin-top:96px}
.page-custody .cx-copy-buffer{position:fixed;top:0;left:0;width:1px;height:1px;opacity:0;pointer-events:none}
.page-custody .cx-copy-feedback{display:block;flex-basis:100%;font-size:14px;color:#45483e}
.page-custody .cx-status{font-size:14px;line-height:1.5}
.page-custody .cx-status:empty{display:none}
.page-custody:not(.custody-js) .burger{display:none}
@media(max-width:980px){
 .page-custody:not(.custody-js) .topbar{position:static}
 .page-custody:not(.custody-js) .nav{flex-wrap:wrap;height:auto;min-height:68px;padding-block:12px}
 .page-custody:not(.custody-js) .navlinks{display:flex;position:static;flex-basis:100%;box-shadow:none;flex-wrap:wrap}
}
@media(max-width:680px){
 .page-custody .fx-verdict{position:static;box-shadow:none}
 .page-custody .fx-verdict .fx-do{display:grid}
 .page-custody .cx-facts{grid-template-columns:1fr}
 .page-custody .cx-facts .fx-stat b{font-size:22px}
 .page-custody .fx-acc summary{overflow-wrap:anywhere}
 .page-custody .fx-share{align-items:stretch}
 .page-custody .fx-share .button{text-align:center;white-space:normal}
}
@media print{
 .page-custody .fx-section{break-inside:auto}
 .page-custody :is(.cx-row,.fx-card,.fx-contact){break-inside:avoid}
 .page-custody .fx-cards,.page-custody .fx-contacts,.page-custody .fx-check{display:block}
 .page-custody .fx-stories .fx-card[hidden]{display:block!important}
 .page-custody .fx-card,.page-custody .fx-contact{margin-bottom:12px}
 .page-custody details{break-inside:auto!important}
 .page-custody details::details-content{content-visibility:visible!important;display:block!important}
 .page-custody details:not([open]) > :not(summary){display:block!important}
 .page-custody :is([data-js-only],.cx-skip,.cx-status,.cx-copy-feedback){display:none!important}
 .page-custody .fx-verdict{position:static;break-inside:avoid;margin-top:12px}
 .page-custody .cx-source a::after{content:' (' attr(href) ')';font-size:9px;overflow-wrap:anywhere}
 .page-custody :is(.hero-custody,.cx-say,.fx-disclaimer){background:#fff!important;color:#111!important}
 .page-custody .hero-custody *,.page-custody .cx-say small{color:#111!important}
 .page-custody .cx-letter pre{font-size:11px}
}
