/* =========================================================
   Программа «История и культура народов Степной Евразии»
   Academic light theme — steppe / ivory / deep navy accents
   ========================================================= */

:root {
  --bg: #f7f4ed;
  --bg-alt: #efeadd;
  --surface: #ffffff;
  --surface-2: rgba(255, 255, 255, 0.72);
  --ink: #1c2330;
  --ink-2: #3a4456;
  --muted: #6b7385;
  --line: #e2dccb;
  --line-2: #d8d1bd;
  --accent: #7d2f2f;
  --accent-2: #0e2a47;
  --accent-soft: #b9893a;
  --shadow-sm: 0 1px 2px rgba(28, 35, 48, 0.04);
  --shadow-md: 0 8px 30px rgba(28, 35, 48, 0.07);
  --shadow-lg: 0 20px 50px rgba(28, 35, 48, 0.12);

  --font-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-header-brand: "Spectral", "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;

  --container: 1240px;
  --radius: 10px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  overflow-x: hidden;
}
body {
  margin: 0;
  padding-top: 72px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
body::before {
  opacity: 0.98;
  background:
    linear-gradient(180deg, rgba(246, 243, 232, 0.78), rgba(246, 243, 232, 0.92)),
    radial-gradient(circle at 14% 16%, rgba(152, 124, 47, 0.2), transparent 24%),
    radial-gradient(circle at 86% 10%, rgba(42, 71, 54, 0.18), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(152, 124, 47, 0.12), transparent 30%);
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-position:
    center,
    14% 16%,
    86% 10%,
    50% 100%;
  background-size:
    cover,
    auto,
    auto,
    auto;
}
body::after {
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(138, 122, 88, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 122, 88, 0.05) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 90%);
}
main {
  position: relative;
  z-index: 1;
}
img,
svg {
  max-width: 100%;
  display: block;
}
a {
  color: var(--accent-2);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover {
  color: var(--accent);
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: min(var(--container), calc(100vw - 24px));
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 237, 0.92);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(28, 35, 48, 0.08);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-mark {
  color: var(--accent-2);
  display: inline-flex;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  align-items: baseline;
  gap: 12px;
  line-height: 1;
  white-space: nowrap;
}
.brand-title {
  font-family: var(--font-header-brand);
  font-size: clamp(1.32rem, 1.05rem + 1vw, 1.68rem);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.05;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
}
.brand-sub {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  white-space: nowrap;
}
.nav {
  flex: 1 1 auto;
  min-width: 0;
}
.nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.nav-list li {
  flex: 0 1 auto;
}
.nav-list a {
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.028em;
  position: relative;
  padding: 6px 2px;
  display: block;
  max-width: 10.5rem;
  text-align: center;
  line-height: 1.28;
  white-space: normal;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-list a:hover::after,
.nav-list a.is-active::after {
  transform: scaleX(1);
}
.nav-list a.is-active {
  color: var(--accent);
}
.burger {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
}
.burger span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease), top 0.25s var(--ease);
}
.burger span:nth-child(1) { top: 13px; }
.burger span:nth-child(2) { top: 19px; }
.burger span:nth-child(3) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.25s var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent-2);
  color: #fff;
  border-color: var(--accent-2);
}
.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink-2);
}
.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-small {
  padding: 10px 18px;
  font-size: 12px;
  background: transparent;
  color: var(--accent-2);
  border-color: var(--line-2);
}
.btn-small:hover {
  background: var(--accent-2);
  color: #fff;
  border-color: var(--accent-2);
}

.btn-events-all.btn-small {
  color: rgba(255, 255, 255, 0.94);
  border: 2px solid color-mix(in srgb, var(--accent-2) 76%, white);
  background: linear-gradient(
    158deg,
    color-mix(in srgb, var(--accent-2) 94%, black),
    color-mix(in srgb, var(--accent-2) 74%, black)
  );
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  box-shadow:
    0 8px 22px color-mix(in srgb, var(--accent-2) 34%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  font-weight: 600;
}
.btn-events-all.btn-small:hover {
  background: linear-gradient(
    155deg,
    color-mix(in srgb, var(--accent-2) 78%, white),
    color-mix(in srgb, var(--accent-2) 22%, black)
  );
  color: rgba(255, 255, 255, 0.96);
  border-color: color-mix(in srgb, var(--accent-2) 58%, white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
  box-shadow:
    0 14px 36px color-mix(in srgb, var(--accent-2) 42%, transparent),
    0 0 28px color-mix(in srgb, var(--accent-2) 35%, transparent);
}

/* ---------- Hero (программа — светлый акцентный блок) ---------- */
.hero {
  position: relative;
  overflow: hidden;
}
.hero--program {
  --hero-fg: #1a2229;
  --hero-fg-dim: rgba(26, 34, 41, 0.84);
  --hero-fg-muted: rgba(26, 34, 41, 0.58);
  --hero-gold: #c2912e;
  --hero-gold-deep: #8a6320;
  --hero-teal: #1f7f7b;
  --hero-card: rgba(255, 255, 255, 0.78);
  --hero-card-border: rgba(180, 145, 62, 0.22);
  min-height: calc(100vh - 72px);
  padding: 56px 0 48px;
  background:
    radial-gradient(ellipse 115% 75% at 50% 108%, rgba(194, 145, 46, 0.14), transparent 52%),
    radial-gradient(880px 500px at 92% 4%, rgba(31, 127, 123, 0.09), transparent 48%),
    radial-gradient(680px 440px at 3% 24%, rgba(184, 137, 58, 0.1), transparent 44%),
    linear-gradient(168deg, #fdfbf6 0%, #f4efe4 42%, #ebe3d4 100%);
  color: var(--hero-fg);
}
.hero--program .hero--aurora {
  background:
    radial-gradient(closest-side at 30% 38%, rgba(31, 127, 123, 0.11), transparent 72%),
    radial-gradient(closest-side at 78% 28%, rgba(194, 145, 46, 0.13), transparent 67%);
}
.hero--aurora {
  position: absolute;
  inset: -20% -10% auto;
  height: 72%;
  background:
    radial-gradient(closest-side at 30% 40%, rgba(78, 196, 191, 0.16), transparent 70%),
    radial-gradient(closest-side at 78% 30%, rgba(224, 178, 74, 0.12), transparent 65%);
  pointer-events: none;
}
.hero--program .hero--grid-deco {
  opacity: 0.55;
}
.hero--grid-deco {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(200px, 28vh);
  pointer-events: none;
  opacity: 0.9;
}
.hero--horizon {
  display: block;
  width: 100%;
  height: 100%;
}
.hero--wrap {
  position: relative;
  z-index: 1;
}
.hero--head,
.hero--grid {
  position: relative;
  z-index: 1;
}

/* Декоративная карта Степной Евразии — правый нижний угол (две колонки hero) */
.hero--steppe-map {
  position: absolute;
  right: 0;
  bottom: clamp(6px, 2.5vmin, 20px);
  z-index: 0;
  max-width: 100%;
  pointer-events: none;
  line-height: 0;
}
.hero--steppe-map img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(14px, 2.4vmin, 22px);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(224, 178, 74, 0.24),
    inset 0 1px rgba(255, 255, 255, 0.12);
  object-fit: contain;
  object-position: right bottom;
}
.hero--program .hero--steppe-map img {
  box-shadow:
    0 14px 42px rgba(28, 35, 48, 0.12),
    0 0 0 1px rgba(180, 145, 62, 0.2),
    inset 0 1px rgba(255, 255, 255, 0.85);
}

/* Карта только при двухколоночном hero: ширина = колонка сайдбара + gap + резерв без пересечений с текстом */
@media (min-width: 1281px) {
  .hero--program .hero--wrap {
    --hero-gap-eff: clamp(28px, 4vw, 56px);
    /*
     * Резерв по горизонтали в главной колонке под «хвост» карты —
     * карты миссии и кнопка не заходят в эту полосу, карту можно шире.
     */
    --hero-map-into-main: clamp(150px, 16vw, 360px);
  }

  .hero--column-main .hero--mission,
  .hero--column-main .hero--cta {
    max-width: calc(100% - var(--hero-map-into-main));
  }

  .hero--mission-card {
    padding: 16px 18px;
    gap: 14px;
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .hero--mission-idx {
    font-size: 26px;
    padding-top: 4px;
  }

  /*
   * Базовая ширина гребня сайдбара = 240px (minmax нижняя грань) — гарантия без заезда в текст main.
   * На более широком вьюпорте дорожка почти всегда 300px → увеличиваем картинку до максимума в рамках той же геометрии.
   */
  .hero--steppe-map {
    width: calc(240px + var(--hero-gap-eff) + var(--hero-map-into-main));
    max-height: min(65vh, 580px);
  }

  .hero--steppe-map img {
    max-height: min(65vh, 580px);
    max-width: 100%;
  }
}

@media (min-width: 1320px) {
  .hero--column-main .hero--mission,
  .hero--column-main .hero--cta {
    /* +60px: при формуле width с 300px чем при S=240 intrusion на 60px больше R */
    max-width: calc(100% - var(--hero-map-into-main) - 60px);
  }

  .hero--steppe-map {
    width: calc(300px + var(--hero-gap-eff) + var(--hero-map-into-main));
  }
}

.hero--head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 36px;
}
.hero--badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0f181c;
  background: linear-gradient(135deg, var(--hero-gold) 0%, #f0d089 100%);
  box-shadow: 0 4px 20px rgba(224, 178, 74, 0.25);
}
.hero--program .hero--badge {
  box-shadow: 0 4px 18px rgba(180, 145, 62, 0.22);
}
.hero--head-meta {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--hero-fg-dim);
}
.hero--head-sep {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(78, 196, 191, 0.55);
}
.hero--program .hero--head-sep {
  background: color-mix(in srgb, var(--hero-teal) 65%, var(--hero-fg));
}
.hero--grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.hero--column-main {
  min-width: 0;
  container-type: inline-size;
  container-name: hero-main;
}

/* Двухколоночный hero: узкая текстовая колонка (~1176 − сайд − gap) — без этого «История и культура народов» лезет на два ряда */
@container hero-main (min-width: 700px) and (max-width: 940px) {
  .hero--title {
    font-size: clamp(34px, 10cqi, 54px);
  }
  .hero--title-line {
    white-space: nowrap;
  }
}

.hero--title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(38px, 5.8vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: var(--hero-fg);
}
.hero--title-line {
  display: block;
  font-weight: 500;
  color: var(--hero-fg);
}
.hero--title-accent {
  display: block;
  margin-top: 8px;
  background: linear-gradient(92deg, var(--hero-gold) 12%, #fff2d2 52%, var(--hero-teal) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero--program .hero--title-accent {
  background: linear-gradient(
    92deg,
    var(--hero-gold-deep) 10%,
    color-mix(in srgb, var(--hero-teal) 88%, black) 48%,
    var(--accent-2) 92%
  );
  -webkit-background-clip: text;
  background-clip: text;
}
.hero--lede {
  font-family: var(--font-serif);
  font-size: clamp(19px, 1.75vw, 24px);
  line-height: 1.52;
  color: var(--hero-fg-dim);
  margin: 0 0 22px;
  max-width: 52rem;
}
.hero--lede strong {
  color: var(--hero-fg);
  font-weight: 600;
}
.hero--why {
  font-size: 15px;
  line-height: 1.75;
  color: var(--hero-fg-muted);
  margin: 0 0 32px;
  max-width: 48rem;
  padding-left: 18px;
  border-left: 3px solid color-mix(in srgb, var(--hero-teal) 72%, transparent);
}
.hero--program .hero--why {
  border-left-color: color-mix(in srgb, var(--hero-teal) 55%, transparent);
}
.hero--why strong {
  color: var(--hero-fg-dim);
  font-weight: 600;
}
.hero--mission {
  display: grid;
  gap: 14px;
  margin-bottom: 32px;
}
.hero--mission-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.06),
    rgba(18, 32, 38, 0.35) 48%
  );
  border: 1px solid var(--hero-card-border);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.06),
    0 12px 36px rgba(0, 0, 0, 0.2);
}
.hero--program .hero--mission-card {
  background: linear-gradient(152deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 243, 235, 0.88) 52%);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.95),
    0 10px 32px rgba(28, 35, 48, 0.07);
}
.hero--mission-idx {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  font-style: italic;
  line-height: 1;
  color: var(--hero-teal);
  text-align: center;
  padding-top: 6px;
}
.hero--mission-h {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.22;
  margin: 0 0 10px;
  color: var(--hero-fg);
}
.hero--mission-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--hero-fg-muted);
}
.hero--mission-body strong {
  color: var(--hero-fg-dim);
}
.hero--cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 8px;
}
.hero--cta-primary.btn-primary {
  background: linear-gradient(135deg, #3eb8b4 0%, #2d8f8d 48%, var(--accent-2) 100%);
  border-color: rgba(255, 255, 255, 0.2);
  color: #0a1216;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow:
    0 10px 32px rgba(42, 139, 138, 0.35),
    inset 0 1px rgba(255, 255, 255, 0.25);
}
.hero--program .hero--cta-primary.btn-primary {
  box-shadow:
    0 8px 26px rgba(31, 127, 123, 0.28),
    inset 0 1px rgba(255, 255, 255, 0.35);
}
.hero--cta-primary.btn-primary:hover {
  background: linear-gradient(135deg, #62d9d5 0%, #3aacaa 55%, var(--accent-2) 100%);
  color: #051014;
}
.hero--column-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 96px;
}
.hero--glass {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08) 0%,
    var(--hero-card) 48%
  );
  border: 1px solid var(--hero-card-border);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.08),
    0 20px 50px rgba(0, 0, 0, 0.25);
}
.hero--program .hero--glass {
  background: linear-gradient(185deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.72) 100%);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.95),
    0 16px 40px rgba(28, 35, 48, 0.08);
}
.hero--kv {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(243, 230, 210, 0.1);
}
.hero--program .hero--kv {
  border-bottom-color: rgba(26, 34, 41, 0.08);
}
.hero--kv:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.hero--kv-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hero-gold-deep);
  margin-bottom: 8px;
}
.hero--kv-value {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.28;
  color: var(--hero-fg);
}
.hero--kv-value-tight {
  font-size: 17px;
  font-weight: 600;
}
.hero--spotlight {
  padding: 22px 22px 24px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(78, 196, 191, 0.35);
  background: rgba(10, 20, 24, 0.45);
}
.hero--program .hero--spotlight {
  border-color: color-mix(in srgb, var(--hero-teal) 38%, transparent);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.75);
}
.hero--spotlight-k {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hero-teal);
}
.hero--spotlight-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.78;
  color: var(--hero-fg-muted);
}
.hero--spotlight-text strong {
  color: var(--hero-fg-dim);
}

/* legacy helpers (нет в разметке, оставлено для совместимости страниц) */
.hero-map {
  display: none;
}
.hero-map-svg {
  display: none;
}

/* ---------- Sections ---------- */
.section {
  padding: 110px 0;
  position: relative;
}
.section-alt {
  background: var(--bg-alt);
}
.section-head {
  max-width: 780px;
  margin: 0 0 64px;
  position: relative;
}
.section-head::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 24px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, #2a7f7d 50%, var(--accent-2) 100%);
}
.section-kicker {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin: 0 0 16px;
}
.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  color: var(--ink);
}
.section-sub {
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}

/* ---------- Tabs (Directions) ---------- */
.tabs {
  margin-bottom: 48px;
  padding: 10px;
  border: 1px solid rgba(216, 209, 189, 0.9);
  border-radius: calc(var(--radius-lg) + 2px);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-sm);
}
.tabs-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  overflow-x: visible;
  padding-bottom: 0;
  margin-bottom: 0;
}
.tabs-track-row2 {
  display: contents;
}
@media (min-width: 641px) {
  .tabs-track-row2 {
    display: flex;
    grid-column: 1 / -1;
    justify-content: center;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }
  .tabs-track-row2 .tab {
    flex: 0 1 calc((100% - 16px) / 3);
    min-width: 0;
  }
}
.tab {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  white-space: normal;
  border: 1px solid transparent;
  border-radius: 16px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
    background 0.25s var(--ease), box-shadow 0.25s var(--ease);
  text-align: left;
  min-width: 0;
}
.tab-label {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}
.tab-index {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  color: var(--accent-soft);
}
.tab:hover {
  color: var(--ink);
}
.tab.is-active {
  color: var(--accent);
  border-color: rgba(125, 47, 47, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 248, 242, 0.94));
  box-shadow: 0 12px 24px rgba(28, 35, 48, 0.06);
}
.tab.is-active .tab-index {
  color: var(--accent);
}

.tab-panel {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.tab-panel.is-active {
  display: block;
  animation: fadeInUp 0.5s var(--ease) forwards;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.research-card {
  position: relative;
  padding: 32px 28px 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 247, 240, 0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.research-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  pointer-events: none;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  background: linear-gradient(90deg, var(--accent) 0%, #2a7f7d 44%, var(--accent-2) 100%);
  transition: filter 0.3s var(--ease), opacity 0.3s var(--ease);
}
.research-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-md);
}
.research-card:hover::before {
  filter: brightness(1.12);
}
.research-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 14px;
  color: var(--ink);
}
.research-card p {
  margin: 0 0 20px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
  flex-grow: 1;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.tags li {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.tags li::after {
  content: "·";
  margin-left: 6px;
  color: var(--line-2);
}
.tags li:last-child::after { content: ""; }

/* ---------- Results ---------- */
.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.result-card {
  position: relative;
  padding: 44px 32px;
  background: var(--surface);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.result-card:hover {
  background: #fbf9f2;
  transform: translateY(-3px);
}
.result-ornament {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 24px;
}
.result-ornament::before,
.result-ornament::after {
  content: "";
  position: absolute;
  background: var(--accent-soft);
}
.result-ornament::before {
  width: 20px;
  height: 1px;
}
.result-ornament::after {
  width: 1px;
  height: 20px;
}
.result-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 14px;
  color: var(--ink);
}
.result-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
}

/* ---------- News ---------- */
.section-news {
  background: #f9f7f0;
}
.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: clamp(22px, 3vw, 36px);
  align-items: start;
}
.page-news-all-main {
  display: grid;
  gap: clamp(18px, 2.2vw, 26px);
  min-width: 0;
}
.news-feed {
  display: grid;
  gap: clamp(20px, 2.5vw, 28px);
}
.news-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 24px);
}

/* —— Hero (главная новость, тёмная карточка на фоне карты) —— */
.news-card.news-hero {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: 0 22px 56px rgba(24, 18, 10, 0.22);
}
.news-card.news-hero::before {
  display: none;
}
.news-card.news-hero::after {
  display: none;
}
.news-hero-hit {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: min(320px, 52vw);
}
.news-hero-hit:focus-visible {
  outline: 2px solid #4a908f;
  outline-offset: 4px;
}
.news-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(105deg, rgba(18, 28, 36, 0.94) 0%, rgba(18, 28, 36, 0.76) 40%, rgba(18, 28, 36, 0.5) 100%),
    url("assets/eurasia-map.svg");
  background-repeat: no-repeat, no-repeat;
  background-position:
    center,
    88% 48%;
  background-size:
    cover,
    min(460px, 58vw) auto;
}
.news-hero-inner {
  position: relative;
  z-index: 2;
  padding: clamp(28px, 4vw, 42px) clamp(24px, 4vw, 44px);
  max-width: 640px;
}
.news-card.news-hero .news-meta--hero {
  margin-bottom: 14px;
  color: #fff;
  font-family: var(--font-sans, "Inter", system-ui, sans-serif);
  font-size: 11px;
  letter-spacing: 0.18em;
}
.news-type--hero {
  color: #4a908f;
}
.news-type--hero::before {
  background: #4a908f;
  box-shadow: 0 0 0 3px rgba(74, 144, 143, 0.35);
}
.news-hero-title {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.12;
  font-weight: 600;
  color: #d4b07a;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.35);
}
.news-card.news-hero .news-hero-lead {
  margin: 0;
  font-family: var(--font-sans, "Inter", system-ui, sans-serif);
  font-size: 15px;
  line-height: 1.72;
  font-weight: 400;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* —— Две белые карточки —— */
.news-card.news-card--secondary {
  padding: 26px 24px 28px;
  background: #fffef9;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  box-shadow: 0 10px 32px rgba(46, 32, 16, 0.07);
}
.news-card.news-card--secondary::before {
  height: 0;
  opacity: 0;
}
.news-card.news-card--secondary:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(46, 32, 16, 0.1);
  border-color: rgba(139, 110, 78, 0.2);
}
.news-meta--secondary {
  margin-bottom: 14px;
  font-family: var(--font-sans, "Inter", system-ui, sans-serif);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #6b6b6b;
}
.news-type--secondary {
  color: #4a908f;
}
.news-type--secondary::before {
  background: #4a908f;
  box-shadow: 0 0 0 3px rgba(74, 144, 143, 0.2);
}
.news-card--secondary h3 {
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.2;
  color: #8b6e4e;
  margin-bottom: 12px;
}
.news-card--secondary p {
  font-family: var(--font-sans, "Inter", system-ui, sans-serif);
  font-size: 14px;
  line-height: 1.68;
  color: #333;
}

.news-card.news-card--secondary::after {
  display: none;
}

/* Второстепенные новости: вся карточка — одна ссылка (без overlay и z-index) */
.news-card.news-card--secondary > a.news-card-hit--block {
  position: static;
  inset: auto;
  z-index: auto;
  display: block;
  text-decoration: none;
  color: inherit;
}
.news-card.news-card--secondary > a.news-card-hit--block:focus-visible {
  outline: 2px solid #4a908f;
  outline-offset: 3px;
  border-radius: 14px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.news-card,
.announcements-panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 247, 240, 0.92));
  border: 1px solid rgba(216, 209, 189, 0.92);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.news-card {
  padding: 28px 28px 30px;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.news-card::before,
.announcements-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  pointer-events: none;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  background: linear-gradient(90deg, var(--accent) 0%, #2a7f7d 44%, var(--accent-2) 100%);
}
.news-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-lg);
}
.news-card.news-hero:hover {
  transform: none;
  border-color: transparent;
  box-shadow: 0 26px 62px rgba(24, 18, 10, 0.26);
}
.news-card-featured {
  padding: 38px 36px 40px;
  background:
    linear-gradient(135deg, rgba(14, 42, 71, 0.96), rgba(30, 47, 69, 0.9)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 247, 240, 0.92));
  color: #edf2f8;
}
.news-card-featured::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 18%, rgba(185, 137, 58, 0.18), transparent 24%),
    url("assets/eurasia-map.svg");
  background-repeat: no-repeat, no-repeat;
  background-size: auto, 780px auto;
  background-position: 85% 18%, right -160px center;
  opacity: 0.16;
  pointer-events: none;
}
.news-card-featured .news-meta,
.news-card-featured h3,
.news-card-featured p,
.news-card-featured .news-link {
  position: relative;
  z-index: 1;
}
.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 18px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.news-type {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--accent);
}
.news-type::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(125, 47, 47, 0.12);
}
.news-card:not(.news-hero) h3,
.announcement-body h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 14px;
}
.news-grid .news-card h3 {
  font-size: 24px;
}
.news-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink-2);
}
.news-card-featured p {
  color: rgba(237, 242, 248, 0.88);
  max-width: 760px;
}
.news-link {
  display: inline-flex;
  margin-top: 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-2);
  border-bottom: 1px solid rgba(14, 42, 71, 0.32);
  padding-bottom: 4px;
}
.news-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.news-card-featured .news-link {
  color: #f4d69a;
  border-bottom-color: rgba(244, 214, 154, 0.45);
}
.news-card-featured .news-link:hover {
  color: #fff8ea;
  border-bottom-color: rgba(255, 248, 234, 0.84);
}
.announcements-panel {
  padding: 28px 28px 30px;
  display: grid;
  gap: 24px;
}
.announcements-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.announcements-list {
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.announcements-list li + li {
  border-top: 1px solid var(--line);
}
.announcement-row-link {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  margin: 0 -6px;
  padding-left: 6px;
  padding-right: 6px;
  transition: background 0.2s var(--ease);
}
.announcements-list li:first-child .announcement-row-link {
  padding-top: 0;
}
.announcements-list li:last-child .announcement-row-link {
  padding-bottom: 0;
}
.announcement-row-link:hover {
  background: rgba(14, 42, 71, 0.04);
}
.announcement-row-link:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}
.announcements-intro {
  margin: -8px 0 8px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
}
.announcement-date {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 72px;
  padding: 10px 8px;
  border-radius: 18px;
  background: rgba(14, 42, 71, 0.06);
  border: 1px solid rgba(14, 42, 71, 0.1);
  text-align: center;
}
.announcement-date span {
  font-family: var(--font-serif);
  font-size: 30px;
  line-height: 1;
  font-weight: 600;
  color: var(--accent-2);
}
.announcement-date small {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.announcement-type {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
}
.announcement-body h3 {
  font-size: 22px;
  margin-bottom: 10px;
}
.announcement-body p:last-child {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.65;
}
.announcements-panel .btn {
  width: 100%;
}

/* ---------- Publications ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}
.filter {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  transition: all 0.25s var(--ease);
}
.filter:hover {
  border-color: var(--ink-2);
  color: var(--ink);
}
.filter.is-active {
  background: linear-gradient(135deg, var(--accent-2), var(--ink));
  color: #fff;
  border-color: var(--accent-2);
  box-shadow: 0 10px 20px rgba(14, 42, 71, 0.18);
}
.pub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pub-card {
  position: relative;
  padding: 32px 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 247, 240, 0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease), opacity 0.3s var(--ease);
}
.pub-card.is-hidden {
  display: none;
}
.pub-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-md);
}
.pub-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  pointer-events: none;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  background: linear-gradient(90deg, var(--accent) 0%, #2a7f7d 44%, var(--accent-2) 100%);
}
.pub-type {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.pub-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 14px;
  color: var(--ink);
}
.pub-card p {
  margin: 0 0 22px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
  flex-grow: 1;
}
.pub-link {
  align-self: flex-start;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-2);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 4px;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.pub-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---------- Videos ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.video-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 247, 240, 0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.video-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.video-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background-color: #23304a;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 60%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 12px);
  overflow: hidden;
}
.video-thumb[data-pattern="p1"] { background-color: #2a3a55; }
.video-thumb[data-pattern="p2"] { background-color: #4a3526; }
.video-thumb[data-pattern="p3"] { background-color: #5a2424; }
.video-thumb[data-pattern="p4"] { background-color: #2d4238; }
.video-thumb[data-pattern="p5"] { background-color: #362a4a; }
.video-thumb[data-pattern="p6"] { background-color: #4a4028; }
.video-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.12), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(185, 137, 58, 0.18), transparent 50%);
}
.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 50%);
}
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
  z-index: 2;
}
.play-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  margin-left: 3px;
}
.play-btn:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--accent);
  color: #fff;
}
.video-caption {
  position: absolute;
  left: 20px;
  bottom: 16px;
  z-index: 2;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(17, 24, 42, 0.38);
  backdrop-filter: blur(8px);
}
.video-body {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.video-body h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 12px;
  color: var(--ink);
}
.video-body p {
  margin: 0 0 20px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
  flex-grow: 1;
}
.video-body .btn-small {
  align-self: flex-start;
}

/* ---------- Cooperation ---------- */
.coop-intro {
  max-width: 900px;
  margin: 0 0 60px;
}
.coop-intro .lead {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 20px;
}
.coop-intro .muted {
  color: var(--muted);
  margin: 0;
}
.coop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.coop-card {
  position: relative;
  padding: 32px 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 247, 240, 0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.coop-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-md);
}
.coop-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-bottom: 20px;
  box-shadow: 0 0 0 4px rgba(125, 47, 47, 0.12);
}
.coop-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 12px;
  color: var(--ink);
}
.coop-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Contacts ---------- */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.contacts-info h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--ink);
}
.contacts-place {
  color: var(--muted);
  margin: 0 0 36px;
  font-size: 15px;
}
.contacts-list {
  margin: 0 0 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contacts-list > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.contacts-list dt {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.contacts-list dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--ink);
  font-weight: 500;
}
.contacts-list dd a {
  color: var(--ink);
}
.contacts-list dd a:hover {
  color: var(--accent);
}
.contacts-ornament {
  color: var(--accent-soft);
  max-width: 220px;
  opacity: 0.7;
}

.contacts-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 245, 236, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.contacts-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contacts-form label span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.contacts-form input,
.contacts-form textarea {
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-2);
  transition: border-color 0.25s var(--ease);
  resize: vertical;
}
.contacts-form input:focus,
.contacts-form textarea:focus {
  outline: none;
  border-bottom-color: var(--accent-2);
}
.contacts-form button {
  align-self: flex-start;
  margin-top: 8px;
}
.form-status {
  margin: 0;
  font-size: 14px;
  color: var(--accent-2);
  min-height: 20px;
}
.form-status.is-error { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 2;
  background: #11182a;
  color: #c8cfd9;
  padding: 72px 0 28px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.3;
}
.footer-sub {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}
.footer-nav ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 32px;
}
.footer-nav a {
  color: #c8cfd9;
  font-size: 14px;
  transition: color 0.25s var(--ease);
}
.footer-nav a:hover {
  color: #fff;
}
.footer-bottom {
  padding-top: 28px;
}
.footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Подстраницы без script.js: иначе .reveal навсегда opacity: 0 */
.page-sub .reveal {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav {
    display: none;
  }
  .nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 32px;
    right: 32px;
    background: rgba(252, 247, 238, 0.98);
    border: 1px solid rgba(184, 140, 68, 0.2);
    border-radius: 0 0 18px 18px;
    box-shadow: var(--shadow-md);
    padding: 16px 24px 24px;
  }
  .nav.is-open .nav-list {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
  }
  .nav.is-open .nav-list a {
    display: block;
    width: 100%;
    max-width: none;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    text-align: left;
    white-space: normal;
  }
  .nav.is-open .nav-list li:last-child a {
    border-bottom: none;
  }
  .burger {
    display: block;
  }
  .nav-wrap {
    position: relative;
  }
  .brand-title {
    font-size: 24px;
  }
}

@media (min-width: 961px) {
  .burger {
    display: none;
  }
  .nav {
    display: block;
  }
}

@media (max-width: 1280px) {
  .hero--grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero--steppe-map {
    display: none;
  }
}

@media (max-width: 1100px) {
  .cards-grid,
  .news-grid,
  .pub-grid,
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .results-grid,
  .coop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-layout {
    grid-template-columns: 1fr;
  }
  .news-secondary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 72px; }
  .container { padding: 0 24px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 44px; }

  .nav.is-open {
    left: 0;
    right: 0;
    background: var(--bg);
    border-top: 1px solid var(--line);
    border-right: none;
    border-bottom: 1px solid var(--line);
    border-left: none;
    border-radius: 0;
  }
  .brand-text {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    line-height: 1.1;
  }
  .brand-title {
    font-size: 20px;
  }
  .brand-sub {
    font-size: 10px;
    letter-spacing: 0.14em;
  }

  .contacts-grid,
  .news-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero--column-side {
    position: static;
    max-width: 560px;
  }
  .hero--program {
    min-height: auto;
    padding: 48px 0 40px;
  }

  .tab {
    padding: 14px 16px;
    font-size: 14px;
  }
  .tab-label {
    line-height: 1.3;
  }
}

@media (max-width: 640px) {
  .tabs-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .container { padding: 0 20px; }
  .cards-grid,
  .news-grid,
  .pub-grid,
  .video-grid,
  .results-grid,
  .coop-grid {
    grid-template-columns: 1fr;
  }
  .results-grid {
    gap: 1px;
  }
  .hero--mission-card {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 16px 18px;
  }
  .contacts-form {
    padding-top: 28px;
    padding-bottom: 28px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-nav ul {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .news-card,
  .announcements-panel,
  .news-card-featured {
    padding-left: 20px;
    padding-right: 20px;
  }
  .announcement-row-link {
    grid-template-columns: 1fr;
  }
  .announcement-date {
    justify-self: start;
    min-height: auto;
    min-width: 76px;
  }
}

/* ---------- Presentation theme overrides ---------- */
:root {
  --bg: #f6f0e3;
  --bg-alt: #232b33;
  --surface: #fbf6ec;
  --surface-2: rgba(251, 246, 236, 0.78);
  --ink: #2d281f;
  --ink-2: #5a5144;
  --muted: #857866;
  --line: #d7c39b;
  --line-2: #b88c44;
  --accent: #b88c44;
  --accent-2: #2a8b8a;
  --accent-soft: #e1c07a;
  --night: #232b33;
  --night-2: #323d47;
  --paper: #fcf7ee;
  --shadow-sm: 0 8px 22px rgba(46, 32, 16, 0.06);
  --shadow-md: 0 18px 44px rgba(46, 32, 16, 0.1);
  --shadow-lg: 0 26px 70px rgba(24, 18, 10, 0.16);
  --radius: 18px;
  --radius-lg: 30px;
}

body {
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.94), rgba(246, 240, 227, 0.98)),
    var(--bg);
}

body::before {
  opacity: 1;
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 223, 156, 0.34), transparent 18%),
    radial-gradient(circle at 16% 18%, rgba(42, 139, 138, 0.1), transparent 22%),
    linear-gradient(180deg, rgba(255, 250, 241, 0.82), rgba(246, 240, 227, 0.96)),
    repeating-linear-gradient(
      45deg,
      rgba(184, 140, 68, 0.028) 0 2px,
      transparent 2px 8px
    );
  background-repeat: no-repeat;
}

body::after {
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(184, 140, 68, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 140, 68, 0.05) 1px, transparent 1px);
  background-size: 128px 128px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 92%);
}

a {
  color: var(--accent-2);
}

a:hover {
  color: var(--accent);
}

.site-header {
  background: rgba(252, 247, 238, 0.84);
  border-bottom-color: rgba(184, 140, 68, 0.12);
  box-shadow: 0 8px 24px rgba(46, 32, 16, 0.05);
}

.site-header.is-scrolled {
  border-bottom-color: rgba(184, 140, 68, 0.22);
  box-shadow: 0 14px 34px rgba(46, 32, 16, 0.08);
}

.brand-title {
  color: var(--accent);
  letter-spacing: -0.02em;
  text-shadow: 0 1px 0 rgba(255, 252, 245, 0.45);
}

.brand-mark {
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff6df;
  background: linear-gradient(135deg, rgba(42, 139, 138, 0.96), rgba(24, 105, 105, 0.96));
  box-shadow:
    0 0 0 2px rgba(225, 192, 122, 0.85),
    0 14px 26px rgba(35, 43, 51, 0.16);
}

.nav-list a {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.034em;
  font-feature-settings: "kern" 1, "calt" 1;
}

.nav-list a::after {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.btn {
  border-radius: 999px;
}

.btn-primary {
  color: #241d13;
  border-color: rgba(184, 140, 68, 0.4);
  background: linear-gradient(135deg, #cfa35a, #ebcf95);
  box-shadow: 0 16px 34px rgba(184, 140, 68, 0.2);
}

.btn-primary:hover {
  color: #241d13;
  background: linear-gradient(135deg, #ddb66f, #f5ddab);
  border-color: rgba(184, 140, 68, 0.55);
  box-shadow: 0 20px 42px rgba(184, 140, 68, 0.24);
}

.btn-ghost {
  color: var(--night);
  border-color: rgba(35, 43, 51, 0.2);
  background: rgba(255, 252, 245, 0.58);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: var(--night);
  border-color: var(--night);
  color: #f8f1df;
}

.btn-small {
  color: var(--accent);
  border-color: rgba(184, 140, 68, 0.3);
  background: rgba(255, 252, 245, 0.68);
}

.btn-small:hover {
  background: linear-gradient(135deg, var(--accent), #dfbf81);
  border-color: var(--accent);
  color: #241d13;
}

.btn-events-all.btn-small {
  color: rgba(255, 253, 250, 0.96);
  border: 2px solid #54eee9;
  background: linear-gradient(152deg, #0d5f5d 0%, #127a76 52%, var(--accent-2) 100%);
  font-weight: 600;
  text-shadow: 0 1px 1px rgba(0, 32, 32, 0.35);
  box-shadow:
    0 10px 28px rgba(20, 100, 98, 0.38),
    inset 0 0 0 2px rgba(255, 255, 255, 0.12);
}
.btn-events-all.btn-small:hover {
  background: linear-gradient(145deg, #20c9c5, var(--accent-2));
  border-color: #6efdfa;
  color: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 16px 42px rgba(29, 211, 207, 0.45),
    0 0 40px rgba(36, 224, 220, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

/* Блок программы: финальные акценты в «золотой» теме документа */
.hero--program .hero--cta-primary.btn-primary {
  text-shadow: none;
}

.research-card,
.news-card,
.announcements-panel,
.pub-card,
.video-card,
.coop-card,
.contacts-form {
  position: relative;
  border-color: rgba(184, 140, 68, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 240, 224, 0.92));
  box-shadow: var(--shadow-md);
}

.research-card::after,
.news-card::after,
.announcements-panel::after,
.pub-card::after,
.video-card::after,
.coop-card::after,
.contacts-form::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(184, 140, 68, 0.12);
  border-radius: calc(var(--radius-lg) - 10px);
  pointer-events: none;
}

.announcements-kicker,
.announcement-type,
.pub-type {
  color: var(--accent-2);
}

.research-card h3,
.result-card h3,
.news-card:not(.news-hero) h3,
.announcement-body h3,
.pub-card h3,
.video-body h3,
.coop-card h3,
.contacts-info h3 {
  color: #684e25;
}

.section {
  overflow: hidden;
}

.section::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(184, 140, 68, 0.08);
  pointer-events: none;
}

.section-head::after {
  width: 72px;
  height: 3px;
  margin-top: 24px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, #2a7f7d 50%, var(--accent-2) 100%);
}

.section-kicker {
  color: var(--accent);
}

.section-title {
  color: #7d5d2c;
}

.section-news {
  background: #f9f7f0;
}

.page-list-events {
  position: relative;
  background:
    radial-gradient(ellipse 88% 42% at 50% -6%, rgba(225, 192, 122, 0.24), transparent 50%),
    radial-gradient(circle at 100% 12%, rgba(42, 139, 138, 0.11), transparent 34%),
    radial-gradient(circle at 0% 78%, rgba(184, 140, 68, 0.11), transparent 38%),
    linear-gradient(180deg, #faf8f3 0%, #f6f2ea 48%, #f2ede3 100%);
}

.page-list-events.section::before {
  inset: 14px clamp(16px, 4vw, 42px);
  border-radius: clamp(14px, 2.2vw, 26px);
  border-color: rgba(184, 140, 68, 0.14);
}

.page-list-events > .container > .detail-title {
  margin-top: 0;
  padding-bottom: 2px;
  font-family: var(--font-serif);
  font-weight: 600;
  color: #5a4526;
  letter-spacing: -0.02em;
}

.page-list-events > .container > .detail-title::after {
  content: "";
  display: block;
  width: clamp(56px, 12vw, 88px);
  height: 3px;
  margin-top: 20px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, #2a7f7d 48%, var(--accent-2) 100%);
  box-shadow: 0 2px 14px rgba(42, 99, 95, 0.18);
}

.page-list-pubs-section {
  position: relative;
  background:
    radial-gradient(ellipse 88% 40% at 50% -8%, rgba(225, 192, 122, 0.22), transparent 52%),
    radial-gradient(circle at 0% 18%, rgba(42, 139, 138, 0.12), transparent 36%),
    radial-gradient(circle at 100% 72%, rgba(184, 140, 68, 0.1), transparent 40%),
    linear-gradient(180deg, #faf8f2 0%, #f5f1e8 45%, #f0ebe1 100%);
}

.page-list-pubs-section.section::before {
  inset: 14px clamp(16px, 4vw, 42px);
  border-radius: clamp(14px, 2.2vw, 26px);
  border-color: rgba(184, 140, 68, 0.13);
}

.page-list-pubs > .detail-title {
  margin-top: 0;
  padding-bottom: 2px;
  font-family: var(--font-serif);
  font-weight: 600;
  color: #5a4526;
  letter-spacing: -0.02em;
}

.page-list-pubs > .detail-title::after {
  content: "";
  display: block;
  width: clamp(56px, 12vw, 88px);
  height: 3px;
  margin-top: 20px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, #2a7f7d 48%, var(--accent-2) 100%);
  box-shadow: 0 2px 14px rgba(42, 99, 95, 0.16);
}

.page-list-pubs .pub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(28px, 3.5vw, 40px);
  padding: 4px 2px 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(184, 140, 68, 0.35) transparent;
}

.page-list-pubs .pub-filters::-webkit-scrollbar {
  height: 5px;
}

.page-list-pubs .pub-filters::-webkit-scrollbar-thumb {
  background: rgba(184, 140, 68, 0.35);
  border-radius: 999px;
}

.page-list-pubs .pub-filters .filter {
  flex: 0 0 auto;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(184, 140, 68, 0.28);
  color: #4a4034;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    color 0.2s var(--ease);
}

.page-list-pubs .pub-filters .filter:hover {
  border-color: rgba(42, 139, 138, 0.32);
  color: #2e261c;
  background: rgba(255, 255, 255, 0.98);
}

.page-list-pubs .pub-filters .filter.is-active {
  color: #254d4b;
  border-color: rgba(42, 139, 138, 0.36);
  background: linear-gradient(180deg, rgba(236, 249, 247, 0.95), rgba(220, 242, 239, 0.88));
  box-shadow:
    0 0 0 1px rgba(42, 139, 138, 0.1),
    0 8px 22px rgba(42, 99, 95, 0.1);
}

.page-list-pubs .pub-filters .filter:focus-visible {
  outline: 2px solid rgba(42, 139, 138, 0.45);
  outline-offset: 3px;
}

.page-list-pubs .pub-grid-static {
  margin-top: 4px;
  gap: clamp(20px, 2.5vw, 26px);
}

.page-list-pubs .pub-grid-static .pub-card {
  border-radius: var(--radius-lg);
  border-color: rgba(184, 140, 68, 0.22);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.99) 0%, rgba(252, 248, 241, 0.96) 55%, rgba(248, 244, 235, 0.94) 100%);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.75) inset,
    0 14px 36px rgba(46, 32, 16, 0.07),
    var(--shadow-sm);
}

.page-list-pubs .pub-grid-static .pub-card:hover {
  transform: translateY(-4px);
  border-color: rgba(42, 139, 138, 0.22);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.85) inset,
    0 20px 44px rgba(46, 32, 16, 0.09),
    0 0 0 1px rgba(42, 139, 138, 0.07);
}

.page-list-events .tabs {
  margin-bottom: clamp(36px, 4vw, 48px);
  padding: clamp(11px, 1.8vw, 14px);
  border: 1px solid rgba(184, 140, 68, 0.24);
  border-radius: calc(var(--radius-lg) + 4px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(252, 247, 238, 0.88)),
    radial-gradient(circle at 30% -20%, rgba(42, 139, 138, 0.06), transparent 55%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 14px 36px rgba(46, 32, 16, 0.07),
    0 6px 16px rgba(28, 35, 48, 0.04);
  backdrop-filter: none;
}

.page-list-events .tabs .tab {
  border-radius: 18px;
  transition:
    transform 0.22s var(--ease),
    color 0.22s var(--ease),
    border-color 0.22s var(--ease),
    background 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}

.page-list-events .tabs .tab:hover {
  transform: translateY(-1px);
}

.page-list-events .tabs .tab.is-active {
  color: #2d5c5a;
  border-color: rgba(42, 139, 138, 0.38);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(236, 249, 247, 0.82));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.75),
    0 12px 28px rgba(42, 99, 95, 0.12);
}

.page-list-events .tabs .tab.is-active .tab-index {
  color: #2a8b8a;
}

.page-list-events .tabs .tab-index {
  color: color-mix(in srgb, var(--accent-soft) 88%, var(--accent-2));
}

.page-list-events .tabs-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(6px, 1.2vw, 10px);
  align-items: stretch;
}

.page-list-events .tabs-track-row-all {
  grid-column: 1 / -1;
}

.page-list-events .tabs-track > .tab:not(.tab--all) {
  min-width: 0;
}

.page-list-events .tabs-track-row-all .tab.tab--all {
  justify-content: center;
  width: 100%;
  text-align: center;
}

.page-list-events .tab-label--all {
  flex: none;
  width: 100%;
  font-weight: 600;
}
.page-list-events #listRoot:not(.events-view-all) .events-all-section-heading {
  display: none;
}
.page-list-events #listRoot.events-view-all > .tab-panel {
  display: block;
  opacity: 1;
  transform: none;
  animation: none;
}
.page-list-events #listRoot.events-view-all > .tab-panel + .tab-panel {
  margin-top: clamp(32px, 4vw, 48px);
}
.page-list-events #listRoot.events-view-all .events-all-section-heading {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.page-list-news .news-list-search-wrap,
.page-list-events .news-list-search-wrap,
.page-list-pubs .news-list-search-wrap {
  margin-bottom: 20px;
}
.page-list-news .news-list-search-input,
.page-list-events .news-list-search-input,
.page-list-pubs .news-list-search-input {
  width: 100%;
  max-width: 420px;
  padding: 12px 18px;
  font-family: inherit;
  font-size: 15px;
  border: 1px solid rgba(184, 140, 68, 0.35);
  border-radius: 999px;
  background: #fffef9;
  color: #2e261c;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.page-list-news .news-list-search-input::placeholder,
.page-list-events .news-list-search-input::placeholder,
.page-list-pubs .news-list-search-input::placeholder {
  color: rgba(74, 64, 52, 0.45);
}
.page-list-news .news-list-search-input:focus,
.page-list-events .news-list-search-input:focus,
.page-list-pubs .news-list-search-input:focus {
  outline: none;
  border-color: rgba(42, 139, 138, 0.55);
  box-shadow: 0 0 0 3px rgba(42, 139, 138, 0.18);
}
.page-list-news .news-search-empty,
.page-list-events .news-search-empty,
.page-list-pubs .news-search-empty {
  padding: 12px 0 8px;
  font-size: 15px;
}
.page-list-news .news-search-empty.is-hidden,
.page-list-events .news-search-empty.is-hidden,
.page-list-pubs .news-search-empty.is-hidden {
  display: none !important;
}

.page-list-events .news-list-search-wrap {
  margin-bottom: 24px;
}

.page-list-events .news-list-search-input {
  max-width: none;
  width: min(100%, 560px);
  padding: 14px 20px 14px 48px;
  border-radius: 14px;
  border: 1px solid rgba(184, 140, 68, 0.32);
  background-color: rgba(255, 254, 250, 0.96);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23b88c44' stroke-width='1.75'%3E%3Ccircle cx='8.8' cy='8.8' r='6'/%3E%3Cpath d='m13 13 4 4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 17px center;
  background-size: 20px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 8px 22px rgba(46, 32, 16, 0.05);
}

.page-list-events .news-list-search-input::placeholder {
  color: rgba(92, 78, 60, 0.42);
}

.page-list-events .news-list-search-input:focus {
  border-color: rgba(42, 139, 138, 0.48);
  box-shadow:
    0 0 0 3px rgba(42, 139, 138, 0.15),
    0 10px 28px rgba(42, 99, 95, 0.09);
}

.page-list-pubs .news-list-search-wrap {
  margin-bottom: 24px;
}

.page-list-pubs .news-list-search-input {
  max-width: none;
  width: min(100%, 560px);
  padding: 14px 20px 14px 48px;
  border-radius: 14px;
  border: 1px solid rgba(184, 140, 68, 0.28);
  background-color: rgba(255, 254, 250, 0.97);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%232a8b8a' stroke-width='1.75'%3E%3Ccircle cx='8.8' cy='8.8' r='6'/%3E%3Cpath d='m13 13 4 4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 17px center;
  background-size: 20px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 8px 22px rgba(46, 32, 16, 0.05);
}

.page-list-pubs .news-list-search-input::placeholder {
  color: rgba(92, 78, 60, 0.42);
}

.page-list-pubs .news-list-search-input:focus {
  border-color: rgba(42, 139, 138, 0.45);
  box-shadow:
    0 0 0 3px rgba(42, 139, 138, 0.14),
    0 10px 28px rgba(42, 99, 95, 0.08);
}

.page-list-events .news-search-empty {
  margin: 0 0 6px;
  padding: 14px 18px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 251, 242, 0.98), rgba(252, 244, 230, 0.9));
  border: 1px solid rgba(184, 140, 68, 0.28);
  color: #6b5340;
  box-shadow: 0 6px 20px rgba(46, 32, 16, 0.05);
}

.page-list-events .events-all-grid {
  gap: clamp(22px, 2.5vw, 30px);
  margin-top: 4px;
}

.page-list-events .research-card.research-card--grid {
  border-radius: var(--radius-lg);
  border-color: rgba(184, 140, 68, 0.22);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.99) 0%, rgba(252, 248, 241, 0.96) 55%, rgba(248, 242, 232, 0.94) 100%);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.75) inset,
    0 18px 42px rgba(46, 32, 16, 0.08),
    var(--shadow-sm);
}

.page-list-events .research-card.research-card--grid:hover {
  transform: translateY(-5px);
  border-color: rgba(42, 139, 138, 0.22);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.85) inset,
    0 22px 48px rgba(46, 32, 16, 0.1),
    0 0 0 1px rgba(42, 139, 138, 0.08);
}

.page-list-events .research-card.research-card--grid::before {
  height: 3px;
  opacity: 1;
  filter: saturate(1.05);
}

.page-list-events .research-card.research-card--grid .research-years {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 10px;
  margin-bottom: 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #2f6f6e;
  background: rgba(42, 139, 138, 0.1);
  border: 1px solid rgba(42, 139, 138, 0.18);
}

.page-list-events .research-card.research-card--grid h3 {
  color: #5c4729;
}

.page-list-events .research-card.research-card--grid .tags {
  border-top-color: rgba(184, 140, 68, 0.2);
  padding-top: 14px;
}

.page-list-events .research-card.research-card--grid .tags li {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7a6a52;
}

/* Пилюльный фильтр категорий — страница «Все новости» */
.page-list-news .news-filters {
  flex-wrap: nowrap;
  gap: 10px;
  margin-bottom: 32px;
  padding: 4px 2px 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(184, 140, 68, 0.35) transparent;
}
.page-list-news .news-filters::-webkit-scrollbar {
  height: 5px;
}
.page-list-news .news-filters::-webkit-scrollbar-thumb {
  background: rgba(184, 140, 68, 0.35);
  border-radius: 999px;
}

.page-list-news .news-filters .filter {
  flex: 0 0 auto;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  background: #fff;
  border: 1px solid rgba(184, 140, 68, 0.3);
  color: #4a4034;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  box-shadow: none;
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    color 0.2s var(--ease);
}

.page-list-news .news-filters .filter:hover {
  border-color: rgba(184, 140, 68, 0.48);
  color: #2e261c;
}

.page-list-news .news-filters .filter.is-active {
  color: #2e261c;
  border-color: rgba(184, 140, 68, 0.4);
  background: linear-gradient(180deg, #dfc59a, #c7a66a);
  box-shadow: 0 3px 14px rgba(73, 52, 28, 0.14);
}

.page-list-news .news-filters .filter:focus-visible {
  outline: 2px solid rgba(42, 139, 138, 0.5);
  outline-offset: 3px;
}

.section-head--news .section-title {
  color: #8b6e4e;
}

.section-head--news .section-sub {
  color: #4a453d;
  max-width: 52ch;
}

.section-head--news::after {
  width: 88px;
  height: 2px;
  margin-top: 22px;
  border-radius: 2px;
  background: linear-gradient(90deg, #e0c088, #8b6e4e);
}

.announcements-panel--news {
  padding: 24px 20px 20px;
  gap: 0;
  border-radius: 18px;
  background: #fffef9;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 34px rgba(46, 32, 16, 0.06);
}

.announcements-panel--news::before {
  display: none;
}

.announcements-panel--news::after {
  display: none;
}

.announcements-kicker--news {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #4a908f;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.announcements-list--news li + li {
  border-top-color: rgba(0, 0, 0, 0.08);
}

.announcement-date--news {
  min-height: auto;
  padding: 14px 10px;
  border-radius: 14px;
  background: #f3f1ea;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.announcement-date--news span {
  font-family: var(--font-serif);
  font-size: 28px;
  color: #333;
}

.announcement-date--news small {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #555;
  font-family: var(--font-sans, "Inter", system-ui, sans-serif);
}

.announcements-panel--news .announcement-body h3 {
  color: #5c472f;
}

.announcements-panel--news .announcement-type {
  color: #4a908f;
  font-family: var(--font-sans, "Inter", system-ui, sans-serif);
}

.announcements-panel--news .announcement-body p:last-child {
  color: #444;
}

.announcements-panel--news .announcement-row-link {
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

.announcements-panel--news .announcement-row-link:hover {
  background: transparent;
}

.section-alt,
#videos {
  color: #f4ead6;
  background:
    radial-gradient(circle at 50% -12%, rgba(235, 196, 118, 0.18), transparent 38%),
    radial-gradient(circle at 100% 0, rgba(42, 139, 138, 0.16), transparent 20%),
    linear-gradient(180deg, rgba(35, 43, 51, 0.98), rgba(23, 30, 36, 0.99));
}

.section-alt::before,
#videos::before {
  border-color: rgba(225, 192, 122, 0.14);
}

.section-alt .section-kicker,
#videos .section-kicker {
  color: rgba(225, 192, 122, 0.88);
}

.section-alt .section-title,
#videos .section-title {
  color: #f0cd8f;
}

.section-alt .section-sub,
#videos .section-sub,
.section-alt .lead,
.section-alt .muted {
  color: rgba(244, 234, 214, 0.78);
}

.tabs {
  border-color: rgba(225, 192, 122, 0.18);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.section-alt .tab {
  color: rgba(244, 234, 214, 0.68);
  border-radius: 999px;
}

.section-alt .tab:hover {
  color: #fff4db;
}

.section-alt .tab-index {
  color: rgba(225, 192, 122, 0.92);
}

.section-alt .tab.is-active {
  color: #fff6e3;
  border-color: rgba(225, 192, 122, 0.34);
  background:
    linear-gradient(135deg, rgba(225, 192, 122, 0.18), rgba(42, 139, 138, 0.18));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 18px 40px rgba(0, 0, 0, 0.18);
}

/* Cooperation: светлая полоса (слоновая кость + пшеница + бирюза в акцентах) */
#cooperation.section-alt {
  color: var(--ink);
  background:
    radial-gradient(ellipse 92% 48% at 50% -10%, rgba(225, 192, 122, 0.22), transparent 52%),
    radial-gradient(circle at 6% 55%, rgba(42, 139, 138, 0.07), transparent 38%),
    radial-gradient(circle at 94% 88%, rgba(184, 140, 68, 0.09), transparent 40%),
    linear-gradient(178deg, #fdfcfa 0%, #f6f2ea 52%, #eef6f5 100%);
}

#cooperation.section-alt::before {
  border-color: rgba(42, 139, 138, 0.12);
}

#cooperation.section-alt .section-title {
  color: #7d5d2c;
}

#cooperation.section-alt .section-sub,
#cooperation.section-alt .coop-intro .lead,
#cooperation.section-alt .muted {
  color: var(--ink-2);
}

/* Публикации и материалы: светлая полоса */
#publications.section-alt {
  color: var(--ink);
  background:
    radial-gradient(ellipse 94% 48% at 50% -10%, rgba(225, 192, 122, 0.2), transparent 52%),
    radial-gradient(circle at 6% 40%, rgba(42, 139, 138, 0.07), transparent 36%),
    radial-gradient(circle at 94% 78%, rgba(184, 140, 68, 0.09), transparent 42%),
    linear-gradient(177deg, #fdfcfa 0%, #f6f3ec 46%, #eef5f4 100%);
}

#publications.section-alt::before {
  border-color: rgba(42, 139, 138, 0.12);
}

#publications.section-alt .section-title {
  color: #7d5d2c;
}

#publications.section-alt .section-sub {
  color: var(--ink-2);
}

#publications.section-alt .pub-filters .filter {
  background: rgba(255, 252, 245, 0.75);
  border-color: rgba(184, 140, 68, 0.22);
  color: var(--ink-2);
}

#publications.section-alt .pub-filters .filter:hover {
  border-color: var(--ink-2);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
}

#publications.section-alt .pub-filters .filter.is-active {
  background: linear-gradient(135deg, var(--accent-2), #1a3550);
  color: #fff;
  border-color: var(--accent-2);
  box-shadow: 0 10px 24px rgba(14, 42, 71, 0.2);
}

#publications.section-alt .pub-filters .filter:focus-visible {
  outline: 2px solid rgba(42, 139, 138, 0.55);
  outline-offset: 2px;
}

#publications.section-alt .carousel-btn {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(184, 140, 68, 0.3);
  box-shadow: 0 4px 16px rgba(28, 35, 48, 0.09);
}

#publications.section-alt .carousel-btn:hover {
  background: #fff;
  border-color: var(--accent-2);
  box-shadow: 0 8px 22px rgba(14, 42, 71, 0.12);
}

/* Направления: светлый блок (фон и вкладки; карточки карусели уже «слоновые») */
#directions.section-alt {
  color: var(--ink);
  background:
    radial-gradient(ellipse 96% 50% at 50% -8%, rgba(225, 192, 122, 0.22), transparent 52%),
    radial-gradient(circle at 8% 18%, rgba(31, 127, 123, 0.07), transparent 34%),
    radial-gradient(circle at 96% 88%, rgba(184, 140, 68, 0.1), transparent 40%),
    linear-gradient(176deg, #fdfbf8 0%, #f5f1ea 48%, #e9e5dc 100%);
}

#directions.section-alt::before {
  border-color: rgba(42, 139, 138, 0.11);
}

#directions.section-alt .section-title {
  color: #7d5d2c;
}

#directions.section-alt .section-sub {
  color: var(--ink-2);
}

#directions.section-alt .tabs {
  border-color: rgba(216, 209, 189, 0.9);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow-sm);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}

#directions .tabs-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
}

#directions .tabs-track .tab {
  flex: 1 1 0;
  min-width: 0;
}

#directions.section-alt .tab {
  border-radius: 16px;
  color: var(--muted);
}

#directions.section-alt .tab:hover {
  color: var(--ink);
}

#directions.section-alt .tab-index {
  color: var(--accent-soft);
}

#directions.section-alt .tab.is-active {
  color: var(--accent);
  border-color: rgba(125, 47, 47, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 248, 242, 0.94));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    0 12px 26px rgba(28, 35, 48, 0.07);
}

#directions.section-alt .tab.is-active .tab-index {
  color: var(--accent);
}

#directions .section-corner-actions .btn-events-all {
  box-sizing: border-box;
  width: calc(100vw / 3);
  padding-top: calc(12px * 1.5);
  padding-bottom: calc(12px * 1.5);
  font-size: 15px;
  letter-spacing: 0.05em;
  white-space: normal;
  line-height: 1.3;
}

.tags {
  border-top-color: rgba(184, 140, 68, 0.18);
}

.tags li {
  color: var(--muted);
}

#results {
  background:
    linear-gradient(180deg, rgba(255, 252, 245, 0.88), rgba(246, 240, 227, 0.96));
}

.results-grid {
  background: rgba(184, 140, 68, 0.16);
  border-color: rgba(184, 140, 68, 0.16);
  border-radius: var(--radius-lg);
}

.result-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 240, 224, 0.94));
}

.result-card:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(250, 243, 229, 0.96));
}

.result-ornament {
  border-color: rgba(184, 140, 68, 0.56);
  background: rgba(42, 139, 138, 0.06);
}

.result-ornament::before,
.result-ornament::after {
  background: var(--accent);
}

.news-card-featured {
  background:
    radial-gradient(circle at 86% 14%, rgba(247, 209, 133, 0.18), transparent 16%),
    linear-gradient(180deg, rgba(36, 44, 53, 0.98), rgba(24, 31, 38, 0.96));
  color: #f3ead8;
}

.news-card-featured::before {
  background: linear-gradient(
    90deg,
    rgba(240, 205, 143, 0.95) 0%,
    #4aaba9 48%,
    rgba(174, 214, 245, 0.88) 100%
  );
}

.news-card-featured::after {
  background:
    radial-gradient(circle at 84% 16%, rgba(247, 209, 133, 0.18), transparent 18%),
    radial-gradient(circle at 16% 88%, rgba(42, 139, 138, 0.12), transparent 20%),
    url("assets/eurasia-map.svg");
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: auto, auto, 780px auto;
  background-position: 84% 16%, 16% 88%, right -160px center;
  opacity: 0.18;
}

.news-card-featured .news-meta,
.news-card-featured p {
  color: rgba(243, 234, 216, 0.82);
}

.news-type {
  color: var(--accent-2);
}

.news-type::before {
  box-shadow: 0 0 0 4px rgba(42, 139, 138, 0.14);
}

.news-link {
  color: var(--accent-2);
  border-bottom-color: rgba(14, 42, 71, 0.32);
}

.news-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.news-card-featured .news-link {
  color: #f4d69a;
  border-bottom-color: rgba(244, 214, 154, 0.45);
}

.news-card-featured .news-link:hover {
  color: #fff8ea;
  border-bottom-color: rgba(255, 248, 234, 0.84);
}

.announcement-date {
  background: rgba(42, 139, 138, 0.07);
  border-color: rgba(42, 139, 138, 0.16);
}

.announcement-date span {
  color: var(--accent);
}

.filter {
  border-color: rgba(184, 140, 68, 0.24);
  background: rgba(255, 252, 245, 0.54);
}

.filter.is-active {
  color: #241d13;
  border-color: rgba(184, 140, 68, 0.44);
  background: linear-gradient(135deg, #cfa35a, #ebcf95);
  box-shadow: 0 14px 28px rgba(184, 140, 68, 0.22);
}

.pub-link {
  color: var(--accent-2);
  border-bottom-color: rgba(42, 139, 138, 0.24);
}

.pub-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.video-thumb {
  background-color: #2a3038;
  background-image:
    radial-gradient(circle at 78% 24%, rgba(255, 223, 155, 0.34), transparent 14%),
    linear-gradient(180deg, rgba(255, 248, 232, 0.08) 0%, rgba(241, 207, 133, 0.14) 34%, rgba(107, 74, 29, 0.48) 62%, rgba(34, 42, 51, 0.78) 100%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 12px);
}

.video-thumb[data-pattern="p1"],
.video-thumb[data-pattern="p2"],
.video-thumb[data-pattern="p3"],
.video-thumb[data-pattern="p4"],
.video-thumb[data-pattern="p5"],
.video-thumb[data-pattern="p6"] {
  background-color: #2a3038;
}

.play-btn {
  color: #241d13;
  background: linear-gradient(135deg, #d3a65a, #edd49c);
  box-shadow: 0 10px 28px rgba(10, 13, 16, 0.36);
}

.play-btn:hover {
  background: linear-gradient(135deg, var(--accent-2), #6dc3c1);
  color: #fff;
}

.video-caption {
  color: #fff6df;
  background: rgba(18, 23, 30, 0.52);
}

.coop-dot {
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(42, 139, 138, 0.14);
}

.contacts-list dt,
.contacts-form label span {
  color: rgba(133, 120, 102, 0.86);
}

.contacts-list dd,
.contacts-list dd a {
  color: #684e25;
}

.contacts-list dd a:hover {
  color: var(--accent-2);
}

.contacts-form input,
.contacts-form textarea {
  border-bottom-color: rgba(184, 140, 68, 0.22);
}

.contacts-form input:focus,
.contacts-form textarea:focus {
  border-bottom-color: var(--accent-2);
}

.contacts-ornament {
  color: var(--accent);
}

.form-status {
  color: var(--accent-2);
}

/* ---------- Header search, carousels, publications tie, subpages (v4) ---------- */
.header-search {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 1;
  min-width: 0;
}
.header-search input {
  width: 160px;
  max-width: 28vw;
  padding: 8px 10px;
  font-size: 13px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
}
.header-search input:focus {
  outline: none;
  border-color: var(--accent-2);
}
.header-search-btn {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  background: var(--accent-2);
  color: #fff;
  border: 1px solid var(--accent-2);
  white-space: nowrap;
}
.header-search-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.carousel-shell {
  position: relative;
  margin: 0 -8px;
}
.carousel-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  margin: 0 44px;
  padding-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel-viewport::-webkit-scrollbar {
  display: none;
  height: 0;
}
.carousel-track {
  display: flex;
  gap: 24px;
  align-items: stretch;
}
.carousel-track--cards .research-card--slide {
  flex: 0 0 min(340px, calc(100vw - 100px));
  scroll-snap-align: start;
  max-width: 400px;
}
.carousel-shell--news .news-card,
.carousel-shell--news .partner-news-card {
  flex: 0 0 min(380px, calc(100vw - 100px));
  scroll-snap-align: start;
  max-width: 440px;
}
.carousel-track--pubs .pub-card--slide {
  flex: 0 0 min(320px, calc(100vw - 100px));
  scroll-snap-align: start;
  max-width: 380px;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-sm);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.carousel-btn:hover {
  border-color: var(--accent-2);
  background: #fff;
}
.carousel-btn-prev {
  left: 0;
}
.carousel-btn-prev::after {
  content: "";
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 4px;
}
.carousel-btn-next {
  right: 0;
}
.carousel-btn-next::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  margin-right: 4px;
}

.section-block-relative {
  position: relative;
  padding-bottom: 140px;
}
.section-corner-actions {
  position: absolute;
  right: 32px;
  bottom: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  z-index: 2;
}

.news-card-hit,
.pub-card-hit {
  position: absolute;
  inset: 0;
  z-index: 5;
}
.news-card,
.pub-card {
  position: relative;
}
.news-card .news-meta,
.news-card h3,
.news-card p,
.news-card .news-link,
.news-card .partner-card-top {
  position: relative;
  z-index: 3;
}
.pub-card .pub-type,
.pub-card h3,
.pub-card p,
.pub-card .pub-link,
.pub-card .pub-tie,
.pub-card .pub-video-thumb {
  position: relative;
  z-index: 3;
}
.news-filter-target.is-hidden {
  display: none !important;
}

.news-link--inline {
  display: inline-flex;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-2);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
}
.news-link--inline:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.news-card-featured .news-link--inline {
  color: #fff2d2;
  border-bottom-color: rgba(255, 242, 210, 0.45);
}
.partner-news-card .news-link--inline {
  color: var(--accent-2);
  border-bottom-color: var(--line-2);
}

.research-card--slide {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  min-height: 320px;
}
.research-card--slide:hover {
  color: inherit;
}
.research-years {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 10px;
}

.pub-tie {
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 8px;
  line-height: 1.4;
}
.pub-tie-label {
  color: var(--muted);
  margin-right: 4px;
}
.pub-card {
  min-height: 400px;
}
.pub-card--video .pub-video-thumb {
  margin: -32px -28px 16px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}
.pub-video-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background-color: #23304a;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 60%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 12px);
}
.pub-video-thumb[data-pattern="p1"] { background-color: #2a3a55; }
.pub-video-thumb[data-pattern="p2"] { background-color: #4a3526; }
.pub-video-thumb[data-pattern="p3"] { background-color: #5a2424; }
.pub-video-thumb[data-pattern="p4"] { background-color: #2d4238; }
.pub-video-thumb[data-pattern="p5"] { background-color: #362a4a; }
.pub-video-thumb[data-pattern="p6"] { background-color: #4a4028; }
.pub-video-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 50%);
  z-index: 1;
}
.pub-video-thumb .play-btn {
  z-index: 4;
}
.pub-video-thumb .video-caption {
  z-index: 4;
}

.pub-subsection-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  margin: 48px 0 0;
  color: var(--ink);
}

.partner-card-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.partner-logo {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  padding: 5px;
  box-sizing: border-box;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-2);
  background: #fff;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-sm);
}
.partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.partner-org {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.partner-news-card .partner-card-top .news-meta {
  margin-top: 6px;
  margin-bottom: 0;
}

.scroll-top-btn {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-2);
  color: #fff;
  border: 1px solid var(--accent-2);
  font-size: 20px;
  line-height: 1;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.page-sub .sub-main {
  padding: 100px 0 80px;
  min-height: 50vh;
}
.page-sub .sub-main > .section {
  padding-top: 0;
  padding-bottom: 72px;
}
.site-header--sub {
  position: fixed;
}
.nav--sub {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav--sub a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.detail-root {
  max-width: 820px;
  margin-inline: auto;
}
.detail-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 16px;
}
.detail-meta {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 20px;
}
.detail-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 24px;
}
.detail-muted {
  color: var(--muted);
  font-size: 14px;
}
.detail-article .tags {
  margin-top: 24px;
}
.detail-h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  margin: 36px 0 16px;
}
.detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.detail-list a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}
.detail-list span {
  font-size: 13px;
  color: var(--muted);
}
.detail-video-thumb {
  margin: 0 0 24px;
  border-radius: var(--radius);
  min-height: 200px;
  position: relative;
}

/* —— Галерея на странице новости/анонса —— */
.detail-gallery {
  margin-top: clamp(36px, 5vw, 52px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid rgba(184, 140, 68, 0.22);
}
.detail-gallery.detail-gallery--after-title {
  margin-top: clamp(18px, 2.8vw, 26px);
  margin-bottom: clamp(28px, 4.5vw, 44px);
  padding-top: 0;
  border-top: none;
  /* Ширину и отрицательный margin задаёт layoutNewsGalleryBleed() — см. detail-page.js */
  max-width: none;
  box-sizing: border-box;
  padding-inline: max(12px, env(safe-area-inset-left, 0px))
    max(12px, env(safe-area-inset-right, 0px));
}
.detail-gallery.detail-gallery--after-title .detail-news-carousel__main-row {
  position: relative;
  display: block;
}
.detail-gallery.detail-gallery--after-title .detail-news-carousel__viewport {
  width: 100%;
  border-radius: 0;
  border-left: none;
  border-right: none;
}
.detail-gallery.detail-gallery--after-title .detail-news-carousel__arrow {
  position: absolute;
  top: 50%;
  margin-top: 0;
  z-index: 2;
}
.detail-gallery.detail-gallery--after-title .detail-news-carousel__arrow:hover {
  transform: translateY(-50%) scale(1.05);
}
.detail-gallery.detail-gallery--after-title .detail-news-carousel__arrow:focus-visible {
  transform: translateY(-50%);
}
.detail-gallery.detail-gallery--after-title .detail-news-carousel__arrow--prev {
  left: max(10px, env(safe-area-inset-left, 0px));
  transform: translateY(-50%);
}
.detail-gallery.detail-gallery--after-title .detail-news-carousel__arrow--next {
  right: max(10px, env(safe-area-inset-right, 0px));
  transform: translateY(-50%);
}
.detail-gallery.detail-gallery--after-title .detail-news-carousel__img-wrap {
  padding-inline: clamp(6px, 1.2vw, 12px);
}
.detail-gallery.detail-gallery--after-title .detail-news-carousel__img-wrap img {
  max-height: min(78vh, 800px);
}
.detail-news-carousel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  outline: none;
}
.detail-news-carousel:focus-visible {
  box-shadow: 0 0 0 2px rgba(74, 144, 143, 0.45);
  border-radius: 16px;
}
.detail-news-carousel__main-row {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 14px);
}
.detail-news-carousel__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: 14px;
  background:
    radial-gradient(
      ellipse 120% 80% at 50% 35%,
      rgba(255, 252, 247, 0.65) 0%,
      rgba(236, 228, 210, 0.45) 100%
    ),
    rgba(52, 40, 24, 0.04);
  border: 1px solid rgba(184, 140, 68, 0.24);
  box-shadow:
    0 8px 32px rgba(46, 32, 16, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: height 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
}
@media (prefers-reduced-motion: reduce) {
  .detail-news-carousel__viewport {
    transition: none;
  }
}
.detail-news-carousel__track {
  display: flex;
  align-items: flex-start;
  transition: transform 0.55s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .detail-news-carousel__track {
    transition: none;
  }
}
.detail-news-carousel__slide {
  flex-shrink: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  box-sizing: border-box;
}
.detail-news-carousel__img-wrap {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 1.6vw, 16px);
  background: transparent;
}
.detail-news-carousel__img-wrap img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(620px, 72vh);
  object-fit: contain;
  display: block;
  border-radius: 10px;
  box-shadow: 0 2px 14px rgba(40, 28, 14, 0.08);
}

.detail-news-carousel__arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(184, 140, 68, 0.35);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  color: var(--accent-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease),
    color 0.2s var(--ease);
}
.detail-news-carousel__arrow:hover {
  background: #fff;
  border-color: rgba(74, 144, 143, 0.55);
  color: var(--accent);
  transform: scale(1.05);
}
.detail-news-carousel__arrow:focus-visible {
  outline: 2px solid #4a908f;
  outline-offset: 2px;
}
.detail-news-carousel__arrow--prev::after,
.detail-news-carousel__arrow--next::after {
  content: "";
  width: 9px;
  height: 9px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}
.detail-news-carousel__arrow--prev::after {
  transform: rotate(45deg);
  margin-left: 4px;
}
.detail-news-carousel__arrow--next::after {
  transform: rotate(-135deg);
  margin-right: 4px;
}

.detail-news-carousel__caption {
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  text-align: center;
  max-width: 560px;
  min-height: 1.55em;
}
.detail-news-carousel__caption:empty,
.detail-news-carousel__caption[hidden] {
  display: none !important;
  min-height: 0;
}

.detail-news-carousel__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.detail-news-carousel__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(184, 140, 68, 0.35);
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    background 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.detail-news-carousel__dot:hover {
  background: rgba(74, 144, 143, 0.55);
  transform: scale(1.15);
}
.detail-news-carousel__dot.is-active {
  background: #4a908f;
  box-shadow: 0 0 0 3px rgba(74, 144, 143, 0.28);
  transform: scale(1.12);
}
.detail-news-carousel__dot:focus-visible {
  outline: 2px solid #4a908f;
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .detail-news-carousel__main-row {
    flex-wrap: wrap;
    justify-content: center;
  }
  .detail-news-carousel__viewport {
    order: 0;
    flex-basis: 100%;
    max-width: 100%;
  }
  .detail-news-carousel__arrow--prev {
    order: 1;
  }
  .detail-news-carousel__arrow--next {
    order: 2;
  }
}

.partner-logo-lg {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  padding: 8px;
  box-sizing: border-box;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent-2);
  background: #fff;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-sm);
}
.partner-logo-lg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.search-page-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 32px;
}
.search-page-form input {
  flex: 1 1 240px;
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}
.search-hit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.search-hit-list a {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.65);
}
.search-hit-list strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}
.search-hit-list span {
  font-size: 13px;
  color: var(--muted);
}
.list-stack {
  display: grid;
  gap: 20px;
}
.list-row-card {
  margin: 0;
}

/* ---------- Partners landing ---------- */
.page-partners main.partners-main {
  padding-bottom: 96px;
}
.partners-page-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 48px);
}
.partners-page-title {
  margin: 0 0 14px !important;
}
.partners-page-lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink-2);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(22px, 3vw, 30px);
  align-items: stretch;
}

.partner-page-card.partner-news-card {
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 0;
  padding: 28px 28px 26px;
  background:
    linear-gradient(148deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 247, 240, 0.94) 55%, rgba(255, 255, 255, 0.88) 100%);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.25s var(--ease);
}

.partner-page-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  z-index: 1;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(61, 125, 111, 0.95) 44%, var(--accent-2) 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  pointer-events: none;
}

/* Внутренний «паспарту» */
.partner-page-card::after {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(14, 42, 71, 0.08);
  border-radius: calc(var(--radius-lg) - 11px);
  pointer-events: none;
  z-index: 0;
}

.partner-page-card:hover {
  transform: translateY(-5px);
  border-color: #cdc4aa;
  box-shadow: var(--shadow-lg);
}

.partner-page-card .partner-card-top,
.partner-page-card h3,
.partner-page-card > p,
.partner-page-card .pub-link {
  position: relative;
  z-index: 2;
}

.partner-page-card .partner-card-top {
  align-items: center;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px dashed rgba(138, 122, 88, 0.38);
}

.partner-page-card .partner-logo {
  width: 72px;
  height: 72px;
  padding: 10px;
  border-radius: 14px;
}
.partner-logo.partner-logo--initials {
  font-size: clamp(13px, 2.2vw, 15px);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-2);
}

.partner-page-card-meta {
  min-width: 0;
}

.partner-page-card .partner-org {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.38;
  color: var(--ink);
}

.partner-page-card .partner-country {
  margin: 0 0 8px;
}

.partner-country-label {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(14, 42, 71, 0.06);
  border: 1px solid rgba(14, 42, 71, 0.1);
  border-radius: 999px;
}

.partner-page-card .partner-card-top .news-meta {
  margin-top: 0;
  margin-bottom: 0;
}
.partner-page-card .news-meta time {
  letter-spacing: 0.12em;
}

.partner-page-card h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.32rem, 2.5vw, 1.72rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 14px;
}
.partner-page-card h3 a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.22s var(--ease);
}
.partner-page-card h3 a:hover {
  color: var(--accent);
}

.partner-page-card > p {
  flex: 1 1 auto;
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink-2);
}

.partner-page-card .partner-page-card-link {
  margin-top: 20px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 10px 0 8px;
  border-bottom-width: 2px;
}
.partner-page-card .partner-page-card-link::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.85;
  transition: transform 0.22s var(--ease);
}
.partner-page-card:hover .partner-page-card-link::after {
  transform: rotate(45deg) translateX(3px);
}

@media (max-width: 540px) {
  .partner-page-card .partner-card-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Страницы «все …»: сетки без каруселей */
.news-all-feed {
  display: grid;
  gap: clamp(20px, 2.5vw, 28px);
}
.news-all-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.events-all-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
  margin-top: 8px;
  align-items: stretch;
}
.research-card.research-card--grid {
  text-decoration: none;
  color: inherit;
  min-height: 0;
}
.pub-grid-static {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 24px;
  margin-top: 8px;
}
.pub-grid-static .pub-card {
  margin: 0;
}
.pub-filter-target.is-hidden {
  display: none !important;
}

.event-filter-target.is-hidden {
  display: none !important;
}

.footer-legal {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
.footer-credit {
  display: block;
  margin-top: 8px;
}

@media (max-width: 960px) {
  .header-search input {
    width: 100px;
  }
  .section-corner-actions {
    position: static;
    margin-top: 28px;
    justify-content: flex-start;
    padding-bottom: 24px;
  }
  .section-block-relative {
    padding-bottom: 64px;
  }
}

@media (max-width: 720px) {
  .header-search {
    order: 10;
    width: 100%;
    margin-top: 8px;
  }
  .nav-wrap {
    flex-wrap: wrap;
  }
  .header-search input {
    flex: 1;
    max-width: none;
    width: auto;
  }
}

/* Footer: тёмный блок + читабельный текст (конец файла — выше специфичность, проще кэш) */
footer.site-footer {
  position: relative;
  z-index: 2;
  isolation: isolate;
  margin-top: 0;
  color: #e8ecf2;
  background-color: #06080d;
  background-image:
    radial-gradient(ellipse 110% 100% at 50% -25%, rgba(42, 139, 138, 0.12), transparent 52%),
    linear-gradient(180deg, #0f141c 0%, #06080d 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

footer.site-footer .footer-grid {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

footer.site-footer .footer-title {
  color: #f4f7fb;
}

footer.site-footer .footer-sub {
  color: rgba(232, 236, 244, 0.72);
}

footer.site-footer .footer-nav a {
  color: rgba(220, 228, 238, 0.92);
}

footer.site-footer .footer-nav a:hover {
  color: #ffffff;
}

footer.site-footer .footer-legal,
footer.site-footer .footer-bottom p {
  color: rgba(224, 230, 240, 0.9);
}

footer.site-footer .footer-credit {
  color: rgba(240, 244, 252, 0.96);
  font-weight: 500;
}

footer.site-footer .footer-bottom {
  padding-top: 24px;
  padding-bottom: 8px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
