/* Pravar: additions to the approved design system. pravar.css is used as exported; new classes live here. */

/* The author-level display rules in pravar.css would otherwise beat the hidden attribute. */
[hidden]{display:none!important}

/* Theme toggle sits where the search button sat in the design: right edge of the single-row header. */
.tgl{margin-left:auto;display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:0;border-radius:22px;background:transparent;color:var(--ink);cursor:pointer;flex:none}
.tgl:hover{background:var(--bg2)}
.tgl pr-ico{width:22px;height:22px}
.tgl .i-sun{display:none}
[data-theme=dark] .tgl .i-sun{display:inline-flex}
[data-theme=dark] .tgl .i-moon{display:none}

/* Section titles on shelf pages are links. */
.h3 a{color:inherit;text-decoration:none}
.h3 a:hover{text-decoration:underline;text-underline-offset:.2em;color:var(--ink)}

/* Glossary terms without a glossary page yet are plain text. */
.word dt{font-family:var(--display);font-weight:600;font-size:16px;min-height:28px}

/* Role panels: one visible at a time, the wrapper is the sticky grid item. */
.panel-wrap{min-width:0}
@media (min-width:1280px){.panel-wrap{position:sticky;top:96px}.panel-wrap .panel{position:static}}

/* Plain text pages. */
.page{padding-block:24px 8px}
@media (min-width:960px){.page{padding-block:44px 16px}}
.page .h1{margin-bottom:20px}
.page h2{margin-top:36px;margin-bottom:12px}
.page .prose ul{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.page .prose li{position:relative;padding-left:20px}
.page .prose li::before{content:"";position:absolute;left:2px;top:.6em;width:8px;height:8px;background:var(--shelf)}
.ed-note{margin-top:28px;padding:18px 20px;border:1.5px dashed var(--muted);border-radius:8px;background:var(--paper);font-size:16px}
.ed-note b{font-family:var(--display);font-weight:600}

/* Search results block on the home page (filled by script only). */
.found{margin-top:18px}
.found .hint{display:block}

/* Not-found page. */
.nf{display:flex;flex-direction:column;gap:18px;align-items:flex-start}

/* Print: the sample letter only needs the page chrome out of the way. */
@media print{.hd,.ft,.toc,.step-done,.btns{display:none!important}}

/* pravar.css declares .street{display:flex} after its own 960px rule, so the street list leaked onto desktop next to the city. */
@media (min-width:960px){.street{display:none}}

/* Cookie consent bar, footer operator line, and the footer/policy link-buttons. */
.cookie{font-family:var(--body);position:fixed;z-index:90;left:12px;right:12px;bottom:12px;max-width:760px;margin-inline:auto;display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;padding:16px 18px;background:var(--paper);color:var(--ink);border:var(--lw) solid var(--line);border-radius:18px;box-shadow:0 8px 30px rgba(21,23,28,.22);font-size:15px;line-height:1.5}
.cookie[hidden]{display:none}
.cookie p{margin:0;flex:1 1 280px}
.cookie a{color:var(--ink);text-decoration:underline}
.cookie-act{display:flex;flex-wrap:wrap;gap:10px}
.cookie-btn{min-height:44px;font-family:var(--body)}
.ft-op{margin:0}
.ft-cookie,.linkbtn{font:inherit;color:var(--ink);background:none;border:0;padding:0;cursor:pointer;text-decoration:underline}
.ft-cookie{display:inline-flex;align-items:center;min-height:44px}
@media print{.cookie{display:none!important}}
/* Gainnet in-text block inside «Нужен юрист?» */
.ad{margin-top:20px;padding-top:12px;border-top:1px solid var(--rule)}
.ad-k{display:block;margin-bottom:8px;font-size:13px;line-height:1.4;letter-spacing:.02em;color:var(--muted)}
.offer{margin-top:24px}
.offer-t{margin:0 0 6px;font-weight:600;font-size:18px;line-height:1.35}
.offer-d{margin:0 0 14px;color:var(--muted);line-height:1.5}
