/* «Личный капитал» — theme styles (ported 1:1 from design/lc-rus/prototype/assets/site.css; WordPress additions at the end).
   Direction: type-only-statement (tasteskill, seed 1547688755). Type: Libre Franklin / Source Serif 4 (both Cyrillic).
   Palette: blue, red, black with the accent mapped to the brand cobalt. Everything downstream uses the tokens. */

/* Self-hosted fonts (Google Fonts files, cyrillic + latin subsets, variable weight). No third-party font call. */
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("fonts/libre-franklin-normal-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("fonts/libre-franklin-normal-latin.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: "Source Serif 4"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("fonts/source-serif-4-normal-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("fonts/source-serif-4-normal-latin.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: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/source-serif-4-italic-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/source-serif-4-italic-latin.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 {
  --bg: #ffffff;
  --surface: #f2f2f0;
  --ink: #0a0a0a;
  --muted: #474747;
  --off: #767676;
  --accent: #1f4fd8;
  --accent-ink: #ffffff;
  --field-1: #1f4fd8;  --field-1-ink: #ffffff;
  --field-2: #ff3b1f;  --field-2-ink: #0a0a0a;
  --field-3: #0a0a0a;  --field-3-ink: #ffffff;
  --field-4: #0b1a52;  --field-4-ink: #ffffff;

  --font-display: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* five steps: small, body, lead, head, display (display is set per use from the blueprints) */
  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.05rem + 0.75vw, 1.75rem);
  --step-head: clamp(1.75rem, 1.1rem + 2.6vw, 3.5rem);
  --step-row: clamp(1.125rem, 1.02rem + 0.35vw, 1.375rem);

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(6rem, 12vw, 12rem);
  --radius: 0px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
  --stagger-line: 90ms;
}

/* ---------- reset + phone baseline (mobile-native) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.55; font-kerning: normal; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-variant-numeric: lining-nums; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd, table { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; background: var(--surface); }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
a, button, [role="switch"], label { touch-action: manipulation; }
button, [role="switch"], .button { user-select: none; -webkit-user-select: none; }
input, select, textarea { font-size: max(16px, 1em); }
:target { scroll-margin-top: 2rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: #ffffff; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; text-wrap: balance; hyphens: none; letter-spacing: -0.03em; line-height: 0.98; }
p { max-width: 66ch; text-wrap: pretty; }
.nums, .figure, td, .row__date { font-variant-numeric: tabular-nums lining-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nobr { white-space: nowrap; }

.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }

/* ---------- controls ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.4rem; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); font-family: var(--font-display); font-weight: 700; font-size: var(--step-small); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
.button--ink { background: var(--ink); color: #fff; }
.button--paper { background: #fff; color: var(--ink); }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.22em; text-decoration-thickness: 0.08em; transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--ink); color: #fff; }
  .button--ink:hover, .button--paper:hover { background: var(--accent); color: #fff; }
  .link:hover { text-decoration-color: currentColor; }
}

/* ---------- top bar (no bar chrome: wordmark, two links, one action) ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: calc(env(safe-area-inset-top, 0px) + 1.25rem) var(--margin) 1.25rem; font-family: var(--font-display); font-size: var(--step-small); font-weight: 500; position: relative; z-index: 3; }
.wordmark { font-weight: 700; font-size: var(--step-body); letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.topbar__links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.75rem); }
.topbar__links a:not(.button) { text-decoration: none; padding-block: 0.75rem; }
@media (max-width: 47.99em) {
  .topbar__links a:not(.button) { display: none; }
  .topbar .button { min-height: 2.75rem; padding: 0 1rem; }
}

/* =====================================================================
   HOME
   ===================================================================== */

/* ---------- hero: waterline headline ---------- */
.hero { --seam: 54%; --hl: clamp(2.5rem, 8.6vw, 8.5rem); position: relative; min-height: 100svh; min-height: max(100svh, 40rem); background: var(--bg); overflow: clip; }
.hero__field { position: absolute; inset: var(--seam) 0 0 0; background: var(--field-1); }
.hero__hl { position: absolute; z-index: 1; left: 0; right: 0; padding-inline: var(--margin); top: calc(var(--seam) - var(--hl) * 1.35); margin: 0; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: var(--hl); line-height: 0.9; letter-spacing: -0.04em; text-transform: uppercase; text-align: center; }
.hero__hl .line { display: block; overflow: clip; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__hl [data-line] { display: block; position: relative; white-space: nowrap; }
/* below the waterline the same letters turn white on the blue: a copy of the line, clipped to its lower half */
.hero__hl .is-wet::after { content: attr(data-text); position: absolute; inset: 0; padding-inline: inherit; background: var(--field-1); color: var(--field-1-ink); clip-path: inset(50% 0 0 0); }
.hero__lead { position: absolute; z-index: 1; left: var(--margin); right: var(--margin); top: calc(var(--seam) + var(--hl) * 0.45 + 2.25rem); margin-inline: auto; max-width: 44ch; color: var(--field-1-ink); font-size: var(--step-lead); line-height: 1.3; text-align: center; }
.hero__lead strong { font-weight: 600; }
.hero__rubrics { position: absolute; z-index: 1; left: var(--margin); right: var(--margin); bottom: calc(env(safe-area-inset-bottom, 0px) + 1.75rem); display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.75rem; color: #fff; font-family: var(--font-display); font-weight: 500; font-size: var(--step-small); }
.hero__rubrics a { text-decoration: none; padding-block: 0.5rem; }
@media (max-width: 47.99em) {
  .hero { --seam: 46%; --hl: 9vw; min-height: max(100svh, 36rem); }
  .hero__hl { text-align: left; }
  .hero__lead { text-align: left; margin-inline: 0; font-size: 1.125rem; top: calc(var(--seam) + var(--hl) * 0.45 + 1.75rem); }
  .hero__rubrics { justify-content: flex-start; gap: 0 1.25rem; }
}

/* ---------- picture band (relief) ---------- */
.band { position: relative; height: clamp(22rem, 62vh, 44rem); overflow: clip; background: var(--surface); }
.band img { position: absolute; left: 0; top: -14%; width: 100%; height: 128%; object-fit: cover; object-position: 50% 62%; filter: grayscale(1) contrast(1.06); }
.band figcaption { position: absolute; left: var(--margin); bottom: 1rem; max-width: 46ch; padding: 0.4rem 0.6rem; background: rgba(0,0,0,.5); color: #fff; font-family: var(--font-display); font-size: var(--step-small); font-weight: 500; line-height: 1.35; }

/* ---------- stats: one figure owns the screen ---------- */
.stats { background: var(--field-1); color: var(--field-1-ink); min-height: 92svh; padding: clamp(4.5rem, 9vw, 8rem) var(--margin) clamp(3rem, 5vw, 4.5rem); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto auto; }
.stats h2 { font-size: var(--step-head); max-width: 16ch; }
.stats__figure { align-self: end; margin-top: clamp(4rem, 18vh, 14rem); font-family: var(--font-display); font-weight: 700; font-size: clamp(4.5rem, 16vw, 16rem); line-height: 0.8; letter-spacing: -0.055em; white-space: nowrap; }
.stats__figure sup { font-size: 0.33em; vertical-align: top; position: relative; top: 0.06em; margin-left: 0.08em; letter-spacing: 0; }
.stats__under { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.stats__caption { grid-column: 1 / span 4; font-size: var(--step-body); max-width: 34ch; }
.limits { grid-column: 6 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.limits li { display: grid; gap: 0.35rem; align-content: start; }
.limits b { font-family: var(--font-display); font-weight: 700; font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.limits span { font-size: var(--step-small); line-height: 1.4; }
.stats__source { grid-column: 1 / -1; margin-top: 2rem; font-family: var(--font-display); font-size: var(--step-small); font-weight: 500; }
@media (max-width: 63.99em) {
  .stats__caption { grid-column: 1 / -1; }
  .limits { grid-column: 1 / -1; margin-top: 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.75rem; }
}
@media (max-width: 47.99em) {
  .stats { min-height: 80svh; }
  .stats h2 { font-size: 1.75rem; }
  .stats__figure { font-size: 15.5vw; margin-top: 3rem; }
}

/* ---------- calculator: sentences with switches ---------- */
.calc { padding-top: var(--section); }
.calc__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-inline: var(--margin); align-items: end; row-gap: 1.25rem; }
.calc__head h2 { grid-column: 1 / span 7; font-size: var(--step-head); }
.calc__head p { grid-column: 8 / -1; font-size: var(--step-body); }
.income { margin-top: clamp(2.5rem, 5vw, 4rem); padding: 1.25rem var(--margin); background: var(--surface); display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 2rem; }
.income label { font-family: var(--font-display); font-weight: 700; font-size: var(--step-lead); letter-spacing: -0.02em; }
.income__note { font-size: var(--step-small); color: var(--muted); flex: 1 1 18rem; max-width: 52ch; }

.money { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.4rem; min-width: 0; max-width: 100%; }
.money input { width: 11ch; min-width: 7ch; max-width: 100%; field-sizing: content; min-height: 3rem; padding: 0.35rem 0.6rem; border: 0; border-radius: 0; background: #fff; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: max(16px, 1.25rem); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; text-align: right; }
.money span { font-family: var(--font-display); font-weight: 500; font-size: var(--step-small); min-width: 0; }
.money input[aria-invalid="true"] { outline: 3px solid var(--field-2); outline-offset: 0; }
.sw[data-tone="2"] .money input[aria-invalid="true"] { outline-color: var(--ink); }
.money--wide input { width: 12ch; }

.calc__form { margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.bands { margin-top: 0; }
.sw { --sw-bg: var(--field-1); --sw-ink: var(--field-1-ink); position: relative; min-height: 20vh; min-height: max(20vh, 9rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; align-content: center; padding: 1.5rem var(--margin); background: var(--bg); color: var(--off); transition: background-color 320ms ease, color 320ms ease; }
.sw:nth-child(even) { background: var(--surface); }
.sw[data-tone="2"] { --sw-bg: var(--field-2); --sw-ink: var(--field-2-ink); }
.sw[data-tone="3"] { --sw-bg: var(--field-3); --sw-ink: var(--field-3-ink); }
.sw[data-tone="4"] { --sw-bg: var(--field-4); --sw-ink: var(--field-4-ink); }
.sw.is-on { background: var(--sw-bg); color: var(--sw-ink); }
.sw--income, .sw--income.is-on { background: var(--surface); color: var(--ink); }
.sw--income .sw__inner { padding-top: 1rem; }
.sw--income input { background: #fff; }
.sw__text { grid-column: 1 / span 10; min-width: 0; }
.sw__sentence { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.375rem, 0.95rem + 1.45vw, 2.375rem); letter-spacing: -0.035em; line-height: 1.02; max-width: none; }
.sw__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 360ms var(--ease-out); }
.sw.is-on .sw__more { grid-template-rows: 1fr; }
.sw__more > div { overflow: hidden; min-height: 0; }
.sw__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; padding-top: 1rem; }
.sw__inner p { font-size: var(--step-body); max-width: 52ch; flex: 1 1 22rem; }
.sw__inner .money input { background: rgba(255,255,255,.94); }
.sw__got { font-family: var(--font-display); font-weight: 700; font-size: var(--step-lead); letter-spacing: -0.02em; white-space: nowrap; }
.sw__ctl { grid-column: 11 / -1; justify-self: end; align-self: center; }
html:not(.js) .sw__more { grid-template-rows: 1fr; }

/* the switch itself is a real control: data-ui keeps its own conventions */
[data-ui].toggle { --w: 4.6rem; --h: 2.5rem; position: relative; width: var(--w); height: var(--h); border-radius: 999px; background: #c9c9c6; flex-shrink: 0; transition: background-color 220ms ease, transform var(--t-press) var(--ease-out); }
[data-ui].toggle::before { content: ""; position: absolute; inset: -0.5rem; }
[data-ui].toggle::after { content: ""; position: absolute; top: 0.25rem; left: 0.25rem; width: calc(var(--h) - 0.5rem); height: calc(var(--h) - 0.5rem); border-radius: 50%; background: #fff; transition: transform 260ms var(--ease-out); }
[data-ui].toggle[aria-checked="true"] { background: var(--ink); }
.sw[data-tone="3"] [data-ui].toggle[aria-checked="true"], .sw[data-tone="4"] [data-ui].toggle[aria-checked="true"], .sw[data-tone="1"] [data-ui].toggle[aria-checked="true"] { background: #fff; }
.sw[data-tone="3"] [data-ui].toggle[aria-checked="true"]::after, .sw[data-tone="4"] [data-ui].toggle[aria-checked="true"]::after, .sw[data-tone="1"] [data-ui].toggle[aria-checked="true"]::after { background: var(--sw-bg); }
[data-ui].toggle[aria-checked="true"]::after { transform: translateX(calc(var(--w) - var(--h))); }
[data-ui].toggle:active { transform: scale(0.95); }

/* the result: abacus beside the figure */
.result { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); background: var(--field-3); color: var(--field-3-ink); }
.result__pic { grid-column: 1 / span 5; position: relative; min-height: 30rem; overflow: clip; background: #1a1a1a; }
.result__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; filter: grayscale(1) contrast(1.06); }
.result__body { grid-column: 6 / -1; padding: clamp(2.5rem, 5vw, 4.5rem) var(--margin) clamp(2.5rem, 5vw, 4.5rem) 0; display: grid; align-content: center; gap: 1.25rem; min-width: 0; }
.result__body h3 { font-size: var(--step-lead); letter-spacing: -0.02em; }
.result__body { container-type: inline-size; }
.result__sum { font-family: var(--font-display); font-weight: 700; font-size: min(clamp(2.75rem, 7.6vw, 7.5rem), calc(100cqi / (var(--chars, 9) * 0.6))); line-height: 0.86; letter-spacing: -0.05em; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.result__lines { display: grid; gap: 0.35rem; font-size: var(--step-body); max-width: 56ch; }
.result__lines p { max-width: none; }
.result__note { font-size: var(--step-small); color: #cfcfcf; max-width: 60ch; }
@media (max-width: 63.99em) {
  .calc__head h2, .calc__head p { grid-column: 1 / -1; }
  .result__pic { grid-column: 1 / -1; min-height: 16rem; }
  .result__body { grid-column: 1 / -1; padding: 2.5rem var(--margin); }
}
@media (max-width: 47.99em) {
  .sw { min-height: 9rem; align-items: start; padding-block: 1.5rem; }
  .sw__text { grid-column: 1 / span 9; }
  .sw__ctl { grid-column: 10 / -1; align-self: start; margin-top: 0.15rem; }
  .sw__sentence { font-size: 1.25rem; line-height: 1.12; }
  [data-ui].toggle { --w: 3.75rem; --h: 2.125rem; }
  .sw__inner { gap: 0.75rem 1rem; }
  .sw__inner p { flex-basis: 100%; font-size: 1rem; }
  .income label { font-size: 1.25rem; }
}

/* ---------- «Личный капитал семьи»: cushion calculator + the rubric's latest (parts/family.php) ---------- */
.fam { margin-top: var(--section); padding: clamp(4.5rem, 8vw, 7rem) var(--margin); background: var(--surface); }
.fam__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 1.25rem; align-items: end; }
.fam__head h2 { grid-column: 1 / span 6; font-size: var(--step-head); max-width: 14ch; }
.fam__head p { grid-column: 7 / -1; font-size: var(--step-body); max-width: 52ch; }
.fam__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 3rem; margin-top: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.cushion { grid-column: 1 / span 5; background: var(--field-4); color: var(--field-4-ink); padding: clamp(1.75rem, 3vw, 2.75rem); display: grid; gap: 1.25rem; container-type: inline-size; }
.cushion h3 { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.1; }
.cushion__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; max-width: none; }
.cushion__row label, .cushion legend { font-family: var(--font-display); font-weight: 600; font-size: var(--step-body); }
.cushion .money input { background: #fff; }
.cushion__months { border: 0; padding: 0; margin: 0; display: grid; gap: 0.6rem; min-width: 0; }
.cushion legend { padding: 0; margin-bottom: 0.6rem; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.25rem; }
.seg label { position: relative; display: block; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 0.5rem; background: rgba(255,255,255,.12); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: var(--step-small); white-space: nowrap; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.seg input:checked + span { background: #fff; color: var(--field-4); }
.seg input:focus-visible + span { outline: 3px solid #fff; outline-offset: 2px; }
.seg label:active span { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .seg input:not(:checked):hover + span { background: rgba(255,255,255,.22); } }
.cushion__out { display: grid; gap: 0.5rem; padding-top: 0.5rem; }
.cushion__sum { font-family: var(--font-display); font-weight: 700; font-size: min(clamp(2.5rem, 5.2vw, 4.75rem), 15cqi); line-height: 0.9; letter-spacing: -0.045em; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.cushion__out p:not(.cushion__sum) { font-size: var(--step-body); max-width: 44ch; }
.cushion__note { font-size: var(--step-small); color: #dfe4f5; max-width: 52ch; }
.cushion__note a { color: #fff; }
.fam__list { grid-column: 7 / -1; min-width: 0; }
.fam__rubric { font-family: var(--font-display); font-weight: 700; font-size: var(--step-lead); letter-spacing: -0.02em; color: var(--accent); padding-bottom: 0.5rem; }
.fam__rubric a { text-decoration: none; }
.fam__rows { display: grid; }
.frow { display: grid; gap: 0.35rem; padding-block: 1.1rem; text-decoration: none; }
.frow__title { font-family: var(--font-display); font-weight: 600; font-size: var(--step-row); letter-spacing: -0.02em; line-height: 1.2; text-wrap: pretty; overflow-wrap: anywhere; transition: color var(--t-hover) ease; }
.frow__ex { font-size: var(--step-body); color: var(--ink); max-width: 60ch; }
.frow__meta { font-family: var(--font-display); font-size: var(--step-small); color: var(--muted); }
@media (hover: hover) and (pointer: fine) { a.frow:hover .frow__title { color: var(--accent); } }
.fam .rubric__all { margin-top: 1rem; }
@media (max-width: 63.99em) {
  .fam__head h2, .fam__head p { grid-column: 1 / -1; }
  .cushion, .fam__list { grid-column: 1 / -1; }
}
/* tablet: the cushion spans the width — questions on the left, the answer on the right */
@media (min-width: 48em) and (max-width: 63.99em) {
  .cushion { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--gutter); align-items: start; }
  .cushion > h3 { grid-column: 1; grid-row: 1; }
  .cushion__row--spend { grid-column: 1; grid-row: 2; }
  .cushion__months { grid-column: 1; grid-row: 3; }
  .cushion__row--save { grid-column: 1; grid-row: 4; }
  .cushion__out { grid-column: 2; grid-row: 1 / span 3; align-self: end; padding-top: 0; }
  .cushion__note { grid-column: 2; grid-row: 4 / span 2; }
}
@media (max-width: 47.99em) {
  .fam { padding-block: 4rem; }
  .cushion { margin-inline: calc(var(--margin) * -1); }
  .cushion__sum { font-size: 15cqi; }
  .frow__title { font-size: 1.125rem; }
  .frow__ex { font-size: 1.0625rem; }
}

/* the mu-plugin's «Настройки cookie» reopener: a line at the very end of the page, not a pill floating over headings */
#prc-l { position: static !important; width: 100% !important; margin: 0 !important; padding: 1rem var(--margin) calc(env(safe-area-inset-bottom, 0px) + 1rem) !important; border-radius: 0 !important; background: var(--ink) !important; color: #d9d9d9 !important; opacity: 1 !important; text-align: left !important; font: 500 var(--step-small) / 1.4 var(--font-display) !important; text-decoration: underline; text-underline-offset: 0.22em; }
#prc-l:hover { color: #fff !important; }

/* ---------- list: line-up at one type size ---------- */
.lineup { padding: var(--section) var(--margin) 0; }
.lineup__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; }
.lineup__head h2 { font-size: var(--step-head); }
.lineup__head p { font-size: var(--step-body); max-width: 44ch; }
.rubric { margin-top: clamp(3rem, 5vw, 4.5rem); }
.rubric__name { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-block: 0.6rem 1rem; background: var(--bg); color: var(--accent); font-family: var(--font-display); font-weight: 700; font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.15; }
.rubric__name small { font-size: var(--step-small); font-weight: 500; color: var(--ink); letter-spacing: 0; text-align: right; }
.rows { display: grid; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) 11rem 7rem; column-gap: var(--gutter); align-items: baseline; padding-block: 0.45em; font-family: var(--font-display); font-weight: 500; font-size: var(--step-row); letter-spacing: -0.02em; line-height: 1.2; text-decoration: none; transition: color var(--t-hover) ease; }
.row__title { min-width: 0; overflow-wrap: anywhere; text-wrap: pretty; }
.row__kind, .row__date { color: var(--muted); font-size: var(--step-body); letter-spacing: 0; }
.row__date { text-align: right; white-space: nowrap; }
.row__kind { overflow-wrap: anywhere; text-wrap: balance; }
.row--soon .row__title { color: var(--muted); }
.rubric__empty { font-size: var(--step-body); color: var(--muted); padding-block: 0.4rem; }
@media (hover: hover) and (pointer: fine) {
  a.row:hover { color: var(--accent); }
}
@media (max-width: 47.99em) {
  .row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0.15rem; padding-block: 0.6rem; font-size: 1.125rem; }
  .row__title { grid-column: 1 / -1; }
  .row__kind, .row__date { font-size: 0.9375rem; }
  .rubric__name { font-size: 1.25rem; }
}

/* ---------- about: two columns, highlighted words ---------- */
.about { margin-top: var(--section); background: var(--surface); padding: clamp(5rem, 9vw, 8rem) var(--margin); }
.about h2 { font-size: var(--step-head); margin-bottom: clamp(2rem, 4vw, 3rem); }
.about__text { columns: 2; column-gap: var(--gutter); font-size: var(--step-lead); line-height: 1.22; color: var(--ink); text-align: justify; hyphens: auto; max-width: none; }
.about__text p { max-width: none; }
.about__text p + p { margin-top: 0.7em; }
.about__text b { color: var(--ink); font-weight: 600; }
.hl { padding: 0 0.1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; color: var(--ink); }
.hl--1 { background: #c9d6fb; }
.hl--2 { background: #ffc9bf; }
.hl--3 { background: #dededb; }
.hl--go { background: var(--accent); color: #fff; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .hl--go:hover { background: var(--ink); } }
@media (max-width: 47.99em) {
  .about__text { columns: 1; font-size: 1.25rem; line-height: 1.3; text-align: left; hyphens: manual; }
  .hl--go { display: inline-block; margin-top: 0.75rem; padding: 0.5rem 0.6rem; }
}

/* ---------- faq: answers as reading text ---------- */
.faq { padding: var(--section) var(--margin); }
.faq__side { grid-column: 1 / span 3; display: grid; align-content: start; gap: 1.5rem; }
.faq__side h2 { font-size: var(--step-head); }
.faq__side figure { margin-top: 0.5rem; }
.faq__side img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 45%; filter: grayscale(1) contrast(1.06); }
.faq__side figcaption, .caption { margin-top: 0.6rem; font-family: var(--font-display); font-size: var(--step-small); font-weight: 500; color: var(--muted); line-height: 1.35; }
.faq__text { grid-column: 5 / -1; columns: 2; column-gap: 3.5rem; font-size: var(--step-body); line-height: 1.55; }
.faq__text p { break-inside: avoid; max-width: 38ch; margin-bottom: 1.25rem; }
.faq__text b { font-weight: 600; }
@media (max-width: 63.99em) {
  .faq__side { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; align-items: end; }
  .faq__text { grid-column: 1 / -1; margin-top: 2.5rem; }
}
@media (max-width: 47.99em) {
  .faq__side { grid-template-columns: 1fr; }
  .faq__text { columns: 1; }
  .faq__text p { max-width: none; }
}

/* ---------- footer: invitation over a cropped name ---------- */
.foot { position: relative; background: var(--field-3); color: var(--field-3-ink); min-height: 100svh; padding: clamp(4rem, 8vw, 7rem) var(--margin) 0; overflow: hidden; display: flex; flex-direction: column; }
.foot__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2.5rem; align-items: start; }
.foot__invite { grid-column: 1 / span 6; display: grid; gap: 1.75rem; justify-items: start; }
.foot__invite h2 { font-size: var(--step-head); letter-spacing: -0.04em; }
.foot__invite p { font-size: var(--step-body); max-width: 40ch; color: #e6e6e6; }
.foot__coins { grid-column: 7 / span 3; }
.foot__coins img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #000; filter: grayscale(1) contrast(1.05); }
.foot__links { grid-column: 10 / -1; display: grid; gap: 0.15rem; font-family: var(--font-display); font-weight: 500; font-size: var(--step-body); }
.foot__links a { text-decoration: none; padding-block: 0.45rem; }
.foot__credits { margin-top: auto; padding-top: 4rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2rem; font-size: var(--step-small); line-height: 1.45; color: #d9d9d9; }
.foot__credits p { max-width: 110ch; }
.foot__credits a { color: #fff; }
.foot__name { margin: 1rem 0 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(4.25rem, 15.5vw, 15.5rem); line-height: 0.8; letter-spacing: -0.06em; white-space: nowrap; transform: translateY(24%); margin-left: -0.04em; color: #fff; }
@media (max-width: 63.99em) {
  .foot__invite { grid-column: 1 / -1; }
  .foot__coins { grid-column: 1 / span 5; }
  .foot__links { grid-column: 7 / -1; }
  .foot__credits { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 47.99em) {
  .foot { min-height: auto; }
  .foot__invite .button { width: 100%; }
  .foot__coins { grid-column: 1 / span 6; }
  .foot__links { grid-column: 7 / -1; font-size: 0.9375rem; }
  .foot__credits { grid-template-columns: 1fr; padding-top: 3rem; }
  .foot__name { font-size: 20vw; }
}

/* =====================================================================
   ARTICLE
   ===================================================================== */
.a-head { padding: clamp(2.5rem, 6vw, 5rem) var(--margin) 0; row-gap: 2rem; align-items: end; }
.a-head__text { grid-column: 1 / span 7; display: grid; gap: clamp(1.25rem, 2.4vw, 2rem); align-content: end; }
.a-head h1 { font-size: clamp(1.375rem, 0.5rem + 2.6vw, 2.75rem); line-height: 1.02; letter-spacing: -0.035em; max-width: 30ch; }
.a-lead { font-size: var(--step-lead); line-height: 1.38; max-width: 40ch; }
.a-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-family: var(--font-display); font-size: var(--step-small); font-weight: 500; }
.a-meta a { color: var(--accent); text-decoration: none; }
.a-head__pic { grid-column: 8 / -1; }
.a-head__pic img { width: 100%; height: clamp(24rem, calc(100svh - 13rem), 44rem); object-fit: cover; object-position: 50% 45%; filter: grayscale(1) contrast(1.06); }
@media (max-width: 63.99em) {
  .a-head__text, .a-head__pic { grid-column: 1 / -1; }
  .a-head__pic img { height: auto; aspect-ratio: 4 / 3; }
}

.keyfigs { margin-top: clamp(4rem, 8vw, 7rem); background: var(--field-1); color: var(--field-1-ink); padding: clamp(3.5rem, 7vw, 6rem) var(--margin); row-gap: 3rem; }
.keyfigs h2 { grid-column: 1 / -1; font-size: var(--step-lead); letter-spacing: -0.02em; }
.keyfig { grid-column: span 6; display: grid; gap: 1rem; align-content: start; }
.keyfig b { font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 10.6vw, 10.5rem); line-height: 0.82; letter-spacing: -0.055em; white-space: nowrap; }
.keyfig p { font-size: var(--step-body); max-width: 36ch; }
@media (max-width: 47.99em) { .keyfig { grid-column: 1 / -1; } .keyfig b { font-size: 24vw; } }

.a-body { padding: clamp(4rem, 8vw, 7rem) var(--margin) 0; }
.toc { grid-column: 1 / span 3; position: sticky; top: 1.5rem; align-self: start; display: grid; gap: 0.9rem; }
.toc h2 { font-size: var(--step-small); letter-spacing: 0; }
.toc ol { display: grid; gap: 0.6rem; font-family: var(--font-display); font-size: var(--step-small); font-weight: 500; line-height: 1.3; padding-left: 1.1rem; }
.toc a { text-decoration: none; }
.toc a[aria-current="true"] { color: var(--accent); }
.prose { grid-column: 4 / span 7; min-width: 0; font-size: var(--step-body); line-height: 1.62; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--step-lead); line-height: 1.1; margin-top: 2.6em; scroll-margin-top: 1.5rem; }
.prose h3 { font-size: var(--step-body); letter-spacing: -0.015em; line-height: 1.25; margin-top: 2em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--accent); }
.prose figure { margin-top: 2.4em; margin-bottom: 0.6em; }
.prose figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: grayscale(1) contrast(1.06); }
.prose .wide { margin-inline: 0; }
.aside-box { background: var(--surface); padding: 1.4rem 1.5rem; }
.aside-box p { max-width: none; }

.tbl-wrap { overflow-x: auto; overscroll-behavior-x: contain; margin-inline: calc(var(--margin) * -1); padding-inline: var(--margin); }
table.tbl { width: 100%; border-collapse: collapse; font-family: var(--font-display); font-size: var(--step-small); line-height: 1.4; min-width: 34rem; }
.tbl caption { text-align: left; font-family: var(--font-display); font-weight: 700; font-size: var(--step-body); letter-spacing: -0.01em; padding-bottom: 0.8rem; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 0.7rem 1rem 0.7rem 0; border-bottom: 1px solid #d6d6d2; }
.tbl th { font-weight: 700; border-bottom-color: var(--ink); }
.tbl td:first-child { font-weight: 700; }

.runin p { max-width: none; }
.runin p + p { margin-top: 1em; }
.runin b { font-weight: 600; }

.sources { font-size: var(--step-small); font-family: var(--font-display); line-height: 1.45; }
.sources ol { padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.byline { font-family: var(--font-display); font-size: var(--step-small); font-weight: 500; }

.more { padding: var(--section) var(--margin); }
.more h2 { font-size: var(--step-head); margin-bottom: clamp(2rem, 4vw, 3rem); }
.more__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.more__item { display: grid; gap: 0.9rem; align-content: start; text-decoration: none; }
.more__item:nth-child(2) { margin-top: clamp(2rem, 6vw, 5rem); }
.more__item:nth-child(3) { margin-top: clamp(1rem, 3vw, 2.5rem); }
.more__pic { overflow: clip; background: var(--surface); }
.more__item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.06); transition: transform 600ms var(--ease-soft); }
.more__item b { font-family: var(--font-display); font-weight: 700; font-size: var(--step-body); letter-spacing: -0.015em; line-height: 1.25; max-width: 30ch; }
.more__item span { font-family: var(--font-display); font-size: var(--step-small); font-weight: 500; color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .more__item:hover img { transform: scale(1.04); }
  .more__item:hover b { color: var(--accent); }
}
@media (max-width: 63.99em) {
  .toc { display: none; }
  .prose { grid-column: 1 / -1; }
}
@media (max-width: 47.99em) {
  .more__list { grid-template-columns: 1fr; gap: 2.5rem; }
  .more__item:nth-child(n) { margin-top: 0; }
  .more__item img { aspect-ratio: 16 / 10; }
}

/* =====================================================================
   MOTION (step 9) — transform and opacity only; content visible without JS
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js .hero [data-line] { transform: translateY(105%); animation: lc-line 950ms var(--ease-expo) forwards; animation-delay: calc(120ms + var(--i, 0) * 110ms); }
  .js .hero [data-load] { opacity: 0; transform: translateY(14px); animation: lc-rise 600ms var(--ease-out) forwards; animation-delay: var(--d, 520ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js [data-open] { clip-path: inset(0 0 100% 0); transition: clip-path 1200ms var(--ease-in-out); }
  .js [data-open] img { transform: scale(1.1); transition: transform 1500ms var(--ease-soft); }
  .js [data-open].is-in { clip-path: inset(0); }
  .js [data-open].is-in img { transform: none; }
  .js .row[data-reveal] { transform: translateY(14px); transition-delay: calc(var(--i, 0) * 45ms); }
  /* one moving picture: the street drifts with the scroll, locked to the scrollbar */
  @supports (animation-timeline: view()) {
    .band img { animation: lc-drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    .foot__name { animation: lc-name linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  }
  .result__sum.is-tick, .cushion__sum.is-tick { animation: lc-tick 420ms var(--ease-out); }
}
@keyframes lc-line { to { transform: none; } }
@keyframes lc-rise { to { opacity: 1; transform: none; } }
@keyframes lc-drift { from { transform: translateY(-4%); } to { transform: translateY(4%); } }
@keyframes lc-name { from { transform: translateY(60%); } to { transform: translateY(24%); } }
@keyframes lc-tick { from { opacity: 0.35; transform: translateY(0.08em); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .sw, .sw__more, [data-ui].toggle::after { transition: none; }
}

/* collapsed bands: their inputs are neither seen nor reachable by Tab until switched on */
.js .sw:not(.is-on) .sw__more > div { visibility: hidden; transition: visibility 0s linear 360ms; }
.js .sw.is-on .sw__more > div { visibility: visible; transition: visibility 0s; }

/* the reference table becomes stacked cards of label + value on a phone: no sideways scroll */
@media (max-width: 47.99em) {
  table.tbl { min-width: 0; }
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tbl tbody, .tbl tr, .tbl td { display: block; }
  .tbl tr { padding-block: 0.8rem; border-bottom: 1px solid #d6d6d2; }
  .tbl td { border: 0; padding: 0.15rem 0; }
  .tbl td:first-child { font-size: var(--step-body); padding-bottom: 0.35rem; }
  .tbl td:not(:first-child)::before { content: attr(data-label) ": "; color: var(--muted); }
  .tbl-wrap { overflow: visible; margin-inline: 0; padding-inline: 0; }
}

/* =====================================================================
   WORDPRESS ADDITIONS — live-site pieces the prototype did not have
   ===================================================================== */
.skip { position: absolute; left: var(--margin); top: -4rem; z-index: 100; padding: 0.75rem 1rem; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: var(--step-small); text-decoration: none; }
.skip:focus { top: 0.5rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.topbar__links a[aria-current] , .wordmark[aria-current] { text-decoration: none; }

/* home: rubric heading links to its archive; the capped list ends in a link */
.rubric__name a { color: inherit; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .rubric__name a:hover { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 0.06em; } }
.rubric__all { margin-top: 0.75rem; font-family: var(--font-display); font-weight: 700; font-size: var(--step-body); }
.more-link { color: var(--accent); text-decoration: none; display: inline-block; padding-block: 0.5rem; }
@media (hover: hover) and (pointer: fine) { .more-link:hover { text-decoration: underline; text-underline-offset: 0.2em; } }
@media (max-width: 47.99em) { .rubric__name { flex-wrap: wrap; } .rubric__name small { text-align: left; } }

/* footer: editorial pages row, mail link */
.foot__invite p a { color: #fff; }
.foot__pages { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 0 1.5rem; font-family: var(--font-display); font-weight: 500; font-size: var(--step-small); }
.foot__pages a { text-decoration: none; padding-block: 0.5rem; }
.foot__credits p:last-child a { margin-left: 0.6rem; }

/* article: header without reveal (LCP), notoc layout, key figures that do not fit a short pair */
.a-meta time, .a-meta span { white-space: nowrap; }
.keyfig--long b { font-size: clamp(2.5rem, 6.4vw, 6.5rem); white-space: normal; }
.keyfigs--3 .keyfig { grid-column: span 4; }
@media (max-width: 63.99em) { .keyfigs--3 .keyfig { grid-column: 1 / -1; } }
@media (max-width: 47.99em) { .keyfig--long b { font-size: 13vw; } }
/* a figure that is really a phrase («500–1500 рублей в неделю») stays within two lines */
.keyfig--text b { font-size: clamp(2rem, 3.9vw, 4rem); line-height: 0.95; letter-spacing: -0.04em; }
@media (max-width: 47.99em) { .keyfig--text b { font-size: 8.5vw; } }
.a-body--notoc .prose { grid-column: 3 / span 8; }
@media (max-width: 63.99em) { .a-body--notoc .prose { grid-column: 1 / -1; } }
.prose a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 0.06em; }
.prose h4 { font-family: var(--font-display); font-weight: 700; font-size: var(--step-body); }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: 1.2rem; font-style: italic; }
.prose strong, .prose b { font-weight: 600; }
.prose img { max-width: 100%; height: auto; }

/* the content pipeline's own blocks */
.prose .pr-updated { font-family: var(--font-display); font-size: var(--step-small) !important; font-weight: 500; opacity: 1 !important; color: var(--muted); margin: 0 0 1.4em !important; }
.prose figure.pr-data { margin-top: 2em; }
.prose figure.pr-data figcaption { font-family: var(--font-display); font-weight: 700; font-size: var(--step-body); letter-spacing: -0.01em; line-height: 1.3; padding-bottom: 0.8rem; max-width: 60ch; }
.prose ul.pr-stats { list-style: none; padding: 0; display: grid; gap: 1rem; }
.prose ul.pr-stats b { display: block; font-family: var(--font-display); font-weight: 700; font-size: var(--step-lead); letter-spacing: -0.02em; }
.prose .runin { margin-top: 0.7em; }
.prose .sources { margin-top: 3em; }
.prose .sources h2 { font-size: var(--step-body); margin-top: 0; letter-spacing: -0.01em; }
.prose .sources ul, .prose .sources ol { padding-left: 1.2rem; display: grid; gap: 0.4rem; margin-top: 0.8rem; }
.prose .sources li + li { margin-top: 0; }

/* mu-plugin chrome, restyled to the house (its inline styles are neutral defaults) */
.prose .pressroom-reads { font-family: var(--font-display); color: var(--muted) !important; }
.prose .pr-editorial { border: 0 !important; border-radius: 0 !important; background: var(--surface) !important; padding: 1.25rem 1.5rem !important; font-family: var(--font-display); font-size: var(--step-small) !important; margin-top: 2.5rem !important; }
.prose .pr-editorial__label { color: var(--muted) !important; letter-spacing: 0.06em !important; }
.prose .pr-editorial__name { font-size: var(--step-body); color: var(--ink) !important; }
.prose .pr-editorial__note { color: var(--muted) !important; max-width: none; }
.prose .pr-editorial a { color: var(--accent); }
.prose .pr-pillar { border-left-color: var(--accent) !important; background: var(--surface) !important; font-family: var(--font-display); font-size: var(--step-small); }
.prose .pr-deep { border-top: 0 !important; padding-top: 0 !important; margin-top: 3.5rem !important; }
.prose .pr-deep-h { font-family: var(--font-display); font-size: var(--step-body) !important; letter-spacing: -0.01em; }
.prose .pr-deep-grid { gap: var(--gutter) !important; }
.prose .pr-deep-card { border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; transform: none !important; color: var(--ink) !important; text-decoration: none; }
.prose .pr-deep-thumb { filter: grayscale(1) contrast(1.06); }
.prose .pr-deep-title { padding: 0.6rem 0 0 !important; font-family: var(--font-display); font-weight: 700 !important; font-size: var(--step-small) !important; letter-spacing: -0.01em; }
@media (hover: hover) and (pointer: fine) { .prose .pr-deep-card:hover .pr-deep-title { color: var(--accent); } }
.pressroom-reads-card { font-family: var(--font-display); }

/* static pages (about, editorial policy…) */
.p-head { padding: clamp(2.5rem, 6vw, 5rem) var(--margin) 0; display: grid; gap: 1.25rem; }
.p-head h1 { font-size: var(--step-head); max-width: 22ch; }
.p-body { padding: clamp(2.5rem, 5vw, 4rem) var(--margin) var(--section); }
.p-body .prose { grid-column: 3 / span 8; }
@media (max-width: 63.99em) { .p-body .prose { grid-column: 1 / -1; } }
.prose .pr-section ul { padding-left: 1.2em; }

/* listings: rubric archive, search */
.lineup--archive { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: var(--section); }
.lineup--archive h1 { font-size: var(--step-head); }
.lineup--archive .rubric { margin-top: clamp(2rem, 4vw, 3rem); }
.pageno { display: block; font-size: var(--step-small); font-weight: 500; letter-spacing: 0; color: var(--muted); margin-top: 0.75rem; }
.pager { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-family: var(--font-display); font-weight: 700; font-size: var(--step-body); }
.pager a, .pager span { min-height: 2.75rem; display: inline-flex; align-items: center; text-decoration: none; }
.pager .current { color: var(--accent); }
.rubric-nav { margin-top: clamp(3rem, 6vw, 5rem); display: flex; flex-wrap: wrap; gap: 0 1.75rem; font-family: var(--font-display); font-weight: 500; font-size: var(--step-body); }
.rubric-nav a { padding-block: 0.6rem; text-decoration: none; }
.rubric-nav a[aria-current] { color: var(--accent); }
.lc-search { margin-top: 2rem; display: flex; gap: 0.5rem; max-width: 44rem; }
.lc-search input { flex: 1 1 auto; min-width: 0; min-height: 3rem; padding: 0.4rem 0.8rem; border: 2px solid var(--ink); border-radius: 0; background: #fff; font-family: var(--font-display); font-weight: 500; }
.lc-search input:focus-visible { outline-offset: 0; }

/* 404 */
.nf { padding: clamp(2.5rem, 6vw, 5rem) var(--margin) var(--section); }
.nf__code { font-family: var(--font-display); font-weight: 700; font-size: clamp(6rem, 24vw, 22rem); line-height: 0.8; letter-spacing: -0.06em; color: var(--accent); }
.nf h1 { margin-top: 2rem; font-size: var(--step-head); }
.nf__lead { margin-top: 1rem; font-size: var(--step-lead); line-height: 1.35; }
.nf .rubric { margin-top: clamp(3rem, 6vw, 5rem); }

/* inspector fixes: band caption wide enough to close the band; article text runs to the right margin */
.band figcaption { max-width: 52ch; }
@media (min-width: 64em) { .prose { grid-column: 4 / -1; } }
.prose > p, .prose > ul, .prose > ol, .prose > h2, .prose > h3, .prose > .runin, .prose > .sources { max-width: 46rem; }
.prose .pr-editorial__label { text-transform: none !important; letter-spacing: 0 !important; font-size: var(--step-small) !important; font-weight: 500 !important; }

/* article motion: transform only (never hides content, never delays LCP) */
@media (prefers-reduced-motion: no-preference) {
  .a-head h1, .a-head .a-meta, .a-head .a-lead { animation: lc-up 900ms var(--ease-expo) both; }
  .a-head .a-meta { animation-delay: 70ms; }
  .a-head .a-lead { animation-delay: 140ms; }
  .a-head__pic { overflow: clip; }
  .a-head__pic img { animation: lc-settle 1600ms var(--ease-soft) both; }
  .js [data-rise] { transform: translateY(28px); transition: transform 900ms var(--ease-expo); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-rise].is-in { transform: none; }
}
@keyframes lc-up { from { transform: translateY(18px); } to { transform: none; } }
@keyframes lc-settle { from { transform: scale(1.06); } to { transform: none; } }

/* listing / page header: title beside an archive photograph */
.c-head { padding: clamp(2rem, 5vw, 4rem) var(--margin) 0; row-gap: 2rem; align-items: end; }
.c-head__text { grid-column: 1 / span 7; display: grid; gap: 1.25rem; align-content: end; }
.c-head h1 { font-size: var(--step-head); max-width: 18ch; }
.c-head__lead { font-size: var(--step-lead); line-height: 1.35; max-width: 40ch; }
.c-head__pic { grid-column: 8 / -1; overflow: clip; }
.c-head__pic img { width: 100%; height: clamp(16rem, 42vh, 28rem); object-fit: cover; filter: grayscale(1) contrast(1.06); }
@media (max-width: 63.99em) { .c-head__text, .c-head__pic { grid-column: 1 / -1; } .c-head__pic img { height: auto; aspect-ratio: 16 / 9; } }
@media (prefers-reduced-motion: no-preference) {
  .c-head h1, .c-head__lead, .c-head .a-meta { animation: lc-up 900ms var(--ease-expo) both; }
  .c-head__lead, .c-head .a-meta { animation-delay: 90ms; }
  .c-head__pic img { animation: lc-settle 1600ms var(--ease-soft) both; }
}
.more--top { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: 0; }
.lineup--archive { padding-top: clamp(3rem, 6vw, 5rem); }
.p-body { padding-top: clamp(3rem, 6vw, 5rem); }
@media (min-width: 64em) { .p-body .prose { grid-column: 3 / -1; } }
.foot__credits { font-size: max(15px, var(--step-small)); }
.nf__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gutter); align-items: end; }
.nf__pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1) contrast(1.06); }
@media (max-width: 47.99em) { .nf__top { grid-template-columns: 1fr; } }
/* the header picture leads the first screen */
@media (min-width: 64em) {
  .c-head__text { grid-column: 1 / span 6; }
  .c-head__pic { grid-column: 7 / -1; }
  .c-head__pic img { height: clamp(18rem, 66vh, 40rem); }
}
.nf .more { padding-inline: 0; padding-bottom: 0; }

/* «Статьи» page (page-stati.php): rubric tabs + the full list with rubric, date, excerpt */
.rubric-nav--tabs { margin-top: 0; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid rgba(10,10,10,.14); }
.rubric-nav--tabs a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.45em; }
.slist { list-style: none; margin: 0; padding: 0; display: grid; }
.srow { display: grid; gap: 0.35rem; padding-block: 1.1rem; border-bottom: 1px solid rgba(10,10,10,.12); max-width: 62rem; }
.srow__meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font-size: var(--step-small); color: var(--muted); }
.srow__meta a { color: var(--accent); text-decoration: none; font-weight: 500; }
.srow__title { font-family: var(--font-display); font-weight: 500; font-size: var(--step-row); letter-spacing: -0.02em; line-height: 1.2; text-wrap: pretty; overflow-wrap: anywhere; }
.srow__title a { text-decoration: none; }
.srow__ex { font-size: var(--step-body); color: var(--ink); max-width: 60ch; }
@media (hover: hover) and (pointer: fine) { .srow__title a:hover { color: var(--accent); } .srow__meta a:hover { text-decoration: underline; } }
@media (max-width: 47.99em) { .srow__title { font-size: 1.125rem; } }
