/* Правила: оглавление слева (с подсветкой текущего раздела), поиск, карточки пунктов, наказания — цветными метками. */
.rp { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 8px; }
.rp-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 110px); }
.rp-search { position: relative; }
.rp-search svg { position: absolute; left: 13px; top: 50%; width: 16px; height: 16px; margin-top: -8px; fill: none; stroke: #8f959b; stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.rp-search input { width: 100%; box-sizing: border-box; height: 42px; padding: 0 36px 0 38px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: #fff; font: 500 14px Inter, sans-serif; transition: border-color .18s, background .18s; }
.rp-search input::placeholder { color: #7d848c; }
.rp-search input:focus { outline: none; border-color: rgba(245,197,24,.6); background: rgba(255,255,255,.06); }
.rp-clear { position: absolute; right: 8px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border: 0; border-radius: 8px; background: none; color: #9aa0a6; cursor: pointer; font-size: 16px; line-height: 1; }
.rp-clear:hover { background: rgba(255,255,255,.1); color: #fff; }
.rp-toc { display: flex; flex-direction: column; gap: 2px; overflow: auto; padding-right: 2px; scrollbar-width: thin; }
.rp-toc a { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 11px; color: #aeb3b9; text-decoration: none; font: 600 13.5px/1.25 Inter, sans-serif; transition: background .16s, color .16s; }
.rp-toc a:hover { background: rgba(255,255,255,.06); color: #fff; }
.rp-toc a.on { background: rgba(245,197,24,.12); color: #f5c518; }
.rp-toc .n { flex: none; display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 4px; border-radius: 8px; background: rgba(255,255,255,.07); font: 800 12px Rubik, Inter, sans-serif; }
.rp-toc a.on .n { background: #f5c518; color: #17130a; }
.rp-toc .t { flex: 1; min-width: 0; }
.rp-toc .c { font-size: 11.5px; opacity: .5; font-variant-numeric: tabular-nums; }
.rp-toc a.dim { opacity: .35; }
.rp-found { font-size: 12.5px; color: #8f959b; min-height: 16px; padding: 0 4px; }

.rp-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.rp-sec { scroll-margin-top: 92px; border-radius: 20px; border: 1px solid rgba(255,255,255,.08); background: linear-gradient(180deg, #15181c, #111316); box-shadow: 0 22px 44px -30px rgba(0,0,0,.9); overflow: hidden; }
.rp-sec-h { display: flex; align-items: flex-start; gap: 14px; padding: 20px 24px 16px; background: radial-gradient(60% 140% at 0% 0%, rgba(245,197,24,.09), transparent 70%); border-bottom: 1px solid rgba(255,255,255,.06); }
.rp-sec-n { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #f5c518; color: #17130a; font: 800 18px Rubik, Inter, sans-serif; box-shadow: 0 8px 20px -8px rgba(245,197,24,.6); }
.rp-sec-h h2 { margin: 2px 0 0; font: 800 21px/1.2 Rubik, Inter, sans-serif; }
.rp-sec-h p { margin: 5px 0 0; font-size: 14px; line-height: 1.5; color: #9aa0a6; }
.rp-list { display: flex; flex-direction: column; }

.rp-rule { position: relative; scroll-margin-top: 96px; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 4px 12px; padding: 16px 22px 16px 20px; border-top: 1px solid rgba(255,255,255,.05); transition: background .2s; }
.rp-rule:first-child { border-top: 0; }
.rp-rule:hover { background: rgba(255,255,255,.025); }
.rp-num { grid-row: 1 / span 3; align-self: start; display: inline-flex; justify-content: center; padding: 4px 0; border-radius: 8px; background: rgba(255,255,255,.06); color: #c4c8cd; font: 700 13px Rubik, Inter, sans-serif; font-variant-numeric: tabular-nums; text-decoration: none; transition: background .16s, color .16s; }
.rp-num:hover { background: rgba(245,197,24,.18); color: #f5c518; }
.rp-title { margin: 0; font: 700 16.5px/1.35 Inter, sans-serif; color: #fff; }
.rp-desc { margin: 0; font-size: 15px; line-height: 1.6; color: #c6cace; white-space: pre-line; overflow-wrap: anywhere; }
.rp-pun { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.rp-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 8px; font: 700 12.5px Inter, sans-serif; }
.rp-chip svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rp-chip.restrict { background: rgba(255,107,107,.13); color: #ff8e8e; box-shadow: inset 0 0 0 1px rgba(255,107,107,.28); }
.rp-chip.mute { background: rgba(77,208,225,.12); color: #6fdbe8; box-shadow: inset 0 0 0 1px rgba(77,208,225,.26); }
.rp-link { position: absolute; top: 14px; right: 16px; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 9px; background: none; color: #8f959b; cursor: pointer; opacity: 0; transition: opacity .16s, background .16s, color .16s; }
.rp-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.rp-rule:hover .rp-link, .rp-link:focus-visible { opacity: 1; }
.rp-link:hover { background: rgba(255,255,255,.1); color: #fff; }
.rp-link.ok { opacity: 1; color: #3ec079; }

/* вложенные пункты и подкатегории */
.rp-rule.d1 { margin-left: 28px; border-left: 2px solid rgba(255,255,255,.07); padding-left: 16px; }
.rp-rule.d2 { margin-left: 56px; border-left: 2px solid rgba(255,255,255,.07); padding-left: 16px; }
.rp-sub { padding: 14px 22px 6px 20px; font: 800 15px Rubik, Inter, sans-serif; color: #f5c518; border-top: 1px solid rgba(255,255,255,.05); }
.rp-sub small { display: block; margin-top: 3px; font: 400 13px/1.45 Inter, sans-serif; color: #9aa0a6; }
.rp-sub .nn { opacity: .7; margin-right: 8px; }

/* подсветка найденного и перехода по ссылке */
.rp mark { background: rgba(245,197,24,.3); color: inherit; border-radius: 3px; padding: 0 1px; }
.rp-rule.flash { animation: rpFlash 2.2s ease-out; }
@keyframes rpFlash { 0%, 35% { background: rgba(245,197,24,.2); box-shadow: inset 3px 0 0 #f5c518; } 100% { background: transparent; box-shadow: inset 3px 0 0 transparent; } }
.rp-empty { padding: 44px 20px; text-align: center; border-radius: 20px; border: 1px dashed rgba(255,255,255,.14); color: #9aa0a6; }
.rp-empty b { display: block; margin-bottom: 4px; color: #fff; font-size: 16px; }
.rp [hidden] { display: none !important; }

@media (max-width: 900px) {
  .rp { grid-template-columns: 1fr; gap: 14px; }
  .rp-side { position: sticky; top: 74px; z-index: 5; max-height: none; padding: 8px 0 6px; background: linear-gradient(#0c0d0f 70%, transparent); }
  .rp-toc { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .rp-toc a { flex: none; white-space: nowrap; background: rgba(255,255,255,.05); }
  .rp-toc .c { display: none; }
  .rp-rule { grid-template-columns: 1fr; padding: 14px 16px; }
  .rp-num { grid-row: auto; justify-self: start; padding: 3px 10px; }
  .rp-link { opacity: 1; }
  .rp-sec-h { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { .rp-rule.flash { animation: none; } }

/* общие стили инпутов сайта (mc-page) перебивают отступы, поэтому здесь жёстко */
body .rp .rp-search input.rp-input { padding: 0 38px 0 42px !important; height: 42px !important; border-radius: 12px !important; background: rgba(255,255,255,.04) !important; border: 1px solid rgba(255,255,255,.1) !important; box-shadow: none !important; color: #fff !important; font: 500 14px Inter, sans-serif !important; text-indent: 0 !important; }
body .rp .rp-search input.rp-input:focus { border-color: rgba(245,197,24,.6) !important; background: rgba(255,255,255,.06) !important; }
.rp-search svg { left: 15px; z-index: 1; }
.rp-search input.rp-input::-webkit-search-cancel-button { display: none; }
