/* ============================================================================
   新疆中亚经济与环境研究所 (caiees.cn) — Architectural & Editorial Stylesheet
   Edition v10: Quiet, Refined Academic & Institutional Design
   ============================================================================ */

:root {
  /* Editorial Paper & Ink Palette */
  --paper: #fcfbf9;
  --white: #ffffff;
  --stone-bg: #f3f1ec;
  --ink-deep: #0f1622;
  --ink: #141c2b;
  --body: #344052;
  --muted: #5f6c80;
  --faint: #8b95a5;

  /* Architectural Rules & Borders */
  --hair: #e4e0d7;
  --hair-strong: #cec8ba;

  /* Institutional Accents */
  --accent: #1b365d;
  --accent-hover: #122644;
  --bronze: #8a6b43;
  --bronze-soft: rgba(138, 107, 67, 0.1);

  /* Typography — Windows & macOS High-Clarity Stacks */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Source Han Sans SC',
    'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
    'Segoe UI', sans-serif;
  --font-display-zh: 'Source Han Sans SC', 'Noto Sans SC', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-display-latin: 'Palatino Linotype', 'Book Antiqua', Georgia,
    'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Liberation Mono',
    Menlo, monospace;

  /* Layout & Spacing */
  --wrap: 1320px;
  --pad-x: clamp(24px, 4.5vw, 64px);
  --header-h: 88px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Reset & Base -------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.8;
  overflow-x: hidden;
}

:lang(zh-CN) h1,
:lang(zh-CN) h2,
:lang(zh-CN) h3 {
  font-family: var(--font-display-zh);
  font-weight: 600;
  letter-spacing: -0.01em;
}

:lang(en-GB) h1,
:lang(en-GB) h2,
:lang(ru-RU) h1,
:lang(ru-RU) h2 {
  font-family: var(--font-display-latin);
  font-weight: 600;
  letter-spacing: -0.015em;
}

:lang(en-GB) h3,
:lang(ru-RU) h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  line-height: 1.28;
}

p {
  margin: 0 0 1.15em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    background-color 0.2s var(--ease), opacity 0.2s var(--ease);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: #ffffff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---- Layout Containers & Sections ---------------------------------------- */
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--pad-x) * 2);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.section {
  padding: clamp(72px, 8.5vw, 120px) 0;
  border-bottom: 1px solid var(--hair);
}

.section-tight {
  padding: clamp(56px, 6.5vw, 96px) 0;
}

.section-stone {
  background-color: var(--stone-bg);
}

/* ---- Skip Link ----------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 24px;
  z-index: 999;
  padding: 10px 18px;
  background: var(--ink);
  color: #ffffff;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 16px;
}

/* ---- Single-Tier Sticky Header ------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(252, 251, 249, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hair);
  transition: box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(252, 251, 249, 0.98);
  box-shadow: 0 4px 24px rgba(20, 28, 43, 0.04);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  flex-shrink: 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-emblem {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-emblem img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
  line-height: 1.25;
}

:lang(en-GB) .brand-title,
:lang(ru-RU) .brand-title {
  font-size: 0.95rem;
  letter-spacing: 0;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.015em;
  line-height: 1.3;
}

.brand-sub-ru {
  font-size: 0.7rem;
  color: var(--faint);
  line-height: 1.3;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  position: relative;
  padding: 6px 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--body);
  letter-spacing: 0.01em;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s var(--ease);
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link.is-active {
  color: var(--ink);
  font-weight: 600;
}

.nav-link.is-active::after {
  transform: scaleX(1);
}

.header-divider {
  width: 1px;
  height: 18px;
  background: var(--hair-strong);
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

.lang-link {
  padding: 2px 4px;
  color: var(--muted);
  font-weight: 500;
}

.lang-link:hover {
  color: var(--ink);
}

.lang-link.is-active {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--bronze);
}

.lang-sep {
  color: var(--hair-strong);
  font-size: 0.72rem;
}

/* ---- Mobile Menu Button & Drawer ----------------------------------------- */
.burger {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--hair-strong);
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s var(--ease);
}

.burger[aria-expanded='true'] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.burger[aria-expanded='true'] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.mobile-drawer {
  display: none;
  background: var(--paper);
  border-bottom: 1px solid var(--hair-strong);
  padding: 20px var(--pad-x) 28px;
}

.mobile-drawer.is-open {
  display: block;
}

.mnav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hair);
}

.mnav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 1rem;
  color: var(--ink);
  font-weight: 500;
}

.mnav-link.is-active {
  color: var(--accent);
  font-weight: 600;
}

.mnav-langs {
  display: flex;
  gap: 16px;
  margin-top: 18px;
}

.mnav-lang {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 4px 10px;
  border: 1px solid var(--hair-strong);
}

.mnav-lang.is-current {
  border-color: var(--ink);
  color: var(--ink);
  font-weight: 600;
}

/* ---- Editorial Primitives & Buttons -------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background-color: var(--bronze);
}

.ar,
.ic {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.22s var(--ease);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease),
    border-color 0.22s var(--ease);
}

.btn-primary {
  background-color: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.btn-primary:hover {
  background-color: var(--accent);
  border-color: var(--accent);
}

.btn-primary:hover .ar {
  transform: translateX(3px);
}

.btn-outline {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--hair-strong);
}

.btn-outline:hover {
  border-color: var(--ink);
  background-color: rgba(20, 28, 43, 0.03);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(27, 54, 93, 0.25);
}

.link-arrow:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.link-arrow:hover .ar {
  transform: translateX(3px);
}

.prose p {
  color: var(--body);
  font-size: 1.02rem;
  line-height: 1.85;
  margin-bottom: 1.25em;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* ---- Homepage Section 1: Asymmetric Hero & Panorama ---------------------- */
.hero {
  padding: clamp(56px, 6.5vw, 92px) 0 clamp(64px, 7vw, 100px);
  border-bottom: 1px solid var(--hair);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: end;
  padding-bottom: clamp(44px, 5vw, 68px);
}

.hero-title {
  font-size: clamp(2.15rem, 3.6vw, 3.25rem);
  line-height: 1.22;
  color: var(--ink);
  margin-bottom: 24px;
}

:lang(en-GB) .hero-title,
:lang(ru-RU) .hero-title {
  font-size: clamp(2rem, 3.3vw, 3rem);
  line-height: 1.2;
}

.hero-sub {
  font-size: clamp(1.02rem, 1.2vw, 1.125rem);
  line-height: 1.85;
  color: var(--body);
  max-width: 66ch;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-ledger {
  border-top: 1.5px solid var(--ink);
  padding-top: 4px;
}

.ledger-row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hair);
  align-items: baseline;
}

.ledger-code {
  font-family: var(--font-display-latin);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--bronze);
}

.ledger-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ledger-label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.ledger-val {
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
}

.landscape-band {
  width: 100%;
  aspect-ratio: 4.25 / 1;
  overflow: hidden;
  background: var(--stone-bg);
}

.landscape-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
}

.landscape-band-about {
  margin-top: clamp(44px, 5vw, 68px);
}

/* ---- Homepage Section 2: Numbered Horizontal Editorial Chapters ---------- */
.section-header-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  padding-bottom: clamp(36px, 4vw, 56px);
  border-bottom: 1.5px solid var(--ink);
}

.sh-left h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
}

.sh-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

.stream-list {
  display: flex;
  flex-direction: column;
}

.stream-chapter {
  display: grid;
  grid-template-columns: minmax(160px, 0.4fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(40px, 4.8vw, 64px) 0;
  border-bottom: 1px solid var(--hair);
  align-items: start;
}

.sc-index {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.sc-num {
  font-family: var(--font-display-latin);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--bronze);
  font-weight: 400;
}

.sc-tag {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.sc-body h3 {
  font-size: clamp(1.32rem, 1.8vw, 1.65rem);
  margin-bottom: 14px;
}

.sc-body h3 a:hover {
  color: var(--accent);
}

.sc-desc {
  font-size: 1rem;
  color: var(--body);
  line-height: 1.82;
  margin-bottom: 20px;
}

.sc-topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  padding: 18px 0 4px;
  margin-bottom: 20px;
  border-top: 1px solid var(--hair);
}

.sc-topics li {
  position: relative;
  padding-left: 14px;
  font-size: 0.94rem;
  color: var(--body);
  line-height: 1.55;
}

.sc-topics li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--bronze);
}

/* ---- Homepage Section 3: Mandate & Working Notes (Warm Stone) ------------ */
.mandate-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.ms-head h2 {
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  line-height: 1.3;
}

.mandate-notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.5vw, 48px);
  margin-top: clamp(44px, 5vw, 68px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--hair-strong);
}

.mandate-note {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mn-no {
  font-family: var(--font-display-latin);
  font-size: 1rem;
  font-style: italic;
  color: var(--bronze);
}

.mandate-note h3 {
  font-size: 1.1rem;
  color: var(--ink);
}

.mandate-note p {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ---- Homepage Section 4: Cooperation Band -------------------------------- */
.home-coop-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}

.hcg-left h2 {
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  margin-bottom: 18px;
}

.hcg-left p {
  font-size: 1rem;
  color: var(--body);
  line-height: 1.85;
  margin-bottom: 28px;
}

.hcg-right {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  border-top: 1.5px solid var(--ink);
  padding-top: 28px;
}

.hcc-no {
  display: block;
  font-family: var(--font-display-latin);
  font-size: 1.25rem;
  color: var(--bronze);
  margin-bottom: 8px;
}

.home-coop-col h3 {
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.hcc-list {
  border-top: 1px solid var(--hair);
}

.hcc-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 0.92rem;
  color: var(--body);
}

/* ---- Inner Page Hero & Breadcrumb ---------------------------------------- */
.page-hero {
  padding: clamp(44px, 5.5vw, 76px) 0 clamp(40px, 5vw, 64px);
  background-color: var(--stone-bg);
  border-bottom: 1px solid var(--hair);
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.breadcrumb a:hover {
  color: var(--ink);
}

.bc-sep {
  color: var(--hair-strong);
}

.page-hero-body {
  max-width: 860px;
}

.page-hero-body h1 {
  font-size: clamp(1.95rem, 3.2vw, 2.85rem);
  margin-bottom: 18px;
}

.page-hero-sub {
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  color: var(--body);
  line-height: 1.82;
  margin: 0;
}

/* ---- About Page: Facts Bar, Editorial Sections & Diptych ----------------- */
.facts-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 24px 0 36px;
  border-bottom: 1.5px solid var(--ink);
}

.fb-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 16px;
  border-right: 1px solid var(--hair);
}

.fb-item:last-child {
  border-right: none;
  padding-right: 0;
}

.fb-label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.fb-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}

.fb-val a {
  color: var(--accent);
  border-bottom: 1px solid rgba(27, 54, 93, 0.25);
}

.editorial-secs {
  display: flex;
  flex-direction: column;
}

.editorial-sec {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.45fr);
  gap: clamp(28px, 4.5vw, 64px);
  padding: clamp(36px, 4.5vw, 56px) 0;
  border-bottom: 1px solid var(--hair);
  align-items: start;
}

.es-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.es-num {
  font-family: var(--font-display-latin);
  font-size: 1.5rem;
  color: var(--bronze);
  line-height: 1.1;
}

.es-head h2 {
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
}

.es-link {
  margin-top: 20px;
}

/* ---- Research Page ------------------------------------------------------- */
.lead-block {
  padding-bottom: clamp(32px, 4vw, 48px);
  border-bottom: 1.5px solid var(--ink);
}

.lead-paragraph {
  font-size: clamp(1.05rem, 1.25vw, 1.18rem);
  color: var(--ink);
  line-height: 1.85;
  max-width: 82ch;
}

.anchor-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--hair);
}

.anchor-link {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--body);
}

.anchor-link:hover {
  color: var(--accent);
}

.al-no {
  font-family: var(--font-display-latin);
  color: var(--bronze);
  font-size: 0.95rem;
}

.research-detail-list {
  display: flex;
  flex-direction: column;
}

.research-detail-row {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.25fr);
  gap: clamp(32px, 4.5vw, 68px);
  padding: clamp(36px, 4.2vw, 56px) 0;
  border-bottom: 1px solid var(--hair-strong);
  align-items: start;
}

.rdr-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.rdr-left h2 {
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  margin-bottom: 22px;
}

.rdr-desc {
  font-size: 1.03rem;
  color: var(--body);
  line-height: 1.85;
  margin-bottom: 28px;
}

.rdr-topics-block {
  background: var(--stone-bg);
  border-top: 1.5px solid var(--ink);
  padding: 24px 28px;
}

.rdr-topics-block h3 {
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.rdr-topics-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
}

.rdr-topics-list li {
  position: relative;
  padding-left: 14px;
  font-size: 0.94rem;
  color: var(--ink);
  line-height: 1.55;
}

.rdr-topics-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bronze);
}

/* ---- Cooperation Page ---------------------------------------------------- */
.coop-groups {
  display: flex;
  flex-direction: column;
}

.coop-group {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.35fr);
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(44px, 5vw, 68px) 0;
  border-bottom: 1px solid var(--hair-strong);
  align-items: start;
}

.coop-group:last-child {
  border-bottom: none;
}

.cg-left h2 {
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  margin: 8px 0 14px;
}

.cg-intro {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.78;
}

.cg-right {
  display: flex;
  flex-direction: column;
}

.coop-row {
  padding: 28px 0;
  border-bottom: 1px solid var(--hair);
}

.coop-row:first-child {
  padding-top: 0;
}

.coop-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cr-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.cr-code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--bronze);
}

.cr-head h3 {
  font-size: 1.2rem;
}

.coop-row p {
  font-size: 0.98rem;
  color: var(--body);
  line-height: 1.82;
  margin-bottom: 16px;
}

/* ---- Contact Page -------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: clamp(36px, 5vw, 76px);
  align-items: start;
}

.ct-rows {
  margin: 32px 0;
  border-top: 1.5px solid var(--ink);
}

.ct-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hair);
}

.ct-label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.ct-val-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ct-val {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
}

.ct-phone {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
}

.ct-val a {
  color: var(--accent);
  border-bottom: 1px solid rgba(27, 54, 93, 0.3);
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 0.78rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--hair-strong);
  cursor: pointer;
}

.btn-copy:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.btn-copy.is-copied {
  color: var(--accent);
  border-color: var(--accent);
}

.matters-block h3 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.matters-list {
  border-top: 1px solid var(--hair);
}

.matter-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hair);
  text-align: left;
  font-size: 0.94rem;
  color: var(--body);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.matter-btn:hover {
  background-color: var(--stone-bg);
  color: var(--ink);
}

.matter-btn.is-selected {
  background-color: var(--stone-bg);
  color: var(--ink);
  font-weight: 600;
  border-left: 2px solid var(--bronze);
}

.cform {
  background: var(--white);
  border: 1px solid var(--hair-strong);
  border-top: 2px solid var(--ink);
  padding: clamp(28px, 4vw, 44px);
}

.cform-title {
  font-size: 1.35rem;
  margin-bottom: 24px;
}

.cform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.cf-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cf-wide {
  grid-column: 1 / -1;
}

.cf-field span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

.cf-field input,
.cf-field select,
.cf-field textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--paper);
  border: 1px solid var(--hair-strong);
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: 0;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
}

.cf-submit {
  width: 100%;
}

.cf-note {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ---- Legal & Privacy Prose ----------------------------------------------- */
.legal-prose {
  max-width: 780px;
}

.legal-intro {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--hair-strong);
}

.legal-sec {
  padding: 24px 0;
  border-bottom: 1px solid var(--hair);
}

.legal-sec:last-child {
  border-bottom: none;
}

.legal-sec h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

/* ---- Quiet Inquiries Band ------------------------------------------------ */
.inquiries-band {
  padding: 36px 0;
  background: var(--paper);
  border-bottom: 1px solid var(--hair);
}

.inquiries-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.inq-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 16px;
}

.inq-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.inq-mail {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--ink);
  border-bottom: 1px solid var(--hair-strong);
}

.inq-mail:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.inq-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* ---- Site Footer --------------------------------------------------------- */
.site-footer {
  background-color: var(--ink-deep);
  color: #c7cfd9;
  padding: clamp(56px, 6.5vw, 88px) 0 40px;
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.5fr) repeat(3, minmax(150px, 1fr));
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .brand-emblem img {
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.site-footer .brand-title {
  color: #ffffff;
}

.site-footer .brand-sub {
  color: #96a2b4;
}

.site-footer .brand-sub-ru {
  color: #7c899e;
}

.foot-scope {
  margin-top: 16px;
  font-size: 0.88rem;
  color: #96a2b4;
  max-width: 44ch;
  line-height: 1.7;
}

.foot-langs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 0.82rem;
}

.foot-lang {
  color: #96a2b4;
}

.foot-lang:hover,
.foot-lang.is-current {
  color: #ffffff;
}

.foot-lang.is-current {
  font-weight: 600;
  border-bottom: 1px solid var(--bronze);
}

.foot-sep {
  color: rgba(255, 255, 255, 0.22);
}

.foot-col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 16px;
}

.foot-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot-col a {
  font-size: 0.88rem;
  color: #96a2b4;
}

.foot-col a:hover {
  color: #ffffff;
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  font-size: 0.8rem;
  color: #7c899e;
}

.foot-copy,
.foot-beian {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.foot-bottom a:hover {
  color: #ffffff;
}

.foot-dot {
  color: rgba(255, 255, 255, 0.22);
}

/* ---- Long-Word Locales (English / Russian) Header Safety ------------------ */
.nav-link,
.lang-link,
.lang-switcher,
.nav-primary {
  white-space: nowrap;
}

.brand {
  min-width: 0;
  flex: 0 1 auto;
}

.header-right {
  flex-shrink: 0;
}

:lang(en-GB) .site-header .brand-title,
:lang(ru-RU) .site-header .brand-title {
  font-size: 0.86rem;
  line-height: 1.25;
  max-width: 400px;
}

:lang(ru-RU) .site-header .brand-title {
  font-size: 0.8rem;
  max-width: 380px;
}

:lang(en-GB) .site-header .brand-sub,
:lang(ru-RU) .site-header .brand-sub {
  display: none;
}

:lang(en-GB) .nav-primary,
:lang(ru-RU) .nav-primary {
  gap: 20px;
}

:lang(en-GB) .nav-link,
:lang(ru-RU) .nav-link {
  font-size: 0.86rem;
}

:lang(en-GB) .header-right,
:lang(ru-RU) .header-right {
  gap: 20px;
}

/* Switch to the drawer earlier where labels are long */
@media (max-width: 1260px) {
  :lang(en-GB) .header-right,
  :lang(ru-RU) .header-right {
    display: none;
  }

  :lang(en-GB) .burger,
  :lang(ru-RU) .burger {
    display: inline-flex;
  }
}

/* ---- Responsive Breakpoints ---------------------------------------------- */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .stream-chapter {
    grid-template-columns: 96px 1fr;
  }

  .mandate-split,
  .home-coop-grid,
  .research-detail-row,
  .coop-group,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .facts-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fb-item:nth-child(2) {
    border-right: none;
  }

  .foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .header-right {
    display: none;
  }

  .burger {
    display: inline-flex;
  }

  .section-header-split,
  .editorial-sec,
  .mandate-notes-grid,
  .hcg-right {
    grid-template-columns: 1fr;
  }

  .stream-chapter {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sc-index {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
  }

  .landscape-band {
    aspect-ratio: 3 / 1;
  }

  .sc-topics,
  .rdr-topics-list,
  .cform-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .landscape-band {
    aspect-ratio: 2 / 1;
  }

  :root {
    --header-h: 74px;
  }

  .brand-title {
    font-size: 0.96rem;
  }

  .brand-sub {
    font-size: 0.66rem;
  }

  .facts-bar,
  .foot-grid {
    grid-template-columns: 1fr;
  }

  .fb-item {
    border-right: none;
    padding-right: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--hair);
  }

  .fb-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}
/* Contact delivery states. */
.cf-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-consent { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0; font-size: 14px; line-height: 1.6; }
.cf-consent input { flex: 0 0 auto; margin-top: 5px; }
.cf-consent a { text-decoration: underline; }
.cf-status { margin: 16px 0; padding: 12px 14px; border: 1px solid currentColor; font-size: 14px; line-height: 1.6; }
.cf-status[data-state="error"] { color: #8b2525; }
.cf-status[data-state="success"] { color: #215c39; }
.cf-submit:disabled { opacity: .65; cursor: wait; }
