/* ============================================================
   Voices du Peuple — liquid glass / open sky  (v2)
   Cormorant (display) + Manrope (body) — Cyrillic-safe
   ============================================================ */

:root {
  --sky-top: #1873c8;
  --sky-mid: #4aa8ec;
  --sky-low: #cfeafb;
  --haze: #eef8fe;
  --ink: #0a1828;
  --white: #ffffff;
  --text-deep: #0e2a44;
  --glass-blur: 18px;
  --drift-mult: 1;
  --radius-lg: 28px;
  --radius-md: 22px;
  --font-display: "Cormorant", "Georgia", serif;
  --font-body: "Manrope", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: #1873c8; }
html[data-theme="dark"] { background: #0d1b2e; }
body {
  font-family: var(--font-body);
  color: var(--white);
  background: var(--sky-mid);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* fine film grain for a premium finish (no blend mode — cheaper to composite) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: url("assets/grain.png");
  opacity: 0.035;
  pointer-events: none;
  z-index: 60;
}

html[data-lang="en"] .ru { display: none; }
html[data-lang="ru"] .en { display: none; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ============ GLASS ============ */
.glass {
  background: linear-gradient(135deg, rgba(255,255,255,0.32) 0%, rgba(255,255,255,0.08) 100%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.50);
  box-shadow:
    0 12px 40px rgba(8, 58, 110, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.65),
    inset 0 -1px 0 rgba(255,255,255,0.10);
  border-radius: var(--radius-lg);
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 14px 10px 20px;
  border-radius: 999px;
  width: min(1080px, calc(100vw - 40px - env(safe-area-inset-left) - env(safe-area-inset-right)));
  justify-content: space-between;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
/* nav over light backgrounds — flips to deep text on bright glass */
.nav--on-light {
  background: linear-gradient(135deg, rgba(255,255,255,0.62) 0%, rgba(255,255,255,0.34) 100%);
  border-color: rgba(255,255,255,0.95);
  box-shadow: 0 12px 40px rgba(40, 110, 170, 0.14), inset 0 1px 0 rgba(255,255,255,0.95);
  color: var(--text-deep);
}
.nav--on-light .nav-links a:hover { background: rgba(14, 42, 68, 0.08); }
.nav--on-light .nav-links a.current { background: rgba(14, 42, 68, 0.10); }
.nav--on-light .nav-brand img { filter: invert(1); opacity: 0.8; }
.nav--on-light .lang-toggle {
  background: rgba(14, 42, 68, 0.06);
  border-color: rgba(14, 42, 68, 0.18);
}
.nav--on-light .lang-toggle button { color: rgba(14, 42, 68, 0.65); }
.nav--on-light .lang-toggle button.active {
  background: var(--text-deep);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(14, 42, 68, 0.3);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav-brand img { height: 30px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  padding: 8px 13px;
  border-radius: 999px;
  transition: background 0.25s ease;
  white-space: nowrap;
}
.nav-links a:hover { background: rgba(255,255,255,0.22); }
.nav-links a.current { background: rgba(255,255,255,0.26); }
.lang-toggle {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-toggle button {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.lang-toggle button.active {
  background: rgba(255,255,255,0.92);
  color: var(--text-deep);
  box-shadow: 0 2px 8px rgba(8,58,110,0.18);
}

/* ---- nav search button ---- */
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-search {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: inherit;
  cursor: pointer;
  transition: background 0.25s ease;
}
.nav-search:hover { background: rgba(255,255,255,0.35); }
.nav-search svg { width: 15px; height: 15px; display: block; }
.nav--on-light .nav-search, .assess-body .nav-search {
  background: rgba(14, 42, 68, 0.06);
  border-color: rgba(14, 42, 68, 0.18);
}
.nav--on-light .nav-search:hover, .assess-body .nav-search:hover { background: rgba(14, 42, 68, 0.12); }
.article-body .nav-search {
  background: rgba(46, 231, 135, 0.08);
  border-color: rgba(46, 231, 135, 0.25);
}
.article-body .nav-search:hover { background: rgba(46, 231, 135, 0.18); }

/* ---- mobile hamburger + dropdown menu (hidden until ≤640px) ---- */
.nav-burger {
  display: none;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 999px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: inherit;
  cursor: pointer;
  transition: background 0.25s ease;
}
.nav-burger span {
  display: block;
  width: 15px;
  height: 1.7px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.2s ease;
}
.nav-burger:hover { background: rgba(255,255,255,0.35); }
.nav--on-light .nav-burger, .assess-body .nav-burger {
  background: rgba(14, 42, 68, 0.06);
  border-color: rgba(14, 42, 68, 0.18);
}
.article-body .nav-burger {
  background: rgba(46, 231, 135, 0.08);
  border-color: rgba(46, 231, 135, 0.25);
}
.nav.menu-open .nav-burger span:nth-child(1) { transform: translateY(5.7px) rotate(45deg); }
.nav.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.menu-open .nav-burger span:nth-child(3) { transform: translateY(-5.7px) rotate(-45deg); }

.nav-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  flex-direction: column;
  padding: 10px;
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(255,255,255,0.34), rgba(255,255,255,0.12));
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 18px 44px rgba(8, 58, 110, 0.24), inset 0 1px 0 rgba(255,255,255,0.65);
}
.nav.menu-open .nav-menu { display: flex; }
.nav-menu a {
  padding: 13px 18px;
  border-radius: 15px;
  font-size: 16px;
  font-weight: 600;
  color: inherit;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.nav-menu a:hover, .nav-menu a:active { background: rgba(255,255,255,0.24); }
.nav--on-light .nav-menu, .assess-body .nav-menu {
  background: linear-gradient(150deg, rgba(255,255,255,0.78), rgba(255,255,255,0.55));
  border-color: rgba(255,255,255,0.9);
}
.nav--on-light .nav-menu a:hover, .assess-body .nav-menu a:hover { background: rgba(14, 42, 68, 0.08); }

/* ---- search overlay (liquid glass) ---- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 120px 20px 40px;
  background: rgba(8, 18, 32, 0.26);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
}
.search-overlay.open { display: flex; }
.search-panel {
  width: min(640px, 100%);
  background: linear-gradient(150deg, rgba(13, 28, 48, 0.62) 0%, rgba(13, 28, 48, 0.34) 100%);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  backdrop-filter: blur(30px) saturate(1.5);
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow:
    0 30px 90px rgba(5, 15, 30, 0.5),
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 -1px 0 rgba(255,255,255,0.10),
    inset 1px 0 0 rgba(255,255,255,0.14);
  overflow: hidden;
}
.search-panel input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  padding: 21px 26px;
  text-shadow: 0 1px 12px rgba(0, 20, 40, 0.4);
}
.search-panel input::placeholder { color: rgba(255, 255, 255, 0.45); }
.search-results {
  max-height: 50vh;
  overflow: auto;
  border-top: 1px solid rgba(255,255,255,0.22);
}
.search-hit {
  display: block;
  padding: 14px 26px;
  transition: background 0.18s ease, padding-left 0.18s ease;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.search-hit:last-child { border-bottom: none; }
.search-hit:hover {
  background: linear-gradient(90deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04));
  padding-left: 30px;
}
.search-hit .t { display: block; font-weight: 600; font-size: 15px; color: #ffffff; }
.search-hit .p { display: block; font-size: 12px; opacity: 0.55; margin-top: 3px; color: #dce8f4; }
.search-empty { padding: 18px 26px; font-size: 14px; opacity: 0.6; color: #ffffff; }

/* ============ SKY ============ */
.sky {
  position: relative;
  background:
    radial-gradient(120% 90% at 50% -25%, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 52%, var(--sky-low) 88%, var(--haze) 100%);
}
.clouds {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
/* drifting cloud belts — generated seamless texture, three depths */
.belt {
  position: absolute;
  left: 0;
  right: 0;
  background-image: url("assets/cloud-tile.png");
  background-repeat: repeat-x;
  will-change: background-position;
}
.belt-far {
  top: 6%;
  height: 34%;
  background-size: 1050px 100%;
  opacity: 0.5;
  animation: belt-drift-far calc(520s / var(--drift-mult)) linear infinite;
}
.belt-mid {
  top: 24%;
  height: 52%;
  background-size: 1750px 100%;
  opacity: 0.8;
  animation: belt-drift-mid calc(340s / var(--drift-mult)) linear infinite;
}
.belt-low {
  bottom: 0;
  height: 46%;
  background-size: 2400px 100%;
  opacity: 0.45;
  animation: belt-drift-low calc(430s / var(--drift-mult)) linear infinite reverse;
}
@keyframes belt-drift-far { from { background-position-x: 0; } to { background-position-x: -1050px; } }
@keyframes belt-drift-mid { from { background-position-x: 0; } to { background-position-x: -1750px; } }
@keyframes belt-drift-low { from { background-position-x: 0; } to { background-position-x: -2400px; } }

.horizon-haze {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 30%;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 100%);
  pointer-events: none;
}

/* ============ HERO ============ */
.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 150px 24px 120px;
  position: relative;
}
.hero-head-mark {
  position: absolute;
  right: clamp(-70px, 3vw, 110px);
  bottom: 7%;
  height: min(54vh, 520px);
  width: auto;
  opacity: 0.10;
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 1020px; }
.hero-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  opacity: 0.92;
  margin-bottom: 38px;
  text-shadow: 0 1px 14px rgba(13,76,140,0.3);
}
.hero-logo { margin: 0 auto; }
.hero-logo img {
  width: min(740px, 86vw);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 4px 28px rgba(13, 76, 140, 0.28));
}
.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(24px, 3.2vw, 38px);
  margin-top: 30px;
  opacity: 0.96;
}
.hero-sub {
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 500;
  line-height: 1.65;
  max-width: 560px;
  margin: 24px auto 0;
  opacity: 0.94;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 44px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease, background 0.3s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-glass {
  color: var(--white);
  background: linear-gradient(135deg, rgba(255,255,255,0.30), rgba(255,255,255,0.10));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 8px 28px rgba(8,58,110,0.20), inset 0 1px 0 rgba(255,255,255,0.6);
}
.btn-glass:hover { background: linear-gradient(135deg, rgba(255,255,255,0.42), rgba(255,255,255,0.18)); }
.btn-solid {
  color: var(--text-deep);
  background: rgba(255,255,255,0.94);
  box-shadow: 0 8px 28px rgba(8,58,110,0.25);
}
.btn-solid:hover { background: #ffffff; }
/* glass button for light backgrounds (deep text) */
.btn-glass-deep {
  color: var(--text-deep);
  background: linear-gradient(135deg, rgba(255,255,255,0.60), rgba(186,224,250,0.28));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.95);
  box-shadow: 0 8px 24px rgba(40, 110, 170, 0.20), inset 0 1px 0 rgba(255,255,255,0.95);
}
.btn-glass-deep:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.85), rgba(186,224,250,0.45));
  box-shadow: 0 12px 32px rgba(40, 110, 170, 0.26), inset 0 1px 0 rgba(255,255,255,0.95);
}

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.6;
  animation: hint-bob 3.2s ease-in-out infinite;
}
@keyframes hint-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 7px); }
}

/* ============ MANIFESTO ============ */
.manifesto {
  position: relative;
  background: linear-gradient(180deg, var(--haze) 0%, #f4fafe 40%, #e2f2fc 100%);
  color: var(--text-deep);
  padding: 140px 24px 160px;
}
.section-inner { max-width: 1080px; margin: 0 auto; position: relative; }
.section-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 20px;
}
.manifesto h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.12;
  max-width: 16em;
  text-wrap: balance;
}
.manifesto-lead {
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.75;
  max-width: 620px;
  margin-top: 28px;
  opacity: 0.85;
  text-wrap: pretty;
}
.manifesto-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 64px;
}
.m-card {
  padding: 38px 32px;
  background: linear-gradient(150deg, rgba(255,255,255,0.72), rgba(255,255,255,0.34));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 36px rgba(40, 110, 170, 0.12), inset 0 1px 0 rgba(255,255,255,0.95);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease;
}
.m-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 48px rgba(40, 110, 170, 0.18), inset 0 1px 0 rgba(255,255,255,0.95);
}
.m-card .num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.18em;
  opacity: 0.45;
}
.m-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 27px;
  margin: 14px 0 10px;
}
.m-card p {
  font-size: 15px;
  line-height: 1.65;
  opacity: 0.78;
  text-wrap: pretty;
}

/* ============ OUR WORK (dark) ============ */
.work {
  position: relative;
  background: linear-gradient(180deg,
    #e2f2fc 0%,
    #9cb8d2 14%,
    #51718f 30%,
    #1d3550 48%,
    var(--ink) 66%,
    var(--ink) 100%);
  color: rgba(255,255,255,0.94);
  padding: 260px 24px 180px;
  text-align: center;
}
/* faint stars in the dark band */
.work::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 52%; bottom: 0;
  background-image:
    radial-gradient(circle 1px at 12% 22%, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 100%),
    radial-gradient(circle 1px at 28% 64%, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 100%),
    radial-gradient(circle 1.5px at 44% 12%, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0) 100%),
    radial-gradient(circle 1px at 58% 48%, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0) 100%),
    radial-gradient(circle 1px at 71% 26%, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0) 100%),
    radial-gradient(circle 1.5px at 84% 58%, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 100%),
    radial-gradient(circle 1px at 93% 18%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}
.work .section-inner { max-width: 760px; }
.work .section-kicker { opacity: 0.5; }
.work h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.12;
  text-wrap: balance;
}
.work-lead {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 31px);
  line-height: 1.45;
  margin: 40px auto 0;
  text-wrap: balance;
}
.work-rule {
  width: 64px;
  height: 1px;
  background: rgba(255,255,255,0.35);
  border: none;
  margin: 44px auto;
}
.work p.body {
  font-size: clamp(15px, 1.6vw, 17.5px);
  line-height: 1.8;
  opacity: 0.78;
  max-width: 580px;
  margin: 0 auto 18px;
  text-wrap: pretty;
}
.work .ig-line a {
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 1px;
  transition: border-color 0.25s ease, opacity 0.25s ease;
}
.work .ig-line a:hover { border-color: rgba(255,255,255,0.9); }
.work-note {
  margin-top: 64px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(19px, 2.2vw, 26px);
  opacity: 0.6;
}

/* ============ JOIN ============ */
.join {
  position: relative;
  background: linear-gradient(180deg,
    var(--ink) 0%,
    #1d3550 18%,
    #51718f 36%,
    var(--sky-mid) 64%,
    var(--sky-low) 90%,
    var(--haze) 100%);
  padding: 240px 24px 150px;
  text-align: center;
}
.join-card {
  max-width: 660px;
  margin: 0 auto;
  padding: 64px 48px;
  position: relative;
}
.join h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.12;
  text-wrap: balance;
}
.join p {
  font-size: clamp(15px, 1.6vw, 17.5px);
  line-height: 1.7;
  max-width: 460px;
  margin: 20px auto 0;
  opacity: 0.92;
  text-wrap: pretty;
}
.join .hero-actions { margin-top: 36px; }
.join-handle {
  margin-top: 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.7;
}
.join-head-mark {
  height: 64px;
  width: auto;
  margin: 0 auto 26px;
  opacity: 0.95;
}
/* standalone Join page — same card, open-sky background */
.join-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 90% at 50% -25%, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 52%, var(--sky-low) 88%, var(--haze) 100%);
  padding: 170px 24px 120px;
}

/* ============ FOOTER ============ */
.footer {
  background: linear-gradient(180deg, var(--haze), #f3fafd);
  color: var(--text-deep);
  padding: 56px 24px 46px;
  text-align: center;
}
.footer .brandline {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 8px 26px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 13.5px;
  font-weight: 600;
}
.footer-links a { opacity: 0.65; transition: opacity 0.25s ease; white-space: nowrap; }
.footer-links a:hover { opacity: 1; }
.footer .disclaimer {
  font-size: 12.5px;
  line-height: 1.7;
  max-width: 620px;
  margin: 26px auto 0;
  opacity: 0.55;
  text-wrap: pretty;
}
.footer .copyright {
  font-size: 12.5px;
  margin-top: 22px;
  opacity: 0.6;
  letter-spacing: 0.04em;
}

/* ============ MATERIALS PAGE ============ */
.materials-hero {
  position: relative;
  padding: 210px 24px 110px;
  text-align: center;
}
.materials-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.08;
  text-shadow: 0 2px 26px rgba(13,76,140,0.25);
  text-wrap: balance;
}
.materials-hero .lead {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.7;
  max-width: 520px;
  margin: 22px auto 0;
  opacity: 0.94;
  text-wrap: pretty;
}
.materials-list {
  position: relative;
  background: linear-gradient(180deg, var(--haze) 0%, #f4fafe 55%, #e9f5fd 100%);
  color: var(--text-deep);
  padding: 100px 24px 140px;
}
.materials-list .section-inner { max-width: 820px; }
.mat-card {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 34px 38px;
  background: linear-gradient(150deg, rgba(255,255,255,0.78), rgba(255,255,255,0.40));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
  border: 1px solid rgba(255,255,255,0.92);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 36px rgba(40, 110, 170, 0.12), inset 0 1px 0 rgba(255,255,255,0.95);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease;
}
.mat-card + .mat-card { margin-top: 22px; }
.mat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(40, 110, 170, 0.18), inset 0 1px 0 rgba(255,255,255,0.95);
}
.mat-info { flex: 1; }
.mat-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 10px;
}
.mat-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.15;
}
.mat-card .desc {
  font-size: 14.5px;
  line-height: 1.65;
  opacity: 0.75;
  margin-top: 8px;
  max-width: 480px;
  text-wrap: pretty;
}
.mat-action { flex-shrink: 0; }
.btn-deep {
  color: var(--white);
  background: var(--text-deep);
  box-shadow: 0 8px 24px rgba(14,42,68,0.28);
}
.btn-deep:hover { background: #16395c; }
.mat-soon {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.45;
  white-space: nowrap;
}

/* ============ REVEALS ============ */
html[data-reveals="on"] .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s ease, transform 1s cubic-bezier(.2,.8,.2,1);
}
html[data-reveals="on"] .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .belt, .scroll-hint { animation: none !important; }
  html[data-reveals="on"] .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .nav { gap: 8px; padding: 8px 10px 8px 16px; }
  .nav-links a { padding: 8px 8px; font-size: 13px; }
  .nav-brand span { display: none; }
  .nav-search { width: 30px; height: 30px; }
  .hero-head-mark { opacity: 0.07; right: -120px; }
  .join-card { padding: 48px 28px; }
  .mat-card { flex-direction: column; align-items: flex-start; gap: 18px; padding: 28px 26px; }
}

/* phones & small tablets: collapse nav links into the hamburger menu */
@media (max-width: 640px) {
  .nav { width: calc(100vw - 24px - env(safe-area-inset-left) - env(safe-area-inset-right)); gap: 6px; padding: 8px 10px 8px 14px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-brand img { height: 28px; }
  .nav-brand span { display: inline; font-size: 17px; }
  .nav-search { width: 32px; height: 32px; }
}

/* small phones */
@media (max-width: 520px) {
  .nav { top: 12px; gap: 5px; padding: 6px 8px 6px 12px; width: calc(100vw - 20px - env(safe-area-inset-left) - env(safe-area-inset-right)); }
  .nav-brand img { height: 26px; }
  .nav-brand span { font-size: 15px; }
  .nav-right { gap: 5px; }
  .nav-search, .nav-burger { width: 30px; height: 30px; }
  .lang-toggle button { padding: 5px 8px; font-size: 11px; }
  .hero { padding: 120px 18px 90px; }
  .hero-kicker { font-size: 11px; letter-spacing: 0.22em; }
  .hero-actions { gap: 10px; }
  .btn { padding: 13px 22px; font-size: 14px; }
  .manifesto { padding: 90px 20px 110px; }
  .work { padding: 190px 20px 130px; }
  .join { padding: 190px 20px 110px; }
  .materials-hero { padding: 150px 18px 80px; }
  .materials-list { padding: 70px 18px 100px; }
  .mat-card .mat-action { width: 100%; }
  .mat-card .btn { width: 100%; justify-content: center; }
  .footer-links { gap: 6px 18px; }
}

/* very small phones — keep brand wordmark fitting beside the head */
@media (max-width: 400px) {
  .nav-brand span { font-size: 13.5px; }
  .lang-toggle button { padding: 5px 7px; font-size: 10.5px; }
}

/* landscape phones / small tablets (links visible + wordmark): tighten so RU fits without overlap */
@media (min-width: 641px) and (max-width: 1024px) {
  .nav { gap: 12px; padding: 9px 12px 9px 16px; }
  .nav-brand span { display: inline; font-size: 17px; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 8px 9px; font-size: 13px; }
  .nav-right { gap: 6px; }
}
