/* cyrillic-ext */
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/EBGaramond-italic-400-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/EBGaramond-italic-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/EBGaramond-italic-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/EBGaramond-italic-400-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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/EBGaramond-normal-400-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/EBGaramond-normal-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/EBGaramond-normal-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/EBGaramond-normal-400-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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/EBGaramond-normal-500-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/EBGaramond-normal-500-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/EBGaramond-normal-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/EBGaramond-normal-500-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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/SourceSans3-italic-400-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/SourceSans3-italic-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/SourceSans3-italic-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/SourceSans3-italic-400-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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/SourceSans3-normal-400-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/SourceSans3-normal-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/SourceSans3-normal-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/SourceSans3-normal-400-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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/SourceSans3-normal-600-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/SourceSans3-normal-600-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/SourceSans3-normal-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/SourceSans3-normal-600-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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/SourceSans3-normal-700-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/SourceSans3-normal-700-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/SourceSans3-normal-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/SourceSans3-normal-700-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;
}

/* CDR site — mobile first.
   >=1280px: the home page follows cdr.png geometry in reference units (calc(1 * var(--u)) = 1px of cdr.png, 941 wide);
   build.py turns "calc(12 * var(--u))" into calc(12 * var(--u)). Below 1280px the layout is fluid (px). */

:root {
  --u: 1px;
  --navy-header: #081a2a;
  --navy-hero: #040d15;
  --navy-tiles: #06131f;
  --navy-research: #051625;
  --navy-footer: #03101c;
  --navy-ink: #0a1d30;
  --rule-dark: #22344a;
  --paper: #efefea;
  --paper-2: #f6f5f1;
  --gold: #dfc38a;
  --gold-line: #e2bf7c;
  --gold-ink: #7d6740;
  --ink: #0a1019;
  --ink-2: #1c2637;
  --ink-3: #4a505a;
  --white: #ffffff;
  --text-on-dark: #e4eaef;
  --muted-on-dark: #c7cfd6;
  --label-on-dark: #8d9aa7;
  --label-on-light: #5b6570;
  --error: #a3261b;
  --ok: #1d5a2a;
  --serif: "EB Garamond", "Garamond", "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: 180ms;
  --gutter: 20px;
}

* { box-sizing: border-box; }
/* 15.10: html takes the footer colour, so a short page (Contact on a tall screen) has no lighter band under the footer */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--navy-footer); }
body {
  margin: 0; background: var(--navy-research); color: var(--text-on-dark);
  font-family: var(--sans); font-size: 17px; line-height: 1.55;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 16px; }
/* while the menu or dialog locks scrolling, padding takes the scrollbar's place, so nothing shifts
   (--sbw is kept at its value while locked, see the script in <head>) */
html.is-locked { overflow: hidden; }
html.is-locked body { padding-right: var(--sbw, 0px); }
.sr { position: absolute; 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: 8px; top: -60px; z-index: 100; padding: 12px 16px;
  background: var(--gold); color: var(--ink); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
main:focus { outline: none; }
.on-light :focus-visible, .dlg :focus-visible { outline-color: var(--navy-ink); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); position: relative; }
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- atoms ---------- */
.eyebrow {
  display: flex; align-items: center; margin: 0;
  font-weight: 400; text-transform: uppercase; font-size: 12px; letter-spacing: .26em; line-height: 1.2; color: var(--label-on-dark);
}
.eyebrow::before { content: ""; flex: none; width: 32px; height: 2px; margin-right: 16px; background: var(--gold-line); }
.on-light .eyebrow { color: var(--label-on-light); }
@media (max-width: 374px) { .hero .eyebrow { letter-spacing: .2em; } } /* the hero label fits one line on 360 px phones; wrapping stays allowed */

.arr { width: 14px; height: 10px; flex: none; transition: transform var(--t-fast) var(--ease); }
.textlink {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0;
  font-family: var(--sans); font-weight: 600; text-transform: uppercase; font-size: 13px; letter-spacing: .12em; line-height: 1;
  color: var(--gold); text-decoration: none; background: none; border: 0; cursor: pointer;
  transition: color var(--t-fast) var(--ease);
}
.textlink > span { border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.textlink:hover .arr, .btn:hover .arr, a:hover > .textlink .arr, .card:hover .arr, .subsection:hover .arr { transform: translateX(3px); }
.textlink:hover { color: #f3dcaa; }
.on-light .textlink { color: var(--gold-ink); }
.on-light .textlink:hover { color: #5b4a2c; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 0 22px;
  border: 1px solid var(--gold-line); color: var(--gold); background: transparent; border-radius: 0;
  font-family: var(--sans); font-weight: 600; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  font-size: 13px; letter-spacing: .12em; line-height: 1; cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.btn:hover { background: rgba(226, 191, 124, .1); color: #f3dcaa; }
.btn--primary { background: var(--gold-line); border-color: var(--gold-line); color: var(--navy-ink); }
.btn--primary:hover { background: #edd4a2; border-color: #edd4a2; color: var(--navy-ink); }
.on-light .btn, .dlg .btn { color: var(--navy-ink); border-color: #9c8559; }
.on-light .btn:hover, .dlg .btn:hover { background: rgba(10, 29, 48, .06); color: var(--navy-ink); }
.on-light .btn--primary, .dlg .btn--primary { background: var(--navy-ink); border-color: var(--navy-ink); color: #f3e6c8; }
.on-light .btn--primary:hover, .dlg .btn--primary:hover { background: #17324d; border-color: #17324d; color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }
.linkbtn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; background: none; border: 0; cursor: pointer;
  color: inherit; text-decoration: underline; text-underline-offset: 3px; font-size: 15px;
}
.note { margin: 12px 0 0; padding: 10px 14px; background: #ece5d3; color: #5a4b2a; font-size: 15px; line-height: 1.45; }
.copy-status { font-size: 14px; color: var(--ok); min-height: 1em; }
.copy-status.is-error { color: var(--error); }
/* copy buttons briefly say "Copied" with a tick and keep their width */
.is-copied { justify-content: center; white-space: nowrap; }
.copy-ok { width: 12px; height: 12px; flex: none; margin-right: 6px; }
.btn .copy-ok { margin-right: 0; }
.copy-ok path { stroke-dasharray: 16; stroke-dashoffset: 16; animation: draw 260ms var(--ease-out) forwards; }

/* ---------- header ---------- */
.site-header { background: var(--navy-header); border-bottom: 1px solid var(--rule-dark); position: relative; z-index: 20; }
.header-bar { display: flex; align-items: center; justify-content: space-between; height: 68px; }
/* logo (13.10): Taras's new file, gold emblem and ivory lettering drawn for a dark ground - no glow; --lh = its height */
.brand { --lh: 42px; position: relative; display: block; line-height: 0; }
.brand img { height: var(--lh); width: auto; }
.nav, .header-rule, .header-bar > .lang { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a { color: rgba(255, 255, 255, .9); text-decoration: none; text-transform: none; letter-spacing: 0; font-weight: 400;   /* as cdr.png (13.10) */
  border-bottom: 2px solid transparent; transition: color var(--t-fast), border-color var(--t-fast); }
.nav a:hover { color: #f3dcaa; border-bottom-color: rgba(226, 191, 124, .55); }
.nav a[aria-current] { color: var(--gold); border-bottom-color: var(--gold-line); }
.lang { display: flex; align-items: center; gap: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; }
.lang a { color: var(--gold); text-decoration: none; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
.lang a:hover { color: #f3dcaa; }
.lang__cur { color: var(--white); min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; border-bottom: 2px solid var(--gold-line); }
.lang i { width: 1px; height: 16px; background: #3a4d61; display: block; }
.menu-toggle {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px; min-width: 44px; padding: 0 4px 0 10px; border: 0; background: none;
  color: var(--white); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; cursor: pointer;
}
.menu-toggle b { display: block; width: 22px; height: 2px; background: var(--gold-line); position: relative; transition: background var(--t-fast); }
.menu-toggle b::before, .menu-toggle b::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--gold-line); transition: transform 240ms var(--ease); }
.menu-toggle b::before { top: -7px; } .menu-toggle b::after { top: 7px; }
.menu-toggle[aria-expanded="true"] b { background: transparent; }
.menu-toggle[aria-expanded="true"] b::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] b::after { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  position: fixed; top: 69px; left: 0; right: 0; bottom: 0; z-index: 30; overflow-y: auto; overscroll-behavior: contain;
  background: var(--navy-header); padding: 8px var(--gutter) 32px; border-top: 1px solid var(--rule-dark);
  opacity: 0; transform: translateY(-8px); transition: opacity 250ms var(--ease), transform 250ms var(--ease);
}
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li a { display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid #1d3247; font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.1; color: var(--white); text-decoration: none; }
.mobile-menu li a[aria-current] { color: var(--gold); }
.mobile-menu li a[aria-current]::after { content: ""; width: 8px; height: 8px; margin-left: 12px; background: var(--gold-line); }
.mobile-menu .lang { margin-top: 20px; font-size: 15px; }

@media (min-width: 1024px) {
  .header-bar { height: 76px; }
  .menu-toggle, .mobile-menu { display: none !important; }
  .nav, .header-bar > .lang { display: flex; }
  .header-rule { display: block; width: 1px; height: 28px; background: #2f4256; margin: 0 22px 0 auto; }
  .nav { margin-left: auto; }
  .nav ul { display: flex; gap: 28px; }
  .nav a { font-size: 16px; padding: 10px 0 6px; }
}

/* ---------- hero ---------- */
.hero { position: relative; background: var(--navy-hero); overflow: hidden; border-bottom: 1px solid #4f5d6b; }
/* the photo is 24px taller at each edge so the desktop parallax never shows a gap */
/* the photo fills the block (cover), its subject on the right: Big Ben and the Palace of Westminster; the top stays whole */
/* 13.10 (Danyliuk: «картинки є фоном для тексту, а не самостійним блоком»): on every width the photo is the background layer of the
   whole first screen, the text lies over it in normal flow; phones crop to the tall central tower and the round tower left of it */
.hero__img { position: absolute; display: block; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform-origin: 50% 0; }
/* a soft navy veil for the text, shaped by measurement (360-430 px, every line >= its contrast norm): denser at the top over the
   bright sky (the label), lightest across the towers, moderate under the lead and the button — never opaque, the fortress shows */
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 15, 28, .6) 0%, rgba(5, 15, 28, .55) 16%, rgba(5, 15, 28, .4) 36%, rgba(5, 15, 28, .5) 60%, rgba(5, 15, 28, .58) 100%); }
/* the label sits over the bright sky on phones / tablets: a lighter grey keeps it readable (desktop keeps the reference colour) */
@media (max-width: 1279px) { .hero .eyebrow { color: #c9d0d8; } }
.hero .wrap { z-index: 1; padding-top: 56px; padding-bottom: 48px; display: flex; flex-direction: column; }
.hero h1 { margin: 24px 0 0; font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 8.6vw, 56px); line-height: 1.05; color: var(--white); }
.hero__lead { margin: 28px 0 0; font-size: 18px; line-height: 1.55; color: var(--text-on-dark); max-width: 36em; }
.hero__name { font-weight: 600; color: var(--white); }  /* the Center's name, gently brighter than the lead */
.hero .btn { align-self: flex-start; margin-top: 24px; }   /* 13.10: heading -> lead 28px, lead -> button 24px */
.hero__caption { margin: 32px 0 0; padding-left: 14px; border-left: 2px solid var(--gold-line); font-size: 12px; letter-spacing: .16em; line-height: 1.75; text-transform: uppercase; color: #b7c0c9; }

/* ---------- three tiles ---------- */
.tiles { display: grid; grid-template-columns: 1fr; background: var(--navy-tiles); }
.tiles .rule { height: 1px; background: #23364a; }
.tile { position: relative; overflow: hidden; color: var(--muted-on-dark); text-decoration: none; display: block; min-height: 270px; }
.tile__media { position: absolute; inset: 0; overflow: hidden; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; transition: transform 500ms var(--ease-out); }   /* subject on the right */
.tile::after { content: ""; position: absolute; inset: 0; pointer-events: none; transition: opacity 500ms var(--ease-out);
  background: linear-gradient(90deg, rgba(5, 15, 28, .92) 0%, rgba(5, 15, 28, .86) 45%, rgba(5, 15, 28, .55) 72%, rgba(5, 15, 28, .25) 100%); }
.tile__body { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 270px; padding: 30px var(--gutter) 26px; }
.tile__num { display: flex; align-items: center; font-size: 13px; letter-spacing: .1em; color: var(--white); }
.tile__num::after { content: ""; width: 32px; height: 1px; margin-left: 14px; background: var(--gold-line); transform-origin: left center; transition: transform 500ms var(--ease-out); }
.tile__t { display: block; margin-top: 18px; font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.12; color: var(--white); }
.tile__p { display: block; margin-top: 10px; font-size: 16.5px; line-height: 1.5; max-width: 26em; }
.tile .textlink { margin-top: auto; padding-top: 18px; align-self: flex-start; }
.tile .arr { transition: transform 500ms var(--ease-out); }
/* one synchronised state for mouse hover and keyboard focus; touch gets no hover state, so the first tap opens the link */
.tile:focus-visible { outline: 2px solid var(--gold); outline-offset: -6px; }
.tile:focus-visible .tile__media img { transform: scale(1.04); }
.tile:focus-visible::after { opacity: .86; }
.tile:focus-visible .tile__num::after { transform: scaleX(1.75); }
.tile:focus-visible .arr { transform: translateX(6px); }
@media (hover: hover) and (pointer: fine) {
  .tile:hover .tile__media img { transform: scale(1.04); }
  .tile:hover::after { opacity: .86; }
  .tile:hover .tile__num::after { transform: scaleX(1.75); }
  .tile:hover .arr { transform: translateX(6px); }
}
@media (min-width: 900px) {
  .tiles { grid-template-columns: 1fr 1px 1fr 1px 1fr; }
  .tiles .rule { height: auto; }
  .tile__body { padding: 30px 26px 24px; }
}


/* ---------- our work (light) & selected research ---------- */
.ourwork { background: var(--paper); color: var(--ink); padding: 44px 0 48px; border-bottom: 2px solid #d4d6d2; }
.ourwork h2, .selected h2 { margin: 14px 0 0; font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 7vw, 46px); line-height: 1.05; }
.ourwork h2 { color: var(--ink); }
.ourwork__intro { margin: 16px 0 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 40em; }
.ourwork__all, .selected__all { margin-top: 12px; }
.cards, .rcards { display: grid; grid-template-columns: 1fr; gap: 36px 22px; margin-top: 28px; }
.rcards { row-gap: 30px; margin-top: 24px; }
.card, .rcard { display: grid; grid-template-rows: auto auto 1fr auto; text-decoration: none; color: inherit; }
.rcard { grid-template-rows: auto auto 1fr auto; }  /* photo, meta, title + description, button */
.card__media, .rcard__media { display: block; overflow: hidden; }
.card__img, .rcard__img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; filter: saturate(.55) brightness(.78) contrast(1.06); transition: transform 600ms var(--ease); }
/* «Вибрані доповіді» (11.10, O. Danyliuk): a horizontal frame from the cover illustration at the reference's photo size (271 x 115),
   graded in the file itself (no CSS filter); the title is text below it */
.rcard__media { display: block; overflow: hidden; }
.rcard__img { display: block; width: 100%; height: auto; aspect-ratio: 271 / 115; object-fit: cover; filter: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.card:hover .card__img { transform: scale(1.025); }
/* the six directions: one column on phones, two on tablets, three from 1024 px; in a row the photos, the texts and the links stand
   on common lines (subgrid); rows are spaced by the cards' bottom padding */
.cards--6 { row-gap: 0; }
.cards--6 .card { grid-template-rows: auto auto auto; padding-bottom: 34px; }
/* the illustrations as they are: whole (2:1, width 100 %, height from the width / height attributes), no filter, no zoom on hover */
.cards--6 .card__img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; filter: none; }
.cards--6 .card:hover .card__img { transform: none; }
.cards--6 .card .textlink { margin-top: 12px; }
@media (max-width: 1279px) { .hero h1 br, .tile__t br { display: none; } }
/* one column of tiles (phones): the text spans the width -> the gradient runs diagonally, dense under the text at the top left,
   clear towards the bottom right where the subject (columns / microphone head / folder) stays visible */
@media (max-width: 899px) { .tile::after { background: linear-gradient(118deg, rgba(5, 15, 28, .93) 0%, rgba(5, 15, 28, .86) 42%, rgba(5, 15, 28, .6) 66%, rgba(5, 15, 28, .22) 100%); } }   /* the line breaks drawn for the desktop composition */
.card__t { display: block; margin-top: 14px; font-family: var(--serif); font-weight: 500; font-size: 23px; line-height: 1.2; color: var(--ink); }
.card__body { display: block; }
.card__p { display: block; margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--ink-3); }
.card .textlink { margin-top: 10px; align-self: start; justify-self: start; }
.selected { background: var(--navy-research); padding: 38px 0 40px; border-top: 1px solid #1c2b39; border-bottom: 1px solid #2b3a48; }
.selected h2 { color: var(--white); }
.rcard__meta { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #b8c1ca; }
.rcard__meta i { width: 1px; height: 12px; background: #5b6b7b; }
.rcard h3 { margin: 8px 0 0; font-family: var(--serif); font-weight: 500; font-size: 23px; line-height: 1.2; color: var(--white); overflow-wrap: break-word; }
.rcard h3 a { text-decoration: none; }
.rcard h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.rcard p { margin: 8px 0 0; font-size: 16px; line-height: 1.5; color: var(--muted-on-dark); }
.rcard .textlink { margin-top: 10px; justify-self: start; }
@media (min-width: 641px) {
  .cards, .rcards { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-rows: auto auto 1fr auto; }
  .card { grid-row: span 4; grid-template-rows: subgrid; }
  .rcard { grid-row: span 4; grid-template-rows: subgrid; }  /* buttons line up at the bottom */
}
@media (min-width: 900px) { .cards, .rcards { grid-template-columns: repeat(3, 1fr); } .cards--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) { .cards--6 .card { grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; } }
@media (min-width: 1024px) { .cards--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- governments / access banner ---------- */
.gov { position: relative; background: var(--navy-hero); overflow: hidden; }
.gov__img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.gov::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4, 13, 21, .95) 0%, rgba(4, 13, 21, .82) 60%, rgba(4, 13, 21, .55) 100%); }
.gov .wrap { z-index: 1; padding-top: 46px; padding-bottom: 50px; }
.gov h2 { margin: 18px 0 0; font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 6vw, 36px); line-height: 1.12; color: var(--white); }
.gov__text { margin: 16px 0 0; font-size: 17px; line-height: 1.55; color: var(--muted-on-dark); max-width: 36em; }
.gov .btn { margin-top: 24px; }
.gov__caption { margin: 30px 0 0; padding-left: 14px; border-left: 2px solid var(--gold-line); font-size: 12px; letter-spacing: .14em; line-height: 1.7; text-transform: uppercase; color: var(--gold); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-footer); border-top: 2px solid #1f3244; color: var(--muted-on-dark); }
.site-footer .wrap { display: grid; gap: 22px; padding-top: 34px; padding-bottom: 34px; }
.foot-brand b { display: block; font-family: var(--serif); font-weight: 500; font-size: 18px; letter-spacing: .02em; text-transform: uppercase; color: var(--white); }
.foot-brand span { display: block; margin-top: 8px; font-size: 15px; color: #aab4be; }
.foot-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 22px; }
.foot-nav a, .foot-legal a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot-nav a { font-size: 15px; color: var(--muted-on-dark); }
.foot-nav a:hover, .foot-legal a:hover { color: var(--white); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot-legal a { font-size: 14px; color: #8f9aa5; }
.foot-copy { font-size: 14px; line-height: 1.6; color: #9aa5b0; }
.foot-copy a { color: inherit; }

/* ---------- inner pages ---------- */
.page-head { position: relative; background: var(--navy-hero); border-bottom: 1px solid #34475a; overflow: hidden; }
.page-head__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; filter: saturate(.5); }
.page-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 13, 21, .97) 0%, rgba(4, 13, 21, .9) 50%, rgba(4, 13, 21, .66) 100%); }
/* «Про Центр» (13.10): the Verkhovna Rada photo shown clearly — graded in the file (no opacity / CSS filter), the Rada on the right;
   a soft gradient of its own: on phones top to bottom under the full-width text, on wide screens dense on the left only */
.page-head--photo .page-head__img { opacity: 1; filter: none; object-position: 78% 40%; }   /* 15.10: the columns (right) — dark sky behind the text */
.page-head--photo::after { background: linear-gradient(180deg, rgba(4, 13, 21, .84) 0%, rgba(4, 13, 21, .72) 40%, rgba(4, 13, 21, .84) 100%); }
@media (min-width: 900px) { .page-head--photo .page-head__img { object-position: 100% 36%; }
  .page-head--photo::after { background: linear-gradient(90deg, rgba(4, 13, 21, .9) 0%, rgba(4, 13, 21, .8) 34%, rgba(4, 13, 21, .45) 60%, rgba(4, 13, 21, .18) 100%); } }
.page-head .wrap { z-index: 1; padding-top: 36px; padding-bottom: 40px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--label-on-dark); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #4e6175; }
.crumbs a { color: var(--gold); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-head h1 { margin: 18px 0 0; font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 6vw, 56px); line-height: 1.06; color: var(--white); max-width: 18em; }
.page-head__lead { margin: 16px 0 0; max-width: 40em; font-size: 18px; line-height: 1.55; color: var(--text-on-dark); }
.page-head__note { margin: 14px 0 0; max-width: 40em; padding-left: 14px; border-left: 2px solid var(--gold-line); font-size: 16px; line-height: 1.55; color: var(--muted-on-dark); }
.toc ul { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 24px; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold); text-decoration: none; font-size: 15px; border-bottom: 1px solid transparent; }
.toc a:hover { border-bottom-color: currentColor; }

.section { padding: 48px 0 52px; }
.section--tight { padding-top: 0; }
.section--light { background: var(--paper); color: var(--ink); }
.section--dark { background: var(--navy-research); }
.section h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 4.6vw, 36px); line-height: 1.12; }
.section--light h2 { color: var(--ink); }
.section--dark h2 { color: var(--white); }
.split { display: grid; grid-template-columns: 1fr; gap: 16px 56px; padding-top: 28px; border-top: 1px solid #d0d2cd; }
.section--dark .split { border-top-color: #22374b; }
.prose { font-size: 17px; line-height: 1.65; max-width: 40em; }
.prose p { margin: 0 0 14px; }
.section--light .prose { color: var(--ink-2); }
.section--dark .prose { color: var(--muted-on-dark); }
.areas, .items { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: a; max-width: 42em; }
.areas li, .items li { padding: 18px 0 16px; border-top: 1px solid #d0d2cd; }
.section--dark .items li { border-top-color: #22374b; }
.areas li:first-child, .items li:first-child { border-top: 0; padding-top: 4px; }
.areas h3, .items h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 23px; line-height: 1.2; }
.areas h3 { color: var(--ink); }
.items h3 { color: var(--white); }
.areas p, .items p { margin: 6px 0 0; font-size: 17px; line-height: 1.6; }
.areas p { color: var(--ink-2); }
/* 14.10: the areas as written — one sentence each, its opening words in bold (no titles); the sixth area follows as a paragraph */
.areas--text p { margin: 0; }
.areas--text strong { font-weight: 600; color: var(--ink); }
.areas-after { margin-top: 18px; padding-top: 18px; border-top: 1px solid #d0d2cd; max-width: 42em; }
.about-closing .split__spacer, #who .split__spacer { display: none; }
@media (min-width: 900px) { .about-closing .split__spacer, #who .split__spacer { display: block; } }
.items p { color: var(--muted-on-dark); }
.cta-row { display: flex; gap: 12px 16px; margin-top: 24px; flex-wrap: wrap; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 300px minmax(0, 1fr); }
}

/* research landing */
.subsections { display: grid; grid-template-columns: 1fr; gap: 22px; }
.subsection { position: relative; display: block; min-height: 280px; overflow: hidden; text-decoration: none; color: var(--white); background: #0a1d2e; border: 1px solid #1d3247; transition: border-color var(--t-fast); }
.subsection:hover { border-color: #3a5470; }
/* all covers of the section, two rows filling the whole tile */
.subsection__covers { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 2px; background: #0a1d2e; opacity: .9; transition: opacity 400ms, transform 700ms var(--ease); }
.subsection:hover .subsection__covers { opacity: 1; transform: scale(1.015); }
.subsection__row { display: flex; flex: 1 1 0; gap: 2px; min-height: 0; }
.subsection__row img { flex: 1 1 0; min-width: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
/* phones: the text spans the whole tile, so the covers stay evenly dim under it */
.subsection::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 24, 38, .9) 0%, rgba(8, 24, 38, .84) 100%); }
@media (min-width: 900px) { .subsection::after { background: linear-gradient(90deg, rgba(8, 24, 38, .95) 0%, rgba(8, 24, 38, .9) 50%, rgba(8, 24, 38, .7) 82%, rgba(8, 24, 38, .52) 100%), linear-gradient(0deg, rgba(8, 24, 38, .7) 0%, rgba(8, 24, 38, 0) 35%); } }
.subsection__body { position: relative; z-index: 1; display: flex; flex-direction: column; padding: 28px 24px 22px; max-width: 30em; min-height: 280px; }
.subsection__count { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--label-on-dark); }
.subsection__t { margin-top: 10px; font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.1; }
.subsection__p { margin-top: 10px; font-size: 16.5px; line-height: 1.55; color: var(--muted-on-dark); }
.subsection .textlink { margin-top: auto; padding-top: 16px; align-self: flex-start; }
@media (min-width: 900px) { .subsections { grid-template-columns: 1fr 1fr; } }

.section--access { padding: 40px 0 44px; }
.access { display: grid; gap: 12px 56px; grid-template-columns: 1fr; }
.access p { margin: 0 0 10px; font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 42em; }
.access .access__note { font-size: 15px; color: var(--ink-3); }
.access .btn { margin-top: 8px; }
@media (min-width: 900px) { .access { grid-template-columns: 300px minmax(0, 1fr); } }

/* catalog */
.section--catalog { padding-top: 24px; }
.tabs { display: flex; gap: 0 28px; margin: 0; padding: 0; list-style: none; border-bottom: 1px solid #26394d; overflow-x: auto; }
.tabs a { display: flex; align-items: center; gap: 8px; min-height: 52px; white-space: nowrap; text-decoration: none; color: var(--muted-on-dark); font-size: 16px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current="page"] { color: var(--white); border-bottom-color: var(--gold-line); }
.tabs a:hover { color: var(--white); }
.toolbar { display: grid; grid-template-columns: 1fr; gap: 14px 18px; margin-top: 22px; align-items: end; }
.toolbar__field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.toolbar--dark label { color: var(--muted-on-dark); }
.toolbar .search-input { position: relative; display: block; }
.toolbar .search-input svg { position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: #7c8894; pointer-events: none; }
.toolbar input[type=search], .toolbar select {
  width: 100%; min-height: 48px; padding: 0 14px; font-size: 16px; border: 1px solid #b9b9b0; background: #fff; color: var(--ink); border-radius: 0;
}
.toolbar input[type=search] { padding-left: 40px; }
.toolbar--dark input[type=search], .toolbar--dark select { background: #0c2235; border-color: #2c4359; color: var(--white); }
.toolbar--dark input::placeholder { color: #7c8894; }
.toolbar input:focus, .toolbar select:focus { outline: 2px solid var(--gold-line); outline-offset: 0; }
.on-light .toolbar input:focus, .on-light .toolbar select:focus { outline-color: var(--navy-ink); }
.toolbar__meta { display: flex; align-items: center; gap: 16px; min-height: 48px; flex-wrap: wrap; }
.toolbar__count { font-size: 15px; color: var(--label-on-light); }
.toolbar--dark .toolbar__count { color: var(--muted-on-dark); }
@media (min-width: 768px) { .toolbar { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; } }

.rgrid { display: grid; grid-template-columns: 1fr; gap: 44px 28px; margin-top: 28px; transition: opacity 160ms var(--ease); }
.rgrid.is-updating, .media-list.is-updating { opacity: .35; }
.rg { display: flex; flex-direction: column; max-width: 440px; }
.rg__cover { display: block; padding: 0; border: 0; background: #0b2033; cursor: pointer; overflow: hidden; outline-offset: 4px; }
.rg__cover img { display: block; width: 100%; height: auto; aspect-ratio: 271 / 115; object-fit: cover; transition: transform 600ms var(--ease); }   /* 13.10: the illustration frame, as on the home page */
.rg__cover:hover img { transform: scale(1.025); }
.rg__meta { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: #9fabb6; }
.rg__meta i { width: 1px; height: 11px; background: #4e6175; }
.rg h3 { margin: 6px 0 0; font-family: var(--serif); font-weight: 500; font-size: 23px; line-height: 1.2; color: var(--white); }
.rg__sub { margin: 6px 0 0; font-size: 15.5px; line-height: 1.45; color: var(--muted-on-dark); }
.rg__note { margin: 8px 0 0; font-size: 14.5px; color: var(--gold); }
.rg__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 16px; }
.rg__actions .btn { min-height: 46px; padding: 0 18px; }
@media (min-width: 768px) { .rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rg { max-width: none; } }
.empty { margin-top: 28px; padding: 28px 24px; border: 1px dashed #b9b9b0; text-align: left; }
.empty p { margin: 0 0 14px; font-size: 17px; }
.empty--dark { border-color: #2c4359; color: var(--muted-on-dark); }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; margin-top: 44px; padding-top: 18px; border-top: 1px solid #26394d; }
.pager__nums { display: flex; gap: 6px; }
.pager__num { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--muted-on-dark); text-decoration: none; border: 1px solid transparent; font-size: 16px; }
.pager__num:hover { border-color: #3a5470; color: var(--white); }
.pager__num[aria-current="page"] { border-color: var(--gold-line); color: var(--white); font-weight: 600; }
.pager__step { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 6px; color: var(--gold); text-decoration: none; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; }
.pager__step:hover .arr { transform: translateX(3px); }
.pager__step:hover .arr--l { transform: translateX(-3px); }

/* media */
.media-list { display: grid; grid-template-columns: 1fr; gap: 0 32px; margin-top: 24px; transition: opacity 160ms var(--ease); }
.mitem { display: flex; flex-direction: column; padding: 22px 0 24px; border-top: 1px solid #cfd1cc; }
/* outlet logo: a source label in a fixed 140×40 slot (120×32 on phones); sizes are set per logo in the markup
   so different marks look equally heavy. Logos for dark backgrounds sit on their outlet's own header colour. */
.mitem__logo { display: flex; align-items: center; height: 40px; margin: 0 0 10px; }
.mitem__mark { display: inline-flex; align-items: center; }
.mitem__mark img { display: block; width: var(--lw); height: var(--lh); object-fit: contain; object-position: left center; }
.mitem__mark--plate { padding: 6px 10px; background: var(--plate); border-radius: 2px; }
@media (max-width: 640px) {
  .mitem__logo { height: 32px; }
  .mitem__mark img { width: calc(var(--lw) * .857); height: calc(var(--lh) * .857); }
  .mitem__mark--plate { padding: 4px 8px; }
}
.mitem__top { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.mitem__outlet { font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink); }
.mitem__top time { color: var(--label-on-light); white-space: nowrap; }
.mitem__title { margin: 10px 0 0; font-family: var(--serif); font-weight: 500; font-size: 23px; line-height: 1.22; color: var(--ink); }
.mitem__title a { text-decoration: none; }
.mitem__title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.mitem__lang { margin: 6px 0 0; font-size: 14px; font-style: italic; color: var(--label-on-light); }
.mitem__kind { margin: 10px 0 0; font-size: 13px; letter-spacing: .04em; color: var(--label-on-light); }
.mitem__desc { margin: 4px 0 0; font-size: 16px; line-height: 1.55; color: var(--ink-3); }
.mitem .textlink { margin-top: auto; padding-top: 10px; align-self: flex-start; }
.media-list--single { grid-template-columns: 1fr; max-width: 44em; }
.media-list--single .mitem { border-top: 1px solid #cfd1cc; border-bottom: 1px solid #cfd1cc; }
.media-note { font-size: 15px; line-height: 1.55; color: var(--label-on-light); margin-top: 26px; max-width: 46em; }
.h2-sm { font-size: 26px !important; }
@media (min-width: 768px) { .media-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .media-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } .media-list--single { grid-template-columns: 1fr; } }

/* contact */
.section--contact { padding: 40px 0 48px; }
.contact__label { margin: 0; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--label-on-light); }
.contact__mail { margin: 8px 0 0; font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 7vw, 44px); line-height: 1.1; color: var(--ink); overflow-wrap: anywhere; user-select: all; }
.contact .cta-row { margin-top: 20px; }
.contact__more { margin: 26px 0 0; padding-top: 18px; border-top: 1px solid #d0d2cd; font-size: 16.5px; line-height: 1.55; color: var(--ink-2); max-width: 44em; }
.contact__more .textlink { margin-left: 4px; }

/* privacy, credits */
.doc { max-width: 44em; font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.doc h2 { margin: 30px 0 8px; font-size: 25px; }
.doc p { margin: 0 0 12px; }
.doc .updated { font-size: 15px; color: var(--label-on-light); }
.credits { list-style: none; margin: 24px 0 0; padding: 0; }
.credits li { padding: 18px 0; border-top: 1px solid #d0d2cd; }
.credit__used { margin: 0; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink); }
.credit__title { margin: 6px 0 8px; font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.25; color: var(--ink); overflow-wrap: anywhere; }
.credits dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 0; font-size: 15.5px; }
.credits dt { color: var(--label-on-light); }
.credits dd { margin: 0; overflow-wrap: anywhere; }

/* 404 */
.nf { background: var(--navy-research); padding: 80px 0 96px; min-height: 52vh; }
.nf h1 { margin: 16px 0 0; font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 7vw, 60px); line-height: 1.05; color: var(--white); }
.nf p { margin: 14px 0 0; font-size: 18px; color: var(--muted-on-dark); max-width: 34em; }
.nf p a { color: var(--gold); }

/* ---------- dialog ---------- */
dialog.dlg {
  border: 0; padding: 0; width: min(720px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain;
  background: var(--paper-2); color: var(--ink); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25);
}
dialog.dlg[open] { animation: dlg-in 220ms var(--ease); }
dialog.dlg::backdrop { background: rgba(2, 9, 16, .8); animation: fade-in 220ms var(--ease); }
.dlg__inner { position: relative; padding: 0 24px 26px; }
.dlg__top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -24px; padding: 8px 8px 8px 24px; background: var(--paper-2); border-bottom: 1px solid #e0ded6; }
.dlg__label { margin: 0; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); font-weight: 600; }
.dlg__close { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; color: var(--ink); font-size: 30px; line-height: 1; transition: background-color var(--t-fast); }
.dlg__close:hover { background: rgba(10, 29, 48, .07); }
.dlg__view { padding-top: 20px; }
.dlg h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 5vw, 32px); line-height: 1.12; outline: none; }
.dlg__sub { margin: 6px 0 0; font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.3; color: var(--ink-2); }
.dlg__meta { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 16px 0 0; padding-top: 12px; border-top: 1px solid #dcdbd2; font-size: 15px; color: var(--ink-3); }
.dlg__meta dt { font-weight: 600; } .dlg__meta dt::after { content: ":"; } .dlg__meta dd { margin: 0; }
.dlg__partner { margin: 6px 0 0; font-size: 15px; color: var(--ink-3); }
.dlg__desc { margin: 14px 0 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.dlg__intro { margin: 8px 0 0; font-size: 16px; color: var(--ink-3); }
.dlg__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 22px; }
.dlg__lang { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--navy-ink); font-size: 15px; }
.dlg__view--ok { text-align: left; }
/* details -> form -> confirmation: the outgoing view fades on top while the new one rises into place */
.dlg__view.is-leaving { position: absolute; left: 24px; right: 24px; opacity: 0; pointer-events: none; transition: opacity 120ms ease-in; }
.dlg__view.is-entering { animation: view-in 220ms var(--ease-out) both; }
.ok-icon { width: 48px; height: 48px; color: var(--ok); margin-bottom: 12px; }
.ok-icon path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 420ms 120ms var(--ease) forwards; }
.ok-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid #dcdbd2; font-size: 16px; }
.ok-list dt { color: var(--ink-3); } .ok-list dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }

/* ---------- form ---------- */
.form { display: grid; gap: 16px; margin-top: 18px; }
.field { margin: 0; }
.field label, .field legend { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 600; color: var(--ink); }
.opt { font-weight: 400; color: var(--ink-3); }
.field input[type=text], .field input[type=email], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #a9a99f; background: #fff; color: var(--ink); font-size: 16px; border-radius: 0;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-ink); box-shadow: 0 0 0 2px var(--navy-ink); }
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field__err { margin: 6px 0 0; font-size: 14.5px; color: var(--error); }
.field__err:empty { display: none; }
fieldset.field { border: 0; padding: 0; }
.radios { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.radios label { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 400; font-size: 16px; margin: 0; cursor: pointer; }
.radios input, .consent__label input { width: 20px; height: 20px; accent-color: var(--navy-ink); margin: 0; flex: none; }
.consent__label { display: grid !important; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-weight: 400 !important; font-size: 15px !important; line-height: 1.45; color: var(--ink-2) !important; cursor: pointer; }
.consent__label input { margin-top: 1px; }
.consent__label a { color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__summary { padding: 14px 16px; border-left: 3px solid var(--error); background: #f7e5e1; color: #6e1c13; outline: none; }
.form__summary p { margin: 0 0 6px; font-weight: 600; }
.form__summary ul { margin: 0; padding-left: 18px; }
.form__summary a { color: inherit; }
.form__status { margin: 0; padding: 12px 14px; font-size: 15.5px; outline: none; }
.form__status:empty { display: none; }
.form__status.is-busy { background: #e8ebef; color: #23303e; }
.form__status.is-err { background: #f6e3df; color: #7a1f14; }
.form__status a { color: inherit; font-weight: 600; }
.spinner { display: none; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 700ms linear infinite; }
.is-sending .spinner { display: inline-block; }
.is-sending .arr { display: none; }

/* ---------- back to top ---------- */
.totop {
  position: fixed; z-index: 25; right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom));
  display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--navy-ink); color: #f3e6c8; box-shadow: 0 0 0 1px rgba(255, 255, 255, .28), 0 6px 18px rgba(2, 9, 16, .32);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 0s linear 200ms, background-color var(--t-fast);
}
.totop.is-shown { opacity: 1; visibility: visible; transform: none; transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 0s, background-color var(--t-fast); }
.totop:hover { background: #17324d; }
.totop:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.totop__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.totop__ring circle { fill: none; stroke-width: 2; }
.totop__track { stroke: rgba(226, 191, 124, .22); }
.totop__bar { stroke: var(--gold-line); stroke-dasharray: 100; stroke-dashoffset: 100; }
.totop__arr { position: relative; width: 14px; height: 16px; transition: transform var(--t-fast) var(--ease); }
.totop:hover .totop__arr { transform: translateY(-2px); }
@media (min-width: 768px) { .totop { width: 48px; height: 48px; right: 24px; bottom: 24px; } }

/* ---------- cookie notice (shown until the visitor accepts or declines) ---------- */
.consent-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 26; padding-bottom: env(safe-area-inset-bottom);
  background: var(--navy-header); color: var(--text-on-dark); border-top: 1px solid var(--gold-line); box-shadow: 0 -8px 24px rgba(2, 9, 16, .35);
}
.consent-bar.is-entering { animation: bar-in 280ms var(--ease-out) both; }
.consent-bar .consent-bar__in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-top: 16px; padding-bottom: 16px; }
.consent-bar p { flex: 1 1 28em; margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--text-on-dark); }
.consent-bar p a { color: var(--gold); }
.consent-bar__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent-bar .btn { min-height: 44px; padding: 0 22px; }
@media (max-width: 480px) { .consent-bar__actions { width: 100%; } .consent-bar .btn { flex: 1; } }

/* ---------- motion ---------- */
@keyframes bar-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes ink-in { from { color: transparent; } }
@keyframes line-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes settle { from { scale: 1.04; } to { scale: 1; } }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes dlg-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* hero, one sequence under 1.3 s: gold line 0–400 ms, heading lines 120–900 ms, text and button from 420 ms,
   photo settles over 1.1 s. Pure CSS, so a script error can never leave the hero hidden; the button is clickable at once. */
.js .hero__img { animation: settle 1100ms var(--ease-out) both; }
.js .hero .eyebrow { animation: ink-in 360ms 140ms var(--ease) both; }
.js .hero .eyebrow::before { transform-origin: left center; animation: line-draw 400ms var(--ease-out) both; }
/* fallback only when the script is late or fails: it starts after the script would have split the heading */
.js .hero h1 { animation: rise 700ms 600ms var(--ease-out) both; }
.js .hero h1.is-split, .js .hero h1.is-done { animation: none; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero h1 .ln > span { display: block; animation: line-up 700ms var(--ease-out) both; animation-delay: calc(120ms + var(--li, 0) * 80ms); }
.js .hero__lead { animation: rise 520ms 420ms var(--ease-out) both; }
.js .hero .btn { animation: rise 520ms 520ms var(--ease-out) both; }
.js .hero__caption { animation: rise 520ms 640ms var(--ease-out) both; }

/* section reveals (classes are added by the script only for blocks below the fold, then removed) */
.js .rv { transition: opacity 480ms var(--ease-out), transform 520ms var(--ease-out), clip-path 560ms var(--ease-out), color 420ms var(--ease);
  transition-delay: var(--d, 0ms); }
.js .rv--fade.rv-pending { opacity: 0; transform: translateY(16px); }
/* headings: the text rises inside the heading's own box (the box itself is never clipped, so it is detected
   as on screen exactly where it is) */
.js .rv--title { overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.js .rv--title > .rv-in { display: block; transition: transform 600ms var(--ease-out) var(--d, 0ms), opacity 420ms var(--ease-out) var(--d, 0ms); }
.js .rv--title.rv-pending > .rv-in { opacity: 0; transform: translateY(105%); }
.js .rv--line::before { transform-origin: left center; transition: transform 600ms var(--ease-out) var(--d, 0ms); }
.js .rv--line.rv-pending { color: transparent; }
.js .rv--line.rv-pending::before { transform: scaleX(0); }
.js .rv--photo { clip-path: inset(0); }
.js .rv--photo.rv-pending { clip-path: inset(7% 5% 7% 5%); }
.js .rv--photo img { transition: transform 900ms var(--ease-out) var(--d, 0ms); }
.js .rv--photo.rv-pending img { transform: scale(1.07); }
.js .rv-now, .js .rv-now::before, .js .rv-now img, .js .rv-now > .rv-in { transition: none !important; }
/* search and filter results arrive with a short rise; focus stays in the search field */
.is-in { animation: view-in 220ms var(--ease-out) both; animation-delay: calc(var(--k, 0) * 30ms); }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 220ms; animation-timing-function: var(--ease); }
.site-header { view-transition-name: site-header; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-property: color, background-color, border-color, opacity !important; transition-duration: 1ms !important; }
  .spinner { animation: spin 700ms linear infinite !important; }
  .tile:hover .tile__media img, .tile:focus-visible .tile__media img, .card:hover .card__img, .rcard:hover .rcard__img, .rg__cover:hover img { transform: none; }
  .ok-icon path, .copy-ok path { stroke-dashoffset: 0; }
  .totop, .totop.is-shown { transform: none; }
  @view-transition { navigation: none; }
}

/* =====================================================================
   >= 1280px: home follows the cdr.png geometry (reference units)
   ===================================================================== */
@media (min-width: 1280px) {
  /* --sbw = classic scrollbar width, measured in <head>; without it 100vw would overflow by the scrollbar */
  :root { --u: min(calc((100vw - var(--sbw, 0px)) / 941), 1.6px); }
  .btn { min-height: 0; height: 46px; padding: 0 24px; gap: 14px; font-size: 13px; letter-spacing: .13em; font-weight: 600; border-width: 1px; }
  .btn .arr { width: 18px; height: 12px; }
  .wrap { max-width: none; width: calc(941 * var(--u)); padding: 0 calc(48 * var(--u)) 0 calc(49 * var(--u)); }
  body { font-size: 18px; }

  /* header */
  .site-header { border-bottom: calc(2 * var(--u)) solid #22344a; }
  .header-bar { display: block; height: calc(53 * var(--u)); padding: 0; }
  /* the logo's left edge on the common content edge (calc(49 * var(--u)), as the sections below); centred in the calc(53 * var(--u)) bar */
  .brand { --lh: calc(40 * var(--u)); position: absolute; left: calc(49 * var(--u)); top: calc(6.5 * var(--u)); }              /* centred in the calc(53 * var(--u)) bar */
  /* right edge pinned calc(65.6 * var(--u)) before the divider, as in the reference (the menu has 4 items since 08.10) */
  .nav { position: absolute; right: calc(231.6 * var(--u)); top: calc(21.3 * var(--u)); margin: 0; }
  .nav ul { gap: calc(25.9 * var(--u)); }
  .nav a { font-size: calc(11 * var(--u)); line-height: 1; padding: 0 0 calc(4 * var(--u)); }   /* cdr.png: «Research» 9 px high at 941 */
  .header-rule { position: absolute; left: calc(775 * var(--u)); top: calc(14 * var(--u)); width: calc(1 * var(--u)); height: calc(26 * var(--u)); margin: 0; }
  .header-bar > .lang { position: absolute; left: calc(796 * var(--u)); top: calc(12.5 * var(--u)); gap: calc(6 * var(--u)); font-size: calc(7.6 * var(--u)); letter-spacing: calc(2.2 * var(--u)); }
  .header-bar > .lang a, .header-bar > .lang .lang__cur { min-height: calc(28 * var(--u)); min-width: calc(28 * var(--u)); }
  .header-bar > .lang .lang__cur { border-bottom-width: calc(1.5 * var(--u)); }
  .header-bar > .lang i { height: calc(9 * var(--u)); }

  /* eyebrow & links (reference metrics) */
  .eyebrow { font-size: calc(7.77 * var(--u)); letter-spacing: calc(3.95 * var(--u)); line-height: 1; }
  .eyebrow::before { width: calc(36 * var(--u)); height: calc(2 * var(--u)); margin-right: calc(22 * var(--u)); }
  .on-light .eyebrow::before { width: calc(37 * var(--u)); margin-right: calc(29 * var(--u)); }
  .textlink { gap: calc(12 * var(--u)); min-height: 0; font-size: calc(9.3 * var(--u)); letter-spacing: calc(1.43 * var(--u)); }
  .textlink > span { border-bottom-width: calc(1 * var(--u)); padding-bottom: calc(1.6 * var(--u)); }
  .arr { width: calc(12 * var(--u)); height: calc(8 * var(--u)); }

  /* hero */
  /* 13.10: the height follows the content (at least the reference's calc(352 * var(--u))); the picture fills it, the fortress kept whole on the right */
  /* 13.10 (Valeria, 2nd): the picture at its own scale (as tall as the first screen), the WHOLE fortress on the right: the fortress' right
     end (the wall by the gate, x 1950 of 2172 = 89.8 % of the picture) sits 2vw before the screen's right edge — translateX(10.2 %) moves
     the picture by its own width, so this holds for any height; the fortress' left part may lie behind the heading. The room this opens on
     the left is the picture's own left-edge colours continued as a soft gradient (night sky above, dark hills below), the picture
     fading into it — no strip, no hard edge; the right wing may run past the screen edge. UA heading is wider than EN, so UA moves more. */
  .hero { height: auto; min-height: calc(352 * var(--u)); border-bottom-width: calc(1 * var(--u));
    background: linear-gradient(180deg, rgb(14, 24, 43) 0%, rgb(13, 23, 41) 20%, rgb(16, 26, 44) 35%, rgb(7, 15, 27) 50%, rgb(10, 16, 29) 65%, rgb(6, 12, 24) 80%, rgb(7, 13, 24) 100%); }
  .hero__img { position: absolute; top: 0; left: auto; right: 2vw; height: 100%; width: auto; max-width: none; max-height: none; object-fit: cover;
    transform: translateX(10.2%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%); mask-image: linear-gradient(90deg, transparent 0, #000 14%); }
  /* deep navy, dense on the left under the text, clear on the right over Big Ben; a low band at the bottom for the caption */
  /* + a soft darkening around the caption at the bottom right (the lit reflections in the river are under it) */
  /* 13.10: the whole fortress on the right — its left part and the bright sky now lie behind the text: a soft navy oval behind the text
     block + a band at the top-left for the label; the right side (the fortress) stays clear; a soft spot under the caption */
  .hero::after { height: auto; inset: 0;
    background: radial-gradient(28% 40% at 84% 88%, rgba(5, 15, 28, .7) 0%, rgba(5, 15, 28, .45) 55%, rgba(5, 15, 28, 0) 100%),
    radial-gradient(58% 80% at 22% 58%, rgba(5, 15, 28, .7) 0%, rgba(5, 15, 28, .58) 48%, rgba(5, 15, 28, .22) 76%, rgba(5, 15, 28, 0) 100%),
    linear-gradient(180deg, rgba(5, 15, 28, .6) 0%, rgba(5, 15, 28, 0) 36%),
    linear-gradient(90deg, rgba(5, 15, 28, .5) 0%, rgba(5, 15, 28, .3) 30%, rgba(5, 15, 28, 0) 50%); }
  /* eyebrow, heading, lead and button one after another (13.10): a longer heading or lead only makes the block taller, never overlaps */
  .hero .wrap { height: auto; padding: calc(49.5 * var(--u)) calc(48 * var(--u)) calc(44 * var(--u)) calc(49 * var(--u)); display: flex; flex-direction: column; align-items: flex-start; }
  .hero .eyebrow { position: static; margin: 0; }
  .hero h1 { position: static; margin: calc(21.7 * var(--u)) 0 0; max-width: calc(680 * var(--u)); font-size: calc(48.5 * var(--u)); line-height: calc(48 * var(--u)); letter-spacing: calc(-0.15 * var(--u)); }
  .hero__lead { position: static; margin: 28px 0 0; width: calc(415 * var(--u)); max-width: calc(415 * var(--u)); font-size: calc(15.25 * var(--u)); line-height: calc(20.3 * var(--u)); }
  .hero .btn { position: static; margin: 24px 0 0; width: auto; min-width: calc(135 * var(--u)); height: calc(32 * var(--u)); padding: 0 calc(18 * var(--u)) 0 calc(16.5 * var(--u));
    justify-content: space-between; gap: calc(16 * var(--u)); font-size: calc(8.4 * var(--u)); letter-spacing: calc(1.1 * var(--u)); }
  /* 13.10 (Valeria): the caption moves to the right edge of the content (it stood over the fortress' walls) */
  .hero__caption { position: absolute; left: auto; right: calc(48 * var(--u)); bottom: calc(29 * var(--u)); margin: 0; padding: calc(1 * var(--u)) 0 calc(4 * var(--u)) calc(18 * var(--u)); border-left-width: calc(2 * var(--u)); font-size: calc(8.1 * var(--u)); letter-spacing: calc(2.25 * var(--u)); line-height: calc(15 * var(--u)); }
  html[lang="uk"] .hero__caption { letter-spacing: calc(1.9 * var(--u)); }

  /* tiles */
  /* tiles always span the full section: three equal columns. Up to 1505px wide this is exactly the calc(313 * var(--u))
     reference geometry; on wider screens each tile grows and its text block is centred in the extra width (--tx). */
  .tiles { grid-template-columns: 1fr calc(1 * var(--u)) 1fr calc(1 * var(--u)) 1fr; height: calc(209 * var(--u)); --tx: max(0px, (100vw - var(--sbw, 0px) - calc(941 * var(--u))) / 6); }
  .tile, .tile__body { min-height: 0; height: calc(209 * var(--u)); }
  .tile__body { padding: calc(34.8 * var(--u)) calc(26 * var(--u)) calc(30 * var(--u)) 0; }
  .tile:nth-of-type(1) .tile__body { padding-left: calc(calc(34 * var(--u)) + var(--tx)); }
  .tile:nth-of-type(2) .tile__body { padding-left: calc(calc(32 * var(--u)) + var(--tx)); }
  .tile:nth-of-type(3) .tile__body { padding-left: calc(calc(30 * var(--u)) + var(--tx)); }
  .tile::after { background: linear-gradient(90deg, rgba(5, 15, 28, .9) 0%, rgba(5, 15, 28, .8) 38%, rgba(5, 15, 28, .38) 62%, rgba(5, 15, 28, .08) 85%, rgba(5, 15, 28, 0) 100%); }
  .tile__num { font-size: calc(9.3 * var(--u)); letter-spacing: calc(1.38 * var(--u)); line-height: 1; }
  .tile__num::after { width: calc(28 * var(--u)); height: calc(1.4 * var(--u)); margin-left: calc(13 * var(--u)); }
  .tile__t { margin-top: calc(13.5 * var(--u)); font-size: calc(21.2 * var(--u)); line-height: calc(22 * var(--u)); width: calc(230 * var(--u)); }
  .tile__p { margin-top: calc(12 * var(--u)); font-size: calc(11.96 * var(--u)); line-height: calc(16 * var(--u)); width: calc(172 * var(--u)); }
  .tile .textlink { padding-top: 0; }
  .tile .textlink { margin-top: auto; }

  /* our work (cdr.png: eyebrow calc(50 * var(--u)) / calc(31 * var(--u)), heading calc(51.5 * var(--u)) / calc(47 * var(--u)) calc(45.3 * var(--u)), intro calc(387.5 * var(--u)) / calc(33.5 * var(--u)), calc(420 * var(--u)) wide, link right calc(48 * var(--u)), cards
     from calc(49 * var(--u)), calc(844 * var(--u)) wide, calc(15 * var(--u)) apart). The real intro and the four directions are longer than the demo: the header is in normal
     flow (the cards start under whichever is lower), the four cards share one row (one subgrid: photos, titles, descriptions and
     links of the row on common lines). */
  .ourwork { padding: 0 0 calc(22 * var(--u)); border-bottom-width: calc(2 * var(--u)); }
  .ourwork .wrap { padding: 0; }
  /* the left column as wide as the heading in one line (as «Our Work»), never narrower than the reference's calc(337.5 * var(--u)) */
  .ourwork__head { display: grid; grid-template-columns: minmax(calc(337.5 * var(--u)), max-content) minmax(0, 1fr); margin: 0 calc(48 * var(--u)) 0 calc(50 * var(--u)); padding-top: calc(31 * var(--u)); }
  .ourwork__title { padding-right: calc(12 * var(--u)); }
  .ourwork .eyebrow { margin: 0; }
  .ourwork h2 { margin: calc(8.2 * var(--u)) 0 0 calc(1.5 * var(--u)); font-size: calc(45.3 * var(--u)); line-height: 1; white-space: nowrap; }
  .ourwork__side { display: flex; flex-direction: column; align-items: flex-start; padding-top: calc(2.5 * var(--u)); }
  .ourwork__intro { margin: 0; max-width: calc(420 * var(--u)); font-size: calc(13.11 * var(--u)); line-height: calc(17.9 * var(--u)); }
  .ourwork__all { align-self: flex-end; margin: calc(8 * var(--u)) 0 0; letter-spacing: calc(.9 * var(--u)); }
  .cards { margin: calc(16 * var(--u)) 0 0 calc(49 * var(--u)); padding-top: 0; width: calc(844 * var(--u)); grid-template-columns: calc(272 * var(--u)) calc(271 * var(--u)) calc(271 * var(--u)); column-gap: calc(15 * var(--u)); row-gap: 0; }
  .card__img { aspect-ratio: auto; height: calc(136 * var(--u)); }
  /* six cards: the reference's columns (calc(272 * var(--u)) / calc(271 * var(--u)) / calc(271 * var(--u)), calc(15 * var(--u)) apart), two rows calc(26 * var(--u)) apart; 2:1 photos as in cdr.png */
  .cards--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }            /* three equal columns: the photos of a row equally tall */
  .cards--6 .card { padding-bottom: calc(26 * var(--u)); }
  .cards--6 .card:nth-child(n + 4) { padding-bottom: 0; }
  .cards--6 .card__img { height: auto; aspect-ratio: auto; }
  .cards--6 .card .textlink { margin-top: calc(12 * var(--u)); }
  .card__t { margin: calc(6.5 * var(--u)) 0 0 calc(1.5 * var(--u)); font-size: calc(18 * var(--u)); line-height: calc(20 * var(--u)); }
  .card__p { margin: calc(6.5 * var(--u)) 0 0 calc(1 * var(--u)); font-size: calc(11.24 * var(--u)); line-height: calc(15 * var(--u)); width: auto; max-width: calc(262 * var(--u)); }
  .card .textlink { margin: calc(12 * var(--u)) 0 0 calc(1 * var(--u)); }

  /* selected research */
  .selected { padding: 0 0 calc(20 * var(--u)); border-top-width: calc(1 * var(--u)); border-bottom-width: calc(1 * var(--u)); }
  .selected .wrap { padding: 0; }
  .selected .eyebrow { position: absolute; left: calc(50 * var(--u)); top: calc(26.5 * var(--u)); }
  .selected h2 { position: absolute; left: calc(51.5 * var(--u)); top: calc(43 * var(--u)); margin: 0; font-size: calc(46 * var(--u)); line-height: 1; }
  .selected__all { position: absolute; right: calc(52 * var(--u)); top: calc(55.5 * var(--u)); margin: 0; }
  .rcards { margin: 0 0 0 calc(49 * var(--u)); padding-top: calc(108 * var(--u)); width: calc(844 * var(--u)); grid-template-columns: calc(271 * var(--u)) calc(271 * var(--u)) calc(271 * var(--u)); column-gap: calc(15.5 * var(--u)); row-gap: 0; }
  .rcard__img { width: calc(271 * var(--u)); margin: 0; }                                     /* the reference's photo: 271 x 115 */
  .rcard__meta { gap: calc(13 * var(--u)); margin: calc(12.5 * var(--u)) 0 0 calc(1 * var(--u)); font-size: calc(9.29 * var(--u)); letter-spacing: calc(.83 * var(--u)); line-height: 1; }
  .rcard__meta i { width: calc(1 * var(--u)); height: calc(10 * var(--u)); }
  .rcard h3 { margin: calc(6.5 * var(--u)) 0 0 calc(1 * var(--u)); font-size: calc(18.6 * var(--u)); line-height: calc(21 * var(--u)); }
  .rcard p { margin: calc(4 * var(--u)) 0 0 calc(1 * var(--u)); font-size: calc(11.8 * var(--u)); line-height: calc(17 * var(--u)); width: calc(262 * var(--u)); }
  .rcard .textlink { margin: calc(8 * var(--u)) 0 0 calc(1.5 * var(--u)); letter-spacing: calc(2.2 * var(--u)); }

  /* access banner */
  .gov { height: auto; }
  /* the whole board: as tall as the block, its own 3:1 shape, anchored right (never cut at top, bottom or right) */
  .gov__img { left: 0; right: auto; width: 100%; max-width: none; height: 100%; object-fit: cover; object-position: 50% 50%; }   /* flags of cdr.png */
  .gov::after { background: linear-gradient(90deg, rgba(4, 13, 21, .25) 0%, rgba(4, 13, 21, .12) 45%, rgba(4, 13, 21, 0) 60%); }
  .gov .wrap { padding: calc(40 * var(--u)) calc(48 * var(--u)) calc(44 * var(--u)) calc(61.5 * var(--u)); }
  .gov h2 { margin: 0; width: calc(520 * var(--u)); font-size: calc(29.4 * var(--u)); line-height: 1.1; }
  .gov__text { margin: calc(14 * var(--u)) 0 0; width: calc(385 * var(--u)); font-size: calc(11.9 * var(--u)); line-height: calc(16.3 * var(--u)); }
  .gov .btn { margin: calc(20 * var(--u)) 0 0; height: calc(31 * var(--u)); padding: 0 calc(16 * var(--u)) 0 calc(15.5 * var(--u)); gap: calc(12 * var(--u)); font-size: calc(8.4 * var(--u)); letter-spacing: calc(1.1 * var(--u)); }

  /* footer */
  .site-footer { border-top-width: calc(2 * var(--u)); }
  .site-footer .wrap { display: block; height: calc(95 * var(--u)); padding: 0; }
  .foot-brand { position: absolute; left: calc(48 * var(--u)); top: calc(22.5 * var(--u)); }
  .foot-brand b { font-size: calc(13.4 * var(--u)); letter-spacing: calc(.25 * var(--u)); line-height: 1; }
  .foot-brand span { margin-top: calc(10.5 * var(--u)); font-size: calc(11.3 * var(--u)); line-height: 1; }
  .foot-nav { position: absolute; left: calc(329.5 * var(--u)); top: calc(33.5 * var(--u)); gap: calc(27.5 * var(--u)); flex-wrap: nowrap; }
  .foot-nav a { font-size: calc(10.1 * var(--u)); line-height: 1; min-height: 0; }
  .foot-legal { position: absolute; left: calc(640 * var(--u)); top: calc(28 * var(--u)); flex-direction: column; gap: calc(7 * var(--u)); }
  .foot-legal a { font-size: calc(8.6 * var(--u)); line-height: 1; min-height: 0; }
  .foot-copy { position: absolute; left: calc(765 * var(--u)); top: calc(29 * var(--u)); font-size: calc(8.4 * var(--u)); line-height: calc(14 * var(--u)); }
  html[lang="uk"] .foot-copy { left: calc(790 * var(--u)); }

  /* inner pages at desktop scale */
  .page-head .wrap { padding: calc(30 * var(--u)) calc(48 * var(--u)) calc(32 * var(--u)) calc(49 * var(--u)); }
  .crumbs ol { font-size: calc(9.6 * var(--u)); }
  .page-head h1 { font-size: calc(40 * var(--u)); margin-top: calc(14 * var(--u)); }
  .page-head__lead { font-size: max(17px, calc(12.6 * var(--u))); max-width: calc(560 * var(--u)); }
  .page-head__note { font-size: max(16px, calc(11.4 * var(--u))); max-width: calc(560 * var(--u)); }
  .toc a { font-size: max(15px, calc(10.2 * var(--u))); }
  .section { padding: calc(36 * var(--u)) 0 calc(40 * var(--u)); }
  .section--tight { padding-top: 0; }
  .section h2 { font-size: calc(27 * var(--u)); }
  .split { grid-template-columns: calc(250 * var(--u)) minmax(0, 1fr); gap: calc(12 * var(--u)) calc(40 * var(--u)); padding-top: calc(22 * var(--u)); }
  .prose, .areas p, .items p, .access p, .doc { font-size: max(17px, calc(12.2 * var(--u))); }
  .areas h3, .items h3 { font-size: max(22px, calc(15.7 * var(--u))); line-height: 1.2; }   /* card titles: one size on all pages (11.10) */
  .subsections { gap: calc(18 * var(--u)); }
  .subsection, .subsection__body { min-height: calc(230 * var(--u)); }
  .subsection__t { font-size: calc(27 * var(--u)); }
  .subsection__p { font-size: max(16px, calc(11.4 * var(--u))); }
  .access { grid-template-columns: calc(250 * var(--u)) minmax(0, 1fr); gap: calc(12 * var(--u)) calc(40 * var(--u)); }
  .rgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(34 * var(--u)) calc(26 * var(--u)); }
  .rg h3 { font-size: max(22px, calc(15.7 * var(--u))); line-height: 1.2; }
  .rg__sub { font-size: max(15px, calc(10.8 * var(--u))); }
  .media-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 calc(26 * var(--u)); }
  .mitem__title { font-size: max(22px, calc(15.7 * var(--u))); line-height: 1.2; }
  .mitem__desc { font-size: max(15.5px, calc(11.2 * var(--u))); }
  .section--contact .wrap, .section--access .wrap { padding-top: 0; }
  .nf { padding: calc(70 * var(--u)) 0 calc(90 * var(--u)); }
}
