/*
Theme Name: dds_b2bevictions.com
Theme URI: https://b2bevictions.com/
Author: Алексей Ковалев
Description: Тема информационно-правового портала о выселении и снятии с регистрации: судебное дело на столе юриста — синяя папка с миллиметровкой, листы старой бумаги, скрепки и штампы.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bevict
*/

/* ---------- Шрифты ---------- */
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/oswald-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/oswald-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/oswald-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/oswald-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/pt-serif-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/pt-serif-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/pt-serif-cyrillic-400-italic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/pt-serif-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/pt-serif-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/pt-serif-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/caveat-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/caveat-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Переменные ---------- */
:root {
    --folder: #14213D;
    --grid: #1E3059;
    --panel: #1B2E58;
    --night: #0B1220;
    --paper: #F0EAD8;
    --paper-hi: #F7F2E4;
    --paper-lo: #E2D9C1;
    --paper-dk: #D3C8AB;
    --ink: #22242A;
    --muted: #6B6455;
    --seal: #B23A2E;
    --seal-dk: #8F2A20;
    --pen: #1F4E9C;
    --line: #8C8577;
    --cream: #E9E2CC;
    --steel: #9CA3AD;
    --f-head: "Oswald", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    --f-text: "PT Serif", Georgia, "Times New Roman", serif;
    --f-hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
    --shadow: drop-shadow(0 10px 14px rgba(3, 8, 20, .45)) drop-shadow(0 2px 2px rgba(3, 8, 20, .35));
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
    --torn-a: polygon(0.0% 1.6px,1.8% 3.3px,3.4% 2.7px,5.7% 0.3px,8.2% 0.2px,10.6% 0.3px,12.2% 2.1px,15.4% 0.6px,17.3% 3.1px,20.7% 2.9px,23.0% 4.9px,24.6% 4.3px,26.7% 0.7px,28.4% 1.5px,31.6% 0.9px,34.2% 3.2px,36.5% 2.7px,38.1% 0.3px,40.0% 3.4px,42.4% 1.6px,45.0% 2.3px,47.1% 4.0px,50.0% 1.2px,52.7% 2.6px,55.9% 3.6px,58.0% 4.9px,59.8% 2.1px,62.8% 0.8px,65.2% 0.2px,68.1% 3.8px,70.7% 4.4px,72.9% 3.5px,75.5% 2.9px,78.0% 4.2px,81.3% 2.4px,84.2% 0.3px,87.1% 3.2px,90.6% 4.1px,92.6% 1.9px,95.5% 0.1px,97.9% 0.8px,99.6% 0.3px,100% 0.6px,calc(100% - 0.5px) 0.0%,calc(100% - 1.9px) 8.3%,calc(100% - 1.0px) 14.8%,calc(100% - 1.9px) 24.1%,calc(100% - 1.9px) 35.0%,calc(100% - 0.9px) 42.7%,calc(100% - 1.9px) 50.9%,calc(100% - 0.3px) 62.6%,calc(100% - 0.5px) 69.7%,calc(100% - 1.1px) 77.1%,calc(100% - 0.6px) 86.6%,calc(100% - 0.9px) 92.6%,100.0% calc(100% - 2.8px),96.6% calc(100% - 3.5px),94.1% calc(100% - 3.1px),91.2% calc(100% - 0.3px),87.9% calc(100% - 3.9px),84.7% calc(100% - 4.0px),82.4% calc(100% - 2.0px),80.7% calc(100% - 3.2px),79.0% calc(100% - 0.3px),77.1% calc(100% - 0.8px),74.9% calc(100% - 0.3px),73.4% calc(100% - 0.8px),71.7% calc(100% - 1.8px),70.2% calc(100% - 4.4px),67.5% calc(100% - 0.7px),65.5% calc(100% - 1.7px),63.2% calc(100% - 0.6px),60.0% calc(100% - 5.0px),57.6% calc(100% - 2.4px),55.9% calc(100% - 0.5px),53.7% calc(100% - 1.3px),50.6% calc(100% - 0.8px),49.0% calc(100% - 4.8px),46.5% calc(100% - 0.7px),43.9% calc(100% - 0.1px),41.3% calc(100% - 4.9px),38.1% calc(100% - 3.5px),36.1% calc(100% - 1.8px),34.3% calc(100% - 3.9px),31.7% calc(100% - 3.9px),29.5% calc(100% - 1.1px),26.4% calc(100% - 4.9px),23.2% calc(100% - 4.0px),20.1% calc(100% - 3.7px),18.1% calc(100% - 2.6px),15.9% calc(100% - 0.1px),14.4% calc(100% - 1.4px),12.3% calc(100% - 3.5px),8.9% calc(100% - 2.2px),5.5% calc(100% - 4.9px),2.1% calc(100% - 1.8px),0.2% calc(100% - 1.1px),0% calc(100% - 1.0px),1.4px 100.0%,1.8px 88.6%,1.4px 79.7%,0.2px 68.9%,2.0px 59.0%,1.7px 48.3%,0.4px 39.4%,0.7px 28.7%,2.1px 17.9%,0.9px 9.5%);
    --torn-b: polygon(0.0% 2.7px,3.1% 2.1px,5.6% 1.6px,9.1% 1.2px,10.9% 1.0px,12.9% 1.3px,14.9% 0.4px,17.1% 1.2px,19.7% 0.8px,21.4% 0.8px,24.0% 1.6px,26.9% 3.2px,29.3% 0.4px,32.2% 3.0px,34.5% 2.6px,36.6% 3.7px,39.8% 3.2px,43.2% 0.9px,45.8% 2.9px,48.9% 1.6px,50.6% 2.5px,52.4% 2.8px,53.9% 1.8px,56.3% 0.5px,58.8% 2.0px,61.0% 3.6px,64.3% 3.6px,66.2% 0.1px,68.5% 0.5px,71.4% 1.1px,73.2% 1.1px,75.5% 2.9px,77.9% 1.2px,80.8% 0.2px,82.7% 2.7px,85.7% 0.4px,87.3% 2.0px,90.1% 0.1px,92.5% 1.1px,94.2% 0.7px,96.2% 1.9px,98.0% 2.5px,100% 2.7px,calc(100% - 0.1px) 0.0%,calc(100% - 1.4px) 9.9%,calc(100% - 0.8px) 15.9%,calc(100% - 2.1px) 25.9%,calc(100% - 1.3px) 37.4%,calc(100% - 2.1px) 47.0%,calc(100% - 1.1px) 54.2%,calc(100% - 1.7px) 60.6%,calc(100% - 0.5px) 70.5%,calc(100% - 1.2px) 77.7%,calc(100% - 0.3px) 88.2%,calc(100% - 1.1px) 96.2%,100.0% calc(100% - 3.5px),97.0% calc(100% - 3.8px),94.3% calc(100% - 2.7px),92.2% calc(100% - 2.0px),89.8% calc(100% - 1.9px),88.2% calc(100% - 3.4px),86.4% calc(100% - 1.8px),83.0% calc(100% - 2.1px),79.8% calc(100% - 1.0px),77.4% calc(100% - 1.5px),75.2% calc(100% - 1.5px),72.8% calc(100% - 3.4px),69.4% calc(100% - 0.4px),66.6% calc(100% - 2.1px),64.2% calc(100% - 0.2px),62.0% calc(100% - 1.3px),59.8% calc(100% - 2.4px),57.5% calc(100% - 1.2px),55.5% calc(100% - 3.9px),53.2% calc(100% - 3.9px),51.4% calc(100% - 2.7px),48.8% calc(100% - 2.8px),46.2% calc(100% - 3.5px),43.6% calc(100% - 0.2px),40.7% calc(100% - 2.5px),38.7% calc(100% - 2.9px),35.5% calc(100% - 1.1px),33.7% calc(100% - 1.2px),31.1% calc(100% - 1.8px),29.4% calc(100% - 1.8px),26.8% calc(100% - 2.3px),24.6% calc(100% - 3.1px),21.8% calc(100% - 1.0px),19.6% calc(100% - 3.7px),17.6% calc(100% - 1.8px),15.5% calc(100% - 2.3px),12.4% calc(100% - 0.5px),10.5% calc(100% - 0.3px),8.8% calc(100% - 2.1px),6.3% calc(100% - 3.8px),3.9% calc(100% - 2.1px),2.4% calc(100% - 0.9px),0.2% calc(100% - 1.0px),0% calc(100% - 1.7px),0.3px 100.0%,0.3px 90.8%,1.3px 83.7%,1.7px 77.2%,0.1px 68.5%,2.1px 58.5%,1.9px 48.1%,0.6px 36.4%,1.6px 27.5%,2.1px 19.1%,0.0px 10.6%,0.9px 4.0%);
}

/* ---------- Сброс и база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--f-text);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--folder);
    background-image:
        linear-gradient(rgba(30, 48, 89, .95) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 48, 89, .95) 1px, transparent 1px),
        linear-gradient(rgba(30, 48, 89, .45) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 48, 89, .45) 1px, transparent 1px);
    background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
    background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
}
img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: var(--pen); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; transition: color .15s ease, background-color .15s ease, transform .15s ease, box-shadow .15s ease; }
a:hover { color: var(--seal); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [role="tab"]:focus-visible { outline: 3px solid var(--pen); outline-offset: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-head); font-weight: 700; line-height: 1.15; margin: 1.4em 0 .55em; color: var(--ink); overflow-wrap: break-word; hyphens: auto; }
p, li, dd, td, th, blockquote, figcaption, .card-title, .case__title { overflow-wrap: break-word; hyphens: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1.2rem; background: var(--paper); color: var(--ink); font-family: var(--f-head); text-transform: uppercase; letter-spacing: .06em; }
.skip:focus { top: 1rem; }

/* ---------- Каркас ---------- */
.shell { width: min(92%, 1180px); margin-inline: auto; }
.site-main { display: block; padding: 2.2rem 0 4rem; }

/* ---------- Лист бумаги ---------- */
.sheet {
    position: relative;
    isolation: isolate;
    filter: var(--shadow);
    padding: 2.2rem 2.4rem;
    color: var(--ink);
}
.sheet::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: var(--paper);
    background-image:
        var(--grain),
        radial-gradient(120% 90% at 85% 10%, rgba(255, 255, 255, .35), transparent 55%),
        radial-gradient(70% 60% at 10% 95%, rgba(160, 130, 80, .12), transparent 70%),
        radial-gradient(40% 30% at 70% 80%, rgba(160, 130, 80, .08), transparent 70%);
    clip-path: var(--torn-a);
}
.sheet:nth-of-type(even)::before { clip-path: var(--torn-b); }

/* ---------- Заголовки секций ---------- */
.sec-title {
    display: inline-block;
    margin: 0 0 1.4rem;
    padding-bottom: .35rem;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.1rem);
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: .035em;
    color: #172238;
    background-image: linear-gradient(var(--seal), var(--seal));
    background-repeat: no-repeat;
    background-size: 100% 2px;
    background-position: 0 100%;
}
.sec-title--light { color: var(--cream); }

/* ---------- Скрепки, штамп, кнопки ---------- */
.clip { position: absolute; width: 22px; height: 58px; color: var(--steel); z-index: 3; pointer-events: none; filter: drop-shadow(1px 2px 1px rgba(0, 0, 0, .35)); }
.clip--law { top: -18px; right: 34px; transform: rotate(8deg); }
.clip--route { top: -20px; right: 40px; transform: rotate(10deg); }
.clip--doc { top: -20px; right: 46px; transform: rotate(7deg); }
.clip--a1 { top: -22px; left: 10px; transform: rotate(-6deg); }
.clip--a2 { top: -22px; left: 44%; transform: rotate(5deg); }
.clip--b1 { top: -24px; left: 32%; transform: rotate(8deg); }
.clip--c1 { top: -22px; left: 33%; transform: rotate(-4deg); }
.clip--card { display: none; }

.stamp {
    position: absolute;
    right: 1.2rem;
    bottom: 1.6rem;
    z-index: 2;
    padding: .25rem .9rem;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--pen);
    border: 3px solid var(--pen);
    box-shadow: inset 0 0 0 2px var(--paper-hi), inset 0 0 0 3px var(--pen);
    transform: rotate(-18deg);
    opacity: .82;
    mix-blend-mode: multiply;
    pointer-events: none;
    background-image: radial-gradient(circle at 30% 40%, transparent 0 2px, rgba(247, 242, 228, .55) 3px, transparent 4px);
    background-size: 13px 11px;
}
.stamp--red { color: var(--seal); border-color: var(--seal); box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 3px var(--seal); }

.btn-seal, .comment-form .submit {
    display: inline-block;
    padding: .62rem 1.7rem .56rem;
    border: 0;
    background: var(--seal);
    color: #fff;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.2;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    box-shadow: inset 0 0 0 3px var(--seal), inset 0 0 0 4px rgba(255, 255, 255, .6), 0 2px 0 var(--seal-dk);
    cursor: pointer;
    transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn-seal:hover, .comment-form .submit:hover { background: var(--seal-dk); color: #fff; box-shadow: inset 0 0 0 3px var(--seal-dk), inset 0 0 0 4px rgba(255, 255, 255, .75), 0 0 0 var(--seal-dk); transform: translateY(2px); }
.btn-seal--sm { padding: .5rem 1.3rem .45rem; font-size: .92rem; }
.arrow { width: 34px; height: 14px; display: block; }

/* ---------- Шапка ---------- */
.masthead {
    position: relative;
    background: var(--folder);
    border-bottom: 7px solid var(--seal);
    box-shadow: 0 1px 0 #0B1220, 0 4px 14px rgba(0, 0, 0, .35);
}
.masthead::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 2px; background: rgba(178, 58, 46, .45); }
.masthead__row { display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; padding: 1.4rem 0 1.5rem; }
.brand { display: flex; align-items: center; gap: 1.3rem; min-width: 0; color: var(--cream); text-decoration: none; }
.brand:hover { color: #fff; }
.brand__seal { flex: 0 0 auto; width: 104px; height: 104px; display: block; transition: transform .25s ease; }
.brand:hover .brand__seal { transform: rotate(-8deg); }
.brand__svg, .brand__logo { width: 100%; height: 100%; display: block; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.brand__name { font-family: var(--f-head); font-weight: 500; font-size: clamp(1.15rem, .85rem + 1vw, 1.65rem); line-height: 1.2; letter-spacing: .03em; text-transform: uppercase; max-width: 40ch; }
.brand__desc { font-size: .84rem; line-height: 1.45; color: #B9B3A0; max-width: 62ch; }

.topnav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; justify-content: flex-end; }
.topnav__list a { display: inline-block; padding: .2rem 0; color: var(--cream); font-size: 1.02rem; text-decoration: underline; text-decoration-color: rgba(233, 226, 204, .55); text-underline-offset: .25em; white-space: nowrap; }
.topnav__list a:hover, .topnav__list .current-menu-item > a { color: #fff; text-decoration-color: var(--seal); text-decoration-thickness: 2px; }
.topnav__list .sub-menu { list-style: none; margin: .2rem 0 0; padding: 0; }
.topnav { flex: 0 1 auto; min-width: 0; }

.nav-toggle { display: none; align-items: center; gap: .55rem; padding: .55rem .9rem; border: 2px solid var(--cream); background: transparent; color: var(--cream); font-family: var(--f-head); font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.nav-toggle:hover { background: var(--cream); color: var(--folder); }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

/* ---------- Главная ---------- */
.shell--front { width: min(85%, 1240px); }
.shell--front > * + * { margin-top: 2.4rem; }
.desk { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); gap: 2rem; align-items: stretch; }

/* Блок 1 — картотека */
.sheet--cases { padding: 2.3rem 2.6rem 1.8rem; }
.cases { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(140, 133, 119, .55); }
.case { border-bottom: 1px solid rgba(140, 133, 119, .55); }
.case:last-child { border-bottom: 0; }
.case__link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.6rem; padding: 1.15rem .6rem; color: var(--ink); text-decoration: none; }
.case__no { font-family: var(--f-head); font-weight: 500; font-size: clamp(1.6rem, 1.1rem + 1.3vw, 2.4rem); line-height: 1; color: #8A8270; letter-spacing: .01em; white-space: nowrap; }
.case__main { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.case__title { font-size: 1.22rem; line-height: 1.3; }
.case__term { font-size: .9rem; color: var(--muted); }
.case__go { color: var(--seal); transition: transform .18s ease; }
.case__link:hover { background: rgba(178, 58, 46, .07); color: var(--ink); }
.case__link:hover .case__title { text-decoration: underline; text-decoration-color: var(--seal); text-underline-offset: .2em; }
.case__link:hover .case__go { transform: translateX(6px); }

/* Блок 2 — закон, вкладки */
.sheet--law { padding: 2.3rem 2rem 2rem 2.6rem; display: flex; flex-direction: column; }
.sheet--law .sec-title { font-size: clamp(1.7rem, 1.1rem + 1.7vw, 2.55rem); align-self: flex-start; }
.law { position: relative; display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); flex: 1; min-height: 22rem; }
.law__tabs { position: relative; display: flex; flex-direction: column; gap: .6rem; padding: .4rem 0 .4rem .9rem; }
.law__tabs::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: repeating-linear-gradient(180deg, var(--seal) 0 9px, transparent 9px 24px);
    border-left: 1px dashed rgba(140, 133, 119, .8);
}
.law__tab {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: .75rem .7rem .7rem;
    border: 0;
    border-radius: 0 6px 6px 0;
    background: var(--paper-dk);
    color: #6E6650;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.15;
    text-align: center;
    cursor: pointer;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .06), 2px 2px 3px rgba(40, 30, 10, .18);
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.law__tab small { display: block; margin-top: .2rem; font-family: var(--f-text); font-size: .8rem; line-height: 1.2; }
.law__tab::before { content: ""; position: absolute; left: -.9rem; top: 50%; width: 1.2rem; height: 2px; background: var(--seal); transform: translateY(-50%); }
.law__tab:hover { background: #E3D9BF; color: var(--ink); transform: translateX(3px); }
.law__tab[aria-selected="true"] { background: var(--paper-hi); color: var(--ink); font-weight: 700; transform: translateX(8px); z-index: 2; box-shadow: 3px 3px 6px rgba(40, 30, 10, .28); border-right: 4px solid var(--seal); }
.law__page {
    position: relative;
    margin-left: .6rem;
    padding: 1.6rem 1.7rem 6.5rem;
    background: var(--paper-hi);
    background-image: var(--grain);
    box-shadow: 4px 4px 0 var(--paper-lo), 7px 7px 0 var(--paper-dk), 8px 12px 18px rgba(30, 20, 5, .25);
    min-width: 0;
}
.law__page::after { content: ""; position: absolute; right: 0; bottom: 0; width: 2.4rem; height: 2.4rem; background: linear-gradient(135deg, var(--paper-lo) 0 50%, var(--paper) 50%); box-shadow: -3px -3px 5px rgba(30, 20, 5, .12); }
.law__pane[hidden] { display: none !important; }
.law__lead { font-size: 1.32rem; line-height: 1.4; margin: 0 0 1rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(140, 133, 119, .6); }
.law__note { font-size: .96rem; color: #3C3B38; margin: 0; }

/* Последние материалы — синяя папка */
.folder {
    position: relative;
    padding: 2.4rem 2.6rem 2.2rem;
    background: var(--panel);
    background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 12px 12px;
    border: 1px solid rgba(233, 226, 204, .12);
    clip-path: polygon(0 26px, 26px 0, 100% 0, 100% 100%, 0 100%);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25);
}
.folder__stack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; padding: 1.4rem .4rem .6rem; }
.folder__more { margin: 1.4rem 0 0; text-align: right; }
.folder__more a { color: var(--cream); font-family: var(--f-head); letter-spacing: .05em; text-transform: uppercase; font-size: .95rem; }
.folder__more a:hover { color: #fff; text-decoration-color: var(--seal); }
.folder__empty { color: var(--cream); margin: 0; }

/* ---------- Карточки записей ---------- */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--paper);
    background-image: var(--grain), radial-gradient(90% 60% at 80% 0, rgba(255, 255, 255, .35), transparent 60%);
    box-shadow: 5px 5px 0 -1px var(--paper-lo), 9px 9px 0 -2px var(--paper-dk), 12px 16px 22px rgba(3, 8, 20, .45);
    transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-5px) rotate(0deg); box-shadow: 5px 5px 0 -1px var(--paper-lo), 9px 9px 0 -2px var(--paper-dk), 14px 22px 28px rgba(3, 8, 20, .5); }
.card--front:nth-child(1) { transform: rotate(-1.6deg); }
.card--front:nth-child(2) { transform: rotate(.9deg) translateY(-6px); }
.card--front:nth-child(3) { transform: rotate(-.5deg); }
.card--front:nth-child(n):hover { transform: translateY(-8px) rotate(0deg); }
.card--front .clip--card { display: block; }
.card--front:nth-child(1) .clip--card { top: -16px; left: 18px; transform: rotate(-12deg); }
.card--front:nth-child(2) .clip--card { display: none; }
.card--front:nth-child(3) .clip--card { top: -16px; right: 22px; transform: rotate(9deg); }
.card-thumb { margin: 1.1rem 1.1rem 0; overflow: hidden; background: #DCD3BC; }
.card-thumb a { display: block; }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; filter: saturate(.92) contrast(1.02); transition: transform .35s ease; }
.card:hover .card-thumb img { transform: scale(1.03); }
.card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 1rem 1.3rem 1.4rem; }
.card-no { margin: 0 0 .35rem; font-family: var(--f-head); font-size: .85rem; letter-spacing: .08em; color: var(--muted); }
.card-pin { display: inline-block; margin-left: .4rem; padding: 0 .45rem; border: 1px solid var(--seal); color: var(--seal); font-size: .75rem; text-transform: uppercase; transform: rotate(-3deg); }
.card-title { margin: 0 0 .55rem; font-family: var(--f-text); font-weight: 400; font-size: 1.28rem; line-height: 1.3; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--pen); text-decoration: underline; }
.card-excerpt { font-size: .94rem; line-height: 1.5; color: #3B3A36; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-foot { margin-top: auto; padding-top: .6rem; display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; }
.card-date { font-size: .92rem; color: var(--muted); }

/* Блок 3 — порядок действий */
.sheet--route { padding: 2.2rem 2.6rem 2.6rem; }
.route__head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .6rem 4rem; margin-bottom: 2rem; }
.route__head .sec-title { margin-bottom: 0; }
.route__hand {
    margin: 0;
    font-family: var(--f-hand);
    font-weight: 600;
    font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.8rem);
    line-height: 1.1;
    color: var(--pen);
    padding-bottom: .3rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5 C80 2 160 7 240 4 S360 3 398 5' fill='none' stroke='%231F4E9C' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 100% / 100% 8px;
}
.route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.4rem; counter-reset: none; }
.route__step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .4rem; min-width: 0; }
.route__step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1.75rem;
    left: calc(50% + 3rem);
    width: calc(100% - 6rem + 1.4rem);
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 14' preserveAspectRatio='none'%3E%3Cpath d='M2 7 H86' fill='none' stroke='%231F4E9C' stroke-width='2.4' stroke-dasharray='9 7' stroke-linecap='round'/%3E%3Cpath d='M86 2 L97 7 L86 12' fill='none' stroke='%231F4E9C' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.route__num {
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    border: 2.5px solid var(--pen);
    border-radius: 52% 47% 50% 46% / 48% 53% 45% 52%;
    font-family: var(--f-hand);
    font-weight: 600;
    font-size: 2.3rem;
    line-height: 1;
    color: var(--pen);
    background: rgba(255, 255, 255, .25);
    transition: transform .2s ease, background-color .2s ease;
}
.route__step:nth-child(even) .route__num { border-radius: 47% 53% 46% 52% / 52% 46% 54% 48%; transform: rotate(4deg); }
.route__step:hover .route__num { background: rgba(31, 78, 156, .1); transform: rotate(-6deg) scale(1.05); }
.route__label { font-family: var(--f-hand); font-weight: 600; font-size: 1.75rem; line-height: 1.05; color: var(--pen); }
.route__text { font-size: .9rem; line-height: 1.45; color: var(--muted); }

/* Блок 4 — судебная практика */
.sheet--practice { padding: 2.2rem 2.6rem 2.6rem; }
.practice { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 0; }
.practice__clips { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2rem 1.8rem; align-content: start; padding-right: 2.4rem; }
.practice__clips .sec-title { grid-column: 1 / -1; justify-self: start; margin-bottom: .6rem; }
.clipping {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 0;
    min-width: 0;
    background: var(--paper-hi);
    background-image: var(--grain);
    box-shadow: 2px 3px 0 var(--paper-lo), 6px 10px 16px rgba(30, 20, 5, .26);
    transition: transform .2s ease, box-shadow .2s ease;
}
.clipping--a { grid-column: 1 / 4; transform: rotate(-.8deg); }
.clipping--b { grid-column: 4 / 7; transform: rotate(.6deg); }
.clipping--c { grid-column: 2 / 6; transform: rotate(-.4deg); }
.clipping:hover { transform: rotate(0) translateY(-4px); box-shadow: 2px 3px 0 var(--paper-lo), 8px 16px 22px rgba(30, 20, 5, .3); }
.clipping img { display: block; flex: 0 0 38%; width: 38%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; align-self: center; margin: .6rem 0 .6rem .6rem; }
.clipping__text { flex: 1; min-width: 0; margin: 0; padding: 1rem 1.1rem 1rem 1rem; display: flex; flex-direction: column; justify-content: center; }
.clipping__text p { margin: 0 0 .4rem; font-family: var(--f-hand); font-weight: 600; font-size: 1.32rem; line-height: 1.15; color: var(--pen); }
.clipping__text cite { font-style: normal; font-size: .8rem; color: var(--muted); }
.practice__count { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1rem 0 1rem 2.4rem; border-left: 1px solid rgba(140, 133, 119, .7); }
.practice__num { margin: 0; font-family: var(--f-head); font-weight: 700; font-size: clamp(3.6rem, 2.4rem + 3.6vw, 6rem); line-height: 1; color: var(--seal); letter-spacing: .01em; }
.practice__cap { margin: .4rem 0 1.4rem; padding-bottom: 1.4rem; font-size: 1.3rem; border-bottom: 1px solid rgba(140, 133, 119, .7); width: 100%; }
.practice__upd { margin: 0 0 1.4rem; font-size: .95rem; color: var(--muted); }

/* ---------- Внутренние страницы ---------- */
.crumbs { margin: 0 0 1.6rem; font-size: .92rem; color: #C2BCA9; }
.crumbs a { color: #A9C0EA; text-decoration-color: rgba(169, 192, 234, .5); }
.crumbs a:hover { color: #fff; }
.crumbs span:last-child { color: var(--cream); }
.crumbs__sep { margin: 0 .35rem; color: var(--seal); }

.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); column-gap: 6%; align-items: start; }
.layout-single { display: block; }
.layout-single .content-area { width: 85%; margin-left: auto; margin-right: auto; }
.content-area { min-width: 0; }
.content-area > * + * { margin-top: 2rem; }

.page-head { padding: 2rem 2.4rem 1.6rem; }
.page-head__title { margin: 0 0 .5rem; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); text-transform: uppercase; letter-spacing: .03em; color: #172238; display: inline-block; padding-bottom: .3rem; background: linear-gradient(var(--seal), var(--seal)) no-repeat 0 100% / 100% 2px; }
.page-head__intro { margin: .8rem 0 0; color: #3B3A36; }
.page-head__intro p:last-child { margin-bottom: 0; }
.page-head__search { margin-top: 1rem; }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 2rem 1.8rem; }
.cards-grid .card:nth-child(3n+1) { transform: rotate(-.5deg); }
.cards-grid .card:nth-child(3n+2) { transform: rotate(.4deg); }
.cards-grid .card:hover { transform: translateY(-5px) rotate(0); }
.empty-note { padding: 1.8rem 2.2rem; }
.empty-note p { margin: 0; }

/* Документ: запись и страница */
.doc { padding: 2.6rem 3rem 2.8rem; }
.doc__head { margin-bottom: 1.6rem; padding-bottom: 1.2rem; border-bottom: 1px solid rgba(140, 133, 119, .6); }
.doc__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.2rem; margin: 0 0 .7rem; font-size: .9rem; color: var(--muted); }
.doc__no { font-family: var(--f-head); letter-spacing: .08em; }
.doc__cat { padding: .05rem .55rem; border: 1px solid var(--seal); color: var(--seal); font-family: var(--f-head); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transform: rotate(-2deg); }
.doc__cat:hover { background: var(--seal); color: #fff; }
.doc__title { margin: 0; font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.7rem); line-height: 1.12; text-transform: uppercase; letter-spacing: .02em; color: #172238; }
.doc__cover { margin: 0 0 1.6rem; padding: .6rem; background: var(--paper-hi); box-shadow: 4px 6px 12px rgba(30, 20, 5, .2); }
.doc__cover img { display: block; width: 100%; height: auto; }
.doc__tags { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin: 2rem 0 0; padding-top: 1rem; border-top: 1px dashed var(--line); font-size: .92rem; }

.doc-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.doc-nav__link { display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem 1.4rem; background: var(--panel); border: 1px solid rgba(233, 226, 204, .14); color: var(--cream); text-decoration: none; }
.doc-nav__link span { font-family: var(--f-head); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: #E3897E; }
.doc-nav__link:hover { background: #22386A; color: #fff; }
.doc-nav__link--next { grid-column: 2; text-align: right; }

/* Типографика текста записи */
.entry > *:first-child { margin-top: 0; }
.entry h2 { font-size: 1.7rem; text-transform: uppercase; letter-spacing: .03em; color: #172238; padding-bottom: .25rem; border-bottom: 2px solid var(--seal); display: table; }
.entry h3 { font-size: 1.35rem; color: #172238; }
.entry h4, .entry h5, .entry h6 { font-size: 1.1rem; letter-spacing: .04em; text-transform: uppercase; }
.entry ul, .entry ol { margin: 0 0 1.2em; padding-left: 1.5em; }
.entry li { margin-bottom: .35em; }
.entry ul li::marker { color: var(--seal); }
.entry ol li::marker { color: var(--seal); font-family: var(--f-head); }
.entry blockquote { position: relative; margin: 1.6em 0; padding: 1.2rem 1.6rem 1.2rem 1.8rem; background: var(--paper-hi); border-left: 5px solid var(--seal); box-shadow: 4px 5px 0 var(--paper-lo); font-style: italic; }
.entry blockquote p:last-child { margin-bottom: 0; }
.entry blockquote cite { display: block; margin-top: .5rem; font-size: .9rem; font-style: normal; color: var(--muted); }
.entry img { display: block; max-width: 100%; height: auto; }
.entry figure { margin: 1.6em 0; }
.entry figcaption, .wp-caption-text { margin-top: .5rem; font-size: .88rem; color: var(--muted); text-align: center; }
.entry table, .widget table { width: 100%; margin: 1.4em 0; border-collapse: collapse; border: 1px solid var(--line); font-size: .95rem; }
.entry th, .entry td, .widget th, .widget td { padding: .55rem .75rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry th, .widget th { background: var(--paper-lo); font-family: var(--f-head); font-weight: 500; letter-spacing: .04em; }
.entry tr:nth-child(even) td { background: rgba(255, 255, 255, .28); }
.entry .wp-block-table { overflow-x: auto; }
.entry pre { overflow-x: auto; padding: 1rem 1.2rem; background: var(--paper-lo); font-size: .9rem; }
.entry code { padding: .05em .3em; background: var(--paper-lo); font-size: .9em; }
.entry hr { margin: 2em 0; border: 0; border-top: 1px dashed var(--line); }
.entry a { color: var(--pen); }
.entry .alignleft { float: left; margin: .3em 1.4em 1em 0; }
.entry .alignright { float: right; margin: .3em 0 1em 1.4em; }
.entry .aligncenter { margin-left: auto; margin-right: auto; }
.entry::after { content: ""; display: table; clear: both; }
.pager--inner { margin-top: 1.5rem; }

/* ---------- Сайдбар ---------- */
.sidebar { min-width: 0; display: flex; flex-direction: column; gap: 2rem; }
.sidebar .widget {
    position: relative;
    padding: 1.6rem 1.6rem 1.4rem;
    background: var(--paper);
    background-image: var(--grain);
    box-shadow: 5px 5px 0 -1px var(--paper-lo), 12px 14px 20px rgba(3, 8, 20, .4);
    color: var(--ink);
}
.sidebar .widget::before { content: ""; position: absolute; top: -18px; right: 24px; width: 18px; height: 46px; border: 2.4px solid var(--steel); border-radius: 9px; border-bottom-color: transparent; transform: rotate(8deg); }
.sidebar .widget-title { margin: 0 0 1rem; display: inline-block; padding-bottom: .25rem; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .05em; color: #172238; border-bottom: 2px solid var(--seal); }
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li { padding: .55rem 0; border-bottom: 1px solid rgba(140, 133, 119, .45); line-height: 1.4; }
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget a { color: var(--ink); text-decoration-color: rgba(31, 78, 156, .45); }
.sidebar .widget a:hover { color: var(--pen); }
.sidebar .widget .post-date, .sidebar .widget .rss-date { display: block; font-size: .85rem; color: var(--muted); }
.sidebar .widget p { color: #3B3A36; }
.sidebar .widget select, .sidebar .widget input[type="text"] { max-width: 100%; }

/* ---------- Поиск ---------- */
.seek__label { display: block; margin-bottom: .4rem; font-family: var(--f-head); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.seek__row { display: flex; gap: 0; }
.seek__field { flex: 1; min-width: 0; padding: .65rem .9rem; border: 1px solid var(--line); border-right: 0; background: var(--paper-hi); color: var(--ink); border-radius: 0; }
.seek__btn { padding: .65rem 1.3rem; border: 0; background: var(--pen); color: #fff; font-family: var(--f-head); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; box-shadow: inset 0 0 0 3px var(--pen), inset 0 0 0 4px rgba(255, 255, 255, .5); }
.seek__btn:hover { background: #163C7A; }

/* ---------- 404 ---------- */
.lost { padding: 3rem 3rem 3.2rem; overflow: hidden; }
.lost__code { margin: 0; font-family: var(--f-head); font-weight: 700; font-size: clamp(5rem, 3rem + 8vw, 9rem); line-height: .9; color: var(--seal); }
.lost__title { margin: .6rem 0 1rem; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); text-transform: uppercase; letter-spacing: .03em; }
.lost__text { max-width: 56ch; }
.lost__search { max-width: 520px; margin: 1.6rem 0; }
.lost .stamp { right: 2.5rem; top: 3rem; bottom: auto; font-size: 1.6rem; }

/* ---------- Пагинация ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; margin-top: 2.4rem; }
.pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.7rem; height: 2.7rem; padding: 0 .85rem; background: var(--paper); color: var(--ink); border: 1px solid var(--line); font-family: var(--f-head); font-size: 1.05rem; text-decoration: none; box-shadow: 3px 3px 0 rgba(3, 8, 20, .35); }
.pager a.page-numbers:hover { background: var(--paper-hi); color: var(--pen); transform: translateY(-2px); }
.pager .page-numbers.current { background: var(--seal); border-color: var(--seal); color: #fff; box-shadow: inset 0 0 0 3px var(--seal), inset 0 0 0 4px rgba(255, 255, 255, .55), 3px 3px 0 rgba(3, 8, 20, .35); }
.pager .page-numbers.dots { background: transparent; border: 0; box-shadow: none; color: var(--cream); min-width: auto; padding: 0 .3rem; }

/* ---------- Комментарии ---------- */
.remarks { padding: 2.2rem 2.6rem; }
.remarks__title, .comment-reply-title { margin: 0 0 1.2rem; font-size: 1.5rem; text-transform: uppercase; letter-spacing: .04em; color: #172238; }
.comment-reply-title small { margin-left: .8rem; font-family: var(--f-text); font-size: .85rem; text-transform: none; letter-spacing: 0; }
.remarks__list, .remarks__list .children { list-style: none; margin: 0; padding: 0; }
.remarks__list .children { margin-left: 2rem; }
.note__body { margin: 0 0 1.2rem; padding: 1rem 1.2rem; background: var(--paper-hi); border-left: 3px solid var(--pen); }
.note__head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin-bottom: .5rem; }
.note__ava { border-radius: 50%; display: block; }
.note__author { font-weight: 700; }
.note__date { font-size: .85rem; color: var(--muted); }
.note__wait { font-style: italic; color: var(--seal); }
.note__text p:last-child { margin-bottom: 0; }
.note__reply a { font-family: var(--f-head); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.comment-respond { margin-top: 1.4rem; }
.comment-form label { display: block; margin-bottom: .3rem; font-family: var(--f-head); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: .6rem .8rem; border: 1px solid var(--line); background: var(--paper-hi); border-radius: 0; color: var(--ink); }
.comment-form .comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { display: inline; font-family: var(--f-text); font-size: .9rem; text-transform: none; letter-spacing: 0; }
.comment-notes, .logged-in-as, .remarks__closed { font-size: .9rem; color: var(--muted); }
.req { color: var(--seal); }
.comments-pagination, .comment-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0; }

/* ---------- Подвал ---------- */
.colophon { background: var(--night); color: #B8B3A4; padding: 3rem 0 1.6rem; border-top: 1px solid #1B2540; }
.colophon__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.colophon__col { min-width: 0; padding: 0 2.4rem; }
.colophon__col:first-child { padding-left: 0; }
.colophon__col + .colophon__col { border-left: 1px solid #2A3550; }
.colophon .widget + .widget { margin-top: 1.6rem; }
.colophon .widget-title { margin: 0 0 .8rem; font-size: 1.3rem; letter-spacing: .05em; text-transform: uppercase; color: var(--cream); }
.colophon .widget, .colophon .widget p, .colophon .textwidget { color: #B8B3A4; font-size: .95rem; }
.colophon .widget a { color: #A9C0EA; text-decoration-color: rgba(169, 192, 234, .5); }
.colophon .widget a:hover { color: #fff; }
.colophon .widget ul { list-style: none; margin: 0; padding: 0; }
.colophon .widget li { position: relative; padding: .18rem 0 .18rem 1rem; }
.colophon .widget li::before { content: ""; position: absolute; left: 0; top: .85em; width: 5px; height: 5px; background: var(--seal); }
.colophon .widget .post-date { color: #8E95A6; font-size: .85rem; }
.colophon__copy { margin: 2.6rem 0 0; padding-top: 1.4rem; border-top: 1px solid #26304A; text-align: center; font-size: .88rem; color: #8E95A6; }

/* ---------- Cookie-баннер ---------- */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    background: var(--paper);
    background-image: var(--grain);
    border-top: 5px solid var(--seal);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
}
.cookie-banner__inner { display: flex; align-items: center; gap: 1.2rem 1.6rem; padding: 1.1rem 1.5rem; }
.cookie-banner__text { margin: 0; flex: 1; min-width: 0; font-size: .92rem; line-height: 1.5; color: var(--ink); }
.cookie-banner__btn { flex: 0 0 auto; padding: .6rem 1.5rem; border: 0; background: var(--seal); color: #fff; font-family: var(--f-head); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; box-shadow: inset 0 0 0 3px var(--seal), inset 0 0 0 4px rgba(255, 255, 255, .6); }
.cookie-banner__btn:hover { background: var(--seal-dk); }

/* ---------- WordPress ---------- */
.alignwide, .alignfull { max-width: 100%; }
.sticky, .bypostauthor, .gallery-caption { display: block; }
.wp-block-image img { height: auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
    .route { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
    .route__step:not(:last-child)::after { left: calc(50% + 2.6rem); width: calc(100% - 5.2rem + 1rem); }
    .practice__clips { grid-template-columns: 1fr; padding-right: 1.8rem; }
    .clipping--a, .clipping--b, .clipping--c { grid-column: 1 / -1; }
    .clipping--b { margin-left: 8%; }
    .clipping--c { margin-left: 3%; margin-right: 6%; }
}
@media (max-width: 960px) {
    .masthead__row { flex-wrap: wrap; }
    .brand { flex: 1 1 0; }
    .brand__seal { width: 84px; height: 84px; }
    .nav-toggle { display: inline-flex; }
    .topnav { flex: 1 1 100%; display: none; }
    .topnav.is-open { display: block; }
    .topnav__list { flex-direction: column; justify-content: flex-start; gap: 0; border-top: 1px solid rgba(233, 226, 204, .2); }
    .topnav__list a { display: block; padding: .7rem 0; border-bottom: 1px solid rgba(233, 226, 204, .12); }
    .shell--front { width: min(92%, 1240px); }
    .desk { grid-template-columns: minmax(0, 1fr); }
    .folder__stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .practice { grid-template-columns: minmax(0, 1fr); }
    .practice__clips { padding-right: 0; }
    .practice__count { padding: 2rem 0 .4rem; margin-top: 2rem; border-left: 0; border-top: 1px solid rgba(140, 133, 119, .7); }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 2.6rem; }
    .layout-single .content-area { width: 100%; }
    .colophon__cols { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
    .colophon__col, .colophon__col:first-child { padding: 0; }
    .colophon__col + .colophon__col { border-left: 0; border-top: 1px solid #2A3550; padding-top: 1.8rem; }
}
@media (max-width: 800px) {
    .route { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; position: relative; }
    .route__step { display: grid; grid-template-columns: 4rem minmax(0, 1fr); column-gap: 1.2rem; align-items: center; text-align: left; }
    .route__num { grid-row: 1 / span 2; }
    .route__label { align-self: end; }
    .route__text { align-self: start; grid-column: 2; }
    .route__step:not(:last-child)::after { top: 4.3rem; left: 1.55rem; width: 14px; height: calc(100% - 3.2rem); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 100' preserveAspectRatio='none'%3E%3Cpath d='M7 2 V98' fill='none' stroke='%231F4E9C' stroke-width='2.4' stroke-dasharray='8 6'/%3E%3C/svg%3E") no-repeat center / 100% 100%; }
}
@media (max-width: 700px) {
    .folder__stack { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
    .card--front:nth-child(n) { transform: none; }
    .law { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .law__tabs { flex-direction: row; flex-wrap: wrap; gap: .5rem; padding: 0 0 .9rem; }
    .law__tabs::before { display: none; }
    .law__tab { width: auto; flex: 1 1 calc(50% - .5rem); border-radius: 6px 6px 0 0; }
    .law__tab::before { display: none; }
    .law__tab[aria-selected="true"] { transform: translateY(-3px); border-right: 0; border-bottom: 4px solid var(--seal); }
    .law__page { margin-left: 0; padding-bottom: 6rem; }
    .doc-nav { grid-template-columns: minmax(0, 1fr); }
    .doc-nav__link--next { grid-column: auto; }
}
@media (max-width: 600px) {
    body { font-size: 1rem; }
    .site-main { padding: 1.6rem 0 3rem; }
    .shell--front > * + * { margin-top: 1.8rem; }
    .brand { gap: .9rem; }
    .brand__seal { width: 64px; height: 64px; }
    .brand__desc { display: none; }
    .brand__name { font-size: 1rem; letter-spacing: .02em; }
    .sheet { padding: 1.7rem 1.3rem; }
    .sheet--cases, .sheet--law, .sheet--route, .sheet--practice, .page-head, .doc, .remarks, .lost, .empty-note { padding: 1.7rem 1.3rem 1.8rem; }
    .folder { padding: 1.8rem 1.2rem 1.6rem; clip-path: polygon(0 18px, 18px 0, 100% 0, 100% 100%, 0 100%); }
    .folder__stack { padding: 1rem 0 .4rem; }
    .case__link { grid-template-columns: minmax(0, 1fr) auto; gap: .3rem 1rem; padding: 1rem .2rem; }
    .case__no { grid-column: 1 / -1; font-size: 1.3rem; }
    .law__page { padding: 1.3rem 1.2rem 5.5rem; }
    .law__lead { font-size: 1.15rem; }
    .stamp { font-size: 1.1rem; right: .8rem; bottom: 1.2rem; }
    .clipping { flex-direction: column; }
    .clipping--b, .clipping--c { margin-left: 0; margin-right: 0; }
    .clipping img { width: calc(100% - 1.4rem); flex: none; align-self: stretch; margin: .7rem .7rem 0; aspect-ratio: 4 / 3; }
    .card-thumb { margin: .9rem .9rem 0; }
    .card-body { padding: .9rem 1.1rem 1.2rem; }
    .cards-grid .card:nth-child(n) { transform: none; }
    .sidebar .widget { padding: 1.4rem 1.2rem 1.2rem; }
    .cookie-banner__inner { flex-direction: column; align-items: stretch; padding: 1rem 1.1rem; }
    .remarks__list .children { margin-left: 1rem; }
    .lost .stamp { right: 1rem; top: 1.6rem; font-size: 1.2rem; }
}
