/* ==========================================================================
   Аргунов, Кесслер и партнёры — design system «Кодекс»
   The site as a typeset legal document: decimal § numbering, a sticky contents
   rail, a wide margin column for notes, hairline rules and one amber marker.

   0  Tokens            5  Rail, top bar, progress bar
   1  Base              6  Sections and grid
   2  Typography        7  Components
   3  Utilities         8  Motion
   4  Buttons, links    9  Responsive
   ========================================================================== */

/* 0. TOKENS ---------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* ink, paper, stone */
  --ink-950: #0b0f14;
  --ink-900: #10151b;
  --ink-800: #171e26;
  --ink-700: #222b35;
  --ink-600: #323e4b;
  --paper: #f3f0e9;
  --paper-2: #ece8dd;
  --stone: #ddd7c8;
  --rule: #cdc7b7;
  --rule-2: #b3ac99;
  --slate: #505a64;      /* secondary text on paper: 5.9:1 */
  --slate-2: #77808a;    /* decorative only, never for text */

  /* the marker: use as a fill behind ink text, or as text on ink only */
  --amber: #f2b84b;
  --amber-deep: #e0a02a;

  /* on ink */
  --on-ink: #ece8de;
  --on-ink-2: #aab2bb;
  --on-ink-3: #848e99;
  --rule-ink: rgba(236, 232, 222, .18);

  /* semantic */
  --bg: var(--paper);
  --text: var(--ink-900);
  --text-2: var(--slate);
  --line: var(--rule);

  /* type */
  --f-display: "Spectral", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Times New Roman", serif;
  --f-text: "Inter Tight", "Helvetica Neue", Arial, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --fs-mono: .75rem;
  --fs-sm: .875rem;
  --fs-body: 1.0625rem;
  --fs-lede: clamp(1.2rem, 1.05rem + .55vw, 1.5rem);
  --fs-h3: clamp(1.35rem, 1.2rem + .6vw, 1.75rem);
  --fs-h2: clamp(2.05rem, 1.2rem + 2.8vw, 3.6rem);
  --fs-display: clamp(2.05rem, .9rem + 3.3vw, 3.7rem);
  --fs-no: clamp(2.4rem, 1.4rem + 3vw, 4.25rem);

  /* space */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;
  --gap: clamp(16px, 2.2vw, 32px);
  --pad-x: clamp(20px, 4.6vw, 64px);
  --sec-y: clamp(72px, 9vw, 148px);

  /* layout */
  --rail-w: 264px;
  --top-h: 60px;
  --pbar-h: 40px;
  --maxw: 1240px;
  --ribbon-h: 38px;   /* height of the shared .nx-ribbon on desktop */

  /* motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
}

/* 1. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + var(--pbar-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-body)/1.62 var(--f-text);
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--amber); color: var(--ink-900); }

:focus-visible { outline: 2px solid var(--ink-900); outline-offset: 3px; border-radius: 1px; }
.sec--ink :focus-visible, .foot :focus-visible, .urgent :focus-visible { outline-color: var(--amber); }

/* 2. TYPOGRAPHY ------------------------------------------------------------ */
.t-display { font-family: var(--f-display); font-weight: 300; font-size: var(--fs-display); line-height: 1.04; letter-spacing: -.02em; text-wrap: balance; font-variant-numeric: lining-nums; }
.t-h2 { font-family: var(--f-display); font-weight: 300; font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; }
.t-h3 { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.005em; }
.t-lede { font-family: var(--f-display); font-weight: 300; font-size: var(--fs-lede); line-height: 1.45; text-wrap: pretty; }
.t-body { font-size: var(--fs-body); }
.t-small { font-size: var(--fs-sm); line-height: 1.5; }
.t-mono, .eyebrow { font-family: var(--f-mono); font-size: var(--fs-mono); font-weight: 500; letter-spacing: .09em; text-transform: uppercase; line-height: 1.45; }
.eyebrow { color: var(--text-2); }
.prose > * + * { margin-top: 1.1em; }
.prose p { text-wrap: pretty; max-width: 62ch; }
.muted { color: var(--text-2); }
.nowrap { white-space: nowrap; }
.cite { font-family: var(--f-mono); font-size: .8125rem; letter-spacing: .01em; }

/* 3. UTILITIES ------------------------------------------------------------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: 8px; z-index: 100; padding: 10px 14px; background: var(--ink-900); color: var(--paper); font: 500 .875rem/1 var(--f-text); text-decoration: none; transform: translateY(-200%); }
.skip:focus { transform: none; }
.hide-sm { display: initial; }

/* the marker. Static highlight without JS; with JS it is swept in when visible.
   On paper it is a highlighter stripe under the lower part of the line; on ink it covers the
   whole line, so the dark text never sits on a dark ground. */
.mark {
  --mk-h: .66em;
  --mk-y: 86%;
  background: linear-gradient(97deg, rgba(242,184,75,0) 0, var(--amber) 1.2%, var(--amber) 98.6%, rgba(242,184,75,0) 100%) no-repeat 0 var(--mk-y) / 100% var(--mk-h);
  color: var(--ink-900);
  padding: 0 .09em;
  margin: 0 -.09em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.sec--ink .mark, .urgent .mark { --mk-h: 100%; --mk-y: 50%; padding: .02em .12em; margin: 0 -.12em; }
.js .mark[data-mark] { background-size: 0% var(--mk-h); transition: background-size 1.15s var(--ease-io) var(--md, 0s); }
.js .mark[data-mark].is-on { background-size: 100% var(--mk-h); }
/* on ink the text stays light until the marker has covered it, so it is never dark on dark */
.js .sec--ink .mark[data-mark]:not(.is-on), .js .urgent .mark[data-mark]:not(.is-on) { color: var(--on-ink); }
.js .sec--ink .mark[data-mark], .js .urgent .mark[data-mark] { transition: background-size 1.15s var(--ease-io) var(--md, 0s), color .2s linear calc(var(--md, 0s) + .5s); }

/* 4. BUTTONS AND LINKS ------------------------------------------------------ */
.btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 0 22px; border: 1px solid var(--ink-900); border-radius: 0;
  background: var(--ink-900); color: var(--paper);
  font: 500 .9375rem/1 var(--f-text); letter-spacing: .005em; text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--ink-700); border-color: var(--ink-700); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn--marker { background: var(--amber); border-color: var(--amber); color: var(--ink-900); }
.btn--marker:hover { background: #f7c76a; border-color: #f7c76a; color: var(--ink-900); }
.btn--ghost { background: transparent; color: var(--ink-900); border-color: var(--rule-2); }
.btn--ghost:hover { background: var(--ink-900); color: var(--paper); border-color: var(--ink-900); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: .875rem; }
.sec--ink .btn--ghost, .foot .btn--ghost, .urgent .btn--ghost { color: var(--on-ink); border-color: rgba(236,232,222,.4); }
.sec--ink .btn--ghost:hover, .foot .btn--ghost:hover, .urgent .btn--ghost:hover { background: var(--on-ink); color: var(--ink-900); border-color: var(--on-ink); }
.btn svg { width: 16px; height: 16px; flex: none; }

.link-arrow { display: inline-flex; align-items: center; gap: .55em; min-height: 44px; font: 500 .9375rem/1.2 var(--f-text); text-decoration: none; border-bottom: 1px solid currentColor; padding-block: 2px; align-self: start; }
.link-arrow::after { content: "→"; font-family: var(--f-text); transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.link-plain { text-decoration: underline; text-decoration-color: var(--rule-2); }
.link-plain:hover { text-decoration-color: currentColor; }

/* 5. RAIL, TOP BAR, PROGRESS BAR ------------------------------------------- */
.doc { display: block; }
.doc__main { min-width: 0; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-height: 44px; }
.brand__mark { flex: none; display: grid; place-items: center; width: 36px; height: 36px; background: var(--amber); color: var(--ink-900); font: 400 24px/1 var(--f-display); padding-bottom: 3px; }
.brand__name { display: block; font: 400 1.0625rem/1.15 var(--f-display); letter-spacing: -.005em; }
.brand__sub { display: block; margin-top: 3px; font: 500 .6875rem/1.2 var(--f-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--text-2); }

.rail { display: none; }

.top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 16px; min-height: var(--top-h);
  padding: 0 var(--pad-x);
  background: rgba(243, 240, 233, .94);
  -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.top .brand__name { font-size: 1rem; }
.top .brand__sub { display: none; }
.top__nav, .top__end { display: none; }

.menu { margin-left: auto; position: static; }
.menu summary { list-style: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 2px 0 12px; cursor: pointer; font: 500 .75rem/1 var(--f-mono); letter-spacing: .09em; text-transform: uppercase; }
.menu summary::-webkit-details-marker { display: none; }
.menu__ico { position: relative; width: 20px; height: 12px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transition: transform .3s var(--ease); }
.menu__ico::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; }
.menu[open] .menu__ico { transform: scaleY(.66); }
.menu__panel { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - var(--top-h)); max-height: calc(100dvh - var(--top-h)); overflow: auto; padding: 8px var(--pad-x) 28px; background: var(--paper); border-bottom: 1px solid var(--rule); box-shadow: 0 24px 40px -24px rgba(16, 21, 27, .35); }
.menu__panel ol { counter-reset: m; }
.menu__panel li + li { border-top: 1px solid var(--rule); }
.menu__panel a.menu__a { display: grid; grid-template-columns: 3.4em 1fr; align-items: baseline; min-height: 56px; padding: 14px 0; text-decoration: none; font: 300 1.5rem/1.2 var(--f-display); }
.menu__panel a.menu__a span:first-child { font: 500 .75rem/1 var(--f-mono); color: var(--text-2); letter-spacing: .06em; }
.menu__foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* progress bar under the top bar on phones and tablets */
.pbar { position: sticky; top: var(--top-h); z-index: 39; display: flex; align-items: center; gap: 12px; height: var(--pbar-h); padding: 0 var(--pad-x); background: var(--paper); border-bottom: 1px solid var(--rule); font: 500 .75rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.pbar__no { padding: 4px 7px 3px; background: var(--amber); color: var(--ink-900); }
.pbar__t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbar__line { position: absolute; left: 0; bottom: -1px; height: 2px; width: var(--p, 0%); background: var(--ink-900); }

/* 6. SECTIONS AND GRID ------------------------------------------------------ */
.sec { position: relative; padding: var(--sec-y) var(--pad-x); border-top: 1px solid var(--rule); }
.sec--tight { padding-block: clamp(48px, 6vw, 96px); }
.sec--stone { background: var(--paper-2); }
.sec--ink { background: var(--ink-900); color: var(--on-ink); border-top-color: var(--ink-900); --text: var(--on-ink); --text-2: var(--on-ink-2); --line: var(--rule-ink); }
.sec--ink .eyebrow { color: var(--on-ink-2); }

.sec__in { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--gap); max-width: var(--maxw); margin: 0 auto; }
.sec__head { display: contents; }
.sec__no { margin-bottom: 14px; font: 300 italic var(--fs-no)/.9 var(--f-display); letter-spacing: -.02em; color: var(--slate-2); font-variant-numeric: lining-nums; }
.sec__no i { font-style: normal; font-weight: 200; margin-right: .04em; }
.sec--ink .sec__no { color: var(--amber); }
.sec__title { margin-bottom: clamp(28px, 4vw, 56px); }
.sec__lede { margin-bottom: clamp(28px, 4vw, 56px); }
.sec__main, .sec__wide, .sec__full, .sec__margin, .sec__title, .sec__lede { min-width: 0; }
.sec__margin { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--line); }
.stack > * + * { margin-top: var(--s5); }

/* 7. COMPONENTS ------------------------------------------------------------ */

/* margin notes (примечания) */
.notes-h { margin-bottom: var(--s4); }
.notes { counter-reset: n; display: grid; gap: var(--s4); }
.notes li { counter-increment: n; position: relative; padding-left: 2.1em; font-size: var(--fs-sm); line-height: 1.5; color: var(--text-2); }
.notes li::before { content: counter(n); position: absolute; left: 0; top: .08em; width: 1.5em; font: 500 .75rem/1.3 var(--f-mono); color: var(--text); }
.notes li b { color: var(--text); font-weight: 500; }
.notes--plain li { padding-left: 0; }
.notes--plain li::before { content: none; }
.note-ref { font: 500 .7em/1 var(--f-mono); vertical-align: super; text-decoration: none; color: var(--text); padding: 0 .12em; }
.note-ref:hover { background: var(--amber); }

.notice { padding: var(--s4) var(--s5); border: 1px solid var(--line); font-size: var(--fs-sm); line-height: 1.5; color: var(--text-2); }
.notice b { color: var(--text); font-weight: 500; }

/* facts with counters */
.facts { display: grid; gap: 0; }
.facts li { display: grid; grid-template-columns: 1fr; gap: 2px; padding: var(--s4) 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); line-height: 1.45; }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts__k { font: 500 .6875rem/1.4 var(--f-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--text-2); }
.facts__v { font: 300 1.5rem/1.2 var(--f-display); color: var(--text); font-variant-numeric: lining-nums tabular-nums; }
.facts__v small { font: 400 .875rem/1.4 var(--f-text); color: var(--text-2); }
.facts__row { display: flex; gap: 12px; align-items: baseline; }
.facts__big { font: 200 2.75rem/1 var(--f-display); letter-spacing: -.02em; }

/* clauses: numbered paragraphs «п. 1» */
.clauses { counter-reset: cl; }
.clause { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2) var(--gap); padding: var(--s5) 0; border-top: 1px solid var(--line); }
.clause:last-child { border-bottom: 1px solid var(--line); }
.clause__no { font: 500 .75rem/1.6 var(--f-mono); letter-spacing: .06em; color: var(--text-2); }
.clause__no b { font-weight: 500; color: var(--text); background: var(--amber); padding: 2px 6px 1px; margin-right: 4px; }
.clause__t { font: 400 var(--fs-h3)/1.2 var(--f-display); margin-bottom: var(--s2); }
.clause__p { color: var(--text-2); max-width: 58ch; text-wrap: pretty; }
.clause__p b { color: var(--text); font-weight: 500; }

/* the ruler: three periods in proportion (hero and calendar page) */
.ruler { display: flex; margin-top: clamp(40px, 6vw, 80px); }
.ruler__li { position: relative; flex: var(--w) 1 0; min-width: 0; padding-right: 14px; }
.ruler__a { display: block; text-decoration: none; padding-bottom: 6px; }
.ruler__bar { display: block; height: 16px; margin-bottom: 14px; color: var(--ink-900); border-bottom: 1px solid currentColor; border-right: 1px solid currentColor; background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px calc(100% / var(--n))); position: relative; }
.ruler__li:first-child .ruler__bar { border-left: 1px solid currentColor; }
.ruler__bar::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; background: var(--amber); transform: translate(50%, 50%); }
.ruler__li:last-child .ruler__bar::after { background: var(--ink-900); }
.ruler__art { display: block; font: 500 .75rem/1.4 var(--f-mono); letter-spacing: .03em; text-transform: uppercase; color: var(--text-2); }
.ruler__t { display: block; margin-top: 2px; font: 400 1.25rem/1.2 var(--f-display); }
.ruler__d { display: block; margin-top: 2px; font-size: var(--fs-sm); color: var(--text-2); }
.ruler__a:hover .ruler__t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.ruler-note { margin-top: var(--s5); max-width: 62ch; }

/* practice articles: numbered rows */
.art-list { border-top: 1px solid var(--ink-900); counter-reset: art; }
.art { border-bottom: 1px solid var(--rule); }
.art__a { position: relative; display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 4px 16px; padding: 22px 12px 22px 0; text-decoration: none; transition: background .3s var(--ease), padding .4s var(--ease); }
.art__a::before { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 3px; background: var(--amber); transition: width .5s var(--ease); }
.art__a:hover { background: var(--paper-2); padding-left: 12px; }
.art__a:hover::before { width: 100%; }
.art__no { font: 200 italic 2.25rem/1 var(--f-display); color: var(--slate-2); font-variant-numeric: lining-nums; }
.art__t { display: block; font: 400 1.3125rem/1.25 var(--f-display); text-wrap: balance; }
.art__d { display: block; margin-top: 6px; font-size: var(--fs-sm); line-height: 1.5; color: var(--text-2); max-width: 56ch; }
.art__ref { grid-column: 2; font: 500 .75rem/1.5 var(--f-mono); color: var(--text-2); letter-spacing: .02em; }
.art__fee { grid-column: 2; font: 500 .9375rem/1.4 var(--f-text); font-variant-numeric: tabular-nums; }
.art__fee small { font: 500 .6875rem/1 var(--f-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--text-2); margin-right: .4em; }

/* figure with caption */
.fig img { width: 100%; background: var(--stone); }
.fig figcaption { margin-top: 10px; font: 400 .8125rem/1.45 var(--f-text); color: var(--text-2); }
.fig figcaption b { font: 500 .6875rem/1 var(--f-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--text); margin-right: .6em; }
.fig--tone img { filter: grayscale(.55) contrast(1.02) sepia(.18); }

/* experience by category */
.cats { border-top: 1px solid var(--line); }
.cats li { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); line-height: 1.5; }
.cats__k { font: 500 .8125rem/1.6 var(--f-mono); color: var(--text-2); }

/* statute: the signature calendar. Left the law, right the calculation. */
.statute { display: block; }
.statute .clause { grid-template-columns: minmax(0, 1fr); padding: clamp(26px, 3vw, 40px) 0; align-items: start; }
.statute .clause__no { color: var(--on-ink-2); }
.statute .clause__no b { color: var(--ink-900); }
.statute .clause__p { color: var(--on-ink-2); }
.statute .clause__p b { color: var(--on-ink); }
.statute .clause__t { color: var(--on-ink); }
.clause__calc { min-width: 0; }
.dl-field { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 20px; }
.dl-field label { flex: 0 0 100%; font: 500 .75rem/1.4 var(--f-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--on-ink-2); }
.dl-input { appearance: none; -webkit-appearance: none; min-width: 0; width: min(100%, 290px); min-height: 52px; padding: 6px 4px; background: transparent; border: 0; border-bottom: 1px solid var(--on-ink-3); border-radius: 0; color: var(--on-ink); color-scheme: dark; font: 300 1.625rem/1.2 var(--f-display); font-variant-numeric: lining-nums tabular-nums; transition: border-color .25s; }
.dl-input:hover { border-bottom-color: var(--on-ink); }
.dl-input:focus { outline: none; border-bottom: 2px solid var(--amber); padding-bottom: 5px; }
.dl-input:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-bottom-width: 1px; }
.dl-out { margin-top: var(--s5); min-height: 3.2em; }
.dl-hint { color: var(--on-ink-3); font-size: var(--fs-sm); }
.dl-eg { display: inline-block; margin-bottom: 10px; font: 500 .6875rem/1 var(--f-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--on-ink-2); border: 1px solid var(--rule-ink); padding: 5px 8px 4px; }
.dl-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; font-size: var(--fs-sm); line-height: 1.5; color: var(--on-ink-2); padding: 3px 0; }
.dl-line b { font-weight: 400; color: var(--on-ink); font-variant-numeric: lining-nums; }
.dl-final { display: block; margin-top: 16px; font: 300 clamp(1.45rem, 1.1rem + 1.1vw, 2rem)/1.4 var(--f-display); color: var(--on-ink); text-wrap: balance; font-variant-numeric: lining-nums; }
.dl-final .mark { font-style: italic; }
.dl-left { margin-top: 12px; font-size: var(--fs-sm); line-height: 1.55; color: var(--on-ink-2); max-width: 56ch; }
.dl-left b { color: var(--on-ink); font-weight: 500; }
.statute__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: var(--s6); }
.statute__actions .btn-text { appearance: none; background: none; border: 0; min-height: 44px; padding: 0 6px; font: 500 .875rem/1 var(--f-text); color: var(--on-ink-2); text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }
.statute__actions .btn-text:hover { color: var(--on-ink); }
.statute__actions .link-arrow { margin-left: auto; }
.statute__stamp { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--rule-ink); font: 400 .8125rem/1.6 var(--f-mono); color: var(--on-ink-2); max-width: 86ch; }
.statute__stamp b { font-weight: 500; color: var(--on-ink); }
.statute__notes { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--rule-ink); }
.statute__notes .notes { gap: var(--s5); }
.sec--ink .notes li { color: var(--on-ink-2); }
.sec--ink .notes li b, .sec--ink .notes li::before { color: var(--on-ink); }
.sec--ink .link-arrow { color: var(--amber); }

/* ledger: «что изменилось в законе» and fees */
.ledger { font-size: var(--fs-sm); line-height: 1.5; }
@media (min-width: 900px) { .ledger--law { table-layout: fixed; } .ledger--law th:nth-child(1) { width: 15%; } .ledger--law th:nth-child(2) { width: 25%; } .ledger--law th:nth-child(3) { width: 33%; } .ledger--fees { table-layout: fixed; } .ledger--fees th:nth-child(1) { width: 40%; } .ledger--fees th:nth-child(2) { width: 18%; } }
.ledger caption { text-align: left; padding-bottom: var(--s4); caption-side: top; }
.ledger thead th { padding: 0 var(--gap) 12px 0; text-align: left; font: 500 .6875rem/1.3 var(--f-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--text-2); border-bottom: 1px solid var(--ink-900); }
.ledger tbody th, .ledger tbody td { padding: 18px var(--gap) 18px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); font-weight: 400; }
.ledger tbody th { font: 500 .8125rem/1.5 var(--f-mono); letter-spacing: .01em; white-space: nowrap; }
.ledger td b { font-weight: 500; }
.ledger .cite { color: var(--text-2); display: block; margin-top: 4px; }
.ledger__num { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 500; }
.ledger__num small { font: 500 .6875rem/1 var(--f-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--text-2); margin-right: .4em; }

/* case cards (team) */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
.cd { position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 4px 20px; padding: 18px 20px 22px; background: var(--paper); border: 1px solid var(--rule-2); }
.sec--stone .cd { background: var(--paper); }
.cd::before, .cd::after { content: ""; position: absolute; width: 14px; height: 14px; border: 0 solid var(--ink-900); pointer-events: none; }
.cd::before { left: -1px; top: -1px; border-width: 2px 0 0 2px; }
.cd::after { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; }
.cd__top { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--rule); font: 500 .6875rem/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.cd__mono { grid-row: span 3; display: grid; place-items: center; align-self: start; width: 84px; height: 104px; background: var(--ink-900); color: var(--amber); font: 200 3rem/1 var(--f-display); letter-spacing: -.02em; }
.cd__name { font: 400 1.375rem/1.2 var(--f-display); }
.cd__role { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.4; }
.cd__facts { grid-column: 1 / -1; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule); display: grid; gap: 6px; font-size: var(--fs-sm); line-height: 1.45; }
.cd__facts li { position: relative; padding-left: 16px; }
.cd__facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 1px; background: var(--ink-900); }

/* steps «порядок работы» */
.steps { counter-reset: st; border-top: 1px solid var(--ink-900); }
.steps li { counter-increment: st; display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); gap: 4px 16px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.steps li::before { content: "п. " counter(st); font: 500 .75rem/1.9 var(--f-mono); letter-spacing: .04em; color: var(--text-2); grid-row: span 2; }
.steps b { display: block; font: 400 1.25rem/1.25 var(--f-display); }
.steps span { display: block; font-size: var(--fs-sm); line-height: 1.55; color: var(--text-2); max-width: 58ch; }

/* forms */
.form { display: grid; gap: var(--s5); }
.field { display: grid; gap: 8px; }
.field__l { font: 500 .75rem/1.4 var(--f-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--text-2); }
.field__l i { font-style: normal; color: var(--text-2); text-transform: none; letter-spacing: 0; font-family: var(--f-text); }
.input, .textarea { appearance: none; -webkit-appearance: none; width: 100%; min-height: 52px; padding: 12px 14px; background: var(--paper); border: 1px solid var(--rule-2); border-radius: 0; font: 400 1rem/1.4 var(--f-text); transition: border-color .2s, box-shadow .2s; }
.textarea { min-height: 112px; resize: vertical; }
.input:hover, .textarea:hover { border-color: var(--ink-900); }
.input:focus, .textarea:focus { outline: none; border-color: var(--ink-900); box-shadow: inset 0 -3px 0 var(--amber); }
.input::placeholder, .textarea::placeholder { color: #7d8791; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.chips legend { padding: 0; margin-bottom: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--rule-2); background: var(--paper); font: 500 .875rem/1 var(--f-text); transition: background .2s, color .2s, border-color .2s; }
.chip input:hover + span { border-color: var(--ink-900); }
.chip input:checked + span { background: var(--ink-900); border-color: var(--ink-900); color: var(--paper); }
.chip input:focus-visible + span { outline: 2px solid var(--ink-900); outline-offset: 3px; }
.consent { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; font-size: var(--fs-sm); line-height: 1.5; color: var(--text-2); }
.consent input { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 10px 0 0 2px; border: 1px solid var(--ink-900); background: var(--paper); cursor: pointer; position: relative; flex: none; }
.consent input:checked { background: var(--ink-900); }
.consent input:checked::after { content: ""; position: absolute; left: 7px; top: 2px; width: 6px; height: 12px; border: solid var(--amber); border-width: 0 2px 2px 0; transform: rotate(40deg); }
.consent input:focus-visible { outline: 2px solid var(--ink-900); outline-offset: 3px; }
.consent label { padding-block: 8px; cursor: pointer; }
.consent a { color: var(--text); }
.form__warn { padding: 12px 14px; background: var(--paper-2); border-left: 3px solid var(--amber); font-size: var(--fs-sm); line-height: 1.5; }
.form__warn b { font-weight: 500; }

/* contacts, map */
.contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s7) var(--gap); }
.dl { display: grid; gap: 0; }
.dl > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 14px 0; border-top: 1px solid var(--rule); }
.dl > div:last-child { border-bottom: 1px solid var(--rule); }
.dl dt { font: 500 .6875rem/1.4 var(--f-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--text-2); }
.dl dd { font-size: var(--fs-body); line-height: 1.5; }
.dl dd .cite { color: var(--text-2); }
.chan { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s5); }
.badge { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 12px; max-width: 100%; border: 1px solid var(--rule-2); font: 500 .75rem/1.3 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; background: var(--paper); }
.badge__dot { width: 9px; height: 9px; background: var(--slate-2); flex: none; }
.badge[data-state="open"] .badge__dot { background: #2f8f5a; box-shadow: 0 0 0 3px rgba(47, 143, 90, .22); }
.badge[data-state="closed"] .badge__dot { background: #b0574a; }
.map { position: relative; border: 1px solid var(--rule-2); background: var(--stone); }
.map svg { width: 100%; height: auto; }
.map__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--rule-2); background: var(--paper); }
.map__cap { font: 400 .75rem/1.4 var(--f-mono); color: var(--text-2); }
.map .m-water { fill: #cfd6d6; }
.map .m-block { fill: var(--paper-2); stroke: var(--rule-2); stroke-width: .8; }
.map .m-road { fill: none; stroke: var(--paper); stroke-width: 7; stroke-linecap: round; }
.map .m-road-main { fill: none; stroke: #fff9ea; stroke-width: 11; stroke-linecap: round; }
.map .m-line { fill: none; stroke: var(--rule-2); stroke-width: 1; }
.map text { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; fill: var(--slate); text-transform: uppercase; }
.map .m-pin { fill: var(--ink-900); }
.map .m-pin-mark { fill: var(--amber); }
.map .m-lbl { font-family: var(--f-text); font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; fill: var(--ink-900); }

/* urgent band over the photo */
.urgent { position: relative; isolation: isolate; color: var(--on-ink); background: var(--ink-900); overflow: hidden; }
.urgent__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.urgent::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(16,21,27,.94) 0%, rgba(16,21,27,.78) 52%, rgba(16,21,27,.45) 100%); }
.urgent__in { max-width: var(--maxw); margin: 0 auto; padding: clamp(56px, 8vw, 112px) var(--pad-x); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); justify-items: start; }
.urgent__k { color: var(--amber); }
.urgent__t { font: 300 clamp(1.9rem, 1.1rem + 3.4vw, 3.6rem)/1.08 var(--f-display); letter-spacing: -.015em; max-width: 18ch; text-wrap: balance; }
.urgent__tel { font: 200 clamp(2.4rem, 1.2rem + 5.4vw, 5.2rem)/1 var(--f-display); letter-spacing: -.02em; text-decoration: none; font-variant-numeric: lining-nums tabular-nums; width: fit-content; border-bottom: 1px solid rgba(236,232,222,.4); padding-bottom: 6px; transition: border-color .3s; }
.urgent__tel:hover { border-bottom-color: var(--amber); }
.urgent__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.urgent__photo { position: absolute; right: var(--pad-x); bottom: 14px; font: 400 .6875rem/1 var(--f-mono); letter-spacing: .06em; color: rgba(236,232,222,.6); }

/* footer */
.foot { position: relative; overflow: hidden; background: var(--ink-900); color: var(--on-ink-2); padding: clamp(56px, 7vw, 96px) var(--pad-x) 40px; font-size: var(--fs-sm); line-height: 1.6; }
.foot::before { content: "§"; position: absolute; right: -2vw; top: -.12em; font: 200 italic clamp(16rem, 38vw, 34rem)/1 var(--f-display); color: rgba(242, 184, 75, .07); pointer-events: none; }
.foot__in { position: relative; max-width: var(--maxw); margin: 0 auto; display: grid; gap: var(--s7) var(--gap); grid-template-columns: minmax(0, 1fr); }
.foot a { color: var(--on-ink); text-decoration-color: rgba(236,232,222,.35); }
.foot a:hover { text-decoration-color: var(--amber); }
.foot .brand__sub { color: var(--on-ink-2); }
.foot h2 { margin-bottom: 14px; font: 500 .6875rem/1.4 var(--f-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--amber); }
.foot ul { display: grid; gap: 2px; }
.foot li a { display: inline-flex; align-items: center; min-height: 44px; }
.foot__reg b { color: var(--on-ink); font-weight: 500; }
.foot__reg p + p { margin-top: 10px; }
.foot__legal { position: relative; max-width: var(--maxw); margin: clamp(40px, 5vw, 72px) auto 0; padding-top: 22px; border-top: 1px solid var(--rule-ink); display: grid; gap: 8px; font: 400 .75rem/1.6 var(--f-mono); color: var(--on-ink-3); }

/* sticky call bar on phones */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--ink-900); border-top: 1px solid var(--ink-600); padding-bottom: env(safe-area-inset-bottom); }
.callbar a, .callbar button { appearance: none; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 8px; background: none; border: 0; border-left: 1px solid var(--ink-600); color: var(--on-ink); font: 500 .875rem/1 var(--f-text); text-decoration: none; cursor: pointer; }
.callbar > :first-child { border-left: 0; background: var(--amber); color: var(--ink-900); }
.callbar svg { width: 16px; height: 16px; }
body.has-callbar { padding-bottom: calc(54px + env(safe-area-inset-bottom, 0px)); }

/* long documents: privacy, consent */
.legal { max-width: 68ch; }
.legal h2 { font: 400 var(--fs-h3)/1.25 var(--f-display); margin: 2.2em 0 .6em; }
.legal h2 .cite { color: var(--text-2); margin-right: .6em; }
.legal p, .legal li { color: var(--ink-800); }
.legal p + p, .legal ul, .legal ol { margin-top: .9em; }
.legal ul li, .legal ol li { position: relative; padding-left: 1.6em; }
.legal ul li::before { content: ""; position: absolute; left: .1em; top: .8em; width: 8px; height: 1px; background: var(--ink-900); }
.legal ol { counter-reset: lg; }
.legal ol li { counter-increment: lg; }
.legal ol li::before { content: counter(lg) "."; position: absolute; left: 0; font: 500 .8125rem/1.9 var(--f-mono); color: var(--text-2); }

/* hero */
.hero { padding-top: clamp(32px, 4.4vw, 64px); border-top: 0; }
.hero__body { min-width: 0; }
.hero__h1 { margin-top: 16px; max-width: 17em; }
.hero__h1 .mark { font-style: italic; }
.hero__lede { margin-top: clamp(28px, 4vw, 56px); }
.hero__lede .t-lede { max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3vw, 40px); }
.hero .sec__margin { margin-top: clamp(28px, 4vw, 56px); }
.hero__ruler { margin-top: clamp(40px, 5vw, 72px); }
.hero__ruler .ruler { margin-top: 22px; }
.hero.sec { padding-bottom: clamp(48px, 6vw, 96px); }
.ruler-k { margin-bottom: 0; }
.sec__no--sub { margin: 0; font: 500 .75rem/1.5 var(--f-mono); letter-spacing: .06em; color: var(--text-2); padding-top: .55em; }
.about { padding-top: clamp(40px, 5vw, 80px); }
.praktiki__list { margin-top: clamp(32px, 4vw, 64px); }
.fig--short img { aspect-ratio: 4 / 3; object-fit: cover; }

/* fee table: first column reads as a label, not as a mono reference */
.fees tbody th { font: 500 .9375rem/1.45 var(--f-text); letter-spacing: 0; white-space: normal; }

/* documents (privacy, consent) */
.sec--doc { padding-block: clamp(32px, 4vw, 64px); }
.sec__title--doc { margin-bottom: clamp(12px, 2vw, 24px); }
.doc-head { padding-bottom: clamp(24px, 3vw, 48px); border-top: 0; }
.doc-head__h1 { margin-top: 14px; font-size: clamp(2rem, 1rem + 3vw, 3.4rem); }
@media (min-width: 1280px) { .sec--doc .sec__title { align-self: start; } .sec--doc .sec__no { font-size: 2.4rem; } }

/* 8. MOTION ---------------------------------------------------------------- */
@keyframes rise { from { opacity: 0; transform: translate3d(0, 22px, 0); } to { opacity: 1; transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.in { animation: rise 1s var(--ease) var(--d, 0s) both; }
.in--fade { animation-name: fade; animation-duration: 1.2s; }
.ruler--draw .ruler__bar { transform-origin: 0 50%; animation: draw 1.3s var(--ease-io) var(--d, .9s) both; }
.ruler--draw .ruler__a > :not(.ruler__bar) { animation: rise .9s var(--ease) calc(var(--d, .9s) + .5s) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .in, .in--fade, .ruler--draw .ruler__bar, .ruler--draw .ruler__a > :not(.ruler__bar) { animation: none !important; }
  .js .mark[data-mark] { background-size: 100% var(--mk-h); transition: none; }
  .js .sec--ink .mark[data-mark]:not(.is-on), .js .urgent .mark[data-mark]:not(.is-on) { color: var(--ink-900); }
  * { transition-duration: .01ms !important; }
}

/* 9. RESPONSIVE (mobile first) --------------------------------------------- */
@media (max-width: 699px) {
  .ruler { flex-direction: column; gap: 22px; }
  .ruler__li { flex: none; padding-right: 0; }
  .ruler__bar { width: calc(var(--w) * 20%); }
  .ruler--draw .ruler__bar { animation-name: draw; }
  .hide-sm { display: none; }
  .sec__no { margin-bottom: 8px; }
  .cd { grid-template-columns: 64px minmax(0, 1fr); padding: 16px 16px 20px; }
  .cd__mono { width: 64px; height: 84px; font-size: 2.25rem; }
  /* tables become stacks */
  .ledger thead, .fees thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ledger, .ledger tbody, .ledger tr, .ledger th, .ledger td { display: block; }
  .ledger tbody tr { padding: 18px 0; border-bottom: 1px solid var(--rule); }
  .ledger tbody th, .ledger tbody td { padding: 0 0 8px; border: 0; white-space: normal; }
  .ledger td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font: 500 .6875rem/1.4 var(--f-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--text-2); }
}

@media (min-width: 700px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .art__a { grid-template-columns: 3.6rem minmax(0, 1fr) 11rem; gap: 6px 20px; }
  .art__ref { grid-column: 2; grid-row: 2; }
  .art__fee { grid-column: 3; grid-row: 1 / span 2; text-align: right; align-self: start; padding-top: 6px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); }
  .facts li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .sec__margin .facts { grid-template-columns: minmax(0, 1fr); }
  .sec__margin .facts li:nth-last-child(2) { border-bottom: 0; }
  .clause { grid-template-columns: 5.5rem minmax(0, 1fr); }
  .steps li { grid-template-columns: 5rem minmax(0, 1fr); }
  .foot__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .callbar { display: none; }
  body.has-callbar { padding-bottom: 0; }
}

/* tablets and small laptops: notes sit beside the text, section number above the title */
@media (min-width: 900px) {
  :root { --top-h: 64px; }
  .sec__in { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .sec__head { display: contents; }
  .sec__no { grid-column: 1 / -1; }
  .sec__title { grid-column: 1 / span 10; }
  .sec__lede { grid-column: 1 / span 9; }
  .sec__main { grid-column: 1 / span 8; }
  .sec__wide, .sec__full { grid-column: 1 / -1; }
  .sec__margin { grid-column: 9 / span 4; margin-top: 0; padding-top: 0; border-top: 0; }
  .sec__margin--top { padding-top: .35em; }
  .hero__body { grid-column: 1 / -1; }
  .statute .clause { grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1fr); }
  .clause__calc { padding-left: var(--gap); border-left: 1px solid var(--rule-ink); }
  .statute__notes .notes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .contact__a { grid-column: 1 / span 6; }
  .contact__b { grid-column: 7 / span 6; }
  .foot__in { grid-template-columns: 1.4fr 1.2fr 1fr 1fr; }
  .art__a { grid-template-columns: 4rem minmax(0, 1fr) 12rem; }
  .ruler__t { font-size: 1.375rem; }
}

/* desktop: the contents rail appears, section numbers hang in the left margin */
@media (min-width: 1280px) {
  :root { --top-h: 64px; --pbar-h: 0px; }
  html { scroll-padding-top: calc(var(--top-h) + 12px); }
  .doc { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); }
  .rail { display: flex; flex-direction: column; position: sticky; top: 0; align-self: start; height: calc(100vh - var(--ribbon-h)); height: calc(100dvh - var(--ribbon-h)); padding: 26px 28px 20px; background: var(--paper); overflow-y: auto; }
  .doc__main { border-left: 1px solid var(--rule); }
  .rail .brand { align-items: flex-start; }
  .toc { margin-top: auto; margin-bottom: auto; padding: 28px 0; }
  .toc__label { margin-bottom: 14px; padding-left: 22px; }
  .toc__list { position: relative; }
  .toc a { position: relative; display: grid; grid-template-columns: 3.3em minmax(0, 1fr); align-items: baseline; min-height: 44px; padding: 10px 0 10px 22px; text-decoration: none; color: var(--slate); transition: color .3s var(--ease), padding .4s var(--ease); }
  .toc a::before { content: ""; position: absolute; left: 0; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; background: var(--paper); border: 1px solid var(--rule-2); transition: background .3s, border-color .3s, transform .4s var(--ease); }
  .toc a:hover { color: var(--text); }
  .toc a[aria-current="true"] { color: var(--text); padding-left: 26px; }
  .toc a[aria-current="true"]::before { background: var(--amber); border-color: var(--amber); transform: scale(1.25); }
  .toc__no { font: 500 .75rem/1 var(--f-mono); letter-spacing: .04em; }
  .toc__t { font: 400 .9375rem/1.25 var(--f-text); }
  .toc__line { position: absolute; left: 4px; top: 22px; bottom: 22px; width: 1px; background: var(--rule); }
  .toc__line b { display: block; width: 100%; height: var(--p, 0%); background: var(--ink-900); }
  .rail__foot { display: grid; gap: 14px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: var(--fs-sm); line-height: 1.45; }
  .rail__tel { display: block; font: 300 1.5rem/1.1 var(--f-display); text-decoration: none; letter-spacing: -.01em; font-variant-numeric: lining-nums tabular-nums; min-height: 44px; padding-top: 6px; }
  .rail__tel:hover { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
  .lang { display: inline-flex; gap: 4px; font: 500 .75rem/1 var(--f-mono); letter-spacing: .08em; }
  .lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; text-decoration: none; border: 1px solid var(--rule-2); color: var(--text-2); }
  .lang a[aria-current="page"] { background: var(--ink-900); color: var(--paper); border-color: var(--ink-900); }
  .lang a:not([aria-current]):hover { border-color: var(--ink-900); color: var(--text); }

  .sec__no { grid-column: 1 / span 2; grid-row: 1; margin: 0; align-self: start; padding-top: .1em; }
  .sec__title { grid-column: 3 / span 8; grid-row: 1; }
  .sec__lede { grid-column: 3 / span 8; }
  .sec__main { grid-column: 3 / span 7; }
  .sec__wide { grid-column: 3 / -1; }
  .sec__margin { grid-column: 10 / span 3; }
  .hero__body { grid-column: 3 / -1; grid-row: 1; }
  .top { gap: 8px; }
  .top .brand, .top .menu, .pbar { display: none; }
  .top__nav { display: flex; align-items: center; gap: 2px; margin-right: auto; }
  .top__nav a { display: inline-flex; align-items: baseline; gap: 6px; min-height: 44px; padding: 0 12px; align-items: center; text-decoration: none; font: 500 .875rem/1 var(--f-text); color: var(--text); position: relative; }
  .top__nav a i { font: 500 .6875rem/1 var(--f-mono); font-style: normal; color: var(--text-2); letter-spacing: .04em; }
  .top__nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s var(--ease); }
  .top__nav a:hover::after, .top__nav a[aria-current="page"]::after { transform: scaleX(1); }
  .top__end { display: flex; align-items: center; gap: 12px; }
  .urgent__in { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .urgent__in > * { grid-column: 3 / -1; }
  .sec__in { column-gap: 24px; }
  .urgent__photo { right: var(--pad-x); }
}

@media (min-width: 1440px) {
  :root { --rail-w: 280px; }
  .sec__in { column-gap: 32px; }
}

/* 10. SUB-PAGES: practices, calendar, team, publications, en ----------------- */
[hidden] { display: none !important; }

/* article number: smaller than the page §, so «§1.1.1» fits the hanging column */
.sec__no--art { font-size: clamp(1.55rem, 1.15rem + 1.5vw, 2.3rem); line-height: 1; margin-bottom: 10px; }
.sec__title--art { font-size: clamp(1.85rem, 1.2rem + 2vw, 2.8rem); margin-bottom: clamp(20px, 3vw, 36px); }
.art-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: var(--s5); }
.art-meta .cite { color: var(--text-2); }
.blk { margin-top: clamp(36px, 4.4vw, 60px); }
.blk > .t-h3 { margin-bottom: var(--s4); }
.blk > .t-small { margin-top: var(--s3); max-width: 62ch; }
.sec__margin--sticky { align-self: start; }
.sec__margin .fig + .fig { margin-top: var(--s5); }
.sec__margin .notes + .fig, .sec__margin .fig + .notes-h { margin-top: var(--s6); }
.toc--dense a { min-height: 38px; padding-top: 7px; padding-bottom: 7px; }

/* segmented control: stage picker, filters. Hidden without JS, the content is all visible then. */
.seg { display: none; flex-wrap: wrap; gap: 8px; margin-top: var(--s3); }
.js .seg { display: flex; }
.seg button { appearance: none; min-height: 44px; padding: 0 16px; border: 1px solid var(--rule-2); border-radius: 0; background: var(--paper); color: var(--text); font: 500 .875rem/1.2 var(--f-text); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.seg button:hover { border-color: var(--ink-900); }
.seg button[aria-pressed="true"] { background: var(--ink-900); border-color: var(--ink-900); color: var(--paper); }
.sec--ink .seg button { background: transparent; color: var(--on-ink); border-color: rgba(236, 232, 222, .4); }
.sec--ink .seg button:hover { border-color: var(--on-ink); }
.sec--ink .seg button[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--ink-900); }
.filter-status { margin-top: var(--s3); min-height: 1.5em; }
.is-dim { opacity: .3; transition: opacity .35s var(--ease); }
.is-dim:hover, .is-dim:focus-within { opacity: 1; }
.art { transition: opacity .35s var(--ease); }
.stagepick { margin-bottom: clamp(24px, 3vw, 40px); }

/* timing list: key column wide enough for «10 раб. дн.» */
.cats--wide li { grid-template-columns: 6.8rem minmax(0, 1fr); }
.cats--wide .cats__k { color: var(--text); }
.cats li b { font-weight: 500; }
.cats .cite { color: var(--text-2); }
.pub__meta { display: block; margin-top: 2px; color: var(--text-2); }
.pub__t { display: block; font: 400 1.0625rem/1.35 var(--f-display); }
.pub__demo { font: 500 .6875rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); border: 1px solid var(--line); padding: 2px 5px 1px; margin-left: 6px; white-space: nowrap; }
.sec--ink .cats li { border-color: var(--rule-ink); }
.sec--ink .cats { border-color: var(--rule-ink); }
.sec--ink .cats__k { color: var(--on-ink-2); }

/* static ruler (no link) and the five-stage ruler */
.ruler--static .ruler__a:hover .ruler__t { text-decoration: none; }
.ruler--five .ruler__t, .ruler--sm .ruler__t { font-size: 1.0625rem; overflow-wrap: break-word; hyphens: auto; }
.ruler--five .ruler__art, .ruler--sm .ruler__art { font-size: .6875rem; overflow-wrap: anywhere; }
.ruler--sm { margin-top: 0; }
@media (max-width: 1279px) {
  .ruler--five, .ruler--sm { flex-direction: column; gap: 22px; }
  .ruler--five .ruler__li, .ruler--sm .ruler__li { flex: none; padding-right: 0; }
  .ruler--five .ruler__bar, .ruler--sm .ruler__bar { width: calc(var(--w) * 20%); }
  .ruler--five .ruler__t, .ruler--sm .ruler__t { font-size: 1.25rem; }
}

/* role / language / publication tables built on .ledger */
.ledger--roles th[scope="row"], .ledger--langs th[scope="row"] { font: 500 .9375rem/1.4 var(--f-text); letter-spacing: 0; white-space: normal; }
.ledger--roles td { font-size: .875rem; line-height: 1.55; }
@media (min-width: 900px) {
  .ledger--roles { table-layout: fixed; }
  .ledger--roles th:nth-child(1) { width: 17%; }
  .ledger--langs { table-layout: fixed; }
  .ledger--langs th:nth-child(1) { width: 36%; }
  .ledger--langs td, .ledger--langs thead th:not(:first-child) { text-align: center; }
}
.yes { display: inline-block; width: 12px; height: 12px; background: var(--amber); border: 1px solid var(--ink-900); vertical-align: -1px; }
.no { color: var(--slate-2); }
@media (max-width: 699px) { .ledger--langs td.no { display: none; } .ledger--langs td { padding-bottom: 4px; } }

/* facts as a row of three */
@media (min-width: 700px) {
  .facts--row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts--row li, .facts--row li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}

/* bars: publications per author */
.bars { border-top: 1px solid var(--ink-900); }
.bars li { display: grid; grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr) 2rem; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: var(--fs-sm); line-height: 1.35; }
.bars__bar { display: block; height: 12px; border-bottom: 1px solid var(--ink-900); background: repeating-linear-gradient(90deg, var(--ink-900) 0 1px, transparent 1px 10%); }
.bars__bar i { display: block; height: 100%; width: calc(var(--v) * 100% / var(--max, 8)); background: var(--ink-900); }
.bars__n { font: 500 .8125rem/1 var(--f-mono); text-align: right; }
@media (min-width: 700px) { .bars li { grid-template-columns: minmax(0, 14rem) minmax(0, 1fr) 2.4rem; } }

/* calendar summary on the ink block */
.dl-sum { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--rule-ink); }
.dl-sum__h { margin-bottom: var(--s3); }
.dl-sum li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 20px; padding: 14px 0; border-bottom: 1px solid var(--rule-ink); }
.dl-sum li:first-child { border-top: 1px solid var(--rule-ink); }
.dl-sum__d { font: 300 1.5rem/1.2 var(--f-display); color: var(--on-ink); font-variant-numeric: lining-nums; }
.dl-sum__t { color: var(--on-ink-2); font-size: var(--fs-sm); line-height: 1.45; }
.dl-sum__n { font: 500 .75rem/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--on-ink-2); }
.dl-sum__n.is-soon { color: var(--amber); }
.dl-sum__n.is-past { color: var(--on-ink-3); }
@media (min-width: 700px) { .dl-sum li { grid-template-columns: 16rem minmax(0, 1fr) 11rem; align-items: baseline; } .dl-sum__n { text-align: right; } }

/* closing contact band on a marble texture */
.sec--marble { background: linear-gradient(rgba(236, 232, 221, .92), rgba(236, 232, 221, .92)), url("img/marble.webp") center / cover; }
.cta__in { display: grid; gap: var(--s5); justify-items: start; }
.cta__t { font: 300 clamp(1.7rem, 1.1rem + 2.2vw, 2.8rem)/1.12 var(--f-display); letter-spacing: -.012em; max-width: 24ch; text-wrap: balance; }
.cta__p { max-width: 58ch; color: var(--text-2); }
.cta__row { display: flex; flex-wrap: wrap; gap: 10px; }

.ledger--law tbody th { white-space: normal; }
.sec--ink .steps, .sec--ink .clauses { border-color: var(--rule-ink); }
.sec--ink .steps li { border-color: var(--rule-ink); }
.sec--ink .steps b { color: var(--on-ink); }
.sec--ink .steps li::before { color: var(--on-ink-2); }
.sec--ink .fig figcaption { color: var(--on-ink-2); }
.sec--ink .fig img { background: var(--ink-800); }

/* fee tables inside the narrower article column */
@media (min-width: 700px) {
  .sec__main .ledger thead th, .sec__main .ledger tbody th, .sec__main .ledger tbody td { padding-right: 16px; }
  .sec__main .ledger__num { white-space: normal; }
}
@media (min-width: 900px) {
  .sec__main .ledger--fees th:nth-child(1) { width: 38%; }
  .sec__main .ledger--fees th:nth-child(2) { width: 25%; }
}

@media (max-width: 699px) { .ledger caption { display: block; width: 100%; } }

/* english pages */
.steps--en li::before { content: "Step " counter(st); }
.hero__h1--en { max-width: 19em; }

@media print {
  .nx-ribbon, .rail, .top, .pbar, .callbar, .urgent { display: none !important; }
  .doc { display: block; }
  .sec--ink { background: none; color: #000; }
}
