/* ==========================================================================
   РЭО — базовые стили (общие для index.html и темы WordPress)
   ========================================================================== */

:root {
  --reo-white: #ffffff;
  --reo-lime: #5dbf2a;
  --reo-lime-soft: rgba(93, 191, 42, 0.95);
  --reo-social: #3f8f1f;
  --reo-overlay: transparent;
  --reo-font: "Montserrat", sans-serif;
  /* Единая ширина контентных блоков (по образцу флагманских инициатив) */
  --reo-container: min(1280px, calc(100% - 48px));
  /* Одинаковые вертикальные отступы секций + воздух перед рубрикой */
  --reo-section-pad: 72px 24px;
  --reo-rubric-gap: 28px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  overflow-x: clip;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  font-family: var(--reo-font);
  color: var(--reo-white);
  background: #0a1208;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* ==========================================================================
   Hero — fullscreen, нижние блоки скрыты до прокрутки
   ========================================================================== */

.hero {
  position: relative;
  height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.hero__pin {
  position: relative;
  height: 100%;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.hero__overlay {
  display: none;
}

.hero__header,
.hero__content,
.hero__next,
.hero__social {
  position: relative;
  z-index: 2;
}

.hero__header {
  width: 100%;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero__nav {
  width: 100%;
  padding: 16px 24px 14px;
  background: linear-gradient(
    180deg,
    rgba(10, 18, 8, 0.88) 0%,
    rgba(10, 18, 8, 0.62) 45%,
    rgba(10, 18, 8, 0.28) 75%,
    rgba(10, 18, 8, 0) 100%
  );
}

.hero__menu {
  width: var(--reo-container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
}

.hero__menu a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.95;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  transition: opacity 0.2s ease;
}

.hero__menu a:hover,
.hero__menu a:focus-visible {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero__menu a[aria-current="page"] {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero__logo {
  display: block;
  width: min(780px, 94vw);
  margin-top: -4px;
}

.hero__logo img {
  width: 100%;
  height: auto;
  /* лого белое на чёрном — убираем чёрный фон через blend, если PNG с фоном */
  mix-blend-mode: screen;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.35));
}

.hero__content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  width: 100%;
  padding: 0 16px 12px;
  /* слоган сразу под лого; у PNG снизу пустое поле — компенсируем */
  margin-top: -148px;
  gap: 0;
  min-height: 0;
}

.hero__title {
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
  font-size: clamp(22px, 3.6vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero__title-line {
  display: block;
  width: min(280px, 50vw);
  height: 1px;
  background: rgba(255, 255, 255, 0.85);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 220px;
  padding: 14px 36px;
  border: 1px solid var(--reo-lime);
  border-radius: 999px;
  color: var(--reo-lime);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.hero__cta:hover,
.hero__cta:focus-visible {
  background: rgba(93, 191, 42, 0.16);
  transform: translateY(-1px);
}

/*
 * «Далее» внутри .hero__content — всегда ниже CTA в одной колонке,
 * margin-top:auto прижимает к низу экрана без нахлёста.
 */
.hero__next {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
  flex: 0 0 auto;
  margin-top: auto;
  margin-bottom: 8px;
  padding-top: 20px; /* минимальный зазор от «Присоединиться» */
  color: var(--reo-white);
  opacity: 0.95;
}

.hero__next-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--reo-white);
}

.hero__next-icon {
  display: flex;
  width: 22px;
  height: 34px;
  color: var(--reo-white);
}

.hero__next-icon svg {
  width: 100%;
  height: 100%;
}

.hero__mouse-wheel {
  animation: hero-mouse-wheel 1.6s ease-in-out infinite;
}

@keyframes hero-mouse-wheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  70% {
    transform: translateY(8px);
    opacity: 0.15;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero__social {
  position: absolute;
  right: 28px;
  bottom: 28px;
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--reo-social);
  color: var(--reo-white);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.hero__social a:hover,
.hero__social a:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.hero__social img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  /* иконки белые на чёрном — чёрный фон убираем на зелёной кнопке */
  mix-blend-mode: screen;
}

/* ==========================================================================
   Цитата — кавычки разъезжаются по горизонтали
   ========================================================================== */

.quote {
  --quote-mark: #1e3326;
  --quote-panel: #dce8cf;
  --quote-text: #2c3326;
  position: relative;
  min-height: min(520px, 70vh);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--reo-section-pad);
  background: #ffffff;
  color: var(--quote-text);
  overflow: hidden;
}

.quote__inner {
  width: var(--reo-container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}

.quote__row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 180px;
}

.quote__mark {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(58px, 7vw, 92px);
  height: clamp(56px, 6.5vw, 88px);
  color: var(--quote-mark);
  user-select: none;
  opacity: 0.88;
  filter: drop-shadow(0 8px 16px rgba(20, 40, 28, 0.12));
  transition:
    transform 1.25s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.7s ease,
    filter 0.7s ease;
}

.quote__mark svg,
.quote__mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.quote__mark--open {
  transform: translateX(42px) scale(0.86);
  align-self: flex-start;
  margin-top: 4px;
}

.quote__mark--close {
  transform: translateX(-42px) scale(0.86);
  align-self: flex-end;
  margin-bottom: 4px;
}

.quote.is-open .quote__mark--open {
  transform: translateX(0) scale(1);
  opacity: 1;
}

.quote.is-open .quote__mark--close {
  transform: translateX(0) scale(1);
  opacity: 1;
}

.quote__panel {
  flex: 0 1 auto;
  width: 0;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  background: var(--quote-panel);
  border-radius: 22px;
  transition:
    max-width 1.15s cubic-bezier(0.22, 0.61, 0.36, 1),
    width 1.15s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.45s ease 0.2s;
}

.quote.is-open .quote__panel {
  width: calc(100% - 140px);
  max-width: calc(100% - 140px);
  opacity: 1;
}

.quote__panel-inner {
  display: flex;
  align-items: stretch;
  gap: 24px;
  width: 100%;
  min-width: calc(var(--reo-container) - 140px);
  padding: 26px 26px 26px 34px;
  box-sizing: border-box;
}

.quote__text {
  margin: 0;
  flex: 1 1 auto;
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 500;
  line-height: 1.55;
  color: var(--quote-text);
}

.quote__photo {
  flex: 0 0 110px;
  width: 110px;
  height: 138px;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: #c5d0b8;
  border-radius: 14px;
}

.quote__author {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  padding-right: clamp(8px, 4vw, 48px);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease 0.55s, transform 0.5s ease 0.55s;
}

.quote.is-open .quote__author {
  opacity: 1;
  transform: translateY(0);
}

.quote__name {
  font-size: 16px;
  font-weight: 700;
  color: #1f241c;
}

.quote__role {
  margin-top: 4px;
  max-width: none;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: #3d4636;
}

/* ==========================================================================
   Миссия / Цель — две половины разъезжаются из центра
   ========================================================================== */

.mission {
  position: relative;
  padding: var(--reo-section-pad);
  background: #ffffff;
  overflow: hidden;
}

.mission__stage {
  position: relative;
  display: flex;
  width: var(--reo-container);
  margin: 0 auto;
  aspect-ratio: 16 / 7;
  min-height: 320px;
  max-height: 520px;
  overflow: hidden;
  border-radius: 24px;
  background: transparent; /* пустое пространство, пока половины выезжают */
}

.mission__half {
  position: relative;
  flex: 0 0 50%;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.mission__reveal {
  position: absolute;
  inset: 0;
  overflow: hidden;
  /* Выезд из центра без искажений: clip, а не scale */
  transition: clip-path 1.25s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: clip-path;
}

/* Левая половина открывается от средней линии влево */
.mission__half--left .mission__reveal {
  clip-path: inset(0 0 0 100%);
}

/* Правая — от средней линии вправо */
.mission__half--right .mission__reveal {
  clip-path: inset(0 100% 0 0);
}

.mission.is-open .mission__half--left .mission__reveal,
.mission.is-open .mission__half--right .mission__reveal {
  clip-path: inset(0 0 0 0);
}

.mission__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.mission__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 16, 6, 0.28);
}

.mission__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 48px clamp(24px, 4vw, 64px);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease 0.65s, visibility 0s linear 0.65s;
}

.mission.is-open .mission__content {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.55s ease 0.65s, visibility 0s linear 0s;
}

.mission__content--left {
  align-items: flex-end;
  padding-right: clamp(28px, 4vw, 56px);
}

.mission__content--right {
  align-items: flex-start;
  padding-left: clamp(28px, 4vw, 56px);
}

.mission__title {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.mission__rule {
  display: block;
  width: 1px;
  height: 36px;
  margin: 16px auto;
  background: rgba(255, 255, 255, 0.9);
  align-self: center;
}

.mission__text {
  margin: 0;
  max-width: 340px;
  font-size: clamp(12px, 1.25vw, 15px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  text-wrap: balance;
}

.mission__content--left .mission__text {
  text-align: right;
  margin-left: auto;
}

.mission__content--right .mission__text {
  text-align: left;
  margin-right: auto;
}

/* Заголовок и линия по центру половины, текст — к центру экрана */
.mission__content--left .mission__title,
.mission__content--left .mission__rule {
  align-self: center;
  width: min(100%, 380px);
}

.mission__content--right .mission__title,
.mission__content--right .mission__rule {
  align-self: center;
  width: min(100%, 380px);
}

.mission__content--left .mission__rule,
.mission__content--right .mission__rule {
  width: 1px;
}

.mission__divider {
  position: absolute;
  top: 12%;
  bottom: 12%;
  left: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.85);
  transform: translateX(-50%) scaleY(0);
  transform-origin: center;
  z-index: 3;
  transition: transform 0.8s ease 0.35s;
  pointer-events: none;
}

.mission.is-open .mission__divider {
  transform: translateX(-50%) scaleY(1);
}

/* ==========================================================================
   Направления / Проекты — аккордеон (вертикальный макет + горизонтальный блок)
   ========================================================================== */

.activity {
  --activity-gap: 6px;
  --activity-rail: 78px;
  --activity-fold: 92px;
  position: relative;
  padding: var(--reo-section-pad);
  background: #f4f6f1;
  color: #163526;
  overflow: hidden;
}

.activity--horizontal {
  --activity-rail: 68px;
  background: #ffffff;
}

.activity__inner {
  width: var(--reo-container);
  margin: 0 auto;
}

.activity__title {
  margin: 0 0 28px;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: right;
}

.activity__tabs {
  display: flex;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.activity.is-open .activity__tabs {
  opacity: 1;
  transform: translateY(0);
}

/* —— Горизонтальный аккордеон (Проекты) —— */
.activity--horizontal .activity__tabs--horizontal {
  flex-direction: row;
  align-items: stretch;
  gap: var(--activity-gap);
  height: min(520px, 68vh);
  min-height: 380px;
  border-radius: 18px;
  overflow: hidden;
}

.activity--horizontal .activity__tab {
  position: relative;
  display: flex;
  flex: 1 1 var(--activity-rail);
  min-width: var(--activity-rail);
  max-width: var(--activity-rail);
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 16px;
  background: var(--tab-bg, #143323);
  color: #f4f8ef;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition:
    flex 0.75s cubic-bezier(0.22, 0.61, 0.36, 1),
    max-width 0.75s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.35s ease;
}

.activity--horizontal .activity__tab-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--tab-bg, #143323);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.55s ease, transform 0.75s ease;
  pointer-events: none;
}

.activity--horizontal .activity__tab-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(12, 28, 18, 0.78) 0%, rgba(12, 28, 18, 0.42) 52%, rgba(12, 28, 18, 0.28) 100%);
}

.activity--horizontal .activity__tab.is-active {
  flex: 8 1 auto;
  max-width: none;
  cursor: default;
  box-shadow: 0 18px 40px rgba(12, 28, 18, 0.18);
}

.activity--horizontal .activity__tab.is-active .activity__tab-media {
  opacity: 1;
  transform: scale(1);
}

.activity--horizontal .activity__rail,
.activity--horizontal .activity__body {
  position: relative;
  z-index: 1;
}

.activity__rail {
  flex: 0 0 var(--activity-rail);
  width: var(--activity-rail);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding: 22px 10px 28px;
  box-sizing: border-box;
}

.activity__num {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  opacity: 0.9;
}

.activity__rail-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}

.activity--horizontal .activity__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 40px 36px 12px;
  opacity: 0;
  transform: translateX(18px);
  pointer-events: none;
  transition:
    opacity 0.45s ease 0.15s,
    transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) 0.12s;
}

.activity--horizontal .activity__tab.is-active .activity__body {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* —— Вертикальные «папки» (контур по «деятельность 1 вкладка.jpg») —— */
.activity--vertical {
  /* Ушко шире → «горбинка» правее; радиус умеренный (не полукруг) */
  --folder-ear-w: clamp(200px, 28vw, 320px);
  --folder-ear-h: clamp(68px, 7.2vw, 88px);
  --folder-step: clamp(8px, 1vw, 12px);
  --folder-radius: 14px;
  --folder-shoulder: clamp(48px, 5.5vw, 72px);
  --folder-gap: 0px;
  /* Наезд чуть больше ступеньки — без щели справа между рядами */
  --folder-overlap: calc(var(--folder-step) + 3px);
  --folder-peek: 14px;
}

.activity--vertical .activity__inner--vertical {
  position: relative;
  width: var(--reo-container);
  max-width: none;
}

.activity--vertical .activity__title--vertical,
.activity--vertical .activity__title {
  display: none;
}

.activity--vertical .activity__tabs--vertical {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: auto;
  min-height: 0;
  max-width: none;
  margin: 0;
  border-radius: 0;
  overflow: visible;
}

.activity--vertical .activity__folder {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0 0 var(--folder-peek);
  border: none;
  background: transparent;
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  z-index: 1;
  filter: none;
  transition:
    margin 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    padding 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 0.35s ease;
}

/*
  Фон «развёрнутого листа» под вкладкой:
  закрывает щель справа и даёт ощущение папки на заднем плане
*/
.activity--vertical .activity__folder::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: var(--folder-step);
  bottom: 0;
  z-index: 0;
  background: var(--tab-bg, #143323);
  border-radius: 0;
  pointer-events: none;
}

/* Свёрнутые: стык без зазора справа между низом и верхом соседних */
.activity--vertical .activity__folder + .activity__folder {
  margin-top: calc(-1 * (var(--folder-overlap) + var(--folder-peek)));
}

.activity--vertical .activity__folder:not(.is-active) .activity__folder-title {
  border-radius: 0;
  margin-bottom: 0;
}

.activity--vertical .activity__folder:not(.is-active) .activity__folder-panel {
  margin: 0;
  padding: 0;
  min-height: 0;
}

.activity--vertical .activity__folder:nth-child(1) { z-index: 1; }
.activity--vertical .activity__folder:nth-child(2) { z-index: 2; }
.activity--vertical .activity__folder:nth-child(3) { z-index: 3; }
.activity--vertical .activity__folder:nth-child(4) { z-index: 4; }

/* Только у первой — скругление верха справа; у последней — низа */
.activity--vertical .activity__folder:first-child:not(.is-active)::before,
.activity--vertical .activity__folder:first-child:not(.is-active) .activity__folder-title {
  border-radius: 0 var(--folder-radius) 0 0;
}

.activity--vertical .activity__folder:last-child:not(.is-active)::before {
  border-radius: 0 0 var(--folder-radius) var(--folder-radius);
}

.activity--vertical .activity__folder:last-child:not(.is-active) .activity__folder-title {
  border-radius: 0;
}

.activity--vertical .activity__folder:not(.is-active):hover {
  filter: brightness(1.04);
}

.activity--vertical .activity__folder.is-active {
  z-index: 8;
  margin-bottom: 14px;
  padding-bottom: 0;
  filter: drop-shadow(0 18px 36px rgba(12, 28, 18, 0.2));
}

.activity--vertical .activity__folder.is-active::before {
  border-radius: 0 var(--folder-radius) 0 0;
}

.activity--vertical .activity__folder.is-active .activity__folder-title {
  border-radius: 0 var(--folder-radius) 0 0;
}

.activity--vertical .activity__folder.is-active + .activity__folder {
  margin-top: 8px;
}

/* Ушко: умеренное скругление (как у остальных блоков), не полукруг */
.activity--vertical .activity__folder-ear {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  width: var(--folder-ear-w);
  height: var(--folder-ear-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tab-bg, #143323);
  border-radius: var(--folder-radius) var(--folder-radius) 0 0;
}

.activity--vertical .activity__folder-ear::after {
  content: "";
  position: absolute;
  left: 100%;
  bottom: 0;
  width: var(--folder-shoulder);
  height: var(--folder-shoulder);
  background: radial-gradient(
    circle at top right,
    transparent 69.5%,
    var(--tab-bg, #143323) 70.5%
  );
  pointer-events: none;
}

.activity--vertical .activity__folder-num {
  position: relative;
  z-index: 1;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.activity--vertical .activity__folder-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-top: var(--folder-step);
  background: transparent;
}

.activity--vertical .activity__folder-title {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0 clamp(22px, 2.8vw, 36px) 0 calc(var(--folder-ear-w) + var(--folder-shoulder) * 0.2);
  min-height: calc(var(--folder-ear-h) - var(--folder-step));
  display: flex;
  align-items: center;
  background: var(--tab-bg, #143323);
  border-radius: 0 var(--folder-radius) 0 0;
  font-size: clamp(15px, 1.85vw, 22px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

.activity--vertical .activity__folder-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 0fr;
  background: var(--tab-bg, #143323);
  border-radius: 0 0 var(--folder-radius) var(--folder-radius);
  transition: grid-template-rows 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.activity--vertical .activity__folder.is-active .activity__folder-panel {
  grid-template-rows: 1fr;
}

.activity--vertical .activity__folder-panel-inner {
  overflow: hidden;
  min-height: 0;
}

.activity--vertical .activity__folder.is-active .activity__folder-panel-inner {
  min-height: clamp(200px, 28vh, 280px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.activity--vertical .activity__folder-panel .activity__line {
  margin: 0 clamp(22px, 2.8vw, 36px) clamp(18px, 2.4vw, 26px);
  width: auto;
  max-width: 62%;
}

.activity--vertical .activity__folder-panel .activity__row {
  padding: 0 clamp(22px, 2.8vw, 36px) clamp(32px, 4vw, 48px);
  align-items: center;
  flex: 1 1 auto;
}

.activity--vertical .activity__folder .activity__btn {
  color: var(--tab-btn, #163526);
}

.activity--vertical .activity__folder--light {
  color: #163526;
}

.activity--vertical .activity__folder--light .activity__text {
  color: rgba(22, 53, 38, 0.92);
}

.activity--vertical .activity__folder--light .activity__line {
  background: rgba(22, 53, 38, 0.28);
}

.activity--vertical .activity__folder--light .activity__btn {
  background: #ffffff;
  color: #163526;
}

.activity__body-title {
  margin: 0 0 16px;
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

.activity__line {
  display: block;
  width: 100%;
  height: 1px;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.35);
}

.activity__tab--light .activity__line {
  background: rgba(22, 53, 38, 0.28);
}

/* Флагманские инициативы — без линии между заголовком и описанием */
.activity--horizontal .activity__line {
  display: none;
}

.activity--horizontal .activity__body-title {
  margin-bottom: 14px;
}

.activity__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.activity__text {
  margin: 0;
  flex: 1 1 auto;
  max-width: 520px;
  font-size: clamp(13px, 1.25vw, 16px);
  font-weight: 500;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.activity__actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.activity__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #ffffff;
  color: #163526;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.activity__btn:hover,
.activity__btn:focus-visible {
  transform: translateY(-1px);
  background: #f0f7ea;
}

.activity__tab--light {
  color: #163526;
}

.activity__tab--light .activity__text {
  color: rgba(22, 53, 38, 0.92);
}

.activity__tab--light .activity__btn {
  background: #163526;
  color: #ffffff;
}

.activity__tab--light .activity__btn:hover,
.activity__tab--light .activity__btn:focus-visible {
  background: #214a34;
}

/* ==========================================================================
   Внутренние страницы — хедер (меню + лого + статичное фото)
   ========================================================================== */

.page-hero {
  position: relative;
  height: 68vh;
  min-height: 420px;
  max-height: 640px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--reo-white);
}

.page-hero--compact {
  height: auto;
  min-height: 280px;
  max-height: none;
  padding-bottom: 28px;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 18, 8, 0.55) 0%,
    rgba(10, 18, 8, 0.25) 45%,
    rgba(10, 18, 8, 0.4) 100%
  );
}

.page-hero .hero__header,
.page-hero .page-hero__content,
.page-hero .hero__social {
  position: relative;
  z-index: 2;
}

.page-hero .hero__logo {
  width: min(480px, 80vw);
}

.page-hero__content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px 72px;
}

.page-hero__title {
  margin: 0;
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.page-main {
  background: #ffffff;
  color: #1a2414;
  padding: 72px 24px 96px;
}

.page-main__inner {
  width: min(920px, 100%);
  margin: 0 auto;
}

.page-main__inner h2 {
  margin: 0 0 16px;
  font-size: clamp(22px, 3vw, 32px);
}

.page-main__inner p {
  margin: 0 0 12px;
  line-height: 1.65;
  color: #3d4a34;
}

.page-main__note {
  margin-top: 24px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--reo-lime);
}

.legal-page__inner {
  width: min(860px, 100%);
}

.legal-page h1 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.2;
  color: #163526;
}

.legal-page h2 {
  margin: 28px 0 12px;
  font-size: clamp(18px, 2.2vw, 24px);
  color: #163526;
}

.legal-page p,
.legal-page li {
  font-size: 15px;
  line-height: 1.65;
  color: #2a4033;
}

.legal-page ul {
  margin: 0 0 12px;
  padding-left: 1.2em;
  list-style: disc;
}

.legal-page a {
  color: #3f8f1f;
  text-decoration: underline;
}

.legal-page__updated {
  margin: 0 0 20px !important;
  font-size: 13px !important;
  color: #6a7564 !important;
}

.legal-page__list {
  margin: 16px 0;
  padding-left: 1.2em;
  list-style: disc;
}

.writeus__agree a {
  color: #3f8f1f;
  text-decoration: underline;
}

/* Заглушка следующих блоков */
.next-block {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f6f1;
  color: #1a2414;
}

.next-block__inner {
  width: var(--reo-container);
  text-align: center;
}

/* ==========================================================================
   Адаптив
   ========================================================================== */

@media (max-width: 900px) {
  .hero__header {
    gap: 6px;
  }

  .hero__nav {
    padding: 12px 16px 10px;
  }

  .hero__menu {
    gap: 6px 14px;
  }

  .hero__menu a {
    font-size: 11px;
  }

  .hero__logo {
    width: min(580px, 94vw);
  }

  .hero__content {
    margin-top: -118px;
    padding: 0 16px 8px;
  }

  .hero__title {
    margin-bottom: 16px;
  }

  .hero__social {
    right: 16px;
    bottom: 16px;
  }

  .hero__next {
    margin-bottom: 4px;
    padding-top: 16px;
  }
}

@media (max-height: 740px) {
  .hero__logo {
    width: min(480px, 76vw);
  }

  .hero__content {
    margin-top: -108px;
  }

  .hero__title {
    font-size: clamp(17px, 3vw, 30px);
    gap: 8px;
    margin-bottom: 12px;
  }

  .hero__next {
    margin-bottom: 2px;
    padding-top: 12px;
    gap: 4px;
  }

  .hero__next-icon {
    width: 18px;
    height: 28px;
  }
}

@media (max-width: 640px) {
  .hero__menu {
    display: none; /* мобильное меню добавим на следующем этапе */
  }

  .hero__logo {
    width: min(520px, 90vw);
  }

  .hero__content {
    margin-top: -112px;
    padding: 0 16px 8px;
  }

  .hero__title {
    margin-bottom: 14px;
  }

  .hero__cta {
    min-width: 180px;
    padding: 12px 28px;
    font-size: 12px;
  }

  .hero__next {
    margin-bottom: 4px;
    padding-top: 14px;
  }

  .hero__social a {
    width: 32px;
    height: 32px;
  }

  .quote {
    padding: 48px 16px;
    min-height: auto;
  }

  .quote.is-open .quote__panel {
    width: 100%;
    max-width: 100%;
  }

  .quote__panel-inner {
    flex-direction: column;
    width: 100%;
    min-width: 0;
    padding: 18px 16px;
    gap: 14px;
  }

  .quote__photo {
    width: 88px;
    height: 110px;
    flex-basis: auto;
    align-self: flex-end;
    border-radius: 12px;
  }

  .quote__author {
    padding-right: 4px;
    align-items: flex-start;
    text-align: left;
  }

  .quote__mark {
    display: none;
  }

  .quote__role {
    white-space: normal;
  }

  .mission {
    padding: 48px 16px;
  }

  .mission__stage {
    aspect-ratio: 5 / 4;
    min-height: 280px;
    max-height: 420px;
  }

  .mission__content {
    padding: 20px 12px;
  }

  .mission__title {
    font-size: 20px;
  }

  .mission__text {
    font-size: 10px;
    max-width: 160px;
  }

  .mission__content--left,
  .mission__content--right {
    padding-left: 12px;
    padding-right: 12px;
  }

  .activity {
    padding: 48px 16px;
  }

  .activity__title {
    text-align: left;
    margin-bottom: 18px;
  }

  .activity--horizontal .activity__tabs--horizontal {
    flex-direction: column;
    height: auto;
    min-height: 0;
  }

  .activity--horizontal .activity__tab,
  .activity--horizontal .activity__tab.is-active {
    flex: 0 0 auto;
    max-width: none;
    min-width: 0;
    width: 100%;
    min-height: 64px;
  }

  .activity--horizontal .activity__tab.is-active {
    min-height: 280px;
  }

  .activity--horizontal .activity__rail {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    width: auto;
    flex-basis: auto;
    padding: 16px 18px;
    gap: 14px;
  }

  .activity--horizontal .activity__num,
  .activity--horizontal .activity__rail-label {
    writing-mode: horizontal-tb;
    transform: none;
  }

  .activity--horizontal .activity__body {
    padding: 0 18px 22px;
    transform: translateY(10px);
  }

  .activity--horizontal .activity__tab.is-active .activity__body {
    transform: translateY(0);
  }

  .activity--vertical .activity__title--vertical {
    text-align: left;
    margin-bottom: 14px;
  }

  .activity--vertical {
    --folder-ear-w: 140px;
    --folder-ear-h: 54px;
  }

  .activity--vertical .activity__folder-title {
    font-size: 13px;
    padding-right: 14px;
  }

  .activity__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .activity__actions {
    justify-content: flex-start;
  }

  .page-hero {
    height: 56vh;
    min-height: 360px;
  }

  .page-hero .hero__logo {
    width: min(360px, 84vw);
  }

  .page-main {
    padding: 48px 16px 72px;
  }
}

/* ==========================================================================
   Плашки заголовков + региональная деятельность (заголовки.jpg / вкладки регионы.jpg)
   ========================================================================== */

.section-plaque {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  margin: var(--reo-rubric-gap) 0 28px;
  padding: 14px 22px;
  border-radius: 18px;
  background: linear-gradient(90deg, #cfe3bc 0%, #e4efd6 55%, #f2f7eb 100%);
  box-shadow: 0 10px 28px rgba(22, 53, 38, 0.08);
  color: #163526;
  box-sizing: border-box;
}

/* Символы из «для заголовков.png» и текст — на противоположных краях плашки */
.section-plaque__icons {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  order: 1;
  line-height: 0;
}

.section-plaque__text {
  margin: 0 0 0 auto;
  order: 2;
  flex: 1 1 auto;
  font-size: clamp(20px, 2.8vw, 34px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: right;
  line-height: 1.15;
}

.section-plaque__icon {
  display: block;
  width: auto;
  height: clamp(40px, 4.6vw, 56px);
  max-width: min(280px, 42vw);
  object-fit: contain;
  object-position: left center;
}

.section-plaque--bar,
.section-plaque--plain {
  padding: 14px 22px;
  border-radius: 18px;
  background: linear-gradient(90deg, #cfe3bc 0%, #e4efd6 55%, #f2f7eb 100%);
  box-shadow: 0 10px 28px rgba(22, 53, 38, 0.08);
}

/* Чуть больше отступ перед каждой рубрикой */
.activity--vertical,
.regwork,
.activity--horizontal,
.partners {
  padding-top: 84px;
}

/* Между цитатой и миссией — компактнее */
.quote {
  padding-bottom: 40px;
}

.quote + .mission,
.mission {
  padding-top: 40px;
}

.regwork {
  position: relative;
  padding: var(--reo-section-pad);
  background:
    radial-gradient(ellipse at 18% 8%, rgba(143, 214, 58, 0.14), transparent 42%),
    linear-gradient(180deg, #f3f7ee 0%, #e8f0e0 46%, #f7faf4 100%);
  color: #163526;
  overflow: hidden;
}

.regwork__inner {
  width: var(--reo-container);
  margin: 0 auto;
}

.regwork__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 36px;
  padding: 28px 24px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(22, 53, 38, 0.12);
  box-shadow: 0 14px 36px rgba(22, 53, 38, 0.06);
}

.regwork__stat {
  text-align: center;
  padding: 4px 12px;
}

.regwork__num {
  display: block;
  margin: 0 0 10px;
  font-size: clamp(52px, 8vw, 92px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #0f2418 0%, #1d4a32 45%, #3b7d59 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.regwork__label {
  display: block;
  font-size: clamp(11px, 1.15vw, 14px);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.35;
  color: #2a4033;
}

.regwork__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
  margin-top: 8px;
}

.regwork__card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 28px 26px 22px;
  text-decoration: none;
  color: #f4f8ef;
  overflow: hidden;
  isolation: isolate;
  border-radius: 18px;
  box-shadow: 0 22px 40px rgba(12, 28, 18, 0.18);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.regwork__card--dark {
  background: linear-gradient(165deg, #143323 0%, #1d4432 48%, #24523c 100%);
}

.regwork__card--mid {
  background: linear-gradient(165deg, #1f4936 0%, #2f6448 48%, #3b7d59 100%);
}

.regwork__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 48px rgba(12, 28, 18, 0.24);
}

.regwork__card-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.82);
}

.regwork__card-title {
  margin: 0 0 10px;
  font-size: clamp(18px, 2.1vw, 26px);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.regwork__card-text {
  margin: 0 0 12px;
  max-width: none;
  width: 100%;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.regwork__card-media {
  flex: 1 1 auto;
  min-height: 240px;
  margin: 0 0 14px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.regwork__card-more {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 16px;
  border-radius: 999px;
  background: #ffffff;
  color: #163526;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-sizing: border-box;
}

.regwork__card-more-arrow {
  font-weight: 700;
  font-size: 1.05em;
}

.activity--horizontal .section-plaque,
.activity--vertical .section-plaque {
  margin-bottom: 24px;
}

.activity--horizontal .activity__title {
  display: none;
}

@media (max-width: 860px) {
  .regwork__stats {
    grid-template-columns: 1fr;
    gap: 18px;
    border-radius: 18px;
  }

  .regwork__cards {
    grid-template-columns: 1fr;
  }

  .regwork__card {
    padding: 28px 22px 20px;
  }

  .section-plaque {
    flex-wrap: wrap;
    gap: 12px;
  }

  .section-plaque__text {
    width: 100%;
    text-align: left;
    font-size: clamp(18px, 5.2vw, 26px);
  }

  .section-plaque__icons {
    order: -1;
  }

  .quote.is-open .quote__panel {
    width: 100%;
    max-width: 100%;
  }

  .quote__panel-inner {
    min-width: 0;
  }

  .quote__mark {
    display: none;
  }

  .quote__role {
    white-space: normal;
    max-width: 100%;
  }

  .quote__row {
    min-height: 0;
  }

  .quote {
    padding: 48px 16px;
    min-height: 0;
  }

  .regwork {
    padding: 48px 16px;
  }

  .mission__stage {
    border-radius: 18px;
    min-height: 260px;
  }

  .activity--vertical {
    --folder-ear-w: 150px;
    --folder-ear-h: 56px;
  }

  .activity--vertical .activity__folder-panel .activity__row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .activity--horizontal .activity__tabs--horizontal {
    height: auto;
    min-height: 0;
  }

  .regwork__num {
    font-size: clamp(40px, 12vw, 64px);
  }

  .regwork__stats {
    border-radius: 18px;
    padding: 20px 14px;
  }
}

/* —— Модалка «раздел в разработке» —— */
.reo-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.reo-modal[hidden] {
  display: none !important;
}

.reo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 16, 10, 0.62);
  backdrop-filter: blur(2px);
}

.reo-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 32px 28px 28px;
  border-radius: 20px;
  background: linear-gradient(165deg, #f7faf4 0%, #e8f0e0 100%);
  color: #163526;
  box-shadow: 0 24px 56px rgba(8, 16, 10, 0.28);
  text-align: center;
}

.reo-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #163526;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.reo-modal__title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reo-modal__text {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.45;
  color: #2a4033;
}

.reo-modal__ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 12px 24px;
  border: none;
  border-radius: 999px;
  background: #143323;
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.reo-modal__ok:hover {
  background: #1d4432;
}

body.is-modal-open {
  overflow: hidden;
}

/* ==========================================================================
   Партнёры — две бегущие строки (макет партнеры.jpg)
   ========================================================================== */

.partners {
  position: relative;
  padding: 84px 0 72px;
  background:
    radial-gradient(ellipse at 80% 12%, rgba(143, 214, 58, 0.12), transparent 44%),
    linear-gradient(180deg, #f7faf4 0%, #eef5e8 50%, #f3f7ee 100%);
  color: #163526;
  overflow: hidden;
}

.partners__inner {
  width: var(--reo-container);
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.partners__banner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  margin-top: 8px;
  padding: 22px 0;
  border-radius: 0;
  background: linear-gradient(180deg, #e8f2df 0%, #f0f6ea 100%);
  overflow: hidden;
}

.partners__row {
  overflow: hidden;
  width: 100%;
}

.partners__track {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  will-change: transform;
}

.partners__row--ltr .partners__track {
  animation: partners-marquee-ltr 42s linear infinite;
}

.partners__row--rtl .partners__track {
  animation: partners-marquee-rtl 42s linear infinite;
}

.partners__item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 168px;
  height: 88px;
  padding: 12px 16px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(22, 53, 38, 0.06);
}

.partners__item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

@keyframes partners-marquee-ltr {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes partners-marquee-rtl {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@media (max-width: 720px) {
  .partners__item {
    width: 132px;
    height: 72px;
    padding: 10px 12px;
    border-radius: 14px;
  }

  .partners__banner {
    gap: 10px;
    padding: 16px 0;
  }
}

/* ==========================================================================
   Новости / Экополис — сетка «одна крупная + мелкие»
   ========================================================================== */

.media-feed {
  position: relative;
  padding: var(--reo-section-pad);
  padding-top: 84px;
  background:
    radial-gradient(ellipse at 12% 10%, rgba(143, 214, 58, 0.12), transparent 42%),
    linear-gradient(180deg, #f3f7ee 0%, #eaf2e4 48%, #f7faf4 100%);
  color: #163526;
  overflow: hidden;
}

.media-feed--alt {
  background:
    radial-gradient(ellipse at 88% 8%, rgba(93, 191, 42, 0.14), transparent 44%),
    linear-gradient(180deg, #eef5e8 0%, #f3f7ee 50%, #f8fbf5 100%);
}

.media-feed__inner {
  width: var(--reo-container);
  margin: 0 auto;
}

.media-feed__head {
  margin-bottom: 8px;
}

.media-feed__head .section-plaque {
  margin-bottom: 28px;
}

.media-feed__footer {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.media-feed__all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #143323;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.25s ease, transform 0.25s ease;
}

.media-feed__all:hover {
  background: #1d4432;
  transform: translateY(-1px);
}

.media-feed__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.media-feed__side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

.media-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  color: #163526;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(22, 53, 38, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(22, 53, 38, 0.14);
}

.media-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: #d7e6cb center / cover no-repeat;
}

.media-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 0;
}

/* Плашка рубрики на фото */
.media-card__rubric,
.news-article__rubric {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  max-width: calc(100% - 24px);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20, 51, 35, 0.88);
  color: #f4f8ef;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.25;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 16px rgba(6, 16, 10, 0.22);
  pointer-events: none;
}

.media-card--compact .media-card__rubric {
  left: 10px;
  top: 10px;
  padding: 5px 10px;
  font-size: 10px;
}

.news-article__rubric {
  left: 18px;
  top: 18px;
  font-size: 12px;
  padding: 7px 14px;
}

.news-article__rubric-text {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(47, 111, 62, 0.12);
  color: #2f6f3e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.media-card--featured {
  min-height: 100%;
}

.media-card--featured .media-card__media {
  aspect-ratio: 16 / 10;
  min-height: 220px;
}

.media-card--featured .media-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 22px 22px 24px;
  gap: 10px;
}

.media-card--featured .media-card__title {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin: 0;
}

.media-card--featured .media-card__excerpt {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #3d4a34;
}

.media-card--compact {
  flex-direction: row;
  flex: 1 1 0;
  min-height: 0;
}

.media-card--compact .media-card__media {
  flex: 0 0 42%;
  min-height: 100%;
  align-self: stretch;
}

.media-card--compact .media-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 14px 16px;
  min-width: 0;
}

.media-card--compact .media-card__title {
  margin: 0;
  font-size: clamp(14px, 1.35vw, 17px);
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.media-card__date {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5a7a48;
}

/* Архив новостей */
.news-archive {
  background:
    linear-gradient(180deg, #f7faf4 0%, #eef5e8 100%);
  color: #163526;
  padding: 56px 24px 96px;
}

.news-archive__inner {
  width: var(--reo-container);
  margin: 0 auto;
}

.news-archive__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.news-archive .media-card--tile .media-card__media {
  aspect-ratio: 16 / 10;
}

.news-archive .media-card--tile .media-card__body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-archive .media-card--tile .media-card__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.news-archive .media-card--tile .media-card__excerpt {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #3d4a34;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-archive__nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.news-archive__nav a,
.news-archive__nav span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: #ffffff;
  color: #163526;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(22, 53, 38, 0.08);
}

.news-archive__nav .is-current {
  background: #143323;
  color: #ffffff;
}

/* Страница одной новости */
.news-article {
  background: #f7faf4;
  color: #163526;
  padding: 48px 24px 96px;
}

.news-article__inner {
  width: min(860px, var(--reo-container));
  margin: 0 auto;
}

.news-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 18px;
}

.news-article__date {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5a7a48;
}

.news-article__title {
  margin: 0 0 22px;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.news-article__cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 28px;
  border-radius: 18px;
  overflow: hidden;
  background: #d7e6cb center / cover no-repeat;
  box-shadow: 0 14px 32px rgba(22, 53, 38, 0.1);
}

.news-article__cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 0;
}

.news-article__content {
  font-size: 17px;
  line-height: 1.7;
  color: #2a4033;
}

.news-article__content p {
  margin: 0 0 1em;
}

.news-article__content img {
  border-radius: 14px;
  margin: 1em 0;
}

/* —— Галерея в записи (Gutenberg + classic [gallery]) —— */
.news-article__content .wp-block-gallery,
.news-article__content .gallery,
.reo-gallery {
  margin: 1.4em 0 1.6em;
}

.reo-gallery {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #e8f0e0;
  box-shadow: 0 12px 28px rgba(22, 53, 38, 0.1);
}

.reo-gallery__viewport {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #d7e6cb;
  cursor: zoom-in;
}

.reo-gallery__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  pointer-events: none;
}

.reo-gallery__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.reo-gallery__slide img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.reo-gallery__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(20, 51, 35, 0.88);
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.reo-gallery__nav:hover {
  background: #143323;
}

.reo-gallery__nav--prev {
  left: 12px;
}

.reo-gallery__nav--next {
  right: 12px;
}

.reo-gallery__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.reo-gallery__counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(20, 51, 35, 0.82);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.reo-gallery__caption {
  margin: 0;
  padding: 12px 16px 14px;
  font-size: 14px;
  line-height: 1.45;
  color: #2a4033;
  background: #ffffff;
}

/* Скрываем исходную сетку WP после инициализации карусели */
.reo-gallery.is-ready .wp-block-gallery,
.reo-gallery.is-ready .gallery,
.reo-gallery.is-ready > .blocks-gallery-grid {
  display: none !important;
}

/* До инициализации — аккуратная сетка со скруглением */
.news-article__content .wp-block-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.news-article__content .wp-block-gallery .wp-block-image,
.news-article__content .gallery .gallery-item {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
}

.news-article__content .wp-block-gallery img,
.news-article__content .gallery img {
  margin: 0;
  border-radius: 16px;
  width: 100%;
  height: auto;
  display: block;
}

.news-article__content .gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.news-article__content .gallery .gallery-item {
  flex: 1 1 calc(33.333% - 12px);
  min-width: 140px;
}

/* —— Лайтбокс галереи —— */
.reo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.reo-lightbox[hidden] {
  display: none !important;
}

.reo-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 8, 0.82);
}

.reo-lightbox__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(1100px, 100%);
  max-height: calc(100vh - 48px);
}

.reo-lightbox__figure {
  margin: 0;
  max-width: 100%;
  max-height: calc(100vh - 48px);
  text-align: center;
}

.reo-lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 100px);
  width: auto;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
  background: #0a1208;
}

.reo-lightbox__caption {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.reo-lightbox__close {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: #ffffff;
  color: #143323;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.reo-lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #143323;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.reo-lightbox__nav--prev {
  left: -8px;
}

.reo-lightbox__nav--next {
  right: -8px;
}

.reo-lightbox__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.reo-lightbox__counter {
  position: absolute;
  left: 50%;
  bottom: -36px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

body.is-lightbox-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .reo-gallery__nav {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  .reo-lightbox {
    padding: 16px;
  }

  .reo-lightbox__nav--prev {
    left: 4px;
  }

  .reo-lightbox__nav--next {
    right: 4px;
  }

  .reo-lightbox__close {
    top: 4px;
    right: 4px;
  }
}

.news-article__back {
  display: inline-flex;
  margin: 0 0 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #143323;
}

.news-article__back:hover {
  color: #2a5a42;
}

/* Поделиться */
.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 32px 0 0;
  padding: 18px 18px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(22, 53, 38, 0.08);
}

.share__label {
  margin-right: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #163526;
}

.share__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: none;
  border-radius: 999px;
  background: #eef5e8;
  color: #163526;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.share__btn:hover {
  background: #dcebd0;
  transform: translateY(-1px);
}

.share__btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  /* Иконки белые (для зелёного хедера) — на светлой плашке делаем тёмно-зелёными */
  filter: brightness(0) saturate(100%) invert(18%) sepia(28%) saturate(900%) hue-rotate(95deg) brightness(0.95);
}

.share__btn.is-copied {
  background: #143323;
  color: #ffffff;
}

@media (max-width: 960px) {
  .media-feed__grid {
    grid-template-columns: 1fr;
  }

  .media-card--compact {
    min-height: 120px;
  }

  .news-archive__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .media-card--compact {
    flex-direction: column;
  }

  .media-card--compact .media-card__media {
    flex: 0 0 auto;
    aspect-ratio: 16 / 9;
    min-height: 140px;
  }

  .news-archive__grid {
    grid-template-columns: 1fr;
  }

  .news-archive {
    padding: 36px 16px 72px;
  }

  .news-article {
    padding: 28px 16px 72px;
  }

  .news-article__cover {
    border-radius: 14px;
    margin-bottom: 20px;
  }

  .news-article__rubric {
    left: 12px;
    top: 12px;
    font-size: 11px;
  }

  .share {
    gap: 8px;
  }

  .share__btn {
    font-size: 11px;
    padding: 8px 12px;
  }
}

/* ==========================================================================
   Присоединиться — билет + 2 чипа (макет блоки перед футером.jpg)
   ========================================================================== */

.join {
  position: relative;
  padding: 72px 24px 80px;
  overflow: hidden;
  color: #163526;
}

.join__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.join__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 18, 8, 0.28) 0%,
    rgba(10, 18, 8, 0.18) 45%,
    rgba(10, 18, 8, 0.35) 100%
  );
}

.join__inner {
  position: relative;
  z-index: 1;
  width: var(--reo-container);
  margin: 0 auto;
}

.join__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(220px, 0.85fr);
  gap: 18px;
  align-items: stretch;
}

.join__ticket {
  position: relative;
  min-height: 280px;
  border-radius: 22px;
  overflow: hidden;
}

.join__ticket-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: fill;
  object-position: center;
}

.join__ticket-body {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  /* Зона текста на билете — между «окном» слева и корешком справа */
  padding: 32px clamp(14%, 16%, 18%) 28px clamp(18%, 22%, 26%);
  box-sizing: border-box;
  text-align: center;
  pointer-events: none;
}

.join__ticket-title,
.join__ticket-text {
  margin: 0;
  max-width: 32ch;
}

.join__ticket-title {
  font-family: var(--reo-font);
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #1a1a1a;
}

.join__ticket-text {
  font-family: var(--reo-font);
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 500;
  line-height: 1.45;
  color: #1a1a1a;
}

.join__ticket-btn {
  pointer-events: auto;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 12px 36px;
  border-radius: 999px;
  background: #98bc83;
  color: #1a1a1a;
  font-family: var(--reo-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.25s ease, transform 0.25s ease;
}

.join__ticket-btn:hover {
  background: #86ad72;
  transform: translateY(-1px);
}

.join__ticket-stub {
  position: absolute;
  top: 50%;
  right: 16%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  transform: translateY(-50%);
  pointer-events: none;
}

.join__ticket-stub li {
  font-family: var(--reo-font);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: #1a2414;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}

.join__aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
}

.join__chip {
  position: relative;
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 120px;
  padding: 22px 22px 22px 24px;
  border-radius: 18px;
  text-decoration: none;
  color: #163526;
  box-shadow: 0 12px 28px rgba(12, 28, 18, 0.14);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.join__chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(12, 28, 18, 0.2);
}

.join__chip--a {
  background: linear-gradient(135deg, #d8ecc8 0%, #e7f3dc 100%);
}

.join__chip--b {
  background: linear-gradient(135deg, #f0f4e8 0%, #f7f8f2 100%);
}

.join__chip-label {
  font-family: var(--reo-font);
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.25;
}

.join__chip-arrow {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1.5px solid rgba(22, 53, 38, 0.35);
  background: transparent;
  color: #143323;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

/* —— Форма «Написать нам» + футер (футер.jpg) —— */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-bottom {
  background: #f4f1e6;
  color: #1a2414;
  padding-bottom: 0;
  overflow-x: clip;
  max-width: 100%;
}

.site-bottom__inner {
  width: var(--reo-container);
  max-width: 100%;
  margin: 0 auto;
  padding: 48px 24px 0;
  box-sizing: border-box;
}

.writeus {
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(22, 53, 38, 0.18);
}

.writeus__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.writeus__title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 auto;
  min-width: 0;
}

.writeus__title {
  margin: 0;
  flex: 0 0 auto;
  font-family: var(--reo-font);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a2414;
}

.writeus__rule {
  position: relative;
  flex: 1 1 auto;
  height: 1px;
  background: #1a2414;
  min-width: 40px;
}

.writeus__rule::after {
  content: "↗";
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-55%);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  background: #f4f1e6;
  padding-left: 6px;
}

.writeus__contacts {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1.5px solid #1a2414;
  border-radius: 6px;
  font-family: var(--reo-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a2414;
  transition: background 0.2s ease, color 0.2s ease;
}

.writeus__contacts:hover {
  background: #1a2414;
  color: #ffffff;
}

.writeus__lead {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.45;
  color: #2a4033;
}

.writeus__row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 12px;
}

.writeus__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(22, 53, 38, 0.28);
  border-radius: 6px;
  background: #ffffff;
  color: #1a2414;
  font-family: var(--reo-font);
  font-size: 15px;
}

.writeus__input::placeholder {
  color: #7a8a72;
}

.writeus__input:focus {
  outline: 2px solid rgba(124, 179, 66, 0.45);
  outline-offset: 1px;
}

.writeus__submit {
  flex: 0 0 auto;
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  background: #7cb342;
  color: #ffffff;
  font-family: var(--reo-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
}

.writeus__submit:hover {
  background: #689f38;
}

.writeus__agree {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: #3d4a34;
  cursor: pointer;
}

.writeus__agree input {
  margin-top: 2px;
  flex: 0 0 auto;
}

.site-footer {
  padding: 36px 0 0;
  margin-bottom: 0;
}

.site-footer__main {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 28px;
}

.site-footer__logo {
  flex: 0 0 auto;
  display: block;
  width: min(300px, 48vw);
  margin-top: -10px;
}

.site-footer__logo img {
  width: 100%;
  height: auto;
  /* Белое лого на прозрачном фоне → тёмное для светлого футера */
  filter: brightness(0) saturate(100%);
}

.site-footer__nav {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 28px;
}

.site-footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__nav a {
  font-size: 15px;
  font-weight: 500;
  color: #1a2414;
  transition: color 0.2s ease;
}

.site-footer__nav a:hover {
  color: #3f8f1f;
}

.site-footer__meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
}

.site-footer__legal {
  max-width: 52ch;
}

.site-footer__legal p {
  margin: 0 0 4px;
  font-size: 12px;
  line-height: 1.45;
  color: #6a7564;
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #143323;
  transition: background 0.2s ease, transform 0.2s ease;
}

.site-footer__social a:hover {
  background: #1d4432;
  transform: translateY(-1px);
}

.site-footer__social img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 36px;
  width: 100%;
  max-width: 100%;
  margin: 12px 0 0;
  padding: 28px 28px 32px;
  border-radius: 18px 18px 0 0;
  background: #143323;
  color: #ffffff;
  text-align: center;
  border: none;
  box-shadow: none;
  box-sizing: border-box;
}

.site-footer__bar a {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.site-footer__bar a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* —— Кнопка «Наверх» (как mouse в хедере) —— */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 3500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border: none;
  border-radius: 18px;
  background: rgba(20, 51, 35, 0.88);
  color: #ffffff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.to-top:hover {
  background: #143323;
}

.to-top__icon {
  display: flex;
  width: 22px;
  height: 34px;
  color: #ffffff;
}

.to-top__icon svg {
  width: 100%;
  height: 100%;
}

.to-top__wheel {
  animation: to-top-wheel 1.6s ease-in-out infinite;
}

.to-top__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@keyframes to-top-wheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  70% {
    transform: translateY(-8px);
    opacity: 0.15;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 860px) {
  .join__layout {
    grid-template-columns: 1fr;
  }

  .join__ticket-body {
    padding-left: 22%;
    padding-right: 18%;
  }

  .join__ticket-stub {
    display: none;
  }

  .join__chip {
    min-height: 96px;
  }

  .writeus__head {
    flex-direction: column;
    align-items: stretch;
  }

  .writeus__contacts {
    align-self: flex-start;
  }

  .site-footer__main {
    flex-direction: column;
    gap: 28px;
  }

  .site-footer__nav {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .join {
    padding: 48px 16px 56px;
  }

  .join__ticket-img {
    min-height: 220px;
    object-fit: cover;
    object-position: left center;
  }

  .join__ticket-body {
    padding: 20px 16px 20px 18%;
  }

  .writeus__row {
    flex-direction: column;
  }

  .site-footer__nav {
    grid-template-columns: 1fr;
  }

  .site-footer__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-bottom__inner {
    padding: 36px 16px 0;
  }

  .site-footer__bar {
    margin: 12px 0 0;
    padding: 24px 16px 28px;
    border-radius: 16px 16px 0 0;
  }

  .to-top {
    right: 14px;
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__mouse-wheel,
  .to-top__wheel {
    animation: none;
  }

  .partners__row--ltr .partners__track,
  .partners__row--rtl .partners__track {
    animation: none;
  }

  .quote__mark,
  .quote__panel,
  .quote__author,
  .mission__reveal,
  .mission__content,
  .mission__divider,
  .activity__tab,
  .activity__body,
  .regwork__card,
  .media-card,
  .join__chip,
  .join__ticket-btn {
    transition: none;
  }
}
