  /* Fonts (Onest, Source Sans 3) are enqueued by the child theme functions.php.
     No @import / @font-face here per production requirements. */

  /* ============ Tokens (CartaBank) ============ */
  :root {
    /* Emerald Tangerine Morning — core identity */
    --cb-green:    #28694B;
    --cb-orange:   #FF5F2D;
    --cb-light:    #EBEBDC;
    --cb-gray:     #6E6E73;

    /* Functional derivatives */
    --bg:          #FFFFFF;
    --surface:     #FFFFFF;
    --sunken:      #F8F8F5;
    --ink:         #202829;
    --ink-soft:    #343C3D;
    --muted:       var(--cb-gray);
    --border:      #E2E2DC;
    --border-strong:#C7C8C0;
    --green:       var(--cb-green);
    --green-deep:  #1C4F38;
    --green-wash:  #EEF6F1;
    --orange:      var(--cb-orange);
    --orange-deep: #B83A16;
    --orange-wash: #FFF1E9;
    --neutral-wash:var(--cb-light);
    --gold:        var(--cb-orange);
    --gold-deep:   var(--orange-deep);
    --gold-wash:   var(--orange-wash);
    --warning:     var(--cb-orange);
    --warning-deep:var(--orange-deep);
    --warning-wash:var(--orange-wash);
    --danger:      #B03A2A;
    --danger-wash: #F8E6E1;

    --font-display:'Onest', -apple-system, 'Segoe UI', system-ui, sans-serif;
    --font-body:   'Source Sans 3', -apple-system, 'Segoe UI', system-ui, sans-serif;
    --step-caption: 11.5px;
    --step-small:   13.5px;
    --step-body:    18px;
    --step-lead:    19.5px;
    --step-h3:      23px;
    --step-h2:      29px;
    --step-h1:      48px;

    --r-s: 3px; --r-m: 6px;
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
    --dur: 160ms;
    --dur-exit: 120ms;

    --gutter: 32px;
    --container: 1280px;
    --header-h: 58px;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: var(--font-body);
    font-size: var(--step-body);
    line-height: 27px;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
  }
  .mono { font-family: var(--font-body); font-variant-numeric: tabular-nums; }
  a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
  a:hover { color: var(--green-deep); text-decoration-line: underline; }
  :focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 2px; }

  /* ============ Progress bar ============ */
  .progress {
    position: fixed; top: 0; left: 0; height: 2px; width: 0;
    background: var(--green); z-index: 200; transition: width 80ms linear;
  }

  /* ============ Header ============ */
  .site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
  }
  .header-inner {
    max-width: var(--container); margin: 0 auto; height: var(--header-h);
    padding: 0 var(--gutter);
    display: flex; align-items: center; gap: 24px;
  }
  .brand { display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }
  .brand-logo { font: 700 24px/28px var(--font-display); letter-spacing: -0.045em; }
  .brand-logo__carta { color: var(--cb-gray); }
  .brand-logo__bank { color: var(--cb-orange); }
  .main-nav {
    display: flex; align-items: center; gap: 2px; margin-left: 12px;
    flex: 1 1 auto; min-width: 0;
  }
  .nav-items {
    display: flex; align-items: center; gap: 2px;
    flex: 0 1 auto; min-width: 0; overflow: hidden;
  }
  .nav-items > a,
  .nav-dropdown > button {
    font-size: 13.5px; font-weight: 500; color: var(--ink-soft);
    text-decoration: none; padding: 8px 11px; border-radius: var(--r-s);
    white-space: nowrap; flex: 0 0 auto;
    transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
  }
  .nav-dropdown > button {
    display: inline-flex; align-items: center; gap: 6px;
    border: 0; background: transparent; cursor: pointer; font-family: var(--font-body);
  }
  .nav-items > a:hover,
  .nav-dropdown > button:hover,
  .nav-dropdown:focus-within > button,
  .nav-dropdown:hover > button { color: var(--green); background: transparent; }
  .nav-items > a.is-active,
  .nav-menu a.is-active { color: var(--green); font-weight: 600; }
  .nav-items > a.is-active { box-shadow: inset 0 -2px 0 var(--green); border-radius: 0; }
  .nav-dropdown { position: relative; flex: 0 0 auto; }
  .nav-caret {
    width: 12px; height: 12px; flex: 0 0 auto;
    transition: transform var(--dur) var(--ease);
  }
  .nav-dropdown:hover .nav-caret,
  .nav-dropdown:focus-within .nav-caret,
  .nav-dropdown.is-open .nav-caret { transform: rotate(180deg); }
  .nav-menu {
    position: absolute; z-index: 30; top: calc(100% + 7px); right: 0;
    width: 258px; padding: 8px;
    background: var(--surface); border: 1px solid var(--border-strong);
    border-radius: var(--r-m); box-shadow: 0 14px 36px rgba(25, 38, 35, 0.14);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity 140ms var(--ease), transform 140ms var(--ease), visibility 0s linear 140ms;
  }
  .nav-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
  .nav-dropdown:hover .nav-menu,
  .nav-dropdown:focus-within .nav-menu,
  .nav-dropdown.is-open .nav-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
    transition-duration: 200ms; transition-delay: 0s;
  }
  .nav-menu a {
    display: block; padding: 10px 12px; color: var(--ink-soft); text-decoration: none;
    font-size: 14px; line-height: 1.3; font-weight: 400; border-radius: var(--r-s);
    transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
  }
  .nav-menu a:hover,
  .nav-menu a:focus-visible { color: var(--green-deep); background: var(--green-wash); outline: none; }
  .header-tools { margin-left: auto; display: flex; align-items: center; gap: 12px; }
  /* WP puts .search on <body> of result pages; scope the header form. */
  .header-tools .search {
    display: flex; align-items: center; gap: 8px;
    background: var(--cb-light); border: 1px solid transparent;
    border-radius: var(--r-s); padding: 0 14px; width: 220px; height: 32px;
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
  }
  .header-tools .search:focus-within { background: var(--surface); border-color: var(--green); }
  .header-tools .search svg { flex: none; color: var(--muted); }
  .header-tools .search input {
    border: 0; background: none; outline: none; width: 100%;
    font: 400 13.5px/1.3 var(--font-body); color: var(--ink);
  }
  .header-tools .search input::placeholder { color: var(--muted); }
  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    font: 600 13.5px/1.2 var(--font-body);
    padding: 9px 16px; border-radius: var(--r-s); cursor: pointer;
    border: 1px solid var(--green); background: var(--green); color: #F4FBF8;
    transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  }
  .btn:hover { background: var(--green-deep); border-color: var(--green-deep); }
  .btn--ghost { background: transparent; color: var(--green-deep); }
  .btn--ghost:hover { background: var(--green-wash); border-color: var(--green); }
  .burger {
    display: none; width: 38px; height: 38px; place-items: center;
    background: none; border: 0; cursor: pointer; padding: 8px; color: var(--ink);
  }
  .burger svg { width: 22px; height: 22px; }
  .burger .burger-lines,
  .burger .burger-close {
    transform-origin: center;
    transition: opacity var(--dur-exit) var(--ease), transform var(--dur) var(--ease);
  }
  .burger .burger-close { opacity: 0; transform: rotate(-45deg) scale(.86); }
  .burger[aria-expanded="true"] .burger-lines { opacity: 0; transform: rotate(45deg) scale(.86); }
  .burger[aria-expanded="true"] .burger-close { opacity: 1; transform: rotate(0) scale(1); }
  .mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--surface); padding: 8px var(--gutter) 16px; }
  .mobile-nav a { display: block; padding: 10px 4px; text-decoration: none; color: var(--ink-soft); font-weight: 500; border-bottom: 1px solid var(--border); }
  .mobile-nav a:last-child { border-bottom: 0; }
  .mobile-nav.open {
    display: block; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    overscroll-behavior: contain;
  }
  .mobile-subnav-toggle {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 10px 4px; border: 0; border-bottom: 1px solid var(--border);
    background: transparent; color: var(--ink-soft); font: inherit; font-weight: 500; text-align: left;
  }
  .mobile-subnav-toggle .nav-caret { transition: transform var(--dur) var(--ease); }
  .mobile-subnav-toggle[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }
  .mobile-subnav { display: none; padding: 4px 0 8px 16px; border-bottom: 1px solid var(--border); }
  .mobile-subnav.open { display: block; }
  .mobile-subnav a { padding: 9px 4px; border-bottom: 0; font-size: 14px; font-weight: 400; }

  /* ============ Page ============ */
  /* WP puts .page on <body> of static pages; scope the wrapper to its descendants. */
  body .page { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
  .crumbs {
    padding: 18px 0 0;
    font: 400 13px/1.6 var(--font-body); letter-spacing: 0;
    color: var(--muted);
    overflow-wrap: anywhere;
  }
  .crumbs a { color: var(--muted); text-decoration: none; }
  .crumbs a:hover { color: var(--green-deep); }
  .crumbs span.sep { margin: 0 8px; color: var(--border-strong); }

  /* ============ Article layout ============
     Десктоп: оглавление 224px / статья 596px / свободная зона 300px.
     На мобильном порядок сохраняется: оглавление → статья. */
  .article-wrap {
    display: grid;
    grid-template-columns: 224px 596px 300px;
    column-gap: 48px;
    grid-template-areas: "toc article .";
    align-items: start;
    padding: 26px 0 0;
  }
  .article { grid-area: article; width: 596px; min-width: 0; background: var(--surface); }

  .tag {
    display: inline-block; font: 600 13px/18px var(--font-body);
    letter-spacing: 0; text-transform: uppercase;
    color: var(--green); background: var(--cb-light);
    border-radius: var(--r-s); padding: 6px 10px; text-decoration: none;
  }
  .tag:hover { color: var(--green-deep); text-decoration: none; }
  h1 {
    width: 720px; max-width: calc(100vw - 416px);
    font-family: var(--font-display); font-weight: 600;
    font-size: clamp(44px, 3.34vw, var(--step-h1));
    line-height: 1.1; letter-spacing: -0.005em;
    margin: 16px 0 0; text-wrap: balance;
  }
  .meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
    margin-top: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--border);
    font: 400 14px/20px var(--font-body); color: var(--muted);
  }
  .meta .dot { color: var(--border-strong); }
  .meta strong { color: var(--ink-soft); font-weight: 400; }
  .meta a.person,
  .meta a.person strong { font: 600 14px/20px var(--font-display); }
  .meta .mono { font: 400 14px/20px var(--font-body); }
  .meta a.person {
    color: var(--ink-soft);
    font-weight: 600;
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: var(--border-strong);
  }
  .meta a.person:hover { color: var(--green-deep); text-decoration-color: var(--green-deep); }

  .lead { font-size: var(--step-lead); line-height: 1.55; color: var(--ink-soft); margin-top: 22px; max-width: 62ch; text-wrap: pretty; }
  .article-cover {
    margin: 28px 0 0;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--sunken);
  }
  .article-cover img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  /* Key takeaways — две угловые линии по редакционной логике референса */
  .takeaways {
    position: relative;
    margin-top: 28px;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 24px 20px 28px;
  }
  .takeaways::before,
  .takeaways::after {
    content: "";
    position: absolute;
    width: 38%;
    height: 52px;
    pointer-events: none;
  }
  .takeaways::before {
    top: 0;
    left: 0;
    border-top: 2px solid var(--orange);
    border-left: 2px solid var(--orange);
  }
  .takeaways::after {
    right: 0;
    bottom: 0;
    border-right: 2px solid var(--orange);
    border-bottom: 2px solid var(--orange);
  }
  .article .takeaways > .takeaways-title {
    font: 600 14px/1.4 var(--font-display); letter-spacing: .04em; text-transform: uppercase;
    color: var(--green); margin: 0 0 10px;
  }
  .article .takeaways ul { list-style: none; display: grid; gap: 8px; margin: 0; padding-left: 0; max-width: none; }
  .article .takeaways li { position: relative; padding-left: 22px; margin-top: 0; font-size: 18px; line-height: 27px; color: var(--ink-soft); }
  .takeaways li::before {
    content: ""; position: absolute; left: 0; top: .62em;
    width: 10px; height: 2px; background: var(--green);
  }
  .takeaways li strong { color: var(--ink); font-weight: 600; }

  /* Body */
  .article h2 {
    font-family: var(--font-display); font-weight: 600;
    font-size: var(--step-h2); line-height: 35px; letter-spacing: 0;
    margin: 32px 0 0; scroll-margin-top: calc(var(--header-h) + 24px);
  }
  .article h2 + p,
  .article h2 + ul.bullets,
  .article h2 + ol.numbered-list,
  .article h2 + .table-wrap,
  .article h2 + .callout { margin-top: 10px; }
  .article p { margin-top: 16px; max-width: 66ch; text-wrap: pretty; }
  .article ul.bullets { margin: 16px 0 0; padding-left: 0; list-style: none; display: grid; gap: 10px; max-width: 64ch; }
  .article ul.bullets li { position: relative; padding-left: 24px; }
  .article ul.bullets li::before {
    content: ""; position: absolute; left: 4px; top: .68em;
    width: 7px; height: 7px; border-radius: 2px; background: var(--gold);
  }
  .article ol.numbered-list {
    counter-reset: cb-step;
    margin: 18px 0 0;
    padding: 0;
    max-width: 66ch;
    list-style: none;
    border-top: 1px solid var(--border);
  }
  .article ol.numbered-list li {
    counter-increment: cb-step;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    color: var(--ink-soft);
  }
  .article ol.numbered-list li::before {
    content: counter(cb-step, decimal-leading-zero);
    color: var(--green);
    font: 600 14px/27px var(--font-display);
    font-variant-numeric: tabular-nums;
    letter-spacing: .04em;
  }
  .article ol.numbered-list strong { color: var(--ink); font-weight: 600; }
  .article h3 {
    position: relative;
    margin: 28px 0 0;
    padding-top: 14px;
    font: 600 23px/30px var(--font-display);
    letter-spacing: -.005em;
    color: var(--ink);
    text-wrap: balance;
  }
  .article h3::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--orange);
  }
  .article h3 + p,
  .article h3 + ul.bullets,
  .article h3 + ol.numbered-list,
  .article h3 + .callout { margin-top: 8px; }

  /* Callouts */
  .callout {
    margin-top: 24px; padding: 18px 22px; max-width: 66ch;
    border-radius: 0 var(--r-m) var(--r-m) 0;
    border-left: 2px solid var(--green); background: var(--cb-light);
  }
  .callout--warning { border-left-color: var(--warning); background: var(--warning-wash); }
  .callout .c-label {
    font: 600 14px/20px var(--font-display); letter-spacing: 0; text-transform: uppercase;
    margin-bottom: 8px; color: var(--green);
  }
  .callout--warning .c-label { color: var(--warning-deep); }
  .callout p { margin: 0; font: 400 18px/27px var(--font-body); color: var(--ink); }

  /* Table */
  .table-wrap {
    margin-top: 24px; max-width: 100%; overflow-x: auto;
    border: 1px solid var(--border); border-radius: 7px; background: var(--surface);
  }
  table {
    width: 100%; min-width: 596px; border-collapse: separate; border-spacing: 0;
    font: 400 16px/24px var(--font-body);
  }
  /* The measured 28/30/42 proportions are fixed only for the reference
     three-column table layout; tables with other column counts keep their
     natural auto layout so cells never collapse to zero width. */
  table:has(th:nth-child(3):last-child, td:nth-child(3):last-child) { table-layout: fixed; }
  table:has(th:nth-child(3):last-child, td:nth-child(3):last-child) th:nth-child(1),
  table:has(th:nth-child(3):last-child, td:nth-child(3):last-child) td:nth-child(1) { width: 28%; }
  table:has(th:nth-child(3):last-child, td:nth-child(3):last-child) th:nth-child(2),
  table:has(th:nth-child(3):last-child, td:nth-child(3):last-child) td:nth-child(2) { width: 30%; }
  table:has(th:nth-child(3):last-child, td:nth-child(3):last-child) th:nth-child(3),
  table:has(th:nth-child(3):last-child, td:nth-child(3):last-child) td:nth-child(3) { width: 42%; }
  /* Wide tables stretch right into the spare column of the article grid. */
  .table-wrap--wide { width: 944px; max-width: none; }
  .table-wrap--wide table { min-width: 820px; }
  .table-wrap--wide table:has(th:nth-child(3):last-child, td:nth-child(3):last-child) th:nth-child(1),
  .table-wrap--wide table:has(th:nth-child(3):last-child, td:nth-child(3):last-child) td:nth-child(1) { width: 24%; }
  .table-wrap--wide table:has(th:nth-child(3):last-child, td:nth-child(3):last-child) th:nth-child(2),
  .table-wrap--wide table:has(th:nth-child(3):last-child, td:nth-child(3):last-child) td:nth-child(2) { width: 37%; }
  .table-wrap--wide table:has(th:nth-child(3):last-child, td:nth-child(3):last-child) th:nth-child(3),
  .table-wrap--wide table:has(th:nth-child(3):last-child, td:nth-child(3):last-child) td:nth-child(3) { width: 39%; }
  caption {
    text-align: left; padding: 14px 18px 0;
    font: 600 13px/18px var(--font-body); letter-spacing: 0; text-transform: uppercase;
    color: var(--muted);
  }
  th {
    font: 400 13px/18px var(--font-body); letter-spacing: .01em; text-transform: uppercase;
    text-align: left; color: var(--ink); background: var(--surface);
    padding: 14px 22px; border-bottom: 1px solid var(--border); vertical-align: middle;
  }
  th:not(:last-child), td:not(:last-child) { border-right: 1px solid var(--border); }
  td {
    padding: 13px 22px; border-bottom: 1px solid var(--border);
    color: var(--ink); vertical-align: top;
  }
  tr:last-child td { border-bottom: 0; }
  tbody tr { background: var(--surface); transition: background var(--dur) var(--ease); }
  tbody tr:hover { background: color-mix(in srgb, var(--cb-light) 34%, white); }
  td .mono { font: 400 16px/24px var(--font-body); color: var(--ink); }

  /* FAQ */
  .faq { margin-top: 24px; max-width: 66ch; display: grid; gap: 10px; }
  .faq details {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-m);
    transition: border-color var(--dur) var(--ease);
  }
  .faq details[open] {
    border-color: var(--border-strong); background: var(--cb-light);
    box-shadow: inset 3px 0 0 var(--orange);
  }
  .faq summary {
    list-style: none; cursor: pointer; padding: 16px 20px;
    font: 600 16px/24px var(--font-display); color: var(--ink);
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
  }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after {
    content: ""; flex: none; width: 9px; height: 9px;
    border-right: 2px solid var(--green); border-bottom: 2px solid var(--green);
    transform: rotate(45deg); transition: transform var(--dur) var(--ease);
  }
  .faq details[open] summary::after { transform: rotate(225deg); }
  .faq .faq-body { padding: 0 20px 18px; font: 400 16px/25px var(--font-body); color: var(--ink-soft); }

  /* Sources */
  .sources {
    margin-top: 52px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-m);
    transition: border-color var(--dur) var(--ease);
  }
  .sources:has(details[open]) { border-color: var(--border-strong); }
  .sources summary {
    list-style: none; cursor: pointer; padding: 16px 20px;
    font: 600 16px/24px var(--font-display); color: var(--ink);
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
  }
  .sources summary::-webkit-details-marker { display: none; }
  .sources summary::after {
    content: ""; flex: none; width: 9px; height: 9px;
    border-right: 2px solid var(--green); border-bottom: 2px solid var(--green);
    transform: rotate(45deg); transition: transform var(--dur) var(--ease);
  }
  .sources details[open] summary::after { transform: rotate(225deg); }
  .sources-body { padding: 0 20px 18px; }
  .sources ol { margin: 0 0 0 20px; display: grid; gap: 8px; font: 400 15px/24px var(--font-body); color: var(--ink-soft); }
  .sources li::marker { color: var(--cb-gray); }
  .sources a {
    color: var(--green); text-decoration-line: underline; text-decoration-thickness: 1px;
    text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--green) 42%, transparent);
    transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
  }
  .sources a:hover { color: var(--green-deep); text-decoration-color: currentColor; }
  .sources .editorial-policy {
    margin-top: 12px;
    font: 400 15px/24px var(--font-body);
    color: var(--ink-soft);
  }

  /* Rating + sharing: native JournalX data and actions, CartaBank skin. */
  .article-engagement { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border-strong); display: grid; gap: 20px; }
  .engagement-block { display: grid; gap: 8px; }
  .article .engagement-title { margin: 0; font: 600 18px/23px var(--font-display); color: var(--ink); }
  .rating-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
  .article-engagement .wp-star-rating { display: inline-flex; align-items: center; gap: 2px; }
  .article-engagement .star-rating-item {
    width: 36px; height: 36px; padding: 7px; color: var(--border-strong); cursor: pointer;
    display: grid; place-items: center; transition: color var(--dur) var(--ease);
  }
  .article-engagement .star-rating-item svg { width: 22px; height: 22px; display: block; }
  .article-engagement .wp-star-rating.disabled .star-rating-item { cursor: default; }
  .article-engagement .wp-star-rating:not(.disabled) .star-rating-item:hover,
  .article-engagement .wp-star-rating:not(.disabled) .star-rating-item:has(~ .star-rating-item:hover),
  .article-engagement .wp-star-rating.star-rating--score-1 .star-rating-item:nth-child(1),
  .article-engagement .wp-star-rating.star-rating--score-2 .star-rating-item:nth-child(-n+2),
  .article-engagement .wp-star-rating.star-rating--score-3 .star-rating-item:nth-child(-n+3),
  .article-engagement .wp-star-rating.star-rating--score-4 .star-rating-item:nth-child(-n+4),
  .article-engagement .wp-star-rating.star-rating--score-5 .star-rating-item:nth-child(-n+5) { color: var(--orange); }
  .article-engagement .star-rating-text { margin: 0; font: italic 400 13px/18px var(--font-body); color: var(--cb-gray); }
  .article-engagement .social-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
  .article-engagement .social-button {
    min-width: 36px; height: 36px; padding: 0 10px; margin: 0; border: 1px solid var(--green); border-radius: var(--r-s);
    background: var(--surface); color: var(--green); display: inline-flex; align-items: center;
    justify-content: center; cursor: pointer; font: 700 12px/1 var(--font-body); letter-spacing: .02em;
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
  }
  .article-engagement .social-button--copy { font-weight: 600; }
  /* JournalX adds service icons via ::before (1.5em + margins); the compact design uses text labels only. */
  .article-engagement .social-button::before { content: none; margin: 0; width: 0; }
  .article-engagement .social-button--copy.is-copied { background: var(--green); color: var(--surface); }
  .article-engagement .social-button:hover { background: var(--green); color: var(--surface); }
  .article-engagement .star-rating-item:focus-visible,
  .article-engagement .social-button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
  @media (pointer: coarse) {
    .article-engagement .star-rating-item,
    .article-engagement .social-button { min-width: 44px; height: 44px; }
  }

/* ============ TOC rail (левая колонка) ============ */
  .toc-rail {
    grid-area: toc;
    position: sticky; top: calc(var(--header-h) + 24px);
    min-width: 0; padding-bottom: 6px; background: var(--surface);
  }
  .toc-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
  }
  .widget-title {
    font: 600 22px/1.2 var(--font-display); letter-spacing: -0.01em;
    color: var(--ink);
  }
  .toc-toggle {
    display: none; background: none; border: 0; cursor: pointer;
    color: var(--muted); padding: 6px;
  }
  .toc-toggle svg { transition: transform var(--dur) var(--ease); display: block; }
  .toc-rail.is-collapsed .toc-toggle svg { transform: rotate(180deg); }
  .toc-rail ol { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--border); }
  .toc-rail a {
    position: relative; display: block;
    padding: 8px 12px; text-decoration: none;
    font-size: 16px; line-height: 19.2px; color: var(--muted);
    transition: color var(--dur) var(--ease);
  }
  .toc-rail a::after {
    content: ""; position: absolute; left: -2px; top: 8px; bottom: 8px; transform: scaleY(0);
    width: 3px; background: var(--orange);
    transform-origin: center;
    transition: transform var(--dur) var(--ease);
  }
  .toc-rail a:hover { color: var(--green); background: var(--green-wash); }
  .toc-rail a.is-current { color: var(--green); font-weight: 600; }
  .toc-rail a.is-current::after { transform: scaleY(1); }

  /* ============ Related — полноширинная полоса ============ */
  .related-band {
    margin-top: 72px;
    background: var(--surface);
    border-top: 1px solid var(--border);
  }
  .related { max-width: var(--container); margin: 0 auto; padding: 52px var(--gutter) 72px; }
  .related-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
  .related-head h2 {
    font-family: var(--font-display); font-weight: 600; font-size: 30px;
    letter-spacing: -0.01em; line-height: 1.2; margin: 0;
  }
  .related-head .more {
    font: 600 13px/18px var(--font-body); letter-spacing: 0; text-transform: uppercase;
    text-decoration: none; color: var(--green);
    display: inline-flex; align-items: center; gap: 8px;
  }
  .related-head .more:hover { color: var(--green-deep); }
  .related-grid {
    margin-top: 34px; display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }
  .rel-card {
    position: relative; text-decoration: none; color: inherit;
    display: flex; flex-direction: column;
    min-width: 0; overflow: hidden;
    padding: 0; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--r-s);
    transition: border-color var(--dur) var(--ease);
  }
  .rel-card:hover { border-color: var(--green); }
  .rel-card .thumb { aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface); border-bottom: 1px solid var(--border); }
  .rel-card .thumb img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 400ms var(--ease);
  }
  .rel-card:hover .thumb img { transform: scale(1.04); }
  .rel-card .body { padding: 16px 14px 18px; display: flex; flex-direction: column; flex: 1; }
  .rel-card h3 {
    font-family: var(--font-display); font-weight: 600; font-size: 20px;
    line-height: 24px; letter-spacing: 0; color: var(--ink);
    transition: color var(--dur) var(--ease);
  }
  .rel-card:hover h3 { color: var(--green); }

  /* ============ Footer ============ */
  .site-footer { border-top: 1px solid var(--green-deep); background: var(--green); color: #FFFFFF; }
  .footer-grid {
    max-width: var(--container); margin: 0 auto; padding: 44px var(--gutter) 28px;
    display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 48px;
  }
  .footer-brand .brand-logo { font-size: 30px; line-height: 32px; }
  .footer-brand .brand-logo__carta { color: var(--cb-light); }
  .footer-brand .brand-logo__bank { color: var(--cb-orange); }
  .footer-brand p {
    margin: 24px 0 0; max-width: 38ch;
    font-size: 14.5px; line-height: 1.55; font-weight: 400;
    color: rgba(235,235,220,.88);
  }
  .footer-col h4 {
    font: 700 15px/20px var(--font-display); letter-spacing: 0; text-transform: uppercase;
    color: #FFFFFF; margin: 0 0 14px; padding-bottom: 8px; position: relative;
  }
  .footer-col h4::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 28px; height: 2px; background: var(--orange);
  }
  .footer-col--continuation { padding-top: 42px; }
  .footer-col ul { margin: 0; list-style: none; display: grid; gap: 8px; }
  .footer-col a {
    font-size: 15px; line-height: 21px; color: var(--cb-light);
    text-decoration: none; transition: color var(--dur) var(--ease);
  }
  .footer-col a:hover { color: var(--orange); }
  .footer-legal { border-top: 1px solid rgba(255,255,255,.22); }
  .footer-legal-inner {
    max-width: var(--container); margin: 0 auto; padding: 16px var(--gutter);
    display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between;
    font-size: 13.5px; line-height: 20px; color: var(--cb-light);
  }
  .footer-legal nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
  .footer-legal a { color: var(--cb-light); text-decoration: none; }
  .footer-legal a:hover { color: var(--orange); }
  .footer-disclaimer {
    width: 100%; max-width: var(--container); margin: 0 auto;
    padding: 18px var(--gutter) 24px; border-top: 1px solid rgba(255,255,255,.14);
    font-size: 12.5px; line-height: 19px; color: rgba(235,235,220,.78);
  }

  /* ============ Cookie consent ============ */
  .cookie-banner {
    position: fixed; left: 50%; bottom: 24px; z-index: 1200;
    width: min(620px, calc(100vw - 48px));
    min-height: 118px;
    transform: translateX(-50%);
    display: grid; grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center; gap: 16px;
    padding: 18px;
    background: var(--cb-light);
    border: 1px solid color-mix(in srgb, var(--green) 16%, transparent);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(32, 40, 41, .16);
    animation: cookie-enter 200ms var(--ease) both;
  }
  .cookie-banner[hidden] { display: none; }
  .cookie-icon {
    width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center;
    color: var(--green);
    background: color-mix(in srgb, var(--green) 8%, #FFFFFF);
  }
  .cookie-icon svg { width: 24px; height: 24px; }
  .cookie-copy h2 {
    margin: 0 0 4px; font: 600 18px/22px var(--font-display);
    letter-spacing: 0; color: var(--ink);
  }
  .cookie-copy p {
    max-width: 250px; font: 400 13px/18px var(--font-body); color: var(--muted);
  }
  .cookie-copy a { font-weight: 600; white-space: nowrap; }
  .cookie-actions { display: flex; align-items: center; gap: 8px; }
  .cookie-button {
    width: 115px; min-width: 115px; height: 36px; min-height: 36px; padding: 7px 12px;
    border: 1px solid var(--green); border-radius: 3px;
    font: 600 13px/18px var(--font-body); cursor: pointer;
    transition: color var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  }
  .cookie-button--secondary { color: var(--green); background: transparent; }
  .cookie-button--secondary:hover { background: var(--green-wash); border-color: var(--green-deep); color: var(--green-deep); }
  .cookie-button--primary { color: #FFFFFF; background: var(--green); }
  .cookie-button--primary:hover { background: var(--green-deep); border-color: var(--green-deep); }
  @keyframes cookie-enter {
    from { opacity: 0; transform: translate(-50%, 16px); }
    to { opacity: 1; transform: translate(-50%, 0); }
  }

  /* ============ Responsive ============ */
  @media (max-width: 1280px) {
    .article-wrap {
      grid-template-columns: 208px minmax(0, 596px);
      column-gap: 36px;
      grid-template-areas: "toc article";
    }
    .article { width: 100%; }
    h1 { width: 100%; max-width: 720px; }
    .table-wrap--wide { width: min(760px, calc(100vw - 244px - var(--gutter) - var(--gutter))); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 880px) {
    :root { --gutter: clamp(16px, 4vw, 32px); }
    .main-nav { display: none; }
    .burger { display: grid; }
    .header-tools .search { display: none; }
    /* На мобильных экранах оглавление скрыто: сразу показываем статью. */
    .article-wrap {
      grid-template-columns: 1fr;
      grid-template-areas: "article";
    }
    .toc-rail { display: none; }
    .table-wrap--wide { width: 100%; max-width: 100%; }
    .table-wrap--wide table { width: 1020px; min-width: 1020px; }
    .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cookie-banner {
      width: min(600px, calc(100vw - 32px));
      min-height: 0;
      grid-template-columns: 40px minmax(0, 1fr);
      gap: 14px; padding: 18px;
    }
    .cookie-icon { width: 40px; height: 40px; }
    .cookie-icon svg { width: 24px; height: 24px; }
    .cookie-copy h2 { font-size: 18px; line-height: 22px; }
    .cookie-copy p { max-width: none; font-size: 13px; line-height: 18px; }
    .cookie-actions { grid-column: 1 / -1; justify-content: flex-end; }
  }
  @media (max-width: 560px) {
    .footer-legal-inner { flex-direction: column; align-items: flex-start; }
    .related-grid { grid-template-columns: 1fr; row-gap: 36px; }
    h1 { font-size: clamp(36px, 10vw, 44px); }
    .article ol.numbered-list li {
      grid-template-columns: 36px minmax(0, 1fr);
      column-gap: 12px;
      padding: 14px 0;
    }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-col--continuation { padding-top: 0; }
    .header-tools .btn { display: none; }
    .cookie-banner {
      bottom: 12px; width: calc(100vw - 24px);
      grid-template-columns: 1fr; gap: 12px;
      padding: 16px; border-radius: 12px;
    }
    .cookie-icon { display: none; }
    .cookie-copy h2 { margin-bottom: 4px; font-size: 18px; line-height: 22px; }
    .cookie-copy p { font-size: 13px; line-height: 18px; }
    .cookie-actions { grid-column: auto; display: grid; grid-template-columns: 1fr 1fr; }
    .cookie-button { width: 100%; min-width: 0; height: 40px; min-height: 40px; padding-inline: 10px; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
  }
